react-instantsearch-core 7.16.3 → 7.18.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/components/Configure.js +2 -2
- package/dist/cjs/components/DynamicWidgets.js +3 -4
- package/dist/cjs/components/Index.js +3 -3
- package/dist/cjs/components/InstantSearch.js +3 -4
- package/dist/cjs/components/InstantSearchSSRProvider.js +5 -5
- package/dist/cjs/connectors/useAutocomplete.js +12 -0
- package/dist/cjs/connectors/useBreadcrumb.js +1 -1
- package/dist/cjs/connectors/useChat.js +205 -0
- package/dist/cjs/connectors/useClearRefinements.js +1 -1
- package/dist/cjs/connectors/useConfigure.js +1 -1
- package/dist/cjs/connectors/useCurrentRefinements.js +1 -1
- package/dist/cjs/connectors/useDynamicWidgets.js +3 -3
- package/dist/cjs/connectors/useFrequentlyBoughtTogether.js +1 -1
- package/dist/cjs/connectors/useGeoSearch.js +1 -1
- package/dist/cjs/connectors/useHierarchicalMenu.js +1 -1
- package/dist/cjs/connectors/useHits.js +1 -1
- package/dist/cjs/connectors/useHitsPerPage.js +1 -1
- package/dist/cjs/connectors/useInfiniteHits.js +1 -1
- package/dist/cjs/connectors/useLookingSimilar.js +1 -1
- package/dist/cjs/connectors/useMenu.js +1 -1
- package/dist/cjs/connectors/useNumericMenu.js +1 -1
- package/dist/cjs/connectors/usePagination.js +1 -1
- package/dist/cjs/connectors/useQueryRules.js +1 -1
- package/dist/cjs/connectors/useRange.js +1 -1
- package/dist/cjs/connectors/useRefinementList.js +1 -1
- package/dist/cjs/connectors/useRelatedProducts.js +1 -1
- package/dist/cjs/connectors/useSearchBox.js +1 -1
- package/dist/cjs/connectors/useSortBy.js +1 -1
- package/dist/cjs/connectors/useStats.js +1 -1
- package/dist/cjs/connectors/useToggleRefinement.js +1 -1
- package/dist/cjs/connectors/useTrendingItems.js +1 -1
- package/dist/cjs/hooks/useConnector.js +8 -8
- package/dist/cjs/index.js +25 -1
- package/dist/cjs/index.umd.js +501 -0
- package/dist/cjs/lib/createSearchResults.js +1 -1
- package/dist/cjs/lib/getIndexSearchResults.js +2 -2
- package/dist/cjs/lib/use.js +1 -2
- package/dist/cjs/lib/useAppIdAndApiKey.js +13 -0
- package/dist/cjs/lib/useForceUpdate.js +4 -4
- package/dist/cjs/lib/useIndex.js +1 -1
- package/dist/cjs/lib/useInstantSearchApi.js +4 -5
- package/dist/cjs/lib/useSearchResults.js +4 -4
- package/dist/cjs/lib/useSearchState.js +4 -4
- package/dist/cjs/lib/useStableValue.js +4 -4
- package/dist/cjs/server/getServerState.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/components/Configure.js +2 -2
- package/dist/es/components/DynamicWidgets.js +2 -2
- package/dist/es/components/Index.js +2 -2
- package/dist/es/components/InstantSearch.js +2 -2
- package/dist/es/components/InstantSearchSSRProvider.js +4 -4
- package/dist/es/connectors/useAutocomplete.d.ts +4 -0
- package/dist/es/connectors/useAutocomplete.js +5 -0
- package/dist/es/connectors/useChat.d.ts +79 -0
- package/dist/es/connectors/useChat.js +199 -0
- package/dist/es/connectors/useDynamicWidgets.js +2 -2
- package/dist/es/hooks/useConnector.js +8 -8
- package/dist/es/index.d.ts +2 -0
- package/dist/es/index.js +2 -0
- package/dist/es/index.umd.d.ts +42 -0
- package/dist/es/index.umd.js +44 -0
- package/dist/es/lib/getIndexSearchResults.js +2 -2
- package/dist/es/lib/useAppIdAndApiKey.d.ts +1 -0
- package/dist/es/lib/useAppIdAndApiKey.js +7 -0
- package/dist/es/lib/useForceUpdate.js +4 -4
- package/dist/es/lib/useInstantSearchApi.js +2 -2
- package/dist/es/lib/useSearchResults.js +4 -4
- package/dist/es/lib/useSearchState.js +4 -4
- package/dist/es/lib/useStableValue.js +4 -4
- package/dist/es/version.d.ts +1 -1
- package/dist/es/version.js +1 -1
- package/dist/umd/ReactInstantSearchCore.js +1646 -1834
- package/dist/umd/ReactInstantSearchCore.js.map +1 -1
- package/dist/umd/ReactInstantSearchCore.min.js +1 -1
- package/dist/umd/ReactInstantSearchCore.min.js.map +1 -1
- package/package.json +7 -4
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { default as version } from './version';
|
|
2
|
+
export * from './components/Configure';
|
|
3
|
+
export * from './components/DynamicWidgets';
|
|
4
|
+
export * from './components/Index';
|
|
5
|
+
export * from './components/InstantSearch';
|
|
6
|
+
export * from './components/InstantSearchServerContext';
|
|
7
|
+
export * from './components/InstantSearchSSRProvider';
|
|
8
|
+
export * from './connectors/useAutocomplete';
|
|
9
|
+
export * from './connectors/useBreadcrumb';
|
|
10
|
+
export declare const useChat: () => never;
|
|
11
|
+
export * from './connectors/useClearRefinements';
|
|
12
|
+
export * from './connectors/useConfigure';
|
|
13
|
+
export * from './connectors/useCurrentRefinements';
|
|
14
|
+
export * from './connectors/useDynamicWidgets';
|
|
15
|
+
export * from './connectors/useFrequentlyBoughtTogether';
|
|
16
|
+
export * from './connectors/useGeoSearch';
|
|
17
|
+
export * from './connectors/useHierarchicalMenu';
|
|
18
|
+
export * from './connectors/useHits';
|
|
19
|
+
export * from './connectors/useHitsPerPage';
|
|
20
|
+
export * from './connectors/useInfiniteHits';
|
|
21
|
+
export * from './connectors/useMenu';
|
|
22
|
+
export * from './connectors/useNumericMenu';
|
|
23
|
+
export * from './connectors/usePagination';
|
|
24
|
+
export * from './connectors/usePoweredBy';
|
|
25
|
+
export * from './connectors/useQueryRules';
|
|
26
|
+
export * from './connectors/useRange';
|
|
27
|
+
export * from './connectors/useRefinementList';
|
|
28
|
+
export * from './connectors/useRelatedProducts';
|
|
29
|
+
export * from './connectors/useSearchBox';
|
|
30
|
+
export * from './connectors/useSortBy';
|
|
31
|
+
export * from './connectors/useStats';
|
|
32
|
+
export * from './connectors/useToggleRefinement';
|
|
33
|
+
export * from './connectors/useTrendingItems';
|
|
34
|
+
export * from './connectors/useLookingSimilar';
|
|
35
|
+
export * from './hooks/useConnector';
|
|
36
|
+
export * from './hooks/useInstantSearch';
|
|
37
|
+
export * from './lib/wrapPromiseWithState';
|
|
38
|
+
export * from './lib/useInstantSearchContext';
|
|
39
|
+
export * from './lib/useRSCContext';
|
|
40
|
+
export * from './lib/InstantSearchRSCContext';
|
|
41
|
+
export * from './lib/InstantSearchSSRContext';
|
|
42
|
+
export * from './server';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { default as version } from "./version.js";
|
|
2
|
+
export * from "./components/Configure.js";
|
|
3
|
+
export * from "./components/DynamicWidgets.js";
|
|
4
|
+
export * from "./components/Index.js";
|
|
5
|
+
export * from "./components/InstantSearch.js";
|
|
6
|
+
export * from "./components/InstantSearchServerContext.js";
|
|
7
|
+
export * from "./components/InstantSearchSSRProvider.js";
|
|
8
|
+
export * from "./connectors/useAutocomplete.js";
|
|
9
|
+
export * from "./connectors/useBreadcrumb.js";
|
|
10
|
+
export var useChat = function useChat() {
|
|
11
|
+
throw new Error("\"useChat()\" is not available from the UMD build.\n\nPlease use React InstantSearch with a packaging system:\nhttps://www.algolia.com/doc/guides/building-search-ui/installation/react/#install-react-instantsearch-as-an-npm-package");
|
|
12
|
+
};
|
|
13
|
+
export * from "./connectors/useClearRefinements.js";
|
|
14
|
+
export * from "./connectors/useConfigure.js";
|
|
15
|
+
export * from "./connectors/useCurrentRefinements.js";
|
|
16
|
+
export * from "./connectors/useDynamicWidgets.js";
|
|
17
|
+
export * from "./connectors/useFrequentlyBoughtTogether.js";
|
|
18
|
+
export * from "./connectors/useGeoSearch.js";
|
|
19
|
+
export * from "./connectors/useHierarchicalMenu.js";
|
|
20
|
+
export * from "./connectors/useHits.js";
|
|
21
|
+
export * from "./connectors/useHitsPerPage.js";
|
|
22
|
+
export * from "./connectors/useInfiniteHits.js";
|
|
23
|
+
export * from "./connectors/useMenu.js";
|
|
24
|
+
export * from "./connectors/useNumericMenu.js";
|
|
25
|
+
export * from "./connectors/usePagination.js";
|
|
26
|
+
export * from "./connectors/usePoweredBy.js";
|
|
27
|
+
export * from "./connectors/useQueryRules.js";
|
|
28
|
+
export * from "./connectors/useRange.js";
|
|
29
|
+
export * from "./connectors/useRefinementList.js";
|
|
30
|
+
export * from "./connectors/useRelatedProducts.js";
|
|
31
|
+
export * from "./connectors/useSearchBox.js";
|
|
32
|
+
export * from "./connectors/useSortBy.js";
|
|
33
|
+
export * from "./connectors/useStats.js";
|
|
34
|
+
export * from "./connectors/useToggleRefinement.js";
|
|
35
|
+
export * from "./connectors/useTrendingItems.js";
|
|
36
|
+
export * from "./connectors/useLookingSimilar.js";
|
|
37
|
+
export * from "./hooks/useConnector.js";
|
|
38
|
+
export * from "./hooks/useInstantSearch.js";
|
|
39
|
+
export * from "./lib/wrapPromiseWithState.js";
|
|
40
|
+
export * from "./lib/useInstantSearchContext.js";
|
|
41
|
+
export * from "./lib/useRSCContext.js";
|
|
42
|
+
export * from "./lib/InstantSearchRSCContext.js";
|
|
43
|
+
export * from "./lib/InstantSearchSSRContext.js";
|
|
44
|
+
export * from "./server/index.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { createSearchResults } from "./createSearchResults.js";
|
|
8
8
|
export function getIndexSearchResults(indexWidget) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAppIdAndApiKey: () => [appId: string, apiKey: string] | [appId: undefined, apiKey: undefined];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { getAppIdAndApiKey } from "instantsearch.js/es/lib/utils/index.js";
|
|
2
|
+
import { useInstantSearchContext } from "./useInstantSearchContext.js";
|
|
3
|
+
export var useAppIdAndApiKey = function useAppIdAndApiKey() {
|
|
4
|
+
var _useInstantSearchCont = useInstantSearchContext(),
|
|
5
|
+
client = _useInstantSearchCont.client;
|
|
6
|
+
return getAppIdAndApiKey(client);
|
|
7
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { useReducer } from 'react';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import InstantSearch, { INSTANTSEARCH_FUTURE_DEFAULTS } from "instantsearch.js/es/lib/InstantSearch.js";
|
|
8
8
|
import { useCallback, useRef, version as ReactVersion } from 'react';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { isIndexWidget } from "instantsearch.js/es/lib/utils/index.js";
|
|
8
8
|
import { useEffect, useState } from 'react';
|
|
9
9
|
import { getIndexSearchResults } from "./getIndexSearchResults.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { useCallback, useEffect, useState } from 'react';
|
|
8
8
|
import { useIndexContext } from "./useIndexContext.js";
|
|
9
9
|
import { useInstantSearchContext } from "./useInstantSearchContext.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { useState } from 'react';
|
|
8
8
|
import { dequal } from "./dequal.js";
|
|
9
9
|
export function useStableValue(value) {
|
package/dist/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.
|
|
1
|
+
declare const _default: "7.18.0";
|
|
2
2
|
export default _default;
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '7.
|
|
1
|
+
export default '7.18.0';
|