@gem-sdk/components 2.0.0-dev.350 → 2.0.0-dev.351

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.
@@ -70,7 +70,7 @@ const HeroBanner = (props)=>{
70
70
  }}
71
71
  class="${wrapperClasses}"
72
72
  style="${wrapperStyle}"
73
- gp-data='${core.dataStringify(stateDataHeroBanner).replaceAll("'", ''')}'
73
+ gp-data='${core.dataStringify(stateDataHeroBanner)}'
74
74
  >
75
75
  ${system.If(!hasLinkCover, renderInnerHeroBanner())}
76
76
  ${system.If(hasLinkCover, core.template /* liquid */ `
@@ -55,15 +55,6 @@ const heroBanner1Col = {
55
55
  width: '1200px',
56
56
  height: '600px'
57
57
  }
58
- },
59
- background: {
60
- desktop: {
61
- image: {
62
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png'
63
- },
64
- loop: true,
65
- lazyLoad: false
66
- }
67
58
  }
68
59
  },
69
60
  childrens: [
@@ -60,15 +60,6 @@ const heroBannerContentLeft = {
60
60
  width: '100%',
61
61
  height: 'auto'
62
62
  }
63
- },
64
- background: {
65
- desktop: {
66
- image: {
67
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png'
68
- },
69
- loop: true,
70
- lazyLoad: false
71
- }
72
63
  }
73
64
  },
74
65
  childrens: [
@@ -68,15 +68,6 @@ const heroBannerContentRight = {
68
68
  widthHeightLinked: true,
69
69
  width: '100%'
70
70
  }
71
- },
72
- background: {
73
- desktop: {
74
- image: {
75
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png'
76
- },
77
- loop: true,
78
- lazyLoad: false
79
- }
80
71
  }
81
72
  },
82
73
  childrens: [
@@ -55,15 +55,6 @@ const heroBannerParallax = {
55
55
  width: '1200px',
56
56
  height: '600px'
57
57
  }
58
- },
59
- background: {
60
- desktop: {
61
- image: {
62
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png'
63
- },
64
- loop: true,
65
- lazyLoad: false
66
- }
67
58
  }
68
59
  },
69
60
  childrens: [
@@ -42,6 +42,12 @@ const heroBannerVideo = {
42
42
  background: {
43
43
  desktop: {
44
44
  type: 'video',
45
+ image: {
46
+ src: '',
47
+ width: 1920,
48
+ height: 900
49
+ },
50
+ videoType: 'html5',
45
51
  video: 'https://youtu.be/KOxfzBp72uk',
46
52
  videoHtml5: 'https://media.w3.org/2010/05/sintel/trailer.mp4'
47
53
  }
@@ -414,14 +414,14 @@ const SettingsV2 = [
414
414
  id: 'background',
415
415
  type: 'background-media',
416
416
  label: 'Background Color & Image',
417
+ ignoreReRender: true,
417
418
  showVideo: true,
418
419
  devices: {
419
420
  desktop: {
420
421
  default: {
421
422
  type: 'image',
422
- color: 'bg-2',
423
423
  image: {
424
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png',
424
+ src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-c9f109ee-2adf-4ec4-8d26-11a891c50a13.png',
425
425
  width: 1920,
426
426
  height: 900
427
427
  },
@@ -432,8 +432,8 @@ const SettingsV2 = [
432
432
  },
433
433
  repeat: 'no-repeat',
434
434
  attachment: 'scroll',
435
- video: 'https://www.youtube.com/watch?v=cyzh48XRS4M',
436
- videoHtml5: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
435
+ video: '',
436
+ videoHtml5: '',
437
437
  videoType: 'youtube',
438
438
  loop: true,
439
439
  lazyLoad: false
@@ -654,12 +654,16 @@ const SettingsV2 = [
654
654
  ],
655
655
  step: 1,
656
656
  default: {
657
- normal: '0%',
657
+ normal: '20%',
658
658
  hover: '20%'
659
659
  },
660
660
  state: {
661
661
  normal: true,
662
662
  hover: true
663
+ },
664
+ compoDefaultValue: {
665
+ normal: '20%',
666
+ hover: '20%'
663
667
  }
664
668
  },
665
669
  {
@@ -66,7 +66,7 @@ const HeroBanner = (props)=>{
66
66
  }}
67
67
  class="${wrapperClasses}"
68
68
  style="${wrapperStyle}"
69
- gp-data='${dataStringify(stateDataHeroBanner).replaceAll("'", ''')}'
69
+ gp-data='${dataStringify(stateDataHeroBanner)}'
70
70
  >
71
71
  ${If(!hasLinkCover, renderInnerHeroBanner())}
72
72
  ${If(hasLinkCover, template /* liquid */ `
@@ -53,15 +53,6 @@ const heroBanner1Col = {
53
53
  width: '1200px',
54
54
  height: '600px'
55
55
  }
56
- },
57
- background: {
58
- desktop: {
59
- image: {
60
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png'
61
- },
62
- loop: true,
63
- lazyLoad: false
64
- }
65
56
  }
66
57
  },
67
58
  childrens: [
@@ -58,15 +58,6 @@ const heroBannerContentLeft = {
58
58
  width: '100%',
59
59
  height: 'auto'
60
60
  }
61
- },
62
- background: {
63
- desktop: {
64
- image: {
65
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png'
66
- },
67
- loop: true,
68
- lazyLoad: false
69
- }
70
61
  }
71
62
  },
72
63
  childrens: [
@@ -66,15 +66,6 @@ const heroBannerContentRight = {
66
66
  widthHeightLinked: true,
67
67
  width: '100%'
68
68
  }
69
- },
70
- background: {
71
- desktop: {
72
- image: {
73
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png'
74
- },
75
- loop: true,
76
- lazyLoad: false
77
- }
78
69
  }
79
70
  },
80
71
  childrens: [
@@ -53,15 +53,6 @@ const heroBannerParallax = {
53
53
  width: '1200px',
54
54
  height: '600px'
55
55
  }
56
- },
57
- background: {
58
- desktop: {
59
- image: {
60
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png'
61
- },
62
- loop: true,
63
- lazyLoad: false
64
- }
65
56
  }
66
57
  },
67
58
  childrens: [
@@ -40,6 +40,12 @@ const heroBannerVideo = {
40
40
  background: {
41
41
  desktop: {
42
42
  type: 'video',
43
+ image: {
44
+ src: '',
45
+ width: 1920,
46
+ height: 900
47
+ },
48
+ videoType: 'html5',
43
49
  video: 'https://youtu.be/KOxfzBp72uk',
44
50
  videoHtml5: 'https://media.w3.org/2010/05/sintel/trailer.mp4'
45
51
  }
@@ -412,14 +412,14 @@ const SettingsV2 = [
412
412
  id: 'background',
413
413
  type: 'background-media',
414
414
  label: 'Background Color & Image',
415
+ ignoreReRender: true,
415
416
  showVideo: true,
416
417
  devices: {
417
418
  desktop: {
418
419
  default: {
419
420
  type: 'image',
420
- color: 'bg-2',
421
421
  image: {
422
- src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-3ecdd107-d16d-4cc1-a5f1-00e38afef3eb.png',
422
+ src: 'https://cdn.shopify.com/s/files/1/0703/5214/2562/files/gempages_518090459516502570-c9f109ee-2adf-4ec4-8d26-11a891c50a13.png',
423
423
  width: 1920,
424
424
  height: 900
425
425
  },
@@ -430,8 +430,8 @@ const SettingsV2 = [
430
430
  },
431
431
  repeat: 'no-repeat',
432
432
  attachment: 'scroll',
433
- video: 'https://www.youtube.com/watch?v=cyzh48XRS4M',
434
- videoHtml5: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
433
+ video: '',
434
+ videoHtml5: '',
435
435
  videoType: 'youtube',
436
436
  loop: true,
437
437
  lazyLoad: false
@@ -652,12 +652,16 @@ const SettingsV2 = [
652
652
  ],
653
653
  step: 1,
654
654
  default: {
655
- normal: '0%',
655
+ normal: '20%',
656
656
  hover: '20%'
657
657
  },
658
658
  state: {
659
659
  normal: true,
660
660
  hover: true
661
+ },
662
+ compoDefaultValue: {
663
+ normal: '20%',
664
+ hover: '20%'
661
665
  }
662
666
  },
663
667
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.350",
3
+ "version": "2.0.0-dev.351",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",