UNPKG

@atlaskit/editor-plugin-hyperlink

Version:

Hyperlink plugin for @atlaskit/editor-core

12 lines (11 loc) • 972 B
import type { IntlShape } from 'react-intl'; import type { OnClickCallback } from '@atlaskit/editor-common/card/cardOptions'; import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher'; import type { HyperlinkState } from '@atlaskit/editor-common/link/types'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { EditorAppearance } from '@atlaskit/editor-common/types/editor-appearance'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin'; 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>;