@twip/web
    Preparing search index...

    Interface ReviewState

    Track changes and comments.

    interface ReviewState {
        activeComment: CommentId | null;
        comments: number;
        markupView: MarkupView;
        protection?: {
            enforced: boolean;
            formatting: boolean;
            inEditableRange: boolean;
            kind: "none" | "readOnly" | "comments" | "trackedChanges" | "forms";
            password: boolean;
            unprotectedSections: number[];
        };
        revisions: number;
        tracking: boolean;
        trackingLocked: boolean;
    }
    Index
    activeComment: CommentId | null

    The active comment thread.

    comments: number

    The comment count.

    markupView: MarkupView

    The markup view.

    protection?: {
        enforced: boolean;
        formatting: boolean;
        inEditableRange: boolean;
        kind: "none" | "readOnly" | "comments" | "trackedChanges" | "forms";
        password: boolean;
        unprotectedSections: number[];
    }

    What the document's protection allows, when it has one.

    Type Declaration

    • enforced: boolean
    • formatting: boolean
    • inEditableRange: boolean

      The selection is in a range the author may edit.

    • kind: "none" | "readOnly" | "comments" | "trackedChanges" | "forms"
    • password: boolean

      Stopping it needs a password.

    • unprotectedSections: number[]

      Filling in forms: the sections (by index) anyone may edit.

    revisions: number

    The revision count.

    tracking: boolean

    Changes are tracked.

    trackingLocked: boolean

    Document protection keeps tracking on.