@clerk/chrome-extension 2.8.6 → 2.8.7-snapshot.v20251125180024
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 +32 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +32 -3
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-DY74JK52.js → chunk-CQGCR3OC.js} +35 -6
- package/dist/esm/chunk-CQGCR3OC.js.map +1 -0
- package/dist/esm/{chunk-TAOXAYHT.js → chunk-TSHOIDH5.js} +4 -4
- package/dist/esm/{chunk-TAOXAYHT.js.map → chunk-TSHOIDH5.js.map} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/react/index.js +2 -2
- package/package.json +4 -4
- package/dist/esm/chunk-DY74JK52.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export, buildErrorThrower, createDevOrStagingUrlCache, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-
|
|
1
|
+
import { __export, buildErrorThrower, createDevOrStagingUrlCache, __publicField, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-TSHOIDH5.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-
|
|
1529
|
+
// ../shared/dist/runtime/organization-DHjBGBxW.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,6 +2358,35 @@ 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");
|
|
2361
2390
|
function getCurrentOrganizationMembership(organizationMemberships, organizationId) {
|
|
2362
2391
|
return organizationMemberships.find((organizationMembership) => organizationMembership.organization.id === organizationId);
|
|
2363
2392
|
}
|
|
@@ -3675,7 +3704,7 @@ var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError("Canno
|
|
|
3675
3704
|
var __privateSet2 = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
3676
3705
|
var __privateMethod2 = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
3677
3706
|
|
|
3678
|
-
// ../shared/dist/runtime/loadClerkJsScript-
|
|
3707
|
+
// ../shared/dist/runtime/loadClerkJsScript-ByTsg9c-.mjs
|
|
3679
3708
|
var { isDevOrStagingUrl } = createDevOrStagingUrlCache();
|
|
3680
3709
|
var errorThrower2 = buildErrorThrower({ packageName: "@clerk/shared" });
|
|
3681
3710
|
function setClerkJsLoadingErrorPackageName(packageName) {
|
|
@@ -4195,7 +4224,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
4195
4224
|
}
|
|
4196
4225
|
var SDK_METADATA = {
|
|
4197
4226
|
name: "@clerk/clerk-react",
|
|
4198
|
-
version: "5.57.
|
|
4227
|
+
version: "5.57.1-snapshot.v20251125180024",
|
|
4199
4228
|
environment: process.env.NODE_ENV
|
|
4200
4229
|
};
|
|
4201
4230
|
var _status;
|
|
@@ -5597,5 +5626,5 @@ function ClerkProvider2(props) {
|
|
|
5597
5626
|
var GoogleOneTap2 = () => null;
|
|
5598
5627
|
|
|
5599
5628
|
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 };
|
|
5600
|
-
//# sourceMappingURL=chunk-
|
|
5601
|
-
//# sourceMappingURL=chunk-
|
|
5629
|
+
//# sourceMappingURL=chunk-CQGCR3OC.js.map
|
|
5630
|
+
//# sourceMappingURL=chunk-CQGCR3OC.js.map
|