@gem-sdk/components 2.1.13-staging.2 → 2.1.13-staging.20

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 (146) hide show
  1. package/dist/cjs/article/components/ArticleImage.js +2 -1
  2. package/dist/cjs/article/components/ArticleList.js +1 -1
  3. package/dist/cjs/banner/components/hero-banner/index.liquid.js +12 -10
  4. package/dist/cjs/banner/components/hero-banner/utils/index.js +5 -3
  5. package/dist/cjs/builder.js +21 -1
  6. package/dist/cjs/collection/components/CollectionDescription.js +101 -7
  7. package/dist/cjs/collection/components/CollectionDescription.liquid.js +102 -9
  8. package/dist/cjs/collection/setting/CollectionDescription.js +128 -0
  9. package/dist/cjs/common/const.js +1 -1
  10. package/dist/cjs/form/components/textarea/TextArea.liquid.js +2 -2
  11. package/dist/cjs/image/components/AdaptiveImage.liquid.js +6 -5
  12. package/dist/cjs/image/components/Image.js +22 -3
  13. package/dist/cjs/image/components/Image.liquid.js +6 -5
  14. package/dist/cjs/image/components/NextImage.liquid.js +4 -3
  15. package/dist/cjs/image/components/NoDataImage.js +133 -0
  16. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +7 -3
  17. package/dist/cjs/index.js +20 -0
  18. package/dist/cjs/index.liquid.js +22 -2
  19. package/dist/cjs/marquee/components/MarqueeBase.liquid.js +7 -26
  20. package/dist/cjs/product/components/ProductImagesV2/jsx/ProductImages.js +2 -9
  21. package/dist/cjs/product/components/ProductImagesV2/liquid/ProductFeaturedImageCarousel.liquid.js +4 -4
  22. package/dist/cjs/product/components/ProductImagesV2/liquid/ProductGalleryCarousel.liquid.js +2 -2
  23. package/dist/cjs/product/components/ProductImagesV2/liquid/ProductGalleryGrid.liquid.js +4 -4
  24. package/dist/cjs/product/components/ProductImagesV2/liquid/ProductImages.liquid.js +4 -4
  25. package/dist/cjs/tab/hooks/useTabInteraction.js +13 -9
  26. package/dist/cjs/text/components/Text.js +0 -1
  27. package/dist/cjs/third-party/components/AlsoBoughtCbb.js +32 -0
  28. package/dist/cjs/third-party/components/AlsoBoughtCbb.liquid.js +21 -0
  29. package/dist/cjs/third-party/components/BfSizeChartSizeGuide.js +32 -0
  30. package/dist/cjs/third-party/components/BfSizeChartSizeGuide.liquid.js +12 -0
  31. package/dist/cjs/third-party/components/EssentialAnnouncementBar.js +32 -0
  32. package/dist/cjs/third-party/components/EssentialAnnouncementBar.liquid.js +12 -0
  33. package/dist/cjs/third-party/components/EssentialCountdownTimerBar.js +32 -0
  34. package/dist/cjs/third-party/components/EssentialCountdownTimerBar.liquid.js +12 -0
  35. package/dist/cjs/third-party/components/EstimatedDeliveryDatePlus.js +32 -0
  36. package/dist/cjs/third-party/components/EstimatedDeliveryDatePlus.liquid.js +12 -0
  37. package/dist/cjs/third-party/components/GloColorSwatchvariantImage.js +32 -0
  38. package/dist/cjs/third-party/components/GloColorSwatchvariantImage.liquid.js +12 -0
  39. package/dist/cjs/third-party/components/HextomFreeShippingBar.js +32 -0
  40. package/dist/cjs/third-party/components/HextomFreeShippingBar.liquid.js +12 -0
  41. package/dist/cjs/third-party/components/OkendoReviewsLoyalty.js +32 -0
  42. package/dist/cjs/third-party/components/OkendoReviewsLoyalty.liquid.js +12 -0
  43. package/dist/cjs/third-party/components/StellarDeliveryDatePickup.js +32 -0
  44. package/dist/cjs/third-party/components/StellarDeliveryDatePickup.liquid.js +21 -0
  45. package/dist/cjs/third-party/components/TrustedsiteTrustBadges.js +32 -0
  46. package/dist/cjs/third-party/components/TrustedsiteTrustBadges.liquid.js +12 -0
  47. package/dist/cjs/third-party/configs/AlsoBoughtCbb.js +12 -0
  48. package/dist/cjs/third-party/configs/BfSizeChartSizeGuide.js +12 -0
  49. package/dist/cjs/third-party/configs/EssentialAnnouncementBar.js +12 -0
  50. package/dist/cjs/third-party/configs/EssentialCountdownTimerBar.js +12 -0
  51. package/dist/cjs/third-party/configs/EstimatedDeliveryDatePlus.js +12 -0
  52. package/dist/cjs/third-party/configs/GloColorSwatchvariantImage.js +12 -0
  53. package/dist/cjs/third-party/configs/HextomFreeShippingBar.js +12 -0
  54. package/dist/cjs/third-party/configs/OkendoReviewsLoyalty.js +12 -0
  55. package/dist/cjs/third-party/configs/StellarDeliveryDatePickup.js +12 -0
  56. package/dist/cjs/third-party/configs/TrustedsiteTrustBadges.js +12 -0
  57. package/dist/cjs/third-party/helpers/thirdParty.js +1 -1
  58. package/dist/cjs/third-party/next.js +51 -1
  59. package/dist/cjs/third-party/setting/AlsoBoughtCbb.js +127 -0
  60. package/dist/cjs/third-party/setting/BfSizeChartSizeGuide.js +131 -0
  61. package/dist/cjs/third-party/setting/EssentialAnnouncementBar.js +142 -0
  62. package/dist/cjs/third-party/setting/EssentialCountdownTimerBar.js +142 -0
  63. package/dist/cjs/third-party/setting/EstimatedDeliveryDatePlus.js +128 -0
  64. package/dist/cjs/third-party/setting/GloColorSwatchvariantImage.js +152 -0
  65. package/dist/cjs/third-party/setting/HextomFreeShippingBar.js +128 -0
  66. package/dist/cjs/third-party/setting/OkendoReviewsLoyalty.js +171 -0
  67. package/dist/cjs/third-party/setting/StellarDeliveryDatePickup.js +127 -0
  68. package/dist/cjs/third-party/setting/TrustedsiteTrustBadges.js +177 -0
  69. package/dist/cjs/third-party/setting/index.js +21 -1
  70. package/dist/cjs/video/components/HTML5Embed.js +2 -2
  71. package/dist/cjs/video/components/HTML5Embed.liquid.js +6 -3
  72. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +5 -3
  73. package/dist/esm/article/components/ArticleImage.js +2 -1
  74. package/dist/esm/article/components/ArticleList.js +1 -1
  75. package/dist/esm/banner/components/hero-banner/index.liquid.js +12 -10
  76. package/dist/esm/banner/components/hero-banner/utils/index.js +5 -3
  77. package/dist/esm/builder.js +21 -1
  78. package/dist/esm/collection/components/CollectionDescription.js +103 -9
  79. package/dist/esm/collection/components/CollectionDescription.liquid.js +103 -10
  80. package/dist/esm/collection/setting/CollectionDescription.js +128 -0
  81. package/dist/esm/common/const.js +1 -1
  82. package/dist/esm/form/components/textarea/TextArea.liquid.js +2 -2
  83. package/dist/esm/image/components/AdaptiveImage.liquid.js +6 -5
  84. package/dist/esm/image/components/Image.js +23 -4
  85. package/dist/esm/image/components/Image.liquid.js +6 -5
  86. package/dist/esm/image/components/NextImage.liquid.js +4 -3
  87. package/dist/esm/image/components/NoDataImage.js +129 -0
  88. package/dist/esm/image-comparison/components/CompareImage.liquid.js +7 -3
  89. package/dist/esm/index.js +10 -0
  90. package/dist/esm/index.liquid.js +11 -1
  91. package/dist/esm/marquee/components/MarqueeBase.liquid.js +7 -26
  92. package/dist/esm/product/components/ProductImagesV2/jsx/ProductImages.js +2 -9
  93. package/dist/esm/product/components/ProductImagesV2/liquid/ProductFeaturedImageCarousel.liquid.js +4 -4
  94. package/dist/esm/product/components/ProductImagesV2/liquid/ProductGalleryCarousel.liquid.js +2 -2
  95. package/dist/esm/product/components/ProductImagesV2/liquid/ProductGalleryGrid.liquid.js +4 -4
  96. package/dist/esm/product/components/ProductImagesV2/liquid/ProductImages.liquid.js +4 -4
  97. package/dist/esm/tab/hooks/useTabInteraction.js +14 -10
  98. package/dist/esm/text/components/Text.js +0 -1
  99. package/dist/esm/third-party/components/AlsoBoughtCbb.js +28 -0
  100. package/dist/esm/third-party/components/AlsoBoughtCbb.liquid.js +17 -0
  101. package/dist/esm/third-party/components/BfSizeChartSizeGuide.js +28 -0
  102. package/dist/esm/third-party/components/BfSizeChartSizeGuide.liquid.js +8 -0
  103. package/dist/esm/third-party/components/EssentialAnnouncementBar.js +28 -0
  104. package/dist/esm/third-party/components/EssentialAnnouncementBar.liquid.js +8 -0
  105. package/dist/esm/third-party/components/EssentialCountdownTimerBar.js +28 -0
  106. package/dist/esm/third-party/components/EssentialCountdownTimerBar.liquid.js +8 -0
  107. package/dist/esm/third-party/components/EstimatedDeliveryDatePlus.js +28 -0
  108. package/dist/esm/third-party/components/EstimatedDeliveryDatePlus.liquid.js +8 -0
  109. package/dist/esm/third-party/components/GloColorSwatchvariantImage.js +28 -0
  110. package/dist/esm/third-party/components/GloColorSwatchvariantImage.liquid.js +8 -0
  111. package/dist/esm/third-party/components/HextomFreeShippingBar.js +28 -0
  112. package/dist/esm/third-party/components/HextomFreeShippingBar.liquid.js +8 -0
  113. package/dist/esm/third-party/components/OkendoReviewsLoyalty.js +28 -0
  114. package/dist/esm/third-party/components/OkendoReviewsLoyalty.liquid.js +8 -0
  115. package/dist/esm/third-party/components/StellarDeliveryDatePickup.js +28 -0
  116. package/dist/esm/third-party/components/StellarDeliveryDatePickup.liquid.js +17 -0
  117. package/dist/esm/third-party/components/TrustedsiteTrustBadges.js +28 -0
  118. package/dist/esm/third-party/components/TrustedsiteTrustBadges.liquid.js +8 -0
  119. package/dist/esm/third-party/configs/AlsoBoughtCbb.js +8 -0
  120. package/dist/esm/third-party/configs/BfSizeChartSizeGuide.js +8 -0
  121. package/dist/esm/third-party/configs/EssentialAnnouncementBar.js +8 -0
  122. package/dist/esm/third-party/configs/EssentialCountdownTimerBar.js +8 -0
  123. package/dist/esm/third-party/configs/EstimatedDeliveryDatePlus.js +8 -0
  124. package/dist/esm/third-party/configs/GloColorSwatchvariantImage.js +8 -0
  125. package/dist/esm/third-party/configs/HextomFreeShippingBar.js +8 -0
  126. package/dist/esm/third-party/configs/OkendoReviewsLoyalty.js +8 -0
  127. package/dist/esm/third-party/configs/StellarDeliveryDatePickup.js +8 -0
  128. package/dist/esm/third-party/configs/TrustedsiteTrustBadges.js +8 -0
  129. package/dist/esm/third-party/helpers/thirdParty.js +1 -1
  130. package/dist/esm/third-party/next.js +51 -1
  131. package/dist/esm/third-party/setting/AlsoBoughtCbb.js +123 -0
  132. package/dist/esm/third-party/setting/BfSizeChartSizeGuide.js +127 -0
  133. package/dist/esm/third-party/setting/EssentialAnnouncementBar.js +138 -0
  134. package/dist/esm/third-party/setting/EssentialCountdownTimerBar.js +138 -0
  135. package/dist/esm/third-party/setting/EstimatedDeliveryDatePlus.js +124 -0
  136. package/dist/esm/third-party/setting/GloColorSwatchvariantImage.js +148 -0
  137. package/dist/esm/third-party/setting/HextomFreeShippingBar.js +124 -0
  138. package/dist/esm/third-party/setting/OkendoReviewsLoyalty.js +167 -0
  139. package/dist/esm/third-party/setting/StellarDeliveryDatePickup.js +123 -0
  140. package/dist/esm/third-party/setting/TrustedsiteTrustBadges.js +173 -0
  141. package/dist/esm/third-party/setting/index.js +224 -204
  142. package/dist/esm/video/components/HTML5Embed.js +2 -2
  143. package/dist/esm/video/components/HTML5Embed.liquid.js +6 -3
  144. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +5 -3
  145. package/dist/types/index.d.ts +182 -8
  146. package/package.json +2 -2
@@ -0,0 +1,128 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var EstimatedDeliveryDatePlus = require('../configs/EstimatedDeliveryDatePlus.js');
6
+
7
+ const config = {
8
+ tag: EstimatedDeliveryDatePlus.default.tag,
9
+ label: EstimatedDeliveryDatePlus.default.label,
10
+ icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/e4733a4cb318126885ef06c1a11c2c35/icon/COTnt4SChPkCEAE=.jpeg">',
11
+ editorConfigs: {
12
+ component: {
13
+ isThirdParty: true
14
+ }
15
+ },
16
+ presets: [
17
+ {
18
+ id: EstimatedDeliveryDatePlus.default.id,
19
+ name: {
20
+ en: EstimatedDeliveryDatePlus.default.label
21
+ },
22
+ hideTextContent: true,
23
+ icon: {
24
+ desktop: `<div class="w-full flex flex-col items-center">
25
+ <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/e4733a4cb318126885ef06c1a11c2c35/icon/COTnt4SChPkCEAE=.jpeg">
26
+ <span class="preset-item-title">Estimated Delivery Date ‑ Plus</span>
27
+ </div>`
28
+ },
29
+ components: [
30
+ {
31
+ tag: EstimatedDeliveryDatePlus.default.tag
32
+ }
33
+ ]
34
+ }
35
+ ],
36
+ settings: [
37
+ {
38
+ id: 'setting',
39
+ controls: [
40
+ {
41
+ id: 'appBlockId',
42
+ type: 'input',
43
+ default: ''
44
+ },
45
+ {
46
+ id: 'widgetType',
47
+ label: 'Choose widget',
48
+ type: 'select',
49
+ options: [
50
+ {
51
+ label: 'Delivery_coder_theme',
52
+ value: 'delivery_coder_theme'
53
+ }
54
+ ],
55
+ default: 'delivery_coder_theme'
56
+ },
57
+ {
58
+ id: 'install',
59
+ type: 'open-link',
60
+ target: '_blank',
61
+ linkType: 'install',
62
+ href: 'https://apps.shopify.com/estimated-delivery-date-plus?utm_source=gempages',
63
+ appName: EstimatedDeliveryDatePlus.default.label
64
+ },
65
+ {
66
+ id: 'openApp',
67
+ type: 'open-link',
68
+ target: '_blank',
69
+ linkType: 'openApp',
70
+ href: 'https://admin.shopify.com/?redirect=/apps/estimated-delivery-date-plus',
71
+ appName: EstimatedDeliveryDatePlus.default.label
72
+ },
73
+ {
74
+ id: 'align',
75
+ label: 'Alignment',
76
+ type: 'segment',
77
+ options: [
78
+ {
79
+ label: 'Left',
80
+ value: 'left',
81
+ type: 'align'
82
+ },
83
+ {
84
+ label: 'Center',
85
+ value: 'center',
86
+ type: 'align'
87
+ },
88
+ {
89
+ label: 'Right',
90
+ value: 'right',
91
+ type: 'align'
92
+ }
93
+ ],
94
+ devices: {
95
+ desktop: {
96
+ default: 'left'
97
+ }
98
+ }
99
+ }
100
+ ]
101
+ }
102
+ ],
103
+ ui: [
104
+ {
105
+ type: 'control',
106
+ setting: {
107
+ id: 'install'
108
+ }
109
+ },
110
+ {
111
+ type: 'control',
112
+ setting: {
113
+ id: 'openApp'
114
+ }
115
+ },
116
+ {
117
+ type: 'control',
118
+ label: {
119
+ en: 'Align'
120
+ },
121
+ setting: {
122
+ id: 'align'
123
+ }
124
+ }
125
+ ]
126
+ };
127
+
128
+ exports.default = config;
@@ -0,0 +1,152 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var GloColorSwatchvariantImage = require('../configs/GloColorSwatchvariantImage.js');
6
+
7
+ const config = {
8
+ tag: GloColorSwatchvariantImage.default.tag,
9
+ label: GloColorSwatchvariantImage.default.label,
10
+ icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/9995b073cfe955d98eb8e9961e8dd7be/icon/CM-Kw8-05_4CEAE=.png">',
11
+ editorConfigs: {
12
+ placeholder: {
13
+ flowPage: 'GP_PRODUCT'
14
+ },
15
+ component: {
16
+ isThirdParty: true
17
+ }
18
+ },
19
+ presets: [
20
+ {
21
+ id: GloColorSwatchvariantImage.default.id,
22
+ name: {
23
+ en: GloColorSwatchvariantImage.default.label
24
+ },
25
+ hideTextContent: true,
26
+ icon: {
27
+ desktop: `<div class="w-full flex flex-col items-center">
28
+ <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/9995b073cfe955d98eb8e9961e8dd7be/icon/CM-Kw8-05_4CEAE=.png">
29
+ <span class="preset-item-title">GLO Color Swatch,Variant Image</span>
30
+ </div>`
31
+ },
32
+ components: [
33
+ {
34
+ tag: GloColorSwatchvariantImage.default.tag
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ settings: [
40
+ {
41
+ id: 'setting',
42
+ controls: [
43
+ {
44
+ id: 'appBlockId',
45
+ type: 'input',
46
+ default: ''
47
+ },
48
+ {
49
+ id: 'widgetType',
50
+ label: 'Choose widget',
51
+ type: 'select',
52
+ options: [
53
+ {
54
+ label: 'Variant Swatches',
55
+ value: 'product-swatches-detail'
56
+ },
57
+ {
58
+ label: 'Bundles Quantity Breaks',
59
+ value: 'product-bundles-quantity-breaks'
60
+ },
61
+ {
62
+ label: 'Product Bundles Combo',
63
+ value: 'product-bundles-combo'
64
+ },
65
+ {
66
+ label: 'Product Groups',
67
+ value: 'product-groups-detail'
68
+ }
69
+ ],
70
+ default: 'product-swatches-detail'
71
+ },
72
+ {
73
+ id: 'install',
74
+ type: 'open-link',
75
+ target: '_blank',
76
+ linkType: 'install',
77
+ href: 'https://apps.shopify.com/globo-color-swatches?utm_source=gempages',
78
+ appName: GloColorSwatchvariantImage.default.label
79
+ },
80
+ {
81
+ id: 'openApp',
82
+ type: 'open-link',
83
+ target: '_blank',
84
+ linkType: 'openApp',
85
+ href: '',
86
+ appName: GloColorSwatchvariantImage.default.label
87
+ },
88
+ {
89
+ id: 'align',
90
+ label: 'Alignment',
91
+ type: 'segment',
92
+ options: [
93
+ {
94
+ label: 'Left',
95
+ value: 'left',
96
+ type: 'align'
97
+ },
98
+ {
99
+ label: 'Center',
100
+ value: 'center',
101
+ type: 'align'
102
+ },
103
+ {
104
+ label: 'Right',
105
+ value: 'right',
106
+ type: 'align'
107
+ }
108
+ ],
109
+ devices: {
110
+ desktop: {
111
+ default: 'left'
112
+ }
113
+ }
114
+ }
115
+ ]
116
+ }
117
+ ],
118
+ ui: [
119
+ {
120
+ type: 'control',
121
+ setting: {
122
+ id: 'install'
123
+ }
124
+ },
125
+ {
126
+ type: 'control',
127
+ setting: {
128
+ id: 'widgetType'
129
+ },
130
+ label: {
131
+ en: 'Choose widget'
132
+ }
133
+ },
134
+ {
135
+ type: 'control',
136
+ setting: {
137
+ id: 'openApp'
138
+ }
139
+ },
140
+ {
141
+ type: 'control',
142
+ label: {
143
+ en: 'Align'
144
+ },
145
+ setting: {
146
+ id: 'align'
147
+ }
148
+ }
149
+ ]
150
+ };
151
+
152
+ exports.default = config;
@@ -0,0 +1,128 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var HextomFreeShippingBar = require('../configs/HextomFreeShippingBar.js');
6
+
7
+ const config = {
8
+ tag: HextomFreeShippingBar.default.tag,
9
+ label: HextomFreeShippingBar.default.label,
10
+ icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/635cce572624d1086ac37403cf25b5ee/icon/CMuP4OXt54YDEAE=.png">',
11
+ editorConfigs: {
12
+ component: {
13
+ isThirdParty: true
14
+ }
15
+ },
16
+ presets: [
17
+ {
18
+ id: HextomFreeShippingBar.default.id,
19
+ name: {
20
+ en: HextomFreeShippingBar.default.label
21
+ },
22
+ hideTextContent: true,
23
+ icon: {
24
+ desktop: `<div class="w-full flex flex-col items-center">
25
+ <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/635cce572624d1086ac37403cf25b5ee/icon/CMuP4OXt54YDEAE=.png">
26
+ <span class="preset-item-title">Hextom: Free Shipping Bar</span>
27
+ </div>`
28
+ },
29
+ components: [
30
+ {
31
+ tag: HextomFreeShippingBar.default.tag
32
+ }
33
+ ]
34
+ }
35
+ ],
36
+ settings: [
37
+ {
38
+ id: 'setting',
39
+ controls: [
40
+ {
41
+ id: 'appBlockId',
42
+ type: 'input',
43
+ default: ''
44
+ },
45
+ {
46
+ id: 'widgetType',
47
+ label: 'Choose widget',
48
+ type: 'select',
49
+ options: [
50
+ {
51
+ label: 'Fsb Custom Placement',
52
+ value: 'fsb-custom-placement'
53
+ }
54
+ ],
55
+ default: 'fsb-custom-placement'
56
+ },
57
+ {
58
+ id: 'install',
59
+ type: 'open-link',
60
+ target: '_blank',
61
+ linkType: 'install',
62
+ href: 'https://apps.shopify.com/free-shipping-bar?utm_source=gempages',
63
+ appName: HextomFreeShippingBar.default.label
64
+ },
65
+ {
66
+ id: 'openApp',
67
+ type: 'open-link',
68
+ target: '_blank',
69
+ linkType: 'openApp',
70
+ href: 'https://admin.shopify.com/?redirect=/apps/free-shipping-bar',
71
+ appName: HextomFreeShippingBar.default.label
72
+ },
73
+ {
74
+ id: 'align',
75
+ label: 'Alignment',
76
+ type: 'segment',
77
+ options: [
78
+ {
79
+ label: 'Left',
80
+ value: 'left',
81
+ type: 'align'
82
+ },
83
+ {
84
+ label: 'Center',
85
+ value: 'center',
86
+ type: 'align'
87
+ },
88
+ {
89
+ label: 'Right',
90
+ value: 'right',
91
+ type: 'align'
92
+ }
93
+ ],
94
+ devices: {
95
+ desktop: {
96
+ default: 'left'
97
+ }
98
+ }
99
+ }
100
+ ]
101
+ }
102
+ ],
103
+ ui: [
104
+ {
105
+ type: 'control',
106
+ setting: {
107
+ id: 'install'
108
+ }
109
+ },
110
+ {
111
+ type: 'control',
112
+ setting: {
113
+ id: 'openApp'
114
+ }
115
+ },
116
+ {
117
+ type: 'control',
118
+ label: {
119
+ en: 'Align'
120
+ },
121
+ setting: {
122
+ id: 'align'
123
+ }
124
+ }
125
+ ]
126
+ };
127
+
128
+ exports.default = config;
@@ -0,0 +1,171 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var OkendoReviewsLoyalty = require('../configs/OkendoReviewsLoyalty.js');
6
+
7
+ const config = {
8
+ tag: OkendoReviewsLoyalty.default.tag,
9
+ label: OkendoReviewsLoyalty.default.label,
10
+ icon: '<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png">',
11
+ editorConfigs: {
12
+ placeholder: {
13
+ flowTag: [
14
+ 'Product'
15
+ ]
16
+ },
17
+ component: {
18
+ isThirdParty: true
19
+ }
20
+ },
21
+ presets: [
22
+ {
23
+ id: OkendoReviewsLoyalty.default.id,
24
+ name: {
25
+ en: OkendoReviewsLoyalty.default.label
26
+ },
27
+ hideTextContent: true,
28
+ icon: {
29
+ desktop: `<div class="w-full flex flex-col items-center">
30
+ <img class="w-24 border border-dark-200 rounded-medium" src="https://cdn.shopify.com/app-store/listing_images/fe55626671bd5da73785c606c2b0752f/icon/CNKRrIWatfoCEAE=.png">
31
+ <span class="preset-item-title">Okendo: Reviews & Loyalty</span>
32
+ </div>`
33
+ },
34
+ components: [
35
+ {
36
+ tag: OkendoReviewsLoyalty.default.tag
37
+ }
38
+ ]
39
+ }
40
+ ],
41
+ settings: [
42
+ {
43
+ id: 'setting',
44
+ controls: [
45
+ {
46
+ id: 'appBlockId',
47
+ type: 'input',
48
+ default: ''
49
+ },
50
+ {
51
+ id: 'productHandle',
52
+ type: 'product-handle',
53
+ hide: true
54
+ },
55
+ {
56
+ id: 'widgetType',
57
+ label: 'Choose widget',
58
+ type: 'select',
59
+ options: [
60
+ {
61
+ label: 'Reviews Widget',
62
+ value: 'reviews-widget'
63
+ },
64
+ {
65
+ label: 'Reviews Badge',
66
+ value: 'reviews-badge'
67
+ },
68
+ {
69
+ label: 'Media Carousel',
70
+ value: 'media-carousel'
71
+ },
72
+ {
73
+ label: 'Media Grid',
74
+ value: 'media-grid'
75
+ },
76
+ {
77
+ label: 'Reviews Carousel',
78
+ value: 'reviews-carousel'
79
+ },
80
+ {
81
+ label: 'Star Rating',
82
+ value: 'star-rating'
83
+ },
84
+ {
85
+ label: 'Questions Widget',
86
+ value: 'questions-widget'
87
+ }
88
+ ],
89
+ default: 'reviews-widget'
90
+ },
91
+ {
92
+ id: 'install',
93
+ type: 'open-link',
94
+ target: '_blank',
95
+ linkType: 'install',
96
+ href: 'https://apps.shopify.com/okendo-reviews?utm_source=gempages',
97
+ appName: OkendoReviewsLoyalty.default.label
98
+ },
99
+ {
100
+ id: 'openApp',
101
+ type: 'open-link',
102
+ target: '_blank',
103
+ linkType: 'openApp',
104
+ href: 'https://admin.shopify.com/?redirect=/apps/okendo-reviews',
105
+ appName: OkendoReviewsLoyalty.default.label
106
+ },
107
+ {
108
+ id: 'align',
109
+ label: 'Alignment',
110
+ type: 'segment',
111
+ options: [
112
+ {
113
+ label: 'Left',
114
+ value: 'left',
115
+ type: 'align'
116
+ },
117
+ {
118
+ label: 'Center',
119
+ value: 'center',
120
+ type: 'align'
121
+ },
122
+ {
123
+ label: 'Right',
124
+ value: 'right',
125
+ type: 'align'
126
+ }
127
+ ],
128
+ devices: {
129
+ desktop: {
130
+ default: 'left'
131
+ }
132
+ }
133
+ }
134
+ ]
135
+ }
136
+ ],
137
+ ui: [
138
+ {
139
+ type: 'control',
140
+ setting: {
141
+ id: 'install'
142
+ }
143
+ },
144
+ {
145
+ type: 'control',
146
+ label: {
147
+ en: 'Choose Widget'
148
+ },
149
+ setting: {
150
+ id: 'widgetType'
151
+ }
152
+ },
153
+ {
154
+ type: 'control',
155
+ setting: {
156
+ id: 'openApp'
157
+ }
158
+ },
159
+ {
160
+ type: 'control',
161
+ label: {
162
+ en: 'Align'
163
+ },
164
+ setting: {
165
+ id: 'align'
166
+ }
167
+ }
168
+ ]
169
+ };
170
+
171
+ exports.default = config;