Skip to content
GitHubDiscord

prosekit/extensions/loro

awareness?: CursorAwareness

presence?: CursorEphemeralStore


doc: LoroDocType

The Loro instance handles the state of shared data.

awareness?: CursorAwareness

The (legacy) Awareness instance. One of awareness or presence must be provided.

presence?: CursorEphemeralStore

The CursorEphemeralStore instance. One of awareness or presence must be provided.

sync?: Omit<LoroSyncPluginProps, "doc">

Extra options for LoroSyncPlugin.

undo?: Omit<LoroUndoPluginProps, "doc">

Extra options for the LoroUndoPlugin.

cursor?: CursorPluginOptions

Extra options for LoroCursorPlugin or LoroEphemeralCursorPlugin.

function defineLoroCommands(): LoroCommandsExtension


function defineLoroCursorPlugin(options: LoroCursorOptions): PlainExtension


function defineLoroKeymap(): PlainExtension


function defineLoroSyncPlugin(options: LoroSyncPluginProps): PlainExtension


function defineLoroUndoPlugin(options: LoroUndoPluginProps): PlainExtension


function defineLoro(options: LoroOptions): LoroExtension