euv-core 0.55.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
use super::*;

/// Optional process-wide native OS capability bridge registered by Android/iOS/Desktop hosts.
pub(crate) static EXTERNAL_NATIVE_ACTION_BRIDGE: AtomicPtr<()> = AtomicPtr::new(null_mut());

/// Thread-safe record of the most recently validated external URL passed to `open_external_url`.
pub(crate) static LAST_EXTERNAL_URL: Mutex<Option<String>> = Mutex::new(None);

/// Optional process-wide host bridge callback returning live OS clipboard text.
pub(crate) static EXTERNAL_CLIPBOARD_READ_BRIDGE: AtomicPtr<()> = AtomicPtr::new(null_mut());

/// Optional process-wide host bridge callback returning the live OS light/dark theme mode.
pub(crate) static EXTERNAL_THEME_QUERY_BRIDGE: AtomicPtr<()> = AtomicPtr::new(null_mut());

/// Process-local fallback clipboard buffer synchronized on every `write_system_clipboard` call.
pub(crate) static NATIVE_CLIPBOARD_CACHE: Mutex<Option<String>> = Mutex::new(None);

thread_local! {
    /// UI-thread record of the most recently requested embedded WebView sheet `(url, title)` pair.
    pub(crate) static LAST_WEBVIEW_SHEET: RefCell<Option<(String, String)>> =
        const { RefCell::new(None) };
    /// UI-thread cache of the most recently observed embedded WebView viewport `(bounds, opacity)` frame.
    pub(crate) static LAST_WEBVIEW_FRAME: RefCell<Option<(Rect, f32)>> =
        const { RefCell::new(None) };
    /// UI-thread native WebView attach lifecycle and dispatch-deduplication state decoupled from Frame 0 sheet mount.
    pub(crate) static WEBVIEW_NATIVE_STATE: RefCell<WebViewNativeLifecycle> =
        const {
            RefCell::new(WebViewNativeLifecycle {
                pending_open: None,
                attached_target: None,
                last_native_frame: None,
                native_attached: false,
                native_open_count: 0,
                native_frame_count: 0,
                native_close_count: 0,
            })
        };
}