@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
@@ -0,0 +1,13 @@
1
+ import { IContentTypeResponseBase } from '../../../types/cms/Factories';
2
+
3
+ export declare const formatHelpButtonContent: (data: IContentTypeResponseBase[]) => {
4
+ iconLabel: string;
5
+ label: string;
6
+ content: never[];
7
+ helpButtonSize?: undefined;
8
+ } | {
9
+ iconLabel: any;
10
+ label: any;
11
+ helpButtonSize: any;
12
+ content: any;
13
+ };
@@ -0,0 +1,3 @@
1
+ import { HelpButtonContentProps } from '../../../types/cms/ContentTypes/HelpButton';
2
+
3
+ export declare const HelpButtonContent: ({ HelpButton, ICONS, className, ...props }: HelpButtonContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
@@ -1,3 +1,3 @@
1
1
  import { SearchContentProps } from '../../../types/cms/ContentTypes/Search';
2
2
 
3
- export declare const SearchContent: ({ SectionZone, CMS_PROJECT_NAME, storeId, previewId }: SearchContentProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const SearchContent: ({ SectionZone, CMS_PROJECT_NAME, storeId, previewId, }: SearchContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { EmbedLiveProps } from 'libs/multi-lib/src/types/cms/Sections/EmbedLive';
2
+
3
+ declare const EmbedLive: ({ data }: EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default EmbedLive;
@@ -0,0 +1,4 @@
1
+ import { ICommonShelf } from '../../../../types/cms/Sections/ProductCarousel';
2
+
3
+ declare const CollectionShelf: ({ collectionSearch, title, CONSTANTS, WishListToggle, }: ICommonShelf) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default CollectionShelf;
@@ -0,0 +1,4 @@
1
+ import { IRecomendationShelf } from '../../../../types/cms/Sections/ProductCarousel';
2
+
3
+ declare const RecommendationShelf: ({ recommendationSearch, title, CONSTANTS, WishListToggle, }: IRecomendationShelf) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default RecommendationShelf;
@@ -0,0 +1,4 @@
1
+ import { ProductCarouselProps, PDPProductCarouselProps } from '../../../types/cms/Sections/ProductCarousel';
2
+
3
+ export declare const PDPProductCarousel: ({ data, CONSTANTS, WishListToggle, }: PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
4
+ export declare const ProductCarousel: ({ data, CONSTANTS, WishListToggle, }: ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
@@ -0,0 +1,24 @@
1
+ type Params = {
2
+ count: number;
3
+ sort: string;
4
+ };
5
+ type CollectionSearchArgs = {
6
+ type: 'collectionSearch';
7
+ term?: string;
8
+ facets?: {
9
+ key: string;
10
+ value: string;
11
+ }[];
12
+ params?: Params;
13
+ };
14
+ type RecommendationSearchArgs = {
15
+ type: 'recommendationSearch';
16
+ facets?: {
17
+ key: 'whosawalsosaw' | 'whosawalsobought' | 'whoboughtalsobought' | 'accessories' | 'similars' | 'showtogether' | 'suggestions' | undefined;
18
+ value: string | undefined;
19
+ }[];
20
+ params?: Params;
21
+ };
22
+ type ProductsApiArgs = CollectionSearchArgs | RecommendationSearchArgs;
23
+ export declare const productsApi: (args: ProductsApiArgs) => Promise<any>;
24
+ export {};
package/cms/index.d.ts CHANGED
@@ -15,10 +15,13 @@ export declare const clientCMS: {
15
15
  TipbarScreening: ({ CONSTANTS, data }: import('../types/cms/ContentTypes/Tipbar').TipbarScreeningProps) => import("react/jsx-runtime").JSX.Element;
16
16
  ImageGrid: (data: import('../types/cms/Sections/ImageGrid').ImageGridSectionType) => import("react/jsx-runtime").JSX.Element;
17
17
  SearchPageScreening: ({ children, data, SectionZone, className, }: import('../types/cms/ContentTypes/Search').SearchPageScrenningProps) => import("react/jsx-runtime").JSX.Element;
18
- SearchContent: ({ SectionZone, CMS_PROJECT_NAME, storeId, previewId }: import('../types/cms/ContentTypes/Search').SearchContentProps) => import("react/jsx-runtime").JSX.Element;
18
+ SearchContent: ({ SectionZone, CMS_PROJECT_NAME, storeId, previewId, }: import('../types/cms/ContentTypes/Search').SearchContentProps) => import("react/jsx-runtime").JSX.Element;
19
19
  NewsletterSection: ({ data: { componentIndex, ...props }, ClientNewsletterSection, }: import('../types/cms/Sections/Newsletter').NewsLetterSectionType & {
20
20
  ClientNewsletterSection: React.ComponentType<any>;
21
21
  }) => import("react/jsx-runtime").JSX.Element;
22
+ PDPProductCarousel: ({ data, CONSTANTS, WishListToggle, }: import('../types/cms/Sections/ProductCarousel').PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
23
+ ProductCarousel: ({ data, CONSTANTS, WishListToggle, }: import('../types/cms/Sections/ProductCarousel').ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[];
24
+ EmbedLive: ({ data }: import('../types/cms/Sections/EmbedLive').EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
22
25
  };
23
26
  helpers: typeof helpers;
24
27
  };
package/cms/server.d.ts CHANGED
@@ -37,5 +37,6 @@ export declare const serverCMS: {
37
37
  description: string;
38
38
  } | null>;
39
39
  SearchPageContent: ({ children, SectionZone, className, ...props }: import('../types/cms/ContentTypes/Search').SearchPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
40
+ HelpButtonContent: ({ HelpButton, ICONS, className, ...props }: import('../types/cms/ContentTypes/HelpButton').HelpButtonContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
40
41
  };
41
42
  };
@@ -0,0 +1,3 @@
1
+ import { UseScrollRestorationProps } from '../../types/contexts/hooks';
2
+
3
+ export declare const useScrollRestoration: ({ productCount, searchParams, PLP_GRID_SCROLL_BACK }: UseScrollRestorationProps) => void;
@@ -0,0 +1,4 @@
1
+ import { UseScrollRestorationInfiniteProps } from '../../types/contexts/hooks';
2
+
3
+ export declare const useScrollRestorationInfinite: ({ pages, load, PLP_GRID_SCROLL_BACK }: UseScrollRestorationInfiniteProps) => void;
4
+ export default useScrollRestorationInfinite;