@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.
- package/contexts/contexts/plp/FilterContext.d.ts +1 -1
- package/contexts/contexts/plp/PLPContext.d.ts +1 -1
- package/contexts/contexts/search/Facets.d.ts +1 -1
- package/contexts/contexts/search/Products.d.ts +1 -1
- package/contexts/contexts/search/QueryFacets.d.ts +5 -0
- package/contexts/contexts/search/QueryProducts.d.ts +5 -0
- package/contexts/contexts/search/RootTank.d.ts +9 -0
- package/contexts/contexts/search/Search.d.ts +1 -1
- package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
- package/contexts/index.d.ts +3 -15
- package/contexts/store/plp-scroll.d.ts +3 -0
- package/contexts/store/plp.d.ts +2 -2
- package/data/api/fetchProxy.d.ts +9 -0
- package/data/helpers/plp/index.d.ts +4 -13
- package/data/helpers/search/facets.d.ts +1 -0
- package/data/helpers/search/index.d.ts +4 -0
- package/data/helpers/search/product/index.d.ts +13 -1
- package/data/helpers/search/search.d.ts +1 -0
- package/data/index.d.ts +2 -0
- package/index-AgO_aUeQ.mjs +2371 -0
- package/index-BFjIPkXv.js +4 -0
- package/{index-BM8vTUKg.mjs → index-CIVkR1d_.mjs} +776 -712
- package/index-CXSKhXO3.js +4 -0
- package/index-D0PGMDh5.js +4 -0
- package/index-ekZLWJ5-.mjs +2686 -0
- package/index.js +17 -17
- package/index.mjs +10513 -8429
- package/index2.js +2 -2
- package/index2.mjs +338 -343
- package/layout/index.d.ts +5 -5
- package/layout/template/PDC/Composite/Grid/Grid.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +1 -0
- package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +3 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
- package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
- package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
- package/layout/template/PDC/PDC.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +3 -3
- package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
- package/layout/template/SearchResult/SearchContent.d.ts +1 -1
- package/layout/template/SearchResult/SearchResult.d.ts +1 -1
- package/package.json +1 -1
- package/server.d.ts +4 -0
- package/style.css +1 -1
- package/types/contexts/contexts/plp.d.ts +63 -21
- package/types/contexts/contexts/search.d.ts +30 -28
- package/types/contexts/hooks/index.d.ts +0 -2
- package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
- package/types/layout/templates/PLP/index.d.ts +20 -4
- package/types/layout/templates/SearchResult/index.d.ts +3 -0
- 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,
|
|
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,
|
|
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 @@
|
|
|
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;
|
|
@@ -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,
|
|
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
|
-
}):
|
|
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
|
|
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 {
|
|
1
|
+
import { PageScrollProps } from '../../../../../../types/layout/templates/PLP';
|
|
2
2
|
|
|
3
3
|
declare const Page: {
|
|
4
|
-
({
|
|
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,
|
|
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
|
-
}):
|
|
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
|
|
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,
|
|
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
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;
|