Repository navigation
feat(mosaic): expose component props types as namespaces - #10879
alexcarpenter wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: d195097 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
|
5d5828f to
b27709d
Compare
b27709d to
d195097
Compare


Description
Every component in
@clerk/mosaic/components/*now exposes its props type on the component itself, the way Base UI does:Avatar.Root.PropsisAvatarRootPropsandBadge.PropsisBadgeProps. The flat type names still work.AvatarProps,CardProps,DataListProps,EmptyStateProps,ItemProps,MenuPropsandSelectPropsare renamed to<Component>RootProps, with no aliases. Swingset callers are updated.CardHeaderProps,EntityRootProps,ItemMediaProps,ClerkLogoProps).InputGroupAddonPropsstays, alongside the newInputGroupStartPropsandInputGroupEndProps.declare namespaceblocks. They emit no JS, and'use client'is kept. Mosaic's oxlint config now allows them with'typescript/no-namespace': ['error', { allowDeclarations: true }].Select.Root.Props<Value>andDialog.Root.Props<Payload>.Statetypes, because Mosaic's render callback receives only props.src/featuresandsrc/primitivesare unchanged.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change