react-instantsearch 7.0.0 → 7.0.2
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
var React__default = 'default' in React ? React['default'] : React;
|
|
9
9
|
|
|
10
|
-
var version = '7.0.
|
|
10
|
+
var version = '7.0.2';
|
|
11
11
|
|
|
12
12
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
13
13
|
//
|
|
@@ -11760,7 +11760,7 @@
|
|
|
11760
11760
|
};
|
|
11761
11761
|
}
|
|
11762
11762
|
|
|
11763
|
-
var version$3 = '4.56.
|
|
11763
|
+
var version$3 = '4.56.10';
|
|
11764
11764
|
|
|
11765
11765
|
function _typeof$n(obj) {
|
|
11766
11766
|
"@babel/helpers - typeof";
|
|
@@ -15915,7 +15915,7 @@
|
|
|
15915
15915
|
connectorState.createURL = function (page) {
|
|
15916
15916
|
return createURL(function (uiState) {
|
|
15917
15917
|
return _objectSpread$r(_objectSpread$r({}, uiState), {}, {
|
|
15918
|
-
page: page
|
|
15918
|
+
page: page + 1
|
|
15919
15919
|
});
|
|
15920
15920
|
});
|
|
15921
15921
|
};
|
|
@@ -18107,13 +18107,18 @@
|
|
|
18107
18107
|
var initialResults = {};
|
|
18108
18108
|
walkIndex(rootIndex, function (widget) {
|
|
18109
18109
|
var searchResults = widget.getResults();
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
|
|
18114
|
-
|
|
18115
|
-
|
|
18110
|
+
if (searchResults) {
|
|
18111
|
+
initialResults[widget.getIndexId()] = {
|
|
18112
|
+
// We convert the Helper state to a plain object to pass parsable data
|
|
18113
|
+
// structures from server to client.
|
|
18114
|
+
state: _objectSpread$z({}, searchResults._state),
|
|
18115
|
+
results: searchResults._rawResults
|
|
18116
|
+
};
|
|
18117
|
+
}
|
|
18116
18118
|
});
|
|
18119
|
+
if (Object.keys(initialResults).length === 0) {
|
|
18120
|
+
throw new Error('The root index does not have any results. Make sure you have at least one widget that provides results.');
|
|
18121
|
+
}
|
|
18117
18122
|
return initialResults;
|
|
18118
18123
|
}
|
|
18119
18124
|
|