@gem-sdk/components 2.1.27-staging.2 → 2.1.27-staging.21
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/ArticleList.js +1 -1
- package/dist/cjs/builder.js +3 -1
- package/dist/cjs/button/components/Button.liquid.js +3 -3
- package/dist/cjs/collection/components/CollectionPaginator.liquid.js +1 -1
- package/dist/cjs/collection/setting/CollectionPaginator.js +5 -0
- package/dist/cjs/helpers.js +26 -4
- package/dist/cjs/image/components/AdaptiveImage.js +4 -3
- package/dist/cjs/image/components/Image.js +2 -21
- package/dist/cjs/image/helpers/getSrcSet.js +2 -1
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/index.liquid.js +2 -0
- package/dist/cjs/intersection-observer/useInView.js +2 -0
- package/dist/cjs/post-purchase/product/components/variants/Dropdown.js +1 -1
- package/dist/cjs/product/components/ProductButton.js +1 -1
- package/dist/cjs/product/components/ProductButton.liquid.js +21 -3
- package/dist/cjs/product/components/ProductList.liquid.js +4 -8
- package/dist/cjs/product/components/ProductTag.js +9 -1
- package/dist/cjs/text/components/Text.js +2 -1
- package/dist/cjs/text/components/Text.liquid.js +2 -2
- package/dist/cjs/text/components/common.js +14 -0
- package/dist/cjs/third-party/components/Bogos/BogosSampleContent.js +9 -10
- package/dist/cjs/third-party/components/EcoboostifyShoppableReelUgc.js +32 -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/components/Releasit.liquid.js +4 -2
- package/dist/cjs/third-party/configs/BoldProductOptions.js +2 -2
- 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/Releasit.js +59 -2
- package/dist/cjs/third-party/setting/index.js +3 -1
- package/dist/esm/article/components/ArticleList.js +1 -1
- package/dist/esm/builder.js +3 -1
- package/dist/esm/button/components/Button.liquid.js +3 -3
- package/dist/esm/collection/components/CollectionPaginator.liquid.js +1 -1
- package/dist/esm/collection/setting/CollectionPaginator.js +5 -0
- package/dist/esm/helpers.js +25 -5
- package/dist/esm/image/components/AdaptiveImage.js +4 -3
- package/dist/esm/image/components/Image.js +2 -21
- package/dist/esm/image/helpers/getSrcSet.js +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.liquid.js +1 -0
- package/dist/esm/intersection-observer/useInView.js +2 -0
- package/dist/esm/post-purchase/product/components/variants/Dropdown.js +1 -1
- package/dist/esm/product/components/ProductButton.js +1 -1
- package/dist/esm/product/components/ProductButton.liquid.js +21 -3
- package/dist/esm/product/components/ProductList.liquid.js +4 -8
- package/dist/esm/product/components/ProductTag.js +10 -2
- package/dist/esm/text/components/Text.js +2 -1
- package/dist/esm/text/components/Text.liquid.js +2 -2
- package/dist/esm/text/components/common.js +12 -0
- package/dist/esm/third-party/components/Bogos/BogosSampleContent.js +10 -11
- package/dist/esm/third-party/components/EcoboostifyShoppableReelUgc.js +28 -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/components/Releasit.liquid.js +4 -2
- package/dist/esm/third-party/configs/BoldProductOptions.js +2 -2
- 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/Releasit.js +59 -2
- package/dist/esm/third-party/setting/index.js +3 -1
- package/dist/types/index.d.ts +32 -3
- package/package.json +3 -3
- package/dist/cjs/image/components/NoDataImage.js +0 -133
- package/dist/esm/image/components/NoDataImage.js +0 -129
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { useMoneyFormat, makeGlobalSize, useEditorMode, useProduct, useCurrentVariant, useFormatMoney, useProductBundleDiscount, formatMoney, getGlobalColorClass, cls, makeStyleResponsive, makeStyle, getRadiusCSSFromGlobal, getCustomRadius } from '@gem-sdk/core';
|
|
2
|
+
import { useMoneyFormat, makeGlobalSize, useEditorMode, useProduct, useCurrentVariant, useQuantity, useFormatMoney, useProductBundleDiscount, formatMoney, getGlobalColorClass, cls, makeStyleResponsive, makeStyle, getRadiusCSSFromGlobal, getCustomRadius } from '@gem-sdk/core';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import Text from '../../text/components/Text.js';
|
|
5
5
|
import { DiscountType } from './constants/product-bundle.js';
|
|
@@ -14,9 +14,17 @@ const ProductTag = ({ setting, styles, builderProps, ...passProps })=>{
|
|
|
14
14
|
const mode = useEditorMode();
|
|
15
15
|
const product = useProduct();
|
|
16
16
|
const currentVariant = useCurrentVariant();
|
|
17
|
+
const { quantity, hasUpdatePrice } = useQuantity();
|
|
18
|
+
const quantityProduct = useMemo(()=>{
|
|
19
|
+
return hasUpdatePrice && customContent?.unit !== 'percentage' ? quantity || 1 : 1;
|
|
20
|
+
}, [
|
|
21
|
+
hasUpdatePrice,
|
|
22
|
+
customContent?.unit,
|
|
23
|
+
quantity
|
|
24
|
+
]);
|
|
17
25
|
const price = currentVariant?.price ?? 0;
|
|
18
26
|
const salePrice = currentVariant?.salePrice ?? 0;
|
|
19
|
-
const priceSave = salePrice - price;
|
|
27
|
+
const priceSave = (salePrice - price) * quantityProduct;
|
|
20
28
|
const moneyFormatted = useFormatMoney(priceSave < 0 ? 0 : priceSave, setting?.moneyWithCurrentFormat || false);
|
|
21
29
|
const customDisplayWithUnit = useMemo(()=>{
|
|
22
30
|
if (!salePrice && salePrice !== 0 || !price && price !== 0) return `${customContent?.unit === 'percentage' ? '0%' : moneyFormatted}`;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { makeGlobalSize, useEditorMode, composeTypographyClassName, composeTypographyStyle, cls, makeStyle, makeStyleResponsive, getGlobalColorClass, getGlobalColorStateClass, getStyleShadowState, getStyleShadow, makeLineClamp, getGlobalColorStyle, getGlobalColorStateStyle, getStyleBackgroundByDevice, getGradientBgrStyleByDevice, getCornerStyle } from '@gem-sdk/core';
|
|
3
3
|
import { forwardRef, useMemo } from 'react';
|
|
4
|
+
import { getDisplayText } from './common.js';
|
|
4
5
|
|
|
5
6
|
const Text = /*#__PURE__*/ forwardRef(({ styles, builderAttrs, style, setting, advanced, builderProps, className, children, ...props }, ref)=>{
|
|
6
7
|
const { text, htmlTag: Element = 'div', options, tagWidth, excludeFlex } = setting ?? {};
|
|
@@ -85,7 +86,7 @@ const Text = /*#__PURE__*/ forwardRef(({ styles, builderAttrs, style, setting, a
|
|
|
85
86
|
overflow: 'hidden'
|
|
86
87
|
},
|
|
87
88
|
dangerouslySetInnerHTML: {
|
|
88
|
-
__html:
|
|
89
|
+
__html: getDisplayText(text?.toString() ?? '<p><br></p>')
|
|
89
90
|
}
|
|
90
91
|
})
|
|
91
92
|
}),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { makeGlobalSize, composeTypographyClassName, composeTypographyStyle, template, makeStyle, makeStyleResponsive, cls, getGlobalColorClass, getGlobalColorStateClass, getStyleShadowState, getStyleShadow, makeLineClamp, getGlobalColorStyle, getGlobalColorStateStyle, getStyleBackgroundByDevice, getGradientBgrStyleByDevice, getCornerStyle } from '@gem-sdk/core';
|
|
2
2
|
import { replaceLinkData, getDynamicSourceLocales } from '../../helpers.js';
|
|
3
|
+
import { getDisplayText } from './common.js';
|
|
3
4
|
|
|
4
5
|
const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, className, isText, pageContext, elementAttrs, ...props })=>{
|
|
5
6
|
const { text, htmlTag: Element = 'div', tagWidth, excludeFlex, isForceValue } = setting ?? {};
|
|
@@ -27,7 +28,6 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
|
|
|
27
28
|
uid: builderProps?.uid,
|
|
28
29
|
settingId: setting?.translate,
|
|
29
30
|
pageContext,
|
|
30
|
-
isCapitalize: styles?.typo?.attrs?.transform === 'capitalize',
|
|
31
31
|
translate: setting.translate,
|
|
32
32
|
isReplaceLocationOrigin: isViewliveHeadingOrTextComponent
|
|
33
33
|
});
|
|
@@ -35,7 +35,7 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
|
|
|
35
35
|
displayText = renderText;
|
|
36
36
|
}
|
|
37
37
|
} else {
|
|
38
|
-
displayText =
|
|
38
|
+
displayText = getDisplayText(renderText ?? '');
|
|
39
39
|
}
|
|
40
40
|
return template`
|
|
41
41
|
{% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getAllHrefFromString, replaceAllHrefFromString } from '../../helpers.js';
|
|
2
|
+
|
|
3
|
+
const getDisplayText = (renderText, isTextCapitalize = false)=>{
|
|
4
|
+
let displayText = renderText;
|
|
5
|
+
if (isTextCapitalize) {
|
|
6
|
+
const links = getAllHrefFromString(renderText ?? '');
|
|
7
|
+
displayText = replaceAllHrefFromString(renderText?.toString().toLocaleLowerCase(), links);
|
|
8
|
+
}
|
|
9
|
+
return displayText;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { getDisplayText };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import BogosConfig from '../../configs/Bogos.js';
|
|
4
4
|
import ThirdPartyPreview from '../ThirdPartyPreview.js';
|
|
@@ -9,7 +9,8 @@ const mapWidgetLabel = {
|
|
|
9
9
|
slider: 'Gift slider',
|
|
10
10
|
message: 'Cart message',
|
|
11
11
|
['classic-bundle']: 'Classic bundle',
|
|
12
|
-
['quantity-break']: 'Quantity break'
|
|
12
|
+
['quantity-break']: 'Quantity break',
|
|
13
|
+
['mix-match']: 'Mix and match'
|
|
13
14
|
};
|
|
14
15
|
const BogosSampleContent = ({ setting })=>{
|
|
15
16
|
const widgetLabel = setting?.widgetType && mapWidgetLabel[setting.widgetType];
|
|
@@ -18,15 +19,13 @@ const BogosSampleContent = ({ setting })=>{
|
|
|
18
19
|
}, [
|
|
19
20
|
widgetLabel
|
|
20
21
|
]);
|
|
21
|
-
return /*#__PURE__*/ jsx(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
})
|
|
22
|
+
return /*#__PURE__*/ jsx("div", {
|
|
23
|
+
className: "p-2",
|
|
24
|
+
children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
|
|
25
|
+
setting: {
|
|
26
|
+
label,
|
|
27
|
+
iconSvg: `<img class="gp-w-[24px] border border-[#494949] rounded-[3px]" src="${BogosConfig.logoUrl}">`
|
|
28
|
+
}
|
|
30
29
|
})
|
|
31
30
|
});
|
|
32
31
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { makeStyleResponsive } from '@gem-sdk/core';
|
|
3
|
+
import ThirdPartyPreview from './ThirdPartyPreview.js';
|
|
4
|
+
import AppConfig from '../configs/EcoboostifyShoppableReelUgc.js';
|
|
5
|
+
|
|
6
|
+
const EcoboostifyShoppableReelUgcContent = ()=>{
|
|
7
|
+
return /*#__PURE__*/ jsx(Fragment, {
|
|
8
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
9
|
+
className: "gp-p-2",
|
|
10
|
+
children: /*#__PURE__*/ jsx(ThirdPartyPreview, {
|
|
11
|
+
setting: {
|
|
12
|
+
label: 'EcoBoostify Shoppable Reel UGC',
|
|
13
|
+
iconSvg: `<img class="gp-w-6 gp-border gp-border-[#494949] gp-rounded-[3px]" src="${AppConfig.logoUrl}">`
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const EcoboostifyShoppableReelUgc = ({ setting })=>{
|
|
20
|
+
return /*#__PURE__*/ jsx("div", {
|
|
21
|
+
style: {
|
|
22
|
+
...makeStyleResponsive('ta', setting?.align)
|
|
23
|
+
},
|
|
24
|
+
children: /*#__PURE__*/ jsx(EcoboostifyShoppableReelUgcContent, {})
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
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 };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { getLiquidForAppBlock } from '../helpers/thirdParty.js';
|
|
1
2
|
import { template, makeStyleResponsive } from '@gem-sdk/core';
|
|
2
3
|
|
|
3
4
|
const Releasit = ({ setting, advanced })=>{
|
|
4
|
-
const { align } = setting ?? {};
|
|
5
|
-
|
|
5
|
+
const { align, version, appBlockId } = setting ?? {};
|
|
6
|
+
console.log('version', version);
|
|
7
|
+
return version === 'v2' ? getLiquidForAppBlock(appBlockId, align, `${advanced?.cssClass ?? ''}!gp-block`) : template`
|
|
6
8
|
<div
|
|
7
9
|
class="${advanced?.cssClass}"
|
|
8
10
|
style="${{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var BoldProductOptionsConfig = {
|
|
2
2
|
id: 'bold-product-options',
|
|
3
|
-
label: '
|
|
4
|
-
logoUrl: 'https://
|
|
3
|
+
label: 'SC Product Options',
|
|
4
|
+
logoUrl: 'https://cdn.shopify.com/app-store/listing_images/9a0bf1159f79c6ab0660ec422f350445/icon/CP2Uwo_GuYIDEAE=.png',
|
|
5
5
|
tag: 'BoldProductOptions'
|
|
6
6
|
};
|
|
7
7
|
|
|
@@ -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 };
|
|
@@ -454,7 +454,12 @@ const HextomFreeShippingBar = dynamic(()=>import('./components/HextomFreeShippin
|
|
|
454
454
|
ssr: false,
|
|
455
455
|
loading: Loading
|
|
456
456
|
});
|
|
457
|
+
const EcoboostifyShoppableReelUgc = dynamic(()=>import('./components/EcoboostifyShoppableReelUgc.js'), {
|
|
458
|
+
ssr: false,
|
|
459
|
+
loading: Loading
|
|
460
|
+
});
|
|
457
461
|
var thirdParty = {
|
|
462
|
+
EcoboostifyShoppableReelUgc,
|
|
458
463
|
EstimatedDeliveryDatePlus,
|
|
459
464
|
OkendoReviewsLoyalty,
|
|
460
465
|
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'
|
|
@@ -7,6 +7,11 @@ const config = {
|
|
|
7
7
|
editorConfigs: {
|
|
8
8
|
component: {
|
|
9
9
|
isThirdParty: true
|
|
10
|
+
},
|
|
11
|
+
placeholder: {
|
|
12
|
+
flowTag: [
|
|
13
|
+
'Product'
|
|
14
|
+
]
|
|
10
15
|
}
|
|
11
16
|
},
|
|
12
17
|
presets: [
|
|
@@ -35,6 +40,16 @@ const config = {
|
|
|
35
40
|
{
|
|
36
41
|
id: 'setting',
|
|
37
42
|
controls: [
|
|
43
|
+
{
|
|
44
|
+
id: 'appBlockId',
|
|
45
|
+
type: 'input',
|
|
46
|
+
default: ''
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'productHandle',
|
|
50
|
+
type: 'input',
|
|
51
|
+
default: ''
|
|
52
|
+
},
|
|
38
53
|
{
|
|
39
54
|
id: 'install',
|
|
40
55
|
type: 'open-link',
|
|
@@ -51,6 +66,38 @@ const config = {
|
|
|
51
66
|
href: 'https://admin.shopify.com/?redirect=/apps/releasit-cod-order-form',
|
|
52
67
|
appName: ReleasitConfig.label
|
|
53
68
|
},
|
|
69
|
+
{
|
|
70
|
+
id: 'version',
|
|
71
|
+
label: 'Choose version',
|
|
72
|
+
type: 'select',
|
|
73
|
+
default: 'v1',
|
|
74
|
+
options: [
|
|
75
|
+
{
|
|
76
|
+
label: 'V1',
|
|
77
|
+
value: 'v1'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: 'V2',
|
|
81
|
+
value: 'v2'
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: 'widgetTypeV2',
|
|
87
|
+
label: 'Choose widget',
|
|
88
|
+
type: 'select',
|
|
89
|
+
default: 'button-app-block',
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
label: 'Releasit button',
|
|
93
|
+
value: 'button-app-block'
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: 'Releasit embedded form',
|
|
97
|
+
value: 'form-app-block'
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
54
101
|
{
|
|
55
102
|
id: 'align',
|
|
56
103
|
label: 'Alignment',
|
|
@@ -91,12 +138,22 @@ const config = {
|
|
|
91
138
|
{
|
|
92
139
|
type: 'control',
|
|
93
140
|
label: {
|
|
94
|
-
en: 'Choose
|
|
141
|
+
en: 'Choose version'
|
|
95
142
|
},
|
|
96
143
|
setting: {
|
|
97
|
-
id: '
|
|
144
|
+
id: 'version'
|
|
98
145
|
}
|
|
99
146
|
},
|
|
147
|
+
{
|
|
148
|
+
type: 'control',
|
|
149
|
+
label: {
|
|
150
|
+
en: 'Choose widget'
|
|
151
|
+
},
|
|
152
|
+
setting: {
|
|
153
|
+
id: 'widgetTypeV2'
|
|
154
|
+
},
|
|
155
|
+
condition: 'version === "v2"'
|
|
156
|
+
},
|
|
100
157
|
{
|
|
101
158
|
type: 'control',
|
|
102
159
|
setting: {
|
|
@@ -111,6 +111,7 @@ import config$1J from './GloColorSwatchvariantImage.js';
|
|
|
111
111
|
import config$1K from './BfSizeChartSizeGuide.js';
|
|
112
112
|
import config$1L from './AlsoBoughtCbb.js';
|
|
113
113
|
import config$1M from './HextomFreeShippingBar.js';
|
|
114
|
+
import config$1N from './EcoboostifyShoppableReelUgc.js';
|
|
114
115
|
|
|
115
116
|
var index = {
|
|
116
117
|
HextomCountdownTimerBar: config,
|
|
@@ -225,7 +226,8 @@ var index = {
|
|
|
225
226
|
GloColorSwatchvariantImage: config$1J,
|
|
226
227
|
BfSizeChartSizeGuide: config$1K,
|
|
227
228
|
AlsoBoughtCbb: config$1L,
|
|
228
|
-
HextomFreeShippingBar: config$1M
|
|
229
|
+
HextomFreeShippingBar: config$1M,
|
|
230
|
+
EcoboostifyShoppableReelUgc: config$1N
|
|
229
231
|
};
|
|
230
232
|
|
|
231
233
|
export { index as default };
|