UNPKG

@atlaskit/editor-plugin-card

Version:

Card plugin for @atlaskit/editor-core

8 lines (7 loc) 418 B
import type { EditorState } from '@atlaskit/editor-prosemirror/state'; export declare const DISPLAY_AS_OPTIONS: readonly ['url', 'inline', 'block', 'embed']; export type DisplayAsOption = (typeof DISPLAY_AS_OPTIONS)[number]; export declare const getCardAtPasteRange: (state: EditorState, pasteStartPos: number, pasteEndPos: number) => { appearance: Exclude<DisplayAsOption, 'url'>; pos: number; } | undefined;