@gem-sdk/core 2.0.0-dev.276 → 2.0.0-dev.292
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/types/index.d.ts +101 -24
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -7434,7 +7434,7 @@ type BaseProps<Setting = unknown, Style = unknown, Advanced = AdvancedType> = {
|
|
|
7434
7434
|
uidTranslate?: string;
|
|
7435
7435
|
uidInteraction?: string;
|
|
7436
7436
|
};
|
|
7437
|
-
customAttrs?:
|
|
7437
|
+
customAttrs?: Record<string, string | undefined>;
|
|
7438
7438
|
styles?: Style;
|
|
7439
7439
|
setting?: Setting;
|
|
7440
7440
|
advanced?: Advanced;
|
|
@@ -7515,7 +7515,7 @@ type HyperlinkInfo = {
|
|
|
7515
7515
|
link?: string;
|
|
7516
7516
|
modal?: CommonModalApp;
|
|
7517
7517
|
};
|
|
7518
|
-
type Mapped$
|
|
7518
|
+
type Mapped$a<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
7519
7519
|
id: K;
|
|
7520
7520
|
label?: string;
|
|
7521
7521
|
info?: string;
|
|
@@ -7592,17 +7592,17 @@ type Mapped$9<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7592
7592
|
disableGetDefault?: boolean;
|
|
7593
7593
|
};
|
|
7594
7594
|
type SharedControlType<T> = {
|
|
7595
|
-
[K in keyof T]-?: Mapped$
|
|
7595
|
+
[K in keyof T]-?: Mapped$a<K, T[K]>;
|
|
7596
7596
|
}[keyof T];
|
|
7597
7597
|
|
|
7598
|
-
type Option$
|
|
7598
|
+
type Option$8 = {
|
|
7599
7599
|
value: number | string;
|
|
7600
7600
|
label?: string | number;
|
|
7601
7601
|
type?: string;
|
|
7602
7602
|
icon?: string;
|
|
7603
7603
|
isTextIcon?: boolean;
|
|
7604
7604
|
};
|
|
7605
|
-
type Mapped$
|
|
7605
|
+
type Mapped$9<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
7606
7606
|
id: K;
|
|
7607
7607
|
label: string;
|
|
7608
7608
|
info?: string;
|
|
@@ -7620,7 +7620,7 @@ type Mapped$8<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7620
7620
|
};
|
|
7621
7621
|
placeholder?: string;
|
|
7622
7622
|
type: 'layout-custom-segment';
|
|
7623
|
-
options: Option$
|
|
7623
|
+
options: Option$8[];
|
|
7624
7624
|
devices?: ResponsiveConfig<U>;
|
|
7625
7625
|
iconViewBox?: string;
|
|
7626
7626
|
enableItemBackground?: boolean;
|
|
@@ -7645,14 +7645,14 @@ type Mapped$8<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7645
7645
|
};
|
|
7646
7646
|
placeholder?: string;
|
|
7647
7647
|
type: 'layout-custom-segment';
|
|
7648
|
-
options?: Option$
|
|
7648
|
+
options?: Option$8[];
|
|
7649
7649
|
iconViewBox?: string;
|
|
7650
7650
|
enableItemBackground?: boolean;
|
|
7651
7651
|
enableTooltip?: boolean;
|
|
7652
7652
|
default?: T;
|
|
7653
7653
|
};
|
|
7654
7654
|
type LayoutCustomSegmentControlType<T> = {
|
|
7655
|
-
[K in keyof T]-?: Mapped$
|
|
7655
|
+
[K in keyof T]-?: Mapped$9<K, T[K]>;
|
|
7656
7656
|
}[keyof T];
|
|
7657
7657
|
|
|
7658
7658
|
type AngleControlType<T> = SharedControlType<T> & {
|
|
@@ -7664,12 +7664,12 @@ type AngleControlType<T> = SharedControlType<T> & {
|
|
|
7664
7664
|
readonly?: boolean;
|
|
7665
7665
|
};
|
|
7666
7666
|
|
|
7667
|
-
type Option$
|
|
7667
|
+
type Option$7<T> = {
|
|
7668
7668
|
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
7669
7669
|
text: string | number;
|
|
7670
7670
|
desc?: any;
|
|
7671
7671
|
};
|
|
7672
|
-
type Mapped$
|
|
7672
|
+
type Mapped$8<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
7673
7673
|
id: K;
|
|
7674
7674
|
label: string;
|
|
7675
7675
|
hideOnMode?: {
|
|
@@ -7685,7 +7685,7 @@ type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7685
7685
|
active?: boolean;
|
|
7686
7686
|
};
|
|
7687
7687
|
type: 'checkbox';
|
|
7688
|
-
options: Option$
|
|
7688
|
+
options: Option$7<T>[];
|
|
7689
7689
|
devices?: ResponsiveConfig<U>;
|
|
7690
7690
|
} : {
|
|
7691
7691
|
id: K;
|
|
@@ -7703,11 +7703,11 @@ type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7703
7703
|
active?: boolean;
|
|
7704
7704
|
};
|
|
7705
7705
|
type: 'checkbox';
|
|
7706
|
-
options: Option$
|
|
7706
|
+
options: Option$7<T>[];
|
|
7707
7707
|
default?: T;
|
|
7708
7708
|
};
|
|
7709
7709
|
type CheckboxControlType<T> = {
|
|
7710
|
-
[K in keyof T]-?: Mapped$
|
|
7710
|
+
[K in keyof T]-?: Mapped$8<K, T[K]>;
|
|
7711
7711
|
}[keyof T];
|
|
7712
7712
|
|
|
7713
7713
|
type ChildrensControlType = {
|
|
@@ -7769,7 +7769,7 @@ type ImageControlType<T> = SharedControlType<T> & {
|
|
|
7769
7769
|
type InputControlType<T> = SharedControlType<T> & {
|
|
7770
7770
|
type: 'input';
|
|
7771
7771
|
placeholder?: string;
|
|
7772
|
-
|
|
7772
|
+
fallbackValue?: string;
|
|
7773
7773
|
clearButton?: boolean;
|
|
7774
7774
|
datalist?: {
|
|
7775
7775
|
value: any;
|
|
@@ -7821,6 +7821,10 @@ type InputUnitControlType<T> = SharedControlType<T> & {
|
|
|
7821
7821
|
units: SizeUnit$2[];
|
|
7822
7822
|
readonly?: boolean;
|
|
7823
7823
|
useOnlyUnitInit?: boolean;
|
|
7824
|
+
showDefaultUnit?: boolean;
|
|
7825
|
+
disableDecimal?: boolean;
|
|
7826
|
+
isNumber?: boolean;
|
|
7827
|
+
fallbackValue?: string | number;
|
|
7824
7828
|
};
|
|
7825
7829
|
|
|
7826
7830
|
type MarginControlType<T> = SharedControlType<T> & {
|
|
@@ -7866,14 +7870,14 @@ type RangeControlType<T> = SharedControlType<T> & {
|
|
|
7866
7870
|
maxRelated?: string;
|
|
7867
7871
|
}>;
|
|
7868
7872
|
|
|
7869
|
-
type Option$
|
|
7873
|
+
type Option$6<T> = {
|
|
7870
7874
|
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
7871
7875
|
label?: string | number;
|
|
7872
7876
|
type?: string;
|
|
7873
7877
|
icon?: string;
|
|
7874
7878
|
tooltip?: string;
|
|
7875
7879
|
};
|
|
7876
|
-
type Mapped$
|
|
7880
|
+
type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
7877
7881
|
id: K;
|
|
7878
7882
|
label?: string;
|
|
7879
7883
|
info?: string;
|
|
@@ -7891,7 +7895,7 @@ type Mapped$6<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7891
7895
|
};
|
|
7892
7896
|
placeholder?: string;
|
|
7893
7897
|
type: 'segment' | 'accordion:segment';
|
|
7894
|
-
options: Option$
|
|
7898
|
+
options: Option$6<T>[];
|
|
7895
7899
|
iconCustom?: boolean;
|
|
7896
7900
|
devices?: ResponsiveConfig<U>;
|
|
7897
7901
|
} : {
|
|
@@ -7912,15 +7916,15 @@ type Mapped$6<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7912
7916
|
};
|
|
7913
7917
|
placeholder?: string;
|
|
7914
7918
|
type: 'segment' | 'accordion:segment';
|
|
7915
|
-
options: Option$
|
|
7919
|
+
options: Option$6<T>[];
|
|
7916
7920
|
iconCustom?: boolean;
|
|
7917
7921
|
default?: T;
|
|
7918
7922
|
};
|
|
7919
7923
|
type SegmentControlType<T> = {
|
|
7920
|
-
[K in keyof T]-?: Mapped$
|
|
7924
|
+
[K in keyof T]-?: Mapped$7<K, T[K]>;
|
|
7921
7925
|
}[keyof T];
|
|
7922
7926
|
|
|
7923
|
-
type Option$
|
|
7927
|
+
type Option$5<T> = {
|
|
7924
7928
|
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
7925
7929
|
label?: string | number;
|
|
7926
7930
|
type?: string;
|
|
@@ -7928,7 +7932,7 @@ type Option$4<T> = {
|
|
|
7928
7932
|
tooltip?: string;
|
|
7929
7933
|
iconName?: string;
|
|
7930
7934
|
};
|
|
7931
|
-
type Mapped$
|
|
7935
|
+
type Mapped$6<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
7932
7936
|
id: K;
|
|
7933
7937
|
label?: string;
|
|
7934
7938
|
info?: string;
|
|
@@ -7946,7 +7950,7 @@ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7946
7950
|
};
|
|
7947
7951
|
placeholder?: string;
|
|
7948
7952
|
type: 'option:value' | 'accordion:segment';
|
|
7949
|
-
options: Option$
|
|
7953
|
+
options: Option$5<T>[];
|
|
7950
7954
|
iconCustom?: boolean;
|
|
7951
7955
|
devices?: ResponsiveConfig<U>;
|
|
7952
7956
|
} : {
|
|
@@ -7967,11 +7971,79 @@ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
7967
7971
|
};
|
|
7968
7972
|
placeholder?: string;
|
|
7969
7973
|
type: 'option:value' | 'accordion:segment';
|
|
7970
|
-
options: Option$
|
|
7974
|
+
options: Option$5<T>[];
|
|
7971
7975
|
iconCustom?: boolean;
|
|
7972
7976
|
default?: T;
|
|
7973
7977
|
};
|
|
7974
7978
|
type OptionValueControlType<T> = {
|
|
7979
|
+
[K in keyof T]-?: Mapped$6<K, T[K]>;
|
|
7980
|
+
}[keyof T];
|
|
7981
|
+
|
|
7982
|
+
type Option$4<T> = {
|
|
7983
|
+
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
7984
|
+
label?: string | number;
|
|
7985
|
+
type?: string;
|
|
7986
|
+
iconName?: string;
|
|
7987
|
+
svgName?: string;
|
|
7988
|
+
};
|
|
7989
|
+
type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
7990
|
+
id: K;
|
|
7991
|
+
label: string;
|
|
7992
|
+
info?: string;
|
|
7993
|
+
hide?: boolean;
|
|
7994
|
+
hideOnMode?: {
|
|
7995
|
+
responsive?: boolean;
|
|
7996
|
+
mobileOnly?: boolean;
|
|
7997
|
+
};
|
|
7998
|
+
disableToggle?: boolean;
|
|
7999
|
+
state?: {
|
|
8000
|
+
normal?: boolean;
|
|
8001
|
+
hover?: boolean;
|
|
8002
|
+
focus?: boolean;
|
|
8003
|
+
active?: boolean;
|
|
8004
|
+
};
|
|
8005
|
+
placeholder?: string;
|
|
8006
|
+
type: 'option:illustration';
|
|
8007
|
+
options: Option$4<T>[];
|
|
8008
|
+
groups?: {
|
|
8009
|
+
label: string;
|
|
8010
|
+
options: Option$4<T>[];
|
|
8011
|
+
}[];
|
|
8012
|
+
devices?: ResponsiveConfig<U>;
|
|
8013
|
+
iconViewBox?: string;
|
|
8014
|
+
enableItemBackground?: boolean;
|
|
8015
|
+
itemPerRow?: number;
|
|
8016
|
+
itemSpacing?: 'large' | 'small';
|
|
8017
|
+
enableTooltip?: boolean;
|
|
8018
|
+
} : {
|
|
8019
|
+
id: K;
|
|
8020
|
+
label: string;
|
|
8021
|
+
info?: string;
|
|
8022
|
+
hide?: boolean;
|
|
8023
|
+
hideOnMode?: {
|
|
8024
|
+
responsive?: boolean;
|
|
8025
|
+
mobileOnly?: boolean;
|
|
8026
|
+
};
|
|
8027
|
+
disableToggle?: boolean;
|
|
8028
|
+
state?: {
|
|
8029
|
+
normal?: boolean;
|
|
8030
|
+
hover?: boolean;
|
|
8031
|
+
focus?: boolean;
|
|
8032
|
+
active?: boolean;
|
|
8033
|
+
};
|
|
8034
|
+
placeholder?: string;
|
|
8035
|
+
type: 'option:illustration';
|
|
8036
|
+
itemPerRow?: number;
|
|
8037
|
+
itemSpacing?: 'large' | 'small';
|
|
8038
|
+
options?: Option$4<T>[];
|
|
8039
|
+
groups?: {
|
|
8040
|
+
label: string;
|
|
8041
|
+
options: Option$4<T>[];
|
|
8042
|
+
}[];
|
|
8043
|
+
enableTooltip?: boolean;
|
|
8044
|
+
default?: T;
|
|
8045
|
+
};
|
|
8046
|
+
type OptionIllustrationControlType<T> = {
|
|
7975
8047
|
[K in keyof T]-?: Mapped$5<K, T[K]>;
|
|
7976
8048
|
}[keyof T];
|
|
7977
8049
|
|
|
@@ -8041,6 +8113,7 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
8041
8113
|
options: Option$3<T>[];
|
|
8042
8114
|
default?: T;
|
|
8043
8115
|
isFullWidth?: boolean;
|
|
8116
|
+
showSelectedIcon?: boolean;
|
|
8044
8117
|
};
|
|
8045
8118
|
type SelectControlType<T> = {
|
|
8046
8119
|
[K in keyof T]-?: Mapped$4<K, T[K]>;
|
|
@@ -9354,7 +9427,11 @@ type InputSliderControlType<T> = SharedControlType<T> & {
|
|
|
9354
9427
|
maxRelated?: string;
|
|
9355
9428
|
}>;
|
|
9356
9429
|
|
|
9357
|
-
type
|
|
9430
|
+
type ImageSelect<T> = SharedControlType<T> & {
|
|
9431
|
+
type: 'image-select';
|
|
9432
|
+
};
|
|
9433
|
+
|
|
9434
|
+
type ControlProp<T> = (ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputStepperControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | Option$6<T> | OptionValueControlType<T> | OptionIllustrationControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | Option$3<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | VariantListingControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T> | ColorPickerV2ControlType<T> | BorderV2ControlType<T> | CornerV2ControlType<T> | PaddingV2ControlType<T> | BackgroundImageType<T> | BackgroundVideoType<T> | ShadowV2ControlType<T> | BackgroundMediaControlType<T> | BackgroundVideoType<T> | ImageV2ControlType<T> | LayoutSelectorControlType<T> | ComboControlType<T> | DynamicOfferQuantity<T> | ImagePostPurchase<T> | ImageSelect<T> | InputSliderControlType<T> | VariantSwatchesPresetV2ControlType<T>) & {
|
|
9358
9435
|
validate?: ValidateType;
|
|
9359
9436
|
};
|
|
9360
9437
|
type ValidateType = {
|