@clerk/chrome-extension 3.0.0-canary-core3.v20251127230404 → 3.0.0-canary-core3.v20251202144142

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.
@@ -1236,7 +1236,7 @@ function handleValueOrFn(value, url, defaultValue) {
1236
1236
  if (typeof defaultValue !== "undefined") return defaultValue;
1237
1237
  }
1238
1238
 
1239
- // ../shared/dist/runtime/utils-D2Tq-GIn.mjs
1239
+ // ../shared/dist/runtime/utils-DIVknyRo.mjs
1240
1240
  var logErrorInDevMode = (message) => {
1241
1241
  if (isDevelopmentEnvironment()) console.error(`Clerk: ${message}`);
1242
1242
  };
@@ -1842,7 +1842,7 @@ var _UserButton = withClerk(
1842
1842
  const { customPages, customPagesPortals } = useUserProfileCustomPages(props.children, {
1843
1843
  allowForAnyChildren: !!props.__experimental_asProvider
1844
1844
  });
1845
- const userProfileProps = Object.assign(props.userProfileProps || {}, { customPages });
1845
+ const userProfileProps = { ...props.userProfileProps, customPages };
1846
1846
  const { customMenuItems, customMenuItemsPortals } = useUserButtonCustomMenuItems(props.children, {
1847
1847
  allowForAnyChildren: !!props.__experimental_asProvider
1848
1848
  });
@@ -1986,7 +1986,7 @@ var _OrganizationSwitcher = withClerk(
1986
1986
  const { customPages, customPagesPortals } = useOrganizationProfileCustomPages(props.children, {
1987
1987
  allowForAnyChildren: !!props.__experimental_asProvider
1988
1988
  });
1989
- const organizationProfileProps = Object.assign(props.organizationProfileProps || {}, { customPages });
1989
+ const organizationProfileProps = { ...props.organizationProfileProps, customPages };
1990
1990
  const sanitizedChildren = useSanitizedChildren(props.children);
1991
1991
  const passableProps = {
1992
1992
  mount: clerk2.mountOrganizationSwitcher,
@@ -2298,6 +2298,22 @@ function addClerkPrefix(str) {
2298
2298
  return `clerk.${str.replace(regex, "")}`;
2299
2299
  }
2300
2300
 
2301
+ // ../shared/dist/runtime/versionSelector-BYAiv-Ld.mjs
2302
+ var versionSelector = (clerkJSVersion, packageVersion = "6.0.0-canary-core3.v20251202144142") => {
2303
+ if (clerkJSVersion) return clerkJSVersion;
2304
+ const prereleaseTag = getPrereleaseTag(packageVersion);
2305
+ if (prereleaseTag) {
2306
+ if (prereleaseTag === "snapshot") return "6.0.0-canary-core3.v20251202144142";
2307
+ return prereleaseTag;
2308
+ }
2309
+ return getMajorVersion(packageVersion);
2310
+ };
2311
+ var getPrereleaseTag = (packageVersion) => {
2312
+ var _a5;
2313
+ return (_a5 = packageVersion.trim().replace(/^v/, "").match(/-(.+?)(\.|$)/)) == null ? void 0 : _a5[1];
2314
+ };
2315
+ var getMajorVersion = (packageVersion) => packageVersion.trim().replace(/^v/, "").split(".")[0];
2316
+
2301
2317
  // ../shared/dist/runtime/loadClerkJsScript.mjs
2302
2318
  var { isDevOrStagingUrl } = createDevOrStagingUrlCache();
2303
2319
  var errorThrower2 = buildErrorThrower({ packageName: "@clerk/shared" });
@@ -2331,13 +2347,13 @@ var loadClerkUiScript = async (opts) => {
2331
2347
  return loadPromise;
2332
2348
  };
2333
2349
  var clerkUiScriptUrl = (opts) => {
2334
- const { clerkUiUrl, proxyUrl, domain, publishableKey } = opts;
2350
+ const { clerkUiUrl, clerkUiVersion, proxyUrl, domain, publishableKey } = opts;
2335
2351
  if (clerkUiUrl) return clerkUiUrl;
2336
2352
  return `https://${buildScriptHost({
2337
2353
  publishableKey,
2338
2354
  proxyUrl,
2339
2355
  domain
2340
- })}/npm/@clerk/ui@latest/dist/ui.browser.js`;
2356
+ })}/npm/@clerk/ui@${versionSelector(clerkUiVersion)}/dist/ui.browser.js`;
2341
2357
  };
2342
2358
  var buildClerkJsScriptAttributes = (options) => {
2343
2359
  const obj = {};
@@ -2979,7 +2995,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
2979
2995
  }
2980
2996
  var SDK_METADATA = {
2981
2997
  name: "@clerk/react",
2982
- version: "6.0.0-canary-core3.v20251127230404",
2998
+ version: "6.0.0-canary-core3.v20251202144142",
2983
2999
  environment: process.env.NODE_ENV
2984
3000
  };
2985
3001
  var _status;
@@ -4118,11 +4134,14 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
4118
4134
  return global.Clerk;
4119
4135
  }
4120
4136
  async getClerkUiEntryChunk() {
4137
+ var _a5, _b;
4121
4138
  if (this.options.clerkUiCtor) {
4122
4139
  return this.options.clerkUiCtor;
4123
4140
  }
4124
4141
  await loadClerkUiScript({
4125
4142
  ...this.options,
4143
+ clerkUiVersion: (_a5 = this.options.ui) == null ? void 0 : _a5.version,
4144
+ clerkUiUrl: ((_b = this.options.ui) == null ? void 0 : _b.url) || this.options.clerkUiUrl,
4126
4145
  publishableKey: __privateGet2(this, _publishableKey),
4127
4146
  proxyUrl: this.proxyUrl,
4128
4147
  domain: this.domain,
@@ -4311,20 +4330,13 @@ var useLoadedIsomorphicClerk = (options) => {
4311
4330
  return { isomorphicClerk: isomorphicClerkRef.current, clerkStatus };
4312
4331
  };
4313
4332
  function ClerkProviderBase(props) {
4314
- const { initialState, children, __internal_bypassMissingPublishableKey, ...restIsomorphicClerkOptions } = props;
4315
- const { publishableKey = "", Clerk: userInitialisedClerk } = restIsomorphicClerkOptions;
4316
- if (!userInitialisedClerk && !__internal_bypassMissingPublishableKey) {
4317
- if (!publishableKey) {
4318
- errorThrower.throwMissingPublishableKeyError();
4319
- } else if (publishableKey && !isPublishableKey(publishableKey)) {
4320
- errorThrower.throwInvalidPublishableKeyError({ key: publishableKey });
4321
- }
4322
- }
4333
+ const { initialState, children, ...restIsomorphicClerkOptions } = props;
4334
+ const isomorphicClerkOptions = restIsomorphicClerkOptions;
4323
4335
  return /* @__PURE__ */ React7__default.default.createElement(
4324
4336
  ClerkContextProvider,
4325
4337
  {
4326
4338
  initialState,
4327
- isomorphicClerkOptions: restIsomorphicClerkOptions
4339
+ isomorphicClerkOptions
4328
4340
  },
4329
4341
  children
4330
4342
  );
@@ -4533,7 +4545,7 @@ var BrowserStorageCache = createBrowserStorageCache();
4533
4545
  var clerk;
4534
4546
  noRhc.Clerk.sdkMetadata = {
4535
4547
  name: "@clerk/chrome-extension",
4536
- version: "3.0.0-canary-core3.v20251127230404"
4548
+ version: "3.0.0-canary-core3.v20251202144142"
4537
4549
  };
4538
4550
  function createClerkClient({
4539
4551
  __experimental_syncHostListener = false,