downshift 9.3.1 → 9.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "downshift",
3
- "version": "9.3.1",
3
+ "version": "9.3.2",
4
4
  "description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
5
5
  "main": "dist/downshift.cjs.cjs",
6
6
  "react-native": "dist/downshift.native.cjs.cjs",
@@ -2393,8 +2393,9 @@ function downshiftSelectReducer(state, props, action) {
2393
2393
  }
2394
2394
  /* eslint-enable complexity */
2395
2395
 
2396
- // eslint-disable-next-line @typescript-eslint/dot-notation
2397
- var reactUseId$1 = React__namespace['useId'];
2396
+ // https://github.com/downshift-js/downshift/issues/1674#issuecomment-3924320872
2397
+ var SafeReact$1 = _extends({}, React__namespace);
2398
+ var reactUseId$1 = SafeReact$1.useId;
2398
2399
  var useElementIds$1 = typeof reactUseId$1 === 'function' ? useElementIdsR18$1 : useElementIdsLegacy$1;
2399
2400
  function useElementIdsR18$1(_ref) {
2400
2401
  var id = _ref.id,
@@ -4014,8 +4015,9 @@ function useTagGroupReducer(state, _props, action) {
4014
4015
  return _extends({}, state, changes);
4015
4016
  }
4016
4017
 
4017
- // eslint-disable-next-line @typescript-eslint/dot-notation
4018
- var reactUseId = React__namespace['useId'];
4018
+ // https://github.com/downshift-js/downshift/issues/1674#issuecomment-3924320872
4019
+ var SafeReact = _extends({}, React__namespace);
4020
+ var reactUseId = SafeReact.useId;
4019
4021
 
4020
4022
  // istanbul ignore next
4021
4023
  var useElementIds = typeof reactUseId === 'function' ? useElementIdsR18 : useElementIdsLegacy;
@@ -2371,8 +2371,9 @@ function downshiftSelectReducer(state, props, action) {
2371
2371
  }
2372
2372
  /* eslint-enable complexity */
2373
2373
 
2374
- // eslint-disable-next-line @typescript-eslint/dot-notation
2375
- var reactUseId$1 = React['useId'];
2374
+ // https://github.com/downshift-js/downshift/issues/1674#issuecomment-3924320872
2375
+ var SafeReact$1 = _extends({}, React);
2376
+ var reactUseId$1 = SafeReact$1.useId;
2376
2377
  var useElementIds$1 = typeof reactUseId$1 === 'function' ? useElementIdsR18$1 : useElementIdsLegacy$1;
2377
2378
  function useElementIdsR18$1(_ref) {
2378
2379
  var id = _ref.id,
@@ -3992,8 +3993,9 @@ function useTagGroupReducer(state, _props, action) {
3992
3993
  return _extends({}, state, changes);
3993
3994
  }
3994
3995
 
3995
- // eslint-disable-next-line @typescript-eslint/dot-notation
3996
- var reactUseId = React['useId'];
3996
+ // https://github.com/downshift-js/downshift/issues/1674#issuecomment-3924320872
3997
+ var SafeReact = _extends({}, React);
3998
+ var reactUseId = SafeReact.useId;
3997
3999
 
3998
4000
  // istanbul ignore next
3999
4001
  var useElementIds = typeof reactUseId === 'function' ? useElementIdsR18 : useElementIdsLegacy;
@@ -2654,8 +2654,9 @@
2654
2654
  }
2655
2655
  /* eslint-enable complexity */
2656
2656
 
2657
- // eslint-disable-next-line @typescript-eslint/dot-notation
2658
- var reactUseId$1 = React__namespace['useId'];
2657
+ // https://github.com/downshift-js/downshift/issues/1674#issuecomment-3924320872
2658
+ var SafeReact$1 = _extends({}, React__namespace);
2659
+ var reactUseId$1 = SafeReact$1.useId;
2659
2660
  var useElementIds$1 = typeof reactUseId$1 === 'function' ? useElementIdsR18$1 : useElementIdsLegacy$1;
2660
2661
  function useElementIdsR18$1(_ref) {
2661
2662
  var id = _ref.id,
@@ -4275,8 +4276,9 @@
4275
4276
  return _extends({}, state, changes);
4276
4277
  }
4277
4278
 
4278
- // eslint-disable-next-line @typescript-eslint/dot-notation
4279
- var reactUseId = React__namespace['useId'];
4279
+ // https://github.com/downshift-js/downshift/issues/1674#issuecomment-3924320872
4280
+ var SafeReact = _extends({}, React__namespace);
4281
+ var reactUseId = SafeReact.useId;
4280
4282
 
4281
4283
  // istanbul ignore next
4282
4284
  var useElementIds = typeof reactUseId === 'function' ? useElementIdsR18 : useElementIdsLegacy;