injectYjsUndoManager

Creates a reactive Angular adapter for Yjs UndoManager. Exposes canUndo and canRedo read-only Signals to easily bind undo/redo UI buttons in collaborative editors. Automatically tracks local signal and directive edits by default.

TypeScriptexample.ts
import { injectYjsUndoManager } from '@angular-helpers/yjs'

# Properties

FieldTypeDescription
typeScopeY.AbstractType<any> | Y.AbstractType<any>[]The Yjs shared type(s) to track for undo/redo operations.
options?YjsUndoOptionsOptional configuration for trackedOrigins, ignoredOrigins, or captureTimeout.
LCP N/A
CLS N/A
INP N/A