@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
24 lines • 650 B
JavaScript
import { adfNode } from '@atlaskit/adf-schema-generator';
import { annotation } from '../marks/annotation';
import { unsupportedMark } from '../marks/unsupportedMark';
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
export var date = adfNode('date').define({
inline: true,
selectable: true,
marks: [unsupportedNodeAttribute, unsupportedMark],
attrs: {
timestamp: {
minLength: 1,
type: 'string',
default: ''
},
localId: {
type: 'string',
default: null,
optional: true
}
},
stage0: {
marks: [unsupportedNodeAttribute, unsupportedMark, annotation]
}
});