@stonecrop/utilities 0.13.14 → 0.15.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.
- package/dist/assets/sample_data/coa.json +2362 -0
- package/dist/assets/sample_data/financials.json +252 -0
- package/dist/assets/sample_data/forecast.json +2792 -0
- package/dist/assets/sample_data/forecast_items.json +126 -0
- package/dist/assets/sample_data/http_logs.json +252 -0
- package/dist/assets/sample_data/inbox.json +355 -0
- package/dist/assets/sample_data/parts.json +1322 -0
- package/dist/assets/sample_data/repos.json +1142 -0
- package/dist/src/types/index.d.ts +2 -2
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/utilities.d.ts +2 -2
- package/package.json +16 -16
- package/src/types/index.ts +6 -4
|
@@ -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
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/utilities",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"name": "Tyler Matteson",
|
|
8
|
-
"email": "tyler@agritheory.com"
|
|
3
|
+
"version": "0.15.0",
|
|
4
|
+
"description": "Shared utility functions for Stonecrop",
|
|
5
|
+
"bugs": {
|
|
6
|
+
"url": "https://github.com/agritheory/stonecrop/issues"
|
|
9
7
|
},
|
|
10
8
|
"repository": {
|
|
11
9
|
"type": "git",
|
|
12
10
|
"url": "https://github.com/agritheory/stonecrop",
|
|
13
11
|
"directory": "utilities"
|
|
14
12
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Tyler Matteson",
|
|
16
|
+
"email": "tyler@agritheory.com"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"type": "module",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
22
|
"types": "./dist/utilities.d.ts",
|
|
@@ -24,18 +24,15 @@
|
|
|
24
24
|
},
|
|
25
25
|
"./types": "./dist/src/types/index.d.ts"
|
|
26
26
|
},
|
|
27
|
+
"types": "./dist/utilities.d.ts",
|
|
27
28
|
"files": [
|
|
28
29
|
"dist/*",
|
|
29
30
|
"src/*"
|
|
30
31
|
],
|
|
31
|
-
"sideEffects": false,
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@vueuse/core": "^14.2.1",
|
|
34
34
|
"xstate": "^5.25.0"
|
|
35
35
|
},
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"vue": "^3.5.33"
|
|
38
|
-
},
|
|
39
36
|
"devDependencies": {
|
|
40
37
|
"@microsoft/api-documenter": "^7.30.5",
|
|
41
38
|
"@rushstack/heft": "^1.2.17",
|
|
@@ -48,12 +45,15 @@
|
|
|
48
45
|
"vue-router": "^5.0.6",
|
|
49
46
|
"stonecrop-rig": "0.7.0"
|
|
50
47
|
},
|
|
51
|
-
"
|
|
52
|
-
"
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"vue": "^3.5.33"
|
|
53
50
|
},
|
|
54
51
|
"engines": {
|
|
55
52
|
"node": ">=24.0.0"
|
|
56
53
|
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"_phase:build": "heft build && vite build && rushx docs",
|
|
59
59
|
"build": "heft build && vite build && rushx docs",
|
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
|
}
|