@gem-sdk/components 2.0.0-dev.289 → 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.
- package/dist/cjs/accordion/components/common/styles.js +1 -2
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/cjs/carousel/components/Carousel.js +2 -3
- package/dist/cjs/carousel/components/CarouselItem.js +6 -2
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +1 -1
- package/dist/cjs/grid/row/commons/getAttr.js +3 -2
- package/dist/cjs/post-purchase/button/setting/configs/settings.js +10 -8
- package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +1 -2
- package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +8 -0
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +3 -3
- package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +2 -1
- package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/cjs/product/components/Product.js +3 -3
- package/dist/cjs/product/components/ProductImagesV2/jsx/ProductImages.js +1 -5
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductFeatureVideo.js +36 -0
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductFeaturedImageOnly.js +83 -51
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +3 -1
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +3 -2
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductImagesLightBox.js +29 -11
- package/dist/cjs/product/setting/product-image-v2/ProductFeatureImage.js +0 -363
- package/dist/cjs/product/setting/product-image-v2/ProductGalleryImage.js +0 -493
- package/dist/cjs/product/setting/product-image-v2/ProductImages.js +1 -3
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -5
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +4 -7
- package/dist/cjs/setting.js +2 -2
- package/dist/cjs/video/components/Video.js +1 -1
- package/dist/esm/accordion/components/common/styles.js +1 -2
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/esm/carousel/components/Carousel.js +2 -3
- package/dist/esm/carousel/components/CarouselItem.js +6 -2
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +1 -1
- package/dist/esm/grid/row/commons/getAttr.js +3 -2
- package/dist/esm/post-purchase/button/setting/configs/settings.js +10 -8
- package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +2 -3
- package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +8 -1
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +3 -3
- package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +2 -1
- package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/esm/product/components/Product.js +3 -3
- package/dist/esm/product/components/ProductImagesV2/jsx/ProductImages.js +1 -5
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductFeatureVideo.js +32 -0
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductFeaturedImageOnly.js +84 -52
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +3 -1
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +3 -2
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductImagesLightBox.js +31 -13
- package/dist/esm/product/setting/product-image-v2/ProductFeatureImage.js +1 -361
- package/dist/esm/product/setting/product-image-v2/ProductGalleryImage.js +1 -492
- package/dist/esm/product/setting/product-image-v2/ProductImages.js +1 -3
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -5
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +4 -7
- package/dist/esm/setting.js +2 -2
- package/dist/esm/video/components/Video.js +2 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/cjs/product/setting/product-image-v2/configs/settings.js +0 -327
- package/dist/esm/product/setting/product-image-v2/configs/settings.js +0 -325
|
@@ -1,497 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const getDefaultResponsive = (defaultValue)=>{
|
|
4
|
-
return {
|
|
5
|
-
desktop: {
|
|
6
|
-
default: defaultValue
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
3
|
const showSliderSetting = '(type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col"';
|
|
11
|
-
const productGalleryImageSetting = [
|
|
12
|
-
{
|
|
13
|
-
id: 'type',
|
|
14
|
-
label: 'Gallery Type',
|
|
15
|
-
type: 'segment',
|
|
16
|
-
hide: true,
|
|
17
|
-
options: [
|
|
18
|
-
{
|
|
19
|
-
label: 'Slide',
|
|
20
|
-
value: 'slider'
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: 'Show all',
|
|
24
|
-
value: 'images'
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
devices: getDefaultResponsive('slider')
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 'galleryHoverEffect',
|
|
31
|
-
label: 'Hover Effect',
|
|
32
|
-
type: 'select',
|
|
33
|
-
hide: true,
|
|
34
|
-
hideOnMode: {
|
|
35
|
-
mobileOnly: true
|
|
36
|
-
},
|
|
37
|
-
options: [
|
|
38
|
-
{
|
|
39
|
-
title: 'None',
|
|
40
|
-
value: 'none'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
title: 'Zoom',
|
|
44
|
-
value: 'zoom'
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
default: 'none'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
id: 'galleryZoomType',
|
|
51
|
-
type: 'select',
|
|
52
|
-
label: 'Zoom Type',
|
|
53
|
-
hide: true,
|
|
54
|
-
default: 'default',
|
|
55
|
-
hideOnMode: {
|
|
56
|
-
mobileOnly: true
|
|
57
|
-
},
|
|
58
|
-
options: [
|
|
59
|
-
{
|
|
60
|
-
title: 'Default',
|
|
61
|
-
value: 'default'
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
title: 'Glasses',
|
|
65
|
-
value: 'glasses'
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
id: 'galleryZoom',
|
|
71
|
-
type: 'range',
|
|
72
|
-
label: 'Zoom Value',
|
|
73
|
-
min: 100,
|
|
74
|
-
max: 200,
|
|
75
|
-
step: 10,
|
|
76
|
-
default: 150,
|
|
77
|
-
units: [
|
|
78
|
-
'%'
|
|
79
|
-
],
|
|
80
|
-
useOnlyUnitInit: true
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 'clickOpenLightBox',
|
|
84
|
-
label: 'Large view in pop-up',
|
|
85
|
-
type: 'select',
|
|
86
|
-
options: [
|
|
87
|
-
{
|
|
88
|
-
title: 'View in featured image',
|
|
89
|
-
value: false
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
title: 'View in pop-up',
|
|
93
|
-
value: true
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
devices: getDefaultResponsive(false)
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
id: 'borderActive',
|
|
100
|
-
label: 'Active border',
|
|
101
|
-
type: 'border',
|
|
102
|
-
default: {
|
|
103
|
-
borderType: 'none',
|
|
104
|
-
border: 'solid',
|
|
105
|
-
borderWidth: '1px',
|
|
106
|
-
width: '1px 1px 1px 1px',
|
|
107
|
-
isCustom: false,
|
|
108
|
-
color: '#000000'
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: 'navigationPosition',
|
|
113
|
-
label: 'Navigation',
|
|
114
|
-
type: 'layout-segment',
|
|
115
|
-
iconViewBox: '0 0 78 48',
|
|
116
|
-
enableItemBackground: true,
|
|
117
|
-
enableTooltip: true,
|
|
118
|
-
options: [
|
|
119
|
-
{
|
|
120
|
-
title: 'No navigation',
|
|
121
|
-
value: 'none',
|
|
122
|
-
type: 'slide-control',
|
|
123
|
-
isTextIcon: true
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
title: 'Display inside navigation',
|
|
127
|
-
value: 'inside',
|
|
128
|
-
type: 'slide-control'
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
title: 'Display outside navigation',
|
|
132
|
-
value: 'outside',
|
|
133
|
-
type: 'slide-control'
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
devices: getDefaultResponsive('inside')
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
id: 'loop',
|
|
140
|
-
type: 'toggle',
|
|
141
|
-
devices: getDefaultResponsive(true)
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
id: 'pauseOnHover',
|
|
145
|
-
label: 'Pause On Hover',
|
|
146
|
-
type: 'toggle',
|
|
147
|
-
hide: true,
|
|
148
|
-
default: true
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
id: 'speed',
|
|
152
|
-
type: 'range',
|
|
153
|
-
label: 'Speed (s)',
|
|
154
|
-
hide: true,
|
|
155
|
-
min: 0,
|
|
156
|
-
max: 60,
|
|
157
|
-
step: 1,
|
|
158
|
-
default: 1
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
id: 'arrowIcon',
|
|
162
|
-
type: 'icon',
|
|
163
|
-
hide: true,
|
|
164
|
-
label: 'Custom Arrow',
|
|
165
|
-
info: 'Choose from list or paste any SVG icon',
|
|
166
|
-
default: `<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
167
|
-
<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"/>
|
|
168
|
-
</svg>`
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: 'arrowIconColor',
|
|
172
|
-
label: 'Icon color',
|
|
173
|
-
type: 'colorpicker',
|
|
174
|
-
default: '#000000'
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
id: 'dragToScroll',
|
|
178
|
-
label: 'Drag to scroll',
|
|
179
|
-
type: 'toggle',
|
|
180
|
-
hide: true,
|
|
181
|
-
default: true
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
id: 'arrowNavColor',
|
|
185
|
-
label: 'Nav. color',
|
|
186
|
-
type: 'colorpicker'
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
id: 'arrowNavBorder',
|
|
190
|
-
label: 'Nav. border',
|
|
191
|
-
type: 'border',
|
|
192
|
-
default: {
|
|
193
|
-
borderType: 'none',
|
|
194
|
-
border: 'none',
|
|
195
|
-
borderWidth: '1px',
|
|
196
|
-
width: '1px 1px 1px 1px',
|
|
197
|
-
isCustom: false
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
id: 'arrowNavRadius',
|
|
202
|
-
label: 'Nav. corner',
|
|
203
|
-
type: 'radius-preset',
|
|
204
|
-
default: {
|
|
205
|
-
btrr: '0px',
|
|
206
|
-
bblr: '0px',
|
|
207
|
-
bbrr: '0px',
|
|
208
|
-
btlr: '0px',
|
|
209
|
-
radiusType: 'none'
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
];
|
|
213
|
-
const productGalleryImageStyle = [
|
|
214
|
-
{
|
|
215
|
-
id: 'shape',
|
|
216
|
-
type: 'size-setting',
|
|
217
|
-
label: '',
|
|
218
|
-
devices: {
|
|
219
|
-
desktop: {
|
|
220
|
-
default: {
|
|
221
|
-
shape: 'square',
|
|
222
|
-
shapeValue: '1/1',
|
|
223
|
-
width: '100%',
|
|
224
|
-
height: undefined,
|
|
225
|
-
shapeLinked: true
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
settingConfig: {
|
|
230
|
-
width: {
|
|
231
|
-
displayOptions: [
|
|
232
|
-
'full'
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
hiddenSettings: [
|
|
237
|
-
'padding',
|
|
238
|
-
'gap'
|
|
239
|
-
]
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
id: 'shapeForFtOnly',
|
|
243
|
-
type: 'size-setting',
|
|
244
|
-
label: '',
|
|
245
|
-
devices: {
|
|
246
|
-
desktop: {
|
|
247
|
-
default: {
|
|
248
|
-
shape: 'square',
|
|
249
|
-
shapeValue: '1/1',
|
|
250
|
-
width: '100%',
|
|
251
|
-
height: undefined,
|
|
252
|
-
shapeLinked: true
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
},
|
|
256
|
-
settingConfig: {
|
|
257
|
-
width: {
|
|
258
|
-
displayOptions: [
|
|
259
|
-
'full'
|
|
260
|
-
]
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
hiddenSettings: [
|
|
264
|
-
'padding',
|
|
265
|
-
'gap'
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
id: 'shapeForBottom',
|
|
270
|
-
type: 'size-setting',
|
|
271
|
-
label: '',
|
|
272
|
-
devices: {
|
|
273
|
-
desktop: {
|
|
274
|
-
default: {
|
|
275
|
-
shape: 'square',
|
|
276
|
-
shapeValue: '1/1',
|
|
277
|
-
width: '20%',
|
|
278
|
-
height: undefined,
|
|
279
|
-
shapeLinked: true
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
settingConfig: {
|
|
284
|
-
width: {
|
|
285
|
-
displayOptions: [
|
|
286
|
-
'full',
|
|
287
|
-
'small',
|
|
288
|
-
'medium',
|
|
289
|
-
'large'
|
|
290
|
-
],
|
|
291
|
-
sizeConfig: {
|
|
292
|
-
small: '10%',
|
|
293
|
-
medium: '20%',
|
|
294
|
-
large: '25%'
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
hiddenSettings: [
|
|
299
|
-
'padding',
|
|
300
|
-
'gap'
|
|
301
|
-
]
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
id: 'shapeForInsideBottom',
|
|
305
|
-
type: 'size-setting',
|
|
306
|
-
label: '',
|
|
307
|
-
devices: {
|
|
308
|
-
desktop: {
|
|
309
|
-
default: {
|
|
310
|
-
shape: 'square',
|
|
311
|
-
shapeValue: '1/1',
|
|
312
|
-
width: '20%',
|
|
313
|
-
height: undefined,
|
|
314
|
-
shapeLinked: true
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
settingConfig: {
|
|
319
|
-
width: {
|
|
320
|
-
displayOptions: [
|
|
321
|
-
'small',
|
|
322
|
-
'medium',
|
|
323
|
-
'large'
|
|
324
|
-
],
|
|
325
|
-
sizeConfig: {
|
|
326
|
-
small: '10%',
|
|
327
|
-
medium: '20%',
|
|
328
|
-
large: '25%'
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
hiddenSettings: [
|
|
333
|
-
'padding',
|
|
334
|
-
'gap'
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
id: 'shapeForInside',
|
|
339
|
-
type: 'size-setting',
|
|
340
|
-
label: '',
|
|
341
|
-
devices: {
|
|
342
|
-
desktop: {
|
|
343
|
-
default: {
|
|
344
|
-
shape: 'square',
|
|
345
|
-
shapeValue: '1/1',
|
|
346
|
-
width: '20%',
|
|
347
|
-
height: undefined,
|
|
348
|
-
shapeLinked: true
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
settingConfig: {
|
|
353
|
-
width: {
|
|
354
|
-
displayOptions: [
|
|
355
|
-
'small',
|
|
356
|
-
'medium',
|
|
357
|
-
'large'
|
|
358
|
-
],
|
|
359
|
-
sizeConfig: {
|
|
360
|
-
small: '10%',
|
|
361
|
-
medium: '20%',
|
|
362
|
-
large: '25%'
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
hiddenSettings: [
|
|
367
|
-
'padding',
|
|
368
|
-
'gap'
|
|
369
|
-
]
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
id: 'shapeFor2Col',
|
|
373
|
-
type: 'size-setting',
|
|
374
|
-
label: '',
|
|
375
|
-
devices: {
|
|
376
|
-
desktop: {
|
|
377
|
-
default: {
|
|
378
|
-
shape: 'square',
|
|
379
|
-
shapeValue: '1/1',
|
|
380
|
-
width: '50%',
|
|
381
|
-
height: undefined,
|
|
382
|
-
shapeLinked: true
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
settingConfig: {
|
|
387
|
-
width: {
|
|
388
|
-
displayOptions: [
|
|
389
|
-
'full',
|
|
390
|
-
'small',
|
|
391
|
-
'medium',
|
|
392
|
-
'large'
|
|
393
|
-
],
|
|
394
|
-
sizeConfig: {
|
|
395
|
-
small: '25%',
|
|
396
|
-
medium: '33%',
|
|
397
|
-
large: '50%'
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
hiddenSettings: [
|
|
402
|
-
'padding',
|
|
403
|
-
'gap'
|
|
404
|
-
]
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
id: 'shapeFor1Col',
|
|
408
|
-
type: 'size-setting',
|
|
409
|
-
label: '',
|
|
410
|
-
devices: {
|
|
411
|
-
desktop: {
|
|
412
|
-
default: {
|
|
413
|
-
shape: 'square',
|
|
414
|
-
shapeValue: '1/1',
|
|
415
|
-
width: '100%',
|
|
416
|
-
height: undefined,
|
|
417
|
-
shapeLinked: true
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
},
|
|
421
|
-
settingConfig: {
|
|
422
|
-
width: {
|
|
423
|
-
displayOptions: [
|
|
424
|
-
'full',
|
|
425
|
-
'small',
|
|
426
|
-
'medium',
|
|
427
|
-
'large'
|
|
428
|
-
],
|
|
429
|
-
sizeConfig: {
|
|
430
|
-
small: '25%',
|
|
431
|
-
medium: '33%',
|
|
432
|
-
large: '50%'
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
hiddenSettings: [
|
|
437
|
-
'padding',
|
|
438
|
-
'gap'
|
|
439
|
-
]
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
id: 'layout',
|
|
443
|
-
type: 'layout-segment',
|
|
444
|
-
iconViewBox: '0 0 66 48',
|
|
445
|
-
enableItemBackground: true,
|
|
446
|
-
enableTooltip: true,
|
|
447
|
-
label: 'Image scale',
|
|
448
|
-
options: [
|
|
449
|
-
{
|
|
450
|
-
label: 'Fill image',
|
|
451
|
-
value: 'cover',
|
|
452
|
-
type: 'image'
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
label: 'Fit image',
|
|
456
|
-
value: 'contain',
|
|
457
|
-
type: 'image'
|
|
458
|
-
}
|
|
459
|
-
],
|
|
460
|
-
devices: getDefaultResponsive('cover')
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
id: 'itemSpacing',
|
|
464
|
-
label: 'Gallery Item Spacing',
|
|
465
|
-
type: 'input:unit',
|
|
466
|
-
units: [
|
|
467
|
-
'px'
|
|
468
|
-
],
|
|
469
|
-
devices: {
|
|
470
|
-
desktop: {
|
|
471
|
-
default: 'var(--g-s-s)'
|
|
472
|
-
},
|
|
473
|
-
mobile: {
|
|
474
|
-
default: 'var(--g-s-s)'
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
id: 'corner',
|
|
480
|
-
type: 'radius-preset',
|
|
481
|
-
label: 'Corner',
|
|
482
|
-
default: {
|
|
483
|
-
btrr: '0px',
|
|
484
|
-
bblr: '0px',
|
|
485
|
-
bbrr: '0px',
|
|
486
|
-
btlr: '0px',
|
|
487
|
-
radiusType: 'none'
|
|
488
|
-
},
|
|
489
|
-
state: {
|
|
490
|
-
hover: true,
|
|
491
|
-
normal: true
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
];
|
|
495
4
|
const productGalleryImageUI = [
|
|
496
5
|
{
|
|
497
6
|
type: 'control',
|
|
@@ -739,6 +248,4 @@ const productGalleryImageNavigationUI = [
|
|
|
739
248
|
];
|
|
740
249
|
|
|
741
250
|
exports.productGalleryImageNavigationUI = productGalleryImageNavigationUI;
|
|
742
|
-
exports.productGalleryImageSetting = productGalleryImageSetting;
|
|
743
|
-
exports.productGalleryImageStyle = productGalleryImageStyle;
|
|
744
251
|
exports.productGalleryImageUI = productGalleryImageUI;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var settings = require('./configs/settings.js');
|
|
6
5
|
var uiV1 = require('./configs/uiV1.js');
|
|
7
6
|
var uiV2 = require('./configs/uiV2.js');
|
|
8
7
|
var index = require('./configs/setting-v2/index.js');
|
|
@@ -15,8 +14,7 @@ const config = {
|
|
|
15
14
|
<path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
|
|
16
15
|
</svg>
|
|
17
16
|
`,
|
|
18
|
-
settings:
|
|
19
|
-
settingsV2: index.ProductImageSettingsV2,
|
|
17
|
+
settings: index.ProductImageSettingsV2,
|
|
20
18
|
ui: uiV1.SettingUIV1,
|
|
21
19
|
uiV2: uiV2.SettingUIV2,
|
|
22
20
|
editorConfigs: {
|
|
@@ -492,16 +492,13 @@ const productGalleryImageStyle = [
|
|
|
492
492
|
{
|
|
493
493
|
id: 'itemSpacing',
|
|
494
494
|
label: 'Gallery Item Spacing',
|
|
495
|
-
type: 'input:
|
|
495
|
+
type: 'input:slider',
|
|
496
496
|
units: [
|
|
497
497
|
'px'
|
|
498
498
|
],
|
|
499
499
|
devices: {
|
|
500
500
|
desktop: {
|
|
501
|
-
default: '
|
|
502
|
-
},
|
|
503
|
-
mobile: {
|
|
504
|
-
default: 'var(--g-s-s)'
|
|
501
|
+
default: '8px'
|
|
505
502
|
}
|
|
506
503
|
}
|
|
507
504
|
},
|
|
@@ -211,13 +211,13 @@ const ProductImageSettingsV2 = [
|
|
|
211
211
|
iconName: 'gp-product-image-layout-featured-only'
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
label: 'Gallery 2
|
|
214
|
+
label: 'Gallery 2 col',
|
|
215
215
|
value: 'two-col',
|
|
216
216
|
type: 'p-image-layout',
|
|
217
217
|
iconName: 'gp-product-image-layout-two-col'
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
label: 'Gallery 1
|
|
220
|
+
label: 'Gallery 1 col',
|
|
221
221
|
value: 'one-col',
|
|
222
222
|
type: 'p-image-layout',
|
|
223
223
|
iconName: 'gp-product-image-layout-one-col'
|
|
@@ -253,16 +253,13 @@ const ProductImageSettingsV2 = [
|
|
|
253
253
|
{
|
|
254
254
|
id: 'spacing',
|
|
255
255
|
label: 'Spacing Item',
|
|
256
|
-
type: 'input:
|
|
256
|
+
type: 'input:slider',
|
|
257
257
|
units: [
|
|
258
258
|
'px'
|
|
259
259
|
],
|
|
260
260
|
devices: {
|
|
261
261
|
desktop: {
|
|
262
|
-
default: '
|
|
263
|
-
},
|
|
264
|
-
mobile: {
|
|
265
|
-
default: 'var(--g-s-s)'
|
|
262
|
+
default: '8px'
|
|
266
263
|
}
|
|
267
264
|
}
|
|
268
265
|
},
|
package/dist/cjs/setting.js
CHANGED
|
@@ -43,6 +43,8 @@ var index$i = require('./product/setting/index.js');
|
|
|
43
43
|
require('./product/components/Product.js');
|
|
44
44
|
require('./notification/components/Notifications.js');
|
|
45
45
|
require('./notification/components/Notice.js');
|
|
46
|
+
var index$o = require('./video/setting/index.js');
|
|
47
|
+
require('./video/components/Video.js');
|
|
46
48
|
require('./product/components/ProductQuickView/index.js');
|
|
47
49
|
require('./product/components/constants/product-bundle.js');
|
|
48
50
|
require('./product/components/ProductList.js');
|
|
@@ -56,8 +58,6 @@ var index$k = require('./select/setting/index.js');
|
|
|
56
58
|
var index$l = require('./tab/setting/index.js');
|
|
57
59
|
var index$n = require('./textarea/setting/index.js');
|
|
58
60
|
require('./textarea/Textarea.js');
|
|
59
|
-
var index$o = require('./video/setting/index.js');
|
|
60
|
-
require('./video/components/Video.js');
|
|
61
61
|
var index$p = require('./menu/setting/index.js');
|
|
62
62
|
var index$q = require('./third-party/setting/index.js');
|
|
63
63
|
require('./third-party/components/JudgemeReviews.js');
|
|
@@ -83,7 +83,7 @@ const Video = ({ className, setting, style, builderAttrs, builderProps, advanced
|
|
|
83
83
|
case 'vimeo':
|
|
84
84
|
{
|
|
85
85
|
const videoId = common$1.getVimeoVideoId(vimeoUrl);
|
|
86
|
-
if (!
|
|
86
|
+
if (!videoId) return undefined;
|
|
87
87
|
return /*#__PURE__*/ jsxRuntime.jsx(LiteVimeoEmbed, {
|
|
88
88
|
muted: !mute,
|
|
89
89
|
loop: loopVideo,
|
|
@@ -20,8 +20,7 @@ const getContainerStyles = (style, styles)=>{
|
|
|
20
20
|
...filterStyles(style),
|
|
21
21
|
...contentSizePaddingSize(styles).gap,
|
|
22
22
|
...getStyleBackgroundByDevice(style?.backgroundContent),
|
|
23
|
-
borderRadius: 'inherit'
|
|
24
|
-
overflow: 'hidden'
|
|
23
|
+
borderRadius: 'inherit'
|
|
25
24
|
};
|
|
26
25
|
};
|
|
27
26
|
const widthHeightSizeControl = (widthHeightSize)=>makeGlobalSize(widthHeightSize);
|
|
@@ -34,10 +34,10 @@ import '../../post-purchase/product/components/product-variant/components/varian
|
|
|
34
34
|
import '../../product/components/Product.js';
|
|
35
35
|
import '../../notification/components/Notifications.js';
|
|
36
36
|
import '../../notification/components/Notice.js';
|
|
37
|
+
import '../../video/components/Video.js';
|
|
37
38
|
import '../../product/components/ProductQuickView/index.js';
|
|
38
39
|
import '../../product/components/ProductList.js';
|
|
39
40
|
import '../../textarea/Textarea.js';
|
|
40
|
-
import '../../video/components/Video.js';
|
|
41
41
|
import '../../third-party/components/JudgemeReviews.js';
|
|
42
42
|
import '../../third-party/components/LooxReviews.js';
|
|
43
43
|
import '../../third-party/components/Klaviyo.js';
|
|
@@ -569,9 +569,8 @@ const Carousel = /*#__PURE__*/ forwardRef(({ children, builderAttrs, builderProp
|
|
|
569
569
|
parentSettings: setting,
|
|
570
570
|
background: setting?.background,
|
|
571
571
|
"data-index": index,
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
572
|
+
index: true,
|
|
573
|
+
dispatchEventSelectSlide: dispatchEventSelectSlide
|
|
575
574
|
});
|
|
576
575
|
}
|
|
577
576
|
return null;
|
|
@@ -5,7 +5,7 @@ import ChildrenDroppable from '../../grid/components/ChildrenDroppable.js';
|
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import { getInitialWidthForCarouselItem } from './common/carousel.js';
|
|
7
7
|
|
|
8
|
-
const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, builderProps, parentStyle, parentSettings, background, contentType = 'normalItem', onClickItem, ...passProps })=>{
|
|
8
|
+
const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, builderProps, parentStyle, parentSettings, background, contentType = 'normalItem', index = 0, onClickItem, dispatchEventSelectSlide, ...passProps })=>{
|
|
9
9
|
const itemPadding = makeGlobalSize(parentStyle?.itemPadding);
|
|
10
10
|
const styleByContentType = useMemo(()=>{
|
|
11
11
|
const delList = [
|
|
@@ -43,6 +43,10 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
43
43
|
styleAppliedFor: 'box-shadow',
|
|
44
44
|
isEnableShadow: parentStyle?.hasActiveShadow
|
|
45
45
|
});
|
|
46
|
+
const handleClick = (e)=>{
|
|
47
|
+
onClickItem && onClickItem(e);
|
|
48
|
+
dispatchEventSelectSlide && dispatchEventSelectSlide(index);
|
|
49
|
+
};
|
|
46
50
|
return /*#__PURE__*/ jsx("div", {
|
|
47
51
|
...builderAttrs,
|
|
48
52
|
...passProps,
|
|
@@ -65,7 +69,7 @@ const CarouselItem = ({ children, builderAttrs, styles, advanced, setting, build
|
|
|
65
69
|
}),
|
|
66
70
|
...itemPadding && itemPadding.padding
|
|
67
71
|
},
|
|
68
|
-
onClick:
|
|
72
|
+
onClick: handleClick,
|
|
69
73
|
"aria-hidden": true,
|
|
70
74
|
children: /*#__PURE__*/ jsx("div", {
|
|
71
75
|
className: "gp-h-full gp-w-full",
|
|
@@ -31,10 +31,10 @@ import '../../post-purchase/product/components/product-variant/components/varian
|
|
|
31
31
|
import '../../product/components/Product.js';
|
|
32
32
|
import '../../notification/components/Notifications.js';
|
|
33
33
|
import '../../notification/components/Notice.js';
|
|
34
|
+
import '../../video/components/Video.js';
|
|
34
35
|
import '../../product/components/ProductQuickView/index.js';
|
|
35
36
|
import '../../product/components/ProductList.js';
|
|
36
37
|
import '../../textarea/Textarea.js';
|
|
37
|
-
import '../../video/components/Video.js';
|
|
38
38
|
import '../../third-party/components/JudgemeReviews.js';
|
|
39
39
|
import '../../third-party/components/LooxReviews.js';
|
|
40
40
|
import '../../third-party/components/Klaviyo.js';
|