@gem-sdk/core 12.0.0-dev.27 → 12.0.0-dev.28

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.
@@ -1,10 +1,11 @@
1
1
  import * as zustand from 'zustand';
2
2
  import { StoreApi } from 'zustand';
3
3
  import { Cart as Cart$2, addToCartOperation, getCartOperation, cartDiscountCodesUpdateOperation, cartNoteUpdateOperation, createCartOperation, removeCartItemOperation, updateCartLineOperation } from '@gem-sdk/adapter-shopify';
4
- import { SWRConfiguration, MutatorOptions } from 'swr';
4
+ import * as swr__internal from 'swr/_internal';
5
+ import { PublicConfiguration, ProviderConfiguration, Cache } from 'swr/_internal';
5
6
  import { ShortHandProperty } from '@gem-sdk/styles';
6
7
  import * as csstype from 'csstype';
7
- import * as swr__internal from 'swr/_internal';
8
+ import { SWRConfiguration, MutatorOptions } from 'swr';
8
9
  import * as swr_mutation from 'swr/mutation';
9
10
  import { SWRMutationConfiguration } from 'swr/mutation';
10
11
  import * as _gem_sdk_adapter_common_dist_types_types_cart from '@gem-sdk/adapter-common/dist/types/types/cart';
@@ -35493,6 +35494,9 @@ declare const SectionProvider: React.FC<SectionProviderProps>;
35493
35494
  declare const useSectionStore: <U>(selector: (state: ExtractState<StoreApi<SectionContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
35494
35495
  declare const useSection: (id: string) => SectionData | undefined;
35495
35496
 
35497
+ type SWRConfigValueType = Partial<PublicConfiguration<any, any> & ProviderConfiguration & {
35498
+ provider?: ((cache: Readonly<Cache<any>>) => Cache<any>) | (() => Map<any, any>);
35499
+ }>;
35496
35500
  type LayoutSettings = {
35497
35501
  showHeader: boolean;
35498
35502
  showFooter: boolean;
@@ -35548,7 +35552,7 @@ type ShopProviderProps = {
35548
35552
  key?: React.Key;
35549
35553
  addons: AddonContextProps['components'];
35550
35554
  storeOption: Omit<ShopContextProps, 'changeLocale' | 'changeStorefrontInfo' | 'changeCurrency' | 'changeSwatches' | 'changeLayoutSettings' | 'changeCreateThemeSectionCount' | 'changeShopPlan' | 'changeLimitCreateThemeSection' | 'updatePriceWithCurrency'>;
35551
- queryOption?: Partial<SWRConfiguration<any, any>>;
35555
+ queryOption?: SWRConfigValueType;
35552
35556
  };
35553
35557
 
35554
35558
  declare const ShopProvider: React.FC<ShopProviderProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "12.0.0-dev.27",
3
+ "version": "12.0.0-dev.28",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,8 +27,8 @@
27
27
  "type-check": "yarn tsc --noEmit"
28
28
  },
29
29
  "devDependencies": {
30
- "@gem-sdk/adapter-shopify": "12.0.0-dev.27",
31
- "@gem-sdk/styles": "12.0.0-dev.27",
30
+ "@gem-sdk/adapter-shopify": "12.0.0-dev.28",
31
+ "@gem-sdk/styles": "12.0.0-dev.28",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {