1 import type { DocStateInterface } from './DocStateInterface'
2 import { Observable } from 'lib0/observable'
3 import type { Provider, ProviderAwareness } from '@lexical/yjs'
5 export class LexicalDocProvider extends Observable<string> implements Provider {
6 constructor(private docState: DocStateInterface) {
10 connect(): void | Promise<void> {
11 // no-op to satisfy Lexical Provider interface
15 // no-op to satisfy Lexical Provider interface
18 get awareness(): ProviderAwareness {
19 return this.docState.awareness