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