Skip to main content

lingxia_shell/
lib.rs

1//! Platform-neutral semantic core for the LingXia host shell.
2//!
3//! This crate owns app-declared sidebar actions, user-owned Pins, validation,
4//! Pin persistence, and deterministic state transitions. It deliberately
5//! has no dependency on lxapps, the surface graph, browser bookmarks, Logic,
6//! or platform UI. Host integration resolves metadata and executes activation;
7//! platform skins only render resolved snapshots and report stable ids.
8
9mod error;
10mod manager;
11mod pin;
12mod runtime;
13mod sidebar_action;
14mod sidebar_chrome;
15mod store;
16mod surface_menu;
17
18pub use error::{ShellError, ShellResult};
19pub use manager::{ShellManager, ShellSnapshot};
20pub use pin::{MAX_SHELL_PINS, PinCollection, PinMutation, ShellPin, ShellPinTarget};
21pub use runtime::{
22    ShellHost, SidebarActionIntent, activate_sidebar_action, apply_current_pins,
23    apply_current_sidebar_actions, initialize, is_pinned, manager, pins, resolved_sidebar_actions,
24    set_pinned, set_sidebar_chrome, set_window_frame, sidebar_chrome, window_frame,
25};
26pub use sidebar_action::{
27    MAX_HEADER_SIDEBAR_ACTIONS, ResolvedShellSidebarAction, ShellSidebarAction,
28    ShellSidebarActionUpdate, SidebarActionCollection, SidebarActionPlacement,
29};
30pub use sidebar_chrome::{
31    DEFAULT_EXPANDED_SIDEBAR_WIDTH, ShellWindowState, SidebarChrome, WindowFrame,
32};
33pub use store::{PIN_STORE_FILE, SHELL_WINDOW_FILE, ShellStore};
34pub use surface_menu::{
35    LxappSurfaceMenuAction, SurfaceMenuAction, SurfaceMenuBuiltinAction, SurfaceMenuContext,
36    SurfaceMenuIntent, SurfaceMenuItem, SurfaceMenuItemRole, SurfaceMenuSection,
37    SurfaceMenuSectionKind, SurfaceMenuSnapshot, compose_surface_menu,
38};