@gem-sdk/components 2.0.0-dev.268 → 2.0.0-dev.274
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/article/components/ArticleImage.js +0 -5
- package/dist/cjs/article/components/ArticleList.js +1 -1
- package/dist/cjs/builder.js +14 -14
- package/dist/cjs/form/setting/submit-button/configs/settings.js +2 -2
- package/dist/cjs/grid/col/Col.liquid.js +2 -2
- package/dist/cjs/grid/row/Row.js +2 -2
- package/dist/cjs/grid/row/Row.liquid.js +1 -2
- package/dist/cjs/grid/row/commons/getStyle.js +6 -6
- package/dist/cjs/index.js +84 -84
- package/dist/cjs/index.liquid.js +8 -8
- package/dist/cjs/marquee/setting/configs/childImageTemplate.js +1 -1
- package/dist/cjs/post-purchase/advanced-list/components/common/getClasses.js +1 -1
- package/dist/cjs/post-purchase/advanced-list/setting/configs/presets.js +3 -1
- package/dist/cjs/post-purchase/advanced-list/setting/configs/settings.js +2 -1
- package/dist/cjs/post-purchase/advanced-list/setting/template.js +8 -3
- package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +2 -0
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-box/setting.js +10 -10
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -12
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/uiV2.js +1 -1
- package/dist/cjs/post-purchase/image/setting/Image.js +2 -2
- package/dist/cjs/post-purchase/image/setting/setting-v2.js +25 -13
- package/dist/cjs/post-purchase/image/setting/ui-v2.js +1 -1
- package/dist/cjs/post-purchase/link/setting/configs/settings.js +7 -2
- package/dist/cjs/post-purchase/product/components/ProductPriceBreakdown.js +14 -5
- package/dist/cjs/post-purchase/product/components/priceBreakdown/MoneyLine.js +9 -4
- package/dist/cjs/post-purchase/product/helpers/product-price-breakdown/getClasses.js +29 -1
- package/dist/cjs/post-purchase/product/settings/product-price/uiV2.js +3 -0
- package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +3 -3
- package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +4 -2
- package/dist/cjs/post-purchase/utils/constants.js +1 -1
- package/dist/cjs/product/components/ProductQuickView/ProductQuickView.js +4 -4
- package/dist/cjs/product/components/ProductTitle/common/gpCommon.js +17 -0
- package/dist/cjs/product/components/ProductTitle/index.js +49 -0
- package/dist/cjs/product/components/ProductTitle/index.liquid.js +30 -0
- package/dist/cjs/product/next.js +1 -1
- package/dist/esm/article/components/ArticleImage.js +0 -5
- package/dist/esm/article/components/ArticleList.js +1 -1
- package/dist/esm/builder.js +1 -1
- package/dist/esm/form/setting/submit-button/configs/settings.js +2 -2
- package/dist/esm/grid/col/Col.liquid.js +2 -2
- package/dist/esm/grid/row/Row.js +2 -2
- package/dist/esm/grid/row/Row.liquid.js +1 -2
- package/dist/esm/grid/row/commons/getStyle.js +7 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.liquid.js +1 -1
- package/dist/esm/marquee/setting/configs/childImageTemplate.js +1 -1
- package/dist/esm/post-purchase/advanced-list/components/common/getClasses.js +1 -1
- package/dist/esm/post-purchase/advanced-list/setting/configs/presets.js +3 -1
- package/dist/esm/post-purchase/advanced-list/setting/configs/settings.js +2 -1
- package/dist/esm/post-purchase/advanced-list/setting/template.js +8 -3
- package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +2 -0
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +10 -10
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +1 -12
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/uiV2.js +1 -1
- package/dist/esm/post-purchase/image/setting/Image.js +2 -2
- package/dist/esm/post-purchase/image/setting/setting-v2.js +25 -13
- package/dist/esm/post-purchase/image/setting/ui-v2.js +1 -1
- package/dist/esm/post-purchase/link/setting/configs/settings.js +7 -2
- package/dist/esm/post-purchase/product/components/ProductPriceBreakdown.js +14 -5
- package/dist/esm/post-purchase/product/components/priceBreakdown/MoneyLine.js +9 -4
- package/dist/esm/post-purchase/product/helpers/product-price-breakdown/getClasses.js +27 -2
- package/dist/esm/post-purchase/product/settings/product-price/uiV2.js +3 -0
- package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +3 -3
- package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +4 -2
- package/dist/esm/post-purchase/utils/constants.js +1 -1
- package/dist/esm/product/components/ProductQuickView/ProductQuickView.js +1 -1
- package/dist/esm/product/components/ProductTitle/common/gpCommon.js +15 -0
- package/dist/esm/product/components/ProductTitle/index.js +45 -0
- package/dist/esm/product/components/ProductTitle/index.liquid.js +26 -0
- package/dist/esm/product/next.js +1 -1
- package/dist/types/index.d.ts +8 -3
- package/package.json +1 -1
- package/dist/cjs/product/components/ProductTitle.js +0 -43
- package/dist/cjs/product/components/ProductTitle.liquid.js +0 -44
- package/dist/esm/product/components/ProductTitle.js +0 -39
- package/dist/esm/product/components/ProductTitle.liquid.js +0 -40
|
@@ -13,9 +13,9 @@ var core = require('@gem-sdk/core');
|
|
|
13
13
|
var ProductButton = require('../ProductButton.js');
|
|
14
14
|
var ProductPrice = require('../ProductPrice.js');
|
|
15
15
|
var ProductQuantity = require('../ProductQuantity.js');
|
|
16
|
-
var index = require('../ProductVariants/index.js');
|
|
16
|
+
var index$1 = require('../ProductVariants/index.js');
|
|
17
17
|
var ProductImages = require('../ProductImages.js');
|
|
18
|
-
var
|
|
18
|
+
var index = require('../ProductTitle/index.js');
|
|
19
19
|
|
|
20
20
|
const ModalContent = ()=>{
|
|
21
21
|
const product = core.useProduct();
|
|
@@ -72,7 +72,7 @@ const ModalContent = ()=>{
|
|
|
72
72
|
}),
|
|
73
73
|
/*#__PURE__*/ jsxRuntime.jsxs(Col.default, {
|
|
74
74
|
children: [
|
|
75
|
-
/*#__PURE__*/ jsxRuntime.jsx(
|
|
75
|
+
/*#__PURE__*/ jsxRuntime.jsx(index.default, {
|
|
76
76
|
setting: {
|
|
77
77
|
htmlTag: 'p'
|
|
78
78
|
},
|
|
@@ -117,7 +117,7 @@ const ModalContent = ()=>{
|
|
|
117
117
|
})
|
|
118
118
|
]
|
|
119
119
|
}),
|
|
120
|
-
/*#__PURE__*/ jsxRuntime.jsx(index.default, {}),
|
|
120
|
+
/*#__PURE__*/ jsxRuntime.jsx(index$1.default, {}),
|
|
121
121
|
/*#__PURE__*/ jsxRuntime.jsx(ProductQuantity.default, {}),
|
|
122
122
|
/*#__PURE__*/ jsxRuntime.jsx(ProductButton.default, {})
|
|
123
123
|
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const getTextProps = (props, productTitle)=>{
|
|
4
|
+
const { setting, builderProps, styles, advanced } = props;
|
|
5
|
+
return {
|
|
6
|
+
builderProps,
|
|
7
|
+
styles,
|
|
8
|
+
setting: {
|
|
9
|
+
...setting,
|
|
10
|
+
text: productTitle ? productTitle : '{{ product.title }}',
|
|
11
|
+
excludeFlex: true
|
|
12
|
+
},
|
|
13
|
+
advanced
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.getTextProps = getTextProps;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
var Link = require('next/link');
|
|
8
|
+
var core = require('@gem-sdk/core');
|
|
9
|
+
var urlJoin = require('../../../link/helpers/url-join.js');
|
|
10
|
+
var Text = require('../../../text/components/Text.js');
|
|
11
|
+
var system = require('@gem-sdk/system');
|
|
12
|
+
var gpCommon = require('./common/gpCommon.js');
|
|
13
|
+
|
|
14
|
+
const ProductTitle = (props)=>{
|
|
15
|
+
const { setting, builderProps } = props;
|
|
16
|
+
const product = core.useProduct();
|
|
17
|
+
const destination = product?.handle ? urlJoin.urlJoin('/products', product.handle) : '#';
|
|
18
|
+
const currentProductId = product?.baseID?.replace('gid://shopify/Product/', '');
|
|
19
|
+
const mode = core.useEditorMode();
|
|
20
|
+
const renderText = ()=>{
|
|
21
|
+
return /*#__PURE__*/ jsxRuntime.jsx(Text.default, {
|
|
22
|
+
...gpCommon.getTextProps(props, product?.title)
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
const linkAttrs = {
|
|
26
|
+
href: destination,
|
|
27
|
+
title: product?.title
|
|
28
|
+
};
|
|
29
|
+
const isEnableLink = setting?.linkProduct;
|
|
30
|
+
const linkClassName = system.createClass({
|
|
31
|
+
'gp-product-title-link-wrapper': true
|
|
32
|
+
});
|
|
33
|
+
const editorAttrs = system.createAttr({
|
|
34
|
+
id: `shopify-text-element-${builderProps?.uid}`,
|
|
35
|
+
...currentProductId && {
|
|
36
|
+
'data-product-id': currentProductId
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
40
|
+
...mode === 'edit' && editorAttrs,
|
|
41
|
+
children: system.Unless(!!product, '', system.If(isEnableLink, /*#__PURE__*/ jsxRuntime.jsx(Link, {
|
|
42
|
+
...linkAttrs,
|
|
43
|
+
className: linkClassName,
|
|
44
|
+
children: renderText()
|
|
45
|
+
}), renderText()))
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
exports.default = ProductTitle;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var core = require('@gem-sdk/core');
|
|
6
|
+
var helpers = require('../../../helpers.js');
|
|
7
|
+
var Text_liquid = require('../../../text/components/Text.liquid.js');
|
|
8
|
+
var system = require('@gem-sdk/system');
|
|
9
|
+
var gpCommon = require('./common/gpCommon.js');
|
|
10
|
+
|
|
11
|
+
const ProductTitle = (props)=>{
|
|
12
|
+
const { setting } = props;
|
|
13
|
+
const noProduct = `<p>${helpers.getStaticLocale('ProductTitle', 'product_not_found')}</p>`;
|
|
14
|
+
const renderText = ()=>{
|
|
15
|
+
return Text_liquid.default(gpCommon.getTextProps(props));
|
|
16
|
+
};
|
|
17
|
+
const linkAttrs = {
|
|
18
|
+
href: '{{ product.url }}',
|
|
19
|
+
title: '{{ product.title }}'
|
|
20
|
+
};
|
|
21
|
+
const isEnableLink = setting?.linkProduct;
|
|
22
|
+
const linkClassName = system.createClass({
|
|
23
|
+
'gp-product-title-link-wrapper': true
|
|
24
|
+
});
|
|
25
|
+
return system.LiquidUnless('product', `${noProduct}`, system.If(isEnableLink, core.template`<a ${linkAttrs} class="${linkClassName}">
|
|
26
|
+
${renderText()}
|
|
27
|
+
</a>`, `${renderText()}`));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.default = ProductTitle;
|
package/dist/cjs/product/next.js
CHANGED
|
@@ -11,7 +11,7 @@ require('@gem-sdk/core');
|
|
|
11
11
|
const Product = dynamic(()=>Promise.resolve().then(function () { return require('./components/Product.js'); }), {
|
|
12
12
|
loading: Loading.default
|
|
13
13
|
});
|
|
14
|
-
const ProductTitle = dynamic(()=>Promise.resolve().then(function () { return require('./components/ProductTitle.js'); }), {
|
|
14
|
+
const ProductTitle = dynamic(()=>Promise.resolve().then(function () { return require('./components/ProductTitle/index.js'); }), {
|
|
15
15
|
loading: Loading.default
|
|
16
16
|
});
|
|
17
17
|
const ProductQuantity = dynamic(()=>Promise.resolve().then(function () { return require('./components/ProductQuantity.js'); }), {
|
|
@@ -11,7 +11,7 @@ const ArticleList = ({ styles, setting, className, children, builderProps })=>{
|
|
|
11
11
|
const { articleSetting, numberOfArticle } = setting ?? {};
|
|
12
12
|
const { articleIds, articlePickType } = articleSetting ?? {};
|
|
13
13
|
const articlesQuery = {
|
|
14
|
-
first:
|
|
14
|
+
first: articleIds?.length ?? 50,
|
|
15
15
|
where: {
|
|
16
16
|
baseIDIn: [
|
|
17
17
|
...articleSetting?.articleIds ?? []
|
package/dist/esm/builder.js
CHANGED
|
@@ -178,7 +178,7 @@ import PostPurchaseProductDiscountTag from './post-purchase/product/components/P
|
|
|
178
178
|
import PostPurchaseProductImages from './post-purchase/product/components/product-image/index.js';
|
|
179
179
|
import PostPurchaseProductVariants from './post-purchase/product/components/product-variant/components/ProductVariant.js';
|
|
180
180
|
import Product from './product/components/Product.js';
|
|
181
|
-
import ProductTitle from './product/components/ProductTitle.js';
|
|
181
|
+
import ProductTitle from './product/components/ProductTitle/index.js';
|
|
182
182
|
import ProductQuantity from './product/components/ProductQuantity.js';
|
|
183
183
|
import ProductDescription from './product/components/ProductDescription.js';
|
|
184
184
|
import ProductPrice from './product/components/ProductPrice.js';
|
|
@@ -3,7 +3,7 @@ import { getStyles } from './common/getStyles.js';
|
|
|
3
3
|
import { getClass } from './common/getClass.js';
|
|
4
4
|
import { getAttr } from './common/getAttr.js';
|
|
5
5
|
|
|
6
|
-
const Column = (
|
|
6
|
+
const Column = (props)=>{
|
|
7
7
|
const { colStyle } = getStyles(props);
|
|
8
8
|
const { colClass } = getClass(props);
|
|
9
9
|
const { colAttr } = getAttr(props);
|
|
@@ -14,7 +14,7 @@ const Column = ({ children, className, style, builderAttrs, builderProps, advanc
|
|
|
14
14
|
style="${colStyle}"
|
|
15
15
|
class="${colClass}"
|
|
16
16
|
>
|
|
17
|
-
${children ?? ''}
|
|
17
|
+
${props.children ?? ''}
|
|
18
18
|
</div>`;
|
|
19
19
|
};
|
|
20
20
|
|
package/dist/esm/grid/row/Row.js
CHANGED
|
@@ -46,7 +46,6 @@ const Row = (props)=>{
|
|
|
46
46
|
const params = `&loop=${bgVideo?.loop ? 1 : 0}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
|
|
47
47
|
return /*#__PURE__*/ jsx(LiteYouTubeEmbed, {
|
|
48
48
|
id: videoId,
|
|
49
|
-
isHeroBanner: true,
|
|
50
49
|
autoplay: true,
|
|
51
50
|
title: "",
|
|
52
51
|
controls: false,
|
|
@@ -67,7 +66,7 @@ const Row = (props)=>{
|
|
|
67
66
|
ref: ref,
|
|
68
67
|
...builderAttrs,
|
|
69
68
|
...rowAttr,
|
|
70
|
-
style: rowStyle,
|
|
69
|
+
style: rowStyle(isPostPurchase),
|
|
71
70
|
className: className,
|
|
72
71
|
children: [
|
|
73
72
|
!!embed && /*#__PURE__*/ jsx("div", {
|
|
@@ -88,6 +87,7 @@ const Row = (props)=>{
|
|
|
88
87
|
...el.props,
|
|
89
88
|
key: el.key,
|
|
90
89
|
order: setting?.order,
|
|
90
|
+
layout: setting?.layout,
|
|
91
91
|
justifyContent: isPostPurchase ? postPurchaseVerticalAlign : setting?.verticalAlign
|
|
92
92
|
});
|
|
93
93
|
return null;
|
|
@@ -47,7 +47,6 @@ const Row = (props)=>{
|
|
|
47
47
|
return LiteYouTubeEmbed({
|
|
48
48
|
uid: builderProps?.uid,
|
|
49
49
|
id: videoId,
|
|
50
|
-
isHeroBanner: true,
|
|
51
50
|
autoplay: true,
|
|
52
51
|
title: 'Video',
|
|
53
52
|
controls: false,
|
|
@@ -72,7 +71,7 @@ const Row = (props)=>{
|
|
|
72
71
|
const element = template`
|
|
73
72
|
<gp-row gp-data='${stateData}' ${{
|
|
74
73
|
...rowAttr
|
|
75
|
-
}} class="${className}" style="${rowStyle}">
|
|
74
|
+
}} class="${className}" style="${rowStyle()}">
|
|
76
75
|
${If(!!embed(), template /* liquid */ `
|
|
77
76
|
<div class="${backgroundBoxClass}" style="${backgroundBoxStyle}">
|
|
78
77
|
<div class="${backgroundBoxInnerClass}">${embed()}</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { makeStyleResponsive, isEmptyChildren, splitStyle, composeGridLayout, makeStyle, getStyleBackgroundByDevice, getGradientBgrStyleByDevice
|
|
2
|
+
import { makeStyleResponsive, isEmptyChildren, splitStyle, composeRadius, composeGridLayout, makeStyle, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
|
|
3
3
|
import { getInnerRadiusExcludeBorder } from './getInnerRadius.js';
|
|
4
4
|
import { createStyle } from '@gem-sdk/system';
|
|
5
5
|
import { createStyleObject } from './helpers.js';
|
|
@@ -68,12 +68,12 @@ const getRowStyle = (rowProps)=>{
|
|
|
68
68
|
...composeRadius(innerRadius)
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
|
-
const rowStyle = createStyle({
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
const rowStyle = (isPostPurchase = false)=>createStyle({
|
|
72
|
+
...getGlobalStyles(),
|
|
73
|
+
...getRowNormalStyle(),
|
|
74
|
+
...getMarginByWidth(),
|
|
75
|
+
...isPostPurchase ? getPostPurchaseStyle() : {}
|
|
76
|
+
});
|
|
77
77
|
const backgroundBoxStyle = createStyle({
|
|
78
78
|
...getRadiusStyleInner()
|
|
79
79
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -66,7 +66,7 @@ export { default as paginationSetting } from './pagination/setting/index.js';
|
|
|
66
66
|
export { default as Pagination } from './pagination/Pagination.js';
|
|
67
67
|
export { default as productSetting } from './product/setting/index.js';
|
|
68
68
|
export { default as Product } from './product/components/Product.js';
|
|
69
|
-
export { default as ProductTitle } from './product/components/ProductTitle.js';
|
|
69
|
+
export { default as ProductTitle } from './product/components/ProductTitle/index.js';
|
|
70
70
|
export { default as ProductQuantity } from './product/components/ProductQuantity.js';
|
|
71
71
|
export { default as ProductDescription } from './product/components/ProductDescription.js';
|
|
72
72
|
export { default as ProductPrice } from './product/components/ProductPrice.js';
|
package/dist/esm/index.liquid.js
CHANGED
|
@@ -9,7 +9,7 @@ export { default as Root } from './grid/components/Root.liquid.js';
|
|
|
9
9
|
export { default as Icon } from './icon/components/Icon.liquid.js';
|
|
10
10
|
export { default as Text } from './text/components/Text.liquid.js';
|
|
11
11
|
export { default as Product } from './product/components/Product.liquid.js';
|
|
12
|
-
export { default as ProductTitle } from './product/components/ProductTitle.liquid.js';
|
|
12
|
+
export { default as ProductTitle } from './product/components/ProductTitle/index.liquid.js';
|
|
13
13
|
export { ProductPrice } from './product/components/ProductPrice.liquid.js';
|
|
14
14
|
export { default as ProductButton } from './product/components/ProductButton.liquid.js';
|
|
15
15
|
export { default as ProductDescription } from './product/components/ProductDescription.liquid.js';
|
|
@@ -22,7 +22,8 @@ const ConfigPreset = [
|
|
|
22
22
|
settings: {
|
|
23
23
|
childItem: [
|
|
24
24
|
'Item 1',
|
|
25
|
-
'Item 2'
|
|
25
|
+
'Item 2',
|
|
26
|
+
'Item 3'
|
|
26
27
|
]
|
|
27
28
|
},
|
|
28
29
|
advanced: {
|
|
@@ -30,6 +31,7 @@ const ConfigPreset = [
|
|
|
30
31
|
inlinePadding: 'none'
|
|
31
32
|
},
|
|
32
33
|
childrens: [
|
|
34
|
+
ChildTemplate,
|
|
33
35
|
ChildTemplate,
|
|
34
36
|
ChildTemplate
|
|
35
37
|
]
|
|
@@ -34,14 +34,16 @@ const ChildTemplate = {
|
|
|
34
34
|
label: 'Image',
|
|
35
35
|
styles: {
|
|
36
36
|
width: {
|
|
37
|
-
desktop: '
|
|
37
|
+
desktop: '32px'
|
|
38
38
|
},
|
|
39
|
+
aspectRatio: '1',
|
|
40
|
+
align: 'left',
|
|
39
41
|
enableBorder: 'none'
|
|
40
42
|
},
|
|
41
43
|
settings: {
|
|
42
44
|
srcSet: {
|
|
43
45
|
desktop: {
|
|
44
|
-
src: 'https://
|
|
46
|
+
src: 'https://cdn.shopify.com/s/files/1/0791/2780/6265/files/gempages_468220687216018311-d69940af-f03e-4864-a612-63cd9a4dce36.png'
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
}
|
|
@@ -59,7 +61,7 @@ const ChildTemplate = {
|
|
|
59
61
|
text: 'Your custom text goes here'
|
|
60
62
|
},
|
|
61
63
|
advanced: {
|
|
62
|
-
blockPadding: '
|
|
64
|
+
blockPadding: 'extraTight'
|
|
63
65
|
},
|
|
64
66
|
styles: {
|
|
65
67
|
typo: {
|
|
@@ -67,6 +69,9 @@ const ChildTemplate = {
|
|
|
67
69
|
textColor: 'default',
|
|
68
70
|
fontWeight: 'normal',
|
|
69
71
|
textTransform: 'none'
|
|
72
|
+
},
|
|
73
|
+
width: {
|
|
74
|
+
desktop: '100%'
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -19,6 +19,7 @@ var CalloutBgColorEnum;
|
|
|
19
19
|
CalloutBgColorEnum["success"] = '#E8F8EB';
|
|
20
20
|
CalloutBgColorEnum["warning"] = '#FFF8E0';
|
|
21
21
|
CalloutBgColorEnum["critical"] = '#FFEBEB';
|
|
22
|
+
CalloutBgColorEnum["none"] = '#FAFAFA';
|
|
22
23
|
})(CalloutBgColorEnum || (CalloutBgColorEnum = {}));
|
|
23
24
|
var CalloutBorderColorEnum;
|
|
24
25
|
(function(CalloutBorderColorEnum) {
|
|
@@ -26,6 +27,7 @@ var CalloutBorderColorEnum;
|
|
|
26
27
|
CalloutBorderColorEnum["success"] = '#d0ecd3';
|
|
27
28
|
CalloutBorderColorEnum["warning"] = '#f0e4bc';
|
|
28
29
|
CalloutBorderColorEnum["critical"] = '#facccc';
|
|
30
|
+
CalloutBorderColorEnum["none"] = '#D9D9D9';
|
|
29
31
|
})(CalloutBorderColorEnum || (CalloutBorderColorEnum = {}));
|
|
30
32
|
const getCalloutBoxContainerStyles = (styles)=>{
|
|
31
33
|
return filterTruthyStyles({
|
|
@@ -198,32 +198,32 @@ const CalloutBoxSettings = [
|
|
|
198
198
|
label: 'Background Color',
|
|
199
199
|
options: [
|
|
200
200
|
{
|
|
201
|
-
label: '
|
|
202
|
-
value: '',
|
|
203
|
-
|
|
201
|
+
label: 'Transparent',
|
|
202
|
+
value: 'none',
|
|
203
|
+
icon: 'gp-bg-transparent'
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
label: 'Red',
|
|
207
207
|
value: 'critical',
|
|
208
|
-
|
|
208
|
+
icon: 'gp-bg-red'
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
label: 'Blue',
|
|
212
212
|
value: 'info',
|
|
213
|
-
|
|
213
|
+
icon: 'gp-bg-blue'
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
label: 'Green',
|
|
217
217
|
value: 'success',
|
|
218
|
-
|
|
218
|
+
icon: 'gp-bg-green'
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
label: 'Yellow',
|
|
222
222
|
value: 'warning',
|
|
223
|
-
|
|
223
|
+
icon: 'gp-bg-yellow'
|
|
224
224
|
}
|
|
225
225
|
],
|
|
226
|
-
default: ''
|
|
226
|
+
default: 'none'
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
id: 'width',
|
|
@@ -237,7 +237,7 @@ const CalloutBoxSettings = [
|
|
|
237
237
|
hideUnit: false,
|
|
238
238
|
devices: {
|
|
239
239
|
desktop: {
|
|
240
|
-
default: '
|
|
240
|
+
default: 'default'
|
|
241
241
|
},
|
|
242
242
|
tablet: {
|
|
243
243
|
default: '100%'
|
|
@@ -279,7 +279,7 @@ const CalloutBoxSettings = [
|
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
id: 'columnGap',
|
|
282
|
-
type: '
|
|
282
|
+
type: 'input:slider',
|
|
283
283
|
min: 0,
|
|
284
284
|
max: 100,
|
|
285
285
|
step: 1,
|
|
@@ -9,12 +9,8 @@ const CalloutTextSettings = [
|
|
|
9
9
|
defaultRows: 4,
|
|
10
10
|
showPlusBtn: true,
|
|
11
11
|
autoHeight: true,
|
|
12
|
-
default: 'We couldn’t just let you leave with
|
|
12
|
+
default: 'We couldn’t just let you leave with only one offer! Grab another for {{Discount}} OFF',
|
|
13
13
|
suggestContents: [
|
|
14
|
-
{
|
|
15
|
-
message: '{Buyer_First_Name}',
|
|
16
|
-
eg: 'Jane'
|
|
17
|
-
},
|
|
18
14
|
{
|
|
19
15
|
message: '{Product_Name}',
|
|
20
16
|
eg: 'Desk Lamp'
|
|
@@ -80,13 +76,6 @@ const CalloutTextSettings = [
|
|
|
80
76
|
type: 'text',
|
|
81
77
|
tooltip: 'Align right',
|
|
82
78
|
iconName: 'polaris-text-align-right'
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: 'Justify',
|
|
86
|
-
value: 'justify',
|
|
87
|
-
type: 'text',
|
|
88
|
-
tooltip: 'Align justify',
|
|
89
|
-
iconName: 'gp-text-align-justify'
|
|
90
79
|
}
|
|
91
80
|
],
|
|
92
81
|
default: 'left'
|
|
@@ -88,7 +88,7 @@ const config = {
|
|
|
88
88
|
hideUnit: false,
|
|
89
89
|
devices: {
|
|
90
90
|
desktop: {
|
|
91
|
-
default:
|
|
91
|
+
default: '500px'
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
displayOptions: [
|
|
@@ -144,7 +144,7 @@ const config = {
|
|
|
144
144
|
tooltip: 'Align right'
|
|
145
145
|
}
|
|
146
146
|
],
|
|
147
|
-
default: '
|
|
147
|
+
default: 'left'
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
id: 'enableBorder',
|
|
@@ -41,39 +41,51 @@ const ImagePostPurchaseSettingV2 = [
|
|
|
41
41
|
type: 'select',
|
|
42
42
|
default: 'auto',
|
|
43
43
|
options: [
|
|
44
|
-
{
|
|
45
|
-
label: 'Original',
|
|
46
|
-
value: 'auto'
|
|
47
|
-
},
|
|
48
44
|
{
|
|
49
45
|
label: 'Square',
|
|
50
46
|
value: '1',
|
|
51
47
|
type: 'image-shape',
|
|
52
|
-
icon: 'image-shape-square'
|
|
48
|
+
icon: 'gp-image-shape-square'
|
|
53
49
|
},
|
|
54
50
|
{
|
|
55
51
|
label: 'Vertical',
|
|
56
52
|
value: '3/4',
|
|
57
53
|
type: 'image-shape',
|
|
58
|
-
icon: 'image-shape-vertical'
|
|
54
|
+
icon: 'gp-image-shape-vertical'
|
|
59
55
|
},
|
|
60
56
|
{
|
|
61
57
|
label: 'Horizontal',
|
|
62
58
|
value: '4/3',
|
|
63
59
|
type: 'image-shape',
|
|
64
|
-
icon: 'image-shape-horizontal'
|
|
60
|
+
icon: 'gp-image-shape-horizontal'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Original',
|
|
64
|
+
value: 'auto'
|
|
65
65
|
}
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
id: 'width',
|
|
70
|
-
type: 'input
|
|
70
|
+
type: 'dropdown:input',
|
|
71
71
|
label: 'Width',
|
|
72
|
-
|
|
72
|
+
inputType: 'number',
|
|
73
73
|
units: [
|
|
74
74
|
'px',
|
|
75
75
|
'%'
|
|
76
76
|
],
|
|
77
|
+
displayOptions: [
|
|
78
|
+
{
|
|
79
|
+
label: 'Full',
|
|
80
|
+
value: '100%',
|
|
81
|
+
showValue: true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: 'Default',
|
|
85
|
+
value: '1200px',
|
|
86
|
+
showValue: true
|
|
87
|
+
}
|
|
88
|
+
],
|
|
77
89
|
devices: {
|
|
78
90
|
desktop: {
|
|
79
91
|
default: '500px'
|
|
@@ -128,21 +140,21 @@ const ImagePostPurchaseSettingV2 = [
|
|
|
128
140
|
iconName: 'gp-align-right'
|
|
129
141
|
}
|
|
130
142
|
],
|
|
131
|
-
default: '
|
|
143
|
+
default: 'left'
|
|
132
144
|
},
|
|
133
145
|
{
|
|
134
146
|
id: 'enableBorder',
|
|
135
|
-
type: '
|
|
147
|
+
type: 'segment',
|
|
136
148
|
default: 'none',
|
|
137
149
|
options: [
|
|
138
150
|
{
|
|
139
|
-
label: 'None',
|
|
140
151
|
value: 'none',
|
|
152
|
+
iconName: 'gp-cursor-none',
|
|
141
153
|
type: 'border'
|
|
142
154
|
},
|
|
143
155
|
{
|
|
144
|
-
label: 'Solid',
|
|
145
156
|
value: 'solid',
|
|
157
|
+
iconName: 'gp-line',
|
|
146
158
|
type: 'border'
|
|
147
159
|
}
|
|
148
160
|
]
|