@gem-sdk/core 8.0.0-dev.110 → 8.0.0-dev.112

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.
@@ -13,6 +13,7 @@
13
13
  isSample
14
14
  baseID
15
15
  sku
16
+ requiresSellingPlan
16
17
  options {
17
18
  ...ProductOptionSelect
18
19
  }
@@ -13,6 +13,7 @@ import{ProductOptionSelect as e}from"../fragments/product-option.generated.js";i
13
13
  isSample
14
14
  baseID
15
15
  sku
16
+ requiresSellingPlan
16
17
  options {
17
18
  ...ProductOptionSelect
18
19
  }
@@ -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';
@@ -35391,7 +35391,7 @@ type ProductVariantsWithSellingPlansSelectFragment = Pick<ProductVariant$1, 'id'
35391
35391
  }>>>;
35392
35392
  };
35393
35393
 
35394
- type ProductsWithSellingPlansDetailFragment = Pick<Product$1, 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor' | 'tags'> & {
35394
+ type ProductsWithSellingPlansDetailFragment = Pick<Product$1, 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'requiresSellingPlan' | 'vendor' | 'tags'> & {
35395
35395
  options?: Maybe$1<Array<Pick<ProductOption$1, 'id' | 'name' | 'optionType'> & {
35396
35396
  values: Array<Pick<ProductOptionValue$1, 'id' | 'label' | 'isDefault' | 'baseID'>>;
35397
35397
  }>>;
@@ -35976,7 +35976,7 @@ type ProductsWithSellingPlansQueryVariables = Exact$1<{
35976
35976
  type ProductsWithSellingPlansQueryResponse = {
35977
35977
  products?: Maybe$1<{
35978
35978
  edges: Array<Pick<ProductEdge$1, 'cursor'> & {
35979
- node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor' | 'tags'> & {
35979
+ node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'requiresSellingPlan' | 'vendor' | 'tags'> & {
35980
35980
  options?: Maybe$1<Array<Pick<ProductOption$1, 'id' | 'name' | 'optionType'> & {
35981
35981
  values: Array<Pick<ProductOptionValue$1, 'id' | 'label' | 'isDefault' | 'baseID'>>;
35982
35982
  }>>;
@@ -36010,7 +36010,7 @@ type ProductsWithSellingPlansQueryResponse = {
36010
36010
  pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage'>>;
36011
36011
  }>;
36012
36012
  };
36013
- declare const ProductWithSellingPlansSelectFragment = "\n fragment ProductWithSellingPlansSelectFragment on ProductEdge {\n cursor\n node {\n id\n title\n createdAt\n description\n descriptionHtml\n handle\n averageRating\n isStorefront\n isSample\n baseID\n sku\n options {\n ...ProductOptionSelect\n }\n vendor\n featuredImage {\n ...MediaSelect\n }\n collections {\n edges {\n node {\n id\n title\n }\n }\n }\n tags\n sellingPlanGroups {\n appID\n baseID\n id\n name\n }\n medias(first: $firstMedia, after: $afterMedia, orderBy: $orderByMedia) {\n edges {\n cursor\n node {\n ...MediaSelect\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n variants(first: $firstVariant, after: $afterVariant) {\n edges {\n cursor\n node {\n ...ProductVariantsWithSellingPlansSelect\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n}\n ";
36013
+ declare const ProductWithSellingPlansSelectFragment = "\n fragment ProductWithSellingPlansSelectFragment on ProductEdge {\n cursor\n node {\n id\n title\n createdAt\n description\n descriptionHtml\n handle\n averageRating\n isStorefront\n isSample\n baseID\n sku\n requiresSellingPlan\n options {\n ...ProductOptionSelect\n }\n vendor\n featuredImage {\n ...MediaSelect\n }\n collections {\n edges {\n node {\n id\n title\n }\n }\n }\n tags\n sellingPlanGroups {\n appID\n baseID\n id\n name\n }\n medias(first: $firstMedia, after: $afterMedia, orderBy: $orderByMedia) {\n edges {\n cursor\n node {\n ...MediaSelect\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n variants(first: $firstVariant, after: $afterVariant) {\n edges {\n cursor\n node {\n ...ProductVariantsWithSellingPlansSelect\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n}\n ";
36014
36014
  declare const ProductsWithSellingPlansDocument: string;
36015
36015
 
36016
36016
  type ProductVariantsWithSellingPlansQueryVariables = Exact$1<{
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "8.0.0-dev.110",
3
+ "version": "8.0.0-dev.112",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -28,22 +28,22 @@
28
28
  "type-check": "yarn tsc --noEmit"
29
29
  },
30
30
  "devDependencies": {
31
- "@gem-sdk/adapter-shopify": "8.0.0-dev.110",
32
- "@gem-sdk/styles": "8.0.0-dev.110",
33
- "@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"
34
34
  },
35
35
  "dependencies": {
36
- "classnames": "^2.5.1",
36
+ "classnames": "2.5.1",
37
37
  "cssjson": "2.1.3",
38
- "dayjs": "^1.11.11",
39
- "react-error-boundary": "4.0.10",
40
- "swr": "2.2.0",
41
- "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",
42
42
  "zustand": "4.3.9"
43
43
  },
44
44
  "peerDependencies": {
45
- "react": "^18",
46
- "react-dom": "^18"
45
+ "react": "18.3.1",
46
+ "react-dom": "18.3.1"
47
47
  },
48
48
  "module": "dist/esm/index.js",
49
49
  "exports": {