@ecomid/modules 0.1.0 → 0.1.1

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.
@@ -1,4 +1,3 @@
1
- import { ReactNode } from "react";
2
1
  type SearchEnvironment = 'production' | 'staging' | 'sandbox';
3
2
  type SearchProduct = {
4
3
  id: string;
@@ -14,10 +13,6 @@ type SearchProduct = {
14
13
  variantCount?: number;
15
14
  reason?: string;
16
15
  };
17
- type RenderProductContext = {
18
- position: number;
19
- menuButton: ReactNode;
20
- };
21
16
  type SearchSuggestion = {
22
17
  text: string;
23
18
  ask?: boolean;
@@ -106,8 +101,7 @@ type SearchPage = {
106
101
  text: string;
107
102
  };
108
103
  type SearchPageParams = URLSearchParams | string;
109
- declare const SEARCH_PAGE_KEYS: string[];
110
104
  declare function searchPageParams(page: SearchPage): URLSearchParams;
111
105
  declare function readSearchPage(params: SearchPageParams): SearchPage | null;
112
106
  declare function withSearchPageParams(search: string, page: SearchPage | null): string;
113
- export { SearchTurnState as C, SearchSuggestion as S, SearchProduct as _, searchPageParams as a, SearchSort as b, InstantResults as c, SearchFacet as d, SearchFacetValue as f, SearchPageLocation as g, SearchMode as h, readSearchPage as i, RenderProductContext as l, SearchFilters as m, SearchPage as n, withSearchPageParams as o, SearchFilterKey as p, SearchPageParams as r, EmptyState as s, SEARCH_PAGE_KEYS as t, SearchAppliedFilter as u, SearchQuestion as v, SearchEnvironment as w, SearchStarter as x, SearchResultsData as y };
107
+ export { SearchEnvironment as S, SearchResultsData as _, withSearchPageParams as a, SearchSuggestion as b, SearchAppliedFilter as c, SearchFilterKey as d, SearchFilters as f, SearchQuestion as g, SearchProduct as h, searchPageParams as i, SearchFacet as l, SearchPageLocation as m, SearchPageParams as n, EmptyState as o, SearchMode as p, readSearchPage as r, InstantResults as s, SearchPage as t, SearchFacetValue as u, SearchSort as v, SearchTurnState as x, SearchStarter as y };
package/dist/react.d.ts CHANGED
@@ -1,5 +1,9 @@
1
- import { _ as SearchProduct, b as SearchSort, l as RenderProductContext, m as SearchFilters, r as SearchPageParams, w as SearchEnvironment, y as SearchResultsData } from "./chunks/searchPage-BDL83WXl.js";
1
+ import { S as SearchEnvironment, _ as SearchResultsData, f as SearchFilters, h as SearchProduct, n as SearchPageParams, v as SearchSort } from "./chunks/searchPage-CwY8JW57.js";
2
2
  import { MouseEvent, ReactNode } from "react";
3
+ type RenderProductContext = {
4
+ position: number;
5
+ menuButton: ReactNode;
6
+ };
3
7
  type RenderProduct = (product: SearchProduct, context: RenderProductContext) => ReactNode;
4
8
  type SearchRootProps = {
5
9
  clientId: string;