@searchstax-inc/searchstudio-ux-js 1.0.25 → 1.0.26
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 +2 -0
- package/README.mustache +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,7 @@ interface ISearchstaxConfig {
|
|
|
27
27
|
autoCorrect?: boolean; // if set to true it will autoCorrect misspelled words. Default is false
|
|
28
28
|
router?: IRouterConfig; // optional object containing router settings
|
|
29
29
|
analyticsBaseUrl?: string; // url for analytics calls
|
|
30
|
+
questionURL?: string; // url for AI answer widget
|
|
30
31
|
hooks?: {
|
|
31
32
|
// optional object that provides various hook options
|
|
32
33
|
beforeSearch?: (props: ISearchObject) => ISearchObject | null; // this function gets called before firing search. searchProps are being passed as a property and can be modified, if passed along further search will execute with modified properties, if null is returned then event gets canceled and search never fires.
|
|
@@ -45,6 +46,7 @@ searchstax.initialize({
|
|
|
45
46
|
searchAuth: "",
|
|
46
47
|
sessionId: "yourSessionId",
|
|
47
48
|
authType: "basic",
|
|
49
|
+
questionURL: "",
|
|
48
50
|
router: {
|
|
49
51
|
enabled: true,
|
|
50
52
|
routeName: "searchstax",
|
package/README.mustache
CHANGED
|
@@ -27,6 +27,7 @@ interface ISearchstaxConfig {
|
|
|
27
27
|
autoCorrect?: boolean; // if set to true it will autoCorrect misspelled words. Default is false
|
|
28
28
|
router?: IRouterConfig; // optional object containing router settings
|
|
29
29
|
analyticsBaseUrl?: string; // url for analytics calls
|
|
30
|
+
questionURL?: string; // url for AI answer widget
|
|
30
31
|
hooks?: {
|
|
31
32
|
// optional object that provides various hook options
|
|
32
33
|
beforeSearch?: (props: ISearchObject) => ISearchObject | null; // this function gets called before firing search. searchProps are being passed as a property and can be modified, if passed along further search will execute with modified properties, if null is returned then event gets canceled and search never fires.
|
|
@@ -45,6 +46,7 @@ searchstax.initialize({
|
|
|
45
46
|
searchAuth: "",
|
|
46
47
|
sessionId: "yourSessionId",
|
|
47
48
|
authType: "basic",
|
|
49
|
+
questionURL: "",
|
|
48
50
|
router: {
|
|
49
51
|
enabled: true,
|
|
50
52
|
routeName: "searchstax",
|