UNPKG

@atlaskit/editor-plugin-paste

Version:

Paste plugin for @atlaskit/editor-core

17 lines (16 loc) • 1.59 kB
import type { IntlShape } from 'react-intl'; import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event'; import type { CardOptions } from '@atlaskit/editor-common/card/cardOptions'; import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher'; import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { PasteWarningOptions } from '@atlaskit/editor-common/types'; import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin'; import type { Schema } from '@atlaskit/editor-prosemirror/model'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; import type { PastePlugin } from '../index'; import type { MarkdownToPmConverter, PastePluginState } from '../pastePluginType'; export declare const isInsideBlockQuote: (state: EditorState) => boolean; export declare function isSharePointUrl(url: string | undefined): boolean; export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<PastePlugin> | undefined, getIntl: () => IntlShape, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory, pasteWarningOptions?: PasteWarningOptions, markdownToPmConverter?: MarkdownToPmConverter): SafePlugin<PastePluginState>;