@clerk/react 6.9.0 → 6.9.1-canary.v20260610190754
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/ClerkProvider-9lxHp9j5.cjs +1623 -0
- package/dist/ClerkProvider-9lxHp9j5.cjs.map +1 -0
- package/dist/ClerkProvider-LQpPtmNL.mjs +1533 -0
- package/dist/ClerkProvider-LQpPtmNL.mjs.map +1 -0
- package/dist/errors.cjs +69 -0
- package/dist/errors.d.cts +2 -0
- package/dist/errors.d.mts +2 -1
- package/dist/errors.mjs +2 -29
- package/dist/experimental.cjs +270 -0
- package/dist/experimental.cjs.map +1 -0
- package/dist/{experimental.d.ts → experimental.d.cts} +18 -18
- package/dist/experimental.d.mts +18 -18
- package/dist/experimental.mjs +201 -165
- package/dist/experimental.mjs.map +1 -1
- package/dist/hooks-BiY5Zgpp.mjs +1369 -0
- package/dist/hooks-BiY5Zgpp.mjs.map +1 -0
- package/dist/hooks-CBghYU21.cjs +1606 -0
- package/dist/hooks-CBghYU21.cjs.map +1 -0
- package/dist/index.cjs +447 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +345 -0
- package/dist/index.d.mts +183 -157
- package/dist/index.mjs +285 -380
- package/dist/index.mjs.map +1 -1
- package/dist/internal.cjs +107 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +51 -0
- package/dist/internal.d.mts +24 -26
- package/dist/internal.mjs +39 -73
- package/dist/internal.mjs.map +1 -1
- package/dist/legacy.cjs +134 -0
- package/dist/legacy.cjs.map +1 -0
- package/dist/{legacy.d.ts → legacy.d.cts} +6 -3
- package/dist/legacy.d.mts +6 -3
- package/dist/legacy.mjs +126 -42
- package/dist/legacy.mjs.map +1 -1
- package/dist/types-Bwenmt7y.d.cts +10951 -0
- package/dist/types-CiIhevkA.d.mts +10951 -0
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +3 -0
- package/dist/types.d.mts +3 -109
- package/dist/types.mjs +1 -2
- package/dist/useAssertWrappedByClerkProvider-Cm0djUcB.cjs +52 -0
- package/dist/useAssertWrappedByClerkProvider-Cm0djUcB.cjs.map +1 -0
- package/dist/useAssertWrappedByClerkProvider-GaNwZpWo.mjs +29 -0
- package/dist/useAssertWrappedByClerkProvider-GaNwZpWo.mjs.map +1 -0
- package/dist/{useAuth-Dlg_G1_7.d.mts → useAuth-BK5Y4htK.d.mts} +58 -39
- package/dist/{useAuth-Cv6iRjL9.d.ts → useAuth-BMxaWktj.d.cts} +58 -39
- package/package.json +18 -18
- package/dist/chunk-E5QRIS4Z.mjs +0 -20
- package/dist/chunk-E5QRIS4Z.mjs.map +0 -1
- package/dist/chunk-FQVXBXXF.mjs +0 -1487
- package/dist/chunk-FQVXBXXF.mjs.map +0 -1
- package/dist/chunk-GVGS7DUS.mjs +0 -2097
- package/dist/chunk-GVGS7DUS.mjs.map +0 -1
- package/dist/chunk-RQWALB2R.mjs +0 -26
- package/dist/chunk-RQWALB2R.mjs.map +0 -1
- package/dist/errors.d.ts +0 -1
- package/dist/errors.js +0 -51
- package/dist/errors.js.map +0 -1
- package/dist/errors.mjs.map +0 -1
- package/dist/experimental.js +0 -1505
- package/dist/experimental.js.map +0 -1
- package/dist/index.d.ts +0 -319
- package/dist/index.js +0 -3919
- package/dist/index.js.map +0 -1
- package/dist/internal.d.ts +0 -53
- package/dist/internal.js +0 -3339
- package/dist/internal.js.map +0 -1
- package/dist/legacy.js +0 -90
- package/dist/legacy.js.map +0 -1
- package/dist/types.d.ts +0 -109
- package/dist/types.js +0 -19
- package/dist/types.js.map +0 -1
- package/dist/types.mjs.map +0 -1
package/dist/types.cjs
ADDED
|
File without changes
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as OrganizationProfileLinkProps, c as RedirectToSignUpProps, f as UserButtonActionProps, g as WithClerkProp, h as UserProfilePageProps, i as OpenProps, l as RedirectToTasksProps, m as UserProfileLinkProps, n as CustomPortalsRendererProps, o as OrganizationProfilePageProps, p as UserButtonLinkProps, r as MountProps, s as RedirectToSignInProps, t as ClerkProviderProps, u as SignInWithMetamaskButtonProps } from "./types-Bwenmt7y.cjs";
|
|
2
|
+
export type * from "@clerk/shared/types";
|
|
3
|
+
export type { ClerkProviderProps, CustomPortalsRendererProps, MountProps, OpenProps, OrganizationProfileLinkProps, OrganizationProfilePageProps, RedirectToSignInProps, RedirectToSignUpProps, RedirectToTasksProps, SignInWithMetamaskButtonProps, UserButtonActionProps, UserButtonLinkProps, UserProfileLinkProps, UserProfilePageProps, WithClerkProp };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,109 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export * from
|
|
3
|
-
|
|
4
|
-
import { Ui, ExtractAppearanceType, Appearance } from '@clerk/ui/internal';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
declare global {
|
|
8
|
-
interface Window {
|
|
9
|
-
__clerk_publishable_key?: string;
|
|
10
|
-
__clerk_proxy_url?: Clerk['proxyUrl'];
|
|
11
|
-
__clerk_domain?: Clerk['domain'];
|
|
12
|
-
__internal_ClerkUICtor?: ClerkUIConstructor;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @interface
|
|
17
|
-
*/
|
|
18
|
-
type ClerkProviderProps<TUi extends Ui = Ui> = Omit<IsomorphicClerkOptions, 'appearance' | keyof InternalClerkScriptProps> & {
|
|
19
|
-
children: React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Provide an initial state of the Clerk client during server-side rendering. You don't need to set this value yourself unless you're [developing an SDK](https://clerk.com/docs/guides/development/sdk-development/overview).
|
|
22
|
-
*/
|
|
23
|
-
initialState?: InitialState;
|
|
24
|
-
/**
|
|
25
|
-
* Indicates to silently fail the initialization process when the publishable keys is not provided, instead of throwing an error.
|
|
26
|
-
* @default false
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
__internal_bypassMissingPublishableKey?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* An object to style your components. Will only affect [Clerk Components](https://clerk.com/docs/reference/components/overview) and not [Account Portal](https://clerk.com/docs/guides/account-portal/overview) pages.
|
|
32
|
-
*/
|
|
33
|
-
appearance?: ExtractAppearanceType<TUi, Appearance>;
|
|
34
|
-
/**
|
|
35
|
-
* An object to use the bundled Clerk UI instead of loading from CDN.
|
|
36
|
-
* Import `ui` from `@clerk/ui` and pass it here to bundle the UI with your application.
|
|
37
|
-
* When omitted, UI is loaded from Clerk's CDN.
|
|
38
|
-
* Note: When `ui` is used, appearance is automatically typed based on the specific UI version.
|
|
39
|
-
*/
|
|
40
|
-
ui?: TUi;
|
|
41
|
-
};
|
|
42
|
-
type WithClerkProp<T = unknown> = T & {
|
|
43
|
-
clerk: LoadedClerk;
|
|
44
|
-
component?: string;
|
|
45
|
-
getContainer?: () => HTMLElement | null;
|
|
46
|
-
};
|
|
47
|
-
interface CustomPortalsRendererProps {
|
|
48
|
-
customPagesPortals?: any[];
|
|
49
|
-
customMenuItemsPortals?: any[];
|
|
50
|
-
}
|
|
51
|
-
interface MountProps {
|
|
52
|
-
mount: (node: HTMLDivElement, props: any) => void;
|
|
53
|
-
unmount: (node: HTMLDivElement) => void;
|
|
54
|
-
updateProps: (props: any) => void;
|
|
55
|
-
props?: any;
|
|
56
|
-
}
|
|
57
|
-
interface OpenProps {
|
|
58
|
-
open: (props: any) => void;
|
|
59
|
-
close: () => void;
|
|
60
|
-
props?: any;
|
|
61
|
-
}
|
|
62
|
-
type SignInWithMetamaskButtonProps = {
|
|
63
|
-
mode?: 'redirect' | 'modal';
|
|
64
|
-
children?: React.ReactNode;
|
|
65
|
-
} & RedirectUrlProp;
|
|
66
|
-
type RedirectToSignInProps = SignInRedirectOptions;
|
|
67
|
-
type RedirectToSignUpProps = SignUpRedirectOptions;
|
|
68
|
-
type RedirectToTasksProps = TasksRedirectOptions;
|
|
69
|
-
type PageProps<T extends string> = {
|
|
70
|
-
label: string;
|
|
71
|
-
url: string;
|
|
72
|
-
labelIcon: React.ReactNode;
|
|
73
|
-
} | {
|
|
74
|
-
label: T;
|
|
75
|
-
url?: never;
|
|
76
|
-
labelIcon?: never;
|
|
77
|
-
};
|
|
78
|
-
type UserProfilePageProps = PageProps<'account' | 'security' | 'billing' | 'apiKeys'>;
|
|
79
|
-
type UserProfileLinkProps = {
|
|
80
|
-
url: string;
|
|
81
|
-
label: string;
|
|
82
|
-
labelIcon: React.ReactNode;
|
|
83
|
-
};
|
|
84
|
-
type OrganizationProfilePageProps = PageProps<'general' | 'members' | 'billing' | 'apiKeys'>;
|
|
85
|
-
type OrganizationProfileLinkProps = UserProfileLinkProps;
|
|
86
|
-
type ButtonActionProps<T extends string> = {
|
|
87
|
-
label: string;
|
|
88
|
-
labelIcon: React.ReactNode;
|
|
89
|
-
onClick: () => void;
|
|
90
|
-
open?: never;
|
|
91
|
-
} | {
|
|
92
|
-
label: T;
|
|
93
|
-
labelIcon?: never;
|
|
94
|
-
onClick?: never;
|
|
95
|
-
open?: never;
|
|
96
|
-
} | {
|
|
97
|
-
label: string;
|
|
98
|
-
labelIcon: React.ReactNode;
|
|
99
|
-
onClick?: never;
|
|
100
|
-
open: string;
|
|
101
|
-
};
|
|
102
|
-
type UserButtonActionProps = ButtonActionProps<'manageAccount' | 'signOut'>;
|
|
103
|
-
type UserButtonLinkProps = {
|
|
104
|
-
href: string;
|
|
105
|
-
label: string;
|
|
106
|
-
labelIcon: React.ReactNode;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export type { ClerkProviderProps, CustomPortalsRendererProps, MountProps, OpenProps, OrganizationProfileLinkProps, OrganizationProfilePageProps, RedirectToSignInProps, RedirectToSignUpProps, RedirectToTasksProps, SignInWithMetamaskButtonProps, UserButtonActionProps, UserButtonLinkProps, UserProfileLinkProps, UserProfilePageProps, WithClerkProp };
|
|
1
|
+
import { a as OrganizationProfileLinkProps, c as RedirectToSignUpProps, f as UserButtonActionProps, g as WithClerkProp, h as UserProfilePageProps, i as OpenProps, l as RedirectToTasksProps, m as UserProfileLinkProps, n as CustomPortalsRendererProps, o as OrganizationProfilePageProps, p as UserButtonLinkProps, r as MountProps, s as RedirectToSignInProps, t as ClerkProviderProps, u as SignInWithMetamaskButtonProps } from "./types-CiIhevkA.mjs";
|
|
2
|
+
export type * from "@clerk/shared/types";
|
|
3
|
+
export type { ClerkProviderProps, CustomPortalsRendererProps, MountProps, OpenProps, OrganizationProfileLinkProps, OrganizationProfilePageProps, RedirectToSignInProps, RedirectToSignUpProps, RedirectToTasksProps, SignInWithMetamaskButtonProps, UserButtonActionProps, UserButtonLinkProps, UserProfileLinkProps, UserProfilePageProps, WithClerkProp };
|
package/dist/types.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=types.mjs.map
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
let _clerk_shared_error = require("@clerk/shared/error");
|
|
2
|
+
let _clerk_shared_react = require("@clerk/shared/react");
|
|
3
|
+
|
|
4
|
+
//#region src/errors/errorThrower.ts
|
|
5
|
+
const errorThrower = (0, _clerk_shared_error.buildErrorThrower)({ packageName: "@clerk/react" });
|
|
6
|
+
/**
|
|
7
|
+
* Overrides options of the internal errorThrower (eg setting packageName prefix).
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
function setErrorThrowerOptions(options) {
|
|
12
|
+
errorThrower.setMessages(options).setPackageName(options);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/contexts/IsomorphicClerkContext.tsx
|
|
17
|
+
const useIsomorphicClerkContext = _clerk_shared_react.useClerkInstanceContext;
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/hooks/useAssertWrappedByClerkProvider.ts
|
|
21
|
+
const useAssertWrappedByClerkProvider = (source) => {
|
|
22
|
+
(0, _clerk_shared_react.useAssertWrappedByClerkProvider)(() => {
|
|
23
|
+
errorThrower.throwMissingClerkProviderError({ source });
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
Object.defineProperty(exports, 'errorThrower', {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () {
|
|
31
|
+
return errorThrower;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, 'setErrorThrowerOptions', {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () {
|
|
37
|
+
return setErrorThrowerOptions;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, 'useAssertWrappedByClerkProvider', {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () {
|
|
43
|
+
return useAssertWrappedByClerkProvider;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, 'useIsomorphicClerkContext', {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () {
|
|
49
|
+
return useIsomorphicClerkContext;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=useAssertWrappedByClerkProvider-Cm0djUcB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAssertWrappedByClerkProvider-Cm0djUcB.cjs","names":["useClerkInstanceContext"],"sources":["../src/errors/errorThrower.ts","../src/contexts/IsomorphicClerkContext.tsx","../src/hooks/useAssertWrappedByClerkProvider.ts"],"sourcesContent":["import type { ErrorThrowerOptions } from '@clerk/shared/error';\nimport { buildErrorThrower } from '@clerk/shared/error';\n\nconst errorThrower = buildErrorThrower({ packageName: '@clerk/react' });\n\nexport { errorThrower };\n\n/**\n * Overrides options of the internal errorThrower (eg setting packageName prefix).\n *\n * @internal\n */\nexport function setErrorThrowerOptions(options: ErrorThrowerOptions) {\n errorThrower.setMessages(options).setPackageName(options);\n}\n","import { useClerkInstanceContext } from '@clerk/shared/react';\n\nimport type { IsomorphicClerk } from '../isomorphicClerk';\n\nexport const useIsomorphicClerkContext = useClerkInstanceContext as unknown as () => IsomorphicClerk;\n","import { useAssertWrappedByClerkProvider as useSharedAssertWrappedByClerkProvider } from '@clerk/shared/react';\n\nimport { errorThrower } from '../errors/errorThrower';\n\nexport const useAssertWrappedByClerkProvider = (source: string): void => {\n useSharedAssertWrappedByClerkProvider(() => {\n errorThrower.throwMissingClerkProviderError({ source });\n });\n};\n"],"mappings":";;;;AAGA,MAAM,0DAAiC,EAAE,aAAa,eAAe,CAAC;;;;;;AAStE,SAAgB,uBAAuB,SAA8B;CACnE,aAAa,YAAY,OAAO,CAAC,CAAC,eAAe,OAAO;AAC1D;;;;ACVA,MAAa,4BAA4BA;;;;ACAzC,MAAa,mCAAmC,WAAyB;CACvE,+DAA4C;EAC1C,aAAa,+BAA+B,EAAE,OAAO,CAAC;CACxD,CAAC;AACH"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { buildErrorThrower } from "@clerk/shared/error";
|
|
2
|
+
import { useAssertWrappedByClerkProvider, useClerkInstanceContext } from "@clerk/shared/react";
|
|
3
|
+
|
|
4
|
+
//#region src/errors/errorThrower.ts
|
|
5
|
+
const errorThrower = buildErrorThrower({ packageName: "@clerk/react" });
|
|
6
|
+
/**
|
|
7
|
+
* Overrides options of the internal errorThrower (eg setting packageName prefix).
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
function setErrorThrowerOptions(options) {
|
|
12
|
+
errorThrower.setMessages(options).setPackageName(options);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/contexts/IsomorphicClerkContext.tsx
|
|
17
|
+
const useIsomorphicClerkContext = useClerkInstanceContext;
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/hooks/useAssertWrappedByClerkProvider.ts
|
|
21
|
+
const useAssertWrappedByClerkProvider$1 = (source) => {
|
|
22
|
+
useAssertWrappedByClerkProvider(() => {
|
|
23
|
+
errorThrower.throwMissingClerkProviderError({ source });
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { setErrorThrowerOptions as i, useIsomorphicClerkContext as n, errorThrower as r, useAssertWrappedByClerkProvider$1 as t };
|
|
29
|
+
//# sourceMappingURL=useAssertWrappedByClerkProvider-GaNwZpWo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAssertWrappedByClerkProvider-GaNwZpWo.mjs","names":["useAssertWrappedByClerkProvider"],"sources":["../src/errors/errorThrower.ts","../src/contexts/IsomorphicClerkContext.tsx","../src/hooks/useAssertWrappedByClerkProvider.ts"],"sourcesContent":["import type { ErrorThrowerOptions } from '@clerk/shared/error';\nimport { buildErrorThrower } from '@clerk/shared/error';\n\nconst errorThrower = buildErrorThrower({ packageName: '@clerk/react' });\n\nexport { errorThrower };\n\n/**\n * Overrides options of the internal errorThrower (eg setting packageName prefix).\n *\n * @internal\n */\nexport function setErrorThrowerOptions(options: ErrorThrowerOptions) {\n errorThrower.setMessages(options).setPackageName(options);\n}\n","import { useClerkInstanceContext } from '@clerk/shared/react';\n\nimport type { IsomorphicClerk } from '../isomorphicClerk';\n\nexport const useIsomorphicClerkContext = useClerkInstanceContext as unknown as () => IsomorphicClerk;\n","import { useAssertWrappedByClerkProvider as useSharedAssertWrappedByClerkProvider } from '@clerk/shared/react';\n\nimport { errorThrower } from '../errors/errorThrower';\n\nexport const useAssertWrappedByClerkProvider = (source: string): void => {\n useSharedAssertWrappedByClerkProvider(() => {\n errorThrower.throwMissingClerkProviderError({ source });\n });\n};\n"],"mappings":";;;;AAGA,MAAM,eAAe,kBAAkB,EAAE,aAAa,eAAe,CAAC;;;;;;AAStE,SAAgB,uBAAuB,SAA8B;CACnE,aAAa,YAAY,OAAO,CAAC,CAAC,eAAe,OAAO;AAC1D;;;;ACVA,MAAa,4BAA4B;;;;ACAzC,MAAaA,qCAAmC,WAAyB;CACvE,sCAA4C;EAC1C,aAAa,+BAA+B,EAAE,OAAO,CAAC;CACxD,CAAC;AACH"}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { WithClerkProp } from './types.mjs';
|
|
1
|
+
import { g as WithClerkProp } from "./types-CiIhevkA.mjs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { HandleOAuthCallbackParams, PendingSessionOptions, ShowWhenCondition, UseAuthReturn } from "@clerk/shared/types";
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
//#region src/components/controlComponents.d.ts
|
|
6
|
+
declare const ClerkLoaded: ({
|
|
7
|
+
children
|
|
8
|
+
}: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
9
|
+
declare const ClerkLoading: ({
|
|
10
|
+
children
|
|
11
|
+
}: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
12
|
+
declare const ClerkFailed: ({
|
|
13
|
+
children
|
|
14
|
+
}: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
15
|
+
declare const ClerkDegraded: ({
|
|
16
|
+
children
|
|
17
|
+
}: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
10
18
|
type ShowProps = React.PropsWithChildren<{
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
fallback?: React.ReactNode;
|
|
20
|
+
when: ShowWhenCondition;
|
|
13
21
|
} & PendingSessionOptions>;
|
|
14
22
|
/**
|
|
15
23
|
* Use `<Show/>` to conditionally render content based on user authorization or sign-in state.
|
|
@@ -37,58 +45,66 @@ type ShowProps = React.PropsWithChildren<{
|
|
|
37
45
|
* ```
|
|
38
46
|
*
|
|
39
47
|
*/
|
|
40
|
-
declare const Show: ({
|
|
48
|
+
declare const Show: ({
|
|
49
|
+
children,
|
|
50
|
+
fallback,
|
|
51
|
+
treatPendingAsSignedOut,
|
|
52
|
+
when
|
|
53
|
+
}: ShowProps) => React.ReactNode;
|
|
41
54
|
declare const RedirectToSignIn: {
|
|
42
|
-
|
|
43
|
-
|
|
55
|
+
(props: import("@clerk/shared/types").Without<WithClerkProp<import("@clerk/shared/types").SignInRedirectOptions>, "clerk">): React.JSX.Element | null;
|
|
56
|
+
displayName: string;
|
|
44
57
|
};
|
|
45
58
|
declare const RedirectToSignUp: {
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
(props: import("@clerk/shared/types").Without<WithClerkProp<import("@clerk/shared/types").SignUpRedirectOptions>, "clerk">): React.JSX.Element | null;
|
|
60
|
+
displayName: string;
|
|
48
61
|
};
|
|
49
62
|
declare const RedirectToTasks: {
|
|
50
|
-
|
|
51
|
-
|
|
63
|
+
(props: import("@clerk/shared/types").Without<WithClerkProp<import("@clerk/shared/types").TasksRedirectOptions>, "clerk">): React.JSX.Element | null;
|
|
64
|
+
displayName: string;
|
|
52
65
|
};
|
|
53
66
|
/**
|
|
54
67
|
* @function
|
|
55
68
|
* @deprecated Use [`redirectToUserProfile()`](https://clerk.com/docs/reference/objects/clerk#redirect-to-user-profile) instead.
|
|
56
69
|
*/
|
|
57
70
|
declare const RedirectToUserProfile: {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
(props: import("@clerk/shared/types").Without<{
|
|
72
|
+
clerk: import("@clerk/shared/types").LoadedClerk;
|
|
73
|
+
component?: string;
|
|
74
|
+
}, "clerk">): React.JSX.Element | null;
|
|
75
|
+
displayName: string;
|
|
63
76
|
};
|
|
64
77
|
/**
|
|
65
78
|
* @function
|
|
66
79
|
* @deprecated Use [`redirectToOrganizationProfile()`](https://clerk.com/docs/reference/objects/clerk#redirect-to-organization-profile) instead.
|
|
67
80
|
*/
|
|
68
81
|
declare const RedirectToOrganizationProfile: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
82
|
+
(props: import("@clerk/shared/types").Without<{
|
|
83
|
+
clerk: import("@clerk/shared/types").LoadedClerk;
|
|
84
|
+
component?: string;
|
|
85
|
+
}, "clerk">): React.JSX.Element | null;
|
|
86
|
+
displayName: string;
|
|
74
87
|
};
|
|
75
88
|
/**
|
|
76
89
|
* @function
|
|
77
90
|
* @deprecated Use [`redirectToCreateOrganization()`](https://clerk.com/docs/reference/objects/clerk#redirect-to-create-organization) instead.
|
|
78
91
|
*/
|
|
79
92
|
declare const RedirectToCreateOrganization: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
93
|
+
(props: import("@clerk/shared/types").Without<{
|
|
94
|
+
clerk: import("@clerk/shared/types").LoadedClerk;
|
|
95
|
+
component?: string;
|
|
96
|
+
}, "clerk">): React.JSX.Element | null;
|
|
97
|
+
displayName: string;
|
|
85
98
|
};
|
|
86
99
|
declare const AuthenticateWithRedirectCallback: {
|
|
87
|
-
|
|
88
|
-
|
|
100
|
+
(props: import("@clerk/shared/types").Without<WithClerkProp<HandleOAuthCallbackParams>, "clerk">): React.JSX.Element | null;
|
|
101
|
+
displayName: string;
|
|
89
102
|
};
|
|
90
|
-
declare const MultisessionAppSupport: ({
|
|
91
|
-
|
|
103
|
+
declare const MultisessionAppSupport: ({
|
|
104
|
+
children
|
|
105
|
+
}: React.PropsWithChildren<unknown>) => React.JSX.Element;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/hooks/useAuth.d.ts
|
|
92
108
|
/**
|
|
93
109
|
* @inline
|
|
94
110
|
*/
|
|
@@ -190,6 +206,9 @@ declare const useAuth: (options?: UseAuthOptions) => UseAuthReturn;
|
|
|
190
206
|
* } = useDerivedAuth(authObject);
|
|
191
207
|
* ```
|
|
192
208
|
*/
|
|
193
|
-
declare function useDerivedAuth(authObject: any, {
|
|
194
|
-
|
|
195
|
-
|
|
209
|
+
declare function useDerivedAuth(authObject: any, {
|
|
210
|
+
treatPendingAsSignedOut
|
|
211
|
+
}?: PendingSessionOptions): UseAuthReturn;
|
|
212
|
+
//#endregion
|
|
213
|
+
export { ClerkFailed as a, MultisessionAppSupport as c, RedirectToSignIn as d, RedirectToSignUp as f, ShowProps as g, Show as h, ClerkDegraded as i, RedirectToCreateOrganization as l, RedirectToUserProfile as m, useDerivedAuth as n, ClerkLoaded as o, RedirectToTasks as p, AuthenticateWithRedirectCallback as r, ClerkLoading as s, useAuth as t, RedirectToOrganizationProfile as u };
|
|
214
|
+
//# sourceMappingURL=useAuth-BK5Y4htK.d.mts.map
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { HandleOAuthCallbackParams,
|
|
3
|
-
import React from
|
|
4
|
-
import { WithClerkProp } from './types.js';
|
|
1
|
+
import { g as WithClerkProp } from "./types-Bwenmt7y.cjs";
|
|
2
|
+
import { HandleOAuthCallbackParams, PendingSessionOptions, ShowWhenCondition, UseAuthReturn } from "@clerk/shared/types";
|
|
3
|
+
import React from "react";
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
//#region src/components/controlComponents.d.ts
|
|
6
|
+
declare const ClerkLoaded: ({
|
|
7
|
+
children
|
|
8
|
+
}: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
9
|
+
declare const ClerkLoading: ({
|
|
10
|
+
children
|
|
11
|
+
}: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
12
|
+
declare const ClerkFailed: ({
|
|
13
|
+
children
|
|
14
|
+
}: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
15
|
+
declare const ClerkDegraded: ({
|
|
16
|
+
children
|
|
17
|
+
}: React.PropsWithChildren<unknown>) => React.ReactNode;
|
|
10
18
|
type ShowProps = React.PropsWithChildren<{
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
fallback?: React.ReactNode;
|
|
20
|
+
when: ShowWhenCondition;
|
|
13
21
|
} & PendingSessionOptions>;
|
|
14
22
|
/**
|
|
15
23
|
* Use `<Show/>` to conditionally render content based on user authorization or sign-in state.
|
|
@@ -37,58 +45,66 @@ type ShowProps = React.PropsWithChildren<{
|
|
|
37
45
|
* ```
|
|
38
46
|
*
|
|
39
47
|
*/
|
|
40
|
-
declare const Show: ({
|
|
48
|
+
declare const Show: ({
|
|
49
|
+
children,
|
|
50
|
+
fallback,
|
|
51
|
+
treatPendingAsSignedOut,
|
|
52
|
+
when
|
|
53
|
+
}: ShowProps) => React.ReactNode;
|
|
41
54
|
declare const RedirectToSignIn: {
|
|
42
|
-
|
|
43
|
-
|
|
55
|
+
(props: import("@clerk/shared/types").Without<WithClerkProp<import("@clerk/shared/types").SignInRedirectOptions>, "clerk">): React.JSX.Element | null;
|
|
56
|
+
displayName: string;
|
|
44
57
|
};
|
|
45
58
|
declare const RedirectToSignUp: {
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
(props: import("@clerk/shared/types").Without<WithClerkProp<import("@clerk/shared/types").SignUpRedirectOptions>, "clerk">): React.JSX.Element | null;
|
|
60
|
+
displayName: string;
|
|
48
61
|
};
|
|
49
62
|
declare const RedirectToTasks: {
|
|
50
|
-
|
|
51
|
-
|
|
63
|
+
(props: import("@clerk/shared/types").Without<WithClerkProp<import("@clerk/shared/types").TasksRedirectOptions>, "clerk">): React.JSX.Element | null;
|
|
64
|
+
displayName: string;
|
|
52
65
|
};
|
|
53
66
|
/**
|
|
54
67
|
* @function
|
|
55
68
|
* @deprecated Use [`redirectToUserProfile()`](https://clerk.com/docs/reference/objects/clerk#redirect-to-user-profile) instead.
|
|
56
69
|
*/
|
|
57
70
|
declare const RedirectToUserProfile: {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
(props: import("@clerk/shared/types").Without<{
|
|
72
|
+
clerk: import("@clerk/shared/types").LoadedClerk;
|
|
73
|
+
component?: string;
|
|
74
|
+
}, "clerk">): React.JSX.Element | null;
|
|
75
|
+
displayName: string;
|
|
63
76
|
};
|
|
64
77
|
/**
|
|
65
78
|
* @function
|
|
66
79
|
* @deprecated Use [`redirectToOrganizationProfile()`](https://clerk.com/docs/reference/objects/clerk#redirect-to-organization-profile) instead.
|
|
67
80
|
*/
|
|
68
81
|
declare const RedirectToOrganizationProfile: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
82
|
+
(props: import("@clerk/shared/types").Without<{
|
|
83
|
+
clerk: import("@clerk/shared/types").LoadedClerk;
|
|
84
|
+
component?: string;
|
|
85
|
+
}, "clerk">): React.JSX.Element | null;
|
|
86
|
+
displayName: string;
|
|
74
87
|
};
|
|
75
88
|
/**
|
|
76
89
|
* @function
|
|
77
90
|
* @deprecated Use [`redirectToCreateOrganization()`](https://clerk.com/docs/reference/objects/clerk#redirect-to-create-organization) instead.
|
|
78
91
|
*/
|
|
79
92
|
declare const RedirectToCreateOrganization: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
93
|
+
(props: import("@clerk/shared/types").Without<{
|
|
94
|
+
clerk: import("@clerk/shared/types").LoadedClerk;
|
|
95
|
+
component?: string;
|
|
96
|
+
}, "clerk">): React.JSX.Element | null;
|
|
97
|
+
displayName: string;
|
|
85
98
|
};
|
|
86
99
|
declare const AuthenticateWithRedirectCallback: {
|
|
87
|
-
|
|
88
|
-
|
|
100
|
+
(props: import("@clerk/shared/types").Without<WithClerkProp<HandleOAuthCallbackParams>, "clerk">): React.JSX.Element | null;
|
|
101
|
+
displayName: string;
|
|
89
102
|
};
|
|
90
|
-
declare const MultisessionAppSupport: ({
|
|
91
|
-
|
|
103
|
+
declare const MultisessionAppSupport: ({
|
|
104
|
+
children
|
|
105
|
+
}: React.PropsWithChildren<unknown>) => React.JSX.Element;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/hooks/useAuth.d.ts
|
|
92
108
|
/**
|
|
93
109
|
* @inline
|
|
94
110
|
*/
|
|
@@ -190,6 +206,9 @@ declare const useAuth: (options?: UseAuthOptions) => UseAuthReturn;
|
|
|
190
206
|
* } = useDerivedAuth(authObject);
|
|
191
207
|
* ```
|
|
192
208
|
*/
|
|
193
|
-
declare function useDerivedAuth(authObject: any, {
|
|
194
|
-
|
|
195
|
-
|
|
209
|
+
declare function useDerivedAuth(authObject: any, {
|
|
210
|
+
treatPendingAsSignedOut
|
|
211
|
+
}?: PendingSessionOptions): UseAuthReturn;
|
|
212
|
+
//#endregion
|
|
213
|
+
export { ClerkFailed as a, MultisessionAppSupport as c, RedirectToSignIn as d, RedirectToSignUp as f, ShowProps as g, Show as h, ClerkDegraded as i, RedirectToCreateOrganization as l, RedirectToUserProfile as m, useDerivedAuth as n, ClerkLoaded as o, RedirectToTasks as p, AuthenticateWithRedirectCallback as r, ClerkLoading as s, useAuth as t, RedirectToOrganizationProfile as u };
|
|
214
|
+
//# sourceMappingURL=useAuth-BMxaWktj.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clerk/react",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.1-canary.v20260610190754",
|
|
4
4
|
"description": "Clerk React library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"clerk",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"default": "./dist/index.mjs"
|
|
30
30
|
},
|
|
31
31
|
"require": {
|
|
32
|
-
"types": "./dist/index.d.
|
|
33
|
-
"default": "./dist/index.
|
|
32
|
+
"types": "./dist/index.d.cts",
|
|
33
|
+
"default": "./dist/index.cjs"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"./internal": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"default": "./dist/internal.mjs"
|
|
40
40
|
},
|
|
41
41
|
"require": {
|
|
42
|
-
"types": "./dist/internal.d.
|
|
43
|
-
"default": "./dist/internal.
|
|
42
|
+
"types": "./dist/internal.d.cts",
|
|
43
|
+
"default": "./dist/internal.cjs"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"./errors": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"default": "./dist/errors.mjs"
|
|
50
50
|
},
|
|
51
51
|
"require": {
|
|
52
|
-
"types": "./dist/errors.d.
|
|
53
|
-
"default": "./dist/errors.
|
|
52
|
+
"types": "./dist/errors.d.cts",
|
|
53
|
+
"default": "./dist/errors.cjs"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"./experimental": {
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"default": "./dist/experimental.mjs"
|
|
60
60
|
},
|
|
61
61
|
"require": {
|
|
62
|
-
"types": "./dist/experimental.d.
|
|
63
|
-
"default": "./dist/experimental.
|
|
62
|
+
"types": "./dist/experimental.d.cts",
|
|
63
|
+
"default": "./dist/experimental.cjs"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"./legacy": {
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"default": "./dist/legacy.mjs"
|
|
70
70
|
},
|
|
71
71
|
"require": {
|
|
72
|
-
"types": "./dist/legacy.d.
|
|
73
|
-
"default": "./dist/legacy.
|
|
72
|
+
"types": "./dist/legacy.d.cts",
|
|
73
|
+
"default": "./dist/legacy.cjs"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"./types": {
|
|
@@ -78,25 +78,25 @@
|
|
|
78
78
|
"types": "./dist/types.d.mts"
|
|
79
79
|
},
|
|
80
80
|
"require": {
|
|
81
|
-
"types": "./dist/types.d.
|
|
81
|
+
"types": "./dist/types.d.cts"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"./package.json": "./package.json"
|
|
85
85
|
},
|
|
86
|
-
"main": "./dist/index.
|
|
86
|
+
"main": "./dist/index.cjs",
|
|
87
87
|
"files": [
|
|
88
88
|
"dist"
|
|
89
89
|
],
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"tslib": "2.8.1",
|
|
92
|
-
"@clerk/shared": "
|
|
92
|
+
"@clerk/shared": "4.17.1-canary.v20260610190754"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@types/semver": "^7.7.1",
|
|
96
96
|
"semver": "^7.7.4",
|
|
97
97
|
"yaml": "^2.8.3",
|
|
98
|
-
"@clerk/
|
|
99
|
-
"@clerk/
|
|
98
|
+
"@clerk/ui": "1.16.1-canary.v20260610190754",
|
|
99
|
+
"@clerk/localizations": "4.8.1-canary.v20260610190754"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": "^18.0.0 || ~19.0.3 || ~19.1.4 || ~19.2.3 || ~19.3.0-0",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
111
|
"scripts": {
|
|
112
|
-
"build": "
|
|
112
|
+
"build": "tsdown",
|
|
113
113
|
"clean": "rimraf ./dist",
|
|
114
|
-
"dev": "
|
|
114
|
+
"dev": "tsdown --watch",
|
|
115
115
|
"dev:pub": "pnpm dev --env.publish",
|
|
116
116
|
"format": "node ../../scripts/format-package.mjs",
|
|
117
117
|
"format:check": "node ../../scripts/format-package.mjs --check",
|
package/dist/chunk-E5QRIS4Z.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
var __typeError = (msg) => {
|
|
2
|
-
throw TypeError(msg);
|
|
3
|
-
};
|
|
4
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
9
|
-
|
|
10
|
-
// <define:__CLERK_UI_SUPPORTED_REACT_BOUNDS__>
|
|
11
|
-
var define_CLERK_UI_SUPPORTED_REACT_BOUNDS_default = [[18, 0, -1, 0], [19, 0, 0, 3], [19, 1, 1, 4], [19, 2, 2, 3], [19, 3, 3, 0]];
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
__privateGet,
|
|
15
|
-
__privateAdd,
|
|
16
|
-
__privateSet,
|
|
17
|
-
__privateMethod,
|
|
18
|
-
define_CLERK_UI_SUPPORTED_REACT_BOUNDS_default
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=chunk-E5QRIS4Z.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["<define:__CLERK_UI_SUPPORTED_REACT_BOUNDS__>"],"sourcesContent":["[[18,0,-1,0],[19,0,0,3],[19,1,1,4],[19,2,2,3],[19,3,3,0]]"],"mappings":";;;;;;;;;;AAAA,sDAAC,CAAC,IAAG,GAAE,IAAG,CAAC,GAAE,CAAC,IAAG,GAAE,GAAE,CAAC,GAAE,CAAC,IAAG,GAAE,GAAE,CAAC,GAAE,CAAC,IAAG,GAAE,GAAE,CAAC,GAAE,CAAC,IAAG,GAAE,GAAE,CAAC,CAAC;","names":[]}
|