@sanity/workflow-diagram 0.0.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/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@sanity/workflow-diagram",
3
+ "version": "0.0.0",
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
+ "keywords": [
6
+ "diagram",
7
+ "react",
8
+ "sanity",
9
+ "sanity-io",
10
+ "workflow",
11
+ "workflows"
12
+ ],
13
+ "homepage": "https://github.com/sanity-io/workflows/tree/main/packages/workflow-diagram#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/sanity-io/workflows/issues"
16
+ },
17
+ "license": "MIT",
18
+ "author": "Sanity.io <hello@sanity.io>",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/sanity-io/workflows.git",
22
+ "directory": "packages/workflow-diagram"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "CHANGELOG.md"
27
+ ],
28
+ "type": "module",
29
+ "main": "./dist/index.cjs",
30
+ "module": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "import": "./dist/index.js",
35
+ "require": "./dist/index.cjs",
36
+ "default": "./dist/index.js"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "dependencies": {
44
+ "@sanity/icons": "^3.7.7",
45
+ "@xyflow/react": "^12.11.1",
46
+ "elkjs": "^0.11.1",
47
+ "@sanity/workflow-engine": "0.14.0"
48
+ },
49
+ "devDependencies": {
50
+ "@sanity/pkg-utils": "^10.5.3",
51
+ "@sanity/ui": "^3.3.5",
52
+ "@testing-library/react": "^16.3.2",
53
+ "@types/react": "^19.2.17",
54
+ "@types/react-dom": "^19.2.3",
55
+ "@vitejs/plugin-react": "^6.0.2",
56
+ "jsdom": "^29.1.1",
57
+ "react": "^19.2.7",
58
+ "react-dom": "^19.2.7",
59
+ "vite": "^8.1.2",
60
+ "vitest": "^4.1.8",
61
+ "@sanity/workflow-engine-test": "0.9.0",
62
+ "@sanity/workflow-examples": "0.4.0"
63
+ },
64
+ "peerDependencies": {
65
+ "@sanity/ui": "^3.3.0",
66
+ "react": "^19.2.7",
67
+ "react-dom": "^19.2.7"
68
+ },
69
+ "engines": {
70
+ "node": ">=20"
71
+ },
72
+ "scripts": {
73
+ "build": "pkg-utils build --clean",
74
+ "test": "vitest run",
75
+ "test:watch": "vitest",
76
+ "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p harness/tsconfig.json",
77
+ "harness": "vite harness --port 5176 --strictPort"
78
+ }
79
+ }