UNPKG

@atlaskit/editor-plugin-find-replace

Version:

find replace plugin for @atlaskit/editor-core

8 lines (7 loc) 603 B
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types'; import type { FindReplacePlugin } from '../findReplacePluginType'; import type { FindReplacePluginState } from '../types'; export declare const initialState: FindReplacePluginState; export declare const createPlugin: (dispatch: Dispatch, getIntl: PMPluginFactoryParams["getIntl"], api?: ExtractInjectionAPI<FindReplacePlugin>) => SafePlugin<FindReplacePluginState>;