@appbaseio/reactivesearch-vue 3.0.2 → 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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +10 -3
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +2 -2
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{install-f7d9b812.js → install-aa24bd30.js} +9 -2
- 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-3af47936.js → install-37ef0fb5.js} +9 -2
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var ReactiveBase = require('./ReactiveBase.js');
|
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('xss');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var install = require('./install-
|
|
37
|
+
var install = require('./install-aa24bd30.js');
|
|
38
38
|
require('./DropDown-26666911.js');
|
|
39
39
|
require('./Input-3ecdb905.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
@@ -1313,6 +1313,14 @@ var SearchBox = vue.defineComponent({
|
|
|
1313
1313
|
mounted: function mounted() {
|
|
1314
1314
|
this.listenForFocusShortcuts();
|
|
1315
1315
|
},
|
|
1316
|
+
updated: function updated() {
|
|
1317
|
+
if (this.$props.mode === constants.SEARCH_COMPONENTS_MODES.SELECT && this.$options.isTagsMode === true) {
|
|
1318
|
+
this.$options.isTagsMode = false;
|
|
1319
|
+
this.selectedTags = [];
|
|
1320
|
+
} else if (this.$props.mode === constants.SEARCH_COMPONENTS_MODES.TAG && this.$options.isTagsMode === false) {
|
|
1321
|
+
this.$options.isTagsMode = true;
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1316
1324
|
watch: {
|
|
1317
1325
|
AIResponse: function AIResponse(newVal) {
|
|
1318
1326
|
if (newVal) {
|
|
@@ -2937,12 +2945,11 @@ var AIAnswer = vue.defineComponent({
|
|
|
2937
2945
|
message: response.error
|
|
2938
2946
|
};
|
|
2939
2947
|
}
|
|
2940
|
-
|
|
2941
2948
|
// pushing message history so far
|
|
2942
2949
|
if (messagesHistory && Array.isArray(messagesHistory)) {
|
|
2943
2950
|
finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
|
|
2944
2951
|
return msg.role !== constants.AI_ROLES.SYSTEM;
|
|
2945
|
-
}));
|
|
2952
|
+
}).slice(1));
|
|
2946
2953
|
} else if (response && response.answer && response.answer.text) {
|
|
2947
2954
|
finalMessages.push({
|
|
2948
2955
|
role: constants.AI_ROLES.ASSISTANT,
|
package/dist/cjs/install.js
CHANGED
|
@@ -34,7 +34,7 @@ require('./ReactiveBase.js');
|
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('xss');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var install = require('./install-
|
|
37
|
+
var install = require('./install-aa24bd30.js');
|
|
38
38
|
require('./DropDown-26666911.js');
|
|
39
39
|
require('./Input-3ecdb905.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
package/dist/cjs/version.js
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -30,8 +30,8 @@ export { default as ReactiveBase } from './ReactiveBase.js';
|
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'xss';
|
|
32
32
|
import 'remarkable';
|
|
33
|
-
import { i as install } from './install-
|
|
34
|
-
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-
|
|
33
|
+
import { i as install } from './install-37ef0fb5.js';
|
|
34
|
+
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-37ef0fb5.js';
|
|
35
35
|
import './DropDown-48045fde.js';
|
|
36
36
|
import './Input-83dee8c5.js';
|
|
37
37
|
import 'compute-scroll-into-view';
|
|
@@ -1309,6 +1309,14 @@ var SearchBox = defineComponent({
|
|
|
1309
1309
|
mounted: function mounted() {
|
|
1310
1310
|
this.listenForFocusShortcuts();
|
|
1311
1311
|
},
|
|
1312
|
+
updated: function updated() {
|
|
1313
|
+
if (this.$props.mode === SEARCH_COMPONENTS_MODES.SELECT && this.$options.isTagsMode === true) {
|
|
1314
|
+
this.$options.isTagsMode = false;
|
|
1315
|
+
this.selectedTags = [];
|
|
1316
|
+
} else if (this.$props.mode === SEARCH_COMPONENTS_MODES.TAG && this.$options.isTagsMode === false) {
|
|
1317
|
+
this.$options.isTagsMode = true;
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1312
1320
|
watch: {
|
|
1313
1321
|
AIResponse: function AIResponse(newVal) {
|
|
1314
1322
|
if (newVal) {
|
|
@@ -2933,12 +2941,11 @@ var AIAnswer = defineComponent({
|
|
|
2933
2941
|
message: response.error
|
|
2934
2942
|
};
|
|
2935
2943
|
}
|
|
2936
|
-
|
|
2937
2944
|
// pushing message history so far
|
|
2938
2945
|
if (messagesHistory && Array.isArray(messagesHistory)) {
|
|
2939
2946
|
finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
|
|
2940
2947
|
return msg.role !== AI_ROLES.SYSTEM;
|
|
2941
|
-
}));
|
|
2948
|
+
}).slice(1));
|
|
2942
2949
|
} else if (response && response.answer && response.answer.text) {
|
|
2943
2950
|
finalMessages.push({
|
|
2944
2951
|
role: AI_ROLES.ASSISTANT,
|
package/dist/es/install.js
CHANGED
|
@@ -30,7 +30,7 @@ import './ReactiveBase.js';
|
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'xss';
|
|
32
32
|
import 'remarkable';
|
|
33
|
-
export { i as default } from './install-
|
|
33
|
+
export { i as default } from './install-37ef0fb5.js';
|
|
34
34
|
import './DropDown-48045fde.js';
|
|
35
35
|
import './Input-83dee8c5.js';
|
|
36
36
|
import 'compute-scroll-into-view';
|
package/dist/es/version.js
CHANGED