@gem-sdk/core 1.58.0-dev.103 → 1.58.0-dev.109
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/graphql/fragments/published-theme-page.generated.js +4 -0
- package/dist/cjs/helpers/compose-advance-style.js +2 -1
- package/dist/cjs/helpers/third-party/appConfig.js +7 -0
- package/dist/cjs/helpers/third-party/appSetting.js +15 -0
- package/dist/cjs/helpers/third-party/constant.js +2 -1
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +4 -0
- package/dist/esm/helpers/compose-advance-style.js +2 -1
- package/dist/esm/helpers/third-party/appConfig.js +7 -1
- package/dist/esm/helpers/third-party/appSetting.js +15 -0
- package/dist/esm/helpers/third-party/constant.js +3 -2
- package/dist/types/index.d.ts +141 -135
- package/package.json +1 -1
|
@@ -216,6 +216,12 @@ const LooxReviewsConfig = {
|
|
|
216
216
|
appId: '5c3b337f-fd14-4df5-b1d6-80ec13e6e28e'
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
|
+
const SeoantTrustBadgesIconConfig = {
|
|
220
|
+
SeoantTrustBadgesIcon: {
|
|
221
|
+
appName: 'seoant-trust-badges',
|
|
222
|
+
appId: 'f42f2346-5d14-4b41-a8b9-4b6ee352262e'
|
|
223
|
+
}
|
|
224
|
+
};
|
|
219
225
|
|
|
220
226
|
exports.AftershipEmailMarketingsmsConfig = AftershipEmailMarketingsmsConfig;
|
|
221
227
|
exports.AppointmentBookingCowlendarConfig = AppointmentBookingCowlendarConfig;
|
|
@@ -243,6 +249,7 @@ exports.RechargeSubscriptionsConfig = RechargeSubscriptionsConfig;
|
|
|
243
249
|
exports.ReviewxpoProductReviewsAppConfig = ReviewxpoProductReviewsAppConfig;
|
|
244
250
|
exports.SegunoEmailMarketingConfig = SegunoEmailMarketingConfig;
|
|
245
251
|
exports.SelleasyConfig = SelleasyConfig;
|
|
252
|
+
exports.SeoantTrustBadgesIconConfig = SeoantTrustBadgesIconConfig;
|
|
246
253
|
exports.ShopifyFormsConfig = ShopifyFormsConfig;
|
|
247
254
|
exports.SimpleBundlesKitsConfig = SimpleBundlesKitsConfig;
|
|
248
255
|
exports.SkioSubscriptionsYcS20Config = SkioSubscriptionsYcS20Config;
|
|
@@ -123,6 +123,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
123
123
|
embedded_form_id: appSetting?.formId
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
+
case 'SeoantTrustBadgesIcon':
|
|
127
|
+
{
|
|
128
|
+
return {
|
|
129
|
+
...currentSetting,
|
|
130
|
+
badge_id: appSetting?.BadgeId
|
|
131
|
+
};
|
|
132
|
+
}
|
|
126
133
|
default:
|
|
127
134
|
return currentSetting;
|
|
128
135
|
}
|
|
@@ -678,7 +685,15 @@ const LooxReviews = {
|
|
|
678
685
|
}
|
|
679
686
|
}
|
|
680
687
|
};
|
|
688
|
+
const SeoantTrustBadgesIcon = {
|
|
689
|
+
SeoantTrustBadgesIcon: {
|
|
690
|
+
star_rating: {
|
|
691
|
+
badge_id: null
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
};
|
|
681
695
|
const composeSettingsByWidgetType = {
|
|
696
|
+
...SeoantTrustBadgesIcon,
|
|
682
697
|
...SegunoEmailMarketing,
|
|
683
698
|
...AftershipEmailMarketingsms,
|
|
684
699
|
...BestBuyFulfillment,
|
|
@@ -38,7 +38,8 @@ const mapShopifyAppMeta = {
|
|
|
38
38
|
...appConfig.AftershipEmailMarketingsmsConfig,
|
|
39
39
|
...appConfig.SegunoEmailMarketingConfig,
|
|
40
40
|
...appConfig.TrustooConfig,
|
|
41
|
-
...appConfig.LooxReviewsConfig
|
|
41
|
+
...appConfig.LooxReviewsConfig,
|
|
42
|
+
...appConfig.SeoantTrustBadgesIconConfig
|
|
42
43
|
};
|
|
43
44
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
44
45
|
|
|
@@ -214,5 +214,11 @@ const LooxReviewsConfig = {
|
|
|
214
214
|
appId: '5c3b337f-fd14-4df5-b1d6-80ec13e6e28e'
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
+
const SeoantTrustBadgesIconConfig = {
|
|
218
|
+
SeoantTrustBadgesIcon: {
|
|
219
|
+
appName: 'seoant-trust-badges',
|
|
220
|
+
appId: 'f42f2346-5d14-4b41-a8b9-4b6ee352262e'
|
|
221
|
+
}
|
|
222
|
+
};
|
|
217
223
|
|
|
218
|
-
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
224
|
+
export { AftershipEmailMarketingsmsConfig, AppointmentBookingCowlendarConfig, BestBuyFulfillmentConfig, BoldSubscriptionsConfig, BonLoyaltyRewardsReferralsConfig, EasyBundleBuilderSkailamaConfig, FastBundleBundlesDiscountsConfig, FlyBundlesUpsellsFbtConfig, GloboProductOptionsVariantConfig, GrowaveConfig, InstasellShoppableInstagramConfig, JunipProductReviewsUgcConfig, KachingBundlesConfig, KiteFreeGiftDiscountConfig, LoloyalLoyaltyReferralsConfig, LoopSubscriptionsConfig, LooxReviewsConfig, PowerfulContactFormBuilderConfig, PreorderNowPreOrderPqConfig, PreorderNowWodPresaleConfig, ProductOptionsCustomizerConfig, PumperBundlesVolumeDiscountConfig, RechargeSubscriptionsConfig, ReviewxpoProductReviewsAppConfig, SegunoEmailMarketingConfig, SelleasyConfig, SeoantTrustBadgesIconConfig, ShopifyFormsConfig, SimpleBundlesKitsConfig, SkioSubscriptionsYcS20Config, SproutPlantTreesGrowSalesConfig, SubifySubscriptionsConfig, TrustooConfig, UnlimitedBundlesDiscountsConfig, WhatmoreShoppableVideosreelConfig, WishlistKingConfig, YotpoReviewsV3UgcConfig };
|
|
@@ -121,6 +121,13 @@ const overrideSettings = (tag, currentSetting, appSetting)=>{
|
|
|
121
121
|
embedded_form_id: appSetting?.formId
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
+
case 'SeoantTrustBadgesIcon':
|
|
125
|
+
{
|
|
126
|
+
return {
|
|
127
|
+
...currentSetting,
|
|
128
|
+
badge_id: appSetting?.BadgeId
|
|
129
|
+
};
|
|
130
|
+
}
|
|
124
131
|
default:
|
|
125
132
|
return currentSetting;
|
|
126
133
|
}
|
|
@@ -676,7 +683,15 @@ const LooxReviews = {
|
|
|
676
683
|
}
|
|
677
684
|
}
|
|
678
685
|
};
|
|
686
|
+
const SeoantTrustBadgesIcon = {
|
|
687
|
+
SeoantTrustBadgesIcon: {
|
|
688
|
+
star_rating: {
|
|
689
|
+
badge_id: null
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
};
|
|
679
693
|
const composeSettingsByWidgetType = {
|
|
694
|
+
...SeoantTrustBadgesIcon,
|
|
680
695
|
...SegunoEmailMarketing,
|
|
681
696
|
...AftershipEmailMarketingsms,
|
|
682
697
|
...BestBuyFulfillment,
|
|
@@ -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 } 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 } from './appConfig.js';
|
|
2
2
|
|
|
3
3
|
const mapShopifyAppMeta = {
|
|
4
4
|
...RechargeSubscriptionsConfig,
|
|
@@ -36,7 +36,8 @@ const mapShopifyAppMeta = {
|
|
|
36
36
|
...AftershipEmailMarketingsmsConfig,
|
|
37
37
|
...SegunoEmailMarketingConfig,
|
|
38
38
|
...TrustooConfig,
|
|
39
|
-
...LooxReviewsConfig
|
|
39
|
+
...LooxReviewsConfig,
|
|
40
|
+
...SeoantTrustBadgesIconConfig
|
|
40
41
|
};
|
|
41
42
|
const THIRD_PARTY_APP_BLOCK_ID_PREFIX = 'gp_app';
|
|
42
43
|
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7788,11 +7788,150 @@ type TypographyControlType<T> = SharedControlType<T> & {
|
|
|
7788
7788
|
popup?: boolean;
|
|
7789
7789
|
};
|
|
7790
7790
|
|
|
7791
|
+
type SettingStateType = 'normal' | 'hover' | 'focus' | 'active' | 'price' | 'compareAtPrice';
|
|
7792
|
+
type LangKey = 'en' | 'vi';
|
|
7793
|
+
type LabelWithLang = {
|
|
7794
|
+
[P in keyof Record<LangKey, ''>]?: string;
|
|
7795
|
+
};
|
|
7796
|
+
type SettingMediaType = 'image' | 'youtubeVideoID';
|
|
7797
|
+
type SettingUIHelpType = {
|
|
7798
|
+
content: string;
|
|
7799
|
+
button?: {
|
|
7800
|
+
label: string;
|
|
7801
|
+
link: string;
|
|
7802
|
+
};
|
|
7803
|
+
media?: {
|
|
7804
|
+
value: string;
|
|
7805
|
+
type: SettingMediaType;
|
|
7806
|
+
};
|
|
7807
|
+
};
|
|
7808
|
+
type LinkWithSetting = {
|
|
7809
|
+
name: string;
|
|
7810
|
+
state?: string;
|
|
7811
|
+
field?: string;
|
|
7812
|
+
getLinkValue?: boolean;
|
|
7813
|
+
};
|
|
7814
|
+
type ControlConfig = ControlProp<any> & {
|
|
7815
|
+
linkWithSetting?: LinkWithSetting;
|
|
7816
|
+
};
|
|
7817
|
+
type Plan = 'trial' | 'build' | 'starter' | 'optimize' | 'advanced' | 'trial2022' | 'enterprise' | 'development' | 'professional';
|
|
7818
|
+
type LabelVariant = 'primary' | 'secondary' | 'bold';
|
|
7819
|
+
type SettingUIControl = {
|
|
7820
|
+
id?: string;
|
|
7821
|
+
controlConfig?: ControlConfig;
|
|
7822
|
+
type?: 'control' | 'combo' | 'tab' | 'toggleGroup';
|
|
7823
|
+
layout?: 'vertical' | 'horizontal';
|
|
7824
|
+
toggleGroupId?: string;
|
|
7825
|
+
label?: LabelWithLang;
|
|
7826
|
+
conditionDisplay?: string;
|
|
7827
|
+
conditionEnable?: string;
|
|
7828
|
+
options?: {
|
|
7829
|
+
fullWidth?: boolean;
|
|
7830
|
+
onlyShowInTags?: string[];
|
|
7831
|
+
target?: 'tab';
|
|
7832
|
+
disableMessage?: string;
|
|
7833
|
+
nearestSupportedPlan?: Plan;
|
|
7834
|
+
lockedOnPlans?: Plan[];
|
|
7835
|
+
labelVariant?: LabelVariant;
|
|
7836
|
+
labelInsideControl?: boolean;
|
|
7837
|
+
hideLabel?: boolean;
|
|
7838
|
+
updateFields?: {
|
|
7839
|
+
field: string;
|
|
7840
|
+
settingId: string;
|
|
7841
|
+
state?: SettingStateType;
|
|
7842
|
+
}[];
|
|
7843
|
+
};
|
|
7844
|
+
setting?: {
|
|
7845
|
+
id: string;
|
|
7846
|
+
state?: SettingStateType;
|
|
7847
|
+
};
|
|
7848
|
+
searchKeyword?: string;
|
|
7849
|
+
controlChangeTrigger?: ControlTrigger;
|
|
7850
|
+
tabs?: SettingUITab[];
|
|
7851
|
+
info?: LabelWithLang;
|
|
7852
|
+
compoDefaultValue?: any | Record<NameDevices$1, any>;
|
|
7853
|
+
} & SettingUICompo;
|
|
7854
|
+
type ControlTriggerAction$1 = {
|
|
7855
|
+
controlId: string;
|
|
7856
|
+
newValue?: any;
|
|
7857
|
+
valueFromField?: string;
|
|
7858
|
+
controlType: string;
|
|
7859
|
+
groupType: string;
|
|
7860
|
+
valueIfNull?: any;
|
|
7861
|
+
removeDevice?: boolean;
|
|
7862
|
+
state?: SettingStateType;
|
|
7863
|
+
};
|
|
7864
|
+
type ControlTriggerSetting = {
|
|
7865
|
+
source?: string[];
|
|
7866
|
+
condition?: string;
|
|
7867
|
+
action: ControlTriggerAction$1;
|
|
7868
|
+
};
|
|
7869
|
+
type ControlTrigger = {
|
|
7870
|
+
settings?: ControlTriggerSetting[];
|
|
7871
|
+
options?: {
|
|
7872
|
+
noRecordHistory?: boolean;
|
|
7873
|
+
};
|
|
7874
|
+
};
|
|
7875
|
+
type SettingUICompo = {
|
|
7876
|
+
controls?: SettingUIControl[];
|
|
7877
|
+
iconName?: string;
|
|
7878
|
+
getValueFromSettingID?: string;
|
|
7879
|
+
defaultValueWhenClear?: any;
|
|
7880
|
+
fixedValue?: string;
|
|
7881
|
+
placeholder?: string;
|
|
7882
|
+
help?: SettingUIHelpType;
|
|
7883
|
+
popoverLabel?: LabelWithLang;
|
|
7884
|
+
comboType?: 'color' | 'image';
|
|
7885
|
+
isHideClear?: boolean;
|
|
7886
|
+
};
|
|
7887
|
+
type SettingUIMoreSetting = {
|
|
7888
|
+
label?: LabelWithLang;
|
|
7889
|
+
labelAction?: LabelWithLang;
|
|
7890
|
+
controls?: SettingUIControl[];
|
|
7891
|
+
help?: SettingUIHelpType;
|
|
7892
|
+
type?: SettingUIMoreSettingType;
|
|
7893
|
+
};
|
|
7894
|
+
type SettingUIMoreSettingType = 'button' | 'collapse' | 'icon';
|
|
7895
|
+
type SettingUITab = {
|
|
7896
|
+
label?: LabelWithLang;
|
|
7897
|
+
controls?: SettingUIControl[];
|
|
7898
|
+
hide?: boolean;
|
|
7899
|
+
conditionDisplay?: string;
|
|
7900
|
+
};
|
|
7901
|
+
type SettingUIToggleGroup = {
|
|
7902
|
+
label?: LabelWithLang;
|
|
7903
|
+
id?: string;
|
|
7904
|
+
controls?: SettingUIControl[];
|
|
7905
|
+
};
|
|
7906
|
+
type SettingUIToggleSettings = {
|
|
7907
|
+
controls?: SettingUIControl[];
|
|
7908
|
+
isActiveDefault?: boolean;
|
|
7909
|
+
} & SettingUIControl & SettingUIToggleGroup;
|
|
7910
|
+
type SettingUIGroup = {
|
|
7911
|
+
label?: LabelWithLang;
|
|
7912
|
+
message?: string;
|
|
7913
|
+
disableToggle?: boolean;
|
|
7914
|
+
conditionDisplay?: string;
|
|
7915
|
+
conditionEnable?: string;
|
|
7916
|
+
controls?: SettingUIControl[];
|
|
7917
|
+
moreSettings?: SettingUIMoreSetting;
|
|
7918
|
+
toggleSettings?: SettingUIToggleSettings[];
|
|
7919
|
+
states?: SettingUITab[];
|
|
7920
|
+
help?: SettingUIHelpType;
|
|
7921
|
+
options?: {
|
|
7922
|
+
disableMessage?: string;
|
|
7923
|
+
};
|
|
7924
|
+
};
|
|
7925
|
+
|
|
7791
7926
|
type PickLinkControlType<T> = SharedControlType<T> & {
|
|
7792
7927
|
type: 'pick-link';
|
|
7793
7928
|
pickLinkLabel?: string;
|
|
7794
7929
|
isHiddenInsertLink?: boolean;
|
|
7795
7930
|
isHiddenOpenLinkSelect?: boolean;
|
|
7931
|
+
hiddenOptions?: {
|
|
7932
|
+
[key: string]: boolean;
|
|
7933
|
+
};
|
|
7934
|
+
customLabel?: LabelWithLang;
|
|
7796
7935
|
};
|
|
7797
7936
|
|
|
7798
7937
|
type BehaviorStateControlType<T> = {
|
|
@@ -8516,141 +8655,6 @@ type ProductHandleType<T> = SharedControlType<T> & {
|
|
|
8516
8655
|
type: 'product-handle';
|
|
8517
8656
|
};
|
|
8518
8657
|
|
|
8519
|
-
type SettingStateType = 'normal' | 'hover' | 'focus' | 'active' | 'price' | 'compareAtPrice';
|
|
8520
|
-
type LangKey = 'en' | 'vi';
|
|
8521
|
-
type LabelWithLang = {
|
|
8522
|
-
[P in keyof Record<LangKey, ''>]?: string;
|
|
8523
|
-
};
|
|
8524
|
-
type SettingMediaType = 'image' | 'youtubeVideoID';
|
|
8525
|
-
type SettingUIHelpType = {
|
|
8526
|
-
content: string;
|
|
8527
|
-
button?: {
|
|
8528
|
-
label: string;
|
|
8529
|
-
link: string;
|
|
8530
|
-
};
|
|
8531
|
-
media?: {
|
|
8532
|
-
value: string;
|
|
8533
|
-
type: SettingMediaType;
|
|
8534
|
-
};
|
|
8535
|
-
};
|
|
8536
|
-
type LinkWithSetting = {
|
|
8537
|
-
name: string;
|
|
8538
|
-
state?: string;
|
|
8539
|
-
field?: string;
|
|
8540
|
-
getLinkValue?: boolean;
|
|
8541
|
-
};
|
|
8542
|
-
type ControlConfig = ControlProp<any> & {
|
|
8543
|
-
linkWithSetting?: LinkWithSetting;
|
|
8544
|
-
};
|
|
8545
|
-
type Plan = 'trial' | 'build' | 'starter' | 'optimize' | 'advanced' | 'trial2022' | 'enterprise' | 'development' | 'professional';
|
|
8546
|
-
type LabelVariant = 'primary' | 'secondary' | 'bold';
|
|
8547
|
-
type SettingUIControl = {
|
|
8548
|
-
id?: string;
|
|
8549
|
-
controlConfig?: ControlConfig;
|
|
8550
|
-
type?: 'control' | 'combo' | 'tab' | 'toggleGroup';
|
|
8551
|
-
layout?: 'vertical' | 'horizontal';
|
|
8552
|
-
toggleGroupId?: string;
|
|
8553
|
-
label?: LabelWithLang;
|
|
8554
|
-
conditionDisplay?: string;
|
|
8555
|
-
conditionEnable?: string;
|
|
8556
|
-
options?: {
|
|
8557
|
-
fullWidth?: boolean;
|
|
8558
|
-
onlyShowInTags?: string[];
|
|
8559
|
-
target?: 'tab';
|
|
8560
|
-
disableMessage?: string;
|
|
8561
|
-
nearestSupportedPlan?: Plan;
|
|
8562
|
-
lockedOnPlans?: Plan[];
|
|
8563
|
-
labelVariant?: LabelVariant;
|
|
8564
|
-
labelInsideControl?: boolean;
|
|
8565
|
-
hideLabel?: boolean;
|
|
8566
|
-
updateFields?: {
|
|
8567
|
-
field: string;
|
|
8568
|
-
settingId: string;
|
|
8569
|
-
state?: SettingStateType;
|
|
8570
|
-
}[];
|
|
8571
|
-
};
|
|
8572
|
-
setting?: {
|
|
8573
|
-
id: string;
|
|
8574
|
-
state?: SettingStateType;
|
|
8575
|
-
};
|
|
8576
|
-
searchKeyword?: string;
|
|
8577
|
-
controlChangeTrigger?: ControlTrigger;
|
|
8578
|
-
tabs?: SettingUITab[];
|
|
8579
|
-
info?: LabelWithLang;
|
|
8580
|
-
compoDefaultValue?: any | Record<NameDevices$1, any>;
|
|
8581
|
-
} & SettingUICompo;
|
|
8582
|
-
type ControlTriggerAction$1 = {
|
|
8583
|
-
controlId: string;
|
|
8584
|
-
newValue?: any;
|
|
8585
|
-
valueFromField?: string;
|
|
8586
|
-
controlType: string;
|
|
8587
|
-
groupType: string;
|
|
8588
|
-
valueIfNull?: any;
|
|
8589
|
-
removeDevice?: boolean;
|
|
8590
|
-
state?: SettingStateType;
|
|
8591
|
-
};
|
|
8592
|
-
type ControlTriggerSetting = {
|
|
8593
|
-
source?: string[];
|
|
8594
|
-
condition?: string;
|
|
8595
|
-
action: ControlTriggerAction$1;
|
|
8596
|
-
};
|
|
8597
|
-
type ControlTrigger = {
|
|
8598
|
-
settings?: ControlTriggerSetting[];
|
|
8599
|
-
options?: {
|
|
8600
|
-
noRecordHistory?: boolean;
|
|
8601
|
-
};
|
|
8602
|
-
};
|
|
8603
|
-
type SettingUICompo = {
|
|
8604
|
-
controls?: SettingUIControl[];
|
|
8605
|
-
iconName?: string;
|
|
8606
|
-
getValueFromSettingID?: string;
|
|
8607
|
-
defaultValueWhenClear?: any;
|
|
8608
|
-
fixedValue?: string;
|
|
8609
|
-
placeholder?: string;
|
|
8610
|
-
help?: SettingUIHelpType;
|
|
8611
|
-
popoverLabel?: LabelWithLang;
|
|
8612
|
-
comboType?: 'color' | 'image';
|
|
8613
|
-
isHideClear?: boolean;
|
|
8614
|
-
};
|
|
8615
|
-
type SettingUIMoreSetting = {
|
|
8616
|
-
label?: LabelWithLang;
|
|
8617
|
-
labelAction?: LabelWithLang;
|
|
8618
|
-
controls?: SettingUIControl[];
|
|
8619
|
-
help?: SettingUIHelpType;
|
|
8620
|
-
type?: SettingUIMoreSettingType;
|
|
8621
|
-
};
|
|
8622
|
-
type SettingUIMoreSettingType = 'button' | 'collapse' | 'icon';
|
|
8623
|
-
type SettingUITab = {
|
|
8624
|
-
label?: LabelWithLang;
|
|
8625
|
-
controls?: SettingUIControl[];
|
|
8626
|
-
hide?: boolean;
|
|
8627
|
-
conditionDisplay?: string;
|
|
8628
|
-
};
|
|
8629
|
-
type SettingUIToggleGroup = {
|
|
8630
|
-
label?: LabelWithLang;
|
|
8631
|
-
id?: string;
|
|
8632
|
-
controls?: SettingUIControl[];
|
|
8633
|
-
};
|
|
8634
|
-
type SettingUIToggleSettings = {
|
|
8635
|
-
controls?: SettingUIControl[];
|
|
8636
|
-
isActiveDefault?: boolean;
|
|
8637
|
-
} & SettingUIControl & SettingUIToggleGroup;
|
|
8638
|
-
type SettingUIGroup = {
|
|
8639
|
-
label?: LabelWithLang;
|
|
8640
|
-
message?: string;
|
|
8641
|
-
disableToggle?: boolean;
|
|
8642
|
-
conditionDisplay?: string;
|
|
8643
|
-
conditionEnable?: string;
|
|
8644
|
-
controls?: SettingUIControl[];
|
|
8645
|
-
moreSettings?: SettingUIMoreSetting;
|
|
8646
|
-
toggleSettings?: SettingUIToggleSettings[];
|
|
8647
|
-
states?: SettingUITab[];
|
|
8648
|
-
help?: SettingUIHelpType;
|
|
8649
|
-
options?: {
|
|
8650
|
-
disableMessage?: string;
|
|
8651
|
-
};
|
|
8652
|
-
};
|
|
8653
|
-
|
|
8654
8658
|
type ColorPickerV2ControlType<T> = SharedControlType<T> & {
|
|
8655
8659
|
type: 'color-picker-v2';
|
|
8656
8660
|
};
|
|
@@ -32300,6 +32304,7 @@ type PublishedThemePagesQueryResponse = {
|
|
|
32300
32304
|
themePageCustomCode?: Maybe$1<Pick<CustomCode$1, 'body' | 'header'>>;
|
|
32301
32305
|
themePageCustomFonts?: Maybe$1<Array<Maybe$1<CustomFont$1>>>;
|
|
32302
32306
|
interaction?: Maybe$1<Pick<PublishedPageInteraction$1, 'id' | 'value'>>;
|
|
32307
|
+
metafiels?: Maybe$1<Array<Maybe$1<Pick<PublishedThemePageMeta$1, 'id' | 'key' | 'value'>>>>;
|
|
32303
32308
|
}>>>;
|
|
32304
32309
|
};
|
|
32305
32310
|
declare const PublishedThemePagesDocument: string;
|
|
@@ -42324,6 +42329,7 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name'
|
|
|
42324
42329
|
themePageAnalytic?: Maybe$1<Pick<Analytic$1, 'fbPixelID' | 'gaTrackingID' | 'tiktokPixelID'>>;
|
|
42325
42330
|
themePageCustomCode?: Maybe$1<Pick<CustomCode$1, 'body' | 'header'>>;
|
|
42326
42331
|
interaction?: Maybe$1<Pick<PublishedPageInteraction$1, 'id' | 'value'>>;
|
|
42332
|
+
metafields?: Maybe$1<Array<Maybe$1<Pick<PublishedThemePageMeta$1, 'id' | 'key' | 'value'>>>>;
|
|
42327
42333
|
};
|
|
42328
42334
|
|
|
42329
42335
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|