@gem-sdk/components 2.0.0-dev.496 → 2.0.0-dev.497
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/form/components/contact/common/composeStyles.js +3 -1
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -1
- package/dist/cjs/form/setting/contact/configs/settings.js +0 -12
- package/dist/cjs/form/setting/contact/configs/uiV2.js +4 -8
- package/dist/cjs/form/setting/newsletter/configs/settings.js +2 -8
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +5 -9
- package/dist/cjs/icon-list/common/styles.js +1 -0
- package/dist/cjs/icon-list/setting/configs/settings.js +1 -7
- package/dist/cjs/icon-list/setting/configs/uiV2.js +4 -4
- package/dist/esm/form/components/contact/common/composeStyles.js +3 -1
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -1
- package/dist/esm/form/setting/contact/configs/settings.js +0 -12
- package/dist/esm/form/setting/contact/configs/uiV2.js +4 -8
- package/dist/esm/form/setting/newsletter/configs/settings.js +2 -8
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +5 -9
- package/dist/esm/icon-list/common/styles.js +1 -0
- package/dist/esm/icon-list/setting/configs/settings.js +1 -7
- package/dist/esm/icon-list/setting/configs/uiV2.js +4 -4
- package/package.json +2 -2
|
@@ -7,7 +7,9 @@ const composeStyles = (styles)=>common.filterTruthy(styles);
|
|
|
7
7
|
const composeContainerStyles = (setting, styles, style)=>{
|
|
8
8
|
const { background } = setting ?? {};
|
|
9
9
|
const { globalSize } = styles ?? {};
|
|
10
|
-
const composeGlobalSize = core.makeGlobalSize(
|
|
10
|
+
const composeGlobalSize = core.makeGlobalSize({
|
|
11
|
+
...globalSize
|
|
12
|
+
});
|
|
11
13
|
return composeStyles({
|
|
12
14
|
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
13
15
|
'--w': '100%'
|
|
@@ -24,7 +24,7 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
24
24
|
uid: builderProps?.uid,
|
|
25
25
|
settingId: 'successMessage',
|
|
26
26
|
pageContext,
|
|
27
|
-
defaultVal: pageContext?.isPreviewing ? `Thanks for
|
|
27
|
+
defaultVal: pageContext?.isPreviewing ? `Thanks for subscribing` : helpers.getStaticLocale('Newsletter', 'success_msg_default'),
|
|
28
28
|
translate: setting?.translate
|
|
29
29
|
});
|
|
30
30
|
const containerAttrs = composeAttrs.composeContainerAttrs(builderProps, setting);
|
|
@@ -6,12 +6,6 @@ const ContactSettings = [
|
|
|
6
6
|
{
|
|
7
7
|
id: 'setting',
|
|
8
8
|
controls: [
|
|
9
|
-
{
|
|
10
|
-
id: 'contentBanner',
|
|
11
|
-
type: 'banner',
|
|
12
|
-
message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
|
|
13
|
-
closable: true
|
|
14
|
-
},
|
|
15
9
|
{
|
|
16
10
|
id: 'callbackURL',
|
|
17
11
|
type: 'pick-link',
|
|
@@ -23,12 +17,6 @@ const ContactSettings = [
|
|
|
23
17
|
type: 'stay-on-page',
|
|
24
18
|
link: '',
|
|
25
19
|
target: '_self'
|
|
26
|
-
},
|
|
27
|
-
hiddenOptions: {
|
|
28
|
-
'scroll-to': true,
|
|
29
|
-
'open-popup': true,
|
|
30
|
-
'send-email': true,
|
|
31
|
-
'call-phone': true
|
|
32
20
|
}
|
|
33
21
|
},
|
|
34
22
|
{
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
const SettingUIV2 = [
|
|
4
4
|
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
layout: 'vertical'
|
|
11
|
-
}
|
|
12
|
-
]
|
|
5
|
+
messageConfig: {
|
|
6
|
+
type: 'info',
|
|
7
|
+
message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`
|
|
8
|
+
}
|
|
13
9
|
},
|
|
14
10
|
{
|
|
15
11
|
label: {
|
|
@@ -6,12 +6,6 @@ const NewsletterSettings = [
|
|
|
6
6
|
{
|
|
7
7
|
id: 'setting',
|
|
8
8
|
controls: [
|
|
9
|
-
{
|
|
10
|
-
id: 'contentBanner',
|
|
11
|
-
type: 'banner',
|
|
12
|
-
message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`,
|
|
13
|
-
closable: true
|
|
14
|
-
},
|
|
15
9
|
{
|
|
16
10
|
id: 'afterSubmitAction',
|
|
17
11
|
type: 'select',
|
|
@@ -44,10 +38,10 @@ const NewsletterSettings = [
|
|
|
44
38
|
id: 'successMessage',
|
|
45
39
|
type: 'textarea',
|
|
46
40
|
label: 'Success Message',
|
|
47
|
-
default:
|
|
41
|
+
default: 'Thanks for subscribing',
|
|
48
42
|
autoHeight: true,
|
|
49
43
|
minHeight: 58,
|
|
50
|
-
compoDefaultValue:
|
|
44
|
+
compoDefaultValue: 'Thanks for subscribing'
|
|
51
45
|
},
|
|
52
46
|
{
|
|
53
47
|
id: 'successColor',
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
const SettingUIV2 = [
|
|
4
4
|
{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
layout: 'vertical'
|
|
11
|
-
}
|
|
12
|
-
]
|
|
5
|
+
messageConfig: {
|
|
6
|
+
type: 'info',
|
|
7
|
+
message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`
|
|
8
|
+
}
|
|
13
9
|
},
|
|
14
10
|
{
|
|
15
11
|
label: {
|
|
@@ -25,7 +21,7 @@ const SettingUIV2 = [
|
|
|
25
21
|
getValueFromSettingID: 'successMessage',
|
|
26
22
|
isHideClear: true,
|
|
27
23
|
disableScrollbar: true,
|
|
28
|
-
compoDefaultValue:
|
|
24
|
+
compoDefaultValue: 'Thanks for subscribing',
|
|
29
25
|
popoverLabel: {
|
|
30
26
|
en: 'Success message'
|
|
31
27
|
},
|
|
@@ -25,6 +25,7 @@ const getItemStyles = (parentStyles)=>{
|
|
|
25
25
|
...core.composeRadiusResponsive(parentStyles?.itemRounded),
|
|
26
26
|
...core.composeBorderResponsive(parentStyles?.itemBorder),
|
|
27
27
|
...core.getGlobalColorResponsiveStyle('bgc', parentStyles?.itemBackgroundColor),
|
|
28
|
+
...core.getGlobalColorResponsiveStyle('bgi', parentStyles?.itemBackgroundColor),
|
|
28
29
|
...core.makeStyleResponsive('cg', parentStyles?.horizontalSpacing)
|
|
29
30
|
};
|
|
30
31
|
};
|
|
@@ -5,7 +5,9 @@ const composeStyles = (styles)=>filterTruthy(styles);
|
|
|
5
5
|
const composeContainerStyles = (setting, styles, style)=>{
|
|
6
6
|
const { background } = setting ?? {};
|
|
7
7
|
const { globalSize } = styles ?? {};
|
|
8
|
-
const composeGlobalSize = makeGlobalSize(
|
|
8
|
+
const composeGlobalSize = makeGlobalSize({
|
|
9
|
+
...globalSize
|
|
10
|
+
});
|
|
9
11
|
return composeStyles({
|
|
10
12
|
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
11
13
|
'--w': '100%'
|
|
@@ -20,7 +20,7 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
20
20
|
uid: builderProps?.uid,
|
|
21
21
|
settingId: 'successMessage',
|
|
22
22
|
pageContext,
|
|
23
|
-
defaultVal: pageContext?.isPreviewing ? `Thanks for
|
|
23
|
+
defaultVal: pageContext?.isPreviewing ? `Thanks for subscribing` : getStaticLocale('Newsletter', 'success_msg_default'),
|
|
24
24
|
translate: setting?.translate
|
|
25
25
|
});
|
|
26
26
|
const containerAttrs = composeContainerAttrs(builderProps, setting);
|
|
@@ -2,12 +2,6 @@ const ContactSettings = [
|
|
|
2
2
|
{
|
|
3
3
|
id: 'setting',
|
|
4
4
|
controls: [
|
|
5
|
-
{
|
|
6
|
-
id: 'contentBanner',
|
|
7
|
-
type: 'banner',
|
|
8
|
-
message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
|
|
9
|
-
closable: true
|
|
10
|
-
},
|
|
11
5
|
{
|
|
12
6
|
id: 'callbackURL',
|
|
13
7
|
type: 'pick-link',
|
|
@@ -19,12 +13,6 @@ const ContactSettings = [
|
|
|
19
13
|
type: 'stay-on-page',
|
|
20
14
|
link: '',
|
|
21
15
|
target: '_self'
|
|
22
|
-
},
|
|
23
|
-
hiddenOptions: {
|
|
24
|
-
'scroll-to': true,
|
|
25
|
-
'open-popup': true,
|
|
26
|
-
'send-email': true,
|
|
27
|
-
'call-phone': true
|
|
28
16
|
}
|
|
29
17
|
},
|
|
30
18
|
{
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
const SettingUIV2 = [
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
layout: 'vertical'
|
|
9
|
-
}
|
|
10
|
-
]
|
|
3
|
+
messageConfig: {
|
|
4
|
+
type: 'info',
|
|
5
|
+
message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`
|
|
6
|
+
}
|
|
11
7
|
},
|
|
12
8
|
{
|
|
13
9
|
label: {
|
|
@@ -2,12 +2,6 @@ const NewsletterSettings = [
|
|
|
2
2
|
{
|
|
3
3
|
id: 'setting',
|
|
4
4
|
controls: [
|
|
5
|
-
{
|
|
6
|
-
id: 'contentBanner',
|
|
7
|
-
type: 'banner',
|
|
8
|
-
message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`,
|
|
9
|
-
closable: true
|
|
10
|
-
},
|
|
11
5
|
{
|
|
12
6
|
id: 'afterSubmitAction',
|
|
13
7
|
type: 'select',
|
|
@@ -40,10 +34,10 @@ const NewsletterSettings = [
|
|
|
40
34
|
id: 'successMessage',
|
|
41
35
|
type: 'textarea',
|
|
42
36
|
label: 'Success Message',
|
|
43
|
-
default:
|
|
37
|
+
default: 'Thanks for subscribing',
|
|
44
38
|
autoHeight: true,
|
|
45
39
|
minHeight: 58,
|
|
46
|
-
compoDefaultValue:
|
|
40
|
+
compoDefaultValue: 'Thanks for subscribing'
|
|
47
41
|
},
|
|
48
42
|
{
|
|
49
43
|
id: 'successColor',
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
const SettingUIV2 = [
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
layout: 'vertical'
|
|
9
|
-
}
|
|
10
|
-
]
|
|
3
|
+
messageConfig: {
|
|
4
|
+
type: 'info',
|
|
5
|
+
message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`
|
|
6
|
+
}
|
|
11
7
|
},
|
|
12
8
|
{
|
|
13
9
|
label: {
|
|
@@ -23,7 +19,7 @@ const SettingUIV2 = [
|
|
|
23
19
|
getValueFromSettingID: 'successMessage',
|
|
24
20
|
isHideClear: true,
|
|
25
21
|
disableScrollbar: true,
|
|
26
|
-
compoDefaultValue:
|
|
22
|
+
compoDefaultValue: 'Thanks for subscribing',
|
|
27
23
|
popoverLabel: {
|
|
28
24
|
en: 'Success message'
|
|
29
25
|
},
|
|
@@ -23,6 +23,7 @@ const getItemStyles = (parentStyles)=>{
|
|
|
23
23
|
...composeRadiusResponsive(parentStyles?.itemRounded),
|
|
24
24
|
...composeBorderResponsive(parentStyles?.itemBorder),
|
|
25
25
|
...getGlobalColorResponsiveStyle('bgc', parentStyles?.itemBackgroundColor),
|
|
26
|
+
...getGlobalColorResponsiveStyle('bgi', parentStyles?.itemBackgroundColor),
|
|
26
27
|
...makeStyleResponsive('cg', parentStyles?.horizontalSpacing)
|
|
27
28
|
};
|
|
28
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.497",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
26
|
+
"@gem-sdk/core": "2.0.0-dev.497",
|
|
27
27
|
"@gem-sdk/styles": "2.0.0-dev.482",
|
|
28
28
|
"@gem-sdk/system": "2.0.0-dev.464",
|
|
29
29
|
"@types/react-transition-group": "^4.4.5"
|