UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

25 lines (24 loc) 840 B
/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module revision-history/revisiondiff */ import { Collection } from "@ckeditor/ckeditor5-utils"; import type { ModelDocumentFragment } from "@ckeditor/ckeditor5-engine"; import { type ChangeItem } from "./changeitem.js"; /** * Represents a difference between two document revisions. */ export declare class RevisionDiff { readonly newRevisionId: string; readonly oldRevisionId: string; readonly changes: Collection<ChangeItem>; constructor(newRevisionId: string, oldRevisionId: string); } export interface DiffData { model: Record<string, ModelDocumentFragment>; attributes: Record<string, Record<string, unknown>>; changes: Array<ChangeItem>; }