@gem-sdk/components 2.0.0-dev.381 → 2.0.0-dev.383

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.
Files changed (29) hide show
  1. package/dist/cjs/article/components/ArticleTitle.js +4 -3
  2. package/dist/cjs/article/components/ArticleTitle.liquid.js +7 -8
  3. package/dist/cjs/article/setting/ArticleList.js +2 -2
  4. package/dist/cjs/article/setting/configs/ArticleImage/presets.js +1 -1
  5. package/dist/cjs/button/setting/Button.js +1 -1
  6. package/dist/cjs/button/setting/configs/settings.js +14 -1
  7. package/dist/cjs/button/setting/configs/uiV2.js +118 -33
  8. package/dist/cjs/image/setting/configs/uiV2.js +45 -4
  9. package/dist/cjs/image-comparison/setting/configs/uiV2.js +44 -0
  10. package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +1 -1
  11. package/dist/cjs/product/setting/dynamic-checkout/configs/uiV2.js +118 -33
  12. package/dist/cjs/product/setting/product-button/configs/uiV2.js +86 -6
  13. package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +86 -6
  14. package/dist/cjs/sticky/setting/configs/uiV2.js +43 -3
  15. package/dist/esm/article/components/ArticleTitle.js +4 -3
  16. package/dist/esm/article/components/ArticleTitle.liquid.js +7 -8
  17. package/dist/esm/article/setting/ArticleList.js +2 -2
  18. package/dist/esm/article/setting/configs/ArticleImage/presets.js +1 -1
  19. package/dist/esm/button/setting/Button.js +1 -1
  20. package/dist/esm/button/setting/configs/settings.js +14 -1
  21. package/dist/esm/button/setting/configs/uiV2.js +118 -33
  22. package/dist/esm/image/setting/configs/uiV2.js +45 -4
  23. package/dist/esm/image-comparison/setting/configs/uiV2.js +44 -0
  24. package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +1 -1
  25. package/dist/esm/product/setting/dynamic-checkout/configs/uiV2.js +118 -33
  26. package/dist/esm/product/setting/product-button/configs/uiV2.js +86 -6
  27. package/dist/esm/product/setting/product-view-more/configs/uiV2.js +86 -6
  28. package/dist/esm/sticky/setting/configs/uiV2.js +43 -3
  29. package/package.json +1 -1
@@ -357,6 +357,50 @@ const SettingUIV2 = [
357
357
  setting: {
358
358
  id: 'boxShadow',
359
359
  state: 'normal'
360
+ },
361
+ options: {
362
+ updateFields: [
363
+ {
364
+ field: 'enable',
365
+ settingId: 'hasBoxShadow',
366
+ state: 'normal'
367
+ }
368
+ ]
369
+ },
370
+ controlChangeTrigger: {
371
+ settings: [
372
+ {
373
+ condition: `boxShadow.normal.enable === true`,
374
+ source: [
375
+ 'boxShadow',
376
+ 'hasBoxShadow'
377
+ ],
378
+ action: {
379
+ controlId: 'hasBoxShadow',
380
+ groupType: 'advanced',
381
+ controlType: 'advanced',
382
+ state: 'normal',
383
+ newValue: true
384
+ }
385
+ },
386
+ {
387
+ condition: `boxShadow.normal.enable === false`,
388
+ source: [
389
+ 'boxShadow',
390
+ 'hasBoxShadow'
391
+ ],
392
+ action: {
393
+ controlId: 'hasBoxShadow',
394
+ groupType: 'advanced',
395
+ controlType: 'advanced',
396
+ state: 'normal',
397
+ newValue: false
398
+ }
399
+ }
400
+ ],
401
+ options: {
402
+ noRecordHistory: true
403
+ }
360
404
  }
361
405
  }
362
406
  ]
@@ -22,7 +22,7 @@ const DynamicCheckoutSettings = [
22
22
  default: {
23
23
  type: 'paragraph-1',
24
24
  attrs: {
25
- color: 'text-1'
25
+ color: 'text-3'
26
26
  }
27
27
  },
28
28
  hiddenSetting: {
@@ -180,9 +180,49 @@ const SettingUIV2 = [
180
180
  id: 'boxShadowBtnV2',
181
181
  state: 'normal'
182
182
  },
183
- controlConfig: {
184
- id: 'boxShadowBtnV2',
185
- type: 'shadow-v2'
183
+ options: {
184
+ updateFields: [
185
+ {
186
+ field: 'enable',
187
+ settingId: 'hasBoxShadowBtn',
188
+ state: 'normal'
189
+ }
190
+ ]
191
+ },
192
+ controlChangeTrigger: {
193
+ settings: [
194
+ {
195
+ condition: `boxShadowBtnV2.normal.enable === true`,
196
+ source: [
197
+ 'boxShadowBtnV2',
198
+ 'hasBoxShadowBtn'
199
+ ],
200
+ action: {
201
+ controlId: 'hasBoxShadowBtn',
202
+ groupType: 'advanced',
203
+ controlType: 'advanced',
204
+ state: 'normal',
205
+ newValue: true
206
+ }
207
+ },
208
+ {
209
+ condition: `boxShadowBtnV2.normal.enable === false`,
210
+ source: [
211
+ 'boxShadowBtnV2',
212
+ 'hasBoxShadowBtn'
213
+ ],
214
+ action: {
215
+ controlId: 'hasBoxShadowBtn',
216
+ groupType: 'advanced',
217
+ controlType: 'advanced',
218
+ state: 'normal',
219
+ newValue: false
220
+ }
221
+ }
222
+ ],
223
+ options: {
224
+ noRecordHistory: true
225
+ }
186
226
  }
187
227
  }
188
228
  ]
@@ -303,39 +343,84 @@ const SettingUIV2 = [
303
343
  id: 'textColorHover',
304
344
  state: 'hover'
305
345
  }
306
- },
307
- {
308
- label: {
309
- en: 'Border'
310
- },
311
- setting: {
312
- id: 'borderBtnV2',
313
- state: 'hover'
314
- }
315
- },
316
- {
317
- label: {
318
- en: 'Corner'
319
- },
320
- setting: {
321
- id: 'roundedBtnV2',
322
- state: 'hover'
323
- }
324
- },
325
- {
326
- label: {
327
- en: 'Shadow'
346
+ }
347
+ ],
348
+ moreSettings: {
349
+ type: 'collapse',
350
+ controls: [
351
+ {
352
+ label: {
353
+ en: 'Border'
354
+ },
355
+ setting: {
356
+ id: 'borderBtnV2',
357
+ state: 'hover'
358
+ }
328
359
  },
329
- setting: {
330
- id: 'boxShadowBtnV2',
331
- state: 'hover'
360
+ {
361
+ label: {
362
+ en: 'Corner'
363
+ },
364
+ setting: {
365
+ id: 'roundedBtnV2',
366
+ state: 'hover'
367
+ }
332
368
  },
333
- controlConfig: {
334
- id: 'boxShadowBtnV2',
335
- type: 'shadow-v2'
369
+ {
370
+ label: {
371
+ en: 'Shadow'
372
+ },
373
+ setting: {
374
+ id: 'boxShadowBtnV2',
375
+ state: 'hover'
376
+ },
377
+ options: {
378
+ updateFields: [
379
+ {
380
+ field: 'enable',
381
+ settingId: 'hasBoxShadowBtn',
382
+ state: 'hover'
383
+ }
384
+ ]
385
+ },
386
+ controlChangeTrigger: {
387
+ settings: [
388
+ {
389
+ condition: `boxShadowBtnV2.hover.enable === true`,
390
+ source: [
391
+ 'boxShadowBtnV2',
392
+ 'hasBoxShadowBtn'
393
+ ],
394
+ action: {
395
+ controlId: 'hasBoxShadowBtn',
396
+ groupType: 'advanced',
397
+ controlType: 'advanced',
398
+ state: 'hover',
399
+ newValue: true
400
+ }
401
+ },
402
+ {
403
+ condition: `boxShadowBtnV2.hover.enable === false`,
404
+ source: [
405
+ 'boxShadowBtnV2',
406
+ 'hasBoxShadowBtn'
407
+ ],
408
+ action: {
409
+ controlId: 'hasBoxShadowBtn',
410
+ groupType: 'advanced',
411
+ controlType: 'advanced',
412
+ state: 'hover',
413
+ newValue: false
414
+ }
415
+ }
416
+ ],
417
+ options: {
418
+ noRecordHistory: true
419
+ }
420
+ }
336
421
  }
337
- }
338
- ]
422
+ ]
423
+ }
339
424
  },
340
425
  // {
341
426
  // label: {
@@ -154,9 +154,49 @@ const SettingUIV2 = [
154
154
  id: 'boxShadowBtnV2',
155
155
  state: 'normal'
156
156
  },
157
- controlConfig: {
158
- id: 'boxShadowBtnV2',
159
- type: 'shadow-v2'
157
+ options: {
158
+ updateFields: [
159
+ {
160
+ field: 'enable',
161
+ settingId: 'hasBoxShadowBtn',
162
+ state: 'normal'
163
+ }
164
+ ]
165
+ },
166
+ controlChangeTrigger: {
167
+ settings: [
168
+ {
169
+ condition: `boxShadowBtnV2.normal.enable === true`,
170
+ source: [
171
+ 'boxShadowBtnV2',
172
+ 'hasBoxShadowBtn'
173
+ ],
174
+ action: {
175
+ controlId: 'hasBoxShadowBtn',
176
+ groupType: 'advanced',
177
+ controlType: 'advanced',
178
+ state: 'normal',
179
+ newValue: true
180
+ }
181
+ },
182
+ {
183
+ condition: `boxShadowBtnV2.normal.enable === false`,
184
+ source: [
185
+ 'boxShadowBtnV2',
186
+ 'hasBoxShadowBtn'
187
+ ],
188
+ action: {
189
+ controlId: 'hasBoxShadowBtn',
190
+ groupType: 'advanced',
191
+ controlType: 'advanced',
192
+ state: 'normal',
193
+ newValue: false
194
+ }
195
+ }
196
+ ],
197
+ options: {
198
+ noRecordHistory: true
199
+ }
160
200
  }
161
201
  }
162
202
  ]
@@ -363,9 +403,49 @@ const SettingUIV2 = [
363
403
  id: 'boxShadowBtnV2',
364
404
  state: 'hover'
365
405
  },
366
- controlConfig: {
367
- id: 'boxShadowBtnV2',
368
- type: 'shadow-v2'
406
+ options: {
407
+ updateFields: [
408
+ {
409
+ field: 'enable',
410
+ settingId: 'hasBoxShadowBtn',
411
+ state: 'hover'
412
+ }
413
+ ]
414
+ },
415
+ controlChangeTrigger: {
416
+ settings: [
417
+ {
418
+ condition: `boxShadowBtnV2.hover.enable === true`,
419
+ source: [
420
+ 'boxShadowBtnV2',
421
+ 'hasBoxShadowBtn'
422
+ ],
423
+ action: {
424
+ controlId: 'hasBoxShadowBtn',
425
+ groupType: 'advanced',
426
+ controlType: 'advanced',
427
+ state: 'hover',
428
+ newValue: true
429
+ }
430
+ },
431
+ {
432
+ condition: `boxShadowBtnV2.hover.enable === false`,
433
+ source: [
434
+ 'boxShadowBtnV2',
435
+ 'hasBoxShadowBtn'
436
+ ],
437
+ action: {
438
+ controlId: 'hasBoxShadowBtn',
439
+ groupType: 'advanced',
440
+ controlType: 'advanced',
441
+ state: 'hover',
442
+ newValue: false
443
+ }
444
+ }
445
+ ],
446
+ options: {
447
+ noRecordHistory: true
448
+ }
369
449
  }
370
450
  }
371
451
  ]
@@ -180,9 +180,49 @@ const SettingUIV2 = [
180
180
  id: 'boxShadowBtnV2',
181
181
  state: 'normal'
182
182
  },
183
- controlConfig: {
184
- id: 'boxShadowBtnV2',
185
- type: 'shadow-v2'
183
+ options: {
184
+ updateFields: [
185
+ {
186
+ field: 'enable',
187
+ settingId: 'hasBoxShadowBtn',
188
+ state: 'normal'
189
+ }
190
+ ]
191
+ },
192
+ controlChangeTrigger: {
193
+ settings: [
194
+ {
195
+ condition: `boxShadowBtnV2.normal.enable === true`,
196
+ source: [
197
+ 'boxShadowBtnV2',
198
+ 'hasBoxShadowBtn'
199
+ ],
200
+ action: {
201
+ controlId: 'hasBoxShadowBtn',
202
+ groupType: 'advanced',
203
+ controlType: 'advanced',
204
+ state: 'normal',
205
+ newValue: true
206
+ }
207
+ },
208
+ {
209
+ condition: `boxShadowBtnV2.normal.enable === false`,
210
+ source: [
211
+ 'boxShadowBtnV2',
212
+ 'hasBoxShadowBtn'
213
+ ],
214
+ action: {
215
+ controlId: 'hasBoxShadowBtn',
216
+ groupType: 'advanced',
217
+ controlType: 'advanced',
218
+ state: 'normal',
219
+ newValue: false
220
+ }
221
+ }
222
+ ],
223
+ options: {
224
+ noRecordHistory: true
225
+ }
186
226
  }
187
227
  }
188
228
  ]
@@ -343,9 +383,49 @@ const SettingUIV2 = [
343
383
  id: 'boxShadowBtnV2',
344
384
  state: 'hover'
345
385
  },
346
- controlConfig: {
347
- id: 'boxShadowBtnV2',
348
- type: 'shadow-v2'
386
+ options: {
387
+ updateFields: [
388
+ {
389
+ field: 'enable',
390
+ settingId: 'hasBoxShadowBtn',
391
+ state: 'hover'
392
+ }
393
+ ]
394
+ },
395
+ controlChangeTrigger: {
396
+ settings: [
397
+ {
398
+ condition: `boxShadowBtnV2.hover.enable === true`,
399
+ source: [
400
+ 'boxShadowBtnV2',
401
+ 'hasBoxShadowBtn'
402
+ ],
403
+ action: {
404
+ controlId: 'hasBoxShadowBtn',
405
+ groupType: 'advanced',
406
+ controlType: 'advanced',
407
+ state: 'hover',
408
+ newValue: true
409
+ }
410
+ },
411
+ {
412
+ condition: `boxShadowBtnV2.normal.enable === false`,
413
+ source: [
414
+ 'boxShadowBtnV2',
415
+ 'hasBoxShadowBtn'
416
+ ],
417
+ action: {
418
+ controlId: 'hasBoxShadowBtn',
419
+ groupType: 'advanced',
420
+ controlType: 'advanced',
421
+ state: 'normal',
422
+ newValue: false
423
+ }
424
+ }
425
+ ],
426
+ options: {
427
+ noRecordHistory: true
428
+ }
349
429
  }
350
430
  }
351
431
  ]
@@ -95,9 +95,49 @@ const SettingUIV2 = [
95
95
  id: 'boxShadow',
96
96
  state: 'normal'
97
97
  },
98
- controlConfig: {
99
- id: 'boxShadow',
100
- type: 'shadow-v2'
98
+ options: {
99
+ updateFields: [
100
+ {
101
+ field: 'enable',
102
+ settingId: 'hasBoxShadow',
103
+ state: 'normal'
104
+ }
105
+ ]
106
+ },
107
+ controlChangeTrigger: {
108
+ settings: [
109
+ {
110
+ condition: `boxShadow.normal.enable === true`,
111
+ source: [
112
+ 'boxShadow',
113
+ 'hasBoxShadow'
114
+ ],
115
+ action: {
116
+ controlId: 'hasBoxShadow',
117
+ groupType: 'advanced',
118
+ controlType: 'advanced',
119
+ state: 'normal',
120
+ newValue: true
121
+ }
122
+ },
123
+ {
124
+ condition: `boxShadow.normal.enable === false`,
125
+ source: [
126
+ 'boxShadow',
127
+ 'hasBoxShadow'
128
+ ],
129
+ action: {
130
+ controlId: 'hasBoxShadow',
131
+ groupType: 'advanced',
132
+ controlType: 'advanced',
133
+ state: 'normal',
134
+ newValue: false
135
+ }
136
+ }
137
+ ],
138
+ options: {
139
+ noRecordHistory: true
140
+ }
101
141
  }
102
142
  }
103
143
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.381",
3
+ "version": "2.0.0-dev.383",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",