@soma-vertical-web/multi-lib 0.0.67 → 0.0.68

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.
Files changed (33) hide show
  1. package/cms/Sections/ProductCarousel/Composite/CommonShelf.d.ts +1 -1
  2. package/cms/Sections/ProductCarousel/Composite/RecommendationShelf.d.ts +1 -1
  3. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +2 -2
  4. package/cms/index.d.ts +2 -2
  5. package/index.js +19 -19
  6. package/index.mjs +6104 -5878
  7. package/layout/index.d.ts +28 -5
  8. package/layout/team-component/BuyPackage/BuyPackage.d.ts +1 -1
  9. package/layout/team-component/ProductCard/Composite/Root.d.ts +1 -1
  10. package/layout/team-component/ProductCard/ProductCard.d.ts +1 -1
  11. package/layout/team-component/ProductList/Composite/Card/Card.d.ts +1 -1
  12. package/layout/team-component/ProductList/ProductList.d.ts +1 -1
  13. package/layout/template/PDC/Composite/Empty/Empty.d.ts +1 -1
  14. package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
  15. package/layout/template/PDC/index.d.ts +2 -2
  16. package/layout/template/WishList/Composite/Feedback.d.ts +11 -0
  17. package/layout/template/WishList/Composite/Grid.d.ts +7 -0
  18. package/layout/template/WishList/Composite/Init.d.ts +11 -0
  19. package/layout/template/WishList/Composite/Toggle.d.ts +7 -0
  20. package/layout/template/WishList/WishList.d.ts +26 -0
  21. package/layout/template/WishList/helpers.d.ts +12 -0
  22. package/layout/template/WishList/index.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/style.css +1 -1
  25. package/types/cms/Sections/ProductCarousel/index.d.ts +0 -3
  26. package/types/constants.d.ts +12 -0
  27. package/types/contexts/contexts/plp.d.ts +0 -1
  28. package/types/layout/team-components/BuyPackage/index.d.ts +0 -1
  29. package/types/layout/team-components/ProductCard/index.d.ts +3 -3
  30. package/types/layout/team-components/ProductList/index.d.ts +0 -1
  31. package/types/layout/templates/PLP/index.d.ts +5 -10
  32. package/types/layout/templates/Wishlist/index.d.ts +21 -0
  33. package/types/layout/utils/index.d.ts +1 -1
@@ -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 { 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, Z_INDEX_WARType } from '../../../constants';
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
- content?: {
123
- link: string;
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' | 'WishListToggle'> {
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 {