@textbus/xnote
Version:
A high-performance rich text editor that supports multiplayer online collaboration.
21 lines (20 loc) • 1.13 kB
TypeScript
import { Component, ComponentStateLiteral, ContentType, Slot, Textbus, ZenCodingGrammarInterceptor } from '@textbus/core';
import { ComponentLoader } from '@textbus/platform-browser';
import { ViewComponentProps } from '@textbus/adapter-viewfly';
import './blockquote.component.scss';
export interface BlockquoteComponentState {
slot: Slot;
}
export declare class BlockquoteComponent extends Component<BlockquoteComponentState> {
static type: ContentType;
static componentName: string;
static zenCoding: ZenCodingGrammarInterceptor<BlockquoteComponentState>;
static fromJSON(textbus: Textbus, json: ComponentStateLiteral<BlockquoteComponentState>): BlockquoteComponent;
constructor(state?: BlockquoteComponentState);
getSlots(): Slot[];
setup(): void;
}
export declare function toBlockquote(textbus: Textbus): void;
export declare function registerBlockquoteShortcut(textbus: Textbus): void;
export declare function BlockquoteView(props: ViewComponentProps<BlockquoteComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
export declare const blockquoteComponentLoader: ComponentLoader;