@soeditor/workspace
v1.6.0
Published
Framework-neutral application workspace lifecycle for SoEditor.
Maintainers
Readme
@soeditor/workspace
Public 0.9 framework-neutral application lifecycle for SoEditor.
createEditorWorkspace() receives an explicit editor creator and ordered
attachment factories. It never discovers DOM, creates global registries, or
chooses surfaces for the host. Attachments are destroyed in reverse order and
the Editor is destroyed last.
The controller supports controlled values with feedback-loop suppression,
uncontrolled initial values, transaction-level change notification, and
opt-in bounded recovery from the last observed canonical source. Recovery is
triggered explicitly with reportFailure(); it cannot infer every application
or rendering failure.
createEditorSaveWorkflow() optionally adds host-owned manual or debounced
autosave around any Workspace/Core editor. It serializes only canonical source,
supports opaque revision tokens, progress, retry and conflict results, and
aborts owned work during cleanup. Transport and conflict policy remain outside
the package.
See docs/workspace.md and
docs/cms-saving.md.
