@gem-sdk/components 2.0.0-dev.718 → 2.0.0-dev.720

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.
@@ -80,7 +80,7 @@ const getHtml5VideoClasses = (aspectRatio, isHiddenVideoHtml5 = false)=>{
80
80
  return composeClasses(classList);
81
81
  };
82
82
  const getWrapperYoutubeClasses = ()=>{
83
- const classList = `gp-pb-[56.25%] gp-h-full gp-w-full !gp-max-w-none`;
83
+ const classList = `gp-pb-[56.25%] gp-h-full gp-w-full !gp-max-w-none gp-pointer-events-none`;
84
84
  return composeClasses(classList);
85
85
  };
86
86
  const getIframeYoutubeClasses = ()=>{
@@ -229,6 +229,21 @@ const SettingUIV2 = [
229
229
  en: 'Size'
230
230
  },
231
231
  controls: [
232
+ {
233
+ label: {
234
+ en: 'Video Ratio'
235
+ },
236
+ setting: {
237
+ id: 'aspectRatio'
238
+ },
239
+ conditionDisplay: 'background.type == "video" && background.videoType == "html5"'
240
+ },
241
+ {
242
+ conditionDisplay: "aspectRatio === 'custom'",
243
+ setting: {
244
+ id: 'ratioOptions'
245
+ }
246
+ },
232
247
  {
233
248
  setting: {
234
249
  id: 'sizeSetting'
@@ -292,7 +307,7 @@ const SettingUIV2 = [
292
307
  setting: {
293
308
  id: 'verticalAlign'
294
309
  },
295
- conditionEnable: 'layout.cols.length > 1'
310
+ conditionEnable: 'layout.cols.length > 1 && layout.type != "right-distributed" && layout.type != "left-distributed"'
296
311
  }
297
312
  ]
298
313
  },
@@ -446,6 +461,7 @@ const SettingUIV2 = [
446
461
  setting: {
447
462
  id: 'enableParallax'
448
463
  },
464
+ conditionDisplay: 'background.type == "image"',
449
465
  defaultValueWhenClear: false,
450
466
  controls: [
451
467
  {
@@ -560,7 +576,7 @@ const SettingUIV2 = [
560
576
  options: {
561
577
  labelVariant: 'primary',
562
578
  fullWidth: true,
563
- disableMessage: `Align is not supported when width is 100%`
579
+ disableMessage: `This option is disabled because the width was set to 100%`
564
580
  }
565
581
  }
566
582
  ]
@@ -62,7 +62,7 @@ const verticalThree = [
62
62
  }
63
63
  },
64
64
  tag: 'Text',
65
- uid: 'gM8g6bIPhc',
65
+ uid: 'godgbN4jmg',
66
66
  childrens: []
67
67
  },
68
68
  {
@@ -121,7 +121,7 @@ const verticalThree = [
121
121
  }
122
122
  },
123
123
  tag: 'Text',
124
- uid: 'gKf_DRU8mg',
124
+ uid: 'g2DhS6UmRK',
125
125
  childrens: [],
126
126
  advanced: {
127
127
  'spacing-setting': {
@@ -138,161 +138,149 @@ const verticalThree = [
138
138
  settings: {},
139
139
  styles: {},
140
140
  tag: 'Col',
141
- uid: 'gUsNDh7fOr'
141
+ uid: 'gMkPFmgV5y'
142
142
  },
143
143
  {
144
- uid: 'g7Le3WhxZn',
144
+ uid: 'g6mN1dFWRS',
145
145
  tag: 'Col',
146
146
  label: 'Block',
147
147
  settings: {},
148
148
  childrens: [
149
149
  {
150
- advanced: {
151
- d: {
152
- desktop: true,
153
- mobile: true,
154
- tablet: true
155
- },
156
- editorData: {
157
- css: '.{{rootClassName}} > div > div{\nwidth:100%;\n}',
158
- rootClassName: '{{rootClassName}}'
159
- },
160
- hasBoxShadow: {
161
- desktop: {
162
- normal: false
163
- }
164
- },
165
- left: {
166
- desktop: '0px'
167
- },
168
- op: {
169
- desktop: '100%'
170
- },
171
- pos: {
172
- desktop: 'static'
173
- },
174
- right: {
175
- desktop: '0px'
176
- },
177
- rounded: {
178
- desktop: {
179
- normal: {
180
- bblr: '0px',
181
- bbrr: '0px',
182
- btlr: '0px',
183
- btrr: '0px',
184
- radiusType: 'none'
185
- }
186
- }
187
- },
188
- 'spacing-setting': {
189
- desktop: {
190
- margin: {
191
- bottom: '8px'
192
- }
193
- }
194
- },
195
- z: {
196
- desktop: 1
197
- }
198
- },
150
+ uid: 'gmWNX_9YGJ',
151
+ tag: 'ProductBadge',
199
152
  label: 'Product Badge',
200
153
  settings: {
201
- contentType: 'text',
202
- displayContent: 'SALE {percent_discount}',
203
- translate: 'displayContent',
204
154
  displayTrigger: [
205
155
  {
206
- conditionType: 'exact_or_above',
207
- from: '1',
208
- priority: 0,
156
+ triggerEvent: 'inventory_status',
157
+ type: 'in_stock',
209
158
  quantityType: 'exact_or_above',
159
+ from: '1',
210
160
  to: '15',
211
- triggerEvent: 'inventory_status',
212
- type: 'in_stock'
161
+ priority: 0,
162
+ conditionType: 'exact_or_above'
213
163
  }
214
164
  ],
215
165
  image: {
216
166
  src: 'https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677'
217
167
  },
218
- positionWithImage: 'outside',
219
- shape: 'horizontal_rectangle'
168
+ shape: 'horizontal_rectangle',
169
+ displayContent: 'Sale {percent_discount} off',
170
+ translate: 'displayContent',
171
+ contentType: 'text',
172
+ positionWithImage: 'outside'
220
173
  },
221
174
  styles: {
222
- align: {
223
- desktop: 'left'
175
+ typo: {
176
+ type: 'paragraph-1',
177
+ attrs: {
178
+ color: '#121212'
179
+ }
224
180
  },
181
+ position: {
182
+ desktop: {
183
+ placement: 'top-left',
184
+ topGap: '0',
185
+ leftGap: '0',
186
+ bottomGap: '0',
187
+ rightGap: '0'
188
+ }
189
+ },
190
+ badgeColor: '#FF614C',
225
191
  badgeColorV2: {
226
192
  desktop: {
227
193
  normal: '#FF614C'
228
194
  }
229
195
  },
230
- borderRadius: {
231
- bblr: '0px',
232
- bbrr: '0px',
233
- btlr: '0px',
234
- btrr: '0px',
235
- radiusType: 'custom'
236
- },
237
- hasShadow: false,
238
- imageSize: {
196
+ textColor: 'text-3',
197
+ textBadgeBorder: {
239
198
  desktop: {
240
- disableShapeLinked: true,
241
- height: 'auto',
242
- shape: 'original',
243
- shapeLinked: true,
244
- width: '20%'
199
+ normal: {
200
+ borderType: 'none',
201
+ border: 'none',
202
+ borderWidth: '1px',
203
+ width: '1px 1px 1px 1px',
204
+ color: '#121212',
205
+ isCustom: true
206
+ },
207
+ hover: {
208
+ borderType: 'none',
209
+ border: 'none',
210
+ borderWidth: '1px',
211
+ width: '1px 1px 1px 1px',
212
+ color: '#121212',
213
+ isCustom: true
214
+ }
245
215
  }
246
216
  },
247
- position: {
217
+ imageBadgeBorder: {
248
218
  desktop: {
249
- bottomGap: '0',
250
- leftGap: '0',
251
- placement: 'top-left',
252
- rightGap: '0',
253
- topGap: '0'
219
+ normal: {
220
+ borderType: 'none',
221
+ border: 'none',
222
+ borderWidth: '1px',
223
+ width: '1px 1px 1px 1px',
224
+ color: '#121212',
225
+ isCustom: true
226
+ },
227
+ hover: {
228
+ borderType: 'none',
229
+ border: 'none',
230
+ borderWidth: '1px',
231
+ width: '1px 1px 1px 1px',
232
+ color: '#121212',
233
+ isCustom: true
234
+ }
254
235
  }
255
236
  },
256
- shapeShadow: {
257
- angle: 90,
258
- blur: '12px',
259
- color: '#121212',
260
- distance: '4px',
261
- spread: '0px',
262
- type: 'shadow-1'
237
+ borderRadius: {
238
+ btrr: '3px',
239
+ bblr: '3px',
240
+ bbrr: '3px',
241
+ btlr: '3px',
242
+ radiusType: 'custom'
263
243
  },
264
- textColor: 'text-3',
265
- textSize: {
244
+ textBadgeCorner: {
266
245
  desktop: {
267
- disableShapeLinked: true,
268
- gap: '',
269
- height: 'Auto',
270
- hiddenShape: true,
271
- padding: {
272
- bottom: '8px',
273
- left: '12px',
274
- right: '12px',
275
- top: '8px'
246
+ normal: {
247
+ btrr: '0px',
248
+ bblr: '0px',
249
+ bbrr: '0px',
250
+ btlr: '0px',
251
+ radiusType: 'none'
276
252
  },
277
- shape: 'custom',
278
- shapeLinked: false,
279
- width: '100%'
253
+ hover: {
254
+ btrr: '0px',
255
+ bblr: '0px',
256
+ bbrr: '0px',
257
+ btlr: '0px',
258
+ radiusType: 'none'
259
+ }
280
260
  }
281
261
  },
282
- typo: {
283
- attrs: {
284
- color: 'text-3'
285
- },
286
- custom: {
287
- fontSize: {
288
- desktop: '15px'
262
+ imageBadgeCorner: {
263
+ desktop: {
264
+ normal: {
265
+ btrr: '0px',
266
+ bblr: '0px',
267
+ bbrr: '0px',
268
+ btlr: '0px',
269
+ radiusType: 'none'
270
+ },
271
+ hover: {
272
+ btrr: '0px',
273
+ bblr: '0px',
274
+ bbrr: '0px',
275
+ btlr: '0px',
276
+ radiusType: 'none'
289
277
  }
290
- },
291
- type: 'paragraph-1'
278
+ }
292
279
  },
280
+ hasShadow: false,
293
281
  textSizeV2: {
294
282
  desktop: {
295
- width: 'Auto',
283
+ width: 'auto',
296
284
  height: 'auto',
297
285
  shapeLinked: false,
298
286
  disableShapeLinked: true,
@@ -305,11 +293,193 @@ const verticalThree = [
305
293
  right: '12px'
306
294
  }
307
295
  }
296
+ },
297
+ imageSizeV2: {
298
+ desktop: {
299
+ width: '20%',
300
+ height: 'auto',
301
+ shapeLinked: true,
302
+ hiddenShape: false,
303
+ shape: 'original',
304
+ disableShapeLinked: true
305
+ }
306
+ },
307
+ align: {
308
+ desktop: 'right'
309
+ },
310
+ shapeShadow: {
311
+ type: 'shadow-1',
312
+ distance: '4px',
313
+ blur: '12px',
314
+ spread: '0px',
315
+ color: '#121212',
316
+ angle: 90
317
+ },
318
+ textBadgeShadow: {
319
+ desktop: {
320
+ normal: {}
321
+ }
322
+ },
323
+ imageBadgeShadow: {
324
+ desktop: {
325
+ normal: {}
326
+ }
308
327
  }
309
328
  },
310
- tag: 'ProductBadge',
311
- uid: 'gXAaVIfN3P',
312
- childrens: []
329
+ advanced: {
330
+ d: {
331
+ desktop: true,
332
+ tablet: true,
333
+ mobile: true
334
+ },
335
+ border: {
336
+ desktop: {
337
+ normal: {
338
+ borderType: 'none',
339
+ border: 'none',
340
+ borderWidth: '1px',
341
+ width: '1px 1px 1px 1px',
342
+ color: '#121212',
343
+ isCustom: true
344
+ }
345
+ }
346
+ },
347
+ rounded: {
348
+ desktop: {
349
+ normal: {
350
+ btrr: '0px',
351
+ bblr: '0px',
352
+ bbrr: '0px',
353
+ btlr: '0px',
354
+ radiusType: 'none'
355
+ }
356
+ }
357
+ },
358
+ hasBoxShadow: {
359
+ desktop: {
360
+ normal: false
361
+ }
362
+ },
363
+ boxShadow: {
364
+ desktop: {
365
+ normal: {}
366
+ }
367
+ },
368
+ op: {
369
+ desktop: '100%'
370
+ },
371
+ animation: {
372
+ desktop: {
373
+ enabled: false,
374
+ trigger: 'appear',
375
+ triggerConfig: {
376
+ appear: {
377
+ animation: 'fade',
378
+ setting: {
379
+ fade: {
380
+ delay: '0',
381
+ speed: 1.7,
382
+ easing: 'ease-out'
383
+ },
384
+ zoom: {
385
+ delay: '0',
386
+ speed: 1.7,
387
+ isFade: true,
388
+ easing: 'ease-out',
389
+ zoomDirection: 'in',
390
+ scale: {
391
+ in: [
392
+ 80,
393
+ 100
394
+ ],
395
+ out: [
396
+ 120,
397
+ 100
398
+ ]
399
+ }
400
+ },
401
+ slide: {
402
+ delay: '0',
403
+ speed: 1.7,
404
+ easing: 'ease-out',
405
+ direction: 'left',
406
+ isCustomDistance: false
407
+ },
408
+ shake: {
409
+ delay: '0',
410
+ speed: 0.7,
411
+ loop: false,
412
+ intensity: 11,
413
+ easing: 'linear'
414
+ }
415
+ }
416
+ },
417
+ hover: {
418
+ animation: 'none',
419
+ setting: {
420
+ fade: {
421
+ delay: '0',
422
+ speed: 1.7,
423
+ easing: 'ease-out'
424
+ },
425
+ zoom: {
426
+ delay: '0',
427
+ speed: 1.7,
428
+ isFade: false,
429
+ easing: 'ease-out',
430
+ zoomDirection: 'in',
431
+ scale: {
432
+ in: [
433
+ 100,
434
+ 120
435
+ ],
436
+ out: [
437
+ 100,
438
+ 80
439
+ ]
440
+ }
441
+ },
442
+ slide: {
443
+ delay: '0',
444
+ speed: 1.7,
445
+ easing: 'ease-out',
446
+ direction: 'left',
447
+ isCustomDistance: false
448
+ },
449
+ shake: {
450
+ delay: '0',
451
+ speed: 0.7,
452
+ loop: false,
453
+ intensity: 11,
454
+ easing: 'linear'
455
+ }
456
+ }
457
+ }
458
+ }
459
+ }
460
+ },
461
+ 'spacing-setting': {
462
+ edited: [
463
+ 'desktop'
464
+ ],
465
+ desktop: {
466
+ margin: {
467
+ bottom: '0px'
468
+ },
469
+ link: false
470
+ },
471
+ tablet: {
472
+ margin: {
473
+ bottom: '0px'
474
+ }
475
+ },
476
+ mobile: {
477
+ margin: {
478
+ bottom: '0px'
479
+ }
480
+ }
481
+ }
482
+ }
313
483
  },
314
484
  {
315
485
  childrens: [
@@ -561,14 +731,16 @@ const verticalThree = [
561
731
  }
562
732
  },
563
733
  priceType: 'compare'
564
- }
734
+ },
735
+ uid: 'gLhCbsXpVC',
736
+ childrens: []
565
737
  }
566
738
  ],
567
739
  label: 'Block',
568
740
  settings: {},
569
741
  styles: {},
570
742
  tag: 'Col',
571
- uid: 'gjH1W3Ljxp'
743
+ uid: 'gN16E_m65q'
572
744
  },
573
745
  {
574
746
  tag: 'Col',
@@ -604,11 +776,11 @@ const verticalThree = [
604
776
  }
605
777
  },
606
778
  tag: 'ProductPrice',
607
- uid: 'gzGEbvnT3K',
779
+ uid: 'geI0yJ5vya',
608
780
  childrens: []
609
781
  }
610
782
  ],
611
- uid: 'gNSAXKYuIB'
783
+ uid: 'g5Ae3_ghD4'
612
784
  }
613
785
  ],
614
786
  label: 'Row',
@@ -674,7 +846,7 @@ const verticalThree = [
674
846
  }
675
847
  },
676
848
  tag: 'Row',
677
- uid: 'gkZXC79fdE',
849
+ uid: 'grH2p9Ef3R',
678
850
  advanced: {
679
851
  'spacing-setting': {
680
852
  desktop: {
@@ -749,7 +921,7 @@ const verticalThree = [
749
921
  width: {}
750
922
  },
751
923
  tag: 'Row',
752
- uid: 'g8_-a9Ub8r'
924
+ uid: 'g3DN13uD09'
753
925
  }
754
926
  ];
755
927