@clerk/shared 4.0.0-canary.v20260105190004 → 4.0.0-canary.v20260105222323
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/runtime/alternativePhoneCode.d.mts +1 -1
- package/dist/runtime/alternativePhoneCode.d.ts +1 -1
- package/dist/runtime/authorization-errors.d.mts +1 -1
- package/dist/runtime/authorization-errors.d.ts +1 -1
- package/dist/runtime/authorization.d.mts +1 -1
- package/dist/runtime/authorization.d.ts +1 -1
- package/dist/runtime/clerkEventBus.d.mts +1 -1
- package/dist/runtime/clerkEventBus.d.ts +1 -1
- package/dist/runtime/color.d.mts +1 -1
- package/dist/runtime/color.d.ts +1 -1
- package/dist/runtime/deriveState.d.mts +1 -1
- package/dist/runtime/deriveState.d.ts +1 -1
- package/dist/runtime/{error-B_G3M-Fy.d.mts → error-BXk0GDM3.d.mts} +2 -2
- package/dist/runtime/{error-B_G3M-Fy.d.mts.map → error-BXk0GDM3.d.mts.map} +1 -1
- package/dist/runtime/{error-Ku0G0_IZ.d.ts → error-Bc2wkICP.d.ts} +2 -2
- package/dist/runtime/{error-Ku0G0_IZ.d.ts.map → error-Bc2wkICP.d.ts.map} +1 -1
- package/dist/runtime/error.d.mts +2 -2
- package/dist/runtime/error.d.ts +2 -2
- package/dist/runtime/{index-DH2WvM2A.d.mts → index-C3yQerjv.d.mts} +77 -47
- package/dist/runtime/index-C3yQerjv.d.mts.map +1 -0
- package/dist/runtime/{index-BtTMSxYT.d.ts → index-CuGwkvfN.d.ts} +77 -47
- package/dist/runtime/index-CuGwkvfN.d.ts.map +1 -0
- package/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/componentGuards.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/componentGuards.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/passkeys.d.mts +2 -2
- package/dist/runtime/internal/clerk-js/passkeys.d.ts +2 -2
- package/dist/runtime/internal/clerk-js/passwords/complexity.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/passwords/complexity.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/passwords/password.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/passwords/password.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/passwords/strength.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/passwords/strength.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/queryParams.d.mts +2 -2
- package/dist/runtime/internal/clerk-js/queryParams.d.ts +2 -2
- package/dist/runtime/internal/clerk-js/redirectUrls.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/redirectUrls.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/sessionTasks.d.mts +2 -2
- package/dist/runtime/internal/clerk-js/sessionTasks.d.ts +2 -2
- package/dist/runtime/internal/clerk-js/url.d.mts +2 -2
- package/dist/runtime/internal/clerk-js/url.d.ts +2 -2
- package/dist/runtime/internal/clerk-js/user.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/user.d.ts +1 -1
- package/dist/runtime/internal/clerk-js/web3.d.mts +1 -1
- package/dist/runtime/internal/clerk-js/web3.d.ts +1 -1
- package/dist/runtime/jwtPayloadParser.d.mts +1 -1
- package/dist/runtime/jwtPayloadParser.d.ts +1 -1
- package/dist/runtime/keys.d.mts +1 -1
- package/dist/runtime/keys.d.ts +1 -1
- package/dist/runtime/loadClerkJsScript.d.mts +1 -1
- package/dist/runtime/loadClerkJsScript.d.ts +1 -1
- package/dist/runtime/loadClerkJsScript.js +2 -2
- package/dist/runtime/loadClerkJsScript.mjs +2 -2
- package/dist/runtime/oauth.d.mts +1 -1
- package/dist/runtime/oauth.d.ts +1 -1
- package/dist/runtime/organization.d.mts +1 -1
- package/dist/runtime/organization.d.ts +1 -1
- package/dist/runtime/pathMatcher.d.mts +1 -1
- package/dist/runtime/pathMatcher.d.ts +1 -1
- package/dist/runtime/react/index.d.mts +3 -3
- package/dist/runtime/react/index.d.ts +3 -3
- package/dist/runtime/react/index.js +1 -1
- package/dist/runtime/react/index.js.map +1 -1
- package/dist/runtime/react/index.mjs +1 -1
- package/dist/runtime/react/index.mjs.map +1 -1
- package/dist/runtime/router.d.mts +1 -1
- package/dist/runtime/router.d.ts +1 -1
- package/dist/runtime/saml.d.mts +1 -1
- package/dist/runtime/saml.d.ts +1 -1
- package/dist/runtime/telemetry.d.mts +1 -1
- package/dist/runtime/telemetry.d.ts +1 -1
- package/dist/runtime/types/index.d.mts +2 -2
- package/dist/runtime/types/index.d.ts +2 -2
- package/dist/runtime/ui/index.d.mts +1 -1
- package/dist/runtime/ui/index.d.ts +1 -1
- package/dist/runtime/{url-CHHjAqGa.d.ts → url-B3azMvOn.d.ts} +2 -2
- package/dist/runtime/{url-CHHjAqGa.d.ts.map → url-B3azMvOn.d.ts.map} +1 -1
- package/dist/runtime/{url-CWdx-1gj.d.mts → url-CeTIrv79.d.mts} +2 -2
- package/dist/runtime/{url-CWdx-1gj.d.mts.map → url-CeTIrv79.d.mts.map} +1 -1
- package/dist/runtime/{versionSelector-Da-n06Nt.js → versionSelector-Cf3Wae65.js} +2 -2
- package/dist/runtime/{versionSelector-Da-n06Nt.js.map → versionSelector-Cf3Wae65.js.map} +1 -1
- package/dist/runtime/{versionSelector-HEL8Pv8a.mjs → versionSelector-DbH1ajQJ.mjs} +2 -2
- package/dist/runtime/{versionSelector-HEL8Pv8a.mjs.map → versionSelector-DbH1ajQJ.mjs.map} +1 -1
- package/dist/runtime/versionSelector.js +1 -1
- package/dist/runtime/versionSelector.mjs +1 -1
- package/dist/runtime/web3.d.mts +1 -1
- package/dist/runtime/web3.d.ts +1 -1
- package/dist/types/index.d.mts +76 -46
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.d.ts +76 -46
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/runtime/index-BtTMSxYT.d.ts.map +0 -1
- package/dist/runtime/index-DH2WvM2A.d.mts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { As as GenerateSignature, Hu as Web3Provider } from "../../index-C3yQerjv.mjs";
|
|
2
2
|
import { r as ModuleManager } from "../../moduleManager-BYIq4wgi.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/internal/clerk-js/web3.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { As as GenerateSignature, Hu as Web3Provider } from "../../index-CuGwkvfN.js";
|
|
2
2
|
import { r as ModuleManager } from "../../moduleManager-WB15hU3T.js";
|
|
3
3
|
|
|
4
4
|
//#region src/internal/clerk-js/web3.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Qi as JwtPayload, T as SharedSignedInAuthObjectProperties } from "./index-C3yQerjv.mjs";
|
|
2
2
|
import "./moduleManager-BYIq4wgi.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/jwtPayloadParser.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Qi as JwtPayload, T as SharedSignedInAuthObjectProperties } from "./index-CuGwkvfN.js";
|
|
2
2
|
import "./moduleManager-WB15hU3T.js";
|
|
3
3
|
|
|
4
4
|
//#region src/jwtPayloadParser.d.ts
|
package/dist/runtime/keys.d.mts
CHANGED
package/dist/runtime/keys.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ const require_loadScript = require('./loadScript-CW1MV2O0.js');
|
|
|
8
8
|
const require_proxy = require('./proxy-BVlsuX5g.js');
|
|
9
9
|
require('./instance-DykLn3Pi.js');
|
|
10
10
|
const require_url = require('./url-DwWU8E5q.js');
|
|
11
|
-
const require_versionSelector = require('./versionSelector-
|
|
11
|
+
const require_versionSelector = require('./versionSelector-Cf3Wae65.js');
|
|
12
12
|
|
|
13
13
|
//#region src/loadClerkJsScript.ts
|
|
14
14
|
const { isDevOrStagingUrl } = require_keys.createDevOrStagingUrlCache();
|
|
@@ -147,7 +147,7 @@ const clerkUiScriptUrl = (opts) => {
|
|
|
147
147
|
publishableKey,
|
|
148
148
|
proxyUrl,
|
|
149
149
|
domain
|
|
150
|
-
})}/npm/@clerk/ui@${require_versionSelector.versionSelector(clerkUiVersion, "1.0.0-canary.
|
|
150
|
+
})}/npm/@clerk/ui@${require_versionSelector.versionSelector(clerkUiVersion, "1.0.0-canary.v20260105222323")}/dist/ui.browser.js`;
|
|
151
151
|
};
|
|
152
152
|
const buildClerkJsScriptAttributes = (options) => {
|
|
153
153
|
const obj = {};
|
|
@@ -8,7 +8,7 @@ import { t as loadScript } from "./loadScript-CHWOPTAN.mjs";
|
|
|
8
8
|
import { i as proxyUrlToAbsoluteURL, r as isValidProxyUrl } from "./proxy-C0HjCApu.mjs";
|
|
9
9
|
import "./instance-DniYMiU-.mjs";
|
|
10
10
|
import { t as addClerkPrefix } from "./url-DasDWsj9.mjs";
|
|
11
|
-
import { n as versionSelector } from "./versionSelector-
|
|
11
|
+
import { n as versionSelector } from "./versionSelector-DbH1ajQJ.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/loadClerkJsScript.ts
|
|
14
14
|
const { isDevOrStagingUrl } = createDevOrStagingUrlCache();
|
|
@@ -147,7 +147,7 @@ const clerkUiScriptUrl = (opts) => {
|
|
|
147
147
|
publishableKey,
|
|
148
148
|
proxyUrl,
|
|
149
149
|
domain
|
|
150
|
-
})}/npm/@clerk/ui@${versionSelector(clerkUiVersion, "1.0.0-canary.
|
|
150
|
+
})}/npm/@clerk/ui@${versionSelector(clerkUiVersion, "1.0.0-canary.v20260105222323")}/dist/ui.browser.js`;
|
|
151
151
|
};
|
|
152
152
|
const buildClerkJsScriptAttributes = (options) => {
|
|
153
153
|
const obj = {};
|
package/dist/runtime/oauth.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Du as OAuthStrategy, fd as OAuthProvider, pd as OAuthProviderData } from "./index-C3yQerjv.mjs";
|
|
2
2
|
import "./moduleManager-BYIq4wgi.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/oauth.d.ts
|
package/dist/runtime/oauth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Du as OAuthStrategy, fd as OAuthProvider, pd as OAuthProviderData } from "./index-CuGwkvfN.js";
|
|
2
2
|
import "./moduleManager-WB15hU3T.js";
|
|
3
3
|
|
|
4
4
|
//#region src/oauth.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as CreateOrganizationParams, $a as GetUserOrganizationInvitationsParams, B as CheckoutSignalValue, Bo as OrganizationInvitationResource, D as APIKeyResource, Ed as BillingCheckoutResource, Fd as BillingPaymentMethodResource, Fo as SessionVerificationLevel, G as ClerkOptions, Gd as BillingSubscriptionPlanPeriod, Jn as ClientResource, Kd as BillingSubscriptionResource, Ld as BillingPaymentResource, Vd as BillingStatementResource, Vf as ClerkAPIResponseError, Xd as CheckoutFlowResource, _ as UseSessionListReturn, co as UserOrganizationInvitationResource, da as GetMembersParams, eo as GetUserOrganizationMembershipParams, fa as GetMembershipRequestParams, ft as LoadedClerk, gl as ClerkAPIResponseError$1, ho as OrganizationSuggestionResource, kf as ClerkPaginatedResponse, la as GetDomainsParams, lu as OrganizationDomainResource, nt as GetAPIKeysParams, oo as UserResource, qa as SignedInSessionResource, ra as OrganizationMembershipResource, tf as ForPayerType, to as GetUserOrganizationSuggestionsParams, ua as GetInvitationsParams, v as UseSessionReturn, va as OrganizationResource, wa as OrganizationMembershipRequestResource, wt as SetActive, x as UseUserReturn, zd as BillingPlanResource } from "../index-C3yQerjv.mjs";
|
|
2
2
|
import "../moduleManager-BYIq4wgi.mjs";
|
|
3
|
-
import "../error-
|
|
3
|
+
import "../error-BXk0GDM3.mjs";
|
|
4
4
|
import React, { PropsWithChildren, ReactNode } from "react";
|
|
5
5
|
import { dequal } from "dequal";
|
|
6
6
|
|
|
@@ -640,7 +640,7 @@ declare function useAttemptToEnableOrganizations(caller: 'useOrganization' | 'us
|
|
|
640
640
|
/**
|
|
641
641
|
* @internal
|
|
642
642
|
*/
|
|
643
|
-
declare const useSafeLayoutEffect: typeof React.
|
|
643
|
+
declare const useSafeLayoutEffect: typeof React.useLayoutEffect;
|
|
644
644
|
//#endregion
|
|
645
645
|
//#region src/react/hooks/useSession.d.ts
|
|
646
646
|
type UseSession = () => UseSessionReturn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as CreateOrganizationParams, $a as GetUserOrganizationInvitationsParams, B as CheckoutSignalValue, Bo as OrganizationInvitationResource, D as APIKeyResource, Ed as BillingCheckoutResource, Fd as BillingPaymentMethodResource, Fo as SessionVerificationLevel, G as ClerkOptions, Gd as BillingSubscriptionPlanPeriod, Jn as ClientResource, Kd as BillingSubscriptionResource, Ld as BillingPaymentResource, Vd as BillingStatementResource, Vf as ClerkAPIResponseError, Xd as CheckoutFlowResource, _ as UseSessionListReturn, co as UserOrganizationInvitationResource, da as GetMembersParams, eo as GetUserOrganizationMembershipParams, fa as GetMembershipRequestParams, ft as LoadedClerk, gl as ClerkAPIResponseError$1, ho as OrganizationSuggestionResource, kf as ClerkPaginatedResponse, la as GetDomainsParams, lu as OrganizationDomainResource, nt as GetAPIKeysParams, oo as UserResource, qa as SignedInSessionResource, ra as OrganizationMembershipResource, tf as ForPayerType, to as GetUserOrganizationSuggestionsParams, ua as GetInvitationsParams, v as UseSessionReturn, va as OrganizationResource, wa as OrganizationMembershipRequestResource, wt as SetActive, x as UseUserReturn, zd as BillingPlanResource } from "../index-CuGwkvfN.js";
|
|
2
2
|
import "../moduleManager-WB15hU3T.js";
|
|
3
|
-
import "../error-
|
|
3
|
+
import "../error-Bc2wkICP.js";
|
|
4
4
|
import React, { PropsWithChildren, ReactNode } from "react";
|
|
5
5
|
import { dequal } from "dequal";
|
|
6
6
|
|
|
@@ -640,7 +640,7 @@ declare function useAttemptToEnableOrganizations(caller: 'useOrganization' | 'us
|
|
|
640
640
|
/**
|
|
641
641
|
* @internal
|
|
642
642
|
*/
|
|
643
|
-
declare const useSafeLayoutEffect: typeof React.
|
|
643
|
+
declare const useSafeLayoutEffect: typeof React.useLayoutEffect;
|
|
644
644
|
//#endregion
|
|
645
645
|
//#region src/react/hooks/useSession.d.ts
|
|
646
646
|
type UseSession = () => UseSessionReturn;
|
|
@@ -1811,7 +1811,7 @@ const useCheckout = (options) => {
|
|
|
1811
1811
|
const { organization } = useOrganizationContext();
|
|
1812
1812
|
const { isLoaded, user } = useUser();
|
|
1813
1813
|
const clerk = useClerkInstanceContext();
|
|
1814
|
-
if (user === null && isLoaded) throw new Error("Clerk: Ensure that `useCheckout` is inside a component wrapped with `<
|
|
1814
|
+
if (user === null && isLoaded) throw new Error("Clerk: Ensure that `useCheckout` is inside a component wrapped with `<Show when=\"signed-in\" />`.");
|
|
1815
1815
|
if (isLoaded && forOrganization === "organization" && organization === null) throw new Error("Clerk: Ensure your flow checks for an active organization. Retrieve `orgId` from `useAuth()` and confirm it is defined. For SSR, see: https://clerk.com/docs/reference/backend/types/auth-object#how-to-access-the-auth-object");
|
|
1816
1816
|
const signal = (0, react.useCallback)(() => {
|
|
1817
1817
|
return clerk.__experimental_checkout({
|