@y14e/disclosure 2.0.2 → 2.0.3

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
@@ -13,11 +13,11 @@ npm i @y14e/disclosure
13
13
  import Disclosure from '@y14e/disclosure';
14
14
 
15
15
  // CDNs
16
- import Disclosure from 'https://esm.sh/@y14e/disclosure@2.0.2';
16
+ import Disclosure from 'https://esm.sh/@y14e/disclosure@2.0.3';
17
17
  // or
18
- import Disclosure from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure@2.0.2/+esm';
18
+ import Disclosure from 'https://cdn.jsdelivr.net/npm/@y14e/disclosure@2.0.3/+esm';
19
19
  // or
20
- import Disclosure from 'https://esm.unpkg.com/@y14e/disclosure@2.0.2';
20
+ import Disclosure from 'https://esm.unpkg.com/@y14e/disclosure@2.0.3';
21
21
  ```
22
22
 
23
23
  ## Usage
@@ -34,11 +34,11 @@ new Disclosure(root, options);
34
34
 
35
35
  ```ts
36
36
  interface DisclosureOptions {
37
- animation?: {
38
- duration?: number; // ms (default: 300)
39
- easing?: string; // <easing-function> (default: 'ease')
37
+ animation: {
38
+ duration: number; // ms (default: 300)
39
+ easing: string; // <easing-function> (default: 'ease')
40
40
  };
41
- collapsible?: boolean; // default: true
41
+ collapsible: boolean; // default: true
42
42
  }
43
43
  ```
44
44
 
@@ -810,7 +810,7 @@ function waitAnimationFinish(animation) {
810
810
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
811
811
  * Using the <details> and <summary> element.
812
812
  *
813
- * @version 2.0.2
813
+ * @version 2.0.3
814
814
  * @author Yusuke Kamiyamane
815
815
  * @license MIT
816
816
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -835,7 +835,7 @@ power-focusable/dist/index.js:
835
835
  * High-precision focus management utility with full composed tree support.
836
836
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
837
837
  *
838
- * @version 4.3.8
838
+ * @version 4.3.10
839
839
  * @author Yusuke Kamiyamane
840
840
  * @license MIT
841
841
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -848,7 +848,7 @@ power-focusable/dist/index.js:
848
848
  * Lightweight roving tabindex utility with fully focus management.
849
849
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
850
850
  *
851
- * @version 3.1.6
851
+ * @version 3.1.9
852
852
  * @author Yusuke Kamiyamane
853
853
  * @license MIT
854
854
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -808,7 +808,7 @@ function waitAnimationFinish(animation) {
808
808
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
809
809
  * Using the <details> and <summary> element.
810
810
  *
811
- * @version 2.0.2
811
+ * @version 2.0.3
812
812
  * @author Yusuke Kamiyamane
813
813
  * @license MIT
814
814
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -833,7 +833,7 @@ power-focusable/dist/index.js:
833
833
  * High-precision focus management utility with full composed tree support.
834
834
  * Handles complex focus rules including tabindex ordering, radio groups, inert.
835
835
  *
836
- * @version 4.3.8
836
+ * @version 4.3.10
837
837
  * @author Yusuke Kamiyamane
838
838
  * @license MIT
839
839
  * @copyright Copyright (c) Yusuke Kamiyamane
@@ -846,7 +846,7 @@ power-focusable/dist/index.js:
846
846
  * Lightweight roving tabindex utility with fully focus management.
847
847
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
848
848
  *
849
- * @version 3.1.6
849
+ * @version 3.1.9
850
850
  * @author Yusuke Kamiyamane
851
851
  * @license MIT
852
852
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.cjs CHANGED
@@ -283,7 +283,7 @@ function waitAnimationFinish(animation) {
283
283
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
284
284
  * Using the <details> and <summary> element.
285
285
  *
286
- * @version 2.0.2
286
+ * @version 2.0.3
287
287
  * @author Yusuke Kamiyamane
288
288
  * @license MIT
289
289
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,23 +3,23 @@
3
3
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
4
4
  * Using the <details> and <summary> element.
5
5
  *
6
- * @version 2.0.2
6
+ * @version 2.0.3
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
10
10
  * @see {@link https://github.com/y14e/disclosure}
11
11
  */
12
12
  interface DisclosureOptions {
13
- readonly animation?: {
14
- readonly duration?: number;
15
- readonly easing?: string;
13
+ animation: {
14
+ duration: number;
15
+ easing: string;
16
16
  };
17
- readonly collapsible?: boolean;
17
+ collapsible: boolean;
18
18
  }
19
19
  declare class Disclosure {
20
20
  #private;
21
- static defaults: DisclosureOptions;
22
- constructor(root: HTMLElement, options?: DisclosureOptions);
21
+ static defaults: Partial<DisclosureOptions>;
22
+ constructor(root: HTMLElement, options?: Partial<DisclosureOptions>);
23
23
  collapse(details: HTMLDetailsElement): void;
24
24
  destroy(force?: boolean): Promise<void>;
25
25
  expand(details: HTMLDetailsElement): void;
package/dist/index.d.ts CHANGED
@@ -3,23 +3,23 @@
3
3
  * WAI-ARIA compliant disclosure pattern implementation in TypeScript.
4
4
  * Using the <details> and <summary> element.
5
5
  *
6
- * @version 2.0.2
6
+ * @version 2.0.3
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
10
10
  * @see {@link https://github.com/y14e/disclosure}
11
11
  */
12
12
  interface DisclosureOptions {
13
- readonly animation?: {
14
- readonly duration?: number;
15
- readonly easing?: string;
13
+ animation: {
14
+ duration: number;
15
+ easing: string;
16
16
  };
17
- readonly collapsible?: boolean;
17
+ collapsible: boolean;
18
18
  }
19
19
  declare class Disclosure {
20
20
  #private;
21
- static defaults: DisclosureOptions;
22
- constructor(root: HTMLElement, options?: DisclosureOptions);
21
+ static defaults: Partial<DisclosureOptions>;
22
+ constructor(root: HTMLElement, options?: Partial<DisclosureOptions>);
23
23
  collapse(details: HTMLDetailsElement): void;
24
24
  destroy(force?: boolean): Promise<void>;
25
25
  expand(details: HTMLDetailsElement): void;
package/dist/index.js CHANGED
@@ -281,7 +281,7 @@ 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.2
284
+ * @version 2.0.3
285
285
  * @author Yusuke Kamiyamane
286
286
  * @license MIT
287
287
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/disclosure",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "WAI-ARIA compliant disclosure pattern implementation in TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -45,14 +45,13 @@
45
45
  "devDependencies": {
46
46
  "bun-types": "latest",
47
47
  "tsup": "^8.0.0",
48
- "typescript": "^5.6.0",
49
- "utility-types": "^3.11.0"
48
+ "typescript": "^5.6.0"
50
49
  },
51
50
  "engines": {
52
51
  "node": ">=18"
53
52
  },
54
53
  "dependencies": {
55
54
  "@y14e/attributes-utils": "^1.1.3",
56
- "@y14e/roving-tabindex": "^3.1.6"
55
+ "@y14e/roving-tabindex": "^3.1.9"
57
56
  }
58
57
  }