@gem-sdk/components 17.0.0-dev.49 → 17.0.0-dev.50
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/third-party/components/WcWishlistBackInStock.liquid.js +19 -1
- package/dist/cjs/third-party/configs/WcWishlistBackInStock.js +1 -1
- package/dist/cjs/third-party/settings/WcWishlistBackInStock/index.js +5 -2
- package/dist/esm/third-party/components/WcWishlistBackInStock.liquid.js +19 -1
- package/dist/esm/third-party/configs/WcWishlistBackInStock.js +1 -1
- package/dist/esm/third-party/settings/WcWishlistBackInStock/index.js +5 -2
- package/package.json +2 -2
|
@@ -1 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@gem-sdk/core");exports.default=({setting:i,advanced:d})=>{let{align:a,widgetType:s}=i??{};return t.template`
|
|
2
|
+
<div
|
|
3
|
+
class="${d?.cssClass}"
|
|
4
|
+
style="${{...t.makeStyleResponsive("ta",a)}}"
|
|
5
|
+
>
|
|
6
|
+
{% assign widget = '${s}' %}
|
|
7
|
+
{% case widget %}
|
|
8
|
+
{% when "wishlist-bis-block" %}
|
|
9
|
+
<div class="wc_wl_bis_btn" data-product_id="{{ product.id }}" data-variant_id="{{ product.variants[0].id }}"></div>
|
|
10
|
+
<script type="application/ld+json" id="wc_wl_bis">{{ product | json }}</script>
|
|
11
|
+
{% when "wishlist-block" %}
|
|
12
|
+
<div class="th_prd_wl_btn" data-product_id="{{ product.id }}" data-variant_id="{{product.variants[0].id }}"></div>
|
|
13
|
+
{% when "wishlist-collection-block" %}
|
|
14
|
+
<div class="th_wl_col_btn" data-product_id="{{ product.id }}" data-variant_id="{{ product.variants[0].id }}"></div>
|
|
15
|
+
{% when "wishlist-bis-collection" %}
|
|
16
|
+
<div class="wc_wl_bis_btn wc_bis_auto_setup" data-product_id="{{ product.id }}" data-variant_id="{{ product.variants[0].id }}"></div>
|
|
17
|
+
{% endcase %}
|
|
18
|
+
</div>
|
|
19
|
+
`};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={label:"WC Wishlist & Back in Stock",logoUrl:"https://cdn.shopify.com/app-store/listing_images/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22",tag:"WcWishlistBackInStock"};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../configs/WcWishlistBackInStock.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../configs/WcWishlistBackInStock.js"),t=require("./uiV2.js");const i={tag:e.default.tag,label:e.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/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:"wishlist-collection",name:e.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/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">WC Wishlist & Back in Stock</span>
|
|
4
|
-
</div>`},components:[{tag:e.default.tag
|
|
4
|
+
</div>`},components:[{tag:e.default.tag,settings:{widgetType:"wishlist-collection-block"}}]},{id:"wishlist-product",name:e.default.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
5
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">
|
|
6
|
+
<span class="preset-item-title">WC Wishlist & Back in Stock</span>
|
|
7
|
+
</div>`},components:[{tag:e.default.tag,settings:{widgetType:"wishlist-bis-block"}}]}],settings:[{id:"setting",controls:[{id:"widgetType",label:"Choose widget",type:"select",default:"wishlist-bis-block",options:[{label:"Back in Stock Product",value:"wishlist-bis-block",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Wishlist Product",value:"wishlist-block",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Wishlist Collection",value:"wishlist-collection-block",hideOnPage:["ARTICLE","BLOG","PRODUCT","GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC","STATIC"]},{label:"Back in Stock Collection",value:"wishlist-bis-collection",hideOnPage:["ARTICLE","BLOG","PRODUCT","GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC","STATIC"]}]},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/wishlist-club?utm_source=gempages",appName:e.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"",appName:e.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:[],uiV2:t.default};exports.default=i;
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{makeStyleResponsive as i,template as t}from"@gem-sdk/core";let d=({setting:d,advanced:a})=>{let{align:s,widgetType:c}=d??{};return t`
|
|
2
|
+
<div
|
|
3
|
+
class="${a?.cssClass}"
|
|
4
|
+
style="${{...i("ta",s)}}"
|
|
5
|
+
>
|
|
6
|
+
{% assign widget = '${c}' %}
|
|
7
|
+
{% case widget %}
|
|
8
|
+
{% when "wishlist-bis-block" %}
|
|
9
|
+
<div class="wc_wl_bis_btn" data-product_id="{{ product.id }}" data-variant_id="{{ product.variants[0].id }}"></div>
|
|
10
|
+
<script type="application/ld+json" id="wc_wl_bis">{{ product | json }}</script>
|
|
11
|
+
{% when "wishlist-block" %}
|
|
12
|
+
<div class="th_prd_wl_btn" data-product_id="{{ product.id }}" data-variant_id="{{product.variants[0].id }}"></div>
|
|
13
|
+
{% when "wishlist-collection-block" %}
|
|
14
|
+
<div class="th_wl_col_btn" data-product_id="{{ product.id }}" data-variant_id="{{ product.variants[0].id }}"></div>
|
|
15
|
+
{% when "wishlist-bis-collection" %}
|
|
16
|
+
<div class="wc_wl_bis_btn wc_bis_auto_setup" data-product_id="{{ product.id }}" data-variant_id="{{ product.variants[0].id }}"></div>
|
|
17
|
+
{% endcase %}
|
|
18
|
+
</div>
|
|
19
|
+
`};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var i={
|
|
1
|
+
var i={label:"WC Wishlist & Back in Stock",logoUrl:"https://cdn.shopify.com/app-store/listing_images/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22",tag:"WcWishlistBackInStock"};export{i as default};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import e from"../../configs/WcWishlistBackInStock.js";import i from"./uiV2.js";let
|
|
1
|
+
import e from"../../configs/WcWishlistBackInStock.js";import i from"./uiV2.js";let t={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/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">',editorConfigs:{placeholder:{flowTag:["Product"]},component:{isThirdParty:!0}},presets:[{id:"wishlist-collection",name: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/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">
|
|
3
3
|
<span class="preset-item-title">WC Wishlist & Back in Stock</span>
|
|
4
|
-
</div>`},components:[{tag:e.tag
|
|
4
|
+
</div>`},components:[{tag:e.tag,settings:{widgetType:"wishlist-collection-block"}}]},{id:"wishlist-product",name:e.label,hideTextContent:!0,icon:{desktop:`<div class="w-full flex flex-col items-center">
|
|
5
|
+
<img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/6c6bdd5180d0848b68f89d106476f116/icon/CLyD5I2Al_0CEAE=.jpeg?width=22&height=22">
|
|
6
|
+
<span class="preset-item-title">WC Wishlist & Back in Stock</span>
|
|
7
|
+
</div>`},components:[{tag:e.tag,settings:{widgetType:"wishlist-bis-block"}}]}],settings:[{id:"setting",controls:[{id:"widgetType",label:"Choose widget",type:"select",default:"wishlist-bis-block",options:[{label:"Back in Stock Product",value:"wishlist-bis-block",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Wishlist Product",value:"wishlist-block",hideOnPage:["ARTICLE","BLOG","COLLECTION","GP_ARTICLE","GP_BLOG","GP_COLLECTION","GP_INDEX","GP_STATIC","STATIC"]},{label:"Wishlist Collection",value:"wishlist-collection-block",hideOnPage:["ARTICLE","BLOG","PRODUCT","GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC","STATIC"]},{label:"Back in Stock Collection",value:"wishlist-bis-collection",hideOnPage:["ARTICLE","BLOG","PRODUCT","GP_ARTICLE","GP_BLOG","GP_PRODUCT","GP_INDEX","GP_STATIC","STATIC"]}]},{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/wishlist-club?utm_source=gempages",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"",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:[],uiV2:i};export{t as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "17.0.0-dev.
|
|
3
|
+
"version": "17.0.0-dev.50",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"i18n:extract": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/translate/extract-texts-to-locales.js && node ./scripts/translate/en-keys-usage.js"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@gem-sdk/core": "17.0.0-dev.
|
|
29
|
+
"@gem-sdk/core": "17.0.0-dev.50",
|
|
30
30
|
"@gem-sdk/styles": "17.0.0-dev.38",
|
|
31
31
|
"@gem-sdk/system": "17.0.0-dev.38",
|
|
32
32
|
"@types/react-transition-group": "^4.4.12",
|