UNPKG

collaborative-ui

Version:

React component library for building real-time collaborative editing applications.

9 lines (8 loc) 389 B
import { BehaviorSubject } from 'rxjs'; export type JsonCrdtPatchView = 'index' | 'verbose' | 'compact' | 'binary' | 'indexed' | 'sidecar' | 'text'; export declare class JsonCrdtPatchState { readonly show$: BehaviorSubject<boolean>; readonly view$: BehaviorSubject<JsonCrdtPatchView>; readonly toggleShow: () => void; readonly setView: (view: JsonCrdtPatchView) => void; }