@clerk/chrome-extension 2.8.3-snapshot.v20251120175123 → 2.8.3-snapshot.v20251120182959
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 +1 -1
- package/dist/cjs/index.js +49 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +29 -3
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-WLI2DORG.js → chunk-JL62M3KX.js} +3 -3
- package/dist/esm/{chunk-WLI2DORG.js.map → chunk-JL62M3KX.js.map} +1 -1
- package/dist/esm/{chunk-XV75JCJG.js → chunk-M6BEX3OU.js} +52 -14
- package/dist/esm/chunk-M6BEX3OU.js.map +1 -0
- 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 +4 -4
- package/dist/esm/chunk-XV75JCJG.js.map +0 -1
package/dist/cjs/react/index.js
CHANGED
|
@@ -844,7 +844,7 @@ function dequal2(foo, bar) {
|
|
|
844
844
|
return foo !== foo && bar !== bar;
|
|
845
845
|
}
|
|
846
846
|
|
|
847
|
-
// ../shared/dist/runtime/
|
|
847
|
+
// ../shared/dist/runtime/organization-DTQcO2TH.mjs
|
|
848
848
|
function assertContextExists(contextVal, msgOrCtx) {
|
|
849
849
|
if (!contextVal) throw typeof msgOrCtx === "string" ? new Error(msgOrCtx) : /* @__PURE__ */ new Error(`${msgOrCtx.displayName} not found`);
|
|
850
850
|
}
|
|
@@ -2677,7 +2677,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
2677
2677
|
}
|
|
2678
2678
|
var SDK_METADATA = {
|
|
2679
2679
|
name: "@clerk/clerk-react",
|
|
2680
|
-
version: "5.
|
|
2680
|
+
version: "5.57.0-snapshot.v20251120182959",
|
|
2681
2681
|
environment: process.env.NODE_ENV
|
|
2682
2682
|
};
|
|
2683
2683
|
var _status;
|
|
@@ -2695,6 +2695,7 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
2695
2695
|
this.clerkjs = null;
|
|
2696
2696
|
this.preopenOneTap = null;
|
|
2697
2697
|
this.preopenUserVerification = null;
|
|
2698
|
+
this.preopenEnableOrganizationsPrompt = null;
|
|
2698
2699
|
this.preopenSignIn = null;
|
|
2699
2700
|
this.preopenCheckout = null;
|
|
2700
2701
|
this.preopenPlanDetails = null;
|
|
@@ -3087,6 +3088,20 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
3087
3088
|
this.preopenUserVerification = null;
|
|
3088
3089
|
}
|
|
3089
3090
|
};
|
|
3091
|
+
this.__internal_openEnableOrganizationsPrompt = (props) => {
|
|
3092
|
+
if (this.clerkjs && this.loaded) {
|
|
3093
|
+
this.clerkjs.__internal_openEnableOrganizationsPrompt(props);
|
|
3094
|
+
} else {
|
|
3095
|
+
this.preopenEnableOrganizationsPrompt = props;
|
|
3096
|
+
}
|
|
3097
|
+
};
|
|
3098
|
+
this.__internal_closeEnableOrganizationsPrompt = () => {
|
|
3099
|
+
if (this.clerkjs && this.loaded) {
|
|
3100
|
+
this.clerkjs.__internal_closeEnableOrganizationsPrompt();
|
|
3101
|
+
} else {
|
|
3102
|
+
this.preopenEnableOrganizationsPrompt = null;
|
|
3103
|
+
}
|
|
3104
|
+
};
|
|
3090
3105
|
this.openGoogleOneTap = (props) => {
|
|
3091
3106
|
if (this.clerkjs && this.loaded) {
|
|
3092
3107
|
this.clerkjs.openGoogleOneTap(props);
|
|
@@ -3678,6 +3693,17 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
3678
3693
|
this.premountMethodCalls.set("signOut", callback);
|
|
3679
3694
|
}
|
|
3680
3695
|
};
|
|
3696
|
+
this.__internal_attemptToEnableEnvironmentSetting = (options2) => {
|
|
3697
|
+
const callback = () => {
|
|
3698
|
+
var _a5;
|
|
3699
|
+
return (_a5 = this.clerkjs) == null ? void 0 : _a5.__internal_attemptToEnableEnvironmentSetting(options2);
|
|
3700
|
+
};
|
|
3701
|
+
if (this.clerkjs && this.loaded) {
|
|
3702
|
+
return callback();
|
|
3703
|
+
} else {
|
|
3704
|
+
this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting", callback);
|
|
3705
|
+
}
|
|
3706
|
+
};
|
|
3681
3707
|
const { Clerk: Clerk2 = null, publishableKey } = options || {};
|
|
3682
3708
|
__privateSet2(this, _publishableKey, publishableKey);
|
|
3683
3709
|
__privateSet2(this, _proxyUrl, options == null ? void 0 : options.proxyUrl);
|
|
@@ -4221,7 +4247,7 @@ var BrowserStorageCache = createBrowserStorageCache();
|
|
|
4221
4247
|
var clerk;
|
|
4222
4248
|
noRhc.Clerk.sdkMetadata = {
|
|
4223
4249
|
name: "@clerk/chrome-extension",
|
|
4224
|
-
version: "2.8.3-snapshot.
|
|
4250
|
+
version: "2.8.3-snapshot.v20251120182959"
|
|
4225
4251
|
};
|
|
4226
4252
|
async function createClerkClient({
|
|
4227
4253
|
__experimental_syncHostListener = false,
|