@appbaseio/reactivesearch-vue 3.3.2 → 3.3.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.
@@ -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 xss = _interopDefault(require('xss'));
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 = xss(innerValue);
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": xss(item.icon)
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": xss(item.iconURL),
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 = xss(item[0].sectionLabel);
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,
@@ -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('xss');
26
+ require('isomorphic-dompurify');
27
27
  require('remarkable');
28
- var SearchBox = require('./SearchBox-4dff47b4.js');
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/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('xss');
35
+ require('isomorphic-dompurify');
36
36
  require('remarkable');
37
- var SearchBox = require('./SearchBox-4dff47b4.js');
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-246c0dab.js');
44
+ var install = require('./install-63340f7c.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-4dff47b4.js');
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');
@@ -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('xss');
35
+ require('isomorphic-dompurify');
36
36
  require('remarkable');
37
- require('./SearchBox-4dff47b4.js');
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-246c0dab.js');
44
+ var install = require('./install-63340f7c.js');
45
45
  require('@appbaseio/reactivecore/lib/utils/suggestions');
46
46
  require('./FormControlList-2c10e01a.js');
47
47
  require('./utils-a3db8765.js');
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "3.3.2";
5
+ var version = "3.3.3";
6
6
 
7
7
  exports.default = version;
@@ -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 xss from 'xss';
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 = xss(innerValue);
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": xss(item.icon)
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": xss(item.iconURL),
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 = xss(item[0].sectionLabel);
2626
+ var sectionHtml = DOMPurify.sanitize(item[0].sectionLabel);
2627
2627
  indexOffset += item.length - 1;
2628
2628
  return createVNode("div", {
2629
2629
  "key": "section-" + itemIndex,
@@ -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 'xss';
22
+ import 'isomorphic-dompurify';
23
23
  import 'remarkable';
24
- export { S as SBConnected, a as default } from './SearchBox-57e3a0ff.js';
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/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 'xss';
31
+ import 'isomorphic-dompurify';
32
32
  import 'remarkable';
33
- export { a as SearchBox } from './SearchBox-57e3a0ff.js';
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-74125db1.js';
41
- export { A as AIAnswer, R as ReactiveComponentPrivate, T as TreeList, i as install } from './install-74125db1.js';
40
+ import { i as install } from './install-0dab9c28.js';
41
+ export { A as AIAnswer, R as ReactiveComponentPrivate, T as TreeList, i as install } from './install-0dab9c28.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-57e3a0ff.js';
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';
@@ -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 'xss';
31
+ import 'isomorphic-dompurify';
32
32
  import 'remarkable';
33
- import './SearchBox-57e3a0ff.js';
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-74125db1.js';
40
+ export { i as default } from './install-0dab9c28.js';
41
41
  import '@appbaseio/reactivecore/lib/utils/suggestions';
42
42
  import './FormControlList-968ff972.js';
43
43
  import './utils-badbb2a8.js';
@@ -1,3 +1,3 @@
1
- var version = "3.3.2";
1
+ var version = "3.3.3";
2
2
 
3
3
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
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"