@clerk/chrome-extension 3.0.0-snapshot.v20251203203405 → 3.0.0-snapshot.v20251204175016
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/cjs/background/index.js +3 -3
- package/dist/cjs/background/index.js.map +1 -1
- package/dist/cjs/index.js +35 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +34 -34
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-XZ4WSN7L.js → chunk-NJBILYFZ.js} +35 -35
- package/dist/esm/{chunk-XZ4WSN7L.js.map → chunk-NJBILYFZ.js.map} +1 -1
- package/dist/esm/{chunk-XJR6JFGA.js → chunk-WGZF3FA5.js} +5 -5
- package/dist/esm/{chunk-XJR6JFGA.js.map → chunk-WGZF3FA5.js.map} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/react/index.js +2 -2
- package/dist/types/internal/utils/errors.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export, buildErrorThrower, createDevOrStagingUrlCache, ClerkRuntimeError, parsePublishableKey, createClerkClient, isClerkAPIResponseError } from './chunk-
|
|
1
|
+
import { __export, buildErrorThrower, createDevOrStagingUrlCache, ClerkRuntimeError, parsePublishableKey, createClerkClient, isClerkAPIResponseError } from './chunk-WGZF3FA5.js';
|
|
2
2
|
import React7, { createContext, useContext, useState, useRef, useEffect, createElement, useCallback, useMemo, useSyncExternalStore, useLayoutEffect, useDebugValue } from 'react';
|
|
3
3
|
import { useSyncExternalStore as useSyncExternalStore$1 } from 'use-sync-external-store/shim/index.js';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
@@ -200,7 +200,7 @@ function getCurrentOrganizationMembership(organizationMemberships, organizationI
|
|
|
200
200
|
var noop = (..._args) => {
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
// ../shared/dist/runtime/telemetry-
|
|
203
|
+
// ../shared/dist/runtime/telemetry-DnVD78JJ.mjs
|
|
204
204
|
var EVENT_METHOD_CALLED = "METHOD_CALLED";
|
|
205
205
|
var EVENT_SAMPLING_RATE$2 = 0.1;
|
|
206
206
|
function eventMethodCalled(method, payload) {
|
|
@@ -3265,7 +3265,7 @@ var SignIn = withClerk(
|
|
|
3265
3265
|
component,
|
|
3266
3266
|
mount: clerk.mountSignIn,
|
|
3267
3267
|
unmount: clerk.unmountSignIn,
|
|
3268
|
-
updateProps: clerk.
|
|
3268
|
+
updateProps: clerk.__internal_updateProps,
|
|
3269
3269
|
props,
|
|
3270
3270
|
rootProps: rendererRootProps
|
|
3271
3271
|
}
|
|
@@ -3286,7 +3286,7 @@ var SignUp = withClerk(
|
|
|
3286
3286
|
component,
|
|
3287
3287
|
mount: clerk.mountSignUp,
|
|
3288
3288
|
unmount: clerk.unmountSignUp,
|
|
3289
|
-
updateProps: clerk.
|
|
3289
|
+
updateProps: clerk.__internal_updateProps,
|
|
3290
3290
|
props,
|
|
3291
3291
|
rootProps: rendererRootProps
|
|
3292
3292
|
}
|
|
@@ -3321,7 +3321,7 @@ var _UserProfile = withClerk(
|
|
|
3321
3321
|
component,
|
|
3322
3322
|
mount: clerk.mountUserProfile,
|
|
3323
3323
|
unmount: clerk.unmountUserProfile,
|
|
3324
|
-
updateProps: clerk.
|
|
3324
|
+
updateProps: clerk.__internal_updateProps,
|
|
3325
3325
|
props: { ...props, customPages },
|
|
3326
3326
|
rootProps: rendererRootProps
|
|
3327
3327
|
},
|
|
@@ -3365,7 +3365,7 @@ var _UserButton = withClerk(
|
|
|
3365
3365
|
const passableProps = {
|
|
3366
3366
|
mount: clerk.mountUserButton,
|
|
3367
3367
|
unmount: clerk.unmountUserButton,
|
|
3368
|
-
updateProps: clerk.
|
|
3368
|
+
updateProps: clerk.__internal_updateProps,
|
|
3369
3369
|
props: { ...props, userProfileProps, customMenuItems }
|
|
3370
3370
|
};
|
|
3371
3371
|
const portalProps = {
|
|
@@ -3444,7 +3444,7 @@ var _OrganizationProfile = withClerk(
|
|
|
3444
3444
|
component,
|
|
3445
3445
|
mount: clerk.mountOrganizationProfile,
|
|
3446
3446
|
unmount: clerk.unmountOrganizationProfile,
|
|
3447
|
-
updateProps: clerk.
|
|
3447
|
+
updateProps: clerk.__internal_updateProps,
|
|
3448
3448
|
props: { ...props, customPages },
|
|
3449
3449
|
rootProps: rendererRootProps
|
|
3450
3450
|
},
|
|
@@ -3470,7 +3470,7 @@ var CreateOrganization = withClerk(
|
|
|
3470
3470
|
component,
|
|
3471
3471
|
mount: clerk.mountCreateOrganization,
|
|
3472
3472
|
unmount: clerk.unmountCreateOrganization,
|
|
3473
|
-
updateProps: clerk.
|
|
3473
|
+
updateProps: clerk.__internal_updateProps,
|
|
3474
3474
|
props,
|
|
3475
3475
|
rootProps: rendererRootProps
|
|
3476
3476
|
}
|
|
@@ -3506,7 +3506,7 @@ var _OrganizationSwitcher = withClerk(
|
|
|
3506
3506
|
const passableProps = {
|
|
3507
3507
|
mount: clerk.mountOrganizationSwitcher,
|
|
3508
3508
|
unmount: clerk.unmountOrganizationSwitcher,
|
|
3509
|
-
updateProps: clerk.
|
|
3509
|
+
updateProps: clerk.__internal_updateProps,
|
|
3510
3510
|
props: { ...props, organizationProfileProps },
|
|
3511
3511
|
rootProps: rendererRootProps,
|
|
3512
3512
|
component
|
|
@@ -3553,7 +3553,7 @@ var OrganizationList = withClerk(
|
|
|
3553
3553
|
component,
|
|
3554
3554
|
mount: clerk.mountOrganizationList,
|
|
3555
3555
|
unmount: clerk.unmountOrganizationList,
|
|
3556
|
-
updateProps: clerk.
|
|
3556
|
+
updateProps: clerk.__internal_updateProps,
|
|
3557
3557
|
props,
|
|
3558
3558
|
rootProps: rendererRootProps
|
|
3559
3559
|
}
|
|
@@ -3574,7 +3574,7 @@ withClerk(
|
|
|
3574
3574
|
component,
|
|
3575
3575
|
open: clerk.openGoogleOneTap,
|
|
3576
3576
|
close: clerk.closeGoogleOneTap,
|
|
3577
|
-
updateProps: clerk.
|
|
3577
|
+
updateProps: clerk.__internal_updateProps,
|
|
3578
3578
|
props,
|
|
3579
3579
|
rootProps: rendererRootProps
|
|
3580
3580
|
}
|
|
@@ -3595,7 +3595,7 @@ var Waitlist = withClerk(
|
|
|
3595
3595
|
component,
|
|
3596
3596
|
mount: clerk.mountWaitlist,
|
|
3597
3597
|
unmount: clerk.unmountWaitlist,
|
|
3598
|
-
updateProps: clerk.
|
|
3598
|
+
updateProps: clerk.__internal_updateProps,
|
|
3599
3599
|
props,
|
|
3600
3600
|
rootProps: rendererRootProps
|
|
3601
3601
|
}
|
|
@@ -3619,7 +3619,7 @@ var PricingTable = withClerk(
|
|
|
3619
3619
|
component,
|
|
3620
3620
|
mount: clerk.mountPricingTable,
|
|
3621
3621
|
unmount: clerk.unmountPricingTable,
|
|
3622
|
-
updateProps: clerk.
|
|
3622
|
+
updateProps: clerk.__internal_updateProps,
|
|
3623
3623
|
props,
|
|
3624
3624
|
rootProps: rendererRootProps
|
|
3625
3625
|
}
|
|
@@ -3640,7 +3640,7 @@ var APIKeys = withClerk(
|
|
|
3640
3640
|
component,
|
|
3641
3641
|
mount: clerk.mountAPIKeys,
|
|
3642
3642
|
unmount: clerk.unmountAPIKeys,
|
|
3643
|
-
updateProps: clerk.
|
|
3643
|
+
updateProps: clerk.__internal_updateProps,
|
|
3644
3644
|
props,
|
|
3645
3645
|
rootProps: rendererRootProps
|
|
3646
3646
|
}
|
|
@@ -3661,7 +3661,7 @@ var UserAvatar = withClerk(
|
|
|
3661
3661
|
component,
|
|
3662
3662
|
mount: clerk.mountUserAvatar,
|
|
3663
3663
|
unmount: clerk.unmountUserAvatar,
|
|
3664
|
-
updateProps: clerk.
|
|
3664
|
+
updateProps: clerk.__internal_updateProps,
|
|
3665
3665
|
props,
|
|
3666
3666
|
rootProps: rendererRootProps
|
|
3667
3667
|
}
|
|
@@ -3682,7 +3682,7 @@ withClerk(
|
|
|
3682
3682
|
component,
|
|
3683
3683
|
mount: clerk.mountTaskChooseOrganization,
|
|
3684
3684
|
unmount: clerk.unmountTaskChooseOrganization,
|
|
3685
|
-
updateProps: clerk.
|
|
3685
|
+
updateProps: clerk.__internal_updateProps,
|
|
3686
3686
|
props,
|
|
3687
3687
|
rootProps: rendererRootProps
|
|
3688
3688
|
}
|
|
@@ -3813,12 +3813,12 @@ function addClerkPrefix(str) {
|
|
|
3813
3813
|
return `clerk.${str.replace(regex, "")}`;
|
|
3814
3814
|
}
|
|
3815
3815
|
|
|
3816
|
-
// ../shared/dist/runtime/versionSelector-
|
|
3817
|
-
var versionSelector = (clerkJSVersion, packageVersion = "6.0.0-snapshot.
|
|
3816
|
+
// ../shared/dist/runtime/versionSelector-C99RARtR.mjs
|
|
3817
|
+
var versionSelector = (clerkJSVersion, packageVersion = "6.0.0-snapshot.v20251204175016") => {
|
|
3818
3818
|
if (clerkJSVersion) return clerkJSVersion;
|
|
3819
3819
|
const prereleaseTag = getPrereleaseTag(packageVersion);
|
|
3820
3820
|
if (prereleaseTag) {
|
|
3821
|
-
if (prereleaseTag === "snapshot") return "6.0.0-snapshot.
|
|
3821
|
+
if (prereleaseTag === "snapshot") return "6.0.0-snapshot.v20251204175016";
|
|
3822
3822
|
return prereleaseTag;
|
|
3823
3823
|
}
|
|
3824
3824
|
return getMajorVersion(packageVersion);
|
|
@@ -3836,7 +3836,7 @@ function isClerkGlobalProperlyLoaded(prop) {
|
|
|
3836
3836
|
if (typeof window === "undefined" || !window[prop]) return false;
|
|
3837
3837
|
return !!window[prop];
|
|
3838
3838
|
}
|
|
3839
|
-
var isClerkUiProperlyLoaded = () => isClerkGlobalProperlyLoaded("
|
|
3839
|
+
var isClerkUiProperlyLoaded = () => isClerkGlobalProperlyLoaded("__internal_ClerkUiCtor");
|
|
3840
3840
|
var loadClerkUiScript = async (opts) => {
|
|
3841
3841
|
var _a;
|
|
3842
3842
|
const timeout = (_a = opts == null ? void 0 : opts.scriptLoadTimeout) != null ? _a : 15e3;
|
|
@@ -4510,7 +4510,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
4510
4510
|
}
|
|
4511
4511
|
var SDK_METADATA = {
|
|
4512
4512
|
name: "@clerk/react",
|
|
4513
|
-
version: "6.0.0-snapshot.
|
|
4513
|
+
version: "6.0.0-snapshot.v20251204175016",
|
|
4514
4514
|
environment: process.env.NODE_ENV
|
|
4515
4515
|
};
|
|
4516
4516
|
var _status;
|
|
@@ -4840,10 +4840,10 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4840
4840
|
this.__experimental_checkout = (...args) => {
|
|
4841
4841
|
return this.loaded && this.clerkjs ? this.clerkjs.__experimental_checkout(...args) : __privateGet2(this, _stateProxy).checkoutSignal(...args);
|
|
4842
4842
|
};
|
|
4843
|
-
this.
|
|
4843
|
+
this.__internal_updateProps = async (props) => {
|
|
4844
4844
|
const clerkjs = await __privateMethod2(this, _IsomorphicClerk_instances, waitForClerkJS_fn).call(this);
|
|
4845
|
-
if (clerkjs && "
|
|
4846
|
-
return clerkjs.
|
|
4845
|
+
if (clerkjs && "__internal_updateProps" in clerkjs) {
|
|
4846
|
+
return clerkjs.__internal_updateProps(props);
|
|
4847
4847
|
}
|
|
4848
4848
|
};
|
|
4849
4849
|
this.setActive = (params) => {
|
|
@@ -5691,10 +5691,10 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
5691
5691
|
domain: this.domain,
|
|
5692
5692
|
nonce: this.options.nonce
|
|
5693
5693
|
});
|
|
5694
|
-
if (!global.
|
|
5694
|
+
if (!global.__internal_ClerkUiCtor) {
|
|
5695
5695
|
throw new Error("Failed to download latest Clerk UI. Contact support@clerk.com.");
|
|
5696
5696
|
}
|
|
5697
|
-
return global.
|
|
5697
|
+
return global.__internal_ClerkUiCtor;
|
|
5698
5698
|
}
|
|
5699
5699
|
get version() {
|
|
5700
5700
|
var _a;
|
|
@@ -5735,9 +5735,9 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
5735
5735
|
return void 0;
|
|
5736
5736
|
}
|
|
5737
5737
|
}
|
|
5738
|
-
get
|
|
5738
|
+
get __internal_environment() {
|
|
5739
5739
|
if (this.clerkjs) {
|
|
5740
|
-
return this.clerkjs.
|
|
5740
|
+
return this.clerkjs.__internal_environment;
|
|
5741
5741
|
} else {
|
|
5742
5742
|
return void 0;
|
|
5743
5743
|
}
|
|
@@ -5760,9 +5760,9 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
5760
5760
|
var _a;
|
|
5761
5761
|
return (_a = this.clerkjs) == null ? void 0 : _a.apiKeys;
|
|
5762
5762
|
}
|
|
5763
|
-
|
|
5764
|
-
if (this.clerkjs && "
|
|
5765
|
-
this.clerkjs.
|
|
5763
|
+
__internal_setEnvironment(...args) {
|
|
5764
|
+
if (this.clerkjs && "__internal_setEnvironment" in this.clerkjs) {
|
|
5765
|
+
this.clerkjs.__internal_setEnvironment(args);
|
|
5766
5766
|
} else {
|
|
5767
5767
|
return void 0;
|
|
5768
5768
|
}
|
|
@@ -5857,10 +5857,10 @@ var useLoadedIsomorphicClerk = (options) => {
|
|
|
5857
5857
|
const isomorphicClerkRef = React7.useRef(IsomorphicClerk.getOrCreateInstance(options));
|
|
5858
5858
|
const [clerkStatus, setClerkStatus] = React7.useState(isomorphicClerkRef.current.status);
|
|
5859
5859
|
React7.useEffect(() => {
|
|
5860
|
-
void isomorphicClerkRef.current.
|
|
5860
|
+
void isomorphicClerkRef.current.__internal_updateProps({ appearance: options.appearance });
|
|
5861
5861
|
}, [options.appearance]);
|
|
5862
5862
|
React7.useEffect(() => {
|
|
5863
|
-
void isomorphicClerkRef.current.
|
|
5863
|
+
void isomorphicClerkRef.current.__internal_updateProps({ options });
|
|
5864
5864
|
}, [options.localization]);
|
|
5865
5865
|
React7.useEffect(() => {
|
|
5866
5866
|
isomorphicClerkRef.current.on("status", setClerkStatus);
|
|
@@ -5915,5 +5915,5 @@ function ClerkProvider2(props) {
|
|
|
5915
5915
|
var GoogleOneTap2 = () => null;
|
|
5916
5916
|
|
|
5917
5917
|
export { APIKeys, AuthenticateWithRedirectCallback, ClerkDegraded, ClerkFailed, ClerkLoaded, ClerkLoading, ClerkProvider2 as ClerkProvider, CreateOrganization, GoogleOneTap2 as GoogleOneTap, OrganizationList, OrganizationProfile, OrganizationSwitcher, PricingTable, Protect, RedirectToCreateOrganization, RedirectToOrganizationProfile, RedirectToSignIn, RedirectToSignUp, RedirectToUserProfile, SignIn, SignInButton, SignInWithMetamaskButton, SignOutButton, SignUp, SignUpButton, SignedIn, SignedOut, UserAvatar, UserButton, UserProfile, Waitlist, setErrorThrowerOptions, useAuth, useClerk, useEmailLink, useOrganization, useOrganizationList, useReverification, useSession, useSessionList, useSignIn, useSignUp, useUser };
|
|
5918
|
-
//# sourceMappingURL=chunk-
|
|
5919
|
-
//# sourceMappingURL=chunk-
|
|
5918
|
+
//# sourceMappingURL=chunk-NJBILYFZ.js.map
|
|
5919
|
+
//# sourceMappingURL=chunk-NJBILYFZ.js.map
|