@squeed/flow-sdk 1.1.16 → 2.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@squeed/flow-sdk",
3
- "version": "1.1.16",
4
- "description": "Standalone React component for rendering interactive flow diagrams from JSON",
3
+ "version": "2.0.1",
4
+ "description": "Standalone React component for rendering interactive flow diagrams using JSON",
5
5
  "license": "AGPL-3.0",
6
6
  "author": "seyi ogunbowale",
7
7
  "type": "module",
@@ -10,18 +10,31 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./dist/index.d.ts",
14
- "import": "./dist/index.js",
15
- "require": "./dist/index.cjs"
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.cts",
19
+ "default": "./dist/index.cjs"
20
+ }
16
21
  }
17
22
  },
18
23
  "files": [
19
- "dist"
24
+ "dist",
25
+ "THIRD_PARTY_NOTICES.txt"
20
26
  ],
21
27
  "scripts": {
22
28
  "dev": "vite build --watch",
23
- "build": "tsc && vite build",
24
- "typecheck": "tsc --noEmit"
29
+ "build": "tsc && vite build && node scripts/finalize-build.mjs",
30
+ "typecheck": "tsc --noEmit",
31
+ "test": "npm run test:unit && npm run test:browser",
32
+ "test:unit": "node tests/run-unit.mjs",
33
+ "test:browser": "npm run build && playwright test",
34
+ "test:package": "npm run build && node tests/check-package.mjs",
35
+ "check:release": "npm test && node tests/check-package.mjs && npm audit --omit=dev --audit-level=moderate",
36
+ "prepack": "npm run build",
37
+ "test:serve": "vite --config tests/vite.config.ts --host 127.0.0.1 --port 4196 --strictPort"
25
38
  },
26
39
  "peerDependencies": {
27
40
  "@chakra-ui/react": "^3.36.0",
@@ -32,23 +45,22 @@
32
45
  "react-dom": "^18.0.0"
33
46
  },
34
47
  "dependencies": {
35
- "cytoscape": "^3.33.0",
36
- "cytoscape-dagre": "^2.5.0",
37
- "cytoscape-dom-node": "github:sciphergfx/cytoscape-dom-node",
38
- "cytoscape-edgehandles": "^4.0.1",
39
- "lodash": "^4.17.21",
48
+ "dagre": "0.8.5",
49
+ "lodash": "^4.18.1",
50
+ "lodash-es": "^4.18.1",
40
51
  "react-icons": "^5.3.0",
41
- "uuid": "^9.0.0"
52
+ "uuid": "^11.1.1"
42
53
  },
43
54
  "devDependencies": {
44
- "@types/cytoscape": "^3.21.9",
55
+ "@playwright/test": "^1.62.1",
56
+ "@types/dagre": "^0.7.52",
45
57
  "@types/lodash": "^4.17.0",
46
58
  "@types/react": "^18.3.12",
47
59
  "@types/react-dom": "^18.3.1",
48
- "@types/uuid": "^9.0.0",
49
60
  "@vitejs/plugin-react": "^4.3.3",
61
+ "esbuild": "^0.28.2",
50
62
  "typescript": "^5.6.3",
51
63
  "vite": "^6.2.4",
52
64
  "vite-plugin-dts": "^4.0.0"
53
65
  }
54
- }
66
+ }