@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
18 lines (17 loc) • 901 B
TypeScript
import { VersionSnapshot } from "@blocknote/core/extensions";
/**
* The "current version" list row. Unlike {@link Snapshot}, it isn't backed by a
* stored snapshot: clicking it previews the live document (read-only, diffed
* against the most recent snapshot) or returns to live editing. It is rendered
* only when the backend's `list()` emits an entry whose id is
* {@link CURRENT_VERSION_ID} (e.g. YHub when the live doc has edits beyond the
* latest saved version).
*
* The `snapshot` prop carries display metadata (last-edit timestamp + author)
* but is never sent to `getContent`/`getAttributions` — those go through
* `previewCurrentVersion`, which serialises the live document directly.
*/
export declare const CurrentSnapshot: ({ snapshot, previousSnapshot, }: {
snapshot: VersionSnapshot;
previousSnapshot?: VersionSnapshot;
}) => import("react/jsx-runtime").JSX.Element;