Skip to content

Commit c7c79fa

Browse files
committed
chore: add changeset
1 parent 2c33684 commit c7c79fa

5 files changed

Lines changed: 55 additions & 6 deletions

File tree

.changeset/fifty-grapes-ring.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

packages/nextjs/src/internal.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
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+
58
export { 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 };
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
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 };

packages/react/src/internal.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@ import type { InternalClerkScriptProps } from '@clerk/shared/types';
22
import type { Ui } from '@clerk/ui/internal';
33
import type React from 'react';
44

5+
import { OAuthConsent as OAuthConsentOriginal } from './components/uiComponents';
56
import { ClerkProvider } from './contexts/ClerkProvider';
67
import type { ClerkProviderProps } from './types';
8+
import { useOAuthConsent as useOAuthConsentOriginal } from '@clerk/shared/react';
79

810
export { setErrorThrowerOptions } from './errors/errorThrower';
911
export { 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+
1925
export { useRoutingProps } from './hooks/useRoutingProps';
2026
export { useDerivedAuth } from './hooks/useAuth';
2127
export { IS_REACT_SHARED_VARIANT_COMPATIBLE } from './utils/versionCheck';
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
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 };

0 commit comments

Comments
 (0)