UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

22 lines 831 B
/** * Editor Vue — `useEditorVue` composable (ADR 0034 wedge 4). * * Import from `trellis/editor/vue`: * * const editor = useEditorVue({ undoHistory: undo }); * // <div v-html="editor.state.text"></div> * * State is a Vue `reactive` object mirrored from the core via the shared * `syncFromCore` bridge (same pattern as `trellis/table/vue`). * * @module trellis/editor/vue */ import type { EditorConfig, UseEditorReturn } from '../core/index.js'; /** Accept either a config (fresh core) or an existing core (shared mount). */ export type EditorInput = EditorConfig | UseEditorReturn; /** * Create a reactive Vue editor. The core's state is mirrored into a * `reactive()` object on every mutation. */ export declare function useEditorVue(input?: EditorInput): UseEditorReturn; //# sourceMappingURL=index.d.ts.map