@atlaskit/renderer 132.5.2 → 132.6.0
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 +21 -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,23 +0,0 @@
|
|
|
1
|
-
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
2
|
-
import type { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
3
|
-
import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
4
|
-
export type MediaSSR = {
|
|
5
|
-
config: MediaClientConfig;
|
|
6
|
-
mode: SSR;
|
|
7
|
-
};
|
|
8
|
-
export interface MediaOptions {
|
|
9
|
-
allowCaptions?: boolean;
|
|
10
|
-
allowLinking?: boolean;
|
|
11
|
-
enableDownloadButton?: boolean;
|
|
12
|
-
enableSyncMediaCard?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Optional fallback fetcher to retrieve the media filename from another service
|
|
15
|
-
* Workaround for #hot-301450 where media service is missing filenames for DC -> Cloud migrated media
|
|
16
|
-
* Receives the file ID and should resolve to the filename string.
|
|
17
|
-
*/
|
|
18
|
-
fallbackMediaNameFetcher?: (id: string) => Promise<string>;
|
|
19
|
-
featureFlags?: MediaFeatureFlags;
|
|
20
|
-
/** Extensions for the media viewer header (e.g. comment navigation button). */
|
|
21
|
-
mediaViewerExtensions?: MediaViewerExtensions;
|
|
22
|
-
ssr?: MediaSSR;
|
|
23
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { CardProps } from '@atlaskit/smart-card';
|
|
3
|
-
export interface SmartLinksOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Configure visibility of actions available.
|
|
6
|
-
* By default, smart links show all actions available on the views.
|
|
7
|
-
* Set `hide` to true to disable all actions.
|
|
8
|
-
* Set `hide` to false and set `exclude` to enable only specific actions.
|
|
9
|
-
*
|
|
10
|
-
* Component: inline (hover preview), block (card)
|
|
11
|
-
*/
|
|
12
|
-
actionOptions?: CardProps['actionOptions'];
|
|
13
|
-
/**
|
|
14
|
-
* Competitor Prompt Component for Competitor link
|
|
15
|
-
*/
|
|
16
|
-
CompetitorPrompt?: React.ComponentType<{
|
|
17
|
-
linkType?: string;
|
|
18
|
-
sourceUrl: string;
|
|
19
|
-
}>;
|
|
20
|
-
/**
|
|
21
|
-
* A prop that determines the style of a frame:
|
|
22
|
-
* whether to show it, hide it or only show it when a user hovers over embed.
|
|
23
|
-
* Default is `show`
|
|
24
|
-
*
|
|
25
|
-
* Component: embed
|
|
26
|
-
*/
|
|
27
|
-
frameStyle?: CardProps['frameStyle'];
|
|
28
|
-
/**
|
|
29
|
-
* Returns a placeholder string for an inline smart link while it is in a resolving state.
|
|
30
|
-
* Used to show a preloaded title instead of the raw URL.
|
|
31
|
-
*
|
|
32
|
-
* Component: inline
|
|
33
|
-
*/
|
|
34
|
-
getResolvingPlaceholder?: (url: string) => string | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* A flag to disable hover preview on inline Smart Link.
|
|
37
|
-
* Default is false.
|
|
38
|
-
*
|
|
39
|
-
* Component: inline
|
|
40
|
-
*/
|
|
41
|
-
hideHoverPreview?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* A flag to enable inline Smart Link to render without lazy loading.
|
|
44
|
-
* Default is false.
|
|
45
|
-
*
|
|
46
|
-
* Component: inline
|
|
47
|
-
*/
|
|
48
|
-
ssr?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* A Suspense boundary wrapper to enable inline SmartLinks to wait until data fetchers have completed before rendering
|
|
51
|
-
* Default is undefined.
|
|
52
|
-
*
|
|
53
|
-
* Component: inline
|
|
54
|
-
*/
|
|
55
|
-
SuspenseWrapperForUrl?: React.ComponentType<{
|
|
56
|
-
children: React.ReactNode;
|
|
57
|
-
url?: string;
|
|
58
|
-
}>;
|
|
59
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { AnalyticsEventPayload } from '../analytics/events';
|
|
4
|
-
import type { RendererAppearance, RendererContentMode } from './Renderer/types';
|
|
5
|
-
export interface ExpandProps {
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
8
|
-
loadBodyContent?: boolean;
|
|
9
|
-
localId?: string;
|
|
10
|
-
nestedHeaderIds?: Array<string>;
|
|
11
|
-
nodeType: 'expand' | 'nestedExpand';
|
|
12
|
-
rendererAppearance?: RendererAppearance;
|
|
13
|
-
rendererContentMode?: RendererContentMode;
|
|
14
|
-
title: string;
|
|
15
|
-
}
|
|
16
|
-
declare const _default_1: React.FC<WithIntlProps<ExpandProps & WrappedComponentProps>> & {
|
|
17
|
-
WrappedComponent: React.ComponentType<ExpandProps & WrappedComponentProps>;
|
|
18
|
-
};
|
|
19
|
-
export default _default_1;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import type { RendererContext } from '../react/types';
|
|
8
|
-
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
9
|
-
import type { ExtensionHandlers, ExtensionParams, MultiBodiedExtensionActions, Parameters } from '@atlaskit/editor-common/extensions';
|
|
10
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
11
|
-
import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
12
|
-
interface Props {
|
|
13
|
-
actions?: MultiBodiedExtensionActions;
|
|
14
|
-
children: ({ node, result, }: {
|
|
15
|
-
node: ExtensionParams<Parameters>;
|
|
16
|
-
result?: JSX.Element | null;
|
|
17
|
-
}) => JSX.Element;
|
|
18
|
-
content?: any;
|
|
19
|
-
extensionHandlers?: ExtensionHandlers;
|
|
20
|
-
extensionKey: string;
|
|
21
|
-
extensionType: string;
|
|
22
|
-
layout?: ExtensionLayout;
|
|
23
|
-
localId?: string;
|
|
24
|
-
marks?: PMMark[];
|
|
25
|
-
parameters?: any;
|
|
26
|
-
providers?: ProviderFactory;
|
|
27
|
-
rendererContext: RendererContext;
|
|
28
|
-
text?: string;
|
|
29
|
-
type: 'extension' | 'inlineExtension' | 'bodiedExtension' | 'multiBodiedExtension';
|
|
30
|
-
}
|
|
31
|
-
/** Renders extension (macro) nodes inside the ADF renderer. */
|
|
32
|
-
export default function ExtensionRenderer(props: Props): jsx.JSX.Element;
|
|
33
|
-
export declare const InlineNodeRendererWrapper: ({ children, isPlainTextMacro, ssrPlaceholder, ssrPlaceholderReplace, }: React.PropsWithChildren<{
|
|
34
|
-
isPlainTextMacro?: boolean;
|
|
35
|
-
ssrPlaceholder?: string;
|
|
36
|
-
ssrPlaceholderReplace?: string;
|
|
37
|
-
}>) => jsx.JSX.Element;
|
|
38
|
-
export {};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
3
|
-
import type { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
|
|
4
|
-
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
5
|
-
import type { ImageResizeMode, Identifier, FileState, MediaClient } from '@atlaskit/media-client';
|
|
6
|
-
import type { MediaType } from '@atlaskit/adf-schema';
|
|
7
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
8
|
-
import type { ImageLoaderProps, ImageStatus } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
-
import type { RendererAppearance } from './Renderer/types';
|
|
11
|
-
import type { RendererContext } from '../react/types';
|
|
12
|
-
import type { MediaSSR } from '../types/mediaOptions';
|
|
13
|
-
import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
14
|
-
import type { AnalyticsEventPayload } from '../analytics/events';
|
|
15
|
-
export type MediaProvider = {
|
|
16
|
-
viewMediaClientConfig: MediaClientConfig;
|
|
17
|
-
};
|
|
18
|
-
export interface MediaCardProps {
|
|
19
|
-
alt?: string;
|
|
20
|
-
appearance?: CardAppearance;
|
|
21
|
-
cardDimensions?: CardDimensions;
|
|
22
|
-
collection?: string;
|
|
23
|
-
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
24
|
-
dataAttributes?: Record<string, any>;
|
|
25
|
-
disableOverlay?: boolean;
|
|
26
|
-
enableSyncMediaCard?: boolean;
|
|
27
|
-
eventHandlers?: {
|
|
28
|
-
media?: {
|
|
29
|
-
onClick?: CardOnClickCallback;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
featureFlags?: MediaFeatureFlags;
|
|
33
|
-
id?: string;
|
|
34
|
-
imageStatus?: ImageStatus;
|
|
35
|
-
localId?: string;
|
|
36
|
-
/** Extensions for the media viewer (e.g. comment button in header). */
|
|
37
|
-
mediaViewerExtensions?: MediaViewerExtensions;
|
|
38
|
-
/**
|
|
39
|
-
* Indicates if media node is nested under a bodiedSyncBlock
|
|
40
|
-
*/
|
|
41
|
-
nestedUnder?: string;
|
|
42
|
-
occurrenceKey?: string;
|
|
43
|
-
originalDimensions?: NumericalCardDimensions;
|
|
44
|
-
rendererAppearance?: RendererAppearance;
|
|
45
|
-
/**
|
|
46
|
-
* Renderer context that includes nestedRendererType for detecting renderer nesting.
|
|
47
|
-
* When nestedRendererType is 'syncedBlock', it indicates media is inside renderer inside a syncBlock.
|
|
48
|
-
*/
|
|
49
|
-
rendererContext?: RendererContext;
|
|
50
|
-
resizeMode?: ImageResizeMode;
|
|
51
|
-
shouldEnableDownloadButton?: boolean;
|
|
52
|
-
shouldOpenMediaViewer?: boolean;
|
|
53
|
-
ssr?: MediaSSR;
|
|
54
|
-
type: MediaType;
|
|
55
|
-
url?: string;
|
|
56
|
-
useInlinePlayer?: boolean;
|
|
57
|
-
}
|
|
58
|
-
interface State {
|
|
59
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
60
|
-
fileState?: FileState;
|
|
61
|
-
}
|
|
62
|
-
export declare const mediaIdentifierMap: Map<string, Identifier>;
|
|
63
|
-
export declare const getListOfIdentifiersFromDoc: (doc?: ADFEntity) => Identifier[];
|
|
64
|
-
export declare class MediaCardView extends Component<MediaCardProps & {
|
|
65
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
66
|
-
mediaClient?: MediaClient;
|
|
67
|
-
}, State> {
|
|
68
|
-
state: State;
|
|
69
|
-
componentDidMount(): Promise<void>;
|
|
70
|
-
componentDidUpdate(prevProps: MediaCardProps): void;
|
|
71
|
-
componentWillUnmount(): void;
|
|
72
|
-
saveFileState: (id: string) => Promise<void>;
|
|
73
|
-
private onError;
|
|
74
|
-
private renderLoadingCard;
|
|
75
|
-
private renderExternal;
|
|
76
|
-
/**
|
|
77
|
-
* We want to call provided `eventHandlers.media.onClick` when it's provided,
|
|
78
|
-
* but we also don't want to call it when it's a video and inline video player is enabled.
|
|
79
|
-
* This is due to consumers normally process this onClick call by opening media viewer and
|
|
80
|
-
* we don't want that to happened described above text.
|
|
81
|
-
*/
|
|
82
|
-
private getOnCardClickCallback;
|
|
83
|
-
render(): React.JSX.Element | null;
|
|
84
|
-
}
|
|
85
|
-
export type ClipboardAttrs = {
|
|
86
|
-
alt?: string;
|
|
87
|
-
collection?: string;
|
|
88
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
89
|
-
fileState?: FileState;
|
|
90
|
-
id: string;
|
|
91
|
-
originalDimensions?: NumericalCardDimensions;
|
|
92
|
-
};
|
|
93
|
-
export declare const getClipboardAttrs: ({ id, alt, collection, contextIdentifierProvider, originalDimensions, fileState, }: ClipboardAttrs) => {
|
|
94
|
-
[key: string]: string | number | undefined;
|
|
95
|
-
};
|
|
96
|
-
export declare const MediaCardInternal: (props: MediaCardProps) => React.JSX.Element;
|
|
97
|
-
export declare const MediaCard: React.ComponentClass<MediaCardProps & ImageLoaderProps>;
|
|
98
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import type { ComponentCrashErrorAEP } from '../../analytics/events';
|
|
4
|
-
interface ErrorBoundaryProps {
|
|
5
|
-
additionalInfo?: string;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
component: ComponentCrashErrorAEP['actionSubject'];
|
|
8
|
-
componentId?: ComponentCrashErrorAEP['actionSubjectId'];
|
|
9
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
10
|
-
fallbackComponent?: React.ReactNode;
|
|
11
|
-
rethrowError?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface ErrorBoundaryState {
|
|
14
|
-
domError: boolean;
|
|
15
|
-
domErrorCount: number;
|
|
16
|
-
errorCaptured: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
19
|
-
state: {
|
|
20
|
-
errorCaptured: boolean;
|
|
21
|
-
domError: boolean;
|
|
22
|
-
domErrorCount: number;
|
|
23
|
-
};
|
|
24
|
-
private fireAnalyticsEvent;
|
|
25
|
-
private hasFallback;
|
|
26
|
-
private shouldRecover;
|
|
27
|
-
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
28
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx, type SerializedStyles } from '@emotion/react';
|
|
6
|
-
import type { RendererWrapperProps } from './index';
|
|
7
|
-
export declare const textHighlightPaddingStyles: SerializedStyles;
|
|
8
|
-
type RendererStyleContainerProps = Pick<RendererWrapperProps, 'onClick' | 'onMouseDown' | 'appearance' | 'contentMode' | 'allowNestedHeaderLinks' | 'allowColumnSorting' | 'useBlockRenderForCodeBlock' | 'allowAnnotations' | 'allowTableResizing' | 'innerRef' | 'children' | 'allowRendererContainerStyles'> & {
|
|
9
|
-
isInsideOfSyncBlock?: boolean;
|
|
10
|
-
isInsideSyncBlock?: boolean;
|
|
11
|
-
testId?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const RendererStyleContainer: (props: RendererStyleContainerProps) => jsx.JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Context, type Provider } from 'react';
|
|
2
|
-
type ValidationContextType = {
|
|
3
|
-
allowNestedTables?: boolean;
|
|
4
|
-
skipValidation?: boolean;
|
|
5
|
-
} | null;
|
|
6
|
-
/**
|
|
7
|
-
* The ValidationContext is used to pass down the `skipValidation` flag from the NBMRenderer
|
|
8
|
-
* to any ReactRenderer nested inside a Legacy Content Macro. This allows the nested ReactRenderer
|
|
9
|
-
* to bypass the ADF schema validation when necessary.
|
|
10
|
-
* It also allows validation overrides to be passed to nested renderers. For example renderers nested inside bodiedExtension
|
|
11
|
-
*/
|
|
12
|
-
export declare const ValidationContext: Context<ValidationContextType>;
|
|
13
|
-
export declare const ValidationContextProvider: Provider<ValidationContextType>;
|
|
14
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload } from '../../analytics/events';
|
|
2
|
-
export declare const getWidthInfoPayload: (renderer: HTMLElement) => AnalyticsEventPayload | undefined;
|
|
3
|
-
export declare const getHeightInfoPayload: (renderer: HTMLElement) => AnalyticsEventPayload | undefined;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
__RENDERER_BYPASS_BREAKOUT_SSR__?: boolean;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Inline Script that updates breakout node width on client side,
|
|
9
|
-
* before main JavaScript bundle is ready.
|
|
10
|
-
* More info: https://product-fabric.atlassian.net/wiki/spaces/E/pages/1216218119/Renderer+SSR+for+Breakout+Nodes
|
|
11
|
-
*/
|
|
12
|
-
export declare function BreakoutSSRInlineScript({ noOpSSRInlineScript, }: {
|
|
13
|
-
noOpSSRInlineScript: Boolean;
|
|
14
|
-
}): React.JSX.Element | null;
|
|
15
|
-
export declare function createBreakoutInlineScript(id: number, shouldSkipScript: {
|
|
16
|
-
table: boolean;
|
|
17
|
-
}): string;
|
|
18
|
-
export declare const breakoutInlineScriptContext: string;
|
|
19
|
-
export declare const calcLineLength: () => number;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if an element is interactive (or otherwise if clicking on it shouldn't transition the
|
|
3
|
-
* renderer to the editor in somewhere like the Jira description
|
|
4
|
-
* @param element
|
|
5
|
-
*/
|
|
6
|
-
export declare function isInteractiveElement(element: HTMLElement | HTMLLinkElement): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function countNodes(adfDocument: any): Record<string, number>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { MediaSSR } from '../../';
|
|
8
|
-
import type { RendererProps } from '../renderer-props';
|
|
9
|
-
import type { RendererAppearance, RendererContentMode } from './types';
|
|
10
|
-
export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
11
|
-
export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
12
|
-
export declare const RendererFunctionalComponent: (props: RendererProps & {
|
|
13
|
-
skipValidation?: boolean;
|
|
14
|
-
startPos?: number;
|
|
15
|
-
validationOverrides?: {
|
|
16
|
-
allowNestedTables?: boolean;
|
|
17
|
-
};
|
|
18
|
-
}) => jsx.JSX.Element;
|
|
19
|
-
/**
|
|
20
|
-
* Top-level ADF renderer: renders document content with analytics and validation context.
|
|
21
|
-
* @param props Renderer configuration and document tree.
|
|
22
|
-
*/
|
|
23
|
-
export declare function Renderer(props: RendererProps): jsx.JSX.Element;
|
|
24
|
-
export declare const RendererWithAnalytics: React.MemoExoticComponent<(props: RendererProps) => jsx.JSX.Element>;
|
|
25
|
-
export type RendererWrapperProps = {
|
|
26
|
-
addTelepointer?: boolean;
|
|
27
|
-
allowAnnotations?: boolean;
|
|
28
|
-
allowColumnSorting?: boolean;
|
|
29
|
-
allowCopyToClipboard?: boolean;
|
|
30
|
-
allowCustomPanels?: boolean;
|
|
31
|
-
allowNestedHeaderLinks: boolean;
|
|
32
|
-
allowPlaceholderText?: boolean;
|
|
33
|
-
allowRendererContainerStyles?: boolean;
|
|
34
|
-
allowTableResizing?: boolean;
|
|
35
|
-
allowWrapCodeBlock?: boolean;
|
|
36
|
-
appearance: RendererAppearance;
|
|
37
|
-
contentMode?: RendererContentMode;
|
|
38
|
-
innerRef?: React.RefObject<HTMLDivElement>;
|
|
39
|
-
isInsideOfInlineExtension?: boolean;
|
|
40
|
-
isTopLevelRenderer?: boolean;
|
|
41
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
42
|
-
onMouseDown?: (event: React.MouseEvent) => void;
|
|
43
|
-
product?: string;
|
|
44
|
-
shouldRemoveEmptySpaceAroundContent?: boolean;
|
|
45
|
-
ssr?: MediaSSR;
|
|
46
|
-
useBlockRenderForCodeBlock: boolean;
|
|
47
|
-
} & {
|
|
48
|
-
children?: React.ReactNode;
|
|
49
|
-
};
|
|
50
|
-
declare const RendererWithAnnotationSelection: (props: RendererProps) => jsx.JSX.Element;
|
|
51
|
-
export default RendererWithAnnotationSelection;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
import { Component } from 'react';
|
|
7
|
-
interface TruncatedWrapperProps {
|
|
8
|
-
backgroundColor?: string;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
fadeHeight?: number;
|
|
11
|
-
height?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, unknown> {
|
|
14
|
-
constructor(props: TruncatedWrapperProps);
|
|
15
|
-
render(): jsx.JSX.Element;
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'max' | undefined;
|
|
2
|
-
export type RendererContentMode = 'standard' | 'compact' | undefined;
|
|
3
|
-
export type NestedRendererType = 'syncedBlock' | undefined;
|
|
4
|
-
/**
|
|
5
|
-
* DO NOT USE THESE OPTIONS
|
|
6
|
-
* These StickyHeaderConfig_DO_NOT_USE options are being TEMPORARILY added so Confluence can use Sticky Table Headers
|
|
7
|
-
* in Nav4.
|
|
8
|
-
*
|
|
9
|
-
* They will be cleaned up ASAP after Confluence refactors its page layout to add an explicit scroll container (DISCO-3121)
|
|
10
|
-
*
|
|
11
|
-
* `defaultScrollRootId_DO_NOT_USE` - defaults to undefined - can be used to specify the id of default OverflowParent if
|
|
12
|
-
* the table doesn't have a parent that explicitly specifies `overflow: scroll` or `overflow-y: scroll`. When undefined,
|
|
13
|
-
* the default OverflowParent will be the window
|
|
14
|
-
* `shouldAddDefaultScrollRootOffsetTop_DO_NOT_USE` - defaults to false - can be used to specify that if the OverflowParent
|
|
15
|
-
* is the default one specificed, then the sticky table header offset should include the OverflowParent offset.
|
|
16
|
-
* This is required because the logic that determines if the header should be sticky always takes the OverflowParent.offsetTop
|
|
17
|
-
* into account. But the calculation to get the actual header offset does not.
|
|
18
|
-
*/
|
|
19
|
-
type StickyHeaderConfig_DO_NOT_USE = {
|
|
20
|
-
defaultScrollRootId_DO_NOT_USE?: string;
|
|
21
|
-
shouldAddDefaultScrollRootOffsetTop_DO_NOT_USE?: boolean;
|
|
22
|
-
};
|
|
23
|
-
export type StickyHeaderConfig = {
|
|
24
|
-
offsetTop?: number;
|
|
25
|
-
} & StickyHeaderConfig_DO_NOT_USE;
|
|
26
|
-
export type StickyHeaderProps = boolean | ({
|
|
27
|
-
show?: boolean;
|
|
28
|
-
} & StickyHeaderConfig);
|
|
29
|
-
export type HeadingAnchorLinksConfig = {
|
|
30
|
-
activeHeadingId?: string;
|
|
31
|
-
allowNestedHeaderLinks?: boolean;
|
|
32
|
-
};
|
|
33
|
-
export type NodeComponentsProps = {
|
|
34
|
-
[key: string]: React.ComponentType<React.PropsWithChildren<any>>;
|
|
35
|
-
};
|
|
36
|
-
export type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
|
|
37
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useMemoFromPropsDerivative<Memo, PropsDerivative, Props extends Record<string, any>>(factory: (propsDerivative: PropsDerivative) => Memo, propsDerivator: (props: Props) => PropsDerivative, props: Props): Memo | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type RendererActions from '../../actions/index';
|
|
4
|
-
interface WithRendererActionsProps {
|
|
5
|
-
render(actions: RendererActions): ReactNode | null;
|
|
6
|
-
}
|
|
7
|
-
export declare function WithRendererActions({ render }: WithRendererActionsProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import RendererActions from '../../actions/index';
|
|
4
|
-
export declare const RendererContext: React.Context<RendererActions>;
|
|
5
|
-
type RendererActionsContextProps = PropsWithChildren<{
|
|
6
|
-
context?: RendererActions;
|
|
7
|
-
}>;
|
|
8
|
-
export declare function RendererActionsContext({ children, context, }: RendererActionsContextProps): React.JSX.Element;
|
|
9
|
-
export declare const RendererActionsContextConsumer: React.Consumer<RendererActions>;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
3
|
-
export interface WithSmartCardStorageProps {
|
|
4
|
-
smartCardStorage: Map<string, string>;
|
|
5
|
-
}
|
|
6
|
-
export declare const Context: React.Context<Map<string, string>>;
|
|
7
|
-
export declare const Provider: ({ children, }: React.PropsWithChildren<unknown>) => React.JSX.Element;
|
|
8
|
-
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props>>) => React.ComponentClass<Diff<Props, WithSmartCardStorageProps>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
type TaskItemsDone = boolean | undefined;
|
|
4
|
-
type TaskItemsStateContext = [
|
|
5
|
-
TaskItemsDone,
|
|
6
|
-
React.Dispatch<TaskItemsFormatReducerAction>
|
|
7
|
-
];
|
|
8
|
-
type TaskItemsFormatReducerAction = boolean | undefined;
|
|
9
|
-
export declare function TaskItemsFormatProvider({ children }: {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}): React.JSX.Element;
|
|
12
|
-
export declare function useTaskItemsFormatContext(): TaskItemsStateContext;
|
|
13
|
-
export declare function TaskItemsFormatConsumer({ children, }: {
|
|
14
|
-
children: ([isChecked, dispatch]: TaskItemsStateContext) => ReactNode;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const Provider: React.Provider<string | undefined>;
|
|
3
|
-
type Props = {
|
|
4
|
-
nestedHeaderIds: string[];
|
|
5
|
-
onNestedHeaderIdMatch: () => void;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* We need to expose this abstraction on top of the native Consumer in order to control when
|
|
9
|
-
* The consumer will get notified when a match has happened. If we use the Consumer directly in
|
|
10
|
-
* Expand components without this inner state, everytime a new prop comes in, and the `newActiveHeaderId`
|
|
11
|
-
* is the same as before, we will set the expand to true forever, until the active header id changes.
|
|
12
|
-
* Thus, the user won't be able to collapse the expand.
|
|
13
|
-
*
|
|
14
|
-
* By exposing `onNestedHeaderIdMatch` here we can control when will consumers be notified:
|
|
15
|
-
* only when a `newActiveHeaderId` comes in from the Provider and the list of header ids includes it.
|
|
16
|
-
*/
|
|
17
|
-
declare const ActiveHeaderIdConsumer: ({ nestedHeaderIds, onNestedHeaderIdMatch, }: Props) => React.JSX.Element;
|
|
18
|
-
export { Provider as ActiveHeaderIdProvider, ActiveHeaderIdConsumer };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type Context } from 'react';
|
|
2
|
-
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
4
|
-
export declare const ProvidersContext: Context<AnnotationProviders | null | undefined>;
|
|
5
|
-
export declare const InlineCommentsStateContext: Context<Record<string, AnnotationMarkStates | null>>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface AnnotationHoverStateContext {
|
|
4
|
-
isWithinRange: boolean;
|
|
5
|
-
}
|
|
6
|
-
interface AnnotationHoverDispatchContext {
|
|
7
|
-
cancelTimeout: () => void;
|
|
8
|
-
initiateTimeout: () => void;
|
|
9
|
-
setIsWithinRange: (isWithinRange: boolean) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const AnnotationHoverStateContext: React.Context<AnnotationHoverStateContext>;
|
|
12
|
-
declare const AnnotationHoverDispatchContext: React.Context<AnnotationHoverDispatchContext>;
|
|
13
|
-
export declare const AnnotationHoverContext: ({ children, }: {
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
}) => React.JSX.Element;
|
|
16
|
-
export declare const useAnnotationHoverContext: () => AnnotationHoverStateContext;
|
|
17
|
-
export declare const useAnnotationHoverDispatch: () => AnnotationHoverDispatchContext;
|
|
18
|
-
export {};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
4
|
-
import type { AnnotationId } from '@atlaskit/adf-schema';
|
|
5
|
-
import type { AnnotationManager, ActionResult } from '@atlaskit/editor-common/annotation';
|
|
6
|
-
import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
|
|
7
|
-
interface AnnotationState {
|
|
8
|
-
id: AnnotationId;
|
|
9
|
-
markState: AnnotationMarkStates;
|
|
10
|
-
}
|
|
11
|
-
type AnnotationsStateRecord = Record<AnnotationId, AnnotationState>;
|
|
12
|
-
interface AnnotationManagerStateContext {
|
|
13
|
-
annotations: AnnotationsStateRecord;
|
|
14
|
-
currentHoveredAnnotationId: AnnotationId | undefined;
|
|
15
|
-
currentSelectedAnnotationId: AnnotationId | undefined;
|
|
16
|
-
currentSelectedMarkRef: HTMLElement | undefined;
|
|
17
|
-
draftActionResult: ActionResult | undefined;
|
|
18
|
-
draftId: string | undefined;
|
|
19
|
-
draftMarkRef: HTMLElement | undefined;
|
|
20
|
-
isDrafting: boolean;
|
|
21
|
-
}
|
|
22
|
-
interface AnnotationManagerDispatchContext {
|
|
23
|
-
annotationManager: AnnotationManager | undefined;
|
|
24
|
-
dispatch: React.Dispatch<AnnotationManagerAction>;
|
|
25
|
-
}
|
|
26
|
-
declare const AnnotationManagerStateContext: React.Context<AnnotationManagerStateContext>;
|
|
27
|
-
declare const AnnotationManagerDispatchContext: React.Context<AnnotationManagerDispatchContext>;
|
|
28
|
-
type AnnotationManagerAction = {
|
|
29
|
-
type: 'reset';
|
|
30
|
-
} | {
|
|
31
|
-
data: {
|
|
32
|
-
id: AnnotationId;
|
|
33
|
-
markState?: AnnotationMarkStates;
|
|
34
|
-
}[];
|
|
35
|
-
type: 'loadAnnotation';
|
|
36
|
-
} | {
|
|
37
|
-
data: {
|
|
38
|
-
hovered?: boolean;
|
|
39
|
-
id: AnnotationId;
|
|
40
|
-
markState?: AnnotationMarkStates;
|
|
41
|
-
selected?: boolean;
|
|
42
|
-
};
|
|
43
|
-
type: 'updateAnnotation';
|
|
44
|
-
} | {
|
|
45
|
-
type: 'resetSelectedAnnotation';
|
|
46
|
-
} | {
|
|
47
|
-
type: 'resetHoveredAnnotation';
|
|
48
|
-
} | {
|
|
49
|
-
data: {
|
|
50
|
-
draftActionResult: ActionResult | undefined;
|
|
51
|
-
draftId: string | undefined;
|
|
52
|
-
isDrafting: boolean;
|
|
53
|
-
};
|
|
54
|
-
type: 'setDrafting';
|
|
55
|
-
} | {
|
|
56
|
-
data: {
|
|
57
|
-
draftMarkRef: HTMLElement | undefined;
|
|
58
|
-
};
|
|
59
|
-
type: 'setDraftMarkRef';
|
|
60
|
-
} | {
|
|
61
|
-
data: {
|
|
62
|
-
markRef: HTMLElement | undefined;
|
|
63
|
-
};
|
|
64
|
-
type: 'setSelectedMarkRef';
|
|
65
|
-
};
|
|
66
|
-
export declare const AnnotationManagerProvider: ({ children, annotationManager, updateSubscriber, }: {
|
|
67
|
-
annotationManager?: AnnotationManager;
|
|
68
|
-
children?: ReactNode;
|
|
69
|
-
updateSubscriber?: AnnotationUpdateEmitter;
|
|
70
|
-
}) => React.JSX.Element;
|
|
71
|
-
export declare const useAnnotationManagerState: () => AnnotationManagerStateContext;
|
|
72
|
-
export declare const useAnnotationManagerDispatch: () => AnnotationManagerDispatchContext;
|
|
73
|
-
export {};
|