@clerk/chrome-extension 2.8.4 → 2.8.5-canary.v20251121181637
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 +12 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react/index.js +2 -3
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/esm/background/index.js +1 -1
- package/dist/esm/{chunk-7DDXO5XR.js → chunk-EHV6FOOF.js} +15 -12
- package/dist/esm/chunk-EHV6FOOF.js.map +1 -0
- package/dist/esm/{chunk-SDPVSHXQ.js → chunk-RTWWOXVR.js} +3 -3
- package/dist/esm/{chunk-SDPVSHXQ.js.map → chunk-RTWWOXVR.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-7DDXO5XR.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __export, buildErrorThrower, createDevOrStagingUrlCache, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-
|
|
1
|
+
import { __export, buildErrorThrower, createDevOrStagingUrlCache, createClerkClient, isClerkAPIResponseError, ClerkRuntimeError, isPublishableKey } from './chunk-RTWWOXVR.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';
|
|
@@ -1617,6 +1617,14 @@ function createCacheKeys(params) {
|
|
|
1617
1617
|
authenticated: params.authenticated
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
|
+
function toSWRQuery(keys) {
|
|
1621
|
+
const { queryKey } = keys;
|
|
1622
|
+
return {
|
|
1623
|
+
type: queryKey[0],
|
|
1624
|
+
...queryKey[2],
|
|
1625
|
+
...queryKey[3].args
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1620
1628
|
var useWithSafeValues = (params, defaultValues) => {
|
|
1621
1629
|
var _a, _b, _c;
|
|
1622
1630
|
const shouldUseDefaults = typeof params === "boolean" && params;
|
|
@@ -1665,9 +1673,7 @@ var usePagesOrInfinite = (params) => {
|
|
|
1665
1673
|
const keepPreviousData = (_f = config.keepPreviousData) != null ? _f : false;
|
|
1666
1674
|
const isSignedIn = config.isSignedIn;
|
|
1667
1675
|
const pagesCacheKey = {
|
|
1668
|
-
|
|
1669
|
-
...keys.queryKey[2],
|
|
1670
|
-
...keys.queryKey[3].args,
|
|
1676
|
+
...toSWRQuery(keys),
|
|
1671
1677
|
initialPage: paginatedPage,
|
|
1672
1678
|
pageSize: pageSizeRef.current
|
|
1673
1679
|
};
|
|
@@ -1686,9 +1692,7 @@ var usePagesOrInfinite = (params) => {
|
|
|
1686
1692
|
const { data: swrInfiniteData, isLoading: swrInfiniteIsLoading, isValidating: swrInfiniteIsValidating, error: swrInfiniteError, size, setSize, mutate: swrInfiniteMutate } = useSWRInfinite((pageIndex) => {
|
|
1687
1693
|
if (!triggerInfinite || !enabled || isSignedIn === false) return null;
|
|
1688
1694
|
return {
|
|
1689
|
-
|
|
1690
|
-
...keys.queryKey[2],
|
|
1691
|
-
...keys.queryKey[3].args,
|
|
1695
|
+
...toSWRQuery(keys),
|
|
1692
1696
|
initialPage: initialPageRef.current + pageIndex,
|
|
1693
1697
|
pageSize: pageSizeRef.current
|
|
1694
1698
|
};
|
|
@@ -2355,7 +2359,6 @@ var createElementComponent = (type, isServer) => {
|
|
|
2355
2359
|
return Element;
|
|
2356
2360
|
};
|
|
2357
2361
|
createElementComponent("payment", typeof window === "undefined");
|
|
2358
|
-
createContextAndHook("StripeLibsContext");
|
|
2359
2362
|
createContextAndHook("PaymentElementContext");
|
|
2360
2363
|
createContextAndHook("StripeUtilsContext");
|
|
2361
2364
|
var errorThrower = buildErrorThrower({ packageName: "@clerk/clerk-react" });
|
|
@@ -3659,7 +3662,7 @@ var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError("Canno
|
|
|
3659
3662
|
var __privateSet2 = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
3660
3663
|
var __privateMethod2 = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
3661
3664
|
|
|
3662
|
-
// ../shared/dist/runtime/loadClerkJsScript-
|
|
3665
|
+
// ../shared/dist/runtime/loadClerkJsScript-D3Ph42zd.mjs
|
|
3663
3666
|
var { isDevOrStagingUrl } = createDevOrStagingUrlCache();
|
|
3664
3667
|
var errorThrower2 = buildErrorThrower({ packageName: "@clerk/shared" });
|
|
3665
3668
|
function setClerkJsLoadingErrorPackageName(packageName) {
|
|
@@ -4179,7 +4182,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
|
|
|
4179
4182
|
}
|
|
4180
4183
|
var SDK_METADATA = {
|
|
4181
4184
|
name: "@clerk/clerk-react",
|
|
4182
|
-
version: "5.56.
|
|
4185
|
+
version: "5.56.3-canary.v20251121181637",
|
|
4183
4186
|
environment: process.env.NODE_ENV
|
|
4184
4187
|
};
|
|
4185
4188
|
var _status;
|
|
@@ -5552,5 +5555,5 @@ function ClerkProvider2(props) {
|
|
|
5552
5555
|
var GoogleOneTap2 = () => null;
|
|
5553
5556
|
|
|
5554
5557
|
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 };
|
|
5555
|
-
//# sourceMappingURL=chunk-
|
|
5556
|
-
//# sourceMappingURL=chunk-
|
|
5558
|
+
//# sourceMappingURL=chunk-EHV6FOOF.js.map
|
|
5559
|
+
//# sourceMappingURL=chunk-EHV6FOOF.js.map
|