@sanity/workflow-diagram 0.0.0 → 0.1.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 (2) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/package.json +4 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,57 @@
1
+ # @sanity/workflow-diagram
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bae7eb8: An opt-in `explain` prop phrases the workflow in human language: transition tooltips gain the filter's requirements under a "Transitions when:" lead-in (the title line above already names the transition), and stage tooltips list the stage-altitude gates (activity visibility/requirements/auto-completion, stage- and activity-scope field editability — never per-action button filters, and grouped glance edges keep listing titles only). Derived from the definition alone (no instance required) via the engine's describe surface, loaded on demand so non-explain consumers don't bundle the GROQ evaluator; no verdict marks in this static tier — a checklist with no instance has nothing to judge.
8
+
9
+ A live tier on top: pass the engine's `evaluation` alongside `explain` and the current stage's tooltips upgrade to real ✓/✗/? verdicts phrased from the evaluation's insight — synchronously, since the insight is pre-computed. Everywhere the evaluation doesn't speak (every other stage) falls back to the static tier's neutral bullets.
10
+
11
+ - 409f551: New package: renders a workflow definition as a stage diagram. ELK layered layout with `@xyflow/react` rendering; the primary rail follows the workflow's spine (longest simple path — authored transition order encodes engine precedence, not prominence); current-stage and visited-path highlighting from instance history; gated transitions carry a lock marker; tooltips open on hover anywhere along a line (title, description, and dev-mode machinery). Ships a local neighborhood view (`next` / `previous` / `both`), a grouped glance mode (`[N stages] → current → [M stages]` with click-to-expand), a static frozen mode, and a content-hugging canvas that centers itself when the graph is smaller than its box.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [4ca17bb]
16
+ - Updated dependencies [5143707]
17
+ - Updated dependencies [0709ab1]
18
+ - Updated dependencies [6bbf3ca]
19
+ - Updated dependencies [9f5a40f]
20
+ - Updated dependencies [d192d68]
21
+ - Updated dependencies [6c21009]
22
+ - Updated dependencies [109f900]
23
+ - Updated dependencies [109f900]
24
+ - Updated dependencies [444b0e6]
25
+ - Updated dependencies [2511bb5]
26
+ - Updated dependencies [d4fd8e6]
27
+ - Updated dependencies [30ed0e8]
28
+ - Updated dependencies [2834704]
29
+ - Updated dependencies [2511bb5]
30
+ - Updated dependencies [2511bb5]
31
+ - Updated dependencies [2511bb5]
32
+ - Updated dependencies [4607d59]
33
+ - Updated dependencies [52f6024]
34
+ - Updated dependencies [a8f1cb9]
35
+ - Updated dependencies [adf32f7]
36
+ - Updated dependencies [5cb0850]
37
+ - Updated dependencies [70a136c]
38
+ - Updated dependencies [91540de]
39
+ - Updated dependencies [8455fbb]
40
+ - Updated dependencies [325c2d1]
41
+ - Updated dependencies [d6e92ed]
42
+ - Updated dependencies [6c21009]
43
+ - Updated dependencies [7ffdc77]
44
+ - Updated dependencies [325c2d1]
45
+ - Updated dependencies [7ffdc77]
46
+ - Updated dependencies [ced40e4]
47
+ - Updated dependencies [9b1b40d]
48
+ - Updated dependencies [8c319b2]
49
+ - Updated dependencies [dc64968]
50
+ - Updated dependencies [23cf131]
51
+ - Updated dependencies [d192d68]
52
+ - Updated dependencies [15337f1]
53
+ - Updated dependencies [2d1a8e1]
54
+ - Updated dependencies [12cdbd6]
55
+ - Updated dependencies [437b544]
56
+ - Updated dependencies [ced40e4]
57
+ - @sanity/workflow-engine@0.15.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/workflow-diagram",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "React component rendering a workflow definition as a stage diagram — ELK layered layout, current-stage and visited-path highlighting, transition tooltips on line hover.",
5
5
  "keywords": [
6
6
  "diagram",
@@ -44,7 +44,7 @@
44
44
  "@sanity/icons": "^3.7.7",
45
45
  "@xyflow/react": "^12.11.1",
46
46
  "elkjs": "^0.11.1",
47
- "@sanity/workflow-engine": "0.14.0"
47
+ "@sanity/workflow-engine": "0.15.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@sanity/pkg-utils": "^10.5.3",
@@ -58,8 +58,8 @@
58
58
  "react-dom": "^19.2.7",
59
59
  "vite": "^8.1.2",
60
60
  "vitest": "^4.1.8",
61
- "@sanity/workflow-engine-test": "0.9.0",
62
- "@sanity/workflow-examples": "0.4.0"
61
+ "@sanity/workflow-engine-test": "0.10.0",
62
+ "@sanity/workflow-examples": "0.5.0"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@sanity/ui": "^3.3.0",