@atlaskit/renderer 132.5.3 → 132.6.1
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 +27 -0
- package/actions/main/package.json +1 -8
- package/actions/package.json +1 -8
- package/actions/renderer-actions-context/package.json +1 -8
- package/actions/with-renderer-actions/package.json +1 -8
- package/annotations/package.json +1 -8
- package/consts/package.json +1 -8
- package/custom-nodes/loosely-lazy/package.json +1 -8
- package/custom-nodes/package.json +1 -8
- package/dist/cjs/react/nodes/emoji.js +28 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/emoji.js +28 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/emoji.js +28 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/events/package.json +1 -8
- package/experimental-sync-custom-nodes/cards/package.json +1 -8
- package/experimental-sync-custom-nodes/media/package.json +1 -8
- package/experimental-sync-custom-nodes/small-nodes/package.json +1 -8
- package/extension-renderer/package.json +1 -8
- package/loosely-lazy/package.json +1 -8
- package/media-options/package.json +1 -8
- package/messages/package.json +1 -8
- package/nodes/package.json +1 -8
- package/package.json +7 -3
- package/react/package.json +1 -8
- package/react/types/package.json +1 -8
- package/render-document/package.json +1 -8
- package/renderer/package.json +1 -8
- package/renderer-actions-context/package.json +1 -8
- package/renderer-context/package.json +1 -8
- package/renderer-props/package.json +1 -8
- package/serializer/package.json +1 -8
- package/text/package.json +1 -8
- package/text-serializer/package.json +1 -8
- package/text-serializer/text/package.json +1 -8
- package/types/package.json +1 -8
- package/use-feature-flags/package.json +1 -8
- package/utils/package.json +1 -8
- package/validation-context/package.json +1 -8
- package/dist/types-ts4.5/actions/get-renderer-range-inline-node-names.d.ts +0 -23
- package/dist/types-ts4.5/actions/index.d.ts +0 -76
- package/dist/types-ts4.5/actions/matches-utils.d.ts +0 -8
- package/dist/types-ts4.5/actions/selection.d.ts +0 -8
- package/dist/types-ts4.5/analytics/analyticsContext.d.ts +0 -6
- package/dist/types-ts4.5/analytics/enums.d.ts +0 -59
- package/dist/types-ts4.5/analytics/events.d.ts +0 -184
- package/dist/types-ts4.5/analytics/unsupported-content.d.ts +0 -10
- package/dist/types-ts4.5/consts.d.ts +0 -24
- package/dist/types-ts4.5/custom-nodes.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/actions-main.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/actions-renderer-actions-context.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/actions-with-renderer-actions.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/annotations.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/consts.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/custom-nodes-loosely-lazy.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/events.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/cards.d.ts +0 -9
- package/dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/media.d.ts +0 -9
- package/dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/small-nodes.d.ts +0 -9
- package/dist/types-ts4.5/entry-points/extension-renderer.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/loosely-lazy.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/media-options.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/messages.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/nodes.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/react-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/react.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/render-document.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/renderer-actions-context.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/renderer-context.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/renderer-props.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/renderer.d.ts +0 -3
- package/dist/types-ts4.5/entry-points/serializer.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text-serializer-text.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/text.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/use-feature-flags.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/utils.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/validation-context.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -18
- package/dist/types-ts4.5/i18n/da.d.ts +0 -18
- package/dist/types-ts4.5/i18n/de.d.ts +0 -18
- package/dist/types-ts4.5/i18n/en.d.ts +0 -18
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -18
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -18
- package/dist/types-ts4.5/i18n/es.d.ts +0 -18
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -18
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -18
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -18
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -18
- package/dist/types-ts4.5/i18n/index.d.ts +0 -33
- package/dist/types-ts4.5/i18n/it.d.ts +0 -18
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -18
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -18
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -18
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -18
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -18
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -18
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -18
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -18
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -18
- package/dist/types-ts4.5/i18n/sr.d.ts +0 -18
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -18
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -18
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -18
- package/dist/types-ts4.5/i18n/th.d.ts +0 -18
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -18
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -18
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -18
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -18
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -18
- package/dist/types-ts4.5/index.d.ts +0 -16
- package/dist/types-ts4.5/messages.d.ts +0 -61
- package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +0 -10
- package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +0 -5
- package/dist/types-ts4.5/react/index.d.ts +0 -158
- package/dist/types-ts4.5/react/marks/alignment.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/annotation.d.ts +0 -6
- package/dist/types-ts4.5/react/marks/backgroundColor.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/border.d.ts +0 -8
- package/dist/types-ts4.5/react/marks/breakout.d.ts +0 -14
- package/dist/types-ts4.5/react/marks/code.d.ts +0 -20
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +0 -9
- package/dist/types-ts4.5/react/marks/data-consumer.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/em.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/fontSize.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/fragment.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/indentation.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/index.d.ts +0 -24
- package/dist/types-ts4.5/react/marks/link-compiled.d.ts +0 -13
- package/dist/types-ts4.5/react/marks/link-emotion.d.ts +0 -14
- package/dist/types-ts4.5/react/marks/link.d.ts +0 -13
- package/dist/types-ts4.5/react/marks/strike.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/strong.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/subsup.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/textColor.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/underline.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/TableStickyScrollbar.d.ts +0 -21
- package/dist/types-ts4.5/react/nodes/blockCard.d.ts +0 -22
- package/dist/types-ts4.5/react/nodes/blockquote.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +0 -31
- package/dist/types-ts4.5/react/nodes/bodiedSyncBlock.d.ts +0 -8
- package/dist/types-ts4.5/react/nodes/bulletList.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/caption.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +0 -22
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +0 -15
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -14
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +0 -10
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -17
- package/dist/types-ts4.5/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/date.d.ts +0 -12
- package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/decisionList.d.ts +0 -7
- package/dist/types-ts4.5/react/nodes/doc.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +0 -28
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +0 -16
- package/dist/types-ts4.5/react/nodes/extension.d.ts +0 -42
- package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +0 -27
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +0 -25
- package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +0 -15
- package/dist/types-ts4.5/react/nodes/heading.d.ts +0 -27
- package/dist/types-ts4.5/react/nodes/index.d.ts +0 -139
- package/dist/types-ts4.5/react/nodes/inline.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +0 -22
- package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +0 -18
- package/dist/types-ts4.5/react/nodes/layoutColumn-compiled.d.ts +0 -16
- package/dist/types-ts4.5/react/nodes/layoutColumn-emotion.d.ts +0 -16
- package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/listItem.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/loosely-lazy.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/media/index.d.ts +0 -35
- package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +0 -30
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +0 -24
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +0 -28
- package/dist/types-ts4.5/react/nodes/mention.d.ts +0 -14
- package/dist/types-ts4.5/react/nodes/multiBodiedExtension/actions.d.ts +0 -10
- package/dist/types-ts4.5/react/nodes/multiBodiedExtension/context.d.ts +0 -19
- package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +0 -32
- package/dist/types-ts4.5/react/nodes/orderedList.d.ts +0 -10
- package/dist/types-ts4.5/react/nodes/panel-compiled.d.ts +0 -22
- package/dist/types-ts4.5/react/nodes/panel-emotion.d.ts +0 -23
- package/dist/types-ts4.5/react/nodes/panel.d.ts +0 -16
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/placeholder.d.ts +0 -7
- package/dist/types-ts4.5/react/nodes/rule.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/status.d.ts +0 -11
- package/dist/types-ts4.5/react/nodes/syncBlock.d.ts +0 -7
- package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/table/content-mode.d.ts +0 -10
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +0 -75
- package/dist/types-ts4.5/react/nodes/table/table.d.ts +0 -10
- package/dist/types-ts4.5/react/nodes/table/types.d.ts +0 -16
- package/dist/types-ts4.5/react/nodes/table.d.ts +0 -116
- package/dist/types-ts4.5/react/nodes/tableCell.d.ts +0 -30
- package/dist/types-ts4.5/react/nodes/tableNew.d.ts +0 -173
- package/dist/types-ts4.5/react/nodes/tableRow.d.ts +0 -26
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +0 -23
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +0 -20
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +0 -13
- package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +0 -2
- package/dist/types-ts4.5/react/renderer-node.d.ts +0 -7
- package/dist/types-ts4.5/react/types.d.ts +0 -78
- package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +0 -5
- package/dist/types-ts4.5/react/utils/appearance.d.ts +0 -6
- package/dist/types-ts4.5/react/utils/breakout.d.ts +0 -1
- package/dist/types-ts4.5/react/utils/clipboard.d.ts +0 -1
- package/dist/types-ts4.5/react/utils/element-selection.d.ts +0 -9
- package/dist/types-ts4.5/react/utils/getCardClickHandler.d.ts +0 -3
- package/dist/types-ts4.5/react/utils/getStandaloneBackgroundColorMarks.d.ts +0 -12
- package/dist/types-ts4.5/react/utils/inject-props.d.ts +0 -6
- package/dist/types-ts4.5/react/utils/links.d.ts +0 -3
- package/dist/types-ts4.5/react/utils/lists.d.ts +0 -2
- package/dist/types-ts4.5/react/utils/markBlockAsInline.d.ts +0 -10
- package/dist/types-ts4.5/react/utils/render-text-segments.d.ts +0 -5
- package/dist/types-ts4.5/react/utils/segment-text.d.ts +0 -10
- package/dist/types-ts4.5/react/utils/use-select-all-trap.d.ts +0 -2
- package/dist/types-ts4.5/render-document.d.ts +0 -27
- package/dist/types-ts4.5/renderer-context.d.ts +0 -11
- package/dist/types-ts4.5/serializer.d.ts +0 -4
- package/dist/types-ts4.5/steps/index.d.ts +0 -17
- package/dist/types-ts4.5/text/index.d.ts +0 -8
- package/dist/types-ts4.5/text/nodes/blockquote.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/bulletList.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/date.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/heading.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/index.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/listItem.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/mention.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/orderedList.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/panel.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/rule.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/status.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/table.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/taskItem.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/unknown.d.ts +0 -3
- package/dist/types-ts4.5/text-serializer.d.ts +0 -1
- package/dist/types-ts4.5/types/i18n.d.ts +0 -5
- package/dist/types-ts4.5/types/mediaOptions.d.ts +0 -23
- package/dist/types-ts4.5/types/smartLinksOptions.d.ts +0 -59
- package/dist/types-ts4.5/ui/Expand.d.ts +0 -19
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +0 -38
- package/dist/types-ts4.5/ui/MediaCard.d.ts +0 -98
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +0 -30
- package/dist/types-ts4.5/ui/Renderer/PortalContext.d.ts +0 -4
- package/dist/types-ts4.5/ui/Renderer/RendererStyleContainer.d.ts +0 -14
- package/dist/types-ts4.5/ui/Renderer/ValidationContext.d.ts +0 -14
- package/dist/types-ts4.5/ui/Renderer/analytics-utils.d.ts +0 -3
- package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +0 -19
- package/dist/types-ts4.5/ui/Renderer/click-to-edit.d.ts +0 -6
- package/dist/types-ts4.5/ui/Renderer/count-nodes.d.ts +0 -1
- package/dist/types-ts4.5/ui/Renderer/get-base-font-size.d.ts +0 -2
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +0 -51
- package/dist/types-ts4.5/ui/Renderer/rendererHelper.d.ts +0 -2
- package/dist/types-ts4.5/ui/Renderer/style.d.ts +0 -2
- package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +0 -17
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +0 -37
- package/dist/types-ts4.5/ui/Renderer/useMemoFromPropsDerivative.d.ts +0 -1
- package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +0 -8
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +0 -8
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -16
- package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +0 -18
- package/dist/types-ts4.5/ui/annotations/context.d.ts +0 -5
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationHoverContext.d.ts +0 -18
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationManagerContext.d.ts +0 -73
- package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +0 -50
- package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +0 -30
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +0 -7
- package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +0 -3
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +0 -13
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +0 -125
- package/dist/types-ts4.5/ui/annotations/element/useInlineAnnotationProps.d.ts +0 -24
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +0 -22
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -2
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +0 -9
- package/dist/types-ts4.5/ui/annotations/hooks/use-load-annotations.d.ts +0 -11
- package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +0 -11
- package/dist/types-ts4.5/ui/annotations/hooks/utils.d.ts +0 -2
- package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +0 -19
- package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +0 -13
- package/dist/types-ts4.5/ui/annotations/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +0 -19
- package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +0 -13
- package/dist/types-ts4.5/ui/annotations/types.d.ts +0 -33
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/annotations/wrapper.d.ts +0 -9
- package/dist/types-ts4.5/ui/hooks/useScrollToBlock.d.ts +0 -16
- package/dist/types-ts4.5/ui/hooks/useStableScroll.d.ts +0 -27
- package/dist/types-ts4.5/ui/renderer-props.d.ts +0 -172
- package/dist/types-ts4.5/use-feature-flags.d.ts +0 -2
- package/dist/types-ts4.5/utils.d.ts +0 -21
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
4
|
-
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
5
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
6
|
-
import type { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
|
|
7
|
-
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
8
|
-
import type { StickyMode } from './table/sticky';
|
|
9
|
-
import { OverflowParent } from './table/sticky';
|
|
10
|
-
import type { SharedTableProps } from './table/types';
|
|
11
|
-
import { TableStickyScrollbar } from './TableStickyScrollbar';
|
|
12
|
-
export type TableArrayMapped = {
|
|
13
|
-
rowNodes: Array<PMNode | null>;
|
|
14
|
-
rowReact: React.ReactElement;
|
|
15
|
-
};
|
|
16
|
-
export declare const isTableResizingEnabled: (appearance: RendererAppearance) => boolean;
|
|
17
|
-
export declare const isStickyScrollbarEnabled: (appearance: RendererAppearance) => boolean;
|
|
18
|
-
export declare const orderChildren: (children: React.ReactElement[], tableNode: PMNode, smartCardStorage: WithSmartCardStorageProps["smartCardStorage"], tableOrderStatus?: TableOrderStatus) => React.ReactElement[];
|
|
19
|
-
export declare const hasRowspan: (row: PMNode) => boolean;
|
|
20
|
-
export declare const getRefTop: (refElement: HTMLElement) => number;
|
|
21
|
-
export declare const shouldHeaderStick: (scrollTop: number, tableTop: number, tableBottom: number, rowHeight: number) => boolean;
|
|
22
|
-
export declare const shouldHeaderPinBottom: (scrollTop: number, tableBottom: number, rowHeight: number) => boolean;
|
|
23
|
-
export declare const addSortableColumn: (rows: React.ReactElement<any>[], tableOrderStatus: TableOrderStatus | undefined, onSorting: (columnIndex: number, sortOrder: SortOrder) => void) => React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
24
|
-
export type TableProps = SharedTableProps & {
|
|
25
|
-
allowColumnSorting?: boolean;
|
|
26
|
-
allowTableAlignment?: boolean;
|
|
27
|
-
allowTableResizing?: boolean;
|
|
28
|
-
children: React.ReactElement<any> | Array<React.ReactElement<any>>;
|
|
29
|
-
isPresentational?: boolean;
|
|
30
|
-
rendererAppearance?: RendererAppearance;
|
|
31
|
-
stickyHeaders?: StickyHeaderConfig;
|
|
32
|
-
tableNode?: PMNode;
|
|
33
|
-
};
|
|
34
|
-
export declare const isHeaderRowEnabled: (rows: (React.ReactChild | React.ReactFragment | React.ReactPortal)[]) => any;
|
|
35
|
-
export declare const tableCanBeSticky: (node: PMNode | undefined, children: (React.ReactChild | React.ReactFragment | React.ReactPortal)[]) => any;
|
|
36
|
-
export interface TableOrderStatus {
|
|
37
|
-
columnIndex: number;
|
|
38
|
-
order: SortOrder;
|
|
39
|
-
}
|
|
40
|
-
export interface TableState {
|
|
41
|
-
headerRowHeight: number;
|
|
42
|
-
stickyMode: StickyMode;
|
|
43
|
-
wrapperWidth: number;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Reads `nestedRendererType` from RendererContext and renders the fake left/right
|
|
47
|
-
* borders only when the current renderer is the nested renderer for a reference
|
|
48
|
-
* synced block.
|
|
49
|
-
*/
|
|
50
|
-
export declare const RefSyncBlockFakeBorders: ({ isNumberColumnEnabled, }: {
|
|
51
|
-
isNumberColumnEnabled: boolean;
|
|
52
|
-
}) => React.JSX.Element | null;
|
|
53
|
-
/**
|
|
54
|
-
* TableContainer renders tables using only CSS-based rules
|
|
55
|
-
*/
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
export declare class TableContainer extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableState> {
|
|
60
|
-
state: TableState;
|
|
61
|
-
tableRef: React.RefObject<HTMLTableElement>;
|
|
62
|
-
stickyHeaderRef: React.RefObject<HTMLElement>;
|
|
63
|
-
stickyScrollbarRef: React.RefObject<HTMLDivElement>;
|
|
64
|
-
stickyWrapperRef: React.RefObject<HTMLDivElement>;
|
|
65
|
-
wrapperRef: React.RefObject<HTMLDivElement>;
|
|
66
|
-
stickyScrollbar?: TableStickyScrollbar;
|
|
67
|
-
nextFrame: number | undefined;
|
|
68
|
-
overflowParent: OverflowParent | null;
|
|
69
|
-
updatedLayout: TableLayout | 'custom';
|
|
70
|
-
private containerRef;
|
|
71
|
-
private _isInsideNestedRenderer;
|
|
72
|
-
private _isInsideTableCell;
|
|
73
|
-
private lastComputedStyle;
|
|
74
|
-
private resizeObserver;
|
|
75
|
-
private applyResizerChange;
|
|
76
|
-
/**
|
|
77
|
-
* Checks if this table is inside a nested renderer (e.g. Include Page macro)
|
|
78
|
-
* by looking for multiple .ak-renderer-document ancestors in the DOM.
|
|
79
|
-
* The result is cached since a table's position in the DOM tree is stable after mount.
|
|
80
|
-
*/
|
|
81
|
-
private isInsideNestedRenderer;
|
|
82
|
-
/**
|
|
83
|
-
* Checks if this table is inside a table cell in the DOM. The result is cached
|
|
84
|
-
* since a table's position in the DOM tree is stable after mount.
|
|
85
|
-
*/
|
|
86
|
-
private isInsideTableCell;
|
|
87
|
-
private isInsideTableContext;
|
|
88
|
-
/**
|
|
89
|
-
* For tables inside nested renderers (e.g. Include Page macro), the parent
|
|
90
|
-
* renderer's CSS override forces width:100%!important and left:0!important
|
|
91
|
-
* which overrides the inline styles set by this component. Using
|
|
92
|
-
* style.setProperty with 'important' priority on inline styles beats
|
|
93
|
-
* stylesheet !important rules per the CSS cascade.
|
|
94
|
-
*
|
|
95
|
-
* Tables that are nested inside another table need to remain constrained by
|
|
96
|
-
* their table-cell context. Do not promote their width to inline !important,
|
|
97
|
-
* otherwise nested tables rendered through macros such as Excerpt Include can
|
|
98
|
-
* overflow and overlap adjacent cells.
|
|
99
|
-
*
|
|
100
|
-
* Top-level tables in nested renderers still preserve their saved width, but
|
|
101
|
-
* are capped to their containing block so wide tables do not escape constrained
|
|
102
|
-
* macro bodies such as Excerpt Include panels.
|
|
103
|
-
*
|
|
104
|
-
* Uses lastComputedStyle (populated during render) rather than reading from
|
|
105
|
-
* element.style, because React may remove properties from the DOM when their
|
|
106
|
-
* values transition to undefined between renders.
|
|
107
|
-
*/
|
|
108
|
-
private applyNestedRendererTableFix;
|
|
109
|
-
/**
|
|
110
|
-
* Callback ref that captures the container DOM element and also forwards
|
|
111
|
-
* to the handleRef prop from the overflow shadow HOC.
|
|
112
|
-
*/
|
|
113
|
-
private setContainerRef;
|
|
114
|
-
/**
|
|
115
|
-
* Starts observing table dimensions and wires sticky header/scrollbar behavior after mount.
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
*/
|
|
119
|
-
componentDidMount(): void;
|
|
120
|
-
/**
|
|
121
|
-
* Updates sticky header wiring and scroll synchronization after prop or state changes.
|
|
122
|
-
*
|
|
123
|
-
* @param prevProps
|
|
124
|
-
* @param prevState
|
|
125
|
-
* @example
|
|
126
|
-
*/
|
|
127
|
-
componentDidUpdate(prevProps: TableProps, prevState: TableState): void;
|
|
128
|
-
componentWillUnmount: () => void;
|
|
129
|
-
getScrollTop: () => number;
|
|
130
|
-
updateSticky: () => void;
|
|
131
|
-
onScroll: () => void;
|
|
132
|
-
onWrapperScrolled: () => void;
|
|
133
|
-
/**
|
|
134
|
-
* Calculates the top offset used when the sticky header is pinned to the table bottom.
|
|
135
|
-
*/
|
|
136
|
-
get pinTop(): number | undefined;
|
|
137
|
-
/**
|
|
138
|
-
* Determines whether sticky header positioning should include the default scroll root offset.
|
|
139
|
-
*/
|
|
140
|
-
get shouldAddOverflowParentOffsetTop_DO_NOT_USE(): boolean | null | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* Resolves the top position for the sticky header based on the current sticky mode.
|
|
143
|
-
*/
|
|
144
|
-
get stickyTop(): number | undefined;
|
|
145
|
-
/**
|
|
146
|
-
* Renders the table container, sticky header, table content, sticky scrollbar, and synced block borders.
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
*/
|
|
150
|
-
render(): React.JSX.Element;
|
|
151
|
-
private grabFirstRowRef;
|
|
152
|
-
}
|
|
153
|
-
type TableProcessorState = {
|
|
154
|
-
tableOrderStatus?: TableOrderStatus;
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* Processes table children before passing them to the styled table container.
|
|
158
|
-
*/
|
|
159
|
-
export declare class TableProcessorWithContainerStyles extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableProcessorState> {
|
|
160
|
-
state: {
|
|
161
|
-
tableOrderStatus: undefined;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* Renders processed table children inside the table container.
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
*/
|
|
168
|
-
render(): React.JSX.Element | null;
|
|
169
|
-
private addSortableColumn;
|
|
170
|
-
private changeSortOrder;
|
|
171
|
-
private addNumberColumnIndexes;
|
|
172
|
-
}
|
|
173
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
3
|
-
type Props = {
|
|
4
|
-
allowColumnSorting?: boolean;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
index?: number;
|
|
7
|
-
innerRef?: React.Ref<HTMLTableRowElement>;
|
|
8
|
-
isFirstRow?: boolean;
|
|
9
|
-
isLastRow?: boolean;
|
|
10
|
-
isNumberColumnEnabled?: number;
|
|
11
|
-
onSorting?: (columnIndex?: number, currentSortOrdered?: SortOrder) => void;
|
|
12
|
-
tableOrderStatus?: {
|
|
13
|
-
columnIndex: number;
|
|
14
|
-
order: SortOrder;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
type State = {
|
|
18
|
-
colGroupWidths: string[];
|
|
19
|
-
};
|
|
20
|
-
export default class TableRow extends React.Component<Props, State> {
|
|
21
|
-
state: State;
|
|
22
|
-
addSortableColumn: (childrenArray: React.ReactNode[]) => React.ReactNode[];
|
|
23
|
-
addColGroupWidth: (childrenArray: React.ReactNode[]) => React.ReactNode[];
|
|
24
|
-
render(): React.JSX.Element;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
5
|
-
interface Props {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
contentRef?: ContentRef;
|
|
8
|
-
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
9
|
-
dataAttributes?: {
|
|
10
|
-
[key: string]: string | number;
|
|
11
|
-
};
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
disableOnChange?: boolean;
|
|
14
|
-
isDone: boolean;
|
|
15
|
-
isRenderer?: boolean;
|
|
16
|
-
objectAri: string;
|
|
17
|
-
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
18
|
-
showPlaceholder?: boolean;
|
|
19
|
-
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
20
|
-
taskId: string;
|
|
21
|
-
}
|
|
22
|
-
export default function TaskItemWithProviders(props: Props): React.JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent } from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { RendererContext, NodeProps } from '../types';
|
|
5
|
-
export interface Props {
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
disableOnChange?: boolean;
|
|
9
|
-
localId: string;
|
|
10
|
-
providers?: ProviderFactory;
|
|
11
|
-
rendererContext?: RendererContext;
|
|
12
|
-
state?: string;
|
|
13
|
-
}
|
|
14
|
-
export default class TaskItem extends PureComponent<NodeProps<Props>, Object> {
|
|
15
|
-
private providerFactory;
|
|
16
|
-
constructor(props: NodeProps<Props>);
|
|
17
|
-
componentWillUnmount(): void;
|
|
18
|
-
private renderWithProvider;
|
|
19
|
-
render(): React.JSX.Element;
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent } from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
export interface Props {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
localId?: string;
|
|
6
|
-
}
|
|
7
|
-
export default class TaskList extends PureComponent<Props, Object> {
|
|
8
|
-
render(): React.JSX.Element | null;
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { TextHighlighter } from '../types';
|
|
4
|
-
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
type Props = {
|
|
6
|
-
children?: ReactNode | null;
|
|
7
|
-
endPos: number;
|
|
8
|
-
marks?: readonly Mark[];
|
|
9
|
-
startPos: number;
|
|
10
|
-
textHighlighter?: TextHighlighter;
|
|
11
|
-
};
|
|
12
|
-
declare const TextWrapper: (props: Props) => React.JSX.Element | null;
|
|
13
|
-
export default TextWrapper;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
export declare const insideBreakoutLayout: (path: Node[]) => boolean;
|
|
3
|
-
export declare const insideBreakoutExpand: (path: Node[]) => boolean;
|
|
4
|
-
export declare const insideBlockNode: (path: Node[], schema: Schema) => boolean;
|
|
5
|
-
export declare const insideMultiBodiedExtension: (path: Node[], schema: Schema) => boolean;
|
|
6
|
-
export declare const insideTable: (path: Node[], schema: Schema) => boolean;
|
|
7
|
-
export declare const getNestedUnderNodes: (path: Node[], nodeTypeNames: string[]) => string | undefined;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import type { Node as PMNode, NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
6
|
-
import type { AnalyticsEventPayload } from '../analytics/events';
|
|
7
|
-
import type { Serializer } from '../serializer';
|
|
8
|
-
import type { RendererAppearance, HeadingAnchorLinksProps, RendererContentMode, NestedRendererType } from '../ui/Renderer/types';
|
|
9
|
-
import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
10
|
-
export interface RendererContext {
|
|
11
|
-
adDoc?: any;
|
|
12
|
-
containerAri?: string;
|
|
13
|
-
nestedRendererType?: NestedRendererType;
|
|
14
|
-
objectAri?: string;
|
|
15
|
-
schema?: Schema;
|
|
16
|
-
}
|
|
17
|
-
export interface NodeMeta {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
allowCopyToClipboard?: boolean;
|
|
20
|
-
allowCustomPanels?: boolean;
|
|
21
|
-
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
22
|
-
allowPlaceholderText?: boolean;
|
|
23
|
-
allowWrapCodeBlock?: boolean;
|
|
24
|
-
asInline?: 'on' | undefined;
|
|
25
|
-
content?: {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
} | null;
|
|
28
|
-
dataAttributes: {
|
|
29
|
-
'data-renderer-start-pos': number;
|
|
30
|
-
};
|
|
31
|
-
eventHandlers?: EventHandlers | undefined;
|
|
32
|
-
extensionHandlers?: ExtensionHandlers | undefined;
|
|
33
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
34
|
-
marks: PMNode['marks'];
|
|
35
|
-
nodeType: NodeType['name'];
|
|
36
|
-
portal?: HTMLElement | undefined;
|
|
37
|
-
providers?: ProviderFactory | undefined;
|
|
38
|
-
rendererAppearance?: RendererAppearance;
|
|
39
|
-
rendererContentMode?: RendererContentMode;
|
|
40
|
-
rendererContext?: RendererContext;
|
|
41
|
-
serializer: Serializer<JSX.Element>;
|
|
42
|
-
text?: PMNode['text'];
|
|
43
|
-
}
|
|
44
|
-
export interface MarkMeta {
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
dataAttributes: {
|
|
47
|
-
'data-block-mark'?: true;
|
|
48
|
-
'data-renderer-mark': true;
|
|
49
|
-
};
|
|
50
|
-
eventHandlers?: EventHandlers;
|
|
51
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
52
|
-
isInline?: boolean;
|
|
53
|
-
markKey?: any;
|
|
54
|
-
}
|
|
55
|
-
export interface AnnotationMarkMeta extends MarkMeta {
|
|
56
|
-
allowAnnotations: boolean;
|
|
57
|
-
annotationParentIds: string[];
|
|
58
|
-
annotationType: AnnotationTypes;
|
|
59
|
-
id: AnnotationId;
|
|
60
|
-
isMediaInline?: boolean;
|
|
61
|
-
useBlockLevel?: boolean;
|
|
62
|
-
}
|
|
63
|
-
export type NodeProps<NodeAttrs = Object> = NodeAttrs & PropsWithChildren<NodeMeta>;
|
|
64
|
-
export type MarkProps<MarkAttrs = Object> = MarkAttrs & PropsWithChildren<MarkMeta>;
|
|
65
|
-
export type TextHighlighter = {
|
|
66
|
-
component: React.ComponentType<{
|
|
67
|
-
children: React.ReactNode;
|
|
68
|
-
groups: Array<string> | undefined;
|
|
69
|
-
marks: Set<string>;
|
|
70
|
-
match: string;
|
|
71
|
-
startPos: number;
|
|
72
|
-
}>;
|
|
73
|
-
pattern: RegExp;
|
|
74
|
-
};
|
|
75
|
-
export interface ExtensionViewportSize {
|
|
76
|
-
extensionId?: string;
|
|
77
|
-
viewportSize?: string;
|
|
78
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
2
|
-
export declare const isFullWidthAppearance: (appearance: RendererAppearance) => appearance is "full-width";
|
|
3
|
-
export declare const isMaxWidthAppearance: (appearance: RendererAppearance) => appearance is "max";
|
|
4
|
-
export declare const isFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page";
|
|
5
|
-
export declare const isCommentAppearance: (appearance: RendererAppearance) => appearance is "comment";
|
|
6
|
-
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-width" | "full-page" | "max";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const calcBreakoutWidthCss: (layout: "full-width" | "wide" | "default") => "100%" | "min(var(--ak-editor--breakout-container-without-gutter-width), var(--ak-editor--full-width-layout-width))" | "min(var(--ak-editor--breakout-container-without-gutter-width), var(--ak-editor--breakout-wide-layout-width))";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const copyTextToClipboard: (text: string) => Promise<void>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare class ElementSelection {
|
|
2
|
-
readonly type: string;
|
|
3
|
-
readonly range?: Range;
|
|
4
|
-
private constructor();
|
|
5
|
-
eq(selection?: ElementSelection): boolean;
|
|
6
|
-
inside(el: HTMLElement): boolean;
|
|
7
|
-
select(el: HTMLElement): ElementSelection;
|
|
8
|
-
static fromWindow(win?: Window): ElementSelection;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Mark, Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
/**
|
|
3
|
-
* Returns an array of **backgroundColor marks** that should be considered "standalone"
|
|
4
|
-
* for highlight padding purposes.
|
|
5
|
-
*
|
|
6
|
-
* Standalone backgroundColor marks are determined by scanning the content array and
|
|
7
|
-
* checking for backgroundColor marks that are separated by whitespace boundaries.
|
|
8
|
-
*
|
|
9
|
-
* @param content Array of ProseMirror nodes to scan for standalone backgroundColor marks.
|
|
10
|
-
* @returns Array of backgroundColor marks that are standalone.
|
|
11
|
-
*/
|
|
12
|
-
export declare const getStandaloneBackgroundColorMarks: (content: Node[]) => Mark[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
|
|
2
|
-
export declare function isNestedHeaderLinksEnabled(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): boolean;
|
|
3
|
-
export declare function getActiveHeadingId(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): string | undefined;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
export declare function markBlockAsInline({ nodes, onMark, parentPos, shouldDisplayExtensionAsInline, }: {
|
|
4
|
-
nodes: PMNode[];
|
|
5
|
-
onMark: ({ pos }: {
|
|
6
|
-
pos: number;
|
|
7
|
-
}) => void;
|
|
8
|
-
parentPos: number;
|
|
9
|
-
shouldDisplayExtensionAsInline: (extensionParams: ExtensionParams<Parameters>) => boolean;
|
|
10
|
-
}): void;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { TextSegment } from './segment-text';
|
|
4
|
-
import type { TextHighlighter } from '../types';
|
|
5
|
-
export declare function renderTextSegments(segments: Array<TextSegment>, textHighlighter: TextHighlighter | undefined, marksList: readonly Mark[], startPos: number): string | React.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TextHighlighter } from '../types';
|
|
2
|
-
export type TextSegment = {
|
|
3
|
-
text: string;
|
|
4
|
-
type: 'plain';
|
|
5
|
-
} | {
|
|
6
|
-
groups: Array<string> | undefined;
|
|
7
|
-
text: string;
|
|
8
|
-
type: 'match';
|
|
9
|
-
};
|
|
10
|
-
export declare function segmentText(text: string | undefined, highlighter: TextHighlighter | undefined): Array<TextSegment>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
3
|
-
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type { AnalyticsEventPayload } from './analytics/events';
|
|
5
|
-
import type { Serializer } from './serializer';
|
|
6
|
-
import type { RendererAppearance } from './ui/Renderer/types';
|
|
7
|
-
export interface RenderOutput<T> {
|
|
8
|
-
pmDoc?: PMNode;
|
|
9
|
-
result: T;
|
|
10
|
-
stat: RenderOutputStat;
|
|
11
|
-
}
|
|
12
|
-
export interface RenderOutputStat {
|
|
13
|
-
buildTreeTime?: number;
|
|
14
|
-
nodesCount?: Record<string, number>;
|
|
15
|
-
sanitizeTime: number;
|
|
16
|
-
serializeTime?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface ResultWithTime<T> {
|
|
19
|
-
output: T;
|
|
20
|
-
time: number;
|
|
21
|
-
}
|
|
22
|
-
type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
|
|
23
|
-
export declare const renderDocument: <T>(doc: any, serializer: Serializer<T>, schema?: Schema, adfStage?: ADFStage, useSpecBasedValidator?: boolean, rendererId?: string, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking, appearance?: RendererAppearance, includeNodesCountInStats?: boolean, skipValidation?: boolean, validationOverrides?: {
|
|
24
|
-
allowNestedTables?: boolean;
|
|
25
|
-
allowTableInPanel?: boolean;
|
|
26
|
-
}) => RenderOutput<T | null>;
|
|
27
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { NestedRendererType } from './ui/Renderer/types';
|
|
4
|
-
export type RendererContextProps = {
|
|
5
|
-
featureFlags?: FeatureFlags;
|
|
6
|
-
isTopLevelRenderer?: boolean;
|
|
7
|
-
nestedRendererType?: NestedRendererType;
|
|
8
|
-
timeZone?: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const useRendererContext: () => RendererContextProps;
|
|
11
|
-
export declare const RendererContextProvider: React.Provider<{}>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
-
export declare function getStartPos(element: HTMLElement): number;
|
|
4
|
-
export declare function findParent(element: ChildNode | Node): HTMLElement | null;
|
|
5
|
-
export declare function isRendererRoot(element: HTMLElement | null): boolean;
|
|
6
|
-
export declare function resolvePos(node: Node | null, offset: number, findEnd?: boolean): number | false;
|
|
7
|
-
interface AnnotationStepOptions {
|
|
8
|
-
annotationId: string;
|
|
9
|
-
annotationType: 'inlineComment';
|
|
10
|
-
schema: Schema;
|
|
11
|
-
}
|
|
12
|
-
export declare function getPosFromRange(range: Range): {
|
|
13
|
-
from: number;
|
|
14
|
-
to: number;
|
|
15
|
-
} | false;
|
|
16
|
-
export declare function createAnnotationStep(from: number, to: number, opts: AnnotationStepOptions): AddMarkStep;
|
|
17
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Fragment, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { Serializer } from '../serializer';
|
|
3
|
-
export default class TextSerializer implements Serializer<string> {
|
|
4
|
-
private schema;
|
|
5
|
-
constructor(schema: Schema);
|
|
6
|
-
serializeFragment(fragment: Fragment): string;
|
|
7
|
-
static fromSchema(schema?: Schema): TextSerializer;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TextSerializer } from './text';
|