@ariakit/core 0.4.3 → 0.4.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ariakit/core
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Combobox `autoFocusOnHide` behavior
6
+
7
+ Previously, the [`autoFocusOnHide`](https://ariakit.org/reference/combobox-popover#autofocusonhide) feature on [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover) was turned off by default. Most of the time, this didn't have any practical impact because the combobox input element was already focused when the popover was hidden.
8
+
9
+ Now, this feature is enabled by default and should work consistently even when [`virtualFocus`](https://ariakit.org/reference/combobox-provider#virtualfocus) is set to `false`.
10
+
11
+ ### Other updates
12
+
13
+ - Improved JSDocs.
14
+
3
15
  ## 0.4.3
4
16
 
5
17
  - Fixed regression in `v0.4.2` that caused nested tabs to stop working.
@@ -20,7 +20,6 @@ var _B4LYZ4EMcjs = require('../__chunks/B4LYZ4EM.cjs');
20
20
  var _EEDWPDM2cjs = require('../__chunks/EEDWPDM2.cjs');
21
21
 
22
22
 
23
-
24
23
  var _7DU6YMLQcjs = require('../__chunks/7DU6YMLQ.cjs');
25
24
  require('../__chunks/UKR6TQI3.cjs');
26
25
  require('../__chunks/ULSPM3Y3.cjs');
@@ -30,7 +29,7 @@ require('../__chunks/ULSPM3Y3.cjs');
30
29
  var _AV6KTKLEcjs = require('../__chunks/AV6KTKLE.cjs');
31
30
 
32
31
  // src/combobox/combobox-store.ts
33
- var isSafariOnMobile = _7DU6YMLQcjs.isSafari.call(void 0, ) && _7DU6YMLQcjs.isTouchDevice.call(void 0, );
32
+ var isSafariOnMobile = _7DU6YMLQcjs.isSafari.call(void 0, ) && matchMedia("(hover:none)").matches;
34
33
  function createComboboxStore(props = {}) {
35
34
  var _a;
36
35
  _B4LYZ4EMcjs.throwOnConflictingProps.call(void 0, props, props.store);
@@ -19,8 +19,7 @@ import {
19
19
  defaultValue
20
20
  } from "../__chunks/22HHDS5F.js";
21
21
  import {
22
- isSafari,
23
- isTouchDevice
22
+ isSafari
24
23
  } from "../__chunks/VDNATJW2.js";
25
24
  import "../__chunks/RRSZHCH6.js";
26
25
  import "../__chunks/7PRQYBBV.js";
@@ -30,7 +29,7 @@ import {
30
29
  } from "../__chunks/4R3V3JGP.js";
31
30
 
32
31
  // src/combobox/combobox-store.ts
33
- var isSafariOnMobile = isSafari() && isTouchDevice();
32
+ var isSafariOnMobile = isSafari() && matchMedia("(hover:none)").matches;
34
33
  function createComboboxStore(props = {}) {
35
34
  var _a;
36
35
  throwOnConflictingProps(props, props.store);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariakit/core",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Ariakit core",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",