@clerk/shared 4.0.0-snapshot.v20251218183643 → 4.0.0-snapshot.v20260105214115
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/apiUrlFromPublishableKey.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-o9rMDFII.d.ts → error-BswSPiAB.d.ts} +40 -26
- package/dist/runtime/error-BswSPiAB.d.ts.map +1 -0
- package/dist/runtime/{error-CClf0-CM.d.mts → error-CK2o3GxF.d.mts} +40 -26
- package/dist/runtime/error-CK2o3GxF.d.mts.map +1 -0
- package/dist/runtime/{error-C4TyorFL.js → error-DrrOZs0y.js} +78 -38
- package/dist/runtime/error-DrrOZs0y.js.map +1 -0
- package/dist/runtime/{error-D6MGXq-n.mjs → error-flb1JlUM.mjs} +61 -39
- package/dist/runtime/error-flb1JlUM.mjs.map +1 -0
- package/dist/runtime/error.d.mts +3 -3
- package/dist/runtime/error.d.ts +3 -3
- package/dist/runtime/error.js +4 -1
- package/dist/runtime/error.mjs +2 -2
- package/dist/runtime/{index-C799Ulyv.d.mts → index-CfDaR9LG.d.mts} +111 -49
- package/dist/runtime/index-CfDaR9LG.d.mts.map +1 -0
- package/dist/runtime/{index-BZAgbf9u.d.ts → index-mWwcbHdf.d.ts} +111 -49
- package/dist/runtime/index-mWwcbHdf.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/passkeys.js +1 -1
- package/dist/runtime/internal/clerk-js/passkeys.mjs +1 -1
- 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/internal/clerk-js/web3.js +1 -1
- package/dist/runtime/internal/clerk-js/web3.mjs +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 +3 -3
- package/dist/runtime/loadClerkJsScript.mjs +3 -3
- 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/poller.d.ts.map +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 +2 -2
- package/dist/runtime/react/index.js.map +1 -1
- package/dist/runtime/react/index.mjs +2 -2
- 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/router.d.ts.map +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-8eeYgf2A.d.mts → url-CY0_Q4JV.d.mts} +2 -2
- package/dist/runtime/{url-8eeYgf2A.d.mts.map → url-CY0_Q4JV.d.mts.map} +1 -1
- package/dist/runtime/{url-DnBrs0FC.d.ts → url-DnGvZXOp.d.ts} +2 -2
- package/dist/runtime/{url-DnBrs0FC.d.ts.map → url-DnGvZXOp.d.ts.map} +1 -1
- package/dist/runtime/{versionSelector-BtbMovl-.js → versionSelector-CyoiKZP1.js} +2 -2
- package/dist/runtime/{versionSelector-BtbMovl-.js.map → versionSelector-CyoiKZP1.js.map} +1 -1
- package/dist/runtime/{versionSelector-CUNYhtry.mjs → versionSelector-qjip48x0.mjs} +2 -2
- package/dist/runtime/{versionSelector-CUNYhtry.mjs.map → versionSelector-qjip48x0.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 +69 -48
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.d.ts +69 -48
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/runtime/error-C4TyorFL.js.map +0 -1
- package/dist/runtime/error-CClf0-CM.d.mts.map +0 -1
- package/dist/runtime/error-D6MGXq-n.mjs.map +0 -1
- package/dist/runtime/error-o9rMDFII.d.ts.map +0 -1
- package/dist/runtime/index-BZAgbf9u.d.ts.map +0 -1
- package/dist/runtime/index-C799Ulyv.d.mts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../index-
|
|
1
|
+
import "../../index-mWwcbHdf.js";
|
|
2
2
|
import "../../moduleManager-WB15hU3T.js";
|
|
3
|
-
import { C as trimLeadingSlash, S as toURL, _ as pathFromFullPath, a as hasBannedHrefProtocol, b as sanitizeHref, c as hasUrlInFragment, d as isDevAccountPortalOrigin, f as isDevOrStagingUrl, g as mergeFragmentIntoUrl, h as isValidUrl, i as getSearchParameterFromHash, l as isAllowedRedirect, m as isRedirectForFAPIInitiatedFlow, n as createAllowedRedirectOrigins, o as hasBannedProtocol, p as isProblematicUrl, r as getETLDPlusOneFromFrontendApi, s as hasExternalAccountSignUpError, t as buildURL, u as isDataUri, v as relativeToAbsoluteUrl, w as trimTrailingSlash, x as stripOrigin, y as requiresUserInput } from "../../url-
|
|
3
|
+
import { C as trimLeadingSlash, S as toURL, _ as pathFromFullPath, a as hasBannedHrefProtocol, b as sanitizeHref, c as hasUrlInFragment, d as isDevAccountPortalOrigin, f as isDevOrStagingUrl, g as mergeFragmentIntoUrl, h as isValidUrl, i as getSearchParameterFromHash, l as isAllowedRedirect, m as isRedirectForFAPIInitiatedFlow, n as createAllowedRedirectOrigins, o as hasBannedProtocol, p as isProblematicUrl, r as getETLDPlusOneFromFrontendApi, s as hasExternalAccountSignUpError, t as buildURL, u as isDataUri, v as relativeToAbsoluteUrl, w as trimTrailingSlash, x as stripOrigin, y as requiresUserInput } from "../../url-DnGvZXOp.js";
|
|
4
4
|
export { buildURL, createAllowedRedirectOrigins, getETLDPlusOneFromFrontendApi, getSearchParameterFromHash, hasBannedHrefProtocol, hasBannedProtocol, hasExternalAccountSignUpError, hasUrlInFragment, isAllowedRedirect, isDataUri, isDevAccountPortalOrigin, isDevOrStagingUrl, isProblematicUrl, isRedirectForFAPIInitiatedFlow, isValidUrl, mergeFragmentIntoUrl, pathFromFullPath, relativeToAbsoluteUrl, requiresUserInput, sanitizeHref, stripOrigin, toURL, trimLeadingSlash, trimTrailingSlash };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Vu as Web3Provider, ks as GenerateSignature } from "../../index-CfDaR9LG.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 { Vu as Web3Provider, ks as GenerateSignature } from "../../index-mWwcbHdf.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
|
-
const require_error = require('../../error-
|
|
1
|
+
const require_error = require('../../error-DrrOZs0y.js');
|
|
2
2
|
require('../../errors-II8zqiVo.js');
|
|
3
3
|
const require_hex = require('../../hex-BqnWN2wZ.js');
|
|
4
4
|
const require_injectedWeb3EthProviders = require('../../injectedWeb3EthProviders-BhelKFzu.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as ClerkRuntimeError, y as buildErrorThrower } from "../../error-flb1JlUM.mjs";
|
|
2
2
|
import "../../errors-Rum4SQ26.mjs";
|
|
3
3
|
import { t as toHex } from "../../hex-vIQQeRT9.mjs";
|
|
4
4
|
import { t as getInjectedWeb3EthProviders } from "../../injectedWeb3EthProviders-C531qWpV.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Qi as JwtPayload, T as SharedSignedInAuthObjectProperties } from "./index-CfDaR9LG.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-mWwcbHdf.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
|
@@ -2,13 +2,13 @@ require('./constants-B8tEdUlH.js');
|
|
|
2
2
|
require('./isomorphicAtob-Chnw1Md3.js');
|
|
3
3
|
require('./isomorphicBtoa-oWNvIgSP.js');
|
|
4
4
|
const require_keys = require('./keys-wr08qE7Y.js');
|
|
5
|
-
const require_error = require('./error-
|
|
5
|
+
const require_error = require('./error-DrrOZs0y.js');
|
|
6
6
|
require('./retry-pHsqGFr0.js');
|
|
7
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-CyoiKZP1.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-snapshot.
|
|
150
|
+
})}/npm/@clerk/ui@${require_versionSelector.versionSelector(clerkUiVersion, "1.0.0-snapshot.v20260105214115")}/dist/ui.browser.js`;
|
|
151
151
|
};
|
|
152
152
|
const buildClerkJsScriptAttributes = (options) => {
|
|
153
153
|
const obj = {};
|
|
@@ -2,13 +2,13 @@ import "./constants-Bp0qtelQ.mjs";
|
|
|
2
2
|
import "./isomorphicAtob-CYR5fxvZ.mjs";
|
|
3
3
|
import "./isomorphicBtoa-Db71q4D6.mjs";
|
|
4
4
|
import { n as createDevOrStagingUrlCache, u as parsePublishableKey } from "./keys-BGyzAyGu.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { m as ClerkRuntimeError, y as buildErrorThrower } from "./error-flb1JlUM.mjs";
|
|
6
6
|
import "./retry-l1_iB-NH.mjs";
|
|
7
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-qjip48x0.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-snapshot.
|
|
150
|
+
})}/npm/@clerk/ui@${versionSelector(clerkUiVersion, "1.0.0-snapshot.v20260105214115")}/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 { Eu as OAuthStrategy, dd as OAuthProvider, fd as OAuthProviderData } from "./index-CfDaR9LG.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 { Eu as OAuthStrategy, dd as OAuthProvider, fd as OAuthProviderData } from "./index-mWwcbHdf.js";
|
|
2
2
|
import "./moduleManager-WB15hU3T.js";
|
|
3
3
|
|
|
4
4
|
//#region src/oauth.d.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poller.d.ts","names":[],"sources":["../../src/poller.ts"],"sourcesContent":[],"mappings":";KAEY,UAAA;AAAA,KACA,cAAA,GADU,CAAA,IAAA,EACc,UADd,EAAA,GAC6B,OAD7B,CAAA,OAAA,CAAA;AACV,KACA,SAAA,GADc,CAAA,EAAA,EACG,cADO,
|
|
1
|
+
{"version":3,"file":"poller.d.ts","names":[],"sources":["../../src/poller.ts"],"sourcesContent":[],"mappings":";KAEY,UAAA;AAAA,KACA,cAAA,GADU,CAAA,IAAA,EACc,UADd,EAAA,GAC6B,OAD7B,CAAA,OAAA,CAAA;AACV,KACA,SAAA,GADc,CAAA,EAAA,EACG,cADO,EAAe,GACH,OADU,CAAA,IAAA,CAAA;AAC1D,KAEK,aAAA,GAFgB;EAEhB,SAAA,EAAA,MAAa;AAIlB,CAAA;AAQgB,KARJ,MAAA,GAQU;EAAG,GAAA,EAPlB,SAOkB;EAAa,IAAA,EAN9B,UAM8B;CAAsC;;;;iBAA5D,MAAA;;IAAsB,gBAAsC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as CreateOrganizationParams, $a as GetUserOrganizationMembershipParams, B as CheckoutSignalValue, Bd as BillingStatementResource, Bf as ClerkAPIResponseError, Ca as OrganizationMembershipRequestResource, D as APIKeyResource, G as ClerkOptions, Gd as BillingSubscriptionResource, Id as BillingPaymentResource, Jn as ClientResource, Ka as SignedInSessionResource, Of as ClerkPaginatedResponse, Pd as BillingPaymentMethodResource, Po as SessionVerificationLevel, Qa as GetUserOrganizationInvitationsParams, Rd as BillingPlanResource, Td as BillingCheckoutResource, Wd as BillingSubscriptionPlanPeriod, Yd as CheckoutFlowResource, _ as UseSessionListReturn, _a as OrganizationResource, ao as UserResource, cu as OrganizationDomainResource, da as GetMembersParams, ef as ForPayerType, eo as GetUserOrganizationSuggestionsParams, fa as GetMembershipRequestParams, ft as LoadedClerk, hl as ClerkAPIResponseError$1, la as GetDomainsParams, mo as OrganizationSuggestionResource, nt as GetAPIKeysParams, ra as OrganizationMembershipResource, so as UserOrganizationInvitationResource, ua as GetInvitationsParams, v as UseSessionReturn, wt as SetActive, x as UseUserReturn, zo as OrganizationInvitationResource } from "../index-CfDaR9LG.mjs";
|
|
2
2
|
import "../moduleManager-BYIq4wgi.mjs";
|
|
3
|
-
import "../error-
|
|
3
|
+
import "../error-CK2o3GxF.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 GetUserOrganizationMembershipParams, B as CheckoutSignalValue, Bd as BillingStatementResource, Bf as ClerkAPIResponseError, Ca as OrganizationMembershipRequestResource, D as APIKeyResource, G as ClerkOptions, Gd as BillingSubscriptionResource, Id as BillingPaymentResource, Jn as ClientResource, Ka as SignedInSessionResource, Of as ClerkPaginatedResponse, Pd as BillingPaymentMethodResource, Po as SessionVerificationLevel, Qa as GetUserOrganizationInvitationsParams, Rd as BillingPlanResource, Td as BillingCheckoutResource, Wd as BillingSubscriptionPlanPeriod, Yd as CheckoutFlowResource, _ as UseSessionListReturn, _a as OrganizationResource, ao as UserResource, cu as OrganizationDomainResource, da as GetMembersParams, ef as ForPayerType, eo as GetUserOrganizationSuggestionsParams, fa as GetMembershipRequestParams, ft as LoadedClerk, hl as ClerkAPIResponseError$1, la as GetDomainsParams, mo as OrganizationSuggestionResource, nt as GetAPIKeysParams, ra as OrganizationMembershipResource, so as UserOrganizationInvitationResource, ua as GetInvitationsParams, v as UseSessionReturn, wt as SetActive, x as UseUserReturn, zo as OrganizationInvitationResource } from "../index-mWwcbHdf.js";
|
|
2
2
|
import "../moduleManager-WB15hU3T.js";
|
|
3
|
-
import "../error-
|
|
3
|
+
import "../error-BswSPiAB.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;
|
|
@@ -5,7 +5,7 @@ require('../isomorphicBtoa-oWNvIgSP.js');
|
|
|
5
5
|
require('../keys-wr08qE7Y.js');
|
|
6
6
|
const require_authorization_errors = require('../authorization-errors-B7aH39AU.js');
|
|
7
7
|
const require_authorization = require('../authorization-BE2IYdvb.js');
|
|
8
|
-
const require_error = require('../error-
|
|
8
|
+
const require_error = require('../error-DrrOZs0y.js');
|
|
9
9
|
const require_organization = require('../organization-BOnxJJGM.js');
|
|
10
10
|
require('../noop-DEV2Xnb4.js');
|
|
11
11
|
require('../underscore-moIbQc1H.js');
|
|
@@ -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({
|