dirvi-lib 0.11.0-beta.8 → 0.11.0-beta.9
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/app/app-api.d.ts +10 -1
- package/dist/app/app-api.d.ts.map +1 -1
- package/dist/app/index.d.ts +0 -1
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +0 -1
- package/dist/state-and-nav/tree/tree-node.model.d.ts +2 -1
- package/dist/state-and-nav/tree/tree-node.model.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/app/node-presentation.d.ts +0 -13
- package/dist/app/node-presentation.d.ts.map +0 -1
- package/dist/app/node-presentation.js +0 -1
package/dist/app/app-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NavMethods, SerializableKey, StateApi } from '../state-and-nav/index.js';
|
|
2
|
-
import type { PresentNode } from './node-presentation.js';
|
|
3
2
|
import { TreeNode } from '../state-and-nav/index.js';
|
|
3
|
+
import { PresentNode } from 'dirvi-apis';
|
|
4
4
|
/**
|
|
5
5
|
* Application-specific tree dependencies and operations.
|
|
6
6
|
*
|
|
@@ -45,4 +45,13 @@ export type AppApi<Id extends SerializableKey, Value, ViewKey = string> = Readon
|
|
|
45
45
|
*/
|
|
46
46
|
navMethods: NavMethods<Id, Value>;
|
|
47
47
|
}>;
|
|
48
|
+
/**
|
|
49
|
+
* An operation that can consume an AppApi of any valid concrete type and
|
|
50
|
+
* produce a caller-selected result.
|
|
51
|
+
*/
|
|
52
|
+
export type AppApiConsumer<Result> = <Id extends SerializableKey, Value, ViewKey = string>(appApi: AppApi<Id, Value, ViewKey>) => Result;
|
|
53
|
+
/**
|
|
54
|
+
* Creates and applies the AppApi to a given consumer of it.
|
|
55
|
+
*/
|
|
56
|
+
export type AppApiApplicator = <Result>(appApiConsumer: AppApiConsumer<Result>) => Result;
|
|
48
57
|
//# sourceMappingURL=app-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-api.d.ts","sourceRoot":"","sources":["../../src/app/app-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EACf,QAAQ,EACT,MAAM,2BAA2B,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"app-api.d.ts","sourceRoot":"","sources":["../../src/app/app-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EACf,QAAQ,EACT,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,MAAM,CAChB,EAAE,SAAS,eAAe,EAC1B,KAAK,EACL,OAAO,GAAG,MAAM,IACd,QAAQ,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,YAAY,EAAE,CACZ,IAAI,EAAE,SAAS,EAAE,EAAE,KAChB,OAAO,CAAC,SAAS,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAE7C;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;IAE7C,WAAW,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC;IAE7B;;;;;OAKG;IACH,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAExD,QAAQ,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,cAAc,CAAC,MAAM,IAAI,CACnC,EAAE,SAAS,eAAe,EAC1B,KAAK,EACL,OAAO,GAAG,MAAM,EAEhB,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAC/B,MAAM,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EACpC,cAAc,EAAE,cAAc,CAAC,MAAM,CAAC,KACnC,MAAM,CAAC"}
|
package/dist/app/index.d.ts
CHANGED
package/dist/app/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC"}
|
package/dist/app/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { SerializableKey } from 'dirvi-apis';
|
|
2
3
|
/**
|
|
3
4
|
* A serializable primitive suitable for use as a stable tree-node ID.
|
|
4
5
|
*
|
|
@@ -35,7 +36,7 @@ import { z } from 'zod';
|
|
|
35
36
|
* type MyTreeModel = TreeNodeModel<MyId, MyItem>;
|
|
36
37
|
* ```
|
|
37
38
|
*/
|
|
38
|
-
export type SerializableKey
|
|
39
|
+
export type { SerializableKey };
|
|
39
40
|
/**
|
|
40
41
|
* Validates a serializable primitive suitable for use as a tree-node ID.
|
|
41
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-node.model.d.ts","sourceRoot":"","sources":["../../../src/state-and-nav/tree/tree-node.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version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a,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC;CAC/C,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,SAAS,eAAe,EAAE,KAAK,EACzE,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EACvB,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAC5B,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CA+BrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dirvi-lib",
|
|
3
|
-
"version": "0.11.0-beta.
|
|
3
|
+
"version": "0.11.0-beta.9",
|
|
4
4
|
"description": "Dependency for dirvi.",
|
|
5
5
|
"license": "LGPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"zod": "^4.4.3"
|
|
13
|
+
"zod": "^4.4.3",
|
|
14
|
+
"dirvi-apis": "0.11.0-beta.9"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
17
|
"@types/node": "^22.0.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { SerializableKey } from '../state-and-nav/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* A semantic highlight name, not a concrete terminal color.
|
|
4
|
-
*
|
|
5
|
-
* Dot-separated names allow fallback to broader categories:
|
|
6
|
-
* "filesystem.directory" can fall back to "filesystem".
|
|
7
|
-
*/
|
|
8
|
-
export type HighlightToken = string;
|
|
9
|
-
export type PresentNode<Id extends SerializableKey> = (id: Id, isBranch: boolean) => Readonly<{
|
|
10
|
-
content: string;
|
|
11
|
-
highlight: HighlightToken;
|
|
12
|
-
}>;
|
|
13
|
-
//# sourceMappingURL=node-presentation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-presentation.d.ts","sourceRoot":"","sources":["../../src/app/node-presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,WAAW,CAAC,EAAE,SAAS,eAAe,IAAI,CACpD,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,OAAO,KACd,QAAQ,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,cAAc,CAAC;CAC3B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|