@soma-vertical-web/multi-lib 0.0.39 → 0.0.40

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 (37) hide show
  1. package/cms/ContentTypes/Footer/Footer.d.ts +3 -0
  2. package/cms/ContentTypes/PLP/PLPContent.d.ts +3 -0
  3. package/cms/ContentTypes/PLP/PLPContentContext.d.ts +4 -0
  4. package/cms/Sections/ImageGrid/Component.d.ts +3 -0
  5. package/cms/Sections/TextContent/Component.d.ts +1 -2
  6. package/cms/index.d.ts +2 -1
  7. package/constants.d.ts +15 -0
  8. package/contexts/contexts/header/UserMenuContext.d.ts +1 -1
  9. package/contexts/index.d.ts +4 -0
  10. package/data/api/checkout/order-form/items/index.d.ts +1 -1
  11. package/data/api/checkout/order-form/items/update/index.d.ts +1 -1
  12. package/data/api/checkout/order-form/shipping/update/index.d.ts +1 -1
  13. package/index.js +17 -17
  14. package/index.mjs +3836 -3324
  15. package/layout/index.d.ts +5 -1
  16. package/layout/team-component/Header/Composite/HeaderDesktopWrapper.d.ts +1 -1
  17. package/layout/team-component/Header/Composite/HeaderMobileWrapper.d.ts +1 -1
  18. package/layout/team-component/Header/index.d.ts +1 -1
  19. package/layout/team-component/Menu/Composite/Desktop/MenuRoot.d.ts +5 -2
  20. package/layout/team-component/Menu/Composite/Mobile/MenuRoot.d.ts +7 -4
  21. package/layout/team-component/Menu/MenuDesktop.d.ts +4 -1
  22. package/layout/team-component/Menu/MenuMobile.d.ts +4 -3
  23. package/layout/team-component/UserMenu/Composite/Menu.d.ts +1 -1
  24. package/layout/team-component/UserMenu/Composite/Root.d.ts +1 -1
  25. package/layout/team-component/UserMenu/Composite/Tooltip.d.ts +5 -2
  26. package/layout/team-component/UserMenu/UserMenu.d.ts +6 -3
  27. package/layout/team-component/UserMenu/index.d.ts +5 -4
  28. package/package.json +1 -1
  29. package/style.css +1 -1
  30. package/types/cms/ContentTypes/Footer/index.d.ts +6 -2
  31. package/types/cms/ContentTypes/PLP/index.d.ts +45 -0
  32. package/types/cms/Sections/ProductCarousel/index.d.ts +77 -0
  33. package/types/constants.d.ts +19 -1
  34. package/types/layout/team-components/BuyPackage/index.d.ts +2 -2
  35. package/types/layout/team-components/Header/index.d.ts +4 -3
  36. package/types/layout/team-components/ProductCard/index.d.ts +5 -2
  37. package/types/layout/team-components/UserMenu/index.d.ts +4 -12
@@ -13,6 +13,7 @@ export interface CrossSellingFacet {
13
13
  export type InputSizes = Exclude<Size, 'textarea-size'>;
14
14
  export type ADD_TO_CARTType = Record<string, Record<string, string>>;
15
15
  export type ALIGNMENT_MENUType = 'flex-start' | 'center' | 'flex-end';
16
+ export type AUTH_TOKEN_COOKIEType = string;
16
17
  export type BENNEFITS_BAR_TITLEType = string;
17
18
  export type BUY_BUTTON_LABELSType = Record<string, string>;
18
19
  export type BUY_PACKAGEType = {
@@ -26,6 +27,7 @@ export type BUY_PACKAGEType = {
26
27
  };
27
28
  };
28
29
  export type COMMON_PAGE_COLUMN_GAPType = CSSProperties['gap'];
30
+ export type COMMON_PAGE_COLUMN_GAP_PDCType = CSSProperties['gap'];
29
31
  export type COMPONENT_LISTType = Record<string, string>;
30
32
  export type CREATE_CONTENTType = (jsonData: string) => EditorState;
31
33
  export type EXTENDED_BLOCK_RENDER_MAPType = Immutable.Map<any, any>;
@@ -52,6 +54,7 @@ export type NAME_SPLIT_SYMBOLType = string;
52
54
  export type OBJECT_FITS_DEFAULTType = (typeof ObjectFitsDefault)[number];
53
55
  export type PAYMENT_FLAGS_DICTIONARYType = Record<string, string>;
54
56
  export type PAYMENT_FLAGSType = any;
57
+ export type LEGAL_INFORMATION_TEXTType = string;
55
58
  export type PDP_INFOType = Record<string, Record<string, string>>;
56
59
  export type PLP_FILTERSType = {
57
60
  key: string;
@@ -98,4 +101,19 @@ export type TIPBAR_CONFIGSType = {
98
101
  };
99
102
  export type TOGGLE_STYLE_MODIFIERType = React.CSSProperties;
100
103
  export type Z_INDEX_WARType = Record<string, number>;
101
- export type StoreConfig_MainSellerIdType = string;
104
+ export type StoreConfigType = {
105
+ secureSubdomain: string;
106
+ storeUrl: string;
107
+ mainSeller: {
108
+ id: string;
109
+ name: string;
110
+ };
111
+ wishlistConfig: {
112
+ path: string;
113
+ label: string;
114
+ };
115
+ termsConfig: {
116
+ path: string;
117
+ label: string;
118
+ };
119
+ };
@@ -1,4 +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
+ 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, StoreConfigType, TEXTURE_IMAGEType, Z_INDEX_WARType } from '../../../constants';
2
2
  import { ProductType_PDC, HasVariant, ProductNode_PDC } from '../../../global/product';
3
3
 
4
4
  export interface SelectedItemType {
@@ -44,7 +44,7 @@ export interface BuyPackageProps {
44
44
  PRODUCT_CARD_TOP_WISHLIST_TOGGLE: PRODUCT_CARD_TOP_WISHLIST_TOGGLEType;
45
45
  PRODUCT_IMAGE_DIMENSIONS: PRODUCT_IMAGE_DIMENSIONSType;
46
46
  SECOND_IMAGE: SECOND_IMAGEType;
47
- StoreConfig_MainSellerId: StoreConfig_MainSellerIdType;
47
+ StoreConfig_MainSellerId: StoreConfigType['mainSeller']['id'];
48
48
  TEXTURE_IMAGE: TEXTURE_IMAGEType;
49
49
  Z_INDEX_WAR: Z_INDEX_WARType;
50
50
  };
@@ -2,7 +2,7 @@ import { SolidVariantsType, VariantsType } from '@soma-vertical-web/core-compone
2
2
  import { ComponentType, PropsWithChildren, ReactNode, RefObject } from 'react';
3
3
  import { HeaderCategories, HeaderNavLinks } from '../../../cms/ContentTypes/Header';
4
4
  import { AddToCartProviderProps } from '../../team-components/AddToCart';
5
- import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType } from '../../../constants';
5
+ import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType, StoreConfigType } from '../../../constants';
6
6
  import { DataSubmenu } from '../../../cms/Sections/HeaderSubmenu';
7
7
 
8
8
  export type HeaderPositionsType = 'absolute' | 'relative';
@@ -23,6 +23,8 @@ export interface HeaderContextProps extends HeaderProviderProps {
23
23
  structureRef: RefObject<HTMLDivElement | null>;
24
24
  rootRef: RefObject<HTMLDivElement | null>;
25
25
  tipbarRef: RefObject<HTMLDivElement | null>;
26
+ userMenuMobileRef: RefObject<HTMLButtonElement | null>;
27
+ userMenuDesktopRef: RefObject<HTMLButtonElement | null>;
26
28
  }
27
29
  export interface HeaderProviderProps extends PropsWithChildren {
28
30
  headerData: {
@@ -34,6 +36,7 @@ export interface HeaderProviderProps extends PropsWithChildren {
34
36
  subMenus: DataSubmenu[];
35
37
  };
36
38
  CONSTANTS: HEADER_CONSTANTS;
39
+ storeConfig: StoreConfigType;
37
40
  }
38
41
  export type HeaderScrollBehaviorType = {
39
42
  [key1 in 'desktop' | 'mobile']: {
@@ -53,12 +56,10 @@ export type HeaderConfigsType = {
53
56
  };
54
57
  export type HeaderContainerProps = {
55
58
  miniCart: ReactNode;
56
- UserMenu: ComponentType<any>;
57
59
  SearchModal: ComponentType<any>;
58
60
  tipBar?: ReactNode;
59
61
  };
60
62
  export type HeaderWrappersProps = {
61
- UserMenu: ComponentType<any>;
62
63
  SearchModal: ComponentType<any>;
63
64
  };
64
65
  export {};
@@ -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, StoreConfig_MainSellerIdType } 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 } 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: StoreConfig_MainSellerIdType;
33
+ StoreConfig_MainSellerId: StoreConfigType['mainSeller']['id'];
34
34
  };
35
35
  WishListToggle: ComponentType<any>;
36
36
  }
@@ -54,6 +54,9 @@ export interface ProductCardMediaProps extends HTMLAttributes<HTMLDivElement> {
54
54
  hasPriority?: boolean;
55
55
  showVideo?: boolean;
56
56
  }
57
+ export type ProductNode = {
58
+ node: ProductCardProps;
59
+ };
57
60
  export interface HeaderProps extends HTMLAttributes<HTMLDivElement> {
58
61
  product: ProductType_PDC;
59
62
  tag?: TagCommercialConsumer;
@@ -1,9 +1,11 @@
1
1
  import { Dispatch, HTMLAttributes, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
- import { MENU_INFOType, ICONSType, StoreConfigType, Z_INDEX_WARType } from '../../../constants';
2
+ import { ICONSType, StoreConfigType, Z_INDEX_WARType } from '../../../constants';
3
3
 
4
4
  export interface UserMenu_RootProps extends HTMLAttributes<HTMLDivElement> {
5
5
  Z_INDEX_WAR: Z_INDEX_WARType;
6
6
  component?: ReactNode;
7
+ isOpen: boolean;
8
+ setIsOpen: (value: boolean) => void;
7
9
  isMobile?: boolean | null;
8
10
  target?: HTMLButtonElement | null;
9
11
  }
@@ -11,6 +13,7 @@ export interface UserMenuContextProps extends Omit<UserMenu_RootProps, 'Z_INDEX_
11
13
  setIsLeaving: Dispatch<SetStateAction<boolean>>;
12
14
  isOpen: boolean;
13
15
  setIsOpen: (value: boolean) => void;
16
+ isMobile?: boolean | null;
14
17
  contentRef?: MutableRefObject<HTMLDivElement | null>;
15
18
  isLeaving: boolean;
16
19
  left?: number;
@@ -20,16 +23,6 @@ export interface UserMenuProviderProps extends Omit<UserMenu_RootProps, 'Z_INDEX
20
23
  delay?: number;
21
24
  gap?: number;
22
25
  }
23
- export interface UserMenuProps extends Pick<UserMenu_RootProps, 'target'>, HTMLAttributes<HTMLDivElement> {
24
- storeConfig: StoreConfigType;
25
- CONSTANTS: {
26
- MENU_INFO: MENU_INFOType;
27
- ICONS: ICONSType;
28
- Z_INDEX_WAR: Z_INDEX_WARType;
29
- };
30
- description?: string;
31
- text?: string;
32
- }
33
26
  export type LOGIN_MENU_OPTIONS_ARRAYProps = {
34
27
  ICONS: ICONSType;
35
28
  storeConfig: StoreConfigType;
@@ -38,7 +31,6 @@ export interface UserMenu_MenuProps extends HTMLAttributes<HTMLDivElement> {
38
31
  ICONS: ICONSType;
39
32
  storeConfig: StoreConfigType;
40
33
  onLogoutClick: () => void;
41
- isMobile?: boolean;
42
34
  isLogged?: boolean;
43
35
  }
44
36
  export interface UserMenu_ModalProps extends HTMLAttributes<HTMLDivElement> {