@gem-sdk/core 12.0.0-dev.25 → 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 { SWRConfig, 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?: React.ComponentProps<typeof SWRConfig>['value'];
35555
+ queryOption?: SWRConfigValueType;
35552
35556
  };
35553
35557
 
35554
35558
  declare const ShopProvider: React.FC<ShopProviderProps>;
@@ -36145,7 +36149,7 @@ declare const ThemePageMetaDocument = "\n query themePageMeta($after: Cursor,
36145
36149
 
36146
36150
  type BorderStyle = StateProp<Border> | ResponsiveStateProp<Border>;
36147
36151
  declare const getBorderStyle: (value?: Border) => {
36148
- [k: string]: Record<"--b" | "--bc" | "--bw", string | undefined>;
36152
+ [k: string]: Record<"--bc" | "--b" | "--bw", string | undefined>;
36149
36153
  };
36150
36154
  declare const getBorderRadiusStyle: (borderRadius?: CornerRadius, shapeRadius?: CornerRadius) => {};
36151
36155
  declare const handleConvertBorderStyle: (value?: BorderStyle, type?: 'button') => {} | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "12.0.0-dev.25",
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.24",
31
- "@gem-sdk/styles": "12.0.0-dev.24",
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": {