@soma-vertical-web/multi-lib 0.0.62 → 0.0.65

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 (73) hide show
  1. package/cms/ContentTypes/HelpButton/FormatHelpButtonContent.d.ts +13 -0
  2. package/cms/ContentTypes/HelpButton/HelpButtonContent.d.ts +3 -0
  3. package/cms/ContentTypes/Search/SearchContent.d.ts +1 -1
  4. package/cms/Sections/EmbedLive/Component.d.ts +4 -0
  5. package/cms/Sections/ProductCarousel/Composite/CommonShelf.d.ts +4 -0
  6. package/cms/Sections/ProductCarousel/Composite/RecommendationShelf.d.ts +4 -0
  7. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +4 -0
  8. package/cms/Sections/ProductCarousel/request.d.ts +24 -0
  9. package/cms/index.d.ts +4 -1
  10. package/cms/server.d.ts +1 -0
  11. package/contexts/hooks/useScrollRestoration.d.ts +3 -0
  12. package/contexts/hooks/useScrollRestorationInfinite.d.ts +4 -0
  13. package/index.js +16 -16
  14. package/index.mjs +5467 -5053
  15. package/index2.js +1 -1
  16. package/index2.mjs +875 -824
  17. package/layout/index.d.ts +1 -0
  18. package/layout/team-component/BuyPackage/helpers.d.ts +1 -1
  19. package/layout/team-component/HelpButton/Composite/Body.d.ts +4 -0
  20. package/layout/team-component/HelpButton/Composite/CallToAction.d.ts +7 -0
  21. package/layout/team-component/HelpButton/Composite/Wrapper.d.ts +4 -0
  22. package/layout/team-component/HelpButton/HelpButton.d.ts +4 -0
  23. package/layout/team-component/HelpButton/index.d.ts +1 -0
  24. package/layout/template/PDC/Composite/Empty/Empty.d.ts +7 -0
  25. package/layout/template/PDC/Composite/Empty/index.d.ts +1 -0
  26. package/layout/template/PDC/Composite/Filters/Filters.d.ts +7 -0
  27. package/layout/template/PDC/Composite/Filters/helpers.d.ts +4 -0
  28. package/layout/template/PDC/Composite/Filters/index.d.ts +1 -0
  29. package/layout/template/PDC/Composite/Grid/Banners.d.ts +7 -0
  30. package/layout/template/PDC/Composite/Grid/Grid.d.ts +7 -0
  31. package/layout/template/PDC/Composite/Grid/NavigationTotal.d.ts +8 -0
  32. package/layout/template/PDC/Composite/Grid/index.d.ts +1 -0
  33. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +7 -0
  34. package/layout/template/PDC/Composite/InfiniteScroller/Banners/index.d.ts +1 -0
  35. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +7 -0
  36. package/layout/template/PDC/Composite/InfiniteScroller/Loading/Loading.d.ts +7 -0
  37. package/layout/template/PDC/Composite/InfiniteScroller/Loading/index.d.ts +1 -0
  38. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Anchor.d.ts +7 -0
  39. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +7 -0
  40. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +9 -0
  41. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +7 -0
  42. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +7 -0
  43. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +21 -0
  44. package/layout/template/PDC/Composite/InfiniteScroller/index.d.ts +1 -0
  45. package/layout/template/PDC/Composite/Navigation/Navigation.d.ts +7 -0
  46. package/layout/template/PDC/Composite/Navigation/index.d.ts +1 -0
  47. package/layout/template/PDC/Composite/Notification/Notification.d.ts +7 -0
  48. package/layout/template/PDC/Composite/Notification/index.d.ts +1 -0
  49. package/layout/template/PDC/Composite/Pagination/Arrow/Arrow.d.ts +7 -0
  50. package/layout/template/PDC/Composite/Pagination/Arrow/index.d.ts +1 -0
  51. package/layout/template/PDC/Composite/Pagination/Arrow/interfaces.d.ts +8 -0
  52. package/layout/template/PDC/Composite/Pagination/Layout/Layout.d.ts +7 -0
  53. package/layout/template/PDC/Composite/Pagination/Layout/index.d.ts +1 -0
  54. package/layout/template/PDC/Composite/Pagination/PageEllipses/PageEllipses.d.ts +7 -0
  55. package/layout/template/PDC/Composite/Pagination/PageEllipses/index.d.ts +1 -0
  56. package/layout/template/PDC/Composite/Pagination/PageEllipses/interfaces.d.ts +10 -0
  57. package/layout/template/PDC/Composite/Pagination/Pages/Pages.d.ts +7 -0
  58. package/layout/template/PDC/Composite/Pagination/Pages/index.d.ts +1 -0
  59. package/layout/template/PDC/Composite/Pagination/Pages/interfaces.d.ts +7 -0
  60. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +7 -0
  61. package/layout/template/PDC/Composite/Pagination/helpers.d.ts +12 -0
  62. package/layout/template/PDC/Composite/Pagination/index.d.ts +1 -0
  63. package/layout/template/PDC/Composite/Products/Products.d.ts +7 -0
  64. package/layout/template/PDC/Composite/Products/index.d.ts +1 -0
  65. package/layout/template/PDC/Composite/Spinner/index.d.ts +7 -0
  66. package/layout/template/PDC/PDC.d.ts +7 -0
  67. package/layout/template/PDC/index.d.ts +39 -0
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/types/cms/ContentTypes/HelpButton/index.d.ts +17 -6
  71. package/types/cms/Sections/EmbedLive/index.d.ts +13 -0
  72. package/types/cms/Sections/ProductCarousel/index.d.ts +36 -2
  73. package/types/layout/team-components/HelpButton/index.d.ts +9 -3
@@ -1,4 +1,5 @@
1
1
  import { PDPShelfType } from '../../../../constants';
2
+ import { BUY_BUTTON_LABELSType, BUY_PACKAGEType, FREIGHT_CALCULATIONType, ICONSType, MAIN_IMAGEType, PLP_GRID_SCROLL_BACKType, PLP_INFINITE_SCROLLType, PLP_PRODUCT_SIMILAR_DELAYType, PLP_SHOW_VIDEO_ON_PRODUCT_CARDType, PLP_SORT_DEFAULTType, 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
3
  import { BuyPackageProductCardProps, CarouselController, CarouselPagination } from '../../../layout/team-components/BuyPackage';
3
4
  import { ProductNode } from '../../../layout/team-components/ProductCard';
4
5
  import { ISectionResponseBase } from '../../Factories';
@@ -25,11 +26,34 @@ export interface ICollectionSearch {
25
26
  }[];
26
27
  sort?: string;
27
28
  }
28
- export interface IRecomendationShelf {
29
+ export interface ConstantsType {
30
+ CONSTANTS: {
31
+ BUY_BUTTON_LABELS: BUY_BUTTON_LABELSType;
32
+ BUY_PACKAGE: BUY_PACKAGEType;
33
+ FREIGHT_CALCULATION: FREIGHT_CALCULATIONType;
34
+ ICONS: ICONSType;
35
+ ITEMS_DEFAULT_SORT: PLP_SORT_DEFAULTType;
36
+ MAIN_IMAGE: MAIN_IMAGEType;
37
+ PLP_GRID_SCROLL_BACK: PLP_GRID_SCROLL_BACKType;
38
+ PLP_INFINITE_SCROLL: PLP_INFINITE_SCROLLType;
39
+ PLP_PRODUCT_SIMILAR_DELAY: PLP_PRODUCT_SIMILAR_DELAYType;
40
+ PLP_SHOW_VIDEO_ON_PRODUCT_CARD: PLP_SHOW_VIDEO_ON_PRODUCT_CARDType;
41
+ PRODUCT_CARD_IMAGE_ASPECT_RATIO: PRODUCT_CARD_IMAGE_ASPECT_RATIOType;
42
+ PRODUCT_CARD_TEXTS: PRODUCT_CARD_TEXTSType;
43
+ PRODUCT_CARD_TOP_WISHLIST_TOGGLE: PRODUCT_CARD_TOP_WISHLIST_TOGGLEType;
44
+ PRODUCT_IMAGE_DIMENSIONS: PRODUCT_IMAGE_DIMENSIONSType;
45
+ SECOND_IMAGE: SECOND_IMAGEType;
46
+ TEXTURE_IMAGE: TEXTURE_IMAGEType;
47
+ Z_INDEX_WAR: Z_INDEX_WARType;
48
+ StoreConfig_MainSellerId: StoreConfigType['mainSeller']['id'];
49
+ };
50
+ WishListToggle: React.ComponentType<any>;
51
+ }
52
+ export interface IRecomendationShelf extends ConstantsType {
29
53
  recommendationSearch?: IRecomendationSearch;
30
54
  title?: string;
31
55
  }
32
- export interface ICommonShelf {
56
+ export interface ICommonShelf extends ConstantsType {
33
57
  collectionSearch?: ICollectionSearch;
34
58
  title?: string;
35
59
  }
@@ -49,6 +73,11 @@ export interface ProductCarouselSectionType extends ISectionResponseBase {
49
73
  }[];
50
74
  };
51
75
  }
76
+ export interface ProductCarouselProps {
77
+ data: ProductCarouselSectionType;
78
+ CONSTANTS: ConstantsType['CONSTANTS'];
79
+ WishListToggle: ConstantsType['WishListToggle'];
80
+ }
52
81
  export interface PDPProductCarouselSectionType extends ISectionResponseBase {
53
82
  data: {
54
83
  config: {
@@ -62,6 +91,11 @@ export interface PDPProductCarouselSectionType extends ISectionResponseBase {
62
91
  }[];
63
92
  };
64
93
  }
94
+ export interface PDPProductCarouselProps {
95
+ data: PDPProductCarouselSectionType;
96
+ CONSTANTS: ConstantsType['CONSTANTS'];
97
+ WishListToggle: ConstantsType['WishListToggle'];
98
+ }
65
99
  export interface ProductShelfProps {
66
100
  products: ProductNode[];
67
101
  title?: string;
@@ -1,17 +1,19 @@
1
1
  import { TMode, TSizesSmallExtended } from '@soma-vertical-web/foundations';
2
- import { HelpButtonContentType } from '../../../cms/ContentTypes/HelpButton';
2
+ import { FormatHelpButtonProps, HelpButtonContentType } from '../../../cms/ContentTypes/HelpButton';
3
3
  import { HTMLAttributes, PropsWithChildren } from 'react';
4
+ import { ICONSType } from '../../../constants';
4
5
 
5
6
  export interface HelpButtonProps extends HTMLAttributes<HTMLDivElement> {
6
7
  iconLabel?: string;
7
8
  buttonLabel?: string;
8
- data?: HelpButtonBodyProps[];
9
+ data?: FormatHelpButtonProps;
10
+ ICONS: ICONSType;
9
11
  }
10
12
  export interface HelpButtonWrapperProps extends HTMLAttributes<HTMLDivElement> {
11
13
  }
12
14
  export interface HelpButtonCallToActionProps extends PropsWithChildren {
13
15
  }
14
- export interface HelpButtonBodyProps {
16
+ export interface HelpButtonBodyDataProps {
15
17
  type: HelpButtonContentType;
16
18
  id: string;
17
19
  title: string;
@@ -23,3 +25,7 @@ export interface HelpButtonBodyProps {
23
25
  buttonSize?: TSizesSmallExtended;
24
26
  buttonIcon?: string;
25
27
  }
28
+ export interface HelpButtonBodyProps {
29
+ data?: HelpButtonBodyDataProps[];
30
+ ICONS: ICONSType;
31
+ }