@gem-sdk/components 2.4.7 → 2.4.10
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 +2 -2
- package/dist/cjs/video/components/HTML5Embed.js +1 -1
- package/dist/cjs/video/components/HTML5Embed.liquid.js +1 -1
- package/dist/esm/product/components/ProductBadge/index.liquid.js +2 -2
- package/dist/esm/video/components/HTML5Embed.js +1 -1
- package/dist/esm/video/components/HTML5Embed.liquid.js +1 -1
- package/package.json +2 -2
|
@@ -53,10 +53,10 @@ 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
|
-
minPrice:
|
|
56
|
+
minPrice: `{{ minPriceValue | replace: '"', '\\"' | escape }}`,
|
|
57
57
|
variantIDs: '{{ product.variants | map: "id" | json | escape }}',
|
|
58
58
|
variantInventoryQuantities: '{{ product.variants | map: "inventory_quantity" | json | escape }}',
|
|
59
|
-
amountDiscount:
|
|
59
|
+
amountDiscount: `{{amountDiscountValue | replace: '"', '\\"' | escape }}`,
|
|
60
60
|
percentDiscount: '{{percentDiscountValue}}',
|
|
61
61
|
price: '{{price}}',
|
|
62
62
|
displayTrigger: setting?.displayTrigger,
|
|
@@ -36,7 +36,7 @@ const HTML5Embed = (props)=>{
|
|
|
36
36
|
style: props.style,
|
|
37
37
|
controls: props.controls,
|
|
38
38
|
loop: props.loop,
|
|
39
|
-
muted: props.
|
|
39
|
+
muted: props.muted ? true : undefined,
|
|
40
40
|
autoPlay: props.autoplay,
|
|
41
41
|
title: props.title,
|
|
42
42
|
preload: props.autoplay ? 'metadata' : 'none',
|
|
@@ -57,7 +57,7 @@ const HTML5Embed = (props)=>{
|
|
|
57
57
|
style="${props.style}"
|
|
58
58
|
${props.controls ? 'controls' : undefined}
|
|
59
59
|
${props.loop ? 'loop' : undefined}
|
|
60
|
-
${props.
|
|
60
|
+
${props.muted ? 'muted' : undefined}
|
|
61
61
|
${props.autoplay && !preloadThumbnail ? 'autoplay' : undefined}
|
|
62
62
|
title="${props.title}"
|
|
63
63
|
preload="${props.autoplay && !preloadThumbnail || offLazyVideo ? 'metadata' : 'none'}"
|
|
@@ -49,10 +49,10 @@ 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
|
-
minPrice:
|
|
52
|
+
minPrice: `{{ minPriceValue | replace: '"', '\\"' | escape }}`,
|
|
53
53
|
variantIDs: '{{ product.variants | map: "id" | json | escape }}',
|
|
54
54
|
variantInventoryQuantities: '{{ product.variants | map: "inventory_quantity" | json | escape }}',
|
|
55
|
-
amountDiscount:
|
|
55
|
+
amountDiscount: `{{amountDiscountValue | replace: '"', '\\"' | escape }}`,
|
|
56
56
|
percentDiscount: '{{percentDiscountValue}}',
|
|
57
57
|
price: '{{price}}',
|
|
58
58
|
displayTrigger: setting?.displayTrigger,
|
|
@@ -32,7 +32,7 @@ const HTML5Embed = (props)=>{
|
|
|
32
32
|
style: props.style,
|
|
33
33
|
controls: props.controls,
|
|
34
34
|
loop: props.loop,
|
|
35
|
-
muted: props.
|
|
35
|
+
muted: props.muted ? true : undefined,
|
|
36
36
|
autoPlay: props.autoplay,
|
|
37
37
|
title: props.title,
|
|
38
38
|
preload: props.autoplay ? 'metadata' : 'none',
|
|
@@ -53,7 +53,7 @@ const HTML5Embed = (props)=>{
|
|
|
53
53
|
style="${props.style}"
|
|
54
54
|
${props.controls ? 'controls' : undefined}
|
|
55
55
|
${props.loop ? 'loop' : undefined}
|
|
56
|
-
${props.
|
|
56
|
+
${props.muted ? 'muted' : undefined}
|
|
57
57
|
${props.autoplay && !preloadThumbnail ? 'autoplay' : undefined}
|
|
58
58
|
title="${props.title}"
|
|
59
59
|
preload="${props.autoplay && !preloadThumbnail || offLazyVideo ? 'metadata' : 'none'}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@gem-sdk/core": "2.4.7",
|
|
25
|
-
"@gem-sdk/styles": "2.
|
|
25
|
+
"@gem-sdk/styles": "2.4.8",
|
|
26
26
|
"@types/react-transition-group": "^4.4.5"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|