UNPKG

@atlaskit/editor-plugin-media

Version:

Media plugin for @atlaskit/editor-core

21 lines (20 loc) 1.27 kB
import type { MediaADFAttrs } from '@atlaskit/adf-schema'; import type { EditorAnalyticsAPI, InputMethodInsertMedia, InsertMediaVia } from '@atlaskit/editor-common/analytics'; import type { EditorCommand } from '@atlaskit/editor-common/types'; export declare const showMediaViewer: (media: MediaADFAttrs) => EditorCommand; export declare const hideMediaViewer: EditorCommand; export declare const trackMediaPaste: (attrs: MediaADFAttrs) => EditorCommand; /** * Sets the AI-generating decoration on a media node identified by `mediaId`. * The decoration triggers the AI border visual on the media's NodeView. * * Decorations live in the view layer only and never affect the document model * or undo/redo history. */ export declare const setAIGenerating: (mediaId: string) => EditorCommand; /** * Clears the AI-generating decoration for a specific media node identified by * `mediaId`. Removes the AI border visual from that media's NodeView. */ export declare const clearAIGenerating: (mediaId: string) => EditorCommand; export declare const insertMediaAsMediaSingleCommand: (editorAnalyticsAPI?: EditorAnalyticsAPI, allowPixelResizing?: boolean) => (mediaAttrs: MediaADFAttrs, inputMethod: InputMethodInsertMedia, insertMediaVia?: InsertMediaVia) => EditorCommand;