@soma-vertical-web/multi-lib 0.0.63 → 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 (58) hide show
  1. package/cms/Sections/EmbedLive/Component.d.ts +4 -0
  2. package/cms/Sections/ProductCarousel/Composite/CommonShelf.d.ts +4 -0
  3. package/cms/Sections/ProductCarousel/Composite/RecommendationShelf.d.ts +4 -0
  4. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +4 -0
  5. package/cms/Sections/ProductCarousel/request.d.ts +24 -0
  6. package/cms/index.d.ts +3 -0
  7. package/contexts/hooks/useScrollRestoration.d.ts +3 -0
  8. package/contexts/hooks/useScrollRestorationInfinite.d.ts +4 -0
  9. package/index.js +19 -19
  10. package/index.mjs +4990 -4693
  11. package/layout/template/PDC/Composite/Empty/Empty.d.ts +7 -0
  12. package/layout/template/PDC/Composite/Empty/index.d.ts +1 -0
  13. package/layout/template/PDC/Composite/Filters/Filters.d.ts +7 -0
  14. package/layout/template/PDC/Composite/Filters/helpers.d.ts +4 -0
  15. package/layout/template/PDC/Composite/Filters/index.d.ts +1 -0
  16. package/layout/template/PDC/Composite/Grid/Banners.d.ts +7 -0
  17. package/layout/template/PDC/Composite/Grid/Grid.d.ts +7 -0
  18. package/layout/template/PDC/Composite/Grid/NavigationTotal.d.ts +8 -0
  19. package/layout/template/PDC/Composite/Grid/index.d.ts +1 -0
  20. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +7 -0
  21. package/layout/template/PDC/Composite/InfiniteScroller/Banners/index.d.ts +1 -0
  22. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +7 -0
  23. package/layout/template/PDC/Composite/InfiniteScroller/Loading/Loading.d.ts +7 -0
  24. package/layout/template/PDC/Composite/InfiniteScroller/Loading/index.d.ts +1 -0
  25. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Anchor.d.ts +7 -0
  26. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +7 -0
  27. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +9 -0
  28. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +7 -0
  29. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +7 -0
  30. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +21 -0
  31. package/layout/template/PDC/Composite/InfiniteScroller/index.d.ts +1 -0
  32. package/layout/template/PDC/Composite/Navigation/Navigation.d.ts +7 -0
  33. package/layout/template/PDC/Composite/Navigation/index.d.ts +1 -0
  34. package/layout/template/PDC/Composite/Notification/Notification.d.ts +7 -0
  35. package/layout/template/PDC/Composite/Notification/index.d.ts +1 -0
  36. package/layout/template/PDC/Composite/Pagination/Arrow/Arrow.d.ts +7 -0
  37. package/layout/template/PDC/Composite/Pagination/Arrow/index.d.ts +1 -0
  38. package/layout/template/PDC/Composite/Pagination/Arrow/interfaces.d.ts +8 -0
  39. package/layout/template/PDC/Composite/Pagination/Layout/Layout.d.ts +7 -0
  40. package/layout/template/PDC/Composite/Pagination/Layout/index.d.ts +1 -0
  41. package/layout/template/PDC/Composite/Pagination/PageEllipses/PageEllipses.d.ts +7 -0
  42. package/layout/template/PDC/Composite/Pagination/PageEllipses/index.d.ts +1 -0
  43. package/layout/template/PDC/Composite/Pagination/PageEllipses/interfaces.d.ts +10 -0
  44. package/layout/template/PDC/Composite/Pagination/Pages/Pages.d.ts +7 -0
  45. package/layout/template/PDC/Composite/Pagination/Pages/index.d.ts +1 -0
  46. package/layout/template/PDC/Composite/Pagination/Pages/interfaces.d.ts +7 -0
  47. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +7 -0
  48. package/layout/template/PDC/Composite/Pagination/helpers.d.ts +12 -0
  49. package/layout/template/PDC/Composite/Pagination/index.d.ts +1 -0
  50. package/layout/template/PDC/Composite/Products/Products.d.ts +7 -0
  51. package/layout/template/PDC/Composite/Products/index.d.ts +1 -0
  52. package/layout/template/PDC/Composite/Spinner/index.d.ts +7 -0
  53. package/layout/template/PDC/PDC.d.ts +7 -0
  54. package/layout/template/PDC/index.d.ts +39 -0
  55. package/package.json +1 -1
  56. package/style.css +1 -1
  57. package/types/cms/Sections/EmbedLive/index.d.ts +13 -0
  58. package/types/cms/Sections/ProductCarousel/index.d.ts +36 -2
@@ -0,0 +1,7 @@
1
+ import { EmptyProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Empty: {
4
+ ({ content, className, ICONS, PLP_NOT_RESULT }: EmptyProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Empty;
@@ -0,0 +1 @@
1
+ export { default } from './Empty';
@@ -0,0 +1,7 @@
1
+ import { FiltersProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Filters: {
4
+ ({ ICONS, PLP_FILTERS, PLP_FILTERS_COLORS, PLP_FILTERS_EMPTY, PLP_FILTERS_TITLE, PLP_SIZE_ORDER, }: FiltersProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Filters;
@@ -0,0 +1,4 @@
1
+ import { FacetValueRange } from '../../../../../types/data/api/search/facets';
2
+
3
+ export declare const checkPriceRange: (values: FacetValueRange[], value: string) => number[];
4
+ export declare const getUpdatedPriceRange: (value: string, minFacet: number, maxFacet: number) => string;
@@ -0,0 +1 @@
1
+ export { default } from './Filters';
@@ -0,0 +1,7 @@
1
+ import { BannersProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Banners: {
4
+ ({ gap, isMobile, ICONS, PRODUCT_CARD_IMAGE_ASPECT_RATIO }: BannersProps): import("react/jsx-runtime").JSX.Element[] | null;
5
+ displayName: string;
6
+ };
7
+ export default Banners;
@@ -0,0 +1,7 @@
1
+ import { GridProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Grid: {
4
+ ({ infinite, InfiniteScrollerProps, PDCContentProps }: GridProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Grid;
@@ -0,0 +1,8 @@
1
+ declare const NavigationTotal: {
2
+ ({ parent, total, }: {
3
+ parent: HTMLElement | null;
4
+ total: number;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ export default NavigationTotal;
@@ -0,0 +1 @@
1
+ export { default } from './Grid';
@@ -0,0 +1,7 @@
1
+ import { InfiniteBannersProps } from '../../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Banners: {
4
+ ({ columns, count, gap, ICONS, PRODUCT_CARD_IMAGE_ASPECT_RATIO }: InfiniteBannersProps): import("react/jsx-runtime").JSX.Element[] | null;
5
+ displayName: string;
6
+ };
7
+ export default Banners;
@@ -0,0 +1 @@
1
+ export { default } from './Banners';
@@ -0,0 +1,7 @@
1
+ import { InfiniteScrollerProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const InfiniteScroller: {
4
+ ({ Notification, searchParams, ITEMS_PER_PAGE, ...props }: InfiniteScrollerProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default InfiniteScroller;
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ declare const Loading: {
4
+ (props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element | null;
5
+ displayName: string;
6
+ };
7
+ export default Loading;
@@ -0,0 +1 @@
1
+ export { default } from './Loading';
@@ -0,0 +1,7 @@
1
+ import { PageSentinelProps } from '../../../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Anchor: {
4
+ ({ page, ...props }: PageSentinelProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Anchor;
@@ -0,0 +1,7 @@
1
+ import { PageCardProps } from '../../../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Card: {
4
+ ({ first, gap, isMobile, item, index, last, order, page, showVideo, WishListToggle, CONSTANTS }: PageCardProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Card;
@@ -0,0 +1,9 @@
1
+ import { PageSentinelProps } from '../../../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Loader: {
4
+ ({ type, page, ...props }: PageSentinelProps & {
5
+ type?: "page" | "default";
6
+ }): false | import("react/jsx-runtime").JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export default Loader;
@@ -0,0 +1,7 @@
1
+ import { PageSentinelProps } from '../../../../../../../types/layout/templates/PLP/index';
2
+
3
+ declare const NextPage: {
4
+ ({ page, ...props }: PageSentinelProps): import("react/jsx-runtime").JSX.Element | null;
5
+ displayName: string;
6
+ };
7
+ export default NextPage;
@@ -0,0 +1,7 @@
1
+ import { PageProps } from '../../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Page: {
4
+ ({ count, gap, page, WishListToggle, CONSTANTS }: PageProps): import("react/jsx-runtime").JSX.Element[] | null;
5
+ displayName: string;
6
+ };
7
+ export default Page;
@@ -0,0 +1,21 @@
1
+ declare const Page: {
2
+ Anchor: {
3
+ ({ page, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ Card: {
7
+ ({ first, gap, isMobile, item, index, last, order, page, showVideo, WishListToggle, CONSTANTS }: import('../../../../../../types/layout/templates/PLP').PageCardProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ Loader: {
11
+ ({ type, page, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps & {
12
+ type?: "page" | "default";
13
+ }): false | import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ NextPage: {
17
+ ({ page, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps): import("react/jsx-runtime").JSX.Element | null;
18
+ displayName: string;
19
+ };
20
+ };
21
+ export default Page;
@@ -0,0 +1 @@
1
+ export { default } from './InfiniteScroller';
@@ -0,0 +1,7 @@
1
+ import { NavigationProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Navigation: {
4
+ ({ searchParams, ICONS, PDC_NAVIGATION, PLP_FILTERS, PLP_FILTERS_COLORS, Z_INDEX_WAR }: NavigationProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Navigation;
@@ -0,0 +1 @@
1
+ export { default } from './Navigation';
@@ -0,0 +1,7 @@
1
+ import { NotificationProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Notification: {
4
+ ({ skus, ...props }: NotificationProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Notification;
@@ -0,0 +1 @@
1
+ export { default } from './Notification';
@@ -0,0 +1,7 @@
1
+ import { ArrowProps } from './interfaces';
2
+
3
+ declare const Arrow: {
4
+ ({ currentPage, callback, type, ...props }: ArrowProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Arrow;
@@ -0,0 +1 @@
1
+ export { default } from './Arrow';
@@ -0,0 +1,8 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface ArrowProps extends HTMLAttributes<HTMLButtonElement> {
4
+ currentPage: number;
5
+ disabled?: boolean;
6
+ callback?(value: string): void;
7
+ type: string;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { LayoutProps } from '../../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Layout: {
4
+ ({ children, endPage, page, total, selectedPage, ITEMS_PER_SECTION }: LayoutProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Layout;
@@ -0,0 +1 @@
1
+ export { default } from './Layout';
@@ -0,0 +1,7 @@
1
+ import { PageEllipsesProps } from './interfaces';
2
+
3
+ declare const PageEllipses: {
4
+ ({ active, prev, ellipses, page, selectedPage, }: PageEllipsesProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default PageEllipses;
@@ -0,0 +1 @@
1
+ export { default } from './PageEllipses';
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { LayoutProps } from '../../../../../../types/layout/templates/PLP';
3
+
4
+ export interface PageEllipsesProps extends HTMLAttributes<HTMLDivElement>, Pick<LayoutProps, 'selectedPage'> {
5
+ active?: boolean;
6
+ currentPage: number;
7
+ prev?: boolean;
8
+ ellipses?: boolean;
9
+ page: number;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PagesProps } from '../../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Pages: {
4
+ ({ currentPage, pages, searchParams, VARIANT_PAGINATION }: PagesProps): import("react/jsx-runtime").JSX.Element[] | null;
5
+ displayName: string;
6
+ };
7
+ export default Pages;
@@ -0,0 +1 @@
1
+ export { default } from './Pages';
@@ -0,0 +1,7 @@
1
+ import { ReadonlyURLSearchParams } from 'next/navigation';
2
+
3
+ export interface PagesProps {
4
+ currentPage: number;
5
+ searchParams: ReadonlyURLSearchParams;
6
+ pages: number[];
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PaginationProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Pagination: {
4
+ ({ query, type, searchParams, ITEMS_DEFAULT_SORT, ITEMS_PER_PAGE, ITEMS_PER_SECTION, SEARCH_PAGE_ITEM_THRESHOLD, VARIANT_PAGINATION, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Pagination;
@@ -0,0 +1,12 @@
1
+ import { ReadonlyURLSearchParams } from 'next/navigation';
2
+ import { PaginantionOptionsProps } from '../../../../../types/layout/templates/PLP';
3
+
4
+ export declare const getCurrentPagination: () => number;
5
+ export declare const getPage: (index: number, itemsPerPage: number, totalPages: number) => number;
6
+ export declare const createQueryString: (name: string, value: string, searchParams: ReadonlyURLSearchParams) => string;
7
+ export declare const createPages: (startPage: number, endPage: number) => number[];
8
+ export declare const paginationOptions: ({ currentPage, total, maxVisiblePages, SEARCH_PAGE_ITEM_THRESHOLD }: PaginantionOptionsProps) => {
9
+ startPage: number;
10
+ endPage: number;
11
+ totalPages: number;
12
+ };
@@ -0,0 +1 @@
1
+ export { default } from './Pagination';
@@ -0,0 +1,7 @@
1
+ import { ProductsProps } from '../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Products: {
4
+ ({ isMobile, items, WishListToggle, ICONS, NEWSLETTER_CONFIGS, NOTIFY_INFO, PRODUCTCARD_CONSTANTS }: ProductsProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Products;
@@ -0,0 +1 @@
1
+ export { default } from './Products';
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ declare const Spinner: {
4
+ (props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Spinner;
@@ -0,0 +1,7 @@
1
+ import { PLPRootProps } from '../../../types/layout/templates/PLP';
2
+
3
+ declare const PDC: {
4
+ ({ searchParams, className, PLP_INFINITE_SCROLL, PLP_SORT_DEFAULT, PLPFiltersProps, PLPGridProps, PLPNavigationProps, PLPPaginationProps, }: PLPRootProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default PDC;
@@ -0,0 +1,39 @@
1
+ declare const PDC: {
2
+ Empty: {
3
+ ({ content, className, ICONS, PLP_NOT_RESULT }: import('../../../types/layout/templates/PLP').EmptyProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ Filters: {
7
+ ({ ICONS, PLP_FILTERS, PLP_FILTERS_COLORS, PLP_FILTERS_EMPTY, PLP_FILTERS_TITLE, PLP_SIZE_ORDER, }: import('../../../types/layout/templates/PLP').FiltersProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ Grid: {
11
+ ({ infinite, InfiniteScrollerProps, PDCContentProps }: import('../../../types/layout/templates/PLP').GridProps): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ InfiniteScroller: {
15
+ ({ Notification, searchParams, ITEMS_PER_PAGE, ...props }: import('../../../types/layout/templates/PLP').InfiniteScrollerProps): import("react/jsx-runtime").JSX.Element;
16
+ displayName: string;
17
+ };
18
+ Spinner: {
19
+ (props: import('react').HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
20
+ displayName: string;
21
+ };
22
+ Navigation: {
23
+ ({ searchParams, ICONS, PDC_NAVIGATION, PLP_FILTERS, PLP_FILTERS_COLORS, Z_INDEX_WAR }: import('../../../types/layout/templates/PLP').NavigationProps): import("react/jsx-runtime").JSX.Element;
24
+ displayName: string;
25
+ };
26
+ Notification: {
27
+ ({ skus, ...props }: import('../../../types/layout/templates/PLP').NotificationProps): import("react/jsx-runtime").JSX.Element;
28
+ displayName: string;
29
+ };
30
+ Pagination: {
31
+ ({ query, type, searchParams, ITEMS_DEFAULT_SORT, ITEMS_PER_PAGE, ITEMS_PER_SECTION, SEARCH_PAGE_ITEM_THRESHOLD, VARIANT_PAGINATION, ...props }: import('../../../types/layout/templates/PLP').PaginationProps): import("react/jsx-runtime").JSX.Element;
32
+ displayName: string;
33
+ };
34
+ Products: {
35
+ ({ isMobile, items, WishListToggle, ICONS, NEWSLETTER_CONFIGS, NOTIFY_INFO, PRODUCTCARD_CONSTANTS }: import('../../../types/layout/templates/PLP').ProductsProps): import("react/jsx-runtime").JSX.Element;
36
+ displayName: string;
37
+ };
38
+ };
39
+ export default PDC;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {