@gem-sdk/core 2.0.0-dev.276 → 2.0.0-dev.282

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.
@@ -7515,7 +7515,7 @@ type HyperlinkInfo = {
7515
7515
  link?: string;
7516
7516
  modal?: CommonModalApp;
7517
7517
  };
7518
- type Mapped$9<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
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$9<K, T[K]>;
7595
+ [K in keyof T]-?: Mapped$a<K, T[K]>;
7596
7596
  }[keyof T];
7597
7597
 
7598
- type Option$7 = {
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$8<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
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$7[];
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$7[];
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$8<K, T[K]>;
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$6<T> = {
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$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
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$6<T>[];
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$6<T>[];
7706
+ options: Option$7<T>[];
7707
7707
  default?: T;
7708
7708
  };
7709
7709
  type CheckboxControlType<T> = {
7710
- [K in keyof T]-?: Mapped$7<K, T[K]>;
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
- defaultValue?: string;
7772
+ fallbackValue?: string;
7773
7773
  clearButton?: boolean;
7774
7774
  datalist?: {
7775
7775
  value: any;
@@ -7821,6 +7821,9 @@ type InputUnitControlType<T> = SharedControlType<T> & {
7821
7821
  units: SizeUnit$2[];
7822
7822
  readonly?: boolean;
7823
7823
  useOnlyUnitInit?: boolean;
7824
+ showDefaultUnit?: boolean;
7825
+ isNumber?: boolean;
7826
+ fallbackValue?: string | number;
7824
7827
  };
7825
7828
 
7826
7829
  type MarginControlType<T> = SharedControlType<T> & {
@@ -7866,14 +7869,14 @@ type RangeControlType<T> = SharedControlType<T> & {
7866
7869
  maxRelated?: string;
7867
7870
  }>;
7868
7871
 
7869
- type Option$5<T> = {
7872
+ type Option$6<T> = {
7870
7873
  value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
7871
7874
  label?: string | number;
7872
7875
  type?: string;
7873
7876
  icon?: string;
7874
7877
  tooltip?: string;
7875
7878
  };
7876
- type Mapped$6<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7879
+ type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7877
7880
  id: K;
7878
7881
  label?: string;
7879
7882
  info?: string;
@@ -7891,7 +7894,7 @@ type Mapped$6<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7891
7894
  };
7892
7895
  placeholder?: string;
7893
7896
  type: 'segment' | 'accordion:segment';
7894
- options: Option$5<T>[];
7897
+ options: Option$6<T>[];
7895
7898
  iconCustom?: boolean;
7896
7899
  devices?: ResponsiveConfig<U>;
7897
7900
  } : {
@@ -7912,15 +7915,15 @@ type Mapped$6<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7912
7915
  };
7913
7916
  placeholder?: string;
7914
7917
  type: 'segment' | 'accordion:segment';
7915
- options: Option$5<T>[];
7918
+ options: Option$6<T>[];
7916
7919
  iconCustom?: boolean;
7917
7920
  default?: T;
7918
7921
  };
7919
7922
  type SegmentControlType<T> = {
7920
- [K in keyof T]-?: Mapped$6<K, T[K]>;
7923
+ [K in keyof T]-?: Mapped$7<K, T[K]>;
7921
7924
  }[keyof T];
7922
7925
 
7923
- type Option$4<T> = {
7926
+ type Option$5<T> = {
7924
7927
  value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
7925
7928
  label?: string | number;
7926
7929
  type?: string;
@@ -7928,7 +7931,7 @@ type Option$4<T> = {
7928
7931
  tooltip?: string;
7929
7932
  iconName?: string;
7930
7933
  };
7931
- type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7934
+ type Mapped$6<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7932
7935
  id: K;
7933
7936
  label?: string;
7934
7937
  info?: string;
@@ -7946,7 +7949,7 @@ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7946
7949
  };
7947
7950
  placeholder?: string;
7948
7951
  type: 'option:value' | 'accordion:segment';
7949
- options: Option$4<T>[];
7952
+ options: Option$5<T>[];
7950
7953
  iconCustom?: boolean;
7951
7954
  devices?: ResponsiveConfig<U>;
7952
7955
  } : {
@@ -7967,11 +7970,79 @@ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7967
7970
  };
7968
7971
  placeholder?: string;
7969
7972
  type: 'option:value' | 'accordion:segment';
7970
- options: Option$4<T>[];
7973
+ options: Option$5<T>[];
7971
7974
  iconCustom?: boolean;
7972
7975
  default?: T;
7973
7976
  };
7974
7977
  type OptionValueControlType<T> = {
7978
+ [K in keyof T]-?: Mapped$6<K, T[K]>;
7979
+ }[keyof T];
7980
+
7981
+ type Option$4<T> = {
7982
+ value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
7983
+ label?: string | number;
7984
+ type?: string;
7985
+ iconName?: string;
7986
+ svgName?: string;
7987
+ };
7988
+ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
7989
+ id: K;
7990
+ label: string;
7991
+ info?: string;
7992
+ hide?: boolean;
7993
+ hideOnMode?: {
7994
+ responsive?: boolean;
7995
+ mobileOnly?: boolean;
7996
+ };
7997
+ disableToggle?: boolean;
7998
+ state?: {
7999
+ normal?: boolean;
8000
+ hover?: boolean;
8001
+ focus?: boolean;
8002
+ active?: boolean;
8003
+ };
8004
+ placeholder?: string;
8005
+ type: 'option:illustration';
8006
+ options: Option$4<T>[];
8007
+ groups?: {
8008
+ label: string;
8009
+ options: Option$4<T>[];
8010
+ }[];
8011
+ devices?: ResponsiveConfig<U>;
8012
+ iconViewBox?: string;
8013
+ enableItemBackground?: boolean;
8014
+ itemPerRow?: number;
8015
+ itemSpacing?: 'large' | 'small';
8016
+ enableTooltip?: boolean;
8017
+ } : {
8018
+ id: K;
8019
+ label: string;
8020
+ info?: string;
8021
+ hide?: boolean;
8022
+ hideOnMode?: {
8023
+ responsive?: boolean;
8024
+ mobileOnly?: boolean;
8025
+ };
8026
+ disableToggle?: boolean;
8027
+ state?: {
8028
+ normal?: boolean;
8029
+ hover?: boolean;
8030
+ focus?: boolean;
8031
+ active?: boolean;
8032
+ };
8033
+ placeholder?: string;
8034
+ type: 'option:illustration';
8035
+ itemPerRow?: number;
8036
+ itemSpacing?: 'large' | 'small';
8037
+ options?: Option$4<T>[];
8038
+ groups?: {
8039
+ label: string;
8040
+ options: Option$4<T>[];
8041
+ }[];
8042
+ enableTooltip?: boolean;
8043
+ default?: T;
8044
+ };
8045
+ type OptionIllustrationControlType<T> = {
7975
8046
  [K in keyof T]-?: Mapped$5<K, T[K]>;
7976
8047
  }[keyof T];
7977
8048
 
@@ -8041,6 +8112,7 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
8041
8112
  options: Option$3<T>[];
8042
8113
  default?: T;
8043
8114
  isFullWidth?: boolean;
8115
+ showSelectedIcon?: boolean;
8044
8116
  };
8045
8117
  type SelectControlType<T> = {
8046
8118
  [K in keyof T]-?: Mapped$4<K, T[K]>;
@@ -9354,7 +9426,11 @@ type InputSliderControlType<T> = SharedControlType<T> & {
9354
9426
  maxRelated?: string;
9355
9427
  }>;
9356
9428
 
9357
- 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$5<T> | OptionValueControlType<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> | InputSliderControlType<T> | VariantSwatchesPresetV2ControlType<T>) & {
9429
+ type ImageSelect<T> = SharedControlType<T> & {
9430
+ type: 'image-select';
9431
+ };
9432
+
9433
+ 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
9434
  validate?: ValidateType;
9359
9435
  };
9360
9436
  type ValidateType = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.276",
3
+ "version": "2.0.0-dev.282",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",