@clerk/chrome-extension 2.8.3-snapshot.v20251118233019 → 2.8.3-snapshot.v20251120164403

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.3-snapshot.v20251118233019"
432
+ version: "2.8.3-snapshot.v20251120164403"
433
433
  };
434
434
  async function createClerkClient({
435
435
  __experimental_syncHostListener = false,
package/dist/cjs/index.js CHANGED
@@ -416,13 +416,13 @@ function isPublishableKey(key = "") {
416
416
  }
417
417
  }
418
418
 
419
- // ../shared/dist/runtime/telemetry-DoVTElgI.mjs
419
+ // ../shared/dist/runtime/telemetry-wqMDWlvR.mjs
420
420
  var EVENT_METHOD_CALLED = "METHOD_CALLED";
421
- var EVENT_SAMPLING_RATE$3 = 0.1;
421
+ var EVENT_SAMPLING_RATE$2 = 0.1;
422
422
  function eventMethodCalled(method, payload) {
423
423
  return {
424
424
  event: EVENT_METHOD_CALLED,
425
- eventSamplingRate: EVENT_SAMPLING_RATE$3,
425
+ eventSamplingRate: EVENT_SAMPLING_RATE$2,
426
426
  payload: {
427
427
  method,
428
428
  ...payload
@@ -460,6 +460,11 @@ var createDeferredPromise = () => {
460
460
  };
461
461
  };
462
462
 
463
+ // ../shared/dist/runtime/organization-D9SEGukq.mjs
464
+ function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
465
+ return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
466
+ }
467
+
463
468
  // ../../node_modules/.pnpm/swr@2.3.4_react@18.3.1/node_modules/swr/dist/_internal/events.mjs
464
469
  var events_exports = {};
465
470
  __export(events_exports, {
@@ -1764,7 +1769,7 @@ function dequal2(foo, bar) {
1764
1769
  return foo !== foo && bar !== bar;
1765
1770
  }
1766
1771
 
1767
- // ../shared/dist/runtime/organization-oPqzCGOd.mjs
1772
+ // ../shared/dist/runtime/react/index.mjs
1768
1773
  function assertContextExists(contextVal, msgOrCtx) {
1769
1774
  if (!contextVal) throw typeof msgOrCtx === "string" ? new Error(msgOrCtx) : /* @__PURE__ */ new Error(`${msgOrCtx.displayName} not found`);
1770
1775
  }
@@ -2015,7 +2020,6 @@ function useOrganization(params) {
2015
2020
  var _a5;
2016
2021
  const { domains: domainListParams, membershipRequests: membershipRequestsListParams, memberships: membersListParams, invitations: invitationsListParams } = params || {};
2017
2022
  useAssertWrappedByClerkProvider("useOrganization");
2018
- useAttemptToEnableOrganizations("useOrganization");
2019
2023
  const { organization } = useOrganizationContext();
2020
2024
  const session = useSessionContext();
2021
2025
  const domainSafeValues = useWithSafeValues(domainListParams, {
@@ -2196,7 +2200,6 @@ function useOrganizationList(params) {
2196
2200
  var _a5;
2197
2201
  const { userMemberships, userInvitations, userSuggestions } = params || {};
2198
2202
  useAssertWrappedByClerkProvider("useOrganizationList");
2199
- useAttemptToEnableOrganizations("useOrganizationList");
2200
2203
  const userMembershipsSafeValues = useWithSafeValues(userMemberships, {
2201
2204
  initialPage: 1,
2202
2205
  pageSize: 10,
@@ -2593,21 +2596,6 @@ createElementComponent("payment", typeof window === "undefined");
2593
2596
  createContextAndHook("StripeLibsContext");
2594
2597
  createContextAndHook("PaymentElementContext");
2595
2598
  createContextAndHook("StripeUtilsContext");
2596
- function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
2597
- return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
2598
- }
2599
- function useAttemptToEnableOrganizations(caller) {
2600
- const clerk2 = useClerk();
2601
- const hasAttempted = React7.useRef(false);
2602
- React7.useEffect(() => {
2603
- if (hasAttempted.current) return;
2604
- hasAttempted.current = true;
2605
- clerk2.__internal_attemptToEnableEnvironmentSetting({
2606
- for: "organizations",
2607
- caller
2608
- });
2609
- }, [clerk2, caller]);
2610
- }
2611
2599
  var errorThrower = buildErrorThrower({ packageName: "@clerk/clerk-react" });
2612
2600
  function setErrorThrowerOptions(options) {
2613
2601
  errorThrower.setMessages(options).setPackageName(options);
@@ -4426,7 +4414,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
4426
4414
  }
4427
4415
  var SDK_METADATA = {
4428
4416
  name: "@clerk/clerk-react",
4429
- version: "5.57.0-snapshot.v20251118233019",
4417
+ version: "5.56.1-snapshot.v20251120164403",
4430
4418
  environment: process.env.NODE_ENV
4431
4419
  };
4432
4420
  var _status;
@@ -4836,16 +4824,6 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
4836
4824
  this.preopenUserVerification = null;
4837
4825
  }
4838
4826
  };
4839
- this.__internal_openEnableOrganizationsPrompt = (props) => {
4840
- if (this.clerkjs && this.loaded) {
4841
- this.clerkjs.__internal_openEnableOrganizationsPrompt(props);
4842
- }
4843
- };
4844
- this.__internal_closeEnableOrganizationsPrompt = () => {
4845
- if (this.clerkjs && this.loaded) {
4846
- this.clerkjs.__internal_closeEnableOrganizationsPrompt();
4847
- }
4848
- };
4849
4827
  this.openGoogleOneTap = (props) => {
4850
4828
  if (this.clerkjs && this.loaded) {
4851
4829
  this.clerkjs.openGoogleOneTap(props);
@@ -5437,17 +5415,6 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
5437
5415
  this.premountMethodCalls.set("signOut", callback);
5438
5416
  }
5439
5417
  };
5440
- this.__internal_attemptToEnableEnvironmentSetting = (options2) => {
5441
- const callback = () => {
5442
- var _a5;
5443
- return (_a5 = this.clerkjs) == null ? void 0 : _a5.__internal_attemptToEnableEnvironmentSetting(options2);
5444
- };
5445
- if (this.clerkjs && this.loaded) {
5446
- return callback();
5447
- } else {
5448
- this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting", callback);
5449
- }
5450
- };
5451
5418
  const { Clerk: Clerk2 = null, publishableKey } = options || {};
5452
5419
  __privateSet2(this, _publishableKey, publishableKey);
5453
5420
  __privateSet2(this, _proxyUrl, options == null ? void 0 : options.proxyUrl);
@@ -5991,7 +5958,7 @@ var BrowserStorageCache = createBrowserStorageCache();
5991
5958
  var clerk;
5992
5959
  noRhc.Clerk.sdkMetadata = {
5993
5960
  name: "@clerk/chrome-extension",
5994
- version: "2.8.3-snapshot.v20251118233019"
5961
+ version: "2.8.3-snapshot.v20251120164403"
5995
5962
  };
5996
5963
  async function createClerkClient({
5997
5964
  __experimental_syncHostListener = false,