@atlaskit/adf-schema 37.2.1 → 38.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/next-schema/generated/markTypes.js +21 -21
- package/dist/cjs/next-schema/generated/nodeTypes.js +114 -114
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/blockCard.js +1 -1
- package/dist/cjs/next-schema/nodes/blockquote.js +2 -2
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/cjs/next-schema/nodes/caption.js +1 -1
- package/dist/cjs/next-schema/nodes/codeBlock.js +2 -2
- package/dist/cjs/next-schema/nodes/decisionItem.js +1 -1
- package/dist/cjs/next-schema/nodes/decisionList.js +1 -1
- package/dist/cjs/next-schema/nodes/embedCard.js +1 -1
- package/dist/cjs/next-schema/nodes/expand.js +2 -2
- package/dist/cjs/next-schema/nodes/extension.js +2 -2
- package/dist/cjs/next-schema/nodes/extensionFrame.js +2 -2
- package/dist/cjs/next-schema/nodes/hardBreak.js +1 -1
- package/dist/cjs/next-schema/nodes/heading.js +3 -3
- package/dist/cjs/next-schema/nodes/inlineCard.js +2 -2
- package/dist/cjs/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/cjs/next-schema/nodes/layoutColumn.js +1 -1
- package/dist/cjs/next-schema/nodes/layoutSection.js +2 -2
- package/dist/cjs/next-schema/nodes/list.js +5 -5
- package/dist/cjs/next-schema/nodes/media.js +1 -1
- package/dist/cjs/next-schema/nodes/mediaGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/mediaInline.js +1 -1
- package/dist/cjs/next-schema/nodes/mediaSingle.js +5 -5
- package/dist/cjs/next-schema/nodes/nestedExpand.js +2 -2
- package/dist/cjs/next-schema/nodes/panel.js +3 -3
- package/dist/cjs/next-schema/nodes/paragraph.js +4 -4
- package/dist/cjs/next-schema/nodes/placeholder.js +1 -1
- package/dist/cjs/next-schema/nodes/table.js +1 -1
- package/dist/cjs/next-schema/nodes/tableCell.js +1 -1
- package/dist/cjs/next-schema/nodes/tableHeader.js +1 -1
- package/dist/cjs/next-schema/nodes/tableRow.js +1 -1
- package/dist/cjs/next-schema/nodes/task.js +2 -2
- package/dist/cjs/next-schema/nodes/text.js +1 -1
- package/dist/cjs/schema/createPMSpecFactory.js +57 -0
- package/dist/cjs/schema/index.js +14 -1
- package/dist/cjs/schema/marks/alignment.js +3 -8
- package/dist/cjs/schema/marks/annotation.js +3 -13
- package/dist/cjs/schema/marks/background-color.js +3 -9
- package/dist/cjs/schema/marks/border.js +3 -7
- package/dist/cjs/schema/marks/breakout.js +3 -9
- package/dist/cjs/schema/marks/code.js +3 -5
- package/dist/cjs/schema/marks/confluence-inline-comment.js +3 -9
- package/dist/cjs/schema/marks/data-consumer.js +3 -7
- package/dist/cjs/schema/marks/em.js +3 -5
- package/dist/cjs/schema/marks/fragment.js +3 -12
- package/dist/cjs/schema/marks/indentation.js +3 -8
- package/dist/cjs/schema/marks/link.js +3 -13
- package/dist/cjs/schema/marks/strike.js +3 -5
- package/dist/cjs/schema/marks/strong.js +3 -5
- package/dist/cjs/schema/marks/subsup.js +3 -10
- package/dist/cjs/schema/marks/text-color.js +3 -8
- package/dist/cjs/schema/marks/type-ahead-query.js +3 -10
- package/dist/cjs/schema/marks/underline.js +3 -5
- package/dist/cjs/schema/marks/unsupported-mark.js +3 -6
- package/dist/cjs/schema/marks/unsupported-node-attributes.js +3 -6
- package/dist/cjs/schema/nodes/block-card.js +3 -23
- package/dist/cjs/schema/nodes/blockquote.js +17 -20
- package/dist/cjs/schema/nodes/bodied-extension.js +24 -54
- package/dist/cjs/schema/nodes/bullet-list.js +3 -6
- package/dist/cjs/schema/nodes/caption.js +3 -6
- package/dist/cjs/schema/nodes/code-block.js +3 -15
- package/dist/cjs/schema/nodes/confluence-jira-issue.js +3 -22
- package/dist/cjs/schema/nodes/confluence-unsupported-block.js +3 -8
- package/dist/cjs/schema/nodes/confluence-unsupported-inline.js +3 -10
- package/dist/cjs/schema/nodes/date.js +3 -10
- package/dist/cjs/schema/nodes/decision-item.js +3 -13
- package/dist/cjs/schema/nodes/decision-list.js +3 -12
- package/dist/cjs/schema/nodes/doc.js +2 -4
- package/dist/cjs/schema/nodes/embed-card.js +3 -22
- package/dist/cjs/schema/nodes/emoji.js +3 -16
- package/dist/cjs/schema/nodes/expand.js +3 -16
- package/dist/cjs/schema/nodes/extension.js +20 -47
- package/dist/cjs/schema/nodes/hard-break.js +3 -5
- package/dist/cjs/schema/nodes/heading.js +3 -14
- package/dist/cjs/schema/nodes/image.js +3 -16
- package/dist/cjs/schema/nodes/inline-card.js +3 -14
- package/dist/cjs/schema/nodes/inline-extension.js +19 -42
- package/dist/cjs/schema/nodes/layout-column.js +4 -12
- package/dist/cjs/schema/nodes/layout-section.js +23 -11
- package/dist/cjs/schema/nodes/list-item.js +5 -12
- package/dist/cjs/schema/nodes/media-group.js +3 -8
- package/dist/cjs/schema/nodes/media-inline.js +2 -1
- package/dist/cjs/schema/nodes/media-single.js +35 -14
- package/dist/cjs/schema/nodes/media.js +35 -83
- package/dist/cjs/schema/nodes/mention.js +3 -22
- package/dist/cjs/schema/nodes/multi-bodied-extension.js +26 -64
- package/dist/cjs/schema/nodes/nested-expand.js +31 -48
- package/dist/cjs/schema/nodes/ordered-list.js +4 -16
- package/dist/cjs/schema/nodes/panel.js +5 -34
- package/dist/cjs/schema/nodes/paragraph.js +3 -11
- package/dist/cjs/schema/nodes/placeholder.js +3 -11
- package/dist/cjs/schema/nodes/rule.js +3 -3
- package/dist/cjs/schema/nodes/status.js +3 -19
- package/dist/cjs/schema/nodes/tableNodes.js +9 -52
- package/dist/cjs/schema/nodes/task-item.js +3 -14
- package/dist/cjs/schema/nodes/task-list.js +3 -12
- package/dist/cjs/schema/nodes/text.js +3 -4
- package/dist/cjs/schema/nodes/unsupported-block.js +3 -11
- package/dist/cjs/schema/nodes/unsupported-inline.js +3 -10
- package/dist/es2019/index.js +5 -1
- package/dist/es2019/next-schema/generated/markTypes.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +39 -39
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/blockCard.js +1 -1
- package/dist/es2019/next-schema/nodes/blockquote.js +2 -2
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/es2019/next-schema/nodes/caption.js +1 -1
- package/dist/es2019/next-schema/nodes/codeBlock.js +2 -2
- package/dist/es2019/next-schema/nodes/decisionItem.js +1 -1
- package/dist/es2019/next-schema/nodes/decisionList.js +1 -1
- package/dist/es2019/next-schema/nodes/embedCard.js +1 -1
- package/dist/es2019/next-schema/nodes/expand.js +2 -2
- package/dist/es2019/next-schema/nodes/extension.js +2 -2
- package/dist/es2019/next-schema/nodes/extensionFrame.js +2 -2
- package/dist/es2019/next-schema/nodes/hardBreak.js +1 -1
- package/dist/es2019/next-schema/nodes/heading.js +3 -3
- package/dist/es2019/next-schema/nodes/inlineCard.js +2 -2
- package/dist/es2019/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/es2019/next-schema/nodes/layoutColumn.js +1 -1
- package/dist/es2019/next-schema/nodes/layoutSection.js +2 -2
- package/dist/es2019/next-schema/nodes/list.js +5 -5
- package/dist/es2019/next-schema/nodes/media.js +1 -1
- package/dist/es2019/next-schema/nodes/mediaGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/mediaInline.js +1 -1
- package/dist/es2019/next-schema/nodes/mediaSingle.js +5 -5
- package/dist/es2019/next-schema/nodes/nestedExpand.js +2 -2
- package/dist/es2019/next-schema/nodes/panel.js +3 -3
- package/dist/es2019/next-schema/nodes/paragraph.js +4 -4
- package/dist/es2019/next-schema/nodes/placeholder.js +1 -1
- package/dist/es2019/next-schema/nodes/table.js +1 -1
- package/dist/es2019/next-schema/nodes/tableCell.js +1 -1
- package/dist/es2019/next-schema/nodes/tableHeader.js +1 -1
- package/dist/es2019/next-schema/nodes/tableRow.js +1 -1
- package/dist/es2019/next-schema/nodes/task.js +2 -2
- package/dist/es2019/next-schema/nodes/text.js +1 -1
- package/dist/es2019/schema/createPMSpecFactory.js +55 -0
- package/dist/es2019/schema/index.js +5 -1
- package/dist/es2019/schema/marks/alignment.js +3 -8
- package/dist/es2019/schema/marks/annotation.js +4 -13
- package/dist/es2019/schema/marks/background-color.js +3 -9
- package/dist/es2019/schema/marks/border.js +3 -7
- package/dist/es2019/schema/marks/breakout.js +3 -9
- package/dist/es2019/schema/marks/code.js +3 -5
- package/dist/es2019/schema/marks/confluence-inline-comment.js +4 -9
- package/dist/es2019/schema/marks/data-consumer.js +3 -7
- package/dist/es2019/schema/marks/em.js +3 -5
- package/dist/es2019/schema/marks/fragment.js +3 -12
- package/dist/es2019/schema/marks/indentation.js +3 -8
- package/dist/es2019/schema/marks/link.js +3 -13
- package/dist/es2019/schema/marks/strike.js +3 -5
- package/dist/es2019/schema/marks/strong.js +3 -5
- package/dist/es2019/schema/marks/subsup.js +3 -10
- package/dist/es2019/schema/marks/text-color.js +3 -8
- package/dist/es2019/schema/marks/type-ahead-query.js +3 -10
- package/dist/es2019/schema/marks/underline.js +3 -5
- package/dist/es2019/schema/marks/unsupported-mark.js +3 -6
- package/dist/es2019/schema/marks/unsupported-node-attributes.js +3 -6
- package/dist/es2019/schema/nodes/block-card.js +4 -23
- package/dist/es2019/schema/nodes/blockquote.js +19 -20
- package/dist/es2019/schema/nodes/bodied-extension.js +23 -53
- package/dist/es2019/schema/nodes/bullet-list.js +3 -6
- package/dist/es2019/schema/nodes/caption.js +4 -6
- package/dist/es2019/schema/nodes/code-block.js +3 -15
- package/dist/es2019/schema/nodes/confluence-jira-issue.js +3 -22
- package/dist/es2019/schema/nodes/confluence-unsupported-block.js +3 -8
- package/dist/es2019/schema/nodes/confluence-unsupported-inline.js +3 -10
- package/dist/es2019/schema/nodes/date.js +4 -10
- package/dist/es2019/schema/nodes/decision-item.js +3 -13
- package/dist/es2019/schema/nodes/decision-list.js +3 -12
- package/dist/es2019/schema/nodes/doc.js +3 -4
- package/dist/es2019/schema/nodes/embed-card.js +4 -22
- package/dist/es2019/schema/nodes/emoji.js +3 -16
- package/dist/es2019/schema/nodes/expand.js +4 -16
- package/dist/es2019/schema/nodes/extension.js +19 -46
- package/dist/es2019/schema/nodes/hard-break.js +4 -5
- package/dist/es2019/schema/nodes/heading.js +4 -14
- package/dist/es2019/schema/nodes/image.js +3 -16
- package/dist/es2019/schema/nodes/inline-card.js +4 -14
- package/dist/es2019/schema/nodes/inline-extension.js +18 -41
- package/dist/es2019/schema/nodes/layout-column.js +5 -12
- package/dist/es2019/schema/nodes/layout-section.js +24 -10
- package/dist/es2019/schema/nodes/list-item.js +6 -12
- package/dist/es2019/schema/nodes/media-group.js +4 -8
- package/dist/es2019/schema/nodes/media-inline.js +3 -2
- package/dist/es2019/schema/nodes/media-single.js +35 -15
- package/dist/es2019/schema/nodes/media.js +35 -78
- package/dist/es2019/schema/nodes/mention.js +3 -22
- package/dist/es2019/schema/nodes/multi-bodied-extension.js +26 -63
- package/dist/es2019/schema/nodes/nested-expand.js +32 -48
- package/dist/es2019/schema/nodes/ordered-list.js +5 -14
- package/dist/es2019/schema/nodes/panel.js +5 -34
- package/dist/es2019/schema/nodes/paragraph.js +4 -11
- package/dist/es2019/schema/nodes/placeholder.js +4 -11
- package/dist/es2019/schema/nodes/rule.js +4 -3
- package/dist/es2019/schema/nodes/status.js +3 -19
- package/dist/es2019/schema/nodes/tableNodes.js +40 -82
- package/dist/es2019/schema/nodes/task-item.js +3 -14
- package/dist/es2019/schema/nodes/task-list.js +3 -12
- package/dist/es2019/schema/nodes/text.js +4 -4
- package/dist/es2019/schema/nodes/unsupported-block.js +3 -11
- package/dist/es2019/schema/nodes/unsupported-inline.js +3 -10
- package/dist/esm/index.js +5 -1
- package/dist/esm/next-schema/generated/markTypes.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +39 -39
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/blockCard.js +1 -1
- package/dist/esm/next-schema/nodes/blockquote.js +2 -2
- package/dist/esm/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/esm/next-schema/nodes/caption.js +1 -1
- package/dist/esm/next-schema/nodes/codeBlock.js +2 -2
- package/dist/esm/next-schema/nodes/decisionItem.js +1 -1
- package/dist/esm/next-schema/nodes/decisionList.js +1 -1
- package/dist/esm/next-schema/nodes/embedCard.js +1 -1
- package/dist/esm/next-schema/nodes/expand.js +2 -2
- package/dist/esm/next-schema/nodes/extension.js +2 -2
- package/dist/esm/next-schema/nodes/extensionFrame.js +2 -2
- package/dist/esm/next-schema/nodes/hardBreak.js +1 -1
- package/dist/esm/next-schema/nodes/heading.js +3 -3
- package/dist/esm/next-schema/nodes/inlineCard.js +2 -2
- package/dist/esm/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/esm/next-schema/nodes/layoutColumn.js +1 -1
- package/dist/esm/next-schema/nodes/layoutSection.js +2 -2
- package/dist/esm/next-schema/nodes/list.js +5 -5
- package/dist/esm/next-schema/nodes/media.js +1 -1
- package/dist/esm/next-schema/nodes/mediaGroup.js +1 -1
- package/dist/esm/next-schema/nodes/mediaInline.js +1 -1
- package/dist/esm/next-schema/nodes/mediaSingle.js +5 -5
- package/dist/esm/next-schema/nodes/nestedExpand.js +2 -2
- package/dist/esm/next-schema/nodes/panel.js +3 -3
- package/dist/esm/next-schema/nodes/paragraph.js +4 -4
- package/dist/esm/next-schema/nodes/placeholder.js +1 -1
- package/dist/esm/next-schema/nodes/table.js +1 -1
- package/dist/esm/next-schema/nodes/tableCell.js +1 -1
- package/dist/esm/next-schema/nodes/tableHeader.js +1 -1
- package/dist/esm/next-schema/nodes/tableRow.js +1 -1
- package/dist/esm/next-schema/nodes/task.js +2 -2
- package/dist/esm/next-schema/nodes/text.js +1 -1
- package/dist/esm/schema/createPMSpecFactory.js +50 -0
- package/dist/esm/schema/index.js +5 -1
- package/dist/esm/schema/marks/alignment.js +3 -8
- package/dist/esm/schema/marks/annotation.js +4 -13
- package/dist/esm/schema/marks/background-color.js +3 -9
- package/dist/esm/schema/marks/border.js +3 -7
- package/dist/esm/schema/marks/breakout.js +3 -9
- package/dist/esm/schema/marks/code.js +3 -5
- package/dist/esm/schema/marks/confluence-inline-comment.js +4 -9
- package/dist/esm/schema/marks/data-consumer.js +3 -7
- package/dist/esm/schema/marks/em.js +3 -5
- package/dist/esm/schema/marks/fragment.js +3 -12
- package/dist/esm/schema/marks/indentation.js +3 -8
- package/dist/esm/schema/marks/link.js +3 -13
- package/dist/esm/schema/marks/strike.js +3 -5
- package/dist/esm/schema/marks/strong.js +3 -5
- package/dist/esm/schema/marks/subsup.js +3 -10
- package/dist/esm/schema/marks/text-color.js +3 -8
- package/dist/esm/schema/marks/type-ahead-query.js +3 -10
- package/dist/esm/schema/marks/underline.js +3 -5
- package/dist/esm/schema/marks/unsupported-mark.js +3 -6
- package/dist/esm/schema/marks/unsupported-node-attributes.js +3 -6
- package/dist/esm/schema/nodes/block-card.js +4 -23
- package/dist/esm/schema/nodes/blockquote.js +19 -20
- package/dist/esm/schema/nodes/bodied-extension.js +24 -54
- package/dist/esm/schema/nodes/bullet-list.js +3 -6
- package/dist/esm/schema/nodes/caption.js +4 -6
- package/dist/esm/schema/nodes/code-block.js +3 -15
- package/dist/esm/schema/nodes/confluence-jira-issue.js +3 -22
- package/dist/esm/schema/nodes/confluence-unsupported-block.js +3 -8
- package/dist/esm/schema/nodes/confluence-unsupported-inline.js +3 -10
- package/dist/esm/schema/nodes/date.js +4 -10
- package/dist/esm/schema/nodes/decision-item.js +3 -13
- package/dist/esm/schema/nodes/decision-list.js +3 -12
- package/dist/esm/schema/nodes/doc.js +3 -4
- package/dist/esm/schema/nodes/embed-card.js +4 -22
- package/dist/esm/schema/nodes/emoji.js +3 -16
- package/dist/esm/schema/nodes/expand.js +4 -16
- package/dist/esm/schema/nodes/extension.js +20 -47
- package/dist/esm/schema/nodes/hard-break.js +4 -5
- package/dist/esm/schema/nodes/heading.js +4 -14
- package/dist/esm/schema/nodes/image.js +3 -16
- package/dist/esm/schema/nodes/inline-card.js +4 -14
- package/dist/esm/schema/nodes/inline-extension.js +19 -42
- package/dist/esm/schema/nodes/layout-column.js +5 -12
- package/dist/esm/schema/nodes/layout-section.js +24 -10
- package/dist/esm/schema/nodes/list-item.js +6 -12
- package/dist/esm/schema/nodes/media-group.js +4 -8
- package/dist/esm/schema/nodes/media-inline.js +3 -2
- package/dist/esm/schema/nodes/media-single.js +35 -14
- package/dist/esm/schema/nodes/media.js +36 -82
- package/dist/esm/schema/nodes/mention.js +3 -22
- package/dist/esm/schema/nodes/multi-bodied-extension.js +27 -64
- package/dist/esm/schema/nodes/nested-expand.js +32 -48
- package/dist/esm/schema/nodes/ordered-list.js +4 -15
- package/dist/esm/schema/nodes/panel.js +5 -34
- package/dist/esm/schema/nodes/paragraph.js +4 -11
- package/dist/esm/schema/nodes/placeholder.js +4 -11
- package/dist/esm/schema/nodes/rule.js +4 -3
- package/dist/esm/schema/nodes/status.js +3 -19
- package/dist/esm/schema/nodes/tableNodes.js +12 -52
- package/dist/esm/schema/nodes/task-item.js +3 -14
- package/dist/esm/schema/nodes/task-list.js +3 -12
- package/dist/esm/schema/nodes/text.js +4 -4
- package/dist/esm/schema/nodes/unsupported-block.js +3 -11
- package/dist/esm/schema/nodes/unsupported-inline.js +3 -10
- package/dist/types/index.d.ts +2 -0
- package/dist/types/next-schema/generated/markTypes.d.ts +20 -20
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeTypes.d.ts +75 -75
- package/dist/types/schema/createPMSpecFactory.d.ts +33 -0
- package/dist/types/schema/index.d.ts +2 -0
- package/dist/types/schema/nodes/block-card.d.ts +1 -2
- package/dist/types/schema/nodes/blockquote.d.ts +2 -3
- package/dist/types/schema/nodes/bodied-extension.d.ts +1 -2
- package/dist/types/schema/nodes/bullet-list.d.ts +1 -2
- package/dist/types/schema/nodes/caption.d.ts +1 -2
- package/dist/types/schema/nodes/code-block.d.ts +2 -2
- package/dist/types/schema/nodes/confluence-jira-issue.d.ts +1 -2
- package/dist/types/schema/nodes/confluence-unsupported-block.d.ts +1 -2
- package/dist/types/schema/nodes/confluence-unsupported-inline.d.ts +1 -2
- package/dist/types/schema/nodes/date.d.ts +1 -2
- package/dist/types/schema/nodes/decision-item.d.ts +1 -2
- package/dist/types/schema/nodes/decision-list.d.ts +1 -2
- package/dist/types/schema/nodes/doc.d.ts +1 -2
- package/dist/types/schema/nodes/embed-card.d.ts +1 -2
- package/dist/types/schema/nodes/emoji.d.ts +1 -2
- package/dist/types/schema/nodes/expand.d.ts +2 -2
- package/dist/types/schema/nodes/extension.d.ts +1 -2
- package/dist/types/schema/nodes/hard-break.d.ts +1 -2
- package/dist/types/schema/nodes/heading.d.ts +1 -2
- package/dist/types/schema/nodes/image.d.ts +1 -2
- package/dist/types/schema/nodes/inline-card.d.ts +1 -2
- package/dist/types/schema/nodes/inline-extension.d.ts +1 -2
- package/dist/types/schema/nodes/layout-column.d.ts +1 -2
- package/dist/types/schema/nodes/layout-section.d.ts +3 -3
- package/dist/types/schema/nodes/list-item.d.ts +2 -3
- package/dist/types/schema/nodes/media-group.d.ts +1 -2
- package/dist/types/schema/nodes/media.d.ts +3 -1
- package/dist/types/schema/nodes/mention.d.ts +2 -2
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +2 -3
- package/dist/types/schema/nodes/nested-expand.d.ts +1 -2
- package/dist/types/schema/nodes/ordered-list.d.ts +2 -3
- package/dist/types/schema/nodes/panel.d.ts +2 -3
- package/dist/types/schema/nodes/paragraph.d.ts +1 -2
- package/dist/types/schema/nodes/placeholder.d.ts +1 -2
- package/dist/types/schema/nodes/rule.d.ts +1 -2
- package/dist/types/schema/nodes/status.d.ts +1 -2
- package/dist/types/schema/nodes/tableNodes.d.ts +7 -7
- package/dist/types/schema/nodes/task-item.d.ts +1 -2
- package/dist/types/schema/nodes/task-list.d.ts +1 -2
- package/dist/types/schema/nodes/text.d.ts +1 -4
- package/dist/types/schema/nodes/unsupported-block.d.ts +1 -2
- package/dist/types/schema/nodes/unsupported-inline.d.ts +1 -2
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +7 -7
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +4 -4
@@ -4,15 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.unsupportedInline = void 0;
|
7
|
-
var
|
8
|
-
|
9
|
-
group: 'inline',
|
10
|
-
selectable: true,
|
11
|
-
attrs: {
|
12
|
-
originalValue: {
|
13
|
-
default: {}
|
14
|
-
}
|
15
|
-
},
|
7
|
+
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
|
+
var unsupportedInline = exports.unsupportedInline = (0, _nodeTypes.unsupportedInline)({
|
16
9
|
parseDOM: [{
|
17
10
|
tag: '[data-node-type="unsupportedInline"]',
|
18
11
|
getAttrs: function getAttrs(dom) {
|
@@ -28,4 +21,4 @@ var unsupportedInline = exports.unsupportedInline = {
|
|
28
21
|
};
|
29
22
|
return ['span', attrs, 'Unsupported content'];
|
30
23
|
}
|
31
|
-
};
|
24
|
+
});
|
package/dist/es2019/index.js
CHANGED
@@ -1,3 +1,7 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
2
2
|
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette } from './schema';
|
3
|
-
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
|
3
|
+
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
|
4
|
+
|
5
|
+
// ADF createPMSpecFactory
|
6
|
+
|
7
|
+
export { createPMNodeSpecFactory, createPMMarkSpecFactory } from './schema';
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* and run "yarn workspace @atlaskit/adf-schema build:pm:full" to regenerate this file.
|
5
5
|
*/
|
6
6
|
|
7
|
-
import { createPMMarkSpecFactory } from '
|
7
|
+
import { createPMMarkSpecFactory } from '../../schema/createPMSpecFactory';
|
8
8
|
export const alignment = createPMMarkSpecFactory({
|
9
9
|
attrs: {
|
10
10
|
align: {}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* and run "yarn workspace @atlaskit/adf-schema build:pm:full" to regenerate this file.
|
5
5
|
*/
|
6
6
|
|
7
|
-
import { createPMNodeSpecFactory } from '
|
7
|
+
import { createPMNodeSpecFactory } from '../../schema/createPMSpecFactory';
|
8
8
|
export const blockCard = createPMNodeSpecFactory({
|
9
9
|
group: 'block',
|
10
10
|
attrs: {
|
@@ -28,7 +28,7 @@ export const blockCard = createPMNodeSpecFactory({
|
|
28
28
|
draggable: true
|
29
29
|
});
|
30
30
|
export const blockquote = createPMNodeSpecFactory({
|
31
|
-
content: '(paragraph |
|
31
|
+
content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
|
32
32
|
group: 'block',
|
33
33
|
selectable: false,
|
34
34
|
defining: true
|
@@ -40,7 +40,7 @@ export const blockquoteLegacy = createPMNodeSpecFactory({
|
|
40
40
|
defining: true
|
41
41
|
});
|
42
42
|
export const bodiedExtension = createPMNodeSpecFactory({
|
43
|
-
content: '(
|
43
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
44
44
|
marks: 'dataConsumer fragment',
|
45
45
|
group: 'block',
|
46
46
|
attrs: {
|
@@ -96,7 +96,7 @@ export const bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
|
96
96
|
});
|
97
97
|
export const bulletList = createPMNodeSpecFactory({
|
98
98
|
content: 'listItem+',
|
99
|
-
marks: 'unsupportedNodeAttribute
|
99
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
100
100
|
group: 'block',
|
101
101
|
selectable: false
|
102
102
|
});
|
@@ -210,7 +210,7 @@ export const decisionItem = createPMNodeSpecFactory({
|
|
210
210
|
});
|
211
211
|
export const decisionList = createPMNodeSpecFactory({
|
212
212
|
content: '(decisionItem | unsupportedBlock)+',
|
213
|
-
marks: 'unsupportedNodeAttribute
|
213
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
214
214
|
group: 'block',
|
215
215
|
attrs: {
|
216
216
|
localId: {
|
@@ -222,7 +222,7 @@ export const decisionList = createPMNodeSpecFactory({
|
|
222
222
|
});
|
223
223
|
export const doc = createPMNodeSpecFactory({
|
224
224
|
content: '(block | layoutSection | blockRootOnly)+',
|
225
|
-
marks: 'unsupportedNodeAttribute
|
225
|
+
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
|
226
226
|
});
|
227
227
|
export const embedCard = createPMNodeSpecFactory({
|
228
228
|
group: 'block',
|
@@ -278,8 +278,8 @@ export const emojiStage0 = createPMNodeSpecFactory({
|
|
278
278
|
selectable: true
|
279
279
|
});
|
280
280
|
export const expand = createPMNodeSpecFactory({
|
281
|
-
content: '(
|
282
|
-
marks: 'unsupportedNodeAttribute
|
281
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
282
|
+
marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
283
283
|
group: 'block',
|
284
284
|
attrs: {
|
285
285
|
title: {
|
@@ -356,7 +356,7 @@ export const extensionWithMarks = createPMNodeSpecFactory({
|
|
356
356
|
selectable: true
|
357
357
|
});
|
358
358
|
export const extensionFrameStage0 = createPMNodeSpecFactory({
|
359
|
-
content: '(
|
359
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
|
360
360
|
marks: 'dataConsumer fragment',
|
361
361
|
attrs: {},
|
362
362
|
selectable: false,
|
@@ -512,7 +512,7 @@ export const inlineExtensionWithMarks = createPMNodeSpecFactory({
|
|
512
512
|
});
|
513
513
|
export const layoutColumn = createPMNodeSpecFactory({
|
514
514
|
content: '(block | unsupportedBlock)+',
|
515
|
-
marks: 'unsupportedNodeAttribute
|
515
|
+
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment',
|
516
516
|
attrs: {
|
517
517
|
width: {
|
518
518
|
default: undefined
|
@@ -523,28 +523,28 @@ export const layoutColumn = createPMNodeSpecFactory({
|
|
523
523
|
});
|
524
524
|
export const layoutSection = createPMNodeSpecFactory({
|
525
525
|
content: '(layoutColumn | unsupportedBlock){1,3} unsupportedBlock* | unsupportedBlock+',
|
526
|
-
marks: 'unsupportedNodeAttribute
|
526
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
527
527
|
isolating: true
|
528
528
|
});
|
529
529
|
export const layoutSectionFull = createPMNodeSpecFactory({
|
530
530
|
content: '(layoutColumn | unsupportedBlock){2,3}',
|
531
|
-
marks: 'unsupportedNodeAttribute
|
531
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
532
532
|
isolating: true
|
533
533
|
});
|
534
534
|
export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
|
535
535
|
content: '(layoutColumn | unsupportedBlock){1,3}',
|
536
|
-
marks: 'unsupportedNodeAttribute
|
536
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
537
537
|
isolating: true
|
538
538
|
});
|
539
539
|
export const listItem = createPMNodeSpecFactory({
|
540
|
-
content: '(
|
541
|
-
marks: 'unsupportedNodeAttribute
|
540
|
+
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock)*',
|
541
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
542
542
|
selectable: false,
|
543
543
|
defining: true
|
544
544
|
});
|
545
545
|
export const listItemLegacy = createPMNodeSpecFactory({
|
546
|
-
content: '(
|
547
|
-
marks: 'unsupportedNodeAttribute
|
546
|
+
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
|
547
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
548
548
|
selectable: false,
|
549
549
|
defining: true
|
550
550
|
});
|
@@ -600,7 +600,7 @@ export const media = createPMNodeSpecFactory({
|
|
600
600
|
});
|
601
601
|
export const mediaGroup = createPMNodeSpecFactory({
|
602
602
|
content: '(media | unsupportedBlock)+',
|
603
|
-
marks: 'link annotation border unsupportedNodeAttribute
|
603
|
+
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
604
604
|
group: 'block',
|
605
605
|
attrs: {},
|
606
606
|
selectable: false
|
@@ -669,12 +669,12 @@ export const mediaSingle = createPMNodeSpecFactory({
|
|
669
669
|
}
|
670
670
|
},
|
671
671
|
selectable: true,
|
672
|
-
content: 'media|media
|
672
|
+
content: 'media|unsupportedBlock+|media unsupportedBlock+',
|
673
673
|
marks: 'annotation border link unsupportedMark unsupportedNodeAttribute'
|
674
674
|
});
|
675
675
|
export const mediaSingleCaption = createPMNodeSpecFactory({
|
676
|
-
content: 'media|media
|
677
|
-
marks: 'link annotation border unsupportedNodeAttribute
|
676
|
+
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
677
|
+
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
678
678
|
group: 'block',
|
679
679
|
atom: false,
|
680
680
|
attrs: {
|
@@ -688,8 +688,8 @@ export const mediaSingleCaption = createPMNodeSpecFactory({
|
|
688
688
|
selectable: true
|
689
689
|
});
|
690
690
|
export const mediaSingleFull = createPMNodeSpecFactory({
|
691
|
-
content: 'media|media
|
692
|
-
marks: 'link annotation border unsupportedNodeAttribute
|
691
|
+
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
692
|
+
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
693
693
|
group: 'block',
|
694
694
|
atom: false,
|
695
695
|
attrs: {
|
@@ -706,8 +706,8 @@ export const mediaSingleFull = createPMNodeSpecFactory({
|
|
706
706
|
selectable: true
|
707
707
|
});
|
708
708
|
export const mediaSingleWidthType = createPMNodeSpecFactory({
|
709
|
-
content: 'media|media
|
710
|
-
marks: 'link annotation border unsupportedNodeAttribute
|
709
|
+
content: 'media|unsupportedBlock+|media unsupportedBlock+',
|
710
|
+
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
711
711
|
group: 'block',
|
712
712
|
atom: true,
|
713
713
|
attrs: {
|
@@ -794,8 +794,8 @@ export const multiBodiedExtensionStage0 = createPMNodeSpecFactory({
|
|
794
794
|
definingAsContext: true
|
795
795
|
});
|
796
796
|
export const nestedExpand = createPMNodeSpecFactory({
|
797
|
-
content: '(
|
798
|
-
marks: 'unsupportedNodeAttribute
|
797
|
+
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+',
|
798
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
799
799
|
attrs: {
|
800
800
|
title: {
|
801
801
|
default: ''
|
@@ -821,7 +821,7 @@ export const nestedExpandWithNoMarks = createPMNodeSpecFactory({
|
|
821
821
|
});
|
822
822
|
export const orderedList = createPMNodeSpecFactory({
|
823
823
|
content: 'listItem+',
|
824
|
-
marks: 'unsupportedNodeAttribute
|
824
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
825
825
|
group: 'block',
|
826
826
|
attrs: {
|
827
827
|
order: {
|
@@ -831,8 +831,8 @@ export const orderedList = createPMNodeSpecFactory({
|
|
831
831
|
selectable: false
|
832
832
|
});
|
833
833
|
export const panel = createPMNodeSpecFactory({
|
834
|
-
content: '(
|
835
|
-
marks: 'unsupportedNodeAttribute
|
834
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock)+',
|
835
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
836
836
|
group: 'block',
|
837
837
|
attrs: {
|
838
838
|
panelType: {
|
@@ -854,8 +854,8 @@ export const panel = createPMNodeSpecFactory({
|
|
854
854
|
selectable: true
|
855
855
|
});
|
856
856
|
export const panelLegacy = createPMNodeSpecFactory({
|
857
|
-
content: '(
|
858
|
-
marks: 'unsupportedNodeAttribute
|
857
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | unsupportedBlock)+',
|
858
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
859
859
|
group: 'block',
|
860
860
|
attrs: {
|
861
861
|
panelType: {
|
@@ -968,7 +968,7 @@ export const statusStage0 = createPMNodeSpecFactory({
|
|
968
968
|
});
|
969
969
|
export const table = createPMNodeSpecFactory({
|
970
970
|
content: 'tableRow+',
|
971
|
-
marks: 'unsupportedNodeAttribute
|
971
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
972
972
|
group: 'block',
|
973
973
|
attrs: {
|
974
974
|
displayMode: {
|
@@ -995,8 +995,8 @@ export const table = createPMNodeSpecFactory({
|
|
995
995
|
tableRole: 'table'
|
996
996
|
});
|
997
997
|
export const tableCell = createPMNodeSpecFactory({
|
998
|
-
content: '(
|
999
|
-
marks: '
|
998
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
|
999
|
+
marks: 'alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
1000
1000
|
attrs: {
|
1001
1001
|
colspan: {
|
1002
1002
|
default: 1
|
@@ -1016,8 +1016,8 @@ export const tableCell = createPMNodeSpecFactory({
|
|
1016
1016
|
tableRole: 'cell'
|
1017
1017
|
});
|
1018
1018
|
export const tableHeader = createPMNodeSpecFactory({
|
1019
|
-
content: '(
|
1020
|
-
marks: '
|
1019
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
|
1020
|
+
marks: 'alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
1021
1021
|
attrs: {
|
1022
1022
|
colspan: {
|
1023
1023
|
default: 1
|
@@ -1038,7 +1038,7 @@ export const tableHeader = createPMNodeSpecFactory({
|
|
1038
1038
|
});
|
1039
1039
|
export const tableRow = createPMNodeSpecFactory({
|
1040
1040
|
content: '(tableCell | tableHeader)+',
|
1041
|
-
marks: 'unsupportedNodeAttribute
|
1041
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
1042
1042
|
selectable: false,
|
1043
1043
|
tableRole: 'row'
|
1044
1044
|
});
|
@@ -1058,7 +1058,7 @@ export const taskItem = createPMNodeSpecFactory({
|
|
1058
1058
|
});
|
1059
1059
|
export const taskList = createPMNodeSpecFactory({
|
1060
1060
|
content: '(taskItem | unsupportedBlock)+ (taskItem | taskList | unsupportedBlock)*',
|
1061
|
-
marks: 'unsupportedNodeAttribute
|
1061
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
1062
1062
|
group: 'block',
|
1063
1063
|
attrs: {
|
1064
1064
|
localId: {
|
@@ -18,7 +18,7 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
18
18
|
|
19
19
|
// Not an actual group, but a collection of nodes that can't be nested inside each other
|
20
20
|
// TODO: make it an actual group
|
21
|
-
export const nonNestableBlockContent = [
|
21
|
+
export const nonNestableBlockContent = [paragraph.use('with_no_marks'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), codeBlock.use('with_no_marks'), mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), decisionList, taskList, table, blockCard, embedCard, extension.use('with_marks'), unsupportedBlock];
|
22
22
|
|
23
23
|
/**
|
24
24
|
* @DSLCompatibilityException
|
@@ -15,7 +15,7 @@ import { paragraph } from '../nodes/paragraph';
|
|
15
15
|
import { rule } from '../nodes/rule';
|
16
16
|
import { taskList } from '../nodes/task';
|
17
17
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
18
|
-
const tableCellContentNodes = [
|
18
|
+
const tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, decisionList, taskList, blockCard, embedCard, extension.use('with_marks'), nestedExpand.use('content'), nestedExpand.use('with_no_marks')];
|
19
19
|
|
20
20
|
// This is not an actual group, but a collection of nodes
|
21
21
|
// @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
|
@@ -4,7 +4,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
4
4
|
export const blockCard = adfNode('blockCard').define({
|
5
5
|
draggable: true,
|
6
6
|
selectable: true,
|
7
|
-
marks: [
|
7
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
8
8
|
attrs: {
|
9
9
|
anyOf: [{
|
10
10
|
url: {
|
@@ -7,8 +7,8 @@ import { unsupportedBlock } from './unsupportedBlock';
|
|
7
7
|
export const blockquote = adfNode('blockquote').define({
|
8
8
|
defining: true,
|
9
9
|
selectable: false,
|
10
|
-
marks: [
|
11
|
-
content: [$onePlus($or(paragraph.use('with_no_marks'),
|
10
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
11
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock))]
|
12
12
|
}).variant('legacy', {
|
13
13
|
ignore: ['json-schema', 'validator-spec'],
|
14
14
|
content: [$onePlus($or(paragraph, unsupportedBlock))]
|
@@ -8,7 +8,7 @@ export const bodiedExtension = adfNode('bodiedExtension').define({
|
|
8
8
|
defining: true,
|
9
9
|
selectable: true,
|
10
10
|
isolating: true,
|
11
|
-
marks: [
|
11
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
12
12
|
hasEmptyMarks: true,
|
13
13
|
attrs: {
|
14
14
|
extensionKey: {
|
@@ -46,7 +46,7 @@ export const bodiedExtension = adfNode('bodiedExtension').define({
|
|
46
46
|
},
|
47
47
|
content: [$onePlus($or(nonNestableBlockContentGroup))]
|
48
48
|
}).variant('with_marks', {
|
49
|
-
marks: [dataConsumer, fragment,
|
49
|
+
marks: [dataConsumer, fragment, unsupportedMark, unsupportedNodeAttribute],
|
50
50
|
content: [],
|
51
51
|
ignore: []
|
52
52
|
});
|
@@ -13,7 +13,7 @@ import { unsupportedInline } from './unsupportedInline';
|
|
13
13
|
export const caption = adfNode('caption').define({
|
14
14
|
isolating: true,
|
15
15
|
selectable: false,
|
16
|
-
marks: [
|
16
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
17
17
|
allowAnyChildMark: true,
|
18
18
|
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))],
|
19
19
|
DANGEROUS_MANUAL_OVERRIDE: {
|
@@ -7,7 +7,7 @@ import { unsupportedInline } from './unsupportedInline';
|
|
7
7
|
export const codeBlock = adfNode('codeBlock').define({
|
8
8
|
code: true,
|
9
9
|
defining: true,
|
10
|
-
marks: [
|
10
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
11
11
|
hasEmptyMarks: true,
|
12
12
|
attrs: {
|
13
13
|
language: {
|
@@ -44,7 +44,7 @@ export const codeBlock = adfNode('codeBlock').define({
|
|
44
44
|
}
|
45
45
|
}
|
46
46
|
}).variant('with_marks', {
|
47
|
-
marks: [breakout,
|
47
|
+
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
48
48
|
ignore: ['pm-spec']
|
49
49
|
}).variant('with_no_marks', {
|
50
50
|
content: [],
|
@@ -5,7 +5,7 @@ import { unsupportedMark } from '../marks/unsupportedMark';
|
|
5
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
6
6
|
export const decisionItem = adfNode('decisionItem').define({
|
7
7
|
defining: true,
|
8
|
-
marks: [
|
8
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
9
9
|
allowAnyChildMark: true,
|
10
10
|
attrs: {
|
11
11
|
localId: {
|
@@ -6,7 +6,7 @@ import { unsupportedBlock } from './unsupportedBlock';
|
|
6
6
|
export const decisionList = adfNode('decisionList').define({
|
7
7
|
defining: true,
|
8
8
|
selectable: false,
|
9
|
-
marks: [
|
9
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
attrs: {
|
11
11
|
localId: {
|
12
12
|
type: 'string',
|
@@ -3,7 +3,7 @@ import { unsupportedMark } from '../marks/unsupportedMark';
|
|
3
3
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
4
|
export const embedCard = adfNode('embedCard').define({
|
5
5
|
selectable: true,
|
6
|
-
marks: [
|
6
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
7
7
|
attrs: {
|
8
8
|
url: {
|
9
9
|
type: 'string',
|
@@ -6,7 +6,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
6
6
|
export const expand = adfNode('expand').define({
|
7
7
|
isolating: true,
|
8
8
|
selectable: true,
|
9
|
-
marks: [
|
9
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
hasEmptyMarks: true,
|
11
11
|
attrs: {
|
12
12
|
title: {
|
@@ -30,7 +30,7 @@ export const expand = adfNode('expand').define({
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
}).variant('with_breakout_mark', {
|
33
|
-
marks: [breakout,
|
33
|
+
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
34
34
|
content: [],
|
35
35
|
ignore: ['pm-spec']
|
36
36
|
}).variant('with_no_mark', {
|
@@ -6,7 +6,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
6
6
|
export const extension = adfNode('extension').define({
|
7
7
|
atom: true,
|
8
8
|
selectable: true,
|
9
|
-
marks: [
|
9
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
hasEmptyMarks: true,
|
11
11
|
attrs: {
|
12
12
|
extensionKey: {
|
@@ -43,6 +43,6 @@ export const extension = adfNode('extension').define({
|
|
43
43
|
}
|
44
44
|
}
|
45
45
|
}).variant('with_marks', {
|
46
|
-
marks: [dataConsumer, fragment,
|
46
|
+
marks: [dataConsumer, fragment, unsupportedMark, unsupportedNodeAttribute],
|
47
47
|
ignore: []
|
48
48
|
});
|
@@ -26,9 +26,9 @@ export const extensionFrame = adfNode('extensionFrame').define({
|
|
26
26
|
definingAsContext: false,
|
27
27
|
definingForContent: true,
|
28
28
|
selectable: false,
|
29
|
-
marks: [dataConsumer, fragment,
|
29
|
+
marks: [dataConsumer, fragment, unsupportedMark, unsupportedNodeAttribute],
|
30
30
|
attrs: {},
|
31
|
-
content: [$onePlus($or(
|
31
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), codeBlock.use('with_no_marks'), mediaGroup, mediaSingle.use('full'), mediaSingle.use('caption'), decisionList, taskList, table, extension.use('with_marks'), bodiedExtension.use('with_marks'), unsupportedBlock, blockCard, embedCard))],
|
32
32
|
DANGEROUS_MANUAL_OVERRIDE: {
|
33
33
|
'validator-spec': {
|
34
34
|
'props.content.allowUnsupportedBlock': {
|
@@ -4,7 +4,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
4
4
|
export const hardBreak = adfNode('hardBreak').define({
|
5
5
|
inline: true,
|
6
6
|
selectable: false,
|
7
|
-
marks: [
|
7
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
8
8
|
attrs: {
|
9
9
|
// Carried over from original JSON Schema as is
|
10
10
|
text: {
|
@@ -7,7 +7,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
7
7
|
export const heading = adfNode('heading').define({
|
8
8
|
defining: true,
|
9
9
|
selectable: false,
|
10
|
-
marks: [
|
10
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
11
11
|
hasEmptyMarks: true,
|
12
12
|
attrs: {
|
13
13
|
level: {
|
@@ -36,11 +36,11 @@ export const heading = adfNode('heading').define({
|
|
36
36
|
}
|
37
37
|
}
|
38
38
|
}).variant('with_alignment', {
|
39
|
-
marks: [alignment,
|
39
|
+
marks: [alignment, unsupportedMark, unsupportedNodeAttribute],
|
40
40
|
content: [],
|
41
41
|
ignore: []
|
42
42
|
}).variant('with_indentation', {
|
43
|
-
marks: [indentation,
|
43
|
+
marks: [indentation, unsupportedMark, unsupportedNodeAttribute],
|
44
44
|
content: [],
|
45
45
|
ignore: []
|
46
46
|
}).variant('with_no_marks', {
|
@@ -6,7 +6,7 @@ export const inlineCard = adfNode('inlineCard').define({
|
|
6
6
|
inline: true,
|
7
7
|
selectable: true,
|
8
8
|
draggable: true,
|
9
|
-
marks: [
|
9
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
attrs: {
|
11
11
|
anyOf: [{
|
12
12
|
url: {
|
@@ -37,5 +37,5 @@ export const inlineCard = adfNode('inlineCard').define({
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
}).variant('with_annotation', {
|
40
|
-
marks: [annotation,
|
40
|
+
marks: [annotation, unsupportedMark, unsupportedNodeAttribute]
|
41
41
|
});
|
@@ -6,7 +6,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
6
6
|
export const inlineExtension = adfNode('inlineExtension').define({
|
7
7
|
inline: true,
|
8
8
|
selectable: true,
|
9
|
-
marks: [
|
9
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
hasEmptyMarks: true,
|
11
11
|
attrs: {
|
12
12
|
extensionKey: {
|
@@ -37,5 +37,5 @@ export const inlineExtension = adfNode('inlineExtension').define({
|
|
37
37
|
}
|
38
38
|
}
|
39
39
|
}).variant('with_marks', {
|
40
|
-
marks: [dataConsumer, fragment,
|
40
|
+
marks: [dataConsumer, fragment, unsupportedMark, unsupportedNodeAttribute]
|
41
41
|
});
|
@@ -7,7 +7,7 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
7
7
|
export const layoutColumn = adfNode('layoutColumn').define({
|
8
8
|
isolating: true,
|
9
9
|
selectable: false,
|
10
|
-
marks: [
|
10
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
11
11
|
attrs: {
|
12
12
|
width: {
|
13
13
|
type: 'number',
|
@@ -6,7 +6,7 @@ import { layoutColumn } from './layoutColumn';
|
|
6
6
|
import { unsupportedBlock } from './unsupportedBlock';
|
7
7
|
export const layoutSection = adfNode('layoutSection').define({
|
8
8
|
isolating: true,
|
9
|
-
marks: [breakout,
|
9
|
+
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
content: [$or(layoutColumn, unsupportedBlock)],
|
11
11
|
DANGEROUS_MANUAL_OVERRIDE: {
|
12
12
|
'pm-spec': {
|
@@ -46,7 +46,7 @@ export const layoutSection = adfNode('layoutSection').define({
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
}).variant('full', {
|
49
|
-
marks: [breakout,
|
49
|
+
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
50
50
|
content: [$range(2, 3, $or(layoutColumn, unsupportedBlock))],
|
51
51
|
ignore: [],
|
52
52
|
DANGEROUS_MANUAL_OVERRIDE: {
|
@@ -11,16 +11,16 @@ export const bulletList = adfNode('bulletList');
|
|
11
11
|
const listItem = adfNode('listItem').define({
|
12
12
|
defining: true,
|
13
13
|
selectable: false,
|
14
|
-
marks: [
|
14
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
15
15
|
contentMinItems: 1,
|
16
|
-
content: [$or(
|
16
|
+
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock))]
|
17
17
|
}).variant('legacy', {
|
18
|
-
content: [$or(
|
18
|
+
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock))],
|
19
19
|
ignore: ['json-schema', 'validator-spec']
|
20
20
|
});
|
21
21
|
orderedList.define({
|
22
22
|
selectable: false,
|
23
|
-
marks: [
|
23
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
24
24
|
attrs: {
|
25
25
|
order: {
|
26
26
|
type: 'number',
|
@@ -33,6 +33,6 @@ orderedList.define({
|
|
33
33
|
});
|
34
34
|
bulletList.define({
|
35
35
|
selectable: false,
|
36
|
-
marks: [
|
36
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
37
37
|
content: [$onePlus($or(listItem, listItem.use('legacy')))]
|
38
38
|
});
|
@@ -6,7 +6,7 @@ import { unsupportedMark } from '../marks/unsupportedMark';
|
|
6
6
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
7
7
|
export const media = adfNode('media').define({
|
8
8
|
selectable: true,
|
9
|
-
marks: [link, annotation, border,
|
9
|
+
marks: [link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
attrs: {
|
11
11
|
anyOf: [{
|
12
12
|
type: {
|
@@ -5,7 +5,7 @@ import { media } from './media';
|
|
5
5
|
import { unsupportedBlock } from './unsupportedBlock';
|
6
6
|
export const mediaGroup = adfNode('mediaGroup').define({
|
7
7
|
selectable: false,
|
8
|
-
marks: [
|
8
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
9
9
|
// Need to be empty object to match old PM Spec
|
10
10
|
attrs: {},
|
11
11
|
content: [$onePlus($or(media, unsupportedBlock))]
|
@@ -8,7 +8,7 @@ export const mediaInline = adfNode('mediaInline').define({
|
|
8
8
|
selectable: true,
|
9
9
|
// atom: false,
|
10
10
|
inline: true,
|
11
|
-
marks: [link, annotation, border,
|
11
|
+
marks: [link, annotation, border, unsupportedMark, unsupportedNodeAttribute],
|
12
12
|
attrs: {
|
13
13
|
type: {
|
14
14
|
type: 'enum',
|