@searchstax-inc/searchstudio-ux-react 0.3.18 → 1.0.2
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 -2
- package/dist/@searchstax-inc/components/SearchstaxResultWidget.d.ts +0 -1
- package/dist/@searchstax-inc/searchstudio-ux-react.cjs +36 -31
- package/dist/@searchstax-inc/searchstudio-ux-react.iife.js +36 -31
- package/dist/@searchstax-inc/searchstudio-ux-react.mjs +981 -937
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Library to build Site Search page
|
|
4
4
|
|
|
5
|
+
## changelog
|
|
6
|
+
changelog is documented at CHANGELOG.md
|
|
7
|
+
|
|
5
8
|
## Installation
|
|
6
9
|
npm install following package
|
|
7
10
|
`npm install --save @searchstax-inc/searchstudio-ux-react`
|
|
@@ -217,7 +220,6 @@ example of results widget initialization with minimum options
|
|
|
217
220
|
```
|
|
218
221
|
<SearchstaxResultWidget
|
|
219
222
|
afterLinkClick={afterLinkClick}
|
|
220
|
-
resultsPerPage={10}
|
|
221
223
|
renderMethod={'pagination'}
|
|
222
224
|
></SearchstaxResultWidget>
|
|
223
225
|
```
|
|
@@ -226,7 +228,6 @@ example of results widget initialization with minimum options for infinite scrol
|
|
|
226
228
|
```
|
|
227
229
|
<SearchstaxResultWidget
|
|
228
230
|
afterLinkClick={afterLinkClick}
|
|
229
|
-
resultsPerPage={10}
|
|
230
231
|
renderMethod={'infiniteScroll'}
|
|
231
232
|
></SearchstaxResultWidget>
|
|
232
233
|
```
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ISearchstaxParsedResult, ISearchstaxSearchMetadata } from "@searchstax-inc/searchstudio-ux-js";
|
|
2
2
|
declare function SearchstaxResultWidget(props: {
|
|
3
3
|
afterLinkClick: (results: ISearchstaxParsedResult) => ISearchstaxParsedResult;
|
|
4
|
-
resultsPerPage?: number;
|
|
5
4
|
renderMethod?: "infiniteScroll" | "pagination";
|
|
6
5
|
noResultTemplate?: (searchTerm: string, metaData: ISearchstaxSearchMetadata | null, executeSearch: (searchTerm: string) => void) => React.ReactElement;
|
|
7
6
|
resultsTemplate?: (results: ISearchstaxParsedResult[], resultClicked: (result: ISearchstaxParsedResult, event: any) => any) => React.ReactElement;
|