@y14e/accordion 1.4.7 → 1.4.8

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/accordion
10
10
 
11
11
  ```ts
12
12
  // npm
13
- import Accordion from '@y14e/accordion@1.4.7';
13
+ import Accordion from '@y14e/accordion@1.4.8';
14
14
 
15
15
  // CDNs
16
- import Accordion from 'https://esm.sh/@y14e/accordion@1.4.7';
16
+ import Accordion from 'https://esm.sh/@y14e/accordion@1.4.8';
17
17
  // or
18
- import Accordion from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@1.4.7/+esm';
18
+ import Accordion from 'https://cdn.jsdelivr.net/npm/@y14e/accordion@1.4.8/+esm';
19
19
  // or
20
- import Accordion from 'https://esm.unpkg.com/@y14e/accordion@1.4.7';
20
+ import Accordion from 'https://esm.unpkg.com/@y14e/accordion@1.4.8';
21
21
  ```
22
22
 
23
23
  ## Usage
package/dist/index.cjs CHANGED
@@ -906,8 +906,7 @@ function isFocusable2(element) {
906
906
  return !element.hasAttribute("disabled") && element.tabIndex >= 0;
907
907
  }
908
908
  function waitAnimationFinish(animation) {
909
- const { playState } = animation;
910
- if (playState === "idle" || playState === "finished") {
909
+ if (["idle", "finished"].includes(animation.playState)) {
911
910
  return Promise.resolve();
912
911
  }
913
912
  return new Promise(
@@ -918,7 +917,7 @@ function waitAnimationFinish(animation) {
918
917
  * Accordion
919
918
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
920
919
  *
921
- * @version 1.4.7
920
+ * @version 1.4.8
922
921
  * @author Yusuke Kamiyamane
923
922
  * @license MIT
924
923
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 1.4.7
5
+ * @version 1.4.8
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Accordion
3
3
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
4
4
  *
5
- * @version 1.4.7
5
+ * @version 1.4.8
6
6
  * @author Yusuke Kamiyamane
7
7
  * @license MIT
8
8
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -904,8 +904,7 @@ function isFocusable2(element) {
904
904
  return !element.hasAttribute("disabled") && element.tabIndex >= 0;
905
905
  }
906
906
  function waitAnimationFinish(animation) {
907
- const { playState } = animation;
908
- if (playState === "idle" || playState === "finished") {
907
+ if (["idle", "finished"].includes(animation.playState)) {
909
908
  return Promise.resolve();
910
909
  }
911
910
  return new Promise(
@@ -916,7 +915,7 @@ function waitAnimationFinish(animation) {
916
915
  * Accordion
917
916
  * WAI-ARIA compliant accordion pattern implementation in TypeScript.
918
917
  *
919
- * @version 1.4.7
918
+ * @version 1.4.8
920
919
  * @author Yusuke Kamiyamane
921
920
  * @license MIT
922
921
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/accordion",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "WAI-ARIA compliant accordion pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",