@pixerate/editor 0.20.0 → 0.21.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 +4 -2
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@ Framework bindings: [`@pixerate/editor-react`](https://www.npmjs.com/package/@pi
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @pixerate/editor
|
|
9
|
+
# only if you use @pixerate/editor/canvas (or the agent canvas planner):
|
|
10
|
+
npm install @dagrejs/dagre
|
|
9
11
|
```
|
|
10
12
|
|
|
11
13
|
## Prompt grammar
|
|
@@ -187,10 +189,10 @@ Each module is also available as a subpath import:
|
|
|
187
189
|
| `@pixerate/editor/history` | `HistoryManager`: a command-pattern undo/redo stack |
|
|
188
190
|
| `@pixerate/editor/spreadsheet` | `SpreadsheetController`, formula parser/evaluator and dependency graph, formula function registry (`registerFormulaFunction`, `listFormulaFunctions`, `searchFormulaFunctions`, `getFormulaSignature`) and autocomplete helpers (`getFormulaHints`, `applyFormulaSuggestion`) |
|
|
189
191
|
| `@pixerate/editor/image-editor` | `ImageEditorController` and Canvas 2D renderer: crop, adjustments, annotations, depth masks and AI hooks. Needs a DOM/canvas environment. |
|
|
190
|
-
| `@pixerate/editor/canvas` | Node-graph layout (dagre), placement, trajectories, displacement, clipboard and streaming layout helpers |
|
|
192
|
+
| `@pixerate/editor/canvas` | Node-graph layout (needs the optional `@dagrejs/dagre` peer), placement, trajectories, displacement, clipboard and streaming layout helpers |
|
|
191
193
|
| `@pixerate/editor/agent` | MCP tool schemas, a planner for agent-driven canvas edits, and the dynamic `ToolRegistry` with editor/spreadsheet tool providers |
|
|
192
194
|
|
|
193
|
-
The root entry (`@pixerate/editor`) re-exports everything, including TipTap.
|
|
195
|
+
The root entry (`@pixerate/editor`) re-exports everything except canvas, agent and image editor, including TipTap. Import from the narrowest subpath you need: `grammar`, `history`, `spreadsheet` and `image-editor` have no third-party imports, so a spreadsheet-only app bundles no TipTap, markdown or dagre code. The package is marked `sideEffects: false`, so unused root exports are also tree-shaken.
|
|
194
196
|
|
|
195
197
|
## License
|
|
196
198
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "UI-agnostic rich text and media editing core library",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"files": [
|
|
64
64
|
"dist"
|
|
65
65
|
],
|
|
66
|
+
"sideEffects": false,
|
|
66
67
|
"dependencies": {
|
|
67
|
-
"@dagrejs/dagre": "^1.1.8",
|
|
68
68
|
"@tiptap/extension-character-count": "^2.11.5",
|
|
69
69
|
"@tiptap/extension-color": "^2.11.5",
|
|
70
70
|
"@tiptap/extension-highlight": "^2.11.5",
|
|
@@ -84,23 +84,30 @@
|
|
|
84
84
|
"@tiptap/suggestion": "^2.11.5",
|
|
85
85
|
"markdown-it": "^15.0.2",
|
|
86
86
|
"markdown-it-task-lists": "^2.1.1",
|
|
87
|
-
"prosemirror-markdown": "^1.13.7"
|
|
88
|
-
"tiptap-markdown": "^0.8.10"
|
|
87
|
+
"prosemirror-markdown": "^1.13.7"
|
|
89
88
|
},
|
|
90
89
|
"devDependencies": {
|
|
90
|
+
"@dagrejs/dagre": "^1.1.8",
|
|
91
91
|
"@tiptap/core": "^2.11.5",
|
|
92
92
|
"@tiptap/pm": "^2.11.5",
|
|
93
93
|
"@types/dagre": "^0.7.54",
|
|
94
94
|
"@types/markdown-it": "^14.2.0",
|
|
95
95
|
"@types/node": "^24.0.0",
|
|
96
|
+
"tiptap-markdown": "^0.8.10",
|
|
96
97
|
"tsup": "^8.4.0",
|
|
97
98
|
"typescript": "^5.7.3",
|
|
98
99
|
"vitest": "^4.1.11"
|
|
99
100
|
},
|
|
100
101
|
"peerDependencies": {
|
|
102
|
+
"@dagrejs/dagre": "^1.1.8",
|
|
101
103
|
"@tiptap/core": "^2.11.5",
|
|
102
104
|
"@tiptap/pm": "^2.11.5"
|
|
103
105
|
},
|
|
106
|
+
"peerDependenciesMeta": {
|
|
107
|
+
"@dagrejs/dagre": {
|
|
108
|
+
"optional": true
|
|
109
|
+
}
|
|
110
|
+
},
|
|
104
111
|
"scripts": {
|
|
105
112
|
"build": "tsup",
|
|
106
113
|
"typecheck": "tsc --noEmit",
|