UNPKG

@atlaskit/adf-schema

Version:

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

31 lines (30 loc) 802 B
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { AnnotationMarkDefinition } from '../marks/annotation'; export declare enum USER_TYPES { DEFAULT = "DEFAULT", SPECIAL = "SPECIAL", APP = "APP" } export type UserType = keyof typeof USER_TYPES; export interface MentionAttributes { accessLevel?: string; id: string; localId?: string; text?: string; userType?: UserType; } /** * @name mention_node */ export interface MentionDefinition { attrs: MentionAttributes; /** * @stage 0 */ marks?: Array<AnnotationMarkDefinition>; type: 'mention'; } export declare const mention: import("prosemirror-model").NodeSpec; export declare const toJSON: (node: PMNode) => { attrs: import("prosemirror-model").Attrs; };