@soma-vertical-web/multi-lib 1.0.30 → 1.0.31

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 (45) hide show
  1. package/contexts/contexts/plp/FilterContext.d.ts +1 -1
  2. package/contexts/contexts/plp/PLPContext.d.ts +1 -1
  3. package/contexts/contexts/search/Facets.d.ts +1 -1
  4. package/contexts/contexts/search/QueryFacets.d.ts +5 -0
  5. package/contexts/contexts/search/QueryProducts.d.ts +5 -0
  6. package/contexts/contexts/search/RootTank.d.ts +9 -0
  7. package/contexts/contexts/search/Search.d.ts +1 -1
  8. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  9. package/contexts/index.d.ts +4 -4
  10. package/contexts/store/plp-scroll.d.ts +3 -0
  11. package/data/helpers/plp/index.d.ts +7 -3
  12. package/data/helpers/search/facets.d.ts +1 -0
  13. package/data/helpers/search/index.d.ts +4 -0
  14. package/data/helpers/search/product/index.d.ts +13 -1
  15. package/data/helpers/search/search.d.ts +1 -0
  16. package/data/index.d.ts +2 -0
  17. package/index-BFjIPkXv.js +4 -0
  18. package/{index-BM8vTUKg.mjs → index-CIVkR1d_.mjs} +776 -712
  19. package/index.js +18 -18
  20. package/index.mjs +11006 -8750
  21. package/index2.js +2 -2
  22. package/index2.mjs +281 -286
  23. package/layout/index.d.ts +2 -2
  24. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  25. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +11 -0
  26. package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +1 -0
  27. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +7 -0
  28. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  29. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  30. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
  31. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  32. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
  33. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  34. package/layout/template/PDC/PDC.d.ts +1 -1
  35. package/layout/template/PDC/index.d.ts +1 -1
  36. package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
  37. package/package.json +1 -1
  38. package/server.d.ts +4 -0
  39. package/style.css +1 -1
  40. package/types/contexts/contexts/plp.d.ts +63 -21
  41. package/types/contexts/contexts/search.d.ts +39 -17
  42. package/types/contexts/hooks/index.d.ts +0 -2
  43. package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
  44. package/types/layout/templates/PLP/index.d.ts +7 -3
  45. package/index-CZjoMPpQ.js +0 -4
package/layout/index.d.ts CHANGED
@@ -267,7 +267,7 @@ export declare const layout: {
267
267
  };
268
268
  };
269
269
  pdc: {
270
- ({ className, ...props }: import('../types/layout/templates/PLP').PLPRootProps): import("react/jsx-runtime").JSX.Element;
270
+ ({ className }: import('../types/layout/templates/PLP').PLPRootProps): import("react/jsx-runtime").JSX.Element;
271
271
  displayName: string;
272
272
  };
273
273
  pdc_composites: {
@@ -300,7 +300,7 @@ export declare const layout: {
300
300
  displayName: string;
301
301
  };
302
302
  Pagination: {
303
- ({ query, type, searchParams, ITEMS_DEFAULT_SORT, ITEMS_PER_SECTION, ITEMS_PER_PAGE, SEARCH_PAGE_ITEM_THRESHOLD, VARIANT_PAGINATION, ...props }: import('../types/layout/templates/PLP').PaginationProps): import("react/jsx-runtime").JSX.Element;
303
+ ({ query, type, searchParams, ITEMS_DEFAULT_SORT, ITEMS_PER_SECTION, ITEMS_PER_PAGE, SEARCH_PAGE_ITEM_THRESHOLD, VARIANT_PAGINATION, ...props }: import('../types/layout/templates/PLP').PaginationProps): import("react/jsx-runtime").JSX.Element | null;
304
304
  displayName: string;
305
305
  };
306
306
  Products: {
@@ -1,7 +1,7 @@
1
1
  import { InfiniteBannersProps } from '../../../../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const Banners: {
4
- ({ columns, count, gap, className }: InfiniteBannersProps): import("react/jsx-runtime").JSX.Element[] | null;
4
+ ({ columns, gap, className }: InfiniteBannersProps): import("react/jsx-runtime").JSX.Element[] | null;
5
5
  displayName: string;
6
6
  };
7
7
  export default Banners;
@@ -0,0 +1,11 @@
1
+ import { State } from '../../../../../../types/data/api/search';
2
+ import { PLP_SORT_DEFAULTType } from '../../../../../../types/constants';
3
+
4
+ declare const Filters: {
5
+ ({ sort, ...props }: {
6
+ state: State;
7
+ sort: PLP_SORT_DEFAULTType;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default Filters;
@@ -0,0 +1 @@
1
+ export { default } from './Filters';
@@ -0,0 +1,7 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ declare const AnchorPDP: {
4
+ (props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default AnchorPDP;
@@ -1,7 +1,7 @@
1
1
  import { PageCardProps } from '../../../../../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const Card: {
4
- ({ first, gap, isMobile, item, index, last, order, page, showVideo, }: PageCardProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ first, gap, empty, isMobile, item, index, order, page, showVideo, }: PageCardProps): import("react/jsx-runtime").JSX.Element | undefined;
5
5
  displayName: string;
6
6
  };
7
7
  export default Card;
@@ -3,7 +3,7 @@ import { PageSentinelProps } from '../../../../../../../types/layout/templates/P
3
3
  declare const Loader: {
4
4
  ({ type, page, ...props }: PageSentinelProps & {
5
5
  type?: "page" | "default";
6
- }): false | import("react/jsx-runtime").JSX.Element;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export default Loader;
@@ -1,7 +1,10 @@
1
1
  import { PageSentinelProps } from '../../../../../../../types/layout/templates/PLP/index';
2
2
 
3
3
  declare const NextPage: {
4
- ({ page, ...props }: PageSentinelProps): import("react/jsx-runtime").JSX.Element | null;
4
+ ({ nextPage, page, total, ...props }: PageSentinelProps & {
5
+ nextPage?: boolean;
6
+ total: number;
7
+ }): import("react/jsx-runtime").JSX.Element | null;
5
8
  displayName: string;
6
9
  };
7
10
  export default NextPage;
@@ -1,7 +1,7 @@
1
- import { PageProps } from '../../../../../../types/layout/templates/PLP';
1
+ import { PageScrollProps } from '../../../../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const Page: {
4
- ({ count, gap, page }: PageProps): import("react/jsx-runtime").JSX.Element[] | null;
4
+ ({ page }: PageScrollProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default Page;
@@ -3,18 +3,25 @@ declare const Page: {
3
3
  ({ page, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
+ AnchorPDP: {
7
+ (props: import('react').HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
6
10
  Card: {
7
- ({ first, gap, isMobile, item, index, last, order, page, showVideo, }: import('../../../../../../types/layout/templates/PLP').PageCardProps): import("react/jsx-runtime").JSX.Element;
11
+ ({ first, gap, empty, isMobile, item, index, order, page, showVideo, }: import('../../../../../../types/layout/templates/PLP').PageCardProps): import("react/jsx-runtime").JSX.Element | undefined;
8
12
  displayName: string;
9
13
  };
10
14
  Loader: {
11
15
  ({ type, page, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps & {
12
16
  type?: "page" | "default";
13
- }): false | import("react/jsx-runtime").JSX.Element;
17
+ }): import("react/jsx-runtime").JSX.Element;
14
18
  displayName: string;
15
19
  };
16
20
  NextPage: {
17
- ({ page, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps): import("react/jsx-runtime").JSX.Element | null;
21
+ ({ nextPage, page, total, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps & {
22
+ nextPage?: boolean;
23
+ total: number;
24
+ }): import("react/jsx-runtime").JSX.Element | null;
18
25
  displayName: string;
19
26
  };
20
27
  };
@@ -1,7 +1,7 @@
1
1
  import { PaginationProps } from '../../../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const Pagination: {
4
- ({ query, type, searchParams, ITEMS_DEFAULT_SORT, ITEMS_PER_SECTION, ITEMS_PER_PAGE, SEARCH_PAGE_ITEM_THRESHOLD, VARIANT_PAGINATION, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ query, type, searchParams, ITEMS_DEFAULT_SORT, ITEMS_PER_SECTION, ITEMS_PER_PAGE, SEARCH_PAGE_ITEM_THRESHOLD, VARIANT_PAGINATION, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element | null;
5
5
  displayName: string;
6
6
  };
7
7
  export default Pagination;
@@ -1,7 +1,7 @@
1
1
  import { PLPRootProps } from '../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const PDC: {
4
- ({ className, ...props }: PLPRootProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ className }: PLPRootProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default PDC;
@@ -28,7 +28,7 @@ declare const PDC: {
28
28
  displayName: string;
29
29
  };
30
30
  Pagination: {
31
- ({ query, type, searchParams, ITEMS_DEFAULT_SORT, ITEMS_PER_SECTION, ITEMS_PER_PAGE, SEARCH_PAGE_ITEM_THRESHOLD, VARIANT_PAGINATION, ...props }: import('../../../types/layout/templates/PLP').PaginationProps): import("react/jsx-runtime").JSX.Element;
31
+ ({ query, type, searchParams, ITEMS_DEFAULT_SORT, ITEMS_PER_SECTION, ITEMS_PER_PAGE, SEARCH_PAGE_ITEM_THRESHOLD, VARIANT_PAGINATION, ...props }: import('../../../types/layout/templates/PLP').PaginationProps): import("react/jsx-runtime").JSX.Element | null;
32
32
  displayName: string;
33
33
  };
34
34
  Products: {
@@ -0,0 +1,7 @@
1
+ import { ProductsProps } from '../../../../types/layout/templates/PLP';
2
+
3
+ declare const Products: {
4
+ ({ isMobile, items, BUY_BUTTON_LABELS, ICONS, MAIN_IMAGE, NEWSLETTER_CONFIGS, NOTIFY_INFO, PLP_GRID_SCROLL_BACK, PLP_INFINITE_SCROLL, PLP_PRODUCT_SIMILAR_DELAY, PLP_SHOW_VIDEO_ON_PRODUCT_CARD, PLP_SIZE_ORDER, PRODUCT_CARD_IMAGE_ASPECT_RATIO, PRODUCT_CARD_TEXTS, PRODUCT_CARD_TOP_WISHLIST_TOGGLE, PRODUCT_IMAGE_DIMENSIONS, SECOND_IMAGE, StoreConfig_MainSellerId, TEXTURE_IMAGE, Z_INDEX_WAR, storeId }: ProductsProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Products;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
package/server.d.ts CHANGED
@@ -32,6 +32,10 @@ declare const serverHelpers: {
32
32
  value: string;
33
33
  key: string;
34
34
  }[];
35
+ selectedFacets: (facets: string[]) => {
36
+ key: string;
37
+ value: string;
38
+ }[];
35
39
  filterNonCategorySelected: (facets: import('./types/data/api/search/facets').Facet[], base?: string | null) => import('./types/data/api/search/facets').Facet<import('./types/data/api/search/facets').FacetValueBoolean | import('./types/data/api/search/facets').FacetValueRange>[];
36
40
  };
37
41
  product: typeof productHelpers;