@gem-sdk/components 2.1.41 → 2.2.0-staging.28

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 (96) hide show
  1. package/dist/cjs/article/components/ArticleImage.js +2 -1
  2. package/dist/cjs/banner/components/hero-banner/index.liquid.js +4 -7
  3. package/dist/cjs/builder.js +4 -0
  4. package/dist/cjs/button/components/Button.liquid.js +5 -4
  5. package/dist/cjs/carousel/components/Carousel.liquid.js +3 -2
  6. package/dist/cjs/carousel/components/plugins/AutoPlayPlugin.js +17 -58
  7. package/dist/cjs/common/const.js +1 -1
  8. package/dist/cjs/helpers.js +6 -1
  9. package/dist/cjs/image/components/AdaptiveImage.liquid.js +6 -5
  10. package/dist/cjs/image/components/Image.js +2 -1
  11. package/dist/cjs/image/components/Image.liquid.js +6 -4
  12. package/dist/cjs/image/components/NextImage.liquid.js +4 -3
  13. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +7 -3
  14. package/dist/cjs/index.js +4 -0
  15. package/dist/cjs/index.liquid.js +4 -0
  16. package/dist/cjs/marquee/components/Marquee.liquid.js +10 -13
  17. package/dist/cjs/post-purchase/product/components/variants/Dropdown.js +1 -1
  18. package/dist/cjs/product/components/ProductButton.js +1 -1
  19. package/dist/cjs/product/components/ProductButton.liquid.js +21 -3
  20. package/dist/cjs/product/components/ProductImagesV2/liquid/ProductFeaturedImageCarousel.liquid.js +6 -5
  21. package/dist/cjs/product/components/ProductImagesV2/liquid/ProductGalleryCarousel.liquid.js +2 -2
  22. package/dist/cjs/product/components/ProductImagesV2/liquid/ProductGalleryGrid.liquid.js +4 -4
  23. package/dist/cjs/product/components/ProductImagesV2/liquid/ProductImages.liquid.js +4 -4
  24. package/dist/cjs/product/components/ProductVariants/variants/combine/index.js +1 -1
  25. package/dist/cjs/product/setting/ProductList.js +1 -1
  26. package/dist/cjs/tab/hooks/useTabInteraction.js +13 -9
  27. package/dist/cjs/text/components/Text.js +0 -1
  28. package/dist/cjs/third-party/components/AppstleBundlesDiscounts.js +32 -0
  29. package/dist/cjs/third-party/components/AppstleBundlesDiscounts.liquid.js +12 -0
  30. package/dist/cjs/third-party/components/Bogos/BogosSampleContent.js +9 -10
  31. package/dist/cjs/third-party/components/EcomsendBackInStockAlert.js +32 -0
  32. package/dist/cjs/third-party/components/EcomsendBackInStockAlert.liquid.js +21 -0
  33. package/dist/cjs/third-party/components/RechargeSubscriptions.liquid.js +1 -1
  34. package/dist/cjs/third-party/components/Releasit.liquid.js +4 -2
  35. package/dist/cjs/third-party/configs/AppstleBundlesDiscounts.js +12 -0
  36. package/dist/cjs/third-party/configs/BoldProductOptions.js +2 -2
  37. package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
  38. package/dist/cjs/third-party/configs/EcomsendBackInStockAlert.js +12 -0
  39. package/dist/cjs/third-party/next.js +10 -0
  40. package/dist/cjs/third-party/setting/AppstleBundlesDiscounts.js +146 -0
  41. package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc.js +2 -2
  42. package/dist/cjs/third-party/setting/EcomsendBackInStockAlert.js +128 -0
  43. package/dist/cjs/third-party/setting/Releasit.js +59 -2
  44. package/dist/cjs/third-party/setting/index.js +5 -1
  45. package/dist/cjs/video/components/HTML5Embed.js +2 -2
  46. package/dist/cjs/video/components/HTML5Embed.liquid.js +6 -3
  47. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +5 -3
  48. package/dist/esm/article/components/ArticleImage.js +2 -1
  49. package/dist/esm/banner/components/hero-banner/index.liquid.js +4 -7
  50. package/dist/esm/builder.js +4 -0
  51. package/dist/esm/button/components/Button.liquid.js +5 -4
  52. package/dist/esm/carousel/components/Carousel.liquid.js +3 -2
  53. package/dist/esm/carousel/components/plugins/AutoPlayPlugin.js +17 -58
  54. package/dist/esm/common/const.js +1 -1
  55. package/dist/esm/helpers.js +6 -1
  56. package/dist/esm/image/components/AdaptiveImage.liquid.js +6 -5
  57. package/dist/esm/image/components/Image.js +3 -2
  58. package/dist/esm/image/components/Image.liquid.js +6 -4
  59. package/dist/esm/image/components/NextImage.liquid.js +4 -3
  60. package/dist/esm/image-comparison/components/CompareImage.liquid.js +7 -3
  61. package/dist/esm/index.js +2 -0
  62. package/dist/esm/index.liquid.js +2 -0
  63. package/dist/esm/marquee/components/Marquee.liquid.js +10 -13
  64. package/dist/esm/post-purchase/product/components/variants/Dropdown.js +1 -1
  65. package/dist/esm/product/components/ProductButton.js +1 -1
  66. package/dist/esm/product/components/ProductButton.liquid.js +21 -3
  67. package/dist/esm/product/components/ProductImagesV2/liquid/ProductFeaturedImageCarousel.liquid.js +6 -5
  68. package/dist/esm/product/components/ProductImagesV2/liquid/ProductGalleryCarousel.liquid.js +2 -2
  69. package/dist/esm/product/components/ProductImagesV2/liquid/ProductGalleryGrid.liquid.js +4 -4
  70. package/dist/esm/product/components/ProductImagesV2/liquid/ProductImages.liquid.js +4 -4
  71. package/dist/esm/product/components/ProductVariants/variants/combine/index.js +1 -1
  72. package/dist/esm/product/setting/ProductList.js +1 -1
  73. package/dist/esm/tab/hooks/useTabInteraction.js +14 -10
  74. package/dist/esm/text/components/Text.js +0 -1
  75. package/dist/esm/third-party/components/AppstleBundlesDiscounts.js +28 -0
  76. package/dist/esm/third-party/components/AppstleBundlesDiscounts.liquid.js +8 -0
  77. package/dist/esm/third-party/components/Bogos/BogosSampleContent.js +10 -11
  78. package/dist/esm/third-party/components/EcomsendBackInStockAlert.js +28 -0
  79. package/dist/esm/third-party/components/EcomsendBackInStockAlert.liquid.js +17 -0
  80. package/dist/esm/third-party/components/RechargeSubscriptions.liquid.js +1 -1
  81. package/dist/esm/third-party/components/Releasit.liquid.js +4 -2
  82. package/dist/esm/third-party/configs/AppstleBundlesDiscounts.js +8 -0
  83. package/dist/esm/third-party/configs/BoldProductOptions.js +2 -2
  84. package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +1 -1
  85. package/dist/esm/third-party/configs/EcomsendBackInStockAlert.js +8 -0
  86. package/dist/esm/third-party/next.js +10 -0
  87. package/dist/esm/third-party/setting/AppstleBundlesDiscounts.js +142 -0
  88. package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc.js +2 -2
  89. package/dist/esm/third-party/setting/EcomsendBackInStockAlert.js +124 -0
  90. package/dist/esm/third-party/setting/Releasit.js +59 -2
  91. package/dist/esm/third-party/setting/index.js +5 -1
  92. package/dist/esm/video/components/HTML5Embed.js +2 -2
  93. package/dist/esm/video/components/HTML5Embed.liquid.js +6 -3
  94. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +5 -3
  95. package/dist/types/index.d.ts +54 -8
  96. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  var BoldProductOptionsConfig = {
2
2
  id: 'bold-product-options',
3
- label: 'Bold Product Options',
4
- logoUrl: 'https://ucarecdn.com/cae13b55-18b6-416a-a447-c18211d78cfe/-/format/auto/-/preview/3000x3000/-/quality/lighter/Bold%20Product%20Options.png',
3
+ label: 'SC Product Options',
4
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9a0bf1159f79c6ab0660ec422f350445/icon/CP2Uwo_GuYIDEAE=.png',
5
5
  tag: 'BoldProductOptions'
6
6
  };
7
7
 
@@ -1,7 +1,7 @@
1
1
  var AppConfig = {
2
2
  id: 'ecoboostify-shoppable-reel-ugc',
3
3
  label: 'EcoBoostify Shoppable Reel UGC',
4
- logoUrl: 'https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/COuT9MaKvosDEAE=.png',
4
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png',
5
5
  tag: 'EcoboostifyShoppableReelUgc'
6
6
  };
7
7
 
@@ -0,0 +1,8 @@
1
+ var AppConfig = {
2
+ id: 'ecomsend-back-in-stock-alert',
3
+ label: 'EcomSend Back in Stock Alert',
4
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/d4d2bcc6f71dda4f30b09bd429b37065/icon/CLeo2LeKhIsDEAE=.png',
5
+ tag: 'EcomsendBackInStockAlert'
6
+ };
7
+
8
+ export { AppConfig as default };
@@ -2,6 +2,14 @@ import dynamic from 'next/dynamic';
2
2
  import Loading from '../common/components/Loading.js';
3
3
  import 'react/jsx-runtime';
4
4
 
5
+ const EcomsendBackInStockAlert = dynamic(()=>import('./components/EcomsendBackInStockAlert.js'), {
6
+ ssr: false,
7
+ loading: Loading
8
+ });
9
+ const AppstleBundlesDiscounts = dynamic(()=>import('./components/AppstleBundlesDiscounts.js'), {
10
+ ssr: false,
11
+ loading: Loading
12
+ });
5
13
  const EstimatedDeliveryDatePlus = dynamic(()=>import('./components/EstimatedDeliveryDatePlus.js'), {
6
14
  ssr: false,
7
15
  loading: Loading
@@ -459,6 +467,8 @@ const EcoboostifyShoppableReelUgc = dynamic(()=>import('./components/Ecoboostify
459
467
  loading: Loading
460
468
  });
461
469
  var thirdParty = {
470
+ EcomsendBackInStockAlert,
471
+ AppstleBundlesDiscounts,
462
472
  EcoboostifyShoppableReelUgc,
463
473
  EstimatedDeliveryDatePlus,
464
474
  OkendoReviewsLoyalty,
@@ -0,0 +1,142 @@
1
+ import AppConfig from '../configs/AppstleBundlesDiscounts.js';
2
+
3
+ const config = {
4
+ tag: AppConfig.tag,
5
+ label: AppConfig.label,
6
+ icon: '<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/855ee74552c1cca133c12a4364890912/icon/CO69r8mp0oQDEAE=.png">',
7
+ editorConfigs: {
8
+ placeholder: {
9
+ flowTag: [
10
+ 'Product'
11
+ ]
12
+ },
13
+ component: {
14
+ isThirdParty: true
15
+ }
16
+ },
17
+ presets: [
18
+ {
19
+ id: AppConfig.id,
20
+ name: {
21
+ en: AppConfig.label
22
+ },
23
+ hideTextContent: true,
24
+ icon: {
25
+ desktop: `<div class="w-full flex flex-col items-center">
26
+ <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/855ee74552c1cca133c12a4364890912/icon/CO69r8mp0oQDEAE=.png">
27
+ <span class="preset-item-title">Appstle℠ Bundles & Discounts</span>
28
+ </div>`
29
+ },
30
+ components: [
31
+ {
32
+ tag: AppConfig.tag
33
+ }
34
+ ]
35
+ }
36
+ ],
37
+ settings: [
38
+ {
39
+ id: 'setting',
40
+ controls: [
41
+ {
42
+ id: 'appBlockId',
43
+ type: 'input',
44
+ default: ''
45
+ },
46
+ {
47
+ id: 'widgetType',
48
+ label: 'Choose widget',
49
+ type: 'select',
50
+ options: [
51
+ {
52
+ label: 'Classic Bundle',
53
+ value: 'appstle-classic-bundle'
54
+ },
55
+ {
56
+ label: 'Dynamic Bundle',
57
+ value: 'appstle-bundle-product-page-build-a-box'
58
+ }
59
+ ],
60
+ default: 'appstle-classic-bundle'
61
+ },
62
+ {
63
+ id: 'install',
64
+ type: 'open-link',
65
+ target: '_blank',
66
+ linkType: 'install',
67
+ href: 'https://apps.shopify.com/appstle-bundles?utm_source=gempages',
68
+ appName: AppConfig.label
69
+ },
70
+ {
71
+ id: 'openApp',
72
+ type: 'open-link',
73
+ target: '_blank',
74
+ linkType: 'openApp',
75
+ href: '',
76
+ appName: AppConfig.label
77
+ },
78
+ {
79
+ id: 'align',
80
+ label: 'Alignment',
81
+ type: 'segment',
82
+ options: [
83
+ {
84
+ label: 'Left',
85
+ value: 'left',
86
+ type: 'align'
87
+ },
88
+ {
89
+ label: 'Center',
90
+ value: 'center',
91
+ type: 'align'
92
+ },
93
+ {
94
+ label: 'Right',
95
+ value: 'right',
96
+ type: 'align'
97
+ }
98
+ ],
99
+ devices: {
100
+ desktop: {
101
+ default: 'left'
102
+ }
103
+ }
104
+ }
105
+ ]
106
+ }
107
+ ],
108
+ ui: [
109
+ {
110
+ type: 'control',
111
+ setting: {
112
+ id: 'install'
113
+ }
114
+ },
115
+ {
116
+ type: 'control',
117
+ label: {
118
+ en: 'Choose widget'
119
+ },
120
+ setting: {
121
+ id: 'widgetType'
122
+ }
123
+ },
124
+ {
125
+ type: 'control',
126
+ setting: {
127
+ id: 'openApp'
128
+ }
129
+ },
130
+ {
131
+ type: 'control',
132
+ label: {
133
+ en: 'Align'
134
+ },
135
+ setting: {
136
+ id: 'align'
137
+ }
138
+ }
139
+ ]
140
+ };
141
+
142
+ export { config as default };
@@ -3,7 +3,7 @@ import AppConfig from '../configs/EcoboostifyShoppableReelUgc.js';
3
3
  const config = {
4
4
  tag: AppConfig.tag,
5
5
  label: AppConfig.label,
6
- icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/COuT9MaKvosDEAE=.png">',
6
+ icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png">',
7
7
  editorConfigs: {
8
8
  component: {
9
9
  isThirdParty: true
@@ -18,7 +18,7 @@ const config = {
18
18
  hideTextContent: true,
19
19
  icon: {
20
20
  desktop: `<div class="w-full flex flex-col items-center">
21
- <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/COuT9MaKvosDEAE=.png">
21
+ <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png">
22
22
  <span class="preset-item-title">EcoBoostify Shoppable Reel UGC</span>
23
23
  </div>`
24
24
  },
@@ -0,0 +1,124 @@
1
+ import AppConfig from '../configs/EcomsendBackInStockAlert.js';
2
+
3
+ const config = {
4
+ tag: AppConfig.tag,
5
+ label: AppConfig.label,
6
+ icon: '<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/d4d2bcc6f71dda4f30b09bd429b37065/icon/CLeo2LeKhIsDEAE=.png">',
7
+ editorConfigs: {
8
+ placeholder: {
9
+ flowTag: [
10
+ 'Product'
11
+ ]
12
+ },
13
+ component: {
14
+ isThirdParty: true
15
+ }
16
+ },
17
+ presets: [
18
+ {
19
+ id: AppConfig.id,
20
+ name: {
21
+ en: AppConfig.label
22
+ },
23
+ hideTextContent: true,
24
+ icon: {
25
+ desktop: `<div class="w-full flex flex-col items-center">
26
+ <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/d4d2bcc6f71dda4f30b09bd429b37065/icon/CLeo2LeKhIsDEAE=.png">
27
+ <span class="preset-item-title">EcomSend Back in Stock Alert</span>
28
+ </div>`
29
+ },
30
+ components: [
31
+ {
32
+ tag: AppConfig.tag
33
+ }
34
+ ]
35
+ }
36
+ ],
37
+ settings: [
38
+ {
39
+ id: 'setting',
40
+ controls: [
41
+ {
42
+ id: 'widgetType',
43
+ label: 'Choose widget',
44
+ type: 'select',
45
+ options: [
46
+ {
47
+ label: 'Product Restore Email',
48
+ value: 'product-restore-email'
49
+ }
50
+ ],
51
+ default: 'product-restore-email'
52
+ },
53
+ {
54
+ id: 'install',
55
+ type: 'open-link',
56
+ target: '_blank',
57
+ linkType: 'install',
58
+ href: 'https://apps.shopify.com/email-1?utm_source=gempages',
59
+ appName: AppConfig.label
60
+ },
61
+ {
62
+ id: 'openApp',
63
+ type: 'open-link',
64
+ target: '_blank',
65
+ linkType: 'openApp',
66
+ href: '',
67
+ appName: AppConfig.label
68
+ },
69
+ {
70
+ id: 'align',
71
+ label: 'Alignment',
72
+ type: 'segment',
73
+ options: [
74
+ {
75
+ label: 'Left',
76
+ value: 'left',
77
+ type: 'align'
78
+ },
79
+ {
80
+ label: 'Center',
81
+ value: 'center',
82
+ type: 'align'
83
+ },
84
+ {
85
+ label: 'Right',
86
+ value: 'right',
87
+ type: 'align'
88
+ }
89
+ ],
90
+ devices: {
91
+ desktop: {
92
+ default: 'left'
93
+ }
94
+ }
95
+ }
96
+ ]
97
+ }
98
+ ],
99
+ ui: [
100
+ {
101
+ type: 'control',
102
+ setting: {
103
+ id: 'install'
104
+ }
105
+ },
106
+ {
107
+ type: 'control',
108
+ setting: {
109
+ id: 'openApp'
110
+ }
111
+ },
112
+ {
113
+ type: 'control',
114
+ label: {
115
+ en: 'Align'
116
+ },
117
+ setting: {
118
+ id: 'align'
119
+ }
120
+ }
121
+ ]
122
+ };
123
+
124
+ export { config as default };
@@ -7,6 +7,11 @@ const config = {
7
7
  editorConfigs: {
8
8
  component: {
9
9
  isThirdParty: true
10
+ },
11
+ placeholder: {
12
+ flowTag: [
13
+ 'Product'
14
+ ]
10
15
  }
11
16
  },
12
17
  presets: [
@@ -35,6 +40,16 @@ const config = {
35
40
  {
36
41
  id: 'setting',
37
42
  controls: [
43
+ {
44
+ id: 'appBlockId',
45
+ type: 'input',
46
+ default: ''
47
+ },
48
+ {
49
+ id: 'productHandle',
50
+ type: 'input',
51
+ default: ''
52
+ },
38
53
  {
39
54
  id: 'install',
40
55
  type: 'open-link',
@@ -51,6 +66,38 @@ const config = {
51
66
  href: 'https://admin.shopify.com/?redirect=/apps/releasit-cod-order-form',
52
67
  appName: ReleasitConfig.label
53
68
  },
69
+ {
70
+ id: 'version',
71
+ label: 'Choose version',
72
+ type: 'select',
73
+ default: 'v1',
74
+ options: [
75
+ {
76
+ label: 'V1',
77
+ value: 'v1'
78
+ },
79
+ {
80
+ label: 'V2',
81
+ value: 'v2'
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ id: 'widgetTypeV2',
87
+ label: 'Choose widget',
88
+ type: 'select',
89
+ default: 'button-app-block',
90
+ options: [
91
+ {
92
+ label: 'Releasit button',
93
+ value: 'button-app-block'
94
+ },
95
+ {
96
+ label: 'Releasit embedded form',
97
+ value: 'form-app-block'
98
+ }
99
+ ]
100
+ },
54
101
  {
55
102
  id: 'align',
56
103
  label: 'Alignment',
@@ -91,12 +138,22 @@ const config = {
91
138
  {
92
139
  type: 'control',
93
140
  label: {
94
- en: 'Choose widget'
141
+ en: 'Choose version'
95
142
  },
96
143
  setting: {
97
- id: 'widgetType'
144
+ id: 'version'
98
145
  }
99
146
  },
147
+ {
148
+ type: 'control',
149
+ label: {
150
+ en: 'Choose widget'
151
+ },
152
+ setting: {
153
+ id: 'widgetTypeV2'
154
+ },
155
+ condition: 'version === "v2"'
156
+ },
100
157
  {
101
158
  type: 'control',
102
159
  setting: {
@@ -112,6 +112,8 @@ import config$1K from './BfSizeChartSizeGuide.js';
112
112
  import config$1L from './AlsoBoughtCbb.js';
113
113
  import config$1M from './HextomFreeShippingBar.js';
114
114
  import config$1N from './EcoboostifyShoppableReelUgc.js';
115
+ import config$1O from './EcomsendBackInStockAlert.js';
116
+ import config$1P from './AppstleBundlesDiscounts.js';
115
117
 
116
118
  var index = {
117
119
  HextomCountdownTimerBar: config,
@@ -227,7 +229,9 @@ var index = {
227
229
  BfSizeChartSizeGuide: config$1K,
228
230
  AlsoBoughtCbb: config$1L,
229
231
  HextomFreeShippingBar: config$1M,
230
- EcoboostifyShoppableReelUgc: config$1N
232
+ EcoboostifyShoppableReelUgc: config$1N,
233
+ EcomsendBackInStockAlert: config$1O,
234
+ AppstleBundlesDiscounts: config$1P
231
235
  };
232
236
 
233
237
  export { index as default };
@@ -47,14 +47,14 @@ const HTML5Embed = (props)=>{
47
47
  }),
48
48
  props.thumbnail && showThumbnail && /*#__PURE__*/ jsxs("div", {
49
49
  role: "presentation",
50
- className: "gp-absolute gp-top-0 gp-left-0 gp-w-full",
50
+ className: "gp-absolute gp-top-0 gp-left-0 gp-w-full gp-h-full",
51
51
  onClick: playVideoAndTurnOffThumbnail,
52
52
  style: props.style,
53
53
  children: [
54
54
  /*#__PURE__*/ jsx("img", {
55
55
  id: "video-thumbnail",
56
56
  src: props.thumbnail,
57
- className: "gp-w-full gp-h-full gp-object-cover gp-thumbnail-video",
57
+ className: "gp-w-full gp-h-full gp-object-contain gp-thumbnail-video",
58
58
  alt: "Video Thumbnail"
59
59
  }),
60
60
  /*#__PURE__*/ jsx("button", {
@@ -3,6 +3,7 @@ import NextImage from '../../image/components/NextImage.liquid.js';
3
3
  import { getSettingPreloadData } from '../../helpers.js';
4
4
 
5
5
  const HTML5Embed = (props)=>{
6
+ const { enableLazyLoadImage, pageContext } = props;
6
7
  const videoId = `gp-video-${props.uid}`;
7
8
  const preloadThumbnail = props.autoplay && props.thumbnail;
8
9
  const offLazyVideo = !props.lazy && props.isVideoComponent;
@@ -19,7 +20,9 @@ const HTML5Embed = (props)=>{
19
20
  '--op': 0,
20
21
  '--z': -1,
21
22
  display: 'none'
22
- }
23
+ },
24
+ enableLazyLoadImage,
25
+ pageContext
23
26
  })}
24
27
  ${RenderIf(props.autoplay, `<script>
25
28
  document.addEventListener("DOMContentLoaded", (event) => {
@@ -68,14 +71,14 @@ const HTML5Embed = (props)=>{
68
71
  </video>
69
72
  <div
70
73
  style="${props.style}"
71
- class="${cls('gp-absolute gp-top-0 gp-left-0 gp-w-full gp-thumbnail-video', {
74
+ class="${cls('gp-absolute gp-top-0 gp-left-0 gp-w-full gp-h-full gp-thumbnail-video', {
72
75
  'gp-hidden': !props.thumbnail || props.autoplay
73
76
  })}"
74
77
  >
75
78
  <img
76
79
  id="video-thumbnail"
77
80
  src="${props.thumbnail ?? ''}"
78
- class="gp-w-full gp-h-full gp-object-cover"
81
+ class="gp-w-full gp-h-full gp-object-contain"
79
82
  alt="Video Thumbnail"
80
83
  ></img>
81
84
  <button
@@ -3,7 +3,7 @@ import NextImage from '../../image/components/NextImage.liquid.js';
3
3
  import { getSettingPreloadData } from '../../helpers.js';
4
4
 
5
5
  const LiteYouTubeEmbed = (props)=>{
6
- const { style, lazy, preload } = props;
6
+ const { style, lazy, preload, enableLazyLoadImage, pageContext } = props;
7
7
  const videoUid = `gp-video-${props.uid}`;
8
8
  const videoId = encodeURIComponent(props.id);
9
9
  const videoTitle = props.title;
@@ -38,7 +38,7 @@ const LiteYouTubeEmbed = (props)=>{
38
38
  data-title="${videoTitle}"
39
39
  style="${{
40
40
  ...makeStyleResponsive('bgi', {
41
- desktop: preload ? `url('${posterUrl}')` : `url('${imagePlaceholder}')`
41
+ desktop: preload || !enableLazyLoadImage ? `url('${posterUrl}')` : `url('${imagePlaceholder}')`
42
42
  }),
43
43
  ...style
44
44
  }}"
@@ -48,7 +48,9 @@ const LiteYouTubeEmbed = (props)=>{
48
48
  src: posterUrl,
49
49
  alt: 'Poster',
50
50
  className: `gp-invisible gp-w-full gp-h-full gp_lazyforbg`,
51
- isDisableAspectStyle: true
51
+ isDisableAspectStyle: true,
52
+ enableLazyLoadImage,
53
+ pageContext
52
54
  })}
53
55
  <button
54
56
  type="button"