UNPKG

yjs-bundle

Version:

bundles several yjs packages in a single module in order to avoid "Yjs was already imported" problems

9 lines (8 loc) 719 B
export * from 'yjs'; import { PREFERRED_TRIM_SIZE, fetchUpdates, storeState, clearDocument, IndexeddbPersistence } from 'y-indexeddb'; import { WebsocketProvider, messageAuth, messageAwareness, messageQueryAwareness, messageSync } from 'y-websocket'; import { WebrtcConn, Room, SignalingConn, WebrtcProvider } from 'y-webrtc'; import { YKeyValue } from 'y-utility/y-keyvalue'; import { LWWMap } from 'y-lwwmap'; import { Observable } from 'lib0/observable'; export { PREFERRED_TRIM_SIZE, fetchUpdates, storeState, clearDocument, IndexeddbPersistence, WebsocketProvider, messageAuth, messageAwareness, messageQueryAwareness, messageSync, WebrtcConn, Room, SignalingConn, WebrtcProvider, YKeyValue, LWWMap, Observable };