@soma-vertical-web/multi-lib 1.0.33 → 1.0.35

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 (53) hide show
  1. package/constants.d.ts +1 -0
  2. package/contexts/contexts/newsletter/Context.d.ts +1 -1
  3. package/contexts/contexts/plp/FilterContext.d.ts +1 -1
  4. package/contexts/contexts/plp/PLPContext.d.ts +1 -1
  5. package/contexts/contexts/plp/PLPInfiniteContext.d.ts +6 -0
  6. package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +1 -1
  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 -16
  10. package/contexts/store/plp.d.ts +2 -2
  11. package/data/api/DitoIngest/authorization/index.d.ts +1 -0
  12. package/data/api/DitoIngest/ditoIngestService.d.ts +3 -0
  13. package/data/helpers/plp/index.d.ts +4 -13
  14. package/data/helpers/search/facets.d.ts +1 -0
  15. package/data/helpers/search/index.d.ts +4 -0
  16. package/data/helpers/search/product/index.d.ts +13 -1
  17. package/data/helpers/search/search.d.ts +1 -0
  18. package/data/index.d.ts +2 -0
  19. package/index-AgO_aUeQ.mjs +2371 -0
  20. package/index-Cqk3VcE0.js +4 -0
  21. package/index-D0PGMDh5.js +4 -0
  22. package/index-DctCSt6v.mjs +2695 -0
  23. package/index.js +17 -17
  24. package/index.mjs +11380 -9243
  25. package/index2.js +2 -2
  26. package/index2.mjs +736 -653
  27. package/layout/index.d.ts +4 -4
  28. package/layout/team-component/Newsletter/index.d.ts +1 -1
  29. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  30. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +2 -6
  31. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +3 -1
  32. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  33. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  34. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
  35. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  36. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
  37. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  38. package/layout/template/PDC/PDC.d.ts +1 -1
  39. package/layout/template/PDC/index.d.ts +2 -2
  40. package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +1 -1
  41. package/layout/template/SearchResult/Composite/Products.d.ts +1 -1
  42. package/package.json +1 -1
  43. package/server.d.ts +6 -0
  44. package/style.css +1 -1
  45. package/types/cms/Sections/Newsletter/index.d.ts +4 -0
  46. package/types/contexts/contexts/plp.d.ts +62 -20
  47. package/types/contexts/contexts/search.d.ts +29 -28
  48. package/types/contexts/hooks/index.d.ts +0 -2
  49. package/types/data/api/dito-ingest/index.d.ts +12 -1
  50. package/types/layout/team-components/Newsletter/index.d.ts +6 -0
  51. package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
  52. package/types/layout/templates/PDP/index.d.ts +0 -1
  53. package/types/layout/templates/PLP/index.d.ts +14 -4
package/layout/index.d.ts CHANGED
@@ -137,7 +137,7 @@ export declare const layout: {
137
137
  displayName: string;
138
138
  };
139
139
  Newsletter: {
140
- ({ className, description, formPayloadOptionals, fields, masterDataEntity, masterDataEmailField, masterDataNameField, banner, altBanner, bannerBackground, termsDescription, lgpdLinkLable, lgpdLink, title, variant, borderTop, borderBottom, CONSTANTS, ...props }: import('../types/layout/team-components/Newsletter').RootProps): import("react/jsx-runtime").JSX.Element | null;
140
+ ({ className, description, formPayloadOptionals, fields, masterDataEntity, masterDataEmailField, masterDataNameField, banner, altBanner, bannerBackground, termsDescription, lgpdLinkLable, lgpdLink, title, variant, borderTop, borderBottom, CONSTANTS, actionName, originName, ...props }: import('../types/layout/team-components/Newsletter').RootProps): import("react/jsx-runtime").JSX.Element | null;
141
141
  displayName: string;
142
142
  };
143
143
  Form: {
@@ -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: {
@@ -284,7 +284,7 @@ export declare const layout: {
284
284
  displayName: string;
285
285
  };
286
286
  InfiniteScroller: {
287
- (): import("react/jsx-runtime").JSX.Element;
287
+ (props: 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: {
@@ -1,7 +1,7 @@
1
1
  import { RootProps } from '../../../types/layout/team-components/Newsletter';
2
2
 
3
3
  declare const Newsletter: {
4
- ({ className, description, formPayloadOptionals, fields, masterDataEntity, masterDataEmailField, masterDataNameField, banner, altBanner, bannerBackground, termsDescription, lgpdLinkLable, lgpdLink, title, variant, borderTop, borderBottom, CONSTANTS, ...props }: RootProps): import("react/jsx-runtime").JSX.Element | null;
4
+ ({ className, description, formPayloadOptionals, fields, masterDataEntity, masterDataEmailField, masterDataNameField, banner, altBanner, bannerBackground, termsDescription, lgpdLinkLable, lgpdLink, title, variant, borderTop, borderBottom, CONSTANTS, actionName, originName, ...props }: RootProps): import("react/jsx-runtime").JSX.Element | null;
5
5
  displayName: string;
6
6
  };
7
7
  export default Newsletter;
@@ -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;
@@ -1,11 +1,7 @@
1
- import { State } from '../../../../../../types/data/api/search';
2
- import { PLP_SORT_DEFAULTType } from '../../../../../../types/constants';
1
+ import { FiltersProps } from '../../../../../../types/layout/templates/PLP';
3
2
 
4
3
  declare const Filters: {
5
- ({ sort, ...props }: {
6
- state: State;
7
- sort: PLP_SORT_DEFAULTType;
8
- }): import("react/jsx-runtime").JSX.Element;
4
+ ({ sort, ...props }: FiltersProps): import("react/jsx-runtime").JSX.Element;
9
5
  displayName: string;
10
6
  };
11
7
  export default 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
+ (props: GridInfiniteProps): import("react/jsx-runtime").JSX.Element;
3
5
  displayName: string;
4
6
  };
5
7
  export default InfiniteScroller;
@@ -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;
@@ -12,7 +12,7 @@ declare const PDC: {
12
12
  displayName: string;
13
13
  };
14
14
  InfiniteScroller: {
15
- (): import("react/jsx-runtime").JSX.Element;
15
+ (props: 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: {
@@ -1,3 +1,3 @@
1
1
  import { PDPSimilarsType } from '../../../../../../../types/layout/templates/PDP';
2
2
 
3
- export declare const PDPSimilars: ({ children, storeId, productId, PDP_INFO, TEXTURE_IMAGE, TOGGLE_STYLE_MODIFIER, }: PDPSimilarsType) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const PDPSimilars: ({ children, productId, PDP_INFO, TEXTURE_IMAGE, TOGGLE_STYLE_MODIFIER, }: PDPSimilarsType) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ProductsProps } from '../../../../types/layout/templates/PLP';
2
2
 
3
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;
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, }: ProductsProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
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.33",
3
+ "version": "1.0.35",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
package/server.d.ts CHANGED
@@ -13,6 +13,7 @@ import * as aviseme from './data/api/aviseme';
13
13
  import * as preview from './data/api/preview';
14
14
  import * as exitpreview from './data/api/preview/exit-preview';
15
15
  import * as vtexXmlProxy from './data/api/xml';
16
+ import * as ditoIngestService from './data/api/DitoIngest/ditoIngestService';
16
17
  declare const serverAPIs: {
17
18
  checkout: typeof checkout;
18
19
  catalog: typeof catalog;
@@ -28,6 +29,7 @@ declare const serverAPIs: {
28
29
  wishlist: {
29
30
  getWishlistProducts({ body, apiUrl, extraData, fetchOptions }: import('./types/data/api').FetchFunctionsProps<any>): Promise<any>;
30
31
  };
32
+ ditoIngestService: typeof ditoIngestService;
31
33
  };
32
34
  declare const serverHelpers: {
33
35
  catalog: typeof catalogHelpers;
@@ -40,6 +42,10 @@ declare const serverHelpers: {
40
42
  value: string;
41
43
  key: string;
42
44
  }[];
45
+ selectedFacets: (facets: string[]) => {
46
+ key: string;
47
+ value: string;
48
+ }[];
43
49
  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
50
  };
45
51
  product: typeof productHelpers;