@appbaseio/reactivesearch-vue 1.23.2 → 1.24.0

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.
Files changed (51) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +305 -91
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/DataSearch.js +2 -2
  6. package/dist/cjs/{DropDown-59a7971b.js → DropDown-6815b9b6.js} +1 -1
  7. package/dist/cjs/DynamicRangeSlider.js +1 -1
  8. package/dist/cjs/MultiDropdownList.js +2 -2
  9. package/dist/cjs/MultiList.js +1 -1
  10. package/dist/cjs/MultiRange.js +1 -1
  11. package/dist/cjs/RangeInput.js +1 -1
  12. package/dist/cjs/RangeSlider.js +1 -1
  13. package/dist/cjs/ReactiveBase.js +14 -8
  14. package/dist/cjs/ReactiveComponent.js +1 -1
  15. package/dist/cjs/ReactiveList.js +52 -53
  16. package/dist/cjs/ResultCard.js +1 -1
  17. package/dist/cjs/ResultList.js +1 -1
  18. package/dist/cjs/SelectedFilters.js +1 -1
  19. package/dist/cjs/SingleDropdownList.js +2 -2
  20. package/dist/cjs/SingleList.js +1 -1
  21. package/dist/cjs/SingleRange.js +1 -1
  22. package/dist/cjs/ToggleButton.js +1 -1
  23. package/dist/cjs/index.js +3 -3
  24. package/dist/cjs/initReactivesearch.js +3 -2
  25. package/dist/cjs/install.js +3 -3
  26. package/dist/cjs/version.js +1 -1
  27. package/dist/cjs/{vueTypes-22b4fd3a.js → vueTypes-4c19b4c8.js} +5 -1
  28. package/dist/es/DataSearch.js +2 -2
  29. package/dist/es/{DropDown-db7fe433.js → DropDown-035c804f.js} +1 -1
  30. package/dist/es/DynamicRangeSlider.js +1 -1
  31. package/dist/es/MultiDropdownList.js +2 -2
  32. package/dist/es/MultiList.js +1 -1
  33. package/dist/es/MultiRange.js +1 -1
  34. package/dist/es/RangeInput.js +1 -1
  35. package/dist/es/RangeSlider.js +1 -1
  36. package/dist/es/ReactiveBase.js +14 -8
  37. package/dist/es/ReactiveComponent.js +1 -1
  38. package/dist/es/ReactiveList.js +52 -53
  39. package/dist/es/ResultCard.js +1 -1
  40. package/dist/es/ResultList.js +1 -1
  41. package/dist/es/SelectedFilters.js +1 -1
  42. package/dist/es/SingleDropdownList.js +2 -2
  43. package/dist/es/SingleList.js +1 -1
  44. package/dist/es/SingleRange.js +1 -1
  45. package/dist/es/ToggleButton.js +1 -1
  46. package/dist/es/index.js +3 -3
  47. package/dist/es/initReactivesearch.js +3 -2
  48. package/dist/es/install.js +3 -3
  49. package/dist/es/version.js +1 -1
  50. package/dist/es/{vueTypes-e89c8a3c.js → vueTypes-fb61bb7b.js} +5 -1
  51. package/package.json +3 -3
@@ -3,7 +3,7 @@ import { a as _extends } from './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import '@appbaseio/vue-emotion';
6
- import { t as types } from './vueTypes-e89c8a3c.js';
6
+ import { t as types } from './vueTypes-fb61bb7b.js';
7
7
  import 'redux';
8
8
  import { f as updateCustomQuery, d as getValidPropsKeys, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
9
9
  import { T as Title } from './Title-3522ff56.js';
@@ -6,7 +6,7 @@ import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
8
  import { l as loadMoreContainer, B as Button } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-e89c8a3c.js';
9
+ import { t as types } from './vueTypes-fb61bb7b.js';
10
10
  import '@appbaseio/reactivecore/lib/utils/transform';
11
11
  import 'redux';
12
12
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, o as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-cb1950b6.js';
@@ -17,7 +17,7 @@ import 'compute-scroll-into-view';
17
17
  import './DownShift-3558d402.js';
18
18
  import { C as Container } from './Container-18b03fde.js';
19
19
  import { g as getAggsQuery } from './utils-64a2e5f0.js';
20
- import { D as Dropdown } from './DropDown-db7fe433.js';
20
+ import { D as Dropdown } from './DropDown-035c804f.js';
21
21
 
22
22
  var updateQuery = Actions.updateQuery,
23
23
  setQueryOptions = Actions.setQueryOptions,
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-e89c8a3c.js';
8
+ import { t as types } from './vueTypes-fb61bb7b.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, n as isEvent, o as parseValueArray, g as getComponent, h as hasCustomRenderer, c as connect } from './index-cb1950b6.js';
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-e89c8a3c.js';
8
+ import { t as types } from './vueTypes-fb61bb7b.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { o as parseValueArray, f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import { css } from 'emotion';
6
6
  import styled from '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-e89c8a3c.js';
8
+ import { t as types } from './vueTypes-fb61bb7b.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { c as connect } from './index-cb1950b6.js';
@@ -3,7 +3,7 @@ import { a as _extends } from './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import '@appbaseio/vue-emotion';
6
- import { t as types } from './vueTypes-e89c8a3c.js';
6
+ import { t as types } from './vueTypes-fb61bb7b.js';
7
7
  import '@appbaseio/reactivecore/lib/utils/transform';
8
8
  import 'redux';
9
9
  import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -2,12 +2,12 @@ import configureStore, { Actions, helper } from '@appbaseio/reactivecore';
2
2
  import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import '@appbaseio/reactivecore/lib/utils/constants';
5
+ import { isEqual as isEqual$1 } from '@appbaseio/reactivecore/lib/utils/helper';
5
6
  import styled from '@appbaseio/vue-emotion';
6
- import { t as types } from './vueTypes-e89c8a3c.js';
7
+ import { t as types } from './vueTypes-fb61bb7b.js';
7
8
  import 'redux';
8
9
  import { c as connect, e as composeThemeObject, X as X_SEARCH_CLIENT } from './index-cb1950b6.js';
9
10
  import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
10
- import { isEqual as isEqual$1 } from '@appbaseio/reactivecore/lib/utils/helper';
11
11
  import { updateAnalyticsConfig } from '@appbaseio/reactivecore/lib/actions/analytics';
12
12
  import Appbase from 'appbase-js';
13
13
  import 'url-search-params-polyfill';
@@ -350,7 +350,7 @@ var ReactiveBase = {
350
350
  }
351
351
  },
352
352
  props: {
353
- app: types.stringRequired,
353
+ app: types.string,
354
354
  analytics: VueTypes.bool,
355
355
  analyticsConfig: types.analyticsConfig,
356
356
  appbaseConfig: types.appbaseConfig,
@@ -370,7 +370,8 @@ var ReactiveBase = {
370
370
  transformResponse: types.func,
371
371
  as: VueTypes.string.def('div'),
372
372
  getSearchParams: types.func,
373
- setSearchParams: types.func
373
+ setSearchParams: types.func,
374
+ mongodb: types.mongodb
374
375
  },
375
376
  provide: function provide() {
376
377
  return {
@@ -410,6 +411,9 @@ var ReactiveBase = {
410
411
  this.store.dispatch(updateAnalyticsConfig(newVal));
411
412
  }
412
413
  }
414
+ },
415
+ mongodb: function mongodb() {
416
+ this.updateState(this.$props);
413
417
  }
414
418
  },
415
419
  computed: {
@@ -417,12 +421,13 @@ var ReactiveBase = {
417
421
  var _this$$props = this.$props,
418
422
  enableAppbase = _this$$props.enableAppbase,
419
423
  headers = _this$$props.headers,
420
- appbaseConfig = _this$$props.appbaseConfig;
424
+ appbaseConfig = _this$$props.appbaseConfig,
425
+ mongodb = _this$$props.mongodb;
421
426
 
422
427
  var _ref = appbaseConfig || {},
423
428
  enableTelemetry = _ref.enableTelemetry;
424
429
 
425
- return _extends({}, enableAppbase && _extends({
430
+ return _extends({}, enableAppbase && !mongodb && _extends({
426
431
  'X-Search-Client': X_SEARCH_CLIENT
427
432
  }, enableTelemetry === false && {
428
433
  'X-Enable-Telemetry': false
@@ -440,7 +445,7 @@ var ReactiveBase = {
440
445
  var appbaseConfig = _extends({}, props.analyticsConfig, props.appbaseConfig);
441
446
 
442
447
  var config = {
443
- url: props.url && props.url.trim() !== '' ? props.url : 'https://scalr.api.appbase.io',
448
+ url: props.url && props.url.trim() !== '' ? props.url : '',
444
449
  app: props.app,
445
450
  credentials: credentials,
446
451
  type: props.type ? props.type : '*',
@@ -448,7 +453,8 @@ var ReactiveBase = {
448
453
  transformResponse: props.transformResponse,
449
454
  enableAppbase: props.enableAppbase,
450
455
  analytics: props.appbaseConfig ? props.appbaseConfig.recordAnalytics : props.analytics,
451
- analyticsConfig: appbaseConfig
456
+ analyticsConfig: appbaseConfig,
457
+ mongodb: props.mongodb
452
458
  };
453
459
  var queryParams = '';
454
460
 
@@ -2,7 +2,7 @@ import { Actions, helper } from '@appbaseio/reactivecore';
2
2
  import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
- import { t as types } from './vueTypes-e89c8a3c.js';
5
+ import { t as types } from './vueTypes-fb61bb7b.js';
6
6
  import '@appbaseio/reactivecore/lib/utils/transform';
7
7
  import 'redux';
8
8
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -2,11 +2,12 @@ import { helper, Actions } from '@appbaseio/reactivecore';
2
2
  import { _ as _taggedTemplateLiteralLoose, a as _extends } from './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import VueTypes from 'vue-types';
4
4
  import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
+ import { withClickIds } from '@appbaseio/reactivecore/lib/utils/helper';
5
6
  import { css } from 'emotion';
6
7
  import styled from '@appbaseio/vue-emotion';
7
8
  import 'polished';
8
9
  import { p as pagination, B as Button } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-e89c8a3c.js';
10
+ import { t as types } from './vueTypes-fb61bb7b.js';
10
11
  import '@appbaseio/reactivecore/lib/utils/transform';
11
12
  import 'redux';
12
13
  import { c as connect, h as hasCustomRenderer, i as isQueryIdentical, u as updateDefaultQuery, a as isFunction, g as getComponent } from './index-cb1950b6.js';
@@ -438,18 +439,17 @@ var ReactiveList = {
438
439
  ResultCardsWrapper: ResultCardsWrapper
439
440
  },
440
441
  data: function data() {
441
- var props = this.$props;
442
442
  var currentPageState = 0;
443
+ var defaultPage = this.defaultPage || -1;
443
444
 
444
- if (props.defaultPage >= 0) {
445
- currentPageState = props.defaultPage;
446
- } else if (props.currentPage) {
447
- currentPageState = Math.max(props.currentPage - 1, 0);
445
+ if (defaultPage >= 0) {
446
+ currentPageState = defaultPage;
447
+ } else if (this.currentPage) {
448
+ currentPageState = Math.max(this.currentPage - 1, 0);
448
449
  }
449
450
 
450
451
  this.__state = {
451
- from: currentPageState * props.size,
452
- isLoading: true,
452
+ from: currentPageState * this.size,
453
453
  currentPageState: currentPageState
454
454
  };
455
455
  return this.__state;
@@ -478,8 +478,10 @@ var ReactiveList = {
478
478
  console.warn('Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.');
479
479
  }
480
480
 
481
- if (this.defaultPage >= 0) {
482
- this.currentPageState = this.defaultPage;
481
+ var defaultPage = this.defaultPage || -1;
482
+
483
+ if (defaultPage >= 0) {
484
+ this.currentPageState = defaultPage;
483
485
  this.from = this.currentPageState * this.$props.size;
484
486
  }
485
487
 
@@ -546,12 +548,9 @@ var ReactiveList = {
546
548
  return this.$listeners && this.$listeners.resultStats;
547
549
  },
548
550
  stats: function stats() {
549
- var _this$getAllData = this.getAllData(),
550
- filteredResults = _this$getAllData.filteredResults;
551
-
552
551
  return _extends({}, getResultStats(this), {
553
552
  currentPage: this.currentPageState,
554
- displayedResults: filteredResults.length
553
+ displayedResults: this.data.length
555
554
  });
556
555
  },
557
556
  hasCustomRender: function hasCustomRender() {
@@ -560,6 +559,27 @@ var ReactiveList = {
560
559
  showInfiniteScroll: function showInfiniteScroll() {
561
560
  // Pagination has higher priority then infinite scroll
562
561
  return this.infiniteScroll && !this.shouldRenderPagination;
562
+ },
563
+ data: function data() {
564
+ var results = parseHits(this.hits) || [];
565
+ var parsedPromotedResults = parseHits(this.promotedResults) || [];
566
+ var filteredResults = results;
567
+
568
+ if (parsedPromotedResults.length) {
569
+ var ids = parsedPromotedResults.map(function (item) {
570
+ return item._id;
571
+ }).filter(Boolean);
572
+
573
+ if (ids) {
574
+ filteredResults = filteredResults.filter(function (item) {
575
+ return !ids.includes(item._id);
576
+ });
577
+ }
578
+
579
+ filteredResults = [].concat(parsedPromotedResults, filteredResults);
580
+ }
581
+
582
+ return withClickIds(filteredResults);
563
583
  }
564
584
  },
565
585
  watch: {
@@ -641,7 +661,7 @@ var ReactiveList = {
641
661
  }
642
662
  },
643
663
  hits: function hits(newVal, oldVal) {
644
- this.$emit('data', this.getAllData());
664
+ this.$emit('data', this.getData());
645
665
 
646
666
  if (this.shouldRenderPagination) {
647
667
  // called when page is changed
@@ -826,13 +846,10 @@ var ReactiveList = {
826
846
 
827
847
  var h = this.$createElement;
828
848
  var size = this.$props.size;
829
- var hits = this.$data.hits;
830
- var results = parseHits(hits) || [];
831
- var filteredResults = results;
832
849
  var renderItem = this.$scopedSlots.renderItem || this.$props.renderItem;
833
850
  var element = this.hasCustomRender ? this.getComponent() : h("div", {
834
851
  "class": this.$props.listClass + " " + getClassName$1(this.$props.innerClass, 'list')
835
- }, [[].concat(filteredResults).map(function (item, index) {
852
+ }, [this.data.map(function (item, index) {
836
853
  return renderItem({
837
854
  item: item,
838
855
  triggerClickAnalytics: function triggerClickAnalytics() {
@@ -843,7 +860,7 @@ var ReactiveList = {
843
860
 
844
861
  return this.analytics ? h(ImpressionTracker$1, {
845
862
  "attrs": {
846
- "hits": filteredResults
863
+ "hits": this.data
847
864
  }
848
865
  }, [element]) : element;
849
866
  },
@@ -947,7 +964,7 @@ var ReactiveList = {
947
964
  if (this.stats.numberOfResults) {
948
965
  return h("p", {
949
966
  "class": resultStats + " " + getClassName$1(this.$props.innerClass, 'resultStats')
950
- }, [this.stats.numberOfResults, " results found in ", this.stats.time, "ms"]);
967
+ }, [this.stats.numberOfResults, " results found in ", this.stats.time || 0, "ms"]);
951
968
  }
952
969
 
953
970
  return null;
@@ -1023,8 +1040,8 @@ var ReactiveList = {
1023
1040
  })]);
1024
1041
  },
1025
1042
  withClickIds: function withClickIds(results) {
1026
- var _this$getAllData2 = this.getAllData(),
1027
- base = _this$getAllData2.base;
1043
+ var _this$getAllData = this.getAllData(),
1044
+ base = _this$getAllData.base;
1028
1045
 
1029
1046
  return results.map(function (result, index) {
1030
1047
  return _extends({}, result, {
@@ -1042,26 +1059,9 @@ var ReactiveList = {
1042
1059
  hits = this.hits;
1043
1060
  var results = parseHits(hits) || [];
1044
1061
  var parsedPromotedResults = parseHits(promotedResults) || [];
1045
- var filteredResults = results;
1046
1062
  var base = currentPage * size;
1047
-
1048
- if (parsedPromotedResults.length) {
1049
- var ids = parsedPromotedResults.map(function (item) {
1050
- return item._id;
1051
- }).filter(Boolean);
1052
-
1053
- if (ids) {
1054
- filteredResults = filteredResults.filter(function (item) {
1055
- return !ids.includes(item._id);
1056
- });
1057
- }
1058
-
1059
- filteredResults = [].concat(parsedPromotedResults, filteredResults);
1060
- }
1061
-
1062
1063
  return {
1063
1064
  results: results,
1064
- filteredResults: filteredResults,
1065
1065
  customData: customData || {},
1066
1066
  promotedResults: parsedPromotedResults,
1067
1067
  aggregationData: aggregationData,
@@ -1071,16 +1071,15 @@ var ReactiveList = {
1071
1071
  };
1072
1072
  },
1073
1073
  getData: function getData() {
1074
- var _this$getAllData3 = this.getAllData(),
1075
- filteredResults = _this$getAllData3.filteredResults,
1076
- promotedResults = _this$getAllData3.promotedResults,
1077
- aggregationData = _this$getAllData3.aggregationData,
1078
- customData = _this$getAllData3.customData;
1074
+ var _this$getAllData2 = this.getAllData(),
1075
+ promotedResults = _this$getAllData2.promotedResults,
1076
+ aggregationData = _this$getAllData2.aggregationData,
1077
+ customData = _this$getAllData2.customData;
1079
1078
 
1080
1079
  return {
1081
- data: this.withClickIds(filteredResults),
1080
+ data: this.data,
1082
1081
  aggregationData: this.withClickIds(aggregationData || []),
1083
- promotedData: this.withClickIds(promotedResults),
1082
+ promotedData: this.withClickIds(promotedResults || []),
1084
1083
  rawData: this.rawData,
1085
1084
  resultStats: this.stats,
1086
1085
  customData: customData
@@ -1092,7 +1091,7 @@ var ReactiveList = {
1092
1091
 
1093
1092
  var data = _extends({
1094
1093
  error: error,
1095
- loading: isLoading,
1094
+ loading: isLoading || false,
1096
1095
  loadMore: this.loadMore,
1097
1096
  // TODO: Remove in v2
1098
1097
  triggerAnalytics: this.triggerClickAnalytics,
@@ -1107,13 +1106,13 @@ var ReactiveList = {
1107
1106
 
1108
1107
  var mapStateToProps = function mapStateToProps(state, props) {
1109
1108
  return {
1110
- defaultPage: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value - 1 || -1,
1109
+ defaultPage: state.selectedValues[props.componentId] && state.selectedValues[props.componentId].value - 1,
1111
1110
  hits: state.hits[props.componentId] && state.hits[props.componentId].hits,
1112
1111
  rawData: state.rawData[props.componentId],
1113
- aggregationData: state.compositeAggregations[props.componentId] || [],
1114
- promotedResults: state.promotedResults[props.componentId] || [],
1112
+ aggregationData: state.compositeAggregations[props.componentId],
1113
+ promotedResults: state.promotedResults[props.componentId],
1115
1114
  customData: state.customData[props.componentId],
1116
- time: state.hits[props.componentId] && state.hits[props.componentId].time || 0,
1115
+ time: state.hits[props.componentId] && state.hits[props.componentId].time,
1117
1116
  total: state.hits[props.componentId] && state.hits[props.componentId].total,
1118
1117
  hidden: state.hits[props.componentId] && state.hits[props.componentId].hidden,
1119
1118
  analytics: state.config && state.config.analytics,
@@ -1122,7 +1121,7 @@ var mapStateToProps = function mapStateToProps(state, props) {
1122
1121
  error: state.error[props.componentId],
1123
1122
  afterKey: state.aggregations[props.componentId] && state.aggregations[props.componentId][props.aggregationField] && state.aggregations[props.componentId][props.aggregationField].after_key,
1124
1123
  componentProps: state.props[props.componentId],
1125
- isLoading: state.isLoading[props.componentId] || false
1124
+ isLoading: state.isLoading[props.componentId]
1126
1125
  };
1127
1126
  };
1128
1127
 
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
3
3
  import 'emotion';
4
4
  import '@appbaseio/vue-emotion';
5
5
  import 'polished';
6
- import { t as types } from './vueTypes-e89c8a3c.js';
6
+ import { t as types } from './vueTypes-fb61bb7b.js';
7
7
  import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
8
8
  import { T as Title } from './Title-3522ff56.js';
9
9
  import { I as Image, C as Card } from './Card-6446f1b7.js';
@@ -3,7 +3,7 @@ import VueTypes from 'vue-types';
3
3
  import 'emotion';
4
4
  import '@appbaseio/vue-emotion';
5
5
  import 'polished';
6
- import { t as types } from './vueTypes-e89c8a3c.js';
6
+ import { t as types } from './vueTypes-fb61bb7b.js';
7
7
  import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
8
8
  import { T as Title } from './Title-3522ff56.js';
9
9
  import { I as Image, L as ListItem } from './ListItem-8e8fb535.js';
@@ -6,7 +6,7 @@ import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
8
  import { f as filters, B as Button } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-e89c8a3c.js';
9
+ import { t as types } from './vueTypes-fb61bb7b.js';
10
10
  import 'redux';
11
11
  import { c as connect } from './index-cb1950b6.js';
12
12
  import { T as Title } from './Title-3522ff56.js';
@@ -6,7 +6,7 @@ import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
8
  import { l as loadMoreContainer, B as Button } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-e89c8a3c.js';
9
+ import { t as types } from './vueTypes-fb61bb7b.js';
10
10
  import '@appbaseio/reactivecore/lib/utils/transform';
11
11
  import 'redux';
12
12
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, h as hasCustomRenderer, c as connect } from './index-cb1950b6.js';
@@ -17,7 +17,7 @@ import 'compute-scroll-into-view';
17
17
  import './DownShift-3558d402.js';
18
18
  import { C as Container } from './Container-18b03fde.js';
19
19
  import { g as getAggsQuery } from './utils-64a2e5f0.js';
20
- import { D as Dropdown } from './DropDown-db7fe433.js';
20
+ import { D as Dropdown } from './DropDown-035c804f.js';
21
21
 
22
22
  var updateQuery = Actions.updateQuery,
23
23
  setQueryOptions = Actions.setQueryOptions,
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-e89c8a3c.js';
8
+ import { t as types } from './vueTypes-fb61bb7b.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { f as updateCustomQuery, u as updateDefaultQuery, i as isQueryIdentical, a as isFunction, g as getComponent, n as isEvent, h as hasCustomRenderer, c as connect } from './index-cb1950b6.js';
@@ -5,7 +5,7 @@ import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
5
5
  import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
- import { t as types } from './vueTypes-e89c8a3c.js';
8
+ import { t as types } from './vueTypes-fb61bb7b.js';
9
9
  import '@appbaseio/reactivecore/lib/utils/transform';
10
10
  import 'redux';
11
11
  import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
@@ -6,7 +6,7 @@ import 'emotion';
6
6
  import '@appbaseio/vue-emotion';
7
7
  import 'polished';
8
8
  import { B as Button, t as toggleButtons } from './Button-91561391.js';
9
- import { t as types } from './vueTypes-e89c8a3c.js';
9
+ import { t as types } from './vueTypes-fb61bb7b.js';
10
10
  import '@appbaseio/reactivecore/lib/utils/transform';
11
11
  import 'redux';
12
12
  import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-cb1950b6.js';
package/dist/es/index.js CHANGED
@@ -2,11 +2,12 @@ import '@appbaseio/reactivecore';
2
2
  import './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import 'vue-types';
4
4
  import '@appbaseio/reactivecore/lib/utils/constants';
5
+ import '@appbaseio/reactivecore/lib/utils/helper';
5
6
  import 'emotion';
6
7
  import '@appbaseio/vue-emotion';
7
8
  import 'polished';
8
9
  import './Button-91561391.js';
9
- import './vueTypes-e89c8a3c.js';
10
+ import './vueTypes-fb61bb7b.js';
10
11
  export { default as ReactiveList } from './ReactiveList.js';
11
12
  import '@appbaseio/reactivecore/lib/utils/transform';
12
13
  import 'redux';
@@ -17,7 +18,6 @@ import './Title-3522ff56.js';
17
18
  import './ListItem-8e8fb535.js';
18
19
  import './Card-6446f1b7.js';
19
20
  import './Flex-8770345d.js';
20
- import '@appbaseio/reactivecore/lib/utils/helper';
21
21
  import '@appbaseio/reactivecore/lib/actions/analytics';
22
22
  import 'appbase-js';
23
23
  import 'url-search-params-polyfill';
@@ -33,7 +33,7 @@ import './FormControlList-704f8dee.js';
33
33
  import './utils-64a2e5f0.js';
34
34
  export { default as SingleList } from './SingleList.js';
35
35
  export { default as MultiList } from './MultiList.js';
36
- import './DropDown-db7fe433.js';
36
+ import './DropDown-035c804f.js';
37
37
  export { default as SingleDropdownList } from './SingleDropdownList.js';
38
38
  export { default as MultiDropdownList } from './MultiDropdownList.js';
39
39
  export { default as ToggleButton } from './ToggleButton.js';
@@ -1,7 +1,7 @@
1
1
  import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-0f24d612.js';
2
2
  import { validProps, componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
3
- import { getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
4
3
  import { pushToAndClause, buildQuery } from '@appbaseio/reactivecore/lib/utils/helper';
4
+ import { getRSQuery, extractPropsFromState, getDependentQueries } from '@appbaseio/reactivecore/lib/utils/transform';
5
5
  import Appbase from 'appbase-js';
6
6
  import valueReducer from '@appbaseio/reactivecore/lib/reducers/valueReducer';
7
7
  import queryReducer from '@appbaseio/reactivecore/lib/reducers/queryReducer';
@@ -307,8 +307,9 @@ function initReactivesearch(componentCollection, searchState, settings) {
307
307
  appbaseQuery = _extends({}, appbaseQuery, (_extends3 = {}, _extends3[component.componentId] = query, _extends3), getDependentQueries(state, component.componentId, orderOfQueries));
308
308
  }
309
309
  } else {
310
+ var preference = config && config.analyticsConfig && config.analyticsConfig.userId ? config.analyticsConfig.userId + "_" + component : component;
310
311
  finalQuery = [].concat(finalQuery, [{
311
- preference: component.componentId
312
+ preference: preference
312
313
  }, currentQuery]);
313
314
  }
314
315
  }
@@ -2,11 +2,12 @@ import '@appbaseio/reactivecore';
2
2
  import './_rollupPluginBabelHelpers-0f24d612.js';
3
3
  import 'vue-types';
4
4
  import '@appbaseio/reactivecore/lib/utils/constants';
5
+ import '@appbaseio/reactivecore/lib/utils/helper';
5
6
  import 'emotion';
6
7
  import '@appbaseio/vue-emotion';
7
8
  import 'polished';
8
9
  import './Button-91561391.js';
9
- import './vueTypes-e89c8a3c.js';
10
+ import './vueTypes-fb61bb7b.js';
10
11
  import ReactiveList from './ReactiveList.js';
11
12
  import '@appbaseio/reactivecore/lib/utils/transform';
12
13
  import 'redux';
@@ -17,7 +18,6 @@ import './Title-3522ff56.js';
17
18
  import './ListItem-8e8fb535.js';
18
19
  import './Card-6446f1b7.js';
19
20
  import './Flex-8770345d.js';
20
- import '@appbaseio/reactivecore/lib/utils/helper';
21
21
  import '@appbaseio/reactivecore/lib/actions/analytics';
22
22
  import 'appbase-js';
23
23
  import 'url-search-params-polyfill';
@@ -33,7 +33,7 @@ import './FormControlList-704f8dee.js';
33
33
  import './utils-64a2e5f0.js';
34
34
  import SingleList from './SingleList.js';
35
35
  import MultiList from './MultiList.js';
36
- import './DropDown-db7fe433.js';
36
+ import './DropDown-035c804f.js';
37
37
  import SingleDropdownList from './SingleDropdownList.js';
38
38
  import MultiDropdownList from './MultiDropdownList.js';
39
39
  import ToggleButton from './ToggleButton.js';
@@ -1,3 +1,3 @@
1
- var version = "1.23.2";
1
+ var version = "1.24.0";
2
2
 
3
3
  export default version;
@@ -110,7 +110,11 @@ var types = {
110
110
  userId: VueTypes.string,
111
111
  customEvents: VueTypes.object,
112
112
  enableTelemetry: VueTypes.bool.def(true)
113
- }).def({})
113
+ }).def({}),
114
+ mongodb: VueTypes.shape({
115
+ db: VueTypes.string,
116
+ collection: VueTypes.string
117
+ })
114
118
  };
115
119
 
116
120
  export { types as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "1.23.2",
3
+ "version": "1.24.0",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@appbaseio/reactivecore": "9.12.7",
37
+ "@appbaseio/reactivecore": "9.13.0",
38
38
  "@appbaseio/vue-emotion": "0.4.4",
39
39
  "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
40
- "appbase-js": "^4.4.1",
40
+ "appbase-js": "^4.5.0",
41
41
  "compute-scroll-into-view": "^1.0.11",
42
42
  "emotion": "9.2.12",
43
43
  "hotkeys-js": "^3.8.7",