UNPKG

@atlaskit/editor-plugin-paste

Version:

Paste plugin for @atlaskit/editor-core

15 lines (14 loc) 1.32 kB
import type { IntlShape } from 'react-intl'; import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics'; import type { CardOptions } from '@atlaskit/editor-common/card'; import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher'; import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { ExtractInjectionAPI, FeatureFlags, PasteWarningOptions } from '@atlaskit/editor-common/types'; import type { Schema } from '@atlaskit/editor-prosemirror/model'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; import type { PastePlugin } from '../index'; import type { 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): SafePlugin<PastePluginState>;