@atlaskit/renderer 108.15.8 → 108.15.9
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 +6 -0
- package/dist/cjs/actions/index.js +2 -3
- package/dist/cjs/analytics/analyticsContext.js +1 -2
- package/dist/cjs/analytics/enums.js +5 -9
- package/dist/cjs/analytics/events.js +4 -7
- package/dist/cjs/analytics/unsupported-content.js +2 -3
- package/dist/cjs/consts.js +2 -3
- package/dist/cjs/i18n/cs.js +2 -3
- package/dist/cjs/i18n/da.js +2 -3
- package/dist/cjs/i18n/de.js +2 -3
- package/dist/cjs/i18n/en.js +2 -3
- package/dist/cjs/i18n/en_GB.js +2 -3
- package/dist/cjs/i18n/en_ZZ.js +2 -3
- package/dist/cjs/i18n/es.js +2 -3
- package/dist/cjs/i18n/et.js +1 -2
- package/dist/cjs/i18n/fi.js +2 -3
- package/dist/cjs/i18n/fr.js +2 -3
- package/dist/cjs/i18n/hu.js +2 -3
- package/dist/cjs/i18n/it.js +2 -3
- package/dist/cjs/i18n/ja.js +2 -3
- package/dist/cjs/i18n/ko.js +2 -3
- package/dist/cjs/i18n/nb.js +2 -3
- package/dist/cjs/i18n/nl.js +2 -3
- package/dist/cjs/i18n/pl.js +2 -3
- package/dist/cjs/i18n/pt_BR.js +2 -3
- package/dist/cjs/i18n/pt_PT.js +1 -2
- package/dist/cjs/i18n/ru.js +2 -3
- package/dist/cjs/i18n/sk.js +1 -2
- package/dist/cjs/i18n/sv.js +2 -3
- package/dist/cjs/i18n/th.js +2 -3
- package/dist/cjs/i18n/tr.js +2 -3
- package/dist/cjs/i18n/uk.js +2 -3
- package/dist/cjs/i18n/vi.js +2 -3
- package/dist/cjs/i18n/zh.js +2 -3
- package/dist/cjs/i18n/zh_TW.js +2 -3
- package/dist/cjs/messages.js +5 -9
- package/dist/cjs/react/hooks/use-bidi-warnings.js +2 -3
- package/dist/cjs/react/hooks/use-in-viewport.js +2 -3
- package/dist/cjs/react/index.js +3 -3
- package/dist/cjs/react/marks/annotation.js +2 -4
- package/dist/cjs/react/marks/breakout.js +1 -2
- package/dist/cjs/react/marks/code.js +2 -4
- package/dist/cjs/react/marks/confluence-inline-comment.js +2 -3
- package/dist/cjs/react/marks/index.js +3 -5
- package/dist/cjs/react/nodes/bodiedExtension.js +1 -2
- package/dist/cjs/react/nodes/caption.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -6
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -2
- package/dist/cjs/react/nodes/date.js +2 -4
- package/dist/cjs/react/nodes/decisionList.js +2 -3
- package/dist/cjs/react/nodes/emoji.js +2 -3
- package/dist/cjs/react/nodes/extension.js +3 -5
- package/dist/cjs/react/nodes/fallback.js +2 -3
- package/dist/cjs/react/nodes/hardBreak.js +1 -2
- package/dist/cjs/react/nodes/heading-anchor.js +2 -4
- package/dist/cjs/react/nodes/heading.js +1 -2
- package/dist/cjs/react/nodes/index.js +25 -50
- package/dist/cjs/react/nodes/inlineCard.js +1 -2
- package/dist/cjs/react/nodes/inlineExtension.js +1 -2
- package/dist/cjs/react/nodes/media/index.js +2 -3
- package/dist/cjs/react/nodes/media/styles.js +3 -5
- package/dist/cjs/react/nodes/mediaGroup.js +2 -3
- package/dist/cjs/react/nodes/mediaInline.js +3 -5
- package/dist/cjs/react/nodes/mediaSingle/index.js +2 -4
- package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -4
- package/dist/cjs/react/nodes/mention.js +2 -3
- package/dist/cjs/react/nodes/orderedList.js +1 -1
- package/dist/cjs/react/nodes/panel.js +1 -2
- package/dist/cjs/react/nodes/status.js +2 -3
- package/dist/cjs/react/nodes/table/colgroup.js +3 -5
- package/dist/cjs/react/nodes/table/sticky.js +5 -9
- package/dist/cjs/react/nodes/table/table.js +2 -3
- package/dist/cjs/react/nodes/table.js +4 -8
- package/dist/cjs/react/nodes/tableCell.js +3 -6
- package/dist/cjs/react/nodes/tableRow.js +2 -3
- package/dist/cjs/react/nodes/task-item-with-providers.js +2 -3
- package/dist/cjs/react/nodes/taskItem.js +2 -3
- package/dist/cjs/react/nodes/taskList.js +2 -3
- package/dist/cjs/react/nodes/text-wrapper.js +1 -2
- package/dist/cjs/react/renderer-node.js +5 -9
- package/dist/cjs/react/utils/appearance.js +4 -7
- package/dist/cjs/react/utils/clipboard.js +2 -3
- package/dist/cjs/react/utils/element-selection.js +2 -3
- package/dist/cjs/react/utils/getCardClickHandler.js +2 -3
- package/dist/cjs/react/utils/use-select-all-trap.js +2 -3
- package/dist/cjs/render-document.js +2 -3
- package/dist/cjs/renderer-context.js +2 -4
- package/dist/cjs/text/index.js +2 -3
- package/dist/cjs/text/nodes/blockquote.js +1 -2
- package/dist/cjs/text/nodes/bulletList.js +1 -2
- package/dist/cjs/text/nodes/date.js +1 -2
- package/dist/cjs/text/nodes/decisionItem.js +1 -2
- package/dist/cjs/text/nodes/hardBreak.js +1 -2
- package/dist/cjs/text/nodes/heading.js +1 -2
- package/dist/cjs/text/nodes/index.js +3 -5
- package/dist/cjs/text/nodes/inlineCard.js +1 -2
- package/dist/cjs/text/nodes/listItem.js +1 -2
- package/dist/cjs/text/nodes/mediaGroup.js +1 -2
- package/dist/cjs/text/nodes/mention.js +1 -2
- package/dist/cjs/text/nodes/orderedList.js +1 -2
- package/dist/cjs/text/nodes/panel.js +1 -2
- package/dist/cjs/text/nodes/paragraph.js +1 -2
- package/dist/cjs/text/nodes/rule.js +1 -2
- package/dist/cjs/text/nodes/status.js +1 -2
- package/dist/cjs/text/nodes/table.js +1 -2
- package/dist/cjs/text/nodes/taskItem.js +1 -2
- package/dist/cjs/text/nodes/unknown.js +1 -2
- package/dist/cjs/ui/Expand.js +1 -2
- package/dist/cjs/ui/ExtensionRenderer.js +5 -6
- package/dist/cjs/ui/MediaCard.js +5 -10
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +2 -3
- package/dist/cjs/ui/Renderer/breakout-ssr.js +2 -4
- package/dist/cjs/ui/Renderer/index.js +9 -13
- package/dist/cjs/ui/Renderer/style.js +7 -10
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +2 -3
- package/dist/cjs/ui/RendererActionsContext/index.js +2 -4
- package/dist/cjs/ui/SmartCardStorage.js +4 -7
- package/dist/cjs/ui/SortingIcon.js +2 -4
- package/dist/cjs/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -2
- package/dist/cjs/ui/active-header-id-provider.js +3 -5
- package/dist/cjs/ui/annotations/context.js +5 -9
- package/dist/cjs/ui/annotations/draft/component.js +5 -9
- package/dist/cjs/ui/annotations/draft/dom.js +3 -5
- package/dist/cjs/ui/annotations/draft/position.js +2 -3
- package/dist/cjs/ui/annotations/draft/text.js +4 -7
- package/dist/cjs/ui/annotations/element/index.js +2 -3
- package/dist/cjs/ui/annotations/element/mark.js +2 -3
- package/dist/cjs/ui/annotations/hooks/use-events.js +4 -7
- package/dist/cjs/ui/annotations/hooks/use-inline-comment-subscriber.js +2 -3
- package/dist/cjs/ui/annotations/hooks/use-inline-comments-filter.js +2 -3
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +2 -3
- package/dist/cjs/ui/annotations/hooks/user-selection.js +2 -3
- package/dist/cjs/ui/annotations/hooks/utils.js +2 -3
- package/dist/cjs/ui/annotations/index.js +2 -3
- package/dist/cjs/ui/annotations/selection/mounter.js +2 -3
- package/dist/cjs/ui/annotations/selection/range-validator.js +2 -3
- package/dist/cjs/ui/annotations/selection/wrapper.js +2 -3
- package/dist/cjs/ui/annotations/types.js +2 -3
- package/dist/cjs/ui/annotations/view/index.js +2 -3
- package/dist/cjs/use-feature-flags.js +2 -3
- package/dist/cjs/utils.js +4 -8
- package/dist/es2019/react/index.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/index.js +1 -0
- package/dist/esm/react/nodes/mediaInline.js +1 -1
- package/dist/esm/react/nodes/orderedList.js +1 -1
- package/dist/esm/ui/ExtensionRenderer.js +3 -3
- package/dist/esm/ui/Renderer/index.js +5 -5
- package/package.json +5 -5
- package/dist/types-ts4.5/actions/index.d.ts +0 -61
- package/dist/types-ts4.5/actions/matches-utils.d.ts +0 -7
- package/dist/types-ts4.5/actions.d.ts +0 -3
- package/dist/types-ts4.5/analytics/analyticsContext.d.ts +0 -6
- package/dist/types-ts4.5/analytics/enums.d.ts +0 -58
- package/dist/types-ts4.5/analytics/events.d.ts +0 -118
- package/dist/types-ts4.5/analytics/unsupported-content.d.ts +0 -10
- package/dist/types-ts4.5/consts.d.ts +0 -12
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -25
- package/dist/types-ts4.5/i18n/da.d.ts +0 -20
- package/dist/types-ts4.5/i18n/de.d.ts +0 -20
- package/dist/types-ts4.5/i18n/en.d.ts +0 -25
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -25
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -25
- package/dist/types-ts4.5/i18n/es.d.ts +0 -20
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -25
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -20
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -20
- package/dist/types-ts4.5/i18n/index.d.ts +0 -31
- package/dist/types-ts4.5/i18n/it.d.ts +0 -20
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -25
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -20
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -20
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -20
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -20
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -25
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -25
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -20
- package/dist/types-ts4.5/i18n/th.d.ts +0 -20
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -20
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -25
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -20
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -20
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -20
- package/dist/types-ts4.5/index.d.ts +0 -11
- package/dist/types-ts4.5/messages.d.ts +0 -88
- 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 -124
- 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/breakout.d.ts +0 -6
- package/dist/types-ts4.5/react/marks/code.d.ts +0 -16
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +0 -8
- 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/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 -21
- package/dist/types-ts4.5/react/marks/link.d.ts +0 -9
- 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/blockCard.d.ts +0 -15
- package/dist/types-ts4.5/react/nodes/blockquote.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +0 -24
- package/dist/types-ts4.5/react/nodes/bulletList.d.ts +0 -5
- package/dist/types-ts4.5/react/nodes/caption.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +0 -15
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +0 -12
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -10
- 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 -11
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/date.d.ts +0 -11
- 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 -19
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +0 -12
- package/dist/types-ts4.5/react/nodes/extension.d.ts +0 -113
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +0 -19
- package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +0 -14
- package/dist/types-ts4.5/react/nodes/heading.d.ts +0 -14
- package/dist/types-ts4.5/react/nodes/index.d.ts +0 -98
- package/dist/types-ts4.5/react/nodes/inline.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +0 -65
- package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +0 -18
- package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/listItem.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/media/index.d.ts +0 -27
- package/dist/types-ts4.5/react/nodes/media/styles.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +0 -30
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +0 -38
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +0 -24
- package/dist/types-ts4.5/react/nodes/mediaSingle/styles.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/mention.d.ts +0 -13
- package/dist/types-ts4.5/react/nodes/orderedList.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/panel.d.ts +0 -17
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/placeholder.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/rule.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/status.d.ts +0 -10
- package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +0 -43
- package/dist/types-ts4.5/react/nodes/table/table.d.ts +0 -7
- package/dist/types-ts4.5/react/nodes/table/types.d.ts +0 -12
- package/dist/types-ts4.5/react/nodes/table.d.ts +0 -282
- package/dist/types-ts4.5/react/nodes/tableCell.d.ts +0 -81
- package/dist/types-ts4.5/react/nodes/tableRow.d.ts +0 -24
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +0 -29
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +0 -19
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +0 -8
- package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +0 -8
- package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +0 -2
- package/dist/types-ts4.5/react/renderer-node.d.ts +0 -5
- package/dist/types-ts4.5/react/types.d.ts +0 -58
- package/dist/types-ts4.5/react/utils/appearance.d.ts +0 -4
- 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 -2
- 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/performance/RenderTracking.d.ts +0 -15
- 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 -23
- package/dist/types-ts4.5/renderer-context.d.ts +0 -7
- package/dist/types-ts4.5/serializer.d.ts +0 -4
- package/dist/types-ts4.5/steps/index.d.ts +0 -14
- 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 -6
- 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 -13
- package/dist/types-ts4.5/types/smartLinksOptions.d.ts +0 -7
- package/dist/types-ts4.5/ui/Expand.d.ts +0 -23
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +0 -42
- package/dist/types-ts4.5/ui/MediaCard.d.ts +0 -79
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +0 -24
- package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +0 -11
- package/dist/types-ts4.5/ui/Renderer/click-to-edit.d.ts +0 -6
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +0 -38
- package/dist/types-ts4.5/ui/Renderer/style.d.ts +0 -16
- package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +0 -12
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +0 -16
- package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +0 -6
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +0 -60
- package/dist/types-ts4.5/ui/SortingIcon.d.ts +0 -23
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -15
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +0 -2
- 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 -27
- package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +0 -20
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +0 -7
- package/dist/types-ts4.5/ui/annotations/draft/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +0 -2
- 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 -10
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +0 -14
- package/dist/types-ts4.5/ui/annotations/hooks/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +0 -18
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -1
- 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 -6
- package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +0 -9
- package/dist/types-ts4.5/ui/annotations/hooks/utils.d.ts +0 -2
- package/dist/types-ts4.5/ui/annotations/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/annotations/selection/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +0 -20
- package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +0 -13
- package/dist/types-ts4.5/ui/annotations/selection/wrapper.d.ts +0 -8
- package/dist/types-ts4.5/ui/annotations/types.d.ts +0 -22
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/renderer-props.d.ts +0 -115
- package/dist/types-ts4.5/use-feature-flags.d.ts +0 -2
- package/dist/types-ts4.5/utils.d.ts +0 -24
- package/tmp/api-report-tmp.d.ts +0 -552
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Theme } from '@emotion/react';
|
|
2
|
-
import type { RendererAppearance } from './types';
|
|
3
|
-
export declare const FullPagePadding = 32;
|
|
4
|
-
export type RendererWrapperProps = {
|
|
5
|
-
appearance?: RendererAppearance;
|
|
6
|
-
allowNestedHeaderLinks: boolean;
|
|
7
|
-
allowColumnSorting: boolean;
|
|
8
|
-
useBlockRenderForCodeBlock: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const TELEPOINTER_ID = "ai-streaming-telepointer";
|
|
11
|
-
export declare const headingSizes: {
|
|
12
|
-
[key: string]: {
|
|
13
|
-
[key: string]: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const rendererStyles: (wrapperProps: RendererWrapperProps) => (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import { Component } from 'react';
|
|
4
|
-
export interface TruncatedWrapperProps {
|
|
5
|
-
height?: number;
|
|
6
|
-
fadeHeight?: number;
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, {}> {
|
|
10
|
-
constructor(props: TruncatedWrapperProps);
|
|
11
|
-
render(): jsx.JSX.Element;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'mobile' | undefined;
|
|
3
|
-
export type StickyHeaderConfig = {
|
|
4
|
-
offsetTop?: number;
|
|
5
|
-
};
|
|
6
|
-
export type StickyHeaderProps = boolean | ({
|
|
7
|
-
show?: boolean;
|
|
8
|
-
} & StickyHeaderConfig);
|
|
9
|
-
export type HeadingAnchorLinksConfig = {
|
|
10
|
-
activeHeadingId?: string;
|
|
11
|
-
allowNestedHeaderLinks?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type NodeComponentsProps = {
|
|
14
|
-
[key: string]: React.ComponentType<any>;
|
|
15
|
-
};
|
|
16
|
-
export type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import RendererActions from '../../actions/index';
|
|
3
|
-
export interface WithRendererActionsProps {
|
|
4
|
-
render(actions: RendererActions): ReactNode | null;
|
|
5
|
-
}
|
|
6
|
-
export declare function WithRendererActions({ render }: WithRendererActionsProps): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import RendererActions from '../../actions/index';
|
|
3
|
-
export declare const RendererContext: React.Context<RendererActions>;
|
|
4
|
-
type RendererActionsContextProps = PropsWithChildren<{
|
|
5
|
-
context?: RendererActions;
|
|
6
|
-
}>;
|
|
7
|
-
export declare function RendererActionsContext({ children, context, }: RendererActionsContextProps): JSX.Element;
|
|
8
|
-
export declare const RendererActionsContextConsumer: React.Consumer<RendererActions>;
|
|
9
|
-
export {};
|
|
@@ -1,60 +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: React.FunctionComponent;
|
|
8
|
-
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<Props>) => {
|
|
9
|
-
new (props: Diff<Props, WithSmartCardStorageProps> | Readonly<Diff<Props, WithSmartCardStorageProps>>): {
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
context: any;
|
|
12
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
13
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
14
|
-
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>> & Readonly<{
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}>;
|
|
17
|
-
state: Readonly<{}>;
|
|
18
|
-
refs: {
|
|
19
|
-
[key: string]: React.ReactInstance;
|
|
20
|
-
};
|
|
21
|
-
componentDidMount?(): void;
|
|
22
|
-
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
23
|
-
componentWillUnmount?(): void;
|
|
24
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
25
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
26
|
-
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
27
|
-
componentWillMount?(): void;
|
|
28
|
-
UNSAFE_componentWillMount?(): void;
|
|
29
|
-
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
30
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
31
|
-
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
32
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
33
|
-
};
|
|
34
|
-
new (props: Diff<Props, WithSmartCardStorageProps>, context: any): {
|
|
35
|
-
render(): JSX.Element;
|
|
36
|
-
context: any;
|
|
37
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>> & Readonly<{
|
|
40
|
-
children?: React.ReactNode;
|
|
41
|
-
}>;
|
|
42
|
-
state: Readonly<{}>;
|
|
43
|
-
refs: {
|
|
44
|
-
[key: string]: React.ReactInstance;
|
|
45
|
-
};
|
|
46
|
-
componentDidMount?(): void;
|
|
47
|
-
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
48
|
-
componentWillUnmount?(): void;
|
|
49
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
50
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
51
|
-
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
52
|
-
componentWillMount?(): void;
|
|
53
|
-
UNSAFE_componentWillMount?(): void;
|
|
54
|
-
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
55
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
56
|
-
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
58
|
-
};
|
|
59
|
-
contextType?: React.Context<any> | undefined;
|
|
60
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
export declare enum StatusClassNames {
|
|
5
|
-
ASC = "sorting-icon-svg__asc",
|
|
6
|
-
DESC = "sorting-icon-svg__desc",
|
|
7
|
-
NO_ORDER = "sorting-icon-svg__no_order",
|
|
8
|
-
SORTING_NOT_ALLOWED = "sorting-icon-svg__not-allowed"
|
|
9
|
-
}
|
|
10
|
-
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
|
|
11
|
-
isSortingAllowed: boolean;
|
|
12
|
-
sortOrdered?: SortOrder | undefined;
|
|
13
|
-
onClick: () => void;
|
|
14
|
-
onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
|
|
15
|
-
} & WrappedComponentProps<"intl">>> & {
|
|
16
|
-
WrappedComponent: import("react").ComponentType<{
|
|
17
|
-
isSortingAllowed: boolean;
|
|
18
|
-
sortOrdered?: SortOrder | undefined;
|
|
19
|
-
onClick: () => void;
|
|
20
|
-
onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
|
|
21
|
-
} & WrappedComponentProps<"intl">>;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export type TaskItemsDone = boolean | undefined;
|
|
3
|
-
export type TaskItemsStateContext = [
|
|
4
|
-
TaskItemsDone,
|
|
5
|
-
React.Dispatch<TaskItemsFormatReducerAction>
|
|
6
|
-
];
|
|
7
|
-
export declare const TaskItemsFormatContext: React.Context<TaskItemsStateContext>;
|
|
8
|
-
export type TaskItemsFormatReducerAction = boolean | undefined;
|
|
9
|
-
export declare function TaskItemsFormatProvider({ children }: {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
export declare function useTaskItemsFormatContext(): TaskItemsStateContext;
|
|
13
|
-
export declare function TaskItemsFormatConsumer({ children, }: {
|
|
14
|
-
children: ([isChecked, dispatch]: TaskItemsStateContext) => ReactNode;
|
|
15
|
-
}): JSX.Element;
|
|
@@ -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) => JSX.Element;
|
|
18
|
-
export { Provider as ActiveHeaderIdProvider, ActiveHeaderIdConsumer };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Position } from './types';
|
|
3
|
-
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
5
|
-
type ChildrenProps = {
|
|
6
|
-
applyAnnotationDraftAt: (position: Position) => void;
|
|
7
|
-
clearAnnotationDraft: () => void;
|
|
8
|
-
};
|
|
9
|
-
export type RenderCallbackType = React.FC<ChildrenProps>;
|
|
10
|
-
type Props = {
|
|
11
|
-
children: RenderCallbackType;
|
|
12
|
-
};
|
|
13
|
-
type State = {
|
|
14
|
-
position: Position | null;
|
|
15
|
-
};
|
|
16
|
-
export declare const AnnotationsDraftContext: React.Context<Position | null>;
|
|
17
|
-
export declare const ProvidersContext: React.Context<AnnotationProviders | null | undefined>;
|
|
18
|
-
export declare const InlineCommentsStateContext: React.Context<Record<string, AnnotationMarkStates | null>>;
|
|
19
|
-
export declare class AnnotationsDraftContextWrapper extends React.Component<Props, State> {
|
|
20
|
-
state: {
|
|
21
|
-
position: null;
|
|
22
|
-
};
|
|
23
|
-
render(): JSX.Element;
|
|
24
|
-
applyAnnotationDraftAt: (nextPosition: Position) => void;
|
|
25
|
-
clearAnnotationDraft: () => void;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
import { InsertDraftPosition, Position } from '../types';
|
|
4
|
-
export declare const AnnotationDraft: React.FC<{
|
|
5
|
-
draftPosition: Position;
|
|
6
|
-
}>;
|
|
7
|
-
type ApplyAnnotationsProps = {
|
|
8
|
-
texts: string[];
|
|
9
|
-
shouldApplyAnnotationAt: InsertDraftPosition.INSIDE | InsertDraftPosition.START | InsertDraftPosition.END;
|
|
10
|
-
draftPosition: Position;
|
|
11
|
-
};
|
|
12
|
-
export declare const getAnnotationIndex: (annotationPosition: InsertDraftPosition, fragmentCount: number) => number;
|
|
13
|
-
export declare const applyAnnotationOnText: ({ texts, shouldApplyAnnotationAt, draftPosition, }: ApplyAnnotationsProps) => JSX.Element[];
|
|
14
|
-
type Props = {
|
|
15
|
-
startPos: number;
|
|
16
|
-
endPos: number;
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
};
|
|
19
|
-
export declare const TextWithAnnotationDraft: React.FC<Props>;
|
|
20
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Position } from '../types';
|
|
2
|
-
export declare const dataAttributes: ({ from, to }: Position) => {
|
|
3
|
-
"data-annotation-draft-mark": boolean;
|
|
4
|
-
"data-draft-start-at": number;
|
|
5
|
-
"data-draft-end-at": number;
|
|
6
|
-
};
|
|
7
|
-
export declare const updateWindowSelectionAroundDraft: (pos: Position) => boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextPosition, Position } from '../types';
|
|
3
|
-
export declare const findTextString: (reactNode: React.ReactNode) => string | null;
|
|
4
|
-
type Offset = {
|
|
5
|
-
startOffset: number;
|
|
6
|
-
endOffset: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const splitText: (text: string, { startOffset, endOffset }: Offset) => string[] | null;
|
|
9
|
-
export declare const calcTextSplitOffset: (position: Position, textPosition: TextPosition, text: string) => {
|
|
10
|
-
startOffset: number;
|
|
11
|
-
endOffset: number;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
|
-
type MarkElementProps = {
|
|
4
|
-
id: AnnotationId;
|
|
5
|
-
annotationParentIds: AnnotationId[];
|
|
6
|
-
dataAttributes: AnnotationDataAttributes;
|
|
7
|
-
annotationType: AnnotationTypes;
|
|
8
|
-
};
|
|
9
|
-
declare const MarkElement: React.FC<MarkElementProps>;
|
|
10
|
-
export { MarkElement };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { AnnotationMarkStates, AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
|
|
5
|
-
type MarkComponentProps = {
|
|
6
|
-
id: AnnotationId;
|
|
7
|
-
annotationParentIds: AnnotationId[];
|
|
8
|
-
dataAttributes: AnnotationDataAttributes;
|
|
9
|
-
state: AnnotationMarkStates | null;
|
|
10
|
-
hasFocus: boolean;
|
|
11
|
-
onClick: (props: OnAnnotationClickPayload) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const MarkComponent: React.FC<MarkComponentProps>;
|
|
14
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { InlineCommentViewComponentProps } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { AnnotationMarkStates, AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
4
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
-
type ListenEventProps = {
|
|
6
|
-
id: AnnotationId;
|
|
7
|
-
updateSubscriber: AnnotationUpdateEmitter | null;
|
|
8
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
9
|
-
};
|
|
10
|
-
type UseAnnotationUpdateSatteByEventProps = {
|
|
11
|
-
type: AnnotationTypes;
|
|
12
|
-
updateSubscriber: AnnotationUpdateEmitter | null;
|
|
13
|
-
};
|
|
14
|
-
export declare const useAnnotationStateByTypeEvent: ({ type, updateSubscriber, }: UseAnnotationUpdateSatteByEventProps) => Record<string, AnnotationMarkStates | null>;
|
|
15
|
-
export declare const useHasFocusEvent: ({ id, updateSubscriber, }: ListenEventProps) => boolean;
|
|
16
|
-
type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
|
|
17
|
-
export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps, 'updateSubscriber' | 'createAnalyticsEvent'>) => AnnotationsWithClickTarget;
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useInlineCommentSubscriberContext: () => import("@atlaskit/editor-common/types").AnnotationUpdateEmitter | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AnnotationId, AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
2
|
-
type Props = {
|
|
3
|
-
annotationIds: AnnotationId[];
|
|
4
|
-
filter: {
|
|
5
|
-
state: AnnotationMarkStates;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare const useInlineCommentsFilter: ({ annotationIds, filter: { state: stateFilter }, }: Props) => string[];
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Wrapper as SelectionComponentWrapper } from './wrapper';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { AnnotationByMatches, InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { ApplyAnnotation } from '../../../actions/index';
|
|
4
|
-
import { Position } from '../types';
|
|
5
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
6
|
-
type Props = {
|
|
7
|
-
range: Range;
|
|
8
|
-
component: React.ComponentType<InlineCommentSelectionComponentProps>;
|
|
9
|
-
wrapperDOM: React.RefObject<HTMLDivElement>;
|
|
10
|
-
documentPosition: Position | false;
|
|
11
|
-
isAnnotationAllowed: boolean;
|
|
12
|
-
onClose: () => void;
|
|
13
|
-
applyAnnotation: ApplyAnnotation;
|
|
14
|
-
applyAnnotationDraftAt: (position: Position) => void;
|
|
15
|
-
clearAnnotationDraft: () => void;
|
|
16
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
17
|
-
generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
|
|
18
|
-
};
|
|
19
|
-
export declare const SelectionInlineCommentMounter: React.FC<Props>;
|
|
20
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Position } from '../types';
|
|
3
|
-
import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
-
type Props = {
|
|
6
|
-
selectionComponent: React.ComponentType<InlineCommentSelectionComponentProps>;
|
|
7
|
-
rendererRef: React.RefObject<HTMLDivElement>;
|
|
8
|
-
applyAnnotationDraftAt: (position: Position) => void;
|
|
9
|
-
clearAnnotationDraft: () => void;
|
|
10
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
11
|
-
};
|
|
12
|
-
export declare const SelectionRangeValidator: React.FC<Props>;
|
|
13
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
type Props = {
|
|
4
|
-
rendererRef: React.RefObject<HTMLDivElement>;
|
|
5
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
6
|
-
};
|
|
7
|
-
export declare const Wrapper: (props: React.PropsWithChildren<Props>) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
3
|
-
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare enum InsertDraftPosition {
|
|
5
|
-
AROUND_TEXT = "AROUND_TEXT",
|
|
6
|
-
START = "START",
|
|
7
|
-
END = "END",
|
|
8
|
-
INSIDE = "INSIDE"
|
|
9
|
-
}
|
|
10
|
-
export type Position = {
|
|
11
|
-
from: number;
|
|
12
|
-
to: number;
|
|
13
|
-
};
|
|
14
|
-
export type AnnotationsWrapperProps = {
|
|
15
|
-
adfDocument: JSONDocNode;
|
|
16
|
-
annotationProvider: AnnotationProviders | null | undefined;
|
|
17
|
-
rendererRef: React.RefObject<HTMLDivElement>;
|
|
18
|
-
};
|
|
19
|
-
export type TextPosition = {
|
|
20
|
-
start: number;
|
|
21
|
-
end: number;
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Renderer } from './Renderer';
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { 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 { ADFStage } from '@atlaskit/editor-common/validator';
|
|
6
|
-
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
8
|
-
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import type { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
10
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
11
|
-
import type { RendererContext } from '../';
|
|
12
|
-
import type { RenderOutputStat } from '../render-document';
|
|
13
|
-
import type { RendererAppearance, StickyHeaderProps, HeadingAnchorLinksProps, NodeComponentsProps } from './Renderer/types';
|
|
14
|
-
import type { MediaOptions } from '../types/mediaOptions';
|
|
15
|
-
import type { SmartLinksOptions } from '../types/smartLinksOptions';
|
|
16
|
-
import type { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
17
|
-
import type { DocNode } from '@atlaskit/adf-schema';
|
|
18
|
-
export interface RawObjectFeatureFlags {
|
|
19
|
-
['renderer-render-tracking']: string;
|
|
20
|
-
}
|
|
21
|
-
export interface NormalizedObjectFeatureFlags {
|
|
22
|
-
rendererRenderTracking: {
|
|
23
|
-
[ACTION_SUBJECT.RENDERER]: {
|
|
24
|
-
enabled: boolean;
|
|
25
|
-
useShallow: boolean;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export interface RendererProps {
|
|
30
|
-
document: DocNode;
|
|
31
|
-
dataProviders?: ProviderFactory;
|
|
32
|
-
eventHandlers?: EventHandlers;
|
|
33
|
-
extensionHandlers?: ExtensionHandlers;
|
|
34
|
-
enableSsrInlineScripts?: boolean;
|
|
35
|
-
onComplete?: (stat: RenderOutputStat) => void;
|
|
36
|
-
onError?: (error: any) => void;
|
|
37
|
-
portal?: HTMLElement;
|
|
38
|
-
rendererContext?: RendererContext;
|
|
39
|
-
schema?: Schema;
|
|
40
|
-
appearance?: RendererAppearance;
|
|
41
|
-
adfStage?: ADFStage;
|
|
42
|
-
disableHeadingIDs?: boolean;
|
|
43
|
-
disableActions?: boolean;
|
|
44
|
-
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
45
|
-
allowPlaceholderText?: boolean;
|
|
46
|
-
maxHeight?: number;
|
|
47
|
-
fadeOutHeight?: number;
|
|
48
|
-
truncated?: boolean;
|
|
49
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
50
|
-
allowColumnSorting?: boolean;
|
|
51
|
-
shouldOpenMediaViewer?: boolean;
|
|
52
|
-
allowAltTextOnImages?: boolean;
|
|
53
|
-
stickyHeaders?: StickyHeaderProps;
|
|
54
|
-
media?: MediaOptions;
|
|
55
|
-
emojiResourceConfig?: EmojiResourceConfig;
|
|
56
|
-
smartLinks?: SmartLinksOptions;
|
|
57
|
-
allowAnnotations?: boolean;
|
|
58
|
-
annotationProvider?: AnnotationProviders | null;
|
|
59
|
-
innerRef?: React.RefObject<HTMLDivElement>;
|
|
60
|
-
/** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-3649 Internal documentation for deprecation (no external access)} This prop will be removed and set as default enabled, as the same flag on the Editor is also now default enabled. */
|
|
61
|
-
useSpecBasedValidator?: boolean;
|
|
62
|
-
allowCopyToClipboard?: boolean;
|
|
63
|
-
allowWrapCodeBlock?: boolean;
|
|
64
|
-
allowCustomPanels?: boolean;
|
|
65
|
-
analyticsEventSeverityTracking?: {
|
|
66
|
-
enabled: boolean;
|
|
67
|
-
severityNormalThreshold: number;
|
|
68
|
-
severityDegradedThreshold: number;
|
|
69
|
-
};
|
|
70
|
-
allowUgcScrubber?: boolean;
|
|
71
|
-
allowSelectAllTrap?: boolean;
|
|
72
|
-
unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking;
|
|
73
|
-
nodeComponents?: NodeComponentsProps;
|
|
74
|
-
/**
|
|
75
|
-
* When enabled a trailing telepointer will be added to the rendered document
|
|
76
|
-
* following content updates.
|
|
77
|
-
*
|
|
78
|
-
* Content is updated by passing a new value prop to the renderer.
|
|
79
|
-
*
|
|
80
|
-
* The trailing pointer is updated by dom injection to the last text node which
|
|
81
|
-
* is updated as a result of a content update.
|
|
82
|
-
*/
|
|
83
|
-
addTelepointer?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* @default undefined
|
|
86
|
-
* @description
|
|
87
|
-
* Short lived feature flags for experiments and gradual rollouts
|
|
88
|
-
* Flags are expected to follow these rules or they are filtered out
|
|
89
|
-
*
|
|
90
|
-
* 1. cased in kebab-case (match [a-z-])
|
|
91
|
-
* 2. have boolean values or object {} values
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```tsx
|
|
95
|
-
* (<Renderer featureFlags={{ 'my-feature': true }} />);
|
|
96
|
-
* getFeatureFlags()?.myFeature === true;
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
* ```tsx
|
|
101
|
-
* (<Renderer featureFlags={{ 'my-feature': 'thing' }} />);
|
|
102
|
-
* getFeatureFlags()?.myFeature === undefined;
|
|
103
|
-
* ```
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* ```tsx
|
|
107
|
-
* (<Renderer featureFlags={{ 'product.my-feature': false }} />);
|
|
108
|
-
* getFeatureFlags()?.myFeature === undefined;
|
|
109
|
-
* getFeatureFlags()?.productMyFeature === undefined;
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
featureFlags?: {
|
|
113
|
-
[featureFlag: string]: boolean;
|
|
114
|
-
} | Partial<RawObjectFeatureFlags>;
|
|
115
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { ADNode } from '@atlaskit/editor-common/validator';
|
|
3
|
-
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { RendererAppearance } from './ui/Renderer/types';
|
|
7
|
-
export type TransformerProvider<T> = (schema: Schema) => Transformer<T>;
|
|
8
|
-
export declare class ADFEncoder<T> {
|
|
9
|
-
encode: (value: T) => any;
|
|
10
|
-
constructor(createTransformerWithSchema: TransformerProvider<T>);
|
|
11
|
-
}
|
|
12
|
-
export declare const getText: (node: PMNode | ADNode) => string;
|
|
13
|
-
export declare const getEventHandler: (eventHandlers?: EventHandlers, type?: keyof EventHandlers, eventName?: string) => any;
|
|
14
|
-
export declare const getPlatform: (rendererAppearance: RendererAppearance) => "mobile" | "web";
|
|
15
|
-
/**
|
|
16
|
-
* Traverse through parent elements of element. Return element for which evaluate(element) returns
|
|
17
|
-
* true. If topElement is reached before evaluate returns true, return false. Does not run evaluate
|
|
18
|
-
* on topElement.
|
|
19
|
-
* @param element Starting HTMLElement
|
|
20
|
-
* @param topElement HTMLElement to end search at. evaluate is not called on this element
|
|
21
|
-
* @param evaluate Function which returns true or false based on the given element. eg: Checks if
|
|
22
|
-
* element has desired classname.
|
|
23
|
-
*/
|
|
24
|
-
export declare function findInTree(element: HTMLElement, topElement: HTMLElement, evaluate: (element: HTMLElement) => boolean): boolean;
|