@atlaskit/adf-schema 37.2.1 → 38.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/next-schema/generated/markTypes.js +21 -21
- package/dist/cjs/next-schema/generated/nodeTypes.js +114 -114
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/blockCard.js +1 -1
- package/dist/cjs/next-schema/nodes/blockquote.js +2 -2
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/cjs/next-schema/nodes/caption.js +1 -1
- package/dist/cjs/next-schema/nodes/codeBlock.js +2 -2
- package/dist/cjs/next-schema/nodes/decisionItem.js +1 -1
- package/dist/cjs/next-schema/nodes/decisionList.js +1 -1
- package/dist/cjs/next-schema/nodes/embedCard.js +1 -1
- package/dist/cjs/next-schema/nodes/expand.js +2 -2
- package/dist/cjs/next-schema/nodes/extension.js +2 -2
- package/dist/cjs/next-schema/nodes/extensionFrame.js +2 -2
- package/dist/cjs/next-schema/nodes/hardBreak.js +1 -1
- package/dist/cjs/next-schema/nodes/heading.js +3 -3
- package/dist/cjs/next-schema/nodes/inlineCard.js +2 -2
- package/dist/cjs/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/cjs/next-schema/nodes/layoutColumn.js +1 -1
- package/dist/cjs/next-schema/nodes/layoutSection.js +2 -2
- package/dist/cjs/next-schema/nodes/list.js +5 -5
- package/dist/cjs/next-schema/nodes/media.js +1 -1
- package/dist/cjs/next-schema/nodes/mediaGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/mediaInline.js +1 -1
- package/dist/cjs/next-schema/nodes/mediaSingle.js +5 -5
- package/dist/cjs/next-schema/nodes/nestedExpand.js +2 -2
- package/dist/cjs/next-schema/nodes/panel.js +3 -3
- package/dist/cjs/next-schema/nodes/paragraph.js +4 -4
- package/dist/cjs/next-schema/nodes/placeholder.js +1 -1
- package/dist/cjs/next-schema/nodes/table.js +1 -1
- package/dist/cjs/next-schema/nodes/tableCell.js +1 -1
- package/dist/cjs/next-schema/nodes/tableHeader.js +1 -1
- package/dist/cjs/next-schema/nodes/tableRow.js +1 -1
- package/dist/cjs/next-schema/nodes/task.js +2 -2
- package/dist/cjs/next-schema/nodes/text.js +1 -1
- package/dist/cjs/schema/createPMSpecFactory.js +57 -0
- package/dist/cjs/schema/index.js +14 -1
- package/dist/cjs/schema/marks/alignment.js +3 -8
- package/dist/cjs/schema/marks/annotation.js +3 -13
- package/dist/cjs/schema/marks/background-color.js +3 -9
- package/dist/cjs/schema/marks/border.js +3 -7
- package/dist/cjs/schema/marks/breakout.js +3 -9
- package/dist/cjs/schema/marks/code.js +3 -5
- package/dist/cjs/schema/marks/confluence-inline-comment.js +3 -9
- package/dist/cjs/schema/marks/data-consumer.js +3 -7
- package/dist/cjs/schema/marks/em.js +3 -5
- package/dist/cjs/schema/marks/fragment.js +3 -12
- package/dist/cjs/schema/marks/indentation.js +3 -8
- package/dist/cjs/schema/marks/link.js +3 -13
- package/dist/cjs/schema/marks/strike.js +3 -5
- package/dist/cjs/schema/marks/strong.js +3 -5
- package/dist/cjs/schema/marks/subsup.js +3 -10
- package/dist/cjs/schema/marks/text-color.js +3 -8
- package/dist/cjs/schema/marks/type-ahead-query.js +3 -10
- package/dist/cjs/schema/marks/underline.js +3 -5
- package/dist/cjs/schema/marks/unsupported-mark.js +3 -6
- package/dist/cjs/schema/marks/unsupported-node-attributes.js +3 -6
- package/dist/cjs/schema/nodes/block-card.js +3 -23
- package/dist/cjs/schema/nodes/blockquote.js +17 -20
- package/dist/cjs/schema/nodes/bodied-extension.js +24 -54
- package/dist/cjs/schema/nodes/bullet-list.js +3 -6
- package/dist/cjs/schema/nodes/caption.js +3 -6
- package/dist/cjs/schema/nodes/code-block.js +3 -15
- package/dist/cjs/schema/nodes/confluence-jira-issue.js +3 -22
- package/dist/cjs/schema/nodes/confluence-unsupported-block.js +3 -8
- package/dist/cjs/schema/nodes/confluence-unsupported-inline.js +3 -10
- package/dist/cjs/schema/nodes/date.js +3 -10
- package/dist/cjs/schema/nodes/decision-item.js +3 -13
- package/dist/cjs/schema/nodes/decision-list.js +3 -12
- package/dist/cjs/schema/nodes/doc.js +2 -4
- package/dist/cjs/schema/nodes/embed-card.js +3 -22
- package/dist/cjs/schema/nodes/emoji.js +3 -16
- package/dist/cjs/schema/nodes/expand.js +3 -16
- package/dist/cjs/schema/nodes/extension.js +20 -47
- package/dist/cjs/schema/nodes/hard-break.js +3 -5
- package/dist/cjs/schema/nodes/heading.js +3 -14
- package/dist/cjs/schema/nodes/image.js +3 -16
- package/dist/cjs/schema/nodes/inline-card.js +3 -14
- package/dist/cjs/schema/nodes/inline-extension.js +19 -42
- package/dist/cjs/schema/nodes/layout-column.js +4 -12
- package/dist/cjs/schema/nodes/layout-section.js +23 -11
- package/dist/cjs/schema/nodes/list-item.js +5 -12
- package/dist/cjs/schema/nodes/media-group.js +3 -8
- package/dist/cjs/schema/nodes/media-inline.js +2 -1
- package/dist/cjs/schema/nodes/media-single.js +35 -14
- package/dist/cjs/schema/nodes/media.js +35 -83
- package/dist/cjs/schema/nodes/mention.js +3 -22
- package/dist/cjs/schema/nodes/multi-bodied-extension.js +26 -64
- package/dist/cjs/schema/nodes/nested-expand.js +31 -48
- package/dist/cjs/schema/nodes/ordered-list.js +4 -16
- package/dist/cjs/schema/nodes/panel.js +5 -34
- package/dist/cjs/schema/nodes/paragraph.js +3 -11
- package/dist/cjs/schema/nodes/placeholder.js +3 -11
- package/dist/cjs/schema/nodes/rule.js +3 -3
- package/dist/cjs/schema/nodes/status.js +3 -19
- package/dist/cjs/schema/nodes/tableNodes.js +9 -52
- package/dist/cjs/schema/nodes/task-item.js +3 -14
- package/dist/cjs/schema/nodes/task-list.js +3 -12
- package/dist/cjs/schema/nodes/text.js +3 -4
- package/dist/cjs/schema/nodes/unsupported-block.js +3 -11
- package/dist/cjs/schema/nodes/unsupported-inline.js +3 -10
- package/dist/es2019/index.js +5 -1
- package/dist/es2019/next-schema/generated/markTypes.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +39 -39
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/blockCard.js +1 -1
- package/dist/es2019/next-schema/nodes/blockquote.js +2 -2
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/es2019/next-schema/nodes/caption.js +1 -1
- package/dist/es2019/next-schema/nodes/codeBlock.js +2 -2
- package/dist/es2019/next-schema/nodes/decisionItem.js +1 -1
- package/dist/es2019/next-schema/nodes/decisionList.js +1 -1
- package/dist/es2019/next-schema/nodes/embedCard.js +1 -1
- package/dist/es2019/next-schema/nodes/expand.js +2 -2
- package/dist/es2019/next-schema/nodes/extension.js +2 -2
- package/dist/es2019/next-schema/nodes/extensionFrame.js +2 -2
- package/dist/es2019/next-schema/nodes/hardBreak.js +1 -1
- package/dist/es2019/next-schema/nodes/heading.js +3 -3
- package/dist/es2019/next-schema/nodes/inlineCard.js +2 -2
- package/dist/es2019/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/es2019/next-schema/nodes/layoutColumn.js +1 -1
- package/dist/es2019/next-schema/nodes/layoutSection.js +2 -2
- package/dist/es2019/next-schema/nodes/list.js +5 -5
- package/dist/es2019/next-schema/nodes/media.js +1 -1
- package/dist/es2019/next-schema/nodes/mediaGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/mediaInline.js +1 -1
- package/dist/es2019/next-schema/nodes/mediaSingle.js +5 -5
- package/dist/es2019/next-schema/nodes/nestedExpand.js +2 -2
- package/dist/es2019/next-schema/nodes/panel.js +3 -3
- package/dist/es2019/next-schema/nodes/paragraph.js +4 -4
- package/dist/es2019/next-schema/nodes/placeholder.js +1 -1
- package/dist/es2019/next-schema/nodes/table.js +1 -1
- package/dist/es2019/next-schema/nodes/tableCell.js +1 -1
- package/dist/es2019/next-schema/nodes/tableHeader.js +1 -1
- package/dist/es2019/next-schema/nodes/tableRow.js +1 -1
- package/dist/es2019/next-schema/nodes/task.js +2 -2
- package/dist/es2019/next-schema/nodes/text.js +1 -1
- package/dist/es2019/schema/createPMSpecFactory.js +55 -0
- package/dist/es2019/schema/index.js +5 -1
- package/dist/es2019/schema/marks/alignment.js +3 -8
- package/dist/es2019/schema/marks/annotation.js +4 -13
- package/dist/es2019/schema/marks/background-color.js +3 -9
- package/dist/es2019/schema/marks/border.js +3 -7
- package/dist/es2019/schema/marks/breakout.js +3 -9
- package/dist/es2019/schema/marks/code.js +3 -5
- package/dist/es2019/schema/marks/confluence-inline-comment.js +4 -9
- package/dist/es2019/schema/marks/data-consumer.js +3 -7
- package/dist/es2019/schema/marks/em.js +3 -5
- package/dist/es2019/schema/marks/fragment.js +3 -12
- package/dist/es2019/schema/marks/indentation.js +3 -8
- package/dist/es2019/schema/marks/link.js +3 -13
- package/dist/es2019/schema/marks/strike.js +3 -5
- package/dist/es2019/schema/marks/strong.js +3 -5
- package/dist/es2019/schema/marks/subsup.js +3 -10
- package/dist/es2019/schema/marks/text-color.js +3 -8
- package/dist/es2019/schema/marks/type-ahead-query.js +3 -10
- package/dist/es2019/schema/marks/underline.js +3 -5
- package/dist/es2019/schema/marks/unsupported-mark.js +3 -6
- package/dist/es2019/schema/marks/unsupported-node-attributes.js +3 -6
- package/dist/es2019/schema/nodes/block-card.js +4 -23
- package/dist/es2019/schema/nodes/blockquote.js +19 -20
- package/dist/es2019/schema/nodes/bodied-extension.js +23 -53
- package/dist/es2019/schema/nodes/bullet-list.js +3 -6
- package/dist/es2019/schema/nodes/caption.js +4 -6
- package/dist/es2019/schema/nodes/code-block.js +3 -15
- package/dist/es2019/schema/nodes/confluence-jira-issue.js +3 -22
- package/dist/es2019/schema/nodes/confluence-unsupported-block.js +3 -8
- package/dist/es2019/schema/nodes/confluence-unsupported-inline.js +3 -10
- package/dist/es2019/schema/nodes/date.js +4 -10
- package/dist/es2019/schema/nodes/decision-item.js +3 -13
- package/dist/es2019/schema/nodes/decision-list.js +3 -12
- package/dist/es2019/schema/nodes/doc.js +3 -4
- package/dist/es2019/schema/nodes/embed-card.js +4 -22
- package/dist/es2019/schema/nodes/emoji.js +3 -16
- package/dist/es2019/schema/nodes/expand.js +4 -16
- package/dist/es2019/schema/nodes/extension.js +19 -46
- package/dist/es2019/schema/nodes/hard-break.js +4 -5
- package/dist/es2019/schema/nodes/heading.js +4 -14
- package/dist/es2019/schema/nodes/image.js +3 -16
- package/dist/es2019/schema/nodes/inline-card.js +4 -14
- package/dist/es2019/schema/nodes/inline-extension.js +18 -41
- package/dist/es2019/schema/nodes/layout-column.js +5 -12
- package/dist/es2019/schema/nodes/layout-section.js +24 -10
- package/dist/es2019/schema/nodes/list-item.js +6 -12
- package/dist/es2019/schema/nodes/media-group.js +4 -8
- package/dist/es2019/schema/nodes/media-inline.js +3 -2
- package/dist/es2019/schema/nodes/media-single.js +35 -15
- package/dist/es2019/schema/nodes/media.js +35 -78
- package/dist/es2019/schema/nodes/mention.js +3 -22
- package/dist/es2019/schema/nodes/multi-bodied-extension.js +26 -63
- package/dist/es2019/schema/nodes/nested-expand.js +32 -48
- package/dist/es2019/schema/nodes/ordered-list.js +5 -14
- package/dist/es2019/schema/nodes/panel.js +5 -34
- package/dist/es2019/schema/nodes/paragraph.js +4 -11
- package/dist/es2019/schema/nodes/placeholder.js +4 -11
- package/dist/es2019/schema/nodes/rule.js +4 -3
- package/dist/es2019/schema/nodes/status.js +3 -19
- package/dist/es2019/schema/nodes/tableNodes.js +40 -82
- package/dist/es2019/schema/nodes/task-item.js +3 -14
- package/dist/es2019/schema/nodes/task-list.js +3 -12
- package/dist/es2019/schema/nodes/text.js +4 -4
- package/dist/es2019/schema/nodes/unsupported-block.js +3 -11
- package/dist/es2019/schema/nodes/unsupported-inline.js +3 -10
- package/dist/esm/index.js +5 -1
- package/dist/esm/next-schema/generated/markTypes.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +39 -39
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/blockCard.js +1 -1
- package/dist/esm/next-schema/nodes/blockquote.js +2 -2
- package/dist/esm/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/esm/next-schema/nodes/caption.js +1 -1
- package/dist/esm/next-schema/nodes/codeBlock.js +2 -2
- package/dist/esm/next-schema/nodes/decisionItem.js +1 -1
- package/dist/esm/next-schema/nodes/decisionList.js +1 -1
- package/dist/esm/next-schema/nodes/embedCard.js +1 -1
- package/dist/esm/next-schema/nodes/expand.js +2 -2
- package/dist/esm/next-schema/nodes/extension.js +2 -2
- package/dist/esm/next-schema/nodes/extensionFrame.js +2 -2
- package/dist/esm/next-schema/nodes/hardBreak.js +1 -1
- package/dist/esm/next-schema/nodes/heading.js +3 -3
- package/dist/esm/next-schema/nodes/inlineCard.js +2 -2
- package/dist/esm/next-schema/nodes/inlineExtension.js +2 -2
- package/dist/esm/next-schema/nodes/layoutColumn.js +1 -1
- package/dist/esm/next-schema/nodes/layoutSection.js +2 -2
- package/dist/esm/next-schema/nodes/list.js +5 -5
- package/dist/esm/next-schema/nodes/media.js +1 -1
- package/dist/esm/next-schema/nodes/mediaGroup.js +1 -1
- package/dist/esm/next-schema/nodes/mediaInline.js +1 -1
- package/dist/esm/next-schema/nodes/mediaSingle.js +5 -5
- package/dist/esm/next-schema/nodes/nestedExpand.js +2 -2
- package/dist/esm/next-schema/nodes/panel.js +3 -3
- package/dist/esm/next-schema/nodes/paragraph.js +4 -4
- package/dist/esm/next-schema/nodes/placeholder.js +1 -1
- package/dist/esm/next-schema/nodes/table.js +1 -1
- package/dist/esm/next-schema/nodes/tableCell.js +1 -1
- package/dist/esm/next-schema/nodes/tableHeader.js +1 -1
- package/dist/esm/next-schema/nodes/tableRow.js +1 -1
- package/dist/esm/next-schema/nodes/task.js +2 -2
- package/dist/esm/next-schema/nodes/text.js +1 -1
- package/dist/esm/schema/createPMSpecFactory.js +50 -0
- package/dist/esm/schema/index.js +5 -1
- package/dist/esm/schema/marks/alignment.js +3 -8
- package/dist/esm/schema/marks/annotation.js +4 -13
- package/dist/esm/schema/marks/background-color.js +3 -9
- package/dist/esm/schema/marks/border.js +3 -7
- package/dist/esm/schema/marks/breakout.js +3 -9
- package/dist/esm/schema/marks/code.js +3 -5
- package/dist/esm/schema/marks/confluence-inline-comment.js +4 -9
- package/dist/esm/schema/marks/data-consumer.js +3 -7
- package/dist/esm/schema/marks/em.js +3 -5
- package/dist/esm/schema/marks/fragment.js +3 -12
- package/dist/esm/schema/marks/indentation.js +3 -8
- package/dist/esm/schema/marks/link.js +3 -13
- package/dist/esm/schema/marks/strike.js +3 -5
- package/dist/esm/schema/marks/strong.js +3 -5
- package/dist/esm/schema/marks/subsup.js +3 -10
- package/dist/esm/schema/marks/text-color.js +3 -8
- package/dist/esm/schema/marks/type-ahead-query.js +3 -10
- package/dist/esm/schema/marks/underline.js +3 -5
- package/dist/esm/schema/marks/unsupported-mark.js +3 -6
- package/dist/esm/schema/marks/unsupported-node-attributes.js +3 -6
- package/dist/esm/schema/nodes/block-card.js +4 -23
- package/dist/esm/schema/nodes/blockquote.js +19 -20
- package/dist/esm/schema/nodes/bodied-extension.js +24 -54
- package/dist/esm/schema/nodes/bullet-list.js +3 -6
- package/dist/esm/schema/nodes/caption.js +4 -6
- package/dist/esm/schema/nodes/code-block.js +3 -15
- package/dist/esm/schema/nodes/confluence-jira-issue.js +3 -22
- package/dist/esm/schema/nodes/confluence-unsupported-block.js +3 -8
- package/dist/esm/schema/nodes/confluence-unsupported-inline.js +3 -10
- package/dist/esm/schema/nodes/date.js +4 -10
- package/dist/esm/schema/nodes/decision-item.js +3 -13
- package/dist/esm/schema/nodes/decision-list.js +3 -12
- package/dist/esm/schema/nodes/doc.js +3 -4
- package/dist/esm/schema/nodes/embed-card.js +4 -22
- package/dist/esm/schema/nodes/emoji.js +3 -16
- package/dist/esm/schema/nodes/expand.js +4 -16
- package/dist/esm/schema/nodes/extension.js +20 -47
- package/dist/esm/schema/nodes/hard-break.js +4 -5
- package/dist/esm/schema/nodes/heading.js +4 -14
- package/dist/esm/schema/nodes/image.js +3 -16
- package/dist/esm/schema/nodes/inline-card.js +4 -14
- package/dist/esm/schema/nodes/inline-extension.js +19 -42
- package/dist/esm/schema/nodes/layout-column.js +5 -12
- package/dist/esm/schema/nodes/layout-section.js +24 -10
- package/dist/esm/schema/nodes/list-item.js +6 -12
- package/dist/esm/schema/nodes/media-group.js +4 -8
- package/dist/esm/schema/nodes/media-inline.js +3 -2
- package/dist/esm/schema/nodes/media-single.js +35 -14
- package/dist/esm/schema/nodes/media.js +36 -82
- package/dist/esm/schema/nodes/mention.js +3 -22
- package/dist/esm/schema/nodes/multi-bodied-extension.js +27 -64
- package/dist/esm/schema/nodes/nested-expand.js +32 -48
- package/dist/esm/schema/nodes/ordered-list.js +4 -15
- package/dist/esm/schema/nodes/panel.js +5 -34
- package/dist/esm/schema/nodes/paragraph.js +4 -11
- package/dist/esm/schema/nodes/placeholder.js +4 -11
- package/dist/esm/schema/nodes/rule.js +4 -3
- package/dist/esm/schema/nodes/status.js +3 -19
- package/dist/esm/schema/nodes/tableNodes.js +12 -52
- package/dist/esm/schema/nodes/task-item.js +3 -14
- package/dist/esm/schema/nodes/task-list.js +3 -12
- package/dist/esm/schema/nodes/text.js +4 -4
- package/dist/esm/schema/nodes/unsupported-block.js +3 -11
- package/dist/esm/schema/nodes/unsupported-inline.js +3 -10
- package/dist/types/index.d.ts +2 -0
- package/dist/types/next-schema/generated/markTypes.d.ts +20 -20
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeTypes.d.ts +75 -75
- package/dist/types/schema/createPMSpecFactory.d.ts +33 -0
- package/dist/types/schema/index.d.ts +2 -0
- package/dist/types/schema/nodes/block-card.d.ts +1 -2
- package/dist/types/schema/nodes/blockquote.d.ts +2 -3
- package/dist/types/schema/nodes/bodied-extension.d.ts +1 -2
- package/dist/types/schema/nodes/bullet-list.d.ts +1 -2
- package/dist/types/schema/nodes/caption.d.ts +1 -2
- package/dist/types/schema/nodes/code-block.d.ts +2 -2
- package/dist/types/schema/nodes/confluence-jira-issue.d.ts +1 -2
- package/dist/types/schema/nodes/confluence-unsupported-block.d.ts +1 -2
- package/dist/types/schema/nodes/confluence-unsupported-inline.d.ts +1 -2
- package/dist/types/schema/nodes/date.d.ts +1 -2
- package/dist/types/schema/nodes/decision-item.d.ts +1 -2
- package/dist/types/schema/nodes/decision-list.d.ts +1 -2
- package/dist/types/schema/nodes/doc.d.ts +1 -2
- package/dist/types/schema/nodes/embed-card.d.ts +1 -2
- package/dist/types/schema/nodes/emoji.d.ts +1 -2
- package/dist/types/schema/nodes/expand.d.ts +2 -2
- package/dist/types/schema/nodes/extension.d.ts +1 -2
- package/dist/types/schema/nodes/hard-break.d.ts +1 -2
- package/dist/types/schema/nodes/heading.d.ts +1 -2
- package/dist/types/schema/nodes/image.d.ts +1 -2
- package/dist/types/schema/nodes/inline-card.d.ts +1 -2
- package/dist/types/schema/nodes/inline-extension.d.ts +1 -2
- package/dist/types/schema/nodes/layout-column.d.ts +1 -2
- package/dist/types/schema/nodes/layout-section.d.ts +3 -3
- package/dist/types/schema/nodes/list-item.d.ts +2 -3
- package/dist/types/schema/nodes/media-group.d.ts +1 -2
- package/dist/types/schema/nodes/media.d.ts +3 -1
- package/dist/types/schema/nodes/mention.d.ts +2 -2
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +2 -3
- package/dist/types/schema/nodes/nested-expand.d.ts +1 -2
- package/dist/types/schema/nodes/ordered-list.d.ts +2 -3
- package/dist/types/schema/nodes/panel.d.ts +2 -3
- package/dist/types/schema/nodes/paragraph.d.ts +1 -2
- package/dist/types/schema/nodes/placeholder.d.ts +1 -2
- package/dist/types/schema/nodes/rule.d.ts +1 -2
- package/dist/types/schema/nodes/status.d.ts +1 -2
- package/dist/types/schema/nodes/tableNodes.d.ts +7 -7
- package/dist/types/schema/nodes/task-item.d.ts +1 -2
- package/dist/types/schema/nodes/task-list.d.ts +1 -2
- package/dist/types/schema/nodes/text.d.ts +1 -4
- package/dist/types/schema/nodes/unsupported-block.d.ts +1 -2
- package/dist/types/schema/nodes/unsupported-inline.d.ts +1 -2
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +7 -7
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +4 -4
@@ -1,13 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { strong as strongFactory } from '../../next-schema/generated/markTypes';
|
2
2
|
|
3
3
|
/**
|
4
4
|
* @name strong_mark
|
5
5
|
*/
|
6
6
|
|
7
7
|
var strongDOM = ['strong'];
|
8
|
-
export var strong = {
|
9
|
-
inclusive: true,
|
10
|
-
group: FONT_STYLE,
|
8
|
+
export var strong = strongFactory({
|
11
9
|
parseDOM: [{
|
12
10
|
tag: 'strong'
|
13
11
|
},
|
@@ -31,4 +29,4 @@ export var strong = {
|
|
31
29
|
toDOM: function toDOM() {
|
32
30
|
return strongDOM;
|
33
31
|
}
|
34
|
-
};
|
32
|
+
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { subsup as subsupFactory } from '../../next-schema/generated/markTypes';
|
2
2
|
|
3
3
|
/**
|
4
4
|
* @name subsup_mark
|
@@ -15,14 +15,7 @@ function getAttrFromVerticalAlign(node) {
|
|
15
15
|
}
|
16
16
|
return false;
|
17
17
|
}
|
18
|
-
export var subsup = {
|
19
|
-
inclusive: true,
|
20
|
-
group: FONT_STYLE,
|
21
|
-
attrs: {
|
22
|
-
type: {
|
23
|
-
default: 'sub'
|
24
|
-
}
|
25
|
-
},
|
18
|
+
export var subsup = subsupFactory({
|
26
19
|
parseDOM: [{
|
27
20
|
tag: 'sub',
|
28
21
|
attrs: {
|
@@ -51,4 +44,4 @@ export var subsup = {
|
|
51
44
|
toDOM: function toDOM(mark) {
|
52
45
|
return [mark.attrs.type];
|
53
46
|
}
|
54
|
-
};
|
47
|
+
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
|
+
import { textColor as textColorFactory } from '../../next-schema/generated/markTypes';
|
3
4
|
import { hexToEditorTextPaletteColor } from '../../utils/editor-palette';
|
4
|
-
import { COLOR } from '../groups';
|
5
5
|
import { rgbToHex, N0, N80, P50, P300, P500, T75, T300, T500, G75, G300, G500, R75, R300, R500, Y75, Y200, Y400, B75, B100, B500 } from '../../utils/colors';
|
6
6
|
import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
|
7
7
|
|
@@ -88,12 +88,7 @@ export var getGlobalTheme = function getGlobalTheme() {
|
|
88
88
|
colorMode: colorMode
|
89
89
|
};
|
90
90
|
};
|
91
|
-
export var textColor = {
|
92
|
-
attrs: {
|
93
|
-
color: {}
|
94
|
-
},
|
95
|
-
inclusive: true,
|
96
|
-
group: COLOR,
|
91
|
+
export var textColor = textColorFactory({
|
97
92
|
parseDOM: [{
|
98
93
|
style: 'color',
|
99
94
|
getAttrs: function getAttrs(maybeValue) {
|
@@ -172,4 +167,4 @@ export var textColor = {
|
|
172
167
|
style: "--custom-palette-color: ".concat(paletteColorValue)
|
173
168
|
}, 'data-text-custom-color', mark.attrs.color)];
|
174
169
|
}
|
175
|
-
};
|
170
|
+
});
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { typeAheadQuery as typeAheadQueryFactory } from '../../next-schema/generated/markTypes';
|
2
2
|
import { B400 } from '../../utils/colors';
|
3
|
-
export var typeAheadQuery = {
|
4
|
-
inclusive: true,
|
5
|
-
group: SEARCH_QUERY,
|
3
|
+
export var typeAheadQuery = typeAheadQueryFactory({
|
6
4
|
parseDOM: [{
|
7
5
|
tag: 'span[data-type-ahead-query]'
|
8
6
|
}],
|
@@ -12,10 +10,5 @@ export var typeAheadQuery = {
|
|
12
10
|
'data-trigger': node.attrs.trigger,
|
13
11
|
style: "color: ".concat(B400)
|
14
12
|
}];
|
15
|
-
},
|
16
|
-
attrs: {
|
17
|
-
trigger: {
|
18
|
-
default: ''
|
19
|
-
}
|
20
13
|
}
|
21
|
-
};
|
14
|
+
});
|
@@ -1,12 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { underline as underlineFactory } from '../../next-schema/generated/markTypes';
|
2
2
|
|
3
3
|
/**
|
4
4
|
* @name underline_mark
|
5
5
|
*/
|
6
6
|
|
7
|
-
export var underline = {
|
8
|
-
inclusive: true,
|
9
|
-
group: FONT_STYLE,
|
7
|
+
export var underline = underlineFactory({
|
10
8
|
parseDOM: [{
|
11
9
|
tag: 'u'
|
12
10
|
}, {
|
@@ -18,4 +16,4 @@ export var underline = {
|
|
18
16
|
toDOM: function toDOM() {
|
19
17
|
return ['u'];
|
20
18
|
}
|
21
|
-
};
|
19
|
+
});
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
1
|
+
import { unsupportedMark as unsupportedMarkFactory } from '../../next-schema/generated/markTypes';
|
2
|
+
export var unsupportedMark = unsupportedMarkFactory({
|
2
3
|
toDOM: function toDOM() {
|
3
4
|
return ['span'];
|
4
|
-
},
|
5
|
-
excludes: '',
|
6
|
-
attrs: {
|
7
|
-
originalValue: {}
|
8
5
|
}
|
9
|
-
};
|
6
|
+
});
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
1
|
+
import { unsupportedNodeAttribute as unsupportedNodeAttributeFactory } from '../../next-schema/generated/markTypes';
|
2
|
+
export var unsupportedNodeAttribute = unsupportedNodeAttributeFactory({
|
2
3
|
toDOM: function toDOM() {
|
3
4
|
return ['span'];
|
4
|
-
},
|
5
|
-
attrs: {
|
6
|
-
type: {},
|
7
|
-
unsupported: {}
|
8
5
|
}
|
9
|
-
};
|
6
|
+
});
|
@@ -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 { blockCard as blockCardFactory } from '../../next-schema/generated/nodeTypes';
|
5
|
+
|
4
6
|
/**
|
5
7
|
* @name blockCard_node
|
6
8
|
*/
|
@@ -16,28 +18,7 @@ var getCommonAttributesFromDom = function getCommonAttributesFromDom(dom) {
|
|
16
18
|
datasource: datasource ? JSON.parse(datasource) : undefined
|
17
19
|
};
|
18
20
|
};
|
19
|
-
export var blockCard = {
|
20
|
-
inline: false,
|
21
|
-
group: 'block',
|
22
|
-
draggable: true,
|
23
|
-
selectable: true,
|
24
|
-
attrs: {
|
25
|
-
url: {
|
26
|
-
default: null
|
27
|
-
},
|
28
|
-
data: {
|
29
|
-
default: null
|
30
|
-
},
|
31
|
-
datasource: {
|
32
|
-
default: null
|
33
|
-
},
|
34
|
-
width: {
|
35
|
-
default: null
|
36
|
-
},
|
37
|
-
layout: {
|
38
|
-
default: null
|
39
|
-
}
|
40
|
-
},
|
21
|
+
export var blockCard = blockCardFactory({
|
41
22
|
parseDOM: [{
|
42
23
|
tag: 'a[data-block-card]',
|
43
24
|
// bump priority higher than hyperlink
|
@@ -77,4 +58,4 @@ export var blockCard = {
|
|
77
58
|
};
|
78
59
|
return ['a', attrs, (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.url) || ' '];
|
79
60
|
}
|
80
|
-
};
|
61
|
+
});
|
@@ -1,28 +1,27 @@
|
|
1
|
+
import { blockquote as blockquoteFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
+
import { blockquoteLegacy as blockquoteLegacyFactory } from '../../next-schema/generated/nodeTypes';
|
3
|
+
|
1
4
|
/**
|
2
5
|
* @name blockquote_node
|
3
6
|
*/
|
4
7
|
|
5
|
-
var
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
tag: 'blockquote'
|
12
|
-
}],
|
13
|
-
toDOM: function toDOM() {
|
14
|
-
return ['blockquote', 0];
|
15
|
-
}
|
16
|
-
};
|
17
|
-
if (allowList) {
|
18
|
-
blockquoteSpec.content = '(paragraph | orderedList | bulletList | unsupportedBlock)+';
|
19
|
-
} else {
|
20
|
-
blockquoteSpec.content = '(paragraph | unsupportedBlock)+';
|
8
|
+
export var blockquote = blockquoteLegacyFactory({
|
9
|
+
parseDOM: [{
|
10
|
+
tag: 'blockquote'
|
11
|
+
}],
|
12
|
+
toDOM: function toDOM() {
|
13
|
+
return ['blockquote', 0];
|
21
14
|
}
|
22
|
-
|
23
|
-
|
24
|
-
export var blockquote = createBlockquoteSpec(false);
|
15
|
+
});
|
16
|
+
|
25
17
|
/**
|
26
18
|
* @name blockquote_with_list_node
|
27
19
|
*/
|
28
|
-
export var blockquoteWithList =
|
20
|
+
export var blockquoteWithList = blockquoteFactory({
|
21
|
+
parseDOM: [{
|
22
|
+
tag: 'blockquote'
|
23
|
+
}],
|
24
|
+
toDOM: function toDOM() {
|
25
|
+
return ['blockquote', 0];
|
26
|
+
}
|
27
|
+
});
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { getExtensionAttrs } from '../../utils/extensions';
|
2
|
+
import { bodiedExtension as bodiedExtensionFactory } from '../../next-schema/generated/nodeTypes';
|
2
3
|
|
3
4
|
/**
|
4
5
|
* @name bodiedExtension_node
|
@@ -8,58 +9,27 @@ import { getExtensionAttrs } from '../../utils/extensions';
|
|
8
9
|
* @name bodiedExtension_with_marks_node
|
9
10
|
*/
|
10
11
|
|
11
|
-
var
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
attrs: {
|
21
|
-
extensionType: {
|
22
|
-
default: ''
|
23
|
-
},
|
24
|
-
extensionKey: {
|
25
|
-
default: ''
|
26
|
-
},
|
27
|
-
parameters: {
|
28
|
-
default: null
|
29
|
-
},
|
30
|
-
text: {
|
31
|
-
default: null
|
32
|
-
},
|
33
|
-
layout: {
|
34
|
-
default: 'default'
|
35
|
-
},
|
36
|
-
localId: {
|
37
|
-
default: null
|
38
|
-
}
|
39
|
-
},
|
40
|
-
parseDOM: [{
|
41
|
-
context: 'bodiedExtension//',
|
42
|
-
tag: '[data-node-type="bodied-extension"]',
|
43
|
-
skip: true
|
44
|
-
}, {
|
45
|
-
tag: '[data-node-type="bodied-extension"]',
|
46
|
-
getAttrs: function getAttrs(domNode) {
|
47
|
-
return getExtensionAttrs(domNode);
|
48
|
-
}
|
49
|
-
}],
|
50
|
-
toDOM: function toDOM(node) {
|
51
|
-
var attrs = {
|
52
|
-
'data-node-type': 'bodied-extension',
|
53
|
-
'data-extension-type': node.attrs.extensionType,
|
54
|
-
'data-extension-key': node.attrs.extensionKey,
|
55
|
-
'data-text': node.attrs.text,
|
56
|
-
'data-parameters': JSON.stringify(node.attrs.parameters),
|
57
|
-
'data-layout': node.attrs.layout,
|
58
|
-
'data-local-id:': node.attrs.localId
|
59
|
-
};
|
60
|
-
return ['div', attrs, 0];
|
12
|
+
export var bodiedExtension = bodiedExtensionFactory({
|
13
|
+
parseDOM: [{
|
14
|
+
context: 'bodiedExtension//',
|
15
|
+
tag: '[data-node-type="bodied-extension"]',
|
16
|
+
skip: true
|
17
|
+
}, {
|
18
|
+
tag: '[data-node-type="bodied-extension"]',
|
19
|
+
getAttrs: function getAttrs(domNode) {
|
20
|
+
return getExtensionAttrs(domNode);
|
61
21
|
}
|
62
|
-
}
|
63
|
-
|
64
|
-
|
65
|
-
|
22
|
+
}],
|
23
|
+
toDOM: function toDOM(node) {
|
24
|
+
var attrs = {
|
25
|
+
'data-node-type': 'bodied-extension',
|
26
|
+
'data-extension-type': node.attrs.extensionType,
|
27
|
+
'data-extension-key': node.attrs.extensionKey,
|
28
|
+
'data-text': node.attrs.text,
|
29
|
+
'data-parameters': JSON.stringify(node.attrs.parameters),
|
30
|
+
'data-layout': node.attrs.layout,
|
31
|
+
'data-local-id:': node.attrs.localId
|
32
|
+
};
|
33
|
+
return ['div', attrs, 0];
|
34
|
+
}
|
35
|
+
});
|
@@ -1,16 +1,13 @@
|
|
1
|
+
import { bulletList as bulletListFactory } from '../../next-schema/generated/nodeTypes';
|
1
2
|
export var bulletListSelector = '.ak-ul';
|
2
|
-
export var bulletList = {
|
3
|
-
group: 'block',
|
4
|
-
content: 'listItem+',
|
5
|
-
selectable: false,
|
3
|
+
export var bulletList = bulletListFactory({
|
6
4
|
parseDOM: [{
|
7
5
|
tag: 'ul'
|
8
6
|
}],
|
9
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
10
7
|
toDOM: function toDOM() {
|
11
8
|
var attrs = {
|
12
9
|
class: bulletListSelector.substr(1)
|
13
10
|
};
|
14
11
|
return ['ul', attrs, 0];
|
15
12
|
}
|
16
|
-
};
|
13
|
+
});
|
@@ -1,12 +1,10 @@
|
|
1
|
+
import { caption as captionFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
+
|
1
3
|
/**
|
2
4
|
* @name caption_node
|
3
5
|
*/
|
4
6
|
|
5
|
-
export var caption = {
|
6
|
-
content: '(text|hardBreak|mention|emoji|date|placeholder|inlineCard|status|unsupportedInline)*',
|
7
|
-
isolating: true,
|
8
|
-
marks: '_',
|
9
|
-
selectable: false,
|
7
|
+
export var caption = captionFactory({
|
10
8
|
parseDOM: [{
|
11
9
|
tag: 'figcaption[data-caption]'
|
12
10
|
}],
|
@@ -16,4 +14,4 @@ export var caption = {
|
|
16
14
|
};
|
17
15
|
return ['figcaption', attrs, 0];
|
18
16
|
}
|
19
|
-
};
|
17
|
+
});
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
2
2
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
3
|
+
import { codeBlock as codeBlockFactory } from '../../next-schema/generated/nodeTypes';
|
3
4
|
|
4
5
|
/**
|
5
6
|
* @name codeBlock_node
|
@@ -72,20 +73,7 @@ function parseCodeFromHtml(node) {
|
|
72
73
|
});
|
73
74
|
return code;
|
74
75
|
}
|
75
|
-
export var codeBlock = {
|
76
|
-
attrs: {
|
77
|
-
language: {
|
78
|
-
default: null
|
79
|
-
},
|
80
|
-
uniqueId: {
|
81
|
-
default: null
|
82
|
-
}
|
83
|
-
},
|
84
|
-
content: '(text | unsupportedInline)*',
|
85
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
86
|
-
group: 'block',
|
87
|
-
code: true,
|
88
|
-
defining: true,
|
76
|
+
export var codeBlock = codeBlockFactory({
|
89
77
|
parseDOM: [{
|
90
78
|
tag: 'pre',
|
91
79
|
preserveWhitespace: 'full',
|
@@ -157,7 +145,7 @@ export var codeBlock = {
|
|
157
145
|
'data-language': node.attrs.language
|
158
146
|
}, 0]];
|
159
147
|
}
|
160
|
-
};
|
148
|
+
});
|
161
149
|
export var toJSON = function toJSON(node) {
|
162
150
|
return {
|
163
151
|
attrs: Object.keys(node.attrs).reduce(function (memo, key) {
|
@@ -1,25 +1,6 @@
|
|
1
|
+
import { confluenceJiraIssue as confluenceJiraIssueFactory } from '../../next-schema/generated/nodeTypes';
|
1
2
|
var name = 'confluenceJiraIssue';
|
2
|
-
export var confluenceJiraIssue = {
|
3
|
-
group: 'inline',
|
4
|
-
inline: true,
|
5
|
-
atom: true,
|
6
|
-
attrs: {
|
7
|
-
issueKey: {
|
8
|
-
default: ''
|
9
|
-
},
|
10
|
-
macroId: {
|
11
|
-
default: null
|
12
|
-
},
|
13
|
-
schemaVersion: {
|
14
|
-
default: null
|
15
|
-
},
|
16
|
-
server: {
|
17
|
-
default: null
|
18
|
-
},
|
19
|
-
serverId: {
|
20
|
-
default: null
|
21
|
-
}
|
22
|
-
},
|
3
|
+
export var confluenceJiraIssue = confluenceJiraIssueFactory({
|
23
4
|
parseDOM: [{
|
24
5
|
tag: "span[data-node-type=\"".concat(name, "\"]"),
|
25
6
|
getAttrs: function getAttrs(domNode) {
|
@@ -44,4 +25,4 @@ export var confluenceJiraIssue = {
|
|
44
25
|
};
|
45
26
|
return ['span', attrs, node.attrs.issueKey];
|
46
27
|
}
|
47
|
-
};
|
28
|
+
});
|
@@ -1,11 +1,6 @@
|
|
1
|
+
import { confluenceUnsupportedBlock as confluenceUnsupportedBlockFactory } from '../../next-schema/generated/nodeTypes';
|
1
2
|
var name = 'confluenceUnsupportedBlock';
|
2
|
-
export var confluenceUnsupportedBlock = {
|
3
|
-
group: 'block',
|
4
|
-
attrs: {
|
5
|
-
cxhtml: {
|
6
|
-
default: null
|
7
|
-
}
|
8
|
-
},
|
3
|
+
export var confluenceUnsupportedBlock = confluenceUnsupportedBlockFactory({
|
9
4
|
toDOM: function toDOM(node) {
|
10
5
|
// NOTE: This node cannot be "contenteditable: false". If it's the only node in a document, PM throws an error because there's nowhere to put the cursor.
|
11
6
|
var attrs = {
|
@@ -23,4 +18,4 @@ export var confluenceUnsupportedBlock = {
|
|
23
18
|
};
|
24
19
|
}
|
25
20
|
}]
|
26
|
-
};
|
21
|
+
});
|
@@ -1,13 +1,6 @@
|
|
1
|
+
import { confluenceUnsupportedInline as confluenceUnsupportedInlineFactory } from '../../next-schema/generated/nodeTypes';
|
1
2
|
var name = 'confluenceUnsupportedInline';
|
2
|
-
export var confluenceUnsupportedInline = {
|
3
|
-
group: 'inline',
|
4
|
-
inline: true,
|
5
|
-
atom: true,
|
6
|
-
attrs: {
|
7
|
-
cxhtml: {
|
8
|
-
default: null
|
9
|
-
}
|
10
|
-
},
|
3
|
+
export var confluenceUnsupportedInline = confluenceUnsupportedInlineFactory({
|
11
4
|
toDOM: function toDOM(node) {
|
12
5
|
var attrs = {
|
13
6
|
'data-node-type': name,
|
@@ -24,4 +17,4 @@ export var confluenceUnsupportedInline = {
|
|
24
17
|
};
|
25
18
|
}
|
26
19
|
}]
|
27
|
-
};
|
20
|
+
});
|
@@ -1,16 +1,10 @@
|
|
1
|
+
import { date as dateFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
+
|
1
3
|
/**
|
2
4
|
* @name date_node
|
3
5
|
*/
|
4
6
|
|
5
|
-
export var date = {
|
6
|
-
inline: true,
|
7
|
-
group: 'inline',
|
8
|
-
selectable: true,
|
9
|
-
attrs: {
|
10
|
-
timestamp: {
|
11
|
-
default: ''
|
12
|
-
}
|
13
|
-
},
|
7
|
+
export var date = dateFactory({
|
14
8
|
parseDOM: [{
|
15
9
|
tag: 'span[data-node-type="date"]',
|
16
10
|
getAttrs: function getAttrs(dom) {
|
@@ -26,4 +20,4 @@ export var date = {
|
|
26
20
|
};
|
27
21
|
return ['span', attrs];
|
28
22
|
}
|
29
|
-
};
|
23
|
+
});
|
@@ -1,21 +1,11 @@
|
|
1
1
|
import { uuid } from '../../utils/uuid';
|
2
|
+
import { decisionItem as decisionItemFactory } from '../../next-schema/generated/nodeTypes';
|
2
3
|
|
3
4
|
/**
|
4
5
|
* @name decisionItem_node
|
5
6
|
*/
|
6
7
|
|
7
|
-
export var decisionItem = {
|
8
|
-
content: 'inline*',
|
9
|
-
defining: true,
|
10
|
-
marks: '_',
|
11
|
-
attrs: {
|
12
|
-
localId: {
|
13
|
-
default: ''
|
14
|
-
},
|
15
|
-
state: {
|
16
|
-
default: 'DECIDED'
|
17
|
-
}
|
18
|
-
},
|
8
|
+
export var decisionItem = decisionItemFactory({
|
19
9
|
parseDOM: [{
|
20
10
|
tag: 'li[data-decision-local-id]',
|
21
11
|
// Default priority is 50. We normally don't change this but since this node type is
|
@@ -38,4 +28,4 @@ export var decisionItem = {
|
|
38
28
|
};
|
39
29
|
return ['li', attrs, 0];
|
40
30
|
}
|
41
|
-
};
|
31
|
+
});
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { uuid } from '../../utils/uuid';
|
2
|
+
import { decisionList as decisionListFactory } from '../../next-schema/generated/nodeTypes';
|
2
3
|
|
3
4
|
/**
|
4
5
|
* @name decisionList_node
|
@@ -6,17 +7,7 @@ import { uuid } from '../../utils/uuid';
|
|
6
7
|
|
7
8
|
var name = 'decisionList';
|
8
9
|
export var decisionListSelector = "[data-node-type=\"".concat(name, "\"]");
|
9
|
-
export var decisionList = {
|
10
|
-
group: 'block',
|
11
|
-
defining: true,
|
12
|
-
content: '(decisionItem|unsupportedBlock)+',
|
13
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
14
|
-
selectable: false,
|
15
|
-
attrs: {
|
16
|
-
localId: {
|
17
|
-
default: ''
|
18
|
-
}
|
19
|
-
},
|
10
|
+
export var decisionList = decisionListFactory({
|
20
11
|
parseDOM: [{
|
21
12
|
tag: "ol".concat(decisionListSelector),
|
22
13
|
// Default priority is 50. We normally don't change this but since this node type is
|
@@ -37,4 +28,4 @@ export var decisionList = {
|
|
37
28
|
};
|
38
29
|
return ['ol', attrs, 0];
|
39
30
|
}
|
40
|
-
};
|
31
|
+
});
|
@@ -1,8 +1,7 @@
|
|
1
|
+
import { doc as docFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
+
|
1
3
|
/**
|
2
4
|
* @name doc_node
|
3
5
|
*/
|
4
6
|
|
5
|
-
export var doc = {
|
6
|
-
content: '(block|layoutSection|blockRootOnly)+',
|
7
|
-
marks: 'alignment breakout dataConsumer fragment indentation unsupportedMark unsupportedNodeAttribute'
|
8
|
-
};
|
7
|
+
export var doc = docFactory({});
|
@@ -1,28 +1,10 @@
|
|
1
|
+
import { embedCard as embedCardFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
+
|
1
3
|
/**
|
2
4
|
* @name embedCard_node
|
3
5
|
*/
|
4
6
|
|
5
|
-
export var embedCard = {
|
6
|
-
inline: false,
|
7
|
-
group: 'block',
|
8
|
-
selectable: true,
|
9
|
-
attrs: {
|
10
|
-
url: {
|
11
|
-
default: ''
|
12
|
-
},
|
13
|
-
layout: {
|
14
|
-
default: 'center'
|
15
|
-
},
|
16
|
-
width: {
|
17
|
-
default: 100
|
18
|
-
},
|
19
|
-
originalWidth: {
|
20
|
-
default: null
|
21
|
-
},
|
22
|
-
originalHeight: {
|
23
|
-
default: null
|
24
|
-
}
|
25
|
-
},
|
7
|
+
export var embedCard = embedCardFactory({
|
26
8
|
parseDOM: [{
|
27
9
|
tag: 'div[data-embed-card]',
|
28
10
|
getAttrs: function getAttrs(dom) {
|
@@ -52,4 +34,4 @@ export var embedCard = {
|
|
52
34
|
};
|
53
35
|
return ['div', attrs];
|
54
36
|
}
|
55
|
-
};
|
37
|
+
});
|
@@ -1,24 +1,11 @@
|
|
1
1
|
import { acNameToEmoji, acShortcutToEmoji } from '../../utils/confluence/emoji';
|
2
|
+
import { emoji as emojiFactory } from '../../next-schema/generated/nodeTypes';
|
2
3
|
|
3
4
|
/**
|
4
5
|
* @name emoji_node
|
5
6
|
*/
|
6
7
|
|
7
|
-
export var emoji = {
|
8
|
-
inline: true,
|
9
|
-
group: 'inline',
|
10
|
-
selectable: true,
|
11
|
-
attrs: {
|
12
|
-
shortName: {
|
13
|
-
default: ''
|
14
|
-
},
|
15
|
-
id: {
|
16
|
-
default: ''
|
17
|
-
},
|
18
|
-
text: {
|
19
|
-
default: ''
|
20
|
-
}
|
21
|
-
},
|
8
|
+
export var emoji = emojiFactory({
|
22
9
|
parseDOM: [
|
23
10
|
// Handle copy/paste beautiful panel from renderer />
|
24
11
|
{
|
@@ -74,4 +61,4 @@ export var emoji = {
|
|
74
61
|
};
|
75
62
|
return ['span', attrs, text];
|
76
63
|
}
|
77
|
-
};
|
64
|
+
});
|