react-instantsearch-core 7.28.0 → 7.29.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.
- package/dist/cjs/lib/dequal.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/es/components/Configure.js +1 -1
- package/dist/es/components/DynamicWidgets.js +2 -2
- package/dist/es/components/Index.js +1 -1
- package/dist/es/components/InstantSearch.js +1 -1
- package/dist/es/components/InstantSearchSSRProvider.js +3 -3
- package/dist/es/connectors/useDynamicWidgets.js +2 -2
- package/dist/es/hooks/useConnector.js +4 -4
- package/dist/es/hooks/useInstantSearch.js +1 -1
- package/dist/es/lib/dequal.js +3 -3
- package/dist/es/lib/getIndexSearchResults.js +2 -2
- package/dist/es/lib/useForceUpdate.js +1 -1
- package/dist/es/lib/useInstantSearchApi.js +2 -2
- package/dist/es/lib/useSearchResults.js +1 -1
- package/dist/es/lib/useSearchState.js +1 -1
- package/dist/es/lib/useStableValue.js +1 -1
- package/dist/es/version.d.ts +1 -1
- package/dist/es/version.js +1 -1
- package/dist/umd/ReactInstantSearchCore.js +679 -1172
- package/dist/umd/ReactInstantSearchCore.min.js +3 -3
- package/package.json +4 -4
package/dist/cjs/lib/dequal.js
CHANGED
|
@@ -17,7 +17,7 @@ var _type_of = require("@swc/helpers/_/_type_of");
|
|
|
17
17
|
* It adds a 3rd argument `compare(a, b)` that lets execute custom logic to
|
|
18
18
|
* compare values.
|
|
19
19
|
* We use it to skip comparing function references.
|
|
20
|
-
*/ // eslint-disable-next-line
|
|
20
|
+
*/ // eslint-disable-next-line typescript/unbound-method
|
|
21
21
|
var has = Object.prototype.hasOwnProperty;
|
|
22
22
|
function dequal(foo, bar, compare) {
|
|
23
23
|
// start of custom implementation
|
|
@@ -39,7 +39,7 @@ function dequal(foo, bar, compare) {
|
|
|
39
39
|
}
|
|
40
40
|
if (!ctor || (typeof foo === "undefined" ? "undefined" : _type_of._(foo)) === 'object') {
|
|
41
41
|
len = 0;
|
|
42
|
-
// eslint-disable-next-line guard-for-in, no-
|
|
42
|
+
// eslint-disable-next-line guard-for-in, instantsearch/no-for-in
|
|
43
43
|
for(ctor in foo){
|
|
44
44
|
if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
|
|
45
45
|
if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor], compare)) return false;
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ } from '@swc/helpers/
|
|
2
|
-
import { _ as _$1 } from '@swc/helpers/
|
|
1
|
+
import { _ } from '@swc/helpers/esm/_object_without_properties.js';
|
|
2
|
+
import { _ as _$1 } from '@swc/helpers/esm/_type_of.js';
|
|
3
3
|
import React__default, { Fragment } from 'react';
|
|
4
4
|
import { useDynamicWidgets } from '../connectors/useDynamicWidgets.js';
|
|
5
5
|
import { invariant } from '../lib/invariant.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ } from '@swc/helpers/esm/_object_without_properties.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { IndexContext } from '../lib/IndexContext.js';
|
|
4
4
|
import { useIndex } from '../lib/useIndex.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ } from '@swc/helpers/esm/_object_without_properties.js';
|
|
2
2
|
import React__default, { useEffect } from 'react';
|
|
3
3
|
import { IndexContext } from '../lib/IndexContext.js';
|
|
4
4
|
import { InstantSearchContext } from '../lib/InstantSearchContext.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _$2 } from '@swc/helpers/
|
|
2
|
-
import { _ as _$1 } from '@swc/helpers/
|
|
3
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ as _$2 } from '@swc/helpers/esm/_object_spread.js';
|
|
2
|
+
import { _ as _$1 } from '@swc/helpers/esm/_object_spread_props.js';
|
|
3
|
+
import { _ } from '@swc/helpers/esm/_object_without_properties.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { InstantSearchSSRContext } from '../lib/InstantSearchSSRContext.js';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _$1 } from '@swc/helpers/
|
|
2
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ as _$1 } from '@swc/helpers/esm/_object_spread.js';
|
|
2
|
+
import { _ } from '@swc/helpers/esm/_object_spread_props.js';
|
|
3
3
|
import connectDynamicWidgets from 'instantsearch.js/es/connectors/dynamic-widgets/connectDynamicWidgets.js';
|
|
4
4
|
import { useConnector } from '../hooks/useConnector.js';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _$3 } from '@swc/helpers/
|
|
2
|
-
import { _ as _$2 } from '@swc/helpers/
|
|
3
|
-
import { _ as _$1 } from '@swc/helpers/
|
|
4
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ as _$3 } from '@swc/helpers/esm/_object_spread.js';
|
|
2
|
+
import { _ as _$2 } from '@swc/helpers/esm/_object_without_properties.js';
|
|
3
|
+
import { _ as _$1 } from '@swc/helpers/esm/_sliced_to_array.js';
|
|
4
|
+
import { _ } from '@swc/helpers/esm/_to_array.js';
|
|
5
5
|
import { useRef, useMemo, useState } from 'react';
|
|
6
6
|
import { dequal } from '../lib/dequal.js';
|
|
7
7
|
import { getIndexSearchResults } from '../lib/getIndexSearchResults.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ } from '@swc/helpers/esm/_to_consumable_array.js';
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import { useInstantSearchContext } from '../lib/useInstantSearchContext.js';
|
|
4
4
|
import { useIsomorphicLayoutEffect } from '../lib/useIsomorphicLayoutEffect.js';
|
package/dist/es/lib/dequal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ } from '@swc/helpers/esm/_type_of.js';
|
|
2
2
|
|
|
3
3
|
/* eslint-disable complexity */ /*
|
|
4
4
|
* Code taken from dequal/lite v2.0.0
|
|
@@ -7,7 +7,7 @@ import { _ } from '@swc/helpers/cjs/_type_of.cjs';
|
|
|
7
7
|
* It adds a 3rd argument `compare(a, b)` that lets execute custom logic to
|
|
8
8
|
* compare values.
|
|
9
9
|
* We use it to skip comparing function references.
|
|
10
|
-
*/ // eslint-disable-next-line
|
|
10
|
+
*/ // eslint-disable-next-line typescript/unbound-method
|
|
11
11
|
var has = Object.prototype.hasOwnProperty;
|
|
12
12
|
function dequal(foo, bar, compare) {
|
|
13
13
|
// start of custom implementation
|
|
@@ -29,7 +29,7 @@ function dequal(foo, bar, compare) {
|
|
|
29
29
|
}
|
|
30
30
|
if (!ctor || (typeof foo === "undefined" ? "undefined" : _(foo)) === 'object') {
|
|
31
31
|
len = 0;
|
|
32
|
-
// eslint-disable-next-line guard-for-in, no-
|
|
32
|
+
// eslint-disable-next-line guard-for-in, instantsearch/no-for-in
|
|
33
33
|
for(ctor in foo){
|
|
34
34
|
if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
|
|
35
35
|
if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor], compare)) return false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _$1 } from '@swc/helpers/
|
|
2
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ as _$1 } from '@swc/helpers/esm/_object_spread.js';
|
|
2
|
+
import { _ } from '@swc/helpers/esm/_object_spread_props.js';
|
|
3
3
|
import { createSearchResults } from './createSearchResults.js';
|
|
4
4
|
|
|
5
5
|
function getIndexSearchResults(indexWidget) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _$1 } from '@swc/helpers/
|
|
2
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ as _$1 } from '@swc/helpers/esm/_object_spread.js';
|
|
2
|
+
import { _ } from '@swc/helpers/esm/_to_consumable_array.js';
|
|
3
3
|
import InstantSearch, { INSTANTSEARCH_FUTURE_DEFAULTS } from 'instantsearch.js/es/lib/InstantSearch.js';
|
|
4
4
|
import { useRef, useCallback, version } from 'react';
|
|
5
5
|
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ } from '@swc/helpers/esm/_sliced_to_array.js';
|
|
2
2
|
import { isIndexWidget } from 'instantsearch.js/es/lib/utils/index.js';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import { getIndexSearchResults } from './getIndexSearchResults.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ } from '@swc/helpers/
|
|
1
|
+
import { _ } from '@swc/helpers/esm/_sliced_to_array.js';
|
|
2
2
|
import { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import { useIndexContext } from './useIndexContext.js';
|
|
4
4
|
import { useInstantSearchContext } from './useInstantSearchContext.js';
|
package/dist/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.
|
|
1
|
+
declare const _default: "7.29.0";
|
|
2
2
|
export default _default;
|
package/dist/es/version.js
CHANGED