@appbaseio/reactivesearch-vue 3.3.2 → 3.3.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 +2368 -2350
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +7 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{SearchBox-4dff47b4.js → SearchBox-376d32c4.js} +5 -5
- package/dist/cjs/SearchBox.js +2 -2
- package/dist/cjs/SingleList.js +5 -5
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/{install-246c0dab.js → install-b9ecb6e6.js} +1 -1
- package/dist/cjs/install.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/es/{SearchBox-57e3a0ff.js → SearchBox-fbe24e59.js} +5 -5
- package/dist/es/SearchBox.js +2 -2
- package/dist/es/SingleList.js +5 -5
- package/dist/es/index.js +4 -4
- package/dist/es/{install-74125db1.js → install-d73241e0.js} +1 -1
- package/dist/es/install.js +3 -3
- package/dist/es/version.js +1 -1
- package/package.json +5 -4
|
@@ -21,7 +21,7 @@ var Title = require('./Title-d513ac26.js');
|
|
|
21
21
|
var Flex = require('./Flex-f7af0673.js');
|
|
22
22
|
var analytics = require('@appbaseio/reactivecore/lib/actions/analytics');
|
|
23
23
|
var hotkeys = _interopDefault(require('hotkeys-js'));
|
|
24
|
-
var
|
|
24
|
+
var DOMPurify = _interopDefault(require('isomorphic-dompurify'));
|
|
25
25
|
var remarkable = require('remarkable');
|
|
26
26
|
var CancelSvg = require('./CancelSvg-6094cd37.js');
|
|
27
27
|
var Input = require('./Input-55fbd8e1.js');
|
|
@@ -1238,7 +1238,7 @@ var SearchBox = vue.defineComponent({
|
|
|
1238
1238
|
if (typeof renderItem === 'function') {
|
|
1239
1239
|
var jsxEl = renderItem(newSuggestion);
|
|
1240
1240
|
var innerValue = innerText(jsxEl);
|
|
1241
|
-
newSuggestion.value =
|
|
1241
|
+
newSuggestion.value = DOMPurify.sanitize(innerValue);
|
|
1242
1242
|
}
|
|
1243
1243
|
return newSuggestion;
|
|
1244
1244
|
}
|
|
@@ -2578,7 +2578,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2578
2578
|
"style": {
|
|
2579
2579
|
display: 'flex'
|
|
2580
2580
|
},
|
|
2581
|
-
"innerHTML":
|
|
2581
|
+
"innerHTML": DOMPurify.sanitize(item.icon)
|
|
2582
2582
|
}, null);
|
|
2583
2583
|
};
|
|
2584
2584
|
}
|
|
@@ -2589,7 +2589,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2589
2589
|
"style": {
|
|
2590
2590
|
maxWidth: '30px'
|
|
2591
2591
|
},
|
|
2592
|
-
"src":
|
|
2592
|
+
"src": DOMPurify.sanitize(item.iconURL),
|
|
2593
2593
|
"alt": item.value
|
|
2594
2594
|
}, null)
|
|
2595
2595
|
);
|
|
@@ -2627,7 +2627,7 @@ var SearchBox = vue.defineComponent({
|
|
|
2627
2627
|
}), !_this19.showAIScreen && _this19.parsedSuggestions.map(function (item, itemIndex) {
|
|
2628
2628
|
var index = indexOffset + itemIndex;
|
|
2629
2629
|
if (Array.isArray(item)) {
|
|
2630
|
-
var sectionHtml =
|
|
2630
|
+
var sectionHtml = DOMPurify.sanitize(item[0].sectionLabel);
|
|
2631
2631
|
indexOffset += item.length - 1;
|
|
2632
2632
|
return vue.createVNode("div", {
|
|
2633
2633
|
"key": "section-" + itemIndex,
|
package/dist/cjs/SearchBox.js
CHANGED
|
@@ -23,9 +23,9 @@ require('./Title-d513ac26.js');
|
|
|
23
23
|
require('./Flex-f7af0673.js');
|
|
24
24
|
require('@appbaseio/reactivecore/lib/actions/analytics');
|
|
25
25
|
require('hotkeys-js');
|
|
26
|
-
require('
|
|
26
|
+
require('isomorphic-dompurify');
|
|
27
27
|
require('remarkable');
|
|
28
|
-
var SearchBox = require('./SearchBox-
|
|
28
|
+
var SearchBox = require('./SearchBox-376d32c4.js');
|
|
29
29
|
require('./CancelSvg-6094cd37.js');
|
|
30
30
|
require('./Input-55fbd8e1.js');
|
|
31
31
|
require('compute-scroll-into-view');
|
package/dist/cjs/SingleList.js
CHANGED
|
@@ -97,6 +97,11 @@ var SingleList = {
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
watch: {
|
|
100
|
+
selectedValue: function selectedValue(newVal) {
|
|
101
|
+
if (this.$data.currentValue !== newVal) {
|
|
102
|
+
this.setValue(newVal || '');
|
|
103
|
+
}
|
|
104
|
+
},
|
|
100
105
|
options: function options(newVal) {
|
|
101
106
|
if (newVal) {
|
|
102
107
|
this.modifiedOptions = newVal[this.$props.dataField] ? newVal[this.$props.dataField].buckets : [];
|
|
@@ -120,11 +125,6 @@ var SingleList = {
|
|
|
120
125
|
this.setValue(newVal);
|
|
121
126
|
}
|
|
122
127
|
},
|
|
123
|
-
selectedValue: function selectedValue(newVal) {
|
|
124
|
-
if (this.$data.currentValue !== newVal) {
|
|
125
|
-
this.setValue(newVal || '');
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
128
|
defaultQuery: function defaultQuery(newVal, oldVal) {
|
|
129
129
|
if (!index.isQueryIdentical(newVal, oldVal, this.$data.currentValue, this.$props)) {
|
|
130
130
|
this.updateDefaultQueryHandler(this.$data.currentValue, this.$props);
|
package/dist/cjs/index.js
CHANGED
|
@@ -32,16 +32,16 @@ require('@appbaseio/analytics');
|
|
|
32
32
|
require('url-search-params-polyfill');
|
|
33
33
|
var ReactiveBase = require('./ReactiveBase.js');
|
|
34
34
|
require('hotkeys-js');
|
|
35
|
-
require('
|
|
35
|
+
require('isomorphic-dompurify');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
var SearchBox = require('./SearchBox-
|
|
37
|
+
var SearchBox = require('./SearchBox-376d32c4.js');
|
|
38
38
|
require('./CancelSvg-6094cd37.js');
|
|
39
39
|
require('./Input-55fbd8e1.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
41
41
|
require('./Container-1c05785a.js');
|
|
42
42
|
require('vue-highlight-words');
|
|
43
43
|
require('@appbaseio/reactivecore/lib/actions/query');
|
|
44
|
-
var install = require('./install-
|
|
44
|
+
var install = require('./install-b9ecb6e6.js');
|
|
45
45
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
46
46
|
require('./FormControlList-2c10e01a.js');
|
|
47
47
|
require('./utils-a3db8765.js');
|
|
@@ -22,7 +22,7 @@ var Flex = require('./Flex-f7af0673.js');
|
|
|
22
22
|
var analytics = require('@appbaseio/reactivecore/lib/actions/analytics');
|
|
23
23
|
var ReactiveBase = require('./ReactiveBase.js');
|
|
24
24
|
var remarkable = require('remarkable');
|
|
25
|
-
var SearchBox = require('./SearchBox-
|
|
25
|
+
var SearchBox = require('./SearchBox-376d32c4.js');
|
|
26
26
|
var CancelSvg = require('./CancelSvg-6094cd37.js');
|
|
27
27
|
var Input = require('./Input-55fbd8e1.js');
|
|
28
28
|
var Container = require('./Container-1c05785a.js');
|
package/dist/cjs/install.js
CHANGED
|
@@ -32,16 +32,16 @@ require('@appbaseio/analytics');
|
|
|
32
32
|
require('url-search-params-polyfill');
|
|
33
33
|
require('./ReactiveBase.js');
|
|
34
34
|
require('hotkeys-js');
|
|
35
|
-
require('
|
|
35
|
+
require('isomorphic-dompurify');
|
|
36
36
|
require('remarkable');
|
|
37
|
-
require('./SearchBox-
|
|
37
|
+
require('./SearchBox-376d32c4.js');
|
|
38
38
|
require('./CancelSvg-6094cd37.js');
|
|
39
39
|
require('./Input-55fbd8e1.js');
|
|
40
40
|
require('compute-scroll-into-view');
|
|
41
41
|
require('./Container-1c05785a.js');
|
|
42
42
|
require('vue-highlight-words');
|
|
43
43
|
require('@appbaseio/reactivecore/lib/actions/query');
|
|
44
|
-
var install = require('./install-
|
|
44
|
+
var install = require('./install-b9ecb6e6.js');
|
|
45
45
|
require('@appbaseio/reactivecore/lib/utils/suggestions');
|
|
46
46
|
require('./FormControlList-2c10e01a.js');
|
|
47
47
|
require('./utils-a3db8765.js');
|
package/dist/cjs/version.js
CHANGED
|
@@ -17,7 +17,7 @@ import { T as Title } from './Title-100fe896.js';
|
|
|
17
17
|
import { F as Flex } from './Flex-5d11362e.js';
|
|
18
18
|
import { recordAISessionUsefulness } from '@appbaseio/reactivecore/lib/actions/analytics';
|
|
19
19
|
import hotkeys from 'hotkeys-js';
|
|
20
|
-
import
|
|
20
|
+
import DOMPurify from 'isomorphic-dompurify';
|
|
21
21
|
import { Remarkable } from 'remarkable';
|
|
22
22
|
import { I as IconWrapper, C as CancelSvg, a as IconGroup, B as ButtonIconWrapper, D as Downshift, b as InputWrapper } from './CancelSvg-5b82ad4f.js';
|
|
23
23
|
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-cda7f4ad.js';
|
|
@@ -1234,7 +1234,7 @@ var SearchBox = defineComponent({
|
|
|
1234
1234
|
if (typeof renderItem === 'function') {
|
|
1235
1235
|
var jsxEl = renderItem(newSuggestion);
|
|
1236
1236
|
var innerValue = innerText(jsxEl);
|
|
1237
|
-
newSuggestion.value =
|
|
1237
|
+
newSuggestion.value = DOMPurify.sanitize(innerValue);
|
|
1238
1238
|
}
|
|
1239
1239
|
return newSuggestion;
|
|
1240
1240
|
}
|
|
@@ -2574,7 +2574,7 @@ var SearchBox = defineComponent({
|
|
|
2574
2574
|
"style": {
|
|
2575
2575
|
display: 'flex'
|
|
2576
2576
|
},
|
|
2577
|
-
"innerHTML":
|
|
2577
|
+
"innerHTML": DOMPurify.sanitize(item.icon)
|
|
2578
2578
|
}, null);
|
|
2579
2579
|
};
|
|
2580
2580
|
}
|
|
@@ -2585,7 +2585,7 @@ var SearchBox = defineComponent({
|
|
|
2585
2585
|
"style": {
|
|
2586
2586
|
maxWidth: '30px'
|
|
2587
2587
|
},
|
|
2588
|
-
"src":
|
|
2588
|
+
"src": DOMPurify.sanitize(item.iconURL),
|
|
2589
2589
|
"alt": item.value
|
|
2590
2590
|
}, null)
|
|
2591
2591
|
);
|
|
@@ -2623,7 +2623,7 @@ var SearchBox = defineComponent({
|
|
|
2623
2623
|
}), !_this19.showAIScreen && _this19.parsedSuggestions.map(function (item, itemIndex) {
|
|
2624
2624
|
var index = indexOffset + itemIndex;
|
|
2625
2625
|
if (Array.isArray(item)) {
|
|
2626
|
-
var sectionHtml =
|
|
2626
|
+
var sectionHtml = DOMPurify.sanitize(item[0].sectionLabel);
|
|
2627
2627
|
indexOffset += item.length - 1;
|
|
2628
2628
|
return createVNode("div", {
|
|
2629
2629
|
"key": "section-" + itemIndex,
|
package/dist/es/SearchBox.js
CHANGED
|
@@ -19,9 +19,9 @@ import './Title-100fe896.js';
|
|
|
19
19
|
import './Flex-5d11362e.js';
|
|
20
20
|
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
21
21
|
import 'hotkeys-js';
|
|
22
|
-
import '
|
|
22
|
+
import 'isomorphic-dompurify';
|
|
23
23
|
import 'remarkable';
|
|
24
|
-
export { S as SBConnected, a as default } from './SearchBox-
|
|
24
|
+
export { S as SBConnected, a as default } from './SearchBox-fbe24e59.js';
|
|
25
25
|
import './CancelSvg-5b82ad4f.js';
|
|
26
26
|
import './Input-cda7f4ad.js';
|
|
27
27
|
import 'compute-scroll-into-view';
|
package/dist/es/SingleList.js
CHANGED
|
@@ -91,6 +91,11 @@ var SingleList = {
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
watch: {
|
|
94
|
+
selectedValue: function selectedValue(newVal) {
|
|
95
|
+
if (this.$data.currentValue !== newVal) {
|
|
96
|
+
this.setValue(newVal || '');
|
|
97
|
+
}
|
|
98
|
+
},
|
|
94
99
|
options: function options(newVal) {
|
|
95
100
|
if (newVal) {
|
|
96
101
|
this.modifiedOptions = newVal[this.$props.dataField] ? newVal[this.$props.dataField].buckets : [];
|
|
@@ -114,11 +119,6 @@ var SingleList = {
|
|
|
114
119
|
this.setValue(newVal);
|
|
115
120
|
}
|
|
116
121
|
},
|
|
117
|
-
selectedValue: function selectedValue(newVal) {
|
|
118
|
-
if (this.$data.currentValue !== newVal) {
|
|
119
|
-
this.setValue(newVal || '');
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
122
|
defaultQuery: function defaultQuery(newVal, oldVal) {
|
|
123
123
|
if (!isQueryIdentical(newVal, oldVal, this.$data.currentValue, this.$props)) {
|
|
124
124
|
this.updateDefaultQueryHandler(this.$data.currentValue, this.$props);
|
package/dist/es/index.js
CHANGED
|
@@ -28,17 +28,17 @@ import '@appbaseio/analytics';
|
|
|
28
28
|
import 'url-search-params-polyfill';
|
|
29
29
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
30
30
|
import 'hotkeys-js';
|
|
31
|
-
import '
|
|
31
|
+
import 'isomorphic-dompurify';
|
|
32
32
|
import 'remarkable';
|
|
33
|
-
export { a as SearchBox } from './SearchBox-
|
|
33
|
+
export { a as SearchBox } from './SearchBox-fbe24e59.js';
|
|
34
34
|
import './CancelSvg-5b82ad4f.js';
|
|
35
35
|
import './Input-cda7f4ad.js';
|
|
36
36
|
import 'compute-scroll-into-view';
|
|
37
37
|
import './Container-e2261542.js';
|
|
38
38
|
import 'vue-highlight-words';
|
|
39
39
|
import '@appbaseio/reactivecore/lib/actions/query';
|
|
40
|
-
import { i as install } from './install-
|
|
41
|
-
export { A as AIAnswer, R as ReactiveComponentPrivate, T as TreeList, i as install } from './install-
|
|
40
|
+
import { i as install } from './install-d73241e0.js';
|
|
41
|
+
export { A as AIAnswer, R as ReactiveComponentPrivate, T as TreeList, i as install } from './install-d73241e0.js';
|
|
42
42
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
43
43
|
import './FormControlList-968ff972.js';
|
|
44
44
|
import './utils-badbb2a8.js';
|
|
@@ -18,7 +18,7 @@ import { F as Flex } from './Flex-5d11362e.js';
|
|
|
18
18
|
import { recordAISessionUsefulness } from '@appbaseio/reactivecore/lib/actions/analytics';
|
|
19
19
|
import ReactiveBase from './ReactiveBase.js';
|
|
20
20
|
import { Remarkable } from 'remarkable';
|
|
21
|
-
import { F as Footer, b as SourceTags, c as SearchSvg, M as Mic, C as Chatbox, d as ChatContainer, e as MessagesContainer, f as Message, T as TypingIndicator, g as TypingDot, A as AIFeedback, h as MessageInputContainer, I as InputGroup, i as MessageInput, j as SendButton, S as SearchBox } from './SearchBox-
|
|
21
|
+
import { F as Footer, b as SourceTags, c as SearchSvg, M as Mic, C as Chatbox, d as ChatContainer, e as MessagesContainer, f as Message, T as TypingIndicator, g as TypingDot, A as AIFeedback, h as MessageInputContainer, I as InputGroup, i as MessageInput, j as SendButton, S as SearchBox } from './SearchBox-fbe24e59.js';
|
|
22
22
|
import { a as IconGroup, I as IconWrapper, b as InputWrapper } from './CancelSvg-5b82ad4f.js';
|
|
23
23
|
import { I as Input } from './Input-cda7f4ad.js';
|
|
24
24
|
import { C as Container } from './Container-e2261542.js';
|
package/dist/es/install.js
CHANGED
|
@@ -28,16 +28,16 @@ import '@appbaseio/analytics';
|
|
|
28
28
|
import 'url-search-params-polyfill';
|
|
29
29
|
import './ReactiveBase.js';
|
|
30
30
|
import 'hotkeys-js';
|
|
31
|
-
import '
|
|
31
|
+
import 'isomorphic-dompurify';
|
|
32
32
|
import 'remarkable';
|
|
33
|
-
import './SearchBox-
|
|
33
|
+
import './SearchBox-fbe24e59.js';
|
|
34
34
|
import './CancelSvg-5b82ad4f.js';
|
|
35
35
|
import './Input-cda7f4ad.js';
|
|
36
36
|
import 'compute-scroll-into-view';
|
|
37
37
|
import './Container-e2261542.js';
|
|
38
38
|
import 'vue-highlight-words';
|
|
39
39
|
import '@appbaseio/reactivecore/lib/actions/query';
|
|
40
|
-
export { i as default } from './install-
|
|
40
|
+
export { i as default } from './install-d73241e0.js';
|
|
41
41
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
42
42
|
import './FormControlList-968ff972.js';
|
|
43
43
|
import './utils-badbb2a8.js';
|
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.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"jsnext:main": "dist/es/index.js",
|
|
6
6
|
"module": "dist/es/index.js",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"test": "nps test",
|
|
27
27
|
"precommit": "lint-staged",
|
|
28
28
|
"prepare": "npm start validate",
|
|
29
|
-
"version-upgrade": "nps upgrade-vue -c ../../package-scripts.js"
|
|
29
|
+
"version-upgrade": "nps upgrade-vue -c ../../package-scripts.js",
|
|
30
|
+
"postpublish": "yarn run version-upgrade"
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"dist"
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"compute-scroll-into-view": "^1.0.11",
|
|
44
45
|
"emotion": "11.0.0",
|
|
45
46
|
"hotkeys-js": "^3.8.7",
|
|
47
|
+
"isomorphic-dompurify": "^1.12.0",
|
|
46
48
|
"ngeohash": "^0.6.3",
|
|
47
49
|
"polished": "^2.2.0",
|
|
48
50
|
"redux": "^4.0.0",
|
|
@@ -52,8 +54,7 @@
|
|
|
52
54
|
"vue-highlight-words": "^1.2.0",
|
|
53
55
|
"vue-no-ssr": "^1.1.0",
|
|
54
56
|
"vue-slider-component": "next",
|
|
55
|
-
"vue-types": "^5.0.2"
|
|
56
|
-
"xss": "^1.0.11"
|
|
57
|
+
"vue-types": "^5.0.2"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"vue": "^3.1.0"
|