Trevixal API
    Preparing search index...

    Interface BlockUICommands

    The command bundle @trevixal/ui expects, so the UI package can offer the advanced blocks without importing this one:

    createEditorUI(editor, { container, blockCommands: blockUICommands() })
    
    interface BlockUICommands {
        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<ReferenceTarget, "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 ReferenceTarget[];
        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
    importSources: (text: string) => Command

    Sources from a BibTeX or CSL-JSON file's text; throws SourceFileError when it has none.

    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<ReferenceTarget, "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 }[]

    The entries a new citation can point at, to pick from.

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

    Set the reference list in apa, mla, chicago or ieee.

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