process-graph 1.1.1 → 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.
Files changed (50) hide show
  1. package/README.md +22 -19
  2. package/dist/bin.js +4 -3
  3. package/dist/cli.d.ts +100 -14
  4. package/dist/cli.js +3 -2
  5. package/dist/{control-aDk9560d.js → control-DiygoEhm.js} +163 -1
  6. package/dist/data-file-BVMxkTug.js +95 -0
  7. package/dist/dist-81kTKnMq.js +3 -0
  8. package/dist/{dist-HLlW8vgT.js → dist-BI01yxFA.js} +256 -103
  9. package/dist/{dist-BpCBmnMl.js → dist-arkejVz2.js} +2 -112
  10. package/dist/{graphql-C1j5wQFz.d.ts → graphql-BE7xm5dB.d.ts} +3 -2
  11. package/dist/{index-DricKcyl.d.ts → index-9Au8pAmP.d.ts} +4 -4
  12. package/dist/{index-CrM5qWUA.d.ts → index-BC4tmAuQ.d.ts} +2 -2
  13. package/dist/{index-DhbvDgK4.d.ts → index-CR8xUK3S.d.ts} +388 -580
  14. package/dist/{index-CoA6vXqe.d.ts → index-D06bcdfw.d.ts} +1 -1
  15. package/dist/{index-CCfe0csl.d.ts → index-D4CnOhNf.d.ts} +34 -3
  16. package/dist/{index-CmZOswkx.d.ts → index-Dvz_I_uQ.d.ts} +17 -8
  17. package/dist/{index-CptUHq6F.d.ts → index-hri2a13-.d.ts} +1 -1
  18. package/dist/index.d.ts +4 -4
  19. package/dist/index.js +5 -5
  20. package/dist/layout.d.ts +1 -1
  21. package/dist/{parse-CuipC_2K.js → parse-C1Q1zsGt.js} +1 -1
  22. package/dist/{queries-CCexJAE2.js → queries-C8kIDRiY.js} +2 -93
  23. package/dist/react-flow.d.ts +5 -5
  24. package/dist/react-flow.js +3 -3
  25. package/dist/react.d.ts +1 -1
  26. package/dist/react.js +2 -2
  27. package/dist/{router-D4gtTlXm.js → router-Dk91O_9p.js} +27 -2
  28. package/dist/{schema-CVnS6HiX.js → schema-BPT8fmfa.js} +2 -2
  29. package/dist/{selection-BW_xXWOy.js → selection-iet5RAlP.js} +1 -1
  30. package/dist/source/github/node.d.ts +1 -1
  31. package/dist/source/github.d.ts +2 -2
  32. package/dist/source/github.js +1 -1
  33. package/dist/{source-DRDpEA8Q.js → source-D51N7K3A.js} +23 -3
  34. package/dist/store/node.d.ts +27 -2
  35. package/dist/store/node.js +2 -2
  36. package/dist/store/wasm/worker.js +2 -2
  37. package/dist/store/wasm.d.ts +1 -1
  38. package/dist/{store-BcR70CaO.js → store-DKzvLGgl.js} +252 -37
  39. package/dist/store.d.ts +115 -3
  40. package/dist/store.js +43 -9
  41. package/dist/theme-values-BJJhAkUn-ORyRUrPf.js +114 -0
  42. package/dist/theme-values-BybZ-cle.d.ts +116 -0
  43. package/dist/ui/theme.d.ts +2 -0
  44. package/dist/ui/theme.js +2 -0
  45. package/dist/ui.d.ts +6 -120
  46. package/dist/ui.js +2 -1
  47. package/dist/version-Dagrkvwt.js +5 -0
  48. package/package.json +28 -23
  49. package/dist/dist-IjrgWhHQ.js +0 -3
  50. package/dist/open-CyRXJ4bt.js +0 -29
@@ -1,119 +1,9 @@
1
1
  import { a as TransitionItem$1, i as Lane$1, n as FilterPanel$1, o as ElementCard$1, r as Legend$1, s as StatusBadge$1, t as DetailPanel$1 } from "./detail-panel-B1ZmMuJT.js";
2
+ import { r as lightTheme, t as darkTheme } from "./theme-values-BJJhAkUn-ORyRUrPf.js";
2
3
  import { useId } from "react";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
5
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
5
6
  //#region ../../ui/graph/ui/dist/index.js
6
- var vars = {
7
- colour: {
8
- background: "var(--_1pqhw580)",
9
- surface: "var(--_1pqhw581)",
10
- text: "var(--_1pqhw582)",
11
- muted: "var(--_1pqhw583)",
12
- border: "var(--_1pqhw584)",
13
- accent: "var(--_1pqhw585)",
14
- focus: "var(--_1pqhw586)",
15
- critical: "var(--_1pqhw587)",
16
- handoff: "var(--_1pqhw588)",
17
- status: {
18
- done: "var(--_1pqhw589)",
19
- ready: "var(--_1pqhw58a)",
20
- blocked: "var(--_1pqhw58b)",
21
- skipped: "var(--_1pqhw58c)",
22
- unknown: "var(--_1pqhw58d)"
23
- }
24
- },
25
- space: {
26
- small: "var(--_1pqhw58e)",
27
- medium: "var(--_1pqhw58f)",
28
- large: "var(--_1pqhw58g)"
29
- },
30
- radius: {
31
- small: "var(--_1pqhw58h)",
32
- medium: "var(--_1pqhw58i)"
33
- },
34
- font: {
35
- body: "var(--_1pqhw58j)",
36
- mono: "var(--_1pqhw58k)",
37
- sizeSmall: "var(--_1pqhw58l)",
38
- sizeBody: "var(--_1pqhw58m)",
39
- sizeHeading: "var(--_1pqhw58n)",
40
- weightStrong: "var(--_1pqhw58o)"
41
- },
42
- stroke: {
43
- thin: "var(--_1pqhw58p)",
44
- thick: "var(--_1pqhw58q)"
45
- }
46
- };
47
- var lightTheme = "_1pqhw58r";
48
- var darkTheme = "_1pqhw58s";
49
- /** What both themes share: everything but colour. */
50
- var shared = {
51
- space: {
52
- small: "0.25rem",
53
- medium: "0.5rem",
54
- large: "1rem"
55
- },
56
- radius: {
57
- small: "0.25rem",
58
- medium: "0.5rem"
59
- },
60
- font: {
61
- body: "system-ui, -apple-system, \"Segoe UI\", sans-serif",
62
- mono: "ui-monospace, \"SFMono-Regular\", Menlo, monospace",
63
- sizeSmall: "0.75rem",
64
- sizeBody: "0.875rem",
65
- sizeHeading: "1rem",
66
- weightStrong: "600"
67
- },
68
- stroke: {
69
- thin: "1px",
70
- thick: "3px"
71
- }
72
- };
73
- /** The light theme's values. Each status colour reads as text on both `surface` and `background`. */
74
- var lightValues = {
75
- ...shared,
76
- colour: {
77
- background: "#ffffff",
78
- surface: "#f6f8fa",
79
- text: "#1f2328",
80
- muted: "#59636e",
81
- border: "#d1d9e0",
82
- accent: "#0969da",
83
- focus: "#0969da",
84
- critical: "#9a6700",
85
- handoff: "#6639ba",
86
- status: {
87
- done: "#1a7f37",
88
- ready: "#0550ae",
89
- blocked: "#cf222e",
90
- skipped: "#59636e",
91
- unknown: "#6639ba"
92
- }
93
- }
94
- };
95
- /** The dark theme's values. Each status colour reads as text on both `surface` and `background`. */
96
- var darkValues = {
97
- ...shared,
98
- colour: {
99
- background: "#0d1117",
100
- surface: "#161b22",
101
- text: "#e6edf3",
102
- muted: "#9198a1",
103
- border: "#3d444d",
104
- accent: "#4493f8",
105
- focus: "#4493f8",
106
- critical: "#d29922",
107
- handoff: "#ab7df8",
108
- status: {
109
- done: "#3fb950",
110
- ready: "#58a6ff",
111
- blocked: "#f85149",
112
- skipped: "#9198a1",
113
- unknown: "#ab7df8"
114
- }
115
- }
116
- };
117
7
  var surfaceRoot = "xk03iz0";
118
8
  var visuallyHidden = "xk03iz1";
119
9
  var focusRing = "xk03iz2";
@@ -579,4 +469,4 @@ var SequenceDiagram = (props) => {
579
469
  });
580
470
  };
581
471
  //#endregion
582
- export { surfaceRoot as _, Lane as a, visuallyHidden as b, StatusBadge as c, card as d, darkTheme as f, lightValues as g, lightTheme as h, GraphTheme as i, TransitionItem as l, focusRing as m, ElementCard as n, Legend as o, darkValues as p, FilterPanel as r, SequenceDiagram as s, DetailPanel as t, badge as u, themes as v, vars as y };
472
+ export { Lane as a, StatusBadge as c, card as d, focusRing as f, visuallyHidden as h, GraphTheme as i, TransitionItem as l, themes as m, ElementCard as n, Legend as o, surfaceRoot as p, FilterPanel as r, SequenceDiagram as s, DetailPanel as t, badge as u };
@@ -1,4 +1,4 @@
1
- import { K as OpenIds, a as Overlay, g as Model } from "./index-CmZOswkx.js";
1
+ import { _ as Model, o as Overlay, q as OpenIds } from "./index-Dvz_I_uQ.js";
2
2
  import { z } from "zod";
3
3
  import { ContractRouterClient, InitialInputSchema, ProcedureContract, RouterContract, eventIterator } from "@orpc/contract";
4
4
  import { ContractedRouter, DefaultInitialContext } from "@orpc/server";
@@ -471,7 +471,7 @@ type GraphSourceClient = ContractRouterClient<typeof graphSourceContract>;
471
471
  /**
472
472
  * The failures that end a sync call, as a closed union a caller can switch on exhaustively. What a source can still partly read is not a failure: it arrives as a `Gap` in the page.
473
473
  *
474
- * - `unauthorised`: the source rejected the credentials outright.
474
+ * - `unauthorised`: the source rejected the credentials outright, or none could be had for it.
475
475
  * - `rate-limited`: the source refused the request until `resetAt` (an ISO 8601 instant) when it said so. Resume from the last page's `next` after that.
476
476
  * - `bad-request`: the cursor or a scope identifier is not one this source issued or understands.
477
477
  */
@@ -623,6 +623,7 @@ declare const githubGraphqlEndpoint = "https://api.github.com/graphql";
623
623
  * @param owner - The login of the account whose repositories or board the request reads, or `undefined` for a request about the token's own holder (the viewer and the organisations it belongs to), which no owner names.
624
624
  * @param signal - The caller's abort signal.
625
625
  * @returns The token.
626
+ * @throws GraphSourceError with `unauthorised` when no token can be had, with a message saying how to get one; any other error is reported by the adapter as `unauthorised` too, naming the token port and the owner, with that error as the cause.
626
627
  */
627
628
  type GitHubTokenPort = (owner: string | undefined, signal: AbortSignal | undefined) => Promise<string>;
628
629
  /** The part of `fetch` this adapter uses: one POST to the GraphQL endpoint. The global `fetch` satisfies it. */
@@ -1,7 +1,7 @@
1
- import { C as CriticalPath, F as Status, _ as StatusRule, d as StatusExplanation, k as Facts, u as ChainLink } from "./index-CCfe0csl.js";
2
- import { G as IdSpace, O as Projection, a as Overlay, g as Model, x as Element } from "./index-CmZOswkx.js";
3
- import { Q as GraphStoreClient, z as StoredModel } from "./index-DhbvDgK4.js";
4
- import { A as Flowchart, E as Swimlane, g as SequenceDiagram, x as StateMachine } from "./index-CoA6vXqe.js";
1
+ import { A as Facts, B as Status, C as CriticalPath, _ as StatusRule, d as StatusExplanation, u as ChainLink } from "./index-D4CnOhNf.js";
2
+ import { K as IdSpace, S as Element, _ as Model, k as Projection, o as Overlay } from "./index-Dvz_I_uQ.js";
3
+ import { K as StoredModel, ut as GraphStoreClient } from "./index-CR8xUK3S.js";
4
+ import { A as Flowchart, E as Swimlane, g as SequenceDiagram, x as StateMachine } from "./index-D06bcdfw.js";
5
5
  import { KeyboardEvent, ReactElement, ReactNode, RefCallback } from "react";
6
6
  //#region ../../ui/graph/react/dist/run.d.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { A as Views, G as IdSpace } from "./index-CmZOswkx.js";
2
- import { A as Flowchart, E as Swimlane, x as StateMachine } from "./index-CoA6vXqe.js";
1
+ import { K as IdSpace, j as Views } from "./index-Dvz_I_uQ.js";
2
+ import { A as Flowchart, E as Swimlane, x as StateMachine } from "./index-D06bcdfw.js";
3
3
  //#region ../../core/graph/layout/dist/engine.d.ts
4
4
  /** A box with a fixed size, which the engine places. */
5
5
  interface EngineLeaf {