@appbaseio/reactivesearch-vue 3.0.0-rc.6.2 → 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 +32 -25
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{install-a3eedd27.js → install-65eec53a.js} +11 -9
- 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-25b06215.js → install-cb6c5753.js} +11 -9
- 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;
|
|
@@ -2545,7 +2545,8 @@ var AIAnswer = vue.defineComponent({
|
|
|
2545
2545
|
renderError: vueTypes.types.title,
|
|
2546
2546
|
isLoading: vueTypes.types.boolRequired,
|
|
2547
2547
|
sessionIdFromStore: VueTypes.string,
|
|
2548
|
-
showComponent: vueTypes.types.boolRequired
|
|
2548
|
+
showComponent: vueTypes.types.boolRequired,
|
|
2549
|
+
style: vueTypes.types.style
|
|
2549
2550
|
},
|
|
2550
2551
|
mounted: function mounted() {},
|
|
2551
2552
|
watch: {
|
|
@@ -2571,7 +2572,7 @@ var AIAnswer = vue.defineComponent({
|
|
|
2571
2572
|
role: constants.AI_ROLES.ASSISTANT,
|
|
2572
2573
|
content: response.answer.text
|
|
2573
2574
|
});
|
|
2574
|
-
this.error = {
|
|
2575
|
+
if (!this.AISessionId) this.error = {
|
|
2575
2576
|
message: this.errorMessageForMissingSessionId
|
|
2576
2577
|
};
|
|
2577
2578
|
}
|
|
@@ -2589,7 +2590,6 @@ var AIAnswer = vue.defineComponent({
|
|
|
2589
2590
|
});
|
|
2590
2591
|
},
|
|
2591
2592
|
isAIResponseLoading: function isAIResponseLoading(newVal) {
|
|
2592
|
-
this.isLoadingState = newVal;
|
|
2593
2593
|
this.$emit('on-data', {
|
|
2594
2594
|
data: this.messages,
|
|
2595
2595
|
rawData: this.$props.rawData,
|
|
@@ -2598,7 +2598,6 @@ var AIAnswer = vue.defineComponent({
|
|
|
2598
2598
|
});
|
|
2599
2599
|
},
|
|
2600
2600
|
isLoading: function isLoading(newVal) {
|
|
2601
|
-
this.isLoadingState = newVal;
|
|
2602
2601
|
this.$emit('on-data', {
|
|
2603
2602
|
data: this.messages,
|
|
2604
2603
|
rawData: this.$props.rawData,
|
|
@@ -2716,6 +2715,7 @@ var AIAnswer = vue.defineComponent({
|
|
|
2716
2715
|
return null;
|
|
2717
2716
|
},
|
|
2718
2717
|
handleKeyPress: function handleKeyPress(e) {
|
|
2718
|
+
window.console.log('e', e);
|
|
2719
2719
|
if (e.key === 'Enter') {
|
|
2720
2720
|
this.handleSendMessage(e);
|
|
2721
2721
|
this.inputMessage = '';
|
|
@@ -2813,7 +2813,7 @@ var AIAnswer = vue.defineComponent({
|
|
|
2813
2813
|
"tabIndex": 0,
|
|
2814
2814
|
"onClick": _this3.handleSendMessage,
|
|
2815
2815
|
"onKeyPress": _this3.handleKeyPress,
|
|
2816
|
-
"class": "
|
|
2816
|
+
"class": "ask-btn " + helper.getClassName(innerClass, 'ai-enter-button'),
|
|
2817
2817
|
"disabled": _this3.isLoadingState || !_this3.AISessionId
|
|
2818
2818
|
}, {
|
|
2819
2819
|
"default": function _default() {
|
|
@@ -2877,7 +2877,10 @@ var AIAnswer = vue.defineComponent({
|
|
|
2877
2877
|
if (!this.shouldShowComponent) {
|
|
2878
2878
|
return null;
|
|
2879
2879
|
}
|
|
2880
|
-
return vue.createVNode(Chatbox,
|
|
2880
|
+
return vue.createVNode(Chatbox, {
|
|
2881
|
+
"style": props.style,
|
|
2882
|
+
"class": "--ai-chat-box-wrapper"
|
|
2883
|
+
}, {
|
|
2881
2884
|
"default": function _default() {
|
|
2882
2885
|
return [_this4.$props.title && vue.createVNode(Title.Title, {
|
|
2883
2886
|
"class": helper.getClassName(_this4.$props.innerClass, 'title') || ''
|
|
@@ -2886,6 +2889,7 @@ var AIAnswer = vue.defineComponent({
|
|
|
2886
2889
|
return [_this4.$props.title];
|
|
2887
2890
|
}
|
|
2888
2891
|
}), vue.createVNode(ChatContainer, {
|
|
2892
|
+
"class": "--ai-chat-container",
|
|
2889
2893
|
"theme": props.theme,
|
|
2890
2894
|
"showInput": props.showInput
|
|
2891
2895
|
}, {
|
|
@@ -2963,12 +2967,10 @@ var AIAnswer = vue.defineComponent({
|
|
|
2963
2967
|
"default": function _default() {
|
|
2964
2968
|
return [vue.createVNode(MessageInput, {
|
|
2965
2969
|
"ref": _inputRef,
|
|
2966
|
-
"type": "text",
|
|
2967
2970
|
"placeholder": props.placeholder,
|
|
2968
2971
|
"enterButton": props.enterButton,
|
|
2969
2972
|
"value": _this4.inputMessage,
|
|
2970
2973
|
"onInput": _this4.handleMessageInputChange,
|
|
2971
|
-
"onKeyPress": _this4.handleKeyPress,
|
|
2972
2974
|
"id": props.componentId + "-ai-input",
|
|
2973
2975
|
"showIcon": props.showIcon,
|
|
2974
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;
|
|
@@ -2541,7 +2541,8 @@ var AIAnswer = defineComponent({
|
|
|
2541
2541
|
renderError: types.title,
|
|
2542
2542
|
isLoading: types.boolRequired,
|
|
2543
2543
|
sessionIdFromStore: VueTypes.string,
|
|
2544
|
-
showComponent: types.boolRequired
|
|
2544
|
+
showComponent: types.boolRequired,
|
|
2545
|
+
style: types.style
|
|
2545
2546
|
},
|
|
2546
2547
|
mounted: function mounted() {},
|
|
2547
2548
|
watch: {
|
|
@@ -2567,7 +2568,7 @@ var AIAnswer = defineComponent({
|
|
|
2567
2568
|
role: AI_ROLES.ASSISTANT,
|
|
2568
2569
|
content: response.answer.text
|
|
2569
2570
|
});
|
|
2570
|
-
this.error = {
|
|
2571
|
+
if (!this.AISessionId) this.error = {
|
|
2571
2572
|
message: this.errorMessageForMissingSessionId
|
|
2572
2573
|
};
|
|
2573
2574
|
}
|
|
@@ -2585,7 +2586,6 @@ var AIAnswer = defineComponent({
|
|
|
2585
2586
|
});
|
|
2586
2587
|
},
|
|
2587
2588
|
isAIResponseLoading: function isAIResponseLoading(newVal) {
|
|
2588
|
-
this.isLoadingState = newVal;
|
|
2589
2589
|
this.$emit('on-data', {
|
|
2590
2590
|
data: this.messages,
|
|
2591
2591
|
rawData: this.$props.rawData,
|
|
@@ -2594,7 +2594,6 @@ var AIAnswer = defineComponent({
|
|
|
2594
2594
|
});
|
|
2595
2595
|
},
|
|
2596
2596
|
isLoading: function isLoading(newVal) {
|
|
2597
|
-
this.isLoadingState = newVal;
|
|
2598
2597
|
this.$emit('on-data', {
|
|
2599
2598
|
data: this.messages,
|
|
2600
2599
|
rawData: this.$props.rawData,
|
|
@@ -2712,6 +2711,7 @@ var AIAnswer = defineComponent({
|
|
|
2712
2711
|
return null;
|
|
2713
2712
|
},
|
|
2714
2713
|
handleKeyPress: function handleKeyPress(e) {
|
|
2714
|
+
window.console.log('e', e);
|
|
2715
2715
|
if (e.key === 'Enter') {
|
|
2716
2716
|
this.handleSendMessage(e);
|
|
2717
2717
|
this.inputMessage = '';
|
|
@@ -2809,7 +2809,7 @@ var AIAnswer = defineComponent({
|
|
|
2809
2809
|
"tabIndex": 0,
|
|
2810
2810
|
"onClick": _this3.handleSendMessage,
|
|
2811
2811
|
"onKeyPress": _this3.handleKeyPress,
|
|
2812
|
-
"class": "
|
|
2812
|
+
"class": "ask-btn " + getClassName$2(innerClass, 'ai-enter-button'),
|
|
2813
2813
|
"disabled": _this3.isLoadingState || !_this3.AISessionId
|
|
2814
2814
|
}, {
|
|
2815
2815
|
"default": function _default() {
|
|
@@ -2873,7 +2873,10 @@ var AIAnswer = defineComponent({
|
|
|
2873
2873
|
if (!this.shouldShowComponent) {
|
|
2874
2874
|
return null;
|
|
2875
2875
|
}
|
|
2876
|
-
return createVNode(Chatbox,
|
|
2876
|
+
return createVNode(Chatbox, {
|
|
2877
|
+
"style": props.style,
|
|
2878
|
+
"class": "--ai-chat-box-wrapper"
|
|
2879
|
+
}, {
|
|
2877
2880
|
"default": function _default() {
|
|
2878
2881
|
return [_this4.$props.title && createVNode(Title, {
|
|
2879
2882
|
"class": getClassName$2(_this4.$props.innerClass, 'title') || ''
|
|
@@ -2882,6 +2885,7 @@ var AIAnswer = defineComponent({
|
|
|
2882
2885
|
return [_this4.$props.title];
|
|
2883
2886
|
}
|
|
2884
2887
|
}), createVNode(ChatContainer, {
|
|
2888
|
+
"class": "--ai-chat-container",
|
|
2885
2889
|
"theme": props.theme,
|
|
2886
2890
|
"showInput": props.showInput
|
|
2887
2891
|
}, {
|
|
@@ -2959,12 +2963,10 @@ var AIAnswer = defineComponent({
|
|
|
2959
2963
|
"default": function _default() {
|
|
2960
2964
|
return [createVNode(MessageInput, {
|
|
2961
2965
|
"ref": _inputRef,
|
|
2962
|
-
"type": "text",
|
|
2963
2966
|
"placeholder": props.placeholder,
|
|
2964
2967
|
"enterButton": props.enterButton,
|
|
2965
2968
|
"value": _this4.inputMessage,
|
|
2966
2969
|
"onInput": _this4.handleMessageInputChange,
|
|
2967
|
-
"onKeyPress": _this4.handleKeyPress,
|
|
2968
2970
|
"id": props.componentId + "-ai-input",
|
|
2969
2971
|
"showIcon": props.showIcon,
|
|
2970
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",
|