@signalsafe/tree-spec-editor-react 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.
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * Headless React layer for the SignalSafe TreeSpec graph editor.
4
+ *
5
+ * This package owns the React Flow canvas and the framework-shaped
6
+ * orchestration hook ({@link useTreeSpecEditor}). It depends on `react`,
7
+ * `react-dom`, `reactflow`, and `@signalsafe/tree-spec-editor-core`, but is
8
+ * intentionally free of any UI library (no `react-bootstrap`, no Material,
9
+ * no Tailwind) and any router (no `react-router-dom`, no Next.js router).
10
+ * UI shells layer on top of this package; routing is host-injected via hook
11
+ * callbacks.
12
+ */
13
+ export { default } from './TreeSpecGraphEditor';
14
+ export { useTreeSpecEditor } from './hooks/useTreeSpecEditor';
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@signalsafe/tree-spec-editor-react",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Headless React canvas for the SignalSafe TreeSpec graph editor (React Flow shell, no UI library)",
6
+ "license": "UNLICENSED",
7
+ "keywords": [
8
+ "tree-spec",
9
+ "tree-spec-editor",
10
+ "react-flow",
11
+ "react",
12
+ "signalsafe",
13
+ "headless-ui"
14
+ ],
15
+ "sideEffects": false,
16
+ "main": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js",
22
+ "default": "./dist/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "README.md"
28
+ ],
29
+ "publishConfig": {
30
+ "access": "restricted"
31
+ },
32
+ "scripts": {
33
+ "build": "tsc -p tsconfig.build.json",
34
+ "typecheck": "tsc --noEmit",
35
+ "pack:local": "npm pack --pack-destination ../../dist/reusable-npm",
36
+ "prepublishOnly": "npm run build",
37
+ "prepare": "npm run build",
38
+ "test": "cd ../../frontend && yarn vitest run --config vitest.tree-spec-editor-react.config.ts"
39
+ },
40
+ "dependencies": {
41
+ "@signalsafe/tree-spec": "^0.1.3",
42
+ "@signalsafe/tree-spec-editor-core": "^0.1.0"
43
+ },
44
+ "peerDependencies": {
45
+ "react": "^18.0.0",
46
+ "react-dom": "^18.0.0",
47
+ "reactflow": "^11.0.0"
48
+ },
49
+ "devDependencies": {
50
+ "@types/react": "^18.2.66",
51
+ "@types/react-dom": "^18.2.22",
52
+ "react": "^18.3.1",
53
+ "react-dom": "^18.3.1",
54
+ "react-test-renderer": "18.3.1",
55
+ "reactflow": "^11.11.4",
56
+ "typescript": "^5.4.2"
57
+ }
58
+ }