@gem-sdk/core 1.44.0-staging.55 → 1.44.0-staging.57
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 +20 -4
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -6611,7 +6611,7 @@ type Component = InitComponentType & {
|
|
|
6611
6611
|
};
|
|
6612
6612
|
type NameDevices$1 = 'desktop' | 'tablet' | 'mobile';
|
|
6613
6613
|
type ObjectDevices<T> = Partial<Record<NameDevices$1, T>>;
|
|
6614
|
-
type StateType = 'normal' | 'hover' | 'focus' | 'active';
|
|
6614
|
+
type StateType = 'normal' | 'hover' | 'focus' | 'active' | 'price' | 'compareAtPrice';
|
|
6615
6615
|
type StateProp<T> = Partial<Record<StateType, T>>;
|
|
6616
6616
|
type ResponsiveStateProp<T> = ObjectDevices<StateProp<T>>;
|
|
6617
6617
|
type AlignItemProp = 'left' | 'center' | 'right';
|
|
@@ -6732,6 +6732,8 @@ type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
6732
6732
|
hover?: boolean;
|
|
6733
6733
|
focus?: boolean;
|
|
6734
6734
|
active?: boolean;
|
|
6735
|
+
price?: boolean;
|
|
6736
|
+
compareAtPrice?: boolean;
|
|
6735
6737
|
};
|
|
6736
6738
|
emptyOnClear?: boolean;
|
|
6737
6739
|
showVideo?: boolean;
|
|
@@ -7464,6 +7466,7 @@ type TypographyV2ControlType<T> = SharedControlType<T> & {
|
|
|
7464
7466
|
color?: boolean;
|
|
7465
7467
|
transform?: boolean;
|
|
7466
7468
|
};
|
|
7469
|
+
disableCollapse?: boolean;
|
|
7467
7470
|
};
|
|
7468
7471
|
|
|
7469
7472
|
type StickyDisplayControlType<T> = SharedControlType<T> & {
|
|
@@ -7729,7 +7732,17 @@ type NotesControlType<T> = SharedControlType<T> & {
|
|
|
7729
7732
|
value?: string;
|
|
7730
7733
|
};
|
|
7731
7734
|
|
|
7732
|
-
type
|
|
7735
|
+
type ButtonLayoutType<T> = SharedControlType<T> & {
|
|
7736
|
+
type: 'button-layout';
|
|
7737
|
+
options: {
|
|
7738
|
+
id: string;
|
|
7739
|
+
value: string;
|
|
7740
|
+
name: string;
|
|
7741
|
+
icon: boolean;
|
|
7742
|
+
}[];
|
|
7743
|
+
};
|
|
7744
|
+
|
|
7745
|
+
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> | 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>;
|
|
7733
7746
|
type ControlTriggerAction = {
|
|
7734
7747
|
controlId: string;
|
|
7735
7748
|
newValue?: any;
|
|
@@ -7808,6 +7821,7 @@ type ControlUI = {
|
|
|
7808
7821
|
label?: Record<string, string>;
|
|
7809
7822
|
info?: Record<string, string>;
|
|
7810
7823
|
condition?: string;
|
|
7824
|
+
target?: 'tab';
|
|
7811
7825
|
controls?: ControlUI[];
|
|
7812
7826
|
setting?: {
|
|
7813
7827
|
id: string;
|
|
@@ -27041,6 +27055,8 @@ type TypographyProps = {
|
|
|
27041
27055
|
lineHeight?: string;
|
|
27042
27056
|
letterSpacing?: string;
|
|
27043
27057
|
fallbackFontFamily?: string;
|
|
27058
|
+
textShadow?: ShadowProps;
|
|
27059
|
+
hasShadowText?: boolean;
|
|
27044
27060
|
};
|
|
27045
27061
|
type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
|
|
27046
27062
|
fontSize?: ObjectDevices<string>;
|
|
@@ -35952,11 +35968,11 @@ declare const useSelectedOption: () => {
|
|
|
35952
35968
|
setSelectedOption: (optionId?: Maybe$1<string>, optionValue?: Maybe$1<string>, productId?: Maybe$1<string>, noEmit?: boolean) => void;
|
|
35953
35969
|
forceSelectedOption: (selectedOption?: Record<string, string>, productId?: Maybe$1<string>, noEmit?: boolean) => void;
|
|
35954
35970
|
};
|
|
35955
|
-
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" | "
|
|
35971
|
+
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"> & {
|
|
35956
35972
|
selectedOptions: Pick<SelectedOption$1, "name" | "value" | "optionType">[];
|
|
35957
35973
|
media?: Maybe$1<Pick<Media$1, "id" | "width" | "height" | "src" | "alt" | "contentType" | "previewImage">>;
|
|
35958
35974
|
}>[];
|
|
35959
|
-
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" | "
|
|
35975
|
+
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"> & {
|
|
35960
35976
|
selectedOptions: Pick<SelectedOption$1, "name" | "value" | "optionType">[];
|
|
35961
35977
|
media?: Maybe$1<Pick<Media$1, "id" | "width" | "height" | "src" | "alt" | "contentType" | "previewImage">>;
|
|
35962
35978
|
}>;
|