@gem-sdk/components 2.0.0-dev.702 → 2.0.0-dev.704
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/article/setting/configs/ArticleReadMore/settings.js +86 -134
- package/dist/cjs/button/components/common/helpers.js +2 -9
- package/dist/cjs/button/components/common/styles.js +14 -81
- package/dist/cjs/button/setting/configs/settings.js +85 -133
- package/dist/cjs/coupon/common/classes.js +3 -12
- package/dist/cjs/coupon/common/styles.js +7 -17
- package/dist/cjs/coupon/setting/config/settings.js +60 -100
- package/dist/cjs/form/setting/submit-button/configs/settings.js +103 -250
- package/dist/cjs/helpers.js +4 -1
- package/dist/cjs/image/components/NextImage.liquid.js +2 -2
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +2 -2
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +72 -2
- package/dist/cjs/product/components/DynamicCheckout/common/styles.js +12 -12
- package/dist/cjs/product/components/ProductBadge/index.liquid.js +12 -3
- package/dist/cjs/product/components/ProductBadge/utils/generateLiquidContent.js +2 -2
- package/dist/cjs/product/components/ProductButton/common/styles.js +4 -14
- package/dist/cjs/product/components/ProductDescription/index.liquid.js +21 -4
- package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
- package/dist/cjs/product/setting/constant/bundle-layout/horizontalThree.js +1 -0
- package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +1 -0
- package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +1 -0
- package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +1 -0
- package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +86 -134
- package/dist/cjs/product/setting/product-badge/configs/settings.js +5 -0
- package/dist/cjs/product/setting/product-button/configs/settings.js +142 -222
- package/dist/cjs/product/setting/product-description/configs/settings.js +5 -0
- package/dist/cjs/product/setting/product-view-more/configs/settings.js +100 -148
- package/dist/cjs/stock-counter/components/StockCounter.js +0 -2
- package/dist/cjs/stock-counter/components/StockCounter.liquid.js +44 -3
- package/dist/cjs/stock-counter/components/common/getContent.js +19 -10
- package/dist/cjs/stock-counter/helpers.js +20 -3
- package/dist/cjs/stock-counter/index.js +0 -1
- package/dist/cjs/stock-counter/setting/configs/settingsV2.js +5 -0
- package/dist/cjs/third-party/setting/Selleasy/index.js +5 -5
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +86 -134
- package/dist/esm/button/components/common/helpers.js +2 -9
- package/dist/esm/button/components/common/styles.js +16 -81
- package/dist/esm/button/setting/configs/settings.js +85 -133
- package/dist/esm/coupon/common/classes.js +3 -12
- package/dist/esm/coupon/common/styles.js +7 -17
- package/dist/esm/coupon/setting/config/settings.js +60 -100
- package/dist/esm/form/setting/submit-button/configs/settings.js +103 -250
- package/dist/esm/helpers.js +4 -1
- package/dist/esm/image/components/NextImage.liquid.js +2 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +2 -2
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +72 -2
- package/dist/esm/product/components/DynamicCheckout/common/styles.js +12 -12
- package/dist/esm/product/components/ProductBadge/index.liquid.js +13 -4
- package/dist/esm/product/components/ProductBadge/utils/generateLiquidContent.js +2 -2
- package/dist/esm/product/components/ProductButton/common/styles.js +4 -14
- package/dist/esm/product/components/ProductDescription/index.liquid.js +22 -5
- package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -1
- package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +1 -0
- package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +1 -0
- package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +1 -0
- package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +1 -0
- package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +86 -134
- package/dist/esm/product/setting/product-badge/configs/settings.js +5 -0
- package/dist/esm/product/setting/product-button/configs/settings.js +142 -222
- package/dist/esm/product/setting/product-description/configs/settings.js +5 -0
- package/dist/esm/product/setting/product-view-more/configs/settings.js +100 -148
- package/dist/esm/stock-counter/components/StockCounter.js +0 -2
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +46 -5
- package/dist/esm/stock-counter/components/common/getContent.js +19 -11
- package/dist/esm/stock-counter/helpers.js +20 -4
- package/dist/esm/stock-counter/index.js +0 -1
- package/dist/esm/stock-counter/setting/configs/settingsV2.js +5 -0
- package/dist/esm/third-party/setting/Selleasy/index.js +5 -5
- package/dist/types/index.d.ts +40 -28
- package/package.json +3 -3
|
@@ -104,252 +104,116 @@ const SubmitButtonSettings = [
|
|
|
104
104
|
{
|
|
105
105
|
id: 'borderBtnV2',
|
|
106
106
|
type: 'border-v2',
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
color: '#121212',
|
|
124
|
-
isCustom: true
|
|
125
|
-
}
|
|
126
|
-
}
|
|
107
|
+
default: {
|
|
108
|
+
normal: {
|
|
109
|
+
borderType: 'none',
|
|
110
|
+
border: 'none',
|
|
111
|
+
borderWidth: '1px',
|
|
112
|
+
width: '1px 1px 1px 1px',
|
|
113
|
+
color: '#121212',
|
|
114
|
+
isCustom: true
|
|
115
|
+
},
|
|
116
|
+
hover: {
|
|
117
|
+
borderType: 'none',
|
|
118
|
+
border: 'none',
|
|
119
|
+
borderWidth: '1px',
|
|
120
|
+
width: '1px 1px 1px 1px',
|
|
121
|
+
color: '#121212',
|
|
122
|
+
isCustom: true
|
|
127
123
|
}
|
|
128
124
|
},
|
|
129
125
|
compoDefaultValue: {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
width: '1px',
|
|
136
|
-
borderWidth: '1px'
|
|
137
|
-
},
|
|
138
|
-
hover: {
|
|
139
|
-
border: 'solid',
|
|
140
|
-
color: '#121212',
|
|
141
|
-
width: '1px',
|
|
142
|
-
borderWidth: '1px'
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
tablet: {
|
|
147
|
-
default: {
|
|
148
|
-
normal: {
|
|
149
|
-
border: 'solid',
|
|
150
|
-
color: '#121212',
|
|
151
|
-
width: '1px',
|
|
152
|
-
borderWidth: '1px'
|
|
153
|
-
},
|
|
154
|
-
hover: {
|
|
155
|
-
border: 'solid',
|
|
156
|
-
color: '#121212',
|
|
157
|
-
width: '1px',
|
|
158
|
-
borderWidth: '1px'
|
|
159
|
-
}
|
|
160
|
-
}
|
|
126
|
+
normal: {
|
|
127
|
+
border: 'solid',
|
|
128
|
+
color: '#121212',
|
|
129
|
+
width: '1px',
|
|
130
|
+
borderWidth: '1px'
|
|
161
131
|
},
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
width: '1px',
|
|
168
|
-
borderWidth: '1px'
|
|
169
|
-
},
|
|
170
|
-
hover: {
|
|
171
|
-
border: 'solid',
|
|
172
|
-
color: '#121212',
|
|
173
|
-
width: '1px',
|
|
174
|
-
borderWidth: '1px'
|
|
175
|
-
}
|
|
176
|
-
}
|
|
132
|
+
hover: {
|
|
133
|
+
border: 'solid',
|
|
134
|
+
color: '#121212',
|
|
135
|
+
width: '1px',
|
|
136
|
+
borderWidth: '1px'
|
|
177
137
|
}
|
|
178
138
|
}
|
|
179
139
|
},
|
|
180
140
|
{
|
|
181
141
|
id: 'roundedBtnV2',
|
|
182
142
|
type: 'corner-v2',
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
btlr: '0px',
|
|
198
|
-
radiusType: 'none'
|
|
199
|
-
}
|
|
200
|
-
}
|
|
143
|
+
default: {
|
|
144
|
+
normal: {
|
|
145
|
+
btrr: '0px',
|
|
146
|
+
bblr: '0px',
|
|
147
|
+
bbrr: '0px',
|
|
148
|
+
btlr: '0px',
|
|
149
|
+
radiusType: 'none'
|
|
150
|
+
},
|
|
151
|
+
hover: {
|
|
152
|
+
btrr: '0px',
|
|
153
|
+
bblr: '0px',
|
|
154
|
+
bbrr: '0px',
|
|
155
|
+
btlr: '0px',
|
|
156
|
+
radiusType: 'none'
|
|
201
157
|
}
|
|
202
158
|
},
|
|
203
159
|
compoDefaultValue: {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
btlr: '8px',
|
|
211
|
-
radiusType: 'rounded'
|
|
212
|
-
},
|
|
213
|
-
hover: {
|
|
214
|
-
btrr: '8px',
|
|
215
|
-
bblr: '8px',
|
|
216
|
-
bbrr: '8px',
|
|
217
|
-
btlr: '8px',
|
|
218
|
-
radiusType: 'rounded'
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
tablet: {
|
|
223
|
-
default: {
|
|
224
|
-
normal: {
|
|
225
|
-
btrr: '8px',
|
|
226
|
-
bblr: '8px',
|
|
227
|
-
bbrr: '8px',
|
|
228
|
-
btlr: '8px',
|
|
229
|
-
radiusType: 'rounded'
|
|
230
|
-
},
|
|
231
|
-
hover: {
|
|
232
|
-
btrr: '8px',
|
|
233
|
-
bblr: '8px',
|
|
234
|
-
bbrr: '8px',
|
|
235
|
-
btlr: '8px',
|
|
236
|
-
radiusType: 'rounded'
|
|
237
|
-
}
|
|
238
|
-
}
|
|
160
|
+
normal: {
|
|
161
|
+
btrr: '8px',
|
|
162
|
+
bblr: '8px',
|
|
163
|
+
bbrr: '8px',
|
|
164
|
+
btlr: '8px',
|
|
165
|
+
radiusType: 'rounded'
|
|
239
166
|
},
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
btlr: '8px',
|
|
247
|
-
radiusType: 'rounded'
|
|
248
|
-
},
|
|
249
|
-
hover: {
|
|
250
|
-
btrr: '8px',
|
|
251
|
-
bblr: '8px',
|
|
252
|
-
bbrr: '8px',
|
|
253
|
-
btlr: '8px',
|
|
254
|
-
radiusType: 'rounded'
|
|
255
|
-
}
|
|
256
|
-
}
|
|
167
|
+
hover: {
|
|
168
|
+
btrr: '8px',
|
|
169
|
+
bblr: '8px',
|
|
170
|
+
bbrr: '8px',
|
|
171
|
+
btlr: '8px',
|
|
172
|
+
radiusType: 'rounded'
|
|
257
173
|
}
|
|
258
174
|
}
|
|
259
175
|
},
|
|
260
176
|
{
|
|
261
177
|
id: 'boxShadowBtnV2',
|
|
262
178
|
type: 'shadow-v2',
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
angle: 45,
|
|
282
|
-
enable: false
|
|
283
|
-
}
|
|
284
|
-
}
|
|
179
|
+
default: {
|
|
180
|
+
normal: {
|
|
181
|
+
type: 'shadow-1',
|
|
182
|
+
distance: '4px',
|
|
183
|
+
blur: '4px',
|
|
184
|
+
spread: '0px',
|
|
185
|
+
color: '#121212',
|
|
186
|
+
angle: 45,
|
|
187
|
+
enable: false
|
|
188
|
+
},
|
|
189
|
+
hover: {
|
|
190
|
+
type: 'shadow-1',
|
|
191
|
+
distance: '4px',
|
|
192
|
+
blur: '4px',
|
|
193
|
+
spread: '0px',
|
|
194
|
+
color: '#121212',
|
|
195
|
+
angle: 45,
|
|
196
|
+
enable: false
|
|
285
197
|
}
|
|
286
198
|
},
|
|
287
199
|
compoDefaultValue: {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
angle: 45,
|
|
297
|
-
enable: true
|
|
298
|
-
},
|
|
299
|
-
hover: {
|
|
300
|
-
type: 'shadow-1',
|
|
301
|
-
distance: '4px',
|
|
302
|
-
blur: '4px',
|
|
303
|
-
spread: '0px',
|
|
304
|
-
color: '#121212',
|
|
305
|
-
angle: 45,
|
|
306
|
-
enable: true
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
tablet: {
|
|
311
|
-
default: {
|
|
312
|
-
normal: {
|
|
313
|
-
type: 'shadow-1',
|
|
314
|
-
distance: '4px',
|
|
315
|
-
blur: '4px',
|
|
316
|
-
spread: '0px',
|
|
317
|
-
color: '#121212',
|
|
318
|
-
angle: 45,
|
|
319
|
-
enable: true
|
|
320
|
-
},
|
|
321
|
-
hover: {
|
|
322
|
-
type: 'shadow-1',
|
|
323
|
-
distance: '4px',
|
|
324
|
-
blur: '4px',
|
|
325
|
-
spread: '0px',
|
|
326
|
-
color: '#121212',
|
|
327
|
-
angle: 45,
|
|
328
|
-
enable: true
|
|
329
|
-
}
|
|
330
|
-
}
|
|
200
|
+
normal: {
|
|
201
|
+
type: 'shadow-1',
|
|
202
|
+
distance: '4px',
|
|
203
|
+
blur: '4px',
|
|
204
|
+
spread: '0px',
|
|
205
|
+
color: '#121212',
|
|
206
|
+
angle: 45,
|
|
207
|
+
enable: true
|
|
331
208
|
},
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
angle: 45,
|
|
341
|
-
enable: true
|
|
342
|
-
},
|
|
343
|
-
hover: {
|
|
344
|
-
type: 'shadow-1',
|
|
345
|
-
distance: '4px',
|
|
346
|
-
blur: '4px',
|
|
347
|
-
spread: '0px',
|
|
348
|
-
color: '#121212',
|
|
349
|
-
angle: 45,
|
|
350
|
-
enable: true
|
|
351
|
-
}
|
|
352
|
-
}
|
|
209
|
+
hover: {
|
|
210
|
+
type: 'shadow-1',
|
|
211
|
+
distance: '4px',
|
|
212
|
+
blur: '4px',
|
|
213
|
+
spread: '0px',
|
|
214
|
+
color: '#121212',
|
|
215
|
+
angle: 45,
|
|
216
|
+
enable: true
|
|
353
217
|
}
|
|
354
218
|
}
|
|
355
219
|
},
|
|
@@ -381,21 +245,13 @@ const SubmitButtonSettings = [
|
|
|
381
245
|
{
|
|
382
246
|
id: 'backgroundColorV2',
|
|
383
247
|
type: 'color-picker-v2',
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
normal: 'brand',
|
|
388
|
-
hover: 'highlight'
|
|
389
|
-
}
|
|
390
|
-
}
|
|
248
|
+
default: {
|
|
249
|
+
normal: 'brand',
|
|
250
|
+
hover: 'highlight'
|
|
391
251
|
},
|
|
392
252
|
compoDefaultValue: {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
normal: 'brand',
|
|
396
|
-
hover: 'highlight'
|
|
397
|
-
}
|
|
398
|
-
}
|
|
253
|
+
normal: 'brand',
|
|
254
|
+
hover: 'highlight'
|
|
399
255
|
},
|
|
400
256
|
enableGradient: true
|
|
401
257
|
},
|
|
@@ -414,19 +270,11 @@ const SubmitButtonSettings = [
|
|
|
414
270
|
{
|
|
415
271
|
id: 'textColorHover',
|
|
416
272
|
type: 'color-picker-v2',
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
default: {
|
|
420
|
-
hover: 'text-3'
|
|
421
|
-
}
|
|
422
|
-
}
|
|
273
|
+
default: {
|
|
274
|
+
hover: 'text-3'
|
|
423
275
|
},
|
|
424
276
|
compoDefaultValue: {
|
|
425
|
-
|
|
426
|
-
default: {
|
|
427
|
-
hover: 'text-3'
|
|
428
|
-
}
|
|
429
|
-
}
|
|
277
|
+
hover: 'text-3'
|
|
430
278
|
}
|
|
431
279
|
},
|
|
432
280
|
{
|
|
@@ -486,17 +334,23 @@ const SubmitButtonSettings = [
|
|
|
486
334
|
{
|
|
487
335
|
label: 'Left',
|
|
488
336
|
value: 'left',
|
|
489
|
-
type: 'align'
|
|
337
|
+
type: 'align',
|
|
338
|
+
tooltip: 'Align left',
|
|
339
|
+
iconName: 'gp-align-left'
|
|
490
340
|
},
|
|
491
341
|
{
|
|
492
342
|
label: 'Center',
|
|
493
343
|
value: 'center',
|
|
494
|
-
type: 'align'
|
|
344
|
+
type: 'align',
|
|
345
|
+
tooltip: 'Align center',
|
|
346
|
+
iconName: 'gp-align-center'
|
|
495
347
|
},
|
|
496
348
|
{
|
|
497
349
|
label: 'Right',
|
|
498
350
|
value: 'right',
|
|
499
|
-
type: 'align'
|
|
351
|
+
type: 'align',
|
|
352
|
+
tooltip: 'Align right',
|
|
353
|
+
iconName: 'gp-align-right'
|
|
500
354
|
}
|
|
501
355
|
],
|
|
502
356
|
devices: {
|
|
@@ -513,7 +367,6 @@ const SubmitButtonSettings = [
|
|
|
513
367
|
type: 'paragraph-1'
|
|
514
368
|
},
|
|
515
369
|
hiddenSetting: {
|
|
516
|
-
// color: true,
|
|
517
370
|
transform: true,
|
|
518
371
|
textAlign: true
|
|
519
372
|
},
|
package/dist/cjs/helpers.js
CHANGED
|
@@ -39,7 +39,7 @@ const isHexTransparent = (hex)=>{
|
|
|
39
39
|
return Boolean(a);
|
|
40
40
|
};
|
|
41
41
|
const youtubeShortsRegex = /^(?:https?:\/\/)?(?:www\.)?youtube\.com\/shorts\/([^"&?/\s]{11})$/i;
|
|
42
|
-
const getDynamicSourceLocales = ({ val, uid, settingId, isLiquid, pageContext, isCapitalize, defaultVal = '', translate, isReplaceLocationOrigin, isReplaceMaxSize })=>{
|
|
42
|
+
const getDynamicSourceLocales = ({ val, uid, settingId, isLiquid, pageContext, isCapitalize, defaultVal = '', translate, isReplaceLocationOrigin, isReplaceMaxSize, isReplaceInventoryQuantity })=>{
|
|
43
43
|
const hasLiquidInValue = new RegExp(/\{\{.*?\}\}|\{%.*?%\}/).test(val?.toString() ?? '');
|
|
44
44
|
const translateLimit = pageContext?.isTranslateWithLocale ? 1000 : 5000;
|
|
45
45
|
if (!translate || !val?.toString().trim() || val.toString().length > translateLimit || hasLiquidInValue || pageContext?.isPreviewing) return val ?? defaultVal;
|
|
@@ -54,6 +54,9 @@ const getDynamicSourceLocales = ({ val, uid, settingId, isLiquid, pageContext, i
|
|
|
54
54
|
if (isReplaceMaxSize) {
|
|
55
55
|
locale += ` | replace: '$max_size', '10MB'`;
|
|
56
56
|
}
|
|
57
|
+
if (isReplaceInventoryQuantity) {
|
|
58
|
+
locale += ` | replace: '<$quantity$>', inventory_quantity | replace: '<$quantity$>', inventory_quantity`;
|
|
59
|
+
}
|
|
57
60
|
if (isCapitalize) {
|
|
58
61
|
locale = `${locale} | downcase`;
|
|
59
62
|
}
|
|
@@ -9,8 +9,8 @@ var styles = require('./common/styles.js');
|
|
|
9
9
|
var getNextImageLiquidAttrs = require('./helpers/getNextImageLiquidAttrs.js');
|
|
10
10
|
|
|
11
11
|
const NextImage = (props)=>{
|
|
12
|
-
const { style, setting, priority, className, pageContext, width, height,
|
|
13
|
-
const hasLazyLoad = !
|
|
12
|
+
const { style, setting, priority, className, pageContext, width, height, customLazyload, isDisableObjectFit, isDisableAspectStyle, enableLazyLoadImage = true } = props;
|
|
13
|
+
const hasLazyLoad = !customLazyload && enableLazyLoadImage && !priority;
|
|
14
14
|
const nextImageStyles = system.createStyle({
|
|
15
15
|
...style,
|
|
16
16
|
...styles.getNextImageStyles({
|
package/dist/cjs/index.js
CHANGED
|
@@ -321,6 +321,7 @@ var StockCounter = require('./stock-counter/components/StockCounter.js');
|
|
|
321
321
|
var ThirdPartySlot = require('./third-party-slot/components/ThirdPartySlot.js');
|
|
322
322
|
var ShopPayInstallments = require('./shop-pay-installment/components/ShopPayInstallments.js');
|
|
323
323
|
var Sticky = require('./sticky/components/Sticky.js');
|
|
324
|
+
var helpers$1 = require('./stock-counter/helpers.js');
|
|
324
325
|
|
|
325
326
|
|
|
326
327
|
|
|
@@ -660,3 +661,6 @@ exports.StockCounter = StockCounter.default;
|
|
|
660
661
|
exports.ThirdPartySlot = ThirdPartySlot.default;
|
|
661
662
|
exports.ShopPayInstallments = ShopPayInstallments.default;
|
|
662
663
|
exports.Sticky = Sticky.default;
|
|
664
|
+
exports.convertSizeToWidth = helpers$1.convertSizeToWidth;
|
|
665
|
+
exports.transformHighlighTag = helpers$1.transformHighlighTag;
|
|
666
|
+
exports.transformNumberTag = helpers$1.transformNumberTag;
|
|
@@ -135,13 +135,13 @@ const SettingV2 = [
|
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
id: 'ftEnabled',
|
|
138
|
-
type: 'toggle
|
|
138
|
+
type: 'toggle',
|
|
139
139
|
label: 'Feature image',
|
|
140
140
|
default: true
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
id: 'ilEnabled',
|
|
144
|
-
type: 'toggle
|
|
144
|
+
type: 'toggle',
|
|
145
145
|
label: 'Image list',
|
|
146
146
|
default: true
|
|
147
147
|
}
|
|
@@ -57,7 +57,42 @@ const SettingUIV2 = [
|
|
|
57
57
|
fullWidth: true,
|
|
58
58
|
tooltipPosition: 'right'
|
|
59
59
|
},
|
|
60
|
-
conditionEnable: 'ilEnabled == true'
|
|
60
|
+
conditionEnable: 'ilEnabled == true',
|
|
61
|
+
controlChangeTrigger: {
|
|
62
|
+
settings: [
|
|
63
|
+
{
|
|
64
|
+
condition: `ftEnabled === false && ilEnabled === true`,
|
|
65
|
+
source: [
|
|
66
|
+
'ilEnabled',
|
|
67
|
+
'ftEnabled',
|
|
68
|
+
'layoutType'
|
|
69
|
+
],
|
|
70
|
+
action: {
|
|
71
|
+
controlId: 'layoutType',
|
|
72
|
+
groupType: 'setting',
|
|
73
|
+
controlType: 'setting',
|
|
74
|
+
newValue: 'two-col'
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
condition: `ftEnabled === true && ilEnabled === true`,
|
|
79
|
+
source: [
|
|
80
|
+
'ilEnabled',
|
|
81
|
+
'ftEnabled',
|
|
82
|
+
'layoutType'
|
|
83
|
+
],
|
|
84
|
+
action: {
|
|
85
|
+
controlId: 'layoutType',
|
|
86
|
+
groupType: 'setting',
|
|
87
|
+
controlType: 'setting',
|
|
88
|
+
newValue: 'left'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
options: {
|
|
93
|
+
noRecordHistory: true
|
|
94
|
+
}
|
|
95
|
+
}
|
|
61
96
|
},
|
|
62
97
|
{
|
|
63
98
|
setting: {
|
|
@@ -103,7 +138,42 @@ const SettingUIV2 = [
|
|
|
103
138
|
fullWidth: true,
|
|
104
139
|
tooltipPosition: 'right'
|
|
105
140
|
},
|
|
106
|
-
conditionEnable: 'ftEnabled == true'
|
|
141
|
+
conditionEnable: 'ftEnabled == true',
|
|
142
|
+
controlChangeTrigger: {
|
|
143
|
+
settings: [
|
|
144
|
+
{
|
|
145
|
+
condition: `ilEnabled === false && ftEnabled === true`,
|
|
146
|
+
source: [
|
|
147
|
+
'ilEnabled',
|
|
148
|
+
'ftEnabled',
|
|
149
|
+
'layoutType'
|
|
150
|
+
],
|
|
151
|
+
action: {
|
|
152
|
+
controlId: 'layoutType',
|
|
153
|
+
groupType: 'setting',
|
|
154
|
+
controlType: 'setting',
|
|
155
|
+
newValue: 'only-feature'
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
condition: `ilEnabled === true && ftEnabled === true`,
|
|
160
|
+
source: [
|
|
161
|
+
'ilEnabled',
|
|
162
|
+
'ftEnabled',
|
|
163
|
+
'layoutType'
|
|
164
|
+
],
|
|
165
|
+
action: {
|
|
166
|
+
controlId: 'layoutType',
|
|
167
|
+
groupType: 'setting',
|
|
168
|
+
controlType: 'setting',
|
|
169
|
+
newValue: 'left'
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
options: {
|
|
174
|
+
noRecordHistory: true
|
|
175
|
+
}
|
|
176
|
+
}
|
|
107
177
|
},
|
|
108
178
|
{
|
|
109
179
|
label: {
|
|
@@ -51,36 +51,36 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
|
|
|
51
51
|
${composeSpacing(device, composeGlobalSize.padding)}
|
|
52
52
|
${composeSize(composeGlobalSize.width[device] ?? 'auto', composeGlobalSize.height[device] ?? 'auto', false)}
|
|
53
53
|
${core.composeShadowCss({
|
|
54
|
-
boxShadowValue: styles?.boxShadowBtnV2?.
|
|
55
|
-
hasBoxShadow: styles?.boxShadowBtnV2?.
|
|
54
|
+
boxShadowValue: styles?.boxShadowBtnV2?.normal,
|
|
55
|
+
hasBoxShadow: styles?.boxShadowBtnV2?.normal?.type !== 'none'
|
|
56
56
|
}) || ''}
|
|
57
|
-
${core.composeCornerCss(styles?.roundedBtnV2?.
|
|
57
|
+
${core.composeCornerCss(styles?.roundedBtnV2?.normal, true)}
|
|
58
58
|
${device === 'desktop' ? core.composeTypographyV2Css(styles?.typo, true) : ''}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded:hover {
|
|
62
62
|
${core.composeShadowCss({
|
|
63
|
-
boxShadowValue: styles?.boxShadowBtnV2?.
|
|
64
|
-
hasBoxShadow: styles?.boxShadowBtnV2?.
|
|
63
|
+
boxShadowValue: styles?.boxShadowBtnV2?.hover,
|
|
64
|
+
hasBoxShadow: styles?.boxShadowBtnV2?.hover?.type !== 'none',
|
|
65
65
|
important: true
|
|
66
66
|
}) || ''}
|
|
67
|
-
${core.composeTextHoverColorCss(
|
|
67
|
+
${core.composeTextHoverColorCss(styles?.textColorHover, true)}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded::before {
|
|
71
|
-
${core.composeBorderCss(styles?.borderBtnV2?.
|
|
72
|
-
${core.composeCornerCss(styles?.roundedBtnV2?.
|
|
71
|
+
${core.composeBorderCss(styles?.borderBtnV2?.normal)}
|
|
72
|
+
${core.composeCornerCss(styles?.roundedBtnV2?.normal)}
|
|
73
73
|
${core.composeBackgroundImageCss(styles?.backgroundImage, {
|
|
74
74
|
device,
|
|
75
75
|
state: 'normal'
|
|
76
76
|
})}
|
|
77
|
-
${core.composeBackgroundCss(styles?.backgroundColorV2?.
|
|
77
|
+
${core.composeBackgroundCss(styles?.backgroundColorV2?.normal)}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded:hover::before {
|
|
81
|
-
${core.composeBorderCss(styles?.borderBtnV2?.
|
|
82
|
-
${core.composeCornerCss(styles?.roundedBtnV2?.
|
|
83
|
-
${core.composeBackgroundCss(styles?.backgroundColorV2?.
|
|
81
|
+
${core.composeBorderCss(styles?.borderBtnV2?.hover)}
|
|
82
|
+
${core.composeCornerCss(styles?.roundedBtnV2?.hover)}
|
|
83
|
+
${core.composeBackgroundCss(styles?.backgroundColorV2?.hover)}
|
|
84
84
|
}
|
|
85
85
|
`;
|
|
86
86
|
};
|