@atlaskit/adf-schema 51.5.16 → 51.5.18
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 +17 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +12 -1
- 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/next-schema/nodes/list.js +6 -2
- package/dist/cjs/next-schema/nodes/task.js +5 -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/list-item.js +11 -1
- 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/cjs/validator-schema/generated/validatorSpec.js +13 -3
- package/dist/es2019/next-schema/generated/nodeTypes.js +11 -0
- 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/next-schema/nodes/list.js +6 -2
- package/dist/es2019/next-schema/nodes/task.js +5 -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 +8 -2
- 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/es2019/validator-schema/generated/validatorSpec.js +12 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +11 -0
- 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/next-schema/nodes/list.js +6 -2
- package/dist/esm/next-schema/nodes/task.js +5 -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 +10 -2
- 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/esm/validator-schema/generated/validatorSpec.js +12 -2
- package/dist/json-schema/v1/stage-0.json +57 -0
- package/dist/types/next-schema/full-schema.adf.d.ts +2 -1
- package/dist/types/next-schema/generated/nodeTypes.d.ts +12 -2
- 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 +32 -8
- 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/validator-schema/generated/validatorSpec.d.ts +10 -0
- package/dist/types-ts4.5/next-schema/full-schema.adf.d.ts +3 -2
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +12 -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 +32 -8
- 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/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +10 -0
- package/json-schema/v1/stage-0.json +57 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 51.5.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 51.5.17
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`708ab6d0c8d6d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/708ab6d0c8d6d) -
|
|
14
|
+
EDITOR-5416 flexible list indentation stage 0
|
|
15
|
+
|
|
16
|
+
https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6434470772/ADF+Change+94+List+indentation+flexibility
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 51.5.16
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedSyncBlock = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockTaskItem = exports.blockCard = void 0;
|
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItemFlexibleFirstChildStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedSyncBlock = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockTaskItem = exports.blockCard = void 0;
|
|
7
7
|
var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
|
|
8
8
|
/**
|
|
9
9
|
* This file was automatically generated by @atlaskit/adf-schema-generator
|
|
@@ -671,6 +671,17 @@ var listItem = exports.listItem = (0, _createPMSpecFactory.createPMNodeSpecFacto
|
|
|
671
671
|
selectable: false,
|
|
672
672
|
defining: true
|
|
673
673
|
});
|
|
674
|
+
var listItemFlexibleFirstChildStage0 = exports.listItemFlexibleFirstChildStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
675
|
+
content: '(paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | extension)+',
|
|
676
|
+
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
677
|
+
attrs: {
|
|
678
|
+
localId: {
|
|
679
|
+
default: null
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
selectable: false,
|
|
683
|
+
defining: true
|
|
684
|
+
});
|
|
674
685
|
var listItemWithNestedDecisionStage0 = exports.listItemWithNestedDecisionStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
675
686
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension)*',
|
|
676
687
|
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
@@ -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
|
|
@@ -33,6 +33,10 @@ var listItem = (0, _adfSchemaGenerator.adfNode)('listItem').define({
|
|
|
33
33
|
content: [(0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock, _decisionList.decisionList, _extension.extension.use('with_marks')), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), bulletList, orderedList, _task.taskList, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock, _decisionList.decisionList, _extension.extension.use('with_marks')))],
|
|
34
34
|
noExtend: true,
|
|
35
35
|
stage0: true
|
|
36
|
+
}).variant('flexible_first_child', {
|
|
37
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), bulletList, orderedList, _task.taskList, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock, _extension.extension.use('with_marks')))],
|
|
38
|
+
noExtend: true,
|
|
39
|
+
stage0: true
|
|
36
40
|
});
|
|
37
41
|
orderedList.define({
|
|
38
42
|
selectable: false,
|
|
@@ -50,12 +54,12 @@ orderedList.define({
|
|
|
50
54
|
optional: true
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))]
|
|
57
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision'), listItem.use('flexible_first_child')))]
|
|
54
58
|
});
|
|
55
59
|
bulletList.define({
|
|
56
60
|
selectable: false,
|
|
57
61
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
|
58
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))],
|
|
62
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision'), listItem.use('flexible_first_child')))],
|
|
59
63
|
attrs: {
|
|
60
64
|
localId: {
|
|
61
65
|
type: 'string',
|
|
@@ -58,4 +58,9 @@ taskList.define({
|
|
|
58
58
|
},
|
|
59
59
|
contentMinItems: 1,
|
|
60
60
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(taskItem, _unsupportedBlock.unsupportedBlock, blockTaskItem)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(taskItem, taskList, _unsupportedBlock.unsupportedBlock, blockTaskItem))]
|
|
61
|
+
});
|
|
62
|
+
taskList.variant('flexible_first_child', {
|
|
63
|
+
contentMinItems: 1,
|
|
64
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(taskItem, taskList, _unsupportedBlock.unsupportedBlock, blockTaskItem))],
|
|
65
|
+
stage0: true
|
|
61
66
|
});
|
|
@@ -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
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.listItemWithNestedDecisionAndLocalIdStage0 = exports.listItemWithLocalId = exports.listItemWithDecisionStage0 = exports.listItem = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
7
9
|
var _utils = require("../../utils");
|
|
8
10
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
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; }
|
|
9
13
|
/**
|
|
10
14
|
* @name list_item
|
|
11
15
|
* @description this node allows task-list to be nested inside list-item
|
|
@@ -39,7 +43,7 @@ var listItemWithLocalId = exports.listItemWithLocalId = (0, _nodeTypes.listItem)
|
|
|
39
43
|
* @name list_item_with_decision_stage0
|
|
40
44
|
* @description this node allows decisions to be nested inside list-item
|
|
41
45
|
*/
|
|
42
|
-
var
|
|
46
|
+
var listItemWithDecisionStage0Spec = (0, _nodeTypes.listItemWithNestedDecisionStage0)({
|
|
43
47
|
parseDOM: [{
|
|
44
48
|
tag: 'li'
|
|
45
49
|
}],
|
|
@@ -47,6 +51,12 @@ var listItemWithDecisionStage0 = exports.listItemWithDecisionStage0 = (0, _nodeT
|
|
|
47
51
|
return ['li', 0];
|
|
48
52
|
}
|
|
49
53
|
});
|
|
54
|
+
|
|
55
|
+
// Allow list-first content while preserving decisionList support in stage0.
|
|
56
|
+
var listItemStage0Content = '((paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension)*) | ((paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | extension)+)';
|
|
57
|
+
var listItemWithDecisionStage0 = exports.listItemWithDecisionStage0 = _objectSpread(_objectSpread({}, listItemWithDecisionStage0Spec), {}, {
|
|
58
|
+
content: listItemStage0Content
|
|
59
|
+
});
|
|
50
60
|
var listItemWithNestedDecisionAndLocalIdStage0 = exports.listItemWithNestedDecisionAndLocalIdStage0 = (0, _nodeTypes.listItemWithNestedDecisionStage0)({
|
|
51
61
|
parseDOM: [{
|
|
52
62
|
tag: 'li',
|
|
@@ -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
|
}],
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.underline = exports.text_with_no_marks = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.syncBlock = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_with_nested_decision = exports.listItem = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_root_only = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceInlineComment = exports.codeBlock_root_only = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedSyncBlock = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockTaskItem = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
|
|
6
|
+
exports.underline = exports.text_with_no_marks = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.syncBlock = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_with_nested_decision = exports.listItem_flexible_first_child = exports.listItem = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_root_only = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceInlineComment = exports.codeBlock_root_only = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedSyncBlock = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockTaskItem = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
|
|
7
7
|
var alignment = exports.alignment = {
|
|
8
8
|
props: {
|
|
9
9
|
type: {
|
|
@@ -327,7 +327,7 @@ var bulletList = exports.bulletList = {
|
|
|
327
327
|
},
|
|
328
328
|
content: {
|
|
329
329
|
type: 'array',
|
|
330
|
-
items: [['listItem', 'listItem_with_nested_decision']],
|
|
330
|
+
items: [['listItem', 'listItem_with_nested_decision', 'listItem_flexible_first_child']],
|
|
331
331
|
minItems: 1
|
|
332
332
|
}
|
|
333
333
|
}
|
|
@@ -1069,6 +1069,16 @@ var listItem = exports.listItem = {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
|
+
var listItem_flexible_first_child = exports.listItem_flexible_first_child = ['listItem', {
|
|
1073
|
+
props: {
|
|
1074
|
+
content: {
|
|
1075
|
+
type: 'array',
|
|
1076
|
+
items: [['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks']],
|
|
1077
|
+
minItems: 1,
|
|
1078
|
+
allowUnsupportedBlock: true
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}];
|
|
1072
1082
|
var listItem_with_nested_decision = exports.listItem_with_nested_decision = ['listItem', {
|
|
1073
1083
|
props: {
|
|
1074
1084
|
content: {
|
|
@@ -1462,7 +1472,7 @@ var orderedList = exports.orderedList = {
|
|
|
1462
1472
|
},
|
|
1463
1473
|
content: {
|
|
1464
1474
|
type: 'array',
|
|
1465
|
-
items: [['listItem', 'listItem_with_nested_decision']],
|
|
1475
|
+
items: [['listItem', 'listItem_with_nested_decision', 'listItem_flexible_first_child']],
|
|
1466
1476
|
minItems: 1
|
|
1467
1477
|
}
|
|
1468
1478
|
}
|
|
@@ -665,6 +665,17 @@ export const listItem = createPMNodeSpecFactory({
|
|
|
665
665
|
selectable: false,
|
|
666
666
|
defining: true
|
|
667
667
|
});
|
|
668
|
+
export const listItemFlexibleFirstChildStage0 = createPMNodeSpecFactory({
|
|
669
|
+
content: '(paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | extension)+',
|
|
670
|
+
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
671
|
+
attrs: {
|
|
672
|
+
localId: {
|
|
673
|
+
default: null
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
selectable: false,
|
|
677
|
+
defining: true
|
|
678
|
+
});
|
|
668
679
|
export const listItemWithNestedDecisionStage0 = createPMNodeSpecFactory({
|
|
669
680
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension)*',
|
|
670
681
|
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
@@ -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
|
|
@@ -27,6 +27,10 @@ const listItem = adfNode('listItem').define({
|
|
|
27
27
|
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, decisionList, extension.use('with_marks')), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, decisionList, extension.use('with_marks')))],
|
|
28
28
|
noExtend: true,
|
|
29
29
|
stage0: true
|
|
30
|
+
}).variant('flexible_first_child', {
|
|
31
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')))],
|
|
32
|
+
noExtend: true,
|
|
33
|
+
stage0: true
|
|
30
34
|
});
|
|
31
35
|
orderedList.define({
|
|
32
36
|
selectable: false,
|
|
@@ -44,12 +48,12 @@ orderedList.define({
|
|
|
44
48
|
optional: true
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
|
-
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))]
|
|
51
|
+
content: [$onePlus($or(listItem, listItem.use('with_nested_decision'), listItem.use('flexible_first_child')))]
|
|
48
52
|
});
|
|
49
53
|
bulletList.define({
|
|
50
54
|
selectable: false,
|
|
51
55
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
|
52
|
-
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))],
|
|
56
|
+
content: [$onePlus($or(listItem, listItem.use('with_nested_decision'), listItem.use('flexible_first_child')))],
|
|
53
57
|
attrs: {
|
|
54
58
|
localId: {
|
|
55
59
|
type: 'string',
|