@appbaseio/reactivesearch-vue 1.29.0 → 2.0.0-alpha
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 +11162 -762
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +21 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{Button-e0b7c1f6.js → Button-446f819e.js} +1 -1
- package/dist/cjs/{CancelSvg-4aa35935.js → CancelSvg-9f258f4f.js} +1 -1
- package/dist/cjs/{Card-fd94ef07.js → Card-642547a8.js} +2 -2
- package/dist/cjs/{ComponentWrapper-10bad289.js → ComponentWrapper-ad3dad02.js} +2 -2
- package/dist/cjs/{Container-526efa6a.js → Container-daf30918.js} +1 -1
- package/dist/cjs/{DataSearch-eec21890.js → DataSearch-6cf29cf0.js} +236 -84
- package/dist/cjs/DataSearch.js +10 -10
- package/dist/cjs/{DropDown-e4381fcc.js → DropDown-c479bbb0.js} +5 -5
- package/dist/cjs/DynamicRangeSlider.js +8 -7
- package/dist/cjs/{Flex-f146cdad.js → Flex-aa517a13.js} +1 -1
- package/dist/cjs/{FormControlList-808dbcef.js → FormControlList-c195a592.js} +1 -1
- package/dist/cjs/{Input-0d7b25ad.js → Input-e6603a7e.js} +1 -1
- package/dist/cjs/{ListItem-b40adb04.js → ListItem-8c9e0d68.js} +2 -2
- package/dist/cjs/MultiDropdownList.js +13 -12
- package/dist/cjs/MultiList.js +11 -10
- package/dist/cjs/MultiRange.js +9 -8
- package/dist/cjs/Pagination-71e85fa9.js +182 -0
- package/dist/cjs/RangeInput.js +11 -10
- package/dist/cjs/RangeSlider.js +9 -8
- package/dist/cjs/ReactiveBase.js +69 -35
- package/dist/cjs/ReactiveComponent.js +6 -5
- package/dist/cjs/ReactiveGoogleMap.js +2336 -0
- package/dist/cjs/ReactiveList.js +22 -185
- package/dist/cjs/ResultCard.js +4 -4
- package/dist/cjs/ResultList.js +4 -4
- package/dist/cjs/SelectedFilters.js +45 -28
- package/dist/cjs/SingleDropdownList.js +13 -12
- package/dist/cjs/SingleList.js +11 -10
- package/dist/cjs/SingleRange.js +10 -9
- package/dist/cjs/StateProvider.js +30 -5
- package/dist/cjs/{Title-584a8cc8.js → Title-1de7d0f4.js} +1 -1
- package/dist/cjs/ToggleButton.js +10 -8
- package/dist/cjs/{_rollupPluginBabelHelpers-f127c8b7.js → _rollupPluginBabelHelpers-c705cbe6.js} +17 -2
- package/dist/cjs/{index-4509aa45.js → index-6a167fe0.js} +13 -1
- package/dist/cjs/index.js +24 -18
- package/dist/cjs/initReactivesearch.js +40 -8
- package/dist/cjs/{install-4886582d.js → install-99716d95.js} +252 -87
- package/dist/cjs/install.js +20 -18
- package/dist/cjs/{ssr-0ee35a09.js → ssr-3027b848.js} +1 -1
- package/dist/cjs/{utils-1219e1fe.js → utils-d6a52588.js} +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-57d01f18.js → vueTypes-727b7c63.js} +30 -13
- package/dist/es/{Button-33de88e6.js → Button-d8bc15ea.js} +1 -1
- package/dist/es/{CancelSvg-c2c03a35.js → CancelSvg-4cfae5fd.js} +1 -1
- package/dist/es/{Card-6446f1b7.js → Card-450683f1.js} +2 -2
- package/dist/es/{ComponentWrapper-0f3431d1.js → ComponentWrapper-424e86fd.js} +2 -2
- package/dist/es/{Container-18b03fde.js → Container-ba826e96.js} +1 -1
- package/dist/es/{DataSearch-42f547cd.js → DataSearch-4888aa43.js} +236 -86
- package/dist/es/DataSearch.js +10 -10
- package/dist/es/{DropDown-ff6ad982.js → DropDown-05a644a5.js} +5 -5
- package/dist/es/DynamicRangeSlider.js +8 -7
- package/dist/es/{Flex-8770345d.js → Flex-1f0795c3.js} +1 -1
- package/dist/es/{FormControlList-704f8dee.js → FormControlList-c22d64f6.js} +1 -1
- package/dist/es/{Input-e339e63a.js → Input-7a2a9fac.js} +1 -1
- package/dist/es/{ListItem-8e8fb535.js → ListItem-cad14c5e.js} +2 -2
- package/dist/es/MultiDropdownList.js +13 -12
- package/dist/es/MultiList.js +11 -10
- package/dist/es/MultiRange.js +9 -8
- package/dist/es/Pagination-784bf143.js +177 -0
- package/dist/es/RangeInput.js +11 -10
- package/dist/es/RangeSlider.js +9 -8
- package/dist/es/ReactiveBase.js +70 -36
- package/dist/es/ReactiveComponent.js +6 -5
- package/dist/es/ReactiveGoogleMap.js +2327 -0
- package/dist/es/ReactiveList.js +21 -184
- package/dist/es/ResultCard.js +4 -4
- package/dist/es/ResultList.js +4 -4
- package/dist/es/SelectedFilters.js +45 -28
- package/dist/es/SingleDropdownList.js +13 -12
- package/dist/es/SingleList.js +11 -10
- package/dist/es/SingleRange.js +10 -9
- package/dist/es/StateProvider.js +30 -5
- package/dist/es/{Title-3522ff56.js → Title-3342664a.js} +1 -1
- package/dist/es/ToggleButton.js +10 -8
- package/dist/es/{_rollupPluginBabelHelpers-0f24d612.js → _rollupPluginBabelHelpers-76660dab.js} +17 -3
- package/dist/es/{index-78920565.js → index-7788a843.js} +13 -2
- package/dist/es/index.js +24 -19
- package/dist/es/initReactivesearch.js +41 -9
- package/dist/es/{install-54ebd72e.js → install-87984085.js} +252 -87
- package/dist/es/install.js +20 -18
- package/dist/es/{ssr-a41dfea9.js → ssr-b2c0b401.js} +1 -1
- package/dist/es/{utils-64a2e5f0.js → utils-9e68acee.js} +1 -1
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-687b2304.js → vueTypes-b8146772.js} +30 -13
- package/package.json +11 -5
package/dist/es/ToggleButton.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Actions, helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
2
|
+
import './_rollupPluginBabelHelpers-76660dab.js';
|
|
3
3
|
import VueTypes from 'vue-types';
|
|
4
4
|
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import 'emotion';
|
|
6
6
|
import '@appbaseio/vue-emotion';
|
|
7
7
|
import 'polished';
|
|
8
|
-
import { B as Button, t as toggleButtons } from './Button-
|
|
9
|
-
import { t as types } from './vueTypes-
|
|
8
|
+
import { B as Button, t as toggleButtons } from './Button-d8bc15ea.js';
|
|
9
|
+
import { t as types } from './vueTypes-b8146772.js';
|
|
10
10
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
11
11
|
import 'redux';
|
|
12
|
-
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-
|
|
13
|
-
import { C as ComponentWrapper } from './ComponentWrapper-
|
|
14
|
-
import { T as Title } from './Title-
|
|
15
|
-
import { C as Container } from './Container-
|
|
12
|
+
import { f as updateCustomQuery, i as isQueryIdentical, c as connect } from './index-7788a843.js';
|
|
13
|
+
import { C as ComponentWrapper } from './ComponentWrapper-424e86fd.js';
|
|
14
|
+
import { T as Title } from './Title-3342664a.js';
|
|
15
|
+
import { C as Container } from './Container-ba826e96.js';
|
|
16
16
|
|
|
17
17
|
var updateQuery = Actions.updateQuery,
|
|
18
18
|
setQueryOptions = Actions.setQueryOptions,
|
|
@@ -26,6 +26,7 @@ var ToggleButton = {
|
|
|
26
26
|
name: 'ToggleButton',
|
|
27
27
|
props: {
|
|
28
28
|
componentId: types.stringRequired,
|
|
29
|
+
customQuery: types.func,
|
|
29
30
|
data: types.data,
|
|
30
31
|
dataField: types.stringRequired,
|
|
31
32
|
defaultValue: types.any,
|
|
@@ -40,7 +41,8 @@ var ToggleButton = {
|
|
|
40
41
|
URLParams: VueTypes.bool,
|
|
41
42
|
renderItem: types.func,
|
|
42
43
|
index: VueTypes.string,
|
|
43
|
-
enableStrictSelection: VueTypes.bool
|
|
44
|
+
enableStrictSelection: VueTypes.bool,
|
|
45
|
+
endpoint: types.endpointConfig
|
|
44
46
|
},
|
|
45
47
|
data: function data() {
|
|
46
48
|
this.__state = {
|
package/dist/es/{_rollupPluginBabelHelpers-0f24d612.js → _rollupPluginBabelHelpers-76660dab.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _extends() {
|
|
2
|
-
_extends = Object.assign
|
|
2
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
3
3
|
for (var i = 1; i < arguments.length; i++) {
|
|
4
4
|
var source = arguments[i];
|
|
5
5
|
|
|
@@ -12,10 +12,24 @@ function _extends() {
|
|
|
12
12
|
|
|
13
13
|
return target;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
15
|
return _extends.apply(this, arguments);
|
|
17
16
|
}
|
|
18
17
|
|
|
18
|
+
function _inheritsLoose(subClass, superClass) {
|
|
19
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
20
|
+
subClass.prototype.constructor = subClass;
|
|
21
|
+
|
|
22
|
+
_setPrototypeOf(subClass, superClass);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function _setPrototypeOf(o, p) {
|
|
26
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
27
|
+
o.__proto__ = p;
|
|
28
|
+
return o;
|
|
29
|
+
};
|
|
30
|
+
return _setPrototypeOf(o, p);
|
|
31
|
+
}
|
|
32
|
+
|
|
19
33
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
20
34
|
if (source == null) return {};
|
|
21
35
|
var target = {};
|
|
@@ -59,4 +73,4 @@ function _toPropertyKey(arg) {
|
|
|
59
73
|
return typeof key === "symbol" ? key : String(key);
|
|
60
74
|
}
|
|
61
75
|
|
|
62
|
-
export { _taggedTemplateLiteralLoose as _, _extends as a, _objectWithoutPropertiesLoose as b, _toPropertyKey as c };
|
|
76
|
+
export { _taggedTemplateLiteralLoose as _, _extends as a, _objectWithoutPropertiesLoose as b, _toPropertyKey as c, _inheritsLoose as d };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { helper } from '@appbaseio/reactivecore';
|
|
2
|
-
import { a as _extends } from './_rollupPluginBabelHelpers-
|
|
2
|
+
import { a as _extends } from './_rollupPluginBabelHelpers-76660dab.js';
|
|
3
3
|
import { validProps } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
4
4
|
import { bindActionCreators } from 'redux';
|
|
5
5
|
|
|
@@ -364,5 +364,16 @@ function extractModifierKeysFromFocusShortcuts(focusShortcutsArray) {
|
|
|
364
364
|
return MODIFIER_KEYS.includes(shortcutKey);
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
+
function decodeHtml(str) {
|
|
368
|
+
if (typeof str !== 'string') {
|
|
369
|
+
return str;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
return str.replace(/&#([0-9]{1,3});/gi, function (match, numStr) {
|
|
373
|
+
var num = parseInt(numStr, 10); // read num as normal number
|
|
374
|
+
|
|
375
|
+
return String.fromCharCode(num);
|
|
376
|
+
});
|
|
377
|
+
}
|
|
367
378
|
|
|
368
|
-
export { X_SEARCH_CLIENT as X, isFunction as a, getCamelCase as b, connect as c, getValidPropsKeys as d, composeThemeObject as e, updateCustomQuery as f, getComponent as g, hasCustomRenderer as h, isQueryIdentical as i, getQuerySuggestionsComponent as j, isEmpty as k, extractModifierKeysFromFocusShortcuts as l, hasQuerySuggestionsRenderer as m,
|
|
379
|
+
export { X_SEARCH_CLIENT as X, isFunction as a, getCamelCase as b, connect as c, getValidPropsKeys as d, composeThemeObject as e, updateCustomQuery as f, getComponent as g, hasCustomRenderer as h, isQueryIdentical as i, getQuerySuggestionsComponent as j, isEmpty as k, extractModifierKeysFromFocusShortcuts as l, hasQuerySuggestionsRenderer as m, decodeHtml as n, isEvent as o, parseFocusShortcuts as p, parseValueArray as q, updateDefaultQuery as u };
|
package/dist/es/index.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import '@appbaseio/reactivecore';
|
|
2
|
-
import './_rollupPluginBabelHelpers-
|
|
2
|
+
import './_rollupPluginBabelHelpers-76660dab.js';
|
|
3
3
|
import 'vue-types';
|
|
4
4
|
import '@appbaseio/reactivecore/lib/utils/constants';
|
|
5
5
|
import '@appbaseio/reactivecore/lib/utils/helper';
|
|
6
6
|
import 'emotion';
|
|
7
7
|
import '@appbaseio/vue-emotion';
|
|
8
8
|
import 'polished';
|
|
9
|
-
import './Button-
|
|
10
|
-
import './vueTypes-
|
|
9
|
+
import './Button-d8bc15ea.js';
|
|
10
|
+
import './vueTypes-b8146772.js';
|
|
11
|
+
import './Pagination-784bf143.js';
|
|
11
12
|
export { default as ReactiveList } from './ReactiveList.js';
|
|
12
13
|
import '@appbaseio/reactivecore/lib/utils/transform';
|
|
13
14
|
import 'redux';
|
|
14
|
-
import './index-
|
|
15
|
-
import './ComponentWrapper-
|
|
15
|
+
import './index-7788a843.js';
|
|
16
|
+
import './ComponentWrapper-424e86fd.js';
|
|
16
17
|
import '@vue/babel-helper-vue-jsx-merge-props';
|
|
17
|
-
import './Title-
|
|
18
|
-
import './ListItem-
|
|
19
|
-
import './Card-
|
|
20
|
-
import './Flex-
|
|
18
|
+
import './Title-3342664a.js';
|
|
19
|
+
import './ListItem-cad14c5e.js';
|
|
20
|
+
import './Card-450683f1.js';
|
|
21
|
+
import './Flex-1f0795c3.js';
|
|
21
22
|
import '@appbaseio/reactivecore/lib/actions/analytics';
|
|
22
23
|
import 'appbase-js';
|
|
23
24
|
import 'url-search-params-polyfill';
|
|
24
25
|
export { default as ReactiveBase } from './ReactiveBase.js';
|
|
25
26
|
import 'hotkeys-js';
|
|
26
|
-
export { D as DataSearch } from './DataSearch-
|
|
27
|
-
import './CancelSvg-
|
|
28
|
-
import './Input-
|
|
27
|
+
export { D as DataSearch } from './DataSearch-4888aa43.js';
|
|
28
|
+
import './CancelSvg-4cfae5fd.js';
|
|
29
|
+
import './Input-7a2a9fac.js';
|
|
29
30
|
import 'compute-scroll-into-view';
|
|
30
|
-
import './Container-
|
|
31
|
+
import './Container-ba826e96.js';
|
|
31
32
|
import 'vue-highlight-words';
|
|
32
|
-
import { i as install } from './install-
|
|
33
|
-
export { S as SearchBox, i as install } from './install-
|
|
33
|
+
import { i as install } from './install-87984085.js';
|
|
34
|
+
export { S as SearchBox, i as install } from './install-87984085.js';
|
|
34
35
|
import '@appbaseio/reactivecore/lib/utils/suggestions';
|
|
35
|
-
import './FormControlList-
|
|
36
|
-
import './utils-
|
|
36
|
+
import './FormControlList-c22d64f6.js';
|
|
37
|
+
import './utils-9e68acee.js';
|
|
37
38
|
export { default as SingleList } from './SingleList.js';
|
|
38
39
|
export { default as MultiList } from './MultiList.js';
|
|
39
|
-
import './DropDown-
|
|
40
|
+
import './DropDown-05a644a5.js';
|
|
40
41
|
export { default as SingleDropdownList } from './SingleDropdownList.js';
|
|
41
42
|
export { default as MultiDropdownList } from './MultiDropdownList.js';
|
|
42
43
|
export { default as ToggleButton } from './ToggleButton.js';
|
|
@@ -47,10 +48,14 @@ export { default as MultiRange } from './MultiRange.js';
|
|
|
47
48
|
export { default as ResultCard } from './ResultCard.js';
|
|
48
49
|
export { default as ResultList } from './ResultList.js';
|
|
49
50
|
import 'vue-no-ssr';
|
|
50
|
-
import './ssr-
|
|
51
|
+
import './ssr-b2c0b401.js';
|
|
51
52
|
export { default as RangeSlider } from './RangeSlider.js';
|
|
52
53
|
export { default as DynamicRangeSlider } from './DynamicRangeSlider.js';
|
|
54
|
+
import '@appbaseio/reactivecore/lib/actions/value';
|
|
53
55
|
export { default as StateProvider } from './StateProvider.js';
|
|
56
|
+
import 'gmap-vue';
|
|
57
|
+
import 'ngeohash';
|
|
58
|
+
export { default as ReactiveGoogleMap } from './ReactiveGoogleMap.js';
|
|
54
59
|
import '@appbaseio/reactivecore/lib/reducers/valueReducer';
|
|
55
60
|
import '@appbaseio/reactivecore/lib/reducers/queryReducer';
|
|
56
61
|
import '@appbaseio/reactivecore/lib/reducers/queryOptionsReducer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-
|
|
1
|
+
import { a as _extends, b as _objectWithoutPropertiesLoose } from './_rollupPluginBabelHelpers-76660dab.js';
|
|
2
2
|
import { validProps, componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
|
|
3
|
-
import { pushToAndClause, buildQuery, extractQueryFromCustomQuery, getOptionsForCustomQuery } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
3
|
+
import { transformRequestUsingEndpoint, pushToAndClause, buildQuery, extractQueryFromCustomQuery, getOptionsForCustomQuery } from '@appbaseio/reactivecore/lib/utils/helper';
|
|
4
4
|
import { isSearchComponent, 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';
|
|
@@ -94,20 +94,51 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
94
94
|
'X-Search-Client': X_SEARCH_CLIENT
|
|
95
95
|
}, enableTelemetry === false && {
|
|
96
96
|
'X-Enable-Telemetry': false
|
|
97
|
-
}), settings.headers);
|
|
97
|
+
}), settings.headers, settings.enableAppbase && settings.endpoint && settings.endpoint.headers ? settings.endpoint.headers : {});
|
|
98
|
+
|
|
99
|
+
var url = settings.url && settings.url.trim() !== '' ? settings.url : 'https://scalr.api.appbase.io';
|
|
100
|
+
var transformRequest = settings.transformRequest || null;
|
|
101
|
+
|
|
102
|
+
if (settings.enableAppbase && settings.endpoint) {
|
|
103
|
+
if (settings.endpoint.url) {
|
|
104
|
+
// eslint-disable-next-line prefer-destructuring
|
|
105
|
+
url = settings.endpoint.url;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
transformRequest = function transformRequest(request) {
|
|
109
|
+
var modifiedRequest = transformRequestUsingEndpoint(request, settings.endpoint);
|
|
110
|
+
|
|
111
|
+
if (settings.transformRequest) {
|
|
112
|
+
return settings.transformRequest(modifiedRequest);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return modifiedRequest;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
98
118
|
|
|
99
119
|
var config = {
|
|
100
|
-
url:
|
|
120
|
+
url: url,
|
|
101
121
|
app: settings.app,
|
|
102
122
|
credentials: credentials,
|
|
103
|
-
transformRequest:
|
|
123
|
+
transformRequest: transformRequest,
|
|
104
124
|
type: settings.type ? settings.type : '*',
|
|
105
125
|
transformResponse: settings.transformResponse || null,
|
|
106
126
|
graphQLUrl: settings.graphQLUrl || '',
|
|
107
127
|
headers: headers,
|
|
108
|
-
analyticsConfig: settings.appbaseConfig || null
|
|
128
|
+
analyticsConfig: settings.appbaseConfig || null,
|
|
129
|
+
enableAppbase: settings.enableAppbase,
|
|
130
|
+
endpoint: settings.endpoint
|
|
109
131
|
};
|
|
110
132
|
var appbaseRef = Appbase(config);
|
|
133
|
+
|
|
134
|
+
if (config.transformRequest) {
|
|
135
|
+
appbaseRef.transformRequest = config.transformRequest;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (config.transformResponse) {
|
|
139
|
+
appbaseRef.transformResponse = config.transformResponse;
|
|
140
|
+
}
|
|
141
|
+
|
|
111
142
|
var components = [];
|
|
112
143
|
var selectedValues = {};
|
|
113
144
|
var internalValues = {};
|
|
@@ -331,7 +362,7 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
331
362
|
queryLog = _extends({}, queryLog, (_extends2 = {}, _extends2[component.componentId] = currentQuery, _extends2));
|
|
332
363
|
|
|
333
364
|
if (settings.enableAppbase) {
|
|
334
|
-
var query = getRSQuery(component.componentId, extractPropsFromState(state, component.componentId, queryOptions && queryOptions[component.componentId] ? {
|
|
365
|
+
var query = getRSQuery(component.componentId, extractPropsFromState(state, component.componentId, queryOptions && Object.keys(queryOptions[component.componentId]).length ? {
|
|
335
366
|
from: queryOptions[component.componentId].from
|
|
336
367
|
} : null));
|
|
337
368
|
|
|
@@ -436,9 +467,10 @@ function initReactivesearch(componentCollection, searchState, settings) {
|
|
|
436
467
|
}
|
|
437
468
|
|
|
438
469
|
timestamp[component] = res._timestamp;
|
|
470
|
+
var hitsObj = response.hits ? response.hits : response[component].hits;
|
|
439
471
|
hits = _extends({}, hits, (_extends7 = {}, _extends7[component] = {
|
|
440
|
-
hits:
|
|
441
|
-
total: typeof
|
|
472
|
+
hits: hitsObj.hits,
|
|
473
|
+
total: typeof hitsObj.total === 'object' ? hitsObj.total.value : hitsObj.total,
|
|
442
474
|
time: response.took
|
|
443
475
|
}, _extends7));
|
|
444
476
|
responseResolve();
|