@searchstax-inc/searchstudio-ux-react 1.0.27 → 1.0.38
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/README.md +3 -0
- package/dist/@searchstax-inc/components/SearchstaxInputWidget.d.ts +2 -2
- package/dist/@searchstax-inc/components/SearchstaxLocationWidget.d.ts +8 -0
- package/dist/@searchstax-inc/components/SearchstaxWrapper.d.ts +1 -0
- package/dist/@searchstax-inc/main.d.ts +2 -1
- package/dist/@searchstax-inc/searchstudio-ux-react.cjs +92 -68
- package/dist/@searchstax-inc/searchstudio-ux-react.d.cts +2 -1
- package/dist/@searchstax-inc/searchstudio-ux-react.iife.js +92 -68
- package/dist/@searchstax-inc/searchstudio-ux-react.mjs +2553 -2035
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ After importing SearchstaxWrapper component needs to wrap all other components:
|
|
|
40
40
|
afterSearch={afterSearch}
|
|
41
41
|
authType="basic"
|
|
42
42
|
language="en"
|
|
43
|
+
model=""
|
|
43
44
|
>
|
|
44
45
|
// other components will go there
|
|
45
46
|
|
|
@@ -53,6 +54,7 @@ Initialization example
|
|
|
53
54
|
```
|
|
54
55
|
sampleConfig = {
|
|
55
56
|
language: "en",
|
|
57
|
+
model:""
|
|
56
58
|
searchURL: "",
|
|
57
59
|
suggesterURL: "",
|
|
58
60
|
trackApiKey: "",
|
|
@@ -91,6 +93,7 @@ Our base theme is designed with this layout in mind but it is optional as all wi
|
|
|
91
93
|
afterSearch={sampleConfig.hooks.afterSearch}
|
|
92
94
|
authType="basic"
|
|
93
95
|
language="en"
|
|
96
|
+
model=""
|
|
94
97
|
>
|
|
95
98
|
<div className="searchstax-page-layout-container">
|
|
96
99
|
<SearchstaxInputWidget
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ISearchstaxSuggestProps, ISearchstaxSuggestResponse, ISearchstaxSuggestion } from "@searchstax-inc/searchstudio-ux-js";
|
|
1
|
+
import type { ISearchstaxSuggestProps, ISearchstaxSuggestResponse, ISearchstaxSuggestion, ISearchstaxSearchInputRenderData } from "@searchstax-inc/searchstudio-ux-js";
|
|
2
2
|
declare function SearchstaxInputWidget(props: {
|
|
3
3
|
afterAutosuggest?: (result: ISearchstaxSuggestResponse) => ISearchstaxSuggestResponse;
|
|
4
4
|
beforeAutosuggest?: (props: ISearchstaxSuggestProps) => ISearchstaxSuggestProps | null;
|
|
5
5
|
searchInputId?: string;
|
|
6
6
|
suggestAfterMinChars?: number;
|
|
7
|
-
inputTemplate?: (suggestions: ISearchstaxSuggestion[], onMouseLeave: () => void, onMouseOver: (suggestion: ISearchstaxSuggestion) => void, onMouseClick: () => void) => React.ReactElement;
|
|
7
|
+
inputTemplate?: (suggestions: ISearchstaxSuggestion[], onMouseLeave: () => void, onMouseOver: (suggestion: ISearchstaxSuggestion) => void, onMouseClick: () => void, templateData?: ISearchstaxSearchInputRenderData | null) => React.ReactElement;
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default SearchstaxInputWidget;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ISearchstaxLocationRenderData, ISearchstaxLocation } from "@searchstax-inc/searchstudio-ux-js";
|
|
2
|
+
declare function SearchstaxLocationWidget(props: {
|
|
3
|
+
searchLocationTemplate?: (locationData: null | ISearchstaxLocationRenderData, locationChange: (value: string) => void, locationBlur: (value: string) => void, radiusChange: (value: string | number) => void, getCurrentLocation: () => void, inputValue?: string | null, selectValue?: string | number | undefined, locationError?: boolean) => React.ReactElement;
|
|
4
|
+
hooks: {
|
|
5
|
+
locationDecode: (locationName: string) => Promise<ISearchstaxLocation>;
|
|
6
|
+
};
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SearchstaxLocationWidget;
|
|
@@ -2,6 +2,7 @@ import type { Searchstax } from "@searchstax-inc/searchstudio-ux-js";
|
|
|
2
2
|
import type { IRouterConfig, ISearchObject, ISearchstaxParsedResult } from "@searchstax-inc/searchstudio-ux-js";
|
|
3
3
|
declare function SearchstaxWrapper(props: {
|
|
4
4
|
language?: string;
|
|
5
|
+
model?: string;
|
|
5
6
|
sessionId?: string;
|
|
6
7
|
analyticsBaseUrl?: string;
|
|
7
8
|
analyticsSrc?: string;
|
|
@@ -8,4 +8,5 @@ import SearchstaxFacetsWidget from "./components/SearchstaxFacetsWidget";
|
|
|
8
8
|
import SearchstaxRelatedSearchesWidget from './components/SearchstaxRelatedSearchesWidget';
|
|
9
9
|
import SearchstaxExternalPromotionsWidget from './components/SearchstaxExternalPromotionsWidget';
|
|
10
10
|
import SearchstaxAnswerWidget from './components/SearchstaxAnswerWidget';
|
|
11
|
-
|
|
11
|
+
import SearchstaxLocationWidget from './components/SearchstaxLocationWidget';
|
|
12
|
+
export { SearchstaxWrapper, SearchstaxResultWidget, SearchstaxInputWidget, SearchstaxPaginationWidget, SearchstaxSortingWidget, SearchstaxOverviewWidget, SearchstaxFacetsWidget, SearchstaxRelatedSearchesWidget, SearchstaxExternalPromotionsWidget, SearchstaxAnswerWidget, SearchstaxLocationWidget };
|