@gem-sdk/components 2.0.0-dev.555 → 2.0.0-dev.557

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 (48) hide show
  1. package/dist/cjs/carousel/carousel-item/CarouselItem.js +4 -2
  2. package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +10 -2
  3. package/dist/cjs/carousel/setting/configs/settingV2.js +6 -4
  4. package/dist/cjs/carousel/setting/configs/uiV2.js +4 -1
  5. package/dist/cjs/post-purchase/product/settings/product-offer/ui/uiV2.js +0 -3
  6. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -23
  7. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +29 -7
  8. package/dist/cjs/product/components/ProductImagesV2/common/getStyle.js +3 -3
  9. package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  10. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
  11. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
  12. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
  13. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  14. package/dist/cjs/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
  15. package/dist/cjs/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
  16. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
  17. package/dist/cjs/product/components/ProductImagesV2/index.js +2 -4
  18. package/dist/cjs/product/components/ProductImagesV2/index.liquid.js +1 -1
  19. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
  20. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
  21. package/dist/cjs/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +118 -0
  22. package/dist/cjs/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +119 -0
  23. package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +193 -415
  24. package/dist/esm/carousel/carousel-item/CarouselItem.js +4 -2
  25. package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +10 -2
  26. package/dist/esm/carousel/setting/configs/settingV2.js +6 -4
  27. package/dist/esm/carousel/setting/configs/uiV2.js +4 -1
  28. package/dist/esm/post-purchase/product/settings/product-offer/ui/uiV2.js +0 -3
  29. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -23
  30. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +29 -7
  31. package/dist/esm/product/components/ProductImagesV2/common/getStyle.js +3 -3
  32. package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  33. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
  34. package/dist/esm/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
  35. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
  36. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  37. package/dist/esm/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
  38. package/dist/esm/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
  39. package/dist/esm/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
  40. package/dist/esm/product/components/ProductImagesV2/index.js +2 -4
  41. package/dist/esm/product/components/ProductImagesV2/index.liquid.js +1 -1
  42. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
  43. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
  44. package/dist/esm/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +116 -0
  45. package/dist/esm/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +117 -0
  46. package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +193 -415
  47. package/dist/types/index.d.ts +4 -8
  48. package/package.json +2 -2
@@ -1,5 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var ImageListNavigation = require('./ui/ImageListNavigation.js');
4
+ var FeatureNavigation = require('./ui/FeatureNavigation.js');
5
+
3
6
  const showGallerySliderSetting = '((type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col")';
4
7
  const showFeaturedImage = '(["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position))';
5
8
  const showGalleryHoverAction = '(position == "one-col" || position == "two-col")';
@@ -51,14 +54,6 @@ const SettingUIV2 = [
51
54
  },
52
55
  conditionDisplay: showFeaturedImage,
53
56
  controls: [
54
- {
55
- label: {
56
- en: 'Slider'
57
- },
58
- setting: {
59
- id: 'ftSlidesEnable'
60
- }
61
- },
62
57
  {
63
58
  setting: {
64
59
  id: 'ftShape'
@@ -83,57 +78,145 @@ const SettingUIV2 = [
83
78
  noRecordHistory: true
84
79
  }
85
80
  }
81
+ },
82
+ {
83
+ conditionDisplay: "ftShape.shape !== 'original'",
84
+ label: {
85
+ en: 'Image scale'
86
+ },
87
+ setting: {
88
+ id: 'ftLayout'
89
+ }
90
+ },
91
+ {
92
+ ...FeatureNavigation.FeatureNavigation,
93
+ conditionDisplay: `${showFeaturedImage}`
86
94
  }
87
95
  ],
88
96
  moreSettings: {
89
97
  type: 'collapse',
90
98
  controls: [
91
99
  {
92
- conditionDisplay: "ftShape.shape !== 'original'",
93
100
  label: {
94
- en: 'Image scale'
101
+ en: 'Corner'
95
102
  },
96
103
  setting: {
97
- id: 'ftLayout'
104
+ id: 'ftCorner'
98
105
  }
99
106
  },
100
107
  {
108
+ type: 'combo',
101
109
  label: {
102
- en: 'Corner'
110
+ en: 'Hover action'
103
111
  },
104
- setting: {
105
- id: 'ftCorner'
106
- }
112
+ conditionDisplay: showFeaturedImage,
113
+ iconName: 'gp-trigger-action-hover',
114
+ getValueFromSettingID: 'hoverEffect',
115
+ isShowSettingTitle: true,
116
+ defaultValueWhenClear: 'none',
117
+ compoDefaultValue: 'zoom',
118
+ controls: [
119
+ {
120
+ label: {
121
+ en: 'When hover'
122
+ },
123
+ setting: {
124
+ id: 'hoverEffect'
125
+ }
126
+ },
127
+ {
128
+ label: {
129
+ en: 'Zoom type'
130
+ },
131
+ conditionDisplay: 'hoverEffect == "zoom"',
132
+ setting: {
133
+ id: 'zoomType'
134
+ }
135
+ },
136
+ {
137
+ label: {
138
+ en: 'Zoom value'
139
+ },
140
+ conditionDisplay: 'hoverEffect == "zoom"',
141
+ setting: {
142
+ id: 'zoom'
143
+ }
144
+ },
145
+ {
146
+ label: {
147
+ en: 'Other image'
148
+ },
149
+ conditionDisplay: 'hoverEffect == "other"',
150
+ setting: {
151
+ id: 'otherImage'
152
+ }
153
+ }
154
+ ]
107
155
  },
108
156
  {
109
157
  type: 'combo',
110
- fixedValue: 'Custom',
111
- iconName: 'polaris-edit',
112
158
  label: {
113
- en: 'Featured slider'
159
+ en: 'Click action'
114
160
  },
115
- setting: {
116
- id: 'ftSlidesActionEnable'
117
- },
118
- conditionDisplay: 'ftSlidesEnable === true',
161
+ iconName: 'gp-trigger-action-click',
162
+ conditionDisplay: showFeaturedImage,
163
+ getValueFromSettingID: 'ftClickOpenLightBox',
164
+ isShowSettingTitle: true,
165
+ defaultValueWhenClear: 'none',
166
+ compoDefaultValue: 'popup',
119
167
  controls: [
120
168
  {
121
169
  label: {
122
- en: 'Drag to slide'
170
+ en: 'After click'
123
171
  },
124
172
  setting: {
125
- id: 'ftDragToScroll'
173
+ id: 'ftClickOpenLightBox'
126
174
  }
127
175
  },
128
176
  {
129
177
  label: {
130
- en: 'Loop'
178
+ en: 'Open new tab'
131
179
  },
132
180
  setting: {
133
- id: 'ftLoop'
134
- }
181
+ id: 'ftClickOpenNewTab'
182
+ },
183
+ conditionDisplay: `ftClickOpenLightBox === "product-link"`
135
184
  }
136
185
  ]
186
+ },
187
+ {
188
+ type: 'control',
189
+ label: {
190
+ en: 'Slide speed'
191
+ },
192
+ setting: {
193
+ id: 'ftAnimationSpeed'
194
+ }
195
+ },
196
+ {
197
+ type: 'control',
198
+ label: {
199
+ en: 'Animation'
200
+ },
201
+ setting: {
202
+ id: 'ftAnimationMode'
203
+ }
204
+ },
205
+ {
206
+ label: {
207
+ en: 'Drag / swipe'
208
+ },
209
+ setting: {
210
+ id: 'ftDragToScroll'
211
+ }
212
+ },
213
+ {
214
+ label: {
215
+ en: 'Infinity loop'
216
+ },
217
+ setting: {
218
+ id: 'ftLoop'
219
+ }
137
220
  }
138
221
  ]
139
222
  }
@@ -208,80 +291,116 @@ const SettingUIV2 = [
208
291
  },
209
292
  setting: {
210
293
  id: 'itemSpacing'
294
+ }
295
+ },
296
+ {
297
+ conditionDisplay: `(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || (["inside-left", "inside-right"].includes(position) && shapeForInside.shape !== 'original') || (["inside-bottom"].includes(position) && shapeForInsideBottom.shape !== 'original') || (["bottom-left", "bottom-center"].includes(position) && shapeForBottom.shape !== 'original') || (["left", "right"].includes(position) && shape.shape !== 'original')`,
298
+ label: {
299
+ en: 'Image scale'
211
300
  },
212
- conditionDisplay: '!["one-col", "two-col"].includes(position)'
301
+ setting: {
302
+ id: 'layout'
303
+ }
304
+ },
305
+ {
306
+ ...ImageListNavigation.ImageListNavigation,
307
+ conditionDisplay: showGallerySliderSetting
213
308
  }
214
309
  ],
215
310
  moreSettings: {
216
311
  type: 'collapse',
217
312
  controls: [
218
313
  {
219
- conditionDisplay: `(position == 'one-col' && shapeFor1Col.shape !== 'original') || (position == 'two-col' && shapeFor2Col.shape !== 'original') || (position == 'only-feature' && shapeForFtOnly.shape !== 'original') || (["inside-left", "inside-right"].includes(position) && shapeForInside.shape !== 'original') || (["inside-bottom"].includes(position) && shapeForInsideBottom.shape !== 'original') || (["bottom-left", "bottom-center"].includes(position) && shapeForBottom.shape !== 'original') || (["left", "right"].includes(position) && shape.shape !== 'original')`,
220
314
  label: {
221
- en: 'Image scale'
315
+ en: 'Corner'
222
316
  },
223
317
  setting: {
224
- id: 'layout'
318
+ id: 'corner'
225
319
  }
226
320
  },
227
321
  {
228
322
  label: {
229
- en: 'Corner'
323
+ en: 'Active border'
230
324
  },
325
+ conditionDisplay: '!["one-col", "two-col"].includes(position)',
231
326
  setting: {
232
- id: 'corner'
327
+ id: 'borderActive'
233
328
  }
234
329
  },
235
330
  {
236
331
  type: 'combo',
237
332
  label: {
238
- en: 'Active effect'
333
+ en: 'Hover action'
239
334
  },
240
- setting: {
241
- id: 'activeEffectEnable'
242
- },
243
- fixedValue: 'Enable',
244
- iconName: 'polaris-edit',
335
+ conditionDisplay: showGalleryHoverAction,
336
+ iconName: 'gp-trigger-action-hover',
337
+ getValueFromSettingID: 'galleryHoverEffect',
338
+ defaultValueWhenClear: 'none',
339
+ compoDefaultValue: 'zoom',
245
340
  controls: [
246
341
  {
247
342
  label: {
248
- en: 'Border'
343
+ en: 'When hover'
344
+ },
345
+ setting: {
346
+ id: 'galleryHoverEffect'
347
+ },
348
+ conditionDisplay: 'galleryHoverEffect == "none"'
349
+ },
350
+ {
351
+ label: {
352
+ en: 'Zoom type'
249
353
  },
354
+ conditionDisplay: 'galleryHoverEffect == "zoom"',
250
355
  setting: {
251
- id: 'borderActive'
356
+ id: 'galleryZoomType'
252
357
  }
253
- }
254
- ]
255
- },
256
- {
257
- type: 'combo',
258
- fixedValue: 'Custom',
259
- iconName: 'polaris-edit',
260
- label: {
261
- en: 'Image list slider'
262
- },
263
- setting: {
264
- id: 'slidesActionEnable'
265
- },
266
- conditionDisplay: showGallerySliderSetting,
267
- controls: [
358
+ },
268
359
  {
269
360
  label: {
270
- en: 'Drag to slide'
361
+ en: 'Zoom value'
271
362
  },
363
+ conditionDisplay: 'galleryHoverEffect == "zoom"',
272
364
  setting: {
273
- id: 'dragToScroll'
365
+ id: 'galleryZoom'
274
366
  }
275
367
  },
276
368
  {
277
369
  label: {
278
- en: 'Loop'
370
+ en: 'Other image'
279
371
  },
372
+ conditionDisplay: 'galleryHoverEffect == "other"',
280
373
  setting: {
281
- id: 'loop'
374
+ id: 'otherImage'
282
375
  }
283
376
  }
284
377
  ]
378
+ },
379
+ {
380
+ label: {
381
+ en: 'Click action'
382
+ },
383
+ setting: {
384
+ id: 'clickOpenLightBox'
385
+ }
386
+ },
387
+ {
388
+ conditionDisplay: showGallerySliderSetting,
389
+ label: {
390
+ en: 'Drag / swipe'
391
+ },
392
+ setting: {
393
+ id: 'dragToScroll'
394
+ }
395
+ },
396
+ {
397
+ conditionDisplay: showGallerySliderSetting,
398
+ label: {
399
+ en: 'Infinity loop'
400
+ },
401
+ setting: {
402
+ id: 'loop'
403
+ }
285
404
  }
286
405
  ]
287
406
  }
@@ -290,6 +409,7 @@ const SettingUIV2 = [
290
409
  label: {
291
410
  en: 'Item spacing'
292
411
  },
412
+ conditionDisplay: '["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)',
293
413
  controls: [
294
414
  {
295
415
  label: {
@@ -297,222 +417,7 @@ const SettingUIV2 = [
297
417
  },
298
418
  setting: {
299
419
  id: 'spacing'
300
- },
301
- conditionDisplay: '["bottom-center", "left", "right", "inside-bottom", "inside-left", "inside-right"].includes(position)'
302
- },
303
- {
304
- label: {
305
- en: 'Gap'
306
- },
307
- setting: {
308
- id: 'itemSpacing'
309
- },
310
- conditionDisplay: '["one-col", "two-col"].includes(position)'
311
- }
312
- ]
313
- },
314
- {
315
- label: {
316
- en: 'Navigation'
317
- },
318
- conditionDisplay: `${showFeaturedImage} && ${showGallerySliderSetting}`,
319
- controls: [
320
- {
321
- type: 'combo',
322
- iconName: 'polaris-edit',
323
- getValueFromSettingID: 'ftNavigationPosition',
324
- getIconFromSettingID: 'ftArrowIcon',
325
- defaultValueWhenClear: 'none',
326
- compoDefaultValue: 'outside',
327
- label: {
328
- en: 'Navigation'
329
- },
330
- conditionDisplay: `ftSlidesEnable === true && ${showFeaturedImage}`,
331
- controls: [
332
- {
333
- type: 'group',
334
- label: {
335
- en: 'Layout'
336
- },
337
- controls: [
338
- {
339
- label: {
340
- en: 'Choose'
341
- },
342
- setting: {
343
- id: 'ftNavigationPosition'
344
- }
345
- }
346
- ]
347
- },
348
- {
349
- type: 'group',
350
- label: {
351
- en: 'Icon'
352
- },
353
- conditionDisplay: 'ftNavigationPosition !== "none"',
354
- controls: [
355
- {
356
- label: {
357
- en: 'Choose'
358
- },
359
- setting: {
360
- id: 'ftArrowIcon'
361
- }
362
- },
363
- {
364
- label: {
365
- en: 'Color'
366
- },
367
- setting: {
368
- id: 'ftArrowIconColor'
369
- }
370
- }
371
- ]
372
- },
373
- {
374
- type: 'group',
375
- label: {
376
- en: 'Button'
377
- },
378
- conditionDisplay: 'ftNavigationPosition !== "none"',
379
- controls: [
380
- {
381
- label: {
382
- en: 'Background'
383
- },
384
- setting: {
385
- id: 'ftArrowNavColor'
386
- }
387
- }
388
- ]
389
- },
390
- {
391
- type: 'group',
392
- label: {
393
- en: 'Shape'
394
- },
395
- conditionDisplay: 'ftNavigationPosition !== "none"',
396
- controls: [
397
- {
398
- label: {
399
- en: 'Border'
400
- },
401
- setting: {
402
- id: 'ftArrowNavBorder'
403
- }
404
- },
405
- {
406
- label: {
407
- en: 'Corner'
408
- },
409
- setting: {
410
- id: 'ftArrowNavRadius'
411
- }
412
- }
413
- ]
414
- }
415
- ]
416
- },
417
- {
418
- type: 'combo',
419
- iconName: 'polaris-edit',
420
- getValueFromSettingID: 'navigationPosition',
421
- getIconFromSettingID: 'arrowIcon',
422
- defaultValueWhenClear: 'none',
423
- compoDefaultValue: 'outside',
424
- label: {
425
- en: 'Image list'
426
- },
427
- popoverLabel: {
428
- en: 'Navigation'
429
- },
430
- conditionDisplay: `${showGallerySliderSetting} && ${showImageListSetting}`,
431
- controls: [
432
- {
433
- type: 'group',
434
- label: {
435
- en: 'Layout'
436
- },
437
- controls: [
438
- {
439
- label: {
440
- en: 'Choose'
441
- },
442
- setting: {
443
- id: 'navigationPosition'
444
- }
445
- }
446
- ]
447
- },
448
- {
449
- type: 'group',
450
- label: {
451
- en: 'Icon'
452
- },
453
- conditionDisplay: `navigationPosition !== "none" & ${showGallerySliderSetting}`,
454
- controls: [
455
- {
456
- label: {
457
- en: 'Choose'
458
- },
459
- setting: {
460
- id: 'arrowIcon'
461
- }
462
- },
463
- {
464
- label: {
465
- en: 'Color'
466
- },
467
- setting: {
468
- id: 'arrowIconColor'
469
- }
470
- }
471
- ]
472
- },
473
- {
474
- type: 'group',
475
- label: {
476
- en: 'Button'
477
- },
478
- conditionDisplay: `navigationPosition !== "none" & ${showGallerySliderSetting}`,
479
- controls: [
480
- {
481
- label: {
482
- en: 'Background'
483
- },
484
- setting: {
485
- id: 'arrowNavColor'
486
- }
487
- }
488
- ]
489
- },
490
- {
491
- type: 'group',
492
- label: {
493
- en: 'Shape'
494
- },
495
- conditionDisplay: `navigationPosition !== "none" & ${showGallerySliderSetting}`,
496
- controls: [
497
- {
498
- label: {
499
- en: 'Border'
500
- },
501
- setting: {
502
- id: 'arrowNavBorder'
503
- }
504
- },
505
- {
506
- label: {
507
- en: 'Corner'
508
- },
509
- setting: {
510
- id: 'arrowNavRadius'
511
- }
512
- }
513
- ]
514
- }
515
- ]
420
+ }
516
421
  }
517
422
  ]
518
423
  },
@@ -520,6 +425,7 @@ const SettingUIV2 = [
520
425
  label: {
521
426
  en: 'Pre-display product image'
522
427
  },
428
+ conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',
523
429
  controls: [
524
430
  {
525
431
  label: {
@@ -528,154 +434,17 @@ const SettingUIV2 = [
528
434
  setting: {
529
435
  id: 'preDisplay'
530
436
  }
531
- },
532
- {
533
- label: {
534
- en: 'Preload'
535
- },
536
- setting: {
537
- id: 'preload'
538
- }
539
- }
540
- ],
541
- conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)'
542
- },
543
- {
544
- label: {
545
- en: 'Action'
546
- },
547
- controls: [
548
- {
549
- type: 'combo',
550
- label: {
551
- en: 'Featured'
552
- },
553
- popoverLabel: {
554
- en: 'Feature image action'
555
- },
556
- setting: {
557
- id: 'ftActionEnable'
558
- },
559
- fixedValue: 'Enable',
560
- iconName: 'polaris-edit',
561
- conditionDisplay: showFeaturedImage,
562
- controls: [
563
- {
564
- label: {
565
- en: 'When hover'
566
- },
567
- setting: {
568
- id: 'hoverEffect'
569
- }
570
- },
571
- {
572
- label: {
573
- en: 'Zoom type'
574
- },
575
- conditionDisplay: 'hoverEffect == "zoom"',
576
- setting: {
577
- id: 'zoomType'
578
- }
579
- },
580
- {
581
- label: {
582
- en: 'Zoom value'
583
- },
584
- conditionDisplay: 'hoverEffect == "zoom"',
585
- setting: {
586
- id: 'zoom'
587
- }
588
- },
589
- {
590
- label: {
591
- en: 'Other image'
592
- },
593
- conditionDisplay: 'hoverEffect == "other"',
594
- setting: {
595
- id: 'otherImage'
596
- }
597
- },
598
- {
599
- label: {
600
- en: 'After click'
601
- },
602
- setting: {
603
- id: 'ftClickOpenLightBox'
604
- }
605
- },
606
- {
607
- label: {
608
- en: 'Open link in'
609
- },
610
- setting: {
611
- id: 'ftClickOpenNewTab'
612
- },
613
- conditionDisplay: `ftClickOpenLightBox === "product-link"`
614
- }
615
- ]
616
- },
617
- {
618
- type: 'combo',
619
- label: {
620
- en: 'Image list'
621
- },
622
- popoverLabel: {
623
- en: 'Image list action'
624
- },
625
- conditionDisplay: showImageListSetting,
626
- setting: {
627
- id: 'actionEnable'
628
- },
629
- fixedValue: 'Enable',
630
- iconName: 'polaris-edit',
631
- controls: [
632
- {
633
- label: {
634
- en: 'When hover'
635
- },
636
- setting: {
637
- id: 'galleryHoverEffect'
638
- },
639
- conditionDisplay: showGalleryHoverAction
640
- },
641
- {
642
- label: {
643
- en: 'Zoom type'
644
- },
645
- conditionDisplay: `galleryHoverEffect == "zoom" && ${showGalleryHoverAction}`,
646
- setting: {
647
- id: 'galleryZoomType'
648
- }
649
- },
650
- {
651
- label: {
652
- en: 'Zoom value'
653
- },
654
- conditionDisplay: `galleryHoverEffect == "zoom" && ${showGalleryHoverAction}`,
655
- setting: {
656
- id: 'galleryZoom'
657
- }
658
- },
659
- {
660
- label: {
661
- en: 'Click'
662
- },
663
- setting: {
664
- id: 'clickOpenLightBox'
665
- }
666
- }
667
- ]
668
437
  }
669
438
  ]
670
439
  },
671
440
  {
672
441
  label: {
673
- en: 'Quality'
442
+ en: 'Optimize LCP'
674
443
  },
675
444
  controls: [
676
445
  {
677
446
  label: {
678
- en: 'Choose'
447
+ en: 'Quality'
679
448
  },
680
449
  setting: {
681
450
  id: 'qualityType'
@@ -690,6 +459,15 @@ const SettingUIV2 = [
690
459
  setting: {
691
460
  id: 'qualityPercent'
692
461
  }
462
+ },
463
+ {
464
+ label: {
465
+ en: 'Preload'
466
+ },
467
+ conditionDisplay: '["bottom-center", "left", "right", "only-feature", "inside-bottom", "inside-left", "inside-right"].includes(position)',
468
+ setting: {
469
+ id: 'preload'
470
+ }
693
471
  }
694
472
  ]
695
473
  },