@textbus/xnote
Version:
A high-performance rich text editor that supports multiplayer online collaboration.
17 lines (16 loc) • 621 B
TypeScript
import { Component, ComponentStateLiteral, ContentType, Slot, Textbus } from '@textbus/core';
export interface StepComponentItem {
slot: Slot;
}
export interface StepComponentState {
step: number;
items: StepComponentItem[];
}
export declare function createStepItem(textbus: Textbus): StepComponentItem;
export declare class StepComponent extends Component<StepComponentState> {
static componentName: string;
static type: ContentType;
static fromJSON(textbus: Textbus, json: ComponentStateLiteral<StepComponentState>): StepComponent;
getSlots(): Slot[];
removeSlot(slot: Slot): boolean;
}