UNPKG

@atlaskit/adf-schema

Version:

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

21 lines 437 B
import { SEARCH_QUERY } from '../groups'; import { B400 } from '../../utils/colors'; export const typeAheadQuery = { inclusive: true, group: SEARCH_QUERY, parseDOM: [{ tag: 'span[data-type-ahead-query]' }], toDOM(node) { return ['span', { 'data-type-ahead-query': 'true', 'data-trigger': node.attrs.trigger, style: `color: ${B400}` }]; }, attrs: { trigger: { default: '' } } };