@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
18 lines (17 loc) • 526 B
TypeScript
import type { RichMediaAttributes } from './types/rich-media-common';
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
export interface EmbedCardAttributes extends RichMediaAttributes {
localId?: string;
originalHeight?: number;
originalWidth?: number;
url: string;
}
/**
* @name embedCard_node
*/
export interface EmbedCardDefinition {
attrs: EmbedCardAttributes;
type: 'embedCard';
}
export declare const embedCard: NodeSpec;
export declare const embedCardWithLocalId: NodeSpec;