@clerk/react 6.3.0-snapshot.v20260413174426 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-GGY2FIEK.mjs → chunk-A7DRZKIX.mjs} +1 -23
- package/dist/chunk-A7DRZKIX.mjs.map +1 -0
- package/dist/{chunk-4CFDPNXP.mjs → chunk-YD67K53M.mjs} +3 -3
- package/dist/experimental.js +0 -21
- package/dist/experimental.js.map +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/index.d.mts +157 -5
- package/dist/index.d.ts +157 -5
- package/dist/index.js +1 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -24
- package/dist/internal.js.map +1 -1
- package/dist/internal.mjs +2 -4
- package/dist/internal.mjs.map +1 -1
- package/dist/useAuth-BYiDKD-3.d.mts +195 -0
- package/dist/useAuth-DcwU7ADV.d.ts +195 -0
- package/package.json +4 -4
- package/dist/chunk-GGY2FIEK.mjs.map +0 -1
- package/dist/useAuth-BcueoHKe.d.ts +0 -351
- package/dist/useAuth-DzI3xk4K.d.mts +0 -351
- /package/dist/{chunk-4CFDPNXP.mjs.map → chunk-YD67K53M.mjs.map} +0 -0
package/dist/experimental.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme, Ui } from '@clerk/ui/internal';
|
|
2
|
-
export { A as APIKeys, i as AuthenticateWithRedirectCallback, j as ClerkDegraded, k as ClerkFailed, l as ClerkLoaded, m as ClerkLoading, C as CreateOrganization, G as GoogleOneTap, a as OrganizationList, b as OrganizationProfile, c as OrganizationSwitcher, P as PricingTable, R as RedirectToCreateOrganization, n as RedirectToOrganizationProfile, o as RedirectToSignIn, p as RedirectToSignUp, q as RedirectToTasks, r as RedirectToUserProfile, s as Show, t as ShowProps, S as SignIn, d as SignUp, T as TaskChooseOrganization, e as TaskResetPassword, f as TaskSetupMFA, U as UserAvatar, g as UserButton, h as UserProfile, W as Waitlist, v as useAuth } from './useAuth-DzI3xk4K.mjs';
|
|
3
2
|
import * as _clerk_shared_types from '@clerk/shared/types';
|
|
4
|
-
import { SignInButtonProps, SignOutOptions, SignUpButtonProps, SetActiveNavigate, SignInResource, CreateEmailLinkFlowReturn, SignInStartEmailLinkFlowParams, SignUpResource, StartEmailLinkFlowParams, EmailAddressResource, SignInSignalValue, SignUpSignalValue, WaitlistSignalValue } from '@clerk/shared/types';
|
|
3
|
+
import { Without, APIKeysProps, CreateOrganizationProps, OrganizationListProps, OrganizationProfileProps, OrganizationSwitcherProps, SignInProps, SignUpProps, TaskChooseOrganizationProps, TaskResetPasswordProps, TaskSetupMFAProps, UserAvatarProps, UserButtonProps, UserProfileProps, WaitlistProps, SignInButtonProps, SignOutOptions, SignUpButtonProps, SetActiveNavigate, SignInResource, CreateEmailLinkFlowReturn, SignInStartEmailLinkFlowParams, SignUpResource, StartEmailLinkFlowParams, EmailAddressResource, SignInSignalValue, SignUpSignalValue, WaitlistSignalValue } from '@clerk/shared/types';
|
|
5
4
|
export { BrowserClerk, BrowserClerkConstructor, ClerkProp, HeadlessBrowserClerk, HeadlessBrowserClerkConstructor, IsomorphicClerkOptions } from '@clerk/shared/types';
|
|
6
|
-
import React, { ReactNode } from 'react';
|
|
7
|
-
import { WithClerkProp, SignInWithMetamaskButtonProps, ClerkProviderProps } from './types.mjs';
|
|
5
|
+
import React, { ReactNode, PropsWithChildren } from 'react';
|
|
6
|
+
import { WithClerkProp, OrganizationProfilePageProps, OrganizationProfileLinkProps, UserProfilePageProps, UserProfileLinkProps, UserButtonActionProps, UserButtonLinkProps, SignInWithMetamaskButtonProps, ClerkProviderProps } from './types.mjs';
|
|
7
|
+
export { A as AuthenticateWithRedirectCallback, C as ClerkDegraded, a as ClerkFailed, b as ClerkLoaded, c as ClerkLoading, R as RedirectToCreateOrganization, d as RedirectToOrganizationProfile, e as RedirectToSignIn, f as RedirectToSignUp, g as RedirectToTasks, h as RedirectToUserProfile, S as Show, i as ShowProps, j as useAuth } from './useAuth-BYiDKD-3.mjs';
|
|
8
8
|
export { UNSAFE_PortalProvider, __experimental_CheckoutProvider, __experimental_PaymentElement, __experimental_PaymentElementProvider, __experimental_useCheckout, __experimental_usePaymentElement, useAPIKeys, useClerk, useOrganization, useOrganizationCreationDefaults, useOrganizationList, useReverification, useSession, useSessionList, useUser } from '@clerk/shared/react';
|
|
9
9
|
export { getToken } from '@clerk/shared/getToken';
|
|
10
10
|
import '@clerk/shared/ui';
|
|
@@ -20,6 +20,158 @@ declare global {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
type FallbackProp = {
|
|
24
|
+
/**
|
|
25
|
+
* An optional element to render while the component is mounting.
|
|
26
|
+
*/
|
|
27
|
+
fallback?: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
type UserProfileExportType = typeof _UserProfile & {
|
|
30
|
+
Page: typeof UserProfilePage;
|
|
31
|
+
Link: typeof UserProfileLink;
|
|
32
|
+
};
|
|
33
|
+
type UserButtonExportType = typeof _UserButton & {
|
|
34
|
+
UserProfilePage: typeof UserProfilePage;
|
|
35
|
+
UserProfileLink: typeof UserProfileLink;
|
|
36
|
+
MenuItems: typeof MenuItems;
|
|
37
|
+
Action: typeof MenuAction;
|
|
38
|
+
Link: typeof MenuLink;
|
|
39
|
+
/**
|
|
40
|
+
* The `<Outlet />` component can be used in conjunction with `asProvider` in order to control rendering
|
|
41
|
+
* of the `<UserButton />` without affecting its configuration or any custom pages that could be mounted
|
|
42
|
+
* @experimental This API is experimental and may change at any moment.
|
|
43
|
+
*/
|
|
44
|
+
__experimental_Outlet: typeof UserButtonOutlet;
|
|
45
|
+
};
|
|
46
|
+
type UserButtonPropsWithoutCustomPages = Without<UserButtonProps, 'userProfileProps' | '__experimental_asStandalone'> & {
|
|
47
|
+
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance' | 'apiKeysProps'>;
|
|
48
|
+
/**
|
|
49
|
+
* Adding `asProvider` will defer rendering until the `<Outlet />` component is mounted.
|
|
50
|
+
*
|
|
51
|
+
* @experimental This API is experimental and may change at any moment.
|
|
52
|
+
* @default undefined
|
|
53
|
+
*/
|
|
54
|
+
__experimental_asProvider?: boolean;
|
|
55
|
+
};
|
|
56
|
+
type OrganizationProfileExportType = typeof _OrganizationProfile & {
|
|
57
|
+
Page: typeof OrganizationProfilePage;
|
|
58
|
+
Link: typeof OrganizationProfileLink;
|
|
59
|
+
};
|
|
60
|
+
type OrganizationSwitcherExportType = typeof _OrganizationSwitcher & {
|
|
61
|
+
OrganizationProfilePage: typeof OrganizationProfilePage;
|
|
62
|
+
OrganizationProfileLink: typeof OrganizationProfileLink;
|
|
63
|
+
/**
|
|
64
|
+
* The `<Outlet />` component can be used in conjunction with `asProvider` in order to control rendering
|
|
65
|
+
* of the `<OrganizationSwitcher />` without affecting its configuration or any custom pages that could be mounted
|
|
66
|
+
*
|
|
67
|
+
* @experimental This API is experimental and may change at any moment.
|
|
68
|
+
*/
|
|
69
|
+
__experimental_Outlet: typeof OrganizationSwitcherOutlet;
|
|
70
|
+
};
|
|
71
|
+
type OrganizationSwitcherPropsWithoutCustomPages = Without<OrganizationSwitcherProps, 'organizationProfileProps' | '__experimental_asStandalone'> & {
|
|
72
|
+
organizationProfileProps?: Pick<OrganizationProfileProps, 'appearance'>;
|
|
73
|
+
/**
|
|
74
|
+
* Adding `asProvider` will defer rendering until the `<Outlet />` component is mounted.
|
|
75
|
+
*
|
|
76
|
+
* @experimental This API is experimental and may change at any moment.
|
|
77
|
+
* @default undefined
|
|
78
|
+
*/
|
|
79
|
+
__experimental_asProvider?: boolean;
|
|
80
|
+
};
|
|
81
|
+
declare const SignIn: {
|
|
82
|
+
(props: Without<WithClerkProp<SignInProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
declare const SignUp: {
|
|
86
|
+
(props: Without<WithClerkProp<SignUpProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
87
|
+
displayName: string;
|
|
88
|
+
};
|
|
89
|
+
declare function UserProfilePage({ children }: PropsWithChildren<UserProfilePageProps>): React.JSX.Element;
|
|
90
|
+
declare function UserProfileLink({ children }: PropsWithChildren<UserProfileLinkProps>): React.JSX.Element;
|
|
91
|
+
declare const _UserProfile: {
|
|
92
|
+
(props: Without<WithClerkProp<PropsWithChildren<Without<UserProfileProps, "customPages">> & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
93
|
+
displayName: string;
|
|
94
|
+
};
|
|
95
|
+
declare const UserProfile: UserProfileExportType;
|
|
96
|
+
declare const _UserButton: {
|
|
97
|
+
(props: Without<WithClerkProp<PropsWithChildren<UserButtonPropsWithoutCustomPages> & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
98
|
+
displayName: string;
|
|
99
|
+
};
|
|
100
|
+
declare function MenuItems({ children }: PropsWithChildren): React.JSX.Element;
|
|
101
|
+
declare function MenuAction({ children }: PropsWithChildren<UserButtonActionProps>): React.JSX.Element;
|
|
102
|
+
declare function MenuLink({ children }: PropsWithChildren<UserButtonLinkProps>): React.JSX.Element;
|
|
103
|
+
declare function UserButtonOutlet(outletProps: Without<UserButtonProps, 'userProfileProps'>): React.JSX.Element;
|
|
104
|
+
declare const UserButton: UserButtonExportType;
|
|
105
|
+
declare function OrganizationProfilePage({ children }: PropsWithChildren<OrganizationProfilePageProps>): React.JSX.Element;
|
|
106
|
+
declare function OrganizationProfileLink({ children }: PropsWithChildren<OrganizationProfileLinkProps>): React.JSX.Element;
|
|
107
|
+
declare const _OrganizationProfile: {
|
|
108
|
+
(props: Without<WithClerkProp<PropsWithChildren<Without<OrganizationProfileProps, "customPages">> & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
109
|
+
displayName: string;
|
|
110
|
+
};
|
|
111
|
+
declare const OrganizationProfile: OrganizationProfileExportType;
|
|
112
|
+
declare const CreateOrganization: {
|
|
113
|
+
(props: Without<WithClerkProp<CreateOrganizationProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
114
|
+
displayName: string;
|
|
115
|
+
};
|
|
116
|
+
declare const _OrganizationSwitcher: {
|
|
117
|
+
(props: Without<WithClerkProp<PropsWithChildren<OrganizationSwitcherPropsWithoutCustomPages> & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
118
|
+
displayName: string;
|
|
119
|
+
};
|
|
120
|
+
declare function OrganizationSwitcherOutlet(outletProps: Without<OrganizationSwitcherProps, 'organizationProfileProps'>): React.JSX.Element;
|
|
121
|
+
declare const OrganizationSwitcher: OrganizationSwitcherExportType;
|
|
122
|
+
declare const OrganizationList: {
|
|
123
|
+
(props: Without<WithClerkProp<OrganizationListProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
124
|
+
displayName: string;
|
|
125
|
+
};
|
|
126
|
+
declare const GoogleOneTap: {
|
|
127
|
+
(props: Without<WithClerkProp<_clerk_shared_types.SignInForceRedirectUrl & _clerk_shared_types.SignUpForceRedirectUrl & {
|
|
128
|
+
cancelOnTapOutside?: boolean;
|
|
129
|
+
itpSupport?: boolean;
|
|
130
|
+
fedCmSupport?: boolean;
|
|
131
|
+
appearance?: _clerk_shared_types.ClerkAppearanceTheme;
|
|
132
|
+
} & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
133
|
+
displayName: string;
|
|
134
|
+
};
|
|
135
|
+
declare const Waitlist: {
|
|
136
|
+
(props: Without<WithClerkProp<WaitlistProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
137
|
+
displayName: string;
|
|
138
|
+
};
|
|
139
|
+
declare const PricingTable: {
|
|
140
|
+
(props: Without<WithClerkProp<{
|
|
141
|
+
for?: _clerk_shared_types.ForPayerType;
|
|
142
|
+
appearance?: _clerk_shared_types.ClerkAppearanceTheme;
|
|
143
|
+
checkoutProps?: Pick<_clerk_shared_types.__internal_CheckoutProps, "appearance">;
|
|
144
|
+
} & {
|
|
145
|
+
ctaPosition?: "top" | "bottom";
|
|
146
|
+
collapseFeatures?: boolean;
|
|
147
|
+
newSubscriptionRedirectUrl?: string;
|
|
148
|
+
} & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
149
|
+
displayName: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* @experimental This component is in early access and may change in future releases.
|
|
153
|
+
*/
|
|
154
|
+
declare const APIKeys: {
|
|
155
|
+
(props: Without<WithClerkProp<APIKeysProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
156
|
+
displayName: string;
|
|
157
|
+
};
|
|
158
|
+
declare const UserAvatar: {
|
|
159
|
+
(props: Without<WithClerkProp<UserAvatarProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
160
|
+
displayName: string;
|
|
161
|
+
};
|
|
162
|
+
declare const TaskChooseOrganization: {
|
|
163
|
+
(props: Without<WithClerkProp<TaskChooseOrganizationProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
164
|
+
displayName: string;
|
|
165
|
+
};
|
|
166
|
+
declare const TaskResetPassword: {
|
|
167
|
+
(props: Without<WithClerkProp<TaskResetPasswordProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
168
|
+
displayName: string;
|
|
169
|
+
};
|
|
170
|
+
declare const TaskSetupMFA: {
|
|
171
|
+
(props: Without<WithClerkProp<TaskSetupMFAProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
172
|
+
displayName: string;
|
|
173
|
+
};
|
|
174
|
+
|
|
23
175
|
declare const SignInButton: {
|
|
24
176
|
(props: _clerk_shared_types.Without<WithClerkProp<React.PropsWithChildren<SignInButtonProps>>, "clerk">): React.JSX.Element | null;
|
|
25
177
|
displayName: string;
|
|
@@ -159,4 +311,4 @@ declare const useSignUp: () => SignUpSignalValue;
|
|
|
159
311
|
*/
|
|
160
312
|
declare function useWaitlist(): WaitlistSignalValue;
|
|
161
313
|
|
|
162
|
-
export { ClerkProvider, ClerkProviderProps, HandleSSOCallback, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUpButton, useEmailLink, useSignIn, useSignUp, useWaitlist };
|
|
314
|
+
export { APIKeys, ClerkProvider, ClerkProviderProps, CreateOrganization, GoogleOneTap, HandleSSOCallback, OrganizationList, OrganizationProfile, OrganizationSwitcher, PricingTable, SignIn, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUp, SignUpButton, TaskChooseOrganization, TaskResetPassword, TaskSetupMFA, UserAvatar, UserButton, UserProfile, Waitlist, useEmailLink, useSignIn, useSignUp, useWaitlist };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme, Ui } from '@clerk/ui/internal';
|
|
2
|
-
export { A as APIKeys, i as AuthenticateWithRedirectCallback, j as ClerkDegraded, k as ClerkFailed, l as ClerkLoaded, m as ClerkLoading, C as CreateOrganization, G as GoogleOneTap, a as OrganizationList, b as OrganizationProfile, c as OrganizationSwitcher, P as PricingTable, R as RedirectToCreateOrganization, n as RedirectToOrganizationProfile, o as RedirectToSignIn, p as RedirectToSignUp, q as RedirectToTasks, r as RedirectToUserProfile, s as Show, t as ShowProps, S as SignIn, d as SignUp, T as TaskChooseOrganization, e as TaskResetPassword, f as TaskSetupMFA, U as UserAvatar, g as UserButton, h as UserProfile, W as Waitlist, v as useAuth } from './useAuth-BcueoHKe.js';
|
|
3
2
|
import * as _clerk_shared_types from '@clerk/shared/types';
|
|
4
|
-
import { SignInButtonProps, SignOutOptions, SignUpButtonProps, SetActiveNavigate, SignInResource, CreateEmailLinkFlowReturn, SignInStartEmailLinkFlowParams, SignUpResource, StartEmailLinkFlowParams, EmailAddressResource, SignInSignalValue, SignUpSignalValue, WaitlistSignalValue } from '@clerk/shared/types';
|
|
3
|
+
import { Without, APIKeysProps, CreateOrganizationProps, OrganizationListProps, OrganizationProfileProps, OrganizationSwitcherProps, SignInProps, SignUpProps, TaskChooseOrganizationProps, TaskResetPasswordProps, TaskSetupMFAProps, UserAvatarProps, UserButtonProps, UserProfileProps, WaitlistProps, SignInButtonProps, SignOutOptions, SignUpButtonProps, SetActiveNavigate, SignInResource, CreateEmailLinkFlowReturn, SignInStartEmailLinkFlowParams, SignUpResource, StartEmailLinkFlowParams, EmailAddressResource, SignInSignalValue, SignUpSignalValue, WaitlistSignalValue } from '@clerk/shared/types';
|
|
5
4
|
export { BrowserClerk, BrowserClerkConstructor, ClerkProp, HeadlessBrowserClerk, HeadlessBrowserClerkConstructor, IsomorphicClerkOptions } from '@clerk/shared/types';
|
|
6
|
-
import React, { ReactNode } from 'react';
|
|
7
|
-
import { WithClerkProp, SignInWithMetamaskButtonProps, ClerkProviderProps } from './types.js';
|
|
5
|
+
import React, { ReactNode, PropsWithChildren } from 'react';
|
|
6
|
+
import { WithClerkProp, OrganizationProfilePageProps, OrganizationProfileLinkProps, UserProfilePageProps, UserProfileLinkProps, UserButtonActionProps, UserButtonLinkProps, SignInWithMetamaskButtonProps, ClerkProviderProps } from './types.js';
|
|
7
|
+
export { A as AuthenticateWithRedirectCallback, C as ClerkDegraded, a as ClerkFailed, b as ClerkLoaded, c as ClerkLoading, R as RedirectToCreateOrganization, d as RedirectToOrganizationProfile, e as RedirectToSignIn, f as RedirectToSignUp, g as RedirectToTasks, h as RedirectToUserProfile, S as Show, i as ShowProps, j as useAuth } from './useAuth-DcwU7ADV.js';
|
|
8
8
|
export { UNSAFE_PortalProvider, __experimental_CheckoutProvider, __experimental_PaymentElement, __experimental_PaymentElementProvider, __experimental_useCheckout, __experimental_usePaymentElement, useAPIKeys, useClerk, useOrganization, useOrganizationCreationDefaults, useOrganizationList, useReverification, useSession, useSessionList, useUser } from '@clerk/shared/react';
|
|
9
9
|
export { getToken } from '@clerk/shared/getToken';
|
|
10
10
|
import '@clerk/shared/ui';
|
|
@@ -20,6 +20,158 @@ declare global {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
type FallbackProp = {
|
|
24
|
+
/**
|
|
25
|
+
* An optional element to render while the component is mounting.
|
|
26
|
+
*/
|
|
27
|
+
fallback?: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
type UserProfileExportType = typeof _UserProfile & {
|
|
30
|
+
Page: typeof UserProfilePage;
|
|
31
|
+
Link: typeof UserProfileLink;
|
|
32
|
+
};
|
|
33
|
+
type UserButtonExportType = typeof _UserButton & {
|
|
34
|
+
UserProfilePage: typeof UserProfilePage;
|
|
35
|
+
UserProfileLink: typeof UserProfileLink;
|
|
36
|
+
MenuItems: typeof MenuItems;
|
|
37
|
+
Action: typeof MenuAction;
|
|
38
|
+
Link: typeof MenuLink;
|
|
39
|
+
/**
|
|
40
|
+
* The `<Outlet />` component can be used in conjunction with `asProvider` in order to control rendering
|
|
41
|
+
* of the `<UserButton />` without affecting its configuration or any custom pages that could be mounted
|
|
42
|
+
* @experimental This API is experimental and may change at any moment.
|
|
43
|
+
*/
|
|
44
|
+
__experimental_Outlet: typeof UserButtonOutlet;
|
|
45
|
+
};
|
|
46
|
+
type UserButtonPropsWithoutCustomPages = Without<UserButtonProps, 'userProfileProps' | '__experimental_asStandalone'> & {
|
|
47
|
+
userProfileProps?: Pick<UserProfileProps, 'additionalOAuthScopes' | 'appearance' | 'apiKeysProps'>;
|
|
48
|
+
/**
|
|
49
|
+
* Adding `asProvider` will defer rendering until the `<Outlet />` component is mounted.
|
|
50
|
+
*
|
|
51
|
+
* @experimental This API is experimental and may change at any moment.
|
|
52
|
+
* @default undefined
|
|
53
|
+
*/
|
|
54
|
+
__experimental_asProvider?: boolean;
|
|
55
|
+
};
|
|
56
|
+
type OrganizationProfileExportType = typeof _OrganizationProfile & {
|
|
57
|
+
Page: typeof OrganizationProfilePage;
|
|
58
|
+
Link: typeof OrganizationProfileLink;
|
|
59
|
+
};
|
|
60
|
+
type OrganizationSwitcherExportType = typeof _OrganizationSwitcher & {
|
|
61
|
+
OrganizationProfilePage: typeof OrganizationProfilePage;
|
|
62
|
+
OrganizationProfileLink: typeof OrganizationProfileLink;
|
|
63
|
+
/**
|
|
64
|
+
* The `<Outlet />` component can be used in conjunction with `asProvider` in order to control rendering
|
|
65
|
+
* of the `<OrganizationSwitcher />` without affecting its configuration or any custom pages that could be mounted
|
|
66
|
+
*
|
|
67
|
+
* @experimental This API is experimental and may change at any moment.
|
|
68
|
+
*/
|
|
69
|
+
__experimental_Outlet: typeof OrganizationSwitcherOutlet;
|
|
70
|
+
};
|
|
71
|
+
type OrganizationSwitcherPropsWithoutCustomPages = Without<OrganizationSwitcherProps, 'organizationProfileProps' | '__experimental_asStandalone'> & {
|
|
72
|
+
organizationProfileProps?: Pick<OrganizationProfileProps, 'appearance'>;
|
|
73
|
+
/**
|
|
74
|
+
* Adding `asProvider` will defer rendering until the `<Outlet />` component is mounted.
|
|
75
|
+
*
|
|
76
|
+
* @experimental This API is experimental and may change at any moment.
|
|
77
|
+
* @default undefined
|
|
78
|
+
*/
|
|
79
|
+
__experimental_asProvider?: boolean;
|
|
80
|
+
};
|
|
81
|
+
declare const SignIn: {
|
|
82
|
+
(props: Without<WithClerkProp<SignInProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
declare const SignUp: {
|
|
86
|
+
(props: Without<WithClerkProp<SignUpProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
87
|
+
displayName: string;
|
|
88
|
+
};
|
|
89
|
+
declare function UserProfilePage({ children }: PropsWithChildren<UserProfilePageProps>): React.JSX.Element;
|
|
90
|
+
declare function UserProfileLink({ children }: PropsWithChildren<UserProfileLinkProps>): React.JSX.Element;
|
|
91
|
+
declare const _UserProfile: {
|
|
92
|
+
(props: Without<WithClerkProp<PropsWithChildren<Without<UserProfileProps, "customPages">> & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
93
|
+
displayName: string;
|
|
94
|
+
};
|
|
95
|
+
declare const UserProfile: UserProfileExportType;
|
|
96
|
+
declare const _UserButton: {
|
|
97
|
+
(props: Without<WithClerkProp<PropsWithChildren<UserButtonPropsWithoutCustomPages> & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
98
|
+
displayName: string;
|
|
99
|
+
};
|
|
100
|
+
declare function MenuItems({ children }: PropsWithChildren): React.JSX.Element;
|
|
101
|
+
declare function MenuAction({ children }: PropsWithChildren<UserButtonActionProps>): React.JSX.Element;
|
|
102
|
+
declare function MenuLink({ children }: PropsWithChildren<UserButtonLinkProps>): React.JSX.Element;
|
|
103
|
+
declare function UserButtonOutlet(outletProps: Without<UserButtonProps, 'userProfileProps'>): React.JSX.Element;
|
|
104
|
+
declare const UserButton: UserButtonExportType;
|
|
105
|
+
declare function OrganizationProfilePage({ children }: PropsWithChildren<OrganizationProfilePageProps>): React.JSX.Element;
|
|
106
|
+
declare function OrganizationProfileLink({ children }: PropsWithChildren<OrganizationProfileLinkProps>): React.JSX.Element;
|
|
107
|
+
declare const _OrganizationProfile: {
|
|
108
|
+
(props: Without<WithClerkProp<PropsWithChildren<Without<OrganizationProfileProps, "customPages">> & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
109
|
+
displayName: string;
|
|
110
|
+
};
|
|
111
|
+
declare const OrganizationProfile: OrganizationProfileExportType;
|
|
112
|
+
declare const CreateOrganization: {
|
|
113
|
+
(props: Without<WithClerkProp<CreateOrganizationProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
114
|
+
displayName: string;
|
|
115
|
+
};
|
|
116
|
+
declare const _OrganizationSwitcher: {
|
|
117
|
+
(props: Without<WithClerkProp<PropsWithChildren<OrganizationSwitcherPropsWithoutCustomPages> & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
118
|
+
displayName: string;
|
|
119
|
+
};
|
|
120
|
+
declare function OrganizationSwitcherOutlet(outletProps: Without<OrganizationSwitcherProps, 'organizationProfileProps'>): React.JSX.Element;
|
|
121
|
+
declare const OrganizationSwitcher: OrganizationSwitcherExportType;
|
|
122
|
+
declare const OrganizationList: {
|
|
123
|
+
(props: Without<WithClerkProp<OrganizationListProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
124
|
+
displayName: string;
|
|
125
|
+
};
|
|
126
|
+
declare const GoogleOneTap: {
|
|
127
|
+
(props: Without<WithClerkProp<_clerk_shared_types.SignInForceRedirectUrl & _clerk_shared_types.SignUpForceRedirectUrl & {
|
|
128
|
+
cancelOnTapOutside?: boolean;
|
|
129
|
+
itpSupport?: boolean;
|
|
130
|
+
fedCmSupport?: boolean;
|
|
131
|
+
appearance?: _clerk_shared_types.ClerkAppearanceTheme;
|
|
132
|
+
} & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
133
|
+
displayName: string;
|
|
134
|
+
};
|
|
135
|
+
declare const Waitlist: {
|
|
136
|
+
(props: Without<WithClerkProp<WaitlistProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
137
|
+
displayName: string;
|
|
138
|
+
};
|
|
139
|
+
declare const PricingTable: {
|
|
140
|
+
(props: Without<WithClerkProp<{
|
|
141
|
+
for?: _clerk_shared_types.ForPayerType;
|
|
142
|
+
appearance?: _clerk_shared_types.ClerkAppearanceTheme;
|
|
143
|
+
checkoutProps?: Pick<_clerk_shared_types.__internal_CheckoutProps, "appearance">;
|
|
144
|
+
} & {
|
|
145
|
+
ctaPosition?: "top" | "bottom";
|
|
146
|
+
collapseFeatures?: boolean;
|
|
147
|
+
newSubscriptionRedirectUrl?: string;
|
|
148
|
+
} & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
149
|
+
displayName: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* @experimental This component is in early access and may change in future releases.
|
|
153
|
+
*/
|
|
154
|
+
declare const APIKeys: {
|
|
155
|
+
(props: Without<WithClerkProp<APIKeysProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
156
|
+
displayName: string;
|
|
157
|
+
};
|
|
158
|
+
declare const UserAvatar: {
|
|
159
|
+
(props: Without<WithClerkProp<UserAvatarProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
160
|
+
displayName: string;
|
|
161
|
+
};
|
|
162
|
+
declare const TaskChooseOrganization: {
|
|
163
|
+
(props: Without<WithClerkProp<TaskChooseOrganizationProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
164
|
+
displayName: string;
|
|
165
|
+
};
|
|
166
|
+
declare const TaskResetPassword: {
|
|
167
|
+
(props: Without<WithClerkProp<TaskResetPasswordProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
168
|
+
displayName: string;
|
|
169
|
+
};
|
|
170
|
+
declare const TaskSetupMFA: {
|
|
171
|
+
(props: Without<WithClerkProp<TaskSetupMFAProps & FallbackProp>, "clerk">): React.JSX.Element | null;
|
|
172
|
+
displayName: string;
|
|
173
|
+
};
|
|
174
|
+
|
|
23
175
|
declare const SignInButton: {
|
|
24
176
|
(props: _clerk_shared_types.Without<WithClerkProp<React.PropsWithChildren<SignInButtonProps>>, "clerk">): React.JSX.Element | null;
|
|
25
177
|
displayName: string;
|
|
@@ -159,4 +311,4 @@ declare const useSignUp: () => SignUpSignalValue;
|
|
|
159
311
|
*/
|
|
160
312
|
declare function useWaitlist(): WaitlistSignalValue;
|
|
161
313
|
|
|
162
|
-
export { ClerkProvider, ClerkProviderProps, HandleSSOCallback, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUpButton, useEmailLink, useSignIn, useSignUp, useWaitlist };
|
|
314
|
+
export { APIKeys, ClerkProvider, ClerkProviderProps, CreateOrganization, GoogleOneTap, HandleSSOCallback, OrganizationList, OrganizationProfile, OrganizationSwitcher, PricingTable, SignIn, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUp, SignUpButton, TaskChooseOrganization, TaskResetPassword, TaskSetupMFA, UserAvatar, UserButton, UserProfile, Waitlist, useEmailLink, useSignIn, useSignUp, useWaitlist };
|
package/dist/index.js
CHANGED
|
@@ -1143,27 +1143,6 @@ var APIKeys = withClerk(
|
|
|
1143
1143
|
},
|
|
1144
1144
|
{ component: "ApiKeys", renderWhileLoading: true }
|
|
1145
1145
|
);
|
|
1146
|
-
var OAuthConsent = withClerk(
|
|
1147
|
-
({ clerk, component, fallback, ...props }) => {
|
|
1148
|
-
const mountingStatus = useWaitForComponentMount(component);
|
|
1149
|
-
const shouldShowFallback = mountingStatus === "rendering" || !clerk.loaded;
|
|
1150
|
-
const rendererRootProps = {
|
|
1151
|
-
...shouldShowFallback && fallback && { style: { display: "none" } }
|
|
1152
|
-
};
|
|
1153
|
-
return /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, shouldShowFallback && fallback, clerk.loaded && /* @__PURE__ */ import_react14.default.createElement(
|
|
1154
|
-
ClerkHostRenderer,
|
|
1155
|
-
{
|
|
1156
|
-
component,
|
|
1157
|
-
mount: clerk.__internal_mountOAuthConsent,
|
|
1158
|
-
unmount: clerk.__internal_unmountOAuthConsent,
|
|
1159
|
-
updateProps: clerk.__internal_updateProps,
|
|
1160
|
-
props,
|
|
1161
|
-
rootProps: rendererRootProps
|
|
1162
|
-
}
|
|
1163
|
-
));
|
|
1164
|
-
},
|
|
1165
|
-
{ component: "OAuthConsent", renderWhileLoading: true }
|
|
1166
|
-
);
|
|
1167
1146
|
var UserAvatar = withClerk(
|
|
1168
1147
|
({ clerk, component, fallback, ...props }) => {
|
|
1169
1148
|
const mountingStatus = useWaitForComponentMount(component);
|
|
@@ -2327,7 +2306,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
2327
2306
|
}
|
|
2328
2307
|
var SDK_METADATA = {
|
|
2329
2308
|
name: "@clerk/react",
|
|
2330
|
-
version: "6.3.0
|
|
2309
|
+
version: "6.3.0",
|
|
2331
2310
|
environment: process.env.NODE_ENV
|
|
2332
2311
|
};
|
|
2333
2312
|
var _status, _domain, _proxyUrl, _publishableKey, _eventBus, _stateProxy, _instance, _IsomorphicClerk_instances, waitForClerkJS_fn;
|