@gem-sdk/core 2.0.0-staging.153 → 2.0.0-staging.160
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/contexts/PageContext.js +8 -1
- package/dist/cjs/graphql/fragments/custom-font.generated.js +5 -1
- package/dist/cjs/graphql/queries/{published-shop-metas.js → published-shop-metas.generated.js} +1 -1
- package/dist/cjs/graphql-app-api/queries/SaleFunnelOffer.generated.js +25 -0
- package/dist/cjs/helpers/third-party/appConfig.js +14 -0
- package/dist/cjs/helpers/third-party/appSetting.js +30 -0
- package/dist/cjs/helpers/third-party/constant.js +3 -1
- package/dist/cjs/hooks/useFormatMoney.js +1 -1
- package/dist/cjs/index.js +4 -2
- package/dist/esm/contexts/PageContext.js +8 -1
- package/dist/esm/graphql/fragments/custom-font.generated.js +5 -1
- package/dist/esm/graphql/queries/{published-shop-metas.js → published-shop-metas.generated.js} +1 -1
- package/dist/esm/graphql-app-api/queries/SaleFunnelOffer.generated.js +23 -0
- package/dist/esm/helpers/third-party/appConfig.js +13 -1
- package/dist/esm/helpers/third-party/appSetting.js +30 -0
- package/dist/esm/helpers/third-party/constant.js +4 -2
- package/dist/esm/hooks/useFormatMoney.js +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/types/index.d.ts +5119 -515
- package/package.json +1 -1
|
@@ -23,6 +23,11 @@ const createPageStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
23
23
|
productOffers: productOffers
|
|
24
24
|
});
|
|
25
25
|
},
|
|
26
|
+
setDynamicDiscountOffer: (dynamicDiscountOffer)=>{
|
|
27
|
+
set({
|
|
28
|
+
dynamicDiscountOffer: dynamicDiscountOffer
|
|
29
|
+
});
|
|
30
|
+
},
|
|
26
31
|
setSalePageProductId: (id)=>{
|
|
27
32
|
set({
|
|
28
33
|
salePageProductId: id
|
|
@@ -72,11 +77,12 @@ const createPageStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
72
77
|
}));
|
|
73
78
|
}
|
|
74
79
|
}));
|
|
75
|
-
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
80
|
+
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, dynamicDiscountOffer, publicStoreFrontData, ...passProps })=>{
|
|
76
81
|
const store = react.useMemo(()=>createPageStoreProvider({
|
|
77
82
|
dynamicProduct,
|
|
78
83
|
dynamicCollection,
|
|
79
84
|
productOffers,
|
|
85
|
+
dynamicDiscountOffer,
|
|
80
86
|
publicStoreFrontData,
|
|
81
87
|
interactionData: {
|
|
82
88
|
selectType: 'ELEMENT'
|
|
@@ -85,6 +91,7 @@ const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffe
|
|
|
85
91
|
dynamicProduct,
|
|
86
92
|
dynamicCollection,
|
|
87
93
|
productOffers,
|
|
94
|
+
dynamicDiscountOffer,
|
|
88
95
|
publicStoreFrontData
|
|
89
96
|
]);
|
|
90
97
|
return /*#__PURE__*/ jsxRuntime.jsx(PageContext.Provider, {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */ const SaleFunnelOfferDocument = `
|
|
4
|
+
query SaleFunnelOffer($saleFunnelOfferId: ID!) {
|
|
5
|
+
saleFunnelOffer(id: $saleFunnelOfferId) {
|
|
6
|
+
dynamicDiscounts {
|
|
7
|
+
id
|
|
8
|
+
createdAt
|
|
9
|
+
updatedAt
|
|
10
|
+
type
|
|
11
|
+
valueType
|
|
12
|
+
value
|
|
13
|
+
appliedProductCount
|
|
14
|
+
isEnabled
|
|
15
|
+
}
|
|
16
|
+
id
|
|
17
|
+
isEnabled
|
|
18
|
+
campaignID
|
|
19
|
+
createdAt
|
|
20
|
+
deletedAt
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports.SaleFunnelOfferDocument = SaleFunnelOfferDocument;
|
|
@@ -252,6 +252,18 @@ const StampedConfig = {
|
|
|
252
252
|
appId: 'a103faaf-2125-4b0e-89fa-de5149736723'
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
+
const EssentialCountdownTimerBarConfig = {
|
|
256
|
+
EssentialCountdownTimerBar: {
|
|
257
|
+
appName: 'essential-countdown',
|
|
258
|
+
appId: '722378e8-5a70-4eae-aa89-9e44e8e9f6de'
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
const EssentialAnnouncementBarConfig = {
|
|
262
|
+
EssentialAnnouncementBar: {
|
|
263
|
+
appName: 'essential-announcement',
|
|
264
|
+
appId: '93b5429f-c8d6-4c33-ae14-250fd84f361b'
|
|
265
|
+
}
|
|
266
|
+
};
|
|
255
267
|
|
|
256
268
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
257
269
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
@@ -259,6 +271,8 @@ exports.BestBuyFulfillmentConfig = BestBuyFulfillmentConfig;
|
|
|
259
271
|
exports.BoldSubscriptionsConfig = BoldSubscriptionsConfig;
|
|
260
272
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
261
273
|
exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
|
|
274
|
+
exports.EssentialAnnouncementBarConfig = EssentialAnnouncementBarConfig;
|
|
275
|
+
exports.EssentialCountdownTimerBarConfig = EssentialCountdownTimerBarConfig;
|
|
262
276
|
exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
|
|
263
277
|
exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
|
|
264
278
|
exports.GloboProductOptionsVariantConfig = GloboProductOptionsVariantConfig;
|
|
@@ -190,6 +190,20 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
190
190
|
linkify: appSetting.linkify
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
+
case 'EssentialCountdownTimerBar':
|
|
194
|
+
{
|
|
195
|
+
return {
|
|
196
|
+
...currentSetting,
|
|
197
|
+
id: appSetting?.timerId
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
case 'EssentialAnnouncementBar':
|
|
201
|
+
{
|
|
202
|
+
return {
|
|
203
|
+
...currentSetting,
|
|
204
|
+
id: appSetting?.announcementId
|
|
205
|
+
};
|
|
206
|
+
}
|
|
193
207
|
default:
|
|
194
208
|
return currentSetting;
|
|
195
209
|
}
|
|
@@ -987,7 +1001,23 @@ const Stamped = {
|
|
|
987
1001
|
}
|
|
988
1002
|
}
|
|
989
1003
|
};
|
|
1004
|
+
const EssentialCountdownTimerBar = {
|
|
1005
|
+
EssentialCountdownTimerBar: {
|
|
1006
|
+
'app-block': {
|
|
1007
|
+
id: ''
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
const EssentialAnnouncementBar = {
|
|
1012
|
+
EssentialAnnouncementBar: {
|
|
1013
|
+
'app-block': {
|
|
1014
|
+
id: ''
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
};
|
|
990
1018
|
const composeSettingsByWidgetType = {
|
|
1019
|
+
...EssentialAnnouncementBar,
|
|
1020
|
+
...EssentialCountdownTimerBar,
|
|
991
1021
|
...Stamped,
|
|
992
1022
|
...TrustshopProductReviews,
|
|
993
1023
|
...HulkProductOptions,
|
|
@@ -44,7 +44,9 @@ const mapShopifyAppMeta = {
|
|
|
44
44
|
...appConfig.MyappgurusProductReviewsConfig,
|
|
45
45
|
...appConfig.HulkProductOptionsConfig,
|
|
46
46
|
...appConfig.TrustshopProductReviewsConfig,
|
|
47
|
-
...appConfig.StampedConfig
|
|
47
|
+
...appConfig.StampedConfig,
|
|
48
|
+
...appConfig.EssentialCountdownTimerBarConfig,
|
|
49
|
+
...appConfig.EssentialAnnouncementBarConfig
|
|
48
50
|
};
|
|
49
51
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
50
52
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var shop = require('./shop.js');
|
|
5
5
|
|
|
6
6
|
const shopifyPriceRounding = (amount, precision)=>{
|
|
7
|
-
return parseFloat(`${amount}`).toFixed(Number(precision)
|
|
7
|
+
return parseFloat(`${amount}`).toFixed(Number(precision));
|
|
8
8
|
};
|
|
9
9
|
const formatMoney = function(cents, format) {
|
|
10
10
|
let value = '';
|
package/dist/cjs/index.js
CHANGED
|
@@ -19,7 +19,6 @@ var ModalContext = require('./contexts/ModalContext.js');
|
|
|
19
19
|
var ArticleListContext = require('./contexts/ArticleListContext.js');
|
|
20
20
|
var ArticleContext = require('./contexts/ArticleContext.js');
|
|
21
21
|
var pageViewUp_generated = require('./graphql/mutations/page-view-up.generated.js');
|
|
22
|
-
var publishedShopMetas = require('./graphql/queries/published-shop-metas.js');
|
|
23
22
|
var collectionDetailFilter_generated = require('./graphql/queries/collection-detail-filter.generated.js');
|
|
24
23
|
var collection_generated = require('./graphql/queries/collection.generated.js');
|
|
25
24
|
var collections_generated = require('./graphql/queries/collections.generated.js');
|
|
@@ -27,12 +26,14 @@ var publishedThemePages_generated = require('./graphql/queries/published-theme-p
|
|
|
27
26
|
var products_generated = require('./graphql/queries/products.generated.js');
|
|
28
27
|
var storeProperty_generated = require('./graphql/queries/store-property.generated.js');
|
|
29
28
|
var previewPage_generated = require('./graphql/queries/preview-page.generated.js');
|
|
29
|
+
var publishedShopMetas_generated = require('./graphql/queries/published-shop-metas.generated.js');
|
|
30
30
|
var shopShopify_generated = require('./graphql/queries/shop-shopify.generated.js');
|
|
31
31
|
var LibraryTemplate_generated = require('./graphql-app-api/queries/LibraryTemplate.generated.js');
|
|
32
32
|
var ThemePage_generated = require('./graphql-app-api/queries/ThemePage.generated.js');
|
|
33
33
|
var SaleFunnelDiscounts_generated = require('./graphql-app-api/queries/SaleFunnelDiscounts.generated.js');
|
|
34
34
|
var LibrarySaleFunnelDiscount_generated = require('./graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js');
|
|
35
35
|
var ShopLibraryPage_generated = require('./graphql-app-api/queries/ShopLibraryPage.generated.js');
|
|
36
|
+
var SaleFunnelOffer_generated = require('./graphql-app-api/queries/SaleFunnelOffer.generated.js');
|
|
36
37
|
var borders = require('./helpers/borders.js');
|
|
37
38
|
var carousel = require('./helpers/carousel.js');
|
|
38
39
|
var cls = require('./helpers/cls.js');
|
|
@@ -154,7 +155,6 @@ exports.useArticleListStore = ArticleListContext.useArticleListStore;
|
|
|
154
155
|
exports.ArticleProvider = ArticleContext.ArticleProvider;
|
|
155
156
|
exports.useArticleStore = ArticleContext.useArticleStore;
|
|
156
157
|
exports.PageViewUpDocument = pageViewUp_generated.PageViewUpDocument;
|
|
157
|
-
exports.PublishedShopMetasDocument = publishedShopMetas.PublishedShopMetasDocument;
|
|
158
158
|
exports.CollectionDetailFilterDocument = collectionDetailFilter_generated.CollectionDetailFilterDocument;
|
|
159
159
|
exports.CollectionDocument = collection_generated.CollectionDocument;
|
|
160
160
|
exports.CollectionsDocument = collections_generated.CollectionsDocument;
|
|
@@ -162,12 +162,14 @@ exports.PublishedThemePagesDocument = publishedThemePages_generated.PublishedThe
|
|
|
162
162
|
exports.ProductsDocument = products_generated.ProductsDocument;
|
|
163
163
|
exports.StorePropertyDocument = storeProperty_generated.StorePropertyDocument;
|
|
164
164
|
exports.PreviewThemePageDocument = previewPage_generated.PreviewThemePageDocument;
|
|
165
|
+
exports.PublishedShopMetasDocument = publishedShopMetas_generated.PublishedShopMetasDocument;
|
|
165
166
|
exports.ShopShopifyDocument = shopShopify_generated.ShopShopifyDocument;
|
|
166
167
|
exports.LibraryTemplateDocument = LibraryTemplate_generated.LibraryTemplateDocument;
|
|
167
168
|
exports.ThemePageDocument = ThemePage_generated.ThemePageDocument;
|
|
168
169
|
exports.SaleFunnelDiscountsDocument = SaleFunnelDiscounts_generated.SaleFunnelDiscountsDocument;
|
|
169
170
|
exports.LibrarySaleFunnelDocument = LibrarySaleFunnelDiscount_generated.LibrarySaleFunnelDocument;
|
|
170
171
|
exports.ShopLibraryPageDocument = ShopLibraryPage_generated.ShopLibraryPageDocument;
|
|
172
|
+
exports.SaleFunnelOfferDocument = SaleFunnelOffer_generated.SaleFunnelOfferDocument;
|
|
171
173
|
exports.composeBorderCss = borders.composeBorderCss;
|
|
172
174
|
exports.getBorderRadiusStyle = borders.getBorderRadiusStyle;
|
|
173
175
|
exports.getBorderStyle = borders.getBorderStyle;
|
|
@@ -21,6 +21,11 @@ const createPageStoreProvider = (data)=>createStore((set)=>({
|
|
|
21
21
|
productOffers: productOffers
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
|
+
setDynamicDiscountOffer: (dynamicDiscountOffer)=>{
|
|
25
|
+
set({
|
|
26
|
+
dynamicDiscountOffer: dynamicDiscountOffer
|
|
27
|
+
});
|
|
28
|
+
},
|
|
24
29
|
setSalePageProductId: (id)=>{
|
|
25
30
|
set({
|
|
26
31
|
salePageProductId: id
|
|
@@ -70,11 +75,12 @@ const createPageStoreProvider = (data)=>createStore((set)=>({
|
|
|
70
75
|
}));
|
|
71
76
|
}
|
|
72
77
|
}));
|
|
73
|
-
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
78
|
+
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, dynamicDiscountOffer, publicStoreFrontData, ...passProps })=>{
|
|
74
79
|
const store = useMemo(()=>createPageStoreProvider({
|
|
75
80
|
dynamicProduct,
|
|
76
81
|
dynamicCollection,
|
|
77
82
|
productOffers,
|
|
83
|
+
dynamicDiscountOffer,
|
|
78
84
|
publicStoreFrontData,
|
|
79
85
|
interactionData: {
|
|
80
86
|
selectType: 'ELEMENT'
|
|
@@ -83,6 +89,7 @@ const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffe
|
|
|
83
89
|
dynamicProduct,
|
|
84
90
|
dynamicCollection,
|
|
85
91
|
productOffers,
|
|
92
|
+
dynamicDiscountOffer,
|
|
86
93
|
publicStoreFrontData
|
|
87
94
|
]);
|
|
88
95
|
return /*#__PURE__*/ jsx(PageContext.Provider, {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* eslint-disable */ const SaleFunnelOfferDocument = `
|
|
2
|
+
query SaleFunnelOffer($saleFunnelOfferId: ID!) {
|
|
3
|
+
saleFunnelOffer(id: $saleFunnelOfferId) {
|
|
4
|
+
dynamicDiscounts {
|
|
5
|
+
id
|
|
6
|
+
createdAt
|
|
7
|
+
updatedAt
|
|
8
|
+
type
|
|
9
|
+
valueType
|
|
10
|
+
value
|
|
11
|
+
appliedProductCount
|
|
12
|
+
isEnabled
|
|
13
|
+
}
|
|
14
|
+
id
|
|
15
|
+
isEnabled
|
|
16
|
+
campaignID
|
|
17
|
+
createdAt
|
|
18
|
+
deletedAt
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
export { SaleFunnelOfferDocument };
|
|
@@ -250,5 +250,17 @@ const StampedConfig = {
|
|
|
250
250
|
appId: 'a103faaf-2125-4b0e-89fa-de5149736723'
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
|
+
const EssentialCountdownTimerBarConfig = {
|
|
254
|
+
EssentialCountdownTimerBar: {
|
|
255
|
+
appName: 'essential-countdown',
|
|
256
|
+
appId: '722378e8-5a70-4eae-aa89-9e44e8e9f6de'
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
const EssentialAnnouncementBarConfig = {
|
|
260
|
+
EssentialAnnouncementBar: {
|
|
261
|
+
appName: 'essential-announcement',
|
|
262
|
+
appId: '93b5429f-c8d6-4c33-ae14-250fd84f361b'
|
|
263
|
+
}
|
|
264
|
+
};
|
|
253
265
|
|
|
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 };
|
|
266
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, EssentialAnnouncementBarConfig, EssentialCountdownTimerBarConfig, 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 };
|
|
@@ -188,6 +188,20 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
188
188
|
linkify: appSetting.linkify
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
+
case 'EssentialCountdownTimerBar':
|
|
192
|
+
{
|
|
193
|
+
return {
|
|
194
|
+
...currentSetting,
|
|
195
|
+
id: appSetting?.timerId
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
case 'EssentialAnnouncementBar':
|
|
199
|
+
{
|
|
200
|
+
return {
|
|
201
|
+
...currentSetting,
|
|
202
|
+
id: appSetting?.announcementId
|
|
203
|
+
};
|
|
204
|
+
}
|
|
191
205
|
default:
|
|
192
206
|
return currentSetting;
|
|
193
207
|
}
|
|
@@ -985,7 +999,23 @@ const Stamped = {
|
|
|
985
999
|
}
|
|
986
1000
|
}
|
|
987
1001
|
};
|
|
1002
|
+
const EssentialCountdownTimerBar = {
|
|
1003
|
+
EssentialCountdownTimerBar: {
|
|
1004
|
+
'app-block': {
|
|
1005
|
+
id: ''
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
const EssentialAnnouncementBar = {
|
|
1010
|
+
EssentialAnnouncementBar: {
|
|
1011
|
+
'app-block': {
|
|
1012
|
+
id: ''
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
988
1016
|
const composeSettingsByWidgetType = {
|
|
1017
|
+
...EssentialAnnouncementBar,
|
|
1018
|
+
...EssentialCountdownTimerBar,
|
|
989
1019
|
...Stamped,
|
|
990
1020
|
...TrustshopProductReviews,
|
|
991
1021
|
...HulkProductOptions,
|
|
@@ -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, TrustreviewsProductReviewsConfig, MyappgurusProductReviewsConfig, HulkProductOptionsConfig, TrustshopProductReviewsConfig, StampedConfig } from './appConfig.js';
|
|
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, EssentialCountdownTimerBarConfig, EssentialAnnouncementBarConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -42,7 +42,9 @@ const mapShopifyAppMeta = {
|
|
|
42
42
|
...MyappgurusProductReviewsConfig,
|
|
43
43
|
...HulkProductOptionsConfig,
|
|
44
44
|
...TrustshopProductReviewsConfig,
|
|
45
|
-
...StampedConfig
|
|
45
|
+
...StampedConfig,
|
|
46
|
+
...EssentialCountdownTimerBarConfig,
|
|
47
|
+
...EssentialAnnouncementBarConfig
|
|
46
48
|
};
|
|
47
49
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
48
50
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useMoneyFormat } from './shop.js';
|
|
3
3
|
|
|
4
4
|
const shopifyPriceRounding = (amount, precision)=>{
|
|
5
|
-
return parseFloat(`${amount}`).toFixed(Number(precision)
|
|
5
|
+
return parseFloat(`${amount}`).toFixed(Number(precision));
|
|
6
6
|
};
|
|
7
7
|
const formatMoney = function(cents, format) {
|
|
8
8
|
let value = '';
|
package/dist/esm/index.js
CHANGED
|
@@ -17,7 +17,6 @@ export { ModalProvider, useModalStore } from './contexts/ModalContext.js';
|
|
|
17
17
|
export { ArticleListProvider, useArticleListStore } from './contexts/ArticleListContext.js';
|
|
18
18
|
export { ArticleProvider, useArticleStore } from './contexts/ArticleContext.js';
|
|
19
19
|
export { PageViewUpDocument } from './graphql/mutations/page-view-up.generated.js';
|
|
20
|
-
export { PublishedShopMetasDocument } from './graphql/queries/published-shop-metas.js';
|
|
21
20
|
export { CollectionDetailFilterDocument } from './graphql/queries/collection-detail-filter.generated.js';
|
|
22
21
|
export { CollectionDocument } from './graphql/queries/collection.generated.js';
|
|
23
22
|
export { CollectionsDocument } from './graphql/queries/collections.generated.js';
|
|
@@ -25,12 +24,14 @@ export { PublishedThemePagesDocument } from './graphql/queries/published-theme-p
|
|
|
25
24
|
export { ProductsDocument } from './graphql/queries/products.generated.js';
|
|
26
25
|
export { StorePropertyDocument } from './graphql/queries/store-property.generated.js';
|
|
27
26
|
export { PreviewThemePageDocument } from './graphql/queries/preview-page.generated.js';
|
|
27
|
+
export { PublishedShopMetasDocument } from './graphql/queries/published-shop-metas.generated.js';
|
|
28
28
|
export { ShopShopifyDocument } from './graphql/queries/shop-shopify.generated.js';
|
|
29
29
|
export { LibraryTemplateDocument } from './graphql-app-api/queries/LibraryTemplate.generated.js';
|
|
30
30
|
export { ThemePageDocument } from './graphql-app-api/queries/ThemePage.generated.js';
|
|
31
31
|
export { SaleFunnelDiscountsDocument } from './graphql-app-api/queries/SaleFunnelDiscounts.generated.js';
|
|
32
32
|
export { LibrarySaleFunnelDocument } from './graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js';
|
|
33
33
|
export { ShopLibraryPageDocument } from './graphql-app-api/queries/ShopLibraryPage.generated.js';
|
|
34
|
+
export { SaleFunnelOfferDocument } from './graphql-app-api/queries/SaleFunnelOffer.generated.js';
|
|
34
35
|
export { composeBorderCss, getBorderRadiusStyle, getBorderStyle, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn } from './helpers/borders.js';
|
|
35
36
|
export { getCarouselContainerHeight, makeContainerWidthOrHeight, makeDotGapToCarouselStyle } from './helpers/carousel.js';
|
|
36
37
|
export { cls } from './helpers/cls.js';
|