@gem-sdk/components 4.0.15 → 4.0.17
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/estimate-delivery/settings/configs/settings.js +1 -1
- package/dist/cjs/third-party/components/Bogos.liquid.js +4 -2
- 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/Trustoo.liquid.js +11 -5
- package/dist/cjs/third-party/settings/Bogos/index.js +1 -1
- 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/cjs/third-party/settings/Selleasy/index.js +1 -1
- package/dist/esm/estimate-delivery/settings/configs/settings.js +1 -1
- package/dist/esm/third-party/components/Bogos.liquid.js +2 -0
- 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/Trustoo.liquid.js +7 -1
- package/dist/esm/third-party/settings/Bogos/index.js +1 -1
- package/dist/esm/third-party/settings/KoalaBundleQuantityDiscount/index.js +2 -2
- package/dist/esm/third-party/settings/ParcelPanel/index.js +2 -2
- package/dist/esm/third-party/settings/ParcelPanel/uiV2.js +1 -1
- package/dist/esm/third-party/settings/Selleasy/index.js +2 -2
- package/dist/types/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var helpers=require("../../common/helpers.js");const EstimateDateSettings=[{id:"setting",controls:[{id:"enableCustomText",label:"",type:"toggle",default:!0},{id:"customTextContainer",type:"group",controls:[{id:"customText",type:"input",default:"Estimate delivery between"}]},{id:"estimateDays",type:"group",controls:[{id:"typeEstimate",type:"group",controls:[{id:"typeEstimate",label:"Type",type:"option:value",default:helpers.ESTIMATE_DAYS.RANGE,options:[{label:"Specific",value:helpers.ESTIMATE_DAYS.SPECIFIC},{label:"Range",value:helpers.ESTIMATE_DAYS.RANGE}]},{id:"minEstimate",label:"Min estimate",type:"input:unit",default:2,emptyOnClear:!1,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,min:1,max:99969999,fallbackValue:2},{id:"maxEstimate",label:"Max estimate",type:"input:unit",default:5,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,emptyOnClear:!1,min:1,max:99969999,fallbackValue:5},{id:"estimateTime",label:"Estimate",type:"input:unit",default:5,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,emptyOnClear:!1,min:0,max:99969999,fallbackValue:5}]}]},{id:"dateFormat",type:"group",controls:[{id:"typeFormat",label:"Type",type:"select",default:helpers.listFormatDate().FORMAT_1.value,options:[{label:helpers.listFormatDate().FORMAT_1.Label,value:helpers.listFormatDate().FORMAT_1.value},{label:helpers.listFormatDate().FORMAT_2.Label,value:helpers.listFormatDate().FORMAT_2.value},{label:helpers.listFormatDate().FORMAT_3.Label,value:helpers.listFormatDate().FORMAT_3.value},{label:helpers.listFormatDate().FORMAT_4.Label,value:helpers.listFormatDate().FORMAT_4.value},{label:helpers.listFormatDate().FORMAT_5.Label,value:helpers.listFormatDate().FORMAT_5.value},{label:helpers.listFormatDate().FORMAT_6.Label,value:helpers.listFormatDate().FORMAT_6.Label}]},{id:"customFormat",label:"Custom format",type:"input",default:"",placeholder:"Eg: %d, %b, %y"},{id:"moreFormat",type:"group"}]},{id:"visibilityContainer",type:"group",controls:[{id:"visibility",type:"childrens"},{id:"ifOutOfStock",label:"If out of stock",type:"option:value",default:helpers.OUT_OF_STOCK.
|
|
1
|
+
"use strict";var helpers=require("../../common/helpers.js");const EstimateDateSettings=[{id:"setting",controls:[{id:"enableCustomText",label:"",type:"toggle",default:!0},{id:"customTextContainer",type:"group",controls:[{id:"customText",type:"input",default:"Estimate delivery between"}]},{id:"estimateDays",type:"group",controls:[{id:"typeEstimate",type:"group",controls:[{id:"typeEstimate",label:"Type",type:"option:value",default:helpers.ESTIMATE_DAYS.RANGE,options:[{label:"Specific",value:helpers.ESTIMATE_DAYS.SPECIFIC},{label:"Range",value:helpers.ESTIMATE_DAYS.RANGE}]},{id:"minEstimate",label:"Min estimate",type:"input:unit",default:2,emptyOnClear:!1,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,min:1,max:99969999,fallbackValue:2},{id:"maxEstimate",label:"Max estimate",type:"input:unit",default:5,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,emptyOnClear:!1,min:1,max:99969999,fallbackValue:5},{id:"estimateTime",label:"Estimate",type:"input:unit",default:5,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,emptyOnClear:!1,min:0,max:99969999,fallbackValue:5}]}]},{id:"dateFormat",type:"group",controls:[{id:"typeFormat",label:"Type",type:"select",default:helpers.listFormatDate().FORMAT_1.value,options:[{label:helpers.listFormatDate().FORMAT_1.Label,value:helpers.listFormatDate().FORMAT_1.value},{label:helpers.listFormatDate().FORMAT_2.Label,value:helpers.listFormatDate().FORMAT_2.value},{label:helpers.listFormatDate().FORMAT_3.Label,value:helpers.listFormatDate().FORMAT_3.value},{label:helpers.listFormatDate().FORMAT_4.Label,value:helpers.listFormatDate().FORMAT_4.value},{label:helpers.listFormatDate().FORMAT_5.Label,value:helpers.listFormatDate().FORMAT_5.value},{label:helpers.listFormatDate().FORMAT_6.Label,value:helpers.listFormatDate().FORMAT_6.Label}]},{id:"customFormat",label:"Custom format",type:"input",default:"",placeholder:"Eg: %d, %b, %y"},{id:"moreFormat",type:"group"}]},{id:"visibilityContainer",type:"group",controls:[{id:"visibility",type:"childrens"},{id:"ifOutOfStock",label:"If out of stock",type:"option:value",default:helpers.OUT_OF_STOCK.SHOW,options:[{label:"Show",value:helpers.OUT_OF_STOCK.SHOW},{label:"Hide",value:helpers.OUT_OF_STOCK.HIDE}]}]},{id:"translate",type:"input",default:"customText"},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"100%"}}},settingConfig:{width:{displayOptions:["full","auto"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}}},hiddenSettings:["shape","gap","height"]},{id:"background",type:"background-media",ignoreReRender:!0,devices:{desktop:{default:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"#FFFFFF",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",preload:!1}}}}]},{id:"style",controls:[{id:"typoCustom",type:"typography-v2",default:{type:"paragraph-2",attrs:{color:"text-1"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0,textShadow:!0}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"typoDate",type:"typography-v2",default:{type:"paragraph-2",attrs:{color:"text-1",bold:!0}},ignoreReRender:!0,hiddenSetting:{textAlign:!0,textShadow:!0}},{id:"shapeBorder",type:"border-v2",devices:{desktop:{default:void 0}},compoDefaultValue:{desktop:{default:{border:"solid",color:"#121212",width:"1px",borderWidth:"1px"}}}},{id:"shapeRounded",type:"corner-v2",devices:{desktop:{default:void 0}},compoDefaultValue:{desktop:{default:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}}},{id:"padding",type:"padding-v2",devices:{desktop:{default:{padding:{type:"small",top:"4px",left:"4px",bottom:"4px",right:"4px"}}}},compoDefaultValue:{desktop:{default:{padding:{type:"small",top:"4px",left:"4px",bottom:"4px",right:"4px"}}}}},{id:"shapeBoxShadow",type:"shadow-v2",devices:{desktop:{default:{enable:!1}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}}]}];exports.EstimateDateSettings=EstimateDateSettings;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core");const Bogos=({setting:e,advanced:i})=>{let{widgetType:s,align:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core");const Bogos=({setting:e,advanced:i})=>{let{widgetType:s,align:o}=e??{};return core.template`
|
|
2
2
|
<div
|
|
3
3
|
class="${i?.cssClass}"
|
|
4
|
-
style="${{...core.makeStyleResponsive("ta",
|
|
4
|
+
style="${{...core.makeStyleResponsive("ta",o)}}"
|
|
5
5
|
>
|
|
6
6
|
{% assign widget = '${s}' %}
|
|
7
7
|
{% case widget %}
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
<div class="bogos-integration-page-builder-mix-match"></div>
|
|
22
22
|
{% when "fbt" %}
|
|
23
23
|
<div class="bogos-integration-page-builder-fbt-upsell"></div>
|
|
24
|
+
{% when "volume-discount" %}
|
|
25
|
+
<div class="bogos-integration-page-builder-volume-discount"></div>
|
|
24
26
|
{% endcase %}
|
|
25
27
|
</div>
|
|
26
28
|
`};exports.default=Bogos;
|
|
@@ -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,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>
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
<img class="w-24 border border-dark-200 rounded-medium" src="${Bogos.default.logoUrl}?width=22&height=22">
|
|
4
4
|
<span class="preset-item-title">${Bogos.default.label}</span>
|
|
5
5
|
</div>
|
|
6
|
-
`},components:[{tag:Bogos.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:helpers.get3rdPartyInstallLink({handle:"bogos-freegifts"}),appName:Bogos.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/freegifts",appName:Bogos.default.label},{id:"widgetType",label:"Choose widget",type:"select",default:"icon",options:[{label:"Gift icon",value:"icon"},{label:"Gift thumbnail",value:"thumnail"},{label:"Gift slider",value:"slider"},{label:"Cart message",value:"message"},{label:"Quantity break",value:"quantity-break"},{label:"Classic bundle",value:"classic-bundle"},{label:"Mix and match",value:"mix-match"},{label:"Frequently Bought Together",value:"fbt"}]},{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:Bogos.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:helpers.get3rdPartyInstallLink({handle:"bogos-freegifts"}),appName:Bogos.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/freegifts",appName:Bogos.default.label},{id:"widgetType",label:"Choose widget",type:"select",default:"icon",options:[{label:"Gift icon",value:"icon"},{label:"Gift thumbnail",value:"thumnail"},{label:"Gift slider",value:"slider"},{label:"Cart message",value:"message"},{label:"Quantity break",value:"quantity-break"},{label:"Classic bundle",value:"classic-bundle"},{label:"Mix and match",value:"mix-match"},{label:"Frequently Bought Together",value:"fbt"},{label:"Volume discount",value:"volume-discount"}]},{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;
|
|
@@ -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"),helpers=require("../../common/helpers.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:helpers.get3rdPartyInstallLink({handle:"koala-bundle"}),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:helpers.get3rdPartyInstallLink({handle:"koala-bundle"}),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:helpers.get3rdPartyInstallLink({handle:"parcelpanel"}),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:helpers.get3rdPartyInstallLink({handle:"parcelpanel"}),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,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Selleasy=require("../../configs/Selleasy.js"),uiV1=require("./uiV1.js"),uiV2=require("./uiV2.js"),helpers=require("../../common/helpers.js");const config={tag:Selleasy.default.tag,label:Selleasy.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/50d1becb99d333549c4316fc695bc00e/icon/CJGWisGV0oADEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowPage:"GP_PRODUCT",flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:Selleasy.default.id,name:{en:Selleasy.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/50d1becb99d333549c4316fc695bc00e/icon/CJGWisGV0oADEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Upsell & Cross Sell — Selleasy</span>
|
|
4
|
-
</div>`},components:[{tag:Selleasy.default.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"FBT List",value:"lb-upsell-widget-bl",maxOption:1},{label:"Add-ons List",value:"lb-upsell-widget-pal",maxOption:1}],default:"lb-upsell-widget-bl"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:helpers.get3rdPartyInstallLink({handle:"upsell-cross-sell-selleasy"}),appName:Selleasy.default.label},{id:"openApp",type:"open-link",linkType:"openApp",target:"_blank",href:"https://admin.shopify.com/?redirect=/apps/lb-upsell",appName:Selleasy.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:Selleasy.default.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"FBT List",value:"lb-upsell-widget-bl",maxOption:1},{label:"Add-ons List",value:"lb-upsell-widget-pal",maxOption:1},{label:"Add-ons Carousel",value:"lb-upsell-widget-pac"},{label:"Add-ons Grid",value:"lb-upsell-widget-pag"},{label:"FBT Amazon",value:"lb-upsell-widget-ba"},{label:"FBT Classic",value:"lb-upsell-widget-bac"},{label:"In-cart Carousel",value:"lb-upsell-widget-bl"},{label:"STC Carousel",value:"lb-upsell-widget-icuc"},{label:"STC Grid",value:"lb-upsell-widget-cpac"},{label:"STC List",value:"lb-upsell-widget-cpag"}],default:"lb-upsell-widget-bl"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:helpers.get3rdPartyInstallLink({handle:"upsell-cross-sell-selleasy"}),appName:Selleasy.default.label},{id:"openApp",type:"open-link",linkType:"openApp",target:"_blank",href:"https://admin.shopify.com/?redirect=/apps/lb-upsell",appName:Selleasy.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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ESTIMATE_DAYS as e,listFormatDate as t,OUT_OF_STOCK as a}from"../../common/helpers.js";let EstimateDateSettings=[{id:"setting",controls:[{id:"enableCustomText",label:"",type:"toggle",default:!0},{id:"customTextContainer",type:"group",controls:[{id:"customText",type:"input",default:"Estimate delivery between"}]},{id:"estimateDays",type:"group",controls:[{id:"typeEstimate",type:"group",controls:[{id:"typeEstimate",label:"Type",type:"option:value",default:e.RANGE,options:[{label:"Specific",value:e.SPECIFIC},{label:"Range",value:e.RANGE}]},{id:"minEstimate",label:"Min estimate",type:"input:unit",default:2,emptyOnClear:!1,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,min:1,max:99969999,fallbackValue:2},{id:"maxEstimate",label:"Max estimate",type:"input:unit",default:5,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,emptyOnClear:!1,min:1,max:99969999,fallbackValue:5},{id:"estimateTime",label:"Estimate",type:"input:unit",default:5,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,emptyOnClear:!1,min:0,max:99969999,fallbackValue:5}]}]},{id:"dateFormat",type:"group",controls:[{id:"typeFormat",label:"Type",type:"select",default:t().FORMAT_1.value,options:[{label:t().FORMAT_1.Label,value:t().FORMAT_1.value},{label:t().FORMAT_2.Label,value:t().FORMAT_2.value},{label:t().FORMAT_3.Label,value:t().FORMAT_3.value},{label:t().FORMAT_4.Label,value:t().FORMAT_4.value},{label:t().FORMAT_5.Label,value:t().FORMAT_5.value},{label:t().FORMAT_6.Label,value:t().FORMAT_6.Label}]},{id:"customFormat",label:"Custom format",type:"input",default:"",placeholder:"Eg: %d, %b, %y"},{id:"moreFormat",type:"group"}]},{id:"visibilityContainer",type:"group",controls:[{id:"visibility",type:"childrens"},{id:"ifOutOfStock",label:"If out of stock",type:"option:value",default:a.
|
|
1
|
+
import{ESTIMATE_DAYS as e,listFormatDate as t,OUT_OF_STOCK as a}from"../../common/helpers.js";let EstimateDateSettings=[{id:"setting",controls:[{id:"enableCustomText",label:"",type:"toggle",default:!0},{id:"customTextContainer",type:"group",controls:[{id:"customText",type:"input",default:"Estimate delivery between"}]},{id:"estimateDays",type:"group",controls:[{id:"typeEstimate",type:"group",controls:[{id:"typeEstimate",label:"Type",type:"option:value",default:e.RANGE,options:[{label:"Specific",value:e.SPECIFIC},{label:"Range",value:e.RANGE}]},{id:"minEstimate",label:"Min estimate",type:"input:unit",default:2,emptyOnClear:!1,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,min:1,max:99969999,fallbackValue:2},{id:"maxEstimate",label:"Max estimate",type:"input:unit",default:5,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,emptyOnClear:!1,min:1,max:99969999,fallbackValue:5},{id:"estimateTime",label:"Estimate",type:"input:unit",default:5,units:["days"],isNumber:!0,showDefaultUnit:!0,hasSpaceBeforeUnit:!0,emptyOnClear:!1,min:0,max:99969999,fallbackValue:5}]}]},{id:"dateFormat",type:"group",controls:[{id:"typeFormat",label:"Type",type:"select",default:t().FORMAT_1.value,options:[{label:t().FORMAT_1.Label,value:t().FORMAT_1.value},{label:t().FORMAT_2.Label,value:t().FORMAT_2.value},{label:t().FORMAT_3.Label,value:t().FORMAT_3.value},{label:t().FORMAT_4.Label,value:t().FORMAT_4.value},{label:t().FORMAT_5.Label,value:t().FORMAT_5.value},{label:t().FORMAT_6.Label,value:t().FORMAT_6.Label}]},{id:"customFormat",label:"Custom format",type:"input",default:"",placeholder:"Eg: %d, %b, %y"},{id:"moreFormat",type:"group"}]},{id:"visibilityContainer",type:"group",controls:[{id:"visibility",type:"childrens"},{id:"ifOutOfStock",label:"If out of stock",type:"option:value",default:a.SHOW,options:[{label:"Show",value:a.SHOW},{label:"Hide",value:a.HIDE}]}]},{id:"translate",type:"input",default:"customText"},{id:"globalSize",type:"size-setting",devices:{desktop:{default:{width:"100%"}}},settingConfig:{width:{displayOptions:["full","auto"],sizeConfig:{small:"100px",medium:"116px",large:"132px"}}},hiddenSettings:["shape","gap","height"]},{id:"background",type:"background-media",ignoreReRender:!0,devices:{desktop:{default:{type:"color",color:"transparent",image:{src:"",width:0,height:0},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll"}}},compoDefaultValue:{desktop:{default:{type:"color",color:"#FFFFFF",image:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/background_settings.jpg",width:1200,height:480},size:"cover",position:{x:50,y:50},repeat:"no-repeat",attachment:"scroll",preload:!1}}}}]},{id:"style",controls:[{id:"typoCustom",type:"typography-v2",default:{type:"paragraph-2",attrs:{color:"text-1"}},ignoreReRender:!0,hiddenSetting:{textAlign:!0,textShadow:!0}},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"left",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"right",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],devices:{desktop:{default:"left"}}},{id:"typoDate",type:"typography-v2",default:{type:"paragraph-2",attrs:{color:"text-1",bold:!0}},ignoreReRender:!0,hiddenSetting:{textAlign:!0,textShadow:!0}},{id:"shapeBorder",type:"border-v2",devices:{desktop:{default:void 0}},compoDefaultValue:{desktop:{default:{border:"solid",color:"#121212",width:"1px",borderWidth:"1px"}}}},{id:"shapeRounded",type:"corner-v2",devices:{desktop:{default:void 0}},compoDefaultValue:{desktop:{default:{btrr:"8px",bblr:"8px",bbrr:"8px",btlr:"8px",radiusType:"rounded"}}}},{id:"padding",type:"padding-v2",devices:{desktop:{default:{padding:{type:"small",top:"4px",left:"4px",bottom:"4px",right:"4px"}}}},compoDefaultValue:{desktop:{default:{padding:{type:"small",top:"4px",left:"4px",bottom:"4px",right:"4px"}}}}},{id:"shapeBoxShadow",type:"shadow-v2",devices:{desktop:{default:{enable:!1}}},compoDefaultValue:{desktop:{default:{type:"shadow-1",distance:"4px",blur:"4px",spread:"0px",color:"rgba(18, 18, 18, 0.2)",angle:45,enable:!0}}}}]}];export{EstimateDateSettings};
|
|
@@ -21,6 +21,8 @@ import{template as e,makeStyleResponsive as i}from"@gem-sdk/core";let Bogos=({se
|
|
|
21
21
|
<div class="bogos-integration-page-builder-mix-match"></div>
|
|
22
22
|
{% when "fbt" %}
|
|
23
23
|
<div class="bogos-integration-page-builder-fbt-upsell"></div>
|
|
24
|
+
{% when "volume-discount" %}
|
|
25
|
+
<div class="bogos-integration-page-builder-volume-discount"></div>
|
|
24
26
|
{% endcase %}
|
|
25
27
|
</div>
|
|
26
28
|
`};export{Bogos 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,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' %}
|
|
@@ -3,4 +3,4 @@ import e from"../../configs/Bogos.js";import l from"./uiV1.js";import t from"./u
|
|
|
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:a({handle:"bogos-freegifts"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/freegifts",appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",default:"icon",options:[{label:"Gift icon",value:"icon"},{label:"Gift thumbnail",value:"thumnail"},{label:"Gift slider",value:"slider"},{label:"Cart message",value:"message"},{label:"Quantity break",value:"quantity-break"},{label:"Classic bundle",value:"classic-bundle"},{label:"Mix and match",value:"mix-match"},{label:"Frequently Bought Together",value:"fbt"}]},{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:"install",type:"open-link",target:"_blank",linkType:"install",href:a({handle:"bogos-freegifts"}),appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/freegifts",appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",default:"icon",options:[{label:"Gift icon",value:"icon"},{label:"Gift thumbnail",value:"thumnail"},{label:"Gift slider",value:"slider"},{label:"Cart message",value:"message"},{label:"Quantity break",value:"quantity-break"},{label:"Classic bundle",value:"classic-bundle"},{label:"Mix and match",value:"mix-match"},{label:"Frequently Bought Together",value:"fbt"},{label:"Volume discount",value:"volume-discount"}]},{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};
|
|
@@ -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";import{get3rdPartyInstallLink as a}from"../../common/helpers.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:
|
|
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:a({handle:"koala-bundle"}),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};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from"../../configs/ParcelPanel.js";import l from"./uiV1.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as
|
|
1
|
+
import e from"../../configs/ParcelPanel.js";import l from"./uiV1.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as a}from"../../common/helpers.js";let config={tag:e.tag,label:e.label,icon:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${e.logoUrl}?width=22&height=22">`,editorConfigs:{component:{isThirdParty:!0}},presets:[{id:e.id,name:{en:e.label},hideTextContent:!0,icon:{desktop:`
|
|
2
2
|
<div class="w-full flex flex-col items-center">
|
|
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:
|
|
6
|
+
`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:a({handle:"parcelpanel"}),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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e from"../../configs/Selleasy.js";import l from"./uiV1.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as
|
|
1
|
+
import e from"../../configs/Selleasy.js";import l from"./uiV1.js";import t from"./uiV2.js";import{get3rdPartyInstallLink as a}from"../../common/helpers.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/50d1becb99d333549c4316fc695bc00e/icon/CJGWisGV0oADEAE=.png?width=22&height=22">',editorConfigs:{placeholder:{flowPage:"GP_PRODUCT",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/50d1becb99d333549c4316fc695bc00e/icon/CJGWisGV0oADEAE=.png?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">Upsell & Cross Sell — Selleasy</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"FBT List",value:"lb-upsell-widget-bl",maxOption:1},{label:"Add-ons List",value:"lb-upsell-widget-pal",maxOption:1}],default:"lb-upsell-widget-bl"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:
|
|
4
|
+
</div>`},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"appBlockId",type:"input",default:""},{id:"widgetType",label:"Choose widget",type:"select",options:[{label:"FBT List",value:"lb-upsell-widget-bl",maxOption:1},{label:"Add-ons List",value:"lb-upsell-widget-pal",maxOption:1},{label:"Add-ons Carousel",value:"lb-upsell-widget-pac"},{label:"Add-ons Grid",value:"lb-upsell-widget-pag"},{label:"FBT Amazon",value:"lb-upsell-widget-ba"},{label:"FBT Classic",value:"lb-upsell-widget-bac"},{label:"In-cart Carousel",value:"lb-upsell-widget-bl"},{label:"STC Carousel",value:"lb-upsell-widget-icuc"},{label:"STC Grid",value:"lb-upsell-widget-cpac"},{label:"STC List",value:"lb-upsell-widget-cpag"}],default:"lb-upsell-widget-bl"},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:a({handle:"upsell-cross-sell-selleasy"}),appName:e.label},{id:"openApp",type:"open-link",linkType:"openApp",target:"_blank",href:"https://admin.shopify.com/?redirect=/apps/lb-upsell",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};
|
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;
|