@stonecrop/utilities 0.13.14 → 0.14.0
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.
|
@@ -11,8 +11,8 @@ export type KeypressHandlers = {
|
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
13
|
export type KeyboardNavigationOptions = {
|
|
14
|
-
parent?: string | HTMLElement | Ref<HTMLElement
|
|
15
|
-
selectors?: string | HTMLElement | HTMLElement[] | ComponentPublicInstance[] | Ref<HTMLElement
|
|
14
|
+
parent?: string | HTMLElement | Readonly<Ref<HTMLElement | null>>;
|
|
15
|
+
selectors?: string | HTMLElement | HTMLElement[] | ComponentPublicInstance[] | Readonly<Ref<HTMLElement | null>> | Readonly<Ref<HTMLElement[] | null>> | Readonly<Ref<ComponentPublicInstance[] | null>>;
|
|
16
16
|
handlers?: KeypressHandlers;
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAElD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,aAAa,KAAK,GAAG,CAAA;CACzC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAElD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,aAAa,KAAK,GAAG,CAAA;CACzC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IAGvC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,CAAA;IACjE,SAAS,CAAC,EACP,MAAM,GACN,WAAW,GACX,WAAW,EAAE,GACb,uBAAuB,EAAE,GACzB,QAAQ,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,GACjC,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,CAAC,GACnC,QAAQ,CAAC,GAAG,CAAC,uBAAuB,EAAE,GAAG,IAAI,CAAC,CAAC,CAAA;IAClD,QAAQ,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA"}
|
package/dist/utilities.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ export declare function install(_app: App): void;
|
|
|
20
20
|
* @public
|
|
21
21
|
*/
|
|
22
22
|
export declare type KeyboardNavigationOptions = {
|
|
23
|
-
parent?: string | HTMLElement | Ref<HTMLElement
|
|
24
|
-
selectors?: string | HTMLElement | HTMLElement[] | ComponentPublicInstance[] | Ref<HTMLElement
|
|
23
|
+
parent?: string | HTMLElement | Readonly<Ref<HTMLElement | null>>;
|
|
24
|
+
selectors?: string | HTMLElement | HTMLElement[] | ComponentPublicInstance[] | Readonly<Ref<HTMLElement | null>> | Readonly<Ref<HTMLElement[] | null>> | Readonly<Ref<ComponentPublicInstance[] | null>>;
|
|
25
25
|
handlers?: KeypressHandlers;
|
|
26
26
|
};
|
|
27
27
|
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -13,14 +13,16 @@ export type KeypressHandlers = {
|
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
export type KeyboardNavigationOptions = {
|
|
16
|
-
|
|
16
|
+
// The ref arms are nullable and readonly because that is what `useTemplateRef` hands back — the
|
|
17
|
+
// element does not exist until mount. The composable already guards for it.
|
|
18
|
+
parent?: string | HTMLElement | Readonly<Ref<HTMLElement | null>>
|
|
17
19
|
selectors?:
|
|
18
20
|
| string
|
|
19
21
|
| HTMLElement
|
|
20
22
|
| HTMLElement[]
|
|
21
23
|
| ComponentPublicInstance[]
|
|
22
|
-
| Ref<HTMLElement
|
|
23
|
-
| Ref<HTMLElement[]
|
|
24
|
-
| Ref<ComponentPublicInstance[]
|
|
24
|
+
| Readonly<Ref<HTMLElement | null>>
|
|
25
|
+
| Readonly<Ref<HTMLElement[] | null>>
|
|
26
|
+
| Readonly<Ref<ComponentPublicInstance[] | null>>
|
|
25
27
|
handlers?: KeypressHandlers
|
|
26
28
|
}
|