@gem-sdk/components 2.1.13-staging.31 → 2.1.13-staging.33
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 +6 -3
- package/dist/esm/product/components/ProductBadge/index.liquid.js +1 -1
- package/dist/esm/product/components/ProductDescription.liquid.js +6 -3
- package/package.json +1 -1
|
@@ -53,7 +53,6 @@ const ProductBadge = ({ styles, builderProps, isInsideProductImage, builderAttrs
|
|
|
53
53
|
class="gp-product-badge !gp-max-w-none gp-shrink-0 ${builderProps?.uid} ${builderProps?.builderData?.advanced?.cssClass || ''} {{className}}"
|
|
54
54
|
id="g-product-badge-${builderProps?.uid}"
|
|
55
55
|
gp-data='${core.dataStringify({
|
|
56
|
-
displayContent: `${pageContext?.isPreviewing ? displayContentVal : `{{${displayContentVal}}}`}`,
|
|
57
56
|
minPrice: '{{ minPriceValue }}',
|
|
58
57
|
variantIDs: '{{ product.variants | map: "id" | json | escape }}',
|
|
59
58
|
variantInventoryQuantities: '{{ product.variants | map: "inventory_quantity" | json | escape }}',
|
|
@@ -76,6 +75,7 @@ const ProductBadge = ({ styles, builderProps, isInsideProductImage, builderAttrs
|
|
|
76
75
|
...sizeStyles
|
|
77
76
|
} : {}, style)
|
|
78
77
|
}}"
|
|
78
|
+
data-displayContent="${pageContext?.isPreviewing ? displayContentVal : `{{${displayContentVal}}}`}"
|
|
79
79
|
>
|
|
80
80
|
<div class="${shapeAlignClass} ${isDropOutsideProductImage && isTextBadge ? '' : 'gp-h-full'}">
|
|
81
81
|
<div
|
|
@@ -66,13 +66,16 @@ const ProductDescription = ({ setting, advanced, builderProps, pageContext })=>{
|
|
|
66
66
|
setting: {
|
|
67
67
|
lineClamp: setting?.lineClamp,
|
|
68
68
|
hasLineClamp: setting?.hasLineClamp,
|
|
69
|
-
viewMoreText:
|
|
70
|
-
viewLessText:
|
|
69
|
+
viewMoreText: setting?.viewMoreText,
|
|
70
|
+
viewLessText: setting?.viewLessText,
|
|
71
71
|
enableViewMoreIcon: setting?.enableViewMoreIcon
|
|
72
72
|
},
|
|
73
73
|
defaultStyle,
|
|
74
74
|
collapseStyle
|
|
75
|
-
}).replaceAll("'", ''')}'
|
|
75
|
+
}).replaceAll("'", ''')}'
|
|
76
|
+
data-viewMoreText="${pageContext?.isPreviewing ? viewMoreTextDisplay : `{{${viewMoreTextDisplay}}}`}"
|
|
77
|
+
data-viewLessText="${pageContext?.isPreviewing ? viewLessTextDisplay : `{{${viewLessTextDisplay}}}`}"
|
|
78
|
+
>
|
|
76
79
|
{%- unless product -%}
|
|
77
80
|
<p>Product not found</p>
|
|
78
81
|
{%- else -%}
|
|
@@ -49,7 +49,6 @@ const ProductBadge = ({ styles, builderProps, isInsideProductImage, builderAttrs
|
|
|
49
49
|
class="gp-product-badge !gp-max-w-none gp-shrink-0 ${builderProps?.uid} ${builderProps?.builderData?.advanced?.cssClass || ''} {{className}}"
|
|
50
50
|
id="g-product-badge-${builderProps?.uid}"
|
|
51
51
|
gp-data='${dataStringify({
|
|
52
|
-
displayContent: `${pageContext?.isPreviewing ? displayContentVal : `{{${displayContentVal}}}`}`,
|
|
53
52
|
minPrice: '{{ minPriceValue }}',
|
|
54
53
|
variantIDs: '{{ product.variants | map: "id" | json | escape }}',
|
|
55
54
|
variantInventoryQuantities: '{{ product.variants | map: "inventory_quantity" | json | escape }}',
|
|
@@ -72,6 +71,7 @@ const ProductBadge = ({ styles, builderProps, isInsideProductImage, builderAttrs
|
|
|
72
71
|
...sizeStyles
|
|
73
72
|
} : {}, style)
|
|
74
73
|
}}"
|
|
74
|
+
data-displayContent="${pageContext?.isPreviewing ? displayContentVal : `{{${displayContentVal}}}`}"
|
|
75
75
|
>
|
|
76
76
|
<div class="${shapeAlignClass} ${isDropOutsideProductImage && isTextBadge ? '' : 'gp-h-full'}">
|
|
77
77
|
<div
|
|
@@ -62,13 +62,16 @@ const ProductDescription = ({ setting, advanced, builderProps, pageContext })=>{
|
|
|
62
62
|
setting: {
|
|
63
63
|
lineClamp: setting?.lineClamp,
|
|
64
64
|
hasLineClamp: setting?.hasLineClamp,
|
|
65
|
-
viewMoreText:
|
|
66
|
-
viewLessText:
|
|
65
|
+
viewMoreText: setting?.viewMoreText,
|
|
66
|
+
viewLessText: setting?.viewLessText,
|
|
67
67
|
enableViewMoreIcon: setting?.enableViewMoreIcon
|
|
68
68
|
},
|
|
69
69
|
defaultStyle,
|
|
70
70
|
collapseStyle
|
|
71
|
-
}).replaceAll("'", ''')}'
|
|
71
|
+
}).replaceAll("'", ''')}'
|
|
72
|
+
data-viewMoreText="${pageContext?.isPreviewing ? viewMoreTextDisplay : `{{${viewMoreTextDisplay}}}`}"
|
|
73
|
+
data-viewLessText="${pageContext?.isPreviewing ? viewLessTextDisplay : `{{${viewLessTextDisplay}}}`}"
|
|
74
|
+
>
|
|
72
75
|
{%- unless product -%}
|
|
73
76
|
<p>Product not found</p>
|
|
74
77
|
{%- else -%}
|