@atlaskit/adf-schema 37.2.0 → 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 +13 -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 +191 -110
- 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/index.js +32 -505
- 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/date.js +4 -1
- 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/emoji.js +4 -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 +3 -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 +5 -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 +3 -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/mention.js +4 -1
- package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +1 -3
- 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/status.js +4 -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 +31 -16
- 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 +123 -42
- 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/index.js +3 -2
- 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/date.js +4 -1
- 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/emoji.js +4 -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 +3 -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 +5 -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 +3 -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/mention.js +4 -1
- package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +1 -3
- 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/status.js +4 -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 +31 -16
- 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 +123 -42
- 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/index.js +3 -2
- 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/date.js +4 -1
- 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/emoji.js +4 -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 +3 -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 +5 -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 +3 -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/mention.js +4 -1
- package/dist/esm/next-schema/nodes/multiBodiedExtension.js +1 -3
- 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/status.js +4 -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 +31 -16
- 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/full-schema.adf.d.ts +1 -30
- package/dist/types/next-schema/generated/markTypes.d.ts +20 -20
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +4 -4
- package/dist/types/next-schema/generated/nodeTypes.d.ts +143 -85
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +3 -119
- package/dist/types/next-schema/index.d.ts +3 -5
- package/dist/types/next-schema/nodes/blockCard.d.ts +1 -30
- package/dist/types/next-schema/nodes/blockquote.d.ts +1 -30
- package/dist/types/next-schema/nodes/bodiedExtension.d.ts +1 -30
- package/dist/types/next-schema/nodes/caption.d.ts +1 -30
- package/dist/types/next-schema/nodes/codeBlock.d.ts +2 -60
- package/dist/types/next-schema/nodes/confluenceJiraIssue.d.ts +1 -30
- package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +1 -30
- package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +1 -30
- package/dist/types/next-schema/nodes/date.d.ts +1 -30
- package/dist/types/next-schema/nodes/decisionItem.d.ts +1 -30
- package/dist/types/next-schema/nodes/decisionList.d.ts +1 -30
- package/dist/types/next-schema/nodes/embedCard.d.ts +1 -30
- package/dist/types/next-schema/nodes/emoji.d.ts +1 -30
- package/dist/types/next-schema/nodes/expand.d.ts +1 -30
- package/dist/types/next-schema/nodes/extension.d.ts +1 -30
- package/dist/types/next-schema/nodes/extensionFrame.d.ts +1 -30
- package/dist/types/next-schema/nodes/hardBreak.d.ts +1 -30
- package/dist/types/next-schema/nodes/heading.d.ts +2 -60
- package/dist/types/next-schema/nodes/image.d.ts +1 -30
- package/dist/types/next-schema/nodes/inlineCard.d.ts +1 -30
- package/dist/types/next-schema/nodes/inlineExtension.d.ts +1 -30
- package/dist/types/next-schema/nodes/layoutColumn.d.ts +1 -30
- package/dist/types/next-schema/nodes/layoutSection.d.ts +2 -30
- package/dist/types/next-schema/nodes/list.d.ts +2 -60
- package/dist/types/next-schema/nodes/media.d.ts +1 -30
- package/dist/types/next-schema/nodes/mediaGroup.d.ts +1 -30
- package/dist/types/next-schema/nodes/mediaInline.d.ts +1 -30
- package/dist/types/next-schema/nodes/mediaSingle.d.ts +1 -30
- package/dist/types/next-schema/nodes/mention.d.ts +1 -30
- package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +1 -30
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +1 -30
- package/dist/types/next-schema/nodes/panel.d.ts +1 -30
- package/dist/types/next-schema/nodes/paragraph.d.ts +1 -30
- package/dist/types/next-schema/nodes/placeholder.d.ts +1 -30
- package/dist/types/next-schema/nodes/rule.d.ts +1 -30
- package/dist/types/next-schema/nodes/status.d.ts +1 -30
- package/dist/types/next-schema/nodes/table.d.ts +1 -30
- package/dist/types/next-schema/nodes/tableCell.d.ts +1 -30
- package/dist/types/next-schema/nodes/tableCellContent.d.ts +1 -30
- package/dist/types/next-schema/nodes/tableHeader.d.ts +1 -30
- package/dist/types/next-schema/nodes/tableRow.d.ts +1 -30
- package/dist/types/next-schema/nodes/task.d.ts +2 -60
- package/dist/types/next-schema/nodes/text.d.ts +1 -30
- package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +1 -30
- package/dist/types/next-schema/nodes/unsupportedInline.d.ts +1 -30
- 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 +7 -4
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +7 -7
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +6 -4
- package/schema-generators/json-full-schema.ts +5 -4
- package/schema-generators/pm-full-schema.ts +3 -3
- package/schema-generators/validator-full-schema.ts +1 -1
@@ -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 var blockCard = createPMNodeSpecFactory({
|
9
9
|
group: 'block',
|
10
10
|
attrs: {
|
@@ -28,7 +28,7 @@ export var blockCard = createPMNodeSpecFactory({
|
|
28
28
|
draggable: true
|
29
29
|
});
|
30
30
|
export var 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 var blockquoteLegacy = createPMNodeSpecFactory({
|
|
40
40
|
defining: true
|
41
41
|
});
|
42
42
|
export var 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 var bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
|
96
96
|
});
|
97
97
|
export var bulletList = createPMNodeSpecFactory({
|
98
98
|
content: 'listItem+',
|
99
|
-
marks: 'unsupportedNodeAttribute
|
99
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
100
100
|
group: 'block',
|
101
101
|
selectable: false
|
102
102
|
});
|
@@ -185,6 +185,16 @@ export var date = createPMNodeSpecFactory({
|
|
185
185
|
},
|
186
186
|
selectable: true
|
187
187
|
});
|
188
|
+
export var dateStage0 = createPMNodeSpecFactory({
|
189
|
+
group: 'inline',
|
190
|
+
inline: true,
|
191
|
+
attrs: {
|
192
|
+
timestamp: {
|
193
|
+
default: ''
|
194
|
+
}
|
195
|
+
},
|
196
|
+
selectable: true
|
197
|
+
});
|
188
198
|
export var decisionItem = createPMNodeSpecFactory({
|
189
199
|
content: 'inline*',
|
190
200
|
marks: '_',
|
@@ -200,7 +210,7 @@ export var decisionItem = createPMNodeSpecFactory({
|
|
200
210
|
});
|
201
211
|
export var decisionList = createPMNodeSpecFactory({
|
202
212
|
content: '(decisionItem | unsupportedBlock)+',
|
203
|
-
marks: 'unsupportedNodeAttribute
|
213
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
204
214
|
group: 'block',
|
205
215
|
attrs: {
|
206
216
|
localId: {
|
@@ -212,7 +222,7 @@ export var decisionList = createPMNodeSpecFactory({
|
|
212
222
|
});
|
213
223
|
export var doc = createPMNodeSpecFactory({
|
214
224
|
content: '(block | layoutSection | blockRootOnly)+',
|
215
|
-
marks: 'unsupportedNodeAttribute
|
225
|
+
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
|
216
226
|
});
|
217
227
|
export var embedCard = createPMNodeSpecFactory({
|
218
228
|
group: 'block',
|
@@ -251,9 +261,25 @@ export var emoji = createPMNodeSpecFactory({
|
|
251
261
|
},
|
252
262
|
selectable: true
|
253
263
|
});
|
264
|
+
export var emojiStage0 = createPMNodeSpecFactory({
|
265
|
+
group: 'inline',
|
266
|
+
inline: true,
|
267
|
+
attrs: {
|
268
|
+
shortName: {
|
269
|
+
default: ''
|
270
|
+
},
|
271
|
+
id: {
|
272
|
+
default: ''
|
273
|
+
},
|
274
|
+
text: {
|
275
|
+
default: ''
|
276
|
+
}
|
277
|
+
},
|
278
|
+
selectable: true
|
279
|
+
});
|
254
280
|
export var expand = createPMNodeSpecFactory({
|
255
|
-
content: '(
|
256
|
-
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',
|
257
283
|
group: 'block',
|
258
284
|
attrs: {
|
259
285
|
title: {
|
@@ -329,8 +355,8 @@ export var extensionWithMarks = createPMNodeSpecFactory({
|
|
329
355
|
},
|
330
356
|
selectable: true
|
331
357
|
});
|
332
|
-
export var
|
333
|
-
content: '(
|
358
|
+
export var extensionFrameStage0 = createPMNodeSpecFactory({
|
359
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
|
334
360
|
marks: 'dataConsumer fragment',
|
335
361
|
attrs: {},
|
336
362
|
selectable: false,
|
@@ -426,6 +452,20 @@ export var inlineCard = createPMNodeSpecFactory({
|
|
426
452
|
selectable: true,
|
427
453
|
draggable: true
|
428
454
|
});
|
455
|
+
export var inlineCardStage0 = createPMNodeSpecFactory({
|
456
|
+
group: 'inline',
|
457
|
+
inline: true,
|
458
|
+
attrs: {
|
459
|
+
url: {
|
460
|
+
default: null
|
461
|
+
},
|
462
|
+
data: {
|
463
|
+
default: null
|
464
|
+
}
|
465
|
+
},
|
466
|
+
selectable: true,
|
467
|
+
draggable: true
|
468
|
+
});
|
429
469
|
export var inlineExtension = createPMNodeSpecFactory({
|
430
470
|
group: 'inline',
|
431
471
|
inline: true,
|
@@ -472,7 +512,7 @@ export var inlineExtensionWithMarks = createPMNodeSpecFactory({
|
|
472
512
|
});
|
473
513
|
export var layoutColumn = createPMNodeSpecFactory({
|
474
514
|
content: '(block | unsupportedBlock)+',
|
475
|
-
marks: 'unsupportedNodeAttribute
|
515
|
+
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment',
|
476
516
|
attrs: {
|
477
517
|
width: {
|
478
518
|
default: undefined
|
@@ -483,28 +523,28 @@ export var layoutColumn = createPMNodeSpecFactory({
|
|
483
523
|
});
|
484
524
|
export var layoutSection = createPMNodeSpecFactory({
|
485
525
|
content: '(layoutColumn | unsupportedBlock){1,3} unsupportedBlock* | unsupportedBlock+',
|
486
|
-
marks: 'unsupportedNodeAttribute
|
526
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
487
527
|
isolating: true
|
488
528
|
});
|
489
529
|
export var layoutSectionFull = createPMNodeSpecFactory({
|
490
530
|
content: '(layoutColumn | unsupportedBlock){2,3}',
|
491
|
-
marks: 'unsupportedNodeAttribute
|
531
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
492
532
|
isolating: true
|
493
533
|
});
|
494
|
-
export var
|
534
|
+
export var layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
|
495
535
|
content: '(layoutColumn | unsupportedBlock){1,3}',
|
496
|
-
marks: 'unsupportedNodeAttribute
|
536
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
497
537
|
isolating: true
|
498
538
|
});
|
499
539
|
export var listItem = createPMNodeSpecFactory({
|
500
|
-
content: '(
|
501
|
-
marks: 'unsupportedNodeAttribute
|
540
|
+
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock)*',
|
541
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
502
542
|
selectable: false,
|
503
543
|
defining: true
|
504
544
|
});
|
505
545
|
export var listItemLegacy = createPMNodeSpecFactory({
|
506
|
-
content: '(
|
507
|
-
marks: 'unsupportedNodeAttribute
|
546
|
+
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
|
547
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
508
548
|
selectable: false,
|
509
549
|
defining: true
|
510
550
|
});
|
@@ -560,7 +600,7 @@ export var media = createPMNodeSpecFactory({
|
|
560
600
|
});
|
561
601
|
export var mediaGroup = createPMNodeSpecFactory({
|
562
602
|
content: '(media | unsupportedBlock)+',
|
563
|
-
marks: 'link annotation border unsupportedNodeAttribute
|
603
|
+
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
564
604
|
group: 'block',
|
565
605
|
attrs: {},
|
566
606
|
selectable: false
|
@@ -629,12 +669,12 @@ export var mediaSingle = createPMNodeSpecFactory({
|
|
629
669
|
}
|
630
670
|
},
|
631
671
|
selectable: true,
|
632
|
-
content: 'media|media
|
672
|
+
content: 'media|unsupportedBlock+|media unsupportedBlock+',
|
633
673
|
marks: 'annotation border link unsupportedMark unsupportedNodeAttribute'
|
634
674
|
});
|
635
675
|
export var mediaSingleCaption = createPMNodeSpecFactory({
|
636
|
-
content: 'media|media
|
637
|
-
marks: 'link annotation border unsupportedNodeAttribute
|
676
|
+
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
677
|
+
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
638
678
|
group: 'block',
|
639
679
|
atom: false,
|
640
680
|
attrs: {
|
@@ -648,8 +688,8 @@ export var mediaSingleCaption = createPMNodeSpecFactory({
|
|
648
688
|
selectable: true
|
649
689
|
});
|
650
690
|
export var mediaSingleFull = createPMNodeSpecFactory({
|
651
|
-
content: 'media|media
|
652
|
-
marks: 'link annotation border unsupportedNodeAttribute
|
691
|
+
content: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
692
|
+
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
653
693
|
group: 'block',
|
654
694
|
atom: false,
|
655
695
|
attrs: {
|
@@ -666,8 +706,8 @@ export var mediaSingleFull = createPMNodeSpecFactory({
|
|
666
706
|
selectable: true
|
667
707
|
});
|
668
708
|
export var mediaSingleWidthType = createPMNodeSpecFactory({
|
669
|
-
content: 'media|media
|
670
|
-
marks: 'link annotation border unsupportedNodeAttribute
|
709
|
+
content: 'media|unsupportedBlock+|media unsupportedBlock+',
|
710
|
+
marks: 'link annotation border unsupportedMark unsupportedNodeAttribute',
|
671
711
|
group: 'block',
|
672
712
|
atom: true,
|
673
713
|
attrs: {
|
@@ -705,7 +745,29 @@ export var mention = createPMNodeSpecFactory({
|
|
705
745
|
},
|
706
746
|
selectable: true
|
707
747
|
});
|
708
|
-
export var
|
748
|
+
export var mentionStage0 = createPMNodeSpecFactory({
|
749
|
+
group: 'inline',
|
750
|
+
inline: true,
|
751
|
+
attrs: {
|
752
|
+
id: {
|
753
|
+
default: ''
|
754
|
+
},
|
755
|
+
localId: {
|
756
|
+
default: null
|
757
|
+
},
|
758
|
+
text: {
|
759
|
+
default: ''
|
760
|
+
},
|
761
|
+
accessLevel: {
|
762
|
+
default: ''
|
763
|
+
},
|
764
|
+
userType: {
|
765
|
+
default: null
|
766
|
+
}
|
767
|
+
},
|
768
|
+
selectable: true
|
769
|
+
});
|
770
|
+
export var multiBodiedExtensionStage0 = createPMNodeSpecFactory({
|
709
771
|
content: 'extensionFrame+',
|
710
772
|
group: 'blockRootOnly',
|
711
773
|
attrs: {
|
@@ -732,8 +794,8 @@ export var multiBodiedExtension = createPMNodeSpecFactory({
|
|
732
794
|
definingAsContext: true
|
733
795
|
});
|
734
796
|
export var nestedExpand = createPMNodeSpecFactory({
|
735
|
-
content: '(
|
736
|
-
marks: 'unsupportedNodeAttribute
|
797
|
+
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+',
|
798
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
737
799
|
attrs: {
|
738
800
|
title: {
|
739
801
|
default: ''
|
@@ -759,7 +821,7 @@ export var nestedExpandWithNoMarks = createPMNodeSpecFactory({
|
|
759
821
|
});
|
760
822
|
export var orderedList = createPMNodeSpecFactory({
|
761
823
|
content: 'listItem+',
|
762
|
-
marks: 'unsupportedNodeAttribute
|
824
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
763
825
|
group: 'block',
|
764
826
|
attrs: {
|
765
827
|
order: {
|
@@ -769,8 +831,8 @@ export var orderedList = createPMNodeSpecFactory({
|
|
769
831
|
selectable: false
|
770
832
|
});
|
771
833
|
export var panel = createPMNodeSpecFactory({
|
772
|
-
content: '(
|
773
|
-
marks: 'unsupportedNodeAttribute
|
834
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock)+',
|
835
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
774
836
|
group: 'block',
|
775
837
|
attrs: {
|
776
838
|
panelType: {
|
@@ -792,8 +854,8 @@ export var panel = createPMNodeSpecFactory({
|
|
792
854
|
selectable: true
|
793
855
|
});
|
794
856
|
export var panelLegacy = createPMNodeSpecFactory({
|
795
|
-
content: '(
|
796
|
-
marks: 'unsupportedNodeAttribute
|
857
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | unsupportedBlock)+',
|
858
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
797
859
|
group: 'block',
|
798
860
|
attrs: {
|
799
861
|
panelType: {
|
@@ -885,9 +947,28 @@ export var status = createPMNodeSpecFactory({
|
|
885
947
|
},
|
886
948
|
selectable: true
|
887
949
|
});
|
950
|
+
export var statusStage0 = createPMNodeSpecFactory({
|
951
|
+
group: 'inline',
|
952
|
+
inline: true,
|
953
|
+
attrs: {
|
954
|
+
text: {
|
955
|
+
default: ''
|
956
|
+
},
|
957
|
+
color: {
|
958
|
+
default: ''
|
959
|
+
},
|
960
|
+
localId: {
|
961
|
+
default: ''
|
962
|
+
},
|
963
|
+
style: {
|
964
|
+
default: ''
|
965
|
+
}
|
966
|
+
},
|
967
|
+
selectable: true
|
968
|
+
});
|
888
969
|
export var table = createPMNodeSpecFactory({
|
889
970
|
content: 'tableRow+',
|
890
|
-
marks: 'unsupportedNodeAttribute
|
971
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
891
972
|
group: 'block',
|
892
973
|
attrs: {
|
893
974
|
displayMode: {
|
@@ -914,8 +995,8 @@ export var table = createPMNodeSpecFactory({
|
|
914
995
|
tableRole: 'table'
|
915
996
|
});
|
916
997
|
export var tableCell = createPMNodeSpecFactory({
|
917
|
-
content: '(
|
918
|
-
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',
|
919
1000
|
attrs: {
|
920
1001
|
colspan: {
|
921
1002
|
default: 1
|
@@ -935,8 +1016,8 @@ export var tableCell = createPMNodeSpecFactory({
|
|
935
1016
|
tableRole: 'cell'
|
936
1017
|
});
|
937
1018
|
export var tableHeader = createPMNodeSpecFactory({
|
938
|
-
content: '(
|
939
|
-
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',
|
940
1021
|
attrs: {
|
941
1022
|
colspan: {
|
942
1023
|
default: 1
|
@@ -957,7 +1038,7 @@ export var tableHeader = createPMNodeSpecFactory({
|
|
957
1038
|
});
|
958
1039
|
export var tableRow = createPMNodeSpecFactory({
|
959
1040
|
content: '(tableCell | tableHeader)+',
|
960
|
-
marks: 'unsupportedNodeAttribute
|
1041
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
961
1042
|
selectable: false,
|
962
1043
|
tableRole: 'row'
|
963
1044
|
});
|
@@ -977,7 +1058,7 @@ export var taskItem = createPMNodeSpecFactory({
|
|
977
1058
|
});
|
978
1059
|
export var taskList = createPMNodeSpecFactory({
|
979
1060
|
content: '(taskItem | unsupportedBlock)+ (taskItem | taskList | unsupportedBlock)*',
|
980
|
-
marks: 'unsupportedNodeAttribute
|
1061
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
981
1062
|
group: 'block',
|
982
1063
|
attrs: {
|
983
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 var nonNestableBlockContent = [
|
21
|
+
export var 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
|
-
var tableCellContentNodes = [
|
18
|
+
var 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
|
@@ -1,2 +1,3 @@
|
|
1
|
-
export
|
2
|
-
export
|
1
|
+
export * from './generated/markTypes';
|
2
|
+
export * from './generated/nodeTypes';
|
3
|
+
export * from './generated/nodeGroupTypes';
|
@@ -4,7 +4,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
4
4
|
export var 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 var 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 var 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 var 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 var 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 var 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 var 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,12 +5,15 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
5
|
export var date = adfNode('date').define({
|
6
6
|
inline: true,
|
7
7
|
selectable: true,
|
8
|
-
marks: [unsupportedNodeAttribute, unsupportedMark
|
8
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
9
9
|
attrs: {
|
10
10
|
timestamp: {
|
11
11
|
minLength: 1,
|
12
12
|
type: 'string',
|
13
13
|
default: ''
|
14
14
|
}
|
15
|
+
},
|
16
|
+
stage0: {
|
17
|
+
marks: [unsupportedNodeAttribute, unsupportedMark, annotation]
|
15
18
|
}
|
16
19
|
});
|
@@ -5,7 +5,7 @@ import { unsupportedMark } from '../marks/unsupportedMark';
|
|
5
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
6
6
|
export var 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 var 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 var embedCard = adfNode('embedCard').define({
|
5
5
|
selectable: true,
|
6
|
-
marks: [
|
6
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
7
7
|
attrs: {
|
8
8
|
url: {
|
9
9
|
type: 'string',
|
@@ -5,7 +5,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
5
|
export var emoji = adfNode('emoji').define({
|
6
6
|
inline: true,
|
7
7
|
selectable: true,
|
8
|
-
marks: [unsupportedNodeAttribute, unsupportedMark
|
8
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
9
9
|
attrs: {
|
10
10
|
shortName: {
|
11
11
|
type: 'string',
|
@@ -21,5 +21,8 @@ export var emoji = adfNode('emoji').define({
|
|
21
21
|
default: '',
|
22
22
|
optional: true
|
23
23
|
}
|
24
|
+
},
|
25
|
+
stage0: {
|
26
|
+
marks: [unsupportedNodeAttribute, unsupportedMark, annotation]
|
24
27
|
}
|
25
28
|
});
|
@@ -6,7 +6,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
6
6
|
export var 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 var 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 var 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 var 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
|
});
|
@@ -21,13 +21,14 @@ import { table } from './table';
|
|
21
21
|
import { taskList } from './task';
|
22
22
|
import { unsupportedBlock } from './unsupportedBlock';
|
23
23
|
export var extensionFrame = adfNode('extensionFrame').define({
|
24
|
+
stage0: true,
|
24
25
|
isolating: true,
|
25
26
|
definingAsContext: false,
|
26
27
|
definingForContent: true,
|
27
28
|
selectable: false,
|
28
|
-
marks: [dataConsumer, fragment,
|
29
|
+
marks: [dataConsumer, fragment, unsupportedMark, unsupportedNodeAttribute],
|
29
30
|
attrs: {},
|
30
|
-
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))],
|
31
32
|
DANGEROUS_MANUAL_OVERRIDE: {
|
32
33
|
'validator-spec': {
|
33
34
|
'props.content.allowUnsupportedBlock': {
|
@@ -4,7 +4,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
4
4
|
export var 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 var 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 var 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 var 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: {
|
@@ -21,6 +21,9 @@ export var inlineCard = adfNode('inlineCard').define({
|
|
21
21
|
}
|
22
22
|
}]
|
23
23
|
},
|
24
|
+
stage0: {
|
25
|
+
marks: [annotation, unsupportedNodeAttribute, unsupportedMark]
|
26
|
+
},
|
24
27
|
DANGEROUS_MANUAL_OVERRIDE: {
|
25
28
|
'validator-spec': {
|
26
29
|
'props.marks': {
|
@@ -34,5 +37,5 @@ export var inlineCard = adfNode('inlineCard').define({
|
|
34
37
|
}
|
35
38
|
}
|
36
39
|
}).variant('with_annotation', {
|
37
|
-
marks: [annotation,
|
40
|
+
marks: [annotation, unsupportedMark, unsupportedNodeAttribute]
|
38
41
|
});
|