process-graph 1.2.0 → 1.3.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/README.md +22 -19
- package/dist/bin.js +4 -3
- package/dist/cli.d.ts +42 -10
- package/dist/cli.js +3 -2
- package/dist/data-file-BVMxkTug.js +95 -0
- package/dist/dist-81kTKnMq.js +3 -0
- package/dist/{dist-BxHnxpcT.js → dist-BI01yxFA.js} +82 -84
- package/dist/{dist-BpCBmnMl.js → dist-arkejVz2.js} +2 -112
- package/dist/{graphql-C1j5wQFz.d.ts → graphql-BE7xm5dB.d.ts} +3 -2
- package/dist/{index-BUheRLdG.d.ts → index-9Au8pAmP.d.ts} +4 -4
- package/dist/{index-CrM5qWUA.d.ts → index-BC4tmAuQ.d.ts} +2 -2
- package/dist/{index-DxWOY8f9.d.ts → index-CR8xUK3S.d.ts} +5 -572
- package/dist/{index-CoA6vXqe.d.ts → index-D06bcdfw.d.ts} +1 -1
- package/dist/{index-BH1aFqkJ.d.ts → index-D4CnOhNf.d.ts} +1 -1
- package/dist/{index-CmZOswkx.d.ts → index-Dvz_I_uQ.d.ts} +17 -8
- package/dist/{index-CptUHq6F.d.ts → index-hri2a13-.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/layout.d.ts +1 -1
- package/dist/{parse-CuipC_2K.js → parse-C1Q1zsGt.js} +1 -1
- package/dist/react-flow.d.ts +5 -5
- package/dist/react-flow.js +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/{router-DvGGLnNt.js → router-Dk91O_9p.js} +2 -2
- package/dist/{schema-CVnS6HiX.js → schema-BPT8fmfa.js} +2 -2
- package/dist/source/github/node.d.ts +1 -1
- package/dist/source/github.d.ts +2 -2
- package/dist/source/github.js +1 -1
- package/dist/{source-DRDpEA8Q.js → source-D51N7K3A.js} +23 -3
- package/dist/store/node.d.ts +27 -2
- package/dist/store/node.js +2 -2
- package/dist/store/wasm/worker.js +2 -2
- package/dist/store/wasm.d.ts +1 -1
- package/dist/{store-BJILV4JS.js → store-DKzvLGgl.js} +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +2 -2
- package/dist/theme-values-BJJhAkUn-ORyRUrPf.js +114 -0
- package/dist/theme-values-BybZ-cle.d.ts +116 -0
- package/dist/ui/theme.d.ts +2 -0
- package/dist/ui/theme.js +2 -0
- package/dist/ui.d.ts +6 -120
- package/dist/ui.js +2 -1
- package/dist/version-Dagrkvwt.js +5 -0
- package/package.json +28 -23
- package/dist/dist-Cw63tKU9.js +0 -3
- package/dist/open-BF-UHqeW.js +0 -29
package/dist/ui.d.ts
CHANGED
|
@@ -1,123 +1,9 @@
|
|
|
1
|
-
import { B as Status } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { g as SequenceDiagram$1 } from "./index-
|
|
4
|
-
import { f as LaneProps, h as TransitionItemProps, l as LegendProps, o as FilterPanelProps, r as DetailPanelProps, v as ElementCardProps } from "./index-
|
|
1
|
+
import { B as Status } from "./index-D4CnOhNf.js";
|
|
2
|
+
import { K as IdSpace } from "./index-Dvz_I_uQ.js";
|
|
3
|
+
import { g as SequenceDiagram$1 } from "./index-D06bcdfw.js";
|
|
4
|
+
import { f as LaneProps, h as TransitionItemProps, l as LegendProps, o as FilterPanelProps, r as DetailPanelProps, v as ElementCardProps } from "./index-9Au8pAmP.js";
|
|
5
|
+
import { a as lightTheme, i as darkTheme, n as darkValues, o as vars, r as lightValues, t as ThemeValues } from "./theme-values-BybZ-cle.js";
|
|
5
6
|
import { ReactElement, ReactNode } from "react";
|
|
6
|
-
//#region ../../ui/graph/ui/dist/theme.css.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* The theme contract: one CSS custom property per value of `ThemeValues`, read by every style in this package. A consumer restyles the components by assigning these properties, with its own `createTheme(vars, values)` class or `assignVars`, without forking them.
|
|
9
|
-
*/
|
|
10
|
-
export declare const vars: {
|
|
11
|
-
colour: {
|
|
12
|
-
background: `var(--${string})`;
|
|
13
|
-
surface: `var(--${string})`;
|
|
14
|
-
text: `var(--${string})`;
|
|
15
|
-
muted: `var(--${string})`;
|
|
16
|
-
border: `var(--${string})`;
|
|
17
|
-
accent: `var(--${string})`;
|
|
18
|
-
focus: `var(--${string})`;
|
|
19
|
-
critical: `var(--${string})`;
|
|
20
|
-
handoff: `var(--${string})`;
|
|
21
|
-
status: {
|
|
22
|
-
done: `var(--${string})`;
|
|
23
|
-
ready: `var(--${string})`;
|
|
24
|
-
blocked: `var(--${string})`;
|
|
25
|
-
skipped: `var(--${string})`;
|
|
26
|
-
unknown: `var(--${string})`;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
space: {
|
|
30
|
-
small: `var(--${string})`;
|
|
31
|
-
medium: `var(--${string})`;
|
|
32
|
-
large: `var(--${string})`;
|
|
33
|
-
};
|
|
34
|
-
radius: {
|
|
35
|
-
small: `var(--${string})`;
|
|
36
|
-
medium: `var(--${string})`;
|
|
37
|
-
};
|
|
38
|
-
font: {
|
|
39
|
-
body: `var(--${string})`;
|
|
40
|
-
mono: `var(--${string})`;
|
|
41
|
-
sizeSmall: `var(--${string})`;
|
|
42
|
-
sizeBody: `var(--${string})`;
|
|
43
|
-
sizeHeading: `var(--${string})`;
|
|
44
|
-
weightStrong: `var(--${string})`;
|
|
45
|
-
};
|
|
46
|
-
stroke: {
|
|
47
|
-
thin: `var(--${string})`;
|
|
48
|
-
thick: `var(--${string})`;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
/** The class that assigns the light theme's values. */
|
|
52
|
-
export declare const lightTheme: string;
|
|
53
|
-
/** The class that assigns the dark theme's values. */
|
|
54
|
-
export declare const darkTheme: string;
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region ../../ui/graph/ui/dist/theme-values.d.ts
|
|
57
|
-
/**
|
|
58
|
-
* The shape of every theme: each leaf is a value a theme assigns. The theme contract is created from it, and `ThemeValues` derived from it, so the contract and the themes cannot disagree.
|
|
59
|
-
*/
|
|
60
|
-
declare const themeShape: {
|
|
61
|
-
colour: {
|
|
62
|
-
/** Behind everything. */
|
|
63
|
-
background: null;
|
|
64
|
-
/** Behind a card, a lane or a panel. */
|
|
65
|
-
surface: null;
|
|
66
|
-
text: null;
|
|
67
|
-
/** Secondary text: lane headings, edge labels. */
|
|
68
|
-
muted: null;
|
|
69
|
-
border: null;
|
|
70
|
-
/** Selection and links. */
|
|
71
|
-
accent: null;
|
|
72
|
-
/** The focus ring. */
|
|
73
|
-
focus: null;
|
|
74
|
-
/** The critical path. */
|
|
75
|
-
critical: null;
|
|
76
|
-
/** A transition that passes work between actors. */
|
|
77
|
-
handoff: null;
|
|
78
|
-
/** Each status, used as text and as a mark on `surface` and `background`. */
|
|
79
|
-
status: {
|
|
80
|
-
done: null;
|
|
81
|
-
ready: null;
|
|
82
|
-
blocked: null;
|
|
83
|
-
skipped: null;
|
|
84
|
-
unknown: null;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
space: {
|
|
88
|
-
small: null;
|
|
89
|
-
medium: null;
|
|
90
|
-
large: null;
|
|
91
|
-
};
|
|
92
|
-
radius: {
|
|
93
|
-
small: null;
|
|
94
|
-
medium: null;
|
|
95
|
-
};
|
|
96
|
-
font: {
|
|
97
|
-
body: null;
|
|
98
|
-
mono: null;
|
|
99
|
-
sizeSmall: null;
|
|
100
|
-
sizeBody: null;
|
|
101
|
-
sizeHeading: null;
|
|
102
|
-
/** The weight of labels and headings that stand out from body text. */
|
|
103
|
-
weightStrong: null;
|
|
104
|
-
};
|
|
105
|
-
stroke: {
|
|
106
|
-
/** Borders and ordinary edges. */
|
|
107
|
-
thin: null;
|
|
108
|
-
/** The critical path and the selection. */
|
|
109
|
-
thick: null;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
/** A tree of the shape's keys with a CSS value at every leaf. */
|
|
113
|
-
type Assigned<Shape> = { readonly [Key in keyof Shape]: Shape[Key] extends null ? string : Assigned<Shape[Key]>; };
|
|
114
|
-
/** Every value a theme assigns, as CSS values: one per leaf of `themeShape`, so a theme that leaves one out does not compile. */
|
|
115
|
-
type ThemeValues = Assigned<typeof themeShape>;
|
|
116
|
-
/** The light theme's values. Each status colour reads as text on both `surface` and `background`. */
|
|
117
|
-
export declare const lightValues: ThemeValues;
|
|
118
|
-
/** The dark theme's values. Each status colour reads as text on both `surface` and `background`. */
|
|
119
|
-
export declare const darkValues: ThemeValues;
|
|
120
|
-
//#endregion
|
|
121
7
|
//#region ../../ui/graph/ui/dist/base.css.d.ts
|
|
122
8
|
/** The element a theme class goes on: the page colours and type every component inherits. */
|
|
123
9
|
export declare const surfaceRoot: string;
|
|
@@ -232,4 +118,4 @@ interface SequenceDiagramProps<I extends IdSpace> {
|
|
|
232
118
|
*/
|
|
233
119
|
export declare const SequenceDiagram: <I extends IdSpace>(props: SequenceDiagramProps<I>) => ReactElement;
|
|
234
120
|
//#endregion
|
|
235
|
-
export type
|
|
121
|
+
export { type GraphThemeProps, type SequenceDiagramProps, type StatusBadgeProps, type ThemeName, type ThemeValues, darkTheme, darkValues, lightTheme, lightValues, vars };
|
package/dist/ui.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as vars, i as lightValues, n as darkValues, r as lightTheme, t as darkTheme } from "./theme-values-BJJhAkUn-ORyRUrPf.js";
|
|
2
|
+
import { a as Lane, c as StatusBadge, d as card, f as focusRing, h as visuallyHidden, i as GraphTheme, l as TransitionItem, m as themes, n as ElementCard, o as Legend, p as surfaceRoot, r as FilterPanel, s as SequenceDiagram, t as DetailPanel, u as badge } from "./dist-arkejVz2.js";
|
|
2
3
|
export { DetailPanel, ElementCard, FilterPanel, GraphTheme, Lane, Legend, SequenceDiagram, StatusBadge, TransitionItem, badge, card, darkTheme, darkValues, focusRing, lightTheme, lightValues, surfaceRoot, themes, vars, visuallyHidden };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "process-graph",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "A process and dependency graph model with projections into flowcharts, swimlanes, state machines and sequence diagrams, reasoning over a run, layout, the GitHub issues source, the SQLite store for Node and the browser, and the process-graph command line, each behind its own subpath.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
"types": "./dist/ui.d.ts",
|
|
57
57
|
"import": "./dist/ui.js"
|
|
58
58
|
},
|
|
59
|
+
"./ui/theme": {
|
|
60
|
+
"types": "./dist/ui/theme.d.ts",
|
|
61
|
+
"import": "./dist/ui/theme.js"
|
|
62
|
+
},
|
|
59
63
|
"./react-flow": {
|
|
60
64
|
"types": "./dist/react-flow.d.ts",
|
|
61
65
|
"import": "./dist/react-flow.js"
|
|
@@ -65,7 +69,8 @@
|
|
|
65
69
|
"./cli": {
|
|
66
70
|
"types": "./dist/cli.d.ts",
|
|
67
71
|
"import": "./dist/cli.js"
|
|
68
|
-
}
|
|
72
|
+
},
|
|
73
|
+
"./package.json": "./package.json"
|
|
69
74
|
},
|
|
70
75
|
"types": "./dist/index.d.ts",
|
|
71
76
|
"files": [
|
|
@@ -112,21 +117,21 @@
|
|
|
112
117
|
],
|
|
113
118
|
"devDependencies": {
|
|
114
119
|
"@arethetypeswrong/cli": "0.18.5",
|
|
115
|
-
"@exadev/process-graph-cli": "1.
|
|
120
|
+
"@exadev/process-graph-cli": "1.2.0",
|
|
116
121
|
"@exadev/process-graph-dag": "1.1.1",
|
|
117
|
-
"@exadev/process-graph-domain": "1.2.
|
|
118
|
-
"@exadev/process-graph-layout": "1.0.
|
|
119
|
-
"@exadev/process-graph-projection": "1.1.
|
|
120
|
-
"@exadev/process-graph-react": "1.1.
|
|
121
|
-
"@exadev/process-graph-react-flow": "1.1.
|
|
122
|
-
"@exadev/process-graph-schema": "1.1.
|
|
123
|
-
"@exadev/process-graph-source-contract": "1.1.
|
|
124
|
-
"@exadev/process-graph-source-github-issues": "1.1.
|
|
125
|
-
"@exadev/process-graph-sqlite-node": "1.0
|
|
126
|
-
"@exadev/process-graph-sqlite-wasm": "1.0.
|
|
127
|
-
"@exadev/process-graph-store-contract": "1.2.
|
|
128
|
-
"@exadev/process-graph-store-sqlite": "1.2.
|
|
129
|
-
"@exadev/process-graph-ui": "1.0
|
|
122
|
+
"@exadev/process-graph-domain": "1.2.1",
|
|
123
|
+
"@exadev/process-graph-layout": "1.0.5",
|
|
124
|
+
"@exadev/process-graph-projection": "1.1.2",
|
|
125
|
+
"@exadev/process-graph-react": "1.1.2",
|
|
126
|
+
"@exadev/process-graph-react-flow": "1.1.2",
|
|
127
|
+
"@exadev/process-graph-schema": "1.1.2",
|
|
128
|
+
"@exadev/process-graph-source-contract": "1.1.2",
|
|
129
|
+
"@exadev/process-graph-source-github-issues": "1.1.2",
|
|
130
|
+
"@exadev/process-graph-sqlite-node": "1.1.0",
|
|
131
|
+
"@exadev/process-graph-sqlite-wasm": "1.0.6",
|
|
132
|
+
"@exadev/process-graph-store-contract": "1.2.1",
|
|
133
|
+
"@exadev/process-graph-store-sqlite": "1.2.1",
|
|
134
|
+
"@exadev/process-graph-ui": "1.1.0",
|
|
130
135
|
"@orpc/client": "2.0.0-beta.41",
|
|
131
136
|
"@orpc/contract": "2.0.0-beta.41",
|
|
132
137
|
"@orpc/server": "2.0.0-beta.41",
|
|
@@ -162,14 +167,14 @@
|
|
|
162
167
|
"@orpc/contract": "2.0.0-beta.41",
|
|
163
168
|
"@orpc/server": "2.0.0-beta.41",
|
|
164
169
|
"@sqlite.org/sqlite-wasm": "3.53.4-build2",
|
|
165
|
-
"@vanilla-extract/css": "1.21.2",
|
|
166
|
-
"@vanilla-extract/recipes": "0.5.7",
|
|
167
|
-
"@xyflow/react": "12.12.0",
|
|
168
|
-
"commander": "15.0.0",
|
|
170
|
+
"@vanilla-extract/css": "^1.21.2",
|
|
171
|
+
"@vanilla-extract/recipes": "^0.5.7",
|
|
172
|
+
"@xyflow/react": "^12.12.0",
|
|
173
|
+
"commander": "^15.0.0",
|
|
169
174
|
"drizzle-orm": "1.0.0-rc.4",
|
|
170
|
-
"elkjs": "0.12.0",
|
|
171
|
-
"react": "19.3.0",
|
|
172
|
-
"react-dom": "19.3.0"
|
|
175
|
+
"elkjs": "^0.12.0",
|
|
176
|
+
"react": "^19.3.0",
|
|
177
|
+
"react-dom": "^19.3.0"
|
|
173
178
|
},
|
|
174
179
|
"peerDependenciesMeta": {
|
|
175
180
|
"@orpc/client": {
|
package/dist/dist-Cw63tKU9.js
DELETED
package/dist/open-BF-UHqeW.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { t as createSqliteGraphStore } from "./store-BJILV4JS.js";
|
|
2
|
-
import { sql } from "drizzle-orm";
|
|
3
|
-
import { DatabaseSync } from "node:sqlite";
|
|
4
|
-
import { drizzle } from "drizzle-orm/node-sqlite";
|
|
5
|
-
//#region ../../adapters/graph/sqlite-node/dist/open.js
|
|
6
|
-
/** The path `node:sqlite` reads as a private database in memory rather than a file. */
|
|
7
|
-
const inMemory = ":memory:";
|
|
8
|
-
/**
|
|
9
|
-
* Opens a graph store on a SQLite database file, creating the file when it does not exist. The schema is migrated on the store's first operation.
|
|
10
|
-
*
|
|
11
|
-
* A file database is switched to write-ahead logging, so readers in other processes (a command line beside a server) are not blocked by a writer. Each process's change feed sees only its own writes.
|
|
12
|
-
* @param path - The database file, or `":memory:"` for a private database that lives as long as the store.
|
|
13
|
-
* @param options - `node:sqlite` options passed through unchanged, such as `timeout` for how long a write waits for another process's lock.
|
|
14
|
-
* @returns The store, its database and a way to close it.
|
|
15
|
-
*/
|
|
16
|
-
const openNodeGraphStore = (path, options = {}) => {
|
|
17
|
-
const client = new DatabaseSync(path, options);
|
|
18
|
-
const db = drizzle({ client });
|
|
19
|
-
if (path !== inMemory) db.run(sql`PRAGMA journal_mode = WAL`);
|
|
20
|
-
return {
|
|
21
|
-
store: createSqliteGraphStore({ db }),
|
|
22
|
-
db,
|
|
23
|
-
close: () => {
|
|
24
|
-
client.close();
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { openNodeGraphStore as t };
|