@clerk/chrome-extension 2.8.6 → 2.8.7-snapshot.v20251125180024
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 +32 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +32 -3
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-DY74JK52.js → chunk-CQGCR3OC.js} +35 -6
- package/dist/esm/chunk-CQGCR3OC.js.map +1 -0
- package/dist/esm/{chunk-TAOXAYHT.js → chunk-TSHOIDH5.js} +4 -4
- package/dist/esm/{chunk-TAOXAYHT.js.map → chunk-TSHOIDH5.js.map} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/react/index.js +2 -2
- package/package.json +4 -4
- package/dist/esm/chunk-DY74JK52.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/organization-
|
|
847
|
+
// ../shared/dist/runtime/organization-DHjBGBxW.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
|
}
|
|
@@ -1058,6 +1058,35 @@ var createElementComponent = (type, isServer) => {
|
|
|
1058
1058
|
createElementComponent("payment", typeof window === "undefined");
|
|
1059
1059
|
createContextAndHook("PaymentElementContext");
|
|
1060
1060
|
createContextAndHook("StripeUtilsContext");
|
|
1061
|
+
var PortalRootManager = class {
|
|
1062
|
+
constructor() {
|
|
1063
|
+
__publicField(this, "stack", []);
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Push a new portal root getter onto the stack.
|
|
1067
|
+
* @param getContainer Function that returns the container element
|
|
1068
|
+
*/
|
|
1069
|
+
push(getContainer) {
|
|
1070
|
+
this.stack.push(getContainer);
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Pop the most recent portal root from the stack.
|
|
1074
|
+
*/
|
|
1075
|
+
pop() {
|
|
1076
|
+
this.stack.pop();
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Get the current (topmost) portal root container.
|
|
1080
|
+
* @returns The container element or null if no provider is active
|
|
1081
|
+
*/
|
|
1082
|
+
getCurrent() {
|
|
1083
|
+
if (this.stack.length === 0) return null;
|
|
1084
|
+
const getContainer = this.stack[this.stack.length - 1];
|
|
1085
|
+
return getContainer();
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
new PortalRootManager();
|
|
1089
|
+
createContextAndHook("PortalProvider");
|
|
1061
1090
|
var errorThrower = buildErrorThrower({ packageName: "@clerk/clerk-react" });
|
|
1062
1091
|
function setErrorThrowerOptions(options) {
|
|
1063
1092
|
errorThrower.setMessages(options).setPackageName(options);
|
|
@@ -2676,7 +2705,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
2676
2705
|
}
|
|
2677
2706
|
var SDK_METADATA = {
|
|
2678
2707
|
name: "@clerk/clerk-react",
|
|
2679
|
-
version: "5.57.
|
|
2708
|
+
version: "5.57.1-snapshot.v20251125180024",
|
|
2680
2709
|
environment: process.env.NODE_ENV
|
|
2681
2710
|
};
|
|
2682
2711
|
var _status;
|
|
@@ -4249,7 +4278,7 @@ var BrowserStorageCache = createBrowserStorageCache();
|
|
|
4249
4278
|
var clerk;
|
|
4250
4279
|
noRhc.Clerk.sdkMetadata = {
|
|
4251
4280
|
name: "@clerk/chrome-extension",
|
|
4252
|
-
version: "2.8.
|
|
4281
|
+
version: "2.8.7-snapshot.v20251125180024"
|
|
4253
4282
|
};
|
|
4254
4283
|
async function createClerkClient({
|
|
4255
4284
|
__experimental_syncHostListener = false,
|