@gem-sdk/components 2.0.0-dev.294 → 2.0.0-dev.304

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 (236) hide show
  1. package/dist/cjs/accordion/components/common/index.js +2 -2
  2. package/dist/cjs/article/components/ArticleAuthor.js +1 -1
  3. package/dist/cjs/article/components/ArticleTitle.js +3 -1
  4. package/dist/cjs/article/components/ArticleTitle.liquid.js +5 -2
  5. package/dist/cjs/article/setting/ArticleList.js +0 -30
  6. package/dist/cjs/article/setting/configs/ArticleAuthor/presets.js +0 -9
  7. package/dist/cjs/article/setting/configs/ArticleAuthor/settings.js +9 -5
  8. package/dist/cjs/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
  9. package/dist/cjs/article/setting/configs/ArticleCategory/presets.js +0 -9
  10. package/dist/cjs/article/setting/configs/ArticleCategory/settings.js +9 -5
  11. package/dist/cjs/article/setting/configs/ArticleDate/presets.js +0 -9
  12. package/dist/cjs/article/setting/configs/ArticleDate/settings.js +9 -5
  13. package/dist/cjs/article/setting/configs/ArticleImage/settings.js +22 -1
  14. package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +36 -7
  15. package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +47 -2
  16. package/dist/cjs/banner/setting/presets/heroBanner1Col.js +14 -0
  17. package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +13 -0
  18. package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +12 -0
  19. package/dist/cjs/banner/setting/presets/heroBannerParallax.js +14 -0
  20. package/dist/cjs/banner/setting/setting.js +6 -18
  21. package/dist/cjs/banner/setting/uiV1.js +1 -2
  22. package/dist/cjs/banner/setting/uiV2.js +4 -5
  23. package/dist/cjs/builder.js +6 -2
  24. package/dist/cjs/button/components/Button.js +1 -1
  25. package/dist/cjs/button/components/Button.liquid.js +1 -1
  26. package/dist/cjs/button/components/ButtonIcon.liquid.js +3 -1
  27. package/dist/cjs/button/components/ButtonLabel.liquid.js +3 -1
  28. package/dist/cjs/button/components/common/attributes.js +2 -2
  29. package/dist/cjs/button/components/common/classes.js +2 -1
  30. package/dist/cjs/button/components/common/styles.js +9 -11
  31. package/dist/cjs/button/setting/configs/settings.js +7 -8
  32. package/dist/cjs/button/setting/configs/uiV2.js +4 -50
  33. package/dist/cjs/dialog/components/Dialog.js +109 -394
  34. package/dist/cjs/dialog/components/Dialog.liquid.js +129 -153
  35. package/dist/cjs/dialog/components/common/common.js +130 -0
  36. package/dist/cjs/dialog/components/common/getAttr.js +27 -0
  37. package/dist/cjs/dialog/components/common/getClasses.js +88 -0
  38. package/dist/cjs/dialog/components/common/getStyle.js +107 -0
  39. package/dist/cjs/dialog/components/hooks/useDialog.js +233 -0
  40. package/dist/cjs/dialog/setting/configs/settings.js +1 -1
  41. package/dist/cjs/dialog/setting/configs/uiV2.js +35 -25
  42. package/dist/cjs/form/components/form-checkbox/FormCheckbox.js +0 -4
  43. package/dist/cjs/form/components/textinput/TextInput.js +58 -0
  44. package/dist/cjs/form/components/textinput/TextInput.liquid.js +60 -0
  45. package/dist/cjs/form/components/textinput/common/composeClasses.js +33 -0
  46. package/dist/cjs/form/components/textinput/common/composeStyles.js +70 -0
  47. package/dist/cjs/form/next.js +5 -1
  48. package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +12 -0
  49. package/dist/cjs/form/setting/index.js +3 -1
  50. package/dist/cjs/form/setting/newsletter/configs/settings.js +4 -2
  51. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +2 -0
  52. package/dist/cjs/form/setting/text-input/TextInput.js +53 -0
  53. package/dist/cjs/form/setting/text-input/configs/settings.js +307 -0
  54. package/dist/cjs/form/setting/text-input/configs/uiV1.js +106 -0
  55. package/dist/cjs/form/setting/text-input/configs/uiV2.js +303 -0
  56. package/dist/cjs/grid/row/setting/configs/settings.js +6 -3
  57. package/dist/cjs/helpers.js +8 -0
  58. package/dist/cjs/icon-list/common/attrs.js +10 -0
  59. package/dist/cjs/icon-list/common/classes.js +9 -0
  60. package/dist/cjs/icon-list/common/styles.js +29 -0
  61. package/dist/cjs/icon-list/components/IconList.js +19 -30
  62. package/dist/cjs/icon-list/components/IconList.liquid.js +21 -24
  63. package/dist/cjs/icon-list/components/IconListItem.js +13 -7
  64. package/dist/cjs/icon-list/components/IconListItem.liquid.js +13 -7
  65. package/dist/cjs/icon-list-hoz/components/IconListHoz.js +37 -25
  66. package/dist/cjs/icon-list-hoz/components/IconListHoz.liquid.js +31 -25
  67. package/dist/cjs/icon-list-hoz/components/IconListHozItem.js +12 -6
  68. package/dist/cjs/icon-list-hoz/components/IconListIHozItem.liquid.js +26 -0
  69. package/dist/cjs/icon-list-hoz/components/common/getAttr.js +9 -0
  70. package/dist/cjs/icon-list-hoz/components/common/getClasses.js +24 -0
  71. package/dist/cjs/icon-list-hoz/components/common/getStyle.js +30 -0
  72. package/dist/cjs/index.js +6 -1
  73. package/dist/cjs/index.liquid.js +7 -3
  74. package/dist/cjs/line/common/classes.js +66 -0
  75. package/dist/cjs/line/common/index.js +16 -0
  76. package/dist/cjs/line/common/styles.js +120 -0
  77. package/dist/cjs/line/components/Divider.js +26 -0
  78. package/dist/cjs/line/components/Divider.liquid.js +22 -0
  79. package/dist/cjs/line/components/Line.js +98 -0
  80. package/dist/cjs/line/components/Line.liquid.js +86 -0
  81. package/dist/cjs/line/next.js +1 -1
  82. package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +1 -1
  83. package/dist/cjs/post-purchase/link/setting/configs/settings.js +2 -1
  84. package/dist/cjs/post-purchase/link/setting/configs/uiV2.js +1 -1
  85. package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  86. package/dist/cjs/product/components/FileUpload/components/config/setting.js +24 -26
  87. package/dist/cjs/product/components/FileUpload/components/config/uiV2.js +12 -179
  88. package/dist/cjs/product/components/ProductList.js +1 -1
  89. package/dist/cjs/product/components/ProductTag.js +9 -1
  90. package/dist/cjs/product/components/ProductVariants/index.js +2 -2
  91. package/dist/cjs/product/components/ProductVariants/index.liquid.js +2 -2
  92. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.js +8 -3
  93. package/dist/cjs/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
  94. package/dist/cjs/product/setting/ProductVariants.js +8 -1374
  95. package/dist/cjs/product/setting/product-list/configs/uiV2.js +0 -3
  96. package/dist/cjs/product/setting/product-variant/configs/presets.js +168 -0
  97. package/dist/cjs/product/setting/product-variant/configs/settings.js +732 -0
  98. package/dist/cjs/product/setting/product-variant/configs/uiV1.js +509 -0
  99. package/dist/cjs/product/setting/product-variant/configs/uiV2.js +347 -0
  100. package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.js +33 -0
  101. package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +12 -0
  102. package/dist/cjs/third-party/configs/EcoboostifyShoppableReelUgc.js +12 -0
  103. package/dist/cjs/third-party/next.js +5 -0
  104. package/dist/cjs/third-party/setting/EcoboostifyShoppableReelUgc.js +142 -0
  105. package/dist/cjs/third-party/setting/index.js +3 -1
  106. package/dist/esm/accordion/components/common/index.js +2 -2
  107. package/dist/esm/article/components/ArticleAuthor.js +1 -1
  108. package/dist/esm/article/components/ArticleTitle.js +3 -1
  109. package/dist/esm/article/components/ArticleTitle.liquid.js +5 -2
  110. package/dist/esm/article/setting/ArticleList.js +0 -30
  111. package/dist/esm/article/setting/configs/ArticleAuthor/presets.js +0 -9
  112. package/dist/esm/article/setting/configs/ArticleAuthor/settings.js +9 -5
  113. package/dist/esm/article/setting/configs/ArticleAuthor/uiV2.js +16 -0
  114. package/dist/esm/article/setting/configs/ArticleCategory/presets.js +0 -9
  115. package/dist/esm/article/setting/configs/ArticleCategory/settings.js +9 -5
  116. package/dist/esm/article/setting/configs/ArticleDate/presets.js +0 -9
  117. package/dist/esm/article/setting/configs/ArticleDate/settings.js +9 -5
  118. package/dist/esm/article/setting/configs/ArticleImage/settings.js +22 -1
  119. package/dist/esm/article/setting/configs/ArticleTitle/settings.js +36 -7
  120. package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +47 -2
  121. package/dist/esm/banner/setting/presets/heroBanner1Col.js +14 -0
  122. package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +13 -0
  123. package/dist/esm/banner/setting/presets/heroBannerContentRight.js +12 -0
  124. package/dist/esm/banner/setting/presets/heroBannerParallax.js +14 -0
  125. package/dist/esm/banner/setting/setting.js +6 -18
  126. package/dist/esm/banner/setting/uiV1.js +1 -2
  127. package/dist/esm/banner/setting/uiV2.js +4 -5
  128. package/dist/esm/builder.js +6 -2
  129. package/dist/esm/button/components/Button.js +1 -1
  130. package/dist/esm/button/components/Button.liquid.js +1 -1
  131. package/dist/esm/button/components/ButtonIcon.liquid.js +3 -1
  132. package/dist/esm/button/components/ButtonLabel.liquid.js +3 -1
  133. package/dist/esm/button/components/common/attributes.js +2 -2
  134. package/dist/esm/button/components/common/classes.js +3 -2
  135. package/dist/esm/button/components/common/styles.js +10 -12
  136. package/dist/esm/button/setting/configs/settings.js +7 -8
  137. package/dist/esm/button/setting/configs/uiV2.js +4 -50
  138. package/dist/esm/dialog/components/Dialog.js +110 -395
  139. package/dist/esm/dialog/components/Dialog.liquid.js +130 -154
  140. package/dist/esm/dialog/components/common/common.js +117 -0
  141. package/dist/esm/dialog/components/common/getAttr.js +22 -0
  142. package/dist/esm/dialog/components/common/getClasses.js +79 -0
  143. package/dist/esm/dialog/components/common/getStyle.js +98 -0
  144. package/dist/esm/dialog/components/hooks/useDialog.js +231 -0
  145. package/dist/esm/dialog/setting/configs/settings.js +1 -1
  146. package/dist/esm/dialog/setting/configs/uiV2.js +35 -25
  147. package/dist/esm/form/components/form-checkbox/FormCheckbox.js +0 -4
  148. package/dist/esm/form/components/textinput/TextInput.js +54 -0
  149. package/dist/esm/form/components/textinput/TextInput.liquid.js +56 -0
  150. package/dist/esm/form/components/textinput/common/composeClasses.js +29 -0
  151. package/dist/esm/form/components/textinput/common/composeStyles.js +67 -0
  152. package/dist/esm/form/next.js +5 -1
  153. package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +12 -0
  154. package/dist/esm/form/setting/index.js +3 -1
  155. package/dist/esm/form/setting/newsletter/configs/settings.js +4 -2
  156. package/dist/esm/form/setting/newsletter/configs/uiV2.js +2 -0
  157. package/dist/esm/form/setting/text-input/TextInput.js +49 -0
  158. package/dist/esm/form/setting/text-input/configs/settings.js +305 -0
  159. package/dist/esm/form/setting/text-input/configs/uiV1.js +104 -0
  160. package/dist/esm/form/setting/text-input/configs/uiV2.js +301 -0
  161. package/dist/esm/grid/row/setting/configs/settings.js +6 -3
  162. package/dist/esm/helpers.js +8 -1
  163. package/dist/esm/icon-list/common/attrs.js +8 -0
  164. package/dist/esm/icon-list/common/classes.js +6 -0
  165. package/dist/esm/icon-list/common/styles.js +25 -0
  166. package/dist/esm/icon-list/components/IconList.js +21 -32
  167. package/dist/esm/icon-list/components/IconList.liquid.js +21 -24
  168. package/dist/esm/icon-list/components/IconListItem.js +13 -7
  169. package/dist/esm/icon-list/components/IconListItem.liquid.js +14 -8
  170. package/dist/esm/icon-list-hoz/components/IconListHoz.js +38 -26
  171. package/dist/esm/icon-list-hoz/components/IconListHoz.liquid.js +32 -26
  172. package/dist/esm/icon-list-hoz/components/IconListHozItem.js +12 -6
  173. package/dist/esm/icon-list-hoz/components/IconListIHozItem.liquid.js +22 -0
  174. package/dist/esm/icon-list-hoz/components/common/getAttr.js +7 -0
  175. package/dist/esm/icon-list-hoz/components/common/getClasses.js +21 -0
  176. package/dist/esm/icon-list-hoz/components/common/getStyle.js +27 -0
  177. package/dist/esm/index.js +4 -2
  178. package/dist/esm/index.liquid.js +4 -2
  179. package/dist/esm/line/common/classes.js +59 -0
  180. package/dist/esm/line/common/index.js +14 -0
  181. package/dist/esm/line/common/styles.js +114 -0
  182. package/dist/esm/line/components/Divider.js +22 -0
  183. package/dist/esm/line/components/Divider.liquid.js +18 -0
  184. package/dist/esm/line/components/Line.js +94 -0
  185. package/dist/esm/line/components/Line.liquid.js +82 -0
  186. package/dist/esm/line/next.js +1 -1
  187. package/dist/esm/post-purchase/line/setting/configs/uiV2.js +1 -1
  188. package/dist/esm/post-purchase/link/setting/configs/settings.js +2 -1
  189. package/dist/esm/post-purchase/link/setting/configs/uiV2.js +1 -1
  190. package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +1 -1
  191. package/dist/esm/product/components/FileUpload/components/config/setting.js +24 -26
  192. package/dist/esm/product/components/FileUpload/components/config/uiV2.js +12 -179
  193. package/dist/esm/product/components/ProductList.js +1 -1
  194. package/dist/esm/product/components/ProductTag.js +10 -2
  195. package/dist/esm/product/components/ProductVariants/index.js +2 -2
  196. package/dist/esm/product/components/ProductVariants/index.liquid.js +2 -2
  197. package/dist/esm/product/components/ProductVariants/variants/Dropdown.js +8 -3
  198. package/dist/esm/product/components/ProductVariants/variants/Dropdown.liquid.js +7 -2
  199. package/dist/esm/product/setting/ProductVariants.js +8 -1374
  200. package/dist/esm/product/setting/product-list/configs/uiV2.js +0 -3
  201. package/dist/esm/product/setting/product-variant/configs/presets.js +166 -0
  202. package/dist/esm/product/setting/product-variant/configs/settings.js +730 -0
  203. package/dist/esm/product/setting/product-variant/configs/uiV1.js +507 -0
  204. package/dist/esm/product/setting/product-variant/configs/uiV2.js +345 -0
  205. package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.js +29 -0
  206. package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.liquid.js +8 -0
  207. package/dist/esm/third-party/configs/EcoboostifyShoppableReelUgc.js +8 -0
  208. package/dist/esm/third-party/next.js +5 -0
  209. package/dist/esm/third-party/setting/EcoboostifyShoppableReelUgc.js +138 -0
  210. package/dist/esm/third-party/setting/index.js +3 -1
  211. package/dist/types/index.d.ts +184 -166
  212. package/package.json +2 -2
  213. package/dist/cjs/dialog/helpers/common.js +0 -55
  214. package/dist/cjs/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -23
  215. package/dist/cjs/line/Divider.js +0 -35
  216. package/dist/cjs/line/Divider.liquid.js +0 -35
  217. package/dist/cjs/line/Line.js +0 -167
  218. package/dist/cjs/line/Line.liquid.js +0 -163
  219. package/dist/esm/dialog/helpers/common.js +0 -47
  220. package/dist/esm/icon-list-hoz/components/IconListItemHoz.liquid.js +0 -19
  221. package/dist/esm/line/Divider.js +0 -31
  222. package/dist/esm/line/Divider.liquid.js +0 -31
  223. package/dist/esm/line/Line.js +0 -163
  224. package/dist/esm/line/Line.liquid.js +0 -159
  225. /package/dist/cjs/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
  226. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
  227. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
  228. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
  229. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
  230. /package/dist/cjs/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
  231. /package/dist/esm/dialog/{hooks/use-scroll-percentage.js → components/hooks/useScrollPercentage.js} +0 -0
  232. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/color.js +0 -0
  233. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/dropdown.js +0 -0
  234. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image-shopify.js +0 -0
  235. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/image.js +0 -0
  236. /package/dist/esm/product/setting/{swatches-style-config → product-variant/swatches-style-config}/rectangle-list.js +0 -0
@@ -0,0 +1,347 @@
1
+ 'use strict';
2
+
3
+ const SettingUIV2 = [
4
+ {
5
+ controls: [
6
+ {
7
+ label: {
8
+ en: 'Type'
9
+ },
10
+ setting: {
11
+ id: 'optionType'
12
+ },
13
+ options: {
14
+ labelVariant: 'primary'
15
+ }
16
+ }
17
+ ]
18
+ },
19
+ {
20
+ label: {
21
+ en: 'Option gap'
22
+ },
23
+ conditionDisplay: "optionType === 'singleOption'",
24
+ controls: [
25
+ {
26
+ label: {
27
+ en: 'Gap'
28
+ },
29
+ setting: {
30
+ id: 'marginBottom'
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ conditionDisplay: "optionType !== 'groupOption'",
37
+ controls: [
38
+ {
39
+ label: {
40
+ en: 'Option title'
41
+ },
42
+ setting: {
43
+ id: 'label'
44
+ },
45
+ options: {
46
+ labelVariant: 'primary',
47
+ toggleStyle: 'switch'
48
+ }
49
+ },
50
+ {
51
+ conditionDisplay: 'label == true',
52
+ label: {
53
+ en: 'Position'
54
+ },
55
+ setting: {
56
+ id: 'layout'
57
+ }
58
+ },
59
+ {
60
+ conditionDisplay: 'label == true',
61
+ label: {
62
+ en: 'Gap'
63
+ },
64
+ setting: {
65
+ id: 'labelGap'
66
+ }
67
+ },
68
+ {
69
+ conditionDisplay: 'label == true',
70
+ label: {
71
+ en: 'Text style'
72
+ },
73
+ type: 'combo',
74
+ iconName: 'polaris-text-title',
75
+ fixedValue: 'Edit...',
76
+ isHideClear: true,
77
+ controls: [
78
+ {
79
+ setting: {
80
+ id: 'labelTypo'
81
+ },
82
+ layout: 'vertical'
83
+ }
84
+ ]
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ label: {
90
+ en: 'Variant style'
91
+ },
92
+ conditionDisplay: "optionType === 'singleOption'",
93
+ controls: [
94
+ {
95
+ layout: 'vertical',
96
+ setting: {
97
+ id: 'variantPresets'
98
+ }
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ label: {
104
+ en: 'Text style'
105
+ },
106
+ conditionDisplay: "optionType === 'groupOption'",
107
+ controls: [
108
+ {
109
+ setting: {
110
+ id: 'optionTypo'
111
+ },
112
+ layout: 'vertical',
113
+ options: {
114
+ updateFields: [
115
+ {
116
+ field: 'attrs.color',
117
+ settingId: 'optionTextColor',
118
+ state: 'normal'
119
+ }
120
+ ]
121
+ },
122
+ controlChangeTrigger: {
123
+ settings: [
124
+ {
125
+ action: {
126
+ controlId: 'optionTextColor',
127
+ valueFromField: 'attrs.color',
128
+ groupType: 'style',
129
+ controlType: 'setting',
130
+ removeDevice: true,
131
+ state: 'normal'
132
+ }
133
+ }
134
+ ],
135
+ options: {
136
+ noRecordHistory: true
137
+ }
138
+ }
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ label: {
144
+ en: 'Option style'
145
+ },
146
+ conditionDisplay: "optionType === 'groupOption'",
147
+ controls: [
148
+ {
149
+ label: {
150
+ en: 'Width'
151
+ },
152
+ setting: {
153
+ id: 'combineWidth'
154
+ }
155
+ },
156
+ {
157
+ label: {
158
+ en: 'Height'
159
+ },
160
+ setting: {
161
+ id: 'combineHeight'
162
+ }
163
+ },
164
+ {
165
+ label: {
166
+ en: 'Background'
167
+ },
168
+ setting: {
169
+ id: 'optionBgColor',
170
+ state: 'normal'
171
+ }
172
+ },
173
+ {
174
+ label: {
175
+ en: 'Border'
176
+ },
177
+ setting: {
178
+ id: 'optionBorder',
179
+ state: 'normal'
180
+ }
181
+ },
182
+ {
183
+ label: {
184
+ en: 'Corner'
185
+ },
186
+ setting: {
187
+ id: 'optionRounded',
188
+ state: 'normal'
189
+ }
190
+ },
191
+ {
192
+ label: {
193
+ en: 'Shadow'
194
+ },
195
+ setting: {
196
+ id: 'optionShadow',
197
+ state: 'normal'
198
+ }
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ label: {
204
+ en: 'Hover effect'
205
+ },
206
+ conditionDisplay: "optionType === 'groupOption'",
207
+ controls: [
208
+ {
209
+ label: {
210
+ en: 'Background'
211
+ },
212
+ setting: {
213
+ id: 'optionBgColor',
214
+ state: 'hover'
215
+ }
216
+ },
217
+ {
218
+ label: {
219
+ en: 'Text color'
220
+ },
221
+ setting: {
222
+ id: 'optionTextColor',
223
+ state: 'hover'
224
+ }
225
+ },
226
+ {
227
+ label: {
228
+ en: 'Border'
229
+ },
230
+ setting: {
231
+ id: 'optionBorder',
232
+ state: 'hover'
233
+ }
234
+ },
235
+ {
236
+ label: {
237
+ en: 'Corner'
238
+ },
239
+ setting: {
240
+ id: 'optionRounded',
241
+ state: 'hover'
242
+ }
243
+ },
244
+ {
245
+ label: {
246
+ en: 'Shadow'
247
+ },
248
+ setting: {
249
+ id: 'optionShadow',
250
+ state: 'hover'
251
+ }
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ label: {
257
+ en: 'Sold out style'
258
+ },
259
+ conditionDisplay: "optionType === 'groupOption'",
260
+ controls: [
261
+ {
262
+ label: {
263
+ en: 'Type'
264
+ },
265
+ setting: {
266
+ id: 'soldOutStyle'
267
+ }
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ label: {
273
+ en: 'Size'
274
+ },
275
+ controls: [
276
+ {
277
+ conditionDisplay: 'fullWidth == false',
278
+ label: {
279
+ en: 'Width'
280
+ },
281
+ setting: {
282
+ id: 'width'
283
+ }
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ label: {
289
+ en: 'Display condition'
290
+ },
291
+ controls: [
292
+ {
293
+ conditionDisplay: "optionType === 'groupOption'",
294
+ label: {
295
+ en: 'Variant price'
296
+ },
297
+ setting: {
298
+ id: 'price'
299
+ }
300
+ },
301
+ {
302
+ label: {
303
+ en: 'Pre-selected option'
304
+ },
305
+ setting: {
306
+ id: 'hasPreSelected'
307
+ }
308
+ },
309
+ {
310
+ conditionDisplay: 'hasPreSelected == true',
311
+ layout: 'vertical',
312
+ setting: {
313
+ id: 'selectVariantDefault'
314
+ }
315
+ },
316
+ {
317
+ conditionDisplay: 'hasPreSelected == false',
318
+ label: {
319
+ en: 'Blank option text'
320
+ },
321
+ setting: {
322
+ id: 'blankText'
323
+ }
324
+ }
325
+ ]
326
+ },
327
+ {
328
+ controls: [
329
+ {
330
+ label: {
331
+ en: 'Align'
332
+ },
333
+ conditionEnable: '!(parseInt(width) >= 100 && width?.includes("%"))',
334
+ setting: {
335
+ id: 'align'
336
+ },
337
+ options: {
338
+ labelVariant: 'primary',
339
+ fullWidth: true,
340
+ disableMessage: `Align is not supported when width is 100%`
341
+ }
342
+ }
343
+ ]
344
+ }
345
+ ];
346
+
347
+ exports.SettingUIV2 = SettingUIV2;
@@ -0,0 +1,33 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+ var core = require('@gem-sdk/core');
8
+ var ThirdPartyPreview = require('./ThirdPartyPreview.js');
9
+ var EcoboostifyShoppableReelUgc$1 = require('../configs/EcoboostifyShoppableReelUgc.js');
10
+
11
+ const EcoboostifyShoppableReelUgcContent = ()=>{
12
+ return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
13
+ children: /*#__PURE__*/ jsxRuntime.jsx("div", {
14
+ className: "gp-p-2",
15
+ children: /*#__PURE__*/ jsxRuntime.jsx(ThirdPartyPreview.default, {
16
+ setting: {
17
+ label: 'EcoBoostify Shoppable Reel UGC',
18
+ iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${EcoboostifyShoppableReelUgc$1.default.logoUrl}">`
19
+ }
20
+ })
21
+ })
22
+ });
23
+ };
24
+ const EcoboostifyShoppableReelUgc = ({ setting })=>{
25
+ return /*#__PURE__*/ jsxRuntime.jsx("div", {
26
+ style: {
27
+ ...core.makeStyleResponsive('ta', setting?.align)
28
+ },
29
+ children: /*#__PURE__*/ jsxRuntime.jsx(EcoboostifyShoppableReelUgcContent, {})
30
+ });
31
+ };
32
+
33
+ exports.default = EcoboostifyShoppableReelUgc;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var thirdParty = require('../helpers/thirdParty.js');
6
+
7
+ const EcoboostifyShoppableReelUgc = ({ setting, advanced })=>{
8
+ const { align, appBlockId } = setting ?? {};
9
+ return thirdParty.getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''} !gp-block`);
10
+ };
11
+
12
+ exports.default = EcoboostifyShoppableReelUgc;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var AppConfig = {
6
+ id: 'ecoboostify-shoppable-reel-ugc',
7
+ label: 'EcoBoostify Shoppable Reel UGC',
8
+ logoUrl: 'https://cdn.shopify.com/app-store/listing_images/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png',
9
+ tag: 'EcoboostifyShoppableReelUgc'
10
+ };
11
+
12
+ exports.default = AppConfig;
@@ -456,7 +456,12 @@ const HextomFreeShippingBar = dynamic(()=>Promise.resolve().then(function () { r
456
456
  ssr: false,
457
457
  loading: Loading.default
458
458
  });
459
+ const EcoboostifyShoppableReelUgc = dynamic(()=>Promise.resolve().then(function () { return require('./components/EcoboostifyShoppableReelUgc.js'); }), {
460
+ ssr: false,
461
+ loading: Loading.default
462
+ });
459
463
  var thirdParty = {
464
+ EcoboostifyShoppableReelUgc,
460
465
  EstimatedDeliveryDatePlus,
461
466
  OkendoReviewsLoyalty,
462
467
  EssentialAnnouncementBar,
@@ -0,0 +1,142 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var EcoboostifyShoppableReelUgc = require('../configs/EcoboostifyShoppableReelUgc.js');
6
+
7
+ const config = {
8
+ tag: EcoboostifyShoppableReelUgc.default.tag,
9
+ label: EcoboostifyShoppableReelUgc.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/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png">',
11
+ editorConfigs: {
12
+ component: {
13
+ isThirdParty: true
14
+ }
15
+ },
16
+ presets: [
17
+ {
18
+ id: EcoboostifyShoppableReelUgc.default.id,
19
+ name: {
20
+ en: EcoboostifyShoppableReelUgc.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/cdbdfc53291cf8d2908e72deae77f94e/icon/CJWKq4vxxIkDEAE=.png">
26
+ <span class="preset-item-title">EcoBoostify Shoppable Reel UGC</span>
27
+ </div>`
28
+ },
29
+ components: [
30
+ {
31
+ tag: EcoboostifyShoppableReelUgc.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: 'Reel Playlist',
52
+ value: 'reel-playlist'
53
+ }
54
+ ],
55
+ default: 'reel-playlist'
56
+ },
57
+ {
58
+ id: 'playlistId',
59
+ label: 'Playlist ID',
60
+ type: 'input'
61
+ },
62
+ {
63
+ id: 'install',
64
+ type: 'open-link',
65
+ target: '_blank',
66
+ linkType: 'install',
67
+ href: 'https://apps.shopify.com/ecoboostify?utm_source=gempages',
68
+ appName: EcoboostifyShoppableReelUgc.default.label
69
+ },
70
+ {
71
+ id: 'openApp',
72
+ type: 'open-link',
73
+ target: '_blank',
74
+ linkType: 'openApp',
75
+ href: 'https://admin.shopify.com/?redirect=/apps/ecoboostify',
76
+ appName: EcoboostifyShoppableReelUgc.default.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
+ setting: {
118
+ id: 'playlistId'
119
+ },
120
+ label: {
121
+ en: 'Playlist ID'
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
+ exports.default = config;
@@ -114,6 +114,7 @@ var GloColorSwatchvariantImage = require('./GloColorSwatchvariantImage.js');
114
114
  var BfSizeChartSizeGuide = require('./BfSizeChartSizeGuide.js');
115
115
  var AlsoBoughtCbb = require('./AlsoBoughtCbb.js');
116
116
  var HextomFreeShippingBar = require('./HextomFreeShippingBar.js');
117
+ var EcoboostifyShoppableReelUgc = require('./EcoboostifyShoppableReelUgc.js');
117
118
 
118
119
  var thirdPartySetting = {
119
120
  HextomCountdownTimerBar: HextomCountdownTimerBar.default,
@@ -227,7 +228,8 @@ var thirdPartySetting = {
227
228
  GloColorSwatchvariantImage: GloColorSwatchvariantImage.default,
228
229
  BfSizeChartSizeGuide: BfSizeChartSizeGuide.default,
229
230
  AlsoBoughtCbb: AlsoBoughtCbb.default,
230
- HextomFreeShippingBar: HextomFreeShippingBar.default
231
+ HextomFreeShippingBar: HextomFreeShippingBar.default,
232
+ EcoboostifyShoppableReelUgc: EcoboostifyShoppableReelUgc.default
231
233
  };
232
234
 
233
235
  exports.default = thirdPartySetting;
@@ -13,7 +13,7 @@ const getDataState = (props, rawChildren)=>{
13
13
  const expanded = expandedMode === 'multiple';
14
14
  const parseActiveKeys = (key)=>{
15
15
  if (!key) return [];
16
- return key.toLowerCase().split(',').map((item)=>parseInt(item.trim()) - 1).map((item)=>item.toString());
16
+ return key.toString().toLowerCase().split(',').map((item)=>parseInt(item.trim()) - 1).map((item)=>item.toString());
17
17
  };
18
18
  const activeIndex = expandItem ? parseActiveKeys(activeKey) : [];
19
19
  const accordions = expanded ? [
@@ -34,7 +34,7 @@ const getDataState = (props, rawChildren)=>{
34
34
  expandedMode,
35
35
  configIconSize,
36
36
  parentUid: builderProps?.uid,
37
- childListNumber: expandItem ? activeKey?.toLowerCase() === 'all' ? rawChildren?.map((_, index)=>index.toString()) : accordions : [],
37
+ childListNumber: expandItem ? activeKey?.toString().toLowerCase() === 'all' ? rawChildren?.map((_, index)=>index.toString()) : accordions : [],
38
38
  chidlrenUid: rawChildren?.map((item)=>item.uid)
39
39
  });
40
40
  const getStyles = ()=>({
@@ -8,7 +8,7 @@ const ArticleAuthor = ({ setting, builderProps, styles })=>{
8
8
  const { prefix } = setting;
9
9
  const article = useArticleStore((s)=>s.article);
10
10
  const author = useMemo(()=>{
11
- return `${prefix} ${article?.author || 'Unknown'}`;
11
+ return `${prefix ?? ''} ${article?.author || 'Unknown'}`;
12
12
  }, [
13
13
  article?.author,
14
14
  prefix
@@ -8,11 +8,13 @@ import { useArticleLink } from '../hooks/useArticleLink.js';
8
8
  const ArticleTitle = ({ setting, builderProps, styles })=>{
9
9
  const article = useArticleStore((s)=>s.article);
10
10
  const { shopifyArticleLink } = useArticleLink();
11
+ const target = setting?.openNewTab ? '_blank' : '_self';
11
12
  return /*#__PURE__*/ jsx("div", {
12
13
  id: `shopify-text-element-${builderProps?.uid}`,
13
14
  "data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
14
- children: !article ? null : setting?.linkArticle ? /*#__PURE__*/ jsx(Link, {
15
+ children: !article ? null : setting?.enableLink && setting?.linkArticle ? /*#__PURE__*/ jsx(Link, {
15
16
  href: shopifyArticleLink,
17
+ target: target,
16
18
  title: article?.title,
17
19
  children: /*#__PURE__*/ jsx(Text, {
18
20
  builderProps: builderProps,
@@ -3,9 +3,12 @@ import { template } from '@gem-sdk/core';
3
3
  import Text from '../../text/components/Text.liquid.js';
4
4
 
5
5
  const ArticleTitle = ({ setting, styles, advanced, builderProps })=>{
6
+ const target = setting?.openNewTab ? '_blank' : '_self';
6
7
  return template`
7
- ${setting?.linkArticle ? `
8
- <a href="{{article.url}}" title="{{article.title}}">
8
+ ${setting?.enableLink && setting?.linkArticle ? `
9
+ <a href="{{article.url}}" target="${{
10
+ target
11
+ }}" title="{{article.title}}">
9
12
  ${Text({
10
13
  styles: styles,
11
14
  setting: {