Skip to Content

@stesura/core

The editor engine, framework-free; the React bindings live in @stesura/editor-react. Each subpath is its own entry point:

Entry pointContents
@stesura/core/commandsCommands for document mutations: formatting, lists, tables, sections, search and more
@stesura/core/helpersQuery the document, selection, marks and resolved styles; a few (clearContent, startImageUpload, unWrap) dispatch
@stesura/core/utilsUnit conversions, line heights, URL safety and upload validation
@stesura/core/typesShared TypeScript types for documents, users, comments and preferences
@stesura/core/storesNanostores holding editor-external state
@stesura/core/schemaThe document schema and its construction
@stesura/core/pluginsProseMirror plugins that make up the editor runtime
@stesura/core/guardsLoad-time normalization, inline-image checks and the mode gate
@stesura/core/keymapKeyboard bindings
@stesura/core/ommlOMML (Word equations) → LaTeX
@stesura/core/sub-editorShared machinery for nested editors (notes, headers/footers)
@stesura/core/constantsDefaults and presets for a host’s own UI
@stesura/core/testingHelpers for writing your own editor tests; needs the optional peer prosemirror-test-builder

@stesura/core/styles is the editor stylesheet (CSS, no types). @stesura/core/commands/internal is not public API.

Last updated on