UNPKG

@atlaskit/editor-plugin-placeholder

Version:

Placeholder plugin for @atlaskit/editor-core.

7 lines (6 loc) 809 B
import type { IntlShape } from 'react-intl'; import type { DocNode } from '@atlaskit/adf-schema/doc'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { PlaceholderPlugin, PlaceholderPluginOptions } from '../placeholderPluginType'; export default function createPlugin(intl: IntlShape, defaultPlaceholderText?: string, bracketPlaceholderText?: string, emptyLinePlaceholder?: string, placeholderPrompts?: string[], withEmptyParagraph?: boolean, initialIsPlaceholderHidden?: boolean, placeholderADF?: DocNode, placeholderPromptAnimationOptions?: PlaceholderPluginOptions['placeholderPromptAnimationOptions'], isRovoLLMEnabled?: boolean, api?: ExtractInjectionAPI<PlaceholderPlugin>): SafePlugin | undefined;