@gem-sdk/core 2.0.0-dev.178 → 2.0.0-dev.185
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/components/ComponentToolbarPreview.js +7 -7
- package/dist/cjs/components/ComponentWrapperPreview.js +2 -2
- package/dist/cjs/components/InteractionSuffix.js +6 -6
- package/dist/cjs/components/Render.liquid.js +12 -5
- package/dist/cjs/components/RenderCustomCode.js +7 -7
- package/dist/cjs/components/ai-generator/AIContentGenerator.js +4 -4
- package/dist/cjs/components/ai-generator/components/PickProduct.js +4 -4
- package/dist/cjs/components/resize/Spacing.js +7 -7
- package/dist/cjs/components/theme-section/CreateThemeSection.js +4 -4
- package/dist/cjs/contexts/ProductContext.js +12 -1
- package/dist/cjs/graphql/fragments/preview-theme-page.generated.js +4 -0
- package/dist/cjs/helpers/compose-advance-style.js +5 -9
- package/dist/cjs/helpers/interaction/index.js +7 -6
- package/dist/cjs/helpers/third-party/appConfig.js +4 -11
- package/dist/cjs/helpers/third-party/appSetting.js +32 -33
- package/dist/cjs/helpers/third-party/constant.js +1 -2
- package/dist/cjs/hooks/useInitialSwatchesOptions.js +2 -3
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/ComponentToolbarPreview.js +7 -7
- package/dist/esm/components/ComponentWrapperPreview.js +2 -2
- package/dist/esm/components/InteractionSuffix.js +6 -6
- package/dist/esm/components/Render.liquid.js +12 -5
- package/dist/esm/components/RenderCustomCode.js +7 -7
- package/dist/esm/components/ai-generator/AIContentGenerator.js +4 -4
- package/dist/esm/components/ai-generator/components/PickProduct.js +4 -4
- package/dist/esm/components/resize/Spacing.js +7 -7
- package/dist/esm/components/theme-section/CreateThemeSection.js +4 -4
- package/dist/esm/contexts/ProductContext.js +12 -1
- package/dist/esm/graphql/fragments/preview-theme-page.generated.js +4 -0
- package/dist/esm/helpers/compose-advance-style.js +5 -9
- package/dist/esm/helpers/interaction/index.js +7 -6
- package/dist/esm/helpers/third-party/appConfig.js +5 -11
- package/dist/esm/helpers/third-party/appSetting.js +32 -33
- package/dist/esm/helpers/third-party/constant.js +2 -3
- package/dist/esm/hooks/useInitialSwatchesOptions.js +2 -3
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +38 -1546
- package/package.json +3 -3
|
@@ -33,7 +33,7 @@ const componentUsingAdvanced = [
|
|
|
33
33
|
'IconList',
|
|
34
34
|
'ProductVariants'
|
|
35
35
|
];
|
|
36
|
-
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, ...passProps })=>{
|
|
36
|
+
const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageContext, enableLazyloadImage, additionalSettings, ...passProps })=>{
|
|
37
37
|
const item = builder[uid];
|
|
38
38
|
const Component = components[item?.tag];
|
|
39
39
|
if (!Component) {
|
|
@@ -73,6 +73,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
73
73
|
parentId: componentsRenderWithParentId.includes(item.tag) ? parentId : null,
|
|
74
74
|
pageContext,
|
|
75
75
|
enableLazyloadImage,
|
|
76
|
+
...additionalSettings,
|
|
76
77
|
...passProps,
|
|
77
78
|
builderAttrs: {
|
|
78
79
|
...passProps.builderAttrs
|
|
@@ -85,7 +86,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
85
86
|
components,
|
|
86
87
|
customProps,
|
|
87
88
|
pageContext,
|
|
88
|
-
enableLazyloadImage
|
|
89
|
+
enableLazyloadImage,
|
|
90
|
+
...additionalSettings
|
|
89
91
|
};
|
|
90
92
|
}),
|
|
91
93
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -98,7 +100,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
98
100
|
customProps,
|
|
99
101
|
parentTag: item.tag,
|
|
100
102
|
pageContext,
|
|
101
|
-
enableLazyloadImage
|
|
103
|
+
enableLazyloadImage,
|
|
104
|
+
...additionalSettings
|
|
102
105
|
}))) : ''
|
|
103
106
|
});
|
|
104
107
|
}, ()=>{
|
|
@@ -137,6 +140,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
137
140
|
},
|
|
138
141
|
pageContext,
|
|
139
142
|
enableLazyloadImage,
|
|
143
|
+
...additionalSettings,
|
|
140
144
|
...passProps,
|
|
141
145
|
builderAttrs: {
|
|
142
146
|
...passProps.builderAttrs
|
|
@@ -149,7 +153,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
149
153
|
components,
|
|
150
154
|
customProps,
|
|
151
155
|
pageContext,
|
|
152
|
-
enableLazyloadImage
|
|
156
|
+
enableLazyloadImage,
|
|
157
|
+
...additionalSettings
|
|
153
158
|
};
|
|
154
159
|
}),
|
|
155
160
|
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
@@ -162,7 +167,8 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
162
167
|
customProps,
|
|
163
168
|
parentTag: item.tag,
|
|
164
169
|
pageContext,
|
|
165
|
-
enableLazyloadImage
|
|
170
|
+
enableLazyloadImage,
|
|
171
|
+
...additionalSettings
|
|
166
172
|
}))) : ''
|
|
167
173
|
});
|
|
168
174
|
}, ()=>{
|
|
@@ -179,6 +185,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
179
185
|
},
|
|
180
186
|
pageContext,
|
|
181
187
|
enableLazyloadImage,
|
|
188
|
+
...additionalSettings,
|
|
182
189
|
isText: componentTexts.includes(item.tag) ? true : null,
|
|
183
190
|
style: componentIconList.includes(item.tag) ? style : null,
|
|
184
191
|
...passProps,
|
|
@@ -4,18 +4,18 @@ import Head from 'next/head';
|
|
|
4
4
|
import Script from 'next/script';
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
6
|
import 'zustand';
|
|
7
|
-
import 'swr';
|
|
8
|
-
import '@gem-sdk/adapter-shopify';
|
|
9
|
-
import 'swr/mutation';
|
|
10
|
-
import { useEditorMode } from '../hooks/shop.js';
|
|
11
|
-
import 'swr/infinite';
|
|
12
|
-
import 'vanilla-lazyload';
|
|
13
|
-
import '../hooks/useCartUI.js';
|
|
14
7
|
import 'react-transition-group';
|
|
15
8
|
import '@gem-sdk/core';
|
|
9
|
+
import 'swr';
|
|
10
|
+
import 'swr/infinite';
|
|
11
|
+
import { useEditorMode } from '../hooks/shop.js';
|
|
16
12
|
import 'classnames';
|
|
17
13
|
import 'dayjs';
|
|
18
14
|
import '../helpers/convert.js';
|
|
15
|
+
import '@gem-sdk/adapter-shopify';
|
|
16
|
+
import 'swr/mutation';
|
|
17
|
+
import 'vanilla-lazyload';
|
|
18
|
+
import '../hooks/useCartUI.js';
|
|
19
19
|
|
|
20
20
|
const RenderCustomCode = ({ uid, advanced })=>{
|
|
21
21
|
const mode = useEditorMode();
|
|
@@ -14,17 +14,17 @@ import { useGettingGenerateRequest } from './hooks/useGettingGenerateRequest.js'
|
|
|
14
14
|
import { useFlipPopup } from './hooks/useFlipPopup.js';
|
|
15
15
|
import { useCheckingProductInside } from './hooks/useCheckingProductInside.js';
|
|
16
16
|
import 'zustand';
|
|
17
|
+
import 'react-transition-group';
|
|
18
|
+
import '@gem-sdk/core';
|
|
17
19
|
import { useShopStore } from '../../contexts/ShopContext.js';
|
|
20
|
+
import dayjs from 'dayjs';
|
|
18
21
|
import 'swr';
|
|
22
|
+
import '../../helpers/convert.js';
|
|
19
23
|
import '@gem-sdk/adapter-shopify';
|
|
20
24
|
import 'swr/mutation';
|
|
21
25
|
import 'swr/infinite';
|
|
22
26
|
import 'vanilla-lazyload';
|
|
23
27
|
import '../../hooks/useCartUI.js';
|
|
24
|
-
import 'react-transition-group';
|
|
25
|
-
import '@gem-sdk/core';
|
|
26
|
-
import dayjs from 'dayjs';
|
|
27
|
-
import '../../helpers/convert.js';
|
|
28
28
|
|
|
29
29
|
const AIContentGenerator = ({ ...props })=>{
|
|
30
30
|
const [isShowPopup, setIsShowPopup] = useState(false);
|
|
@@ -5,16 +5,16 @@ import { SearchIcon } from '../icons/SearchIcon.js';
|
|
|
5
5
|
import { useListProductQuery } from '../../../hooks/shop/use-products-query.js';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import 'zustand';
|
|
8
|
+
import 'react-transition-group';
|
|
9
|
+
import '@gem-sdk/core';
|
|
8
10
|
import 'swr';
|
|
11
|
+
import 'dayjs';
|
|
12
|
+
import '../../../helpers/convert.js';
|
|
9
13
|
import '@gem-sdk/adapter-shopify';
|
|
10
14
|
import 'swr/mutation';
|
|
11
15
|
import { useProductQuery } from '../../../hooks/shop/use-product-query.js';
|
|
12
16
|
import 'vanilla-lazyload';
|
|
13
17
|
import '../../../hooks/useCartUI.js';
|
|
14
|
-
import 'react-transition-group';
|
|
15
|
-
import '@gem-sdk/core';
|
|
16
|
-
import 'dayjs';
|
|
17
|
-
import '../../../helpers/convert.js';
|
|
18
18
|
|
|
19
19
|
const PickProduct = (props)=>{
|
|
20
20
|
const LIMIT_PRODUCTS = 8;
|
|
@@ -3,18 +3,18 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useRef, useState, useCallback, useEffect } from 'react';
|
|
4
4
|
import 'zustand';
|
|
5
5
|
import { useBuilderPreviewStore } from '../../contexts/BuilderPreviewContext.js';
|
|
6
|
-
import 'swr';
|
|
7
|
-
import '@gem-sdk/adapter-shopify';
|
|
8
|
-
import 'swr/mutation';
|
|
9
|
-
import { usePageType } from '../../hooks/shop.js';
|
|
10
|
-
import 'swr/infinite';
|
|
11
|
-
import 'vanilla-lazyload';
|
|
12
|
-
import '../../hooks/useCartUI.js';
|
|
13
6
|
import 'react-transition-group';
|
|
14
7
|
import '@gem-sdk/core';
|
|
8
|
+
import 'swr';
|
|
9
|
+
import 'swr/infinite';
|
|
10
|
+
import { usePageType } from '../../hooks/shop.js';
|
|
15
11
|
import 'classnames';
|
|
16
12
|
import 'dayjs';
|
|
17
13
|
import '../../helpers/convert.js';
|
|
14
|
+
import '@gem-sdk/adapter-shopify';
|
|
15
|
+
import 'swr/mutation';
|
|
16
|
+
import 'vanilla-lazyload';
|
|
17
|
+
import '../../hooks/useCartUI.js';
|
|
18
18
|
|
|
19
19
|
function Spacing(props) {
|
|
20
20
|
const isThemeSectionEditor = useBuilderPreviewStore((s)=>s.isThemeSectionEditor);
|
|
@@ -5,14 +5,14 @@ import { ThemeSectionTooltip } from './ThemeSectionTooltip.js';
|
|
|
5
5
|
import 'zustand';
|
|
6
6
|
import { useShopStore } from '../../contexts/ShopContext.js';
|
|
7
7
|
import 'swr';
|
|
8
|
-
import '@gem-sdk/adapter-shopify';
|
|
9
|
-
import 'swr/mutation';
|
|
10
8
|
import 'swr/infinite';
|
|
11
|
-
import 'vanilla-lazyload';
|
|
12
|
-
import '../../hooks/useCartUI.js';
|
|
13
9
|
import 'classnames';
|
|
14
10
|
import 'dayjs';
|
|
15
11
|
import '../../helpers/convert.js';
|
|
12
|
+
import '@gem-sdk/adapter-shopify';
|
|
13
|
+
import 'swr/mutation';
|
|
14
|
+
import 'vanilla-lazyload';
|
|
15
|
+
import '../../hooks/useCartUI.js';
|
|
16
16
|
|
|
17
17
|
const SHOW_TOOLTIP_TIMEOUT = 600;
|
|
18
18
|
const NUMBER_OF_THEME_SECTION_CREATED_TO_SHOW_TOOLTIP = 1;
|
|
@@ -2,8 +2,19 @@
|
|
|
2
2
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useId, useMemo, useContext, createContext } from 'react';
|
|
4
4
|
import { useStore, createStore } from 'zustand';
|
|
5
|
-
import
|
|
5
|
+
import 'swr';
|
|
6
|
+
import '@gem-sdk/adapter-shopify';
|
|
7
|
+
import 'swr/mutation';
|
|
8
|
+
import 'swr/infinite';
|
|
9
|
+
import 'vanilla-lazyload';
|
|
10
|
+
import '../hooks/useCartUI.js';
|
|
6
11
|
import { checkInStock } from '../helpers/variant.js';
|
|
12
|
+
import 'react-transition-group';
|
|
13
|
+
import '@gem-sdk/core';
|
|
14
|
+
import 'classnames';
|
|
15
|
+
import 'dayjs';
|
|
16
|
+
import { flattenConnection } from '../helpers/flatten-connection.js';
|
|
17
|
+
import '../helpers/convert.js';
|
|
7
18
|
|
|
8
19
|
// const { Provider, useStore } = createContext<StoreApi<ProductContextProps>>();
|
|
9
20
|
const ProductContext = /*#__PURE__*/ createContext(null);
|
|
@@ -366,14 +366,10 @@ const removeAttrInStyle = (style, filterKeys)=>{
|
|
|
366
366
|
});
|
|
367
367
|
return newStyle;
|
|
368
368
|
};
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
'--btlr',
|
|
374
|
-
'--btrr'
|
|
375
|
-
];
|
|
376
|
-
return filterAttrInStyle(style, cornerKeys);
|
|
369
|
+
const getCornerStyle = (advancedSetting)=>{
|
|
370
|
+
return composeAdvanceStyle({
|
|
371
|
+
rounded: advancedSetting?.rounded
|
|
372
|
+
});
|
|
377
373
|
};
|
|
378
374
|
const removePaddingYInStyle = (style)=>{
|
|
379
375
|
const keys = [
|
|
@@ -387,4 +383,4 @@ const removePaddingYInStyle = (style)=>{
|
|
|
387
383
|
return removeAttrInStyle(style, keys);
|
|
388
384
|
};
|
|
389
385
|
|
|
390
|
-
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, filterAttrInStyle,
|
|
386
|
+
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, filterAttrInStyle, getCornerStyle, removeAttrInStyle, removePaddingYInStyle, splitStyle };
|
|
@@ -3,17 +3,17 @@ import { useRef, useMemo, useCallback } from 'react';
|
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'zustand';
|
|
5
5
|
import { usePageStore } from '../../contexts/PageContext.js';
|
|
6
|
-
import 'swr';
|
|
7
|
-
import '@gem-sdk/adapter-shopify';
|
|
8
|
-
import 'swr/mutation';
|
|
9
|
-
import 'swr/infinite';
|
|
10
|
-
import 'vanilla-lazyload';
|
|
11
|
-
import '../../hooks/useCartUI.js';
|
|
12
6
|
import 'react-transition-group';
|
|
13
7
|
import '@gem-sdk/core';
|
|
8
|
+
import 'swr';
|
|
9
|
+
import 'swr/infinite';
|
|
14
10
|
import 'classnames';
|
|
15
11
|
import 'dayjs';
|
|
16
12
|
import '../convert.js';
|
|
13
|
+
import '@gem-sdk/adapter-shopify';
|
|
14
|
+
import 'swr/mutation';
|
|
15
|
+
import 'vanilla-lazyload';
|
|
16
|
+
import '../../hooks/useCartUI.js';
|
|
17
17
|
|
|
18
18
|
const useInteraction = ()=>{
|
|
19
19
|
const ref = useRef();
|
|
@@ -55,6 +55,7 @@ const useInteraction = ()=>{
|
|
|
55
55
|
element.dispatchEvent(eventDispatch);
|
|
56
56
|
};
|
|
57
57
|
const saveToElementInteractionData = (element, key, value)=>{
|
|
58
|
+
if (!element) return;
|
|
58
59
|
const interactionData = element.getAttribute('gp-data-interaction');
|
|
59
60
|
const interactionDataJson = JSON.parse(interactionData || '{}');
|
|
60
61
|
element.setAttribute('gp-data-interaction', JSON.stringify({
|
|
@@ -220,10 +220,10 @@ const SeoantTrustBadgesIconConfig = {
|
|
|
220
220
|
appId: 'f42f2346-5d14-4b41-a8b9-4b6ee352262e'
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
appName: '
|
|
226
|
-
appId: '
|
|
223
|
+
const TrustreviewsProductReviewsConfig = {
|
|
224
|
+
TrustreviewsProductReviews: {
|
|
225
|
+
appName: 'trustreviews',
|
|
226
|
+
appId: '56d0fe1b-e701-4cff-8f84-466a26e09adb'
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
const MyappgurusProductReviewsConfig = {
|
|
@@ -232,12 +232,6 @@ const MyappgurusProductReviewsConfig = {
|
|
|
232
232
|
appId: '0cf5caa0-e138-46b8-999b-520d16633e4c'
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
const TrustreviewsProductReviewsConfig = {
|
|
236
|
-
TrustreviewsProductReviews: {
|
|
237
|
-
appName: 'trustreviews',
|
|
238
|
-
appId: '56d0fe1b-e701-4cff-8f84-466a26e09adb'
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
235
|
const HulkProductOptionsConfig = {
|
|
242
236
|
HulkProductOptions: {
|
|
243
237
|
appName: 'hulk-product-options',
|
|
@@ -257,4 +251,4 @@ const StampedConfig = {
|
|
|
257
251
|
}
|
|
258
252
|
};
|
|
259
253
|
|
|
260
|
-
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, PowerfulContactFormBuilderConfig,
|
|
254
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, StampedConfig, SubifySubscriptionsConfig, TrustooConfig, TrustreviewsProductReviewsConfig, TrustshopProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -114,6 +114,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
114
114
|
'scroll-video-tile-size-portrait': parseFloat(appSetting?.scrollVideoTitleSizePortrait)
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
+
case 'KachingBundles':
|
|
118
|
+
{
|
|
119
|
+
return {
|
|
120
|
+
...currentSetting,
|
|
121
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
122
|
+
};
|
|
123
|
+
}
|
|
117
124
|
case 'PowerfulContactFormBuilder':
|
|
118
125
|
{
|
|
119
126
|
return {
|
|
@@ -135,11 +142,11 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
135
142
|
badge_id: appSetting?.BadgeId
|
|
136
143
|
};
|
|
137
144
|
}
|
|
138
|
-
case '
|
|
145
|
+
case 'YotpoReviews':
|
|
139
146
|
{
|
|
140
147
|
return {
|
|
141
148
|
...currentSetting,
|
|
142
|
-
|
|
149
|
+
product: appSetting?.['productHandle'] || '{{ product }}'
|
|
143
150
|
};
|
|
144
151
|
}
|
|
145
152
|
case 'Stamped':
|
|
@@ -743,11 +750,29 @@ const SeoantTrustBadgesIcon = {
|
|
|
743
750
|
}
|
|
744
751
|
}
|
|
745
752
|
};
|
|
746
|
-
const
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
}
|
|
753
|
+
const TrustreviewsProductReviews = {
|
|
754
|
+
TrustreviewsProductReviews: {
|
|
755
|
+
questions_widget: {
|
|
756
|
+
product: '{{ product }}'
|
|
757
|
+
},
|
|
758
|
+
'review-carousel': null,
|
|
759
|
+
reviews_text_widget: null,
|
|
760
|
+
reviews_widget: {
|
|
761
|
+
product: '{{ product }}'
|
|
762
|
+
},
|
|
763
|
+
shop_reviews_widget: null,
|
|
764
|
+
star_rating: {
|
|
765
|
+
product: '{{product}}',
|
|
766
|
+
hide_on_no_reviews: false,
|
|
767
|
+
enable_jsonld: false,
|
|
768
|
+
starsize: 16,
|
|
769
|
+
addtional_text: ''
|
|
770
|
+
},
|
|
771
|
+
'reviews-testimonials': null,
|
|
772
|
+
all_reviews_widget: null,
|
|
773
|
+
'review-cards': null,
|
|
774
|
+
'review-gallery': null,
|
|
775
|
+
medals: null
|
|
751
776
|
}
|
|
752
777
|
};
|
|
753
778
|
const MyappgurusProductReviews = {
|
|
@@ -790,31 +815,6 @@ const MyappgurusProductReviews = {
|
|
|
790
815
|
star: null
|
|
791
816
|
}
|
|
792
817
|
};
|
|
793
|
-
const TrustreviewsProductReviews = {
|
|
794
|
-
TrustreviewsProductReviews: {
|
|
795
|
-
questions_widget: {
|
|
796
|
-
product: '{{ product }}'
|
|
797
|
-
},
|
|
798
|
-
'review-carousel': null,
|
|
799
|
-
reviews_text_widget: null,
|
|
800
|
-
reviews_widget: {
|
|
801
|
-
product: '{{ product }}'
|
|
802
|
-
},
|
|
803
|
-
shop_reviews_widget: null,
|
|
804
|
-
star_rating: {
|
|
805
|
-
product: '{{product}}',
|
|
806
|
-
hide_on_no_reviews: false,
|
|
807
|
-
enable_jsonld: false,
|
|
808
|
-
starsize: 16,
|
|
809
|
-
addtional_text: ''
|
|
810
|
-
},
|
|
811
|
-
'reviews-testimonials': null,
|
|
812
|
-
all_reviews_widget: null,
|
|
813
|
-
'review-cards': null,
|
|
814
|
-
'review-gallery': null,
|
|
815
|
-
medals: null
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
818
|
const HulkProductOptions = {
|
|
819
819
|
HulkProductOptions: {
|
|
820
820
|
option_block: null
|
|
@@ -991,7 +991,6 @@ const composeSettingsByWidgetType = {
|
|
|
991
991
|
...HulkProductOptions,
|
|
992
992
|
...MyappgurusProductReviews,
|
|
993
993
|
...TrustreviewsProductReviews,
|
|
994
|
-
...PowrContactFormBuilder,
|
|
995
994
|
...SeoantTrustBadgesIcon,
|
|
996
995
|
...SegunoEmailMarketing,
|
|
997
996
|
...AftershipEmailMarketingsms,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig, AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, GrowaveConfig, LoloyalLoyaltyReferralsConfig, PowerfulContactFormBuilderConfig, WishlistKingConfig, GloboProductOptionsVariantConfig, KachingBundlesConfig, BestBuyFulfillmentConfig, AftershipEmailMarketingsmsConfig, SegunoEmailMarketingConfig, TrustooConfig, LooxReviewsConfig, SeoantTrustBadgesIconConfig,
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, PreorderNowWodPresaleConfig, YotpoReviewsV3UgcConfig, WhatmoreShoppableVideosreelConfig, ProductOptionsCustomizerConfig, AppointmentBookingCowlendarConfig, BoldSubscriptionsConfig, SproutPlantTreesGrowSalesConfig, InstasellShoppableInstagramConfig, GrowaveConfig, LoloyalLoyaltyReferralsConfig, PowerfulContactFormBuilderConfig, WishlistKingConfig, GloboProductOptionsVariantConfig, KachingBundlesConfig, BestBuyFulfillmentConfig, AftershipEmailMarketingsmsConfig, SegunoEmailMarketingConfig, TrustooConfig, LooxReviewsConfig, SeoantTrustBadgesIconConfig, TrustreviewsProductReviewsConfig, MyappgurusProductReviewsConfig, HulkProductOptionsConfig, TrustshopProductReviewsConfig, StampedConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -38,9 +38,8 @@ const mapShopifyAppMeta = {
|
|
|
38
38
|
...TrustooConfig,
|
|
39
39
|
...LooxReviewsConfig,
|
|
40
40
|
...SeoantTrustBadgesIconConfig,
|
|
41
|
-
...PowrContactFormBuilderConfig,
|
|
42
|
-
...MyappgurusProductReviewsConfig,
|
|
43
41
|
...TrustreviewsProductReviewsConfig,
|
|
42
|
+
...MyappgurusProductReviewsConfig,
|
|
44
43
|
...HulkProductOptionsConfig,
|
|
45
44
|
...TrustshopProductReviewsConfig,
|
|
46
45
|
...StampedConfig
|
|
@@ -72,15 +72,14 @@ const getProductOptionsLabelByName = (options, name)=>{
|
|
|
72
72
|
const labels = [];
|
|
73
73
|
const optionByName = options.find((op)=>op.name === name);
|
|
74
74
|
optionByName?.values.forEach((val)=>{
|
|
75
|
-
labels.push(val.label
|
|
75
|
+
if (val.label && !labels.includes(val.label)) labels.push(val.label);
|
|
76
76
|
});
|
|
77
77
|
return labels;
|
|
78
78
|
};
|
|
79
79
|
const getSwatchesOptionsLabel = (options)=>{
|
|
80
80
|
const labels = [];
|
|
81
81
|
options.forEach((op)=>{
|
|
82
|
-
labels.push(op.label
|
|
83
|
-
return;
|
|
82
|
+
if (op.label && !labels.includes(op.label)) labels.push(op.label);
|
|
84
83
|
});
|
|
85
84
|
return labels;
|
|
86
85
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -58,7 +58,7 @@ export { tiktokpixel };
|
|
|
58
58
|
export { GRADIENT_BGR_KEY, composeBackgroundCss, getBgImageByDevice, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getStyleBackgroundByDevice, getStyleBgColor, makeFixedBgAttachment } from './helpers/background.js';
|
|
59
59
|
export { composeBackgroundImageCss, getBgImageSourceByDevice, getStyleBackgroundImageByDevice, getStyleBgImageSource } from './helpers/backgroundImage.js';
|
|
60
60
|
export { composeTextColorCss, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getSingleColorVariable, isColor } from './helpers/colors.js';
|
|
61
|
-
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, filterAttrInStyle,
|
|
61
|
+
export { composeAdvanceStyle, composeAdvanceStyleForPostPurchase, filterAttrInStyle, getCornerStyle, removeAttrInStyle, removePaddingYInStyle, splitStyle } from './helpers/compose-advance-style.js';
|
|
62
62
|
export { baseAssetURL, isLocalEnv } from './helpers/convert.js';
|
|
63
63
|
export { convertHTML } from './helpers/covert-entities-html.js';
|
|
64
64
|
export { composePositionLineHeight, composePostionIconList } from './helpers/icon-list.js';
|