@gem-sdk/core 1.50.0-staging.34 → 1.50.0-staging.42
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/RenderPreview.js +1 -1
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +33 -0
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/esm/components/RenderPreview.js +1 -1
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +33 -0
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/dist/types/index.d.ts +47 -0
- package/package.json +2 -2
|
@@ -45,7 +45,7 @@ const RenderPreview = ({ uid, ...passProps })=>{
|
|
|
45
45
|
setting: item.settings,
|
|
46
46
|
...passProps,
|
|
47
47
|
children: item.childrens.map((id)=>/*#__PURE__*/ jsxRuntime.jsx(RenderPreviewMemo, {
|
|
48
|
-
|
|
48
|
+
"bundle-item": passProps?.['bundle-item'],
|
|
49
49
|
uid: id
|
|
50
50
|
}, id))
|
|
51
51
|
}) : /*#__PURE__*/ jsxRuntime.jsx(Component, {
|
|
@@ -96,11 +96,18 @@ const FlyBundlesUpsellsFbtConfig = {
|
|
|
96
96
|
appId: '26807bdc-c2ed-4a25-afb2-06e6b1ebf843'
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
+
const JunipProductReviewsUgcConfig = {
|
|
100
|
+
JunipProductReviewsUgc: {
|
|
101
|
+
appName: 'junip-product-reviews-ugc',
|
|
102
|
+
appId: 'dc14f5a8-ed15-41b1-ad08-cfba23f9789b'
|
|
103
|
+
}
|
|
104
|
+
};
|
|
99
105
|
|
|
100
106
|
exports.BonLoyaltyRewardsReferralsConfig = BonLoyaltyRewardsReferralsConfig;
|
|
101
107
|
exports.EasyBundleBuilderSkailamaConfig = EasyBundleBuilderSkailamaConfig;
|
|
102
108
|
exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
|
|
103
109
|
exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
|
|
110
|
+
exports.JunipProductReviewsUgcConfig = JunipProductReviewsUgcConfig;
|
|
104
111
|
exports.KiteFreeGiftDiscountConfig = KiteFreeGiftDiscountConfig;
|
|
105
112
|
exports.LoopSubscriptionsConfig = LoopSubscriptionsConfig;
|
|
106
113
|
exports.PreorderNowPreOrderPqConfig = PreorderNowPreOrderPqConfig;
|
|
@@ -159,7 +159,40 @@ const FlyBundlesUpsellsFbt = {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
|
+
const JunipProductReviewsUgc = {
|
|
163
|
+
JunipProductReviewsUgc: {
|
|
164
|
+
'junip-review-carousel': {
|
|
165
|
+
reviewsType: 'product_reviews',
|
|
166
|
+
showSummary: true,
|
|
167
|
+
title: 'Reviews',
|
|
168
|
+
paddingTop: 48,
|
|
169
|
+
paddingBottom: 48,
|
|
170
|
+
containerClass: ''
|
|
171
|
+
},
|
|
172
|
+
'junip-ugc-gallery': {
|
|
173
|
+
layout: 'scroll',
|
|
174
|
+
title: '',
|
|
175
|
+
paddingTop: 48,
|
|
176
|
+
paddingBottom: 48,
|
|
177
|
+
containerClass: ''
|
|
178
|
+
},
|
|
179
|
+
'junip-product-review': {
|
|
180
|
+
product: '{{product}}'
|
|
181
|
+
},
|
|
182
|
+
'junip-product-summary': {
|
|
183
|
+
product: '{{product}}'
|
|
184
|
+
},
|
|
185
|
+
'junip-reviews': {
|
|
186
|
+
layout: 'list',
|
|
187
|
+
reviewsType: 'all',
|
|
188
|
+
showSummary: true,
|
|
189
|
+
reviewsCount: 10,
|
|
190
|
+
containerClass: ''
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
162
194
|
const composeSettingsByWidgetType = {
|
|
195
|
+
...JunipProductReviewsUgc,
|
|
163
196
|
...FlyBundlesUpsellsFbt,
|
|
164
197
|
...PreorderNowPreOrderPq,
|
|
165
198
|
...EasyBundleBuilderSkailama,
|
|
@@ -18,7 +18,8 @@ const mapShopifyAppMeta = {
|
|
|
18
18
|
...appConfig.SimpleBundlesKitsConfig,
|
|
19
19
|
...appConfig.EasyBundleBuilderSkailamaConfig,
|
|
20
20
|
...appConfig.PreorderNowPreOrderPqConfig,
|
|
21
|
-
...appConfig.FlyBundlesUpsellsFbtConfig
|
|
21
|
+
...appConfig.FlyBundlesUpsellsFbtConfig,
|
|
22
|
+
...appConfig.JunipProductReviewsUgcConfig
|
|
22
23
|
};
|
|
23
24
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
24
25
|
|
|
@@ -41,7 +41,7 @@ const RenderPreview = ({ uid, ...passProps })=>{
|
|
|
41
41
|
setting: item.settings,
|
|
42
42
|
...passProps,
|
|
43
43
|
children: item.childrens.map((id)=>/*#__PURE__*/ jsx(RenderPreviewMemo, {
|
|
44
|
-
|
|
44
|
+
"bundle-item": passProps?.['bundle-item'],
|
|
45
45
|
uid: id
|
|
46
46
|
}, id))
|
|
47
47
|
}) : /*#__PURE__*/ jsx(Component, {
|
|
@@ -94,5 +94,11 @@ const FlyBundlesUpsellsFbtConfig = {
|
|
|
94
94
|
appId: '26807bdc-c2ed-4a25-afb2-06e6b1ebf843'
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
+
const JunipProductReviewsUgcConfig = {
|
|
98
|
+
JunipProductReviewsUgc: {
|
|
99
|
+
appName: 'junip-product-reviews-ugc',
|
|
100
|
+
appId: 'dc14f5a8-ed15-41b1-ad08-cfba23f9789b'
|
|
101
|
+
}
|
|
102
|
+
};
|
|
97
103
|
|
|
98
|
-
export { BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
|
|
104
|
+
export { BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig, KiteFreeGiftDiscountConfig, LoopSubscriptionsConfig, PreorderNowPreOrderPqConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SubifySubscriptionsConfig, UnlimitedBundlesDiscountsConfig };
|
|
@@ -157,7 +157,40 @@ const FlyBundlesUpsellsFbt = {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
|
+
const JunipProductReviewsUgc = {
|
|
161
|
+
JunipProductReviewsUgc: {
|
|
162
|
+
'junip-review-carousel': {
|
|
163
|
+
reviewsType: 'product_reviews',
|
|
164
|
+
showSummary: true,
|
|
165
|
+
title: 'Reviews',
|
|
166
|
+
paddingTop: 48,
|
|
167
|
+
paddingBottom: 48,
|
|
168
|
+
containerClass: ''
|
|
169
|
+
},
|
|
170
|
+
'junip-ugc-gallery': {
|
|
171
|
+
layout: 'scroll',
|
|
172
|
+
title: '',
|
|
173
|
+
paddingTop: 48,
|
|
174
|
+
paddingBottom: 48,
|
|
175
|
+
containerClass: ''
|
|
176
|
+
},
|
|
177
|
+
'junip-product-review': {
|
|
178
|
+
product: '{{product}}'
|
|
179
|
+
},
|
|
180
|
+
'junip-product-summary': {
|
|
181
|
+
product: '{{product}}'
|
|
182
|
+
},
|
|
183
|
+
'junip-reviews': {
|
|
184
|
+
layout: 'list',
|
|
185
|
+
reviewsType: 'all',
|
|
186
|
+
showSummary: true,
|
|
187
|
+
reviewsCount: 10,
|
|
188
|
+
containerClass: ''
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
160
192
|
const composeSettingsByWidgetType = {
|
|
193
|
+
...JunipProductReviewsUgc,
|
|
161
194
|
...FlyBundlesUpsellsFbt,
|
|
162
195
|
...PreorderNowPreOrderPq,
|
|
163
196
|
...EasyBundleBuilderSkailama,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig } from './appConfig.js';
|
|
1
|
+
import { RechargeSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, SubifySubscriptionsConfig, SelleasyConfig, LoopSubscriptionsConfig, SkioSubscriptionsYcS20Config, ShopifyFormsConfig, ReviewxpoProductReviewsAppConfig, PumperBundlesVolumeDiscountConfig, UnlimitedBundlesDiscountsConfig, KiteFreeGiftDiscountConfig, FastBundleBundlesDiscountsConfig, SimpleBundlesKitsConfig, EasyBundleBuilderSkailamaConfig, PreorderNowPreOrderPqConfig, FlyBundlesUpsellsFbtConfig, JunipProductReviewsUgcConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -16,7 +16,8 @@ const mapShopifyAppMeta = {
|
|
|
16
16
|
...SimpleBundlesKitsConfig,
|
|
17
17
|
...EasyBundleBuilderSkailamaConfig,
|
|
18
18
|
...PreorderNowPreOrderPqConfig,
|
|
19
|
-
...FlyBundlesUpsellsFbtConfig
|
|
19
|
+
...FlyBundlesUpsellsFbtConfig,
|
|
20
|
+
...JunipProductReviewsUgcConfig
|
|
20
21
|
};
|
|
21
22
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
22
23
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6834,7 +6834,9 @@ type SizeSettingGlobal = {
|
|
|
6834
6834
|
shapeLinked?: boolean;
|
|
6835
6835
|
disableShapeLinked?: boolean;
|
|
6836
6836
|
shapeValue?: string;
|
|
6837
|
+
customShapeValue?: boolean | string;
|
|
6837
6838
|
widthHeightLinked?: boolean;
|
|
6839
|
+
hiddenShape?: boolean;
|
|
6838
6840
|
padding?: {
|
|
6839
6841
|
type?: 'small' | 'medium' | 'large' | 'custom';
|
|
6840
6842
|
top?: string;
|
|
@@ -30244,6 +30246,15 @@ declare const filterAttrInStyle: (style?: React.CSSProperties, filterKeys?: stri
|
|
|
30244
30246
|
'--v-mobile'?: csstype.Property.Visibility | undefined;
|
|
30245
30247
|
'--hvr-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
30246
30248
|
'--focus-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
30249
|
+
'--ws'?: csstype.Property.WhiteSpace | undefined;
|
|
30250
|
+
'--hvr-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
30251
|
+
'--focus-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
30252
|
+
'--ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
30253
|
+
'--hvr-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
30254
|
+
'--focus-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
30255
|
+
'--ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
30256
|
+
'--hvr-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
30257
|
+
'--focus-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
30247
30258
|
'--w'?: csstype.Property.Width<string | number> | undefined;
|
|
30248
30259
|
'--hvr-w'?: csstype.Property.Width<string | number> | undefined;
|
|
30249
30260
|
'--focus-w'?: csstype.Property.Width<string | number> | undefined;
|
|
@@ -31757,6 +31768,15 @@ declare const removeAttrInStyle: (style?: React.CSSProperties, filterKeys?: stri
|
|
|
31757
31768
|
'--v-mobile'?: csstype.Property.Visibility | undefined;
|
|
31758
31769
|
'--hvr-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
31759
31770
|
'--focus-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
31771
|
+
'--ws'?: csstype.Property.WhiteSpace | undefined;
|
|
31772
|
+
'--hvr-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
31773
|
+
'--focus-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
31774
|
+
'--ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
31775
|
+
'--hvr-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
31776
|
+
'--focus-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
31777
|
+
'--ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
31778
|
+
'--hvr-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
31779
|
+
'--focus-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
31760
31780
|
'--w'?: csstype.Property.Width<string | number> | undefined;
|
|
31761
31781
|
'--hvr-w'?: csstype.Property.Width<string | number> | undefined;
|
|
31762
31782
|
'--focus-w'?: csstype.Property.Width<string | number> | undefined;
|
|
@@ -33270,6 +33290,15 @@ declare const filterCornerInStyle: (style?: React.CSSProperties) => {
|
|
|
33270
33290
|
'--v-mobile'?: csstype.Property.Visibility | undefined;
|
|
33271
33291
|
'--hvr-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
33272
33292
|
'--focus-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
33293
|
+
'--ws'?: csstype.Property.WhiteSpace | undefined;
|
|
33294
|
+
'--hvr-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
33295
|
+
'--focus-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
33296
|
+
'--ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
33297
|
+
'--hvr-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
33298
|
+
'--focus-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
33299
|
+
'--ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
33300
|
+
'--hvr-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
33301
|
+
'--focus-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
33273
33302
|
'--w'?: csstype.Property.Width<string | number> | undefined;
|
|
33274
33303
|
'--hvr-w'?: csstype.Property.Width<string | number> | undefined;
|
|
33275
33304
|
'--focus-w'?: csstype.Property.Width<string | number> | undefined;
|
|
@@ -34783,6 +34812,15 @@ declare const removePaddingYInStyle: (style?: React.CSSProperties) => {
|
|
|
34783
34812
|
'--v-mobile'?: csstype.Property.Visibility | undefined;
|
|
34784
34813
|
'--hvr-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
34785
34814
|
'--focus-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
34815
|
+
'--ws'?: csstype.Property.WhiteSpace | undefined;
|
|
34816
|
+
'--hvr-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
34817
|
+
'--focus-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
34818
|
+
'--ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
34819
|
+
'--hvr-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
34820
|
+
'--focus-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
34821
|
+
'--ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
34822
|
+
'--hvr-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
34823
|
+
'--focus-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
34786
34824
|
'--w'?: csstype.Property.Width<string | number> | undefined;
|
|
34787
34825
|
'--hvr-w'?: csstype.Property.Width<string | number> | undefined;
|
|
34788
34826
|
'--focus-w'?: csstype.Property.Width<string | number> | undefined;
|
|
@@ -36436,6 +36474,15 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
|
|
|
36436
36474
|
'--v-mobile'?: csstype.Property.Visibility | undefined;
|
|
36437
36475
|
'--hvr-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
36438
36476
|
'--focus-v-mobile'?: csstype.Property.Visibility | undefined;
|
|
36477
|
+
'--ws'?: csstype.Property.WhiteSpace | undefined;
|
|
36478
|
+
'--hvr-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
36479
|
+
'--focus-ws'?: csstype.Property.WhiteSpace | undefined;
|
|
36480
|
+
'--ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
36481
|
+
'--hvr-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
36482
|
+
'--focus-ws-tablet'?: csstype.Property.WhiteSpace | undefined;
|
|
36483
|
+
'--ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
36484
|
+
'--hvr-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
36485
|
+
'--focus-ws-mobile'?: csstype.Property.WhiteSpace | undefined;
|
|
36439
36486
|
'--w'?: csstype.Property.Width<string | number> | undefined;
|
|
36440
36487
|
'--hvr-w'?: csstype.Property.Width<string | number> | undefined;
|
|
36441
36488
|
'--focus-w'?: csstype.Property.Width<string | number> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.50.0-staging.
|
|
3
|
+
"version": "1.50.0-staging.42",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gem-sdk/adapter-shopify": "1.47.0",
|
|
31
|
-
"@gem-sdk/styles": "1.50.0-staging.
|
|
31
|
+
"@gem-sdk/styles": "1.50.0-staging.38",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|