@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.
@@ -429,7 +429,7 @@ var BrowserStorageCache = createBrowserStorageCache();
429
429
  var clerk;
430
430
  noRhc.Clerk.sdkMetadata = {
431
431
  name: "@clerk/chrome-extension",
432
- version: "3.0.0-canary-core3.v20251127230404"
432
+ version: "3.0.0-canary-core3.v20251202144142"
433
433
  };
434
434
  function createClerkClient({
435
435
  __experimental_syncHostListener = false,
package/dist/cjs/index.js CHANGED
@@ -478,7 +478,7 @@ function eventMethodCalled(method, payload) {
478
478
  };
479
479
  }
480
480
 
481
- // ../shared/dist/runtime/createDeferredPromise-z5ogj29d.mjs
481
+ // ../shared/dist/runtime/createDeferredPromise-DjiBNELG.mjs
482
482
  var createDeferredPromise = () => {
483
483
  let resolve = noop;
484
484
  let reject = noop;
@@ -3000,7 +3000,7 @@ function handleValueOrFn(value, url, defaultValue) {
3000
3000
  if (typeof defaultValue !== "undefined") return defaultValue;
3001
3001
  }
3002
3002
 
3003
- // ../shared/dist/runtime/utils-D2Tq-GIn.mjs
3003
+ // ../shared/dist/runtime/utils-DIVknyRo.mjs
3004
3004
  var logErrorInDevMode = (message) => {
3005
3005
  if (isDevelopmentEnvironment()) console.error(`Clerk: ${message}`);
3006
3006
  };
@@ -3606,7 +3606,7 @@ var _UserButton = withClerk(
3606
3606
  const { customPages, customPagesPortals } = useUserProfileCustomPages(props.children, {
3607
3607
  allowForAnyChildren: !!props.__experimental_asProvider
3608
3608
  });
3609
- const userProfileProps = Object.assign(props.userProfileProps || {}, { customPages });
3609
+ const userProfileProps = { ...props.userProfileProps, customPages };
3610
3610
  const { customMenuItems, customMenuItemsPortals } = useUserButtonCustomMenuItems(props.children, {
3611
3611
  allowForAnyChildren: !!props.__experimental_asProvider
3612
3612
  });
@@ -3750,7 +3750,7 @@ var _OrganizationSwitcher = withClerk(
3750
3750
  const { customPages, customPagesPortals } = useOrganizationProfileCustomPages(props.children, {
3751
3751
  allowForAnyChildren: !!props.__experimental_asProvider
3752
3752
  });
3753
- const organizationProfileProps = Object.assign(props.organizationProfileProps || {}, { customPages });
3753
+ const organizationProfileProps = { ...props.organizationProfileProps, customPages };
3754
3754
  const sanitizedChildren = useSanitizedChildren(props.children);
3755
3755
  const passableProps = {
3756
3756
  mount: clerk2.mountOrganizationSwitcher,
@@ -4062,6 +4062,22 @@ function addClerkPrefix(str) {
4062
4062
  return `clerk.${str.replace(regex, "")}`;
4063
4063
  }
4064
4064
 
4065
+ // ../shared/dist/runtime/versionSelector-BYAiv-Ld.mjs
4066
+ var versionSelector = (clerkJSVersion, packageVersion = "6.0.0-canary-core3.v20251202144142") => {
4067
+ if (clerkJSVersion) return clerkJSVersion;
4068
+ const prereleaseTag = getPrereleaseTag(packageVersion);
4069
+ if (prereleaseTag) {
4070
+ if (prereleaseTag === "snapshot") return "6.0.0-canary-core3.v20251202144142";
4071
+ return prereleaseTag;
4072
+ }
4073
+ return getMajorVersion(packageVersion);
4074
+ };
4075
+ var getPrereleaseTag = (packageVersion) => {
4076
+ var _a5;
4077
+ return (_a5 = packageVersion.trim().replace(/^v/, "").match(/-(.+?)(\.|$)/)) == null ? void 0 : _a5[1];
4078
+ };
4079
+ var getMajorVersion = (packageVersion) => packageVersion.trim().replace(/^v/, "").split(".")[0];
4080
+
4065
4081
  // ../shared/dist/runtime/loadClerkJsScript.mjs
4066
4082
  var { isDevOrStagingUrl } = createDevOrStagingUrlCache();
4067
4083
  var errorThrower2 = buildErrorThrower({ packageName: "@clerk/shared" });
@@ -4095,13 +4111,13 @@ var loadClerkUiScript = async (opts) => {
4095
4111
  return loadPromise;
4096
4112
  };
4097
4113
  var clerkUiScriptUrl = (opts) => {
4098
- const { clerkUiUrl, proxyUrl, domain, publishableKey } = opts;
4114
+ const { clerkUiUrl, clerkUiVersion, proxyUrl, domain, publishableKey } = opts;
4099
4115
  if (clerkUiUrl) return clerkUiUrl;
4100
4116
  return `https://${buildScriptHost({
4101
4117
  publishableKey,
4102
4118
  proxyUrl,
4103
4119
  domain
4104
- })}/npm/@clerk/ui@latest/dist/ui.browser.js`;
4120
+ })}/npm/@clerk/ui@${versionSelector(clerkUiVersion)}/dist/ui.browser.js`;
4105
4121
  };
4106
4122
  var buildClerkJsScriptAttributes = (options) => {
4107
4123
  const obj = {};
@@ -4743,7 +4759,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
4743
4759
  }
4744
4760
  var SDK_METADATA = {
4745
4761
  name: "@clerk/react",
4746
- version: "6.0.0-canary-core3.v20251127230404",
4762
+ version: "6.0.0-canary-core3.v20251202144142",
4747
4763
  environment: process.env.NODE_ENV
4748
4764
  };
4749
4765
  var _status;
@@ -5882,11 +5898,14 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
5882
5898
  return global.Clerk;
5883
5899
  }
5884
5900
  async getClerkUiEntryChunk() {
5901
+ var _a5, _b;
5885
5902
  if (this.options.clerkUiCtor) {
5886
5903
  return this.options.clerkUiCtor;
5887
5904
  }
5888
5905
  await loadClerkUiScript({
5889
5906
  ...this.options,
5907
+ clerkUiVersion: (_a5 = this.options.ui) == null ? void 0 : _a5.version,
5908
+ clerkUiUrl: ((_b = this.options.ui) == null ? void 0 : _b.url) || this.options.clerkUiUrl,
5890
5909
  publishableKey: __privateGet2(this, _publishableKey),
5891
5910
  proxyUrl: this.proxyUrl,
5892
5911
  domain: this.domain,
@@ -6075,20 +6094,13 @@ var useLoadedIsomorphicClerk = (options) => {
6075
6094
  return { isomorphicClerk: isomorphicClerkRef.current, clerkStatus };
6076
6095
  };
6077
6096
  function ClerkProviderBase(props) {
6078
- const { initialState, children, __internal_bypassMissingPublishableKey, ...restIsomorphicClerkOptions } = props;
6079
- const { publishableKey = "", Clerk: userInitialisedClerk } = restIsomorphicClerkOptions;
6080
- if (!userInitialisedClerk && !__internal_bypassMissingPublishableKey) {
6081
- if (!publishableKey) {
6082
- errorThrower.throwMissingPublishableKeyError();
6083
- } else if (publishableKey && !isPublishableKey(publishableKey)) {
6084
- errorThrower.throwInvalidPublishableKeyError({ key: publishableKey });
6085
- }
6086
- }
6097
+ const { initialState, children, ...restIsomorphicClerkOptions } = props;
6098
+ const isomorphicClerkOptions = restIsomorphicClerkOptions;
6087
6099
  return /* @__PURE__ */ React7__default.default.createElement(
6088
6100
  ClerkContextProvider,
6089
6101
  {
6090
6102
  initialState,
6091
- isomorphicClerkOptions: restIsomorphicClerkOptions
6103
+ isomorphicClerkOptions
6092
6104
  },
6093
6105
  children
6094
6106
  );
@@ -6297,7 +6309,7 @@ var BrowserStorageCache = createBrowserStorageCache();
6297
6309
  var clerk;
6298
6310
  noRhc.Clerk.sdkMetadata = {
6299
6311
  name: "@clerk/chrome-extension",
6300
- version: "3.0.0-canary-core3.v20251127230404"
6312
+ version: "3.0.0-canary-core3.v20251202144142"
6301
6313
  };
6302
6314
  function createClerkClient({
6303
6315
  __experimental_syncHostListener = false,