#[cfg(feature = "a11y")]
pub mod a11y;
#[cfg(feature = "auto-embed")]
pub mod auto_embed;
mod caret;
mod caret_tree;
mod caret_utils;
#[cfg(feature = "clipboard")]
pub mod clipboard;
#[cfg(feature = "code")]
pub mod code;
mod commands;
pub mod constants;
#[cfg(feature = "decorator-block")]
pub mod decorator_block;
#[cfg(feature = "devtools")]
pub mod devtools;
#[cfg(feature = "html")]
pub mod dom;
mod editor;
mod editor_state;
mod environment;
mod error;
mod events;
#[cfg(feature = "extension")]
pub mod extension;
#[cfg(feature = "extension")]
mod extension_core;
#[cfg(feature = "file")]
pub mod file;
mod gc;
mod generated_json;
#[cfg(feature = "hashtag")]
pub mod hashtag;
pub mod headless;
#[cfg(feature = "history")]
pub mod history;
#[cfg(feature = "html")]
pub mod html;
pub mod json;
mod keyboard_shortcuts;
#[cfg(feature = "html")]
pub mod lexical_dom;
mod lexical_selection;
mod lexical_utils;
#[cfg(feature = "link")]
pub mod link;
#[cfg(feature = "list")]
pub mod list;
#[cfg(feature = "mark")]
pub mod mark;
#[cfg(feature = "markdown")]
pub mod markdown;
#[cfg(feature = "menu")]
pub mod menu;
mod merge_register;
mod node;
mod node_state;
pub mod nodes;
mod normalization;
mod ordered;
#[cfg(feature = "overflow")]
pub mod overflow;
#[cfg(feature = "plain-text")]
pub mod plain_text;
mod reconciler;
mod ref_counted_registry;
#[cfg(feature = "rich-text")]
pub mod rich_text;
pub mod schema;
#[cfg(feature = "selection")]
pub mod selection;
mod selection_deletion;
mod selection_editing;
mod selection_format;
mod selection_insert_nodes;
mod selection_insert_text;
mod serialized_export;
mod set_dom_style;
mod slot;
mod structure;
#[cfg(feature = "table")]
pub mod table;
#[cfg(feature = "text")]
pub mod text;
mod updates;
pub mod utf16;
#[cfg(feature = "utils")]
pub mod utils;
mod warnings;
#[cfg(test)]
mod upstream_tests;
pub use caret::{
CaretDirection, CaretKind, CaretRange, ChildCaret, CommonAncestorAcrossSlotsResult,
CommonAncestorResult, NodeCaret, PointCaret, RootMode, SiblingCaret, TextOffset,
TextPointCaret, TextPointCaretSlice, compare_point_caret_next,
compare_point_caret_next_across_slots, extend_caret_to_range, flip_direction,
get_adjacent_child_caret, get_caret_in_direction, get_caret_range, get_child_caret,
get_child_caret_or_self, get_collapsed_caret_range, get_common_ancestor,
get_common_ancestor_across_slots, get_common_ancestor_result_branch_order, get_sibling_caret,
get_text_node_offset, get_text_point_caret, get_text_point_caret_slice, make_stepwise_iterator,
};
pub use caret_utils::{
SliceMode, SplitAtPointCaretNextOptions, caret_from_point, caret_range_from_selection,
get_adjacent_sibling_or_parent_sibling_caret, get_caret_range_in_direction,
get_child_caret_at_index, get_text_point_caret_slice_for_node,
insert_node_to_nearest_root_at_caret, is_extendable_text_point_caret, normalize_caret,
remove_text_from_caret_range, rewind_sibling_caret, set_point_from_caret,
set_selection_from_caret_range, split_at_point_caret_next, split_text_point_caret,
update_range_selection_from_caret_range,
};
pub use commands::{
BEFORE_INPUT_COMMAND, BLUR_COMMAND, CAN_REDO_COMMAND, CAN_UNDO_COMMAND, CLEAR_EDITOR_COMMAND,
CLEAR_HISTORY_COMMAND, CLICK_COMMAND, COMPOSITION_END_COMMAND, COMPOSITION_START_COMMAND,
CONTROLLED_TEXT_INSERTION_COMMAND, COPY_COMMAND, CUT_COMMAND, DELETE_CHARACTER_COMMAND,
DELETE_LINE_COMMAND, DELETE_WORD_COMMAND, DRAGEND_COMMAND, DRAGOVER_COMMAND, DRAGSTART_COMMAND,
DROP_COMMAND, FOCUS_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND,
INDENT_CONTENT_COMMAND, INPUT_COMMAND, INSERT_LINE_BREAK_COMMAND, INSERT_PARAGRAPH_COMMAND,
INSERT_TAB_COMMAND, InsertClipboardNodesPayload, KEY_ARROW_DOWN_COMMAND,
KEY_ARROW_LEFT_COMMAND, KEY_ARROW_RIGHT_COMMAND, KEY_ARROW_UP_COMMAND, KEY_BACKSPACE_COMMAND,
KEY_DELETE_COMMAND, KEY_DOWN_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND,
KEY_MODIFIER_COMMAND, KEY_SPACE_COMMAND, KEY_TAB_COMMAND, MOVE_TO_END, MOVE_TO_START,
OUTDENT_CONTENT_COMMAND, PASTE_COMMAND, REDO_COMMAND, REMOVE_TEXT_COMMAND, SELECT_ALL_COMMAND,
SELECTION_CHANGE_COMMAND, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND, SET_TEXT_FORMAT_COMMAND,
UNDO_COMMAND,
};
pub use editor::{
COLLABORATION_TAG, COMMAND_PRIORITY_BEFORE_CRITICAL, COMMAND_PRIORITY_BEFORE_EDITOR,
COMMAND_PRIORITY_BEFORE_HIGH, COMMAND_PRIORITY_BEFORE_LOW, COMMAND_PRIORITY_BEFORE_NORMAL,
COMMAND_PRIORITY_CRITICAL, COMMAND_PRIORITY_EDITOR, COMMAND_PRIORITY_HIGH,
COMMAND_PRIORITY_LOW, COMMAND_PRIORITY_NORMAL, COMPOSITION_END_TAG, COMPOSITION_START_TAG,
CUT_TAG, CreateEditorArgs, DEFER_COMPOSITION_MERGE_TAG, Editor, EditorConfig,
EditorFocusOptions, EditorReadMode, FOCUS_TAG, HISTORIC_TAG, HISTORY_MERGE_TAG,
HISTORY_PUSH_TAG, LexicalCommand, LexicalNodeReplacement, ListenerCleanup, MutatedNodes,
MutationListenerOptions, MutationListenerPayload, NodeClass, NodeMutation, NodeMutations,
NodeReplace, PASTE_TAG, RootElement, RootElementRef, SKIP_COLLAB_TAG, SKIP_DOM_SELECTION_TAG,
SKIP_SCROLL_INTO_VIEW_TAG, SKIP_SELECTION_FOCUS_TAG, Transform, Unregister,
UpdateListenerPayload, UpdateOptions, WarningHandler, add_update_tag, create_command,
create_editor, get_editor, has_update_tag,
};
pub use editor_state::EditorState;
pub use environment::{is_apple, with_is_apple};
pub use error::{LexicalError, LexicalWarning};
pub use events::{
ClipboardEvent, ClipboardOrKeyboardEvent, CompositionEvent, DataTransfer, DataTransferFile,
DragEvent, Event, FocusEvent, InputEvent, KeyboardEvent, MouseEvent, PasteCommandType,
on_before_input, on_composition_end, on_composition_start, on_key_down, on_selection_change,
};
#[cfg(feature = "extension")]
pub use extension_core::{
AbortController, AbortSignal, AnyLexicalExtension, AnyLexicalExtensionArgument,
ExtensionBuildFn, ExtensionBuildState, ExtensionConfigBase, ExtensionInitFn,
ExtensionInitState, ExtensionMergeConfigFn, ExtensionRegisterFn, ExtensionRegisterState,
InitialEditorConfig, InitialEditorStateFn, InitialEditorStateType, LexicalExtension,
LexicalExtensionDependency, NormalizedPeerDependency, config_extension,
declare_peer_dependency, define_extension, safe_cast, shallow_merge_config,
};
pub use headless::create_headless_editor;
pub use keyboard_shortcuts::{
CompiledKeyboardShortcuts, KeyboardShortcut, KeyboardShortcutMatch, ShortcutDisabledFn,
ShortcutDispatchFn, compile_keyboard_shortcuts, control_or_alt, control_or_meta,
};
pub use lexical_selection::{
NodeSelection, Point, PointType, RangeSelection, Selection, SelectionRef, Which,
clamp_range_selection_to_slot_frame, create_node_selection, create_range_selection,
get_point_slot_frame, get_selection, is_same_frame, set_selection,
};
pub use lexical_utils::{
ControlOrOther, KeyboardEventModifierMask, KeyboardEventModifiers, ModifierExpectation,
TypeToNodeMap, apply_node_replacement, clone_with_properties, clone_with_properties_ephemeral,
copy_node, copy_node_with, create, get_adjacent_node, get_cached_type_to_node_map,
get_composition_key, get_node_by_key, get_registered_subtype_map, get_root, get_text_direction,
is_backspace, is_delete, is_escape, is_exact_shortcut_match, is_modifier, is_modifier_match,
is_root_or_shadow_root, is_select_all, is_token_or_segmented, keyboard_event_mask_for_platform,
nodes_of_type, reset_random_key, set_composition_key, split_node,
};
pub use merge_register::merge_register;
pub use node::{LexicalNode, NodeBase, NodeClone, NodeKey, NodeRef};
pub use node_state::{
AnyStateConfig, RequiredNodeStateConfig, StateConfig, StateIsEqual, StateValue,
StateValueConfig, create_state, create_state_with, get_state, get_state_change,
get_state_direct, set_state, set_state_with,
};
pub use nodes::element::{Direction, ElementData};
pub use nodes::paragraph::create_paragraph_node;
pub use nodes::text::{TextData, create_text_node, toggle_text_format_type};
pub use reconciler::Decorators;
pub use ref_counted_registry::{RefCountedRegistry, create_ref_counted_registry};
pub use selection_deletion::{
SelectionAlter, SelectionGranularity, SelectionMovement, is_block_fully_selected,
is_block_fully_selected_by_caret_range,
};
pub use selection_insert_nodes::{insert_nodes, select_all, select_all_in};
pub use serialized_export::{export_node_json, is_compact_export, with_compact_export};
pub use set_dom_style::{StyleObject, get_style_object_from_css, js_trim};
#[cfg(feature = "html")]
pub use set_dom_style::{set_dom_style_from_css, set_dom_style_object};
pub use slot::{
get_declared_slots, get_selection_slot_frame, get_slot, get_slot_frame, get_slot_host,
get_slot_name_within_host, get_slot_names, is_slot_child, is_slot_host, remove_slot, set_slot,
};
pub use structure::{
DeclaredBy, DeclaredNodeStructure, LiftsFromStructure, MergeAdjacentConfig,
MergeAdjacentDeclaration, MergeAdjacentEntry, NodeChildEntry, NodeChildrenConfig, NodeClassRef,
NodeConfigLink, StaticNodeConfig, get_declared_node_structure, internal_is_inline_content,
internal_is_node_structure_enforced, internal_normalize_node_structure,
internal_register_node_structure, is_block_container, iter_static_node_config_chain,
};
pub use updates::{on_update, parse_serialized_node};
pub use warnings::with_warning_handler;
pub const UPSTREAM_VERSION: &str = "0.53.0";