@soma-vertical-web/multi-lib 0.0.41 → 0.0.42
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/Footer-By1Gk2Ku.mjs +7050 -0
- package/Footer-rMb9FYog.js +41 -0
- package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +1 -1
- package/contexts/index.d.ts +1 -1
- package/data/helpers/plp/index.d.ts +1 -1
- package/data/index.d.ts +2 -0
- package/index.js +3 -3
- package/index.mjs +4266 -3539
- package/index2.js +1 -1
- package/index2.mjs +1 -1
- package/layout/index.d.ts +15 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/constants.d.ts +13 -5
- package/types/contexts/contexts/plp.d.ts +8 -4
- package/types/layout/team-components/ProductList/index.d.ts +24 -3
- package/types/layout/utils/index.d.ts +1 -1
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, MutableRefObject } from 'react';
|
|
2
|
+
import { PLP_INFINITE_SCROLLType, PLP_PRODUCT_SIMILAR_DELAYType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, TEXTURE_IMAGEType } from '../../../constants';
|
|
2
3
|
import { HasVariant, ProductType_PDC } from '../../../global/product';
|
|
3
|
-
import { ProductCardProps } from '../ProductCard';
|
|
4
|
+
import { ProductCardProps, RootProps as ProductCard_RootProps } from '../ProductCard';
|
|
4
5
|
import { TagCommercialConsumer } from '../../../cms/ContentTypes/FlagsAndTags';
|
|
6
|
+
import { SizeSkuItemProps } from '../ProductCard/Selectors';
|
|
5
7
|
|
|
6
8
|
export interface BannerItemDataProps {
|
|
7
9
|
columns: number;
|
|
8
|
-
|
|
10
|
+
position_grid: number;
|
|
9
11
|
}
|
|
10
12
|
export interface BannerProps extends BannerItemDataProps {
|
|
11
13
|
totalColumns?: number;
|
|
12
14
|
}
|
|
13
15
|
export interface BannerItemProps extends HTMLAttributes<HTMLDivElement>, BannerProps {
|
|
16
|
+
PRODUCT_CARD_IMAGE_ASPECT_RATIO: PRODUCT_CARD_IMAGE_ASPECT_RATIOType;
|
|
14
17
|
gap?: number;
|
|
18
|
+
isMobile?: boolean;
|
|
15
19
|
}
|
|
20
|
+
export type ProductListCard_CONSTANTS = ProductCard_RootProps['CONSTANTS'] & {
|
|
21
|
+
PLP_INFINITE_SCROLL: PLP_INFINITE_SCROLLType;
|
|
22
|
+
PLP_PRODUCT_SIMILAR_DELAY: PLP_PRODUCT_SIMILAR_DELAYType;
|
|
23
|
+
};
|
|
16
24
|
export interface ProductListCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
25
|
item: ProductCardProps;
|
|
18
26
|
index: number;
|
|
@@ -26,6 +34,19 @@ export interface ProductListCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
26
34
|
};
|
|
27
35
|
hasMaxWidth?: boolean;
|
|
28
36
|
setSkuSelected?(skus: ProductType_PDC['isVariantOf']['hasVariant'] | null, sku: HasVariant | null): void;
|
|
37
|
+
CONSTANTS: ProductListCard_CONSTANTS;
|
|
38
|
+
WishListToggle: ProductCard_RootProps['WishListToggle'];
|
|
29
39
|
}
|
|
30
40
|
export type RootProps = HTMLAttributes<HTMLDivElement>;
|
|
31
41
|
export type ProductListProps = HTMLAttributes<HTMLDivElement>;
|
|
42
|
+
export interface CardProps {
|
|
43
|
+
parent: MutableRefObject<null>;
|
|
44
|
+
productId: string;
|
|
45
|
+
setNotify: SizeSkuItemProps['setNotify'];
|
|
46
|
+
isKit?: boolean;
|
|
47
|
+
CONSTANTS: {
|
|
48
|
+
PLP_INFINITE_SCROLL: PLP_INFINITE_SCROLLType;
|
|
49
|
+
PLP_PRODUCT_SIMILAR_DELAY: PLP_PRODUCT_SIMILAR_DELAYType;
|
|
50
|
+
TEXTURE_IMAGE?: TEXTURE_IMAGEType;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 ProductListCardProps, Pick<RootProps, 'size' | 'shelfTitle' | 'CONSTANTS' | 'WishListToggle'> {
|
|
32
|
+
export interface CardProps extends Omit<ProductListCardProps, 'CONSTANTS'>, Pick<RootProps, 'size' | 'shelfTitle' | 'CONSTANTS' | 'WishListToggle'> {
|
|
33
33
|
onSkuSelection?: (sku: ProductType_PDC | null, skuList?: ProductType_PDC[]) => void;
|
|
34
34
|
}
|
|
35
35
|
export interface ShelfProps extends PropsWithChildren {
|