@gem-sdk/components 2.0.0-dev.289 → 2.0.0-dev.294

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 (74) hide show
  1. package/dist/cjs/accordion/components/common/styles.js +1 -2
  2. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +1 -1
  3. package/dist/cjs/carousel/components/Carousel.js +2 -3
  4. package/dist/cjs/carousel/components/CarouselItem.js +6 -2
  5. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +1 -1
  6. package/dist/cjs/grid/row/commons/getAttr.js +3 -2
  7. package/dist/cjs/image/components/AdaptiveImage.js +1 -1
  8. package/dist/cjs/image/components/AdaptiveImage.liquid.js +4 -4
  9. package/dist/cjs/image/components/Image.js +1 -5
  10. package/dist/cjs/image/components/common/styles.js +2 -2
  11. package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
  12. package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +3 -3
  13. package/dist/cjs/post-purchase/button/setting/configs/settings.js +10 -8
  14. package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +1 -2
  15. package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +8 -0
  16. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +3 -3
  17. package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +2 -1
  18. package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
  19. package/dist/cjs/product/components/Product.js +3 -3
  20. package/dist/cjs/product/components/ProductImagesV2/jsx/ProductImages.js +1 -5
  21. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductFeatureVideo.js +36 -0
  22. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductFeaturedImageOnly.js +83 -51
  23. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +3 -1
  24. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +3 -2
  25. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductImagesLightBox.js +29 -11
  26. package/dist/cjs/product/setting/product/configs/uiV2.js +2 -2
  27. package/dist/cjs/product/setting/product-image-v2/ProductFeatureImage.js +0 -363
  28. package/dist/cjs/product/setting/product-image-v2/ProductGalleryImage.js +0 -493
  29. package/dist/cjs/product/setting/product-image-v2/ProductImages.js +1 -3
  30. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -5
  31. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +4 -7
  32. package/dist/cjs/setting.js +2 -2
  33. package/dist/cjs/third-party/components/RechargeSubscriptions.liquid.js +1 -1
  34. package/dist/cjs/third-party/setting/RechargeSubscriptions.js +5 -2
  35. package/dist/cjs/video/components/Video.js +1 -1
  36. package/dist/esm/accordion/components/common/styles.js +1 -2
  37. package/dist/esm/banner/components/HeroBannerItem.liquid.js +1 -1
  38. package/dist/esm/carousel/components/Carousel.js +2 -3
  39. package/dist/esm/carousel/components/CarouselItem.js +6 -2
  40. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +1 -1
  41. package/dist/esm/grid/row/commons/getAttr.js +3 -2
  42. package/dist/esm/image/components/AdaptiveImage.js +2 -2
  43. package/dist/esm/image/components/AdaptiveImage.liquid.js +4 -4
  44. package/dist/esm/image/components/Image.js +2 -6
  45. package/dist/esm/image/components/common/styles.js +2 -2
  46. package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
  47. package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +3 -3
  48. package/dist/esm/post-purchase/button/setting/configs/settings.js +10 -8
  49. package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +2 -3
  50. package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +8 -1
  51. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +3 -3
  52. package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +2 -1
  53. package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
  54. package/dist/esm/product/components/Product.js +3 -3
  55. package/dist/esm/product/components/ProductImagesV2/jsx/ProductImages.js +1 -5
  56. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductFeatureVideo.js +32 -0
  57. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductFeaturedImageOnly.js +84 -52
  58. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +3 -1
  59. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +3 -2
  60. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductImagesLightBox.js +31 -13
  61. package/dist/esm/product/setting/product/configs/uiV2.js +2 -2
  62. package/dist/esm/product/setting/product-image-v2/ProductFeatureImage.js +1 -361
  63. package/dist/esm/product/setting/product-image-v2/ProductGalleryImage.js +1 -492
  64. package/dist/esm/product/setting/product-image-v2/ProductImages.js +1 -3
  65. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -5
  66. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +4 -7
  67. package/dist/esm/setting.js +2 -2
  68. package/dist/esm/third-party/components/RechargeSubscriptions.liquid.js +1 -1
  69. package/dist/esm/third-party/setting/RechargeSubscriptions.js +5 -2
  70. package/dist/esm/video/components/Video.js +2 -2
  71. package/dist/types/index.d.ts +2 -0
  72. package/package.json +2 -2
  73. package/dist/cjs/product/setting/product-image-v2/configs/settings.js +0 -327
  74. package/dist/esm/product/setting/product-image-v2/configs/settings.js +0 -325
@@ -1,327 +0,0 @@
1
- 'use strict';
2
-
3
- var ProductFeatureImage = require('../ProductFeatureImage.js');
4
- var ProductGalleryImage = require('../ProductGalleryImage.js');
5
-
6
- const getDefaultResponsive = (defaultValue)=>{
7
- return {
8
- desktop: {
9
- default: defaultValue
10
- }
11
- };
12
- };
13
- const ProductImageSettings = [
14
- {
15
- id: 'setting',
16
- controls: [
17
- {
18
- id: 'displayByVariant',
19
- label: 'Option Label',
20
- type: 'toggle',
21
- default: false
22
- },
23
- {
24
- id: 'variantSelect',
25
- type: 'variant:listing'
26
- },
27
- {
28
- id: 'select-display',
29
- type: 'group',
30
- label: 'Select images to display',
31
- controls: ProductFeatureImage.productSelectDisplaySetting
32
- },
33
- {
34
- id: 'featured-image',
35
- type: 'group',
36
- label: 'Featured Image',
37
- controls: ProductFeatureImage.productFeatureImageSetting
38
- },
39
- {
40
- id: 'gallery-images',
41
- type: 'group',
42
- label: 'Gallery Images',
43
- controls: ProductGalleryImage.productGalleryImageSetting
44
- },
45
- {
46
- id: 'qualityType',
47
- type: 'select',
48
- label: 'Quality',
49
- devices: {
50
- desktop: {
51
- default: 'high'
52
- }
53
- },
54
- options: [
55
- {
56
- title: 'Finest',
57
- value: 'finest'
58
- },
59
- {
60
- title: 'High',
61
- value: 'high'
62
- },
63
- {
64
- title: 'Medium',
65
- value: 'medium'
66
- },
67
- {
68
- title: 'Custom',
69
- value: 'custom',
70
- tooltip: 'You can choose it for advanced page loading optimization.'
71
- }
72
- ]
73
- },
74
- {
75
- id: 'preload',
76
- type: 'toggle',
77
- label: 'Preload',
78
- default: false
79
- },
80
- {
81
- id: 'qualityPercent',
82
- type: 'input:slider',
83
- label: '',
84
- units: [
85
- '%'
86
- ],
87
- min: 100,
88
- max: 400,
89
- step: 50,
90
- useOnlyUnitInit: true,
91
- devices: {
92
- desktop: {
93
- default: 100
94
- }
95
- }
96
- },
97
- {
98
- id: 'ftDotStyle',
99
- label: 'Dot style',
100
- type: 'layout-segment',
101
- iconViewBox: '0 0 77 48',
102
- enableItemBackground: true,
103
- enableTooltip: true,
104
- options: [
105
- {
106
- label: 'None',
107
- value: 'none',
108
- type: 'carousel-dot',
109
- isTextIcon: true
110
- },
111
- {
112
- label: 'Inside',
113
- value: 'inside',
114
- type: 'carousel-dot'
115
- },
116
- {
117
- label: 'Outside',
118
- value: 'outside',
119
- type: 'carousel-dot'
120
- }
121
- ],
122
- devices: {
123
- desktop: {
124
- default: 'none'
125
- }
126
- }
127
- },
128
- {
129
- id: 'ftDotSize',
130
- label: 'Dots size',
131
- type: 'input:stepper',
132
- min: 1,
133
- devices: {
134
- desktop: {
135
- default: 12
136
- }
137
- }
138
- },
139
- {
140
- id: 'ftDotGapToCarousel',
141
- label: 'Gap to carousel',
142
- type: 'input:unit',
143
- useOnlyUnitInit: true,
144
- units: [
145
- 'px'
146
- ],
147
- min: 0,
148
- devices: {
149
- desktop: {
150
- default: 16
151
- }
152
- }
153
- },
154
- {
155
- id: 'ftDotColor',
156
- label: 'Dot color',
157
- type: 'colorpicker',
158
- devices: {
159
- desktop: {
160
- default: 'bg-1'
161
- }
162
- }
163
- },
164
- {
165
- id: 'ftDotActiveColor',
166
- label: 'Dot color active',
167
- type: 'colorpicker',
168
- devices: {
169
- desktop: {
170
- default: 'line-3'
171
- }
172
- }
173
- }
174
- ]
175
- },
176
- {
177
- id: 'style',
178
- controls: [
179
- {
180
- id: 'position',
181
- label: 'Layout',
182
- type: 'layout-segment',
183
- iconViewBox: '0 0 72 72',
184
- enableItemBackground: true,
185
- itemPerRow: 3,
186
- itemSpacing: 'large',
187
- options: [
188
- {
189
- label: 'Gallery bottom',
190
- value: 'bottom-center',
191
- type: 'p-image-layout'
192
- },
193
- {
194
- label: 'Gallery left',
195
- value: 'left',
196
- type: 'p-image-layout'
197
- },
198
- {
199
- label: 'Gallery right',
200
- value: 'right',
201
- type: 'p-image-layout'
202
- },
203
- {
204
- label: 'Featured only',
205
- value: 'only-feature',
206
- type: 'p-image-layout'
207
- },
208
- {
209
- label: 'Gallery 2 col',
210
- value: 'two-col',
211
- type: 'p-image-layout'
212
- },
213
- {
214
- label: 'Gallery 1 col',
215
- value: 'one-col',
216
- type: 'p-image-layout'
217
- },
218
- {
219
- label: 'Gallery inside bottom',
220
- value: 'inside-bottom',
221
- type: 'p-image-layout'
222
- },
223
- {
224
- label: 'Gallery inside left',
225
- value: 'inside-left',
226
- type: 'p-image-layout'
227
- },
228
- {
229
- label: 'Gallery inside right',
230
- value: 'inside-right',
231
- type: 'p-image-layout'
232
- }
233
- ],
234
- devices: {
235
- desktop: {
236
- default: 'bottom-center'
237
- },
238
- mobile: {
239
- default: 'bottom-center'
240
- }
241
- }
242
- },
243
- {
244
- id: 'spacing',
245
- label: 'Spacing Item',
246
- type: 'input:unit',
247
- units: [
248
- 'px'
249
- ],
250
- devices: {
251
- desktop: {
252
- default: 'var(--g-s-s)'
253
- },
254
- mobile: {
255
- default: 'var(--g-s-s)'
256
- }
257
- }
258
- },
259
- {
260
- id: 'ratioLayout',
261
- label: 'Ratio',
262
- type: 'grid-arrange',
263
- devices: {
264
- desktop: {
265
- default: [
266
- 2,
267
- 10
268
- ]
269
- }
270
- }
271
- },
272
- {
273
- id: 'ratioLayoutRight',
274
- label: 'Ratio',
275
- type: 'grid-arrange',
276
- devices: {
277
- desktop: {
278
- default: [
279
- 10,
280
- 2
281
- ]
282
- }
283
- }
284
- },
285
- {
286
- id: 'dimensions',
287
- type: 'group',
288
- label: 'Featured Image',
289
- controls: ProductFeatureImage.productFeatureImageStyle
290
- },
291
- {
292
- id: 'galleryStyles',
293
- type: 'group',
294
- label: 'Gallery',
295
- controls: ProductGalleryImage.productGalleryImageStyle
296
- },
297
- {
298
- id: 'align',
299
- label: 'Alignment',
300
- type: 'option:value',
301
- options: [
302
- {
303
- label: 'Start',
304
- value: 'flex-start',
305
- type: 'align-flex',
306
- tooltip: 'Align left'
307
- },
308
- {
309
- label: 'Center',
310
- value: 'center',
311
- type: 'align-flex',
312
- tooltip: 'Align center'
313
- },
314
- {
315
- label: 'End',
316
- value: 'flex-end',
317
- type: 'align-flex',
318
- tooltip: 'Align right'
319
- }
320
- ],
321
- devices: getDefaultResponsive('flex-start')
322
- }
323
- ]
324
- }
325
- ];
326
-
327
- exports.ProductImageSettings = ProductImageSettings;
@@ -1,325 +0,0 @@
1
- import { productSelectDisplaySetting, productFeatureImageSetting, productFeatureImageStyle } from '../ProductFeatureImage.js';
2
- import { productGalleryImageSetting, productGalleryImageStyle } from '../ProductGalleryImage.js';
3
-
4
- const getDefaultResponsive = (defaultValue)=>{
5
- return {
6
- desktop: {
7
- default: defaultValue
8
- }
9
- };
10
- };
11
- const ProductImageSettings = [
12
- {
13
- id: 'setting',
14
- controls: [
15
- {
16
- id: 'displayByVariant',
17
- label: 'Option Label',
18
- type: 'toggle',
19
- default: false
20
- },
21
- {
22
- id: 'variantSelect',
23
- type: 'variant:listing'
24
- },
25
- {
26
- id: 'select-display',
27
- type: 'group',
28
- label: 'Select images to display',
29
- controls: productSelectDisplaySetting
30
- },
31
- {
32
- id: 'featured-image',
33
- type: 'group',
34
- label: 'Featured Image',
35
- controls: productFeatureImageSetting
36
- },
37
- {
38
- id: 'gallery-images',
39
- type: 'group',
40
- label: 'Gallery Images',
41
- controls: productGalleryImageSetting
42
- },
43
- {
44
- id: 'qualityType',
45
- type: 'select',
46
- label: 'Quality',
47
- devices: {
48
- desktop: {
49
- default: 'high'
50
- }
51
- },
52
- options: [
53
- {
54
- title: 'Finest',
55
- value: 'finest'
56
- },
57
- {
58
- title: 'High',
59
- value: 'high'
60
- },
61
- {
62
- title: 'Medium',
63
- value: 'medium'
64
- },
65
- {
66
- title: 'Custom',
67
- value: 'custom',
68
- tooltip: 'You can choose it for advanced page loading optimization.'
69
- }
70
- ]
71
- },
72
- {
73
- id: 'preload',
74
- type: 'toggle',
75
- label: 'Preload',
76
- default: false
77
- },
78
- {
79
- id: 'qualityPercent',
80
- type: 'input:slider',
81
- label: '',
82
- units: [
83
- '%'
84
- ],
85
- min: 100,
86
- max: 400,
87
- step: 50,
88
- useOnlyUnitInit: true,
89
- devices: {
90
- desktop: {
91
- default: 100
92
- }
93
- }
94
- },
95
- {
96
- id: 'ftDotStyle',
97
- label: 'Dot style',
98
- type: 'layout-segment',
99
- iconViewBox: '0 0 77 48',
100
- enableItemBackground: true,
101
- enableTooltip: true,
102
- options: [
103
- {
104
- label: 'None',
105
- value: 'none',
106
- type: 'carousel-dot',
107
- isTextIcon: true
108
- },
109
- {
110
- label: 'Inside',
111
- value: 'inside',
112
- type: 'carousel-dot'
113
- },
114
- {
115
- label: 'Outside',
116
- value: 'outside',
117
- type: 'carousel-dot'
118
- }
119
- ],
120
- devices: {
121
- desktop: {
122
- default: 'none'
123
- }
124
- }
125
- },
126
- {
127
- id: 'ftDotSize',
128
- label: 'Dots size',
129
- type: 'input:stepper',
130
- min: 1,
131
- devices: {
132
- desktop: {
133
- default: 12
134
- }
135
- }
136
- },
137
- {
138
- id: 'ftDotGapToCarousel',
139
- label: 'Gap to carousel',
140
- type: 'input:unit',
141
- useOnlyUnitInit: true,
142
- units: [
143
- 'px'
144
- ],
145
- min: 0,
146
- devices: {
147
- desktop: {
148
- default: 16
149
- }
150
- }
151
- },
152
- {
153
- id: 'ftDotColor',
154
- label: 'Dot color',
155
- type: 'colorpicker',
156
- devices: {
157
- desktop: {
158
- default: 'bg-1'
159
- }
160
- }
161
- },
162
- {
163
- id: 'ftDotActiveColor',
164
- label: 'Dot color active',
165
- type: 'colorpicker',
166
- devices: {
167
- desktop: {
168
- default: 'line-3'
169
- }
170
- }
171
- }
172
- ]
173
- },
174
- {
175
- id: 'style',
176
- controls: [
177
- {
178
- id: 'position',
179
- label: 'Layout',
180
- type: 'layout-segment',
181
- iconViewBox: '0 0 72 72',
182
- enableItemBackground: true,
183
- itemPerRow: 3,
184
- itemSpacing: 'large',
185
- options: [
186
- {
187
- label: 'Gallery bottom',
188
- value: 'bottom-center',
189
- type: 'p-image-layout'
190
- },
191
- {
192
- label: 'Gallery left',
193
- value: 'left',
194
- type: 'p-image-layout'
195
- },
196
- {
197
- label: 'Gallery right',
198
- value: 'right',
199
- type: 'p-image-layout'
200
- },
201
- {
202
- label: 'Featured only',
203
- value: 'only-feature',
204
- type: 'p-image-layout'
205
- },
206
- {
207
- label: 'Gallery 2 col',
208
- value: 'two-col',
209
- type: 'p-image-layout'
210
- },
211
- {
212
- label: 'Gallery 1 col',
213
- value: 'one-col',
214
- type: 'p-image-layout'
215
- },
216
- {
217
- label: 'Gallery inside bottom',
218
- value: 'inside-bottom',
219
- type: 'p-image-layout'
220
- },
221
- {
222
- label: 'Gallery inside left',
223
- value: 'inside-left',
224
- type: 'p-image-layout'
225
- },
226
- {
227
- label: 'Gallery inside right',
228
- value: 'inside-right',
229
- type: 'p-image-layout'
230
- }
231
- ],
232
- devices: {
233
- desktop: {
234
- default: 'bottom-center'
235
- },
236
- mobile: {
237
- default: 'bottom-center'
238
- }
239
- }
240
- },
241
- {
242
- id: 'spacing',
243
- label: 'Spacing Item',
244
- type: 'input:unit',
245
- units: [
246
- 'px'
247
- ],
248
- devices: {
249
- desktop: {
250
- default: 'var(--g-s-s)'
251
- },
252
- mobile: {
253
- default: 'var(--g-s-s)'
254
- }
255
- }
256
- },
257
- {
258
- id: 'ratioLayout',
259
- label: 'Ratio',
260
- type: 'grid-arrange',
261
- devices: {
262
- desktop: {
263
- default: [
264
- 2,
265
- 10
266
- ]
267
- }
268
- }
269
- },
270
- {
271
- id: 'ratioLayoutRight',
272
- label: 'Ratio',
273
- type: 'grid-arrange',
274
- devices: {
275
- desktop: {
276
- default: [
277
- 10,
278
- 2
279
- ]
280
- }
281
- }
282
- },
283
- {
284
- id: 'dimensions',
285
- type: 'group',
286
- label: 'Featured Image',
287
- controls: productFeatureImageStyle
288
- },
289
- {
290
- id: 'galleryStyles',
291
- type: 'group',
292
- label: 'Gallery',
293
- controls: productGalleryImageStyle
294
- },
295
- {
296
- id: 'align',
297
- label: 'Alignment',
298
- type: 'option:value',
299
- options: [
300
- {
301
- label: 'Start',
302
- value: 'flex-start',
303
- type: 'align-flex',
304
- tooltip: 'Align left'
305
- },
306
- {
307
- label: 'Center',
308
- value: 'center',
309
- type: 'align-flex',
310
- tooltip: 'Align center'
311
- },
312
- {
313
- label: 'End',
314
- value: 'flex-end',
315
- type: 'align-flex',
316
- tooltip: 'Align right'
317
- }
318
- ],
319
- devices: getDefaultResponsive('flex-start')
320
- }
321
- ]
322
- }
323
- ];
324
-
325
- export { ProductImageSettings };