UNPKG

@blinkk/editor

Version:

Structured content editor with live previews.

22 lines (21 loc) 809 B
import { BasePart, Part } from '..'; import { ContentSectionPart } from './section'; import { TemplateResult } from '@blinkk/selective-edit'; import { DataStorage } from '../../../utility/dataStorage'; import { EditorState } from '../../state'; import { LiveEditor } from '../../editor'; export interface ContentHeaderConfig { sections: Array<ContentSectionPart>; /** * State class for working with editor state. */ state: EditorState; storage: DataStorage; } export declare class ContentHeaderPart extends BasePart implements Part { config: ContentHeaderConfig; constructor(config: ContentHeaderConfig); classesForPart(): Record<string, boolean>; handleSectionClick(evt: Event, section: ContentSectionPart): void; template(editor: LiveEditor): TemplateResult; }