@searchcraft/react-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.
@@ -6427,8 +6427,14 @@ class Zi {
6427
6427
  const e = async () => {
6428
6428
  var l, f, m, x, T, _;
6429
6429
  const a = this.get(), o = (l = a.core) == null ? void 0 : l.config;
6430
- if (console.log(o), !o || !o.cortexURL)
6431
- throw new Error("cortexURL was not specified in the config.");
6430
+ if (!o) {
6431
+ console.error("Could not stream summary data, no config found.");
6432
+ return;
6433
+ }
6434
+ if (!o.cortexURL) {
6435
+ console.error("Could not stream summary data, cortexURL was not specified in the config.");
6436
+ return;
6437
+ }
6432
6438
  const n = (f = a.core) == null ? void 0 : f.config.indexName;
6433
6439
  if (!a.hasSummaryBox || !n)
6434
6440
  return;
@@ -6553,9 +6559,9 @@ const aa = {
6553
6559
  search: async () => {
6554
6560
  var m, x, T;
6555
6561
  const l = o();
6556
- if ((m = l.summaryClient) == null || m.streamSummaryData(), !l.core)
6562
+ if (!l.core)
6557
6563
  throw new Error("Searchcraft instance is not initialized.");
6558
- if (!l.searchTerm.trim()) {
6564
+ if (l.core.config.cortexURL && ((m = l.summaryClient) == null || m.streamSummaryData()), !l.searchTerm.trim()) {
6559
6565
  (T = (x = l.core) == null ? void 0 : x.searchClient) == null || T.abortRequests(), a({
6560
6566
  searchClientResponseItems: [
6561
6567
  ...l.cachedSearchClientResponseItems
@@ -6778,7 +6784,7 @@ class Qi {
6778
6784
  }), (e = this.adClient) == null || e.onInputCleared();
6779
6785
  }
6780
6786
  }
6781
- const Ki = "@searchcraft/react-sdk", Xi = "0.11.0", na = {
6787
+ const Ki = "@searchcraft/react-sdk", Xi = "0.11.1", na = {
6782
6788
  name: Ki,
6783
6789
  version: Xi
6784
6790
  };