@gem-sdk/core 1.42.0-dev.61 → 1.42.0-dev.62
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 +18 -4
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -6617,7 +6617,7 @@ type Component = InitComponentType & {
|
|
|
6617
6617
|
};
|
|
6618
6618
|
type NameDevices$1 = 'desktop' | 'tablet' | 'mobile';
|
|
6619
6619
|
type ObjectDevices<T> = Partial<Record<NameDevices$1, T>>;
|
|
6620
|
-
type StateType = 'normal' | 'hover' | 'focus' | 'active';
|
|
6620
|
+
type StateType = 'normal' | 'hover' | 'focus' | 'active' | 'price' | 'compareAtPrice';
|
|
6621
6621
|
type StateProp<T> = Partial<Record<StateType, T>>;
|
|
6622
6622
|
type ResponsiveStateProp<T> = ObjectDevices<StateProp<T>>;
|
|
6623
6623
|
type AlignItemProp = 'left' | 'center' | 'right';
|
|
@@ -6738,6 +6738,8 @@ type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
6738
6738
|
hover?: boolean;
|
|
6739
6739
|
focus?: boolean;
|
|
6740
6740
|
active?: boolean;
|
|
6741
|
+
price?: boolean;
|
|
6742
|
+
compareAtPrice?: boolean;
|
|
6741
6743
|
};
|
|
6742
6744
|
emptyOnClear?: boolean;
|
|
6743
6745
|
showVideo?: boolean;
|
|
@@ -7474,6 +7476,7 @@ type TypographyV2ControlType<T> = SharedControlType<T> & {
|
|
|
7474
7476
|
color?: boolean;
|
|
7475
7477
|
transform?: boolean;
|
|
7476
7478
|
};
|
|
7479
|
+
disableCollapse?: boolean;
|
|
7477
7480
|
};
|
|
7478
7481
|
|
|
7479
7482
|
type StickyDisplayControlType<T> = SharedControlType<T> & {
|
|
@@ -7740,11 +7743,21 @@ type NotesControlType<T> = SharedControlType<T> & {
|
|
|
7740
7743
|
value?: string;
|
|
7741
7744
|
};
|
|
7742
7745
|
|
|
7746
|
+
type ButtonLayoutType<T> = SharedControlType<T> & {
|
|
7747
|
+
type: 'button-layout';
|
|
7748
|
+
options: {
|
|
7749
|
+
id: string;
|
|
7750
|
+
value: string;
|
|
7751
|
+
name: string;
|
|
7752
|
+
icon: boolean;
|
|
7753
|
+
}[];
|
|
7754
|
+
};
|
|
7755
|
+
|
|
7743
7756
|
type ShapeSelectorControlType<T> = SharedControlType<T> & {
|
|
7744
7757
|
type: 'shape-selector';
|
|
7745
7758
|
};
|
|
7746
7759
|
|
|
7747
|
-
type ControlProp<T> = AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | OpenLinkControlType<T> | SelectControlType<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 | 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> | ShapeSelectorControlType<T>;
|
|
7760
|
+
type ControlProp<T> = AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | OpenLinkControlType<T> | SelectControlType<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 | 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> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T>;
|
|
7748
7761
|
type ControlTriggerAction = {
|
|
7749
7762
|
controlId: string;
|
|
7750
7763
|
newValue?: any;
|
|
@@ -7824,6 +7837,7 @@ type ControlUI = {
|
|
|
7824
7837
|
label?: Record<string, string>;
|
|
7825
7838
|
info?: Record<string, string>;
|
|
7826
7839
|
condition?: string;
|
|
7840
|
+
target?: 'tab';
|
|
7827
7841
|
controls?: ControlUI[];
|
|
7828
7842
|
setting?: {
|
|
7829
7843
|
id: string;
|
|
@@ -36017,11 +36031,11 @@ declare const useSelectedOption: () => {
|
|
|
36017
36031
|
setSelectedOption: (optionId?: Maybe$1<string>, optionValue?: Maybe$1<string>, productId?: Maybe$1<string>, noEmit?: boolean) => void;
|
|
36018
36032
|
forceSelectedOption: (selectedOption?: Record<string, string>, productId?: Maybe$1<string>, noEmit?: boolean) => void;
|
|
36019
36033
|
};
|
|
36020
|
-
declare const useVariants: () => Maybe$1<Pick<ProductVariant$1, "id" | "title" | "width" | "height" | "length" | "weight" | "baseID" | "platform" | "sku" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "
|
|
36034
|
+
declare const useVariants: () => Maybe$1<Pick<ProductVariant$1, "id" | "title" | "price" | "width" | "height" | "length" | "weight" | "baseID" | "platform" | "sku" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "salePrice" | "soldIndividually"> & {
|
|
36021
36035
|
selectedOptions: Pick<SelectedOption$1, "name" | "value" | "optionType">[];
|
|
36022
36036
|
media?: Maybe$1<Pick<Media$1, "id" | "width" | "height" | "src" | "alt" | "contentType" | "previewImage">>;
|
|
36023
36037
|
}>[];
|
|
36024
|
-
declare const useVariant: (id: string) => Maybe$1<Pick<ProductVariant$1, "id" | "title" | "width" | "height" | "length" | "weight" | "baseID" | "platform" | "sku" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "
|
|
36038
|
+
declare const useVariant: (id: string) => Maybe$1<Pick<ProductVariant$1, "id" | "title" | "price" | "width" | "height" | "length" | "weight" | "baseID" | "platform" | "sku" | "barcode" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "salePrice" | "soldIndividually"> & {
|
|
36025
36039
|
selectedOptions: Pick<SelectedOption$1, "name" | "value" | "optionType">[];
|
|
36026
36040
|
media?: Maybe$1<Pick<Media$1, "id" | "width" | "height" | "src" | "alt" | "contentType" | "previewImage">>;
|
|
36027
36041
|
}>;
|