@textbus/platform-node
Version:
Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.
19 lines (18 loc) • 774 B
TypeScript
import { Component, ViewMount, Adapter, Subject } from '@textbus/core';
import { VDOMElement, VDOMText } from '@viewfly/platform-browser';
import { ComponentSetup, DynamicRef, JSX } from '@viewfly/core';
export interface ViewVDomComponentProps<T extends Component> {
component: T;
rootRef: DynamicRef<VDOMElement>;
}
export interface ViewflyVDomAdapterComponents {
[key: string]: ComponentSetup<ViewVDomComponentProps<any>>;
}
export declare class NodeViewAdapter extends Adapter<VDOMElement, VDOMText, JSX.Element, JSX.Element> {
onViewUpdated: Subject<void>;
host: VDOMElement;
private components;
private componentRefs;
constructor(components: ViewflyVDomAdapterComponents, mount: ViewMount<JSX.Element, VDOMElement>);
copy(): void;
}