Skip to content

Conversation

DanielSinclair
Copy link
Collaborator

@DanielSinclair DanielSinclair commented Oct 15, 2025

PR-Codex overview

This PR focuses on enhancing the rainbowkit package by adding new components, updating existing ones, and improving the build process. It introduces better structure for component exports and enhances type definitions for improved TypeScript support.

Detailed summary

  • Added components entry in package.json.
  • Introduced AvatarProps as a type in Avatar.tsx.
  • Updated build.js to include componentsBuildOptions for component builds.
  • Enhanced ChainModal to use RainbowKitChain types and improved chain handling logic.
  • Expanded exports in exports/index.ts for ConnectButton, WalletButton, Avatar, AccountModal, and ChainModal with their respective types.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

DanielSinclair and others added 4 commits October 15, 2025 15:27
- Export Avatar component with loading states support
- Export AccountModal for account management UI
- Export ChainModal for chain switching UI
- Export related TypeScript types (AvatarProps, AccountModalProps, ChainModalProps)
- Add comprehensive documentation comments for all exports

These exports enable developers to use RainbowKit UI components individually
in custom wallet connection flows.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Add components build configuration to build.js
- Export components from package.json at @rainbow-me/rainbowkit/components
- Create components/package.json for proper module resolution
- Enable parallel builds for main, wallets, and components exports

This completes the setup for the new components export path, allowing
developers to import UI components directly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Add fallback to use wagmi chains directly when RainbowKit context is not available
- ChainModal now transforms wagmi chains to RainbowKit format automatically
- Export RainbowKitChainProvider for optional custom chain configuration
- Fix TypeScript types for proper chain property access

This fixes the empty chain list issue when using ChainModal outside of
RainbowKitProvider. The modal now intelligently falls back to wagmi's
chain configuration when the RainbowKit context is not present.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Copy link

changeset-bot bot commented Oct 15, 2025

⚠️ No Changeset found

Latest commit: c236b99

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rainbowkit-example Ready Ready Preview Comment Oct 15, 2025 7:51pm
rainbowkit-site Ready Ready Preview Comment Oct 15, 2025 7:51pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant