@soma-vertical-web/multi-lib 1.0.32 → 1.0.34

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 (57) 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/Products.d.ts +1 -1
  5. package/contexts/contexts/search/QueryFacets.d.ts +5 -0
  6. package/contexts/contexts/search/QueryProducts.d.ts +5 -0
  7. package/contexts/contexts/search/RootTank.d.ts +9 -0
  8. package/contexts/contexts/search/Search.d.ts +1 -1
  9. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  10. package/contexts/index.d.ts +3 -15
  11. package/contexts/store/plp-scroll.d.ts +3 -0
  12. package/contexts/store/plp.d.ts +2 -2
  13. package/data/api/fetchProxy.d.ts +9 -0
  14. package/data/helpers/plp/index.d.ts +4 -13
  15. package/data/helpers/search/facets.d.ts +1 -0
  16. package/data/helpers/search/index.d.ts +4 -0
  17. package/data/helpers/search/product/index.d.ts +13 -1
  18. package/data/helpers/search/search.d.ts +1 -0
  19. package/data/index.d.ts +2 -0
  20. package/index-AgO_aUeQ.mjs +2371 -0
  21. package/index-BFjIPkXv.js +4 -0
  22. package/{index-BM8vTUKg.mjs → index-CIVkR1d_.mjs} +776 -712
  23. package/index-CXSKhXO3.js +4 -0
  24. package/index-D0PGMDh5.js +4 -0
  25. package/index-ekZLWJ5-.mjs +2686 -0
  26. package/index.js +17 -17
  27. package/index.mjs +10513 -8429
  28. package/index2.js +2 -2
  29. package/index2.mjs +338 -343
  30. package/layout/index.d.ts +5 -5
  31. package/layout/template/PDC/Composite/Grid/Grid.d.ts +1 -1
  32. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  33. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +7 -0
  34. package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +1 -0
  35. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +3 -1
  36. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +7 -0
  37. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  38. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  39. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
  40. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  41. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
  42. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  43. package/layout/template/PDC/PDC.d.ts +1 -1
  44. package/layout/template/PDC/index.d.ts +3 -3
  45. package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
  46. package/layout/template/SearchResult/SearchContent.d.ts +1 -1
  47. package/layout/template/SearchResult/SearchResult.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/server.d.ts +4 -0
  50. package/style.css +1 -1
  51. package/types/contexts/contexts/plp.d.ts +63 -21
  52. package/types/contexts/contexts/search.d.ts +30 -28
  53. package/types/contexts/hooks/index.d.ts +0 -2
  54. package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
  55. package/types/layout/templates/PLP/index.d.ts +20 -4
  56. package/types/layout/templates/SearchResult/index.d.ts +3 -0
  57. 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, storeId }: import('../types/layout/templates/PLP').PLPRootProps): import("react/jsx-runtime").JSX.Element;
271
271
  displayName: string;
272
272
  };
273
273
  pdc_composites: {
@@ -280,11 +280,11 @@ export declare const layout: {
280
280
  displayName: string;
281
281
  };
282
282
  Grid: {
283
- ({ infinite }: import('../types/layout/templates/PLP').GridProps): import("react/jsx-runtime").JSX.Element;
283
+ ({ infinite, storeId }: import('../types/layout/templates/PLP').GridProps): import("react/jsx-runtime").JSX.Element;
284
284
  displayName: string;
285
285
  };
286
286
  InfiniteScroller: {
287
- (): import("react/jsx-runtime").JSX.Element;
287
+ ({ storeId }: import('../types/layout/templates/PLP').GridInfiniteProps): import("react/jsx-runtime").JSX.Element;
288
288
  displayName: string;
289
289
  };
290
290
  Spinner: {
@@ -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: {
@@ -310,7 +310,7 @@ export declare const layout: {
310
310
  };
311
311
  pdp: typeof pdp;
312
312
  searchResult: {
313
- ({ className, searchParams, CONSTANTS }: import('../types/layout/templates/SearchResult').SearchProps): import("react/jsx-runtime").JSX.Element;
313
+ ({ className, searchParams, storeId, CONSTANTS }: import('../types/layout/templates/SearchResult').SearchProps): import("react/jsx-runtime").JSX.Element;
314
314
  displayName: string;
315
315
  };
316
316
  wishList: {
@@ -1,7 +1,7 @@
1
1
  import { GridProps } from '../../../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const Grid: {
4
- ({ infinite }: GridProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ infinite, storeId }: GridProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default Grid;
@@ -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,7 @@
1
+ import { FiltersProps } from '../../../../../../types/layout/templates/PLP';
2
+
3
+ declare const Filters: {
4
+ ({ sort, storeId, ...props }: FiltersProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default Filters;
@@ -0,0 +1 @@
1
+ export { default } from './Filters';
@@ -1,5 +1,7 @@
1
+ import { GridInfiniteProps } from '../../../../../types/layout/templates/PLP';
2
+
1
3
  declare const InfiniteScroller: {
2
- (): import("react/jsx-runtime").JSX.Element;
4
+ ({ storeId }: GridInfiniteProps): import("react/jsx-runtime").JSX.Element;
3
5
  displayName: string;
4
6
  };
5
7
  export default InfiniteScroller;
@@ -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, storeId }: 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, storeId }: PLPRootProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default PDC;
@@ -8,11 +8,11 @@ declare const PDC: {
8
8
  displayName: string;
9
9
  };
10
10
  Grid: {
11
- ({ infinite }: import('../../../types/layout/templates/PLP').GridProps): import("react/jsx-runtime").JSX.Element;
11
+ ({ infinite, storeId }: import('../../../types/layout/templates/PLP').GridProps): import("react/jsx-runtime").JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  InfiniteScroller: {
15
- (): import("react/jsx-runtime").JSX.Element;
15
+ ({ storeId }: import('../../../types/layout/templates/PLP').GridInfiniteProps): import("react/jsx-runtime").JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  Spinner: {
@@ -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;
@@ -1,4 +1,4 @@
1
1
  import { SearchContentProps } from '../../../types/layout/templates/SearchResult';
2
2
 
3
- declare const SearchContent: ({ className }: SearchContentProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SearchContent: ({ className, storeId }: SearchContentProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default SearchContent;
@@ -1,7 +1,7 @@
1
1
  import { SearchProps } from '../../../types/layout/templates/SearchResult';
2
2
 
3
3
  declare const Search: {
4
- ({ className, searchParams, CONSTANTS }: SearchProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ className, searchParams, storeId, CONSTANTS }: SearchProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default Search;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
package/server.d.ts CHANGED
@@ -40,6 +40,10 @@ declare const serverHelpers: {
40
40
  value: string;
41
41
  key: string;
42
42
  }[];
43
+ selectedFacets: (facets: string[]) => {
44
+ key: string;
45
+ value: string;
46
+ }[];
43
47
  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>[];
44
48
  };
45
49
  product: typeof productHelpers;