@searchcraft/vue-sdk 0.11.0 → 0.11.1
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/dist/index.es.js +11 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -6426,8 +6426,14 @@ class rc {
|
|
|
6426
6426
|
const e = async () => {
|
|
6427
6427
|
var u, d, m, x, E, $;
|
|
6428
6428
|
const a = this.get(), o = (u = a.core) == null ? void 0 : u.config;
|
|
6429
|
-
if (
|
|
6430
|
-
|
|
6429
|
+
if (!o) {
|
|
6430
|
+
console.error("Could not stream summary data, no config found.");
|
|
6431
|
+
return;
|
|
6432
|
+
}
|
|
6433
|
+
if (!o.cortexURL) {
|
|
6434
|
+
console.error("Could not stream summary data, cortexURL was not specified in the config.");
|
|
6435
|
+
return;
|
|
6436
|
+
}
|
|
6431
6437
|
const n = (d = a.core) == null ? void 0 : d.config.indexName;
|
|
6432
6438
|
if (!a.hasSummaryBox || !n)
|
|
6433
6439
|
return;
|
|
@@ -6552,9 +6558,9 @@ const na = {
|
|
|
6552
6558
|
search: async () => {
|
|
6553
6559
|
var m, x, E;
|
|
6554
6560
|
const u = o();
|
|
6555
|
-
if (
|
|
6561
|
+
if (!u.core)
|
|
6556
6562
|
throw new Error("Searchcraft instance is not initialized.");
|
|
6557
|
-
if (!u.searchTerm.trim()) {
|
|
6563
|
+
if (u.core.config.cortexURL && ((m = u.summaryClient) == null || m.streamSummaryData()), !u.searchTerm.trim()) {
|
|
6558
6564
|
(E = (x = u.core) == null ? void 0 : x.searchClient) == null || E.abortRequests(), a({
|
|
6559
6565
|
searchClientResponseItems: [
|
|
6560
6566
|
...u.cachedSearchClientResponseItems
|
|
@@ -6777,7 +6783,7 @@ class ac {
|
|
|
6777
6783
|
}), (e = this.adClient) == null || e.onInputCleared();
|
|
6778
6784
|
}
|
|
6779
6785
|
}
|
|
6780
|
-
const nc = "@searchcraft/vue-sdk", oc = "0.11.
|
|
6786
|
+
const nc = "@searchcraft/vue-sdk", oc = "0.11.1", oa = {
|
|
6781
6787
|
name: nc,
|
|
6782
6788
|
version: oc
|
|
6783
6789
|
}, Qr = "routerLink", ia = "navManager", ic = "router", cc = "aria", zt = Symbol(), ca = { default: zt }, la = (r) => (r == null ? void 0 : r.split(" ")) || [], lc = (r, e, t = []) => {
|