···1+//! weaver-editor-core: Pure Rust editor logic without framework dependencies.
2+//!
3+//! This crate provides:
4+//! - `TextBuffer` trait for text storage abstraction
5+//! - `EditorRope` - ropey-backed implementation
6+//! - `EditorDocument<T>` - generic document with undo support
7+//! - Rendering, actions, formatting - all generic over TextBuffer
8+9+pub mod offset_map;
10+pub mod paragraph;
11+pub mod syntax;
12+pub mod text;
13+pub mod types;
14+pub mod visibility;
15+16+pub use offset_map::{
17+ OffsetMapping, RenderResult, SnapDirection, SnappedPosition, find_mapping_for_byte,
18+ find_mapping_for_char, find_nearest_valid_position, is_valid_cursor_position,
19+};
20+pub use paragraph::{ParagraphRender, hash_source, make_paragraph_id};
21+pub use smol_str::SmolStr;
22+pub use syntax::{SyntaxSpanInfo, SyntaxType, classify_syntax};
23+pub use text::{EditorRope, TextBuffer};
24+pub use types::{
25+ Affinity, CompositionState, CursorState, EditInfo, Selection, BLOCK_SYNTAX_ZONE,
26+};
27+pub use visibility::VisibilityState;