File tree Expand file tree Collapse file tree 9 files changed +43
-1
lines changed Expand file tree Collapse file tree 9 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @clerk/astro " : minor
3+ " @clerk/nuxt " : minor
4+ " @clerk/vue " : minor
5+ ---
6+
7+ Introduce ` <APIKeys /> ` component
Original file line number Diff line number Diff line change @@ -31,3 +31,4 @@ export { default as CreateOrganization } from './interactive/CreateOrganization.
3131export { default as GoogleOneTap } from './interactive/GoogleOneTap.astro' ;
3232export { default as Waitlist } from './interactive/Waitlist.astro' ;
3333export { default as PricingTable } from './interactive/PricingTable.astro' ;
34+ export { default as APIKeys } from './interactive/APIKeys.astro' ;
Original file line number Diff line number Diff line change 1+ ---
2+ import type { APIKeysProps } from ' @clerk/shared/types' ;
3+ type Props = APIKeysProps ;
4+
5+ import InternalUIComponentRenderer from ' ./InternalUIComponentRenderer.astro' ;
6+ ---
7+
8+ <InternalUIComponentRenderer
9+ {... Astro .props }
10+ component =' api-keys'
11+ />
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const mountAllClerkAstroJSComponents = () => {
2020 'google-one-tap' : 'openGoogleOneTap' ,
2121 waitlist : 'mountWaitlist' ,
2222 'pricing-table' : 'mountPricingTable' ,
23+ 'api-keys' : 'mountAPIKeys' ,
2324 } as const satisfies Record < InternalUIComponentId , keyof Clerk > ;
2425
2526 Object . entries ( mountFns ) . forEach ( ( [ category , mountFn ] ) => {
Original file line number Diff line number Diff line change @@ -72,4 +72,5 @@ export type InternalUIComponentId =
7272 | 'user-profile'
7373 | 'google-one-tap'
7474 | 'waitlist'
75- | 'pricing-table' ;
75+ | 'pricing-table'
76+ | 'api-keys' ;
Original file line number Diff line number Diff line change @@ -169,6 +169,8 @@ export default defineNuxtModule<ModuleOptions>({
169169 'SignedIn' ,
170170 'SignedOut' ,
171171 'Waitlist' ,
172+ // API Keys Components
173+ 'APIKeys' ,
172174 ] ;
173175 components . forEach ( component => {
174176 void addComponent ( {
Original file line number Diff line number Diff line change @@ -30,4 +30,5 @@ export {
3030 SignOutButton ,
3131 SignInWithMetamaskButton ,
3232 PricingTable ,
33+ APIKeys ,
3334} from '@clerk/vue' ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export { default as Waitlist } from './ui-components/Waitlist.vue';
55export { default as CreateOrganization } from './ui-components/CreateOrganization.vue' ;
66export { default as OrganizationList } from './ui-components/OrganizationList.vue' ;
77export { default as PricingTable } from './ui-components/PricingTable.vue' ;
8+ export { default as APIKeys } from './ui-components/APIKeys.vue' ;
89export { UserProfile } from './ui-components/UserProfile' ;
910export { OrganizationProfile } from './ui-components/OrganizationProfile' ;
1011export { OrganizationSwitcher } from './ui-components/OrganizationSwitcher' ;
Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ import { ClerkHostRenderer } from ' ../ClerkHostRenderer' ;
3+ import type { APIKeysProps } from ' @clerk/shared/types' ;
4+ import { useClerk } from ' ../../composables' ;
5+
6+ const clerk = useClerk ();
7+ const props = defineProps <APIKeysProps >();
8+ </script >
9+
10+ <template >
11+ <ClerkHostRenderer
12+ :mount =" clerk?.mountAPIKeys"
13+ :unmount =" clerk?.unmountAPIKeys"
14+ :update-props =" (clerk as any)?.__unstable__updateProps"
15+ :props =" props"
16+ />
17+ </template >
You can’t perform that action at this time.
0 commit comments