UNPKG

@atlaskit/editor-plugin-code-block

Version:

Code block plugin for @atlaskit/editor-core

14 lines (13 loc) 691 B
import type { IntlShape } from 'react-intl'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import { DecorationSet } from '@atlaskit/editor-prosemirror/view'; import type { CodeBlockPlugin } from '../index'; import type { CodeBlockState } from './main-state'; export declare const createPlugin: ({ useLongPressSelection, getIntl, allowCompositionInputOverride, api, }: { allowCompositionInputOverride?: boolean; api?: ExtractInjectionAPI<CodeBlockPlugin>; decorations?: DecorationSet; getIntl: () => IntlShape; useLongPressSelection?: boolean; }) => SafePlugin<CodeBlockState>;