UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

23 lines (22 loc) 456 B
import { NodeSpec } from 'prosemirror-model'; export interface UrlType { /** * @validatorFn safeUrl */ url: string; } export interface DataType { /** * @additionalProperties true */ data: object; } export declare type CardAttributes = UrlType | DataType; /** * @name blockCard_node */ export interface BlockCardDefinition { type: 'blockCard'; attrs: CardAttributes; } export declare const blockCard: NodeSpec;