@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.
@@ -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.4"
432
+ version: "2.8.5-canary.v20251121181637"
433
433
  };
434
434
  async function createClerkClient({
435
435
  __experimental_syncHostListener = false,
package/dist/cjs/index.js CHANGED
@@ -1855,6 +1855,14 @@ function createCacheKeys(params) {
1855
1855
  authenticated: params.authenticated
1856
1856
  };
1857
1857
  }
1858
+ function toSWRQuery(keys) {
1859
+ const { queryKey } = keys;
1860
+ return {
1861
+ type: queryKey[0],
1862
+ ...queryKey[2],
1863
+ ...queryKey[3].args
1864
+ };
1865
+ }
1858
1866
  var useWithSafeValues = (params, defaultValues) => {
1859
1867
  var _a5, _b, _c;
1860
1868
  const shouldUseDefaults = typeof params === "boolean" && params;
@@ -1903,9 +1911,7 @@ var usePagesOrInfinite = (params) => {
1903
1911
  const keepPreviousData = (_f = config.keepPreviousData) != null ? _f : false;
1904
1912
  const isSignedIn = config.isSignedIn;
1905
1913
  const pagesCacheKey = {
1906
- type: keys.queryKey[0],
1907
- ...keys.queryKey[2],
1908
- ...keys.queryKey[3].args,
1914
+ ...toSWRQuery(keys),
1909
1915
  initialPage: paginatedPage,
1910
1916
  pageSize: pageSizeRef.current
1911
1917
  };
@@ -1924,9 +1930,7 @@ var usePagesOrInfinite = (params) => {
1924
1930
  const { data: swrInfiniteData, isLoading: swrInfiniteIsLoading, isValidating: swrInfiniteIsValidating, error: swrInfiniteError, size, setSize, mutate: swrInfiniteMutate } = useSWRInfinite((pageIndex) => {
1925
1931
  if (!triggerInfinite || !enabled || isSignedIn === false) return null;
1926
1932
  return {
1927
- type: keys.queryKey[0],
1928
- ...keys.queryKey[2],
1929
- ...keys.queryKey[3].args,
1933
+ ...toSWRQuery(keys),
1930
1934
  initialPage: initialPageRef.current + pageIndex,
1931
1935
  pageSize: pageSizeRef.current
1932
1936
  };
@@ -2593,7 +2597,6 @@ var createElementComponent = (type, isServer) => {
2593
2597
  return Element;
2594
2598
  };
2595
2599
  createElementComponent("payment", typeof window === "undefined");
2596
- createContextAndHook("StripeLibsContext");
2597
2600
  createContextAndHook("PaymentElementContext");
2598
2601
  createContextAndHook("StripeUtilsContext");
2599
2602
  var errorThrower = buildErrorThrower({ packageName: "@clerk/clerk-react" });
@@ -4414,7 +4417,7 @@ if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") {
4414
4417
  }
4415
4418
  var SDK_METADATA = {
4416
4419
  name: "@clerk/clerk-react",
4417
- version: "5.56.2",
4420
+ version: "5.56.3-canary.v20251121181637",
4418
4421
  environment: process.env.NODE_ENV
4419
4422
  };
4420
4423
  var _status;
@@ -5958,7 +5961,7 @@ var BrowserStorageCache = createBrowserStorageCache();
5958
5961
  var clerk;
5959
5962
  noRhc.Clerk.sdkMetadata = {
5960
5963
  name: "@clerk/chrome-extension",
5961
- version: "2.8.4"
5964
+ version: "2.8.5-canary.v20251121181637"
5962
5965
  };
5963
5966
  async function createClerkClient({
5964
5967
  __experimental_syncHostListener = false,