@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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +13 -13
- 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/{DropDown-26666911.js → DropDown-989facb5.js} +1 -1
- package/dist/cjs/{Input-3ecdb905.js → Input-c11e13af.js} +1 -1
- package/dist/cjs/MultiDropdownList.js +2 -2
- package/dist/cjs/MultiList.js +1 -1
- package/dist/cjs/RangeInput.js +1 -1
- package/dist/cjs/SingleDropdownList.js +2 -2
- package/dist/cjs/SingleList.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/{install-aa24bd30.js → install-7a65d7ff.js} +13 -13
- package/dist/cjs/install.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/es/{DropDown-48045fde.js → DropDown-0075753d.js} +1 -1
- package/dist/es/{Input-83dee8c5.js → Input-a36286ea.js} +1 -1
- package/dist/es/MultiDropdownList.js +2 -2
- package/dist/es/MultiList.js +1 -1
- package/dist/es/RangeInput.js +1 -1
- package/dist/es/SingleDropdownList.js +2 -2
- package/dist/es/SingleList.js +1 -1
- package/dist/es/index.js +4 -4
- package/dist/es/{install-37ef0fb5.js → install-f4b57577.js} +13 -13
- package/dist/es/install.js +3 -3
- package/dist/es/version.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var VueTypes = _interopDefault(require('vue-types'));
|
|
|
10
10
|
var vueEmotion = require('@appbaseio/vue-emotion');
|
|
11
11
|
var vueTypes = require('./vueTypes-289a891a.js');
|
|
12
12
|
var index = require('./index-1f41363f.js');
|
|
13
|
-
var Input = require('./Input-
|
|
13
|
+
var Input = require('./Input-c11e13af.js');
|
|
14
14
|
var computeScrollIntoView = _interopDefault(require('compute-scroll-into-view'));
|
|
15
15
|
var suggestions = require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
16
16
|
|
|
@@ -73,7 +73,7 @@ var suggestionsContainer = css.css(_templateObject6 || (_templateObject6 = _roll
|
|
|
73
73
|
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
74
74
|
return css.css(_templateObject7 || (_templateObject7 = _rollupPluginBabelHelpers._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(theme));
|
|
75
75
|
};
|
|
76
|
-
var TextArea = vueEmotion.styled('textarea')(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._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) {
|
|
76
|
+
var TextArea = vueEmotion.styled('textarea')(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._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) {
|
|
77
77
|
return input(props.searchBox);
|
|
78
78
|
}, function (_ref4) {
|
|
79
79
|
var themePreset = _ref4.themePreset,
|
|
@@ -22,8 +22,8 @@ var index = require('./index-1f41363f.js');
|
|
|
22
22
|
var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
23
23
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
24
24
|
var Title = require('./Title-8802a218.js');
|
|
25
|
-
var DropDown = require('./DropDown-
|
|
26
|
-
require('./Input-
|
|
25
|
+
var DropDown = require('./DropDown-989facb5.js');
|
|
26
|
+
require('./Input-c11e13af.js');
|
|
27
27
|
require('compute-scroll-into-view');
|
|
28
28
|
var Container = require('./Container-29f049b2.js');
|
|
29
29
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
package/dist/cjs/MultiList.js
CHANGED
|
@@ -19,7 +19,7 @@ var index = require('./index-1f41363f.js');
|
|
|
19
19
|
var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
20
20
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
21
21
|
var Title = require('./Title-8802a218.js');
|
|
22
|
-
var Input = require('./Input-
|
|
22
|
+
var Input = require('./Input-c11e13af.js');
|
|
23
23
|
var Container = require('./Container-29f049b2.js');
|
|
24
24
|
var suggestions = require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
25
25
|
var FormControlList = require('./FormControlList-fadd792f.js');
|
package/dist/cjs/RangeInput.js
CHANGED
|
@@ -21,7 +21,7 @@ var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
|
21
21
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
22
22
|
require('./Title-8802a218.js');
|
|
23
23
|
var Flex = require('./Flex-ddde6d26.js');
|
|
24
|
-
var Input = require('./Input-
|
|
24
|
+
var Input = require('./Input-c11e13af.js');
|
|
25
25
|
var Container = require('./Container-29f049b2.js');
|
|
26
26
|
require('vue-slider-component');
|
|
27
27
|
require('vue-slider-component/theme/antd.css');
|
|
@@ -22,8 +22,8 @@ var index = require('./index-1f41363f.js');
|
|
|
22
22
|
var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
23
23
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
24
24
|
var Title = require('./Title-8802a218.js');
|
|
25
|
-
var DropDown = require('./DropDown-
|
|
26
|
-
require('./Input-
|
|
25
|
+
var DropDown = require('./DropDown-989facb5.js');
|
|
26
|
+
require('./Input-c11e13af.js');
|
|
27
27
|
require('compute-scroll-into-view');
|
|
28
28
|
var Container = require('./Container-29f049b2.js');
|
|
29
29
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
package/dist/cjs/SingleList.js
CHANGED
|
@@ -19,7 +19,7 @@ var index = require('./index-1f41363f.js');
|
|
|
19
19
|
var ComponentWrapper = require('./ComponentWrapper-0334c14b.js');
|
|
20
20
|
var PreferencesConsumer = require('./PreferencesConsumer-7bee3c57.js');
|
|
21
21
|
var Title = require('./Title-8802a218.js');
|
|
22
|
-
var Input = require('./Input-
|
|
22
|
+
var Input = require('./Input-c11e13af.js');
|
|
23
23
|
var Container = require('./Container-29f049b2.js');
|
|
24
24
|
var suggestions = require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
25
25
|
var FormControlList = require('./FormControlList-fadd792f.js');
|
package/dist/cjs/index.js
CHANGED
|
@@ -34,9 +34,9 @@ var ReactiveBase = require('./ReactiveBase.js');
|
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('xss');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var install = require('./install-
|
|
38
|
-
require('./DropDown-
|
|
39
|
-
require('./Input-
|
|
37
|
+
var install = require('./install-7a65d7ff.js');
|
|
38
|
+
require('./DropDown-989facb5.js');
|
|
39
|
+
require('./Input-c11e13af.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
41
41
|
require('./Container-29f049b2.js');
|
|
42
42
|
require('vue-highlight-words');
|
|
@@ -27,8 +27,8 @@ var ReactiveBase = require('./ReactiveBase.js');
|
|
|
27
27
|
var hotkeys = _interopDefault(require('hotkeys-js'));
|
|
28
28
|
var xss = _interopDefault(require('xss'));
|
|
29
29
|
var remarkable = require('remarkable');
|
|
30
|
-
var DropDown = require('./DropDown-
|
|
31
|
-
var Input = require('./Input-
|
|
30
|
+
var DropDown = require('./DropDown-989facb5.js');
|
|
31
|
+
var Input = require('./Input-c11e13af.js');
|
|
32
32
|
var Container = require('./Container-29f049b2.js');
|
|
33
33
|
var Highlight = _interopDefault(require('vue-highlight-words'));
|
|
34
34
|
var query = require('@appbaseio/reactivecore/lib/actions/query');
|
|
@@ -65,7 +65,7 @@ InputGroup.defaultProps = {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
var _templateObject$1;
|
|
68
|
-
var InputAddon = vueEmotion.styled('span')(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid
|
|
68
|
+
var InputAddon = vueEmotion.styled('span')(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._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"])));
|
|
69
69
|
InputAddon.defaultProps = {
|
|
70
70
|
className: 'input-addon'
|
|
71
71
|
};
|
|
@@ -870,16 +870,10 @@ var Message = vueEmotion.styled('div')(_templateObject7 || (_templateObject7 = _
|
|
|
870
870
|
return resetCSS(props);
|
|
871
871
|
});
|
|
872
872
|
var MessageInputContainer = vueEmotion.styled('form')(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._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"])));
|
|
873
|
-
var MessageInput = vueEmotion.styled(Input.TextArea)(_templateObject9 || (_templateObject9 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t
|
|
873
|
+
var MessageInput = vueEmotion.styled(Input.TextArea)(_templateObject9 || (_templateObject9 = _rollupPluginBabelHelpers._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) {
|
|
874
874
|
return props.themePreset === 'dark' ? props.theme.colors.borderColor : '#fff';
|
|
875
875
|
}, function (props) {
|
|
876
876
|
return props.themePreset === 'dark' ? props.theme.colors.titleColor : props.theme.colors.textColor;
|
|
877
|
-
}, function (props) {
|
|
878
|
-
return props.theme.colors.textColor;
|
|
879
|
-
}, function (props) {
|
|
880
|
-
return props.theme.colors.textColor;
|
|
881
|
-
}, function (props) {
|
|
882
|
-
return props.theme.colors.textColor;
|
|
883
877
|
}, function (_ref) {
|
|
884
878
|
var enterButton = _ref.enterButton;
|
|
885
879
|
return enterButton && "\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t";
|
|
@@ -1330,6 +1324,9 @@ var SearchBox = vue.defineComponent({
|
|
|
1330
1324
|
if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
|
|
1331
1325
|
this.initialHits = localCache.meta.hits.hits;
|
|
1332
1326
|
}
|
|
1327
|
+
if (!this.showAIScreenFooter) {
|
|
1328
|
+
this.showAIScreenFooter = true;
|
|
1329
|
+
}
|
|
1333
1330
|
}
|
|
1334
1331
|
}
|
|
1335
1332
|
},
|
|
@@ -1480,7 +1477,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1480
1477
|
}
|
|
1481
1478
|
},
|
|
1482
1479
|
currentValue: function currentValue() {
|
|
1483
|
-
this.handleTextAreaHeightChange
|
|
1480
|
+
this.$nextTick(this.handleTextAreaHeightChange);
|
|
1484
1481
|
}
|
|
1485
1482
|
},
|
|
1486
1483
|
methods: {
|
|
@@ -2327,7 +2324,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2327
2324
|
AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
|
|
2328
2325
|
var _ref6 = AIUIConfig || {},
|
|
2329
2326
|
_ref6$showSourceDocum = _ref6.showSourceDocuments,
|
|
2330
|
-
showSourceDocuments = _ref6$showSourceDocum === void 0 ?
|
|
2327
|
+
showSourceDocuments = _ref6$showSourceDocum === void 0 ? false : _ref6$showSourceDocum,
|
|
2331
2328
|
_ref6$onSourceClick = _ref6.onSourceClick,
|
|
2332
2329
|
onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
|
|
2333
2330
|
var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
|
|
@@ -2949,7 +2946,10 @@ var AIAnswer = vue.defineComponent({
|
|
|
2949
2946
|
if (messagesHistory && Array.isArray(messagesHistory)) {
|
|
2950
2947
|
finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
|
|
2951
2948
|
return msg.role !== constants.AI_ROLES.SYSTEM;
|
|
2952
|
-
})
|
|
2949
|
+
}));
|
|
2950
|
+
if (finalMessages[0].role === constants.AI_ROLES.USER) {
|
|
2951
|
+
finalMessages.shift();
|
|
2952
|
+
}
|
|
2953
2953
|
} else if (response && response.answer && response.answer.text) {
|
|
2954
2954
|
finalMessages.push({
|
|
2955
2955
|
role: constants.AI_ROLES.ASSISTANT,
|
package/dist/cjs/install.js
CHANGED
|
@@ -34,9 +34,9 @@ require('./ReactiveBase.js');
|
|
|
34
34
|
require('hotkeys-js');
|
|
35
35
|
require('xss');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var install = require('./install-
|
|
38
|
-
require('./DropDown-
|
|
39
|
-
require('./Input-
|
|
37
|
+
var install = require('./install-7a65d7ff.js');
|
|
38
|
+
require('./DropDown-989facb5.js');
|
|
39
|
+
require('./Input-c11e13af.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
41
41
|
require('./Container-29f049b2.js');
|
|
42
42
|
require('vue-highlight-words');
|
package/dist/cjs/version.js
CHANGED
|
@@ -6,7 +6,7 @@ import VueTypes from 'vue-types';
|
|
|
6
6
|
import { styled } from '@appbaseio/vue-emotion';
|
|
7
7
|
import { t as types } from './vueTypes-f503e267.js';
|
|
8
8
|
import { a as isFunction } from './index-104f1dfb.js';
|
|
9
|
-
import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-
|
|
9
|
+
import { s as suggestionsContainer, a as suggestions, I as Input } from './Input-a36286ea.js';
|
|
10
10
|
import computeScrollIntoView from 'compute-scroll-into-view';
|
|
11
11
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
12
12
|
|
|
@@ -71,7 +71,7 @@ var suggestionsContainer = css(_templateObject6 || (_templateObject6 = _taggedTe
|
|
|
71
71
|
var noSuggestions = function noSuggestions(themePreset, theme) {
|
|
72
72
|
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(theme));
|
|
73
73
|
};
|
|
74
|
-
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) {
|
|
74
|
+
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) {
|
|
75
75
|
return input(props.searchBox);
|
|
76
76
|
}, function (_ref4) {
|
|
77
77
|
var themePreset = _ref4.themePreset,
|
|
@@ -16,8 +16,8 @@ import { j as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical,
|
|
|
16
16
|
import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
17
17
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
18
18
|
import { T as Title } from './Title-863dfa42.js';
|
|
19
|
-
import { c as Dropdown } from './DropDown-
|
|
20
|
-
import './Input-
|
|
19
|
+
import { c as Dropdown } from './DropDown-0075753d.js';
|
|
20
|
+
import './Input-a36286ea.js';
|
|
21
21
|
import 'compute-scroll-into-view';
|
|
22
22
|
import { C as Container } from './Container-d00219f7.js';
|
|
23
23
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
package/dist/es/MultiList.js
CHANGED
|
@@ -13,7 +13,7 @@ import { j as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical,
|
|
|
13
13
|
import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
14
14
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
15
15
|
import { T as Title } from './Title-863dfa42.js';
|
|
16
|
-
import { I as Input } from './Input-
|
|
16
|
+
import { I as Input } from './Input-a36286ea.js';
|
|
17
17
|
import { C as Container } from './Container-d00219f7.js';
|
|
18
18
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
19
19
|
import { U as UL, C as Checkbox } from './FormControlList-fe6eaee4.js';
|
package/dist/es/RangeInput.js
CHANGED
|
@@ -15,7 +15,7 @@ import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
|
15
15
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
16
16
|
import './Title-863dfa42.js';
|
|
17
17
|
import { F as Flex } from './Flex-25792bc3.js';
|
|
18
|
-
import { I as Input } from './Input-
|
|
18
|
+
import { I as Input } from './Input-a36286ea.js';
|
|
19
19
|
import { C as Container } from './Container-d00219f7.js';
|
|
20
20
|
import 'vue-slider-component';
|
|
21
21
|
import 'vue-slider-component/theme/antd.css';
|
|
@@ -16,8 +16,8 @@ import { j as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical,
|
|
|
16
16
|
import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
17
17
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
18
18
|
import { T as Title } from './Title-863dfa42.js';
|
|
19
|
-
import { c as Dropdown } from './DropDown-
|
|
20
|
-
import './Input-
|
|
19
|
+
import { c as Dropdown } from './DropDown-0075753d.js';
|
|
20
|
+
import './Input-a36286ea.js';
|
|
21
21
|
import 'compute-scroll-into-view';
|
|
22
22
|
import { C as Container } from './Container-d00219f7.js';
|
|
23
23
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
package/dist/es/SingleList.js
CHANGED
|
@@ -13,7 +13,7 @@ import { j as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical,
|
|
|
13
13
|
import { C as ComponentWrapper } from './ComponentWrapper-46d04344.js';
|
|
14
14
|
import { P as PreferencesConsumer } from './PreferencesConsumer-0856ed43.js';
|
|
15
15
|
import { T as Title } from './Title-863dfa42.js';
|
|
16
|
-
import { I as Input } from './Input-
|
|
16
|
+
import { I as Input } from './Input-a36286ea.js';
|
|
17
17
|
import { C as Container } from './Container-d00219f7.js';
|
|
18
18
|
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
19
19
|
import { U as UL, R as Radio } from './FormControlList-fe6eaee4.js';
|
package/dist/es/index.js
CHANGED
|
@@ -30,10 +30,10 @@ 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-
|
|
35
|
-
import './DropDown-
|
|
36
|
-
import './Input-
|
|
33
|
+
import { i as install } from './install-f4b57577.js';
|
|
34
|
+
export { A as AIAnswer, R as ReactiveComponentPrivate, S as SearchBox, T as TreeList, i as install } from './install-f4b57577.js';
|
|
35
|
+
import './DropDown-0075753d.js';
|
|
36
|
+
import './Input-a36286ea.js';
|
|
37
37
|
import 'compute-scroll-into-view';
|
|
38
38
|
import './Container-d00219f7.js';
|
|
39
39
|
import 'vue-highlight-words';
|
|
@@ -23,8 +23,8 @@ import ReactiveBase from './ReactiveBase.js';
|
|
|
23
23
|
import hotkeys from 'hotkeys-js';
|
|
24
24
|
import xss from 'xss';
|
|
25
25
|
import { Remarkable } from 'remarkable';
|
|
26
|
-
import { I as IconWrapper, C as CancelSvg, a as IconGroup, B as ButtonIconWrapper, D as Downshift, b as InputWrapper } from './DropDown-
|
|
27
|
-
import { n as noSuggestions, T as TextArea, I as Input, s as suggestionsContainer, A as Actions$1, a as suggestions, b as searchboxSuggestions } from './Input-
|
|
26
|
+
import { I as IconWrapper, C as CancelSvg, a as IconGroup, B as ButtonIconWrapper, D as Downshift, b as InputWrapper } from './DropDown-0075753d.js';
|
|
27
|
+
import { n as noSuggestions, T as TextArea, I as Input, s as suggestionsContainer, A as Actions$1, a as suggestions, b as searchboxSuggestions } from './Input-a36286ea.js';
|
|
28
28
|
import { C as Container } from './Container-d00219f7.js';
|
|
29
29
|
import Highlight from 'vue-highlight-words';
|
|
30
30
|
import { fetchAIResponse, createAISession } from '@appbaseio/reactivecore/lib/actions/query';
|
|
@@ -61,7 +61,7 @@ InputGroup.defaultProps = {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var _templateObject$1;
|
|
64
|
-
var InputAddon = styled('span')(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid
|
|
64
|
+
var InputAddon = styled('span')(_templateObject$1 || (_templateObject$1 = _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"])));
|
|
65
65
|
InputAddon.defaultProps = {
|
|
66
66
|
className: 'input-addon'
|
|
67
67
|
};
|
|
@@ -866,16 +866,10 @@ var Message = styled('div')(_templateObject7 || (_templateObject7 = _taggedTempl
|
|
|
866
866
|
return resetCSS(props);
|
|
867
867
|
});
|
|
868
868
|
var MessageInputContainer = styled('form')(_templateObject8 || (_templateObject8 = _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"])));
|
|
869
|
-
var MessageInput = styled(TextArea)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ", ";\n\tcolor: ", ";\n\n\t
|
|
869
|
+
var MessageInput = styled(TextArea)(_templateObject9 || (_templateObject9 = _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) {
|
|
870
870
|
return props.themePreset === 'dark' ? props.theme.colors.borderColor : '#fff';
|
|
871
871
|
}, function (props) {
|
|
872
872
|
return props.themePreset === 'dark' ? props.theme.colors.titleColor : props.theme.colors.textColor;
|
|
873
|
-
}, function (props) {
|
|
874
|
-
return props.theme.colors.textColor;
|
|
875
|
-
}, function (props) {
|
|
876
|
-
return props.theme.colors.textColor;
|
|
877
|
-
}, function (props) {
|
|
878
|
-
return props.theme.colors.textColor;
|
|
879
873
|
}, function (_ref) {
|
|
880
874
|
var enterButton = _ref.enterButton;
|
|
881
875
|
return enterButton && "\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t";
|
|
@@ -1326,6 +1320,9 @@ var SearchBox = defineComponent({
|
|
|
1326
1320
|
if (localCache && localCache.meta && localCache.meta.hits && localCache.meta.hits.hits) {
|
|
1327
1321
|
this.initialHits = localCache.meta.hits.hits;
|
|
1328
1322
|
}
|
|
1323
|
+
if (!this.showAIScreenFooter) {
|
|
1324
|
+
this.showAIScreenFooter = true;
|
|
1325
|
+
}
|
|
1329
1326
|
}
|
|
1330
1327
|
}
|
|
1331
1328
|
},
|
|
@@ -1476,7 +1473,7 @@ var SearchBox = defineComponent({
|
|
|
1476
1473
|
}
|
|
1477
1474
|
},
|
|
1478
1475
|
currentValue: function currentValue() {
|
|
1479
|
-
this.handleTextAreaHeightChange
|
|
1476
|
+
this.$nextTick(this.handleTextAreaHeightChange);
|
|
1480
1477
|
}
|
|
1481
1478
|
},
|
|
1482
1479
|
methods: {
|
|
@@ -2323,7 +2320,7 @@ var SearchBox = defineComponent({
|
|
|
2323
2320
|
AIUIConfig = _this$$props$AIUIConf2 === void 0 ? {} : _this$$props$AIUIConf2;
|
|
2324
2321
|
var _ref6 = AIUIConfig || {},
|
|
2325
2322
|
_ref6$showSourceDocum = _ref6.showSourceDocuments,
|
|
2326
|
-
showSourceDocuments = _ref6$showSourceDocum === void 0 ?
|
|
2323
|
+
showSourceDocuments = _ref6$showSourceDocum === void 0 ? false : _ref6$showSourceDocum,
|
|
2327
2324
|
_ref6$onSourceClick = _ref6.onSourceClick,
|
|
2328
2325
|
onSourceClick = _ref6$onSourceClick === void 0 ? function () {} : _ref6$onSourceClick;
|
|
2329
2326
|
var renderSourceDocumentLabel = function renderSourceDocumentLabel(sourceObj) {
|
|
@@ -2945,7 +2942,10 @@ var AIAnswer = defineComponent({
|
|
|
2945
2942
|
if (messagesHistory && Array.isArray(messagesHistory)) {
|
|
2946
2943
|
finalMessages.push.apply(finalMessages, messagesHistory.filter(function (msg) {
|
|
2947
2944
|
return msg.role !== AI_ROLES.SYSTEM;
|
|
2948
|
-
})
|
|
2945
|
+
}));
|
|
2946
|
+
if (finalMessages[0].role === AI_ROLES.USER) {
|
|
2947
|
+
finalMessages.shift();
|
|
2948
|
+
}
|
|
2949
2949
|
} else if (response && response.answer && response.answer.text) {
|
|
2950
2950
|
finalMessages.push({
|
|
2951
2951
|
role: AI_ROLES.ASSISTANT,
|
package/dist/es/install.js
CHANGED
|
@@ -30,9 +30,9 @@ import './ReactiveBase.js';
|
|
|
30
30
|
import 'hotkeys-js';
|
|
31
31
|
import 'xss';
|
|
32
32
|
import 'remarkable';
|
|
33
|
-
export { i as default } from './install-
|
|
34
|
-
import './DropDown-
|
|
35
|
-
import './Input-
|
|
33
|
+
export { i as default } from './install-f4b57577.js';
|
|
34
|
+
import './DropDown-0075753d.js';
|
|
35
|
+
import './Input-a36286ea.js';
|
|
36
36
|
import 'compute-scroll-into-view';
|
|
37
37
|
import './Container-d00219f7.js';
|
|
38
38
|
import 'vue-highlight-words';
|
package/dist/es/version.js
CHANGED