Skip to content

Commit 96b5167

Browse files
LauraBeatrisiagodahlem
authored andcommitted
Export TaskSelectOrganization from @clerk/nextjs
1 parent 5139312 commit 96b5167

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

packages/clerk-js/src/ui/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export type CheckoutCtx = __internal_CheckoutProps & {
134134
} & NewSubscriptionRedirectUrl;
135135

136136
export type SessionTasksCtx = {
137-
redirectUrlComplete?: string;
137+
redirectUrlComplete: string;
138138
currentTaskContainer?: React.RefObject<HTMLDivElement> | null;
139139
};
140140

packages/nextjs/src/client-boundary/uiComponents.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@ import React from 'react';
1212
import { useEnforceCorrectRoutingProps } from './hooks/useEnforceRoutingProps';
1313

1414
export {
15+
APIKeys,
1516
CreateOrganization,
17+
GoogleOneTap,
1618
OrganizationList,
1719
OrganizationSwitcher,
20+
PricingTable,
1821
SignInButton,
1922
SignInWithMetamaskButton,
2023
SignOutButton,
2124
SignUpButton,
25+
TaskSelectOrganization,
2226
UserButton,
23-
GoogleOneTap,
2427
Waitlist,
25-
PricingTable,
26-
APIKeys,
2728
} from '@clerk/clerk-react';
2829

2930
// The assignment of UserProfile with BaseUserProfile props is used

packages/nextjs/src/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
*/
55
export {
66
AuthenticateWithRedirectCallback,
7-
ClerkLoaded,
8-
ClerkLoading,
97
ClerkDegraded,
108
ClerkFailed,
9+
ClerkLoaded,
10+
ClerkLoading,
1111
RedirectToCreateOrganization,
1212
RedirectToOrganizationProfile,
1313
RedirectToSignIn,
@@ -20,22 +20,23 @@ export {
2020
* If you do, app router will break.
2121
*/
2222
export {
23+
APIKeys,
2324
CreateOrganization,
25+
GoogleOneTap,
2426
OrganizationList,
2527
OrganizationProfile,
2628
OrganizationSwitcher,
29+
PricingTable,
2730
SignIn,
2831
SignInButton,
2932
SignInWithMetamaskButton,
3033
SignOutButton,
3134
SignUp,
3235
SignUpButton,
36+
TaskSelectOrganization,
3337
UserButton,
3438
UserProfile,
35-
GoogleOneTap,
3639
Waitlist,
37-
PricingTable,
38-
APIKeys,
3940
} from './client-boundary/uiComponents';
4041

4142
/**
@@ -48,12 +49,12 @@ export {
4849
useEmailLink,
4950
useOrganization,
5051
useOrganizationList,
52+
useReverification,
5153
useSession,
5254
useSessionList,
5355
useSignIn,
5456
useSignUp,
5557
useUser,
56-
useReverification,
5758
} from './client-boundary/hooks';
5859

5960
/**

packages/types/src/clerk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,9 +2055,8 @@ export type SignUpButtonProps = (SignUpButtonPropsModal | ButtonPropsRedirect) &
20552055
export type TaskSelectOrganizationProps = {
20562056
/**
20572057
* Full URL or path to navigate to after successfully resolving all tasks
2058-
* @default undefined
20592058
*/
2060-
redirectUrlComplete?: string;
2059+
redirectUrlComplete: string;
20612060
appearance?: TaskSelectOrganizationTheme;
20622061
};
20632062

@@ -2131,8 +2130,9 @@ export interface AuthenticateWithGoogleOneTapParams {
21312130
export interface __internal_NavigateToTaskIfAvailableParams {
21322131
/**
21332132
* Full URL or path to navigate to after successfully resolving all tasks
2133+
* @default undefined
21342134
*/
2135-
redirectUrlComplete: string;
2135+
redirectUrlComplete?: string;
21362136
}
21372137

21382138
export interface LoadedClerk extends Clerk {

0 commit comments

Comments
 (0)