@soma-vertical-web/multi-lib 0.0.20 → 0.0.22
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/index.d.ts +1 -1
- package/contexts/contexts/header/TipBarContext.d.ts +6 -0
- package/data/api/cms/index.d.ts +11 -0
- package/data/index.d.ts +0 -7
- package/index-B8dtKJc0.mjs +68 -0
- package/index-BArDD1Jh.mjs +68 -0
- package/index-BK5yScKK.js +1 -0
- package/index-BcniWgv2.mjs +68 -0
- package/index-C3_oOo51.js +1 -0
- package/index-CHaVlwnS.js +1 -0
- package/index-Dq-m7diJ.mjs +68 -0
- package/index-lWJI65gt.js +1 -0
- package/index.js +4 -4
- package/index.mjs +2924 -2603
- package/index2.js +1 -1
- package/index2.mjs +73 -2
- package/layout/index.d.ts +8 -0
- package/layout/team-component/BuyPackage/BuyPackage.d.ts +4 -0
- package/layout/team-component/BuyPackage/Composite/GroupCart.d.ts +4 -0
- package/layout/team-component/BuyPackage/Composite/Header.d.ts +4 -0
- package/layout/team-component/BuyPackage/helpers.d.ts +5 -0
- package/layout/team-component/BuyPackage/index.d.ts +1 -0
- package/layout/team-component/Timer/index.d.ts +4 -0
- package/layout/team-component/TipBar/Composite/Fields/CountDown.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Fields/Coupon.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Fields/FieldsScreening.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Fields/TextContent.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Root.d.ts +5 -0
- package/layout/team-component/TipBar/Composite/Structure/Carousel.d.ts +9 -0
- package/layout/team-component/TipBar/Composite/Structure/Container.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Structure/Item.d.ts +3 -0
- package/layout/team-component/TipBar/Composite/Support/CloseBtn.d.ts +3 -0
- package/layout/team-component/TipBar/index.d.ts +7 -0
- package/layout/utils/ProductShelf/Composite/Card.d.ts +7 -0
- package/layout/utils/ProductShelf/Composite/Shelf.d.ts +4 -0
- package/layout/utils/ProductShelf/Composite/Title.d.ts +4 -0
- package/layout/utils/ProductShelf/index.d.ts +8 -0
- package/layout/utils/SnackBar/index.d.ts +7 -0
- package/package.json +1 -1
- package/server.d.ts +9 -1
- package/style.css +1 -1
- package/types/cms/api/index.d.ts +5 -11
- package/types/constants.d.ts +39 -5
- package/types/contexts/contexts/header.d.ts +25 -1
- package/types/layout/team-components/BuyPackage/index.d.ts +29 -0
- package/types/layout/team-components/ProductCard/Selectors/index.d.ts +2 -2
- package/types/layout/team-components/ProductCard/index.d.ts +2 -2
- package/types/layout/team-components/Timer/index.d.ts +8 -0
- package/types/layout/team-components/TipBar/index.d.ts +57 -0
- package/types/layout/utils/index.d.ts +23 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BUY_BUTTON_LABELSType, BUY_PACKAGEType, FREIGHT_CALCULATIONType, ICONSType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_INFINITE_SCROLLType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PRODUCT_CARD_IMAGE_ASPECT_RATIOType, PRODUCT_CARD_TEXTSType, PRODUCT_CARD_TOP_WISHLIST_TOGGLEType, PRODUCT_IMAGE_DIMENSIONSType, SECOND_IMAGEType, StoreConfig_MainSellerIdType, TEXTURE_IMAGEType, Z_INDEX_WARType } from '../../../constants';
|
|
1
2
|
import { ProductType_PDC, HasVariant, ProductNode_PDC } from '../../../global/product';
|
|
2
3
|
|
|
3
4
|
export interface SelectedItemType {
|
|
@@ -22,10 +23,32 @@ export interface CarouselPagination {
|
|
|
22
23
|
currentPage: number | undefined;
|
|
23
24
|
totalPages: number | undefined;
|
|
24
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* TODO: remover wishlist comp as props
|
|
28
|
+
*/
|
|
25
29
|
export interface BuyPackageProps {
|
|
26
30
|
inView: boolean;
|
|
27
31
|
products: ProductNode_PDC[];
|
|
28
32
|
innerRef: (node?: Element | null) => void;
|
|
33
|
+
CONSTANTS: {
|
|
34
|
+
BUY_BUTTON_LABELS: BUY_BUTTON_LABELSType;
|
|
35
|
+
BUY_PACKAGE: BUY_PACKAGEType;
|
|
36
|
+
FREIGHT_CALCULATION: FREIGHT_CALCULATIONType;
|
|
37
|
+
ICONS: ICONSType;
|
|
38
|
+
MAIN_IMAGE: MAIN_IMAGEType;
|
|
39
|
+
PLP_GRID_SCROLL_BACK: PLP_GRID_SCROLL_BACKType;
|
|
40
|
+
PLP_INFINITE_SCROLL: PLP_INFINITE_SCROLLType;
|
|
41
|
+
PLP_SHOW_VIDEO_ON_PRODUCT_CARD: PLP_SHOW_VIDEO_ON_PRODUCT_CARDType;
|
|
42
|
+
PRODUCT_CARD_IMAGE_ASPECT_RATIO: PRODUCT_CARD_IMAGE_ASPECT_RATIOType;
|
|
43
|
+
PRODUCT_CARD_TEXTS: PRODUCT_CARD_TEXTSType;
|
|
44
|
+
PRODUCT_CARD_TOP_WISHLIST_TOGGLE: PRODUCT_CARD_TOP_WISHLIST_TOGGLEType;
|
|
45
|
+
PRODUCT_IMAGE_DIMENSIONS: PRODUCT_IMAGE_DIMENSIONSType;
|
|
46
|
+
SECOND_IMAGE: SECOND_IMAGEType;
|
|
47
|
+
StoreConfig_MainSellerId: StoreConfig_MainSellerIdType;
|
|
48
|
+
TEXTURE_IMAGE: TEXTURE_IMAGEType;
|
|
49
|
+
Z_INDEX_WAR: Z_INDEX_WARType;
|
|
50
|
+
};
|
|
51
|
+
WishListToggle: React.ComponentType<any>;
|
|
29
52
|
}
|
|
30
53
|
export interface BuyPackageProductCardProps {
|
|
31
54
|
item: ProductType_PDC;
|
|
@@ -48,4 +71,10 @@ export interface SkuSelectionType {
|
|
|
48
71
|
}
|
|
49
72
|
export interface HandleSelectedProductsType extends SkuSelectionType {
|
|
50
73
|
prevState: SelectedCompleteLookItems;
|
|
74
|
+
mainSellerId: string;
|
|
75
|
+
}
|
|
76
|
+
export interface GroupCartProps {
|
|
77
|
+
selectedProducts: SelectedCompleteLookItems;
|
|
78
|
+
CONSTANTS: Pick<BuyPackageProps['CONSTANTS'], 'BUY_PACKAGE' | 'FREIGHT_CALCULATION' | 'BUY_BUTTON_LABELS'>;
|
|
79
|
+
handleAddAllToCart: () => void;
|
|
51
80
|
}
|
|
@@ -9,7 +9,7 @@ export interface ProductSize {
|
|
|
9
9
|
}
|
|
10
10
|
export interface ImageProp {
|
|
11
11
|
url: string;
|
|
12
|
-
alternateName
|
|
12
|
+
alternateName: string;
|
|
13
13
|
}
|
|
14
14
|
export interface SizeSkuItemProps {
|
|
15
15
|
active: boolean;
|
|
@@ -41,7 +41,7 @@ export interface StyleSelectorSimilarProps extends HTMLAttributes<HTMLDivElement
|
|
|
41
41
|
export interface StyleSelectorProps extends HTMLAttributes<HTMLDivElement> {
|
|
42
42
|
callback?(value?: string): void;
|
|
43
43
|
data?: SimilarType[];
|
|
44
|
-
findTexture?: string;
|
|
44
|
+
findTexture?: string[];
|
|
45
45
|
images?: ImageProp[];
|
|
46
46
|
isKit?: boolean;
|
|
47
47
|
}
|
|
@@ -3,7 +3,7 @@ import { ComponentType, Dispatch, HTMLAttributes, PropsWithChildren, RefObject,
|
|
|
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 } 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, StoreConfig_MainSellerIdType } from '../../../constants';
|
|
7
7
|
import { SizeSkuItemProps, StyleSelectorProps } from './Selectors';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -30,7 +30,7 @@ export interface RootProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
30
30
|
SECOND_IMAGE: SECOND_IMAGEType;
|
|
31
31
|
TEXTURE_IMAGE: TEXTURE_IMAGEType;
|
|
32
32
|
Z_INDEX_WAR: Z_INDEX_WARType;
|
|
33
|
-
StoreConfig_MainSellerId:
|
|
33
|
+
StoreConfig_MainSellerId: StoreConfig_MainSellerIdType;
|
|
34
34
|
};
|
|
35
35
|
WishListToggle: ComponentType<any>;
|
|
36
36
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { TimerProps } from '@soma-vertical-web/core-components/src/lib/Timer/interfaces';
|
|
2
|
+
import { ITipbarContent } from '../../../cms/ContentTypes/Tipbar';
|
|
3
|
+
import { ICONSType, TIME_ZONEType, TIPBAR_CONFIGSType, Z_INDEX_WARType } from '../../../constants';
|
|
4
|
+
import { HTMLAttributes } from 'react';
|
|
5
|
+
import { ButtonProps } from '@soma-vertical-web/core-components/src/lib/Button/interfaces';
|
|
6
|
+
import { TextStructureWrapperProps } from '@soma-vertical-web/core-components/src/lib/TextStructure/interfaces';
|
|
7
|
+
import { Mode } from '@soma-vertical-web/foundations';
|
|
8
|
+
|
|
9
|
+
export type ModeType = (typeof Mode)[number];
|
|
10
|
+
export interface TipBarProps {
|
|
11
|
+
data: ITipbarContent;
|
|
12
|
+
CONSTANTS: {
|
|
13
|
+
ICONS: ICONSType;
|
|
14
|
+
TIME_ZONE: TIME_ZONEType;
|
|
15
|
+
TIPBAR_CONFIGS: TIPBAR_CONFIGSType;
|
|
16
|
+
Z_INDEX_WAR: Z_INDEX_WARType;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export type CountDownProps = TimerProps & {
|
|
20
|
+
dateEnd: Date;
|
|
21
|
+
dateInit?: Date;
|
|
22
|
+
};
|
|
23
|
+
export type StaticConfigsType = {
|
|
24
|
+
slideTranstionTimer?: number;
|
|
25
|
+
showCarouselArrows?: boolean;
|
|
26
|
+
hasCloseBtn?: boolean;
|
|
27
|
+
backgroundColor?: string;
|
|
28
|
+
textColorVariant?: string;
|
|
29
|
+
};
|
|
30
|
+
export interface WrapperProps extends HTMLAttributes<HTMLDivElement> {
|
|
31
|
+
carousel?: boolean;
|
|
32
|
+
highlightFirstSection?: boolean;
|
|
33
|
+
horizontalAlignHighlightedSection?: 'start' | 'center' | 'end';
|
|
34
|
+
}
|
|
35
|
+
export interface ItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
36
|
+
highlightFirstSection?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface FieldsScreeningProps {
|
|
39
|
+
staticZone: any;
|
|
40
|
+
type: string;
|
|
41
|
+
title?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CouponProps extends ButtonProps {
|
|
45
|
+
coupon: string;
|
|
46
|
+
feedbackTitle?: string;
|
|
47
|
+
feedbackDescription?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface TextContentProps extends TextStructureWrapperProps {
|
|
50
|
+
title?: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface CloseButtonProps {
|
|
54
|
+
mode?: ModeType;
|
|
55
|
+
showCarouselArrows?: boolean;
|
|
56
|
+
handleCloseTipbar: () => void;
|
|
57
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StructureProps, ContentProps } from '@soma-vertical-web/core-components/src/lib/SnackBar/interfaces';
|
|
2
|
+
import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
|
|
2
3
|
import { SendDatalayerEventType } from '../../data/events';
|
|
4
|
+
import { ICONSType, Z_INDEX_WARType } from '../../constants';
|
|
5
|
+
import { RootProps } from '../team-components/ProductCard';
|
|
6
|
+
import { ProductListCardProps } from '../team-components/ProductList';
|
|
7
|
+
import { ProductType_PDC } from '../../global/product';
|
|
3
8
|
|
|
4
9
|
export interface ObserverProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
10
|
observerOptions?: {
|
|
@@ -17,3 +22,20 @@ export interface ExternalScriptsProps extends PropsWithChildren {
|
|
|
17
22
|
siteId: string;
|
|
18
23
|
};
|
|
19
24
|
}
|
|
25
|
+
export interface SnackBarComponentProps extends StructureProps {
|
|
26
|
+
Z_INDEX_WAR: Z_INDEX_WARType;
|
|
27
|
+
subtitle?: string;
|
|
28
|
+
adornment?: ContentProps['adornment'];
|
|
29
|
+
supportChildren?: ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export interface CardProps extends ProductListCardProps, Pick<RootProps, 'size' | 'shelfTitle' | 'CONSTANTS' | 'WishListToggle'> {
|
|
32
|
+
onSkuSelection?: (sku: ProductType_PDC | null, skuList?: ProductType_PDC[]) => void;
|
|
33
|
+
}
|
|
34
|
+
export interface ShelfProps extends PropsWithChildren {
|
|
35
|
+
title?: string;
|
|
36
|
+
itemsPerPage: {
|
|
37
|
+
desktop: number;
|
|
38
|
+
mobile: number;
|
|
39
|
+
};
|
|
40
|
+
ICONS: ICONSType;
|
|
41
|
+
}
|