From 0769a388768cea0786e5b2cd53ed1c9df8f6f2ce Mon Sep 17 00:00:00 2001 From: John Flockton Date: Thu, 18 Aug 2022 14:16:51 +0100 Subject: [PATCH] Fix small type issue --- .../flow/LexicalCollaborationPlugin.js.flow | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/lexical-react/flow/LexicalCollaborationPlugin.js.flow b/packages/lexical-react/flow/LexicalCollaborationPlugin.js.flow index dc02092a719..2be42c1b49f 100644 --- a/packages/lexical-react/flow/LexicalCollaborationPlugin.js.flow +++ b/packages/lexical-react/flow/LexicalCollaborationPlugin.js.flow @@ -7,24 +7,9 @@ * @flow strict */ +import type {ProviderAwareness} from '@lexical/yjs'; import type {Doc, RelativePosition} from 'yjs'; -export type UserState = { - anchorPos: null | RelativePosition, - focusPos: null | RelativePosition, - name: string, - color: string, - focusing: boolean, -}; - -export type ProviderAwareness = { - getLocalState: () => UserState | null, - setLocalState: (UserState) => void, - getStates: () => Map, - on: (type: 'update', cb: () => void) => void, - off: (type: 'update', cb: () => void) => void, -}; - export interface Provider { connect(): void | Promise; disconnect(): void;