@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
@@ -6,7 +6,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
6
6
|
export var 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 var 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 var 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 var 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': {
|
@@ -23,6 +23,7 @@ export var layoutSection = adfNode('layoutSection').define({
|
|
23
23
|
}
|
24
24
|
}
|
25
25
|
}).variant('with_single_column', {
|
26
|
+
stage0: true,
|
26
27
|
content: [$range(1, 3, $or(layoutColumn, unsupportedBlock))],
|
27
28
|
ignore: [],
|
28
29
|
DANGEROUS_MANUAL_OVERRIDE: {
|
@@ -45,7 +46,7 @@ export var layoutSection = adfNode('layoutSection').define({
|
|
45
46
|
}
|
46
47
|
}
|
47
48
|
}).variant('full', {
|
48
|
-
marks: [breakout,
|
49
|
+
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
49
50
|
content: [$range(2, 3, $or(layoutColumn, unsupportedBlock))],
|
50
51
|
ignore: [],
|
51
52
|
DANGEROUS_MANUAL_OVERRIDE: {
|
@@ -11,16 +11,16 @@ export var bulletList = adfNode('bulletList');
|
|
11
11
|
var 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 var 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 var 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 var 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',
|
@@ -8,7 +8,7 @@ import { unsupportedBlock } from './unsupportedBlock';
|
|
8
8
|
export var mediaSingle = adfNode('mediaSingle').define({
|
9
9
|
atom: true,
|
10
10
|
selectable: true,
|
11
|
-
marks: [link,
|
11
|
+
marks: [link, unsupportedMark, unsupportedNodeAttribute],
|
12
12
|
attrs: {
|
13
13
|
anyOf: [{
|
14
14
|
width: {
|
@@ -50,7 +50,7 @@ export var mediaSingle = adfNode('mediaSingle').define({
|
|
50
50
|
DANGEROUS_MANUAL_OVERRIDE: {
|
51
51
|
'pm-spec': {
|
52
52
|
content: {
|
53
|
-
value: 'media|media
|
53
|
+
value: 'media|unsupportedBlock+|media unsupportedBlock+',
|
54
54
|
reason: 'The content expression is not correct or redundant around `media|media|unsupportedBlock+`. This case is not supported by the DSL.'
|
55
55
|
},
|
56
56
|
attrs: {
|
@@ -86,7 +86,7 @@ export var mediaSingle = adfNode('mediaSingle').define({
|
|
86
86
|
DANGEROUS_MANUAL_OVERRIDE: {
|
87
87
|
'pm-spec': {
|
88
88
|
content: {
|
89
|
-
value: 'media|media
|
89
|
+
value: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
90
90
|
reason: 'The content expression is not correct or redundant around `media|media|unsupportedBlock+`. This case is not supported by the DSL.'
|
91
91
|
},
|
92
92
|
attrs: {
|
@@ -110,7 +110,7 @@ export var mediaSingle = adfNode('mediaSingle').define({
|
|
110
110
|
DANGEROUS_MANUAL_OVERRIDE: {
|
111
111
|
'pm-spec': {
|
112
112
|
content: {
|
113
|
-
value: 'media|media
|
113
|
+
value: 'media|unsupportedBlock+|media (caption|unsupportedBlock) unsupportedBlock*',
|
114
114
|
reason: 'The content expression is not correct or redundant around `media|media|unsupportedBlock+`. This case is not supported by the DSL.'
|
115
115
|
}
|
116
116
|
}
|
@@ -124,7 +124,7 @@ export var mediaSingle = adfNode('mediaSingle').define({
|
|
124
124
|
DANGEROUS_MANUAL_OVERRIDE: {
|
125
125
|
'pm-spec': {
|
126
126
|
content: {
|
127
|
-
value: 'media|media
|
127
|
+
value: 'media|unsupportedBlock+|media unsupportedBlock+',
|
128
128
|
reason: 'The content expression is not correct or redundant around `media|media|unsupportedBlock+`. This case is not supported by the DSL.'
|
129
129
|
}
|
130
130
|
}
|
@@ -5,7 +5,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
5
|
export var mention = adfNode('mention').define({
|
6
6
|
inline: true,
|
7
7
|
selectable: true,
|
8
|
-
marks: [unsupportedNodeAttribute, unsupportedMark
|
8
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
9
9
|
attrs: {
|
10
10
|
id: {
|
11
11
|
type: 'string',
|
@@ -32,5 +32,8 @@ export var mention = adfNode('mention').define({
|
|
32
32
|
default: null,
|
33
33
|
optional: true
|
34
34
|
}
|
35
|
+
},
|
36
|
+
stage0: {
|
37
|
+
marks: [unsupportedNodeAttribute, unsupportedMark, annotation]
|
35
38
|
}
|
36
39
|
});
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { blockRootOnlyGroup } from '../groups/blockRootOnlyGroup';
|
3
2
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
3
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
4
|
import { extensionFrame } from './extensionFrame';
|
6
5
|
export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
|
6
|
+
stage0: true,
|
7
7
|
definingAsContext: true,
|
8
8
|
selectable: true,
|
9
|
-
group: blockRootOnlyGroup,
|
10
9
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
11
10
|
hasEmptyMarks: true,
|
12
11
|
attrs: {
|
@@ -44,7 +43,6 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
|
|
44
43
|
}
|
45
44
|
},
|
46
45
|
content: [$onePlus($or(extensionFrame))],
|
47
|
-
ignore: [],
|
48
46
|
DANGEROUS_MANUAL_OVERRIDE: {
|
49
47
|
'validator-spec': {
|
50
48
|
'props.content.minItems': {
|
@@ -16,7 +16,7 @@ import { unsupportedBlock } from './unsupportedBlock';
|
|
16
16
|
export var nestedExpand = adfNode('nestedExpand').define({
|
17
17
|
isolating: true,
|
18
18
|
selectable: true,
|
19
|
-
marks: [
|
19
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
20
20
|
attrs: {
|
21
21
|
title: {
|
22
22
|
type: 'string',
|
@@ -29,7 +29,7 @@ export var nestedExpand = adfNode('nestedExpand').define({
|
|
29
29
|
optional: true
|
30
30
|
}
|
31
31
|
},
|
32
|
-
content: [$onePlus($or(
|
32
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), heading.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, codeBlock.use('with_no_marks'), bulletList, orderedList, taskList, decisionList, rule, panel, blockquote, unsupportedBlock))],
|
33
33
|
DANGEROUS_MANUAL_OVERRIDE: {
|
34
34
|
'validator-spec': {
|
35
35
|
'props.attrs.optional': {
|
@@ -14,7 +14,7 @@ import { taskList } from './task';
|
|
14
14
|
import { unsupportedBlock } from './unsupportedBlock';
|
15
15
|
export var panel = adfNode('panel').define({
|
16
16
|
selectable: true,
|
17
|
-
marks: [
|
17
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
18
18
|
attrs: {
|
19
19
|
panelType: {
|
20
20
|
type: 'enum',
|
@@ -42,8 +42,8 @@ export var panel = adfNode('panel').define({
|
|
42
42
|
optional: true
|
43
43
|
}
|
44
44
|
},
|
45
|
-
content: [$onePlus($or(
|
45
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), taskList, rule, decisionList, unsupportedBlock))]
|
46
46
|
}).variant('legacy', {
|
47
|
-
content: [$onePlus($or(
|
47
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, unsupportedBlock))],
|
48
48
|
ignore: ['json-schema', 'validator-spec']
|
49
49
|
});
|
@@ -14,7 +14,7 @@ export var paragraph = adfNode('paragraph').define({
|
|
14
14
|
}
|
15
15
|
},
|
16
16
|
selectable: false,
|
17
|
-
marks: [
|
17
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
18
18
|
hasEmptyMarks: true,
|
19
19
|
content: [$zeroPlus($or(inlineGroup, atomicInlineGroup, inlineContentGroup))],
|
20
20
|
DANGEROUS_MANUAL_OVERRIDE: {
|
@@ -30,15 +30,15 @@ export var paragraph = adfNode('paragraph').define({
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
}).variant('with_alignment', {
|
33
|
-
marks: [alignment,
|
33
|
+
marks: [alignment, unsupportedMark, unsupportedNodeAttribute],
|
34
34
|
content: [],
|
35
35
|
ignore: []
|
36
36
|
}).variant('with_indentation', {
|
37
|
-
marks: [indentation,
|
37
|
+
marks: [indentation, unsupportedMark, unsupportedNodeAttribute],
|
38
38
|
content: [],
|
39
39
|
ignore: []
|
40
40
|
}).variant('with_marks', {
|
41
|
-
marks: [alignment,
|
41
|
+
marks: [alignment, unsupportedMark, unsupportedNodeAttribute],
|
42
42
|
content: [],
|
43
43
|
ignore: []
|
44
44
|
}).variant('with_no_marks', {
|
@@ -4,7 +4,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
4
4
|
export var placeholder = adfNode('placeholder').define({
|
5
5
|
selectable: false,
|
6
6
|
inline: true,
|
7
|
-
marks: [
|
7
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
8
8
|
allowNoChildMark: true,
|
9
9
|
attrs: {
|
10
10
|
text: {
|
@@ -5,7 +5,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
5
|
export var status = adfNode('status').define({
|
6
6
|
inline: true,
|
7
7
|
selectable: true,
|
8
|
-
marks: [unsupportedNodeAttribute, unsupportedMark
|
8
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
9
9
|
attrs: {
|
10
10
|
text: {
|
11
11
|
minLength: 1,
|
@@ -27,5 +27,8 @@ export var status = adfNode('status').define({
|
|
27
27
|
optional: true,
|
28
28
|
default: ''
|
29
29
|
}
|
30
|
+
},
|
31
|
+
stage0: {
|
32
|
+
marks: [unsupportedNodeAttribute, unsupportedMark, annotation]
|
30
33
|
}
|
31
34
|
});
|
@@ -7,7 +7,7 @@ export var table = adfNode('table').define({
|
|
7
7
|
isolating: true,
|
8
8
|
selectable: true,
|
9
9
|
tableRole: 'table',
|
10
|
-
marks: [fragment,
|
10
|
+
marks: [fragment, unsupportedMark, unsupportedNodeAttribute],
|
11
11
|
attrs: {
|
12
12
|
displayMode: {
|
13
13
|
type: 'enum',
|
@@ -6,7 +6,7 @@ export var tableCell = adfNode('tableCell').define({
|
|
6
6
|
isolating: true,
|
7
7
|
selectable: false,
|
8
8
|
tableRole: 'cell',
|
9
|
-
marks: [
|
9
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
attrs: {
|
11
11
|
colspan: {
|
12
12
|
type: 'number',
|
@@ -6,7 +6,7 @@ export var tableHeader = adfNode('tableHeader').define({
|
|
6
6
|
isolating: true,
|
7
7
|
selectable: false,
|
8
8
|
tableRole: 'header_cell',
|
9
|
-
marks: [
|
9
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
attrs: {
|
11
11
|
colspan: {
|
12
12
|
type: 'number',
|
@@ -6,7 +6,7 @@ import { tableHeader } from './tableHeader';
|
|
6
6
|
import { tableCellContent } from './tableCellContent';
|
7
7
|
export var tableRow = adfNode('tableRow').define({
|
8
8
|
selectable: false,
|
9
|
-
marks: [
|
9
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
10
10
|
content: [$onePlus($or(tableCell, tableHeader, tableCellContent))],
|
11
11
|
tableRole: 'row',
|
12
12
|
DANGEROUS_MANUAL_OVERRIDE: {
|
@@ -9,7 +9,7 @@ export var taskList = adfNode('taskList');
|
|
9
9
|
taskItem.define({
|
10
10
|
defining: true,
|
11
11
|
selectable: false,
|
12
|
-
marks: [
|
12
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
13
13
|
allowAnyChildMark: true,
|
14
14
|
attrs: {
|
15
15
|
localId: {
|
@@ -27,7 +27,7 @@ taskItem.define({
|
|
27
27
|
taskList.define({
|
28
28
|
defining: true,
|
29
29
|
selectable: false,
|
30
|
-
marks: [
|
30
|
+
marks: [unsupportedMark, unsupportedNodeAttribute],
|
31
31
|
attrs: {
|
32
32
|
localId: {
|
33
33
|
type: 'string',
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
4
|
+
/**
|
5
|
+
* Factory method to attach custom parseDOM and/or toDOM for nodeSpec
|
6
|
+
*
|
7
|
+
* @example
|
8
|
+
* createPMNodeSpecFactory<SomeNode>(node)({parseDOM: {}, toDOM: (node) => {} });
|
9
|
+
*
|
10
|
+
* @param nodeSpec - NodeSpec without toDom and parseDom
|
11
|
+
* @returns A function for a node which allows the consumer to define toDom and parseDom
|
12
|
+
*/
|
13
|
+
export var createPMNodeSpecFactory = function createPMNodeSpecFactory(nodeSpec) {
|
14
|
+
return function (_ref) {
|
15
|
+
var parseDOM = _ref.parseDOM,
|
16
|
+
toDOM = _ref.toDOM,
|
17
|
+
toDebugString = _ref.toDebugString;
|
18
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, nodeSpec), parseDOM && {
|
19
|
+
parseDOM: parseDOM
|
20
|
+
}), toDOM && {
|
21
|
+
toDOM: toDOM
|
22
|
+
}), toDebugString && {
|
23
|
+
toDebugString: toDebugString
|
24
|
+
});
|
25
|
+
};
|
26
|
+
};
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Factory method to attach custom parseDOM and/or toDOM for markSpec
|
30
|
+
*
|
31
|
+
* @example
|
32
|
+
* createPMMarkSpecFactory<SomeMark>(mark)({parseDOM: {}, toDOM: (mark, inline) => {} });
|
33
|
+
*
|
34
|
+
* @param markSpec - Markspec without toDom and parseDom
|
35
|
+
* @returns A function for a mark which allows the consumer to define toDom and parseDom
|
36
|
+
*/
|
37
|
+
export var createPMMarkSpecFactory = function createPMMarkSpecFactory(markSpec) {
|
38
|
+
return function (_ref2) {
|
39
|
+
var parseDOM = _ref2.parseDOM,
|
40
|
+
toDOM = _ref2.toDOM,
|
41
|
+
toDebugString = _ref2.toDebugString;
|
42
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, markSpec), parseDOM && {
|
43
|
+
parseDOM: parseDOM
|
44
|
+
}), toDOM && {
|
45
|
+
toDOM: toDOM
|
46
|
+
}), toDebugString && {
|
47
|
+
toDebugString: toDebugString
|
48
|
+
});
|
49
|
+
};
|
50
|
+
};
|
package/dist/esm/schema/index.js
CHANGED
@@ -3,4 +3,8 @@ export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout,
|
|
3
3
|
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette } from './marks';
|
4
4
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
5
5
|
export { inlineNodes } from './inline-nodes';
|
6
|
-
export { sanitizeNodes, createSchema } from './create-schema';
|
6
|
+
export { sanitizeNodes, createSchema } from './create-schema';
|
7
|
+
|
8
|
+
// ADF createPMSpecFactory
|
9
|
+
|
10
|
+
export { createPMNodeSpecFactory, createPMMarkSpecFactory } from './createPMSpecFactory';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { alignment as alignmentFactory } from '../../next-schema/generated/markTypes';
|
2
2
|
|
3
3
|
/** TODO: Flip these positions for RTL */
|
4
4
|
export var alignmentPositionMap = {
|
@@ -11,12 +11,7 @@ export var alignmentPositionMap = {
|
|
11
11
|
* @name alignment_mark
|
12
12
|
*/
|
13
13
|
|
14
|
-
export var alignment = {
|
15
|
-
excludes: "alignment ".concat(INDENTATION),
|
16
|
-
group: ALIGNMENT,
|
17
|
-
attrs: {
|
18
|
-
align: {}
|
19
|
-
},
|
14
|
+
export var alignment = alignmentFactory({
|
20
15
|
parseDOM: [{
|
21
16
|
tag: 'div.fabric-editor-block-mark',
|
22
17
|
getAttrs: function getAttrs(dom) {
|
@@ -32,4 +27,4 @@ export var alignment = {
|
|
32
27
|
'data-align': mark.attrs.align
|
33
28
|
}, 0];
|
34
29
|
}
|
35
|
-
};
|
30
|
+
});
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
4
|
+
import { annotation as annotationFactory } from '../../next-schema/generated/markTypes';
|
5
|
+
|
4
6
|
/**
|
5
7
|
* @name annotation_mark
|
6
8
|
*/
|
@@ -30,18 +32,7 @@ export function buildDataAttributes(_ref) {
|
|
30
32
|
}
|
31
33
|
return data;
|
32
34
|
}
|
33
|
-
export var annotation = {
|
34
|
-
inclusive: true,
|
35
|
-
group: 'annotation',
|
36
|
-
excludes: '',
|
37
|
-
attrs: {
|
38
|
-
id: {
|
39
|
-
default: ''
|
40
|
-
},
|
41
|
-
annotationType: {
|
42
|
-
default: AnnotationTypes.INLINE_COMMENT
|
43
|
-
}
|
44
|
-
},
|
35
|
+
export var annotation = annotationFactory({
|
45
36
|
parseDOM: [{
|
46
37
|
tag: 'span[data-mark-type="annotation"]',
|
47
38
|
mark: 'annotation',
|
@@ -71,4 +62,4 @@ export var annotation = {
|
|
71
62
|
annotationType: node.attrs.annotationType
|
72
63
|
})), 0];
|
73
64
|
}
|
74
|
-
};
|
65
|
+
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
|
+
import { backgroundColor as backgroundColorFactory } from '../../next-schema/generated/markTypes';
|
3
4
|
import { hexToEditorTextBackgroundPaletteColor } from '../../utils/editor-palette';
|
4
|
-
import { COLOR } from '../groups';
|
5
5
|
import { rgbToHex, L200, T200, P200, M200, Neutral300, O200 } from '../../utils/colors';
|
6
6
|
import { getGlobalTheme } from './text-color';
|
7
7
|
import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
|
@@ -31,13 +31,7 @@ colorArrayPalette.forEach(function (_ref) {
|
|
31
31
|
label = _ref2[1];
|
32
32
|
return backgroundColorPalette.set(color.toLowerCase(), label);
|
33
33
|
});
|
34
|
-
export var backgroundColor = {
|
35
|
-
attrs: {
|
36
|
-
color: {}
|
37
|
-
},
|
38
|
-
inclusive: true,
|
39
|
-
group: COLOR,
|
40
|
-
excludes: "".concat(COLOR),
|
34
|
+
export var backgroundColor = backgroundColorFactory({
|
41
35
|
parseDOM: [{
|
42
36
|
style: 'background-color',
|
43
37
|
getAttrs: function getAttrs(maybeValue) {
|
@@ -109,4 +103,4 @@ export var backgroundColor = {
|
|
109
103
|
style: "--custom-palette-color: ".concat(paletteColorValue)
|
110
104
|
}, 'data-background-custom-color', mark.attrs.color)];
|
111
105
|
}
|
112
|
-
};
|
106
|
+
});
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
2
|
+
import { border as borderFactory } from '../../next-schema/generated/markTypes';
|
2
3
|
import { hexToEditorBorderPaletteColor } from '../../utils/editor-palette';
|
3
4
|
import { N300A, N600, N1000 } from '../../utils/colors';
|
4
5
|
|
@@ -15,8 +16,7 @@ borderColorArrayPalette.forEach(function (_ref) {
|
|
15
16
|
label = _ref2[1];
|
16
17
|
return borderColorPalette.set(color.toLowerCase(), label);
|
17
18
|
});
|
18
|
-
export var border = {
|
19
|
-
inclusive: false,
|
19
|
+
export var border = borderFactory({
|
20
20
|
parseDOM: [{
|
21
21
|
tag: '[data-mark-type="border"]',
|
22
22
|
getAttrs: function getAttrs(domNode) {
|
@@ -30,10 +30,6 @@ export var border = {
|
|
30
30
|
};
|
31
31
|
}
|
32
32
|
}],
|
33
|
-
attrs: {
|
34
|
-
color: {},
|
35
|
-
size: {}
|
36
|
-
},
|
37
33
|
toDOM: function toDOM(mark, isInline) {
|
38
34
|
var wrapperStyle = isInline ? 'span' : 'div';
|
39
35
|
|
@@ -48,4 +44,4 @@ export var border = {
|
|
48
44
|
style: "--custom-palette-color: ".concat(paletteColorValue)
|
49
45
|
}];
|
50
46
|
}
|
51
|
-
};
|
47
|
+
});
|
@@ -1,12 +1,11 @@
|
|
1
|
+
import { breakout as breakoutFactory } from '../../next-schema/generated/markTypes';
|
1
2
|
var allowedTypes = ['wide', 'full-width'];
|
2
3
|
|
3
4
|
/**
|
4
5
|
* @name breakout_mark
|
5
6
|
*/
|
6
7
|
|
7
|
-
export var breakout = {
|
8
|
-
spanning: false,
|
9
|
-
inclusive: false,
|
8
|
+
export var breakout = breakoutFactory({
|
10
9
|
parseDOM: [{
|
11
10
|
tag: 'div.fabric-editor-breakout-mark',
|
12
11
|
getAttrs: function getAttrs(dom) {
|
@@ -16,15 +15,10 @@ export var breakout = {
|
|
16
15
|
};
|
17
16
|
}
|
18
17
|
}],
|
19
|
-
attrs: {
|
20
|
-
mode: {
|
21
|
-
default: 'wide'
|
22
|
-
}
|
23
|
-
},
|
24
18
|
toDOM: function toDOM(mark) {
|
25
19
|
return ['div', {
|
26
20
|
class: 'fabric-editor-breakout-mark',
|
27
21
|
'data-mode': mark.attrs.mode
|
28
22
|
}, 0];
|
29
23
|
}
|
30
|
-
};
|
24
|
+
});
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { code as codeFactory } from '../../next-schema/generated/markTypes';
|
2
2
|
|
3
3
|
/**
|
4
4
|
* @name code_mark
|
5
5
|
*/
|
6
6
|
|
7
|
-
export var code = {
|
8
|
-
excludes: "".concat(FONT_STYLE, " ").concat(LINK, " ").concat(SEARCH_QUERY, " ").concat(COLOR),
|
9
|
-
inclusive: true,
|
7
|
+
export var code = codeFactory({
|
10
8
|
parseDOM: [{
|
11
9
|
tag: 'span.code',
|
12
10
|
preserveWhitespace: true
|
@@ -36,4 +34,4 @@ export var code = {
|
|
36
34
|
spellcheck: 'false'
|
37
35
|
}];
|
38
36
|
}
|
39
|
-
};
|
37
|
+
});
|
@@ -1,16 +1,11 @@
|
|
1
|
+
import { confluenceInlineComment as confluenceInlineCommentFactory } from '../../next-schema/generated/markTypes';
|
2
|
+
|
1
3
|
/**
|
2
4
|
* @name inline_comment_marker
|
3
5
|
* @description This temporary mark represents a Confluence-backed inline comment that wraps a piece of text. It will be replaced with a cross-product inline comment solution at later date.
|
4
6
|
*/
|
5
7
|
|
6
|
-
export var confluenceInlineComment = {
|
7
|
-
inclusive: false,
|
8
|
-
excludes: '',
|
9
|
-
attrs: {
|
10
|
-
reference: {
|
11
|
-
default: ''
|
12
|
-
}
|
13
|
-
},
|
8
|
+
export var confluenceInlineComment = confluenceInlineCommentFactory({
|
14
9
|
parseDOM: [{
|
15
10
|
tag: 'span[data-mark-type="confluenceInlineComment"]'
|
16
11
|
}],
|
@@ -20,4 +15,4 @@ export var confluenceInlineComment = {
|
|
20
15
|
'data-reference': node.attrs.reference
|
21
16
|
}];
|
22
17
|
}
|
23
|
-
};
|
18
|
+
});
|