@y14e/disclosure 1.3.9 → 1.3.10

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/README.md CHANGED
@@ -10,14 +10,14 @@ npm i @y14e/disclosure
10
10
 
11
11
  ```ts
12
12
  // npm
13
- import Disclosure from '@y14e/disclosure@1.3.9';
13
+ import Disclosure from '@y14e/disclosure@1.3.10';
14
14
 
15
15
  // CDNs
16
- import Disclosure from 'https://esm.sh/@y14e/disclosure@1.3.9';
16
+ import Disclosure from 'https://esm.sh/@y14e/disclosure@1.3.10';
17
17
  // or
18
- import Disclosure from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure@1.3.9/+esm';
18
+ import Disclosure from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure@1.3.10/+esm';
19
19
  // or
20
- import Disclosure from 'https://esm.unpkg.com/@y14e/disclosure@1.3.9';
20
+ import Disclosure from 'https://esm.unpkg.com/@y14e/disclosure@1.3.10';
21
21
  ```
22
22
 
23
23
  ## Usage
package/dist/index.cjs CHANGED
@@ -833,8 +833,7 @@ function isFocusable2(element) {
833
833
  return element.tabIndex >= 0;
834
834
  }
835
835
  function waitAnimationFinish(animation) {
836
- const { playState } = animation;
837
- if (playState === "idle" || playState === "finished") {
836
+ if (["idle", "finished"].includes(animation.playState)) {
838
837
  return Promise.resolve();
839
838
  }
840
839
  return new Promise(
@@ -846,7 +845,7 @@ function waitAnimationFinish(animation) {
846
845
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
847
846
  * Using the <details> and <summary> element.
848
847
  *
849
- * @version 1.3.9
848
+ * @version 1.3.10
850
849
  * @author Yusuke Kamiyamane
851
850
  * @license MIT
852
851
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@
3
3
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
4
4
  * Using the <details> and <summary> element.
5
5
  *
6
- * @version 1.3.9
6
+ * @version 1.3.10
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
4
4
  * Using the <details> and <summary> element.
5
5
  *
6
- * @version 1.3.9
6
+ * @version 1.3.10
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -831,8 +831,7 @@ function isFocusable2(element) {
831
831
  return element.tabIndex >= 0;
832
832
  }
833
833
  function waitAnimationFinish(animation) {
834
- const { playState } = animation;
835
- if (playState === "idle" || playState === "finished") {
834
+ if (["idle", "finished"].includes(animation.playState)) {
836
835
  return Promise.resolve();
837
836
  }
838
837
  return new Promise(
@@ -844,7 +843,7 @@ function waitAnimationFinish(animation) {
844
843
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
845
844
  * Using the <details> and <summary> element.
846
845
  *
847
- * @version 1.3.9
846
+ * @version 1.3.10
848
847
  * @author Yusuke Kamiyamane
849
848
  * @license MIT
850
849
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/disclosure",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "WAI-ARIA compliant disclosure pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",