process-graph 1.1.1 → 1.2.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/bin.js +1 -1
- package/dist/cli.d.ts +61 -7
- package/dist/cli.js +2 -2
- package/dist/{control-aDk9560d.js → control-DiygoEhm.js} +163 -1
- package/dist/{dist-HLlW8vgT.js → dist-BxHnxpcT.js} +178 -23
- package/dist/dist-Cw63tKU9.js +3 -0
- package/dist/{index-CCfe0csl.d.ts → index-BH1aFqkJ.d.ts} +33 -2
- package/dist/{index-DricKcyl.d.ts → index-BUheRLdG.d.ts} +2 -2
- package/dist/{index-DhbvDgK4.d.ts → index-DxWOY8f9.d.ts} +384 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{open-CyRXJ4bt.js → open-BF-UHqeW.js} +1 -1
- package/dist/{queries-CCexJAE2.js → queries-C8kIDRiY.js} +2 -93
- package/dist/react-flow.d.ts +2 -2
- package/dist/react-flow.js +2 -2
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -2
- package/dist/{router-D4gtTlXm.js → router-DvGGLnNt.js} +26 -1
- package/dist/{selection-BW_xXWOy.js → selection-iet5RAlP.js} +1 -1
- package/dist/store/node.d.ts +1 -1
- package/dist/store/node.js +1 -1
- package/dist/store/wasm/worker.js +2 -2
- package/dist/store/wasm.d.ts +1 -1
- package/dist/{store-BcR70CaO.js → store-BJILV4JS.js} +251 -36
- package/dist/store.d.ts +115 -3
- package/dist/store.js +43 -9
- package/dist/ui.d.ts +2 -2
- package/package.json +10 -10
- package/dist/dist-IjrgWhHQ.js +0 -3
package/dist/store.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as loopTransitions } from "./control-
|
|
2
|
-
import { C as
|
|
3
|
-
import { n as graphStoreContract, t as createGraphStoreRouter } from "./router-
|
|
1
|
+
import { r as loopTransitions, s as emptyFactRecord } from "./control-DiygoEhm.js";
|
|
2
|
+
import { A as modelIdSchema, C as boundItemsSchema, D as factNameSchema, E as factClearingSchema, F as revisionSchema, I as storeChangeSchema, L as storedFactsSchema, M as reachSchema, N as relationKinds, O as factRecordSchema, P as relationSchema, R as storedModelSchema, S as boundActivitySchema, T as factChangeSchema, _ as mergeBoundItems, a as ancestorsOf, b as defaultSubscriptionCapacity, c as mergeRelations, d as factIssues, f as factsWithin, g as emptyModel, h as checkStored, i as serialised, j as modelSummarySchema, k as issueSchema, l as relationIssues, m as withoutFacts, n as tables_exports, o as childrenOf, p as mergeFacts, r as migrate, s as descendantsOf, t as createSqliteGraphStore, u as relationsWithin, v as overlayWithin, w as changeKinds, x as GraphStoreError, y as ChangeFeed } from "./store-BJILV4JS.js";
|
|
3
|
+
import { n as graphStoreContract, t as createGraphStoreRouter } from "./router-DvGGLnNt.js";
|
|
4
4
|
//#region ../../core/graph/store-contract/dist/structure.js
|
|
5
5
|
/**
|
|
6
6
|
* Whether an element is a pure control element: a `decision` or a pseudo-state. Control elements have no work of their own, so the structural queries pass through them and never report them.
|
|
@@ -118,9 +118,9 @@ const createFakeGraphStore = () => {
|
|
|
118
118
|
});
|
|
119
119
|
return entry;
|
|
120
120
|
};
|
|
121
|
-
const write = ({ modelId, kind, model, overlay, relations, signal }) => {
|
|
121
|
+
const write = ({ modelId, kind, model, overlay, relations, facts, signal }) => {
|
|
122
122
|
checkStored(model, overlay);
|
|
123
|
-
const issues = relationIssues(model, relations);
|
|
123
|
+
const issues = [...relationIssues(model, relations), ...factIssues(model, facts)];
|
|
124
124
|
if (issues.length > 0) throw new GraphStoreError({
|
|
125
125
|
kind: "invalid",
|
|
126
126
|
issues
|
|
@@ -131,6 +131,7 @@ const createFakeGraphStore = () => {
|
|
|
131
131
|
model,
|
|
132
132
|
overlay,
|
|
133
133
|
relations,
|
|
134
|
+
facts,
|
|
134
135
|
revision: sequence
|
|
135
136
|
});
|
|
136
137
|
feed.publish({
|
|
@@ -154,16 +155,18 @@ const createFakeGraphStore = () => {
|
|
|
154
155
|
model,
|
|
155
156
|
overlay: overlayWithin(model, existing?.overlay ?? {}),
|
|
156
157
|
relations: relationsWithin(model, existing?.relations ?? []),
|
|
158
|
+
facts: factsWithin(model, existing?.facts ?? emptyFactRecord),
|
|
157
159
|
signal
|
|
158
160
|
});
|
|
159
161
|
}),
|
|
160
162
|
loadModel: later(({ modelId }) => {
|
|
161
|
-
const { model, overlay, revision } = entryOf(modelId);
|
|
163
|
+
const { model, overlay, facts, revision } = entryOf(modelId);
|
|
162
164
|
return {
|
|
163
165
|
modelId,
|
|
164
166
|
revision,
|
|
165
167
|
model,
|
|
166
|
-
overlay
|
|
168
|
+
overlay,
|
|
169
|
+
facts
|
|
167
170
|
};
|
|
168
171
|
}),
|
|
169
172
|
deleteModel: later(({ modelId, signal }) => {
|
|
@@ -189,6 +192,35 @@ const createFakeGraphStore = () => {
|
|
|
189
192
|
...overlay
|
|
190
193
|
},
|
|
191
194
|
relations: entry.relations,
|
|
195
|
+
facts: entry.facts,
|
|
196
|
+
signal
|
|
197
|
+
});
|
|
198
|
+
}),
|
|
199
|
+
readFacts: later(({ modelId }) => {
|
|
200
|
+
const { facts, revision } = entryOf(modelId);
|
|
201
|
+
return {
|
|
202
|
+
modelId,
|
|
203
|
+
revision,
|
|
204
|
+
facts
|
|
205
|
+
};
|
|
206
|
+
}),
|
|
207
|
+
setFacts: later(({ modelId, facts, signal }) => {
|
|
208
|
+
const entry = entryOf(modelId);
|
|
209
|
+
return write({
|
|
210
|
+
...entry,
|
|
211
|
+
modelId,
|
|
212
|
+
kind: "facts",
|
|
213
|
+
facts: mergeFacts(entry.facts, facts),
|
|
214
|
+
signal
|
|
215
|
+
});
|
|
216
|
+
}),
|
|
217
|
+
clearFacts: later(({ modelId, facts, signal }) => {
|
|
218
|
+
const entry = entryOf(modelId);
|
|
219
|
+
return write({
|
|
220
|
+
...entry,
|
|
221
|
+
modelId,
|
|
222
|
+
kind: "facts",
|
|
223
|
+
facts: withoutFacts(entry.facts, facts),
|
|
192
224
|
signal
|
|
193
225
|
});
|
|
194
226
|
}),
|
|
@@ -196,13 +228,15 @@ const createFakeGraphStore = () => {
|
|
|
196
228
|
const entry = entries.get(modelId) ?? {
|
|
197
229
|
model: emptyModel,
|
|
198
230
|
overlay: {},
|
|
199
|
-
relations: []
|
|
231
|
+
relations: [],
|
|
232
|
+
facts: emptyFactRecord
|
|
200
233
|
};
|
|
201
234
|
return write({
|
|
202
235
|
modelId,
|
|
203
236
|
kind: "items",
|
|
204
237
|
...mergeBoundItems(entry.model, entry.overlay, items),
|
|
205
238
|
relations: mergeRelations(entry.relations, items.relations ?? []),
|
|
239
|
+
facts: entry.facts,
|
|
206
240
|
signal
|
|
207
241
|
});
|
|
208
242
|
}),
|
|
@@ -235,4 +269,4 @@ const createFakeGraphStore = () => {
|
|
|
235
269
|
};
|
|
236
270
|
};
|
|
237
271
|
//#endregion
|
|
238
|
-
export { ChangeFeed, GraphStoreError, ancestorsOf, blockedChainOf, boundActivitySchema, boundItemsSchema, changeKinds, checkStored, childrenOf, createFakeGraphStore, createGraphStoreRouter, createSqliteGraphStore, defaultSubscriptionCapacity, descendantsOf, emptyModel, graphStoreContract, impactOf, issueSchema, mergeBoundItems, mergeRelations, migrate, modelIdSchema, modelSummarySchema, overlayWithin, reachSchema, readyOf, relationIssues, relationKinds, relationSchema, relationsWithin, revisionSchema, serialised, storeChangeSchema, storedModelSchema, structureOf, tables_exports as tables };
|
|
272
|
+
export { ChangeFeed, GraphStoreError, ancestorsOf, blockedChainOf, boundActivitySchema, boundItemsSchema, changeKinds, checkStored, childrenOf, createFakeGraphStore, createGraphStoreRouter, createSqliteGraphStore, defaultSubscriptionCapacity, descendantsOf, emptyModel, factChangeSchema, factClearingSchema, factIssues, factNameSchema, factRecordSchema, factsWithin, graphStoreContract, impactOf, issueSchema, mergeBoundItems, mergeFacts, mergeRelations, migrate, modelIdSchema, modelSummarySchema, overlayWithin, reachSchema, readyOf, relationIssues, relationKinds, relationSchema, relationsWithin, revisionSchema, serialised, storeChangeSchema, storedFactsSchema, storedModelSchema, structureOf, tables_exports as tables, withoutFacts };
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as Status } from "./index-BH1aFqkJ.js";
|
|
2
2
|
import { G as IdSpace } from "./index-CmZOswkx.js";
|
|
3
3
|
import { g as SequenceDiagram$1 } from "./index-CoA6vXqe.js";
|
|
4
|
-
import { f as LaneProps, h as TransitionItemProps, l as LegendProps, o as FilterPanelProps, r as DetailPanelProps, v as ElementCardProps } from "./index-
|
|
4
|
+
import { f as LaneProps, h as TransitionItemProps, l as LegendProps, o as FilterPanelProps, r as DetailPanelProps, v as ElementCardProps } from "./index-BUheRLdG.js";
|
|
5
5
|
import { ReactElement, ReactNode } from "react";
|
|
6
6
|
//#region ../../ui/graph/ui/dist/theme.css.d.ts
|
|
7
7
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "process-graph",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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": {
|
|
@@ -112,21 +112,21 @@
|
|
|
112
112
|
],
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@arethetypeswrong/cli": "0.18.5",
|
|
115
|
-
"@exadev/process-graph-cli": "1.
|
|
115
|
+
"@exadev/process-graph-cli": "1.1.0",
|
|
116
116
|
"@exadev/process-graph-dag": "1.1.1",
|
|
117
|
-
"@exadev/process-graph-domain": "1.
|
|
117
|
+
"@exadev/process-graph-domain": "1.2.0",
|
|
118
118
|
"@exadev/process-graph-layout": "1.0.4",
|
|
119
119
|
"@exadev/process-graph-projection": "1.1.1",
|
|
120
|
-
"@exadev/process-graph-react": "1.1.
|
|
121
|
-
"@exadev/process-graph-react-flow": "1.1.
|
|
120
|
+
"@exadev/process-graph-react": "1.1.1",
|
|
121
|
+
"@exadev/process-graph-react-flow": "1.1.1",
|
|
122
122
|
"@exadev/process-graph-schema": "1.1.1",
|
|
123
123
|
"@exadev/process-graph-source-contract": "1.1.1",
|
|
124
124
|
"@exadev/process-graph-source-github-issues": "1.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.
|
|
128
|
-
"@exadev/process-graph-store-sqlite": "1.
|
|
129
|
-
"@exadev/process-graph-ui": "1.0.
|
|
125
|
+
"@exadev/process-graph-sqlite-node": "1.0.6",
|
|
126
|
+
"@exadev/process-graph-sqlite-wasm": "1.0.5",
|
|
127
|
+
"@exadev/process-graph-store-contract": "1.2.0",
|
|
128
|
+
"@exadev/process-graph-store-sqlite": "1.2.0",
|
|
129
|
+
"@exadev/process-graph-ui": "1.0.3",
|
|
130
130
|
"@orpc/client": "2.0.0-beta.41",
|
|
131
131
|
"@orpc/contract": "2.0.0-beta.41",
|
|
132
132
|
"@orpc/server": "2.0.0-beta.41",
|
package/dist/dist-IjrgWhHQ.js
DELETED