@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.
- 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/image/components/AdaptiveImage.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +4 -4
- package/dist/cjs/image/components/Image.js +1 -5
- package/dist/cjs/image/components/common/styles.js +2 -2
- package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
- package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +3 -3
- 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/configs/uiV2.js +2 -2
- 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/third-party/components/RechargeSubscriptions.liquid.js +1 -1
- package/dist/cjs/third-party/setting/RechargeSubscriptions.js +5 -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/image/components/AdaptiveImage.js +2 -2
- package/dist/esm/image/components/AdaptiveImage.liquid.js +4 -4
- package/dist/esm/image/components/Image.js +2 -6
- package/dist/esm/image/components/common/styles.js +2 -2
- package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
- package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +3 -3
- 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/configs/uiV2.js +2 -2
- 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/third-party/components/RechargeSubscriptions.liquid.js +1 -1
- package/dist/esm/third-party/setting/RechargeSubscriptions.js +5 -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,495 +1,4 @@
|
|
|
1
|
-
const getDefaultResponsive = (defaultValue)=>{
|
|
2
|
-
return {
|
|
3
|
-
desktop: {
|
|
4
|
-
default: defaultValue
|
|
5
|
-
}
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
1
|
const showSliderSetting = '(type == "slider" || position == "left" || position == "right") && position !== "one-col" && position != "two-col"';
|
|
9
|
-
const productGalleryImageSetting = [
|
|
10
|
-
{
|
|
11
|
-
id: 'type',
|
|
12
|
-
label: 'Gallery Type',
|
|
13
|
-
type: 'segment',
|
|
14
|
-
hide: true,
|
|
15
|
-
options: [
|
|
16
|
-
{
|
|
17
|
-
label: 'Slide',
|
|
18
|
-
value: 'slider'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: 'Show all',
|
|
22
|
-
value: 'images'
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
devices: getDefaultResponsive('slider')
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: 'galleryHoverEffect',
|
|
29
|
-
label: 'Hover Effect',
|
|
30
|
-
type: 'select',
|
|
31
|
-
hide: true,
|
|
32
|
-
hideOnMode: {
|
|
33
|
-
mobileOnly: true
|
|
34
|
-
},
|
|
35
|
-
options: [
|
|
36
|
-
{
|
|
37
|
-
title: 'None',
|
|
38
|
-
value: 'none'
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
title: 'Zoom',
|
|
42
|
-
value: 'zoom'
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
default: 'none'
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: 'galleryZoomType',
|
|
49
|
-
type: 'select',
|
|
50
|
-
label: 'Zoom Type',
|
|
51
|
-
hide: true,
|
|
52
|
-
default: 'default',
|
|
53
|
-
hideOnMode: {
|
|
54
|
-
mobileOnly: true
|
|
55
|
-
},
|
|
56
|
-
options: [
|
|
57
|
-
{
|
|
58
|
-
title: 'Default',
|
|
59
|
-
value: 'default'
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
title: 'Glasses',
|
|
63
|
-
value: 'glasses'
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: 'galleryZoom',
|
|
69
|
-
type: 'range',
|
|
70
|
-
label: 'Zoom Value',
|
|
71
|
-
min: 100,
|
|
72
|
-
max: 200,
|
|
73
|
-
step: 10,
|
|
74
|
-
default: 150,
|
|
75
|
-
units: [
|
|
76
|
-
'%'
|
|
77
|
-
],
|
|
78
|
-
useOnlyUnitInit: true
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
id: 'clickOpenLightBox',
|
|
82
|
-
label: 'Large view in pop-up',
|
|
83
|
-
type: 'select',
|
|
84
|
-
options: [
|
|
85
|
-
{
|
|
86
|
-
title: 'View in featured image',
|
|
87
|
-
value: false
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
title: 'View in pop-up',
|
|
91
|
-
value: true
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
devices: getDefaultResponsive(false)
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: 'borderActive',
|
|
98
|
-
label: 'Active border',
|
|
99
|
-
type: 'border',
|
|
100
|
-
default: {
|
|
101
|
-
borderType: 'none',
|
|
102
|
-
border: 'solid',
|
|
103
|
-
borderWidth: '1px',
|
|
104
|
-
width: '1px 1px 1px 1px',
|
|
105
|
-
isCustom: false,
|
|
106
|
-
color: '#000000'
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
id: 'navigationPosition',
|
|
111
|
-
label: 'Navigation',
|
|
112
|
-
type: 'layout-segment',
|
|
113
|
-
iconViewBox: '0 0 78 48',
|
|
114
|
-
enableItemBackground: true,
|
|
115
|
-
enableTooltip: true,
|
|
116
|
-
options: [
|
|
117
|
-
{
|
|
118
|
-
title: 'No navigation',
|
|
119
|
-
value: 'none',
|
|
120
|
-
type: 'slide-control',
|
|
121
|
-
isTextIcon: true
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
title: 'Display inside navigation',
|
|
125
|
-
value: 'inside',
|
|
126
|
-
type: 'slide-control'
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
title: 'Display outside navigation',
|
|
130
|
-
value: 'outside',
|
|
131
|
-
type: 'slide-control'
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
devices: getDefaultResponsive('inside')
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
id: 'loop',
|
|
138
|
-
type: 'toggle',
|
|
139
|
-
devices: getDefaultResponsive(true)
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
id: 'pauseOnHover',
|
|
143
|
-
label: 'Pause On Hover',
|
|
144
|
-
type: 'toggle',
|
|
145
|
-
hide: true,
|
|
146
|
-
default: true
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
id: 'speed',
|
|
150
|
-
type: 'range',
|
|
151
|
-
label: 'Speed (s)',
|
|
152
|
-
hide: true,
|
|
153
|
-
min: 0,
|
|
154
|
-
max: 60,
|
|
155
|
-
step: 1,
|
|
156
|
-
default: 1
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
id: 'arrowIcon',
|
|
160
|
-
type: 'icon',
|
|
161
|
-
hide: true,
|
|
162
|
-
label: 'Custom Arrow',
|
|
163
|
-
info: 'Choose from list or paste any SVG icon',
|
|
164
|
-
default: `<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
165
|
-
<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"/>
|
|
166
|
-
</svg>`
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
id: 'arrowIconColor',
|
|
170
|
-
label: 'Icon color',
|
|
171
|
-
type: 'colorpicker',
|
|
172
|
-
default: '#000000'
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
id: 'dragToScroll',
|
|
176
|
-
label: 'Drag to scroll',
|
|
177
|
-
type: 'toggle',
|
|
178
|
-
hide: true,
|
|
179
|
-
default: true
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
id: 'arrowNavColor',
|
|
183
|
-
label: 'Nav. color',
|
|
184
|
-
type: 'colorpicker'
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
id: 'arrowNavBorder',
|
|
188
|
-
label: 'Nav. border',
|
|
189
|
-
type: 'border',
|
|
190
|
-
default: {
|
|
191
|
-
borderType: 'none',
|
|
192
|
-
border: 'none',
|
|
193
|
-
borderWidth: '1px',
|
|
194
|
-
width: '1px 1px 1px 1px',
|
|
195
|
-
isCustom: false
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
id: 'arrowNavRadius',
|
|
200
|
-
label: 'Nav. corner',
|
|
201
|
-
type: 'radius-preset',
|
|
202
|
-
default: {
|
|
203
|
-
btrr: '0px',
|
|
204
|
-
bblr: '0px',
|
|
205
|
-
bbrr: '0px',
|
|
206
|
-
btlr: '0px',
|
|
207
|
-
radiusType: 'none'
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
];
|
|
211
|
-
const productGalleryImageStyle = [
|
|
212
|
-
{
|
|
213
|
-
id: 'shape',
|
|
214
|
-
type: 'size-setting',
|
|
215
|
-
label: '',
|
|
216
|
-
devices: {
|
|
217
|
-
desktop: {
|
|
218
|
-
default: {
|
|
219
|
-
shape: 'square',
|
|
220
|
-
shapeValue: '1/1',
|
|
221
|
-
width: '100%',
|
|
222
|
-
height: undefined,
|
|
223
|
-
shapeLinked: true
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
settingConfig: {
|
|
228
|
-
width: {
|
|
229
|
-
displayOptions: [
|
|
230
|
-
'full'
|
|
231
|
-
]
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
hiddenSettings: [
|
|
235
|
-
'padding',
|
|
236
|
-
'gap'
|
|
237
|
-
]
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
id: 'shapeForFtOnly',
|
|
241
|
-
type: 'size-setting',
|
|
242
|
-
label: '',
|
|
243
|
-
devices: {
|
|
244
|
-
desktop: {
|
|
245
|
-
default: {
|
|
246
|
-
shape: 'square',
|
|
247
|
-
shapeValue: '1/1',
|
|
248
|
-
width: '100%',
|
|
249
|
-
height: undefined,
|
|
250
|
-
shapeLinked: true
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
settingConfig: {
|
|
255
|
-
width: {
|
|
256
|
-
displayOptions: [
|
|
257
|
-
'full'
|
|
258
|
-
]
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
hiddenSettings: [
|
|
262
|
-
'padding',
|
|
263
|
-
'gap'
|
|
264
|
-
]
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
id: 'shapeForBottom',
|
|
268
|
-
type: 'size-setting',
|
|
269
|
-
label: '',
|
|
270
|
-
devices: {
|
|
271
|
-
desktop: {
|
|
272
|
-
default: {
|
|
273
|
-
shape: 'square',
|
|
274
|
-
shapeValue: '1/1',
|
|
275
|
-
width: '20%',
|
|
276
|
-
height: undefined,
|
|
277
|
-
shapeLinked: true
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
settingConfig: {
|
|
282
|
-
width: {
|
|
283
|
-
displayOptions: [
|
|
284
|
-
'full',
|
|
285
|
-
'small',
|
|
286
|
-
'medium',
|
|
287
|
-
'large'
|
|
288
|
-
],
|
|
289
|
-
sizeConfig: {
|
|
290
|
-
small: '10%',
|
|
291
|
-
medium: '20%',
|
|
292
|
-
large: '25%'
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
hiddenSettings: [
|
|
297
|
-
'padding',
|
|
298
|
-
'gap'
|
|
299
|
-
]
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
id: 'shapeForInsideBottom',
|
|
303
|
-
type: 'size-setting',
|
|
304
|
-
label: '',
|
|
305
|
-
devices: {
|
|
306
|
-
desktop: {
|
|
307
|
-
default: {
|
|
308
|
-
shape: 'square',
|
|
309
|
-
shapeValue: '1/1',
|
|
310
|
-
width: '20%',
|
|
311
|
-
height: undefined,
|
|
312
|
-
shapeLinked: true
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
settingConfig: {
|
|
317
|
-
width: {
|
|
318
|
-
displayOptions: [
|
|
319
|
-
'small',
|
|
320
|
-
'medium',
|
|
321
|
-
'large'
|
|
322
|
-
],
|
|
323
|
-
sizeConfig: {
|
|
324
|
-
small: '10%',
|
|
325
|
-
medium: '20%',
|
|
326
|
-
large: '25%'
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
hiddenSettings: [
|
|
331
|
-
'padding',
|
|
332
|
-
'gap'
|
|
333
|
-
]
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
id: 'shapeForInside',
|
|
337
|
-
type: 'size-setting',
|
|
338
|
-
label: '',
|
|
339
|
-
devices: {
|
|
340
|
-
desktop: {
|
|
341
|
-
default: {
|
|
342
|
-
shape: 'square',
|
|
343
|
-
shapeValue: '1/1',
|
|
344
|
-
width: '20%',
|
|
345
|
-
height: undefined,
|
|
346
|
-
shapeLinked: true
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
settingConfig: {
|
|
351
|
-
width: {
|
|
352
|
-
displayOptions: [
|
|
353
|
-
'small',
|
|
354
|
-
'medium',
|
|
355
|
-
'large'
|
|
356
|
-
],
|
|
357
|
-
sizeConfig: {
|
|
358
|
-
small: '10%',
|
|
359
|
-
medium: '20%',
|
|
360
|
-
large: '25%'
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
hiddenSettings: [
|
|
365
|
-
'padding',
|
|
366
|
-
'gap'
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
id: 'shapeFor2Col',
|
|
371
|
-
type: 'size-setting',
|
|
372
|
-
label: '',
|
|
373
|
-
devices: {
|
|
374
|
-
desktop: {
|
|
375
|
-
default: {
|
|
376
|
-
shape: 'square',
|
|
377
|
-
shapeValue: '1/1',
|
|
378
|
-
width: '50%',
|
|
379
|
-
height: undefined,
|
|
380
|
-
shapeLinked: true
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
settingConfig: {
|
|
385
|
-
width: {
|
|
386
|
-
displayOptions: [
|
|
387
|
-
'full',
|
|
388
|
-
'small',
|
|
389
|
-
'medium',
|
|
390
|
-
'large'
|
|
391
|
-
],
|
|
392
|
-
sizeConfig: {
|
|
393
|
-
small: '25%',
|
|
394
|
-
medium: '33%',
|
|
395
|
-
large: '50%'
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
hiddenSettings: [
|
|
400
|
-
'padding',
|
|
401
|
-
'gap'
|
|
402
|
-
]
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
id: 'shapeFor1Col',
|
|
406
|
-
type: 'size-setting',
|
|
407
|
-
label: '',
|
|
408
|
-
devices: {
|
|
409
|
-
desktop: {
|
|
410
|
-
default: {
|
|
411
|
-
shape: 'square',
|
|
412
|
-
shapeValue: '1/1',
|
|
413
|
-
width: '100%',
|
|
414
|
-
height: undefined,
|
|
415
|
-
shapeLinked: true
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
settingConfig: {
|
|
420
|
-
width: {
|
|
421
|
-
displayOptions: [
|
|
422
|
-
'full',
|
|
423
|
-
'small',
|
|
424
|
-
'medium',
|
|
425
|
-
'large'
|
|
426
|
-
],
|
|
427
|
-
sizeConfig: {
|
|
428
|
-
small: '25%',
|
|
429
|
-
medium: '33%',
|
|
430
|
-
large: '50%'
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
hiddenSettings: [
|
|
435
|
-
'padding',
|
|
436
|
-
'gap'
|
|
437
|
-
]
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
id: 'layout',
|
|
441
|
-
type: 'layout-segment',
|
|
442
|
-
iconViewBox: '0 0 66 48',
|
|
443
|
-
enableItemBackground: true,
|
|
444
|
-
enableTooltip: true,
|
|
445
|
-
label: 'Image scale',
|
|
446
|
-
options: [
|
|
447
|
-
{
|
|
448
|
-
label: 'Fill image',
|
|
449
|
-
value: 'cover',
|
|
450
|
-
type: 'image'
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
label: 'Fit image',
|
|
454
|
-
value: 'contain',
|
|
455
|
-
type: 'image'
|
|
456
|
-
}
|
|
457
|
-
],
|
|
458
|
-
devices: getDefaultResponsive('cover')
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
id: 'itemSpacing',
|
|
462
|
-
label: 'Gallery Item Spacing',
|
|
463
|
-
type: 'input:unit',
|
|
464
|
-
units: [
|
|
465
|
-
'px'
|
|
466
|
-
],
|
|
467
|
-
devices: {
|
|
468
|
-
desktop: {
|
|
469
|
-
default: 'var(--g-s-s)'
|
|
470
|
-
},
|
|
471
|
-
mobile: {
|
|
472
|
-
default: 'var(--g-s-s)'
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
id: 'corner',
|
|
478
|
-
type: 'radius-preset',
|
|
479
|
-
label: 'Corner',
|
|
480
|
-
default: {
|
|
481
|
-
btrr: '0px',
|
|
482
|
-
bblr: '0px',
|
|
483
|
-
bbrr: '0px',
|
|
484
|
-
btlr: '0px',
|
|
485
|
-
radiusType: 'none'
|
|
486
|
-
},
|
|
487
|
-
state: {
|
|
488
|
-
hover: true,
|
|
489
|
-
normal: true
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
];
|
|
493
2
|
const productGalleryImageUI = [
|
|
494
3
|
{
|
|
495
4
|
type: 'control',
|
|
@@ -736,4 +245,4 @@ const productGalleryImageNavigationUI = [
|
|
|
736
245
|
}
|
|
737
246
|
];
|
|
738
247
|
|
|
739
|
-
export { productGalleryImageNavigationUI,
|
|
248
|
+
export { productGalleryImageNavigationUI, productGalleryImageUI };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ProductImageSettings } from './configs/settings.js';
|
|
2
1
|
import { SettingUIV1 } from './configs/uiV1.js';
|
|
3
2
|
import { SettingUIV2 } from './configs/uiV2.js';
|
|
4
3
|
import { ProductImageSettingsV2 } from './configs/setting-v2/index.js';
|
|
@@ -11,8 +10,7 @@ const config = {
|
|
|
11
10
|
<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"/>
|
|
12
11
|
</svg>
|
|
13
12
|
`,
|
|
14
|
-
settings:
|
|
15
|
-
settingsV2: ProductImageSettingsV2,
|
|
13
|
+
settings: ProductImageSettingsV2,
|
|
16
14
|
ui: SettingUIV1,
|
|
17
15
|
uiV2: SettingUIV2,
|
|
18
16
|
editorConfigs: {
|
|
@@ -490,16 +490,13 @@ const productGalleryImageStyle = [
|
|
|
490
490
|
{
|
|
491
491
|
id: 'itemSpacing',
|
|
492
492
|
label: 'Gallery Item Spacing',
|
|
493
|
-
type: 'input:
|
|
493
|
+
type: 'input:slider',
|
|
494
494
|
units: [
|
|
495
495
|
'px'
|
|
496
496
|
],
|
|
497
497
|
devices: {
|
|
498
498
|
desktop: {
|
|
499
|
-
default: '
|
|
500
|
-
},
|
|
501
|
-
mobile: {
|
|
502
|
-
default: 'var(--g-s-s)'
|
|
499
|
+
default: '8px'
|
|
503
500
|
}
|
|
504
501
|
}
|
|
505
502
|
},
|
|
@@ -209,13 +209,13 @@ const ProductImageSettingsV2 = [
|
|
|
209
209
|
iconName: 'gp-product-image-layout-featured-only'
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
label: 'Gallery 2
|
|
212
|
+
label: 'Gallery 2 col',
|
|
213
213
|
value: 'two-col',
|
|
214
214
|
type: 'p-image-layout',
|
|
215
215
|
iconName: 'gp-product-image-layout-two-col'
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
label: 'Gallery 1
|
|
218
|
+
label: 'Gallery 1 col',
|
|
219
219
|
value: 'one-col',
|
|
220
220
|
type: 'p-image-layout',
|
|
221
221
|
iconName: 'gp-product-image-layout-one-col'
|
|
@@ -251,16 +251,13 @@ const ProductImageSettingsV2 = [
|
|
|
251
251
|
{
|
|
252
252
|
id: 'spacing',
|
|
253
253
|
label: 'Spacing Item',
|
|
254
|
-
type: 'input:
|
|
254
|
+
type: 'input:slider',
|
|
255
255
|
units: [
|
|
256
256
|
'px'
|
|
257
257
|
],
|
|
258
258
|
devices: {
|
|
259
259
|
desktop: {
|
|
260
|
-
default: '
|
|
261
|
-
},
|
|
262
|
-
mobile: {
|
|
263
|
-
default: 'var(--g-s-s)'
|
|
260
|
+
default: '8px'
|
|
264
261
|
}
|
|
265
262
|
}
|
|
266
263
|
},
|
package/dist/esm/setting.js
CHANGED
|
@@ -39,6 +39,8 @@ import productSetting from './product/setting/index.js';
|
|
|
39
39
|
import './product/components/Product.js';
|
|
40
40
|
import './notification/components/Notifications.js';
|
|
41
41
|
import './notification/components/Notice.js';
|
|
42
|
+
import videoSetting from './video/setting/index.js';
|
|
43
|
+
import './video/components/Video.js';
|
|
42
44
|
import './product/components/ProductQuickView/index.js';
|
|
43
45
|
import './product/components/constants/product-bundle.js';
|
|
44
46
|
import './product/components/ProductList.js';
|
|
@@ -52,8 +54,6 @@ import selectSetting from './select/setting/index.js';
|
|
|
52
54
|
import tabSetting from './tab/setting/index.js';
|
|
53
55
|
import textareaSetting from './textarea/setting/index.js';
|
|
54
56
|
import './textarea/Textarea.js';
|
|
55
|
-
import videoSetting from './video/setting/index.js';
|
|
56
|
-
import './video/components/Video.js';
|
|
57
57
|
import menuSetting from './menu/setting/index.js';
|
|
58
58
|
import thirdPartySetting from './third-party/setting/index.js';
|
|
59
59
|
import './third-party/components/JudgemeReviews.js';
|
|
@@ -2,7 +2,7 @@ import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
|
|
|
2
2
|
|
|
3
3
|
const RechargeSubscriptions = ({ setting, advanced })=>{
|
|
4
4
|
const { align, appBlockId } = setting ?? {};
|
|
5
|
-
return getLiquidForAppBlock(appBlockId, align, advanced?.cssClass);
|
|
5
|
+
return getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { RechargeSubscriptions as default };
|
|
@@ -50,8 +50,11 @@ const config = {
|
|
|
50
50
|
options: [
|
|
51
51
|
{
|
|
52
52
|
label: 'Subscription Widget',
|
|
53
|
-
value: 'subscription-widget'
|
|
54
|
-
|
|
53
|
+
value: 'subscription-widget'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: 'Subscription Widget 2.0',
|
|
57
|
+
value: 'subscription-widget-v2'
|
|
55
58
|
}
|
|
56
59
|
],
|
|
57
60
|
default: 'subscription-widget'
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useEditorMode } from '@gem-sdk/core';
|
|
4
4
|
import dynamic from 'next/dynamic';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
-
import { getVimeoVideoId,
|
|
6
|
+
import { getVimeoVideoId, getYoutubeVideoId, youtubeVideoRegex, parseTimeVideo } from '../helpers/common.js';
|
|
7
7
|
import { getAspectRatioSettings } from './common/common.js';
|
|
8
8
|
import { createAttr, createStyle, createClass } from '@gem-sdk/system';
|
|
9
9
|
import { getAttr } from './common/getAttr.js';
|
|
@@ -79,7 +79,7 @@ const Video = ({ className, setting, style, builderAttrs, builderProps, advanced
|
|
|
79
79
|
case 'vimeo':
|
|
80
80
|
{
|
|
81
81
|
const videoId = getVimeoVideoId(vimeoUrl);
|
|
82
|
-
if (!
|
|
82
|
+
if (!videoId) return undefined;
|
|
83
83
|
return /*#__PURE__*/ jsx(LiteVimeoEmbed, {
|
|
84
84
|
muted: !mute,
|
|
85
85
|
loop: loopVideo,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -349,6 +349,7 @@ type CarouselItemProps = {
|
|
|
349
349
|
index?: number;
|
|
350
350
|
contentType?: 'normalItem' | 'productImage';
|
|
351
351
|
onClickItem?: React.MouseEventHandler<any>;
|
|
352
|
+
dispatchEventSelectSlide?: (index: number) => void;
|
|
352
353
|
} & BasePropsWrap & React.ComponentPropsWithoutRef<'div'>;
|
|
353
354
|
declare const CarouselItem$1: React.FC<CarouselItemProps>;
|
|
354
355
|
|
|
@@ -6052,6 +6053,7 @@ declare const CarouselItem: ({ children, builderAttrs, styles, advanced, setting
|
|
|
6052
6053
|
index?: number | undefined;
|
|
6053
6054
|
contentType?: "normalItem" | "productImage" | undefined;
|
|
6054
6055
|
onClickItem?: React.MouseEventHandler<any> | undefined;
|
|
6056
|
+
dispatchEventSelectSlide?: ((index: number) => void) | undefined;
|
|
6055
6057
|
} & _gem_sdk_core.BaseProps<unknown, unknown, Record<string, any>> & {
|
|
6056
6058
|
builderAttrs?: Record<string, any> | undefined;
|
|
6057
6059
|
style?: React.CSSProperties | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.294",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
25
|
+
"@gem-sdk/core": "2.0.0-dev.294",
|
|
26
26
|
"@gem-sdk/styles": "2.0.0-dev.263",
|
|
27
27
|
"@gem-sdk/system": "2.0.0-dev.263",
|
|
28
28
|
"@types/react-transition-group": "^4.4.5"
|