@clerk/chrome-extension 2.8.7-snapshot.v20251125180024 → 2.8.7-snapshot.v20251127123052

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.
@@ -1,4 +1,4 @@
1
- import { createClerkClient, SCOPE } from '../chunk-TSHOIDH5.js';
1
+ import { createClerkClient, SCOPE } from '../chunk-R45RD2LA.js';
2
2
  import { Clerk } from '@clerk/clerk-js/no-rhc';
3
3
 
4
4
  Clerk.mountComponentRenderer = void 0;
@@ -1,4 +1,4 @@
1
- import { __export, buildErrorThrower, createDevOrStagingUrlCache, __publicField, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-TSHOIDH5.js';
1
+ import { __export, buildErrorThrower, createDevOrStagingUrlCache, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-R45RD2LA.js';
2
2
  import React7, { createContext, useContext, useState, useRef, useEffect, createElement, useCallback, useMemo, useLayoutEffect, useDebugValue } from 'react';
3
3
  import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
4
4
  import { createPortal } from 'react-dom';
@@ -1526,7 +1526,7 @@ function dequal2(foo, bar) {
1526
1526
  return foo !== foo && bar !== bar;
1527
1527
  }
1528
1528
 
1529
- // ../shared/dist/runtime/organization-DHjBGBxW.mjs
1529
+ // ../shared/dist/runtime/organization-BaT3MVo3.mjs
1530
1530
  function assertContextExists(contextVal, msgOrCtx) {
1531
1531
  if (!contextVal) throw typeof msgOrCtx === "string" ? new Error(msgOrCtx) : /* @__PURE__ */ new Error(`${msgOrCtx.displayName} not found`);
1532
1532
  }
@@ -2358,35 +2358,6 @@ var createElementComponent = (type, isServer) => {
2358
2358
  createElementComponent("payment", typeof window === "undefined");
2359
2359
  createContextAndHook("PaymentElementContext");
2360
2360
  createContextAndHook("StripeUtilsContext");
2361
- var PortalRootManager = class {
2362
- constructor() {
2363
- __publicField(this, "stack", []);
2364
- }
2365
- /**
2366
- * Push a new portal root getter onto the stack.
2367
- * @param getContainer Function that returns the container element
2368
- */
2369
- push(getContainer) {
2370
- this.stack.push(getContainer);
2371
- }
2372
- /**
2373
- * Pop the most recent portal root from the stack.
2374
- */
2375
- pop() {
2376
- this.stack.pop();
2377
- }
2378
- /**
2379
- * Get the current (topmost) portal root container.
2380
- * @returns The container element or null if no provider is active
2381
- */
2382
- getCurrent() {
2383
- if (this.stack.length === 0) return null;
2384
- const getContainer = this.stack[this.stack.length - 1];
2385
- return getContainer();
2386
- }
2387
- };
2388
- new PortalRootManager();
2389
- createContextAndHook("PortalProvider");
2390
2361
  function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
2391
2362
  return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
2392
2363
  }
@@ -3360,7 +3331,7 @@ var _UserButton = withClerk(
3360
3331
  const { customPages, customPagesPortals } = useUserProfileCustomPages(props.children, {
3361
3332
  allowForAnyChildren: !!props.__experimental_asProvider
3362
3333
  });
3363
- const userProfileProps = Object.assign(props.userProfileProps || {}, { customPages });
3334
+ const userProfileProps = { ...props.userProfileProps, customPages };
3364
3335
  const { customMenuItems, customMenuItemsPortals } = useUserButtonCustomMenuItems(props.children, {
3365
3336
  allowForAnyChildren: !!props.__experimental_asProvider
3366
3337
  });
@@ -3504,7 +3475,7 @@ var _OrganizationSwitcher = withClerk(
3504
3475
  const { customPages, customPagesPortals } = useOrganizationProfileCustomPages(props.children, {
3505
3476
  allowForAnyChildren: !!props.__experimental_asProvider
3506
3477
  });
3507
- const organizationProfileProps = Object.assign(props.organizationProfileProps || {}, { customPages });
3478
+ const organizationProfileProps = { ...props.organizationProfileProps, customPages };
3508
3479
  const sanitizedChildren = useSanitizedChildren(props.children);
3509
3480
  const passableProps = {
3510
3481
  mount: clerk.mountOrganizationSwitcher,
@@ -3704,7 +3675,7 @@ var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError("Canno
3704
3675
  var __privateSet2 = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
3705
3676
  var __privateMethod2 = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
3706
3677
 
3707
- // ../shared/dist/runtime/loadClerkJsScript-ByTsg9c-.mjs
3678
+ // ../shared/dist/runtime/loadClerkJsScript-9otWubD3.mjs
3708
3679
  var { isDevOrStagingUrl } = createDevOrStagingUrlCache();
3709
3680
  var errorThrower2 = buildErrorThrower({ packageName: "@clerk/shared" });
3710
3681
  function setClerkJsLoadingErrorPackageName(packageName) {
@@ -4224,7 +4195,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
4224
4195
  }
4225
4196
  var SDK_METADATA = {
4226
4197
  name: "@clerk/clerk-react",
4227
- version: "5.57.1-snapshot.v20251125180024",
4198
+ version: "5.58.0-snapshot.v20251127123052",
4228
4199
  environment: process.env.NODE_ENV
4229
4200
  };
4230
4201
  var _status;
@@ -4396,10 +4367,10 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
4396
4367
  this.premountMethodCalls.set("buildWaitlistUrl", callback);
4397
4368
  }
4398
4369
  };
4399
- this.buildTasksUrl = () => {
4370
+ this.buildTasksUrl = (opts) => {
4400
4371
  const callback = () => {
4401
4372
  var _a;
4402
- return ((_a = this.clerkjs) == null ? void 0 : _a.buildTasksUrl()) || "";
4373
+ return ((_a = this.clerkjs) == null ? void 0 : _a.buildTasksUrl(opts)) || "";
4403
4374
  };
4404
4375
  if (this.clerkjs && this.loaded) {
4405
4376
  return callback();
@@ -5626,5 +5597,5 @@ function ClerkProvider2(props) {
5626
5597
  var GoogleOneTap2 = () => null;
5627
5598
 
5628
5599
  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 };
5629
- //# sourceMappingURL=chunk-CQGCR3OC.js.map
5630
- //# sourceMappingURL=chunk-CQGCR3OC.js.map
5600
+ //# sourceMappingURL=chunk-7USREJBT.js.map
5601
+ //# sourceMappingURL=chunk-7USREJBT.js.map