@stonecrop/utilities 0.13.12 → 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.
Files changed (35) hide show
  1. package/dist/src/types/index.d.ts +2 -2
  2. package/dist/src/types/index.d.ts.map +1 -1
  3. package/dist/utilities.d.ts +2 -2
  4. package/package.json +1 -1
  5. package/src/types/index.ts +6 -4
  6. package/dist/assets/sample_data/coa.json +0 -2362
  7. package/dist/assets/sample_data/financials.json +0 -252
  8. package/dist/assets/sample_data/forecast.json +0 -2792
  9. package/dist/assets/sample_data/forecast_items.json +0 -126
  10. package/dist/assets/sample_data/http_logs.json +0 -252
  11. package/dist/assets/sample_data/inbox.json +0 -355
  12. package/dist/assets/sample_data/parts.json +0 -1322
  13. package/dist/assets/sample_data/repos.json +0 -1142
  14. package/dist/composables/keyboard.js +0 -473
  15. package/dist/composables/visibility/index.js +0 -47
  16. package/dist/index.js +0 -8
  17. package/dist/naming-conventions.js +0 -135
  18. package/dist/sql-introspection.js +0 -260
  19. package/dist/src/naming-conventions.d.ts +0 -107
  20. package/dist/src/naming-conventions.d.ts.map +0 -1
  21. package/dist/src/naming-conventions.js +0 -135
  22. package/dist/src/sql-introspection.d.ts +0 -111
  23. package/dist/src/sql-introspection.d.ts.map +0 -1
  24. package/dist/src/sql-introspection.js +0 -260
  25. package/dist/src/tsdoc-metadata.json +0 -11
  26. package/dist/src/workflow-scaffolder.d.ts +0 -77
  27. package/dist/src/workflow-scaffolder.d.ts.map +0 -1
  28. package/dist/src/workflow-scaffolder.js +0 -194
  29. package/dist/tests/setup.d.ts +0 -2
  30. package/dist/tests/setup.d.ts.map +0 -1
  31. package/dist/tests/setup.js +0 -4
  32. package/dist/types/index.js +0 -0
  33. package/dist/utilities.umd.cjs +0 -2
  34. package/dist/utilities.umd.cjs.map +0 -1
  35. package/dist/workflow-scaffolder.js +0 -194
@@ -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> | Ref<HTMLElement[]> | Ref<ComponentPublicInstance[]>;
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;IACvC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC,CAAA;IAChD,SAAS,CAAC,EACP,MAAM,GACN,WAAW,GACX,WAAW,EAAE,GACb,uBAAuB,EAAE,GACzB,GAAG,CAAC,WAAW,CAAC,GAChB,GAAG,CAAC,WAAW,EAAE,CAAC,GAClB,GAAG,CAAC,uBAAuB,EAAE,CAAC,CAAA;IACjC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA"}
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"}
@@ -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> | Ref<HTMLElement[]> | Ref<ComponentPublicInstance[]>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/utilities",
3
- "version": "0.13.12",
3
+ "version": "0.14.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": {
@@ -13,14 +13,16 @@ export type KeypressHandlers = {
13
13
  * @public
14
14
  */
15
15
  export type KeyboardNavigationOptions = {
16
- parent?: string | HTMLElement | Ref<HTMLElement>
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
  }