API reference
@searsuite/sear-assembly-doc
Composable rich-document plugins for nodes, layout, inline styles, commands, and observations.
112 exportsderived from source
- enumBoldTextStyleKeysource ↗
-
enum BoldTextStyleKeyPersisted style key owned by the bold text-style plugin.
enum memberBold Bold: "bold" - enumFontFamilyTextStyleKeysource ↗
-
enum FontFamilyTextStyleKeyPersisted style key owned by the font-family text-style plugin.
enum memberFontFamily FontFamily: "fontFamily" - enumFontSizeTextStyleKeysource ↗
-
enum FontSizeTextStyleKeyPersisted style key owned by the font-size text-style plugin.
enum memberFontSize FontSize: "fontSize" - enumItalicTextStyleKeysource ↗
-
enum ItalicTextStyleKeyenum memberItalic Italic: "italic" - enumStrikethroughTextStyleKeysource ↗
-
enum StrikethroughTextStyleKeyenum memberStrikethrough Strikethrough: "strikethrough" - enumTextColorStyleKeysource ↗
-
enum TextColorStyleKeyPersisted style key owned by the text-color style plugin.
enum memberColor Color: "color" - enumUnderlineTextStyleKeysource ↗
-
enum UnderlineTextStyleKeyenum memberUnderline Underline: "underline" - classBoldTextStylePluginsource ↗
-
class BoldTextStylePlugin extends InlineTextStylePluginBaseContributes bold rendering and bold document commands.
constructorconstructor BoldTextStylePlugin(): BoldTextStylePluginpropertysymbolstatic readonly symbol: typeof symbolDI token for resolving BoldTextStylePlugin.
methodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
methodregisterKeyboardHandlers registerKeyboardHandlers(__namedParameters: DocKeyboardHandlerRegistrationContext): voidRegisters keyboard-to-command bindings owned by this document plugin.
__namedParameters: DocKeyboardHandlerRegistrationContext
Inherited members 46
Inherited from InlineTextStylePluginBase.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- apply
- configure
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getPluginConfig
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onEditorDestroy
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerLineBoxes
- registerObservations
- registerSessionState
- registerState
- render
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- classDocPluginsource ↗
-
class DocPlugin<StateType> extends Plugin<SearCoreDoc, NodeProperties, StateType>, PluginExtension<DocCommandBus, ObservationRegistry, SessionStateRegistry, DocRuntimeExtensionRegistry>Convenience base class for a Plugin targeting createDocEditor().
constructorconstructor DocPlugin<StateType>(__namedParameters: PluginSpec<StateType>): DocPlugin<StateType>Creates a plugin with its stable identity and initial state.
__namedParameters: PluginSpec<StateType>
methodconfigure configure(context: DocPluginSetupContext): voidConfigures the document editor before runtime start.
context: DocPluginSetupContext
methodinitialize initialize(context: DocPluginRuntimeContext): voidPrepares behavior that requires initialized Core state but must run before runtime effects.
context: DocPluginRuntimeContext
methodonEditorDestroy onEditorDestroy(context: DocPluginRuntimeContext): voidReleases resources owned by this plugin before the Core is destroyed.
context: DocPluginRuntimeContext
methodregisterBlockFlows registerBlockFlows(registry: RichTextBlockFlowRegistry): voidRegisters plugin-owned top-level block flow resolvers.
registry: RichTextBlockFlowRegistry
methodregisterCapabilities registerCapabilities(registry: DocRuntimeExtensionRegistry): voidPublishes typed runtime services owned by this document plugin.
registry: DocRuntimeExtensionRegistry
methodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
methodregisterInlineStyleRenderers registerInlineStyleRenderers(registry: RichTextRunRenderRegistry): voidRegisters plugin-owned render behavior for styled text runs.
registry: RichTextRunRenderRegistry
methodregisterInlineStyles registerInlineStyles(registry: RichTextInlineStyleRegistry): voidRegisters plugin-owned inline text style readers and mutation policies.
registry: RichTextInlineStyleRegistry
methodregisterKeyboardHandlers registerKeyboardHandlers(context: DocKeyboardHandlerRegistrationContext): voidRegisters keyboard-to-command bindings owned by this document plugin.
context: DocKeyboardHandlerRegistrationContext
methodregisterLineBoxes registerLineBoxes(registry: RichTextLineBoxRegistry): voidRegisters plugin-owned rich-text line box resolvers.
registry: RichTextLineBoxRegistry
methodregisterObservations registerObservations(observations: ObservationRegistry): voidRegisters typed state and event observations owned by this document plugin.
observations: ObservationRegistry
methodregisterSessionState registerSessionState(registry: SessionStateRegistry): voidRegisters local state that must survive an in-memory editor remount.
registry: SessionStateRegistry
methodstart start(context: DocPluginRuntimeContext): voidStarts runtime behavior after the first document frame.
context: DocPluginRuntimeContext
methodregisterServicesstatic registerServices(context: DocPluginServiceContext): voidRegisters bindings required before this Doc plugin is instantiated.
context: DocPluginServiceContext
Inherited members 34
Inherited from Plugin.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- apply
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getPluginConfig
- getState
- hasStateWriteBoundary
- lockCommittedState
- onClick
- onDblClick
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerConfig
- registerState
- render
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- classDocRuntimeExtensionRegistrysource ↗
-
class DocRuntimeExtensionRegistry extends RuntimeCapabilityRegistryRegistry of extension capabilities available to document plugins.
constructorconstructor DocRuntimeExtensionRegistry(): DocRuntimeExtensionRegistrypropertysymbolstatic readonly symbol: typeof symbolDI token for resolving the document runtime extension registry.
Inherited members 7
Inherited from RuntimeCapabilityRegistry.
- classFontFamilyTextStylePluginsource ↗
-
class FontFamilyTextStylePlugin extends InlineTextStylePluginBaseContributes font-family rendering and the set-font-family document command.
constructorconstructor FontFamilyTextStylePlugin(): FontFamilyTextStylePluginpropertysymbolstatic readonly symbol: typeof symbolDI token for resolving FontFamilyTextStylePlugin.
methodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
Inherited members 47
Inherited from InlineTextStylePluginBase.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- apply
- configure
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getPluginConfig
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onEditorDestroy
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerKeyboardHandlers
- registerLineBoxes
- registerObservations
- registerSessionState
- registerState
- render
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- classFontSizeTextStylePluginsource ↗
-
class FontSizeTextStylePlugin extends InlineTextStylePluginBaseContributes font-size rendering and the set-font-size document command.
constructorconstructor FontSizeTextStylePlugin(): FontSizeTextStylePluginpropertysymbolstatic readonly symbol: typeof symbolDI token for resolving FontSizeTextStylePlugin.
methodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
Inherited members 47
Inherited from InlineTextStylePluginBase.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- apply
- configure
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getPluginConfig
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onEditorDestroy
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerKeyboardHandlers
- registerLineBoxes
- registerObservations
- registerSessionState
- registerState
- render
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- classInlineTextStylePluginBasesource ↗
-
class InlineTextStylePluginBase extends DocPlugin<null>Shared lifecycle helper for concrete inline style plugins.
methodapply apply(_state: null, _transaction: unknown): nullApplies a transaction to plugin-owned state and returns the next state.
_state: null_transaction: unknown
methodconfigure configure(context: DocPluginSetupContext): voidConfigures the document editor before runtime start.
context: DocPluginSetupContext
methodgetPluginConfig getPluginConfig(): nullReturns this plugin's runtime configuration view for the current core.
methodonEditorDestroy onEditorDestroy(): voidReleases resources owned by this plugin before the Core is destroyed.
methodregisterInlineStyleRenderers registerInlineStyleRenderers(registry: RichTextRunRenderRegistry): voidRegisters plugin-owned render behavior for styled text runs.
registry: RichTextRunRenderRegistry
methodregisterInlineStyles registerInlineStyles(registry: RichTextInlineStyleRegistry): voidRegisters plugin-owned inline text style readers and mutation policies.
registry: RichTextInlineStyleRegistry
methodregisterState registerState(): { key: PluginKey; state: null }Registers one or more plugin-owned state records with the host manager.
methodrender render(): Node<NodeProperties>[] | nullProduces scene nodes owned by this plugin for the current core state.
Inherited members 40
Inherited from DocPlugin.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerCommands
- registerConfig
- registerKeyboardHandlers
- registerLineBoxes
- registerObservations
- registerSessionState
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- classItalicTextStylePluginsource ↗
-
class ItalicTextStylePlugin extends InlineTextStylePluginBaseContributes italic rendering, mutation, and keyboard commands.
constructorconstructor ItalicTextStylePlugin(): ItalicTextStylePluginpropertysymbolstatic readonly symbol: typeof symbolmethodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
methodregisterKeyboardHandlers registerKeyboardHandlers(__namedParameters: DocKeyboardHandlerRegistrationContext): voidRegisters keyboard-to-command bindings owned by this document plugin.
__namedParameters: DocKeyboardHandlerRegistrationContext
Inherited members 46
Inherited from InlineTextStylePluginBase.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- apply
- configure
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getPluginConfig
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onEditorDestroy
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerLineBoxes
- registerObservations
- registerSessionState
- registerState
- render
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- classParagraphPluginsource ↗
-
class ParagraphPlugin extends DocPlugin<null>Registers paragraph and text node model support plus block-level commands.
constructorconstructor ParagraphPlugin(): ParagraphPluginCreates a ParagraphPlugin instance.
propertysymbolstatic readonly symbol: typeof symbolDI token for resolving ParagraphPlugin.
methodapply apply(_state: null, _transaction: unknown): nullApplies a transaction to plugin-owned state and returns the next state.
_state: null_transaction: unknown
methodconfigure configure(context: DocPluginSetupContext): voidConfigures the document editor before runtime start.
context: DocPluginSetupContext
methodgetPluginConfig getPluginConfig(): nullReturns this plugin's runtime configuration view for the current core.
methodonEditorDestroy onEditorDestroy(): voidReleases resources owned by this plugin before the Core is destroyed.
methodregisterBlockFlows registerBlockFlows(registry: RichTextBlockFlowRegistry): voidRegisters plugin-owned top-level block flow resolvers.
registry: RichTextBlockFlowRegistry
methodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
methodregisterKeyboardHandlers registerKeyboardHandlers(__namedParameters: DocKeyboardHandlerRegistrationContext): voidRegisters keyboard-to-command bindings owned by this document plugin.
__namedParameters: DocKeyboardHandlerRegistrationContext
methodregisterLineBoxes registerLineBoxes(registry: RichTextLineBoxRegistry): voidRegisters plugin-owned rich-text line box resolvers.
registry: RichTextLineBoxRegistry
methodregisterState registerState(): { key: PluginKey; state: null }Registers one or more plugin-owned state records with the host manager.
methodrender render(): Node<NodeProperties>[] | nullProduces scene nodes owned by this plugin for the current core state.
methodregisterServicesstatic registerServices(context: DocPluginServiceContext): voidRegisters paragraph node model support owned by this plugin.
context: DocPluginServiceContext
Inherited members 37
Inherited from DocPlugin.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerObservations
- registerSessionState
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- classRichTextLineBoxPluginsource ↗
-
class RichTextLineBoxPlugin extends DocPlugin<null>Registers rich-text line box resolution for document layout.
constructorconstructor RichTextLineBoxPlugin(): RichTextLineBoxPluginpropertysymbolstatic readonly symbol: typeof symbolDI token for resolving RichTextLineBoxPlugin.
methodapply apply(_state: null, _transaction: unknown): nullApplies a transaction to plugin-owned state and returns the next state.
_state: null_transaction: unknown
methodgetPluginConfig getPluginConfig(): nullReturns this plugin's runtime configuration view for the current core.
methodregisterLineBoxes registerLineBoxes(registry: RichTextLineBoxRegistry): voidRegisters plugin-owned rich-text line box resolvers.
registry: RichTextLineBoxRegistry
methodregisterState registerState(): { key: PluginKey; state: null }Registers one or more plugin-owned state records with the host manager.
methodrender render(): Node<NodeProperties>[] | nullProduces scene nodes owned by this plugin for the current core state.
Inherited members 43
Inherited from DocPlugin.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- configure
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onEditorDestroy
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerCommands
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerKeyboardHandlers
- registerObservations
- registerSessionState
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- classStrikethroughTextStylePluginsource ↗
-
class StrikethroughTextStylePlugin extends InlineTextStylePluginBaseContributes strikethrough rendering, mutation, and keyboard commands.
constructorconstructor StrikethroughTextStylePlugin(): StrikethroughTextStylePluginpropertysymbolstatic readonly symbol: typeof symbolmethodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
methodregisterKeyboardHandlers registerKeyboardHandlers(__namedParameters: DocKeyboardHandlerRegistrationContext): voidRegisters keyboard-to-command bindings owned by this document plugin.
__namedParameters: DocKeyboardHandlerRegistrationContext
Inherited members 46
Inherited from InlineTextStylePluginBase.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- apply
- configure
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getPluginConfig
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onEditorDestroy
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerLineBoxes
- registerObservations
- registerSessionState
- registerState
- render
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- classTablePluginsource ↗
-
class TablePlugin extends DocPlugin<null>Contributes table model and insertion command without adding table knowledge to Core.
constructorconstructor TablePlugin(): TablePluginCreates a TablePlugin instance.
propertysymbolstatic readonly symbol: typeof symbolDI token for resolving TablePlugin.
methodapply apply(_state: null, _transaction: unknown): nullApplies a transaction to plugin-owned state and returns the next state.
_state: null_transaction: unknown
methodconfigure configure(context: DocPluginSetupContext): voidConfigures the document editor before runtime start.
context: DocPluginSetupContext
methodgetPluginConfig getPluginConfig(): nullReturns this plugin's runtime configuration view for the current core.
methodonEditorDestroy onEditorDestroy(): voidReleases resources owned by this plugin before the Core is destroyed.
methodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
methodregisterState registerState(): { key: PluginKey; state: null }Registers one or more plugin-owned state records with the host manager.
methodrender render(): Node<NodeProperties>[] | nullProduces scene nodes owned by this plugin for the current core state.
methodregisterServicesstatic registerServices(context: DocPluginServiceContext): voidRegisters table node model support owned by this plugin.
context: DocPluginServiceContext
Inherited members 40
Inherited from DocPlugin.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerKeyboardHandlers
- registerLineBoxes
- registerObservations
- registerSessionState
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- classTextColorStylePluginsource ↗
-
class TextColorStylePlugin extends InlineTextStylePluginBaseContributes text-color rendering and mutation for text nodes.
constructorconstructor TextColorStylePlugin(): TextColorStylePluginCreates a TextColorStylePlugin instance.
propertysymbolstatic readonly symbol: typeof symbolDI token for resolving TextColorStylePlugin.
methodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
Inherited members 47
Inherited from InlineTextStylePluginBase.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- apply
- configure
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getPluginConfig
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onEditorDestroy
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerKeyboardHandlers
- registerLineBoxes
- registerObservations
- registerSessionState
- registerState
- render
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- classUnderlineTextStylePluginsource ↗
-
class UnderlineTextStylePlugin extends InlineTextStylePluginBaseContributes underline rendering, mutation, and keyboard commands.
constructorconstructor UnderlineTextStylePlugin(): UnderlineTextStylePluginpropertysymbolstatic readonly symbol: typeof symbolmethodregisterCommands registerCommands(commands: DocCommandBus): voidRegisters every stable command id owned by this document plugin.
commands: DocCommandBus
methodregisterKeyboardHandlers registerKeyboardHandlers(__namedParameters: DocKeyboardHandlerRegistrationContext): voidRegisters keyboard-to-command bindings owned by this document plugin.
__namedParameters: DocKeyboardHandlerRegistrationContext
Inherited members 46
Inherited from InlineTextStylePluginBase.
- depth
- documentState
- interestedIn
- pluginKey
- transactionHistory
- transactionOT
- warnOnDuplicateDepth
- key
- apply
- configure
- dirtyRect
- enforceRuntimeWriteBoundary
- enforceStateWriteBoundary
- getPluginConfig
- getState
- hasStateWriteBoundary
- initialize
- lockCommittedState
- onClick
- onDblClick
- onEditorDestroy
- onInitialDataCell
- onInitialDataComplete
- onMouseDown
- onMouseMove
- onMouseUp
- onResize
- onScroll
- onTransactionCommitted
- projectTransaction
- registerBlockFlows
- registerCapabilities
- registerConfig
- registerInlineStyleRenderers
- registerInlineStyles
- registerLineBoxes
- registerObservations
- registerSessionState
- registerState
- render
- sealRuntimeMetadata
- sealRuntimeMethods
- sealRuntimeWrites
- setState
- start
- registerServices
- interfaceDocCaretStateCapabilitysource ↗
-
interface DocCaretStateCapabilityCaret-state capability consumed by document plugins.
- interfaceDocInputBindingRegistryCapabilitysource ↗
-
interface DocInputBindingRegistryCapabilityInput-binding capability consumed by document plugins.
methodregisterKeyboardHandlers registerKeyboardHandlers(handlers: KeyboardRouterHandlers): (): voidhandlers: KeyboardRouterHandlers
methodregisterTextHandlers registerTextHandlers(handlers: TextInputHandlers): (): voidhandlers: TextInputHandlers
- interfaceDocInteractionContentRectsource ↗
-
interface DocInteractionContentRect extends DocInteractionViewportCurrent document content rectangle exposed to interaction plugins.
- interfaceDocInteractionRuntimesource ↗
-
interface DocInteractionRuntimeView services exposed to document interaction plugins.
methodgetContentRect getContentRect(): DocInteractionContentRectmethodgetRoot getRoot(): unknownmethodgetViewport getViewport(): DocInteractionViewportmethodreadRootViewOffset readRootViewOffset(): { x: number; y: number }methodresolveCursorFromPointer resolveCursorFromPointer(input: DocPointerInput): DocCursorPosinput: DocPointerInput
methodsubscribePointerDrag subscribePointerDrag(handlers: DocPointerDragHandlers): (): voidhandlers: DocPointerDragHandlers
- interfaceDocInteractionViewportsource ↗
-
interface DocInteractionViewportCurrent document viewport model exposed to interaction plugins.
- interfaceDocKeyboardHandlerRegistrationContextsource ↗
-
interface DocKeyboardHandlerRegistrationContextServices available while a Doc plugin registers keyboard bindings.
- interfaceDocPluginImplementationsource ↗
-
interface DocPluginImplementation<TPlugin>Injectable DocPlugin class accepted by createDocEditor().
constructorconstructor DocPluginImplementation(...args: never[]): TPluginargs: never[]
propertysymbol readonly symbol: symbolmethodregisterServices registerServices(context: DocPluginServiceContext): voidcontext: DocPluginServiceContext
- interfaceDocPluginRuntimesource ↗
-
interface DocPluginRuntimeStable host capabilities supplied to a DocPlugin after editor assembly.
propertycommands readonly commands: DocCommandBusCommand bus exposed by the document editor instance.
propertydocument readonly document: { blockFlows: RichTextBlockFlowRegistry; core: SearCoreDoc; cursor: DocCursorManager; inlineStyles: RichTextInlineStyleRegistry; input: DocInputPlugin; layout: DocLayoutEngine; lineBoxes: RichTextLineBoxRegistry; nodes: DocNodeRegistry }Rich-document domain services.
propertyevents readonly events: { engine: EventEngine<NodeProperties>; registrar: EventRegistrar }Event and hit-test services used by document interactions.
propertyextensions readonly extensions: DocRuntimeExtensionRegistryExtension capability registry for third-party document plugins.
propertyinput readonly input: { keyboard: KeyboardRouter; pointer: PointerCapture; text: TextInput }Host input adapters used by document editing commands.
propertyobservations readonly observations: ObservationRegistryTyped state and event observations owned by this editor instance.
propertyplatform readonly platform: PlatformPlatform adapter for timers, resize observation, and diagnostics.
propertyplugins readonly plugins: PluginManager<SearCoreDoc, NodeProperties>Ordered document plugin registry for this editor.
propertyrender readonly render: { context: RenderContext; engine: DocRenderEngineCapability }Document render services and visible context.
propertyscroll readonly scroll: { manager: ScrollManager }Scroll state shared by document layout and rendering.
propertysession readonly session: SessionStateRegistryLocal remount state contributed by built-in and third-party plugins.
propertytextShaper readonly textShaper: TextShaperText shaper used by document layout and rendering.
- interfaceDocPluginRuntimeContextsource ↗
-
interface DocPluginRuntimeContext extends DocPluginSetupContextDocument setup capabilities plus the Core created by createDocEditor().
propertycore readonly core: SearCoreDocCore document runtime.
- interfaceDocPluginServiceContextsource ↗
-
interface DocPluginServiceContextServices available while createDocEditor() registers document plugins.
propertycontainer readonly container: ContainerDI container used by the document assembly root.
- interfaceDocPluginSetupContextsource ↗
-
interface DocPluginSetupContextTyped public services available before createDocEditor() starts Core.
- interfaceDocPointerDragHandlerssource ↗
-
interface DocPointerDragHandlersDocument pointer-drag lifecycle consumed by interaction plugins.
- interfaceDocPointerInputsource ↗
-
interface DocPointerInputPointer input used by document interaction plugins.
propertyviewX readonly viewX: numberpropertyviewY readonly viewY: numbermethodpreventDefault preventDefault(): void - interfaceDocRenderEngineCapabilitysource ↗
-
interface DocRenderEngineCapabilityRender-engine surface exposed to Doc plugins.
methodrender render(pluginKey?: unknown): voidpluginKey: unknown
- interfaceDocRenderLayoutServiceCapabilitysource ↗
-
interface DocRenderLayoutServiceCapabilityPublic layout-service surface exposed to Doc plugins and hosts.
methodgetLatestVirtualLayoutSummary getLatestVirtualLayoutSummary(): DocVirtualLayoutSummary | nullmethodreset reset(): voidmethodsubscribeVirtualLayoutSummary subscribeVirtualLayoutSummary(listener: DocVirtualLayoutSummaryListener): (): voidlistener: DocVirtualLayoutSummaryListener
- interfaceDocVirtualLayoutSummarysource ↗
-
interface DocVirtualLayoutSummaryPublic virtual layout summary exposed through the Doc layout-service capability.
propertyblockRender readonly blockRender?: DocBlockRenderDebugSnapshotpropertycacheHits readonly cacheHits: numberpropertycacheMisses readonly cacheMisses: numberpropertycursorBlock readonly cursorBlock: number | nullpropertydocumentHeight readonly documentHeight: numberpropertyheightIndexUpdated readonly heightIndexUpdated: booleanpropertyinitialLoadMs readonly initialLoadMs?: numberpropertymaterializedBlocks readonly materializedBlocks: numberpropertymaterializedIndexes readonly materializedIndexes: stringpropertymodel readonly model: "reused" | "rebuilt"propertyrangeEnd readonly rangeEnd: numberpropertyrangeStart readonly rangeStart: numberpropertyrenderPhase readonly renderPhase?: DocVirtualLayoutRenderPhasepropertytimings readonly timings: DocVirtualLayoutTimingSummarypropertytotalBlocks readonly totalBlocks: number - interfaceDocVirtualLayoutTimingSummarysource ↗
-
interface DocVirtualLayoutTimingSummaryTiming summary reported by virtual document layout instrumentation.
propertycursorSelectionMs readonly cursorSelectionMs: numberpropertydocumentModelMs readonly documentModelMs: numberpropertyheightCorrectionMs readonly heightCorrectionMs: numberpropertymaterializeBlocksMs readonly materializeBlocksMs: numberpropertyrenderPrepareMode readonly renderPrepareMode?: "full" | "viewport"propertyrenderPrepareMs readonly renderPrepareMs?: numberpropertysnapshotCacheMs readonly snapshotCacheMs: numberpropertyviewportRangeMs readonly viewportRangeMs: numberpropertyvirtualLayoutTotalMs readonly virtualLayoutTotalMs: number - interfaceInsertDocTableInputsource ↗
-
interface InsertDocTableInputInput accepted by InsertDocTableCommand.
- interfaceInsertDocTextInputsource ↗
-
interface InsertDocTextInputInput accepted by InsertDocTextCommand.
propertytext readonly text: stringText to insert at the current document selection.
- interfaceLoadDocumentInputsource ↗
-
interface LoadDocumentInputInput accepted by LoadDocumentCommand.
propertydocument readonly document: RichDocNode[]Rich-document content to load into the document editor.
- interfaceMoveDocCursorInputsource ↗
-
interface MoveDocCursorInputInput accepted by MoveDocCursorCommand.
- interfaceSetDocBoldInputsource ↗
-
interface SetDocBoldInputInput accepted by SetDocBoldCommand. A null or false value clears bold.
propertybold readonly bold: boolean | null - interfaceSetDocCompositionInputsource ↗
-
interface SetDocCompositionInputInput accepted by SetDocCompositionCommand.
propertycaretOffset readonly caretOffset: numberCaret offset inside the composing text.
propertytext readonly text: stringCurrent composing text emitted by the host input method.
- interfaceSetDocFontFamilyInputsource ↗
-
interface SetDocFontFamilyInputInput accepted by SetDocFontFamilyCommand. A null or empty value clears the font family.
propertyfontFamily readonly fontFamily: string | null - interfaceSetDocFontSizeInputsource ↗
-
interface SetDocFontSizeInputInput accepted by SetDocFontSizeCommand. A null or empty value clears the font size.
propertyfontSize readonly fontSize: number | null - interfaceSetDocItalicInputsource ↗
-
interface SetDocItalicInputpropertyitalic readonly italic: boolean | null - interfaceSetDocLineSpacingInputsource ↗
-
interface SetDocLineSpacingInputInput accepted by SetDocLineSpacingCommand. Null clears the paragraph override.
propertylineSpacing readonly lineSpacing: RichTextLineSpacing | null - interfaceSetDocParagraphSpacingAfterInputsource ↗
-
interface SetDocParagraphSpacingAfterInputInput accepted by SetDocParagraphSpacingAfterCommand. Null clears the paragraph override.
propertyspacingAfter readonly spacingAfter: number | null - interfaceSetDocSelectionInputsource ↗
-
interface SetDocSelectionInputInput accepted by SetDocSelectionCommand.
propertyselection readonly selection: DocSelectionSelection to make active in the document editor.
- interfaceSetDocStrikethroughInputsource ↗
-
interface SetDocStrikethroughInputpropertystrikethrough readonly strikethrough: boolean | null - interfaceSetDocTextColorInputsource ↗
-
interface SetDocTextColorInputInput accepted by SetDocTextColorCommand. A null or empty value clears the text color.
propertycolor readonly color: string | null - interfaceSetDocUnderlineInputsource ↗
-
interface SetDocUnderlineInputpropertyunderline readonly underline: boolean | null - typeDocRuntimeCapabilityReadersource ↗
-
type DocRuntimeCapabilityReader = RuntimeCapabilityReaderRead-only view of editor-local document runtime capabilities exposed to hosts.
- typeDocRuntimeCapabilityTokensource ↗
-
type DocRuntimeCapabilityToken = RuntimeCapability<T>Typed token used to publish and consume document runtime capabilities.
- typeDocVirtualLayoutRenderPhasesource ↗
-
type DocVirtualLayoutRenderPhase = "initial" | "realtime"Render phase reported by virtual document layout instrumentation.
- typeDocVirtualLayoutSummaryListenersource ↗
-
type DocVirtualLayoutSummaryListener = (summary: DocVirtualLayoutSummary): voidListener notified when the virtual layout summary changes.
- variableClearDocCompositionCommandsource ↗
-
ClearDocCompositionCommand: DocCommandDefinition<void, DocCommandResult>Clears the active IME composition preview text.
- variableDeleteDocBackwardCommandsource ↗
-
DeleteDocBackwardCommand: DocCommandDefinition<void, DocCommandResult>Deletes content before the current document selection.
- variableDocCaretPluginKeysource ↗
-
DocCaretPluginKey: PluginKey - variableDocCompositionPluginKeysource ↗
-
DocCompositionPluginKey: PluginKey - variableDocContentRenderPluginKeysource ↗
-
DocContentRenderPluginKey: PluginKeyDefault document feature plugin keys used by command pipelines.
- variableDocPluginRuntimeCapabilitysource ↗
-
DocPluginRuntimeCapability: { CaretState: DocRuntimeCapability<DocCaretStateCapability>; Composition: DocRuntimeCapability<DocCompositionManager>; InputBindings: DocRuntimeCapability<DocInputBindingRegistryCapability>; Interaction: DocRuntimeCapability<DocInteractionRuntime> }Runtime extension tokens owned by document plugins assembled by editor composition roots.
- variableDocRuntimeCapabilitysource ↗
-
DocRuntimeCapability: { BlockFlows: DocRuntimeCapability<RichTextBlockFlowRegistry>; Commands: DocRuntimeCapability<DocCommandBus>; Config: DocRuntimeCapability<ConfigEngine<any>>; Document: DocRuntimeCapability<{ blockFlows: RichTextBlockFlowRegistry; core: SearCoreDoc; cursor: DocCursorManager; inlineStyles: RichTextInlineStyleRegistry; input: DocInputPlugin; layout: DocLayoutEngine; lineBoxes: RichTextLineBoxRegistry; nodes: DocNodeRegistry }>; Events: DocRuntimeCapability<{ engine: EventEngine<NodeProperties>; registrar: EventRegistrar }>; InlineStyles: DocRuntimeCapability<RichTextInlineStyleRegistry>; Input: DocRuntimeCapability<{ keyboard: KeyboardRouter; pointer: PointerCapture; text: TextInput }>; LayoutService: DocRuntimeCapability<DocRenderLayoutServiceCapability>; … }Document runtime capabilities registered by the default assembly root.
- variableDocSelectionPluginKeysource ↗
-
DocSelectionPluginKey: PluginKey - variableFocusDocCommandsource ↗
-
FocusDocCommand: DocCommandDefinition<void, DocCommandResult>Focuses the host text-input adapter for the document editor.
- variableInsertDocTableCommandsource ↗
-
InsertDocTableCommand: DocCommandDefinition<InsertDocTableInput, DocCommandResult>Inserts a table block at the current document position.
- variableInsertDocTextCommandsource ↗
-
InsertDocTextCommand: DocCommandDefinition<InsertDocTextInput, DocCommandResult>Inserts text at the current document selection.
- variableLoadDocumentCommandsource ↗
-
LoadDocumentCommand: DocCommandDefinition<LoadDocumentInput, DocCommandResult>Replaces the active document content.
- variableMoveDocCursorCommandsource ↗
-
MoveDocCursorCommand: DocCommandDefinition<MoveDocCursorInput, DocCommandResult>Moves the current document cursor.
- variableRenderDocCommandsource ↗
-
RenderDocCommand: DocCommandDefinition<void, DocCommandResult>Requests a document render without changing content.
- variableSelectAllDocCommandsource ↗
-
SelectAllDocCommand: DocCommandDefinition<void, DocCommandResult>Selects all document content.
- variableSetDocBoldCommandsource ↗
-
SetDocBoldCommand: DocCommandDefinition<SetDocBoldInput, DocCommandResult>Sets whether the selected document text is bold.
- variableSetDocCompositionCommandsource ↗
-
SetDocCompositionCommand: DocCommandDefinition<SetDocCompositionInput, DocCommandResult>Sets the active IME composition preview text.
- variableSetDocFontFamilyCommandsource ↗
-
SetDocFontFamilyCommand: DocCommandDefinition<SetDocFontFamilyInput, DocCommandResult>Sets the font family on the selected document text.
- variableSetDocFontSizeCommandsource ↗
-
SetDocFontSizeCommand: DocCommandDefinition<SetDocFontSizeInput, DocCommandResult>Sets the font size in pixels on the selected document text.
- variableSetDocItalicCommandsource ↗
-
SetDocItalicCommand: DocCommandDefinition<SetDocItalicInput, DocCommandResult> - variableSetDocLineSpacingCommandsource ↗
-
SetDocLineSpacingCommand: DocCommandDefinition<SetDocLineSpacingInput, DocCommandResult>Sets or clears line-spacing overrides on the selected paragraphs.
- variableSetDocParagraphSpacingAfterCommandsource ↗
-
SetDocParagraphSpacingAfterCommand: DocCommandDefinition<SetDocParagraphSpacingAfterInput, DocCommandResult>Sets or clears after-spacing overrides on the selected paragraphs.
- variableSetDocSelectionCommandsource ↗
-
SetDocSelectionCommand: DocCommandDefinition<SetDocSelectionInput, DocCommandResult>Sets the active document selection without changing content.
- variableSetDocStrikethroughCommandsource ↗
-
SetDocStrikethroughCommand: DocCommandDefinition<SetDocStrikethroughInput, DocCommandResult> - variableSetDocTextColorCommandsource ↗
-
SetDocTextColorCommand: DocCommandDefinition<SetDocTextColorInput, DocCommandResult>Sets the text color on the selected document text.
- variableSetDocUnderlineCommandsource ↗
-
SetDocUnderlineCommand: DocCommandDefinition<SetDocUnderlineInput, DocCommandResult> - variableSplitDocParagraphCommandsource ↗
-
SplitDocParagraphCommand: DocCommandDefinition<void, DocCommandResult>Splits the current paragraph at the current document selection.
- variableToggleDocBoldCommandsource ↗
-
ToggleDocBoldCommand: DocCommandDefinition<void, DocCommandResult>Toggles bold on the selected document text.
- variableToggleDocItalicCommandsource ↗
-
ToggleDocItalicCommand: DocCommandDefinition<void, DocCommandResult> - variableToggleDocStrikethroughCommandsource ↗
-
ToggleDocStrikethroughCommand: DocCommandDefinition<void, DocCommandResult> - variableToggleDocUnderlineCommandsource ↗
-
ToggleDocUnderlineCommand: DocCommandDefinition<void, DocCommandResult> - functioncreateBoldContributionsource ↗
-
createBoldContribution(): RichTextInlineStyleContributionCreates the shared bold inline style contribution.
- functioncreateBoldRenderContributionsource ↗
-
createBoldRenderContribution(): RichTextRunRenderContributionCreates the render-layer bold contribution.
- functioncreateDocCommandsource ↗
-
createDocCommand(id: string, renderPluginKey: PluginKey | readonly PluginKey[], createTransaction?: (): Transaction, effects?: readonly DocCommandEffect[] | undefined, localAction?: (): void): DocEditorCommandCreates a pipeline-backed document command with an optional transaction or local action.
id: stringrenderPluginKey: PluginKey | readonly PluginKey[]createTransaction: (): Transactioneffects: readonly DocCommandEffect[] | undefinedlocalAction: (): void
- functioncreateFontFamilyContributionsource ↗
-
createFontFamilyContribution(): RichTextInlineStyleContributionCreates the shared font-family inline style contribution.
- functioncreateFontFamilyRenderContributionsource ↗
-
createFontFamilyRenderContribution(): RichTextRunRenderContributionCreates the render-layer font-family contribution.
- functioncreateFontSizeContributionsource ↗
-
createFontSizeContribution(): RichTextInlineStyleContributionCreates the shared font-size inline style contribution.
- functioncreateFontSizeRenderContributionsource ↗
-
createFontSizeRenderContribution(): RichTextRunRenderContributionCreates the render-layer font-size contribution.
- functioncreateItalicContributionsource ↗
-
createItalicContribution(): RichTextInlineStyleContribution - functioncreateItalicRenderContributionsource ↗
-
createItalicRenderContribution(): RichTextRunRenderContributionCreates the render-layer italic contribution.
- functioncreateStrikethroughContributionsource ↗
-
createStrikethroughContribution(): RichTextInlineStyleContribution - functioncreateStrikethroughRenderContributionsource ↗
-
createStrikethroughRenderContribution(): RichTextRunRenderContributionCreates the render-layer strikethrough contribution.
- functioncreateTextColorContributionsource ↗
-
createTextColorContribution(): RichTextInlineStyleContributionCreates the shared text-color inline style contribution.
- functioncreateTextColorRenderContributionsource ↗
-
createTextColorRenderContribution(): RichTextRunRenderContributionCreates the render-layer text-color contribution.
- functioncreateUnderlineContributionsource ↗
-
createUnderlineContribution(): RichTextInlineStyleContribution - functioncreateUnderlineRenderContributionsource ↗
-
createUnderlineRenderContribution(): RichTextRunRenderContributionCreates the render-layer underline contribution.
- functiondefineDocRuntimeCapabilitysource ↗
-
defineDocRuntimeCapability<T>(id: string): DocRuntimeCapability<T>Creates a typed document runtime capability token.
id: string
- functionregisterDocPluginBlockFlowssource ↗
-
registerDocPluginBlockFlows(plugins: readonly unknown[], registry: RichTextBlockFlowRegistry): (): voidRegisters every top-level block flow contribution owned by document plugins.
plugins: readonly unknown[]registry: RichTextBlockFlowRegistry
- functionregisterDocPluginCapabilitiessource ↗
-
registerDocPluginCapabilities(plugins: readonly unknown[], registry: DocRuntimeExtensionRegistry): voidPublishes every typed runtime capability contributed by document plugins.
plugins: readonly unknown[]registry: DocRuntimeExtensionRegistry
- functionregisterDocPluginCommandssource ↗
-
registerDocPluginCommands(plugins: readonly unknown[], commands: DocCommandBus): (): voidRuns the register document plugin commands helper.
plugins: readonly unknown[]commands: DocCommandBus
- functionregisterDocPluginInlineStyleRendererssource ↗
-
registerDocPluginInlineStyleRenderers(plugins: readonly unknown[], registry: RichTextRunRenderRegistry): (): voidRegisters every rich-text run renderer contributed by document plugins.
plugins: readonly unknown[]registry: RichTextRunRenderRegistry
- functionregisterDocPluginInlineStylessource ↗
-
registerDocPluginInlineStyles(plugins: readonly unknown[], registry: RichTextInlineStyleRegistry): (): voidRegisters every inline text-style contribution owned by document plugins.
plugins: readonly unknown[]registry: RichTextInlineStyleRegistry
- functionregisterDocPluginKeyboardHandlerssource ↗
-
registerDocPluginKeyboardHandlers(plugins: readonly unknown[], context: DocKeyboardHandlerRegistrationContext): (): voidRegisters every keyboard binding contributed by document plugins.
plugins: readonly unknown[]context: DocKeyboardHandlerRegistrationContext
- functionregisterDocPluginLineBoxessource ↗
-
registerDocPluginLineBoxes(plugins: readonly unknown[], registry: RichTextLineBoxRegistry): (): voidRegisters every rich-text line box contribution owned by document plugins.
plugins: readonly unknown[]registry: RichTextLineBoxRegistry
- functionregisterDocPluginObservationssource ↗
-
registerDocPluginObservations(plugins: readonly unknown[], observations: ObservationRegistry): voidRegisters every typed observation source contributed by document plugins.
plugins: readonly unknown[]observations: ObservationRegistry
- functionregisterDocPluginSessionStatessource ↗
-
registerDocPluginSessionStates(plugins: readonly unknown[], registry: SessionStateRegistry): voidRegisters every local session-state adapter contributed by document plugins.
plugins: readonly unknown[]registry: SessionStateRegistry
No public exports match that search.