@gem-sdk/components 8.0.0-dev.80 → 8.0.0-dev.82

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";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),React=require("react"),Text=require("../../text/components/Text.js"),useDynamicProduct=require("../hooks/useDynamicProduct.js");const PostPurchaseProductPrice=({styles:e,style:r,builderAttrs:t,builderProps:c,children:o,setting:s})=>{let i=core.useCurrentVariant(),u=core.useProduct(),a=core.convertDecimalToNumber(i?.price)??0,p=core.convertDecimalToNumber(i?.salePrice)??0,n=parseFloat(core.shopifyPriceRounding(core.useProductOfferDiscount(),2)),d=a-n>0?a-n:a,{isDynamicProduct:l}=useDynamicProduct.useDynamicProduct(),{t:m}=core.useI18nStore(),{priceType:g,source:x}=s??{},P="compare"===g,h="offer"===g,y="price"===x,j="compare-price"===x,f=React.useMemo(()=>P?y?a:p:h?d:a,[P,y,h,a,p,d]),R=core.useFormatMoney(parseFloat(core.shopifyPriceRounding(Number(f)||0,2)),!1),D=u?.baseID?.replace("gid://shopify/Product/",""),N=React.useMemo(()=>P&&(!n&&p<a||a<=0),[P,n,a,p]);return jsxRuntime.jsxs("div",{...t,className:core.cls(c?.uid),style:{...r},id:`shopify-text-element-${c?.uid}`,"data-product-id":D,children:[f||!N?jsxRuntime.jsx(Text.default,{styles:e,setting:{text:l?"$???":R},className:core.cls({"gp-money":h,"gp-product-compare-price":P,"gp-line-through":P&&j&&e?.lineThrough})}):jsxRuntime.jsx("div",{className:"gp-h-[28px] gp-px-1.5 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:jsxRuntime.jsx("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:m(P?"No compare price":"No price")})}),o]})};exports.default=PostPurchaseProductPrice;
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),React=require("react"),Text=require("../../text/components/Text.js"),useDynamicProduct=require("../hooks/useDynamicProduct.js");const PostPurchaseProductPrice=({styles:e,style:r,builderAttrs:t,builderProps:c,children:o,setting:s})=>{let i=core.useCurrentVariant(),u=core.useProduct(),a=core.convertDecimalToNumber(i?.price)??0,p=core.convertDecimalToNumber(i?.salePrice)??0,n=parseFloat(core.shopifyPriceRounding(core.useProductOfferDiscount(),2)),d=a-n>0?a-n:a,{isDynamicProduct:l}=useDynamicProduct.useDynamicProduct(),{t:m}=core.useI18nStore(),{priceType:g,source:x}=s??{},P="compare"===g,h="offer"===g,y="price"===x,j=React.useMemo(()=>P?y?a:p:h?d:a,[P,y,h,a,p,d]),f=core.useFormatMoney(parseFloat(core.shopifyPriceRounding(Number(j)||0,2)),!1),R=u?.baseID?.replace("gid://shopify/Product/",""),D=React.useMemo(()=>P&&(!n&&p<a||a<=0),[P,n,a,p]);return!j||D?jsxRuntime.jsx("div",{className:"gp-h-[28px] gp-px-1.5 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:jsxRuntime.jsx("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:m(P?"No compare price":"No price")})}):jsxRuntime.jsxs("div",{...t,className:core.cls(c?.uid),style:{...r},id:`shopify-text-element-${c?.uid}`,"data-product-id":R,children:[jsxRuntime.jsx(Text.default,{styles:e,setting:{text:l?"$???":f},className:core.cls({"gp-money":h,"gp-product-compare-price":P,"gp-line-through":P&&e?.lineThrough})}),o]})};exports.default=PostPurchaseProductPrice;
@@ -5,4 +5,4 @@
5
5
  <rect x="31" y="31" width="34" height="7" rx="3" fill="#424242"/>
6
6
  <rect x="36" y="41" width="24" height="7" rx="3" fill="#424242"/>
7
7
  </svg>
8
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[12],display:"fill"}}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProduct1Col=postPurchaseProduct1Col;
8
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[12],display:"fill"}}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProduct1Col=postPurchaseProduct1Col;
@@ -8,4 +8,4 @@
8
8
  <rect x="64" width="28" height="7" rx="3" fill="#424242"/>
9
9
  <rect x="64" y="11" width="14" height="7" rx="3" fill="#424242"/>
10
10
  </svg>
11
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"left",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{advanced:{blockPadding:"base"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProduct2Col=postPurchaseProduct2Col;
11
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"left",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{advanced:{blockPadding:"base"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProduct2Col=postPurchaseProduct2Col;
@@ -9,4 +9,4 @@
9
9
  <rect x="57" width="32" height="7" rx="3" fill="#424242"/>
10
10
  <rect x="57" y="11" width="18" height="7" rx="3" fill="#424242"/>
11
11
  </svg>
12
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare",color:{normal:"text-1"}}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProductOfferDefault=postPurchaseProductOfferDefault;
12
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"},styles:{color:{normal:"text-1"}}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};exports.postPurchaseProductOfferDefault=postPurchaseProductOfferDefault;
@@ -1 +1 @@
1
- "use strict";const SettingUIV2=[{label:{en:"Display"},controls:[{type:"control",label:{en:"Price"},options:{labelVariant:"primary"},setting:{id:"priceType"}},{type:"control",label:{en:"Source"},setting:{id:"source"},conditionDisplay:'priceType === "compare"'}]},{label:{en:"Text"},controls:[{type:"control",label:{en:""},setting:{id:"typo"},layout:"vertical"}]}];exports.SettingUIV2=SettingUIV2;
1
+ "use strict";const SettingUIV2=[{label:{en:"Display"},controls:[{type:"control",label:{en:"Price"},setting:{id:"priceType"}},{type:"control",label:{en:"Source"},setting:{id:"source"},conditionDisplay:'priceType === "compare"'}]},{label:{en:"Text"},controls:[{type:"control",label:{en:""},setting:{id:"typo"},layout:"vertical"}]}];exports.SettingUIV2=SettingUIV2;
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useCurrentVariant as t,useProduct as p,convertDecimalToNumber as o,shopifyPriceRounding as s,useProductOfferDiscount as c,useI18nStore as a,useFormatMoney as i,cls as d}from"@gem-sdk/core";import{useMemo as m}from"react";import l from"../../text/components/Text.js";import{useDynamicProduct as g}from"../hooks/useDynamicProduct.js";let PostPurchaseProductPrice=({styles:u,style:n,builderAttrs:h,builderProps:f,children:x,setting:y})=>{let P=t(),N=p(),b=o(P?.price)??0,j=o(P?.salePrice)??0,k=parseFloat(s(c(),2)),D=b-k>0?b-k:b,{isDynamicProduct:v}=g(),{t:F}=a(),{priceType:T,source:$}=y??{},I="compare"===T,S="offer"===T,q="price"===$,w="compare-price"===$,z=m(()=>I?q?b:j:S?D:b,[I,q,S,b,j,D]),A=i(parseFloat(s(Number(z)||0,2)),!1),B=N?.baseID?.replace("gid://shopify/Product/",""),C=m(()=>I&&(!k&&j<b||b<=0),[I,k,b,j]);return e("div",{...h,className:d(f?.uid),style:{...n},id:`shopify-text-element-${f?.uid}`,"data-product-id":B,children:[z||!C?r(l,{styles:u,setting:{text:v?"$???":A},className:d({"gp-money":S,"gp-product-compare-price":I,"gp-line-through":I&&w&&u?.lineThrough})}):r("div",{className:"gp-h-[28px] gp-px-1.5 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:r("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:F(I?"No compare price":"No price")})}),x]})};export{PostPurchaseProductPrice as default};
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useCurrentVariant as t,useProduct as o,convertDecimalToNumber as p,shopifyPriceRounding as s,useProductOfferDiscount as a,useI18nStore as c,useFormatMoney as i,cls as d}from"@gem-sdk/core";import{useMemo as l}from"react";import m from"../../text/components/Text.js";import{useDynamicProduct as g}from"../hooks/useDynamicProduct.js";let PostPurchaseProductPrice=({styles:u,style:n,builderAttrs:h,builderProps:f,children:x,setting:y})=>{let P=t(),N=o(),b=p(P?.price)??0,j=p(P?.salePrice)??0,k=parseFloat(s(a(),2)),D=b-k>0?b-k:b,{isDynamicProduct:v}=g(),{t:F}=c(),{priceType:T,source:$}=y??{},I="compare"===T,S="offer"===T,q="price"===$,w=l(()=>I?q?b:j:S?D:b,[I,q,S,b,j,D]),z=i(parseFloat(s(Number(w)||0,2)),!1),A=N?.baseID?.replace("gid://shopify/Product/",""),B=l(()=>I&&(!k&&j<b||b<=0),[I,k,b,j]);return!w||B?e("div",{className:"gp-h-[28px] gp-px-1.5 gp-py-1 gp-flex gp-border gp-border-light-200 gp-items-center gp-justify-center gp-rounded-lg",style:{borderStyle:"dashed",strokeDasharray:"2,2"},children:e("span",{className:"gp-text-dark-400 gp-text-[12px] gp-leading-5",children:F(I?"No compare price":"No price")})}):r("div",{...h,className:d(f?.uid),style:{...n},id:`shopify-text-element-${f?.uid}`,"data-product-id":A,children:[e(m,{styles:u,setting:{text:v?"$???":z},className:d({"gp-money":S,"gp-product-compare-price":I,"gp-line-through":I&&u?.lineThrough})}),x]})};export{PostPurchaseProductPrice as default};
@@ -5,4 +5,4 @@ let postPurchaseProduct1Col={id:"post-purchase-product-offer-1-col",name:{en:"Pr
5
5
  <rect x="31" y="31" width="34" height="7" rx="3" fill="#424242"/>
6
6
  <rect x="36" y="41" width="24" height="7" rx="3" fill="#424242"/>
7
7
  </svg>
8
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[12],display:"fill"}}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProduct1Col};
8
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[12],display:"fill"}}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProduct1Col};
@@ -8,4 +8,4 @@ let postPurchaseProduct2Col={id:"post-purchase-product-offer-2-col",name:{en:"Pr
8
8
  <rect x="64" width="28" height="7" rx="3" fill="#424242"/>
9
9
  <rect x="64" y="11" width="14" height="7" rx="3" fill="#424242"/>
10
10
  </svg>
11
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"left",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{advanced:{blockPadding:"base"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProduct2Col};
11
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"left",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{advanced:{blockPadding:"base"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProduct2Col};
@@ -9,4 +9,4 @@ let postPurchaseProductOfferDefault={id:"post-purchase-product-offer",name:{en:"
9
9
  <rect x="57" width="32" height="7" rx="3" fill="#424242"/>
10
10
  <rect x="57" y="11" width="18" height="7" rx="3" fill="#424242"/>
11
11
  </svg>
12
- `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"regular"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",styles:{priceType:"compare",color:{normal:"text-1"}}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProductOfferDefault};
12
+ `},components:[{tag:"PostPurchaseProductOffer",settings:{layout:{desktop:{cols:[6,6],display:"fill"},mobile:{cols:[12]}}},styles:{columnGap:{desktop:"3%"}},advanced:{blockPadding:"none",inlinePadding:"none"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductImages",settings:{layoutType:"bottom-center",ftDragToScroll:!0,ftNavigationPosition:{desktop:"inside"}},advanced:{blockPadding:"base"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductTitle",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6],display:"fit"}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},advanced:{blockPadding:"base"},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"offer"}}]},{tag:"Col",childrens:[{tag:"PostPurchaseProductPrice",settings:{priceType:"compare",source:"price"},styles:{color:{normal:"text-1"}}}]}]},{tag:"PostPurchaseProductDescription",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductVariants",advanced:{blockPadding:"base"}},{tag:"PostPurchaseProductQuantity",advanced:{blockPadding:"base"}},{tag:"Row",settings:{layout:{desktop:{cols:[6,6]},mobile:{cols:[12]}},verticalAlign:{desktop:"center"}},styles:{columnGap:{desktop:"1%"}},childrens:[{tag:"Col",childrens:[{tag:"PostPurchaseAcceptButton",advanced:{blockPadding:"base"},settings:{text:"Buy it now",buttonType:"primary"},styles:{fullWidth:{desktop:!0}}}]},{tag:"Col",childrens:[{tag:"PostPurchaseButton",advanced:{blockPadding:"base"},settings:{text:"Decline",buttonType:"secondary"},styles:{fullWidth:{desktop:!0}}}]}]}]}]}]};export{postPurchaseProductOfferDefault};
@@ -1 +1 @@
1
- let SettingUIV2=[{label:{en:"Display"},controls:[{type:"control",label:{en:"Price"},options:{labelVariant:"primary"},setting:{id:"priceType"}},{type:"control",label:{en:"Source"},setting:{id:"source"},conditionDisplay:'priceType === "compare"'}]},{label:{en:"Text"},controls:[{type:"control",label:{en:""},setting:{id:"typo"},layout:"vertical"}]}];export{SettingUIV2};
1
+ let SettingUIV2=[{label:{en:"Display"},controls:[{type:"control",label:{en:"Price"},setting:{id:"priceType"}},{type:"control",label:{en:"Source"},setting:{id:"source"},conditionDisplay:'priceType === "compare"'}]},{label:{en:"Text"},controls:[{type:"control",label:{en:""},setting:{id:"typo"},layout:"vertical"}]}];export{SettingUIV2};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "8.0.0-dev.80",
3
+ "version": "8.0.0-dev.82",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",