@gem-sdk/components 3.0.0-pre-production.7 → 3.0.0-pre-production.9
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/image/components/Image.js +1 -1
- package/dist/cjs/image/components/Image.liquid.js +1 -1
- package/dist/cjs/product/components/ProductBadge/index.liquid.js +1 -1
- package/dist/esm/image/components/Image.js +1 -1
- package/dist/esm/image/components/Image.liquid.js +1 -1
- package/dist/esm/product/components/ProductBadge/index.liquid.js +2 -2
- package/package.json +2 -2
|
@@ -88,7 +88,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
88
88
|
children: [
|
|
89
89
|
setting?.isAdaptive ? /*#__PURE__*/ jsxRuntime.jsx(AdaptiveImage.default, {
|
|
90
90
|
srcSet: setting.srcSet,
|
|
91
|
-
pictureClass: "gp-
|
|
91
|
+
pictureClass: "gp-block",
|
|
92
92
|
className: core.cls(className, 'gp-w-full gp-max-w-full', core.handleConvertClassColor(styles?.borderImg)),
|
|
93
93
|
alt: setting.alt,
|
|
94
94
|
style: {
|
|
@@ -62,7 +62,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
62
62
|
${setting?.isAdaptive ? AdaptiveImage_liquid.default({
|
|
63
63
|
srcSet: setting.srcSet,
|
|
64
64
|
className: core.cls(className, 'gp-h-full gp-max-w-full gp-flex', core.handleConvertClassColor(styles?.borderImg)),
|
|
65
|
-
pictureClass: 'gp-
|
|
65
|
+
pictureClass: 'gp-block',
|
|
66
66
|
alt: setting.alt,
|
|
67
67
|
style: {
|
|
68
68
|
...imageWidth,
|
|
@@ -75,7 +75,7 @@ const ProductBadge = ({ styles, builderProps, isInsideProductImage, builderAttrs
|
|
|
75
75
|
...sizeStyles
|
|
76
76
|
} : {}, style)
|
|
77
77
|
}}"
|
|
78
|
-
data-display-content="${pageContext?.isPreviewing ? displayContentVal : `{{${displayContentVal}}}`}"
|
|
78
|
+
data-display-content="${pageContext?.isPreviewing ? displayContentVal : core.sanitizeLiquid(`{{${displayContentVal}}}`)}"
|
|
79
79
|
>
|
|
80
80
|
<div class="${shapeAlignClass} ${isDropOutsideProductImage && isTextBadge ? '' : 'gp-h-full'}">
|
|
81
81
|
<div
|
|
@@ -84,7 +84,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
84
84
|
children: [
|
|
85
85
|
setting?.isAdaptive ? /*#__PURE__*/ jsx(AdaptiveImage, {
|
|
86
86
|
srcSet: setting.srcSet,
|
|
87
|
-
pictureClass: "gp-
|
|
87
|
+
pictureClass: "gp-block",
|
|
88
88
|
className: cls(className, 'gp-w-full gp-max-w-full', handleConvertClassColor(styles?.borderImg)),
|
|
89
89
|
alt: setting.alt,
|
|
90
90
|
style: {
|
|
@@ -58,7 +58,7 @@ const Image = ({ styles, className, setting, builderAttrs, builderProps, style,
|
|
|
58
58
|
${setting?.isAdaptive ? AdaptiveImage({
|
|
59
59
|
srcSet: setting.srcSet,
|
|
60
60
|
className: cls(className, 'gp-h-full gp-max-w-full gp-flex', handleConvertClassColor(styles?.borderImg)),
|
|
61
|
-
pictureClass: 'gp-
|
|
61
|
+
pictureClass: 'gp-block',
|
|
62
62
|
alt: setting.alt,
|
|
63
63
|
style: {
|
|
64
64
|
...imageWidth,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeGlobalSize, template, dataStringify, RenderIf, composeTypographyClassName, composeTypographyStyle, getStyleShadow, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
|
|
1
|
+
import { makeGlobalSize, template, dataStringify, sanitizeLiquid, RenderIf, composeTypographyClassName, composeTypographyStyle, getStyleShadow, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
|
|
2
2
|
import { getShape } from './utils/shape.js';
|
|
3
3
|
import { WRAPPER_CLASS, SHAPE_CLASS, CONTENT_CLASS, IS_LIQUID } from './constants.js';
|
|
4
4
|
import { generateBadgeContent } from './utils/generateLiquidContent.js';
|
|
@@ -71,7 +71,7 @@ const ProductBadge = ({ styles, builderProps, isInsideProductImage, builderAttrs
|
|
|
71
71
|
...sizeStyles
|
|
72
72
|
} : {}, style)
|
|
73
73
|
}}"
|
|
74
|
-
data-display-content="${pageContext?.isPreviewing ? displayContentVal : `{{${displayContentVal}}}`}"
|
|
74
|
+
data-display-content="${pageContext?.isPreviewing ? displayContentVal : sanitizeLiquid(`{{${displayContentVal}}}`)}"
|
|
75
75
|
>
|
|
76
76
|
<div class="${shapeAlignClass} ${isDropOutsideProductImage && isTextBadge ? '' : 'gp-h-full'}">
|
|
77
77
|
<div
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "3.0.0-pre-production.
|
|
3
|
+
"version": "3.0.0-pre-production.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"format": "prettier --write \"./src/**/*.{ts,tsx}\""
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@gem-sdk/core": "3.0.0-pre-production.
|
|
24
|
+
"@gem-sdk/core": "3.0.0-pre-production.8",
|
|
25
25
|
"@gem-sdk/styles": "3.0.0-pre-production.1",
|
|
26
26
|
"@types/react-transition-group": "^4.4.5"
|
|
27
27
|
},
|