Trevixal API
    Preparing search index...

    Interface FileActions

    File-level actions the host owns, because they touch storage, the network or the page: @trevixal/ui's documents module implements all of them.

    interface FileActions {
        addPasskey?: () => void;
        backups?: () => void;
        compareWithFile?: () => void;
        documentRestrictions?: () => void;
        downloadAs?: (format: string) => void;
        exportFolder?: () => void;
        exportPDF?: () => void;
        exportSelection?: () => void;
        importDocument?: () => void;
        importFromURL?: () => void;
        newDocument?: () => void;
        openDocument?: () => void;
        printPreview?: () => void;
        protectDocument?: () => void;
        saveDocument?: () => void;
        saveVersion?: () => void;
        signDocument?: () => void;
    }
    Index
    addPasskey?: () => void

    Register a passkey that unlocks a protected document beside its password.

    backups?: () => void
    compareWithFile?: () => void

    Compare the document with a file, side by side.

    documentRestrictions?: () => void

    Choose which of copy, cut, paste, print, download and the context menu are blocked.

    downloadAs?: (format: string) => void

    Download in a named format: 'html' | 'markdown' | 'text' | 'json' | 'docx' | 'rtf', or 'encrypted' for a password-protected .tvx envelope (the menu entry appears only when protectDocument is wired too).

    exportFolder?: () => void

    Download every document in a workspace folder at once, as one archive.

    exportPDF?: () => void

    Print the document alone; the browser's print dialog is where the PDF comes from. File ▸ Print… runs this too, or prints the document itself when a host leaves it out.

    exportSelection?: () => void
    importDocument?: () => void
    importFromURL?: () => void

    Clip a web page's article into the document.

    newDocument?: () => void
    openDocument?: () => void
    printPreview?: () => void
    protectDocument?: () => void

    Set (or lift) a password and expiry; @trevixal/extension-security does the crypto.

    saveDocument?: () => void
    saveVersion?: () => void

    Keep the document as it is now under a name, to come back to or compare against.

    signDocument?: () => void

    Sign the document with the author's key, so a change after it shows.