@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 +4 -4
- package/dist/index.cjs +2 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/package.json +1 -1
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
package/dist/index.d.ts
CHANGED
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
|
-
|
|
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.
|
|
846
|
+
* @version 1.3.10
|
|
848
847
|
* @author Yusuke Kamiyamane
|
|
849
848
|
* @license MIT
|
|
850
849
|
* @copyright Copyright (c) Yusuke Kamiyamane
|