@atlaskit/adf-schema 54.0.2 → 54.0.4
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 +14 -0
- package/alignment/package.json +1 -8
- package/annotation/package.json +1 -8
- package/background-color/package.json +1 -8
- package/block-card/package.json +1 -8
- package/block-content/package.json +1 -8
- package/blockquote/package.json +1 -8
- package/bodied-extension/package.json +1 -8
- package/bodied-sync-block/package.json +1 -8
- package/border/package.json +1 -8
- package/breakout/package.json +1 -8
- package/bullet-list/package.json +1 -8
- package/caption/package.json +1 -8
- package/code/package.json +1 -8
- package/code-block/package.json +1 -8
- package/colors/package.json +1 -8
- package/confluence/emoji/package.json +1 -8
- package/confluence-inline-comment/package.json +1 -8
- package/confluence-jira-issue/package.json +1 -8
- package/confluence-unsupported-block/package.json +1 -8
- package/confluence-unsupported-inline/package.json +1 -8
- package/create-schema/package.json +1 -8
- package/createPMSpecFactory/package.json +1 -8
- package/data-consumer/package.json +1 -8
- package/date/package.json +1 -8
- package/decision-item/package.json +1 -8
- package/decision-list/package.json +1 -8
- package/dist/cjs/schema/marks/background-color.js +4 -2
- package/dist/cjs/schema/marks/strong.js +4 -3
- package/dist/cjs/schema/marks/text-color.js +4 -2
- package/dist/cjs/schema/nodes/code-block.js +7 -5
- package/dist/cjs/schema/nodes/media.js +3 -2
- package/dist/cjs/schema/nodes/status.js +4 -2
- package/dist/cjs/schema/nodes/tableNodes.js +4 -3
- package/dist/cjs/schema/sanitizeNodes.js +5 -3
- package/dist/cjs/utils/colors.js +7 -4
- package/dist/cjs/utils/lch-color-inversion.js +8 -8
- package/dist/es2019/schema/marks/background-color.js +4 -2
- package/dist/es2019/schema/marks/strong.js +4 -3
- package/dist/es2019/schema/marks/text-color.js +4 -2
- package/dist/es2019/schema/nodes/code-block.js +7 -5
- package/dist/es2019/schema/nodes/media.js +3 -2
- package/dist/es2019/schema/nodes/status.js +3 -2
- package/dist/es2019/schema/nodes/tableNodes.js +4 -3
- package/dist/es2019/schema/sanitizeNodes.js +5 -3
- package/dist/es2019/utils/colors.js +7 -4
- package/dist/es2019/utils/lch-color-inversion.js +6 -5
- package/dist/esm/schema/marks/background-color.js +4 -2
- package/dist/esm/schema/marks/strong.js +4 -3
- package/dist/esm/schema/marks/text-color.js +4 -2
- package/dist/esm/schema/nodes/code-block.js +7 -5
- package/dist/esm/schema/nodes/media.js +3 -2
- package/dist/esm/schema/nodes/status.js +3 -2
- package/dist/esm/schema/nodes/tableNodes.js +4 -3
- package/dist/esm/schema/sanitizeNodes.js +5 -3
- package/dist/esm/utils/colors.js +7 -4
- package/dist/esm/utils/lch-color-inversion.js +8 -8
- package/dist/json-schema/package.json +1 -8
- package/doc/package.json +1 -8
- package/em/package.json +1 -8
- package/embed-card/package.json +1 -8
- package/emoji/package.json +1 -8
- package/expand/package.json +1 -8
- package/extension/package.json +1 -8
- package/extensions/package.json +1 -8
- package/font-size/package.json +1 -8
- package/fragment/package.json +1 -8
- package/hard-break/package.json +1 -8
- package/heading/package.json +1 -8
- package/image/package.json +1 -8
- package/indentation/package.json +1 -8
- package/inline-card/package.json +1 -8
- package/inline-content/package.json +1 -8
- package/inline-extension/package.json +1 -8
- package/inline-nodes/package.json +1 -8
- package/json-schema/package.json +1 -8
- package/layout-column/package.json +1 -8
- package/layout-section/package.json +1 -8
- package/lch-color-inversion/package.json +1 -8
- package/link/package.json +1 -8
- package/list/package.json +1 -8
- package/list-item/package.json +1 -8
- package/mark/package.json +1 -8
- package/media/package.json +1 -8
- package/media-group/package.json +1 -8
- package/media-inline/package.json +1 -8
- package/media-single/package.json +1 -8
- package/mention/package.json +1 -8
- package/multi-bodied-extension/package.json +1 -8
- package/nested-expand/package.json +1 -8
- package/non-nestable-block-content/package.json +1 -8
- package/ordered-list/package.json +1 -8
- package/package.json +2 -2
- package/panel/package.json +1 -8
- package/paragraph/package.json +1 -8
- package/placeholder/package.json +1 -8
- package/rich-media-common/package.json +1 -8
- package/rule/package.json +1 -8
- package/sanitizeNodes/package.json +1 -8
- package/schema/alignment/package.json +1 -8
- package/schema/annotation/package.json +1 -8
- package/schema/background-color/package.json +1 -8
- package/schema/block-card/package.json +1 -8
- package/schema/block-content/package.json +1 -8
- package/schema/blockquote/package.json +1 -8
- package/schema/bodied-extension/package.json +1 -8
- package/schema/bodied-sync-block/package.json +1 -8
- package/schema/border/package.json +1 -8
- package/schema/breakout/package.json +1 -8
- package/schema/bullet-list/package.json +1 -8
- package/schema/caption/package.json +1 -8
- package/schema/code/package.json +1 -8
- package/schema/code-block/package.json +1 -8
- package/schema/confluence-inline-comment/package.json +1 -8
- package/schema/confluence-jira-issue/package.json +1 -8
- package/schema/confluence-unsupported-block/package.json +1 -8
- package/schema/confluence-unsupported-inline/package.json +1 -8
- package/schema/create-schema/package.json +1 -8
- package/schema/createPMSpecFactory/package.json +1 -8
- package/schema/data-consumer/package.json +1 -8
- package/schema/date/package.json +1 -8
- package/schema/decision-item/package.json +1 -8
- package/schema/decision-list/package.json +1 -8
- package/schema/doc/package.json +1 -8
- package/schema/em/package.json +1 -8
- package/schema/embed-card/package.json +1 -8
- package/schema/emoji/package.json +1 -8
- package/schema/expand/package.json +1 -8
- package/schema/extension/package.json +1 -8
- package/schema/extensions/package.json +1 -8
- package/schema/font-size/package.json +1 -8
- package/schema/fragment/package.json +1 -8
- package/schema/hard-break/package.json +1 -8
- package/schema/heading/package.json +1 -8
- package/schema/image/package.json +1 -8
- package/schema/indentation/package.json +1 -8
- package/schema/inline-card/package.json +1 -8
- package/schema/inline-content/package.json +1 -8
- package/schema/inline-extension/package.json +1 -8
- package/schema/inline-nodes/package.json +1 -8
- package/schema/layout-section/package.json +1 -8
- package/schema/link/package.json +1 -8
- package/schema/list/package.json +1 -8
- package/schema/list-item/package.json +1 -8
- package/schema/mark/package.json +1 -8
- package/schema/media/package.json +1 -8
- package/schema/media-group/package.json +1 -8
- package/schema/media-inline/package.json +1 -8
- package/schema/media-single/package.json +1 -8
- package/schema/mention/package.json +1 -8
- package/schema/multi-bodied-extension/package.json +1 -8
- package/schema/nested-expand/package.json +1 -8
- package/schema/non-nestable-block-content/package.json +1 -8
- package/schema/ordered-list/package.json +1 -8
- package/schema/package.json +1 -8
- package/schema/panel/package.json +1 -8
- package/schema/paragraph/package.json +1 -8
- package/schema/placeholder/package.json +1 -8
- package/schema/rich-media-common/package.json +1 -8
- package/schema/rule/package.json +1 -8
- package/schema/sanitizeNodes/package.json +1 -8
- package/schema/status/package.json +1 -8
- package/schema/strike/package.json +1 -8
- package/schema/strong/package.json +1 -8
- package/schema/subsup/package.json +1 -8
- package/schema/sync-block/package.json +1 -8
- package/schema/tableNodes/package.json +1 -8
- package/schema/task-item/package.json +1 -8
- package/schema/task-list/package.json +1 -8
- package/schema/text/package.json +1 -8
- package/schema/text-color/package.json +1 -8
- package/schema/type-ahead-query/package.json +1 -8
- package/schema/underline/package.json +1 -8
- package/schema/unknown-block/package.json +1 -8
- package/schema/unsupported/package.json +1 -8
- package/schema/unsupported-block/package.json +1 -8
- package/schema/unsupported-inline/package.json +1 -8
- package/schema/unsupported-mark/package.json +1 -8
- package/schema/unsupported-node-attributes/package.json +1 -8
- package/schema-bitbucket/package.json +1 -8
- package/schema-confluence/package.json +1 -8
- package/schema-default/package.json +1 -8
- package/schema-jira/package.json +1 -8
- package/schema-next/markTypes/package.json +1 -8
- package/schema-next/nodeGroupTypes/package.json +1 -8
- package/schema-next/nodeTypes/package.json +1 -8
- package/schema-next/package.json +1 -8
- package/schema-validator/package.json +1 -8
- package/status/package.json +1 -8
- package/steps/analytics/package.json +1 -8
- package/steps/batch-attrs-step/package.json +1 -8
- package/steps/link-meta-step/package.json +1 -8
- package/steps/override-document-step/package.json +1 -8
- package/steps/package.json +1 -8
- package/steps/set-attrs/package.json +1 -8
- package/steps/type-ahead/package.json +1 -8
- package/strike/package.json +1 -8
- package/strong/package.json +1 -8
- package/subsup/package.json +1 -8
- package/sync-block/package.json +1 -8
- package/tableNodes/package.json +1 -8
- package/task-item/package.json +1 -8
- package/task-list/package.json +1 -8
- package/text/package.json +1 -8
- package/text-color/package.json +1 -8
- package/type-ahead-query/package.json +1 -8
- package/underline/package.json +1 -8
- package/unknown-block/package.json +1 -8
- package/unsupported/package.json +1 -8
- package/unsupported-block/package.json +1 -8
- package/unsupported-inline/package.json +1 -8
- package/unsupported-mark/package.json +1 -8
- package/unsupported-node-attributes/package.json +1 -8
- package/url/package.json +1 -8
- package/uuid/package.json +1 -8
- package/dist/types-ts4.5/entry-points/alignment.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/annotation.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/background-color.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/block-card.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/block-content.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/blockquote.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/bodied-extension.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/bodied-sync-block.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/border.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/breakout.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/bullet-list.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/caption.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/code-block.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/code.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/colors.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/confluence-emoji.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/confluence-inline-comment.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/confluence-jira-issue.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/confluence-unsupported-block.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/confluence-unsupported-inline.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/create-schema.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/createPMSpecFactory.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/data-consumer.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/date.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/decision-item.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/decision-list.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/doc.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/em.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/embed-card.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/emoji.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/expand.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/extension.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/extensions.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/font-size.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/fragment.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/hard-break.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/heading.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/image.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/indentation.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/inline-card.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/inline-content.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/inline-extension.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/inline-nodes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/layout-column.d.ts +0 -3
- package/dist/types-ts4.5/entry-points/layout-section.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/lch-color-inversion.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/link.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/list-item.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/list.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/mark.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/media-group.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/media-inline.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/media-single.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/media.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/mention.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/multi-bodied-extension.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/nested-expand.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/non-nestable-block-content.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/ordered-list.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/panel.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/paragraph.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/placeholder.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/rich-media-common.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/rule.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/sanitizeNodes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-alignment.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-annotation.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-background-color.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-block-card.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-block-content.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-blockquote.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-bodied-extension.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-bodied-sync-block.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-border.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-breakout.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-bullet-list.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-caption.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-code-block.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-code.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-confluence-inline-comment.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-confluence-jira-issue.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-confluence-unsupported-block.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-confluence-unsupported-inline.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-create-schema.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-createPMSpecFactory.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-data-consumer.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-date.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-decision-item.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-decision-list.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-doc.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-em.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-embed-card.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-emoji.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-expand.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-extension.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-extensions.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-font-size.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-fragment.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-hard-break.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-heading.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-image.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-indentation.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-inline-card.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-inline-content.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-inline-extension.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-inline-nodes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-layout-section.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-link.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-list-item.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-list.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-mark.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-media-group.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-media-inline.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-media-single.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-media.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-mention.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-multi-bodied-extension.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-nested-expand.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-next-markTypes.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-next-nodeGroupTypes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-next-nodeTypes.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-non-nestable-block-content.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-ordered-list.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-panel.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-paragraph.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-placeholder.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-rich-media-common.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-rule.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-sanitizeNodes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-status.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-strike.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-strong.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-subsup.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-sync-block.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-tableNodes.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-task-item.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-task-list.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-text-color.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-type-ahead-query.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-underline.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/schema-unknown-block.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-unsupported-block.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-unsupported-inline.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-unsupported-mark.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-unsupported-node-attributes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/schema-unsupported.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/status.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/steps-analytics.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/steps-batch-attrs-step.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/steps-link-meta-step.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/steps-override-document-step.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/steps-set-attrs.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/steps-type-ahead.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/strike.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/strong.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/subsup.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/sync-block.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/tableNodes.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/task-item.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/task-list.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/text-color.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/text.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/type-ahead-query.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/underline.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/unknown-block.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/unsupported-block.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/unsupported-inline.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/unsupported-mark.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/unsupported-node-attributes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/unsupported.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/uuid.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -8
- package/dist/types-ts4.5/next-schema/full-schema.adf.d.ts +0 -5
- package/dist/types-ts4.5/next-schema/generated/markTypes.d.ts +0 -218
- package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +0 -10
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +0 -1056
- package/dist/types-ts4.5/next-schema/groups/blockContentGroup.d.ts +0 -14
- package/dist/types-ts4.5/next-schema/groups/blockGroup.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/groups/blockRootOnlyGroup.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/groups/fontStyleGroup.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/groups/inlineContentGroup.d.ts +0 -12
- package/dist/types-ts4.5/next-schema/groups/inlineGroup.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/groups/linkMarkGroup.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/groups/nonNestableBlockContentGroup.d.ts +0 -9
- package/dist/types-ts4.5/next-schema/groups/searchQueryMarkGroup.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/groups/tableCellContentPseudoGroup.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/index.d.ts +0 -3
- package/dist/types-ts4.5/next-schema/marks/alignmentAndIndentation.d.ts +0 -3
- package/dist/types-ts4.5/next-schema/marks/annotation.d.ts +0 -3
- package/dist/types-ts4.5/next-schema/marks/border.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/breakout.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/code.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/color.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/marks/confluenceInlineComment.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/dataConsumer.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/em.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/fontSize.d.ts +0 -17
- package/dist/types-ts4.5/next-schema/marks/fragment.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/link.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/strike.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/strong.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/subsup.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/typeAheadQuery.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/underline.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/unsupportedMark.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/marks/unsupportedNodeAttribute.d.ts +0 -2
- package/dist/types-ts4.5/next-schema/nodes/blockCard.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/blockquote.d.ts +0 -15
- package/dist/types-ts4.5/next-schema/nodes/bodiedExtension.d.ts +0 -9
- package/dist/types-ts4.5/next-schema/nodes/bodiedSyncBlock.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/caption.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/codeBlock.d.ts +0 -9
- package/dist/types-ts4.5/next-schema/nodes/confluenceJiraIssue.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/confluenceUnsupportedBlock.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/confluenceUnsupportedInline.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/date.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/decisionItem.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/decisionList.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/embedCard.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/emoji.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/expand.d.ts +0 -9
- package/dist/types-ts4.5/next-schema/nodes/extension.d.ts +0 -8
- package/dist/types-ts4.5/next-schema/nodes/extensionFrame.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/hardBreak.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/heading.d.ts +0 -39
- package/dist/types-ts4.5/next-schema/nodes/image.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/inlineCard.d.ts +0 -7
- package/dist/types-ts4.5/next-schema/nodes/inlineExtension.d.ts +0 -7
- package/dist/types-ts4.5/next-schema/nodes/layoutColumn.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/layoutSection.d.ts +0 -26
- package/dist/types-ts4.5/next-schema/nodes/list.d.ts +0 -7
- package/dist/types-ts4.5/next-schema/nodes/media.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/mediaGroup.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/mediaInline.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/mediaSingle.d.ts +0 -7
- package/dist/types-ts4.5/next-schema/nodes/mention.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/multiBodiedExtension.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/nestedExpand.d.ts +0 -12
- package/dist/types-ts4.5/next-schema/nodes/panel.d.ts +0 -5
- package/dist/types-ts4.5/next-schema/nodes/paragraph.d.ts +0 -30
- package/dist/types-ts4.5/next-schema/nodes/placeholder.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/rule.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/status.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/syncBlock.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/tableCellContent.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/tableNodes.d.ts +0 -5
- package/dist/types-ts4.5/next-schema/nodes/task.d.ts +0 -10
- package/dist/types-ts4.5/next-schema/nodes/text.d.ts +0 -26
- package/dist/types-ts4.5/next-schema/nodes/unsupportedBlock.d.ts +0 -4
- package/dist/types-ts4.5/next-schema/nodes/unsupportedInline.d.ts +0 -4
- package/dist/types-ts4.5/schema/bitbucket-schema.d.ts +0 -5
- package/dist/types-ts4.5/schema/confluence-schema.d.ts +0 -9
- package/dist/types-ts4.5/schema/create-schema.d.ts +0 -27
- package/dist/types-ts4.5/schema/createPMSpecFactory.d.ts +0 -37
- package/dist/types-ts4.5/schema/default-schema.d.ts +0 -9
- package/dist/types-ts4.5/schema/groups.d.ts +0 -6
- package/dist/types-ts4.5/schema/index.d.ts +0 -12
- package/dist/types-ts4.5/schema/inline-nodes.d.ts +0 -1
- package/dist/types-ts4.5/schema/jira-schema.d.ts +0 -65
- package/dist/types-ts4.5/schema/marks/alignment.d.ts +0 -16
- package/dist/types-ts4.5/schema/marks/annotation.d.ts +0 -32
- package/dist/types-ts4.5/schema/marks/background-color.d.ts +0 -15
- package/dist/types-ts4.5/schema/marks/border.d.ts +0 -26
- package/dist/types-ts4.5/schema/marks/breakout.d.ts +0 -12
- package/dist/types-ts4.5/schema/marks/code.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/confluence-inline-comment.d.ts +0 -12
- package/dist/types-ts4.5/schema/marks/data-consumer.d.ts +0 -48
- package/dist/types-ts4.5/schema/marks/em.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/font-size.d.ts +0 -12
- package/dist/types-ts4.5/schema/marks/fragment.d.ts +0 -30
- package/dist/types-ts4.5/schema/marks/indentation.d.ts +0 -16
- package/dist/types-ts4.5/schema/marks/index.d.ts +0 -38
- package/dist/types-ts4.5/schema/marks/link.d.ts +0 -40
- package/dist/types-ts4.5/schema/marks/strike.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/strong.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/subsup.d.ts +0 -15
- package/dist/types-ts4.5/schema/marks/text-color.d.ts +0 -27
- package/dist/types-ts4.5/schema/marks/type-ahead-query.d.ts +0 -2
- package/dist/types-ts4.5/schema/marks/underline.d.ts +0 -8
- package/dist/types-ts4.5/schema/marks/unsupported-mark.d.ts +0 -2
- package/dist/types-ts4.5/schema/marks/unsupported-node-attributes.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/block-card.d.ts +0 -49
- package/dist/types-ts4.5/schema/nodes/blockquote.d.ts +0 -30
- package/dist/types-ts4.5/schema/nodes/bodied-extension.d.ts +0 -26
- package/dist/types-ts4.5/schema/nodes/bodied-sync-block.d.ts +0 -46
- package/dist/types-ts4.5/schema/nodes/bullet-list.d.ts +0 -4
- package/dist/types-ts4.5/schema/nodes/caption.d.ts +0 -27
- package/dist/types-ts4.5/schema/nodes/code-block.d.ts +0 -34
- package/dist/types-ts4.5/schema/nodes/confluence-jira-issue.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/confluence-unsupported-block.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/confluence-unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/date.d.ts +0 -23
- package/dist/types-ts4.5/schema/nodes/decision-item.d.ts +0 -18
- package/dist/types-ts4.5/schema/nodes/decision-list.d.ts +0 -20
- package/dist/types-ts4.5/schema/nodes/doc.d.ts +0 -22
- package/dist/types-ts4.5/schema/nodes/embed-card.d.ts +0 -17
- package/dist/types-ts4.5/schema/nodes/emoji.d.ts +0 -22
- package/dist/types-ts4.5/schema/nodes/expand.d.ts +0 -36
- package/dist/types-ts4.5/schema/nodes/extension.d.ts +0 -18
- package/dist/types-ts4.5/schema/nodes/hard-break.d.ts +0 -11
- package/dist/types-ts4.5/schema/nodes/heading.d.ts +0 -43
- package/dist/types-ts4.5/schema/nodes/image.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/index.d.ts +0 -98
- package/dist/types-ts4.5/schema/nodes/inline-card.d.ts +0 -17
- package/dist/types-ts4.5/schema/nodes/inline-extension.d.ts +0 -18
- package/dist/types-ts4.5/schema/nodes/layout-column.d.ts +0 -30
- package/dist/types-ts4.5/schema/nodes/layout-section.d.ts +0 -57
- package/dist/types-ts4.5/schema/nodes/list-item.d.ts +0 -9
- package/dist/types-ts4.5/schema/nodes/media-group.d.ts +0 -16
- package/dist/types-ts4.5/schema/nodes/media-inline.d.ts +0 -20
- package/dist/types-ts4.5/schema/nodes/media-single.d.ts +0 -78
- package/dist/types-ts4.5/schema/nodes/media.d.ts +0 -71
- package/dist/types-ts4.5/schema/nodes/mention.d.ts +0 -31
- package/dist/types-ts4.5/schema/nodes/multi-bodied-extension.d.ts +0 -55
- package/dist/types-ts4.5/schema/nodes/nested-expand.d.ts +0 -43
- package/dist/types-ts4.5/schema/nodes/ordered-list.d.ts +0 -6
- package/dist/types-ts4.5/schema/nodes/panel.d.ts +0 -64
- package/dist/types-ts4.5/schema/nodes/paragraph.d.ts +0 -45
- package/dist/types-ts4.5/schema/nodes/placeholder.d.ts +0 -13
- package/dist/types-ts4.5/schema/nodes/rule.d.ts +0 -12
- package/dist/types-ts4.5/schema/nodes/status.d.ts +0 -27
- package/dist/types-ts4.5/schema/nodes/sync-block.d.ts +0 -23
- package/dist/types-ts4.5/schema/nodes/tableNodes.d.ts +0 -174
- package/dist/types-ts4.5/schema/nodes/task-item.d.ts +0 -36
- package/dist/types-ts4.5/schema/nodes/task-list.d.ts +0 -26
- package/dist/types-ts4.5/schema/nodes/text.d.ts +0 -14
- package/dist/types-ts4.5/schema/nodes/types/block-content.d.ts +0 -21
- package/dist/types-ts4.5/schema/nodes/types/extensions.d.ts +0 -34
- package/dist/types-ts4.5/schema/nodes/types/inline-content.d.ts +0 -28
- package/dist/types-ts4.5/schema/nodes/types/list.d.ts +0 -51
- package/dist/types-ts4.5/schema/nodes/types/mark.d.ts +0 -15
- package/dist/types-ts4.5/schema/nodes/types/non-nestable-block-content.d.ts +0 -19
- package/dist/types-ts4.5/schema/nodes/types/rich-media-common.d.ts +0 -37
- package/dist/types-ts4.5/schema/nodes/types/valign.d.ts +0 -6
- package/dist/types-ts4.5/schema/nodes/unknown-block.d.ts +0 -3
- package/dist/types-ts4.5/schema/nodes/unsupported-block.d.ts +0 -2
- package/dist/types-ts4.5/schema/nodes/unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.5/schema/sanitizeNodes.d.ts +0 -8
- package/dist/types-ts4.5/schema/unsupported.d.ts +0 -1
- package/dist/types-ts4.5/steps/analytics.d.ts +0 -60
- package/dist/types-ts4.5/steps/batch-attrs-step.d.ts +0 -74
- package/dist/types-ts4.5/steps/link-meta-step.d.ts +0 -52
- package/dist/types-ts4.5/steps/override-document-step.d.ts +0 -26
- package/dist/types-ts4.5/steps/set-attrs.d.ts +0 -24
- package/dist/types-ts4.5/steps/type-ahead.d.ts +0 -35
- package/dist/types-ts4.5/steps/types.d.ts +0 -96
- package/dist/types-ts4.5/steps.d.ts +0 -10
- package/dist/types-ts4.5/utils/colors.d.ts +0 -81
- package/dist/types-ts4.5/utils/confluence/emoji.d.ts +0 -50
- package/dist/types-ts4.5/utils/editor-palette.d.ts +0 -257
- package/dist/types-ts4.5/utils/extensions.d.ts +0 -3
- package/dist/types-ts4.5/utils/index.d.ts +0 -7
- package/dist/types-ts4.5/utils/lch-color-inversion.d.ts +0 -2
- package/dist/types-ts4.5/utils/parseDOM.d.ts +0 -1
- package/dist/types-ts4.5/utils/url.d.ts +0 -40
- package/dist/types-ts4.5/utils/uuid.d.ts +0 -5
- package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +0 -2016
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import type { NodeSpec, Node as PmNode, Attrs } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { PanelDefinition as Panel } from './panel';
|
|
3
|
-
import type { ParagraphDefinition as Paragraph, ParagraphWithAlignmentDefinition as ParagraphWithMarks } from './paragraph';
|
|
4
|
-
import type { BlockQuoteDefinition as Blockquote } from './blockquote';
|
|
5
|
-
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
6
|
-
import type { RuleDefinition as Rule } from './rule';
|
|
7
|
-
import type { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from './heading';
|
|
8
|
-
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
9
|
-
import type { MediaGroupDefinition as MediaGroup } from './media-group';
|
|
10
|
-
import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
11
|
-
import type { DecisionListDefinition as DecisionList } from './decision-list';
|
|
12
|
-
import type { TaskListDefinition as TaskList } from './task-list';
|
|
13
|
-
import type { ExtensionDefinition as Extension } from './extension';
|
|
14
|
-
import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
15
|
-
import type { EmbedCardDefinition as EmbedCard } from './embed-card';
|
|
16
|
-
import type { NestedExpandDefinition as NestedExpand } from './nested-expand';
|
|
17
|
-
import type { FragmentDefinition } from '../marks/fragment';
|
|
18
|
-
import type { Valign } from './types/valign';
|
|
19
|
-
export interface CellAttributes {
|
|
20
|
-
background?: string;
|
|
21
|
-
colspan?: number;
|
|
22
|
-
colwidth?: number[];
|
|
23
|
-
localId?: string;
|
|
24
|
-
rowspan?: number;
|
|
25
|
-
/**
|
|
26
|
-
* @stage 0
|
|
27
|
-
*/
|
|
28
|
-
valign?: Valign;
|
|
29
|
-
}
|
|
30
|
-
export declare const tablePrefixSelector = "pm-table";
|
|
31
|
-
export declare const tableCellSelector: 'pm-table-cell-content-wrap';
|
|
32
|
-
export declare const tableHeaderSelector: 'pm-table-header-content-wrap';
|
|
33
|
-
export declare const tableCellContentWrapperSelector: 'pm-table-cell-nodeview-wrapper';
|
|
34
|
-
export declare const tableCellContentDomSelector: 'pm-table-cell-nodeview-content-dom';
|
|
35
|
-
export declare const getCellAttrs: (dom: HTMLElement, defaultValues?: CellAttributes) => {
|
|
36
|
-
background: string | null;
|
|
37
|
-
colspan: number;
|
|
38
|
-
colwidth: number[] | null;
|
|
39
|
-
localId?: string;
|
|
40
|
-
rowspan: number;
|
|
41
|
-
};
|
|
42
|
-
export type CellDomAttrs = {
|
|
43
|
-
class?: string;
|
|
44
|
-
colorname?: string;
|
|
45
|
-
colspan?: string;
|
|
46
|
-
'data-cell-background'?: string;
|
|
47
|
-
'data-colwidth'?: string;
|
|
48
|
-
'data-local-id'?: string;
|
|
49
|
-
'data-valign'?: Valign;
|
|
50
|
-
rowspan?: string;
|
|
51
|
-
style?: string;
|
|
52
|
-
};
|
|
53
|
-
export declare const setGlobalTheme: (theme: string) => void;
|
|
54
|
-
/**
|
|
55
|
-
* gets cell dom attributes based on node attributes
|
|
56
|
-
* @returns CellDomAttrs
|
|
57
|
-
*/
|
|
58
|
-
export declare const getCellDomAttrs: (node: PmNode) => CellDomAttrs;
|
|
59
|
-
export declare const tableBackgroundColorPalette: Map<string, string>;
|
|
60
|
-
export declare const tableBackgroundBorderColor: string;
|
|
61
|
-
export declare const tableBackgroundColorNames: Map<string, string>;
|
|
62
|
-
export type DisplayMode = 'default' | 'fixed';
|
|
63
|
-
export type Layout = 'default' | 'full-width' | 'wide' | 'center' | 'align-start' | 'align-end';
|
|
64
|
-
export interface TableAttributes {
|
|
65
|
-
__autoSize?: boolean;
|
|
66
|
-
displayMode?: DisplayMode;
|
|
67
|
-
isNumberColumnEnabled?: boolean;
|
|
68
|
-
layout?: Layout;
|
|
69
|
-
/**
|
|
70
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
71
|
-
* @minLength 1
|
|
72
|
-
*/
|
|
73
|
-
localId?: string;
|
|
74
|
-
width?: number;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* @name table_node
|
|
78
|
-
*/
|
|
79
|
-
export interface TableDefinition {
|
|
80
|
-
attrs?: TableAttributes;
|
|
81
|
-
/**
|
|
82
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
83
|
-
* @minItems 1
|
|
84
|
-
*/
|
|
85
|
-
content: Array<TableRow>;
|
|
86
|
-
marks?: Array<FragmentDefinition>;
|
|
87
|
-
type: 'table';
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* @name table_row_node
|
|
91
|
-
*/
|
|
92
|
-
export interface TableRow {
|
|
93
|
-
content: Array<TableHeader | TableCell>;
|
|
94
|
-
type: 'tableRow';
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* @name table_cell_content
|
|
98
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
99
|
-
* @minItems 1
|
|
100
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
101
|
-
* @allowUnsupportedBlock true
|
|
102
|
-
*/
|
|
103
|
-
export type TableCellContent = Array<Panel | Paragraph | ParagraphWithMarks | Blockquote | OrderedList | BulletList | Rule | Heading | HeadingWithMarks | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Extension | BlockCard | NestedExpand | EmbedCard>;
|
|
104
|
-
/**
|
|
105
|
-
* @name table_cell_node
|
|
106
|
-
*/
|
|
107
|
-
export interface TableCell {
|
|
108
|
-
attrs?: CellAttributes;
|
|
109
|
-
content: TableCellContent;
|
|
110
|
-
type: 'tableCell';
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* @name table_header_node
|
|
114
|
-
*/
|
|
115
|
-
export interface TableHeader {
|
|
116
|
-
attrs?: CellAttributes;
|
|
117
|
-
content: TableCellContent;
|
|
118
|
-
type: 'tableHeader';
|
|
119
|
-
}
|
|
120
|
-
export interface TableWithNestedTableDefinition {
|
|
121
|
-
attrs?: TableAttributes;
|
|
122
|
-
/**
|
|
123
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
124
|
-
* @minItems 1
|
|
125
|
-
*/
|
|
126
|
-
content: Array<TableRow>;
|
|
127
|
-
marks?: Array<FragmentDefinition>;
|
|
128
|
-
type: 'table';
|
|
129
|
-
}
|
|
130
|
-
export interface TableRowWithNestedTableDefinition {
|
|
131
|
-
content: Array<TableHeader | TableCell>;
|
|
132
|
-
type: 'tableRow';
|
|
133
|
-
}
|
|
134
|
-
export interface TableCellWithNestedTableDefinition {
|
|
135
|
-
attrs?: CellAttributes;
|
|
136
|
-
content: TableCellContent | TableDefinition;
|
|
137
|
-
type: 'tableCell';
|
|
138
|
-
}
|
|
139
|
-
export interface TableHeaderWithNestedTableDefinition {
|
|
140
|
-
attrs?: CellAttributes;
|
|
141
|
-
content: TableCellContent | TableDefinition;
|
|
142
|
-
type: 'tableHeader';
|
|
143
|
-
}
|
|
144
|
-
/** Includes table width attribute */
|
|
145
|
-
export declare const table: NodeSpec;
|
|
146
|
-
/** @deprecated Do not use, instead use the regular `table` export */
|
|
147
|
-
export declare const tableWithCustomWidth: NodeSpec;
|
|
148
|
-
export declare const tableStage0: NodeSpec;
|
|
149
|
-
export declare const tableToJSON: (node: PmNode) => {
|
|
150
|
-
attrs: Attrs;
|
|
151
|
-
};
|
|
152
|
-
export declare const tableRow: NodeSpec;
|
|
153
|
-
export declare const tableCell: NodeSpec;
|
|
154
|
-
export declare const toJSONTableCell: (node: PmNode) => {
|
|
155
|
-
attrs: Record<string, any>;
|
|
156
|
-
};
|
|
157
|
-
export declare const tableHeader: NodeSpec;
|
|
158
|
-
export declare const toJSONTableHeader: (node: PmNode) => {
|
|
159
|
-
attrs: Record<string, any>;
|
|
160
|
-
};
|
|
161
|
-
export declare const tableWithNestedTable: NodeSpec;
|
|
162
|
-
export declare const tableRowWithNestedTable: NodeSpec;
|
|
163
|
-
export declare const tableCellWithNestedTable: NodeSpec;
|
|
164
|
-
export declare const tableHeaderWithNestedTable: NodeSpec;
|
|
165
|
-
export declare const tableCellStage0: NodeSpec;
|
|
166
|
-
export declare const tableHeaderStage0: NodeSpec;
|
|
167
|
-
export declare const tableCellWithNestedTableStage0: NodeSpec;
|
|
168
|
-
export declare const tableHeaderWithNestedTableStage0: NodeSpec;
|
|
169
|
-
export declare const tableRowWithLocalId: NodeSpec;
|
|
170
|
-
export declare const tableCellWithLocalId: NodeSpec;
|
|
171
|
-
export declare const tableHeaderWithLocalId: NodeSpec;
|
|
172
|
-
export declare const tableRowWithNestedTableWithLocalId: NodeSpec;
|
|
173
|
-
export declare const tableCellWithNestedTableWithLocalId: NodeSpec;
|
|
174
|
-
export declare const tableHeaderWithNestedTableWithLocalId: NodeSpec;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Inline } from './types/inline-content';
|
|
2
|
-
import type { ParagraphDefinition as Paragraph } from './paragraph';
|
|
3
|
-
import type { ExtensionDefinition as Extension } from './extension';
|
|
4
|
-
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
/**
|
|
6
|
-
* @name taskItem_node
|
|
7
|
-
*/
|
|
8
|
-
export interface TaskItemDefinition {
|
|
9
|
-
attrs: {
|
|
10
|
-
localId: string;
|
|
11
|
-
state: 'TODO' | 'DONE';
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
15
|
-
* @allowUnsupportedInline true
|
|
16
|
-
*/
|
|
17
|
-
content?: Array<Inline>;
|
|
18
|
-
type: 'taskItem';
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @name blockTaskItem_node
|
|
22
|
-
*/
|
|
23
|
-
export interface BlockTaskItemDefinition {
|
|
24
|
-
attrs: {
|
|
25
|
-
localId: string;
|
|
26
|
-
state: 'TODO' | 'DONE';
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
30
|
-
* @allowUnsupportedInline true
|
|
31
|
-
*/
|
|
32
|
-
content?: Array<Paragraph | Extension>;
|
|
33
|
-
type: 'blockTaskItem';
|
|
34
|
-
}
|
|
35
|
-
export declare const taskItem: NodeSpec;
|
|
36
|
-
export declare const blockTaskItem: NodeSpec;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { BlockTaskItemDefinition as BlockTaskItem, TaskItemDefinition as TaskItemNode } from './task-item';
|
|
3
|
-
export interface TaskListContent extends Array<TaskItemNode | TaskListDefinition | BlockTaskItem> {
|
|
4
|
-
0: TaskItemNode | BlockTaskItem;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @name taskList_node
|
|
8
|
-
*/
|
|
9
|
-
export interface TaskListDefinition {
|
|
10
|
-
attrs: {
|
|
11
|
-
localId: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
15
|
-
* @minItems 1
|
|
16
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
17
|
-
* @allowUnsupportedBlock true
|
|
18
|
-
*/
|
|
19
|
-
content: TaskListContent;
|
|
20
|
-
type: 'taskList';
|
|
21
|
-
}
|
|
22
|
-
export declare const taskListSelector: '[data-node-type="actionList"]';
|
|
23
|
-
/**
|
|
24
|
-
* @name taskList
|
|
25
|
-
*/
|
|
26
|
-
export declare const taskList: NodeSpec;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
/**
|
|
3
|
-
* @name text_node
|
|
4
|
-
*/
|
|
5
|
-
export interface TextDefinition {
|
|
6
|
-
marks?: Array<any>;
|
|
7
|
-
/**
|
|
8
|
-
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
9
|
-
* @minLength 1
|
|
10
|
-
*/
|
|
11
|
-
text: string;
|
|
12
|
-
type: 'text';
|
|
13
|
-
}
|
|
14
|
-
export declare const text: NodeSpec;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ExpandDefinition as Expand } from '../expand';
|
|
2
|
-
import type { BodiedExtensionDefinition as BodiedExtension } from '../bodied-extension';
|
|
3
|
-
import type { PanelDefinition as Panel } from '../panel';
|
|
4
|
-
import type { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from '../paragraph';
|
|
5
|
-
import type { BlockQuoteDefinition as Blockquote } from '../blockquote';
|
|
6
|
-
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from '../types/list';
|
|
7
|
-
import type { RuleDefinition as Rule } from '../rule';
|
|
8
|
-
import type { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from '../heading';
|
|
9
|
-
import type { CodeBlockDefinition as CodeBlock } from '../code-block';
|
|
10
|
-
import type { MediaGroupDefinition as MediaGroup } from '../media-group';
|
|
11
|
-
import type { MediaSingleDefinition as MediaSingle } from '../media-single';
|
|
12
|
-
import type { DecisionListDefinition as DecisionList } from '../decision-list';
|
|
13
|
-
import type { TaskListDefinition as TaskList } from '../task-list';
|
|
14
|
-
import type { TableDefinition as Table } from '../tableNodes';
|
|
15
|
-
import type { ExtensionDefinition as Extension } from '../extension';
|
|
16
|
-
import type { BlockCardDefinition as BlockCard } from '../block-card';
|
|
17
|
-
import type { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
|
18
|
-
/**
|
|
19
|
-
* @name block_content
|
|
20
|
-
*/
|
|
21
|
-
export type BlockContent = Panel | Paragraph | ParagraphWithMarks | Blockquote | OrderedList | BulletList | Rule | Heading | HeadingWithMarks | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Expand | Extension | BodiedExtension | BlockCard | EmbedCard;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export type Layout = 'default' | 'wide' | 'full-width';
|
|
2
|
-
export interface ExtensionAttributes {
|
|
3
|
-
/**
|
|
4
|
-
* @minLength 1
|
|
5
|
-
*/
|
|
6
|
-
extensionKey: string;
|
|
7
|
-
/**
|
|
8
|
-
* @minLength 1
|
|
9
|
-
*/
|
|
10
|
-
extensionType: string;
|
|
11
|
-
parameters?: object;
|
|
12
|
-
text?: string;
|
|
13
|
-
layout?: Layout;
|
|
14
|
-
/**
|
|
15
|
-
* @minLength 1
|
|
16
|
-
*/
|
|
17
|
-
localId?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface InlineExtensionAttributes {
|
|
20
|
-
/**
|
|
21
|
-
* @minLength 1
|
|
22
|
-
*/
|
|
23
|
-
extensionKey: string;
|
|
24
|
-
/**
|
|
25
|
-
* @minLength 1
|
|
26
|
-
*/
|
|
27
|
-
extensionType: string;
|
|
28
|
-
parameters?: object;
|
|
29
|
-
text?: string;
|
|
30
|
-
/**
|
|
31
|
-
* @minLength 1
|
|
32
|
-
*/
|
|
33
|
-
localId?: string;
|
|
34
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { DateDefinition as Date } from '../date';
|
|
2
|
-
import type { EmojiDefinition as Emoji } from '../emoji';
|
|
3
|
-
import type { HardBreakDefinition as HardBreak } from '../hard-break';
|
|
4
|
-
import type { InlineCardDefinition as InlineCard } from '../inline-card';
|
|
5
|
-
import type { InlineExtensionDefinition } from '../inline-extension';
|
|
6
|
-
import type { MediaInlineDefinition } from '../media-inline';
|
|
7
|
-
import type { MentionDefinition as Mention } from '../mention';
|
|
8
|
-
import type { PlaceholderDefinition as Placeholder } from '../placeholder';
|
|
9
|
-
import type { StatusDefinition as Status } from '../status';
|
|
10
|
-
import type { TextDefinition as Text } from '../text';
|
|
11
|
-
import type { MarksObject } from './mark';
|
|
12
|
-
import type { AnnotationMarkDefinition as Annotation, CodeDefinition as Code, EmDefinition as Em, LinkDefinition as Link, StrikeDefinition as Strike, StrongDefinition as Strong, SubSupDefinition as SubSup, TextColorDefinition as TextColor, UnderlineDefinition as Underline, BackgroundColorDefinition as BackgroundColor } from '../../marks';
|
|
13
|
-
/**
|
|
14
|
-
* @name formatted_text_inline_node
|
|
15
|
-
*/
|
|
16
|
-
export type InlineFormattedText = Text & MarksObject<Link | Em | Strong | Strike | SubSup | Underline | TextColor | Annotation | BackgroundColor>;
|
|
17
|
-
/**
|
|
18
|
-
* @name link_text_inline_node
|
|
19
|
-
*/
|
|
20
|
-
export type InlineLinkText = Text & MarksObject<Link>;
|
|
21
|
-
/**
|
|
22
|
-
* @name code_inline_node
|
|
23
|
-
*/
|
|
24
|
-
export type InlineCode = Text & MarksObject<Code | Link | Annotation>;
|
|
25
|
-
/**
|
|
26
|
-
* @name inline_node
|
|
27
|
-
*/
|
|
28
|
-
export type Inline = InlineFormattedText | InlineCode | HardBreak | Mention | Emoji | InlineExtensionDefinition | Date | Placeholder | InlineCard | Status | MediaInlineDefinition;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ParagraphDefinition as Paragraph } from '../paragraph';
|
|
2
|
-
import type { MediaSingleDefinition as MediaSingle } from '../media-single';
|
|
3
|
-
import type { CodeBlockDefinition as CodeBlock } from '../code-block';
|
|
4
|
-
import type { TaskListDefinition as TaskList } from '../task-list';
|
|
5
|
-
export interface ListItemArray extends Array<Paragraph | OrderedListDefinition | BulletListDefinition | TaskList | MediaSingle | CodeBlock> {
|
|
6
|
-
0: Paragraph | MediaSingle | CodeBlock;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @name listItem_node
|
|
10
|
-
*/
|
|
11
|
-
export interface ListItemDefinition {
|
|
12
|
-
attrs?: {
|
|
13
|
-
localId?: string;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @minItems 1
|
|
17
|
-
* @allowUnsupportedBlock true
|
|
18
|
-
*/
|
|
19
|
-
content: ListItemArray;
|
|
20
|
-
type: 'listItem';
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @name bulletList_node
|
|
24
|
-
*/
|
|
25
|
-
export interface BulletListDefinition {
|
|
26
|
-
attrs?: {
|
|
27
|
-
localId?: string;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* @minItems 1
|
|
31
|
-
*/
|
|
32
|
-
content: Array<ListItemDefinition>;
|
|
33
|
-
type: 'bulletList';
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @name orderedList_node
|
|
37
|
-
*/
|
|
38
|
-
export interface OrderedListDefinition {
|
|
39
|
-
attrs?: {
|
|
40
|
-
localId?: string;
|
|
41
|
-
/**
|
|
42
|
-
* @minimum 0
|
|
43
|
-
*/
|
|
44
|
-
order?: number;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* @minItems 1
|
|
48
|
-
*/
|
|
49
|
-
content: Array<ListItemDefinition>;
|
|
50
|
-
type: 'orderedList';
|
|
51
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { PanelDefinition as Panel } from '../panel';
|
|
2
|
-
import type { ParagraphDefinition as Paragraph } from '../paragraph';
|
|
3
|
-
import type { BlockQuoteDefinition as Blockquote } from '../blockquote';
|
|
4
|
-
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from '../types/list';
|
|
5
|
-
import type { RuleDefinition as Rule } from '../rule';
|
|
6
|
-
import type { HeadingDefinition as Heading } from '../heading';
|
|
7
|
-
import type { CodeBlockDefinition as CodeBlock } from '../code-block';
|
|
8
|
-
import type { MediaGroupDefinition as MediaGroup } from '../media-group';
|
|
9
|
-
import type { MediaSingleDefinition as MediaSingle } from '../media-single';
|
|
10
|
-
import type { DecisionListDefinition as DecisionList } from '../decision-list';
|
|
11
|
-
import type { TaskListDefinition as TaskList } from '../task-list';
|
|
12
|
-
import type { TableDefinition as Table } from '../tableNodes';
|
|
13
|
-
import type { ExtensionDefinition as Extension } from '../extension';
|
|
14
|
-
import type { BlockCardDefinition as BlockCard } from '../block-card';
|
|
15
|
-
import type { EmbedCardDefinition as EmbedCard } from '../embed-card';
|
|
16
|
-
/**
|
|
17
|
-
* @name non_nestable_block_content
|
|
18
|
-
*/
|
|
19
|
-
export type NonNestableBlockContent = Panel | Paragraph | Blockquote | OrderedList | BulletList | Rule | Heading | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Table | Extension | BlockCard | EmbedCard;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export type Layout = 'wrap-right' | 'center' | 'wrap-left' | 'wide' | 'full-width' | 'align-end' | 'align-start';
|
|
2
|
-
export interface RichMediaAttributes {
|
|
3
|
-
/**
|
|
4
|
-
* @minimum 0
|
|
5
|
-
* @maximum 100
|
|
6
|
-
*/
|
|
7
|
-
width?: number;
|
|
8
|
-
layout: Layout;
|
|
9
|
-
localId?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface OptionalRichMediaAttributes {
|
|
12
|
-
width?: number;
|
|
13
|
-
layout?: Layout;
|
|
14
|
-
}
|
|
15
|
-
interface DefaultMediaAttributes extends RichMediaAttributes {
|
|
16
|
-
/**
|
|
17
|
-
* @description optional widthType attribute for media with percentage layout
|
|
18
|
-
*/
|
|
19
|
-
widthType?: 'percentage';
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @description The widthType attribute is used to support fixed with media single
|
|
23
|
-
*/
|
|
24
|
-
interface FixedLayoutMediaAttributes {
|
|
25
|
-
/**
|
|
26
|
-
* @minimum 0
|
|
27
|
-
*/
|
|
28
|
-
width: number;
|
|
29
|
-
widthType: 'pixel';
|
|
30
|
-
layout: Layout;
|
|
31
|
-
}
|
|
32
|
-
export declare enum WidthType {
|
|
33
|
-
PIXEL = "pixel",
|
|
34
|
-
PERCENTAGE = "percentage"
|
|
35
|
-
}
|
|
36
|
-
export type ExtendedMediaAttributes = DefaultMediaAttributes | FixedLayoutMediaAttributes;
|
|
37
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type Valign = 'top' | 'middle' | 'bottom';
|
|
2
|
-
/**
|
|
3
|
-
* Parses a raw DOM attribute string into a valid {@link Valign}, or `undefined` if
|
|
4
|
-
* the value is absent or not one of the allowed values.
|
|
5
|
-
*/
|
|
6
|
-
export declare const parseValign: (raw: string | null) => Valign | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const unsupportedNodeTypesForMediaCards: Set<string>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
-
import { Step, StepResult, StepMap, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
-
export declare const analyticsStepType = "atlaskit-analytics";
|
|
5
|
-
export declare const analyticsInvertStepType = "atlaskit-analytics-invert";
|
|
6
|
-
export interface AnalyticsPayload {
|
|
7
|
-
action: string;
|
|
8
|
-
actionSubject: string;
|
|
9
|
-
actionSubjectId?: string | null;
|
|
10
|
-
attributes?: Record<string, any>;
|
|
11
|
-
eventType: string;
|
|
12
|
-
}
|
|
13
|
-
export interface AnalyticsWithChannel<P extends AnalyticsPayload> {
|
|
14
|
-
channel: string;
|
|
15
|
-
payload: P;
|
|
16
|
-
}
|
|
17
|
-
declare enum HISTORY_ACTIONS {
|
|
18
|
-
UNDID = "undid",
|
|
19
|
-
REDID = "redid"
|
|
20
|
-
}
|
|
21
|
-
interface UndoAnalyticsEventPayload {
|
|
22
|
-
action: HISTORY_ACTIONS.UNDID;
|
|
23
|
-
actionSubject: string;
|
|
24
|
-
actionSubjectId?: string;
|
|
25
|
-
attributes?: Record<string, any>;
|
|
26
|
-
eventType: string;
|
|
27
|
-
}
|
|
28
|
-
interface RedoAnalyticsEventPayload {
|
|
29
|
-
action: HISTORY_ACTIONS.REDID;
|
|
30
|
-
actionSubject: string;
|
|
31
|
-
actionSubjectId?: string;
|
|
32
|
-
attributes?: Record<string, any>;
|
|
33
|
-
eventType: string;
|
|
34
|
-
}
|
|
35
|
-
type AnalyticsInvertPayload = UndoAnalyticsEventPayload | RedoAnalyticsEventPayload;
|
|
36
|
-
export type AnalyticsInvertStep = AnalyticsStep<AnalyticsInvertPayload>;
|
|
37
|
-
/**
|
|
38
|
-
* Custom Prosemirror Step to fire our GAS V3 analytics events
|
|
39
|
-
* Using a Step means that it will work with prosemirror-history and we get
|
|
40
|
-
* undo/redo events for free
|
|
41
|
-
*/
|
|
42
|
-
export declare class AnalyticsStep<P extends AnalyticsPayload> extends Step {
|
|
43
|
-
analyticsEvents: AnalyticsWithChannel<P>[];
|
|
44
|
-
pos?: number;
|
|
45
|
-
private actionsToIgnore;
|
|
46
|
-
constructor(analyticsEvents: AnalyticsWithChannel<P>[], actionsToIgnore?: string[], pos?: number);
|
|
47
|
-
/**
|
|
48
|
-
* Generate new undo/redo analytics event when step is inverted
|
|
49
|
-
*/
|
|
50
|
-
invert(): AnalyticsStep<AnalyticsInvertPayload>;
|
|
51
|
-
apply(doc: PMNode): StepResult;
|
|
52
|
-
map(mapping: Mappable): AnalyticsStep<P>;
|
|
53
|
-
getMap(): StepMap;
|
|
54
|
-
merge(other: Step): AnalyticsStep<P> | null;
|
|
55
|
-
toJSON(): {
|
|
56
|
-
stepType: string;
|
|
57
|
-
};
|
|
58
|
-
static fromJSON(): ReplaceStep;
|
|
59
|
-
}
|
|
60
|
-
export {};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { type Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { Step, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
-
import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
5
|
-
export type BatchAttrsStepData = {
|
|
6
|
-
attrs: Record<string, unknown>;
|
|
7
|
-
nodeType: string;
|
|
8
|
-
position: number;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* 📢 Public API: Editor FE Platform
|
|
12
|
-
*
|
|
13
|
-
* Represents a step that applies a batch of attribute changes to nodes in a ProseMirror document.
|
|
14
|
-
*
|
|
15
|
-
* This step is particularly useful when you need to update the attributes of multiple nodes in a document
|
|
16
|
-
* in a single operation. For example, you might want to change the color of several panels or update metadata
|
|
17
|
-
* for various sections without needing to perform multiple separate operations.
|
|
18
|
-
*
|
|
19
|
-
* **Use Cases:**
|
|
20
|
-
* - **Efficiency**: Apply multiple attribute changes in a single step to reduce the number of operations.
|
|
21
|
-
* - **Atomicity**: Ensure that a group of attribute changes are applied together, maintaining document consistency.
|
|
22
|
-
* - **Consistency**: Use when changes are logically related, such as updating theme attributes for a document section.
|
|
23
|
-
*
|
|
24
|
-
* **When Not to Use:**
|
|
25
|
-
* - **Single Changes**: If you only need to change attributes on a single node, a more straightforward step might be suitable like `AttrsStep` from prosemirror.
|
|
26
|
-
* - **Complex Node Transformations**: This step is designed for attribute changes rather than structural changes.
|
|
27
|
-
* - **Performance Concerns**: While efficient for batch updates, unnecessary use for single updates may add overhead.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```typescript
|
|
31
|
-
* import { BatchAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
32
|
-
*
|
|
33
|
-
* // Define the attribute changes
|
|
34
|
-
* const changes = [
|
|
35
|
-
* {
|
|
36
|
-
* position: 0, // Position of the first panel
|
|
37
|
-
* nodeType: 'panel',
|
|
38
|
-
* attrs: { panelType: 'error' }
|
|
39
|
-
* },
|
|
40
|
-
* {
|
|
41
|
-
* position: 7, // Position of the second panel
|
|
42
|
-
* nodeType: 'panel',
|
|
43
|
-
* attrs: { panelType: 'success' }
|
|
44
|
-
* }
|
|
45
|
-
* ];
|
|
46
|
-
*
|
|
47
|
-
* // Create the step and apply it to the document
|
|
48
|
-
* const step = new BatchAttrsStep(changes);
|
|
49
|
-
*
|
|
50
|
-
* const tr = editorState.tr;
|
|
51
|
-
*
|
|
52
|
-
* tr.step(step);
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @class
|
|
56
|
-
* @augments {Step}
|
|
57
|
-
*/
|
|
58
|
-
export declare class BatchAttrsStep extends Step {
|
|
59
|
-
data: Array<BatchAttrsStepData>;
|
|
60
|
-
private inverted;
|
|
61
|
-
constructor(data: Array<BatchAttrsStepData>, inverted?: boolean);
|
|
62
|
-
apply(doc: PMNode): StepResult;
|
|
63
|
-
invert(doc: PMNode): BatchAttrsStep;
|
|
64
|
-
map(mapping: Mappable): BatchAttrsStep | null;
|
|
65
|
-
toJSON(): {
|
|
66
|
-
data: BatchAttrsStepData[];
|
|
67
|
-
inverted: boolean;
|
|
68
|
-
stepType: string;
|
|
69
|
-
};
|
|
70
|
-
static fromJSON(_schema: Schema, json: {
|
|
71
|
-
data: Array<Record<string, unknown>>;
|
|
72
|
-
inverted?: boolean;
|
|
73
|
-
}): BatchAttrsStep;
|
|
74
|
-
}
|