@hlang-tech/editor-ui 0.1.0 → 0.2.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/README.md +3 -3
- package/lib/canvas/CanvasDock.css +27 -0
- package/lib/index.d.mts +16 -3
- package/lib/index.d.ts +16 -3
- package/lib/index.js +14 -7
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +14 -7
- package/lib/index.mjs.map +1 -1
- package/lib/shell/EditorShell.css +3 -0
- package/lib/tokens/tokens.css +1 -1
- package/package.json +6 -7
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
flex: 1;
|
|
44
44
|
position: relative;
|
|
45
45
|
min-width: 0;
|
|
46
|
+
/* Canvas chrome (the dock) adapts to the canvas width, not the window's:
|
|
47
|
+
the editor may be embedded in a narrow column of a larger page. */
|
|
48
|
+
container: hl-canvas / inline-size;
|
|
46
49
|
}
|
|
47
50
|
/* A soft ambient pool of light in the canvas centre gives the glass panels and
|
|
48
51
|
nodes something luminous to sit over — depth, the opposite of a flat void. */
|
package/lib/tokens/tokens.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hlang-tech/editor-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Lumen design system for hlang: node, edge, panel, and shell components for a React Flow node editor, built on @hlang-org/editor-react.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hlang",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@hlang-tech/
|
|
63
|
-
"@hlang-tech/
|
|
64
|
-
"@hlang-tech/editor-
|
|
62
|
+
"@hlang-tech/interpreter": "^1.0.1",
|
|
63
|
+
"@hlang-tech/editor-core": "^0.1.1",
|
|
64
|
+
"@hlang-tech/editor-react": "^0.1.1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@xyflow/react": "^12.0.0",
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
"@types/react": "^19.0.0",
|
|
76
76
|
"@types/react-dom": "^19.0.0",
|
|
77
77
|
"@xyflow/react": "^12.11.1",
|
|
78
|
-
"copyfiles": "^2.4.1",
|
|
79
78
|
"eslint": "^9.15.0",
|
|
80
79
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
81
80
|
"jest": "^29.7.0",
|
|
@@ -84,12 +83,12 @@
|
|
|
84
83
|
"react": "^19.2.0",
|
|
85
84
|
"react-dom": "^19.2.0",
|
|
86
85
|
"ts-jest": "^29.4.11",
|
|
87
|
-
"tsup": "^
|
|
86
|
+
"tsup": "^9.0.0",
|
|
88
87
|
"typescript": "^5.5.4",
|
|
89
88
|
"typescript-eslint": "^8.62.1"
|
|
90
89
|
},
|
|
91
90
|
"scripts": {
|
|
92
|
-
"build": "tsup &&
|
|
91
|
+
"build": "tsup && node scripts/copy-css.mjs",
|
|
93
92
|
"test": "jest --coverage",
|
|
94
93
|
"lint": "eslint \"src/**/*.ts\" \"src/**/*.tsx\"",
|
|
95
94
|
"lint:pkg": "publint && attw --pack --exclude-entrypoints ./tokens.css ./styles.css",
|