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

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,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var jsxRuntime=require("react/jsx-runtime"),react=require("react"),zustand=require("zustand");const PageContext=react.createContext(null),createPageStoreProvider=e=>zustand.createStore(t=>({...e,setAssignedProductIds:e=>{t({assignedProductIds:e})},setIsApplyAllProducts:e=>{t({isApplyAllProducts:e})},setDynamicProduct:e=>{t({dynamicProduct:e})},setDynamicCollection:e=>{t({dynamicCollection:e})},setPostPurchaseProductOffers:e=>{t({productOffers:e})},setDynamicDiscountOffer:e=>{t({dynamicDiscountOffer:e})},setSalePageProductId:e=>{t({salePageProductId:e})},setPublicStoreFrontData:e=>{t({publicStoreFrontData:e})},setInteractionIsSelectOnPage:e=>{t(t=>({interactionData:{...t.interactionData,isSelectOnPage:e}}))},setInteractionItem:e=>{t(t=>({interactionData:{...t.interactionData,item:e,isSelectOnPage:t.interactionData?.isSelectOnPage||!1}}))},setInteractionSelectType:e=>{t(t=>({interactionData:{...t.interactionData,selectType:e}}))},setInteractionSettingType:e=>{t(t=>({interactionData:{...t.interactionData,settingType:e}}))},setSidebarMode:e=>{t(()=>({sidebarMode:e}))}})),PageProvider=({children:e,dynamicProduct:t,dynamicCollection:r,productOffers:a,dynamicDiscountOffer:n,publicStoreFrontData:i,assignedProductIds:o,isApplyAllProducts:s,...c})=>{let u=react.useMemo(()=>createPageStoreProvider({dynamicProduct:t,dynamicCollection:r,productOffers:a,assignedProductIds:o,isApplyAllProducts:s,dynamicDiscountOffer:n,publicStoreFrontData:i,interactionData:{selectType:"ELEMENT"}}),[t,r,a,n,i,o,s]);return jsxRuntime.jsx(PageContext.Provider,{...c,value:u,children:e})},usePageStore=(e,t)=>{let r=react.useContext(PageContext);if(!r)throw Error("usePageStore must be used within a PageProvider");return zustand.useStore(r,e,t)};exports.PageProvider=PageProvider,exports.usePageStore=usePageStore;
2
+ "use strict";var jsxRuntime=require("react/jsx-runtime"),react=require("react"),zustand=require("zustand");const PageContext=react.createContext(null),createPageStoreProvider=e=>zustand.createStore(t=>({...e,setAssignedProductIds:e=>{t({assignedProductIds:e})},setIsApplyAllProducts:e=>{t({isApplyAllProducts:e})},setDynamicProduct:e=>{t({dynamicProduct:e})},setDynamicCollection:e=>{t({dynamicCollection:e})},setPostPurchaseProductOffers:e=>{t({productOffers:e})},setDynamicDiscountOffer:e=>{t({dynamicDiscountOffer:e})},setSalePageProductId:e=>{t({salePageProductId:e})},setPublicStoreFrontData:e=>{t({publicStoreFrontData:e})},setInteractionIsSelectOnPage:e=>{t(t=>({interactionData:{...t.interactionData,isSelectOnPage:e}}))},setInteractionItem:e=>{t(t=>({interactionData:{...t.interactionData,item:e,isSelectOnPage:t.interactionData?.isSelectOnPage||!1}}))},setInteractionSelectType:e=>{t(t=>({interactionData:{...t.interactionData,selectType:e}}))},setInteractionSettingType:e=>{t(t=>({interactionData:{...t.interactionData,settingType:e}}))},setSidebarMode:e=>{t(()=>({sidebarMode:e}))},sellingPlanMeta:void 0,setSellingPlanMeta:e=>{t({sellingPlanMeta:e})}})),PageProvider=({children:e,dynamicProduct:t,dynamicCollection:a,productOffers:r,dynamicDiscountOffer:n,publicStoreFrontData:i,assignedProductIds:o,isApplyAllProducts:s,...c})=>{let P=react.useMemo(()=>createPageStoreProvider({dynamicProduct:t,dynamicCollection:a,productOffers:r,assignedProductIds:o,isApplyAllProducts:s,dynamicDiscountOffer:n,publicStoreFrontData:i,interactionData:{selectType:"ELEMENT"}}),[t,a,r,n,i,o,s]);return jsxRuntime.jsx(PageContext.Provider,{...c,value:P,children:e})},usePageStore=(e,t)=>{let a=react.useContext(PageContext);if(!a)throw Error("usePageStore must be used within a PageProvider");return zustand.useStore(a,e,t)};exports.PageProvider=PageProvider,exports.usePageStore=usePageStore;
@@ -30,6 +30,11 @@
30
30
  sellingPlanGroups {
31
31
  id
32
32
  appID
33
+ sellingPlans {
34
+ id
35
+ name
36
+ baseID
37
+ }
33
38
  }
34
39
  }
35
40
  `;exports.ProductVariantsWithSellingPlansSelect=ProductVariantsWithSellingPlansSelect;
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e}from"react/jsx-runtime";import{useMemo as t,useContext as a,createContext as r}from"react";import{useStore as o,createStore as i}from"zustand";let PageContext=r(null),createPageStoreProvider=e=>i(t=>({...e,setAssignedProductIds:e=>{t({assignedProductIds:e})},setIsApplyAllProducts:e=>{t({isApplyAllProducts:e})},setDynamicProduct:e=>{t({dynamicProduct:e})},setDynamicCollection:e=>{t({dynamicCollection:e})},setPostPurchaseProductOffers:e=>{t({productOffers:e})},setDynamicDiscountOffer:e=>{t({dynamicDiscountOffer:e})},setSalePageProductId:e=>{t({salePageProductId:e})},setPublicStoreFrontData:e=>{t({publicStoreFrontData:e})},setInteractionIsSelectOnPage:e=>{t(t=>({interactionData:{...t.interactionData,isSelectOnPage:e}}))},setInteractionItem:e=>{t(t=>({interactionData:{...t.interactionData,item:e,isSelectOnPage:t.interactionData?.isSelectOnPage||!1}}))},setInteractionSelectType:e=>{t(t=>({interactionData:{...t.interactionData,selectType:e}}))},setInteractionSettingType:e=>{t(t=>({interactionData:{...t.interactionData,settingType:e}}))},setSidebarMode:e=>{t(()=>({sidebarMode:e}))}})),PageProvider=({children:a,dynamicProduct:r,dynamicCollection:o,productOffers:i,dynamicDiscountOffer:n,publicStoreFrontData:c,assignedProductIds:s,isApplyAllProducts:P,...d})=>{let l=t(()=>createPageStoreProvider({dynamicProduct:r,dynamicCollection:o,productOffers:i,assignedProductIds:s,isApplyAllProducts:P,dynamicDiscountOffer:n,publicStoreFrontData:c,interactionData:{selectType:"ELEMENT"}}),[r,o,i,n,c,s,P]);return e(PageContext.Provider,{...d,value:l,children:a})},usePageStore=(e,t)=>{let r=a(PageContext);if(!r)throw Error("usePageStore must be used within a PageProvider");return o(r,e,t)};export{PageProvider,usePageStore};
2
+ import{jsx as e}from"react/jsx-runtime";import{useMemo as t,useContext as a,createContext as r}from"react";import{useStore as i,createStore as n}from"zustand";let PageContext=r(null),createPageStoreProvider=e=>n(t=>({...e,setAssignedProductIds:e=>{t({assignedProductIds:e})},setIsApplyAllProducts:e=>{t({isApplyAllProducts:e})},setDynamicProduct:e=>{t({dynamicProduct:e})},setDynamicCollection:e=>{t({dynamicCollection:e})},setPostPurchaseProductOffers:e=>{t({productOffers:e})},setDynamicDiscountOffer:e=>{t({dynamicDiscountOffer:e})},setSalePageProductId:e=>{t({salePageProductId:e})},setPublicStoreFrontData:e=>{t({publicStoreFrontData:e})},setInteractionIsSelectOnPage:e=>{t(t=>({interactionData:{...t.interactionData,isSelectOnPage:e}}))},setInteractionItem:e=>{t(t=>({interactionData:{...t.interactionData,item:e,isSelectOnPage:t.interactionData?.isSelectOnPage||!1}}))},setInteractionSelectType:e=>{t(t=>({interactionData:{...t.interactionData,selectType:e}}))},setInteractionSettingType:e=>{t(t=>({interactionData:{...t.interactionData,settingType:e}}))},setSidebarMode:e=>{t(()=>({sidebarMode:e}))},sellingPlanMeta:void 0,setSellingPlanMeta:e=>{t({sellingPlanMeta:e})}})),PageProvider=({children:a,dynamicProduct:r,dynamicCollection:i,productOffers:n,dynamicDiscountOffer:o,publicStoreFrontData:c,assignedProductIds:s,isApplyAllProducts:P,...l})=>{let d=t(()=>createPageStoreProvider({dynamicProduct:r,dynamicCollection:i,productOffers:n,assignedProductIds:s,isApplyAllProducts:P,dynamicDiscountOffer:o,publicStoreFrontData:c,interactionData:{selectType:"ELEMENT"}}),[r,i,n,o,c,s,P]);return e(PageContext.Provider,{...l,value:d,children:a})},usePageStore=(e,t)=>{let r=a(PageContext);if(!r)throw Error("usePageStore must be used within a PageProvider");return i(r,e,t)};export{PageProvider,usePageStore};
@@ -30,6 +30,11 @@ let ProductVariantsWithSellingPlansSelect=`
30
30
  sellingPlanGroups {
31
31
  id
32
32
  appID
33
+ sellingPlans {
34
+ id
35
+ name
36
+ baseID
37
+ }
33
38
  }
34
39
  }
35
40
  `;export{ProductVariantsWithSellingPlansSelect};
@@ -35383,11 +35383,13 @@ type CollectionSelectFragment = Pick<Collection$1, 'id' | 'createdAt' | 'updated
35383
35383
 
35384
35384
  type MediaSelectFragment = Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>;
35385
35385
 
35386
- type ProductVariantsWithSellingPlansSelectFragment = (Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
35386
+ type ProductVariantsWithSellingPlansSelectFragment = Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
35387
35387
  selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
35388
35388
  media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
35389
- sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'>>>>;
35390
- });
35389
+ sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'> & {
35390
+ sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID'>>>>;
35391
+ }>>>;
35392
+ };
35391
35393
 
35392
35394
  type ProductsWithSellingPlansDetailFragment = Pick<Product$1, 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor' | 'tags'> & {
35393
35395
  options?: Maybe$1<Array<Pick<ProductOption$1, 'id' | 'name' | 'optionType'> & {
@@ -35399,7 +35401,9 @@ type ProductsWithSellingPlansDetailFragment = Pick<Product$1, 'id' | 'title' | '
35399
35401
  node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
35400
35402
  }>;
35401
35403
  }>;
35402
- sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'appID' | 'baseID' | 'id' | 'name'>>>>;
35404
+ sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'appID' | 'baseID' | 'id' | 'name'> & {
35405
+ sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID'>>>>;
35406
+ }>>>;
35403
35407
  medias?: Maybe$1<{
35404
35408
  edges: Array<Pick<MediaEdge$1, 'cursor'> & {
35405
35409
  node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
@@ -35411,7 +35415,9 @@ type ProductsWithSellingPlansDetailFragment = Pick<Product$1, 'id' | 'title' | '
35411
35415
  node?: Maybe$1<Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
35412
35416
  selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
35413
35417
  media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
35414
- sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'>>>>;
35418
+ sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'> & {
35419
+ sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID'>>>>;
35420
+ }>>>;
35415
35421
  }>;
35416
35422
  }>;
35417
35423
  pageInfo?: Maybe$1<Pick<PageInfo$1, 'hasNextPage' | 'endCursor'>>;
@@ -35562,6 +35568,7 @@ type PageContextProps = {
35562
35568
  settingType?: 'TRIGGER' | 'TARGET';
35563
35569
  };
35564
35570
  sidebarMode?: string;
35571
+ sellingPlanMeta?: any;
35565
35572
  setDynamicProduct: (data: DynamicProduct) => void;
35566
35573
  setAssignedProductIds: (assignedIds: string[]) => void;
35567
35574
  setIsApplyAllProducts: (isApplyAllProducts: boolean) => void;
@@ -35575,6 +35582,7 @@ type PageContextProps = {
35575
35582
  setInteractionSelectType: (selectType: 'ELEMENT' | 'PAGE') => void;
35576
35583
  setInteractionSettingType: (settingType?: 'TRIGGER' | 'TARGET') => void;
35577
35584
  setSidebarMode: (mode: string) => void;
35585
+ setSellingPlanMeta: (value: any) => void;
35578
35586
  };
35579
35587
  type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicCollection' | 'productOffers' | 'dynamicDiscountOffer' | 'assignedProductIds' | 'isApplyAllProducts'> & {
35580
35588
  children: React.ReactNode;
@@ -35967,11 +35975,11 @@ type ProductsWithSellingPlansQueryVariables = Exact$1<{
35967
35975
  }>;
35968
35976
  type ProductsWithSellingPlansQueryResponse = {
35969
35977
  products?: Maybe$1<{
35970
- edges: Array<(Pick<ProductEdge$1, 'cursor'> & {
35971
- node?: Maybe$1<(Pick<Product$1, 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor' | 'tags'> & {
35972
- options?: Maybe$1<Array<(Pick<ProductOption$1, 'id' | 'name' | 'optionType'> & {
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'> & {
35980
+ options?: Maybe$1<Array<Pick<ProductOption$1, 'id' | 'name' | 'optionType'> & {
35973
35981
  values: Array<Pick<ProductOptionValue$1, 'id' | 'label' | 'isDefault' | 'baseID'>>;
35974
- })>>;
35982
+ }>>;
35975
35983
  featuredImage?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
35976
35984
  collections?: Maybe$1<{
35977
35985
  edges: Array<{
@@ -35980,23 +35988,25 @@ type ProductsWithSellingPlansQueryResponse = {
35980
35988
  }>;
35981
35989
  sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'appID' | 'baseID' | 'id' | 'name'>>>>;
35982
35990
  medias?: Maybe$1<{
35983
- edges: Array<(Pick<MediaEdge$1, 'cursor'> & {
35991
+ edges: Array<Pick<MediaEdge$1, 'cursor'> & {
35984
35992
  node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
35985
- })>;
35993
+ }>;
35986
35994
  pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage'>>;
35987
35995
  }>;
35988
35996
  variants?: Maybe$1<{
35989
- edges: Array<(Pick<ProductVariantEdge$1, 'cursor'> & {
35990
- node?: Maybe$1<(Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
35997
+ edges: Array<Pick<ProductVariantEdge$1, 'cursor'> & {
35998
+ node?: Maybe$1<Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
35991
35999
  selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
35992
36000
  media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
35993
- sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'>>>>;
35994
- })>;
35995
- })>;
36001
+ sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'> & {
36002
+ sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID'>>>>;
36003
+ }>>>;
36004
+ }>;
36005
+ }>;
35996
36006
  pageInfo?: Maybe$1<Pick<PageInfo$1, 'hasNextPage' | 'endCursor'>>;
35997
36007
  }>;
35998
- })>;
35999
- })>;
36008
+ }>;
36009
+ }>;
36000
36010
  pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage'>>;
36001
36011
  }>;
36002
36012
  };
@@ -36014,18 +36024,20 @@ type ProductVariantsWithSellingPlansQueryVariables = Exact$1<{
36014
36024
  type ProductVariantsWithSellingPlansQueryResponse = {
36015
36025
  variants?: Maybe$1<{
36016
36026
  edges: Array<{
36017
- node?: Maybe$1<(Pick<Product$1, 'id'> & {
36027
+ node?: Maybe$1<Pick<Product$1, 'id'> & {
36018
36028
  variants?: Maybe$1<{
36019
- edges: Array<(Pick<ProductVariantEdge$1, 'cursor'> & {
36020
- node?: Maybe$1<(Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
36029
+ edges: Array<Pick<ProductVariantEdge$1, 'cursor'> & {
36030
+ node?: Maybe$1<Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
36021
36031
  selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
36022
36032
  media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
36023
- sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'>>>>;
36024
- })>;
36025
- })>;
36033
+ sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'> & {
36034
+ sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID'>>>>;
36035
+ }>>>;
36036
+ }>;
36037
+ }>;
36026
36038
  pageInfo?: Maybe$1<Pick<PageInfo$1, 'hasNextPage' | 'endCursor'>>;
36027
36039
  }>;
36028
- })>;
36040
+ }>;
36029
36041
  }>;
36030
36042
  }>;
36031
36043
  };
@@ -38216,6 +38228,70 @@ type ColumnWithSlider<T> = SharedControlType<T> & {
38216
38228
  fallbackArrayValue?: number[];
38217
38229
  };
38218
38230
 
38231
+ type SellingPlanControlType<T> = SharedControlType<T> & {
38232
+ type: 'selling-plan';
38233
+ };
38234
+ type PickSubscriptionOption<T> = {
38235
+ value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
38236
+ label?: string | number;
38237
+ title?: string;
38238
+ showValue?: boolean;
38239
+ displayValue?: string;
38240
+ hideOnPage?: string[];
38241
+ flowTag?: string[];
38242
+ condition?: 'and' | 'or';
38243
+ icon?: string;
38244
+ svgIcon?: string;
38245
+ svgIconSelected?: string;
38246
+ tooltip?: string;
38247
+ type?: string;
38248
+ note?: string;
38249
+ maxOption?: number;
38250
+ subTitle?: string;
38251
+ disableHoverIcon?: boolean;
38252
+ };
38253
+ type BasePickSubscription<K> = {
38254
+ id: K;
38255
+ label?: string;
38256
+ info?: string;
38257
+ isFullWidth?: boolean;
38258
+ hyperlinkInfo?: HyperlinkInfo;
38259
+ hideOnMode?: {
38260
+ responsive?: boolean;
38261
+ mobileOnly?: boolean;
38262
+ };
38263
+ hide?: boolean;
38264
+ state?: {
38265
+ normal?: boolean;
38266
+ hover?: boolean;
38267
+ focus?: boolean;
38268
+ active?: boolean;
38269
+ };
38270
+ placeholder?: string;
38271
+ controlOption?: string;
38272
+ };
38273
+ type ResponsivePickSubscription<K, T, U> = BasePickSubscription<K> & {
38274
+ type: 'pick-subscription';
38275
+ options: PickSubscriptionOption<T>[];
38276
+ devices?: ResponsiveConfig<U>;
38277
+ };
38278
+ type SimplePickSubscriptionBase<K, T> = BasePickSubscription<K> & {
38279
+ default?: T;
38280
+ showSelectedIcon?: boolean;
38281
+ showSelectedSvg?: boolean;
38282
+ fixWidth?: boolean;
38283
+ disableSelectedText?: boolean;
38284
+ disableDefault?: boolean;
38285
+ };
38286
+ type SimplePickSubscription<K, T> = SimplePickSubscriptionBase<K, T> & {
38287
+ type: 'pick-subscription';
38288
+ options: PickSubscriptionOption<T>[];
38289
+ };
38290
+ type MappedPickSubscription<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? ResponsivePickSubscription<K, T, U> : SimplePickSubscription<K, T>;
38291
+ type PickSubscriptionControlType<T> = {
38292
+ [K in keyof T]-?: MappedPickSubscription<K, T[K]>;
38293
+ }[keyof T];
38294
+
38219
38295
  type BehaviorStateControlType<T> = {
38220
38296
  id: string;
38221
38297
  type: 'behavior-state';
@@ -38237,7 +38313,7 @@ type GroupControlType<T> = {
38237
38313
  mobileOnly?: boolean;
38238
38314
  };
38239
38315
  };
38240
- type ControlProp<T> = (ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputStepperControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | Option$7<T> | OptionValueControlType<T> | OptionIllustrationControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | Option$4<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | VariantListingControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T> | ColorPickerV2ControlType<T> | BorderV2ControlType<T> | CornerV2ControlType<T> | PaddingV2ControlType<T> | BackgroundImageType<T> | BackgroundVideoType<T> | ShadowV2ControlType<T> | BackgroundMediaControlType<T> | BackgroundMediaComboControlType<T> | BackgroundVideoType<T> | ImageV2ControlType<T> | LayoutSelectorControlType<T> | ComboControlType<T> | DynamicOfferQuantity<T> | ImagePostPurchase<T> | ImageSelect<T> | InputSliderControlType<T> | VariantSwatchesPresetV2ControlType<T> | LayoutCarouselSelectorControlType<T> | BannerControlType<T> | ProductSourceControlType<T> | ColumnWithSlider<T>) & {
38316
+ type ControlProp<T> = (ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputStepperControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | Option$7<T> | OptionValueControlType<T> | OptionIllustrationControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | Option$4<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | VariantListingControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T> | ColorPickerV2ControlType<T> | BorderV2ControlType<T> | CornerV2ControlType<T> | PaddingV2ControlType<T> | BackgroundImageType<T> | BackgroundVideoType<T> | ShadowV2ControlType<T> | BackgroundMediaControlType<T> | BackgroundMediaComboControlType<T> | BackgroundVideoType<T> | ImageV2ControlType<T> | LayoutSelectorControlType<T> | ComboControlType<T> | DynamicOfferQuantity<T> | ImagePostPurchase<T> | ImageSelect<T> | InputSliderControlType<T> | VariantSwatchesPresetV2ControlType<T> | LayoutCarouselSelectorControlType<T> | BannerControlType<T> | ProductSourceControlType<T> | ColumnWithSlider<T> | SellingPlanControlType<T> | PickSubscriptionControlType<T>) & {
38241
38317
  validate?: ValidateType;
38242
38318
  };
38243
38319
  type ValidateType = {
@@ -48750,12 +48826,16 @@ declare const useSelectedOption: () => {
48750
48826
  declare const useVariants: () => Maybe$1<Pick<ProductVariant$1, "id" | "title" | "price" | "width" | "length" | "weight" | "height" | "baseID" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "platform" | "salePrice" | "sku" | "soldIndividually"> & {
48751
48827
  selectedOptions: Pick<SelectedOption$1, "name" | "value" | "optionType">[];
48752
48828
  media?: Maybe$1<Pick<Media$1, "id" | "width" | "height" | "contentType" | "previewImage" | "src" | "alt">>;
48753
- sellingPlanGroups?: Maybe$1<Maybe$1<Pick<SellingPlanGroup, "id" | "appID">>[]>;
48829
+ sellingPlanGroups?: Maybe$1<Maybe$1<Pick<SellingPlanGroup, "id" | "appID"> & {
48830
+ sellingPlans?: Maybe$1<Maybe$1<Pick<SellingPlan, "name" | "id" | "baseID">>[]>;
48831
+ }>[]>;
48754
48832
  }>[];
48755
48833
  declare const useVariant: (id: string) => Maybe$1<Pick<ProductVariant$1, "id" | "title" | "price" | "width" | "length" | "weight" | "height" | "baseID" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "platform" | "salePrice" | "sku" | "soldIndividually"> & {
48756
48834
  selectedOptions: Pick<SelectedOption$1, "name" | "value" | "optionType">[];
48757
48835
  media?: Maybe$1<Pick<Media$1, "id" | "width" | "height" | "contentType" | "previewImage" | "src" | "alt">>;
48758
- sellingPlanGroups?: Maybe$1<Maybe$1<Pick<SellingPlanGroup, "id" | "appID">>[]>;
48836
+ sellingPlanGroups?: Maybe$1<Maybe$1<Pick<SellingPlanGroup, "id" | "appID"> & {
48837
+ sellingPlans?: Maybe$1<Maybe$1<Pick<SellingPlan, "name" | "id" | "baseID">>[]>;
48838
+ }>[]>;
48759
48839
  }>;
48760
48840
  declare const useCurrentVariant: () => Maybe$1<VariantSelectFragment>;
48761
48841
  declare const useCurrentVariantInStock: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "8.0.0-dev.107",
3
+ "version": "8.0.0-dev.109",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",