@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.
@@ -429,7 +429,7 @@ var BrowserStorageCache = createBrowserStorageCache();
429
429
  var clerk;
430
430
  noRhc.Clerk.sdkMetadata = {
431
431
  name: "@clerk/chrome-extension",
432
- version: "2.8.6"
432
+ version: "2.8.7-snapshot.v20251125180024"
433
433
  };
434
434
  async function createClerkClient({
435
435
  __experimental_syncHostListener = false,
package/dist/cjs/index.js CHANGED
@@ -1764,7 +1764,7 @@ function dequal2(foo, bar) {
1764
1764
  return foo !== foo && bar !== bar;
1765
1765
  }
1766
1766
 
1767
- // ../shared/dist/runtime/organization-DsA9O7QJ.mjs
1767
+ // ../shared/dist/runtime/organization-DHjBGBxW.mjs
1768
1768
  function assertContextExists(contextVal, msgOrCtx) {
1769
1769
  if (!contextVal) throw typeof msgOrCtx === "string" ? new Error(msgOrCtx) : /* @__PURE__ */ new Error(`${msgOrCtx.displayName} not found`);
1770
1770
  }
@@ -2596,6 +2596,35 @@ var createElementComponent = (type, isServer) => {
2596
2596
  createElementComponent("payment", typeof window === "undefined");
2597
2597
  createContextAndHook("PaymentElementContext");
2598
2598
  createContextAndHook("StripeUtilsContext");
2599
+ var PortalRootManager = class {
2600
+ constructor() {
2601
+ __publicField(this, "stack", []);
2602
+ }
2603
+ /**
2604
+ * Push a new portal root getter onto the stack.
2605
+ * @param getContainer Function that returns the container element
2606
+ */
2607
+ push(getContainer) {
2608
+ this.stack.push(getContainer);
2609
+ }
2610
+ /**
2611
+ * Pop the most recent portal root from the stack.
2612
+ */
2613
+ pop() {
2614
+ this.stack.pop();
2615
+ }
2616
+ /**
2617
+ * Get the current (topmost) portal root container.
2618
+ * @returns The container element or null if no provider is active
2619
+ */
2620
+ getCurrent() {
2621
+ if (this.stack.length === 0) return null;
2622
+ const getContainer = this.stack[this.stack.length - 1];
2623
+ return getContainer();
2624
+ }
2625
+ };
2626
+ new PortalRootManager();
2627
+ createContextAndHook("PortalProvider");
2599
2628
  function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
2600
2629
  return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
2601
2630
  }
@@ -4430,7 +4459,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
4430
4459
  }
4431
4460
  var SDK_METADATA = {
4432
4461
  name: "@clerk/clerk-react",
4433
- version: "5.57.0",
4462
+ version: "5.57.1-snapshot.v20251125180024",
4434
4463
  environment: process.env.NODE_ENV
4435
4464
  };
4436
4465
  var _status;
@@ -6003,7 +6032,7 @@ var BrowserStorageCache = createBrowserStorageCache();
6003
6032
  var clerk;
6004
6033
  noRhc.Clerk.sdkMetadata = {
6005
6034
  name: "@clerk/chrome-extension",
6006
- version: "2.8.6"
6035
+ version: "2.8.7-snapshot.v20251125180024"
6007
6036
  };
6008
6037
  async function createClerkClient({
6009
6038
  __experimental_syncHostListener = false,