UNPKG

@textbus/xnote

Version:

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

19 lines (18 loc) 926 B
import { Component, CompositionStartEventData, ComponentStateLiteral, ContentType, Event, Slot, Subject, Textbus } from '@textbus/core'; import { ComponentLoader } from '@textbus/platform-browser'; import { ViewComponentProps } from '@textbus/adapter-viewfly'; import './root.component.scss'; export interface RootComponentState { content: Slot; } export declare class RootComponent extends Component<RootComponentState> { static componentName: string; static type: ContentType; static fromJSON(textbus: Textbus, json: ComponentStateLiteral<RootComponentState>): RootComponent; onCompositionStart: Subject<Event<Slot, CompositionStartEventData>>; getSlots(): Slot[]; setup(): void; afterCheck(): void; } export declare function RootView(props: ViewComponentProps<RootComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element; export declare const rootComponentLoader: ComponentLoader;