Skip to content

Commit bf70ca2

Browse files
committed
chore: use stable methods for unpublished sdks
1 parent 24a419f commit bf70ca2

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/astro/src/astro-components/interactive/OAuthConsent.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
import type { __internal_OAuthConsentProps } from '@clerk/shared/types';
3-
type Props = __internal_OAuthConsentProps;
2+
import type { OAuthConsentProps } from '@clerk/shared/types';
3+
type Props = OAuthConsentProps;
44
55
import InternalUIComponentRenderer from './InternalUIComponentRenderer.astro';
66
---

packages/astro/src/internal/mount-clerk-astro-js-components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const mountAllClerkAstroJSComponents = () => {
2121
waitlist: 'mountWaitlist',
2222
'pricing-table': 'mountPricingTable',
2323
'api-keys': 'mountAPIKeys',
24-
'oauth-consent': '__internal_mountOAuthConsent',
24+
'oauth-consent': 'mountOAuthConsent',
2525
} as const satisfies Record<InternalUIComponentId, keyof Clerk>;
2626

2727
Object.entries(mountFns).forEach(([category, mountFn]) => {

packages/astro/src/react/uiComponents.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type {
22
GoogleOneTapProps,
3-
__internal_OAuthConsentProps,
3+
OAuthConsentProps,
44
OrganizationListProps,
55
OrganizationProfileProps,
66
OrganizationSwitcherProps,
@@ -198,11 +198,11 @@ export const PricingTable = withClerk(({ clerk, ...props }: WithClerkProp<Pricin
198198
);
199199
}, 'PricingTable');
200200

201-
export const OAuthConsent = withClerk(({ clerk, ...props }: WithClerkProp<__internal_OAuthConsentProps>) => {
201+
export const OAuthConsent = withClerk(({ clerk, ...props }: WithClerkProp<OAuthConsentProps>) => {
202202
return (
203203
<Portal
204-
mount={clerk?.__internal_mountOAuthConsent}
205-
unmount={clerk?.__internal_unmountOAuthConsent}
204+
mount={clerk?.mountOAuthConsent}
205+
unmount={clerk?.unmountOAuthConsent}
206206
props={props}
207207
/>
208208
);

packages/vue/src/components/ui-components/OAuthConsent.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<script setup lang="ts">
22
import { ClerkHostRenderer } from '../ClerkHostRenderer';
3-
import type { __internal_OAuthConsentProps } from '@clerk/shared/types';
3+
import type { OAuthConsentProps } from '@clerk/shared/types';
44
import { useClerk } from '../../composables';
55
66
const clerk = useClerk();
7-
const props = defineProps<__internal_OAuthConsentProps>();
7+
const props = defineProps<OAuthConsentProps>();
88
</script>
99

1010
<template>
1111
<ClerkHostRenderer
12-
:mount="clerk?.__internal_mountOAuthConsent"
13-
:unmount="clerk?.__internal_unmountOAuthConsent"
12+
:mount="clerk?.mountOAuthConsent"
13+
:unmount="clerk?.unmountOAuthConsent"
1414
:update-props="(clerk as any)?.__internal_updateProps"
1515
:props="props"
1616
/>

0 commit comments

Comments
 (0)