@appbaseio/reactivesearch-vue 3.0.0-rc.6.3 → 3.0.0-rc.6.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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +7 -9
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +3 -3
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{install-547d13b9.js → install-65eec53a.js} +3 -6
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/index.js +2 -2
- package/dist/es/{install-b0a1fd33.js → install-cb6c5753.js} +3 -6
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +2 -2
|
@@ -8246,13 +8246,14 @@
|
|
|
8246
8246
|
var chunk = decoder.decode(value, {
|
|
8247
8247
|
stream: true
|
|
8248
8248
|
});
|
|
8249
|
-
var
|
|
8249
|
+
var regex = /\n\n(?=data:)/;
|
|
8250
|
+
var lines = chunk.split(regex);
|
|
8250
8251
|
var shouldStop = false;
|
|
8251
8252
|
for (var i = 0; i < lines.length; i++) {
|
|
8252
8253
|
var line = lines[i];
|
|
8253
8254
|
if (line.startsWith('data: ')) {
|
|
8254
8255
|
var content = line.slice(6);
|
|
8255
|
-
if (content === '[DONE]') {
|
|
8256
|
+
if (content === '[DONE]\n\n') {
|
|
8256
8257
|
shouldStop = true;
|
|
8257
8258
|
if (Promise.resolve(metaInfoPromise) === metaInfoPromise) {
|
|
8258
8259
|
metaInfoPromise.then(function (resMeta) {
|
|
@@ -24780,7 +24781,7 @@
|
|
|
24780
24781
|
// eslint-disable-next-line no-nested-ternary
|
|
24781
24782
|
props.isSender ? props.themePreset !== 'dark' ? props.theme.colors.primaryColor : props.theme.colors.borderColor : props.theme.colors.borderColor) + ";\n\t}\n\n\tcode {\n\t\tline-height: normal;\n\n\t\tcolor: " + (
|
|
24782
24783
|
// eslint-disable-next-line no-nested-ternary
|
|
24783
|
-
props.isSender ? props.themePreset !== 'dark' ? props.theme.colors.primaryTextColor : props.theme.colors.textColor : props.theme.colors.primaryTextColor) + ";\n\t\tborder-radius: 3px;\n\t\tfont-size: 85%;\n\t\tpadding: 0.2em 0.4em;\n\t\tmargin-top: 5px;\n\t\tdisplay: inline-block;\n\t\toverflow: auto;\n\t\twidth: fit-content;\n\t\tmax-width: 100%;\n\t}\n\tul,\n\tol {\n\t\tlist-style-position: inside;\n\n\t}\n\n\tli{\n\t\tdisplay:
|
|
24784
|
+
props.isSender ? props.themePreset !== 'dark' ? props.theme.colors.primaryTextColor : props.theme.colors.textColor : props.theme.colors.primaryTextColor) + ";\n\t\tborder-radius: 3px;\n\t\tfont-size: 85%;\n\t\tpadding: 0.2em 0.4em;\n\t\tmargin-top: 5px;\n\t\tdisplay: inline-block;\n\t\toverflow: auto;\n\t\twidth: fit-content;\n\t\tmax-width: 100%;\n\t}\n\tul,\n\tol {\n\t\tlist-style-position: inside;\n\t\tpadding-left: 10px;\n\n\t}\n\n\tli{\n\t\tdisplay: list-item;\n\t\tcursor: default;\n\t\tpadding: initial;\n\n\t\t&:hover{\n\t\t\tbackground-color: initial;\n\t\t}\n\t}\n\tp {\n\t\tmargin: inherit;\n\t}\n";
|
|
24784
24785
|
};
|
|
24785
24786
|
var messageBGColor = function messageBGColor(props) {
|
|
24786
24787
|
var finalBGColor;
|
|
@@ -26525,7 +26526,7 @@
|
|
|
26525
26526
|
role: constants_7$1.ASSISTANT,
|
|
26526
26527
|
content: response.answer.text
|
|
26527
26528
|
});
|
|
26528
|
-
this.error = {
|
|
26529
|
+
if (!this.AISessionId) this.error = {
|
|
26529
26530
|
message: this.errorMessageForMissingSessionId
|
|
26530
26531
|
};
|
|
26531
26532
|
}
|
|
@@ -26543,7 +26544,6 @@
|
|
|
26543
26544
|
});
|
|
26544
26545
|
},
|
|
26545
26546
|
isAIResponseLoading: function isAIResponseLoading(newVal) {
|
|
26546
|
-
this.isLoadingState = newVal;
|
|
26547
26547
|
this.$emit('on-data', {
|
|
26548
26548
|
data: this.messages,
|
|
26549
26549
|
rawData: this.$props.rawData,
|
|
@@ -26552,7 +26552,6 @@
|
|
|
26552
26552
|
});
|
|
26553
26553
|
},
|
|
26554
26554
|
isLoading: function isLoading(newVal) {
|
|
26555
|
-
this.isLoadingState = newVal;
|
|
26556
26555
|
this.$emit('on-data', {
|
|
26557
26556
|
data: this.messages,
|
|
26558
26557
|
rawData: this.$props.rawData,
|
|
@@ -26670,6 +26669,7 @@
|
|
|
26670
26669
|
return null;
|
|
26671
26670
|
},
|
|
26672
26671
|
handleKeyPress: function handleKeyPress(e) {
|
|
26672
|
+
window.console.log('e', e);
|
|
26673
26673
|
if (e.key === 'Enter') {
|
|
26674
26674
|
this.handleSendMessage(e);
|
|
26675
26675
|
this.inputMessage = '';
|
|
@@ -26921,12 +26921,10 @@
|
|
|
26921
26921
|
"default": function _default() {
|
|
26922
26922
|
return [vue.createVNode(MessageInput, {
|
|
26923
26923
|
"ref": _inputRef,
|
|
26924
|
-
"type": "text",
|
|
26925
26924
|
"placeholder": props.placeholder,
|
|
26926
26925
|
"enterButton": props.enterButton,
|
|
26927
26926
|
"value": _this4.inputMessage,
|
|
26928
26927
|
"onInput": _this4.handleMessageInputChange,
|
|
26929
|
-
"onKeyPress": _this4.handleKeyPress,
|
|
26930
26928
|
"id": props.componentId + "-ai-input",
|
|
26931
26929
|
"showIcon": props.showIcon,
|
|
26932
26930
|
"iconPosition": props.iconPosition,
|
|
@@ -39950,7 +39948,7 @@
|
|
|
39950
39948
|
}, queryString, renderFunction);
|
|
39951
39949
|
}
|
|
39952
39950
|
|
|
39953
|
-
var version = "3.0.0-rc.6.
|
|
39951
|
+
var version = "3.0.0-rc.6.4";
|
|
39954
39952
|
|
|
39955
39953
|
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];
|
|
39956
39954
|
function install$1 (Vue) {
|