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

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 (49) 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/Search.d.ts +1 -1
  5. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  6. package/contexts/index.d.ts +4 -4
  7. package/data/api/aviseme/index.d.ts +18 -0
  8. package/data/api/preview/exit-preview/index.d.ts +13 -0
  9. package/data/api/preview/index.d.ts +36 -0
  10. package/data/api/xml/index.d.ts +3 -0
  11. package/data/helpers/plp/index.d.ts +3 -7
  12. package/data/helpers/search/facets.d.ts +0 -1
  13. package/data/helpers/search/index.d.ts +0 -4
  14. package/data/helpers/search/product/index.d.ts +1 -13
  15. package/data/helpers/search/search.d.ts +0 -1
  16. package/data/index.d.ts +0 -2
  17. package/{index-CIVkR1d_.mjs → index-BM8vTUKg.mjs} +712 -776
  18. package/index-CZjoMPpQ.js +4 -0
  19. package/index.js +18 -18
  20. package/index.mjs +8751 -11007
  21. package/index2.js +2 -2
  22. package/index2.mjs +666 -578
  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/Page/Composite/Card.d.ts +1 -1
  26. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  27. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +1 -4
  28. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  29. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +3 -10
  30. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  31. package/layout/template/PDC/PDC.d.ts +1 -1
  32. package/layout/template/PDC/index.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/server.d.ts +8 -4
  35. package/style.css +1 -1
  36. package/types/contexts/contexts/plp.d.ts +21 -63
  37. package/types/contexts/contexts/search.d.ts +17 -39
  38. package/types/contexts/hooks/index.d.ts +2 -0
  39. package/types/layout/team-components/PLPNavigation/index.d.ts +2 -0
  40. package/types/layout/templates/PLP/index.d.ts +3 -7
  41. package/contexts/contexts/search/QueryFacets.d.ts +0 -5
  42. package/contexts/contexts/search/QueryProducts.d.ts +0 -5
  43. package/contexts/contexts/search/RootTank.d.ts +0 -9
  44. package/contexts/store/plp-scroll.d.ts +0 -3
  45. package/index-BFjIPkXv.js +0 -4
  46. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +0 -11
  47. package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +0 -1
  48. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +0 -7
  49. package/layout/template/SearchResult/Composite/Products.d.ts +0 -7
package/layout/index.d.ts CHANGED
@@ -267,7 +267,7 @@ export declare const layout: {
267
267
  };
268
268
  };
269
269
  pdc: {
270
- ({ className }: import('../types/layout/templates/PLP').PLPRootProps): import("react/jsx-runtime").JSX.Element;
270
+ ({ className, ...props }: 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 | null;
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;
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, gap, className }: InfiniteBannersProps): import("react/jsx-runtime").JSX.Element[] | null;
4
+ ({ columns, count, gap, className }: InfiniteBannersProps): import("react/jsx-runtime").JSX.Element[] | null;
5
5
  displayName: string;
6
6
  };
7
7
  export default Banners;
@@ -1,7 +1,7 @@
1
1
  import { PageCardProps } from '../../../../../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const Card: {
4
- ({ first, gap, empty, isMobile, item, index, order, page, showVideo, }: PageCardProps): import("react/jsx-runtime").JSX.Element | undefined;
4
+ ({ first, gap, isMobile, item, index, last, order, page, showVideo, }: PageCardProps): import("react/jsx-runtime").JSX.Element;
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
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): false | import("react/jsx-runtime").JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export default Loader;
@@ -1,10 +1,7 @@
1
1
  import { PageSentinelProps } from '../../../../../../../types/layout/templates/PLP/index';
2
2
 
3
3
  declare const NextPage: {
4
- ({ nextPage, page, total, ...props }: PageSentinelProps & {
5
- nextPage?: boolean;
6
- total: number;
7
- }): import("react/jsx-runtime").JSX.Element | null;
4
+ ({ page, ...props }: PageSentinelProps): import("react/jsx-runtime").JSX.Element | null;
8
5
  displayName: string;
9
6
  };
10
7
  export default NextPage;
@@ -1,7 +1,7 @@
1
- import { PageScrollProps } from '../../../../../../types/layout/templates/PLP';
1
+ import { PageProps } from '../../../../../../types/layout/templates/PLP';
2
2
 
3
3
  declare const Page: {
4
- ({ page }: PageScrollProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ count, gap, page }: PageProps): import("react/jsx-runtime").JSX.Element[] | null;
5
5
  displayName: string;
6
6
  };
7
7
  export default Page;
@@ -3,25 +3,18 @@ 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
- };
10
6
  Card: {
11
- ({ first, gap, empty, isMobile, item, index, order, page, showVideo, }: import('../../../../../../types/layout/templates/PLP').PageCardProps): import("react/jsx-runtime").JSX.Element | undefined;
7
+ ({ first, gap, isMobile, item, index, last, order, page, showVideo, }: import('../../../../../../types/layout/templates/PLP').PageCardProps): import("react/jsx-runtime").JSX.Element;
12
8
  displayName: string;
13
9
  };
14
10
  Loader: {
15
11
  ({ type, page, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps & {
16
12
  type?: "page" | "default";
17
- }): import("react/jsx-runtime").JSX.Element;
13
+ }): false | import("react/jsx-runtime").JSX.Element;
18
14
  displayName: string;
19
15
  };
20
16
  NextPage: {
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;
17
+ ({ page, ...props }: import('../../../../../../types/layout/templates/PLP').PageSentinelProps): import("react/jsx-runtime").JSX.Element | null;
25
18
  displayName: string;
26
19
  };
27
20
  };
@@ -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 | null;
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;
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 }: PLPRootProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ className, ...props }: 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 | null;
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;
32
32
  displayName: string;
33
33
  };
34
34
  Products: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
package/server.d.ts CHANGED
@@ -9,6 +9,10 @@ import * as marketingdata from './data/api/marketingData';
9
9
  import * as user from './data/api/user';
10
10
  import * as catalogHelpers from './data/helpers/catalog';
11
11
  import * as productHelpers from './data/helpers/product';
12
+ import * as aviseme from './data/api/aviseme';
13
+ import * as preview from './data/api/preview';
14
+ import * as exitpreview from './data/api/preview/exit-preview';
15
+ import * as vtexXmlProxy from './data/api/xml';
12
16
  declare const serverAPIs: {
13
17
  checkout: typeof checkout;
14
18
  catalog: typeof catalog;
@@ -17,6 +21,10 @@ declare const serverAPIs: {
17
21
  masterdata: typeof masterdata;
18
22
  marketingdata: typeof marketingdata;
19
23
  user: typeof user;
24
+ aviseme: typeof aviseme;
25
+ preview: typeof preview;
26
+ exitpreview: typeof exitpreview;
27
+ vtexXmlProxy: typeof vtexXmlProxy;
20
28
  wishlist: {
21
29
  getWishlistProducts({ body, apiUrl, extraData, fetchOptions }: import('./types/data/api').FetchFunctionsProps<any>): Promise<any>;
22
30
  };
@@ -32,10 +40,6 @@ declare const serverHelpers: {
32
40
  value: string;
33
41
  key: string;
34
42
  }[];
35
- selectedFacets: (facets: string[]) => {
36
- key: string;
37
- value: string;
38
- }[];
39
43
  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>[];
40
44
  };
41
45
  product: typeof productHelpers;