react-instantsearch 7.26.0 → 7.26.1

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.
@@ -48,9 +48,14 @@ var AutocompleteDetachedSearchButton = instantsearchUiComponents.createAutocompl
48
48
  createElement: React.createElement,
49
49
  Fragment: React.Fragment
50
50
  });
51
+ var id = 0;
51
52
  var usePropGetters = instantsearchUiComponents.createAutocompletePropGetters({
52
53
  useEffect: React.useEffect,
53
- useId: React.useId,
54
+ useId: React.useId || function() {
55
+ return React.useState(function() {
56
+ return (id++).toString();
57
+ });
58
+ },
54
59
  useMemo: React.useMemo,
55
60
  useRef: React.useRef,
56
61
  useState: React.useState
@@ -5,7 +5,7 @@ import { _ as _$5 } from '@swc/helpers/cjs/_sliced_to_array.cjs';
5
5
  import { _ as _$2 } from '@swc/helpers/cjs/_to_consumable_array.cjs';
6
6
  import { _ as _$3 } from '@swc/helpers/cjs/_type_of.cjs';
7
7
  import { createAutocompleteComponent, createAutocompletePanelComponent, createAutocompleteIndexComponent, createAutocompleteSuggestionComponent, createAutocompleteRecentSearchComponent, createAutocompleteDetachedContainerComponent, createAutocompleteDetachedOverlayComponent, createAutocompleteDetachedFormContainerComponent, createAutocompleteDetachedSearchButtonComponent, createAutocompletePropGetters, createAutocompleteStorage, cx } from 'instantsearch-ui-components';
8
- import React, { createElement, Fragment, useEffect, useId, useMemo, useRef, useState } from 'react';
8
+ import React, { createElement, Fragment, useEffect, useMemo, useRef, useState } from 'react';
9
9
  import { useInstantSearch, useSearchBox, Index, Configure, useAutocomplete } from 'react-instantsearch-core';
10
10
  import { AutocompleteSearch } from '../components/AutocompleteSearch.js';
11
11
  import { ReverseHighlight } from './ReverseHighlight.js';
@@ -46,9 +46,14 @@ var AutocompleteDetachedSearchButton = createAutocompleteDetachedSearchButtonCom
46
46
  createElement: createElement,
47
47
  Fragment: Fragment
48
48
  });
49
+ var id = 0;
49
50
  var usePropGetters = createAutocompletePropGetters({
50
51
  useEffect: useEffect,
51
- useId: useId,
52
+ useId: React.useId || function() {
53
+ return React.useState(function() {
54
+ return (id++).toString();
55
+ });
56
+ },
52
57
  useMemo: useMemo,
53
58
  useRef: useRef,
54
59
  useState: useState
@@ -1,4 +1,4 @@
1
- /*! React InstantSearch 7.26.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
1
+ /*! React InstantSearch 7.26.1 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
@@ -24,7 +24,7 @@
24
24
 
25
25
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
26
26
 
27
- var version$2 = '7.26.0';
27
+ var version$2 = '7.26.1';
28
28
 
29
29
  function getDefaultExportFromCjs (x) {
30
30
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -6949,15 +6949,15 @@
6949
6949
 
6950
6950
  var _to_consumable_arrayExports = /*@__PURE__*/ require_to_consumable_array();
6951
6951
 
6952
- var id = 0;
6952
+ var id$1 = 0;
6953
6953
  function addWidgetId(widget) {
6954
6954
  if (widget.dependsOn !== 'recommend') {
6955
6955
  return;
6956
6956
  }
6957
- widget.$$id = id++;
6957
+ widget.$$id = id$1++;
6958
6958
  }
6959
6959
  function resetWidgetId() {
6960
- id = 0;
6960
+ id$1 = 0;
6961
6961
  }
6962
6962
 
6963
6963
  function isIndexWidget(widget) {
@@ -20827,9 +20827,14 @@
20827
20827
  createElement: React.createElement,
20828
20828
  Fragment: React.Fragment
20829
20829
  });
20830
+ var id = 0;
20830
20831
  var usePropGetters = createAutocompletePropGetters({
20831
20832
  useEffect: React.useEffect,
20832
- useId: React.useId,
20833
+ useId: React.useId || function() {
20834
+ return React.useState(function() {
20835
+ return (id++).toString();
20836
+ });
20837
+ },
20833
20838
  useMemo: React.useMemo,
20834
20839
  useRef: React.useRef,
20835
20840
  useState: React.useState