@gem-sdk/core 8.0.0-dev.109 → 8.0.0-dev.111

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.
Files changed (2) hide show
  1. package/dist/types/index.d.ts +11 -11
  2. package/package.json +12 -12
@@ -4,7 +4,7 @@ import { Cart as Cart$2, addToCartOperation, getCartOperation, cartDiscountCodes
4
4
  import { SWRConfig, SWRConfiguration, MutatorOptions } from 'swr';
5
5
  import { ShortHandProperty } from '@gem-sdk/styles';
6
6
  import * as csstype from 'csstype';
7
- import * as swr__internal from 'swr/_internal';
7
+ import * as swr_dist__internal_types from 'swr/dist/_internal/types';
8
8
  import * as swr_mutation from 'swr/mutation';
9
9
  import { SWRMutationConfiguration } from 'swr/mutation';
10
10
  import * as _gem_sdk_adapter_common_dist_types_types_cart from '@gem-sdk/adapter-common/dist/types/types/cart';
@@ -48588,8 +48588,8 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
48588
48588
  vectorEffect?: csstype.Property.VectorEffect | undefined;
48589
48589
  };
48590
48590
 
48591
- declare const useArticlesQuery: (variables: ArticlesQueryVariables | null, options?: SWRConfiguration<ArticlesQueryResponse>) => swr__internal.SWRResponse<ArticlesQueryResponse, any, Partial<swr__internal.PublicConfiguration<ArticlesQueryResponse, any, (arg: ["query/articles", any]) => swr__internal.FetcherResponse<ArticlesQueryResponse>>> | undefined>;
48592
- declare const useBlogsQuery: (variables: BlogsQueryVariables | null, options?: SWRConfiguration<BlogsQueryResponse>) => swr__internal.SWRResponse<BlogsQueryResponse, any, Partial<swr__internal.PublicConfiguration<BlogsQueryResponse, any, (arg: ["query/blogs", any]) => swr__internal.FetcherResponse<BlogsQueryResponse>>> | undefined>;
48591
+ declare const useArticlesQuery: (variables: ArticlesQueryVariables | null, options?: SWRConfiguration<ArticlesQueryResponse>) => swr_dist__internal_types.SWRResponse<ArticlesQueryResponse, any, SWRConfiguration<ArticlesQueryResponse, any, (arg: ["query/articles", any]) => swr_dist__internal_types.FetcherResponse<ArticlesQueryResponse>> | undefined>;
48592
+ declare const useBlogsQuery: (variables: BlogsQueryVariables | null, options?: SWRConfiguration<BlogsQueryResponse>) => swr_dist__internal_types.SWRResponse<BlogsQueryResponse, any, SWRConfiguration<BlogsQueryResponse, any, (arg: ["query/blogs", any]) => swr_dist__internal_types.FetcherResponse<BlogsQueryResponse>> | undefined>;
48593
48593
 
48594
48594
  type Func$6 = ReturnType<typeof addToCartOperation>;
48595
48595
  type Response$6 = Awaited<ReturnType<Func$6>>;
@@ -48598,7 +48598,7 @@ declare const useAddToCart: (options?: SWRMutationConfiguration<Response$6, any,
48598
48598
 
48599
48599
  type Func$5 = ReturnType<typeof getCartOperation>;
48600
48600
  type Response$5 = Awaited<ReturnType<Func$5>>;
48601
- declare const useCartData: (options?: SWRConfiguration<Response$5 | undefined, any>) => swr__internal.SWRResponse<_gem_sdk_adapter_common_dist_types_types_cart.Cart | undefined, any, Partial<swr__internal.PublicConfiguration<_gem_sdk_adapter_common_dist_types_types_cart.Cart | undefined, any, (arg: "cart") => swr__internal.FetcherResponse<_gem_sdk_adapter_common_dist_types_types_cart.Cart | undefined>>> | undefined>;
48601
+ declare const useCartData: (options?: SWRConfiguration<Response$5 | undefined, any>) => swr_dist__internal_types.SWRResponse<_gem_sdk_adapter_common_dist_types_types_cart.Cart | undefined, any, SWRConfiguration<_gem_sdk_adapter_common_dist_types_types_cart.Cart | undefined, any, (arg: "cart") => swr_dist__internal_types.FetcherResponse<_gem_sdk_adapter_common_dist_types_types_cart.Cart | undefined>> | undefined>;
48602
48602
 
48603
48603
  type Func$4 = ReturnType<typeof cartDiscountCodesUpdateOperation>;
48604
48604
  type Response$4 = Awaited<ReturnType<Func$4>>;
@@ -48659,24 +48659,24 @@ declare function useIsSampleProduct(): boolean | undefined;
48659
48659
  declare function useIsStorefrontProduct(): boolean | undefined;
48660
48660
  declare function useCheckoutUrl(url?: string): string | undefined;
48661
48661
 
48662
- declare const useCollectionQuery: (args?: FetchCollectionArgs, options?: SWRConfiguration<CollectionDetailFilterQueryResponse>) => swr__internal.SWRResponse<CollectionDetailFilterQueryResponse, any, Partial<swr__internal.PublicConfiguration<CollectionDetailFilterQueryResponse, any, (arg: ["query/collection", FetchCollectionArgs]) => swr__internal.FetcherResponse<CollectionDetailFilterQueryResponse>>> | undefined>;
48662
+ declare const useCollectionQuery: (args?: FetchCollectionArgs, options?: SWRConfiguration<CollectionDetailFilterQueryResponse>) => swr_dist__internal_types.SWRResponse<CollectionDetailFilterQueryResponse, any, SWRConfiguration<CollectionDetailFilterQueryResponse, any, (arg: ["query/collection", FetchCollectionArgs]) => swr_dist__internal_types.FetcherResponse<CollectionDetailFilterQueryResponse>> | undefined>;
48663
48663
 
48664
- declare const useCollectionsQuery: (variable: CollectionsQueryVariables, options?: SWRConfiguration<CollectionsQueryResponse>) => swr__internal.SWRResponse<CollectionsQueryResponse, any, Partial<swr__internal.PublicConfiguration<CollectionsQueryResponse, any, (arg: ["query/collections", Exact$1<{
48664
+ declare const useCollectionsQuery: (variable: CollectionsQueryVariables, options?: SWRConfiguration<CollectionsQueryResponse>) => swr_dist__internal_types.SWRResponse<CollectionsQueryResponse, any, SWRConfiguration<CollectionsQueryResponse, any, (arg: ["query/collections", Exact$1<{
48665
48665
  after?: InputMaybe$1<string>;
48666
48666
  first?: InputMaybe$1<number>;
48667
48667
  before?: InputMaybe$1<string>;
48668
48668
  last?: InputMaybe$1<number>;
48669
48669
  where?: InputMaybe$1<CollectionWhereInput$1>;
48670
48670
  orderBy?: InputMaybe$1<CollectionOrder$1>;
48671
- }>]) => swr__internal.FetcherResponse<CollectionsQueryResponse>>> | undefined>;
48671
+ }>]) => swr_dist__internal_types.FetcherResponse<CollectionsQueryResponse>> | undefined>;
48672
48672
 
48673
- declare const useProductQuery: (productId?: string, options?: SWRConfiguration<ProductSelectFragment>, customFetcher?: FetchFunc) => swr__internal.SWRResponse<ProductSelectFragment, any, Partial<swr__internal.PublicConfiguration<ProductSelectFragment, any, (arg: ["query/product", FetchProductParams]) => swr__internal.FetcherResponse<ProductSelectFragment>>> | undefined>;
48673
+ declare const useProductQuery: (productId?: string, options?: SWRConfiguration<ProductSelectFragment>, customFetcher?: FetchFunc) => swr_dist__internal_types.SWRResponse<ProductSelectFragment, any, SWRConfiguration<ProductSelectFragment, any, (arg: ["query/product", FetchProductParams]) => swr_dist__internal_types.FetcherResponse<ProductSelectFragment>> | undefined>;
48674
48674
 
48675
48675
  declare const useProductOffersQuery: (ids?: string[], options?: SWRConfiguration<ProductsQueryResponse>, params?: {
48676
48676
  defaultSelectedProductCount?: number;
48677
48677
  allStatus?: boolean;
48678
48678
  fetcher?: FetchFunc;
48679
- }) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", FetchProductsParams]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
48679
+ }) => swr_dist__internal_types.SWRResponse<ProductsQueryResponse, any, SWRConfiguration<ProductsQueryResponse, any, (arg: ["query/products", FetchProductsParams]) => swr_dist__internal_types.FetcherResponse<ProductsQueryResponse>> | undefined>;
48680
48680
 
48681
48681
  declare const useFetchHandle: () => FetchFunc;
48682
48682
 
@@ -48684,8 +48684,8 @@ declare const useProductsQuery: (ids?: string[], options?: SWRConfiguration<Prod
48684
48684
  defaultSelectedProductCount?: number;
48685
48685
  allStatus?: boolean;
48686
48686
  fetcher?: FetchFunc;
48687
- }) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", FetchProductsParams]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
48688
- declare const useProductsQueryAll: (variable?: VariableRelatedStyles | undefined, options?: SWRConfiguration<ProductsQueryResponse>, customFetcher?: FetchFunc) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", any]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
48687
+ }) => swr_dist__internal_types.SWRResponse<ProductsQueryResponse, any, SWRConfiguration<ProductsQueryResponse, any, (arg: ["query/products", FetchProductsParams]) => swr_dist__internal_types.FetcherResponse<ProductsQueryResponse>> | undefined>;
48688
+ declare const useProductsQueryAll: (variable?: VariableRelatedStyles | undefined, options?: SWRConfiguration<ProductsQueryResponse>, customFetcher?: FetchFunc) => swr_dist__internal_types.SWRResponse<ProductsQueryResponse, any, SWRConfiguration<ProductsQueryResponse, any, (arg: ["query/products", any]) => swr_dist__internal_types.FetcherResponse<ProductsQueryResponse>> | undefined>;
48689
48689
 
48690
48690
  declare const useCurrentDevice: () => NameDevices;
48691
48691
 
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "8.0.0-dev.109",
3
+ "version": "8.0.0-dev.111",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
7
+ "types": "dist/types/index.d.ts",
7
8
  "files": [
8
9
  "dist"
9
10
  ],
@@ -27,25 +28,24 @@
27
28
  "type-check": "yarn tsc --noEmit"
28
29
  },
29
30
  "devDependencies": {
30
- "@gem-sdk/adapter-shopify": "8.0.0-dev.106",
31
- "@gem-sdk/styles": "8.0.0-dev.106",
32
- "@types/classnames": "^2.3.1"
31
+ "@gem-sdk/adapter-shopify": "8.0.0-dev.111",
32
+ "@gem-sdk/styles": "8.0.0-dev.111",
33
+ "@types/classnames": "2.3.4"
33
34
  },
34
35
  "dependencies": {
35
- "classnames": "^2.5.1",
36
+ "classnames": "2.5.1",
36
37
  "cssjson": "2.1.3",
37
- "dayjs": "^1.11.11",
38
- "react-error-boundary": "4.0.10",
39
- "swr": "2.2.0",
40
- "vanilla-lazyload": "17.8.3",
38
+ "dayjs": "1.11.19",
39
+ "react-error-boundary": "6.0.2",
40
+ "swr": "2.3.8",
41
+ "vanilla-lazyload": "19.1.3",
41
42
  "zustand": "4.3.9"
42
43
  },
43
44
  "peerDependencies": {
44
- "react": "^18",
45
- "react-dom": "^18"
45
+ "react": "18.3.1",
46
+ "react-dom": "18.3.1"
46
47
  },
47
48
  "module": "dist/esm/index.js",
48
- "types": "dist/types/index.d.ts",
49
49
  "exports": {
50
50
  "./package.json": "./package.json",
51
51
  ".": {