@gem-sdk/components 2.0.0-dev.586 → 2.0.0-dev.588
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/banner/setting/uiV2.js +9 -0
- package/dist/cjs/button/setting/configs/uiV2.js +9 -0
- package/dist/cjs/image/setting/configs/uiV2.js +9 -0
- package/dist/cjs/product/components/ProductBadge/index.liquid.js +2 -2
- package/dist/esm/banner/setting/uiV2.js +9 -0
- package/dist/esm/button/setting/configs/uiV2.js +9 -0
- package/dist/esm/image/setting/configs/uiV2.js +9 -0
- package/dist/esm/product/components/ProductBadge/index.liquid.js +2 -2
- package/package.json +1 -1
|
@@ -355,6 +355,15 @@ const SettingUIV2 = [
|
|
|
355
355
|
toggleStyle: 'switch'
|
|
356
356
|
}
|
|
357
357
|
},
|
|
358
|
+
{
|
|
359
|
+
layout: 'vertical',
|
|
360
|
+
controlConfig: {
|
|
361
|
+
id: 'linkedToPreSalesPageBanner',
|
|
362
|
+
type: 'banner',
|
|
363
|
+
message: `Pre-sales page elements with link should redirect to the Sales page.`
|
|
364
|
+
},
|
|
365
|
+
conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableLink == true'
|
|
366
|
+
},
|
|
358
367
|
{
|
|
359
368
|
conditionDisplay: 'enableLink == true',
|
|
360
369
|
setting: {
|
|
@@ -423,6 +423,15 @@ const SettingUIV2 = [
|
|
|
423
423
|
toggleStyle: 'switch'
|
|
424
424
|
}
|
|
425
425
|
},
|
|
426
|
+
{
|
|
427
|
+
layout: 'vertical',
|
|
428
|
+
controlConfig: {
|
|
429
|
+
id: 'linkedToPreSalesPageBanner',
|
|
430
|
+
type: 'banner',
|
|
431
|
+
message: `Pre-sales page elements with link should redirect to the Sales page.`
|
|
432
|
+
},
|
|
433
|
+
conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableBtnLink == true'
|
|
434
|
+
},
|
|
426
435
|
{
|
|
427
436
|
type: 'control',
|
|
428
437
|
layout: 'vertical',
|
|
@@ -323,6 +323,15 @@ const SettingUIV2 = [
|
|
|
323
323
|
toggleStyle: 'switch'
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
|
+
{
|
|
327
|
+
layout: 'vertical',
|
|
328
|
+
controlConfig: {
|
|
329
|
+
id: 'linkedToPreSalesPageBanner',
|
|
330
|
+
type: 'banner',
|
|
331
|
+
message: `Pre-sales page elements with link should redirect to the Sales page.`
|
|
332
|
+
},
|
|
333
|
+
conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableImageLink == true'
|
|
334
|
+
},
|
|
326
335
|
{
|
|
327
336
|
setting: {
|
|
328
337
|
id: 'imageLink'
|
|
@@ -79,10 +79,10 @@ const ProductBadge = (props)=>{
|
|
|
79
79
|
});
|
|
80
80
|
const createDataState = system.createStateOrContext({
|
|
81
81
|
displayContent: setting?.displayContent,
|
|
82
|
-
minPrice:
|
|
82
|
+
minPrice: `{{ minPriceValue | replace: '"', '\\"' | escape }}`,
|
|
83
83
|
variantIDs: '{{ product.variants | map: "id" | json | escape }}',
|
|
84
84
|
variantInventoryQuantities: '{{ product.variants | map: "inventory_quantity" | json | escape }}',
|
|
85
|
-
amountDiscount:
|
|
85
|
+
amountDiscount: `{{amountDiscountValue | replace: '"', '\\"' | escape }}`,
|
|
86
86
|
percentDiscount: '{{percentDiscountValue}}',
|
|
87
87
|
price: '{{price}}',
|
|
88
88
|
displayTrigger: setting?.displayTrigger,
|
|
@@ -353,6 +353,15 @@ const SettingUIV2 = [
|
|
|
353
353
|
toggleStyle: 'switch'
|
|
354
354
|
}
|
|
355
355
|
},
|
|
356
|
+
{
|
|
357
|
+
layout: 'vertical',
|
|
358
|
+
controlConfig: {
|
|
359
|
+
id: 'linkedToPreSalesPageBanner',
|
|
360
|
+
type: 'banner',
|
|
361
|
+
message: `Pre-sales page elements with link should redirect to the Sales page.`
|
|
362
|
+
},
|
|
363
|
+
conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableLink == true'
|
|
364
|
+
},
|
|
356
365
|
{
|
|
357
366
|
conditionDisplay: 'enableLink == true',
|
|
358
367
|
setting: {
|
|
@@ -421,6 +421,15 @@ const SettingUIV2 = [
|
|
|
421
421
|
toggleStyle: 'switch'
|
|
422
422
|
}
|
|
423
423
|
},
|
|
424
|
+
{
|
|
425
|
+
layout: 'vertical',
|
|
426
|
+
controlConfig: {
|
|
427
|
+
id: 'linkedToPreSalesPageBanner',
|
|
428
|
+
type: 'banner',
|
|
429
|
+
message: `Pre-sales page elements with link should redirect to the Sales page.`
|
|
430
|
+
},
|
|
431
|
+
conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableBtnLink == true'
|
|
432
|
+
},
|
|
424
433
|
{
|
|
425
434
|
type: 'control',
|
|
426
435
|
layout: 'vertical',
|
|
@@ -321,6 +321,15 @@ const SettingUIV2 = [
|
|
|
321
321
|
toggleStyle: 'switch'
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
|
+
{
|
|
325
|
+
layout: 'vertical',
|
|
326
|
+
controlConfig: {
|
|
327
|
+
id: 'linkedToPreSalesPageBanner',
|
|
328
|
+
type: 'banner',
|
|
329
|
+
message: `Pre-sales page elements with link should redirect to the Sales page.`
|
|
330
|
+
},
|
|
331
|
+
conditionDisplay: 'pageType === "GP_PRE_SALE_PAGE" && enableImageLink == true'
|
|
332
|
+
},
|
|
324
333
|
{
|
|
325
334
|
setting: {
|
|
326
335
|
id: 'imageLink'
|
|
@@ -75,10 +75,10 @@ const ProductBadge = (props)=>{
|
|
|
75
75
|
});
|
|
76
76
|
const createDataState = createStateOrContext({
|
|
77
77
|
displayContent: setting?.displayContent,
|
|
78
|
-
minPrice:
|
|
78
|
+
minPrice: `{{ minPriceValue | replace: '"', '\\"' | escape }}`,
|
|
79
79
|
variantIDs: '{{ product.variants | map: "id" | json | escape }}',
|
|
80
80
|
variantInventoryQuantities: '{{ product.variants | map: "inventory_quantity" | json | escape }}',
|
|
81
|
-
amountDiscount:
|
|
81
|
+
amountDiscount: `{{amountDiscountValue | replace: '"', '\\"' | escape }}`,
|
|
82
82
|
percentDiscount: '{{percentDiscountValue}}',
|
|
83
83
|
price: '{{price}}',
|
|
84
84
|
displayTrigger: setting?.displayTrigger,
|