UNPKG

@atlaskit/editor-plugin-hyperlink

Version:

Hyperlink plugin for @atlaskit/editor-core

11 lines (10 loc) 864 B
import type { IntlShape } from 'react-intl'; import type { OnClickCallback } from '@atlaskit/editor-common/card'; import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher'; import type { HyperlinkState } from '@atlaskit/editor-common/link'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { EditorAppearance, ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import { PluginKey } from '@atlaskit/editor-prosemirror/state'; import type { HyperlinkPlugin } from '../hyperlinkPluginType'; export declare const stateKey: PluginKey<HyperlinkState>; export declare const plugin: (dispatch: Dispatch, intl: IntlShape, editorAppearance?: EditorAppearance, _pluginInjectionApi?: ExtractInjectionAPI<HyperlinkPlugin> | undefined, _onClickCallback?: OnClickCallback, __livePage?: boolean) => SafePlugin<HyperlinkState>;