@bridgeline-digital/hawksearch-handlebars-ui 6.2.8 → 6.2.10
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,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @bridgeline-digital/hawksearch-handlebars-ui
|
|
3
3
|
*
|
|
4
|
-
* version: v6.2.
|
|
4
|
+
* version: v6.2.10
|
|
5
5
|
*
|
|
6
6
|
* description: The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.
|
|
7
7
|
*
|
|
@@ -8905,7 +8905,12 @@ class ConversationalSearchComponent extends BaseComponent {
|
|
|
8905
8905
|
this.currentSearchResponse = [];
|
|
8906
8906
|
this.currentMessages = [];
|
|
8907
8907
|
this.composeResponseObject = (items) => {
|
|
8908
|
-
return items.map((item) =>
|
|
8908
|
+
return items.map((item) => {
|
|
8909
|
+
const { attributes, selectedVariant, variants, ...rest } = item;
|
|
8910
|
+
return {
|
|
8911
|
+
...rest
|
|
8912
|
+
};
|
|
8913
|
+
});
|
|
8909
8914
|
};
|
|
8910
8915
|
}
|
|
8911
8916
|
get promptInstructions() {
|
|
@@ -9017,13 +9022,13 @@ class ConversationalSearchComponent extends BaseComponent {
|
|
|
9017
9022
|
});
|
|
9018
9023
|
this.appendMessage({
|
|
9019
9024
|
role: "system",
|
|
9020
|
-
content: `DATA: ${this.currentSearchResponse}`
|
|
9025
|
+
content: `DATA: ${JSON.stringify(this.currentSearchResponse)}`
|
|
9021
9026
|
});
|
|
9022
9027
|
this.firstMessage = false;
|
|
9023
9028
|
} else {
|
|
9024
9029
|
this.appendMessage({
|
|
9025
9030
|
role: "system",
|
|
9026
|
-
content: `Include this DATA as well: ${this.currentSearchResponse}`
|
|
9031
|
+
content: `Include this DATA as well: ${JSON.stringify(this.currentSearchResponse)}`
|
|
9027
9032
|
});
|
|
9028
9033
|
}
|
|
9029
9034
|
this.appendMessage({ role: "user", content: this.currentQuery });
|
|
@@ -11226,7 +11231,7 @@ class SearchService extends BaseService {
|
|
|
11226
11231
|
// #region Query String
|
|
11227
11232
|
getRequestFromUrl() {
|
|
11228
11233
|
const url = new URL(window.location.href);
|
|
11229
|
-
const nonFacetParams = Object.
|
|
11234
|
+
const nonFacetParams = Object.values(this.queryStringParams);
|
|
11230
11235
|
const facets = {};
|
|
11231
11236
|
for (const param of Array.from(url.searchParams.keys()).filter((p) => !nonFacetParams.includes(p))) {
|
|
11232
11237
|
const field = param;
|