@gem-sdk/components 3.1.0-staging.1145 → 3.1.0-staging.1147
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/accordion/settings/AccordionItem.js +1 -1
- package/dist/cjs/carousel/settings/CarouselItem.js +1 -1
- package/dist/cjs/icon-list-hoz/settings/IconListItem.js +1 -1
- package/dist/cjs/product/components/product-variants/common/base/styles.js +1 -1
- package/dist/cjs/tab/settings/TabItem.js +1 -1
- package/dist/cjs/third-party/components/KoalaBundleQuantityDiscount.liquid.js +1 -8
- package/dist/cjs/third-party/components/ParcelPanel.liquid.js +1 -9
- package/dist/cjs/third-party/components/SmartSearchBarAndFilters.liquid.js +1 -1
- package/dist/cjs/third-party/components/Trustoo.liquid.js +11 -5
- package/dist/cjs/third-party/settings/KoalaBundleQuantityDiscount/index.js +1 -1
- package/dist/cjs/third-party/settings/ParcelPanel/index.js +1 -1
- package/dist/cjs/third-party/settings/ParcelPanel/uiV2.js +1 -1
- package/dist/esm/accordion/settings/AccordionItem.js +1 -1
- package/dist/esm/carousel/settings/CarouselItem.js +1 -1
- package/dist/esm/icon-list-hoz/settings/IconListItem.js +1 -1
- package/dist/esm/product/components/product-variants/common/base/styles.js +1 -1
- package/dist/esm/tab/settings/TabItem.js +1 -1
- package/dist/esm/third-party/components/KoalaBundleQuantityDiscount.liquid.js +1 -8
- package/dist/esm/third-party/components/ParcelPanel.liquid.js +1 -9
- package/dist/esm/third-party/components/SmartSearchBarAndFilters.liquid.js +1 -1
- package/dist/esm/third-party/components/Trustoo.liquid.js +7 -1
- package/dist/esm/third-party/settings/KoalaBundleQuantityDiscount/index.js +2 -2
- package/dist/esm/third-party/settings/ParcelPanel/index.js +1 -1
- package/dist/esm/third-party/settings/ParcelPanel/uiV2.js +1 -1
- package/dist/types/index.d.ts +5 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={tag:"AccordionItem",label:"Accordion Item",settings:[],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{flowTag:["Accordion"],notAppendBeforeAfter:!0}}};exports.default=config;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={tag:"AccordionItem",label:"Accordion Item",settings:[],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{flowTag:["Accordion"],notAppendBeforeAfter:!0,notAppendLeftRight:!0}}};exports.default=config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={tag:"CarouselItem",label:"Carousel Item",settings:[{id:"setting",controls:[]},{id:"style",controls:[]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{notAppendBeforeAfter:!0}}};exports.default=config;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={tag:"CarouselItem",label:"Carousel Item",settings:[{id:"setting",controls:[]},{id:"style",controls:[]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{notAppendBeforeAfter:!0,notAppendLeftRight:!0}}};exports.default=config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={tag:"IconListItemHoz",label:"Icon List Item",settings:[{id:"setting",controls:[]},{id:"style",controls:[]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{notAppendBeforeAfter:!0}}};exports.default=config;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const config={tag:"IconListItemHoz",label:"Icon List Item",settings:[{id:"setting",controls:[]},{id:"style",controls:[]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{notAppendBeforeAfter:!0,notAppendLeftRight:!0}}};exports.default=config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var core=require("@gem-sdk/core"),helpers=require("../../../../../helpers.js");const getWrapperStyleActive=e=>{let{preset:
|
|
1
|
+
"use strict";var core=require("@gem-sdk/core"),helpers=require("../../../../../helpers.js");const getColorStyleWidth=e=>{let t=e?.height||"32px",o=e?.width||{desktop:t},r=Object.fromEntries(Object.entries(o).map(([e,o])=>{let r=o&&"undefined"!==o&&"auto"!==o?o:t;return[e,r]}));return core.makeStyleResponsive("minw",r)},getWrapperStyleActive=e=>{let{preset:t,optionTypography:o,optionTypo:r,typeOfOption:l}=e,a=t?.optionBgColor,p=t?.optionTextColor,i=t?.optionBorder,d=t?.optionHasShadow,c=t?.optionShadow,n=t?.optionRounded,h="color"===l,s="image"===l||"image_shopify"===l,g=core.composeTypographyStyle(r,o),y=e=>{let t=a?.active??a?.normal,o=i?.active??i?.normal;return core.makeStyle({bg:e&&core.getSingleColorVariable(t),bs:o?.border,bw:o?.width,bc:core.getSingleColorVariable(o?.color)})},S=c?.active??c?.normal,b=d?.active??d?.normal,m=p?.active??p?.normal;return helpers.filterTruthyObject({...y(!h),...core.getRadiusStyleActiveState(n),...core.getStyleShadow({value:S,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:b},!0),...g,...!h&&!s&&core.makeStyle({c:core.getSingleColorVariable(m)}),...h&&getColorStyleWidth(t),...core.makeStyle({h:t?.height})})},getWrapperStyleNormalAndHover=e=>{let{preset:t,optionTransform:o,optionTypography:r,optionTypo:l,typeOfOption:a}=e,p=t?.optionBgColor,i=t?.optionTextColor,d=t?.optionBorder,c=t?.optionHasShadow,n=t?.optionShadow,h=t?.optionRounded,s="color"===a,g="image"===a||"image_shopify"===a,y=core.composeTypographyStyle(l,r),S=["normal","hover"].reduce((e,t)=>({...e,...core.getStyleShadow({value:n?.[t],state:t,styleAppliedFor:"box-shadow",isEnableShadow:c?.[t]})}),{});return helpers.filterTruthyObject({...core.composeRadius(h),...S,...!s&&core.getGlobalColorStateStyle("bg",p),...!s&&core.handleConvertBorderStyle(d),...!s&&core.handleConvertBorderWidth(d),...!s&&core.handleConvertBorderColor(d),...!s&&!g&&core.makeStyle({c:o}),...!s&&!g&&core.getGlobalColorStateStyle("c",i),...y,...s&&getColorStyleWidth(t),...core.makeStyle({h:t?.height})})},getWrapperTextStyle=e=>{let{preset:t,typeOfOption:o,checked:r}=e,l=t?.optionBorder,a=t?.optionRounded,p="color"===o,i=()=>{let e="16px",o={"--pl":"0px","--pr":"0px","--pl-tablet":"0px","--pr-tablet":"0px","--pl-mobile":"0px","--pr-mobile":"0px","--pt":"0px","--pb":"0px"};return t?.width?.desktop?.toLowerCase()!=="auto"&&t?.width?.desktop||(o["--pl"]=e,o["--pr"]=e),t?.width?.tablet?.toLowerCase()!=="auto"&&t?.width?.tablet||(o["--pl-tablet"]=e,o["--pr-tablet"]=e),t?.width?.mobile?.toLowerCase()!=="auto"&&t?.width?.mobile||(o["--pl-mobile"]=e,o["--pr-mobile"]=e),(t?.height?.toLowerCase()==="auto"||t?.height)&&(o["--pt"]="8px",o["--pb"]="8px"),o},d={...a,active:{...a?.active||{},radiusType:"custom"}},c=r?core.getRadiusStyleActiveState(d):core.composeRadius(a),n=!r&&p?{...core.handleConvertBorderStyle(l),...core.handleConvertBorderWidth(l),...core.handleConvertBorderColor(l)}:{};return helpers.filterTruthyObject({...!p&&i(),...p&&c,...n})},getColorStyle=({optionBorder:e,optionRounded:t,isActive:o,color:r})=>{let l=()=>r?r?.startsWith("linear-gradient")?{backgroundImage:r}:{backgroundColor:r}:{},a=t=>t?{"--bs":"none"}:core.handleConvertBorderStyle(e),p=o=>({"--d":"flex","--jc":"center"," --ai":"center","--w":"100%","--h":"100%","--of":"hidden",...a(o),...core.handleConvertBorderWidth(e),...core.handleConvertBorderColor(e),...core.composeRadius(t),...l()});return p(!!o)},getTextStyle=({optionTypo:e,optionTypography:t})=>{let o=core.composeTypographyStyle(e,t);return delete o["--c"],helpers.filterTruthyObject({...o})};exports.getColorStyle=getColorStyle,exports.getTextStyle=getTextStyle,exports.getWrapperStyleActive=getWrapperStyleActive,exports.getWrapperStyleNormalAndHover=getWrapperStyleNormalAndHover,exports.getWrapperTextStyle=getWrapperTextStyle;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M3.16699 4C2.89085 4 2.66699 4.22386 2.66699 4.5V36.8333C2.66699 37.1095 2.89085 37.3333 3.16699 37.3333H36.8337C37.1098 37.3333 37.3337 37.1095 37.3337 36.8333V4.5C37.3337 4.22386 37.1098 4 36.8337 4H3.16699ZM16.0003 6.66667H24.0003V12H16.0003V6.66667ZM34.667 34.6667H5.33366V6.66667H13.3337V12V13.3333V14.1667C13.3337 14.4428 13.5575 14.6667 13.8337 14.6667H34.667V34.6667ZM34.667 12H26.667V6.66667H34.667V12Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
5
|
-
`,settings:[],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},sideBar:{hide:!0},placeholder:{flowTag:["Tabs"],notAppendBeforeAfter:!0},toolbar:{hide:!0}}};exports.default=config;
|
|
5
|
+
`,settings:[],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},sideBar:{hide:!0},placeholder:{flowTag:["Tabs"],notAppendBeforeAfter:!0,notAppendLeftRight:!0},toolbar:{hide:!0}}};exports.default=config;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
<div
|
|
3
|
-
class="${t?.cssClass}"
|
|
4
|
-
style="${{...core.makeStyleResponsive("ta",a)}}"
|
|
5
|
-
>
|
|
6
|
-
<koala-deal product-id="{{product.id}}"></koala-deal>
|
|
7
|
-
</div>
|
|
8
|
-
`};exports.default=KoalaBundleQuantityDiscount;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers=require("../common/helpers.js");const KoalaBundleQuantityDiscount=({setting:e,advanced:t})=>{let{align:s,appBlockId:o}=e??{};return helpers.getLiquidForAppBlock(o,s,`${t?.cssClass??""} !gp-block [&_*]:gp-max-w-none`)};exports.default=KoalaBundleQuantityDiscount;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
<div
|
|
3
|
-
class="${r?.cssClass}"
|
|
4
|
-
style="${{...core.makeStyleResponsive("ta",s)}}"
|
|
5
|
-
>
|
|
6
|
-
<div id="pp-tracking-page-app"></div>
|
|
7
|
-
<script ${helpers.getSettingPreloadData('class="gps-link" delay',"src")}="https://pp-proxy.parcelpanel.com/assets/tracking/track-page.js" defer="defer"></script>
|
|
8
|
-
</div>
|
|
9
|
-
`};exports.default=ParcelPanel;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var helpers=require("../common/helpers.js");const ParcelPanel=({setting:e,advanced:r})=>{let{align:l,appBlockId:s}=e??{};return helpers.getLiquidForAppBlock(s,l,`${r?.cssClass??""} !gp-block [&_*]:gp-max-w-none`)};exports.default=ParcelPanel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../helpers.js");const SmartSearchBarAndFilters=({setting:s,advanced:e})=>{let{apiKey:i,align:n}=s??{},t=()=>`//
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../helpers.js");const SmartSearchBarAndFilters=({setting:s,advanced:e})=>{let{apiKey:i,align:n}=s??{},t=()=>`//searchanise-ef84.kxcdn.com/widgets/shopify/init.js?a=${i}`;return core.template`
|
|
2
2
|
<div
|
|
3
3
|
class="${e?.cssClass}"
|
|
4
4
|
style="${{...core.makeStyleResponsive("ta",n)}}"
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../helpers.js"),helpers$1=require("../common/helpers.js");const Trustoo=({setting:e,advanced:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../helpers.js"),helpers$1=require("../common/helpers.js");const Trustoo=({setting:e,advanced:t})=>{let{widgetType:s,align:a,version:i,appBlockId:d}=e??{},r={"review-widget":`
|
|
2
|
+
{% if request.page_type == "product" %}
|
|
3
|
+
<div style="display:block" id="seal-review-widget"></div>
|
|
4
|
+
{% else %}
|
|
5
|
+
<div style="display:block" class="custom-vstar-review-widget" data-product-id="{{ product.id }}" data-product-title="{{ product.title }}" data-product-image="{{ product.images[0] }}"></div>
|
|
6
|
+
{% endif %}
|
|
7
|
+
`,"star-rating-widget":'<div class="custom-vstar-rating-widget" data-product-id="{{product.id}}"></div>',"text-carousel":'<div id="trustoo-text-carousel" style="display:block;max-width:1200px;margin:0 auto" data-type="block"></div>',"barrage-carousel":'<div id="trustoo-barrage-carousel" style="display:block;max-width:1200px;margin:0 auto" data-type="block"></div>',"card-carousel":'<div id="trustoo-card-carousel-widget" style="display:block;max-width:1200px;margin:0 auto"></div>',"photo-carousel":'<div id="trustoo-photo-carousel" style="display:block;max-width:1200px;margin:0 auto" data-type="block"></div>'},l=()=>"v2"===i?helpers$1.getLiquidForAppBlock(d,a,t?.cssClass):core.template`
|
|
2
8
|
<div>
|
|
3
|
-
{% if '${
|
|
9
|
+
{% if '${s}' == 'starRatingInList' %}
|
|
4
10
|
{% if request.page_type != 'product' %}
|
|
5
11
|
<div class="custom-vstar-rating-widget" product-id="{{ product.id }}"></div>
|
|
6
12
|
{% else %}
|
|
@@ -10,7 +16,7 @@
|
|
|
10
16
|
<span id="seal_shop_id" style="display: none">{{ shop.id }}</span>
|
|
11
17
|
<span id="seal_product_id" style="display: none">{{ product.id }}</span>
|
|
12
18
|
<span id="seal_product" style="display: none">{{ product | json | escape }}</span>
|
|
13
|
-
{% assign widget = '${
|
|
19
|
+
{% assign widget = '${s}' %}
|
|
14
20
|
{% case widget %}
|
|
15
21
|
{% when "starRating" %}
|
|
16
22
|
<div id="seal-star-rating-widget" data-star-size="16" data-font-size="14" class="vstar-star"></div>
|
|
@@ -23,10 +29,10 @@
|
|
|
23
29
|
</div>
|
|
24
30
|
`;return i?l():core.template`
|
|
25
31
|
<div
|
|
26
|
-
class="${
|
|
32
|
+
class="${t?.cssClass}"
|
|
27
33
|
style="${{...core.makeStyleResponsive("ta",a)}}"
|
|
28
34
|
>
|
|
29
|
-
${
|
|
35
|
+
${s&&r?.[s]}
|
|
30
36
|
<script ${helpers.getSettingPreloadData('class="gps-link" delay',"src")}="https://cdn.vstar.app/static/dist/js/swiper-reviews.min.js" defer="defer"></script>
|
|
31
37
|
<link ${helpers.getSettingPreloadData('class="gps-link" delay',"href")}="https://cdn.vstar.app/static/css/swiper-reviews.min.css" rel="stylesheet" type="text/css" media="all">
|
|
32
38
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var KoalaBundleQuantityDiscount=require("../../configs/KoalaBundleQuantityDiscount.js"),uiV1=require("./uiV1.js"),uiV2=require("./uiV2.js");const config={tag:KoalaBundleQuantityDiscount.default.tag,label:KoalaBundleQuantityDiscount.default.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/cff2122857af908351bfd5156ba3052a/icon/COGWoM-s-4MDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:KoalaBundleQuantityDiscount.default.id,name:{en:KoalaBundleQuantityDiscount.default.label},hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/cff2122857af908351bfd5156ba3052a/icon/COGWoM-s-4MDEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Koala Bundle Quantity Discount</span>
|
|
4
|
-
</div>`},components:[{tag:KoalaBundleQuantityDiscount.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/profitkoala-upsell-bundle?utm_source=gempages",appName:KoalaBundleQuantityDiscount.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/upsell-koala-discount",appName:KoalaBundleQuantityDiscount.default.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:uiV1.default,uiV2:uiV2.default};exports.default=config;
|
|
4
|
+
</div>`},components:[{tag:KoalaBundleQuantityDiscount.default.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"productHandle",type:"product-handle",hide:!0},{id:"widgetType",label:"Choose widget",type:"select",default:"deals-block",options:[{label:"Upsell koala bundles",value:"deals-block"}]},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/profitkoala-upsell-bundle?utm_source=gempages",appName:KoalaBundleQuantityDiscount.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/upsell-koala-discount",appName:KoalaBundleQuantityDiscount.default.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:uiV1.default,uiV2:uiV2.default};exports.default=config;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
<img class="w-24 border border-dark-200 rounded-medium" src="${ParcelPanel.default.logoUrl}?width=22&height=22">
|
|
4
4
|
<span class="preset-item-title">${ParcelPanel.default.label}</span>
|
|
5
5
|
</div>
|
|
6
|
-
`},components:[{tag:ParcelPanel.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/parcelpanel?utm_source=gempages",appName:ParcelPanel.default.label},{id:"openApp",type:"open-link",linkType:"openApp",target:"_blank",href:"https://admin.shopify.com/?redirect=/apps/parcelpanel-2",appName:ParcelPanel.default.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:uiV1.default,uiV2:uiV2.default};exports.default=config;
|
|
6
|
+
`},components:[{tag:ParcelPanel.default.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/parcelpanel?utm_source=gempages",appName:ParcelPanel.default.label},{id:"openApp",type:"open-link",linkType:"openApp",target:"_blank",href:"https://admin.shopify.com/?redirect=/apps/parcelpanel-2",appName:ParcelPanel.default.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}},{id:"widgetType",label:"Choose widget",type:"select",default:"app",options:[{label:"Order lookup widget",value:"app"},{label:"Pre-purchase EDD",value:"edd"}]}]}],ui:uiV1.default,uiV2:uiV2.default};exports.default=config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];exports.default=SettingUIV2;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];exports.default=SettingUIV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let config={tag:"AccordionItem",label:"Accordion Item",settings:[],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{flowTag:["Accordion"],notAppendBeforeAfter:!0}}};export{config as default};
|
|
1
|
+
let config={tag:"AccordionItem",label:"Accordion Item",settings:[],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{flowTag:["Accordion"],notAppendBeforeAfter:!0,notAppendLeftRight:!0}}};export{config as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let config={tag:"CarouselItem",label:"Carousel Item",settings:[{id:"setting",controls:[]},{id:"style",controls:[]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{notAppendBeforeAfter:!0}}};export{config as default};
|
|
1
|
+
let config={tag:"CarouselItem",label:"Carousel Item",settings:[{id:"setting",controls:[]},{id:"style",controls:[]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{notAppendBeforeAfter:!0,notAppendLeftRight:!0}}};export{config as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let config={tag:"IconListItemHoz",label:"Icon List Item",settings:[{id:"setting",controls:[]},{id:"style",controls:[]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{notAppendBeforeAfter:!0}}};export{config as default};
|
|
1
|
+
let config={tag:"IconListItemHoz",label:"Icon List Item",settings:[{id:"setting",controls:[]},{id:"style",controls:[]}],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},slots:{children:!0},sideBar:{hide:!0},toolbar:{hide:!0},placeholder:{notAppendBeforeAfter:!0,notAppendLeftRight:!0}}};export{config as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{composeTypographyStyle as e,getRadiusStyleActiveState as t,getStyleShadow as o,makeStyle as r,getSingleColorVariable as l,composeRadius as p,getGlobalColorStateStyle as
|
|
1
|
+
import{composeTypographyStyle as e,getRadiusStyleActiveState as t,getStyleShadow as o,makeStyle as r,getSingleColorVariable as l,composeRadius as p,getGlobalColorStateStyle as i,handleConvertBorderStyle as a,handleConvertBorderWidth as n,handleConvertBorderColor as d,makeStyleResponsive as h}from"@gem-sdk/core";import{filterTruthyObject as c}from"../../../../../helpers.js";let getColorStyleWidth=e=>{let t=e?.height||"32px",o=e?.width||{desktop:t},r=Object.fromEntries(Object.entries(o).map(([e,o])=>{let r=o&&"undefined"!==o&&"auto"!==o?o:t;return[e,r]}));return h("minw",r)},getWrapperStyleActive=p=>{let{preset:i,optionTypography:a,optionTypo:n,typeOfOption:d}=p,h=i?.optionBgColor,g=i?.optionTextColor,b=i?.optionBorder,s=i?.optionHasShadow,m=i?.optionShadow,u=i?.optionRounded,w="color"===d,x="image"===d||"image_shopify"===d,S=e(n,a),y=e=>{let t=h?.active??h?.normal,o=b?.active??b?.normal;return r({bg:e&&l(t),bs:o?.border,bw:o?.width,bc:l(o?.color)})},v=m?.active??m?.normal,C=s?.active??s?.normal,W=g?.active??g?.normal;return c({...y(!w),...t(u),...o({value:v,state:"active",styleAppliedFor:"box-shadow",isEnableShadow:C},!0),...S,...!w&&!x&&r({c:l(W)}),...w&&getColorStyleWidth(i),...r({h:i?.height})})},getWrapperStyleNormalAndHover=t=>{let{preset:l,optionTransform:h,optionTypography:g,optionTypo:b,typeOfOption:s}=t,m=l?.optionBgColor,u=l?.optionTextColor,w=l?.optionBorder,x=l?.optionHasShadow,S=l?.optionShadow,y=l?.optionRounded,v="color"===s,C="image"===s||"image_shopify"===s,W=e(b,g),f=["normal","hover"].reduce((e,t)=>({...e,...o({value:S?.[t],state:t,styleAppliedFor:"box-shadow",isEnableShadow:x?.[t]})}),{});return c({...p(y),...f,...!v&&i("bg",m),...!v&&a(w),...!v&&n(w),...!v&&d(w),...!v&&!C&&r({c:h}),...!v&&!C&&i("c",u),...W,...v&&getColorStyleWidth(l),...r({h:l?.height})})},getWrapperTextStyle=e=>{let{preset:o,typeOfOption:r,checked:l}=e,i=o?.optionBorder,h=o?.optionRounded,g="color"===r,b=()=>{let e="16px",t={"--pl":"0px","--pr":"0px","--pl-tablet":"0px","--pr-tablet":"0px","--pl-mobile":"0px","--pr-mobile":"0px","--pt":"0px","--pb":"0px"};return o?.width?.desktop?.toLowerCase()!=="auto"&&o?.width?.desktop||(t["--pl"]=e,t["--pr"]=e),o?.width?.tablet?.toLowerCase()!=="auto"&&o?.width?.tablet||(t["--pl-tablet"]=e,t["--pr-tablet"]=e),o?.width?.mobile?.toLowerCase()!=="auto"&&o?.width?.mobile||(t["--pl-mobile"]=e,t["--pr-mobile"]=e),(o?.height?.toLowerCase()==="auto"||o?.height)&&(t["--pt"]="8px",t["--pb"]="8px"),t},s={...h,active:{...h?.active||{},radiusType:"custom"}},m=l?t(s):p(h),u=!l&&g?{...a(i),...n(i),...d(i)}:{};return c({...!g&&b(),...g&&m,...u})},getColorStyle=({optionBorder:e,optionRounded:t,isActive:o,color:r})=>{let l=()=>r?r?.startsWith("linear-gradient")?{backgroundImage:r}:{backgroundColor:r}:{},i=t=>t?{"--bs":"none"}:a(e),h=o=>({"--d":"flex","--jc":"center"," --ai":"center","--w":"100%","--h":"100%","--of":"hidden",...i(o),...n(e),...d(e),...p(t),...l()});return h(!!o)},getTextStyle=({optionTypo:t,optionTypography:o})=>{let r=e(t,o);return delete r["--c"],c({...r})};export{getColorStyle,getTextStyle,getWrapperStyleActive,getWrapperStyleNormalAndHover,getWrapperTextStyle};
|
|
@@ -2,4 +2,4 @@ let config={tag:"TabItem",label:"Tab Item",icon:`
|
|
|
2
2
|
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M3.16699 4C2.89085 4 2.66699 4.22386 2.66699 4.5V36.8333C2.66699 37.1095 2.89085 37.3333 3.16699 37.3333H36.8337C37.1098 37.3333 37.3337 37.1095 37.3337 36.8333V4.5C37.3337 4.22386 37.1098 4 36.8337 4H3.16699ZM16.0003 6.66667H24.0003V12H16.0003V6.66667ZM34.667 34.6667H5.33366V6.66667H13.3337V12V13.3333V14.1667C13.3337 14.4428 13.5575 14.6667 13.8337 14.6667H34.667V34.6667ZM34.667 12H26.667V6.66667H34.667V12Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
5
|
-
`,settings:[],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},sideBar:{hide:!0},placeholder:{flowTag:["Tabs"],notAppendBeforeAfter:!0},toolbar:{hide:!0}}};export{config as default};
|
|
5
|
+
`,settings:[],editorConfigs:{component:{noSetting:!0,noDelete:!0,noDuplicate:!0,noDragDrop:!0},sideBar:{hide:!0},placeholder:{flowTag:["Tabs"],notAppendBeforeAfter:!0,notAppendLeftRight:!0},toolbar:{hide:!0}}};export{config as default};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
<div
|
|
3
|
-
class="${d?.cssClass}"
|
|
4
|
-
style="${{...t("ta",e)}}"
|
|
5
|
-
>
|
|
6
|
-
<koala-deal product-id="{{product.id}}"></koala-deal>
|
|
7
|
-
</div>
|
|
8
|
-
`};export{KoalaBundleQuantityDiscount as default};
|
|
1
|
+
import{getLiquidForAppBlock as t}from"../common/helpers.js";let KoalaBundleQuantityDiscount=({setting:o,advanced:a})=>{let{align:e,appBlockId:l}=o??{};return t(l,e,`${a?.cssClass??""} !gp-block [&_*]:gp-max-w-none`)};export{KoalaBundleQuantityDiscount as default};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
<div
|
|
3
|
-
class="${p?.cssClass}"
|
|
4
|
-
style="${{...s("ta",t)}}"
|
|
5
|
-
>
|
|
6
|
-
<div id="pp-tracking-page-app"></div>
|
|
7
|
-
<script ${r('class="gps-link" delay',"src")}="https://pp-proxy.parcelpanel.com/assets/tracking/track-page.js" defer="defer"></script>
|
|
8
|
-
</div>
|
|
9
|
-
`};export{ParcelPanel as default};
|
|
1
|
+
import{getLiquidForAppBlock as e}from"../common/helpers.js";let ParcelPanel=({setting:l,advanced:a})=>{let{align:r,appBlockId:o}=l??{};return e(o,r,`${a?.cssClass??""} !gp-block [&_*]:gp-max-w-none`)};export{ParcelPanel as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{template as s,makeStyleResponsive as e,RenderIf as i,isLocalEnv as n,baseAssetURL as t}from"@gem-sdk/core";import{getSettingPreloadData as a}from"../../helpers.js";let SmartSearchBarAndFilters=({setting:l,advanced:r})=>{let{apiKey:p,align:d}=l??{},o=()=>`//
|
|
1
|
+
import{template as s,makeStyleResponsive as e,RenderIf as i,isLocalEnv as n,baseAssetURL as t}from"@gem-sdk/core";import{getSettingPreloadData as a}from"../../helpers.js";let SmartSearchBarAndFilters=({setting:l,advanced:r})=>{let{apiKey:p,align:d}=l??{},o=()=>`//searchanise-ef84.kxcdn.com/widgets/shopify/init.js?a=${p}`;return s`
|
|
2
2
|
<div
|
|
3
3
|
class="${r?.cssClass}"
|
|
4
4
|
style="${{...e("ta",d)}}"
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import{template as s,makeStyleResponsive as t}from"@gem-sdk/core";import{getSettingPreloadData as e}from"../../helpers.js";import{getLiquidForAppBlock as i}from"../common/helpers.js";let Trustoo=({setting:a,advanced:d})=>{let{widgetType:r,align:o,version:l,appBlockId:c}=a??{},p={"review-widget"
|
|
1
|
+
import{template as s,makeStyleResponsive as t}from"@gem-sdk/core";import{getSettingPreloadData as e}from"../../helpers.js";import{getLiquidForAppBlock as i}from"../common/helpers.js";let Trustoo=({setting:a,advanced:d})=>{let{widgetType:r,align:o,version:l,appBlockId:c}=a??{},p={"review-widget":`
|
|
2
|
+
{% if request.page_type == "product" %}
|
|
3
|
+
<div style="display:block" id="seal-review-widget"></div>
|
|
4
|
+
{% else %}
|
|
5
|
+
<div style="display:block" class="custom-vstar-review-widget" data-product-id="{{ product.id }}" data-product-title="{{ product.title }}" data-product-image="{{ product.images[0] }}"></div>
|
|
6
|
+
{% endif %}
|
|
7
|
+
`,"star-rating-widget":'<div class="custom-vstar-rating-widget" data-product-id="{{product.id}}"></div>',"text-carousel":'<div id="trustoo-text-carousel" style="display:block;max-width:1200px;margin:0 auto" data-type="block"></div>',"barrage-carousel":'<div id="trustoo-barrage-carousel" style="display:block;max-width:1200px;margin:0 auto" data-type="block"></div>',"card-carousel":'<div id="trustoo-card-carousel-widget" style="display:block;max-width:1200px;margin:0 auto"></div>',"photo-carousel":'<div id="trustoo-photo-carousel" style="display:block;max-width:1200px;margin:0 auto" data-type="block"></div>'},n=()=>"v2"===l?i(c,o,d?.cssClass):s`
|
|
2
8
|
<div>
|
|
3
9
|
{% if '${r}' == 'starRatingInList' %}
|
|
4
10
|
{% if request.page_type != 'product' %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/KoalaBundleQuantityDiscount.js";import t from"./uiV1.js";import
|
|
1
|
+
import e from"../../configs/KoalaBundleQuantityDiscount.js";import t from"./uiV1.js";import l from"./uiV2.js";let config={tag:e.tag,label:e.label,icon:'<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/cff2122857af908351bfd5156ba3052a/icon/COGWoM-s-4MDEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:e.id,name:{en:e.label},hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
2
2
|
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/cff2122857af908351bfd5156ba3052a/icon/COGWoM-s-4MDEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Koala Bundle Quantity Discount</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/profitkoala-upsell-bundle?utm_source=gempages",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/upsell-koala-discount",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:t,uiV2:
|
|
4
|
+
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"productHandle",type:"product-handle",hide:!0},{id:"widgetType",label:"Choose widget",type:"select",default:"deals-block",options:[{label:"Upsell koala bundles",value:"deals-block"}]},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/profitkoala-upsell-bundle?utm_source=gempages",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/upsell-koala-discount",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:t,uiV2:l};export{config as default};
|
|
@@ -3,4 +3,4 @@ import e from"../../configs/ParcelPanel.js";import l from"./uiV1.js";import t fr
|
|
|
3
3
|
<img class="w-24 border border-dark-200 rounded-medium" src="${e.logoUrl}?width=22&height=22">
|
|
4
4
|
<span class="preset-item-title">${e.label}</span>
|
|
5
5
|
</div>
|
|
6
|
-
`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/parcelpanel?utm_source=gempages",appName:e.label},{id:"openApp",type:"open-link",linkType:"openApp",target:"_blank",href:"https://admin.shopify.com/?redirect=/apps/parcelpanel-2",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:l,uiV2:t};export{config as default};
|
|
6
|
+
`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/parcelpanel?utm_source=gempages",appName:e.label},{id:"openApp",type:"open-link",linkType:"openApp",target:"_blank",href:"https://admin.shopify.com/?redirect=/apps/parcelpanel-2",appName:e.label},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}},{id:"widgetType",label:"Choose widget",type:"select",default:"app",options:[{label:"Order lookup widget",value:"app"},{label:"Pre-purchase EDD",value:"edd"}]}]}],ui:l,uiV2:t};export{config as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];export{SettingUIV2 as default};
|
|
1
|
+
let SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];export{SettingUIV2 as default};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4599,6 +4599,9 @@ type KoalaBundleQuantityDiscountProps = BaseProps<{
|
|
|
4599
4599
|
align?: ObjectDevices<AlignProp>;
|
|
4600
4600
|
openApp?: any;
|
|
4601
4601
|
install?: any;
|
|
4602
|
+
appBlockId?: string;
|
|
4603
|
+
productHandle?: string;
|
|
4604
|
+
widgetType?: string;
|
|
4602
4605
|
}>;
|
|
4603
4606
|
type LaiProductReviewsProps = BasePropsWrap<{
|
|
4604
4607
|
widgetType?: LaiProductReviewsWidgetType;
|
|
@@ -4683,6 +4686,8 @@ type ParcelPanelProps = BaseProps<{
|
|
|
4683
4686
|
align?: ObjectDevices<AlignProp>;
|
|
4684
4687
|
openApp?: any;
|
|
4685
4688
|
install?: any;
|
|
4689
|
+
widgetType?: string;
|
|
4690
|
+
appBlockId?: string;
|
|
4686
4691
|
}>;
|
|
4687
4692
|
type PickyStoryProps = BaseProps<{
|
|
4688
4693
|
widgetType?: PickyStoryWidgetType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "3.1.0-staging.
|
|
3
|
+
"version": "3.1.0-staging.1147",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "3.1.0-staging.
|
|
28
|
+
"@gem-sdk/core": "3.1.0-staging.1146",
|
|
29
29
|
"@gem-sdk/styles": "3.1.0-staging.1137",
|
|
30
30
|
"@gem-sdk/system": "3.1.0-staging.1137",
|
|
31
31
|
"tsup": "^8.5.0",
|