UNPKG

617 BTypeScriptView Raw
1import { NodeSpec } from 'prosemirror-model';
2import { ExtensionContent } from './doc';
3export declare type ExtensionLayout = 'default' | 'wide' | 'full-width';
4/**
5 * @name bodiedExtension_node
6 */
7export interface BodiedExtensionDefinition {
8 type: 'bodiedExtension';
9 attrs: {
10 /**
11 * @minLength 1
12 */
13 extensionKey: string;
14 /**
15 * @minLength 1
16 */
17 extensionType: string;
18 parameters?: object;
19 text?: string;
20 layout?: ExtensionLayout;
21 };
22 content: ExtensionContent;
23}
24export declare const bodiedExtension: NodeSpec;