@gem-sdk/components 2.1.13-staging.37 → 2.1.13-staging.39
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/product/components/ProductBadge/index.liquid.js +1 -1
- package/dist/cjs/product/components/ProductDescription.liquid.js +2 -2
- package/dist/cjs/stock-counter/components/StockCounter.liquid.js +3 -3
- package/dist/cjs/stock-counter/helpers.js +1 -1
- package/dist/esm/product/components/ProductBadge/index.liquid.js +1 -1
- package/dist/esm/product/components/ProductDescription.liquid.js +2 -2
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +3 -3
- package/dist/esm/stock-counter/helpers.js +1 -1
- package/package.json +1 -1
|
@@ -75,7 +75,7 @@ const ProductBadge = ({ styles, builderProps, isInsideProductImage, builderAttrs
|
|
|
75
75
|
...sizeStyles
|
|
76
76
|
} : {}, style)
|
|
77
77
|
}}"
|
|
78
|
-
data-
|
|
78
|
+
data-display-content="${pageContext?.isPreviewing ? displayContentVal : `{{${displayContentVal}}}`}"
|
|
79
79
|
>
|
|
80
80
|
<div class="${shapeAlignClass} ${isDropOutsideProductImage && isTextBadge ? '' : 'gp-h-full'}">
|
|
81
81
|
<div
|
|
@@ -71,8 +71,8 @@ const ProductDescription = ({ setting, advanced, builderProps, pageContext })=>{
|
|
|
71
71
|
defaultStyle,
|
|
72
72
|
collapseStyle
|
|
73
73
|
}).replaceAll("'", ''')}'
|
|
74
|
-
data-
|
|
75
|
-
data-
|
|
74
|
+
data-view-more-text="${viewMoreTextDisplay}"
|
|
75
|
+
data-view-less-text="${viewLessTextDisplay}"
|
|
76
76
|
>
|
|
77
77
|
{%- unless product -%}
|
|
78
78
|
<p>Product not found</p>
|
|
@@ -105,9 +105,9 @@ const StockCounter = ({ setting, styles, style, advanced, builderProps, pageCont
|
|
|
105
105
|
data-visible="{{ should_display }}"
|
|
106
106
|
data-policy='{{ variant_policy_list }}'
|
|
107
107
|
data-template="${templateStringDisplay}"
|
|
108
|
-
data-
|
|
109
|
-
data-
|
|
110
|
-
data-
|
|
108
|
+
data-out-of-stock-message="${outOfStockMessageDisplay}"
|
|
109
|
+
data-continue-selling="${continueSellingDisplay}"
|
|
110
|
+
data-unlimited-quantity-message="${unlimitedQuantityMessageDisplay}"
|
|
111
111
|
gp-setting='${JSON.stringify({
|
|
112
112
|
displayByDefault,
|
|
113
113
|
displayProgressBar,
|
|
@@ -6,7 +6,7 @@ const transformHighlighTag = (template, stringColor)=>{
|
|
|
6
6
|
if (!template.includes(`<${_const.DEFAULT_HIGHLIGHT_TAG}>`)) {
|
|
7
7
|
return template;
|
|
8
8
|
}
|
|
9
|
-
const defaultClass = 'gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]';
|
|
9
|
+
const defaultClass = 'gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] gp-bg-g-text-1';
|
|
10
10
|
let markTag = `<${_const.DEFAULT_HIGHLIGHT_TAG}>`;
|
|
11
11
|
// Is hex color
|
|
12
12
|
if (stringColor.includes('#')) {
|
|
@@ -71,7 +71,7 @@ const ProductBadge = ({ styles, builderProps, isInsideProductImage, builderAttrs
|
|
|
71
71
|
...sizeStyles
|
|
72
72
|
} : {}, style)
|
|
73
73
|
}}"
|
|
74
|
-
data-
|
|
74
|
+
data-display-content="${pageContext?.isPreviewing ? displayContentVal : `{{${displayContentVal}}}`}"
|
|
75
75
|
>
|
|
76
76
|
<div class="${shapeAlignClass} ${isDropOutsideProductImage && isTextBadge ? '' : 'gp-h-full'}">
|
|
77
77
|
<div
|
|
@@ -67,8 +67,8 @@ const ProductDescription = ({ setting, advanced, builderProps, pageContext })=>{
|
|
|
67
67
|
defaultStyle,
|
|
68
68
|
collapseStyle
|
|
69
69
|
}).replaceAll("'", ''')}'
|
|
70
|
-
data-
|
|
71
|
-
data-
|
|
70
|
+
data-view-more-text="${viewMoreTextDisplay}"
|
|
71
|
+
data-view-less-text="${viewLessTextDisplay}"
|
|
72
72
|
>
|
|
73
73
|
{%- unless product -%}
|
|
74
74
|
<p>Product not found</p>
|
|
@@ -101,9 +101,9 @@ const StockCounter = ({ setting, styles, style, advanced, builderProps, pageCont
|
|
|
101
101
|
data-visible="{{ should_display }}"
|
|
102
102
|
data-policy='{{ variant_policy_list }}'
|
|
103
103
|
data-template="${templateStringDisplay}"
|
|
104
|
-
data-
|
|
105
|
-
data-
|
|
106
|
-
data-
|
|
104
|
+
data-out-of-stock-message="${outOfStockMessageDisplay}"
|
|
105
|
+
data-continue-selling="${continueSellingDisplay}"
|
|
106
|
+
data-unlimited-quantity-message="${unlimitedQuantityMessageDisplay}"
|
|
107
107
|
gp-setting='${JSON.stringify({
|
|
108
108
|
displayByDefault,
|
|
109
109
|
displayProgressBar,
|
|
@@ -4,7 +4,7 @@ const transformHighlighTag = (template, stringColor)=>{
|
|
|
4
4
|
if (!template.includes(`<${DEFAULT_HIGHLIGHT_TAG}>`)) {
|
|
5
5
|
return template;
|
|
6
6
|
}
|
|
7
|
-
const defaultClass = 'gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]';
|
|
7
|
+
const defaultClass = 'gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] gp-bg-g-text-1';
|
|
8
8
|
let markTag = `<${DEFAULT_HIGHLIGHT_TAG}>`;
|
|
9
9
|
// Is hex color
|
|
10
10
|
if (stringColor.includes('#')) {
|