@searchstax-inc/searchstudio-ux-react 4.1.64 → 4.1.68

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/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Change Log
2
2
 
3
3
  All notable changes to the "searchstudio-ux-react" project will be documented in this file.
4
+ ## [4.1.68]
5
+ ### Features
6
+ - AfterSearch hook now has a second parameter of unparsed search response
7
+ - Standalone input widget added to v4
8
+ - accessibility: Pagination navigation now focuses results section
9
+
10
+ ## [4.1.66]
11
+ ### Bug Fixes
12
+ - Removed redundant no-results message
13
+ - Changed answers widget button text to read more
4
14
 
5
15
  ## [4.1.64]
6
16
  ### Features
package/README.md CHANGED
@@ -122,7 +122,7 @@ The SearchstaxAnswerWidget component provides a React and Next.js AI answer widg
122
122
 
123
123
  **Props**
124
124
 
125
- - showMoreAfterWordCount - number(default 100) determining after how many words UI will show “Read More” view.
125
+ - showMoreAfterWordCount - number(default 100) determining after how many words UI will show “Show More” view.
126
126
  - feedbackWidget – an optional object that configures thumbs-up and thumbs-down feedback functionality.
127
127
  - searchAnswerTemplate - template override for answers widget
128
128
 
@@ -187,7 +187,7 @@ function answerTemplate(
187
187
  showMore(e);
188
188
  }}
189
189
  >
190
- Read more
190
+ Show More
191
191
  </button>
192
192
  </div>
193
193
  )}
@@ -843,7 +843,6 @@ function noResultTemplate(
843
843
  Try searching for search related terms or topics. We offer a wide
844
844
  variety of content to help you get the information you need.{" "}
845
845
  </li>
846
- <li>Lost? Click on the ‘X” in the Search Box to reset your search.</li>
847
846
  </ul>
848
847
  </div>
849
848
  );
package/README.mustache CHANGED
@@ -122,7 +122,7 @@ The SearchstaxAnswerWidget component provides a React and Next.js AI answer widg
122
122
 
123
123
  **Props**
124
124
 
125
- - showMoreAfterWordCount - number(default 100) determining after how many words UI will show “Read More” view.
125
+ - showMoreAfterWordCount - number(default 100) determining after how many words UI will show “Show More” view.
126
126
  - feedbackWidget – an optional object that configures thumbs-up and thumbs-down feedback functionality.
127
127
  - searchAnswerTemplate - template override for answers widget
128
128
 
@@ -1,4 +1,4 @@
1
- import type { Searchstax } from "@searchstax-inc/searchstudio-ux-js";
1
+ import type { ISearchstaxSearchResponse, 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;
@@ -15,7 +15,7 @@ declare function SearchstaxWrapper(props: {
15
15
  autoCorrect?: boolean;
16
16
  router?: IRouterConfig;
17
17
  beforeSearch?: (props: ISearchObject) => ISearchObject | null;
18
- afterSearch?: (results: ISearchstaxParsedResult[]) => ISearchstaxParsedResult[];
18
+ afterSearch?: (results: ISearchstaxParsedResult[], unparsedResponse?: ISearchstaxSearchResponse) => ISearchstaxParsedResult[];
19
19
  children: any;
20
20
  initialized: (searchstax: Searchstax) => void;
21
21
  }): import("react/jsx-runtime").JSX.Element;