@pixerate/editor-react 0.12.0 → 0.13.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 -1
- package/dist/chunk-MHTAR3RS.js +1103 -0
- package/dist/chunk-MHTAR3RS.js.map +1 -0
- package/dist/index.cjs +28 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -159
- package/dist/index.d.ts +5 -159
- package/dist/index.js +68 -1152
- package/dist/index.js.map +1 -1
- package/dist/spreadsheet/index.cjs +1134 -0
- package/dist/spreadsheet/index.cjs.map +1 -0
- package/dist/spreadsheet/index.d.cts +160 -0
- package/dist/spreadsheet/index.d.ts +160 -0
- package/dist/spreadsheet/index.js +19 -0
- package/dist/spreadsheet/index.js.map +1 -0
- package/package.json +15 -2
package/README.md
CHANGED
|
@@ -5,9 +5,11 @@ React bindings for [`@pixerate/editor`](https://www.npmjs.com/package/@pixerate/
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install @pixerate/editor-react @pixerate/editor react react-dom
|
|
7
7
|
# only if you use @pixerate/editor-react/canvas:
|
|
8
|
-
npm install @xyflow/react
|
|
8
|
+
npm install @xyflow/react @dagrejs/dagre
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
Each feature has its own entry: `@pixerate/editor-react/spreadsheet`, `/image-editor` and `/canvas`. The spreadsheet and image editor entries import only React and the matching `@pixerate/editor` subpath, so they bundle no TipTap, markdown or canvas code.
|
|
12
|
+
|
|
11
13
|
Requires React 18 or later.
|
|
12
14
|
|
|
13
15
|
## Prompt editor
|
|
@@ -87,6 +89,7 @@ useAgentToolProvider(registry, provider);
|
|
|
87
89
|
| Import | Exports |
|
|
88
90
|
| :--- | :--- |
|
|
89
91
|
| `@pixerate/editor-react` | `usePromptEditor`, `useEditor`, `EditorContent`, `BubbleMenu`, `TemplateRenderer`, `useHistory`, `useHistoryShortcuts`, `useNavigationGuard`, `useDismissGuard`, `EditorSlotsProvider` / `useEditorSlots`, `SpreadsheetEditor` / `useSpreadsheetEditor`, `FormulaHints`, `DirtyTracker` |
|
|
92
|
+
| `@pixerate/editor-react/spreadsheet` | `SpreadsheetEditor`, `useSpreadsheetEditor`, `useSpreadsheetTableInteractions`, `FormulaHints`, `SpreadsheetContextMenu`, `SpreadsheetGroupRow` (also re-exported from the root entry) |
|
|
90
93
|
| `@pixerate/editor-react/image-editor` | `ImageEditor`, `useImageEditor`: crop, rotate/flip, adjustments, annotations, depth masks, and `onInpaint` / `onRemoveBackground` AI hooks |
|
|
91
94
|
| `@pixerate/editor-react/canvas` | `useCanvasGraph`, `useCanvasLayout`, `useCanvasClipboard`, `useCanvasDocking`, `useCanvasShortcuts`, `useCanvasExplosion`, `useStreamingCanvas`, `AgentPresenceLayer`, plus the pure layout helpers from `@pixerate/editor/canvas` |
|
|
92
95
|
|