@gem-sdk/components 3.0.0-pre-production.7 → 3.0.0-pre-production.8

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.
@@ -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
@@ -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.7",
3
+ "version": "3.0.0-pre-production.8",
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.6",
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
  },