Vizel API / svelte/src / VizelEditorSnapshot
Interface: VizelEditorSnapshot
Defined in: packages/svelte/src/runes/createVizelEditorState.svelte.ts:26
Snapshot delivered to a createVizelEditorState selector on every re-evaluation.
Svelte's $derived selector idiom projects a single value, so the Svelte-idiomatic form passes the selector a snapshot rather than a bare editor, and the snapshot exposes the transaction the feature manifest requires every adapter to read. The selector INPUT shape converges across the React, Vue, and Svelte adapters only as a consequence of each framework idiom plus feature parity — not for API symmetry. The RETURN/delivery diverges idiomatically: this rune returns a $derived accessor, React returns T, and Vue returns a ComputedRef<T>.
Properties
editor
readonly editor: Editor | null;Defined in: packages/svelte/src/runes/createVizelEditorState.svelte.ts:28
Current editor instance, or null before mount and during SSR.
transaction
readonly transaction: Transaction | null;Defined in: packages/svelte/src/runes/createVizelEditorState.svelte.ts:30
Latest Tiptap transaction, or null before the first one fires.