@gem-sdk/core 12.0.0-dev.30 → 12.0.0-dev.32
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.
- package/dist/cjs/contexts/PageContext.js +1 -1
- package/dist/cjs/graphql/fragments/product-variants-with-selling-plans-select.generated.js +1 -0
- package/dist/esm/contexts/PageContext.js +1 -1
- package/dist/esm/graphql/fragments/product-variants-with-selling-plans-select.generated.js +1 -0
- package/dist/types/index.d.ts +56 -49
- package/package.json +1 -1
|
@@ -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}))},setSellingPlanMeta:e=>{t({sellingPlanMeta:e})}})),PageProvider=({children:e,dynamicProduct:t,dynamicCollection:
|
|
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}))},setSellingPlanMeta:e=>{t({sellingPlanMeta:e})},setBuyerConsentPreCheck:e=>{t({buyerConsentPreCheck:e})}})),PageProvider=({children:e,dynamicProduct:t,dynamicCollection:r,productOffers:a,dynamicDiscountOffer:n,publicStoreFrontData:i,assignedProductIds:o,isApplyAllProducts:s,sellingPlanMeta:c,buyerConsentPreCheck:P,...u})=>{let d=react.useMemo(()=>createPageStoreProvider({dynamicProduct:t,dynamicCollection:r,productOffers:a,assignedProductIds:o,isApplyAllProducts:s,dynamicDiscountOffer:n,publicStoreFrontData:i,interactionData:{selectType:"ELEMENT"},sellingPlanMeta:c,buyerConsentPreCheck:P}),[t,r,a,n,i,o,s,c,P]);return jsxRuntime.jsx(PageContext.Provider,{...u,value:d,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;
|
|
@@ -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
|
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{useMemo as t,useContext as a,createContext as r}from"react";import{useStore as n,createStore as o}from"zustand";let PageContext=r(null),createPageStoreProvider=e=>o(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}))},setSellingPlanMeta:e=>{t({sellingPlanMeta:e})},setBuyerConsentPreCheck:e=>{t({buyerConsentPreCheck:e})}})),PageProvider=({children:a,dynamicProduct:r,dynamicCollection:n,productOffers:o,dynamicDiscountOffer:i,publicStoreFrontData:c,assignedProductIds:s,isApplyAllProducts:P,sellingPlanMeta:l,buyerConsentPreCheck:d,...u})=>{let g=t(()=>createPageStoreProvider({dynamicProduct:r,dynamicCollection:n,productOffers:o,assignedProductIds:s,isApplyAllProducts:P,dynamicDiscountOffer:i,publicStoreFrontData:c,interactionData:{selectType:"ELEMENT"},sellingPlanMeta:l,buyerConsentPreCheck:d}),[r,n,o,i,c,s,P,l,d]);return e(PageContext.Provider,{...u,value:g,children:a})},usePageStore=(e,t)=>{let r=a(PageContext);if(!r)throw Error("usePageStore must be used within a PageProvider");return n(r,e,t)};export{PageProvider,usePageStore};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -35384,46 +35384,46 @@ type CollectionSelectFragment = Pick<Collection$1, 'id' | 'createdAt' | 'updated
|
|
|
35384
35384
|
|
|
35385
35385
|
type MediaSelectFragment = Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>;
|
|
35386
35386
|
|
|
35387
|
-
type ProductVariantsWithSellingPlansSelectFragment =
|
|
35387
|
+
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'> & {
|
|
35388
35388
|
selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
|
|
35389
35389
|
media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
35390
|
-
sellingPlanGroups?: Maybe$1<Array<Maybe$1<
|
|
35391
|
-
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies'>>>>;
|
|
35392
|
-
}
|
|
35393
|
-
}
|
|
35390
|
+
sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'> & {
|
|
35391
|
+
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies' | 'updatedAt'>>>>;
|
|
35392
|
+
}>>>;
|
|
35393
|
+
};
|
|
35394
35394
|
|
|
35395
|
-
type ProductsWithSellingPlansDetailFragment =
|
|
35396
|
-
options?: Maybe$1<Array<
|
|
35395
|
+
type ProductsWithSellingPlansDetailFragment = Pick<Product$1, 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'requiresSellingPlan' | 'vendor' | 'tags'> & {
|
|
35396
|
+
options?: Maybe$1<Array<Pick<ProductOption$1, 'id' | 'name' | 'optionType'> & {
|
|
35397
35397
|
values: Array<Pick<ProductOptionValue$1, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
35398
|
-
}
|
|
35398
|
+
}>>;
|
|
35399
35399
|
featuredImage?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
35400
35400
|
collections?: Maybe$1<{
|
|
35401
35401
|
edges: Array<{
|
|
35402
35402
|
node?: Maybe$1<Pick<Collection$1, 'id' | 'title'>>;
|
|
35403
35403
|
}>;
|
|
35404
35404
|
}>;
|
|
35405
|
-
sellingPlanGroups?: Maybe$1<Array<Maybe$1<
|
|
35406
|
-
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies'>>>>;
|
|
35407
|
-
}
|
|
35405
|
+
sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'appID' | 'baseID' | 'id' | 'name'> & {
|
|
35406
|
+
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies' | 'updatedAt'>>>>;
|
|
35407
|
+
}>>>;
|
|
35408
35408
|
medias?: Maybe$1<{
|
|
35409
|
-
edges: Array<
|
|
35409
|
+
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
35410
35410
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
35411
|
-
}
|
|
35411
|
+
}>;
|
|
35412
35412
|
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage'>>;
|
|
35413
35413
|
}>;
|
|
35414
35414
|
variants?: Maybe$1<{
|
|
35415
|
-
edges: Array<
|
|
35416
|
-
node?: Maybe$1<
|
|
35415
|
+
edges: Array<Pick<ProductVariantEdge$1, 'cursor'> & {
|
|
35416
|
+
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'> & {
|
|
35417
35417
|
selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
|
|
35418
35418
|
media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
35419
|
-
sellingPlanGroups?: Maybe$1<Array<Maybe$1<
|
|
35420
|
-
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies'>>>>;
|
|
35421
|
-
}
|
|
35422
|
-
}
|
|
35423
|
-
}
|
|
35419
|
+
sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'> & {
|
|
35420
|
+
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies' | 'updatedAt'>>>>;
|
|
35421
|
+
}>>>;
|
|
35422
|
+
}>;
|
|
35423
|
+
}>;
|
|
35424
35424
|
pageInfo?: Maybe$1<Pick<PageInfo$1, 'hasNextPage' | 'endCursor'>>;
|
|
35425
35425
|
}>;
|
|
35426
|
-
}
|
|
35426
|
+
};
|
|
35427
35427
|
|
|
35428
35428
|
type AttributeProp = {
|
|
35429
35429
|
key: string;
|
|
@@ -35575,6 +35575,7 @@ type PageContextProps = {
|
|
|
35575
35575
|
};
|
|
35576
35576
|
sidebarMode?: string;
|
|
35577
35577
|
sellingPlanMeta?: any;
|
|
35578
|
+
buyerConsentPreCheck?: Record<string, boolean>;
|
|
35578
35579
|
setDynamicProduct: (data: DynamicProduct) => void;
|
|
35579
35580
|
setAssignedProductIds: (assignedIds: string[]) => void;
|
|
35580
35581
|
setIsApplyAllProducts: (isApplyAllProducts: boolean) => void;
|
|
@@ -35589,8 +35590,9 @@ type PageContextProps = {
|
|
|
35589
35590
|
setInteractionSettingType: (settingType?: 'TRIGGER' | 'TARGET') => void;
|
|
35590
35591
|
setSidebarMode: (mode: string) => void;
|
|
35591
35592
|
setSellingPlanMeta: (value: any) => void;
|
|
35593
|
+
setBuyerConsentPreCheck: (value: Record<string, boolean>) => void;
|
|
35592
35594
|
};
|
|
35593
|
-
type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicCollection' | 'productOffers' | 'dynamicDiscountOffer' | 'assignedProductIds' | 'isApplyAllProducts' | 'sellingPlanMeta'> & {
|
|
35595
|
+
type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicCollection' | 'productOffers' | 'dynamicDiscountOffer' | 'assignedProductIds' | 'isApplyAllProducts' | 'sellingPlanMeta' | 'buyerConsentPreCheck'> & {
|
|
35594
35596
|
children: React.ReactNode;
|
|
35595
35597
|
key?: React.Key;
|
|
35596
35598
|
publicStoreFrontData?: PublicStoreFrontData | null;
|
|
@@ -35981,11 +35983,11 @@ type ProductsWithSellingPlansQueryVariables = Exact$1<{
|
|
|
35981
35983
|
}>;
|
|
35982
35984
|
type ProductsWithSellingPlansQueryResponse = {
|
|
35983
35985
|
products?: Maybe$1<{
|
|
35984
|
-
edges: Array<
|
|
35985
|
-
node?: Maybe$1<
|
|
35986
|
-
options?: Maybe$1<Array<
|
|
35986
|
+
edges: Array<Pick<ProductEdge$1, 'cursor'> & {
|
|
35987
|
+
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'requiresSellingPlan' | 'vendor' | 'tags'> & {
|
|
35988
|
+
options?: Maybe$1<Array<Pick<ProductOption$1, 'id' | 'name' | 'optionType'> & {
|
|
35987
35989
|
values: Array<Pick<ProductOptionValue$1, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
35988
|
-
}
|
|
35990
|
+
}>>;
|
|
35989
35991
|
featuredImage?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
35990
35992
|
collections?: Maybe$1<{
|
|
35991
35993
|
edges: Array<{
|
|
@@ -35994,25 +35996,25 @@ type ProductsWithSellingPlansQueryResponse = {
|
|
|
35994
35996
|
}>;
|
|
35995
35997
|
sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'appID' | 'baseID' | 'id' | 'name'>>>>;
|
|
35996
35998
|
medias?: Maybe$1<{
|
|
35997
|
-
edges: Array<
|
|
35999
|
+
edges: Array<Pick<MediaEdge$1, 'cursor'> & {
|
|
35998
36000
|
node?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
35999
|
-
}
|
|
36001
|
+
}>;
|
|
36000
36002
|
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage'>>;
|
|
36001
36003
|
}>;
|
|
36002
36004
|
variants?: Maybe$1<{
|
|
36003
|
-
edges: Array<
|
|
36004
|
-
node?: Maybe$1<
|
|
36005
|
+
edges: Array<Pick<ProductVariantEdge$1, 'cursor'> & {
|
|
36006
|
+
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'> & {
|
|
36005
36007
|
selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
|
|
36006
36008
|
media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
36007
|
-
sellingPlanGroups?: Maybe$1<Array<Maybe$1<
|
|
36008
|
-
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies'>>>>;
|
|
36009
|
-
}
|
|
36010
|
-
}
|
|
36011
|
-
}
|
|
36009
|
+
sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'> & {
|
|
36010
|
+
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies' | 'updatedAt'>>>>;
|
|
36011
|
+
}>>>;
|
|
36012
|
+
}>;
|
|
36013
|
+
}>;
|
|
36012
36014
|
pageInfo?: Maybe$1<Pick<PageInfo$1, 'hasNextPage' | 'endCursor'>>;
|
|
36013
36015
|
}>;
|
|
36014
|
-
}
|
|
36015
|
-
}
|
|
36016
|
+
}>;
|
|
36017
|
+
}>;
|
|
36016
36018
|
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage'>>;
|
|
36017
36019
|
}>;
|
|
36018
36020
|
};
|
|
@@ -36030,20 +36032,20 @@ type ProductVariantsWithSellingPlansQueryVariables = Exact$1<{
|
|
|
36030
36032
|
type ProductVariantsWithSellingPlansQueryResponse = {
|
|
36031
36033
|
variants?: Maybe$1<{
|
|
36032
36034
|
edges: Array<{
|
|
36033
|
-
node?: Maybe$1<
|
|
36035
|
+
node?: Maybe$1<Pick<Product$1, 'id'> & {
|
|
36034
36036
|
variants?: Maybe$1<{
|
|
36035
|
-
edges: Array<
|
|
36036
|
-
node?: Maybe$1<
|
|
36037
|
+
edges: Array<Pick<ProductVariantEdge$1, 'cursor'> & {
|
|
36038
|
+
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'> & {
|
|
36037
36039
|
selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
|
|
36038
36040
|
media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
36039
|
-
sellingPlanGroups?: Maybe$1<Array<Maybe$1<
|
|
36040
|
-
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies'>>>>;
|
|
36041
|
-
}
|
|
36042
|
-
}
|
|
36043
|
-
}
|
|
36041
|
+
sellingPlanGroups?: Maybe$1<Array<Maybe$1<Pick<SellingPlanGroup, 'id' | 'appID'> & {
|
|
36042
|
+
sellingPlans?: Maybe$1<Array<Maybe$1<Pick<SellingPlan, 'id' | 'name' | 'baseID' | 'pricingPolicies' | 'updatedAt'>>>>;
|
|
36043
|
+
}>>>;
|
|
36044
|
+
}>;
|
|
36045
|
+
}>;
|
|
36044
36046
|
pageInfo?: Maybe$1<Pick<PageInfo$1, 'hasNextPage' | 'endCursor'>>;
|
|
36045
36047
|
}>;
|
|
36046
|
-
}
|
|
36048
|
+
}>;
|
|
36047
36049
|
}>;
|
|
36048
36050
|
}>;
|
|
36049
36051
|
};
|
|
@@ -38318,6 +38320,11 @@ type PickSubscriptionControlType<T> = {
|
|
|
38318
38320
|
[K in keyof T]-?: MappedPickSubscription<K, T[K]>;
|
|
38319
38321
|
}[keyof T];
|
|
38320
38322
|
|
|
38323
|
+
type ToggleBuyerConsentControlType<T> = SharedControlType<T> & {
|
|
38324
|
+
type: 'toggle-buyer-consent';
|
|
38325
|
+
readonly?: boolean;
|
|
38326
|
+
};
|
|
38327
|
+
|
|
38321
38328
|
type BehaviorStateControlType<T> = {
|
|
38322
38329
|
id: string;
|
|
38323
38330
|
type: 'behavior-state';
|
|
@@ -38339,7 +38346,7 @@ type GroupControlType<T> = {
|
|
|
38339
38346
|
mobileOnly?: boolean;
|
|
38340
38347
|
};
|
|
38341
38348
|
};
|
|
38342
|
-
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>) & {
|
|
38349
|
+
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> | ToggleBuyerConsentControlType<T>) & {
|
|
38343
38350
|
validate?: ValidateType;
|
|
38344
38351
|
};
|
|
38345
38352
|
type ValidateType = {
|
|
@@ -48907,14 +48914,14 @@ declare const useVariants: () => Maybe$1<Pick<ProductVariant$1, "id" | "title" |
|
|
|
48907
48914
|
selectedOptions: Pick<SelectedOption$1, "name" | "value" | "optionType">[];
|
|
48908
48915
|
media?: Maybe$1<Pick<Media$1, "id" | "width" | "height" | "contentType" | "previewImage" | "src" | "alt">>;
|
|
48909
48916
|
sellingPlanGroups?: Maybe$1<Maybe$1<Pick<SellingPlanGroup, "id" | "appID"> & {
|
|
48910
|
-
sellingPlans?: Maybe$1<Maybe$1<Pick<SellingPlan, "name" | "id" | "baseID" | "pricingPolicies">>[]>;
|
|
48917
|
+
sellingPlans?: Maybe$1<Maybe$1<Pick<SellingPlan, "name" | "id" | "updatedAt" | "baseID" | "pricingPolicies">>[]>;
|
|
48911
48918
|
}>[]>;
|
|
48912
48919
|
}>[];
|
|
48913
48920
|
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"> & {
|
|
48914
48921
|
selectedOptions: Pick<SelectedOption$1, "name" | "value" | "optionType">[];
|
|
48915
48922
|
media?: Maybe$1<Pick<Media$1, "id" | "width" | "height" | "contentType" | "previewImage" | "src" | "alt">>;
|
|
48916
48923
|
sellingPlanGroups?: Maybe$1<Maybe$1<Pick<SellingPlanGroup, "id" | "appID"> & {
|
|
48917
|
-
sellingPlans?: Maybe$1<Maybe$1<Pick<SellingPlan, "name" | "id" | "baseID" | "pricingPolicies">>[]>;
|
|
48924
|
+
sellingPlans?: Maybe$1<Maybe$1<Pick<SellingPlan, "name" | "id" | "updatedAt" | "baseID" | "pricingPolicies">>[]>;
|
|
48918
48925
|
}>[]>;
|
|
48919
48926
|
}>;
|
|
48920
48927
|
declare const useCurrentVariant: () => Maybe$1<VariantSelectFragment>;
|