@y14e/disclosure 2.0.6 → 2.0.7

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";
13
+ import { Disclosure } from "@y14e/disclosure";
14
14
 
15
15
  // CDNs
16
- import Disclosure from "https://esm.sh/@y14e/disclosure@2.0.6";
16
+ import { Disclosure } from "https://esm.sh/@y14e/disclosure@2.0.7";
17
17
  // or
18
- import Disclosure from "https://cdn.jsdelivr.net/npm/@y14e/disclosure@2.0.6/+esm";
18
+ import { Disclosure } from "https://cdn.jsdelivr.net/npm/@y14e/disclosure@2.0.7/+esm";
19
19
  // or
20
- import Disclosure from "https://esm.unpkg.com/@y14e/disclosure@2.0.6";
20
+ import { Disclosure } from "https://esm.unpkg.com/@y14e/disclosure@2.0.7";
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -47,7 +47,7 @@ interface DisclosureOptions {
47
47
  Override the global default settings applied to all disclosure instances.
48
48
 
49
49
  ```ts
50
- import Disclosure from "@y14e/disclosure";
50
+ import { Disclosure } from "@y14e/disclosure";
51
51
 
52
52
  Disclosure.defaults = {
53
53
  animation: {
@@ -867,7 +867,7 @@ function waitAnimationFinish(animation) {
867
867
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
868
868
  * Using the <details> and <summary> element.
869
869
  *
870
- * @version 2.0.6
870
+ * @version 2.0.7
871
871
  * @author Yusuke Kamiyamane
872
872
  * @license MIT
873
873
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -879,7 +879,7 @@ function waitAnimationFinish(animation) {
879
879
  (**
880
880
  * Attribute Util
881
881
  *
882
- * @version 2.0.1
882
+ * @version 2.0.2
883
883
  * @author Yusuke Kamiyamane
884
884
  * @license MIT
885
885
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -913,4 +913,4 @@ power-focusable/dist/index.js:
913
913
  *)
914
914
  */
915
915
 
916
- module.exports = Disclosure;
916
+ exports.Disclosure = Disclosure;
@@ -865,7 +865,7 @@ function waitAnimationFinish(animation) {
865
865
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
866
866
  * Using the <details> and <summary> element.
867
867
  *
868
- * @version 2.0.6
868
+ * @version 2.0.7
869
869
  * @author Yusuke Kamiyamane
870
870
  * @license MIT
871
871
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -877,7 +877,7 @@ function waitAnimationFinish(animation) {
877
877
  (**
878
878
  * Attribute Util
879
879
  *
880
- * @version 2.0.1
880
+ * @version 2.0.2
881
881
  * @author Yusuke Kamiyamane
882
882
  * @license MIT
883
883
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -911,4 +911,4 @@ power-focusable/dist/index.js:
911
911
  *)
912
912
  */
913
913
 
914
- export { Disclosure as default };
914
+ export { Disclosure };
package/dist/index.cjs CHANGED
@@ -303,11 +303,11 @@ function waitAnimationFinish(animation) {
303
303
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
304
304
  * Using the <details> and <summary> element.
305
305
  *
306
- * @version 2.0.6
306
+ * @version 2.0.7
307
307
  * @author Yusuke Kamiyamane
308
308
  * @license MIT
309
309
  * @copyright Copyright (c) Yusuke Kamiyamane
310
310
  * @see {@link https://github.com/y14e/disclosure}
311
311
  */
312
312
 
313
- module.exports = Disclosure;
313
+ exports.Disclosure = Disclosure;
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 2.0.6
6
+ * @version 2.0.7
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -25,4 +25,4 @@ declare class Disclosure {
25
25
  expand(details: HTMLDetailsElement): void;
26
26
  }
27
27
 
28
- export { type DisclosureOptions, Disclosure as default };
28
+ export { Disclosure, type DisclosureOptions };
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 2.0.6
6
+ * @version 2.0.7
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -25,4 +25,4 @@ declare class Disclosure {
25
25
  expand(details: HTMLDetailsElement): void;
26
26
  }
27
27
 
28
- export { type DisclosureOptions, Disclosure as default };
28
+ export { Disclosure, type DisclosureOptions };
package/dist/index.js CHANGED
@@ -281,11 +281,11 @@ function waitAnimationFinish(animation) {
281
281
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
282
282
  * Using the <details> and <summary> element.
283
283
  *
284
- * @version 2.0.6
284
+ * @version 2.0.7
285
285
  * @author Yusuke Kamiyamane
286
286
  * @license MIT
287
287
  * @copyright Copyright (c) Yusuke Kamiyamane
288
288
  * @see {@link https://github.com/y14e/disclosure}
289
289
  */
290
290
 
291
- export { Disclosure as default };
291
+ export { Disclosure };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/disclosure",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "WAI-ARIA compliant disclosure pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -50,8 +50,11 @@
50
50
  "engines": {
51
51
  "node": ">=18"
52
52
  },
53
+ "allowScripts": {
54
+ "esbuild": true
55
+ },
53
56
  "dependencies": {
54
- "@y14e/attribute-util": "^2.0.1",
57
+ "@y14e/attribute-util": "^2.0.2",
55
58
  "@y14e/roving-tabindex": "^3.1.22"
56
59
  }
57
60
  }