@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
|
@@ -2,6 +2,7 @@ import { getExtensionAttrs } from '../../utils/extensions';
|
|
|
2
2
|
import { multiBodiedExtensionStage0 as multiBodiedExtensionStage0Factory, extensionFrameStage0 as extensionFrameStage0Factory } from '../../next-schema/generated/nodeTypes';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
5
6
|
* @stage 0
|
|
6
7
|
* @name extensionFrame_node
|
|
7
8
|
* @description Wraps the block content
|
|
@@ -27,6 +28,7 @@ export const extensionFrame = extensionFrameStage0Factory({
|
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
/**
|
|
31
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
30
32
|
* @stage 0
|
|
31
33
|
* @name multiBodiedExtension_node
|
|
32
34
|
* @description Wraps multiple extensionFrame objects.
|
|
@@ -3,7 +3,9 @@ import { uuid } from '../../utils/uuid';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @name nestedExpand_content
|
|
6
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
6
7
|
* @minItems 1
|
|
8
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
7
9
|
* @allowUnsupportedBlock true
|
|
8
10
|
*/
|
|
9
11
|
|
|
@@ -11,7 +11,9 @@ export const placeholder = placeholderFactory({
|
|
|
11
11
|
getAttrs: dom => ({
|
|
12
12
|
text:
|
|
13
13
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @typescript-eslint/no-non-null-assertion
|
|
14
|
-
dom.getAttribute('data-placeholder') ||
|
|
14
|
+
dom.getAttribute('data-placeholder') ||
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
16
|
+
placeholder.attrs.text.default
|
|
15
17
|
})
|
|
16
18
|
}],
|
|
17
19
|
toDOM(node) {
|
|
@@ -32,7 +34,9 @@ export const placeholderWithLocalId = placeholderFactory({
|
|
|
32
34
|
getAttrs: dom => ({
|
|
33
35
|
text:
|
|
34
36
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @typescript-eslint/no-non-null-assertion
|
|
35
|
-
dom.getAttribute('data-placeholder') ||
|
|
37
|
+
dom.getAttribute('data-placeholder') ||
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
39
|
+
placeholder.attrs.text.default,
|
|
36
40
|
localId: uuid.generate()
|
|
37
41
|
})
|
|
38
42
|
}],
|
|
@@ -200,7 +200,9 @@ export const tableBackgroundColorNames = new Map();
|
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* @name table_cell_content
|
|
203
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
203
204
|
* @minItems 1
|
|
205
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
204
206
|
* @allowUnsupportedBlock true
|
|
205
207
|
*/
|
|
206
208
|
|
|
@@ -308,7 +310,6 @@ const tableCellNodeSpecOptions = {
|
|
|
308
310
|
};
|
|
309
311
|
export const tableCell = tableCellFactory(tableCellNodeSpecOptions);
|
|
310
312
|
export const toJSONTableCell = node => ({
|
|
311
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
312
313
|
attrs: Object.keys(node.attrs).reduce((obj, key) => {
|
|
313
314
|
// Only process keys that are defined in cellAttrs
|
|
314
315
|
if (cellAttrs[key] && cellAttrs[key].default !== node.attrs[key]) {
|
|
@@ -3,8 +3,9 @@ export const unsupportedBlock = unsupportedBlockFactory({
|
|
|
3
3
|
parseDOM: [{
|
|
4
4
|
tag: '[data-node-type="unsupportedBlock"]',
|
|
5
5
|
getAttrs: dom => ({
|
|
6
|
+
originalValue: JSON.parse(
|
|
6
7
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
7
|
-
|
|
8
|
+
dom.getAttribute('data-original-value') || '{}')
|
|
8
9
|
})
|
|
9
10
|
}],
|
|
10
11
|
toDOM(node) {
|
|
@@ -3,8 +3,9 @@ export const unsupportedInline = unsupportedInlineFactory({
|
|
|
3
3
|
parseDOM: [{
|
|
4
4
|
tag: '[data-node-type="unsupportedInline"]',
|
|
5
5
|
getAttrs: dom => ({
|
|
6
|
+
originalValue: JSON.parse(
|
|
6
7
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
7
|
-
|
|
8
|
+
dom.getAttribute('data-original-value') || '{}')
|
|
8
9
|
})
|
|
9
10
|
}],
|
|
10
11
|
toDOM(node) {
|
|
@@ -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 var 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 var tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, 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 @@ var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
|
|
11
11
|
return defaultSchemaConfig;
|
|
12
12
|
};
|
|
13
13
|
export var defaultSchemaConfig = getDefaultSchemaConfig();
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
export var getSchemaBasedOnStage = memoizeOne(
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
+
function () {
|
|
15
19
|
var stage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'final';
|
|
16
20
|
var defaultSchemaConfig = getDefaultSchemaConfig();
|
|
17
21
|
if (stage === 'stage0') {
|
|
@@ -16,12 +16,12 @@ export var embedCard = embedCardFactory({
|
|
|
16
16
|
layout: dom.getAttribute('data-layout') || 'center',
|
|
17
17
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
18
18
|
width: Number(dom.getAttribute('data-width')) || null,
|
|
19
|
-
originalWidth:
|
|
19
|
+
originalWidth: Number(
|
|
20
20
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
21
|
-
|
|
22
|
-
originalHeight:
|
|
21
|
+
dom.getAttribute('data-card-original-width')) || null,
|
|
22
|
+
originalHeight: Number(
|
|
23
23
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
24
|
-
|
|
24
|
+
dom.getAttribute('data-card-original-height')) || null
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
}],
|
|
@@ -54,12 +54,12 @@ export var embedCardWithLocalId = embedCardFactory({
|
|
|
54
54
|
layout: dom.getAttribute('data-layout') || 'center',
|
|
55
55
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
56
56
|
width: Number(dom.getAttribute('data-width')) || null,
|
|
57
|
-
originalWidth:
|
|
57
|
+
originalWidth: Number(
|
|
58
58
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
59
|
-
|
|
60
|
-
originalHeight:
|
|
59
|
+
dom.getAttribute('data-card-original-width')) || null,
|
|
60
|
+
originalHeight: Number(
|
|
61
61
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
62
|
-
|
|
62
|
+
dom.getAttribute('data-card-original-height')) || null,
|
|
63
63
|
localId: uuid.generate()
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -22,11 +22,15 @@ export var emoji = emojiFactory({
|
|
|
22
22
|
var dom = domNode;
|
|
23
23
|
return {
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
25
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
25
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
27
|
+
emoji.attrs.shortName.default,
|
|
26
28
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
27
29
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
28
30
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
29
|
-
text:
|
|
31
|
+
text:
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
33
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default
|
|
30
34
|
};
|
|
31
35
|
}
|
|
32
36
|
},
|
|
@@ -35,7 +39,9 @@ export var emoji = emojiFactory({
|
|
|
35
39
|
tag: 'img[data-emoticon-name]',
|
|
36
40
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
41
|
getAttrs: function getAttrs(dom) {
|
|
38
|
-
return acNameToEmoji(
|
|
42
|
+
return acNameToEmoji(
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
|
+
dom.getAttribute('data-emoticon-name'));
|
|
39
45
|
}
|
|
40
46
|
},
|
|
41
47
|
// Handle copy/paste from old <ac:hipchat-emoticons />
|
|
@@ -43,7 +49,9 @@ export var emoji = emojiFactory({
|
|
|
43
49
|
tag: 'img[data-hipchat-emoticon]',
|
|
44
50
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
45
51
|
getAttrs: function getAttrs(dom) {
|
|
46
|
-
return acShortcutToEmoji(
|
|
52
|
+
return acShortcutToEmoji(
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
54
|
+
dom.getAttribute('data-hipchat-emoticon'));
|
|
47
55
|
}
|
|
48
56
|
},
|
|
49
57
|
// Handle copy/paste from bitbucket's <img class="emoji" />
|
|
@@ -54,11 +62,15 @@ export var emoji = emojiFactory({
|
|
|
54
62
|
var dom = domNode;
|
|
55
63
|
return {
|
|
56
64
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
57
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
65
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
67
|
+
emoji.attrs.shortName.default,
|
|
58
68
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
59
69
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
60
70
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
61
|
-
text:
|
|
71
|
+
text:
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
73
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default
|
|
62
74
|
};
|
|
63
75
|
}
|
|
64
76
|
}],
|
|
@@ -89,11 +101,15 @@ export var emojiWithLocalId = emojiFactory({
|
|
|
89
101
|
var dom = domNode;
|
|
90
102
|
return {
|
|
91
103
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
92
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
104
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
106
|
+
emoji.attrs.shortName.default,
|
|
93
107
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
94
108
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
95
109
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
96
|
-
text:
|
|
110
|
+
text:
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
112
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default,
|
|
97
113
|
localId: uuid.generate()
|
|
98
114
|
};
|
|
99
115
|
}
|
|
@@ -103,7 +119,9 @@ export var emojiWithLocalId = emojiFactory({
|
|
|
103
119
|
tag: 'img[data-emoticon-name]',
|
|
104
120
|
getAttrs: function getAttrs(dom) {
|
|
105
121
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
106
|
-
var attrs = acNameToEmoji(
|
|
122
|
+
var attrs = acNameToEmoji(
|
|
123
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
|
+
dom.getAttribute('data-emoticon-name'));
|
|
107
125
|
return _objectSpread(_objectSpread({}, attrs), {}, {
|
|
108
126
|
localId: uuid.generate()
|
|
109
127
|
});
|
|
@@ -114,7 +132,9 @@ export var emojiWithLocalId = emojiFactory({
|
|
|
114
132
|
tag: 'img[data-hipchat-emoticon]',
|
|
115
133
|
getAttrs: function getAttrs(dom) {
|
|
116
134
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
117
|
-
var attrs = acShortcutToEmoji(
|
|
135
|
+
var attrs = acShortcutToEmoji(
|
|
136
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
137
|
+
dom.getAttribute('data-hipchat-emoticon'));
|
|
118
138
|
return _objectSpread(_objectSpread({}, attrs), {}, {
|
|
119
139
|
localId: uuid.generate()
|
|
120
140
|
});
|
|
@@ -128,11 +148,15 @@ export var emojiWithLocalId = emojiFactory({
|
|
|
128
148
|
var dom = domNode;
|
|
129
149
|
return {
|
|
130
150
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
131
|
-
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
151
|
+
shortName: dom.getAttribute('data-emoji-short-name') ||
|
|
152
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
153
|
+
emoji.attrs.shortName.default,
|
|
132
154
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
133
155
|
id: dom.getAttribute('data-emoji-id') || emoji.attrs.id.default,
|
|
134
156
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
135
|
-
text:
|
|
157
|
+
text:
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
159
|
+
dom.getAttribute('data-emoji-text') || emoji.attrs.text.default,
|
|
136
160
|
localId: uuid.generate()
|
|
137
161
|
};
|
|
138
162
|
}
|
|
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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
4
|
import { uuid } from '../../utils';
|
|
5
5
|
import { listItem as listItemFactory, listItemWithNestedDecisionStage0 as listItemWithNestedDecisionStage0Factory } from '../../next-schema/generated/nodeTypes';
|
|
6
|
-
|
|
7
6
|
/**
|
|
8
7
|
* @name list_item
|
|
9
8
|
* @description this node allows task-list to be nested inside list-item
|
|
@@ -8,10 +8,12 @@ import { uuid } from '../../utils/uuid';
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @name mediaSingle_node
|
|
11
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
11
12
|
* @additionalProperties true
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
/**
|
|
16
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
15
17
|
* @additionalProperties true
|
|
16
18
|
*/
|
|
17
19
|
|
|
@@ -20,6 +22,7 @@ import { uuid } from '../../utils/uuid';
|
|
|
20
22
|
*/
|
|
21
23
|
|
|
22
24
|
/**
|
|
25
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
23
26
|
* @additionalProperties true
|
|
24
27
|
*/
|
|
25
28
|
|
|
@@ -26,7 +26,9 @@ export var mention = mentionFactory({
|
|
|
26
26
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
27
27
|
text: dom.textContent || mention.attrs.text.default,
|
|
28
28
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
29
|
-
accessLevel: dom.getAttribute('data-access-level') ||
|
|
29
|
+
accessLevel: dom.getAttribute('data-access-level') ||
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
31
|
+
mention.attrs.accessLevel.default,
|
|
30
32
|
localId: uuid.generate()
|
|
31
33
|
};
|
|
32
34
|
var userType = dom.getAttribute('data-user-type');
|
|
@@ -2,6 +2,7 @@ import { getExtensionAttrs } from '../../utils/extensions';
|
|
|
2
2
|
import { multiBodiedExtensionStage0 as multiBodiedExtensionStage0Factory, extensionFrameStage0 as extensionFrameStage0Factory } from '../../next-schema/generated/nodeTypes';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
5
6
|
* @stage 0
|
|
6
7
|
* @name extensionFrame_node
|
|
7
8
|
* @description Wraps the block content
|
|
@@ -27,6 +28,7 @@ export var extensionFrame = extensionFrameStage0Factory({
|
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
/**
|
|
31
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
30
32
|
* @stage 0
|
|
31
33
|
* @name multiBodiedExtension_node
|
|
32
34
|
* @description Wraps multiple extensionFrame objects.
|
|
@@ -7,7 +7,9 @@ import { uuid } from '../../utils/uuid';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @name nestedExpand_content
|
|
10
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
10
11
|
* @minItems 1
|
|
12
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
11
13
|
* @allowUnsupportedBlock true
|
|
12
14
|
*/
|
|
13
15
|
|
|
@@ -12,7 +12,9 @@ export var placeholder = placeholderFactory({
|
|
|
12
12
|
return {
|
|
13
13
|
text:
|
|
14
14
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @typescript-eslint/no-non-null-assertion
|
|
15
|
-
dom.getAttribute('data-placeholder') ||
|
|
15
|
+
dom.getAttribute('data-placeholder') ||
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
17
|
+
placeholder.attrs.text.default
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
}],
|
|
@@ -33,7 +35,9 @@ export var placeholderWithLocalId = placeholderFactory({
|
|
|
33
35
|
return {
|
|
34
36
|
text:
|
|
35
37
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting, @typescript-eslint/no-non-null-assertion
|
|
36
|
-
dom.getAttribute('data-placeholder') ||
|
|
38
|
+
dom.getAttribute('data-placeholder') ||
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
40
|
+
placeholder.attrs.text.default,
|
|
37
41
|
localId: uuid.generate()
|
|
38
42
|
};
|
|
39
43
|
}
|
|
@@ -205,7 +205,9 @@ export var tableBackgroundColorNames = new Map();
|
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* @name table_cell_content
|
|
208
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
208
209
|
* @minItems 1
|
|
210
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
209
211
|
* @allowUnsupportedBlock true
|
|
210
212
|
*/
|
|
211
213
|
|
|
@@ -323,7 +325,6 @@ var tableCellNodeSpecOptions = {
|
|
|
323
325
|
export var tableCell = tableCellFactory(tableCellNodeSpecOptions);
|
|
324
326
|
export var toJSONTableCell = function toJSONTableCell(node) {
|
|
325
327
|
return {
|
|
326
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
327
328
|
attrs: Object.keys(node.attrs).reduce(function (obj, key) {
|
|
328
329
|
// Only process keys that are defined in cellAttrs
|
|
329
330
|
if (cellAttrs[key] && cellAttrs[key].default !== node.attrs[key]) {
|
|
@@ -4,8 +4,9 @@ export var unsupportedBlock = unsupportedBlockFactory({
|
|
|
4
4
|
tag: '[data-node-type="unsupportedBlock"]',
|
|
5
5
|
getAttrs: function getAttrs(dom) {
|
|
6
6
|
return {
|
|
7
|
+
originalValue: JSON.parse(
|
|
7
8
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
8
|
-
|
|
9
|
+
dom.getAttribute('data-original-value') || '{}')
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
}],
|
|
@@ -4,8 +4,9 @@ export var unsupportedInline = unsupportedInlineFactory({
|
|
|
4
4
|
tag: '[data-node-type="unsupportedInline"]',
|
|
5
5
|
getAttrs: function getAttrs(dom) {
|
|
6
6
|
return {
|
|
7
|
+
originalValue: JSON.parse(
|
|
7
8
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
8
|
-
|
|
9
|
+
dom.getAttribute('data-original-value') || '{}')
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
}],
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFNode, ADFCommonNodeSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
declare const doc: ADFNode<[string], ADFCommonNodeSpec>;
|
|
2
3
|
export default doc;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type ADFNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
1
2
|
/**
|
|
3
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
2
4
|
* @DSLCompatibilityException
|
|
3
5
|
*
|
|
4
6
|
* Pseudo group used to match existing validator and json schema specs.
|
|
@@ -9,4 +11,4 @@
|
|
|
9
11
|
* - no base mediaSingle
|
|
10
12
|
* - no base heading
|
|
11
13
|
*/
|
|
12
|
-
export declare const blockContentGroup:
|
|
14
|
+
export declare const blockContentGroup: ADFNodeGroup;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const blockGroup: ADFNodeGroup;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const blockRootOnlyGroup: ADFNodeGroup;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFMarkGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const fontStyleGroup: ADFMarkGroup;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { ADFNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
1
2
|
/**
|
|
3
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
2
4
|
* @DSLCompatibilityException
|
|
3
5
|
*
|
|
4
6
|
* Pseudo group used to match existing validator and json schema specs.
|
|
@@ -7,4 +9,4 @@
|
|
|
7
9
|
* - no text
|
|
8
10
|
* - no text.use('link_inline')
|
|
9
11
|
*/
|
|
10
|
-
export declare const inlineContentGroup:
|
|
12
|
+
export declare const inlineContentGroup: ADFNodeGroup;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const inlineGroup: ADFNodeGroup;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFMarkGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const linkMarkGroup: ADFMarkGroup;
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
noMarks: false;
|
|
4
|
-
noExtend: true;
|
|
5
|
-
}> | import("packages/editor/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("packages/editor/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
|
6
|
-
ignore: ("json-schema" | "validator-spec")[];
|
|
7
|
-
content: import("packages/editor/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
|
8
|
-
attrs: {
|
|
9
|
-
localId: {
|
|
10
|
-
type: "string";
|
|
11
|
-
default: null;
|
|
12
|
-
optional: true;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}>)[];
|
|
1
|
+
import type { ADFNode, ADFNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const nonNestableBlockContent: Array<ADFNode<any, any>>;
|
|
16
3
|
/**
|
|
4
|
+
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
17
5
|
* @DSLCompatibilityException
|
|
18
6
|
*
|
|
19
7
|
* Pseudo group used to match existing validator and json schema specs.
|
|
20
8
|
*/
|
|
21
|
-
export declare const nonNestableBlockContentGroup:
|
|
9
|
+
export declare const nonNestableBlockContentGroup: ADFNodeGroup;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFMarkGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const searchQueryMarkGroup: ADFMarkGroup;
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}> | import("packages/editor/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("packages/editor/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
|
6
|
-
ignore: ("json-schema" | "validator-spec")[];
|
|
7
|
-
content: import("packages/editor/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
|
8
|
-
attrs: {
|
|
9
|
-
localId: {
|
|
10
|
-
type: "string";
|
|
11
|
-
default: null;
|
|
12
|
-
optional: true;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}>)[];
|
|
16
|
-
export declare const tableCellContentPseudoGroup: import("packages/editor/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec;
|
|
17
|
-
export declare const tableHeaderContentPseudoGroup: import("packages/editor/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec;
|
|
1
|
+
import type { ADFNode, ADFNodeContentOneOrMoreSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const tableCellContentNodes: Array<ADFNode<any, any>>;
|
|
3
|
+
export declare const tableCellContentPseudoGroup: ADFNodeContentOneOrMoreSpec;
|
|
4
|
+
export declare const tableHeaderContentPseudoGroup: ADFNodeContentOneOrMoreSpec;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import type { ADFMark, ADFMarkSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const alignment: ADFMark<ADFMarkSpec>;
|
|
3
|
+
export declare const indentation: ADFMark<ADFMarkSpec>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import type { ADFMark, ADFMarkGroup, ADFMarkSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const annotation: ADFMark<ADFMarkSpec>;
|
|
3
|
+
export declare const annotationGroup: ADFMarkGroup;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFMark, ADFMarkSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const border: ADFMark<ADFMarkSpec>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFMark, ADFMarkSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const breakout: ADFMark<ADFMarkSpec>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ADFMark, ADFMarkSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const code: ADFMark<ADFMarkSpec>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import type { ADFMark, ADFMarkGroup, ADFMarkSpec } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
export declare const backgroundColor: ADFMark<ADFMarkSpec>;
|
|
3
|
+
export declare const textColor: ADFMark<ADFMarkSpec>;
|
|
4
|
+
export declare const colorGroup: ADFMarkGroup;
|