@theclearsky/react-blender-nodes 0.0.10 → 0.0.13

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@theclearsky/react-blender-nodes",
3
- "version": "0.0.10",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "author": "Deepak Prasad <TheClearSky@github.com>",
6
6
  "license": "MIT",
@@ -18,30 +18,46 @@
18
18
  ],
19
19
  "description": "A React component library inspired by Blender's node editor interface, providing a flexible and customizable node-based graph editor for web applications.",
20
20
  "files": [
21
- "dist"
21
+ "dist",
22
+ "CHANGELOG.md"
22
23
  ],
23
- "main": "./dist/react-blender-nodes.umd.cjs",
24
+ "main": "./dist/react-blender-nodes.es.js",
24
25
  "module": "./dist/react-blender-nodes.es.js",
25
26
  "types": "./dist/index.d.ts",
26
27
  "exports": {
27
28
  ".": {
28
29
  "types": "./dist/index.d.ts",
29
- "import": "./dist/react-blender-nodes.es.js",
30
- "require": "./dist/react-blender-nodes.umd.cjs"
30
+ "default": "./dist/react-blender-nodes.es.js"
31
+ },
32
+ "./contract": {
33
+ "types": "./dist/contract.d.ts",
34
+ "default": "./dist/react-blender-nodes-contract.es.js"
31
35
  },
32
36
  "./style.css": "./dist/react-blender-nodes.css"
33
37
  },
34
38
  "scripts": {
35
- "build": "tsc -b && vite build",
39
+ "build": "tsc -b && vite build && node --experimental-strip-types scripts/check-dist-types.ts && node --experimental-strip-types scripts/check-dist-loads.ts",
36
40
  "lint": "eslint .",
37
41
  "lint:fix": "eslint . --fix",
38
42
  "preview": "vite preview",
39
43
  "pretty": "prettier --write .",
40
44
  "pretty:check": "prettier --check .",
41
- "type-check": "tsc --noEmit",
45
+ "type-check": "tsc -b",
46
+ "check:docs": "node --experimental-strip-types scripts/check-doc-citations.ts",
42
47
  "storybook": "storybook dev -p 6006",
43
48
  "build-storybook": "storybook build",
44
- "test": "vitest",
49
+ "test": "vitest run --config vitest.config.ts",
50
+ "test:unit": "vitest run --config vitest.config.ts",
51
+ "test:unit:watch": "vitest --config vitest.config.ts",
52
+ "_e2e": "playwright test --config=e2e/playwright.config.ts",
53
+ "test:e2e:dev": "cross-env PLAYWRIGHT_STORYBOOK=dev npm run _e2e --",
54
+ "test:e2e:build": "cross-env PLAYWRIGHT_STORYBOOK=build npm run _e2e --",
55
+ "test:e2e:built": "cross-env PLAYWRIGHT_STORYBOOK=built npm run _e2e --",
56
+ "test:e2e:dev:h": "npm run test:e2e:dev -- --headed",
57
+ "test:e2e:build:h": "npm run test:e2e:build -- --headed",
58
+ "test:e2e:built:h": "npm run test:e2e:built -- --headed",
59
+ "test:e2e:ui": "npm run _e2e -- --ui",
60
+ "report": "npx playwright show-report",
45
61
  "test:watch": "vitest --watch",
46
62
  "checklist": "npm i && npm run prepare && npm run pretty && npm run build && npm run build-storybook",
47
63
  "cl": "npm run checklist",
@@ -57,34 +73,37 @@
57
73
  "@floating-ui/react": "^0.27.16",
58
74
  "@fontsource/dejavu-sans": "^5.2.5",
59
75
  "@radix-ui/react-checkbox": "^1.3.3",
60
- "@radix-ui/react-select": "^2.2.6",
61
76
  "@radix-ui/react-slot": "^1.2.3",
62
77
  "@xyflow/react": "^12.8.4",
78
+ "@xyflow/system": "0.0.68",
63
79
  "class-variance-authority": "^0.7.1",
64
80
  "clsx": "^2.1.1",
65
- "husky": "^9.1.7",
81
+ "culori": "^4.0.2",
66
82
  "immer": "^10.1.3",
67
- "lint-staged": "^16.2.6",
68
83
  "lucide-react": "^0.542.0",
69
- "prettier": "^3.6.2",
70
84
  "radix-ui": "^1.4.3",
71
85
  "tailwind-merge": "^3.3.1",
72
86
  "zod": "^4.1.5"
73
87
  },
74
88
  "devDependencies": {
89
+ "husky": "^9.1.7",
90
+ "lint-staged": "^16.2.6",
75
91
  "@eslint/js": "^9.35.0",
92
+ "@microsoft/api-extractor": "^7.52.10",
93
+ "@playwright/test": "^1.59.1",
76
94
  "@storybook/addon-a11y": "^9.1.5",
77
95
  "@storybook/addon-docs": "^9.1.5",
78
96
  "@storybook/addon-vitest": "^9.1.5",
79
97
  "@storybook/react-vite": "^9.1.5",
80
98
  "@tailwindcss/vite": "^4.1.13",
81
- "@types/lodash": "^4.17.20",
99
+ "@types/culori": "^4.0.1",
82
100
  "@types/node": "^24.3.1",
83
101
  "@types/react": "^19.1.12",
84
102
  "@types/react-dom": "^19.1.9",
85
103
  "@vitejs/plugin-react": "^5.0.2",
86
104
  "@vitest/browser": "^3.2.4",
87
105
  "@vitest/coverage-v8": "^3.2.4",
106
+ "cross-env": "^10.1.0",
88
107
  "eslint": "^9.35.0",
89
108
  "eslint-plugin-react-hooks": "^5.2.0",
90
109
  "eslint-plugin-react-refresh": "^0.4.20",
@@ -92,6 +111,8 @@
92
111
  "globals": "^16.3.0",
93
112
  "knip": "^6.0.1",
94
113
  "playwright": "^1.55.0",
114
+ "prettier": "^3.6.2",
115
+ "sonner": "^2.0.7",
95
116
  "storybook": "^9.1.1",
96
117
  "storybook-addon-test-codegen": "^2.0.1",
97
118
  "tailwindcss": "^4.1.12",