@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
package/dist/cjs/index.js
CHANGED
|
@@ -33,7 +33,7 @@ require('url-search-params-polyfill');
|
|
|
33
33
|
var ReactiveBase = require('./ReactiveBase.js');
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('remarkable');
|
|
36
|
-
var install = require('./install-
|
|
36
|
+
var install = require('./install-65eec53a.js');
|
|
37
37
|
require('./DropDown-aef75c14.js');
|
|
38
38
|
require('./Input-56eba499.js');
|
|
39
39
|
require('compute-scroll-into-view');
|
|
@@ -827,7 +827,7 @@ var resetCSS = function resetCSS(props) {
|
|
|
827
827
|
// eslint-disable-next-line no-nested-ternary
|
|
828
828
|
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: " + (
|
|
829
829
|
// eslint-disable-next-line no-nested-ternary
|
|
830
|
-
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:
|
|
830
|
+
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";
|
|
831
831
|
};
|
|
832
832
|
var messageBGColor = function messageBGColor(props) {
|
|
833
833
|
var finalBGColor;
|
|
@@ -2572,7 +2572,7 @@ var AIAnswer = vue.defineComponent({
|
|
|
2572
2572
|
role: constants.AI_ROLES.ASSISTANT,
|
|
2573
2573
|
content: response.answer.text
|
|
2574
2574
|
});
|
|
2575
|
-
this.error = {
|
|
2575
|
+
if (!this.AISessionId) this.error = {
|
|
2576
2576
|
message: this.errorMessageForMissingSessionId
|
|
2577
2577
|
};
|
|
2578
2578
|
}
|
|
@@ -2590,7 +2590,6 @@ var AIAnswer = vue.defineComponent({
|
|
|
2590
2590
|
});
|
|
2591
2591
|
},
|
|
2592
2592
|
isAIResponseLoading: function isAIResponseLoading(newVal) {
|
|
2593
|
-
this.isLoadingState = newVal;
|
|
2594
2593
|
this.$emit('on-data', {
|
|
2595
2594
|
data: this.messages,
|
|
2596
2595
|
rawData: this.$props.rawData,
|
|
@@ -2599,7 +2598,6 @@ var AIAnswer = vue.defineComponent({
|
|
|
2599
2598
|
});
|
|
2600
2599
|
},
|
|
2601
2600
|
isLoading: function isLoading(newVal) {
|
|
2602
|
-
this.isLoadingState = newVal;
|
|
2603
2601
|
this.$emit('on-data', {
|
|
2604
2602
|
data: this.messages,
|
|
2605
2603
|
rawData: this.$props.rawData,
|
|
@@ -2717,6 +2715,7 @@ var AIAnswer = vue.defineComponent({
|
|
|
2717
2715
|
return null;
|
|
2718
2716
|
},
|
|
2719
2717
|
handleKeyPress: function handleKeyPress(e) {
|
|
2718
|
+
window.console.log('e', e);
|
|
2720
2719
|
if (e.key === 'Enter') {
|
|
2721
2720
|
this.handleSendMessage(e);
|
|
2722
2721
|
this.inputMessage = '';
|
|
@@ -2968,12 +2967,10 @@ var AIAnswer = vue.defineComponent({
|
|
|
2968
2967
|
"default": function _default() {
|
|
2969
2968
|
return [vue.createVNode(MessageInput, {
|
|
2970
2969
|
"ref": _inputRef,
|
|
2971
|
-
"type": "text",
|
|
2972
2970
|
"placeholder": props.placeholder,
|
|
2973
2971
|
"enterButton": props.enterButton,
|
|
2974
2972
|
"value": _this4.inputMessage,
|
|
2975
2973
|
"onInput": _this4.handleMessageInputChange,
|
|
2976
|
-
"onKeyPress": _this4.handleKeyPress,
|
|
2977
2974
|
"id": props.componentId + "-ai-input",
|
|
2978
2975
|
"showIcon": props.showIcon,
|
|
2979
2976
|
"iconPosition": props.iconPosition,
|
package/dist/cjs/install.js
CHANGED
|
@@ -33,7 +33,7 @@ require('url-search-params-polyfill');
|
|
|
33
33
|
require('./ReactiveBase.js');
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('remarkable');
|
|
36
|
-
var install = require('./install-
|
|
36
|
+
var install = require('./install-65eec53a.js');
|
|
37
37
|
require('./DropDown-aef75c14.js');
|
|
38
38
|
require('./Input-56eba499.js');
|
|
39
39
|
require('compute-scroll-into-view');
|
package/dist/cjs/version.js
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -29,8 +29,8 @@ import 'url-search-params-polyfill';
|
|
|
29
29
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'remarkable';
|
|
32
|
-
import { i as install } from './install-
|
|
33
|
-
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-
|
|
32
|
+
import { i as install } from './install-cb6c5753.js';
|
|
33
|
+
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-cb6c5753.js';
|
|
34
34
|
import './DropDown-39fedff8.js';
|
|
35
35
|
import './Input-11d211d2.js';
|
|
36
36
|
import 'compute-scroll-into-view';
|
|
@@ -823,7 +823,7 @@ var resetCSS = function resetCSS(props) {
|
|
|
823
823
|
// eslint-disable-next-line no-nested-ternary
|
|
824
824
|
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: " + (
|
|
825
825
|
// eslint-disable-next-line no-nested-ternary
|
|
826
|
-
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:
|
|
826
|
+
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";
|
|
827
827
|
};
|
|
828
828
|
var messageBGColor = function messageBGColor(props) {
|
|
829
829
|
var finalBGColor;
|
|
@@ -2568,7 +2568,7 @@ var AIAnswer = defineComponent({
|
|
|
2568
2568
|
role: AI_ROLES.ASSISTANT,
|
|
2569
2569
|
content: response.answer.text
|
|
2570
2570
|
});
|
|
2571
|
-
this.error = {
|
|
2571
|
+
if (!this.AISessionId) this.error = {
|
|
2572
2572
|
message: this.errorMessageForMissingSessionId
|
|
2573
2573
|
};
|
|
2574
2574
|
}
|
|
@@ -2586,7 +2586,6 @@ var AIAnswer = defineComponent({
|
|
|
2586
2586
|
});
|
|
2587
2587
|
},
|
|
2588
2588
|
isAIResponseLoading: function isAIResponseLoading(newVal) {
|
|
2589
|
-
this.isLoadingState = newVal;
|
|
2590
2589
|
this.$emit('on-data', {
|
|
2591
2590
|
data: this.messages,
|
|
2592
2591
|
rawData: this.$props.rawData,
|
|
@@ -2595,7 +2594,6 @@ var AIAnswer = defineComponent({
|
|
|
2595
2594
|
});
|
|
2596
2595
|
},
|
|
2597
2596
|
isLoading: function isLoading(newVal) {
|
|
2598
|
-
this.isLoadingState = newVal;
|
|
2599
2597
|
this.$emit('on-data', {
|
|
2600
2598
|
data: this.messages,
|
|
2601
2599
|
rawData: this.$props.rawData,
|
|
@@ -2713,6 +2711,7 @@ var AIAnswer = defineComponent({
|
|
|
2713
2711
|
return null;
|
|
2714
2712
|
},
|
|
2715
2713
|
handleKeyPress: function handleKeyPress(e) {
|
|
2714
|
+
window.console.log('e', e);
|
|
2716
2715
|
if (e.key === 'Enter') {
|
|
2717
2716
|
this.handleSendMessage(e);
|
|
2718
2717
|
this.inputMessage = '';
|
|
@@ -2964,12 +2963,10 @@ var AIAnswer = defineComponent({
|
|
|
2964
2963
|
"default": function _default() {
|
|
2965
2964
|
return [createVNode(MessageInput, {
|
|
2966
2965
|
"ref": _inputRef,
|
|
2967
|
-
"type": "text",
|
|
2968
2966
|
"placeholder": props.placeholder,
|
|
2969
2967
|
"enterButton": props.enterButton,
|
|
2970
2968
|
"value": _this4.inputMessage,
|
|
2971
2969
|
"onInput": _this4.handleMessageInputChange,
|
|
2972
|
-
"onKeyPress": _this4.handleKeyPress,
|
|
2973
2970
|
"id": props.componentId + "-ai-input",
|
|
2974
2971
|
"showIcon": props.showIcon,
|
|
2975
2972
|
"iconPosition": props.iconPosition,
|
package/dist/es/install.js
CHANGED
|
@@ -29,7 +29,7 @@ import 'url-search-params-polyfill';
|
|
|
29
29
|
import './ReactiveBase.js';
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'remarkable';
|
|
32
|
-
export { i as default } from './install-
|
|
32
|
+
export { i as default } from './install-cb6c5753.js';
|
|
33
33
|
import './DropDown-39fedff8.js';
|
|
34
34
|
import './Input-11d211d2.js';
|
|
35
35
|
import 'compute-scroll-into-view';
|
package/dist/es/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appbaseio/reactivesearch-vue",
|
|
3
|
-
"version": "3.0.0-rc.6.
|
|
3
|
+
"version": "3.0.0-rc.6.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"jsnext:main": "dist/es/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@appbaseio/analytics": "^1.2.0-alpha.1",
|
|
38
|
-
"@appbaseio/reactivecore": "10.0.0-alpha.
|
|
38
|
+
"@appbaseio/reactivecore": "10.0.0-alpha.25",
|
|
39
39
|
"@appbaseio/vue-emotion": "0.6.0-alpha.6",
|
|
40
40
|
"@emotion/css": "^11.10.5",
|
|
41
41
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
|