@gem-sdk/components 2.0.0-staging.713 → 2.0.0-staging.714

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.
@@ -110,7 +110,7 @@ const ProductBadge = (props)=>{
110
110
  gp-data='${core.dataStringify(createDataState)}'
111
111
  class="containerClass"
112
112
  style="${containerStyle}"
113
- data-display-content="${displayContentVal}"
113
+ data-display-content="${pageContext?.isPreviewing ? displayContentVal : core.sanitizeLiquid(`{{${displayContentVal}}}`)}"
114
114
  >
115
115
  <div class="${wrapperClass}">
116
116
  <div
@@ -1,4 +1,4 @@
1
- import { template, dataStringify, RenderIf, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
1
+ import { template, dataStringify, sanitizeLiquid, RenderIf, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
2
2
  import { getDynamicSourceLocales, getSettingPreloadData } from '../../../helpers.js';
3
3
  import { checkDiscountContentProductBadge } from './utils/common.js';
4
4
  import { generateBadgeContent } from './utils/generateLiquidContent.js';
@@ -106,7 +106,7 @@ const ProductBadge = (props)=>{
106
106
  gp-data='${dataStringify(createDataState)}'
107
107
  class="containerClass"
108
108
  style="${containerStyle}"
109
- data-display-content="${displayContentVal}"
109
+ data-display-content="${pageContext?.isPreviewing ? displayContentVal : sanitizeLiquid(`{{${displayContentVal}}}`)}"
110
110
  >
111
111
  <div class="${wrapperClass}">
112
112
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.713",
3
+ "version": "2.0.0-staging.714",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "2.0.0-staging.711",
28
+ "@gem-sdk/core": "2.0.0-staging.714",
29
29
  "@gem-sdk/styles": "2.0.0-staging.711",
30
30
  "@gem-sdk/system": "2.0.0-staging.711",
31
31
  "@types/react-transition-group": "^4.4.5",