@soma-vertical-web/multi-lib 0.0.67 → 0.0.69
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/cms/Sections/ProductCarousel/Composite/CommonShelf.d.ts +1 -1
- package/cms/Sections/ProductCarousel/Composite/RecommendationShelf.d.ts +1 -1
- package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +2 -2
- package/cms/index.d.ts +2 -2
- package/index.js +19 -19
- package/index.mjs +6104 -5878
- package/layout/index.d.ts +28 -5
- package/layout/team-component/BuyPackage/BuyPackage.d.ts +1 -1
- package/layout/team-component/ProductCard/Composite/Root.d.ts +1 -1
- package/layout/team-component/ProductCard/ProductCard.d.ts +1 -1
- package/layout/team-component/ProductList/Composite/Card/Card.d.ts +1 -1
- package/layout/team-component/ProductList/ProductList.d.ts +1 -1
- package/layout/template/PDC/Composite/Empty/Empty.d.ts +1 -1
- package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +2 -2
- package/layout/template/WishList/Composite/Feedback.d.ts +11 -0
- package/layout/template/WishList/Composite/Grid.d.ts +7 -0
- package/layout/template/WishList/Composite/Init.d.ts +11 -0
- package/layout/template/WishList/Composite/Toggle.d.ts +7 -0
- package/layout/template/WishList/WishList.d.ts +26 -0
- package/layout/template/WishList/helpers.d.ts +12 -0
- package/layout/template/WishList/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/Sections/ProductCarousel/index.d.ts +0 -3
- package/types/cms/Sections/SectionZone/intex.d.ts +1 -1
- package/types/constants.d.ts +12 -0
- package/types/contexts/contexts/plp.d.ts +0 -1
- package/types/layout/team-components/BuyPackage/index.d.ts +0 -1
- package/types/layout/team-components/ProductCard/index.d.ts +3 -3
- package/types/layout/team-components/ProductList/index.d.ts +0 -1
- package/types/layout/templates/PLP/index.d.ts +5 -10
- package/types/layout/templates/Wishlist/index.d.ts +21 -0
- package/types/layout/utils/index.d.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SizesExtended } from '@soma-vertical-web/foundations';
|
|
2
|
-
import {
|
|
2
|
+
import { Dispatch, HTMLAttributes, PropsWithChildren, RefObject, SetStateAction } from 'react';
|
|
3
3
|
import { TagProps } from '@soma-vertical-web/core-components/src/lib/Tag/interfaces';
|
|
4
4
|
import { HasVariant, ProductType_PDC } from '../../../global/product';
|
|
5
5
|
import { TagCommercialConsumer } from '../../../cms/ContentTypes/FlagsAndTags';
|
|
6
|
-
import { BUY_BUTTON_LABELSType, PLP_INFINITE_SCROLLType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SECOND_IMAGEType, TEXTURE_IMAGEType, Z_INDEX_WARType, StoreConfigType } from '../../../constants';
|
|
6
|
+
import { BUY_BUTTON_LABELSType, PLP_INFINITE_SCROLLType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SECOND_IMAGEType, TEXTURE_IMAGEType, Z_INDEX_WARType, StoreConfigType, ICONSType } from '../../../constants';
|
|
7
7
|
import { SizeSkuItemProps, StyleSelectorProps } from './Selectors';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -31,8 +31,8 @@ export interface RootProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
31
31
|
TEXTURE_IMAGE: TEXTURE_IMAGEType;
|
|
32
32
|
Z_INDEX_WAR: Z_INDEX_WARType;
|
|
33
33
|
StoreConfig_MainSellerId: StoreConfigType['mainSeller']['id'];
|
|
34
|
+
ICONS: ICONSType;
|
|
34
35
|
};
|
|
35
|
-
WishListToggle: ComponentType<any>;
|
|
36
36
|
}
|
|
37
37
|
export type Sizes = (typeof SizesExtended)[number];
|
|
38
38
|
export interface ProductCardContextProps extends PropsWithChildren<HTMLAttributes<HTMLDivElement>>, Omit<RootProps, 'callback'> {
|
|
@@ -35,7 +35,6 @@ export interface ProductListCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
35
35
|
hasMaxWidth?: boolean;
|
|
36
36
|
setSkuSelected?(skus: ProductType_PDC['isVariantOf']['hasVariant'] | null, sku: HasVariant | null): void;
|
|
37
37
|
CONSTANTS: ProductListCard_CONSTANTS;
|
|
38
|
-
WishListToggle: ProductCard_RootProps['WishListToggle'];
|
|
39
38
|
}
|
|
40
39
|
export type RootProps = HTMLAttributes<HTMLDivElement>;
|
|
41
40
|
export type ProductListProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
import { AvailabilityNotifyProps } from '../../../../types/layout/team-components/Notify';
|
|
2
3
|
import { BannerType } from '../../../cms/Sections/Banner';
|
|
4
|
+
import { BUY_BUTTON_LABELSType, ICONSType, ITEMS_DEFAULT_SORTType, ITEMS_PER_PAGEType, ITEMS_PER_SECTIONType, MAIN_IMAGEType, NEWSLETTER_CONFIGSType, NOTIFY_INFOType, PLP_GRID_SCROLL_BACKType, PLP_INFINITE_SCROLLType, PLP_PRODUCT_SIMILAR_DELAYType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SEARCH_PAGE_ITEM_THRESHOLDType, SECOND_IMAGEType, StoreConfigType, TEXTURE_IMAGEType, VARIANT_PAGINATIONType, PLP_NOT_RESULTType, Z_INDEX_WARType } from '../../../constants';
|
|
3
5
|
import { Page, PLPConstantsContextProps } from '../../../contexts/contexts/plp';
|
|
4
|
-
import { ProductCardProps } from '../../team-components/ProductCard';
|
|
5
|
-
import { AvailabilityNotifyProps } from '../../../../types/layout/team-components/Notify';
|
|
6
6
|
import { ProductType_PDC } from '../../../global/product';
|
|
7
|
-
import {
|
|
7
|
+
import { ProductCardProps } from '../../team-components/ProductCard';
|
|
8
8
|
|
|
9
9
|
export type PLPNavigationRootProps = {
|
|
10
10
|
searchParams: {
|
|
@@ -112,17 +112,12 @@ export interface ProductsProps {
|
|
|
112
112
|
StoreConfig_MainSellerId: StoreConfigType['mainSeller']['id'];
|
|
113
113
|
TEXTURE_IMAGE: TEXTURE_IMAGEType;
|
|
114
114
|
Z_INDEX_WAR: Z_INDEX_WARType;
|
|
115
|
-
WishListToggle: React.ComponentType<any>;
|
|
116
115
|
}
|
|
117
116
|
export interface PLPRootProps extends PLPConstantsContextProps {
|
|
118
117
|
className?: string;
|
|
119
118
|
}
|
|
120
119
|
export type EmptyProps = {
|
|
121
120
|
className?: string;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
text: string;
|
|
125
|
-
title: string;
|
|
126
|
-
subtitle: string;
|
|
127
|
-
};
|
|
121
|
+
ICONS: ICONSType;
|
|
122
|
+
PLP_NOT_RESULT: PLP_NOT_RESULTType;
|
|
128
123
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IconProps } from '@soma-vertical-web/core-components/src/lib/Icon/interfaces';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { ProductType_PDC } from '../../../global/product';
|
|
4
|
+
import { ICONSType, WISHLIST_NOT_RESULTType } from '../../../constants';
|
|
5
|
+
import { ProductListCard_CONSTANTS } from '../../../layout/team-components/ProductList';
|
|
6
|
+
|
|
7
|
+
export interface ToggleProps {
|
|
8
|
+
product: ProductType_PDC;
|
|
9
|
+
priceInfo: Record<string, string | number>;
|
|
10
|
+
size?: IconProps['size'];
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
variant: 'card' | 'modal';
|
|
13
|
+
ICONS: ICONSType;
|
|
14
|
+
}
|
|
15
|
+
export interface WishListGrid_CONSTANTS extends ProductListCard_CONSTANTS {
|
|
16
|
+
WISHLIST_NOT_RESULT: WISHLIST_NOT_RESULTType;
|
|
17
|
+
ICONS: ICONSType;
|
|
18
|
+
}
|
|
19
|
+
export interface WishListGridProps {
|
|
20
|
+
CONSTANTS: WishListGrid_CONSTANTS;
|
|
21
|
+
}
|
|
@@ -29,7 +29,7 @@ export interface SnackBarComponentProps extends StructureProps {
|
|
|
29
29
|
adornment?: ContentProps['adornment'];
|
|
30
30
|
supportChildren?: ReactNode;
|
|
31
31
|
}
|
|
32
|
-
export interface CardProps extends Omit<ProductListCardProps, 'CONSTANTS'>, Pick<RootProps, 'size' | 'shelfTitle' | 'CONSTANTS'
|
|
32
|
+
export interface CardProps extends Omit<ProductListCardProps, 'CONSTANTS'>, Pick<RootProps, 'size' | 'shelfTitle' | 'CONSTANTS'> {
|
|
33
33
|
onSkuSelection?: (sku: ProductType_PDC | null, skuList?: ProductType_PDC[]) => void;
|
|
34
34
|
}
|
|
35
35
|
export interface ShelfProps extends PropsWithChildren {
|