@clerk/react 6.13.0-snapshot.v20260805185245 → 6.13.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.
Files changed (37) hide show
  1. package/dist/{ClerkProvider-BHRxXWm7.mjs → ClerkProvider-DSpx2Dh2.mjs} +9 -5
  2. package/dist/{ClerkProvider-BHRxXWm7.mjs.map → ClerkProvider-DSpx2Dh2.mjs.map} +1 -1
  3. package/dist/{ClerkProvider-CzDklbKe.cjs → ClerkProvider-Dp-jSjFI.cjs} +8 -4
  4. package/dist/ClerkProvider-Dp-jSjFI.cjs.map +1 -0
  5. package/dist/experimental.cjs +1 -1
  6. package/dist/experimental.d.cts +1 -1
  7. package/dist/experimental.d.mts +1 -1
  8. package/dist/experimental.mjs +1 -1
  9. package/dist/{hooks-BiY5Zgpp.mjs → hooks-74kNS3WZ.mjs} +2 -25
  10. package/dist/hooks-74kNS3WZ.mjs.map +1 -0
  11. package/dist/{hooks-CBghYU21.cjs → hooks-BTRUfAH0.cjs} +1 -30
  12. package/dist/hooks-BTRUfAH0.cjs.map +1 -0
  13. package/dist/index.cjs +2 -2
  14. package/dist/index.d.cts +2 -3
  15. package/dist/index.d.mts +2 -3
  16. package/dist/index.mjs +2 -2
  17. package/dist/internal.cjs +2 -2
  18. package/dist/internal.d.cts +2 -2
  19. package/dist/internal.d.mts +2 -2
  20. package/dist/internal.mjs +2 -2
  21. package/dist/types-BIlIDQCW.d.cts +10982 -0
  22. package/dist/types-lL6SSqgb.d.mts +10982 -0
  23. package/dist/types.d.cts +1 -1
  24. package/dist/types.d.mts +1 -1
  25. package/dist/{useAuth-1wIlKSHq.d.mts → useAuth-B-uVW1JG.d.mts} +2 -2
  26. package/dist/{useAuth-BpwRXS1S.d.cts → useAuth-DEfUX7H3.d.cts} +2 -2
  27. package/package.json +6 -17
  28. package/dist/ClerkProvider-CzDklbKe.cjs.map +0 -1
  29. package/dist/experimental/mosaic/styles.css +0 -1388
  30. package/dist/experimental/mosaic.cjs +0 -9
  31. package/dist/experimental/mosaic.d.cts +0 -2
  32. package/dist/experimental/mosaic.d.mts +0 -2
  33. package/dist/experimental/mosaic.mjs +0 -3
  34. package/dist/hooks-BiY5Zgpp.mjs.map +0 -1
  35. package/dist/hooks-CBghYU21.cjs.map +0 -1
  36. package/dist/types-BQbDOUr9.d.mts +0 -121
  37. package/dist/types-DEj8RbqX.d.cts +0 -121
@@ -1,121 +0,0 @@
1
- import React from "react";
2
- import { Clerk, InitialState, InternalClerkScriptProps, IsomorphicClerkOptions, LoadedClerk, RedirectUrlProp, SignInRedirectOptions, SignUpRedirectOptions, TasksRedirectOptions } from "@clerk/shared/types";
3
- import { ClerkUIConstructor } from "@clerk/shared/ui";
4
- import { Appearance, ExtractAppearanceType } from "@clerk/ui/internal";
5
-
6
- //#region src/types.d.ts
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
- interface Ui<A = any> {
16
- __brand?: '__clerkUI';
17
- ClerkUI?: ClerkUIConstructor | Promise<ClerkUIConstructor>;
18
- version?: string;
19
- __appearanceType?: A;
20
- }
21
- /**
22
- * @interface
23
- */
24
- type ClerkProviderProps<TUi extends Ui = Ui> = Omit<IsomorphicClerkOptions, 'appearance' | 'publishableKey' | keyof InternalClerkScriptProps> & {
25
- children: React.ReactNode;
26
- /**
27
- * The Clerk Publishable Key for your instance. When omitted, `@clerk/react` reads the key from
28
- * `VITE_CLERK_PUBLISHABLE_KEY` or `CLERK_PUBLISHABLE_KEY`.
29
- */
30
- publishableKey?: string;
31
- /**
32
- * 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).
33
- */
34
- initialState?: InitialState;
35
- /**
36
- * Indicates to silently fail the initialization process when the publishable keys is not provided, instead of throwing an error.
37
- * @default false
38
- * @internal
39
- */
40
- __internal_bypassMissingPublishableKey?: boolean;
41
- /**
42
- * 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.
43
- */
44
- appearance?: ExtractAppearanceType<TUi, Appearance>;
45
- /**
46
- * An object to use the bundled Clerk UI instead of loading from CDN.
47
- * Import `ui` from `@clerk/ui` and pass it here to bundle the UI with your application.
48
- * When omitted, UI is loaded from Clerk's CDN.
49
- * Note: When `ui` is used, appearance is automatically typed based on the specific UI version.
50
- */
51
- ui?: TUi;
52
- };
53
- type WithClerkProp<T = unknown> = T & {
54
- clerk: LoadedClerk;
55
- component?: string;
56
- getContainer?: () => HTMLElement | null;
57
- };
58
- interface CustomPortalsRendererProps {
59
- customPagesPortals?: any[];
60
- customMenuItemsPortals?: any[];
61
- }
62
- interface MountProps {
63
- mount: (node: HTMLDivElement, props: any) => void;
64
- unmount: (node: HTMLDivElement) => void;
65
- updateProps: (props: any) => void;
66
- props?: any;
67
- }
68
- interface OpenProps {
69
- open: (props: any) => void;
70
- close: () => void;
71
- props?: any;
72
- }
73
- type SignInWithMetamaskButtonProps = {
74
- mode?: 'redirect' | 'modal';
75
- children?: React.ReactNode;
76
- } & RedirectUrlProp;
77
- type RedirectToSignInProps = SignInRedirectOptions;
78
- type RedirectToSignUpProps = SignUpRedirectOptions;
79
- type RedirectToTasksProps = TasksRedirectOptions;
80
- type PageProps<T extends string> = {
81
- label: string;
82
- url: string;
83
- labelIcon: React.ReactNode;
84
- } | {
85
- label: T;
86
- url?: never;
87
- labelIcon?: never;
88
- };
89
- type UserProfilePageProps = PageProps<'account' | 'security' | 'billing' | 'apiKeys'>;
90
- type UserProfileLinkProps = {
91
- url: string;
92
- label: string;
93
- labelIcon: React.ReactNode;
94
- };
95
- type OrganizationProfilePageProps = PageProps<'general' | 'members' | 'billing' | 'apiKeys'>;
96
- type OrganizationProfileLinkProps = UserProfileLinkProps;
97
- type ButtonActionProps<T extends string> = {
98
- label: string;
99
- labelIcon: React.ReactNode;
100
- onClick: () => void;
101
- open?: never;
102
- } | {
103
- label: T;
104
- labelIcon?: never;
105
- onClick?: never;
106
- open?: never;
107
- } | {
108
- label: string;
109
- labelIcon: React.ReactNode;
110
- onClick?: never;
111
- open: string;
112
- };
113
- type UserButtonActionProps = ButtonActionProps<'manageAccount' | 'signOut'>;
114
- type UserButtonLinkProps = {
115
- href: string;
116
- label: string;
117
- labelIcon: React.ReactNode;
118
- };
119
- //#endregion
120
- export { OrganizationProfileLinkProps as a, RedirectToSignUpProps as c, Ui as d, UserButtonActionProps as f, WithClerkProp as g, UserProfilePageProps as h, OpenProps as i, RedirectToTasksProps as l, UserProfileLinkProps as m, CustomPortalsRendererProps as n, OrganizationProfilePageProps as o, UserButtonLinkProps as p, MountProps as r, RedirectToSignInProps as s, ClerkProviderProps as t, SignInWithMetamaskButtonProps as u };
121
- //# sourceMappingURL=types-BQbDOUr9.d.mts.map
@@ -1,121 +0,0 @@
1
- import { Clerk, InitialState, InternalClerkScriptProps, IsomorphicClerkOptions, LoadedClerk, RedirectUrlProp, SignInRedirectOptions, SignUpRedirectOptions, TasksRedirectOptions } from "@clerk/shared/types";
2
- import React from "react";
3
- import { ClerkUIConstructor } from "@clerk/shared/ui";
4
- import { Appearance, ExtractAppearanceType } from "@clerk/ui/internal";
5
-
6
- //#region src/types.d.ts
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
- interface Ui<A = any> {
16
- __brand?: '__clerkUI';
17
- ClerkUI?: ClerkUIConstructor | Promise<ClerkUIConstructor>;
18
- version?: string;
19
- __appearanceType?: A;
20
- }
21
- /**
22
- * @interface
23
- */
24
- type ClerkProviderProps<TUi extends Ui = Ui> = Omit<IsomorphicClerkOptions, 'appearance' | 'publishableKey' | keyof InternalClerkScriptProps> & {
25
- children: React.ReactNode;
26
- /**
27
- * The Clerk Publishable Key for your instance. When omitted, `@clerk/react` reads the key from
28
- * `VITE_CLERK_PUBLISHABLE_KEY` or `CLERK_PUBLISHABLE_KEY`.
29
- */
30
- publishableKey?: string;
31
- /**
32
- * 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).
33
- */
34
- initialState?: InitialState;
35
- /**
36
- * Indicates to silently fail the initialization process when the publishable keys is not provided, instead of throwing an error.
37
- * @default false
38
- * @internal
39
- */
40
- __internal_bypassMissingPublishableKey?: boolean;
41
- /**
42
- * 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.
43
- */
44
- appearance?: ExtractAppearanceType<TUi, Appearance>;
45
- /**
46
- * An object to use the bundled Clerk UI instead of loading from CDN.
47
- * Import `ui` from `@clerk/ui` and pass it here to bundle the UI with your application.
48
- * When omitted, UI is loaded from Clerk's CDN.
49
- * Note: When `ui` is used, appearance is automatically typed based on the specific UI version.
50
- */
51
- ui?: TUi;
52
- };
53
- type WithClerkProp<T = unknown> = T & {
54
- clerk: LoadedClerk;
55
- component?: string;
56
- getContainer?: () => HTMLElement | null;
57
- };
58
- interface CustomPortalsRendererProps {
59
- customPagesPortals?: any[];
60
- customMenuItemsPortals?: any[];
61
- }
62
- interface MountProps {
63
- mount: (node: HTMLDivElement, props: any) => void;
64
- unmount: (node: HTMLDivElement) => void;
65
- updateProps: (props: any) => void;
66
- props?: any;
67
- }
68
- interface OpenProps {
69
- open: (props: any) => void;
70
- close: () => void;
71
- props?: any;
72
- }
73
- type SignInWithMetamaskButtonProps = {
74
- mode?: 'redirect' | 'modal';
75
- children?: React.ReactNode;
76
- } & RedirectUrlProp;
77
- type RedirectToSignInProps = SignInRedirectOptions;
78
- type RedirectToSignUpProps = SignUpRedirectOptions;
79
- type RedirectToTasksProps = TasksRedirectOptions;
80
- type PageProps<T extends string> = {
81
- label: string;
82
- url: string;
83
- labelIcon: React.ReactNode;
84
- } | {
85
- label: T;
86
- url?: never;
87
- labelIcon?: never;
88
- };
89
- type UserProfilePageProps = PageProps<'account' | 'security' | 'billing' | 'apiKeys'>;
90
- type UserProfileLinkProps = {
91
- url: string;
92
- label: string;
93
- labelIcon: React.ReactNode;
94
- };
95
- type OrganizationProfilePageProps = PageProps<'general' | 'members' | 'billing' | 'apiKeys'>;
96
- type OrganizationProfileLinkProps = UserProfileLinkProps;
97
- type ButtonActionProps<T extends string> = {
98
- label: string;
99
- labelIcon: React.ReactNode;
100
- onClick: () => void;
101
- open?: never;
102
- } | {
103
- label: T;
104
- labelIcon?: never;
105
- onClick?: never;
106
- open?: never;
107
- } | {
108
- label: string;
109
- labelIcon: React.ReactNode;
110
- onClick?: never;
111
- open: string;
112
- };
113
- type UserButtonActionProps = ButtonActionProps<'manageAccount' | 'signOut'>;
114
- type UserButtonLinkProps = {
115
- href: string;
116
- label: string;
117
- labelIcon: React.ReactNode;
118
- };
119
- //#endregion
120
- export { OrganizationProfileLinkProps as a, RedirectToSignUpProps as c, Ui as d, UserButtonActionProps as f, WithClerkProp as g, UserProfilePageProps as h, OpenProps as i, RedirectToTasksProps as l, UserProfileLinkProps as m, CustomPortalsRendererProps as n, OrganizationProfilePageProps as o, UserButtonLinkProps as p, MountProps as r, RedirectToSignInProps as s, ClerkProviderProps as t, SignInWithMetamaskButtonProps as u };
121
- //# sourceMappingURL=types-DEj8RbqX.d.cts.map