taino_edit_dom/lib.rs
1//! `taino-edit-dom` — the contenteditable/DOM bridge for taino-edit.
2//!
3//! Renders a [`taino_edit_core`] document into a `contenteditable` element,
4//! observes user edits via `MutationObserver`, and keeps the browser
5//! selection in sync with the core [`Selection`](taino_edit_core::Selection).
6//!
7//! This is the only crate in the workspace where `unsafe` is permitted, and
8//! only at the `wasm-bindgen`/`web-sys` FFI boundary. Each occurrence must
9//! carry an inline `// SAFETY:` justification.
10//!
11//! Status: Phase 4 (DOM bridge). See `ROADMAP.md`.
12
13#![warn(missing_docs, rust_2018_idioms)]
14
15pub mod decoration;
16pub mod desc;
17pub mod position_map;
18pub mod view;
19
20pub use decoration::Decoration;
21pub use desc::ViewDesc;
22pub use view::{EditorView, ViewAction, ViewPlugin};