@gem-sdk/core 1.58.0-dev.133 → 1.58.0-dev.134
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/helpers/compose-advance-style.js +5 -1
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +6 -0
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/cjs/helpers/typography.js +3 -2
- package/dist/esm/helpers/compose-advance-style.js +5 -1
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +6 -0
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/dist/esm/helpers/typography.js +3 -2
- package/dist/types/index.d.ts +2 -1
- package/package.json +3 -3
|
@@ -132,7 +132,11 @@ function composeAdvanceStyle(data, tag, pageType) {
|
|
|
132
132
|
'Product',
|
|
133
133
|
'ProductSku',
|
|
134
134
|
'StockCounter',
|
|
135
|
-
'Sticky'
|
|
135
|
+
'Sticky',
|
|
136
|
+
'ProductBadge',
|
|
137
|
+
'ProductViewMore',
|
|
138
|
+
'ProductButton',
|
|
139
|
+
'DynamicCheckout'
|
|
136
140
|
];
|
|
137
141
|
const boostElements = [
|
|
138
142
|
'Icon',
|
|
@@ -240,6 +240,12 @@ const TrustreviewsProductReviewsConfig = {
|
|
|
240
240
|
appId: '56d0fe1b-e701-4cff-8f84-466a26e09adb'
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
+
const HulkProductOptionsConfig = {
|
|
244
|
+
HulkProductOptions: {
|
|
245
|
+
appName: 'hulk-product-options',
|
|
246
|
+
appId: '380168ef-9475-4244-a291-f66b189208b5'
|
|
247
|
+
}
|
|
248
|
+
};
|
|
243
249
|
|
|
244
250
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
245
251
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
@@ -251,6 +257,7 @@ exports.FastBundleBundlesDiscountsConfig = FastBundleBundlesDiscountsConfig;
|
|
|
251
257
|
exports.FlyBundlesUpsellsFbtConfig = FlyBundlesUpsellsFbtConfig;
|
|
252
258
|
exports.GloboProductOptionsVariantConfig = GloboProductOptionsVariantConfig;
|
|
253
259
|
exports.GrowaveConfig = GrowaveConfig;
|
|
260
|
+
exports.HulkProductOptionsConfig = HulkProductOptionsConfig;
|
|
254
261
|
exports.InstasellShoppableInstagramConfig = InstasellShoppableInstagramConfig;
|
|
255
262
|
exports.JunipProductReviewsUgcConfig = JunipProductReviewsUgcConfig;
|
|
256
263
|
exports.KachingBundlesConfig = KachingBundlesConfig;
|
|
@@ -771,7 +771,13 @@ const TrustreviewsProductReviews = {
|
|
|
771
771
|
medals: null
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
|
+
const HulkProductOptions = {
|
|
775
|
+
HulkProductOptions: {
|
|
776
|
+
option_block: null
|
|
777
|
+
}
|
|
778
|
+
};
|
|
774
779
|
const composeSettingsByWidgetType = {
|
|
780
|
+
...HulkProductOptions,
|
|
775
781
|
...MyappgurusProductReviews,
|
|
776
782
|
...TrustreviewsProductReviews,
|
|
777
783
|
...PowrContactFormBuilder,
|
|
@@ -42,7 +42,8 @@ const mapShopifyAppMeta = {
|
|
|
42
42
|
...appConfig.SeoantTrustBadgesIconConfig,
|
|
43
43
|
...appConfig.PowrContactFormBuilderConfig,
|
|
44
44
|
...appConfig.MyappgurusProductReviewsConfig,
|
|
45
|
-
...appConfig.TrustreviewsProductReviewsConfig
|
|
45
|
+
...appConfig.TrustreviewsProductReviewsConfig,
|
|
46
|
+
...appConfig.HulkProductOptionsConfig
|
|
46
47
|
};
|
|
47
48
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
48
49
|
|
|
@@ -41,10 +41,11 @@ const composeTypographyV2Css = (typography, isImportant)=>{
|
|
|
41
41
|
${transform ? `text-transform: ${transform} ${composeImportant}` : ''};
|
|
42
42
|
`;
|
|
43
43
|
};
|
|
44
|
-
const composeTextHoverColorCss = (device, colorHoverConfig)=>{
|
|
44
|
+
const composeTextHoverColorCss = (device, colorHoverConfig, isImportant)=>{
|
|
45
45
|
if (colorHoverConfig) {
|
|
46
|
+
const composeImportant = isImportant ? '!important' : '';
|
|
46
47
|
const color = colorHoverConfig[device]?.hover;
|
|
47
|
-
return `${color ? `color: ${color}` : ''}`;
|
|
48
|
+
return `${color ? `color: ${color} ${composeImportant}` : ''}`;
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
function getCustomCSSByDevice(typography, device) {
|
|
@@ -130,7 +130,11 @@ function composeAdvanceStyle(data, tag, pageType) {
|
|
|
130
130
|
'Product',
|
|
131
131
|
'ProductSku',
|
|
132
132
|
'StockCounter',
|
|
133
|
-
'Sticky'
|
|
133
|
+
'Sticky',
|
|
134
|
+
'ProductBadge',
|
|
135
|
+
'ProductViewMore',
|
|
136
|
+
'ProductButton',
|
|
137
|
+
'DynamicCheckout'
|
|
134
138
|
];
|
|
135
139
|
const boostElements = [
|
|
136
140
|
'Icon',
|
|
@@ -238,5 +238,11 @@ const TrustreviewsProductReviewsConfig = {
|
|
|
238
238
|
appId: '56d0fe1b-e701-4cff-8f84-466a26e09adb'
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
|
+
const HulkProductOptionsConfig = {
|
|
242
|
+
HulkProductOptions: {
|
|
243
|
+
appName: 'hulk-product-options',
|
|
244
|
+
appId: '380168ef-9475-4244-a291-f66b189208b5'
|
|
245
|
+
}
|
|
246
|
+
};
|
|
241
247
|
|
|
242
|
-
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, PowerfulContactFormBuilderConfig, PowrContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, TrustreviewsProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
248
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, HulkProductOptionsConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, MyappgurusProductReviewsConfig, PowerfulContactFormBuilderConfig, PowrContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, TrustreviewsProductReviewsConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -769,7 +769,13 @@ const TrustreviewsProductReviews = {
|
|
|
769
769
|
medals: null
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
|
+
const HulkProductOptions = {
|
|
773
|
+
HulkProductOptions: {
|
|
774
|
+
option_block: null
|
|
775
|
+
}
|
|
776
|
+
};
|
|
772
777
|
const composeSettingsByWidgetType = {
|
|
778
|
+
...HulkProductOptions,
|
|
773
779
|
...MyappgurusProductReviews,
|
|
774
780
|
...TrustreviewsProductReviews,
|
|
775
781
|
...PowrContactFormBuilder,
|
|
@@ -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, PowrContactFormBuilderConfig, MyappgurusProductReviewsConfig, TrustreviewsProductReviewsConfig } 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, PowrContactFormBuilderConfig, MyappgurusProductReviewsConfig, TrustreviewsProductReviewsConfig, HulkProductOptionsConfig } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -40,7 +40,8 @@ const mapShopifyAppMeta = {
|
|
|
40
40
|
...SeoantTrustBadgesIconConfig,
|
|
41
41
|
...PowrContactFormBuilderConfig,
|
|
42
42
|
...MyappgurusProductReviewsConfig,
|
|
43
|
-
...TrustreviewsProductReviewsConfig
|
|
43
|
+
...TrustreviewsProductReviewsConfig,
|
|
44
|
+
...HulkProductOptionsConfig
|
|
44
45
|
};
|
|
45
46
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
46
47
|
|
|
@@ -39,10 +39,11 @@ const composeTypographyV2Css = (typography, isImportant)=>{
|
|
|
39
39
|
${transform ? `text-transform: ${transform} ${composeImportant}` : ''};
|
|
40
40
|
`;
|
|
41
41
|
};
|
|
42
|
-
const composeTextHoverColorCss = (device, colorHoverConfig)=>{
|
|
42
|
+
const composeTextHoverColorCss = (device, colorHoverConfig, isImportant)=>{
|
|
43
43
|
if (colorHoverConfig) {
|
|
44
|
+
const composeImportant = isImportant ? '!important' : '';
|
|
44
45
|
const color = colorHoverConfig[device]?.hover;
|
|
45
|
-
return `${color ? `color: ${color}` : ''}`;
|
|
46
|
+
return `${color ? `color: ${color} ${composeImportant}` : ''}`;
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
function getCustomCSSByDevice(typography, device) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8657,6 +8657,7 @@ type ProductHandleType<T> = SharedControlType<T> & {
|
|
|
8657
8657
|
|
|
8658
8658
|
type ColorPickerV2ControlType<T> = SharedControlType<T> & {
|
|
8659
8659
|
type: 'color-picker-v2';
|
|
8660
|
+
enableGradient?: boolean;
|
|
8660
8661
|
};
|
|
8661
8662
|
|
|
8662
8663
|
type BorderV2ControlType<T> = SharedControlType<T> & {
|
|
@@ -40482,7 +40483,7 @@ type TypographyClass = `gp-g-${TypographyType}`;
|
|
|
40482
40483
|
declare const genTypoClass: (name: TypographyType) => TypographyClass;
|
|
40483
40484
|
declare const composeTypographyCss: (typography: TypographySetting | undefined) => string;
|
|
40484
40485
|
declare const composeTypographyV2Css: (typography: TypographySettingV2 | undefined, isImportant?: boolean) => string;
|
|
40485
|
-
declare const composeTextHoverColorCss: (device: NameDevices$1, colorHoverConfig?: ObjectDevices<StateProp<ColorValueType
|
|
40486
|
+
declare const composeTextHoverColorCss: (device: NameDevices$1, colorHoverConfig?: ObjectDevices<StateProp<ColorValueType>>, isImportant?: boolean) => string | undefined;
|
|
40486
40487
|
declare const composeTypography: (typography?: ObjectDevices<TypographyProps>) => React.CSSProperties;
|
|
40487
40488
|
declare const composeTypographyV2: (value?: TypographyV2Props, attrs?: TypographyV2Attrs) => React.CSSProperties;
|
|
40488
40489
|
declare const composeFontFamilyTypographyV2: (value?: TypographyV2Props & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.58.0-dev.
|
|
3
|
+
"version": "1.58.0-dev.134",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"type-check": "yarn tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@gem-sdk/adapter-shopify": "1.58.0-dev.
|
|
31
|
-
"@gem-sdk/styles": "1.58.0-dev.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.58.0-dev.134",
|
|
31
|
+
"@gem-sdk/styles": "1.58.0-dev.134",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|