UNPKG

collaborative-ui

Version:

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

18 lines (17 loc) 513 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.JsonBlockState = void 0; const rxjs_1 = require("rxjs"); class JsonBlockState { constructor() { this.view$ = new rxjs_1.BehaviorSubject('interactive'); this.path$ = new rxjs_1.BehaviorSubject(''); this.setView = (view) => { this.view$.next(view); }; this.setPath = (path) => { this.path$.next(path); }; } } exports.JsonBlockState = JsonBlockState;