@appbaseio/reactivesearch-vue 3.0.3 → 3.0.4

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.
@@ -24897,7 +24897,7 @@
24897
24897
  var InputWrapper = styled('span')(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n\tflex: 1;\n\tposition: relative;\n\theight: 42px;\n"])));
24898
24898
 
24899
24899
  var _templateObject$a;
24900
- var InputAddon = styled('span')(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
24900
+ var InputAddon = styled('span')(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid transparent;\n border-radius: 6px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));
24901
24901
  InputAddon.defaultProps = {
24902
24902
  className: 'input-addon'
24903
24903
  };
@@ -24971,7 +24971,7 @@
24971
24971
  var noSuggestions = function noSuggestions(themePreset, theme) {
24972
24972
  return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t", "\n"])), themePreset === 'dark' && theme && dark$1(theme));
24973
24973
  };
24974
- var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\tpadding-left: 0;\n\tpadding-right: 0;\n"])), function (props) {
24974
+ var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\tpadding-left: 0;\n\tpadding-right: 0;\n\tborder-color: transparent;\n\n"])), function (props) {
24975
24975
  return input(props.searchBox);
24976
24976
  }, function (_ref4) {
24977
24977
  var themePreset = _ref4.themePreset,
@@ -26585,16 +26585,10 @@
26585
26585
  return resetCSS(props);
26586
26586
  });
26587
26587
  var MessageInputContainer = styled('form')(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tpadding-top: 12px;\n\talign-items: stretch;\n\tmargin-top: 10px;\n\t.ai-enter-button-wrapper {\n\t\talign-self: baseline;\n\t\theight: 41px;\n\t}\n"])));
26588
- var MessageInput = styled(TextArea)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t::placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t:-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\n\t::-ms-input-placeholder {\n\t\tcolor: ", ";\n\t}\n\t", "\n\tpadding-left: 35px;\n"])), function (props) {
26588
+ var MessageInput = styled(TextArea)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t", "\n\tpadding-left: 35px;\n"])), function (props) {
26589
26589
  return props.themePreset === 'dark' ? props.theme.colors.borderColor : '#fff';
26590
26590
  }, function (props) {
26591
26591
  return props.themePreset === 'dark' ? props.theme.colors.titleColor : props.theme.colors.textColor;
26592
- }, function (props) {
26593
- return props.theme.colors.textColor;
26594
- }, function (props) {
26595
- return props.theme.colors.textColor;
26596
- }, function (props) {
26597
- return props.theme.colors.textColor;
26598
26592
  }, function (_ref) {
26599
26593
  var enterButton = _ref.enterButton;
26600
26594
  return enterButton && "\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t";
@@ -27045,6 +27039,9 @@
27045
27039
  if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
27046
27040
  this.initialHits = localCache.meta.hits.hits;
27047
27041
  }
27042
+ if (!this.showAIScreenFooter) {
27043
+ this.showAIScreenFooter = true;
27044
+ }
27048
27045
  }
27049
27046
  }
27050
27047
  },
@@ -27195,7 +27192,7 @@
27195
27192
  }
27196
27193
  },
27197
27194
  currentValue: function currentValue() {
27198
- this.handleTextAreaHeightChange();
27195
+ this.$nextTick(this.handleTextAreaHeightChange);
27199
27196
  }
27200
27197
  },
27201
27198
  methods: {
@@ -28042,7 +28039,7 @@
28042
28039
  AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
28043
28040
  var _ref6 = AIUIConfig || {},
28044
28041
  _ref6$showSourceDocum = _ref6.showSourceDocuments,
28045
- showSourceDocuments = _ref6$showSourceDocum === void 0 ? true : _ref6$showSourceDocum,
28042
+ showSourceDocuments = _ref6$showSourceDocum === void 0 ? false : _ref6$showSourceDocum,
28046
28043
  _ref6$onSourceClick = _ref6.onSourceClick,
28047
28044
  onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
28048
28045
  var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
@@ -28664,7 +28661,10 @@
28664
28661
  if (messagesHistory && Array.isArray(messagesHistory)) {
28665
28662
  finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
28666
28663
  return msg.role !== constants_7$1.SYSTEM;
28667
- }).slice(1));
28664
+ }));
28665
+ if (finalMessages[0].role === constants_7$1.USER) {
28666
+ finalMessages.shift();
28667
+ }
28668
28668
  } else if (response && response.answer && response.answer.text) {
28669
28669
  finalMessages.push({
28670
28670
  role: constants_7$1.ASSISTANT,
@@ -44235,7 +44235,7 @@
44235
44235
  }, queryString, renderFunction);
44236
44236
  }
44237
44237
 
44238
- var version = "3.0.3";
44238
+ var version = "3.0.4";
44239
44239
 
44240
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];
44241
44241
  function install$1 (Vue) {