UNPKG

@atlaskit/adf-schema

Version:

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

41 lines (40 loc) 912 B
import { OptionalRichMediaAttributes } from './types/rich-media-common'; export interface UrlType { /** * @validatorFn safeUrl */ url: string; } export interface DataType { /** * @additionalProperties true */ data: object; } export interface DatasourceAttributeProperties { id: string; parameters: object; /** * @minItems 1 */ views: { type: string; properties?: object; }[]; } export interface DatasourceAttributes extends OptionalRichMediaAttributes { /** * @validatorFn safeUrl */ url?: string; datasource: DatasourceAttributeProperties; } export type CardAttributes = UrlType | DataType; /** * @name blockCard_node */ export interface BlockCardDefinition { type: 'blockCard'; attrs: DatasourceAttributes | CardAttributes; } export declare const blockCard: import("prosemirror-model").NodeSpec;