UNPKG

@textbus/xnote

Version:

A high-performance rich text editor that supports multiplayer online collaboration.

17 lines (16 loc) 673 B
import { Component, ComponentStateLiteral, ContentType, Slot, Textbus } from '@textbus/core'; export interface TimelineComponentItem { theme: string; slot: Slot; } export interface TimelineComponentState { items: TimelineComponentItem[]; } export declare function createTimelineItem(textbus: Textbus, theme: string): TimelineComponentItem; export declare class TimelineComponent extends Component<TimelineComponentState> { static componentName: string; static type: ContentType; static fromJSON(textbus: Textbus, json: ComponentStateLiteral<TimelineComponentState>): TimelineComponent; getSlots(): Slot[]; removeSlot(slot: Slot): boolean; }