1#![forbid(unsafe_code)]
29#![deny(missing_docs)]
30
31mod citizen;
32pub mod codec;
33pub mod contract;
34pub mod dispatch;
35pub mod embed;
36pub mod mode;
37pub mod palette;
38pub mod profiles;
39mod render;
40pub mod set_lens;
41pub mod stack;
42pub mod surface;
43pub mod universal;
44pub mod universal_editor;
45pub mod universal_view;
46
47pub use citizen::{ViewLensDescriptor, view_lens_descriptor_class_symbol};
48pub use codec::{PairCodec, SurfaceCodec, roundtrip_holds};
49pub use contract::{Draft, Editor, Lens, LensKind, LensMeta, Operation, View};
50pub use dispatch::{DispatchContext, DispatchOutcome, DispatchReason, LensRegistry};
51pub use embed::embed_scene;
52pub use mode::{Exposure, Mode, action_exposure, denied_scene, readonly_scene, universal_scene};
53pub use palette::{
54 A11y, Command, CommandKind, FocusDir, a11y_of, diagnostics_scene, filter_commands, focused_id,
55 move_focus, palette_intent, palette_scene, with_a11y, with_focus,
56};
57pub use profiles::{DEVICE_PRESETS, project_for_preset};
58pub use set_lens::{active_lens, apply_set_lens, empty_pane_lenses};
59pub use stack::LensStackEntry;
60pub use surface::{SurfaceCaps, SurfaceError};
61pub use universal::{UNIVERSAL_EDITOR_ID, UNIVERSAL_VIEW_ID, register_universal_default};
62pub use universal_editor::{EDIT_MODES, UniversalEditor, render_draft};
63pub use universal_view::{UniversalView, render_value};
64
65pub const UNIVERSAL_DEFAULT_LENS: &str = UNIVERSAL_VIEW_ID;
67
68#[cfg(test)]
69mod mode_tests;
70#[cfg(test)]
71mod stack_tests;
72#[cfg(test)]
73mod tests;
74#[cfg(test)]
75mod universal_tests;