File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @clerk/astro " : minor
3+ " @clerk/clerk-js " : minor
4+ " @clerk/nextjs " : minor
5+ " @clerk/nuxt " : minor
6+ " @clerk/react " : minor
7+ " @clerk/shared " : minor
8+ " @clerk/ui " : minor
9+ " @clerk/vue " : minor
10+ ---
11+
12+ Move OAuthConsent component to public export
Original file line number Diff line number Diff line change 22 * These need to be explicitly listed. Do not use an * here.
33 * If you do, app router will break.
44 */
5+ import { OAuthConsent as OAuthConsentOriginal } from './client-boundary/uiComponents' ;
6+ import { useOAuthConsent as useOAuthConsentOriginal } from '@clerk/shared/react' ;
7+
58export { MultisessionAppSupport } from './client-boundary/controlComponents' ;
9+
610/**
711 * @deprecated Import `OAuthConsent` from `@clerk/nextjs` instead.
812 */
9- export { OAuthConsent } from './client-boundary/uiComponents' ;
13+ const OAuthConsent = OAuthConsentOriginal ;
14+ export { OAuthConsent } ;
15+
1016/**
1117 * @deprecated Import `useOAuthConsent` from `@clerk/nextjs` instead.
1218 */
13- export { useOAuthConsent } from '@clerk/shared/react' ;
19+ const useOAuthConsent = useOAuthConsentOriginal ;
20+ export { useOAuthConsent } ;
Original file line number Diff line number Diff line change 1- export { useOAuthConsent , OAuthConsent } from '@clerk/react/internal' ;
1+ import { OAuthConsent as OAuthConsentOriginal , useOAuthConsent as useOAuthConsentOriginal } from '@clerk/react' ;
2+
3+ /**
4+ * @deprecated Import `OAuthConsent` from `@clerk/react-router` instead.
5+ */
6+ const OAuthConsent = OAuthConsentOriginal ;
7+ export { OAuthConsent } ;
8+
9+ /**
10+ * @deprecated Import `useOAuthConsent` from `@clerk/react-router` instead.
11+ */
12+ const useOAuthConsent = useOAuthConsentOriginal ;
13+ export { useOAuthConsent } ;
Original file line number Diff line number Diff line change @@ -2,20 +2,26 @@ import type { InternalClerkScriptProps } from '@clerk/shared/types';
22import type { Ui } from '@clerk/ui/internal' ;
33import type React from 'react' ;
44
5+ import { OAuthConsent as OAuthConsentOriginal } from './components/uiComponents' ;
56import { ClerkProvider } from './contexts/ClerkProvider' ;
67import type { ClerkProviderProps } from './types' ;
8+ import { useOAuthConsent as useOAuthConsentOriginal } from '@clerk/shared/react' ;
79
810export { setErrorThrowerOptions } from './errors/errorThrower' ;
911export { MultisessionAppSupport } from './components/controlComponents' ;
12+
1013/**
1114 * @deprecated Import `useOAuthConsent` from `@clerk/react` instead.
1215 */
13- export { useOAuthConsent } from '@clerk/shared/react' ;
16+ const useOAuthConsent = useOAuthConsentOriginal ;
17+ export { useOAuthConsent } ;
1418
1519/**
1620 * @deprecated Import `OAuthConsent` from `@clerk/react` instead.
1721 */
18- export { OAuthConsent } from './components/uiComponents' ;
22+ const OAuthConsent = OAuthConsentOriginal ;
23+ export { OAuthConsent } ;
24+
1925export { useRoutingProps } from './hooks/useRoutingProps' ;
2026export { useDerivedAuth } from './hooks/useAuth' ;
2127export { IS_REACT_SHARED_VARIANT_COMPATIBLE } from './utils/versionCheck' ;
Original file line number Diff line number Diff line change 1- export { useOAuthConsent , OAuthConsent } from '@clerk/react/internal' ;
1+ import { OAuthConsent as OAuthConsentOriginal , useOAuthConsent as useOAuthConsentOriginal } from '@clerk/react' ;
2+
3+ /**
4+ * @deprecated Import `OAuthConsent` from `@clerk/tanstack-react-start` instead.
5+ */
6+ const OAuthConsent = OAuthConsentOriginal ;
7+ export { OAuthConsent } ;
8+
9+ /**
10+ * @deprecated Import `useOAuthConsent` from `@clerk/tanstack-react-start` instead.
11+ */
12+ const useOAuthConsent = useOAuthConsentOriginal ;
13+ export { useOAuthConsent } ;
You can’t perform that action at this time.
0 commit comments