@xcursus/editor
v0.6.0
Published
React editor of XCursus Studio: command store with undo/redo, IndexedDB recovery, archive I/O and the Studio component.
Maintainers
Readme
@xcursus/editor
React editor behind XCursus Studio: the Studio component, the command store with atomic undo/redo, the commands an integrator applies through it and IndexedDB recovery. React and React DOM (^19.3.1) are peer dependencies; core and player never depend on React.
import { createRoot } from "react-dom/client";
import { Studio, EditorStore, emptyProject } from "@xcursus/editor";
import "@xcursus/editor/style.css";
import "@xcursus/plugins/style.css";
import "@xcursus/player/fonts.css";
createRoot(root).render(<Studio store={new EditorStore(emptyProject())} />);The public API is delimited in dist/index.d.ts; components and storage internals are private. The interface is in English.
Install with npm install @xcursus/editor. Licence: GPL-3.0-or-later. Guides: AUTHORING.md, API.md.
