@atlaskit/adf-schema 51.5.0 → 51.5.2
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 +763 -424
- package/README.md +5 -0
- package/codemods/23.0.0-move-bitbucket-schema-to-own-entry-points.ts +1 -3
- package/codemods/23.0.0-move-confluence-schema-to-own-entry-points.ts +1 -3
- package/codemods/migrates/update-bitbucket-schema-entry-points.ts +5 -5
- package/codemods/migrates/update-confluence-schema-entry-points.ts +10 -10
- package/codemods/migrates/update-default-schema-entry-points.ts +15 -15
- package/codemods/migrates/update-jira-schema-entry-points.ts +60 -60
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/cjs/next-schema/marks/link.js +1 -1
- package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/cjs/schema/bitbucket-schema.js +1 -0
- package/dist/cjs/schema/confluence-schema.js +2 -0
- package/dist/cjs/schema/create-schema.js +0 -2
- package/dist/cjs/schema/createPMSpecFactory.js +2 -0
- package/dist/cjs/schema/inline-nodes.js +3 -0
- package/dist/cjs/schema/jira-schema.js +2 -0
- package/dist/cjs/schema/marks/annotation.js +6 -5
- package/dist/cjs/schema/marks/background-color.js +2 -0
- package/dist/cjs/schema/marks/border.js +1 -0
- package/dist/cjs/schema/marks/breakout.js +2 -0
- package/dist/cjs/schema/marks/indentation.js +1 -0
- package/dist/cjs/schema/marks/link.js +4 -0
- package/dist/cjs/schema/marks/strong.js +5 -1
- package/dist/cjs/schema/marks/text-color.js +2 -0
- package/dist/cjs/schema/nodes/block-card.js +4 -1
- package/dist/cjs/schema/nodes/bodied-extension.js +1 -0
- package/dist/cjs/schema/nodes/bodied-sync-block.js +1 -0
- package/dist/cjs/schema/nodes/caption.js +4 -2
- package/dist/cjs/schema/nodes/code-block.js +33 -8
- package/dist/cjs/schema/nodes/confluence-jira-issue.js +1 -0
- package/dist/cjs/schema/nodes/confluence-unsupported-block.js +1 -0
- package/dist/cjs/schema/nodes/confluence-unsupported-inline.js +1 -0
- package/dist/cjs/schema/nodes/date.js +2 -0
- package/dist/cjs/schema/nodes/decision-item.js +1 -0
- package/dist/cjs/schema/nodes/embed-card.js +18 -4
- package/dist/cjs/schema/nodes/emoji.js +20 -0
- package/dist/cjs/schema/nodes/expand.js +1 -0
- package/dist/cjs/schema/nodes/extension.js +1 -0
- package/dist/cjs/schema/nodes/heading.js +3 -2
- package/dist/cjs/schema/nodes/image.js +1 -0
- package/dist/cjs/schema/nodes/inline-extension.js +1 -0
- package/dist/cjs/schema/nodes/layout-column.js +6 -2
- package/dist/cjs/schema/nodes/media-group.js +1 -1
- package/dist/cjs/schema/nodes/media-single.js +1 -0
- package/dist/cjs/schema/nodes/media.js +25 -16
- package/dist/cjs/schema/nodes/mention.js +5 -0
- package/dist/cjs/schema/nodes/nested-expand.js +2 -1
- package/dist/cjs/schema/nodes/ordered-list.js +3 -0
- package/dist/cjs/schema/nodes/panel.js +6 -0
- package/dist/cjs/schema/nodes/paragraph.js +1 -0
- package/dist/cjs/schema/nodes/placeholder.js +6 -2
- package/dist/cjs/schema/nodes/status.js +3 -0
- package/dist/cjs/schema/nodes/sync-block.js +1 -0
- package/dist/cjs/schema/nodes/tableNodes.js +32 -15
- package/dist/cjs/schema/nodes/task-item.js +2 -0
- package/dist/cjs/schema/nodes/unsupported-block.js +1 -0
- package/dist/cjs/schema/nodes/unsupported-inline.js +1 -0
- package/dist/cjs/schema/sanitizeNodes.js +11 -6
- package/dist/cjs/steps/analytics.js +1 -1
- package/dist/cjs/steps/batch-attrs-step.js +1 -1
- package/dist/cjs/utils/colors.js +21 -8
- package/dist/cjs/utils/editor-palette.js +7 -0
- package/dist/cjs/utils/lch-color-inversion.js +11 -5
- package/dist/cjs/utils/url.js +9 -6
- package/dist/cjs/utils/uuid.js +7 -7
- package/dist/cjs/validator-schema/generated/validatorSpec.js +1 -1
- package/dist/es2019/index.js +4 -1
- package/dist/es2019/json-schema/index.js +1 -0
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/es2019/next-schema/index.js +1 -0
- package/dist/es2019/next-schema/marks/alignmentAndIndentation.js +1 -2
- package/dist/es2019/next-schema/marks/color.js +1 -2
- package/dist/es2019/next-schema/marks/link.js +1 -1
- package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/es2019/schema/bitbucket-schema.js +1 -0
- package/dist/es2019/schema/confluence-schema.js +2 -0
- package/dist/es2019/schema/create-schema.js +0 -2
- package/dist/es2019/schema/createPMSpecFactory.js +2 -0
- package/dist/es2019/schema/index.js +4 -1
- package/dist/es2019/schema/inline-nodes.js +3 -0
- package/dist/es2019/schema/jira-schema.js +1 -0
- package/dist/es2019/schema/marks/annotation.js +7 -5
- package/dist/es2019/schema/marks/background-color.js +3 -1
- package/dist/es2019/schema/marks/border.js +1 -0
- package/dist/es2019/schema/marks/breakout.js +2 -0
- package/dist/es2019/schema/marks/indentation.js +1 -0
- package/dist/es2019/schema/marks/index.js +1 -0
- package/dist/es2019/schema/marks/link.js +4 -0
- package/dist/es2019/schema/marks/strong.js +5 -1
- package/dist/es2019/schema/marks/text-color.js +3 -1
- package/dist/es2019/schema/nodes/block-card.js +4 -1
- package/dist/es2019/schema/nodes/blockquote.js +1 -2
- package/dist/es2019/schema/nodes/bodied-extension.js +1 -0
- package/dist/es2019/schema/nodes/bodied-sync-block.js +1 -0
- package/dist/es2019/schema/nodes/caption.js +4 -2
- package/dist/es2019/schema/nodes/code-block.js +34 -9
- package/dist/es2019/schema/nodes/confluence-jira-issue.js +1 -0
- package/dist/es2019/schema/nodes/confluence-unsupported-block.js +1 -0
- package/dist/es2019/schema/nodes/confluence-unsupported-inline.js +1 -0
- package/dist/es2019/schema/nodes/date.js +2 -0
- package/dist/es2019/schema/nodes/decision-item.js +1 -0
- package/dist/es2019/schema/nodes/embed-card.js +18 -4
- package/dist/es2019/schema/nodes/emoji.js +20 -0
- package/dist/es2019/schema/nodes/expand.js +1 -0
- package/dist/es2019/schema/nodes/extension.js +1 -0
- package/dist/es2019/schema/nodes/heading.js +6 -7
- package/dist/es2019/schema/nodes/image.js +1 -0
- package/dist/es2019/schema/nodes/index.js +1 -0
- package/dist/es2019/schema/nodes/inline-extension.js +1 -0
- package/dist/es2019/schema/nodes/layout-column.js +6 -2
- package/dist/es2019/schema/nodes/layout-section.js +1 -2
- package/dist/es2019/schema/nodes/media-group.js +1 -1
- package/dist/es2019/schema/nodes/media-single.js +1 -0
- package/dist/es2019/schema/nodes/media.js +22 -15
- package/dist/es2019/schema/nodes/mention.js +5 -0
- package/dist/es2019/schema/nodes/multi-bodied-extension.js +1 -2
- package/dist/es2019/schema/nodes/nested-expand.js +2 -1
- package/dist/es2019/schema/nodes/ordered-list.js +3 -0
- package/dist/es2019/schema/nodes/panel.js +6 -0
- package/dist/es2019/schema/nodes/paragraph.js +1 -0
- package/dist/es2019/schema/nodes/placeholder.js +6 -2
- package/dist/es2019/schema/nodes/status.js +4 -1
- package/dist/es2019/schema/nodes/sync-block.js +1 -0
- package/dist/es2019/schema/nodes/tableNodes.js +22 -8
- package/dist/es2019/schema/nodes/task-item.js +2 -0
- package/dist/es2019/schema/nodes/unsupported-block.js +1 -0
- package/dist/es2019/schema/nodes/unsupported-inline.js +1 -0
- package/dist/es2019/schema/sanitizeNodes.js +11 -6
- package/dist/es2019/steps/analytics.js +1 -1
- package/dist/es2019/steps/batch-attrs-step.js +1 -1
- package/dist/es2019/steps/set-attrs.js +5 -5
- package/dist/es2019/steps.js +1 -0
- package/dist/es2019/utils/colors.js +23 -9
- package/dist/es2019/utils/editor-palette.js +6 -0
- package/dist/es2019/utils/index.js +1 -0
- package/dist/es2019/utils/lch-color-inversion.js +8 -3
- package/dist/es2019/utils/url.js +9 -6
- package/dist/es2019/utils/uuid.js +3 -4
- package/dist/es2019/validator-schema/generated/validatorSpec.js +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/json-schema/index.js +1 -0
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/esm/next-schema/index.js +1 -0
- package/dist/esm/next-schema/marks/alignmentAndIndentation.js +1 -2
- package/dist/esm/next-schema/marks/color.js +1 -2
- package/dist/esm/next-schema/marks/link.js +1 -1
- package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/esm/schema/bitbucket-schema.js +1 -0
- package/dist/esm/schema/confluence-schema.js +2 -0
- package/dist/esm/schema/create-schema.js +0 -2
- package/dist/esm/schema/createPMSpecFactory.js +2 -0
- package/dist/esm/schema/index.js +4 -1
- package/dist/esm/schema/inline-nodes.js +3 -0
- package/dist/esm/schema/jira-schema.js +1 -0
- package/dist/esm/schema/marks/annotation.js +6 -5
- package/dist/esm/schema/marks/background-color.js +2 -0
- package/dist/esm/schema/marks/border.js +1 -0
- package/dist/esm/schema/marks/breakout.js +2 -0
- package/dist/esm/schema/marks/indentation.js +1 -0
- package/dist/esm/schema/marks/index.js +1 -0
- package/dist/esm/schema/marks/link.js +4 -0
- package/dist/esm/schema/marks/strong.js +5 -1
- package/dist/esm/schema/marks/text-color.js +2 -0
- package/dist/esm/schema/nodes/block-card.js +4 -1
- package/dist/esm/schema/nodes/blockquote.js +1 -2
- package/dist/esm/schema/nodes/bodied-extension.js +1 -0
- package/dist/esm/schema/nodes/bodied-sync-block.js +1 -0
- package/dist/esm/schema/nodes/caption.js +4 -2
- package/dist/esm/schema/nodes/code-block.js +33 -8
- package/dist/esm/schema/nodes/confluence-jira-issue.js +1 -0
- package/dist/esm/schema/nodes/confluence-unsupported-block.js +1 -0
- package/dist/esm/schema/nodes/confluence-unsupported-inline.js +1 -0
- package/dist/esm/schema/nodes/date.js +2 -0
- package/dist/esm/schema/nodes/decision-item.js +1 -0
- package/dist/esm/schema/nodes/embed-card.js +18 -4
- package/dist/esm/schema/nodes/emoji.js +20 -0
- package/dist/esm/schema/nodes/expand.js +1 -0
- package/dist/esm/schema/nodes/extension.js +1 -0
- package/dist/esm/schema/nodes/heading.js +3 -2
- package/dist/esm/schema/nodes/image.js +1 -0
- package/dist/esm/schema/nodes/index.js +1 -0
- package/dist/esm/schema/nodes/inline-extension.js +1 -0
- package/dist/esm/schema/nodes/layout-column.js +6 -2
- package/dist/esm/schema/nodes/layout-section.js +1 -2
- package/dist/esm/schema/nodes/media-group.js +1 -1
- package/dist/esm/schema/nodes/media-single.js +1 -0
- package/dist/esm/schema/nodes/media.js +26 -18
- package/dist/esm/schema/nodes/mention.js +5 -0
- package/dist/esm/schema/nodes/multi-bodied-extension.js +1 -2
- package/dist/esm/schema/nodes/nested-expand.js +2 -1
- package/dist/esm/schema/nodes/ordered-list.js +3 -0
- package/dist/esm/schema/nodes/panel.js +6 -0
- package/dist/esm/schema/nodes/paragraph.js +1 -0
- package/dist/esm/schema/nodes/placeholder.js +6 -2
- package/dist/esm/schema/nodes/status.js +3 -0
- package/dist/esm/schema/nodes/sync-block.js +1 -0
- package/dist/esm/schema/nodes/tableNodes.js +32 -15
- package/dist/esm/schema/nodes/task-item.js +2 -0
- package/dist/esm/schema/nodes/unsupported-block.js +1 -0
- package/dist/esm/schema/nodes/unsupported-inline.js +1 -0
- package/dist/esm/schema/sanitizeNodes.js +11 -6
- package/dist/esm/steps/analytics.js +1 -1
- package/dist/esm/steps/batch-attrs-step.js +1 -1
- package/dist/esm/steps.js +1 -0
- package/dist/esm/utils/colors.js +20 -8
- package/dist/esm/utils/editor-palette.js +6 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/lch-color-inversion.js +11 -5
- package/dist/esm/utils/url.js +9 -6
- package/dist/esm/utils/uuid.js +7 -7
- package/dist/esm/validator-schema/generated/validatorSpec.js +1 -1
- package/dist/types/next-schema/full-schema.adf.d.ts +1 -1
- package/dist/types/next-schema/generated/markTypes.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeTypes.d.ts +4 -4
- package/dist/types/next-schema/groups/blockContentGroup.d.ts +1 -1
- package/dist/types/next-schema/groups/blockGroup.d.ts +1 -1
- package/dist/types/next-schema/groups/blockRootOnlyGroup.d.ts +1 -1
- package/dist/types/next-schema/groups/fontStyleGroup.d.ts +1 -1
- package/dist/types/next-schema/groups/inlineContentGroup.d.ts +1 -1
- package/dist/types/next-schema/groups/inlineGroup.d.ts +1 -1
- package/dist/types/next-schema/groups/linkMarkGroup.d.ts +1 -1
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +6 -6
- package/dist/types/next-schema/groups/searchQueryMarkGroup.d.ts +1 -1
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +7 -67
- package/dist/types/next-schema/marks/alignmentAndIndentation.d.ts +2 -2
- package/dist/types/next-schema/marks/annotation.d.ts +2 -2
- package/dist/types/next-schema/marks/border.d.ts +1 -1
- package/dist/types/next-schema/marks/breakout.d.ts +1 -1
- package/dist/types/next-schema/marks/code.d.ts +1 -1
- package/dist/types/next-schema/marks/color.d.ts +3 -3
- package/dist/types/next-schema/marks/confluenceInlineComment.d.ts +1 -1
- package/dist/types/next-schema/marks/dataConsumer.d.ts +1 -1
- package/dist/types/next-schema/marks/em.d.ts +1 -1
- package/dist/types/next-schema/marks/fragment.d.ts +1 -1
- package/dist/types/next-schema/marks/link.d.ts +1 -1
- package/dist/types/next-schema/marks/strike.d.ts +1 -1
- package/dist/types/next-schema/marks/strong.d.ts +1 -1
- package/dist/types/next-schema/marks/subsup.d.ts +1 -1
- package/dist/types/next-schema/marks/typeAheadQuery.d.ts +1 -1
- package/dist/types/next-schema/marks/underline.d.ts +1 -1
- package/dist/types/next-schema/marks/unsupportedMark.d.ts +1 -1
- package/dist/types/next-schema/marks/unsupportedNodeAttribute.d.ts +1 -1
- package/dist/types/next-schema/nodes/blockCard.d.ts +1 -1
- package/dist/types/next-schema/nodes/blockquote.d.ts +3 -3
- package/dist/types/next-schema/nodes/bodiedExtension.d.ts +4 -4
- package/dist/types/next-schema/nodes/bodiedSyncBlock.d.ts +1 -1
- package/dist/types/next-schema/nodes/caption.d.ts +1 -1
- package/dist/types/next-schema/nodes/codeBlock.d.ts +2 -2
- package/dist/types/next-schema/nodes/confluenceJiraIssue.d.ts +1 -1
- package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +1 -1
- package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +1 -1
- package/dist/types/next-schema/nodes/date.d.ts +1 -1
- package/dist/types/next-schema/nodes/decisionItem.d.ts +1 -1
- package/dist/types/next-schema/nodes/decisionList.d.ts +1 -1
- package/dist/types/next-schema/nodes/embedCard.d.ts +1 -1
- package/dist/types/next-schema/nodes/emoji.d.ts +1 -1
- package/dist/types/next-schema/nodes/expand.d.ts +2 -2
- package/dist/types/next-schema/nodes/extension.d.ts +3 -3
- package/dist/types/next-schema/nodes/extensionFrame.d.ts +1 -1
- package/dist/types/next-schema/nodes/hardBreak.d.ts +1 -1
- package/dist/types/next-schema/nodes/heading.d.ts +20 -20
- package/dist/types/next-schema/nodes/image.d.ts +1 -1
- package/dist/types/next-schema/nodes/inlineCard.d.ts +2 -2
- package/dist/types/next-schema/nodes/inlineExtension.d.ts +2 -2
- package/dist/types/next-schema/nodes/layoutColumn.d.ts +1 -1
- package/dist/types/next-schema/nodes/layoutSection.d.ts +7 -7
- package/dist/types/next-schema/nodes/list.d.ts +2 -2
- package/dist/types/next-schema/nodes/media.d.ts +1 -1
- package/dist/types/next-schema/nodes/mediaGroup.d.ts +1 -1
- package/dist/types/next-schema/nodes/mediaInline.d.ts +1 -1
- package/dist/types/next-schema/nodes/mediaSingle.d.ts +10 -10
- package/dist/types/next-schema/nodes/mention.d.ts +1 -1
- package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +1 -1
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +3 -3
- package/dist/types/next-schema/nodes/panel.d.ts +1 -1
- package/dist/types/next-schema/nodes/paragraph.d.ts +13 -13
- package/dist/types/next-schema/nodes/placeholder.d.ts +1 -1
- package/dist/types/next-schema/nodes/rule.d.ts +1 -1
- package/dist/types/next-schema/nodes/status.d.ts +1 -1
- package/dist/types/next-schema/nodes/syncBlock.d.ts +1 -1
- package/dist/types/next-schema/nodes/tableCellContent.d.ts +1 -1
- package/dist/types/next-schema/nodes/tableNodes.d.ts +1 -1
- package/dist/types/next-schema/nodes/task.d.ts +3 -3
- package/dist/types/next-schema/nodes/text.d.ts +5 -5
- package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +1 -1
- package/dist/types/next-schema/nodes/unsupportedInline.d.ts +1 -1
- package/dist/types/schema/bitbucket-schema.d.ts +1 -1
- package/dist/types/schema/confluence-schema.d.ts +1 -1
- package/dist/types/schema/create-schema.d.ts +4 -3
- package/dist/types/schema/createPMSpecFactory.d.ts +3 -3
- package/dist/types/schema/default-schema.d.ts +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/jira-schema.d.ts +8 -8
- package/dist/types/schema/marks/alignment.d.ts +2 -2
- package/dist/types/schema/marks/annotation.d.ts +5 -5
- package/dist/types/schema/marks/background-color.d.ts +3 -3
- package/dist/types/schema/marks/border.d.ts +6 -6
- package/dist/types/schema/marks/breakout.d.ts +2 -2
- package/dist/types/schema/marks/code.d.ts +1 -1
- package/dist/types/schema/marks/confluence-inline-comment.d.ts +2 -2
- package/dist/types/schema/marks/data-consumer.d.ts +2 -2
- package/dist/types/schema/marks/em.d.ts +1 -1
- package/dist/types/schema/marks/fragment.d.ts +2 -2
- package/dist/types/schema/marks/indentation.d.ts +2 -2
- package/dist/types/schema/marks/index.d.ts +3 -3
- package/dist/types/schema/marks/link.d.ts +12 -12
- package/dist/types/schema/marks/strike.d.ts +1 -1
- package/dist/types/schema/marks/strong.d.ts +1 -1
- package/dist/types/schema/marks/subsup.d.ts +2 -2
- package/dist/types/schema/marks/text-color.d.ts +2 -2
- package/dist/types/schema/marks/type-ahead-query.d.ts +1 -1
- package/dist/types/schema/marks/underline.d.ts +1 -1
- package/dist/types/schema/marks/unsupported-mark.d.ts +1 -1
- package/dist/types/schema/marks/unsupported-node-attributes.d.ts +1 -1
- package/dist/types/schema/nodes/block-card.d.ts +6 -6
- package/dist/types/schema/nodes/blockquote.d.ts +10 -11
- package/dist/types/schema/nodes/bodied-extension.d.ts +7 -7
- package/dist/types/schema/nodes/bodied-sync-block.d.ts +23 -24
- package/dist/types/schema/nodes/caption.d.ts +12 -12
- package/dist/types/schema/nodes/code-block.d.ts +7 -7
- package/dist/types/schema/nodes/date.d.ts +3 -3
- package/dist/types/schema/nodes/decision-item.d.ts +6 -6
- package/dist/types/schema/nodes/decision-list.d.ts +5 -5
- package/dist/types/schema/nodes/doc.d.ts +10 -10
- package/dist/types/schema/nodes/embed-card.d.ts +4 -4
- package/dist/types/schema/nodes/emoji.d.ts +3 -3
- package/dist/types/schema/nodes/expand.d.ts +7 -7
- package/dist/types/schema/nodes/extension.d.ts +5 -5
- package/dist/types/schema/nodes/heading.d.ts +9 -9
- package/dist/types/schema/nodes/index.d.ts +6 -6
- package/dist/types/schema/nodes/inline-card.d.ts +3 -3
- package/dist/types/schema/nodes/inline-extension.d.ts +5 -5
- package/dist/types/schema/nodes/layout-column.d.ts +3 -3
- package/dist/types/schema/nodes/layout-section.d.ts +9 -9
- package/dist/types/schema/nodes/media-group.d.ts +2 -2
- package/dist/types/schema/nodes/media-inline.d.ts +6 -6
- package/dist/types/schema/nodes/media-single.d.ts +10 -10
- package/dist/types/schema/nodes/media.d.ts +27 -27
- package/dist/types/schema/nodes/mention.d.ts +5 -5
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +21 -22
- package/dist/types/schema/nodes/nested-expand.d.ts +14 -14
- package/dist/types/schema/nodes/panel.d.ts +14 -15
- package/dist/types/schema/nodes/paragraph.d.ts +5 -5
- package/dist/types/schema/nodes/rule.d.ts +1 -1
- package/dist/types/schema/nodes/status.d.ts +6 -6
- package/dist/types/schema/nodes/sync-block.d.ts +7 -7
- package/dist/types/schema/nodes/tableNodes.d.ts +36 -37
- package/dist/types/schema/nodes/task-item.d.ts +13 -13
- package/dist/types/schema/nodes/task-list.d.ts +5 -5
- package/dist/types/schema/nodes/types/block-content.d.ts +17 -18
- package/dist/types/schema/nodes/types/inline-content.d.ts +12 -12
- package/dist/types/schema/nodes/types/list.d.ts +18 -18
- package/dist/types/schema/nodes/types/non-nestable-block-content.d.ts +15 -16
- package/dist/types/schema/nodes/unknown-block.d.ts +1 -1
- package/dist/types/schema/sanitizeNodes.d.ts +1 -1
- package/dist/types/steps/analytics.d.ts +4 -3
- package/dist/types/steps/batch-attrs-step.d.ts +4 -4
- package/dist/types/steps/link-meta-step.d.ts +7 -6
- package/dist/types/steps/override-document-step.d.ts +4 -4
- package/dist/types/steps/set-attrs.d.ts +4 -3
- package/dist/types/steps/type-ahead.d.ts +2 -2
- package/dist/types/utils/colors.d.ts +1 -1
- package/dist/types/utils/confluence/emoji.d.ts +1 -1
- package/dist/types/utils/extensions.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/url.d.ts +3 -3
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +12 -12
- package/dist/types-ts4.5/index.d.ts +8 -0
- package/dist/types-ts4.5/next-schema/full-schema.adf.d.ts +4 -0
- package/dist/types-ts4.5/next-schema/generated/markTypes.d.ts +206 -0
- package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +10 -0
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +976 -0
- package/dist/types-ts4.5/next-schema/groups/blockContentGroup.d.ts +12 -0
- package/dist/types-ts4.5/next-schema/groups/blockGroup.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/groups/blockRootOnlyGroup.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/groups/fontStyleGroup.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/groups/inlineContentGroup.d.ts +10 -0
- package/dist/types-ts4.5/next-schema/groups/inlineGroup.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/groups/linkMarkGroup.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/groups/nonNestableBlockContentGroup.d.ts +30 -0
- package/dist/types-ts4.5/next-schema/groups/searchQueryMarkGroup.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/groups/tableCellContentPseudoGroup.d.ts +26 -0
- package/dist/types-ts4.5/next-schema/index.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/marks/alignmentAndIndentation.d.ts +2 -0
- package/dist/types-ts4.5/next-schema/marks/annotation.d.ts +2 -0
- package/dist/types-ts4.5/next-schema/marks/border.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/breakout.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/code.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/color.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/marks/confluenceInlineComment.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/dataConsumer.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/em.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/fragment.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/link.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/strike.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/strong.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/subsup.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/typeAheadQuery.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/underline.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/unsupportedMark.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/marks/unsupportedNodeAttribute.d.ts +1 -0
- package/dist/types-ts4.5/next-schema/nodes/blockCard.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/blockquote.d.ts +14 -0
- package/dist/types-ts4.5/next-schema/nodes/bodiedExtension.d.ts +8 -0
- package/dist/types-ts4.5/next-schema/nodes/bodiedSyncBlock.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/caption.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/codeBlock.d.ts +8 -0
- package/dist/types-ts4.5/next-schema/nodes/confluenceJiraIssue.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/confluenceUnsupportedBlock.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/confluenceUnsupportedInline.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/date.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/decisionItem.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/decisionList.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/embedCard.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/emoji.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/expand.d.ts +8 -0
- package/dist/types-ts4.5/next-schema/nodes/extension.d.ts +7 -0
- package/dist/types-ts4.5/next-schema/nodes/extensionFrame.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/hardBreak.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/heading.d.ts +38 -0
- package/dist/types-ts4.5/next-schema/nodes/image.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/inlineCard.d.ts +6 -0
- package/dist/types-ts4.5/next-schema/nodes/inlineExtension.d.ts +6 -0
- package/dist/types-ts4.5/next-schema/nodes/layoutColumn.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/layoutSection.d.ts +25 -0
- package/dist/types-ts4.5/next-schema/nodes/list.d.ts +6 -0
- package/dist/types-ts4.5/next-schema/nodes/media.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/mediaGroup.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/mediaInline.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/mediaSingle.d.ts +57 -0
- package/dist/types-ts4.5/next-schema/nodes/mention.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/multiBodiedExtension.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/nestedExpand.d.ts +11 -0
- package/dist/types-ts4.5/next-schema/nodes/panel.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/paragraph.d.ts +24 -0
- package/dist/types-ts4.5/next-schema/nodes/placeholder.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/rule.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/status.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/syncBlock.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/tableCellContent.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/tableNodes.d.ts +4 -0
- package/dist/types-ts4.5/next-schema/nodes/task.d.ts +9 -0
- package/dist/types-ts4.5/next-schema/nodes/text.d.ts +25 -0
- package/dist/types-ts4.5/next-schema/nodes/unsupportedBlock.d.ts +3 -0
- package/dist/types-ts4.5/next-schema/nodes/unsupportedInline.d.ts +3 -0
- package/dist/types-ts4.5/schema/bitbucket-schema.d.ts +5 -0
- package/dist/types-ts4.5/schema/confluence-schema.d.ts +9 -0
- package/dist/types-ts4.5/schema/create-schema.d.ts +27 -0
- package/dist/types-ts4.5/schema/createPMSpecFactory.d.ts +33 -0
- package/dist/types-ts4.5/schema/default-schema.d.ts +7 -0
- package/dist/types-ts4.5/schema/groups.d.ts +6 -0
- package/dist/types-ts4.5/schema/index.d.ts +12 -0
- package/dist/types-ts4.5/schema/inline-nodes.d.ts +1 -0
- package/dist/types-ts4.5/schema/jira-schema.d.ts +65 -0
- package/dist/types-ts4.5/schema/marks/alignment.d.ts +16 -0
- package/dist/types-ts4.5/schema/marks/annotation.d.ts +32 -0
- package/dist/types-ts4.5/schema/marks/background-color.d.ts +20 -0
- package/dist/types-ts4.5/schema/marks/border.d.ts +23 -0
- package/dist/types-ts4.5/schema/marks/breakout.d.ts +12 -0
- package/dist/types-ts4.5/schema/marks/code.d.ts +8 -0
- package/dist/types-ts4.5/schema/marks/confluence-inline-comment.d.ts +12 -0
- package/dist/types-ts4.5/schema/marks/data-consumer.d.ts +46 -0
- package/dist/types-ts4.5/schema/marks/em.d.ts +8 -0
- package/dist/types-ts4.5/schema/marks/fragment.d.ts +29 -0
- package/dist/types-ts4.5/schema/marks/indentation.d.ts +16 -0
- package/dist/types-ts4.5/schema/marks/index.d.ts +36 -0
- package/dist/types-ts4.5/schema/marks/link.d.ts +39 -0
- package/dist/types-ts4.5/schema/marks/strike.d.ts +8 -0
- package/dist/types-ts4.5/schema/marks/strong.d.ts +8 -0
- package/dist/types-ts4.5/schema/marks/subsup.d.ts +15 -0
- package/dist/types-ts4.5/schema/marks/text-color.d.ts +26 -0
- package/dist/types-ts4.5/schema/marks/type-ahead-query.d.ts +2 -0
- package/dist/types-ts4.5/schema/marks/underline.d.ts +8 -0
- package/dist/types-ts4.5/schema/marks/unsupported-mark.d.ts +2 -0
- package/dist/types-ts4.5/schema/marks/unsupported-node-attributes.d.ts +2 -0
- package/dist/types-ts4.5/schema/nodes/block-card.d.ts +44 -0
- package/dist/types-ts4.5/schema/nodes/blockquote.d.ts +27 -0
- package/dist/types-ts4.5/schema/nodes/bodied-extension.d.ts +23 -0
- package/dist/types-ts4.5/schema/nodes/bodied-sync-block.d.ts +43 -0
- package/dist/types-ts4.5/schema/nodes/bullet-list.d.ts +3 -0
- package/dist/types-ts4.5/schema/nodes/caption.d.ts +24 -0
- package/dist/types-ts4.5/schema/nodes/code-block.d.ts +31 -0
- package/dist/types-ts4.5/schema/nodes/confluence-jira-issue.d.ts +1 -0
- package/dist/types-ts4.5/schema/nodes/confluence-unsupported-block.d.ts +1 -0
- package/dist/types-ts4.5/schema/nodes/confluence-unsupported-inline.d.ts +1 -0
- package/dist/types-ts4.5/schema/nodes/date.d.ts +20 -0
- package/dist/types-ts4.5/schema/nodes/decision-item.d.ts +16 -0
- package/dist/types-ts4.5/schema/nodes/decision-list.d.ts +17 -0
- package/dist/types-ts4.5/schema/nodes/doc.d.ts +20 -0
- package/dist/types-ts4.5/schema/nodes/embed-card.d.ts +19 -0
- package/dist/types-ts4.5/schema/nodes/emoji.d.ts +20 -0
- package/dist/types-ts4.5/schema/nodes/expand.d.ts +34 -0
- package/dist/types-ts4.5/schema/nodes/extension.d.ts +17 -0
- package/dist/types-ts4.5/schema/nodes/hard-break.d.ts +10 -0
- package/dist/types-ts4.5/schema/nodes/heading.d.ts +39 -0
- package/dist/types-ts4.5/schema/nodes/image.d.ts +1 -0
- package/dist/types-ts4.5/schema/nodes/index.d.ts +98 -0
- package/dist/types-ts4.5/schema/nodes/inline-card.d.ts +15 -0
- package/dist/types-ts4.5/schema/nodes/inline-extension.d.ts +17 -0
- package/dist/types-ts4.5/schema/nodes/layout-column.d.ts +22 -0
- package/dist/types-ts4.5/schema/nodes/layout-section.d.ts +49 -0
- package/dist/types-ts4.5/schema/nodes/list-item.d.ts +12 -0
- package/dist/types-ts4.5/schema/nodes/media-group.d.ts +13 -0
- package/dist/types-ts4.5/schema/nodes/media-inline.d.ts +20 -0
- package/dist/types-ts4.5/schema/nodes/media-single.d.ts +69 -0
- package/dist/types-ts4.5/schema/nodes/media.d.ts +71 -0
- package/dist/types-ts4.5/schema/nodes/mention.d.ts +30 -0
- package/dist/types-ts4.5/schema/nodes/multi-bodied-extension.d.ts +50 -0
- package/dist/types-ts4.5/schema/nodes/nested-expand.d.ts +40 -0
- package/dist/types-ts4.5/schema/nodes/ordered-list.d.ts +5 -0
- package/dist/types-ts4.5/schema/nodes/panel.d.ts +50 -0
- package/dist/types-ts4.5/schema/nodes/paragraph.d.ts +43 -0
- package/dist/types-ts4.5/schema/nodes/placeholder.d.ts +12 -0
- package/dist/types-ts4.5/schema/nodes/rule.d.ts +11 -0
- package/dist/types-ts4.5/schema/nodes/status.d.ts +24 -0
- package/dist/types-ts4.5/schema/nodes/sync-block.d.ts +22 -0
- package/dist/types-ts4.5/schema/nodes/tableNodes.d.ts +159 -0
- package/dist/types-ts4.5/schema/nodes/task-item.d.ts +33 -0
- package/dist/types-ts4.5/schema/nodes/task-list.d.ts +20 -0
- package/dist/types-ts4.5/schema/nodes/text.d.ts +12 -0
- package/dist/types-ts4.5/schema/nodes/types/block-content.d.ts +21 -0
- package/dist/types-ts4.5/schema/nodes/types/extensions.d.ts +34 -0
- package/dist/types-ts4.5/schema/nodes/types/inline-content.d.ts +28 -0
- package/dist/types-ts4.5/schema/nodes/types/list.d.ts +51 -0
- package/dist/types-ts4.5/schema/nodes/types/mark.d.ts +15 -0
- package/dist/types-ts4.5/schema/nodes/types/non-nestable-block-content.d.ts +19 -0
- package/dist/types-ts4.5/schema/nodes/types/rich-media-common.d.ts +37 -0
- package/dist/types-ts4.5/schema/nodes/unknown-block.d.ts +3 -0
- package/dist/types-ts4.5/schema/nodes/unsupported-block.d.ts +1 -0
- package/dist/types-ts4.5/schema/nodes/unsupported-inline.d.ts +1 -0
- package/dist/types-ts4.5/schema/sanitizeNodes.d.ts +8 -0
- package/dist/types-ts4.5/schema/unsupported.d.ts +1 -0
- package/dist/types-ts4.5/steps/analytics.d.ts +60 -0
- package/dist/types-ts4.5/steps/batch-attrs-step.d.ts +74 -0
- package/dist/types-ts4.5/steps/link-meta-step.d.ts +50 -0
- package/dist/types-ts4.5/steps/override-document-step.d.ts +26 -0
- package/dist/types-ts4.5/steps/set-attrs.d.ts +24 -0
- package/dist/types-ts4.5/steps/type-ahead.d.ts +35 -0
- package/dist/types-ts4.5/steps/types.d.ts +96 -0
- package/dist/types-ts4.5/steps.d.ts +10 -0
- package/dist/types-ts4.5/utils/colors.d.ts +81 -0
- package/dist/types-ts4.5/utils/confluence/emoji.d.ts +50 -0
- package/dist/types-ts4.5/utils/editor-palette.d.ts +257 -0
- package/dist/types-ts4.5/utils/extensions.d.ts +3 -0
- package/dist/types-ts4.5/utils/index.d.ts +7 -0
- package/dist/types-ts4.5/utils/lch-color-inversion.d.ts +2 -0
- package/dist/types-ts4.5/utils/parseDOM.d.ts +1 -0
- package/dist/types-ts4.5/utils/url.d.ts +40 -0
- package/dist/types-ts4.5/utils/uuid.d.ts +5 -0
- package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +1981 -0
- package/eslint-plugin-warn-schema.js +2 -1
- package/eslint.config.js +12 -14
- package/json-schema/package.json +8 -1
- package/json-schema/v1/full.json +3 -0
- package/json-schema/v1/stage-0.json +6 -0
- package/package.json +90 -82
- package/schema/package.json +8 -1
- package/schema-bitbucket/package.json +8 -1
- package/schema-confluence/package.json +8 -1
- package/schema-default/package.json +8 -1
- package/schema-generators/__tests__/helpers/_utils.ts +73 -77
- package/schema-generators/__tests__/helpers/utils.unit.ts +53 -59
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +79 -84
- package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +43 -40
- package/schema-generators/__tests__/unit/validator-schema.ts +3 -3
- package/schema-generators/helpers/writeToFile.ts +12 -11
- package/schema-generators/json-full-schema.ts +4 -4
- package/schema-generators/pm-full-schema.ts +7 -5
- package/schema-generators/validator-full-schema.ts +7 -9
- package/schema-jira/package.json +8 -1
- package/schema-next/package.json +9 -3
- package/schema-validator/package.json +9 -3
- package/steps/package.json +8 -1
- package/url/package.json +8 -1
- package/warn-schema-change.js +121 -136
- package/warn-schema-change.test.js +31 -30
- package/copy-dist-to-afe.js +0 -32
- package/dist/json-schema/package.json +0 -8
- package/dist/json-schema/v1/full.json +0 -2916
- package/dist/json-schema/v1/stage-0.json +0 -3211
- package/dist/types/json-schema/index.d.ts +0 -2
- package/sanitize-nodes/package.json +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const rule: import("
|
|
1
|
+
export declare const rule: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const status: import("
|
|
1
|
+
export declare const status: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const syncBlock: import("
|
|
1
|
+
export declare const syncBlock: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const tableCellContent: import("
|
|
1
|
+
export declare const tableCellContent: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const table: import("
|
|
1
|
+
declare const table: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
2
2
|
export { table };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const taskItem: import("
|
|
2
|
-
export declare const taskList: import("
|
|
3
|
-
export declare const blockTaskItem: import("
|
|
1
|
+
export declare const taskItem: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
2
|
+
export declare const taskList: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
3
|
+
export declare const blockTaskItem: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const text: import("
|
|
2
|
-
marks:
|
|
1
|
+
export declare const text: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string, "with_no_marks", "link_inline", "formatted", "code_inline"], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
|
2
|
+
marks: never[];
|
|
3
3
|
noMarks: true;
|
|
4
4
|
} & {
|
|
5
|
-
marks: import("
|
|
5
|
+
marks: import("packages/editor/adf-schema-generator/src/adfMark").ADFMark<import("packages/editor/adf-schema-generator/src/types/ADFMarkSpec").ADFMarkSpec>[];
|
|
6
6
|
ignore: ("pm-spec" | "json-schema")[];
|
|
7
7
|
} & {
|
|
8
|
-
marks: import("
|
|
8
|
+
marks: import("packages/editor/adf-schema-generator/src/adfMark").ADFMark<import("packages/editor/adf-schema-generator/src/types/ADFMarkSpec").ADFMarkSpec>[];
|
|
9
9
|
DANGEROUS_MANUAL_OVERRIDE: {
|
|
10
10
|
'validator-spec': {
|
|
11
11
|
'props.marks.items[0][9]': {
|
|
@@ -15,5 +15,5 @@ export declare const text: import("@atlaskit/adf-schema-generator/dist/types/adf
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
|
-
marks: import("
|
|
18
|
+
marks: import("packages/editor/adf-schema-generator/src/adfMark").ADFMark<import("packages/editor/adf-schema-generator/src/types/ADFMarkSpec").ADFMarkSpec>[];
|
|
19
19
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const unsupportedBlock: import("
|
|
1
|
+
export declare const unsupportedBlock: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const unsupportedInline: import("
|
|
1
|
+
export declare const unsupportedInline: import("packages/editor/adf-schema-generator/src/adfNode").ADFNode<[string], import("packages/editor/adf-schema-generator/src/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { NodeSpec, MarkSpec
|
|
1
|
+
import type { NodeSpec, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
export declare function getNodesAndMarksMap(): {
|
|
3
4
|
nodes: Record<string, NodeSpec>;
|
|
4
5
|
marks: Record<string, MarkSpec>;
|
|
@@ -8,10 +9,10 @@ export declare function getNodesAndMarksMap(): {
|
|
|
8
9
|
*/
|
|
9
10
|
export declare function createSchema<N extends string = string, M extends string = string>(config: SchemaConfig<N, M>): Schema<N, M>;
|
|
10
11
|
export interface SchemaConfig<N = string, M = string> {
|
|
11
|
-
|
|
12
|
+
customMarkSpecs?: SchemaCustomMarkSpecs;
|
|
12
13
|
customNodeSpecs?: SchemaCustomNodeSpecs;
|
|
13
14
|
marks?: M[];
|
|
14
|
-
|
|
15
|
+
nodes: N[];
|
|
15
16
|
}
|
|
16
17
|
export interface SchemaBuiltInItem {
|
|
17
18
|
name: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { DOMOutputSpec, Node as PMNode, NodeSpec, Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { DOMOutputSpec, Node as PMNode, NodeSpec, Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export type NodeSpecOptions<N extends PMNode> = {
|
|
3
|
-
toDOM?: (node: N) => DOMOutputSpec;
|
|
4
3
|
parseDOM?: NodeSpec['parseDOM'];
|
|
5
4
|
toDebugString?: () => string;
|
|
5
|
+
toDOM?: (node: N) => DOMOutputSpec;
|
|
6
6
|
};
|
|
7
7
|
export type NodeSpecFactory = typeof createPMNodeSpecFactory;
|
|
8
8
|
export type MarkSpecOptions<M extends Mark> = {
|
|
9
|
-
toDOM?: (mark: M, inline: boolean) => DOMOutputSpec;
|
|
10
9
|
parseDOM?: MarkSpec['parseDOM'];
|
|
11
10
|
toDebugString?: () => string;
|
|
11
|
+
toDOM?: (mark: M, inline: boolean) => DOMOutputSpec;
|
|
12
12
|
};
|
|
13
13
|
export type MarkSpecFactory = typeof createPMMarkSpecFactory;
|
|
14
14
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaConfig } from './create-schema';
|
|
1
|
+
import type { SchemaConfig } from './create-schema';
|
|
2
2
|
type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'bodiedSyncBlock' | 'unsupportedBlock' | 'unsupportedInline';
|
|
3
3
|
type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'backgroundColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'border' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer' | 'fragment';
|
|
4
4
|
export declare const defaultSchemaConfig: SchemaConfig<DefaultSchemaNodes, DefaultSchemaMarks>;
|
|
@@ -9,4 +9,4 @@ export { inlineNodes } from './inline-nodes';
|
|
|
9
9
|
export { createSchema } from './create-schema';
|
|
10
10
|
export { sanitizeNodes } from './sanitizeNodes';
|
|
11
11
|
export type { NodeSpecOptions, MarkSpecOptions } from './createPMSpecFactory';
|
|
12
|
-
export { createPMNodeSpecFactory, createPMMarkSpecFactory
|
|
12
|
+
export { createPMNodeSpecFactory, createPMMarkSpecFactory } from './createPMSpecFactory';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
|
4
4
|
**/
|
|
5
5
|
export interface JIRASchemaConfig {
|
|
6
|
-
allowLists?: boolean;
|
|
7
|
-
allowMentions?: boolean;
|
|
8
|
-
allowEmojis?: boolean;
|
|
9
|
-
allowLinks?: boolean;
|
|
10
6
|
allowAdvancedTextFormatting?: boolean;
|
|
11
|
-
allowCodeBlock?: boolean;
|
|
12
7
|
allowBlockQuote?: boolean;
|
|
13
|
-
|
|
8
|
+
allowCodeBlock?: boolean;
|
|
9
|
+
allowEmojis?: boolean;
|
|
10
|
+
allowLinks?: boolean;
|
|
11
|
+
allowLists?: boolean;
|
|
14
12
|
allowMedia?: boolean;
|
|
15
|
-
|
|
13
|
+
allowMentions?: boolean;
|
|
14
|
+
allowSubSup?: boolean;
|
|
16
15
|
allowTables?: boolean;
|
|
16
|
+
allowTextColor?: boolean;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* @deprecated [ED-15676] We have stopped supporting product specific schemas. Use `@atlaskit/adf-schema/schema-default` instead.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
/** TODO: Flip these positions for RTL */
|
|
3
3
|
export declare const alignmentPositionMap: {
|
|
4
4
|
[key: string]: string;
|
|
@@ -10,7 +10,7 @@ export interface AlignmentAttributes {
|
|
|
10
10
|
* @name alignment_mark
|
|
11
11
|
*/
|
|
12
12
|
export interface AlignmentMarkDefinition {
|
|
13
|
-
type: 'alignment';
|
|
14
13
|
attrs: AlignmentAttributes;
|
|
14
|
+
type: 'alignment';
|
|
15
15
|
}
|
|
16
16
|
export declare const alignment: MarkSpec;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
/**
|
|
3
3
|
* @name annotation_mark
|
|
4
4
|
*/
|
|
5
5
|
export interface AnnotationMarkDefinition {
|
|
6
|
-
type: 'annotation';
|
|
7
6
|
attrs: AnnotationMarkAttributes;
|
|
7
|
+
type: 'annotation';
|
|
8
8
|
}
|
|
9
9
|
export interface AnnotationMarkAttributes {
|
|
10
|
-
id: AnnotationId;
|
|
11
10
|
annotationType: AnnotationTypes;
|
|
11
|
+
id: AnnotationId;
|
|
12
12
|
}
|
|
13
13
|
export type AnnotationId = string;
|
|
14
14
|
export declare enum AnnotationTypes {
|
|
@@ -19,10 +19,10 @@ export declare enum AnnotationMarkStates {
|
|
|
19
19
|
ACTIVE = "active"
|
|
20
20
|
}
|
|
21
21
|
export type AnnotationDataAttributes = {
|
|
22
|
-
'data-mark-type': string;
|
|
23
|
-
'data-mark-annotation-type': AnnotationTypes;
|
|
24
22
|
'data-id': AnnotationId;
|
|
25
23
|
'data-mark-annotation-state'?: AnnotationMarkStates;
|
|
24
|
+
'data-mark-annotation-type': AnnotationTypes;
|
|
25
|
+
'data-mark-type': string;
|
|
26
26
|
};
|
|
27
27
|
type BuildDataAttributesProps = AnnotationMarkAttributes & {
|
|
28
28
|
state?: AnnotationMarkStates | undefined | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { TextColorAttributes } from './text-color';
|
|
1
|
+
import type { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { TextColorAttributes } from './text-color';
|
|
3
3
|
/**
|
|
4
4
|
* @name backgroundColor_mark
|
|
5
5
|
*/
|
|
6
6
|
export interface BackgroundColorDefinition {
|
|
7
|
-
type: 'backgroundColor';
|
|
8
7
|
attrs: TextColorAttributes;
|
|
8
|
+
type: 'backgroundColor';
|
|
9
9
|
}
|
|
10
10
|
export interface BackgroundColorMark extends Mark {
|
|
11
11
|
attrs: TextColorAttributes;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export type BorderMarkAttributes = {
|
|
3
|
+
/**
|
|
4
|
+
* @pattern "^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$"
|
|
5
|
+
*/
|
|
6
|
+
color: string;
|
|
3
7
|
/**
|
|
4
8
|
* @minimum 1
|
|
5
9
|
* @maximum 3
|
|
6
10
|
*/
|
|
7
11
|
size: number;
|
|
8
|
-
/**
|
|
9
|
-
* @pattern "^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$"
|
|
10
|
-
*/
|
|
11
|
-
color: string;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* @name border_mark
|
|
15
15
|
* @description This mark adds decoration to an element, and any element decorated with it will also have a border style.
|
|
16
16
|
*/
|
|
17
17
|
export interface BorderMarkDefinition {
|
|
18
|
-
type: 'border';
|
|
19
18
|
attrs: BorderMarkAttributes;
|
|
19
|
+
type: 'border';
|
|
20
20
|
}
|
|
21
21
|
export type BorderColorKey = 'Subtle gray' | 'Gray' | 'Bold gray';
|
|
22
22
|
export declare const borderColorPalette: Map<string, BorderColorKey>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export type BreakoutMarkAttrs = {
|
|
3
3
|
mode: 'wide' | 'full-width';
|
|
4
4
|
};
|
|
@@ -6,7 +6,7 @@ export type BreakoutMarkAttrs = {
|
|
|
6
6
|
* @name breakout_mark
|
|
7
7
|
*/
|
|
8
8
|
export interface BreakoutMarkDefinition {
|
|
9
|
-
type: 'breakout';
|
|
10
9
|
attrs: BreakoutMarkAttrs;
|
|
10
|
+
type: 'breakout';
|
|
11
11
|
}
|
|
12
12
|
export declare const breakout: MarkSpec;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
/**
|
|
3
3
|
* @name inline_comment_marker
|
|
4
4
|
* @description This temporary mark represents a Confluence-backed inline comment that wraps a piece of text. It will be replaced with a cross-product inline comment solution at later date.
|
|
5
5
|
*/
|
|
6
6
|
export interface ConfluenceInlineCommentDefinition {
|
|
7
|
-
type: 'confluenceInlineComment';
|
|
8
7
|
attrs: {
|
|
9
8
|
reference: string;
|
|
10
9
|
};
|
|
10
|
+
type: 'confluenceInlineComment';
|
|
11
11
|
}
|
|
12
12
|
export declare const confluenceInlineComment: MarkSpec;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
/**
|
|
3
3
|
* This annotation is purely for reference, & does _nothing_ given annotating
|
|
4
4
|
* `minLength` on an array of strings is not supported with our schema+spec
|
|
@@ -22,8 +22,8 @@ export interface DataConsumerAttributes {
|
|
|
22
22
|
* from a given source node
|
|
23
23
|
*/
|
|
24
24
|
export interface DataConsumerDefinition {
|
|
25
|
-
type: 'dataConsumer';
|
|
26
25
|
attrs: DataConsumerAttributes;
|
|
26
|
+
type: 'dataConsumer';
|
|
27
27
|
}
|
|
28
28
|
export interface DataConsumerMark extends Mark {
|
|
29
29
|
attrs: DataConsumerAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export type LocalId = string;
|
|
3
3
|
export interface FragmentAttributes {
|
|
4
4
|
/**
|
|
@@ -13,8 +13,8 @@ export interface FragmentAttributes {
|
|
|
13
13
|
* This entity can be referred to later by its `localId` attribute.
|
|
14
14
|
*/
|
|
15
15
|
export interface FragmentDefinition {
|
|
16
|
-
type: 'fragment';
|
|
17
16
|
attrs: FragmentAttributes;
|
|
17
|
+
type: 'fragment';
|
|
18
18
|
}
|
|
19
19
|
export interface FragmentMark extends Mark {
|
|
20
20
|
attrs: FragmentAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export interface IndentationMarkAttributes {
|
|
3
3
|
/**
|
|
4
4
|
* @minimum 1
|
|
@@ -10,7 +10,7 @@ export interface IndentationMarkAttributes {
|
|
|
10
10
|
* @name indentation_mark
|
|
11
11
|
*/
|
|
12
12
|
export interface IndentationMarkDefinition {
|
|
13
|
-
type: 'indentation';
|
|
14
13
|
attrs: IndentationMarkAttributes;
|
|
14
|
+
type: 'indentation';
|
|
15
15
|
}
|
|
16
16
|
export declare const indentation: MarkSpec;
|
|
@@ -21,14 +21,14 @@ export type { BreakoutMarkAttrs, BreakoutMarkDefinition } from './breakout';
|
|
|
21
21
|
export { alignment, alignmentPositionMap } from './alignment';
|
|
22
22
|
export type { AlignmentAttributes, AlignmentMarkDefinition } from './alignment';
|
|
23
23
|
export { indentation } from './indentation';
|
|
24
|
-
export type { IndentationMarkAttributes, IndentationMarkDefinition
|
|
24
|
+
export type { IndentationMarkAttributes, IndentationMarkDefinition } from './indentation';
|
|
25
25
|
export { annotation, AnnotationMarkStates, buildDataAttributes as buildAnnotationMarkDataAttributes, AnnotationTypes, } from './annotation';
|
|
26
26
|
export type { AnnotationMarkDefinition, AnnotationMarkAttributes, AnnotationId, AnnotationDataAttributes, } from './annotation';
|
|
27
27
|
export { unsupportedMark } from './unsupported-mark';
|
|
28
28
|
export { unsupportedNodeAttribute } from './unsupported-node-attributes';
|
|
29
|
-
export type { DataConsumerAttributes, DataConsumerDefinition
|
|
29
|
+
export type { DataConsumerAttributes, DataConsumerDefinition } from './data-consumer';
|
|
30
30
|
export { dataConsumer, toJSON as dataConsumerToJSON } from './data-consumer';
|
|
31
|
-
export type { FragmentAttributes, FragmentDefinition, LocalId
|
|
31
|
+
export type { FragmentAttributes, FragmentDefinition, LocalId } from './fragment';
|
|
32
32
|
export { fragment, toJSON as fragmentToJSON } from './fragment';
|
|
33
33
|
export { border, borderColorPalette } from './border';
|
|
34
34
|
export type { BorderMarkAttributes, BorderMarkDefinition } from './border';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { MarkSpec, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export interface ConfluenceLinkMetadata {
|
|
3
|
-
linkType: string;
|
|
4
|
-
versionAtSave?: string | null;
|
|
5
|
-
fileName?: string | null;
|
|
6
|
-
spaceKey?: string | null;
|
|
7
|
-
contentTitle?: string | null;
|
|
8
|
-
isRenamedTitle?: boolean;
|
|
9
3
|
anchorName?: string | null;
|
|
10
|
-
contentId?: string | null;
|
|
11
4
|
container?: ConfluenceLinkMetadata;
|
|
5
|
+
contentId?: string | null;
|
|
6
|
+
contentTitle?: string | null;
|
|
7
|
+
fileName?: string | null;
|
|
8
|
+
isRenamedTitle?: boolean;
|
|
9
|
+
linkType: string;
|
|
10
|
+
spaceKey?: string | null;
|
|
11
|
+
versionAtSave?: string | null;
|
|
12
12
|
}
|
|
13
13
|
export interface LinkAttributes {
|
|
14
|
+
__confluenceMetadata?: ConfluenceLinkMetadata;
|
|
15
|
+
collection?: string;
|
|
14
16
|
/**
|
|
15
17
|
* @validatorFn safeUrl
|
|
16
18
|
*/
|
|
17
19
|
href: string;
|
|
18
|
-
title?: string;
|
|
19
20
|
id?: string;
|
|
20
|
-
collection?: string;
|
|
21
21
|
occurrenceKey?: string;
|
|
22
|
-
|
|
22
|
+
title?: string;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @name link_mark
|
|
26
26
|
*/
|
|
27
27
|
export interface LinkDefinition {
|
|
28
|
-
type: 'link';
|
|
29
28
|
attrs: LinkAttributes;
|
|
29
|
+
type: 'link';
|
|
30
30
|
}
|
|
31
31
|
export declare const getLinkAttrs: (attribute: string) => (domNode: Node | string) => false | {
|
|
32
32
|
__confluenceMetadata: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarkSpec, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export interface SubSupAttributes {
|
|
3
3
|
type: 'sub' | 'sup';
|
|
4
4
|
}
|
|
@@ -6,8 +6,8 @@ export interface SubSupAttributes {
|
|
|
6
6
|
* @name subsup_mark
|
|
7
7
|
*/
|
|
8
8
|
export interface SubSupDefinition {
|
|
9
|
-
type: 'subsup';
|
|
10
9
|
attrs: SubSupAttributes;
|
|
10
|
+
type: 'subsup';
|
|
11
11
|
}
|
|
12
12
|
export interface SubSupMark extends Mark {
|
|
13
13
|
attrs: SubSupAttributes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Mark, MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export interface TextColorAttributes {
|
|
3
3
|
/**
|
|
4
4
|
* @pattern "^#[0-9a-fA-F]{6}$"
|
|
@@ -9,8 +9,8 @@ export interface TextColorAttributes {
|
|
|
9
9
|
* @name textColor_mark
|
|
10
10
|
*/
|
|
11
11
|
export interface TextColorDefinition {
|
|
12
|
-
type: 'textColor';
|
|
13
12
|
attrs: TextColorAttributes;
|
|
13
|
+
type: 'textColor';
|
|
14
14
|
}
|
|
15
15
|
export interface TextColorMark extends Mark {
|
|
16
16
|
attrs: TextColorAttributes;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const typeAheadQuery: MarkSpec;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const unsupportedMark: MarkSpec;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { MarkSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const unsupportedNodeAttribute: MarkSpec;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OptionalRichMediaAttributes } from './types/rich-media-common';
|
|
1
|
+
import type { OptionalRichMediaAttributes } from './types/rich-media-common';
|
|
2
2
|
export interface UrlType {
|
|
3
|
+
localId?: string;
|
|
3
4
|
/**
|
|
4
5
|
* @validatorFn safeUrl
|
|
5
6
|
*/
|
|
6
7
|
url: string;
|
|
7
|
-
localId?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface DataType {
|
|
10
10
|
/**
|
|
@@ -20,25 +20,25 @@ export interface DatasourceAttributeProperties {
|
|
|
20
20
|
* @minItems 1
|
|
21
21
|
*/
|
|
22
22
|
views: {
|
|
23
|
-
type: string;
|
|
24
23
|
properties?: object;
|
|
24
|
+
type: string;
|
|
25
25
|
}[];
|
|
26
26
|
}
|
|
27
27
|
export interface DatasourceAttributes extends OptionalRichMediaAttributes {
|
|
28
|
+
datasource: DatasourceAttributeProperties;
|
|
29
|
+
localId?: string;
|
|
28
30
|
/**
|
|
29
31
|
* @validatorFn safeUrl
|
|
30
32
|
*/
|
|
31
33
|
url?: string;
|
|
32
|
-
datasource: DatasourceAttributeProperties;
|
|
33
|
-
localId?: string;
|
|
34
34
|
}
|
|
35
35
|
export type CardAttributes = UrlType | DataType;
|
|
36
36
|
/**
|
|
37
37
|
* @name blockCard_node
|
|
38
38
|
*/
|
|
39
39
|
export interface BlockCardDefinition {
|
|
40
|
-
type: 'blockCard';
|
|
41
40
|
attrs: DatasourceAttributes | CardAttributes;
|
|
41
|
+
type: 'blockCard';
|
|
42
42
|
}
|
|
43
43
|
export declare const blockCard: import("prosemirror-model").NodeSpec;
|
|
44
44
|
export declare const blockCardWithLocalId: import("prosemirror-model").NodeSpec;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { ParagraphDefinition as Paragraph } from './paragraph';
|
|
2
|
-
import { OrderedListDefinition as OrderedList } from './types/list';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ExtensionDefinition as Extension } from './extension';
|
|
1
|
+
import type { ParagraphDefinition as Paragraph } from './paragraph';
|
|
2
|
+
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
3
|
+
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
4
|
+
import type { MediaGroupDefinition as MediaGroup } from './media-group';
|
|
5
|
+
import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
6
|
+
import type { ExtensionDefinition as Extension } from './extension';
|
|
8
7
|
/**
|
|
9
8
|
* @name blockquote_node
|
|
10
9
|
*/
|
|
11
10
|
export interface BlockQuoteDefinition {
|
|
12
|
-
|
|
11
|
+
attrs?: {
|
|
12
|
+
localId?: string;
|
|
13
|
+
};
|
|
13
14
|
/**
|
|
14
15
|
* @minItems 1
|
|
15
16
|
* @allowUnsupportedBlock true
|
|
16
17
|
*/
|
|
17
18
|
content: Array<Paragraph | OrderedList | BulletList | CodeBlock | MediaGroup | MediaSingle | Extension>;
|
|
18
|
-
|
|
19
|
-
localId?: string;
|
|
20
|
-
};
|
|
19
|
+
type: 'blockquote';
|
|
21
20
|
}
|
|
22
21
|
export declare const blockquote: import("prosemirror-model").NodeSpec;
|
|
23
22
|
/**
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ExtensionAttributes } from './types/extensions';
|
|
2
|
-
import { MarksObject } from './types/mark';
|
|
3
|
-
import { NonNestableBlockContent } from './types/non-nestable-block-content';
|
|
4
|
-
import { DataConsumerDefinition } from '../marks/data-consumer';
|
|
5
|
-
import { FragmentDefinition } from '../marks/fragment';
|
|
1
|
+
import type { ExtensionAttributes } from './types/extensions';
|
|
2
|
+
import type { MarksObject } from './types/mark';
|
|
3
|
+
import type { NonNestableBlockContent } from './types/non-nestable-block-content';
|
|
4
|
+
import type { DataConsumerDefinition } from '../marks/data-consumer';
|
|
5
|
+
import type { FragmentDefinition } from '../marks/fragment';
|
|
6
6
|
/**
|
|
7
7
|
* @name bodiedExtension_node
|
|
8
8
|
*/
|
|
9
9
|
export interface BodiedExtensionBaseDefinition {
|
|
10
|
-
type: 'bodiedExtension';
|
|
11
10
|
attrs: ExtensionAttributes;
|
|
12
|
-
marks?: Array<any>;
|
|
13
11
|
/**
|
|
14
12
|
* @minItems 1
|
|
15
13
|
* @allowUnsupportedBlock true
|
|
16
14
|
*/
|
|
17
15
|
content: Array<NonNestableBlockContent>;
|
|
16
|
+
marks?: Array<any>;
|
|
17
|
+
type: 'bodiedExtension';
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* @name bodiedExtension_with_marks_node
|