UNPKG

@blinkk/editor

Version:

Structured content editor with live previews.

32 lines (31 loc) 1.14 kB
import { BasePart, Part } from '..'; import { TemplateResult } from '@blinkk/selective-edit'; import { DataStorage } from '../../../utility/dataStorage'; import { DeviceData } from '../../api'; import { EditorState } from '../../state'; import { LiveEditor } from '../../editor'; export interface PreviewToolbarConfig { /** * State class for working with editor state. */ state: EditorState; /** * Storage class for working with settings. */ storage: DataStorage; } export declare class PreviewToolbarPart extends BasePart implements Part { config: PreviewToolbarConfig; device?: DeviceData; isDeviceMode?: boolean; isExpanded?: boolean; isRotated?: boolean; constructor(config: PreviewToolbarConfig); classesForPart(): Record<string, boolean>; loadDevices(): void; template(editor: LiveEditor): TemplateResult; templateIconBreakout(editor: LiveEditor): TemplateResult; templateIconExpanded(editor: LiveEditor): TemplateResult; templateIconDeviceMode(editor: LiveEditor): TemplateResult; templateIconDeviceRotate(editor: LiveEditor): TemplateResult; }