@atlaskit/editor-plugin-collab-edit
Version:
Collab Edit plugin for @atlaskit/editor-core
15 lines (14 loc) • 723 B
TypeScript
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import { Rebaseable } from '@atlaskit/prosemirror-collab';
import type { CollabEditPlugin } from '../collabEditPluginType';
/**
* Merge a set of steps together to reduce the total number of steps stored in memory.
*
* All steps passing through here should be "lockable" (ie. can be locked by the document service)
* so that it can be indicated they have already been sent (or are about to be sent) to the backend
* and cannot be merged.
*
* @param steps Rebaseable steps
* @returns Rebaseable steps
*/
export declare function mergeUnconfirmedSteps(steps: Rebaseable[], api: ExtractInjectionAPI<CollabEditPlugin> | undefined): Rebaseable[];