@appbaseio/reactivesearch-vue 3.0.1 → 3.0.3

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.
@@ -26524,7 +26524,7 @@
26524
26524
 
26525
26525
  var _templateObject$k, _templateObject2$8, _templateObject3$5, _templateObject4$2, _templateObject5$2, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10, _templateObject11;
26526
26526
  var Chatbox = styled('div')(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\tmargin: 0 auto;\n\tpadding: 10px;\n\tbackground-color: #fafafa;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\tmargin-bottom: 20px;\n\tbackground-color: ", ";\n\n\t.--trigger-message-wrapper {\n\t\tcursor: pointer;\n\t}\n"])), function (props) {
26527
- return props.theme && props.theme.colors ? curriedLighten(0.1, props.theme.colors.backgroundColor) : '#fff';
26527
+ return props.theme && props.theme.colors && props.theme.colors.backgroundColor ? curriedLighten(0.1, props.theme.colors.backgroundColor) : '#fff';
26528
26528
  });
26529
26529
  var ChatContainer = styled('div')(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\tposition: relative;\n\t.--ai-answer-error-container {\n\t\ttext-align: center;\n\t\tposition: absolute;\n\t\tbottom: 0px;\n\t\t", ";\n\t\tz-index: 1;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t\twidth: 100%;\n\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tpadding: 10px;\n\t\t\tbackground-color: ", ";\n\t\t\tbox-shadow: 0 -5px 5px -2px\n\t\t\t\t", ";\n\n\t\t\tspan {\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\n\t\t\tbutton {\n\t\t\t}\n\t\t}\n\t}\n\n\t", ";\n"])), function (props) {
26530
26530
  return props.showInput ? 'bottom: 48px;' : '';
@@ -27028,14 +27028,22 @@
27028
27028
  mounted: function mounted() {
27029
27029
  this.listenForFocusShortcuts();
27030
27030
  },
27031
+ updated: function updated() {
27032
+ if (this.$props.mode === constants_5$1.SELECT && this.$options.isTagsMode === true) {
27033
+ this.$options.isTagsMode = false;
27034
+ this.selectedTags = [];
27035
+ } else if (this.$props.mode === constants_5$1.TAG && this.$options.isTagsMode === false) {
27036
+ this.$options.isTagsMode = true;
27037
+ }
27038
+ },
27031
27039
  watch: {
27032
27040
  AIResponse: function AIResponse(newVal) {
27033
27041
  if (newVal) {
27034
27042
  if (this.$props.AIUIConfig && this.$props.AIUIConfig.showSourceDocuments && newVal.response && newVal.response.answer && Array.isArray(newVal.response.answer.documentIds)) {
27035
27043
  this.sourceDocIds = newVal.response.answer.documentIds;
27036
27044
  var localCache = helper_2(constants_8$1) && helper_2(constants_8$1)[this.$props.componentId];
27037
- if (localCache && localCache.meta && localCache.meta.hits) {
27038
- this.initialHits = localCache.meta.hits;
27045
+ if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
27046
+ this.initialHits = localCache.meta.hits.hits;
27039
27047
  }
27040
27048
  }
27041
27049
  }
@@ -28652,12 +28660,11 @@
28652
28660
  message: response.error
28653
28661
  };
28654
28662
  }
28655
-
28656
28663
  // pushing message history so far
28657
28664
  if (messagesHistory && Array.isArray(messagesHistory)) {
28658
28665
  finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
28659
28666
  return msg.role !== constants_7$1.SYSTEM;
28660
- }));
28667
+ }).slice(1));
28661
28668
  } else if (response && response.answer && response.answer.text) {
28662
28669
  finalMessages.push({
28663
28670
  role: constants_7$1.ASSISTANT,
@@ -44228,7 +44235,7 @@
44228
44235
  }, queryString, renderFunction);
44229
44236
  }
44230
44237
 
44231
- var version = "3.0.1";
44238
+ var version = "3.0.3";
44232
44239
 
44233
44240
  var components = [RLConnected, ResultCard, ResultList, ReactiveBase, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4, TreeListConnected, AIConnected];
44234
44241
  function install$1 (Vue) {