@gem-sdk/components 2.0.0-dev.288 → 2.0.0-dev.293

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 (58) 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/post-purchase/button/setting/configs/settings.js +10 -8
  8. package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +1 -2
  9. package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +8 -0
  10. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +3 -3
  11. package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +2 -1
  12. package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
  13. package/dist/cjs/product/components/Product.js +3 -3
  14. package/dist/cjs/product/components/Product.liquid.js +1 -1
  15. package/dist/cjs/product/components/ProductImagesV2/jsx/ProductImages.js +1 -5
  16. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductFeatureVideo.js +36 -0
  17. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductFeaturedImageOnly.js +83 -51
  18. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +3 -1
  19. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +3 -2
  20. package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductImagesLightBox.js +29 -11
  21. package/dist/cjs/product/setting/product-image-v2/ProductFeatureImage.js +0 -363
  22. package/dist/cjs/product/setting/product-image-v2/ProductGalleryImage.js +0 -493
  23. package/dist/cjs/product/setting/product-image-v2/ProductImages.js +1 -3
  24. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -5
  25. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +4 -7
  26. package/dist/cjs/setting.js +2 -2
  27. package/dist/cjs/video/components/Video.js +1 -1
  28. package/dist/esm/accordion/components/common/styles.js +1 -2
  29. package/dist/esm/banner/components/HeroBannerItem.liquid.js +1 -1
  30. package/dist/esm/carousel/components/Carousel.js +2 -3
  31. package/dist/esm/carousel/components/CarouselItem.js +6 -2
  32. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +1 -1
  33. package/dist/esm/grid/row/commons/getAttr.js +3 -2
  34. package/dist/esm/post-purchase/button/setting/configs/settings.js +10 -8
  35. package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +2 -3
  36. package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +8 -1
  37. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +3 -3
  38. package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +2 -1
  39. package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
  40. package/dist/esm/product/components/Product.js +3 -3
  41. package/dist/esm/product/components/Product.liquid.js +1 -1
  42. package/dist/esm/product/components/ProductImagesV2/jsx/ProductImages.js +1 -5
  43. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductFeatureVideo.js +32 -0
  44. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductFeaturedImageOnly.js +84 -52
  45. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +3 -1
  46. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +3 -2
  47. package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductImagesLightBox.js +31 -13
  48. package/dist/esm/product/setting/product-image-v2/ProductFeatureImage.js +1 -361
  49. package/dist/esm/product/setting/product-image-v2/ProductGalleryImage.js +1 -492
  50. package/dist/esm/product/setting/product-image-v2/ProductImages.js +1 -3
  51. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -5
  52. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +4 -7
  53. package/dist/esm/setting.js +2 -2
  54. package/dist/esm/video/components/Video.js +2 -2
  55. package/dist/types/index.d.ts +2 -0
  56. package/package.json +2 -2
  57. package/dist/cjs/product/setting/product-image-v2/configs/settings.js +0 -327
  58. package/dist/esm/product/setting/product-image-v2/configs/settings.js +0 -325
@@ -1,365 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var AnimationPlugin = require('../../../carousel/components/plugins/AnimationPlugin.js');
4
-
5
- const getDefaultResponsive = (defaultValue)=>{
6
- return {
7
- desktop: {
8
- default: defaultValue
9
- }
10
- };
11
- };
12
- const productFeatureImageSetting = [
13
- {
14
- id: 'hoverEffect',
15
- label: 'Hover Effect',
16
- type: 'select',
17
- hide: true,
18
- hideOnMode: {
19
- mobileOnly: true
20
- },
21
- options: [
22
- {
23
- title: 'None',
24
- value: 'none'
25
- },
26
- {
27
- title: 'Zoom',
28
- value: 'zoom'
29
- },
30
- {
31
- title: 'Show other image',
32
- value: 'other'
33
- }
34
- ],
35
- default: 'none'
36
- },
37
- {
38
- id: 'zoomType',
39
- type: 'select',
40
- label: 'Zoom Type',
41
- hide: true,
42
- default: 'default',
43
- hideOnMode: {
44
- mobileOnly: true
45
- },
46
- options: [
47
- {
48
- title: 'Default',
49
- value: 'default'
50
- },
51
- {
52
- title: 'Glasses',
53
- value: 'glasses'
54
- }
55
- ]
56
- },
57
- {
58
- id: 'zoom',
59
- type: 'range',
60
- label: 'Zoom Value',
61
- min: 100,
62
- max: 200,
63
- step: 10,
64
- default: 150,
65
- units: [
66
- '%'
67
- ],
68
- useOnlyUnitInit: true
69
- },
70
- {
71
- id: 'otherImage',
72
- label: 'Other image',
73
- type: 'select',
74
- options: [
75
- {
76
- title: 'Image 1',
77
- value: 0
78
- },
79
- {
80
- title: 'Image 2',
81
- value: 1
82
- },
83
- {
84
- title: 'Image 3',
85
- value: 2
86
- },
87
- {
88
- title: 'Image 4',
89
- value: 3
90
- },
91
- {
92
- title: 'Last image',
93
- value: -1
94
- }
95
- ],
96
- default: 0
97
- },
98
- {
99
- id: 'ftClickOpenLightBox',
100
- label: 'Click Effect',
101
- type: 'select',
102
- options: [
103
- {
104
- title: 'None',
105
- value: 'none'
106
- },
107
- {
108
- title: 'Open view image',
109
- value: 'popup'
110
- },
111
- {
112
- title: 'Open product page',
113
- value: 'product-link'
114
- }
115
- ],
116
- devices: getDefaultResponsive('none')
117
- },
118
- {
119
- id: 'ftClickOpenNewTab',
120
- type: 'segment',
121
- options: [
122
- {
123
- title: 'Current',
124
- value: false
125
- },
126
- {
127
- title: 'New tab',
128
- value: true
129
- }
130
- ],
131
- default: false
132
- },
133
- {
134
- id: 'ftNavigationPosition',
135
- label: 'Navigation',
136
- type: 'layout-segment',
137
- iconViewBox: '0 0 78 48',
138
- enableItemBackground: true,
139
- enableTooltip: true,
140
- options: [
141
- {
142
- title: 'No navigation',
143
- value: 'none',
144
- type: 'slide-control',
145
- isTextIcon: true
146
- },
147
- {
148
- title: 'Display inside navigation',
149
- value: 'inside',
150
- type: 'slide-control'
151
- },
152
- {
153
- title: 'Display outside navigation',
154
- value: 'outside',
155
- type: 'slide-control'
156
- }
157
- ],
158
- devices: getDefaultResponsive('none')
159
- },
160
- {
161
- id: 'ftLoop',
162
- type: 'toggle',
163
- devices: getDefaultResponsive(false)
164
- },
165
- {
166
- id: 'ftPauseOnHover',
167
- label: 'Pause On Hover',
168
- type: 'toggle',
169
- hide: true,
170
- default: true
171
- },
172
- {
173
- id: 'ftAnimationSpeed',
174
- label: 'Slide speed',
175
- type: 'input:unit',
176
- useOnlyUnitInit: true,
177
- min: 1,
178
- units: [
179
- 'ms'
180
- ],
181
- default: 500
182
- },
183
- {
184
- id: 'ftAnimationMode',
185
- label: 'Animation',
186
- type: 'select',
187
- default: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value,
188
- options: [
189
- {
190
- title: 'Ease in',
191
- value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value
192
- },
193
- {
194
- title: 'Ease out',
195
- value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value
196
- },
197
- {
198
- title: 'Ease in out',
199
- value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN_OUT.value
200
- }
201
- ]
202
- },
203
- {
204
- id: 'ftArrowIcon',
205
- type: 'icon',
206
- hide: true,
207
- label: 'Custom Arrow',
208
- info: 'Choose from list or paste any SVG icon',
209
- default: `<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
210
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0ZM10.6828 8.13017C10.5266 7.95661 10.2734 7.95661 10.1172 8.13017C9.96095 8.30374 9.96095 8.58515 10.1172 8.75871L13.0343 12L10.1172 15.2413C9.96095 15.4149 9.96095 15.6963 10.1172 15.8698C10.2734 16.0434 10.5266 16.0434 10.6828 15.8698L13.8828 12.3143C14.0391 12.1407 14.0391 11.8593 13.8828 11.6857L10.6828 8.13017Z" fill="currentColor"/>
211
- </svg>`
212
- },
213
- {
214
- id: 'ftArrowIconColor',
215
- label: 'Icon color',
216
- type: 'colorpicker',
217
- default: '#000000'
218
- },
219
- {
220
- id: 'ftDragToScroll',
221
- label: 'Drag to scroll',
222
- type: 'toggle',
223
- hide: true,
224
- default: false
225
- },
226
- {
227
- id: 'ftArrowNavColor',
228
- label: 'Nav. color',
229
- type: 'colorpicker'
230
- },
231
- {
232
- id: 'ftArrowNavBorder',
233
- label: 'Nav. border',
234
- type: 'border',
235
- default: {
236
- borderType: 'none',
237
- border: 'none',
238
- borderWidth: '1px',
239
- width: '1px 1px 1px 1px',
240
- isCustom: false
241
- }
242
- },
243
- {
244
- id: 'ftArrowNavRadius',
245
- label: 'Nav. corner',
246
- type: 'radius-preset',
247
- default: {
248
- btrr: '0px',
249
- bblr: '0px',
250
- bbrr: '0px',
251
- btlr: '0px',
252
- radiusType: 'none'
253
- }
254
- }
255
- ];
256
- const productSelectDisplaySetting = [
257
- {
258
- id: 'typeDisplay',
259
- type: 'select',
260
- options: [
261
- {
262
- title: 'All images',
263
- value: 'all-images'
264
- },
265
- {
266
- title: 'Select manually',
267
- value: 'select-manual'
268
- }
269
- ],
270
- default: 'all-images'
271
- },
272
- {
273
- id: 'preDisplay',
274
- type: 'select',
275
- label: 'Pre-display',
276
- default: '1st-available-variant',
277
- options: [
278
- {
279
- title: '1st available variant',
280
- value: '1st-available-variant'
281
- },
282
- {
283
- title: '1st image',
284
- value: '1st-images'
285
- },
286
- {
287
- title: '1st video',
288
- value: '1st-video'
289
- },
290
- {
291
- title: '1st 3D model',
292
- value: '1st-3d-mode'
293
- }
294
- ]
295
- }
296
- ];
297
- const productFeatureImageStyle = [
298
- {
299
- id: 'ftShape',
300
- type: 'size-setting',
301
- label: '',
302
- devices: {
303
- desktop: {
304
- default: {
305
- shape: 'square',
306
- shapeValue: '1/1',
307
- width: '100%',
308
- height: undefined,
309
- shapeLinked: true
310
- }
311
- }
312
- },
313
- settingConfig: {
314
- width: {
315
- displayOptions: [
316
- 'full'
317
- ]
318
- }
319
- },
320
- hiddenSettings: [
321
- 'padding',
322
- 'gap'
323
- ]
324
- },
325
- {
326
- id: 'ftLayout',
327
- type: 'layout-segment',
328
- iconViewBox: '0 0 66 48',
329
- enableItemBackground: true,
330
- enableTooltip: true,
331
- label: 'Image scale',
332
- options: [
333
- {
334
- label: 'Fill image',
335
- value: 'cover',
336
- type: 'image'
337
- },
338
- {
339
- label: 'Fit image',
340
- value: 'contain',
341
- type: 'image'
342
- }
343
- ],
344
- devices: getDefaultResponsive('cover')
345
- },
346
- {
347
- id: 'ftCorner',
348
- type: 'radius-preset',
349
- label: 'Corner',
350
- default: {
351
- btrr: '0px',
352
- bblr: '0px',
353
- bbrr: '0px',
354
- btlr: '0px',
355
- radiusType: 'none'
356
- },
357
- state: {
358
- hover: true,
359
- normal: true
360
- }
361
- }
362
- ];
363
3
  const productFeatureImageUI = [
364
4
  {
365
5
  type: 'control',
@@ -608,8 +248,5 @@ const productFeatureImageNavigationUI = [
608
248
  ];
609
249
 
610
250
  exports.productFeatureImageNavigationUI = productFeatureImageNavigationUI;
611
- exports.productFeatureImageSetting = productFeatureImageSetting;
612
- exports.productFeatureImageStyle = productFeatureImageStyle;
613
251
  exports.productFeatureImageUI = productFeatureImageUI;
614
- exports.productSelectDisplaySetting = productSelectDisplaySetting;
615
252
  exports.productSelectImage = productSelectImage;