@clerk/chrome-extension 2.8.7-snapshot.v20251201171410 → 2.8.7
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.
- package/dist/cjs/background/index.js +1 -1
- package/dist/cjs/index.js +28 -65
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +3 -42
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-M6OYY3XB.js → chunk-I7OL743L.js} +31 -68
- package/dist/esm/chunk-I7OL743L.js.map +1 -0
- package/dist/esm/{chunk-36FFBWFE.js → chunk-NDXFLDDE.js} +3 -3
- package/dist/esm/{chunk-36FFBWFE.js.map → chunk-NDXFLDDE.js.map} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/react/index.js +2 -2
- package/dist/types/internal/utils/errors.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm/chunk-M6OYY3XB.js.map +0 -1
|
@@ -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.7
|
|
432
|
+
version: "2.8.7"
|
|
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-
|
|
419
|
+
// ../shared/dist/runtime/telemetry-wqMDWlvR.mjs
|
|
420
420
|
var EVENT_METHOD_CALLED = "METHOD_CALLED";
|
|
421
|
-
var EVENT_SAMPLING_RATE$
|
|
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$
|
|
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-COubKXAN.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/
|
|
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
|
}
|
|
@@ -1998,6 +2003,23 @@ var usePagesOrInfinite = (params) => {
|
|
|
1998
2003
|
setData: triggerInfinite ? (value) => swrInfiniteMutate(value, { revalidate: false }) : (value) => swrMutate(value, { revalidate: false })
|
|
1999
2004
|
};
|
|
2000
2005
|
};
|
|
2006
|
+
var useClerk = () => {
|
|
2007
|
+
useAssertWrappedByClerkProvider("useClerk");
|
|
2008
|
+
return useClerkInstanceContext();
|
|
2009
|
+
};
|
|
2010
|
+
function useAttemptToEnableOrganizations(caller) {
|
|
2011
|
+
const clerk2 = useClerk();
|
|
2012
|
+
const hasAttempted = React7.useRef(false);
|
|
2013
|
+
React7.useEffect(() => {
|
|
2014
|
+
var _a5;
|
|
2015
|
+
if (hasAttempted.current) return;
|
|
2016
|
+
hasAttempted.current = true;
|
|
2017
|
+
(_a5 = clerk2.__internal_attemptToEnableEnvironmentSetting) == null ? void 0 : _a5.call(clerk2, {
|
|
2018
|
+
for: "organizations",
|
|
2019
|
+
caller
|
|
2020
|
+
});
|
|
2021
|
+
}, [clerk2, caller]);
|
|
2022
|
+
}
|
|
2001
2023
|
var undefinedPaginatedResource$1 = {
|
|
2002
2024
|
data: void 0,
|
|
2003
2025
|
count: void 0,
|
|
@@ -2371,10 +2393,6 @@ function useUser() {
|
|
|
2371
2393
|
user
|
|
2372
2394
|
};
|
|
2373
2395
|
}
|
|
2374
|
-
var useClerk = () => {
|
|
2375
|
-
useAssertWrappedByClerkProvider("useClerk");
|
|
2376
|
-
return useClerkInstanceContext();
|
|
2377
|
-
};
|
|
2378
2396
|
var isDeeplyEqual = dequal2;
|
|
2379
2397
|
var CLERK_API_REVERIFICATION_ERROR_CODE = "session_reverification_required";
|
|
2380
2398
|
async function resolveResult(result) {
|
|
@@ -2596,22 +2614,6 @@ var createElementComponent = (type, isServer) => {
|
|
|
2596
2614
|
createElementComponent("payment", typeof window === "undefined");
|
|
2597
2615
|
createContextAndHook("PaymentElementContext");
|
|
2598
2616
|
createContextAndHook("StripeUtilsContext");
|
|
2599
|
-
function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
|
|
2600
|
-
return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
|
|
2601
|
-
}
|
|
2602
|
-
function useAttemptToEnableOrganizations(caller) {
|
|
2603
|
-
const clerk2 = useClerk();
|
|
2604
|
-
const hasAttempted = React7.useRef(false);
|
|
2605
|
-
React7.useEffect(() => {
|
|
2606
|
-
var _a5;
|
|
2607
|
-
if (hasAttempted.current) return;
|
|
2608
|
-
hasAttempted.current = true;
|
|
2609
|
-
(_a5 = clerk2.__internal_attemptToEnableEnvironmentSetting) == null ? void 0 : _a5.call(clerk2, {
|
|
2610
|
-
for: "organizations",
|
|
2611
|
-
caller
|
|
2612
|
-
});
|
|
2613
|
-
}, [clerk2, caller]);
|
|
2614
|
-
}
|
|
2615
2617
|
var errorThrower = buildErrorThrower({ packageName: "@clerk/clerk-react" });
|
|
2616
2618
|
function setErrorThrowerOptions(options) {
|
|
2617
2619
|
errorThrower.setMessages(options).setPackageName(options);
|
|
@@ -3902,27 +3904,6 @@ withClerk(
|
|
|
3902
3904
|
},
|
|
3903
3905
|
{ component: "TaskChooseOrganization", renderWhileLoading: true }
|
|
3904
3906
|
);
|
|
3905
|
-
withClerk(
|
|
3906
|
-
({ clerk: clerk2, component, fallback, ...props }) => {
|
|
3907
|
-
const mountingStatus = useWaitForComponentMount(component);
|
|
3908
|
-
const shouldShowFallback = mountingStatus === "rendering" || !clerk2.loaded;
|
|
3909
|
-
const rendererRootProps = {
|
|
3910
|
-
...shouldShowFallback && fallback && { style: { display: "none" } }
|
|
3911
|
-
};
|
|
3912
|
-
return /* @__PURE__ */ React7__default.default.createElement(React7__default.default.Fragment, null, shouldShowFallback && fallback, clerk2.loaded && /* @__PURE__ */ React7__default.default.createElement(
|
|
3913
|
-
ClerkHostRenderer,
|
|
3914
|
-
{
|
|
3915
|
-
component,
|
|
3916
|
-
mount: clerk2.mountTaskResetPassword,
|
|
3917
|
-
unmount: clerk2.unmountTaskResetPassword,
|
|
3918
|
-
updateProps: clerk2.__unstable__updateProps,
|
|
3919
|
-
props,
|
|
3920
|
-
rootProps: rendererRootProps
|
|
3921
|
-
}
|
|
3922
|
-
));
|
|
3923
|
-
},
|
|
3924
|
-
{ component: "TaskResetPassword", renderWhileLoading: true }
|
|
3925
|
-
);
|
|
3926
3907
|
|
|
3927
3908
|
// ../react/dist/chunk-OANWQR3B.mjs
|
|
3928
3909
|
var __typeError = (msg) => {
|
|
@@ -4451,7 +4432,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
4451
4432
|
}
|
|
4452
4433
|
var SDK_METADATA = {
|
|
4453
4434
|
name: "@clerk/clerk-react",
|
|
4454
|
-
version: "5.
|
|
4435
|
+
version: "5.57.1",
|
|
4455
4436
|
environment: process.env.NODE_ENV
|
|
4456
4437
|
};
|
|
4457
4438
|
var _status;
|
|
@@ -4494,7 +4475,6 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4494
4475
|
this.premountAPIKeysNodes = /* @__PURE__ */ new Map();
|
|
4495
4476
|
this.premountOAuthConsentNodes = /* @__PURE__ */ new Map();
|
|
4496
4477
|
this.premountTaskChooseOrganizationNodes = /* @__PURE__ */ new Map();
|
|
4497
|
-
this.premountTaskResetPasswordNodes = /* @__PURE__ */ new Map();
|
|
4498
4478
|
this.premountAddListenerCalls = /* @__PURE__ */ new Map();
|
|
4499
4479
|
this.loadedListeners = [];
|
|
4500
4480
|
__privateAdd2(this, _status, "loading");
|
|
@@ -4773,9 +4753,6 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
4773
4753
|
this.premountTaskChooseOrganizationNodes.forEach((props, node) => {
|
|
4774
4754
|
clerkjs.mountTaskChooseOrganization(node, props);
|
|
4775
4755
|
});
|
|
4776
|
-
this.premountTaskResetPasswordNodes.forEach((props, node) => {
|
|
4777
|
-
clerkjs.mountTaskResetPassword(node, props);
|
|
4778
|
-
});
|
|
4779
4756
|
if (typeof this.clerkjs.status === "undefined") {
|
|
4780
4757
|
__privateGet2(this, _eventBus).emit(clerkEvents.Status, "ready");
|
|
4781
4758
|
}
|
|
@@ -5174,20 +5151,6 @@ var _IsomorphicClerk = class _IsomorphicClerk2 {
|
|
|
5174
5151
|
this.premountTaskChooseOrganizationNodes.delete(node);
|
|
5175
5152
|
}
|
|
5176
5153
|
};
|
|
5177
|
-
this.__experimental_mountTaskResetPassword = (node, props) => {
|
|
5178
|
-
if (this.clerkjs && this.loaded) {
|
|
5179
|
-
this.clerkjs.mountTaskResetPassword(node, props);
|
|
5180
|
-
} else {
|
|
5181
|
-
this.premountTaskResetPasswordNodes.set(node, props);
|
|
5182
|
-
}
|
|
5183
|
-
};
|
|
5184
|
-
this.unmountTaskResetPassword = (node) => {
|
|
5185
|
-
if (this.clerkjs && this.loaded) {
|
|
5186
|
-
this.clerkjs.unmountTaskResetPassword(node);
|
|
5187
|
-
} else {
|
|
5188
|
-
this.premountTaskResetPasswordNodes.delete(node);
|
|
5189
|
-
}
|
|
5190
|
-
};
|
|
5191
5154
|
this.addListener = (listener) => {
|
|
5192
5155
|
if (this.clerkjs) {
|
|
5193
5156
|
return this.clerkjs.addListener(listener);
|
|
@@ -6042,7 +6005,7 @@ var BrowserStorageCache = createBrowserStorageCache();
|
|
|
6042
6005
|
var clerk;
|
|
6043
6006
|
noRhc.Clerk.sdkMetadata = {
|
|
6044
6007
|
name: "@clerk/chrome-extension",
|
|
6045
|
-
version: "2.8.7
|
|
6008
|
+
version: "2.8.7"
|
|
6046
6009
|
};
|
|
6047
6010
|
async function createClerkClient({
|
|
6048
6011
|
__experimental_syncHostListener = false,
|