@sanity/workflow-diagram 0.3.0 → 0.4.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/CHANGELOG.md +27 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @sanity/workflow-diagram
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b341a7d: Add a navigation-free harness view for ad hoc workflow definitions with light and dark screenshot themes.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 7276702: Stage tooltips use editor vocabulary: the current stage's lock badge reads "N document hold(s) active" instead of "mutation guard(s)", and the explain tooltip's overflow note reads "+ N more condition(s)" instead of "gate(s)".
|
|
12
|
+
- Updated dependencies [239d9f6]
|
|
13
|
+
- Updated dependencies [3af2ca0]
|
|
14
|
+
- Updated dependencies [7276702]
|
|
15
|
+
- Updated dependencies [58f8211]
|
|
16
|
+
- Updated dependencies [00c089d]
|
|
17
|
+
- Updated dependencies [71cd58e]
|
|
18
|
+
- Updated dependencies [cd03973]
|
|
19
|
+
- Updated dependencies [d26cc1a]
|
|
20
|
+
- Updated dependencies [9126299]
|
|
21
|
+
- Updated dependencies [72018af]
|
|
22
|
+
- Updated dependencies [5cd8ffd]
|
|
23
|
+
- Updated dependencies [b82bda4]
|
|
24
|
+
- Updated dependencies [55a54b3]
|
|
25
|
+
- Updated dependencies [b82bda4]
|
|
26
|
+
- Updated dependencies [4490442]
|
|
27
|
+
- Updated dependencies [1540dce]
|
|
28
|
+
- @sanity/workflow-engine@0.18.0
|
|
29
|
+
|
|
3
30
|
## 0.3.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -196,7 +196,7 @@ function cappedGates(gates) {
|
|
|
196
196
|
const shown = gates.slice(0, STAGE_GATE_CAP), hidden = gates.length - shown.length;
|
|
197
197
|
return {
|
|
198
198
|
shown: shown,
|
|
199
|
-
overflowNote: hidden > 0 ? `+ ${hidden} more
|
|
199
|
+
overflowNote: hidden > 0 ? `+ ${hidden} more condition${hidden === 1 ? "" : "s"}` : void 0
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
|
|
@@ -1600,7 +1600,7 @@ function nodeOpacity(data) {
|
|
|
1600
1600
|
function GuardBadge({count: count}) {
|
|
1601
1601
|
/* @__PURE__ */
|
|
1602
1602
|
return jsxRuntime.jsxs("span", {
|
|
1603
|
-
title: `${count}
|
|
1603
|
+
title: `${count} document hold${count === 1 ? "" : "s"} active`,
|
|
1604
1604
|
style: {
|
|
1605
1605
|
display: "inline-flex",
|
|
1606
1606
|
alignItems: "center",
|
package/dist/index.js
CHANGED
|
@@ -176,7 +176,7 @@ function cappedGates(gates) {
|
|
|
176
176
|
const shown = gates.slice(0, STAGE_GATE_CAP), hidden = gates.length - shown.length;
|
|
177
177
|
return {
|
|
178
178
|
shown: shown,
|
|
179
|
-
overflowNote: hidden > 0 ? `+ ${hidden} more
|
|
179
|
+
overflowNote: hidden > 0 ? `+ ${hidden} more condition${hidden === 1 ? "" : "s"}` : void 0
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
|
|
@@ -1580,7 +1580,7 @@ function nodeOpacity(data) {
|
|
|
1580
1580
|
function GuardBadge({count: count}) {
|
|
1581
1581
|
/* @__PURE__ */
|
|
1582
1582
|
return jsxs("span", {
|
|
1583
|
-
title: `${count}
|
|
1583
|
+
title: `${count} document hold${count === 1 ? "" : "s"} active`,
|
|
1584
1584
|
style: {
|
|
1585
1585
|
display: "inline-flex",
|
|
1586
1586
|
alignItems: "center",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/workflow-diagram",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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.
|
|
47
|
+
"@sanity/workflow-engine": "0.18.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.
|
|
62
|
-
"@sanity/workflow-examples": "0.
|
|
61
|
+
"@sanity/workflow-engine-test": "0.13.0",
|
|
62
|
+
"@sanity/workflow-examples": "0.8.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@sanity/ui": "^3.3.0",
|