@atlaskit/adf-schema 51.5.17 → 51.5.19
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 +12 -0
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -0
- package/dist/cjs/next-schema/groups/inlineContentGroup.js +1 -0
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +2 -0
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -0
- package/dist/cjs/schema/default-schema.js +5 -1
- package/dist/cjs/schema/marks/data-consumer.js +1 -0
- package/dist/cjs/schema/nodes/embed-card.js +8 -8
- package/dist/cjs/schema/nodes/emoji.js +36 -12
- package/dist/cjs/schema/nodes/layout-section.js +1 -0
- package/dist/cjs/schema/nodes/media-single.js +3 -0
- package/dist/cjs/schema/nodes/mention.js +3 -1
- package/dist/cjs/schema/nodes/multi-bodied-extension.js +2 -0
- package/dist/cjs/schema/nodes/nested-expand.js +2 -0
- package/dist/cjs/schema/nodes/placeholder.js +6 -2
- package/dist/cjs/schema/nodes/tableNodes.js +2 -1
- package/dist/cjs/schema/nodes/unsupported-block.js +2 -1
- package/dist/cjs/schema/nodes/unsupported-inline.js +2 -1
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -0
- package/dist/es2019/next-schema/groups/inlineContentGroup.js +1 -0
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +2 -0
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +2 -0
- package/dist/es2019/schema/default-schema.js +5 -1
- package/dist/es2019/schema/marks/data-consumer.js +1 -0
- package/dist/es2019/schema/nodes/embed-card.js +8 -8
- package/dist/es2019/schema/nodes/emoji.js +36 -12
- package/dist/es2019/schema/nodes/layout-section.js +1 -0
- package/dist/es2019/schema/nodes/list-item.js +0 -1
- package/dist/es2019/schema/nodes/media-single.js +3 -0
- package/dist/es2019/schema/nodes/mention.js +3 -1
- package/dist/es2019/schema/nodes/multi-bodied-extension.js +2 -0
- package/dist/es2019/schema/nodes/nested-expand.js +2 -0
- package/dist/es2019/schema/nodes/placeholder.js +6 -2
- package/dist/es2019/schema/nodes/tableNodes.js +2 -1
- package/dist/es2019/schema/nodes/unsupported-block.js +2 -1
- package/dist/es2019/schema/nodes/unsupported-inline.js +2 -1
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -0
- package/dist/esm/next-schema/groups/inlineContentGroup.js +1 -0
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +2 -0
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +2 -0
- package/dist/esm/schema/default-schema.js +5 -1
- package/dist/esm/schema/marks/data-consumer.js +1 -0
- package/dist/esm/schema/nodes/embed-card.js +8 -8
- package/dist/esm/schema/nodes/emoji.js +36 -12
- package/dist/esm/schema/nodes/layout-section.js +1 -0
- package/dist/esm/schema/nodes/list-item.js +0 -1
- package/dist/esm/schema/nodes/media-single.js +3 -0
- package/dist/esm/schema/nodes/mention.js +3 -1
- package/dist/esm/schema/nodes/multi-bodied-extension.js +2 -0
- package/dist/esm/schema/nodes/nested-expand.js +2 -0
- package/dist/esm/schema/nodes/placeholder.js +6 -2
- package/dist/esm/schema/nodes/tableNodes.js +2 -1
- package/dist/esm/schema/nodes/unsupported-block.js +2 -1
- package/dist/esm/schema/nodes/unsupported-inline.js +2 -1
- package/dist/types/next-schema/full-schema.adf.d.ts +2 -1
- package/dist/types/next-schema/groups/blockContentGroup.d.ts +3 -1
- package/dist/types/next-schema/groups/blockGroup.d.ts +2 -1
- package/dist/types/next-schema/groups/blockRootOnlyGroup.d.ts +2 -1
- package/dist/types/next-schema/groups/fontStyleGroup.d.ts +2 -1
- package/dist/types/next-schema/groups/inlineContentGroup.d.ts +3 -1
- package/dist/types/next-schema/groups/inlineGroup.d.ts +2 -1
- package/dist/types/next-schema/groups/linkMarkGroup.d.ts +2 -1
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +4 -16
- package/dist/types/next-schema/groups/searchQueryMarkGroup.d.ts +2 -1
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +4 -17
- package/dist/types/next-schema/marks/alignmentAndIndentation.d.ts +3 -2
- package/dist/types/next-schema/marks/annotation.d.ts +3 -2
- package/dist/types/next-schema/marks/border.d.ts +2 -1
- package/dist/types/next-schema/marks/breakout.d.ts +2 -1
- package/dist/types/next-schema/marks/code.d.ts +2 -1
- package/dist/types/next-schema/marks/color.d.ts +4 -3
- package/dist/types/next-schema/marks/confluenceInlineComment.d.ts +2 -1
- package/dist/types/next-schema/marks/dataConsumer.d.ts +2 -1
- package/dist/types/next-schema/marks/em.d.ts +2 -1
- package/dist/types/next-schema/marks/fragment.d.ts +2 -1
- package/dist/types/next-schema/marks/link.d.ts +2 -1
- package/dist/types/next-schema/marks/strike.d.ts +2 -1
- package/dist/types/next-schema/marks/strong.d.ts +2 -1
- package/dist/types/next-schema/marks/subsup.d.ts +2 -1
- package/dist/types/next-schema/marks/typeAheadQuery.d.ts +2 -1
- package/dist/types/next-schema/marks/underline.d.ts +2 -1
- package/dist/types/next-schema/marks/unsupportedMark.d.ts +2 -1
- package/dist/types/next-schema/marks/unsupportedNodeAttribute.d.ts +2 -1
- package/dist/types/next-schema/nodes/blockCard.d.ts +2 -1
- package/dist/types/next-schema/nodes/blockquote.d.ts +8 -4
- package/dist/types/next-schema/nodes/bodiedExtension.d.ts +6 -2
- package/dist/types/next-schema/nodes/bodiedSyncBlock.d.ts +2 -1
- package/dist/types/next-schema/nodes/caption.d.ts +2 -1
- package/dist/types/next-schema/nodes/codeBlock.d.ts +7 -3
- package/dist/types/next-schema/nodes/confluenceJiraIssue.d.ts +2 -1
- package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +2 -1
- package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +2 -1
- package/dist/types/next-schema/nodes/date.d.ts +2 -1
- package/dist/types/next-schema/nodes/decisionItem.d.ts +2 -1
- package/dist/types/next-schema/nodes/decisionList.d.ts +2 -1
- package/dist/types/next-schema/nodes/embedCard.d.ts +2 -1
- package/dist/types/next-schema/nodes/emoji.d.ts +2 -1
- package/dist/types/next-schema/nodes/expand.d.ts +7 -3
- package/dist/types/next-schema/nodes/extension.d.ts +6 -2
- package/dist/types/next-schema/nodes/extensionFrame.d.ts +2 -1
- package/dist/types/next-schema/nodes/hardBreak.d.ts +2 -1
- package/dist/types/next-schema/nodes/heading.d.ts +19 -8
- package/dist/types/next-schema/nodes/image.d.ts +2 -1
- package/dist/types/next-schema/nodes/inlineCard.d.ts +6 -2
- package/dist/types/next-schema/nodes/inlineExtension.d.ts +6 -2
- package/dist/types/next-schema/nodes/layoutColumn.d.ts +2 -1
- package/dist/types/next-schema/nodes/layoutSection.d.ts +14 -9
- package/dist/types/next-schema/nodes/list.d.ts +3 -2
- package/dist/types/next-schema/nodes/media.d.ts +2 -1
- package/dist/types/next-schema/nodes/mediaGroup.d.ts +2 -1
- package/dist/types/next-schema/nodes/mediaInline.d.ts +2 -1
- package/dist/types/next-schema/nodes/mediaSingle.d.ts +7 -52
- package/dist/types/next-schema/nodes/mention.d.ts +2 -1
- package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +2 -1
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +3 -2
- package/dist/types/next-schema/nodes/panel.d.ts +2 -1
- package/dist/types/next-schema/nodes/paragraph.d.ts +12 -5
- package/dist/types/next-schema/nodes/placeholder.d.ts +2 -1
- package/dist/types/next-schema/nodes/rule.d.ts +2 -1
- package/dist/types/next-schema/nodes/status.d.ts +2 -1
- package/dist/types/next-schema/nodes/syncBlock.d.ts +2 -1
- package/dist/types/next-schema/nodes/tableCellContent.d.ts +2 -1
- package/dist/types/next-schema/nodes/tableNodes.d.ts +2 -1
- package/dist/types/next-schema/nodes/task.d.ts +4 -3
- package/dist/types/next-schema/nodes/text.d.ts +13 -6
- package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +2 -1
- package/dist/types/next-schema/nodes/unsupportedInline.d.ts +2 -1
- package/dist/types/schema/create-schema.d.ts +1 -1
- package/dist/types/schema/default-schema.d.ts +4 -2
- package/dist/types/schema/marks/border.d.ts +3 -0
- package/dist/types/schema/marks/data-consumer.d.ts +4 -2
- package/dist/types/schema/marks/fragment.d.ts +3 -2
- package/dist/types/schema/marks/link.d.ts +2 -1
- package/dist/types/schema/marks/text-color.d.ts +1 -0
- package/dist/types/schema/nodes/block-card.d.ts +7 -2
- package/dist/types/schema/nodes/blockquote.d.ts +6 -3
- package/dist/types/schema/nodes/bodied-extension.d.ts +4 -1
- package/dist/types/schema/nodes/bodied-sync-block.d.ts +4 -1
- package/dist/types/schema/nodes/bullet-list.d.ts +3 -2
- package/dist/types/schema/nodes/caption.d.ts +5 -2
- package/dist/types/schema/nodes/code-block.d.ts +4 -3
- package/dist/types/schema/nodes/confluence-jira-issue.d.ts +2 -1
- package/dist/types/schema/nodes/confluence-unsupported-block.d.ts +2 -1
- package/dist/types/schema/nodes/confluence-unsupported-inline.d.ts +2 -1
- package/dist/types/schema/nodes/date.d.ts +5 -2
- package/dist/types/schema/nodes/decision-item.d.ts +3 -1
- package/dist/types/schema/nodes/decision-list.d.ts +5 -2
- package/dist/types/schema/nodes/doc.d.ts +3 -1
- package/dist/types/schema/nodes/embed-card.d.ts +3 -5
- package/dist/types/schema/nodes/emoji.d.ts +4 -2
- package/dist/types/schema/nodes/expand.d.ts +6 -4
- package/dist/types/schema/nodes/extension.d.ts +2 -1
- package/dist/types/schema/nodes/hard-break.d.ts +3 -2
- package/dist/types/schema/nodes/heading.d.ts +5 -1
- package/dist/types/schema/nodes/image.d.ts +2 -1
- package/dist/types/schema/nodes/inline-card.d.ts +4 -2
- package/dist/types/schema/nodes/inline-extension.d.ts +2 -1
- package/dist/types/schema/nodes/layout-column.d.ts +7 -2
- package/dist/types/schema/nodes/layout-section.d.ts +17 -9
- package/dist/types/schema/nodes/list-item.d.ts +22 -20
- package/dist/types/schema/nodes/media-group.d.ts +4 -1
- package/dist/types/schema/nodes/media-single.d.ts +9 -0
- package/dist/types/schema/nodes/media.d.ts +2 -2
- package/dist/types/schema/nodes/mention.d.ts +4 -3
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +7 -2
- package/dist/types/schema/nodes/nested-expand.d.ts +5 -2
- package/dist/types/schema/nodes/ordered-list.d.ts +5 -4
- package/dist/types/schema/nodes/panel.d.ts +5 -2
- package/dist/types/schema/nodes/paragraph.d.ts +3 -1
- package/dist/types/schema/nodes/placeholder.d.ts +5 -4
- package/dist/types/schema/nodes/rule.d.ts +3 -2
- package/dist/types/schema/nodes/status.d.ts +4 -1
- package/dist/types/schema/nodes/sync-block.d.ts +2 -1
- package/dist/types/schema/nodes/tableNodes.d.ts +27 -22
- package/dist/types/schema/nodes/task-item.d.ts +5 -2
- package/dist/types/schema/nodes/task-list.d.ts +5 -2
- package/dist/types/schema/nodes/text.d.ts +5 -3
- package/dist/types/schema/nodes/unsupported-block.d.ts +2 -1
- package/dist/types/schema/nodes/unsupported-inline.d.ts +2 -1
- package/dist/types/steps/batch-attrs-step.d.ts +1 -1
- package/dist/types/steps/set-attrs.d.ts +2 -2
- package/dist/types/utils/confluence/emoji.d.ts +16 -16
- package/dist/types-ts4.5/next-schema/full-schema.adf.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/groups/blockContentGroup.d.ts +3 -1
- package/dist/types-ts4.5/next-schema/groups/blockGroup.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/groups/blockRootOnlyGroup.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/groups/fontStyleGroup.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/groups/inlineContentGroup.d.ts +3 -1
- package/dist/types-ts4.5/next-schema/groups/inlineGroup.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/groups/linkMarkGroup.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/groups/nonNestableBlockContentGroup.d.ts +4 -25
- package/dist/types-ts4.5/next-schema/groups/searchQueryMarkGroup.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/groups/tableCellContentPseudoGroup.d.ts +4 -26
- package/dist/types-ts4.5/next-schema/marks/alignmentAndIndentation.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/marks/annotation.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/marks/border.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/breakout.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/code.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/color.d.ts +4 -3
- package/dist/types-ts4.5/next-schema/marks/confluenceInlineComment.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/dataConsumer.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/em.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/fragment.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/link.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/strike.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/strong.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/subsup.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/typeAheadQuery.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/underline.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/unsupportedMark.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/marks/unsupportedNodeAttribute.d.ts +2 -1
- package/dist/types-ts4.5/next-schema/nodes/blockCard.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/blockquote.d.ts +7 -6
- package/dist/types-ts4.5/next-schema/nodes/bodiedExtension.d.ts +5 -4
- package/dist/types-ts4.5/next-schema/nodes/bodiedSyncBlock.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/caption.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/codeBlock.d.ts +6 -5
- package/dist/types-ts4.5/next-schema/nodes/confluenceJiraIssue.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/confluenceUnsupportedBlock.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/confluenceUnsupportedInline.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/date.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/decisionItem.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/decisionList.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/embedCard.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/emoji.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/expand.d.ts +6 -5
- package/dist/types-ts4.5/next-schema/nodes/extension.d.ts +5 -4
- package/dist/types-ts4.5/next-schema/nodes/extensionFrame.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/hardBreak.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/heading.d.ts +17 -16
- package/dist/types-ts4.5/next-schema/nodes/image.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/inlineCard.d.ts +5 -4
- package/dist/types-ts4.5/next-schema/nodes/inlineExtension.d.ts +5 -4
- package/dist/types-ts4.5/next-schema/nodes/layoutColumn.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/layoutSection.d.ts +13 -12
- package/dist/types-ts4.5/next-schema/nodes/list.d.ts +5 -4
- package/dist/types-ts4.5/next-schema/nodes/media.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/mediaGroup.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/mediaInline.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/mediaSingle.d.ts +6 -56
- package/dist/types-ts4.5/next-schema/nodes/mention.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/multiBodiedExtension.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/nestedExpand.d.ts +4 -3
- package/dist/types-ts4.5/next-schema/nodes/panel.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/paragraph.d.ts +11 -10
- package/dist/types-ts4.5/next-schema/nodes/placeholder.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/rule.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/status.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/syncBlock.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/tableCellContent.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/tableNodes.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/task.d.ts +7 -6
- package/dist/types-ts4.5/next-schema/nodes/text.d.ts +12 -11
- package/dist/types-ts4.5/next-schema/nodes/unsupportedBlock.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/nodes/unsupportedInline.d.ts +3 -2
- package/dist/types-ts4.5/schema/create-schema.d.ts +1 -1
- package/dist/types-ts4.5/schema/default-schema.d.ts +4 -2
- package/dist/types-ts4.5/schema/marks/border.d.ts +3 -0
- package/dist/types-ts4.5/schema/marks/data-consumer.d.ts +4 -2
- package/dist/types-ts4.5/schema/marks/fragment.d.ts +3 -2
- package/dist/types-ts4.5/schema/marks/link.d.ts +2 -1
- package/dist/types-ts4.5/schema/marks/text-color.d.ts +1 -0
- package/dist/types-ts4.5/schema/nodes/block-card.d.ts +7 -2
- package/dist/types-ts4.5/schema/nodes/blockquote.d.ts +6 -3
- package/dist/types-ts4.5/schema/nodes/bodied-extension.d.ts +4 -1
- package/dist/types-ts4.5/schema/nodes/bodied-sync-block.d.ts +4 -1
- package/dist/types-ts4.5/schema/nodes/bullet-list.d.ts +3 -2
- package/dist/types-ts4.5/schema/nodes/caption.d.ts +5 -2
- package/dist/types-ts4.5/schema/nodes/code-block.d.ts +4 -3
- package/dist/types-ts4.5/schema/nodes/confluence-jira-issue.d.ts +2 -1
- package/dist/types-ts4.5/schema/nodes/confluence-unsupported-block.d.ts +2 -1
- package/dist/types-ts4.5/schema/nodes/confluence-unsupported-inline.d.ts +2 -1
- package/dist/types-ts4.5/schema/nodes/date.d.ts +5 -2
- package/dist/types-ts4.5/schema/nodes/decision-item.d.ts +3 -1
- package/dist/types-ts4.5/schema/nodes/decision-list.d.ts +5 -2
- package/dist/types-ts4.5/schema/nodes/doc.d.ts +3 -1
- package/dist/types-ts4.5/schema/nodes/embed-card.d.ts +3 -5
- package/dist/types-ts4.5/schema/nodes/emoji.d.ts +4 -2
- package/dist/types-ts4.5/schema/nodes/expand.d.ts +6 -4
- package/dist/types-ts4.5/schema/nodes/extension.d.ts +2 -1
- package/dist/types-ts4.5/schema/nodes/hard-break.d.ts +3 -2
- package/dist/types-ts4.5/schema/nodes/heading.d.ts +5 -1
- package/dist/types-ts4.5/schema/nodes/image.d.ts +2 -1
- package/dist/types-ts4.5/schema/nodes/inline-card.d.ts +4 -2
- package/dist/types-ts4.5/schema/nodes/inline-extension.d.ts +2 -1
- package/dist/types-ts4.5/schema/nodes/layout-column.d.ts +7 -2
- package/dist/types-ts4.5/schema/nodes/layout-section.d.ts +17 -9
- package/dist/types-ts4.5/schema/nodes/list-item.d.ts +22 -20
- package/dist/types-ts4.5/schema/nodes/media-group.d.ts +4 -1
- package/dist/types-ts4.5/schema/nodes/media-single.d.ts +9 -0
- package/dist/types-ts4.5/schema/nodes/media.d.ts +2 -2
- package/dist/types-ts4.5/schema/nodes/mention.d.ts +4 -3
- package/dist/types-ts4.5/schema/nodes/multi-bodied-extension.d.ts +7 -2
- package/dist/types-ts4.5/schema/nodes/nested-expand.d.ts +5 -2
- package/dist/types-ts4.5/schema/nodes/ordered-list.d.ts +5 -4
- package/dist/types-ts4.5/schema/nodes/panel.d.ts +5 -2
- package/dist/types-ts4.5/schema/nodes/paragraph.d.ts +3 -1
- package/dist/types-ts4.5/schema/nodes/placeholder.d.ts +5 -4
- package/dist/types-ts4.5/schema/nodes/rule.d.ts +3 -2
- package/dist/types-ts4.5/schema/nodes/status.d.ts +4 -1
- package/dist/types-ts4.5/schema/nodes/sync-block.d.ts +2 -1
- package/dist/types-ts4.5/schema/nodes/tableNodes.d.ts +27 -22
- package/dist/types-ts4.5/schema/nodes/task-item.d.ts +5 -2
- package/dist/types-ts4.5/schema/nodes/task-list.d.ts +5 -2
- package/dist/types-ts4.5/schema/nodes/text.d.ts +5 -3
- package/dist/types-ts4.5/schema/nodes/unsupported-block.d.ts +2 -1
- package/dist/types-ts4.5/schema/nodes/unsupported-inline.d.ts +2 -1
- package/dist/types-ts4.5/steps/batch-attrs-step.d.ts +1 -1
- package/dist/types-ts4.5/steps/set-attrs.d.ts +2 -2
- package/dist/types-ts4.5/utils/confluence/emoji.d.ts +16 -16
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -25,6 +25,7 @@ var _tableNodes = require("../nodes/tableNodes");
|
|
|
25
25
|
var _task = require("../nodes/task");
|
|
26
26
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
27
27
|
/**
|
|
28
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
28
29
|
* @DSLCompatibilityException
|
|
29
30
|
*
|
|
30
31
|
* Pseudo group used to match existing validator and json schema specs.
|
|
@@ -20,6 +20,7 @@ var _confluenceUnsupportedInline = require("../nodes/confluenceUnsupportedInline
|
|
|
20
20
|
var _image = require("../nodes/image");
|
|
21
21
|
var _confluenceJiraIssue = require("../nodes/confluenceJiraIssue");
|
|
22
22
|
/**
|
|
23
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
23
24
|
* @DSLCompatibilityException
|
|
24
25
|
*
|
|
25
26
|
* Pseudo group used to match existing validator and json schema specs.
|
|
@@ -23,11 +23,13 @@ var _task = require("../nodes/task");
|
|
|
23
23
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
24
24
|
// Not an actual group, but a collection of nodes that can't be nested inside each other
|
|
25
25
|
// TODO: ED-29537 - make it an actual group
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
27
|
var nonNestableBlockContent = exports.nonNestableBlockContent = [_paragraph.paragraph.use('with_no_marks'), _panel.panel, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _decisionList.decisionList, _task.taskList, _tableNodes.table,
|
|
27
28
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
28
29
|
_tableNodes.table.use('with_nested_table'), _blockCard.blockCard, _embedCard.embedCard, _extension.extension.use('with_marks'), _unsupportedBlock.unsupportedBlock];
|
|
29
30
|
|
|
30
31
|
/**
|
|
32
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
31
33
|
* @DSLCompatibilityException
|
|
32
34
|
*
|
|
33
35
|
* Pseudo group used to match existing validator and json schema specs.
|
|
@@ -21,6 +21,7 @@ var _paragraph = require("../nodes/paragraph");
|
|
|
21
21
|
var _rule = require("../nodes/rule");
|
|
22
22
|
var _task = require("../nodes/task");
|
|
23
23
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
25
|
var tableCellContentNodes = exports.tableCellContentNodes = [_paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _panel.panel, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaGroup.mediaGroup, _decisionList.decisionList, _task.taskList, _blockCard.blockCard, _embedCard.embedCard, _extension.extension.use('with_marks'), _nestedExpand.nestedExpand.use('content'), _nestedExpand.nestedExpand.use('with_no_marks')];
|
|
25
26
|
|
|
26
27
|
// This is not an actual group, but a collection of nodes
|
|
@@ -18,7 +18,11 @@ var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
|
|
18
18
|
return defaultSchemaConfig;
|
|
19
19
|
};
|
|
20
20
|
var defaultSchemaConfig = exports.defaultSchemaConfig = getDefaultSchemaConfig();
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
+
var getSchemaBasedOnStage = exports.getSchemaBasedOnStage = (0, _memoizeOne.default)(
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
|
+
function () {
|
|
22
26
|
var stage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'final';
|
|
23
27
|
var defaultSchemaConfig = getDefaultSchemaConfig();
|
|
24
28
|
if (stage === 'stage0') {
|
|
@@ -18,6 +18,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
18
18
|
* We're keeping it to signal that data consumer `sources` shouldn't be empty
|
|
19
19
|
* strings
|
|
20
20
|
*
|
|
21
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
21
22
|
* // @minLength 1
|
|
22
23
|
*/
|
|
23
24
|
|
|
@@ -21,12 +21,12 @@ var embedCard = exports.embedCard = (0, _nodeTypes.embedCard)({
|
|
|
21
21
|
layout: dom.getAttribute('data-layout') || 'center',
|
|
22
22
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
23
23
|
width: Number(dom.getAttribute('data-width')) || null,
|
|
24
|
-
originalWidth:
|
|
24
|
+
originalWidth: Number(
|
|
25
25
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
26
|
-
|
|
27
|
-
originalHeight:
|
|
26
|
+
dom.getAttribute('data-card-original-width')) || null,
|
|
27
|
+
originalHeight: Number(
|
|
28
28
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
29
|
-
|
|
29
|
+
dom.getAttribute('data-card-original-height')) || null
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
}],
|
|
@@ -59,12 +59,12 @@ var embedCardWithLocalId = exports.embedCardWithLocalId = (0, _nodeTypes.embedCa
|
|
|
59
59
|
layout: dom.getAttribute('data-layout') || 'center',
|
|
60
60
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
61
61
|
width: Number(dom.getAttribute('data-width')) || null,
|
|
62
|
-
originalWidth:
|
|
62
|
+
originalWidth: Number(
|
|
63
63
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
64
|
-
|
|
65
|
-
originalHeight:
|
|
64
|
+
dom.getAttribute('data-card-original-width')) || null,
|
|
65
|
+
originalHeight: Number(
|
|
66
66
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
67
|
-
|
|
67
|
+
dom.getAttribute('data-card-original-height')) || null,
|
|
68
68
|
localId: _uuid.uuid.generate()
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -28,11 +28,15 @@ var emoji = exports.emoji = (0, _nodeTypes.emoji)({
|
|
|
28
28
|
var dom = domNode;
|
|
29
29
|
return {
|
|
30
30
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
31
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
31
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
33
|
+
emoji.attrs.shortName.default,
|
|
32
34
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
33
35
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
34
36
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
35
|
-
text:
|
|
37
|
+
text:
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
39
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default
|
|
36
40
|
};
|
|
37
41
|
}
|
|
38
42
|
},
|
|
@@ -41,7 +45,9 @@ var emoji = exports.emoji = (0, _nodeTypes.emoji)({
|
|
|
41
45
|
tag: 'img[data-emoticon-name]',
|
|
42
46
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
43
47
|
getAttrs: function getAttrs(dom) {
|
|
44
|
-
return (0, _emoji.acNameToEmoji)(
|
|
48
|
+
return (0, _emoji.acNameToEmoji)(
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
50
|
+
dom.getAttribute('data-emoticon-name'));
|
|
45
51
|
}
|
|
46
52
|
},
|
|
47
53
|
// Handle copy/paste from old <ac:hipchat-emoticons />
|
|
@@ -49,7 +55,9 @@ var emoji = exports.emoji = (0, _nodeTypes.emoji)({
|
|
|
49
55
|
tag: 'img[data-hipchat-emoticon]',
|
|
50
56
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
51
57
|
getAttrs: function getAttrs(dom) {
|
|
52
|
-
return (0, _emoji.acShortcutToEmoji)(
|
|
58
|
+
return (0, _emoji.acShortcutToEmoji)(
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
60
|
+
dom.getAttribute('data-hipchat-emoticon'));
|
|
53
61
|
}
|
|
54
62
|
},
|
|
55
63
|
// Handle copy/paste from bitbucket's <img class="emoji" />
|
|
@@ -60,11 +68,15 @@ var emoji = exports.emoji = (0, _nodeTypes.emoji)({
|
|
|
60
68
|
var dom = domNode;
|
|
61
69
|
return {
|
|
62
70
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
63
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
71
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
73
|
+
emoji.attrs.shortName.default,
|
|
64
74
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
65
75
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
66
76
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
67
|
-
text:
|
|
77
|
+
text:
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
79
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default
|
|
68
80
|
};
|
|
69
81
|
}
|
|
70
82
|
}],
|
|
@@ -95,11 +107,15 @@ var emojiWithLocalId = exports.emojiWithLocalId = (0, _nodeTypes.emoji)({
|
|
|
95
107
|
var dom = domNode;
|
|
96
108
|
return {
|
|
97
109
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
98
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
110
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
112
|
+
emoji.attrs.shortName.default,
|
|
99
113
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
100
114
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
101
115
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
102
|
-
text:
|
|
116
|
+
text:
|
|
117
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
118
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default,
|
|
103
119
|
localId: _uuid.uuid.generate()
|
|
104
120
|
};
|
|
105
121
|
}
|
|
@@ -109,7 +125,9 @@ var emojiWithLocalId = exports.emojiWithLocalId = (0, _nodeTypes.emoji)({
|
|
|
109
125
|
tag: 'img[data-emoticon-name]',
|
|
110
126
|
getAttrs: function getAttrs(dom) {
|
|
111
127
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
112
|
-
var attrs = (0, _emoji.acNameToEmoji)(
|
|
128
|
+
var attrs = (0, _emoji.acNameToEmoji)(
|
|
129
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
130
|
+
dom.getAttribute('data-emoticon-name'));
|
|
113
131
|
return _objectSpread(_objectSpread({}, attrs), {}, {
|
|
114
132
|
localId: _uuid.uuid.generate()
|
|
115
133
|
});
|
|
@@ -120,7 +138,9 @@ var emojiWithLocalId = exports.emojiWithLocalId = (0, _nodeTypes.emoji)({
|
|
|
120
138
|
tag: 'img[data-hipchat-emoticon]',
|
|
121
139
|
getAttrs: function getAttrs(dom) {
|
|
122
140
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
123
|
-
var attrs = (0, _emoji.acShortcutToEmoji)(
|
|
141
|
+
var attrs = (0, _emoji.acShortcutToEmoji)(
|
|
142
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
143
|
+
dom.getAttribute('data-hipchat-emoticon'));
|
|
124
144
|
return _objectSpread(_objectSpread({}, attrs), {}, {
|
|
125
145
|
localId: _uuid.uuid.generate()
|
|
126
146
|
});
|
|
@@ -134,11 +154,15 @@ var emojiWithLocalId = exports.emojiWithLocalId = (0, _nodeTypes.emoji)({
|
|
|
134
154
|
var dom = domNode;
|
|
135
155
|
return {
|
|
136
156
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
137
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
157
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
159
|
+
emoji.attrs.shortName.default,
|
|
138
160
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
139
161
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
140
162
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
141
|
-
text:
|
|
163
|
+
text:
|
|
164
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
165
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default,
|
|
142
166
|
localId: _uuid.uuid.generate()
|
|
143
167
|
};
|
|
144
168
|
}
|
|
@@ -14,10 +14,12 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
14
14
|
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) { (0, _defineProperty2.default)(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; }
|
|
15
15
|
/**
|
|
16
16
|
* @name mediaSingle_node
|
|
17
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
17
18
|
* @additionalProperties true
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
21
|
/**
|
|
22
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
21
23
|
* @additionalProperties true
|
|
22
24
|
*/
|
|
23
25
|
|
|
@@ -26,6 +28,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
26
28
|
*/
|
|
27
29
|
|
|
28
30
|
/**
|
|
31
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
29
32
|
* @additionalProperties true
|
|
30
33
|
*/
|
|
31
34
|
|
|
@@ -31,7 +31,9 @@ var mention = exports.mention = (0, _nodeTypes.mention)({
|
|
|
31
31
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
32
32
|
text: dom.textContent || mention.attrs.text.default,
|
|
33
33
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
34
|
-
accessLevel: dom.getAttribute('data-access-level') ||
|
|
34
|
+
accessLevel: dom.getAttribute('data-access-level') ||
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
36
|
+
mention.attrs.accessLevel.default,
|
|
35
37
|
localId: _utils.uuid.generate()
|
|
36
38
|
};
|
|
37
39
|
var userType = dom.getAttribute('data-user-type');
|
|
@@ -7,6 +7,7 @@ exports.multiBodiedExtension = exports.extensionFrame = void 0;
|
|
|
7
7
|
var _extensions = require("../../utils/extensions");
|
|
8
8
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
|
9
9
|
/**
|
|
10
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
10
11
|
* @stage 0
|
|
11
12
|
* @name extensionFrame_node
|
|
12
13
|
* @description Wraps the block content
|
|
@@ -32,6 +33,7 @@ var extensionFrame = exports.extensionFrame = (0, _nodeTypes.extensionFrameStage
|
|
|
32
33
|
});
|
|
33
34
|
|
|
34
35
|
/**
|
|
36
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
35
37
|
* @stage 0
|
|
36
38
|
* @name multiBodiedExtension_node
|
|
37
39
|
* @description Wraps multiple extensionFrame objects.
|
|
@@ -13,7 +13,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
13
13
|
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) { (0, _defineProperty2.default)(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; }
|
|
14
14
|
/**
|
|
15
15
|
* @name nestedExpand_content
|
|
16
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
16
17
|
* @minItems 1
|
|
18
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
17
19
|
* @allowUnsupportedBlock true
|
|
18
20
|
*/
|
|
19
21
|
|
|
@@ -17,7 +17,9 @@ var placeholder = exports.placeholder = (0, _nodeTypes.placeholder)({
|
|
|
17
17
|
return {
|
|
18
18
|
text:
|
|
19
19
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @typescript-eslint/no-non-null-assertion
|
|
20
|
-
dom.getAttribute('data-placeholder') ||
|
|
20
|
+
dom.getAttribute('data-placeholder') ||
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
22
|
+
placeholder.attrs.text.default
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
}],
|
|
@@ -38,7 +40,9 @@ var placeholderWithLocalId = exports.placeholderWithLocalId = (0, _nodeTypes.pla
|
|
|
38
40
|
return {
|
|
39
41
|
text:
|
|
40
42
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @typescript-eslint/no-non-null-assertion
|
|
41
|
-
dom.getAttribute('data-placeholder') ||
|
|
43
|
+
dom.getAttribute('data-placeholder') ||
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
45
|
+
placeholder.attrs.text.default,
|
|
42
46
|
localId: _uuid.uuid.generate()
|
|
43
47
|
};
|
|
44
48
|
}
|
|
@@ -212,7 +212,9 @@ var tableBackgroundColorNames = exports.tableBackgroundColorNames = new Map();
|
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* @name table_cell_content
|
|
215
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
215
216
|
* @minItems 1
|
|
217
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
216
218
|
* @allowUnsupportedBlock true
|
|
217
219
|
*/
|
|
218
220
|
|
|
@@ -330,7 +332,6 @@ var tableCellNodeSpecOptions = {
|
|
|
330
332
|
var tableCell = exports.tableCell = (0, _nodeTypes.tableCell)(tableCellNodeSpecOptions);
|
|
331
333
|
var toJSONTableCell = exports.toJSONTableCell = function toJSONTableCell(node) {
|
|
332
334
|
return {
|
|
333
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
334
335
|
attrs: Object.keys(node.attrs).reduce(function (obj, key) {
|
|
335
336
|
// Only process keys that are defined in cellAttrs
|
|
336
337
|
if (cellAttrs[key] && cellAttrs[key].default !== node.attrs[key]) {
|
|
@@ -10,8 +10,9 @@ var unsupportedBlock = exports.unsupportedBlock = (0, _nodeTypes.unsupportedBloc
|
|
|
10
10
|
tag: '[data-node-type="unsupportedBlock"]',
|
|
11
11
|
getAttrs: function getAttrs(dom) {
|
|
12
12
|
return {
|
|
13
|
+
originalValue: JSON.parse(
|
|
13
14
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
14
|
-
|
|
15
|
+
dom.getAttribute('data-original-value') || '{}')
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
}],
|
|
@@ -10,8 +10,9 @@ var unsupportedInline = exports.unsupportedInline = (0, _nodeTypes.unsupportedIn
|
|
|
10
10
|
tag: '[data-node-type="unsupportedInline"]',
|
|
11
11
|
getAttrs: function getAttrs(dom) {
|
|
12
12
|
return {
|
|
13
|
+
originalValue: JSON.parse(
|
|
13
14
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
14
|
-
|
|
15
|
+
dom.getAttribute('data-original-value') || '{}')
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
}],
|
|
@@ -20,6 +20,7 @@ import { taskList } from '../nodes/task';
|
|
|
20
20
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
23
24
|
* @DSLCompatibilityException
|
|
24
25
|
*
|
|
25
26
|
* Pseudo group used to match existing validator and json schema specs.
|
|
@@ -15,6 +15,7 @@ import { image } from '../nodes/image';
|
|
|
15
15
|
import { confluenceJiraIssue } from '../nodes/confluenceJiraIssue';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
18
19
|
* @DSLCompatibilityException
|
|
19
20
|
*
|
|
20
21
|
* Pseudo group used to match existing validator and json schema specs.
|
|
@@ -18,11 +18,13 @@ 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: ED-29537 - make it an actual group
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
22
|
export const nonNestableBlockContent = [paragraph.use('with_no_marks'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), codeBlock, mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), decisionList, taskList, table,
|
|
22
23
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
23
24
|
table.use('with_nested_table'), blockCard, embedCard, extension.use('with_marks'), unsupportedBlock];
|
|
24
25
|
|
|
25
26
|
/**
|
|
27
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
26
28
|
* @DSLCompatibilityException
|
|
27
29
|
*
|
|
28
30
|
* Pseudo group used to match existing validator and json schema specs.
|
|
@@ -15,6 +15,8 @@ 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
|
+
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
20
|
export const tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, decisionList, taskList, blockCard, embedCard, extension.use('with_marks'), nestedExpand.use('content'), nestedExpand.use('with_no_marks')];
|
|
19
21
|
|
|
20
22
|
// This is not an actual group, but a collection of nodes
|
|
@@ -11,7 +11,11 @@ const getDefaultSchemaConfig = () => {
|
|
|
11
11
|
return defaultSchemaConfig;
|
|
12
12
|
};
|
|
13
13
|
export const defaultSchemaConfig = getDefaultSchemaConfig();
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
export const getSchemaBasedOnStage = memoizeOne(
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
+
(stage = 'final') => {
|
|
15
19
|
const defaultSchemaConfig = getDefaultSchemaConfig();
|
|
16
20
|
if (stage === 'stage0') {
|
|
17
21
|
defaultSchemaConfig.customNodeSpecs = {
|
|
@@ -15,12 +15,12 @@ export const embedCard = embedCardFactory({
|
|
|
15
15
|
layout: dom.getAttribute('data-layout') || 'center',
|
|
16
16
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
17
17
|
width: Number(dom.getAttribute('data-width')) || null,
|
|
18
|
-
originalWidth:
|
|
18
|
+
originalWidth: Number(
|
|
19
19
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
20
|
-
|
|
21
|
-
originalHeight:
|
|
20
|
+
dom.getAttribute('data-card-original-width')) || null,
|
|
21
|
+
originalHeight: Number(
|
|
22
22
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
23
|
-
|
|
23
|
+
dom.getAttribute('data-card-original-height')) || null
|
|
24
24
|
})
|
|
25
25
|
}],
|
|
26
26
|
toDOM(node) {
|
|
@@ -52,12 +52,12 @@ export const embedCardWithLocalId = embedCardFactory({
|
|
|
52
52
|
layout: dom.getAttribute('data-layout') || 'center',
|
|
53
53
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
54
54
|
width: Number(dom.getAttribute('data-width')) || null,
|
|
55
|
-
originalWidth:
|
|
55
|
+
originalWidth: Number(
|
|
56
56
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
57
|
-
|
|
58
|
-
originalHeight:
|
|
57
|
+
dom.getAttribute('data-card-original-width')) || null,
|
|
58
|
+
originalHeight: Number(
|
|
59
59
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
60
|
-
|
|
60
|
+
dom.getAttribute('data-card-original-height')) || null,
|
|
61
61
|
localId: uuid.generate()
|
|
62
62
|
})
|
|
63
63
|
}],
|
|
@@ -19,11 +19,15 @@ export const emoji = emojiFactory({
|
|
|
19
19
|
const dom = domNode;
|
|
20
20
|
return {
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
22
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
22
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
24
|
+
emoji.attrs.shortName.default,
|
|
23
25
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
24
26
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
25
27
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
26
|
-
text:
|
|
28
|
+
text:
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
30
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default
|
|
27
31
|
};
|
|
28
32
|
}
|
|
29
33
|
},
|
|
@@ -31,13 +35,17 @@ export const emoji = emojiFactory({
|
|
|
31
35
|
{
|
|
32
36
|
tag: 'img[data-emoticon-name]',
|
|
33
37
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
-
getAttrs: dom => acNameToEmoji(
|
|
38
|
+
getAttrs: dom => acNameToEmoji(
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
|
+
dom.getAttribute('data-emoticon-name'))
|
|
35
41
|
},
|
|
36
42
|
// Handle copy/paste from old <ac:hipchat-emoticons />
|
|
37
43
|
{
|
|
38
44
|
tag: 'img[data-hipchat-emoticon]',
|
|
39
45
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
40
|
-
getAttrs: dom => acShortcutToEmoji(
|
|
46
|
+
getAttrs: dom => acShortcutToEmoji(
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
48
|
+
dom.getAttribute('data-hipchat-emoticon'))
|
|
41
49
|
},
|
|
42
50
|
// Handle copy/paste from bitbucket's <img class="emoji" />
|
|
43
51
|
{
|
|
@@ -47,11 +55,15 @@ export const emoji = emojiFactory({
|
|
|
47
55
|
const dom = domNode;
|
|
48
56
|
return {
|
|
49
57
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
50
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
58
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
60
|
+
emoji.attrs.shortName.default,
|
|
51
61
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
52
62
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
53
63
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
54
|
-
text:
|
|
64
|
+
text:
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
66
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default
|
|
55
67
|
};
|
|
56
68
|
}
|
|
57
69
|
}],
|
|
@@ -83,11 +95,15 @@ export const emojiWithLocalId = emojiFactory({
|
|
|
83
95
|
const dom = domNode;
|
|
84
96
|
return {
|
|
85
97
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
86
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
98
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
100
|
+
emoji.attrs.shortName.default,
|
|
87
101
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
88
102
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
89
103
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
90
|
-
text:
|
|
104
|
+
text:
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
106
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default,
|
|
91
107
|
localId: uuid.generate()
|
|
92
108
|
};
|
|
93
109
|
}
|
|
@@ -97,7 +113,9 @@ export const emojiWithLocalId = emojiFactory({
|
|
|
97
113
|
tag: 'img[data-emoticon-name]',
|
|
98
114
|
getAttrs: dom => {
|
|
99
115
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
|
-
const attrs = acNameToEmoji(
|
|
116
|
+
const attrs = acNameToEmoji(
|
|
117
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
118
|
+
dom.getAttribute('data-emoticon-name'));
|
|
101
119
|
return {
|
|
102
120
|
...attrs,
|
|
103
121
|
localId: uuid.generate()
|
|
@@ -109,7 +127,9 @@ export const emojiWithLocalId = emojiFactory({
|
|
|
109
127
|
tag: 'img[data-hipchat-emoticon]',
|
|
110
128
|
getAttrs: dom => {
|
|
111
129
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
112
|
-
const attrs = acShortcutToEmoji(
|
|
130
|
+
const attrs = acShortcutToEmoji(
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
132
|
+
dom.getAttribute('data-hipchat-emoticon'));
|
|
113
133
|
return {
|
|
114
134
|
...attrs,
|
|
115
135
|
localId: uuid.generate()
|
|
@@ -124,11 +144,15 @@ export const emojiWithLocalId = emojiFactory({
|
|
|
124
144
|
const dom = domNode;
|
|
125
145
|
return {
|
|
126
146
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
127
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
147
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
148
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
149
|
+
emoji.attrs.shortName.default,
|
|
128
150
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
129
151
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
130
152
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
131
|
-
text:
|
|
153
|
+
text:
|
|
154
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
155
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default,
|
|
132
156
|
localId: uuid.generate()
|
|
133
157
|
};
|
|
134
158
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { uuid } from '../../utils';
|
|
2
2
|
import { listItem as listItemFactory, listItemWithNestedDecisionStage0 as listItemWithNestedDecisionStage0Factory } from '../../next-schema/generated/nodeTypes';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* @name list_item
|
|
6
5
|
* @description this node allows task-list to be nested inside list-item
|
|
@@ -5,10 +5,12 @@ import { uuid } from '../../utils/uuid';
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @name mediaSingle_node
|
|
8
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
8
9
|
* @additionalProperties true
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
/**
|
|
13
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
12
14
|
* @additionalProperties true
|
|
13
15
|
*/
|
|
14
16
|
|
|
@@ -17,6 +19,7 @@ import { uuid } from '../../utils/uuid';
|
|
|
17
19
|
*/
|
|
18
20
|
|
|
19
21
|
/**
|
|
22
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
20
23
|
* @additionalProperties true
|
|
21
24
|
*/
|
|
22
25
|
|
|
@@ -23,7 +23,9 @@ export const mention = mentionFactory({
|
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
24
24
|
text: dom.textContent || mention.attrs.text.default,
|
|
25
25
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
26
|
-
accessLevel: dom.getAttribute('data-access-level') ||
|
|
26
|
+
accessLevel: dom.getAttribute('data-access-level') ||
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
28
|
+
mention.attrs.accessLevel.default,
|
|
27
29
|
localId: uuid.generate()
|
|
28
30
|
};
|
|
29
31
|
const userType = dom.getAttribute('data-user-type');
|