@ones-editor/editor 2.9.8-beta.4 → 2.9.8-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -177,7 +177,7 @@ export interface OnesEditorRemoteUsers extends TypedEmitter<RemoteUsersEvents> {
|
|
|
177
177
|
findUser: (userId: string) => OnesEditorUser | null;
|
|
178
178
|
removeUser: (clientId: string) => void;
|
|
179
179
|
updateUsers: (users: OnesEditorUser[]) => void;
|
|
180
|
-
getSimpleCursors: (blockId: string) => Map<number, OnesEditorClientSelection[]>;
|
|
180
|
+
getSimpleCursors: (blockId: string, excludeUserId?: string) => Map<number, OnesEditorClientSelection[]>;
|
|
181
181
|
getCursors: (blockId: string) => OnesEditorClientSelection[];
|
|
182
182
|
onUpdateBlockText: (blockData: DocBlock, actions: DocBlockTextActions, local: boolean) => void;
|
|
183
183
|
getFixedUserColor: (userId: string, type: 'flag' | 'selection') => string;
|
|
@@ -551,6 +551,7 @@ export interface OnesEditor extends TypedEmitter<OnesEditorEvents> {
|
|
|
551
551
|
readonly settingsProvider: OnesEditorSettingsProvider;
|
|
552
552
|
version: string;
|
|
553
553
|
readonly: boolean;
|
|
554
|
+
destroyed: boolean;
|
|
554
555
|
addCustom: <T extends OnesEditorCustom>(name: string, creator: OnesEditorCustomCreator<T>) => T;
|
|
555
556
|
getCustom: <T extends OnesEditorCustom>(name: string) => T;
|
|
556
557
|
replaceCustom: <T extends OnesEditorCustom>(name: string, newCustom: T) => T;
|
|
@@ -12,7 +12,7 @@ declare class RemoteUsers extends TypedEmitter<RemoteUsersEvents> implements One
|
|
|
12
12
|
findUser(userId: string): OnesEditorUser | null;
|
|
13
13
|
removeUser(clientId: string): void;
|
|
14
14
|
updateUsers(users: OnesEditorUser[]): void;
|
|
15
|
-
getSimpleCursors(blockId: string): Map<number, OnesEditorClientSelection[]>;
|
|
15
|
+
getSimpleCursors(blockId: string, excludeUserId?: string): Map<number, OnesEditorClientSelection[]>;
|
|
16
16
|
getCursors(blockId: string): OnesEditorClientSelection[];
|
|
17
17
|
onUpdateBlockText(blockData: DocBlock, actions: DocBlockTextActions, local: boolean): void;
|
|
18
18
|
getFixedUserColor(userId: string, type: 'flag' | 'selection'): string;
|