@gem-sdk/components 2.0.0-staging.712 → 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.
- package/dist/cjs/product/components/ProductBadge/index.liquid.js +1 -1
- package/dist/cjs/product/setting/product-title/configs/uiV2.js +16 -16
- package/dist/esm/product/components/ProductBadge/index.liquid.js +2 -2
- package/dist/esm/product/setting/product-title/configs/uiV2.js +16 -16
- package/package.json +2 -2
|
@@ -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
|
|
@@ -69,22 +69,6 @@ const SettingUIV2 = [
|
|
|
69
69
|
}
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
|
-
{
|
|
73
|
-
controls: [
|
|
74
|
-
{
|
|
75
|
-
label: {
|
|
76
|
-
en: 'Product link'
|
|
77
|
-
},
|
|
78
|
-
setting: {
|
|
79
|
-
id: 'linkProduct'
|
|
80
|
-
},
|
|
81
|
-
options: {
|
|
82
|
-
labelVariant: 'primary',
|
|
83
|
-
toggleStyle: 'switch'
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
72
|
{
|
|
89
73
|
label: {
|
|
90
74
|
en: 'Display option'
|
|
@@ -109,6 +93,22 @@ const SettingUIV2 = [
|
|
|
109
93
|
}
|
|
110
94
|
]
|
|
111
95
|
},
|
|
96
|
+
{
|
|
97
|
+
controls: [
|
|
98
|
+
{
|
|
99
|
+
label: {
|
|
100
|
+
en: 'Link'
|
|
101
|
+
},
|
|
102
|
+
setting: {
|
|
103
|
+
id: 'linkProduct'
|
|
104
|
+
},
|
|
105
|
+
options: {
|
|
106
|
+
labelVariant: 'primary',
|
|
107
|
+
toggleStyle: 'switch'
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
112
|
{
|
|
113
113
|
label: {
|
|
114
114
|
en: 'SEO'
|
|
@@ -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
|
|
@@ -67,22 +67,6 @@ const SettingUIV2 = [
|
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
-
{
|
|
71
|
-
controls: [
|
|
72
|
-
{
|
|
73
|
-
label: {
|
|
74
|
-
en: 'Product link'
|
|
75
|
-
},
|
|
76
|
-
setting: {
|
|
77
|
-
id: 'linkProduct'
|
|
78
|
-
},
|
|
79
|
-
options: {
|
|
80
|
-
labelVariant: 'primary',
|
|
81
|
-
toggleStyle: 'switch'
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
70
|
{
|
|
87
71
|
label: {
|
|
88
72
|
en: 'Display option'
|
|
@@ -107,6 +91,22 @@ const SettingUIV2 = [
|
|
|
107
91
|
}
|
|
108
92
|
]
|
|
109
93
|
},
|
|
94
|
+
{
|
|
95
|
+
controls: [
|
|
96
|
+
{
|
|
97
|
+
label: {
|
|
98
|
+
en: 'Link'
|
|
99
|
+
},
|
|
100
|
+
setting: {
|
|
101
|
+
id: 'linkProduct'
|
|
102
|
+
},
|
|
103
|
+
options: {
|
|
104
|
+
labelVariant: 'primary',
|
|
105
|
+
toggleStyle: 'switch'
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
110
|
{
|
|
111
111
|
label: {
|
|
112
112
|
en: 'SEO'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-staging.
|
|
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.
|
|
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",
|