@atlaskit/renderer 108.15.7 → 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 +13 -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 +48 -53
- 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 +36 -37
- 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 +44 -45
- 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
|
@@ -35,7 +35,7 @@ var ExtensionRenderer = /*#__PURE__*/function (_React$Component) {
|
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(_assertThisInitialized(_this), "getNodeRenderer", memoizeOne(getNodeRenderer));
|
|
37
37
|
_defineProperty(_assertThisInitialized(_this), "renderExtensionNode", function (extensionProvider) {
|
|
38
|
-
var _marks$find
|
|
38
|
+
var _marks$find;
|
|
39
39
|
var _this$props = _this.props,
|
|
40
40
|
extensionHandlers = _this$props.extensionHandlers,
|
|
41
41
|
rendererContext = _this$props.rendererContext,
|
|
@@ -47,9 +47,9 @@ var ExtensionRenderer = /*#__PURE__*/function (_React$Component) {
|
|
|
47
47
|
type = _this$props.type,
|
|
48
48
|
localId = _this$props.localId,
|
|
49
49
|
marks = _this$props.marks;
|
|
50
|
-
var fragmentLocalId = marks === null || marks === void 0
|
|
50
|
+
var fragmentLocalId = marks === null || marks === void 0 || (_marks$find = marks.find(function (m) {
|
|
51
51
|
return m.type.name === 'fragment';
|
|
52
|
-
})) === null || _marks$find === void 0
|
|
52
|
+
})) === null || _marks$find === void 0 || (_marks$find = _marks$find.attrs) === null || _marks$find === void 0 ? void 0 : _marks$find.localId;
|
|
53
53
|
var node = {
|
|
54
54
|
type: type,
|
|
55
55
|
extensionKey: extensionKey,
|
|
@@ -45,7 +45,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
45
45
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
var packageName = "@atlaskit/renderer";
|
|
48
|
-
var packageVersion = "108.15.
|
|
48
|
+
var packageVersion = "108.15.9";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
|
@@ -188,7 +188,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
188
188
|
});
|
|
189
189
|
this.rafID = requestAnimationFrame(function () {
|
|
190
190
|
stopMeasure("Renderer Render Time: ".concat(_this2.id), function (duration) {
|
|
191
|
-
var _analyticsEventSeveri, _analyticsEventSeveri2, _this2$props
|
|
191
|
+
var _analyticsEventSeveri, _analyticsEventSeveri2, _this2$props;
|
|
192
192
|
var analyticsEventSeverityTracking = _this2.props.analyticsEventSeverityTracking;
|
|
193
193
|
var forceSeverityTracking = typeof analyticsEventSeverityTracking === 'undefined' && shouldForceTracking();
|
|
194
194
|
var severity = !!forceSeverityTracking || analyticsEventSeverityTracking !== null && analyticsEventSeverityTracking !== void 0 && analyticsEventSeverityTracking.enabled ? getAnalyticsEventSeverity(duration, (_analyticsEventSeveri = analyticsEventSeverityTracking === null || analyticsEventSeverityTracking === void 0 ? void 0 : analyticsEventSeverityTracking.severityNormalThreshold) !== null && _analyticsEventSeveri !== void 0 ? _analyticsEventSeveri : NORMAL_SEVERITY_THRESHOLD, (_analyticsEventSeveri2 = analyticsEventSeverityTracking === null || analyticsEventSeverityTracking === void 0 ? void 0 : analyticsEventSeverityTracking.severityDegradedThreshold) !== null && _analyticsEventSeveri2 !== void 0 ? _analyticsEventSeveri2 : DEGRADED_SEVERITY_THRESHOLD) : undefined;
|
|
@@ -196,7 +196,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
196
196
|
// ED-16320: Check for explicit disable so that by default
|
|
197
197
|
// it will still be enabled as it currently is. Then we can
|
|
198
198
|
// progressively opt out synthetic tenants.
|
|
199
|
-
var isTTRTrackingExplicitlyDisabled = ((_this2$props = _this2.props) === null || _this2$props === void 0
|
|
199
|
+
var isTTRTrackingExplicitlyDisabled = ((_this2$props = _this2.props) === null || _this2$props === void 0 || (_this2$props = _this2$props.analyticsEventSeverityTracking) === null || _this2$props === void 0 ? void 0 : _this2$props.enabled) === false;
|
|
200
200
|
if (!isTTRTrackingExplicitlyDisabled) {
|
|
201
201
|
_this2.fireAnalyticsEvent({
|
|
202
202
|
action: ACTION.RENDERED,
|
|
@@ -341,7 +341,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
try {
|
|
344
|
-
var _featureFlags$feature, _this$featureFlags2
|
|
344
|
+
var _featureFlags$feature, _this$featureFlags2;
|
|
345
345
|
var schema = this.getSchema(this.props.schema, this.props.adfStage);
|
|
346
346
|
var _renderDocument = renderDocument(adfDocument, this.serializer, schema, adfStage, this.props.useSpecBasedValidator, this.id, this.fireAnalyticsEvent, this.props.unsupportedContentLevelsTracking, this.props.appearance),
|
|
347
347
|
result = _renderDocument.result,
|
|
@@ -382,7 +382,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
382
382
|
height: maxHeight,
|
|
383
383
|
fadeHeight: fadeOutHeight
|
|
384
384
|
}, rendererOutput) : rendererOutput;
|
|
385
|
-
var rendererRenderTracking = (_this$featureFlags2 = this.featureFlags(this.props.featureFlags)) === null || _this$featureFlags2 === void 0
|
|
385
|
+
var rendererRenderTracking = (_this$featureFlags2 = this.featureFlags(this.props.featureFlags)) === null || _this$featureFlags2 === void 0 || (_this$featureFlags2 = _this$featureFlags2.featureFlags) === null || _this$featureFlags2 === void 0 || (_this$featureFlags2 = _this$featureFlags2.rendererRenderTracking) === null || _this$featureFlags2 === void 0 ? void 0 : _this$featureFlags2[ACTION_SUBJECT.RENDERER];
|
|
386
386
|
var reRenderTracking = (rendererRenderTracking === null || rendererRenderTracking === void 0 ? void 0 : rendererRenderTracking.enabled) && jsx(RenderTracking, {
|
|
387
387
|
componentProps: this.props,
|
|
388
388
|
action: ACTION.RE_RENDERED,
|
|
@@ -467,50 +467,49 @@ var RendererWrapper = /*#__PURE__*/React.memo(function (props) {
|
|
|
467
467
|
};
|
|
468
468
|
var initialUpdate = React.useRef(true);
|
|
469
469
|
React.useEffect(function () {
|
|
470
|
-
if
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
470
|
+
// We must check if window is defined, if it isn't we are in a SSR environment
|
|
471
|
+
// and we don't want to add the telepointer
|
|
472
|
+
if (typeof window !== 'undefined' && addTelepointer && innerRef !== null && innerRef !== void 0 && innerRef.current) {
|
|
473
|
+
var renderer = innerRef.current.querySelector('.ak-renderer-document');
|
|
474
|
+
if (initialUpdate.current) {
|
|
475
|
+
var lastChild = renderer.lastChild;
|
|
476
|
+
lastChild && lastChild.appendChild(createTelepointer());
|
|
477
|
+
}
|
|
478
|
+
var mutateTelepointer = function mutateTelepointer(mutations) {
|
|
479
|
+
mutations.forEach(function (mutation) {
|
|
480
|
+
if (initialUpdate.current) {
|
|
481
|
+
var oldTelepointer = renderer.querySelector("#".concat(TELEPOINTER_ID));
|
|
482
|
+
if (oldTelepointer) {
|
|
483
|
+
oldTelepointer.remove();
|
|
484
|
+
}
|
|
485
|
+
var _lastChild = renderer.lastChild;
|
|
486
|
+
_lastChild && _lastChild.appendChild(createTelepointer());
|
|
487
|
+
initialUpdate.current = false;
|
|
484
488
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
if (_oldTelepointer) {
|
|
494
|
-
_oldTelepointer.remove();
|
|
489
|
+
if (mutation.type === 'characterData') {
|
|
490
|
+
var parentNode = mutation.target.parentElement;
|
|
491
|
+
if (parentNode) {
|
|
492
|
+
var _oldTelepointer = renderer.querySelector("#".concat(TELEPOINTER_ID));
|
|
493
|
+
if (_oldTelepointer) {
|
|
494
|
+
_oldTelepointer.remove();
|
|
495
|
+
}
|
|
496
|
+
parentNode.appendChild(createTelepointer());
|
|
495
497
|
}
|
|
496
|
-
// initialUpdate.current = true;
|
|
497
|
-
// Add a new telepointer
|
|
498
|
-
parentNode.appendChild(createTelepointer());
|
|
499
498
|
}
|
|
500
|
-
}
|
|
499
|
+
});
|
|
500
|
+
};
|
|
501
|
+
var observer = new MutationObserver(mutateTelepointer);
|
|
502
|
+
observer.observe(innerRef.current, {
|
|
503
|
+
characterData: true,
|
|
504
|
+
attributes: false,
|
|
505
|
+
childList: true,
|
|
506
|
+
subtree: true
|
|
501
507
|
});
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
childList: true,
|
|
508
|
-
subtree: true
|
|
509
|
-
});
|
|
510
|
-
return function () {
|
|
511
|
-
return observer.disconnect();
|
|
512
|
-
};
|
|
513
|
-
}, [innerRef, children, addTelepointer]);
|
|
508
|
+
return function () {
|
|
509
|
+
return observer.disconnect();
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
}, [innerRef, addTelepointer]);
|
|
514
513
|
return jsx(WidthProvider, {
|
|
515
514
|
className: "ak-renderer-wrapper is-".concat(appearance),
|
|
516
515
|
"data-appearance": appearance
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "108.15.
|
|
3
|
+
"version": "108.15.9",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
32
32
|
"@atlaskit/button": "^16.10.0",
|
|
33
33
|
"@atlaskit/code": "^14.6.0",
|
|
34
|
-
"@atlaskit/editor-common": "^76.
|
|
34
|
+
"@atlaskit/editor-common": "^76.6.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.5.1",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^2.8.0",
|
|
39
39
|
"@atlaskit/emoji": "^67.5.0",
|
|
40
40
|
"@atlaskit/icon": "^21.12.0",
|
|
41
|
-
"@atlaskit/link-datasource": "^1.
|
|
42
|
-
"@atlaskit/media-card": "^77.
|
|
41
|
+
"@atlaskit/link-datasource": "^1.6.0",
|
|
42
|
+
"@atlaskit/media-card": "^77.1.0",
|
|
43
43
|
"@atlaskit/media-client": "^24.0.0",
|
|
44
44
|
"@atlaskit/media-common": "^9.0.0",
|
|
45
45
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
46
46
|
"@atlaskit/media-ui": "^25.0.0",
|
|
47
47
|
"@atlaskit/media-viewer": "^48.1.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
49
|
-
"@atlaskit/smart-card": "^26.
|
|
49
|
+
"@atlaskit/smart-card": "^26.34.0",
|
|
50
50
|
"@atlaskit/status": "^1.4.0",
|
|
51
51
|
"@atlaskit/task-decision": "^17.9.0",
|
|
52
52
|
"@atlaskit/theme": "^12.6.0",
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
3
|
-
import type { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
|
-
import { Node, Schema, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import { Step, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
7
|
-
import { AnalyticsEventPayload } from '../analytics/events';
|
|
8
|
-
type ActionResult = {
|
|
9
|
-
step: Step;
|
|
10
|
-
doc: JSONDocNode;
|
|
11
|
-
} | false;
|
|
12
|
-
type Position = {
|
|
13
|
-
from: number;
|
|
14
|
-
to: number;
|
|
15
|
-
};
|
|
16
|
-
type Annotation = {
|
|
17
|
-
annotationId: string;
|
|
18
|
-
annotationType: AnnotationTypes;
|
|
19
|
-
};
|
|
20
|
-
export interface RendererActionsOptions {
|
|
21
|
-
annotate: (range: Range, annotationId: string, annotationType: 'inlineComment') => ActionResult;
|
|
22
|
-
deleteAnnotation: (annotationId: string, annotationType: 'inlineComment') => ActionResult;
|
|
23
|
-
isValidAnnotationRange: (range: Range) => boolean;
|
|
24
|
-
}
|
|
25
|
-
export type ApplyAnnotation = (pos: Position, annotation: Annotation) => AnnotationActionResult;
|
|
26
|
-
export interface AnnotationsRendererActionsOptions {
|
|
27
|
-
isValidAnnotationPosition: (pos: Position) => boolean;
|
|
28
|
-
applyAnnotation: ApplyAnnotation;
|
|
29
|
-
getAnnotationMarks: () => Mark[];
|
|
30
|
-
}
|
|
31
|
-
export interface PositionRendererActionsOptions {
|
|
32
|
-
getPositionFromRange: (range: Range) => Position | false;
|
|
33
|
-
}
|
|
34
|
-
export default class RendererActions implements RendererActionsOptions, AnnotationsRendererActionsOptions, PositionRendererActionsOptions {
|
|
35
|
-
private initFromContext;
|
|
36
|
-
private transformer;
|
|
37
|
-
private doc?;
|
|
38
|
-
private schema?;
|
|
39
|
-
private ref?;
|
|
40
|
-
private onAnalyticsEvent?;
|
|
41
|
-
constructor(initFromContext?: boolean);
|
|
42
|
-
_privateRegisterRenderer(ref: React.MutableRefObject<null>, doc: Node, schema: Schema, onAnalyticsEvent?: (event: AnalyticsEventPayload) => void): void;
|
|
43
|
-
_privateUnregisterRenderer(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Validate whether we can create an annotation between two positions
|
|
46
|
-
*/
|
|
47
|
-
_privateValidatePositionsForAnnotation(from: number, to: number): boolean;
|
|
48
|
-
deleteAnnotation(annotationId: string, annotationType: 'inlineComment'): false | {
|
|
49
|
-
step: RemoveMarkStep;
|
|
50
|
-
doc: JSONDocNode;
|
|
51
|
-
};
|
|
52
|
-
annotate(range: Range, annotationId: string, annotationType: 'inlineComment'): AnnotationActionResult;
|
|
53
|
-
isValidAnnotationRange(range: Range): boolean;
|
|
54
|
-
isValidAnnotationPosition(pos: Position): boolean;
|
|
55
|
-
getPositionFromRange(range: Range): Position | false;
|
|
56
|
-
getAnnotationMarks(): Mark[];
|
|
57
|
-
getAnnotationsByPosition(range: Range): string[];
|
|
58
|
-
applyAnnotation(pos: Position, annotation: Annotation): AnnotationActionResult;
|
|
59
|
-
generateAnnotationIndexMatch(pos: Position): AnnotationByMatches | false;
|
|
60
|
-
}
|
|
61
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
export declare function getIndexMatch(doc: Node, schema: Schema, selectedText: string, startIndex: number): {
|
|
3
|
-
numMatches: number;
|
|
4
|
-
matchIndex: number;
|
|
5
|
-
textContent: string;
|
|
6
|
-
};
|
|
7
|
-
export declare function countMatches(searchString: string, query: string): number;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { RendererActionsContext, RendererActionsContextConsumer } from './ui/RendererActionsContext';
|
|
2
|
-
import { WithRendererActions } from './ui/RendererActionsContext/WithRendererActions';
|
|
3
|
-
export { RendererActionsContext, RendererActionsContextConsumer, WithRendererActions, };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export declare enum EVENT_TYPE {
|
|
2
|
-
OPERATIONAL = "operational",
|
|
3
|
-
SCREEN = "screen",
|
|
4
|
-
TRACK = "track",
|
|
5
|
-
UI = "ui"
|
|
6
|
-
}
|
|
7
|
-
export declare enum ACTION {
|
|
8
|
-
STARTED = "started",
|
|
9
|
-
RENDERED = "rendered",
|
|
10
|
-
RE_RENDERED = "reRendered",
|
|
11
|
-
RENDERER_TTI = "tti",
|
|
12
|
-
CRASHED = "unhandledErrorCaught",
|
|
13
|
-
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
14
|
-
SELECT_ALL_CAUGHT = "selectAllCaught",
|
|
15
|
-
SELECT_ALL_ESCAPED = "selectAllEscaped",
|
|
16
|
-
CLICKED = "clicked",
|
|
17
|
-
VIEWED = "viewed",
|
|
18
|
-
VISITED = "visited",
|
|
19
|
-
SORT_COLUMN = "sortedColumn",
|
|
20
|
-
SORT_COLUMN_NOT_ALLOWED = "sortColumnNotAllowed",
|
|
21
|
-
TOGGLE_EXPAND = "toggleExpand",
|
|
22
|
-
INSERTED = "inserted",
|
|
23
|
-
OPENED = "opened",
|
|
24
|
-
CLOSED = "closed",
|
|
25
|
-
DELETED = "deleted",
|
|
26
|
-
EDITED = "edited",
|
|
27
|
-
RESOLVED = "resolved",
|
|
28
|
-
CREATE_NOT_ALLOWED = "createNotAllowed",
|
|
29
|
-
UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED = "unsupportedContentLevelsTrackingSucceeded",
|
|
30
|
-
UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED = "unsupportedContentLevelsTrackingErrored",
|
|
31
|
-
MEDIA_LINK_TRANSFORMED = "mediaLinkTransformed"
|
|
32
|
-
}
|
|
33
|
-
export declare enum ACTION_SUBJECT {
|
|
34
|
-
RENDERER = "renderer",
|
|
35
|
-
BUTTON = "button",
|
|
36
|
-
ANCHOR_LINK = "anchorLink",
|
|
37
|
-
TABLE = "table",
|
|
38
|
-
EXPAND = "expand",
|
|
39
|
-
NESTED_EXPAND = "nestedExpand",
|
|
40
|
-
MEDIA_SINGLE = "mediaSingle",
|
|
41
|
-
LINK = "link",
|
|
42
|
-
ANNOTATION = "annotation",
|
|
43
|
-
MEDIA = "media"
|
|
44
|
-
}
|
|
45
|
-
export declare enum ACTION_SUBJECT_ID {
|
|
46
|
-
HEADING_ANCHOR_LINK = "headingAnchorLink",
|
|
47
|
-
LINK = "link",
|
|
48
|
-
INLINE_COMMENT = "inlineComment",
|
|
49
|
-
CODEBLOCK_COPY = "codeBlockCopy",
|
|
50
|
-
CODEBLOCK_WRAP = "codeBlockWrap"
|
|
51
|
-
}
|
|
52
|
-
export type AEP<Action, ActionSubject, ActionSubjectID, Attributes, EventType> = {
|
|
53
|
-
action: Action;
|
|
54
|
-
actionSubject: ActionSubject;
|
|
55
|
-
actionSubjectId?: ActionSubjectID;
|
|
56
|
-
attributes?: Attributes;
|
|
57
|
-
eventType: EventType;
|
|
58
|
-
};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, OperationalAEP } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { AEP } from './enums';
|
|
3
|
-
import { PropsDifference, SEVERITY, ShallowPropsDifference, UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
6
|
-
export declare enum PLATFORM {
|
|
7
|
-
NATIVE = "mobileNative",
|
|
8
|
-
HYBRID = "mobileHybrid",
|
|
9
|
-
WEB = "web"
|
|
10
|
-
}
|
|
11
|
-
export declare enum MODE {
|
|
12
|
-
RENDERER = "renderer",
|
|
13
|
-
EDITOR = "editor"
|
|
14
|
-
}
|
|
15
|
-
type RendererStartAEP = AEP<ACTION.STARTED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
16
|
-
platform: PLATFORM.WEB;
|
|
17
|
-
}, EVENT_TYPE.UI>;
|
|
18
|
-
type RendererRenderedAEP = AEP<ACTION.RENDERED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
19
|
-
platform: PLATFORM.WEB;
|
|
20
|
-
duration: number;
|
|
21
|
-
distortedDuration: boolean;
|
|
22
|
-
ttfb?: number;
|
|
23
|
-
nodes: Record<string, number>;
|
|
24
|
-
severity?: SEVERITY;
|
|
25
|
-
}, EVENT_TYPE.OPERATIONAL>;
|
|
26
|
-
type RendererReRenderedAEP<Props> = AEP<ACTION.RE_RENDERED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
27
|
-
propsDifference: PropsDifference<Props> | ShallowPropsDifference<Props>;
|
|
28
|
-
count: number;
|
|
29
|
-
componentId?: string;
|
|
30
|
-
}, EVENT_TYPE.OPERATIONAL>;
|
|
31
|
-
export type ComponentCrashErrorAEP = OperationalAEP<ACTION.CRASHED, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
|
|
32
|
-
platform: PLATFORM.WEB;
|
|
33
|
-
errorMessage?: string;
|
|
34
|
-
errorStack?: string;
|
|
35
|
-
componentStack?: string;
|
|
36
|
-
errorRethrown?: boolean;
|
|
37
|
-
}, {
|
|
38
|
-
errorStack?: string;
|
|
39
|
-
}>;
|
|
40
|
-
type InvalidProsemirrorDocumentErrorAEP = AEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
|
|
41
|
-
platform: PLATFORM.WEB;
|
|
42
|
-
errorStack?: string;
|
|
43
|
-
}, EVENT_TYPE.OPERATIONAL>;
|
|
44
|
-
type RendererUnsupportedContentLevelsTrackingSucceeded = AEP<ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
45
|
-
appearance?: string;
|
|
46
|
-
platform: PLATFORM.WEB;
|
|
47
|
-
unsupportedContentLevelSeverity: UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
|
|
48
|
-
unsupportedContentLevelPercentage: number;
|
|
49
|
-
unsupportedNodesCount: number;
|
|
50
|
-
supportedNodesCount: number;
|
|
51
|
-
}, EVENT_TYPE.OPERATIONAL>;
|
|
52
|
-
type RendererUnsupportedContentLevelsTrackingErrored = AEP<ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
53
|
-
platform: PLATFORM.WEB;
|
|
54
|
-
error: string;
|
|
55
|
-
}, EVENT_TYPE.OPERATIONAL>;
|
|
56
|
-
type RendererSelectAllCaughtAEP = AEP<ACTION.SELECT_ALL_CAUGHT, ACTION_SUBJECT.RENDERER, undefined, {
|
|
57
|
-
platform: PLATFORM.WEB;
|
|
58
|
-
}, EVENT_TYPE.TRACK>;
|
|
59
|
-
type RendererSelectAllEscapedAEP = AEP<ACTION.SELECT_ALL_ESCAPED, ACTION_SUBJECT.RENDERER, undefined, {
|
|
60
|
-
platform: PLATFORM.WEB;
|
|
61
|
-
}, EVENT_TYPE.TRACK>;
|
|
62
|
-
type UIAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, EVENT_TYPE.UI>;
|
|
63
|
-
type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ActionSubjectID, Attributes>;
|
|
64
|
-
type AnchorLinkAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.ANCHOR_LINK, undefined, {
|
|
65
|
-
platform: PLATFORM.WEB;
|
|
66
|
-
mode: MODE.RENDERER;
|
|
67
|
-
}>;
|
|
68
|
-
type CodeBlockCopyAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_COPY, undefined>;
|
|
69
|
-
type CodeBlockWrapAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_WRAP, {
|
|
70
|
-
wrapped: boolean;
|
|
71
|
-
}>;
|
|
72
|
-
type HeadingAnchorLinkButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.HEADING_ANCHOR_LINK, undefined>;
|
|
73
|
-
type TableSortColumnNotAllowedAEP = AEP<ACTION.SORT_COLUMN_NOT_ALLOWED, ACTION_SUBJECT.TABLE, undefined, {
|
|
74
|
-
platform: PLATFORM.WEB;
|
|
75
|
-
mode: MODE.RENDERER;
|
|
76
|
-
}, EVENT_TYPE.TRACK>;
|
|
77
|
-
type TableSortColumnAEP = AEP<ACTION.SORT_COLUMN, ACTION_SUBJECT.TABLE, undefined, {
|
|
78
|
-
platform: PLATFORM.WEB;
|
|
79
|
-
mode: MODE.RENDERER;
|
|
80
|
-
sortOrder: SortOrder;
|
|
81
|
-
columnIndex: number;
|
|
82
|
-
}, EVENT_TYPE.TRACK>;
|
|
83
|
-
type VisitLinkAEP = AEP<ACTION.VISITED, ACTION_SUBJECT.LINK, undefined, {
|
|
84
|
-
platform: PLATFORM.WEB;
|
|
85
|
-
mode: MODE.RENDERER;
|
|
86
|
-
}, EVENT_TYPE.TRACK>;
|
|
87
|
-
type VisitMediaLinkAEP = AEP<ACTION.VISITED, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.LINK, {
|
|
88
|
-
platform: PLATFORM.WEB;
|
|
89
|
-
mode: MODE.RENDERER;
|
|
90
|
-
}, EVENT_TYPE.TRACK>;
|
|
91
|
-
type ExpandAEP = AEP<ACTION.TOGGLE_EXPAND, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
92
|
-
platform: PLATFORM.WEB;
|
|
93
|
-
mode: MODE.RENDERER;
|
|
94
|
-
expanded: boolean;
|
|
95
|
-
}, EVENT_TYPE.TRACK>;
|
|
96
|
-
export type AnnotationActionType = ACTION.INSERTED | ACTION.CLOSED | ACTION.EDITED | ACTION.DELETED | ACTION.OPENED | ACTION.RESOLVED | ACTION.VIEWED | ACTION.CREATE_NOT_ALLOWED;
|
|
97
|
-
export type AnnotationAEPAttributes = AnnotationDraftAEPAttributes | AnnotationResolvedAEPAttributes;
|
|
98
|
-
export type AnnotationDraftAEPAttributes = {
|
|
99
|
-
overlap?: number;
|
|
100
|
-
};
|
|
101
|
-
export type AnnotationResolvedAEPAttributes = {
|
|
102
|
-
method?: RESOLVE_METHOD;
|
|
103
|
-
};
|
|
104
|
-
export type AnnotationDeleteAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID, undefined, EVENT_TYPE.TRACK>;
|
|
105
|
-
export declare enum RESOLVE_METHOD {
|
|
106
|
-
COMPONENT = "component",
|
|
107
|
-
CONSUMER = "consumer",
|
|
108
|
-
ORPHANED = "orphaned"
|
|
109
|
-
}
|
|
110
|
-
export type AnnotationAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID.INLINE_COMMENT, AnnotationAEPAttributes, undefined>;
|
|
111
|
-
type MediaLnkTransformedAEP = AEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.RENDERER, undefined, undefined, EVENT_TYPE.OPERATIONAL>;
|
|
112
|
-
type RendererTTIAEP = AEP<ACTION.RENDERER_TTI, ACTION_SUBJECT.RENDERER, undefined, {
|
|
113
|
-
tti: number;
|
|
114
|
-
ttiFromInvocation: number;
|
|
115
|
-
canceled: boolean;
|
|
116
|
-
}, EVENT_TYPE.OPERATIONAL>;
|
|
117
|
-
export type AnalyticsEventPayload<T = void> = RendererStartAEP | RendererRenderedAEP | RendererReRenderedAEP<T> | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | RendererTTIAEP;
|
|
118
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { AnalyticsEventPayload } from './events';
|
|
3
|
-
type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
|
|
4
|
-
type DocumentData = {
|
|
5
|
-
rendererId: string;
|
|
6
|
-
doc: any;
|
|
7
|
-
appearance?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const trackUnsupportedContentLevels: (item: DocumentData, trackingOptions: UnsupportedContentLevelsTracking, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => void;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const RendererCssClassName: {
|
|
2
|
-
DOCUMENT: string;
|
|
3
|
-
EXTENSION: string;
|
|
4
|
-
EXTENSION_CENTER_ALIGN: string;
|
|
5
|
-
EXTENSION_OVERFLOW_CONTAINER: string;
|
|
6
|
-
NUMBER_COLUMN: string;
|
|
7
|
-
SORTABLE_COLUMN_WRAPPER: string;
|
|
8
|
-
SORTABLE_COLUMN: string;
|
|
9
|
-
SORTABLE_COLUMN_ICON_WRAPPER: string;
|
|
10
|
-
SORTABLE_COLUMN_ICON: string;
|
|
11
|
-
SORTABLE_COLUMN_NO_ORDER: string;
|
|
12
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
9
|
-
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
10
|
-
'fabric.editor.headingLink.copied': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
12
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
-
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
|
-
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
|
-
'fabric.editor.tableHeader.sorting.asc': string;
|
|
20
|
-
'fabric.editor.tableHeader.sorting.default': string;
|
|
21
|
-
'fabric.editor.tableHeader.sorting.desc': string;
|
|
22
|
-
'fabric.editor.tableHeader.sorting.invalid': string;
|
|
23
|
-
'fabric.editor.tableHeader.sorting.no': string;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
9
|
-
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
10
|
-
'fabric.editor.headingLink.copied': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
12
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
-
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
|
-
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
9
|
-
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
10
|
-
'fabric.editor.headingLink.copied': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
12
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
-
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
|
-
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
9
|
-
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
10
|
-
'fabric.editor.headingLink.copied': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
12
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
-
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
|
-
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
|
-
'fabric.editor.tableHeader.sorting.asc': string;
|
|
20
|
-
'fabric.editor.tableHeader.sorting.default': string;
|
|
21
|
-
'fabric.editor.tableHeader.sorting.desc': string;
|
|
22
|
-
'fabric.editor.tableHeader.sorting.invalid': string;
|
|
23
|
-
'fabric.editor.tableHeader.sorting.no': string;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
9
|
-
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
10
|
-
'fabric.editor.headingLink.copied': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
12
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
-
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
|
-
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
|
-
'fabric.editor.tableHeader.sorting.asc': string;
|
|
20
|
-
'fabric.editor.tableHeader.sorting.default': string;
|
|
21
|
-
'fabric.editor.tableHeader.sorting.desc': string;
|
|
22
|
-
'fabric.editor.tableHeader.sorting.invalid': string;
|
|
23
|
-
'fabric.editor.tableHeader.sorting.no': string;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
9
|
-
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
10
|
-
'fabric.editor.headingLink.copied': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
12
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
-
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
|
-
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
|
-
'fabric.editor.tableHeader.sorting.asc': string;
|
|
20
|
-
'fabric.editor.tableHeader.sorting.default': string;
|
|
21
|
-
'fabric.editor.tableHeader.sorting.desc': string;
|
|
22
|
-
'fabric.editor.tableHeader.sorting.invalid': string;
|
|
23
|
-
'fabric.editor.tableHeader.sorting.no': string;
|
|
24
|
-
};
|
|
25
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.headingLink.ascOrderLabel': string;
|
|
9
|
-
'fabric.editor.headingLink.ascSortingLabel': string;
|
|
10
|
-
'fabric.editor.headingLink.copied': string;
|
|
11
|
-
'fabric.editor.headingLink.copyAnchorLink': string;
|
|
12
|
-
'fabric.editor.headingLink.copyAriaLabel': string;
|
|
13
|
-
'fabric.editor.headingLink.descOrderLabel': string;
|
|
14
|
-
'fabric.editor.headingLink.descSortingLabel': string;
|
|
15
|
-
'fabric.editor.headingLink.failedToCopy': string;
|
|
16
|
-
'fabric.editor.headingLink.invalidLabel': string;
|
|
17
|
-
'fabric.editor.headingLink.noOrderLabel': string;
|
|
18
|
-
'fabric.editor.headingLink.noneSortingLabel': string;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|