Trevixal API
    Preparing search index...

    Interface BlockCommands

    Advanced-block commands the toolbar drives. Every member is optional: a host wiring only callouts gets only the callout control, never a dead button for the rest.

    interface BlockCommands {
        addAccordionItem?: Command;
        addTab?: Command;
        citationStyle?: (doc: EditorNode) => string;
        importSources?: (text: string) => Command;
        insertAccordion?: (count: number) => Command;
        insertAnchor?: (id: string) => Command;
        insertBadge?: (label: string, tone: string) => Command;
        insertButton?: (label: string, href: string) => Command;
        insertCallout?: (variant: string) => Command;
        insertCaption?: (kind: string, label: string, text: string) => Command;
        insertCaptionList?: (kind: string) => Command;
        insertCard?: Command;
        insertCitation?: (text: string, id?: string) => Command;
        insertColumns?: (count: number) => Command;
        insertCrossReference?: (
            target: Pick<ReferenceTargetInfo, "id" | "path">,
            format: string,
        ) => Command;
        insertDocumentIndex?: Command;
        insertEndnote?: Command;
        insertFootnote?: Command;
        insertMap?: (coordinates: string, label: string, zoom: number) => Command;
        insertMarginNote?: (color: string) => Command;
        insertPageBreak?: Command;
        insertPoll?: (question: string, options: readonly string[]) => Command;
        insertReferenceList?: Command;
        insertSectionBreak?: (section: PageSection) => Command;
        insertTabs?: (count: number) => Command;
        insertTimeline?: Command;
        insertTimelineItem?: Command;
        insertToggleBlock?: Command;
        markIndexEntry?: (entry: string, sub: string) => Command;
        referenceChoices?: (
            doc: EditorNode,
        ) => readonly { id: string; label: string }[];
        referenceTargets?: (doc: EditorNode) => readonly ReferenceTargetInfo[];
        removeTab?: Command;
        renumberCitations?: Command;
        setCalloutVariant?: (variant: string) => Command;
        setCitationStyle?: (style: string) => Command | null;
        setColumnCount?: (count: number) => Command;
        setTemplateVariables?: (
            variables: Readonly<Record<string, string>>,
        ) => Command;
        toggleToggleOpen?: Command;
        wrapInConditional?: (variable: string, equals: string | null) => Command;
    }
    Index
    addAccordionItem?: Command
    addTab?: Command
    citationStyle?: (doc: EditorNode) => string

    The style the reference list is in, for the tick.

    importSources?: (text: string) => Command

    Sources from a BibTeX or CSL-JSON file's text: Insert ▸ Import sources.

    insertAccordion?: (count: number) => Command
    insertAnchor?: (id: string) => Command
    insertBadge?: (label: string, tone: string) => Command
    insertButton?: (label: string, href: string) => Command
    insertCallout?: (variant: string) => Command
    insertCaption?: (kind: string, label: string, text: string) => Command
    insertCaptionList?: (kind: string) => Command
    insertCard?: Command
    insertCitation?: (text: string, id?: string) => Command
    insertColumns?: (count: number) => Command
    insertCrossReference?: (
        target: Pick<ReferenceTargetInfo, "id" | "path">,
        format: string,
    ) => Command
    insertDocumentIndex?: Command
    insertEndnote?: Command
    insertFootnote?: Command
    insertMap?: (coordinates: string, label: string, zoom: number) => Command

    A map of the place written as lat, lng; the command fails for anything else.

    insertMarginNote?: (color: string) => Command
    insertPageBreak?: Command
    insertPoll?: (question: string, options: readonly string[]) => Command
    insertReferenceList?: Command
    insertSectionBreak?: (section: PageSection) => Command

    A section break: what follows is set on pages of its own.

    insertTabs?: (count: number) => Command
    insertTimeline?: Command
    insertTimelineItem?: Command
    insertToggleBlock?: Command
    markIndexEntry?: (entry: string, sub: string) => Command
    referenceChoices?: (doc: EditorNode) => readonly { id: string; label: string }[]

    The entries a new citation can point at; with it, Insert ▸ Citation offers them.

    referenceTargets?: (doc: EditorNode) => readonly ReferenceTargetInfo[]
    removeTab?: Command
    renumberCitations?: Command
    setCalloutVariant?: (variant: string) => Command
    setCitationStyle?: (style: string) => Command | null

    Set the reference list in apa, mla, chicago or ieee: Insert ▸ Citation style.

    setColumnCount?: (count: number) => Command
    setTemplateVariables?: (variables: Readonly<Record<string, string>>) => Command
    toggleToggleOpen?: Command
    wrapInConditional?: (variable: string, equals: string | null) => Command