@atlaskit/renderer 108.0.0 → 108.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/actions/package.json +2 -2
- package/consts/package.json +2 -2
- package/dist/cjs/react/marks/link.js +12 -2
- package/dist/cjs/react/nodes/blockCard.js +12 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/cjs/react/nodes/embedCard.js +12 -2
- package/dist/cjs/react/nodes/inlineCard.js +16 -4
- package/dist/cjs/ui/Expand.js +8 -7
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +8 -1
- package/dist/cjs/ui/Renderer/index.js +34 -23
- package/dist/cjs/ui/Renderer/style.js +11 -4
- package/dist/cjs/ui/SortingIcon.js +1 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/react/marks/link.js +12 -2
- package/dist/es2019/react/nodes/blockCard.js +12 -2
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +2 -2
- package/dist/es2019/react/nodes/embedCard.js +12 -2
- package/dist/es2019/react/nodes/inlineCard.js +16 -4
- package/dist/es2019/ui/Expand.js +8 -5
- package/dist/es2019/ui/Renderer/ErrorBoundary.js +8 -1
- package/dist/es2019/ui/Renderer/index.js +34 -23
- package/dist/es2019/ui/Renderer/style.js +33 -16
- package/dist/es2019/ui/SortingIcon.js +1 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/react/marks/link.js +12 -2
- package/dist/esm/react/nodes/blockCard.js +12 -2
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +2 -2
- package/dist/esm/react/nodes/embedCard.js +12 -2
- package/dist/esm/react/nodes/inlineCard.js +16 -4
- package/dist/esm/ui/Expand.js +8 -7
- package/dist/esm/ui/Renderer/ErrorBoundary.js +8 -1
- package/dist/esm/ui/Renderer/index.js +34 -23
- package/dist/esm/ui/Renderer/style.js +11 -4
- package/dist/esm/ui/SortingIcon.js +1 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +4 -4
- package/dist/types/analytics/enums.d.ts +1 -1
- package/dist/types/analytics/events.d.ts +29 -29
- package/dist/types/analytics/unsupported-content.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +1 -1
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +1 -1
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +1 -1
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/react/hooks/use-observed-width.d.ts +2 -2
- package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +1 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +3 -3
- package/dist/types/react/nodes/fallback.d.ts +1 -1
- package/dist/types/react/nodes/heading-anchor.d.ts +2 -2
- package/dist/types/react/nodes/heading.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +1 -1
- package/dist/types/react/nodes/media.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +2 -2
- package/dist/types/react/nodes/table/sticky.d.ts +2 -2
- package/dist/types/react/nodes/table/table.d.ts +1 -1
- package/dist/types/react/nodes/table/types.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +2 -2
- package/dist/types/react/nodes/tableCell.d.ts +2 -2
- package/dist/types/react/nodes/tableRow.d.ts +2 -2
- package/dist/types/react/nodes/text-wrapper.d.ts +1 -1
- package/dist/types/react/types.d.ts +2 -2
- package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
- package/dist/types/react/utils/performance/RenderTracking.d.ts +4 -4
- package/dist/types/render-document.d.ts +2 -2
- package/dist/types/renderer-context.d.ts +1 -1
- package/dist/types/text/nodes/index.d.ts +1 -1
- package/dist/types/types/mediaOptions.d.ts +1 -1
- package/dist/types/ui/Expand.d.ts +1 -1
- package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
- package/dist/types/ui/MediaCard.d.ts +2 -2
- package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
- package/dist/types/ui/Renderer/style.d.ts +2 -1
- package/dist/types/ui/Renderer/types.d.ts +6 -6
- package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
- package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +3 -3
- package/dist/types/ui/active-header-id-provider.d.ts +1 -1
- package/dist/types/ui/annotations/context.d.ts +4 -4
- package/dist/types/ui/annotations/draft/component.d.ts +2 -2
- package/dist/types/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types/ui/annotations/element/index.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +3 -3
- package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/selection/wrapper.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +3 -3
- package/dist/types/ui/annotations/view/index.d.ts +1 -1
- package/dist/types/utils.d.ts +2 -2
- package/dist/types-ts4.5/actions/index.d.ts +61 -0
- package/dist/types-ts4.5/actions/matches-utils.d.ts +7 -0
- package/dist/types-ts4.5/actions.d.ts +3 -0
- package/dist/types-ts4.5/analytics/analyticsContext.d.ts +6 -0
- package/dist/types-ts4.5/analytics/enums.d.ts +58 -0
- package/dist/types-ts4.5/analytics/events.d.ts +118 -0
- package/dist/types-ts4.5/analytics/unsupported-content.d.ts +10 -0
- package/dist/types-ts4.5/consts.d.ts +12 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +20 -0
- package/dist/types-ts4.5/i18n/da.d.ts +20 -0
- package/dist/types-ts4.5/i18n/de.d.ts +20 -0
- package/dist/types-ts4.5/i18n/en.d.ts +20 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +20 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +20 -0
- package/dist/types-ts4.5/i18n/es.d.ts +20 -0
- package/dist/types-ts4.5/i18n/et.d.ts +8 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +20 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +20 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +20 -0
- package/dist/types-ts4.5/i18n/index.d.ts +31 -0
- package/dist/types-ts4.5/i18n/it.d.ts +20 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +20 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +20 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +20 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +20 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +20 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +20 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +8 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +20 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +8 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +20 -0
- package/dist/types-ts4.5/i18n/th.d.ts +20 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +20 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +20 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +20 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +20 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +20 -0
- package/dist/types-ts4.5/index.d.ts +11 -0
- package/dist/types-ts4.5/messages.d.ts +61 -0
- package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +10 -0
- package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +5 -0
- package/dist/types-ts4.5/react/hooks/use-observed-width.d.ts +3 -0
- package/dist/types-ts4.5/react/index.d.ts +124 -0
- package/dist/types-ts4.5/react/marks/alignment.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/annotation.d.ts +6 -0
- package/dist/types-ts4.5/react/marks/breakout.d.ts +6 -0
- package/dist/types-ts4.5/react/marks/code.d.ts +16 -0
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +8 -0
- package/dist/types-ts4.5/react/marks/data-consumer.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/em.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/fragment.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/indentation.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/index.d.ts +21 -0
- package/dist/types-ts4.5/react/marks/link.d.ts +9 -0
- package/dist/types-ts4.5/react/marks/strike.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/strong.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/subsup.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/textColor.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/underline.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +3 -0
- package/dist/types-ts4.5/react/nodes/blockCard.d.ts +12 -0
- package/dist/types-ts4.5/react/nodes/blockquote.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +24 -0
- package/dist/types-ts4.5/react/nodes/bulletList.d.ts +5 -0
- package/dist/types-ts4.5/react/nodes/caption.d.ts +4 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +15 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +12 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +10 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +9 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +11 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +9 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/windowedCodeBlock.d.ts +4 -0
- package/dist/types-ts4.5/react/nodes/date.d.ts +11 -0
- package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +3 -0
- package/dist/types-ts4.5/react/nodes/decisionList.d.ts +7 -0
- package/dist/types-ts4.5/react/nodes/doc.d.ts +3 -0
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +17 -0
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +12 -0
- package/dist/types-ts4.5/react/nodes/extension.d.ts +113 -0
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +16 -0
- package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +6 -0
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +14 -0
- package/dist/types-ts4.5/react/nodes/heading.d.ts +14 -0
- package/dist/types-ts4.5/react/nodes/index.d.ts +95 -0
- package/dist/types-ts4.5/react/nodes/inline.d.ts +1 -0
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +65 -0
- package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +18 -0
- package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +6 -0
- package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/listItem.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/media.d.ts +28 -0
- package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +29 -0
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +26 -0
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +23 -0
- package/dist/types-ts4.5/react/nodes/mediaSingle/styles.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/mention.d.ts +13 -0
- package/dist/types-ts4.5/react/nodes/orderedList.d.ts +9 -0
- package/dist/types-ts4.5/react/nodes/panel.d.ts +17 -0
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +3 -0
- package/dist/types-ts4.5/react/nodes/placeholder.d.ts +6 -0
- package/dist/types-ts4.5/react/nodes/rule.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/status.d.ts +10 -0
- package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +9 -0
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +38 -0
- package/dist/types-ts4.5/react/nodes/table/table.d.ts +7 -0
- package/dist/types-ts4.5/react/nodes/table/types.d.ts +7 -0
- package/dist/types-ts4.5/react/nodes/table.d.ts +269 -0
- package/dist/types-ts4.5/react/nodes/tableCell.d.ts +81 -0
- package/dist/types-ts4.5/react/nodes/tableRow.d.ts +24 -0
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +29 -0
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +19 -0
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +8 -0
- package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +8 -0
- package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +2 -0
- package/dist/types-ts4.5/react/renderer-node.d.ts +4 -0
- package/dist/types-ts4.5/react/types.d.ts +58 -0
- package/dist/types-ts4.5/react/utils/clipboard.d.ts +1 -0
- package/dist/types-ts4.5/react/utils/element-selection.d.ts +9 -0
- package/dist/types-ts4.5/react/utils/getCardClickHandler.d.ts +2 -0
- package/dist/types-ts4.5/react/utils/inject-props.d.ts +6 -0
- package/dist/types-ts4.5/react/utils/links.d.ts +3 -0
- package/dist/types-ts4.5/react/utils/lists.d.ts +2 -0
- package/dist/types-ts4.5/react/utils/performance/RenderTracking.d.ts +15 -0
- package/dist/types-ts4.5/react/utils/use-select-all-trap.d.ts +2 -0
- package/dist/types-ts4.5/render-document.d.ts +23 -0
- package/dist/types-ts4.5/renderer-context.d.ts +7 -0
- package/dist/types-ts4.5/serializer.d.ts +4 -0
- package/dist/types-ts4.5/steps/index.d.ts +14 -0
- package/dist/types-ts4.5/text/index.d.ts +8 -0
- package/dist/types-ts4.5/text/nodes/blockquote.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/bulletList.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/date.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/heading.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/index.d.ts +6 -0
- package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/listItem.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/mention.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/orderedList.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/panel.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/paragraph.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/rule.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/status.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/table.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/taskItem.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/unknown.d.ts +3 -0
- package/dist/types-ts4.5/text-serializer.d.ts +1 -0
- package/dist/types-ts4.5/types/i18n.d.ts +5 -0
- package/dist/types-ts4.5/types/mediaOptions.d.ts +12 -0
- package/dist/types-ts4.5/types/smartLinksOptions.d.ts +5 -0
- package/dist/types-ts4.5/ui/Expand.d.ts +23 -0
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +42 -0
- package/dist/types-ts4.5/ui/MediaCard.d.ts +77 -0
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +24 -0
- package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +11 -0
- package/dist/types-ts4.5/ui/Renderer/click-to-edit.d.ts +6 -0
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +38 -0
- package/dist/types-ts4.5/ui/Renderer/style.d.ts +16 -0
- package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +12 -0
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +16 -0
- package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +6 -0
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +60 -0
- package/dist/types-ts4.5/ui/SortingIcon.d.ts +23 -0
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +15 -0
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +18 -0
- package/dist/types-ts4.5/ui/annotations/context.d.ts +27 -0
- package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +20 -0
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +7 -0
- package/dist/types-ts4.5/ui/annotations/draft/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +2 -0
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +11 -0
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +14 -0
- package/dist/types-ts4.5/ui/annotations/hooks/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +18 -0
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -0
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +9 -0
- package/dist/types-ts4.5/ui/annotations/hooks/use-load-annotations.d.ts +6 -0
- package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +9 -0
- package/dist/types-ts4.5/ui/annotations/hooks/utils.d.ts +2 -0
- package/dist/types-ts4.5/ui/annotations/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/annotations/selection/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +20 -0
- package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +13 -0
- package/dist/types-ts4.5/ui/annotations/selection/wrapper.d.ts +8 -0
- package/dist/types-ts4.5/ui/annotations/types.d.ts +22 -0
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +7 -0
- package/dist/types-ts4.5/ui/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/renderer-props.d.ts +104 -0
- package/dist/types-ts4.5/use-feature-flags.d.ts +2 -0
- package/dist/types-ts4.5/utils.d.ts +24 -0
- package/messages/package.json +2 -2
- package/package.json +29 -14
- package/render-document/package.json +2 -2
- package/renderer-context/package.json +2 -2
- package/report.api.md +4 -6
- package/serializer/package.json +2 -2
- package/text-serializer/package.json +2 -2
- package/use-feature-flags/package.json +2 -2
- package/utils/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 108.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6bc52e5a406`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6bc52e5a406) - [ED-17687] Capture errors caught in error boundaries in Sentry
|
|
8
|
+
- [`7faffcf8450`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7faffcf8450) - Add location attribute to smard link related componentes in renderer (link, inlinecard, embedcard, blockcard)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`dc1ca0331ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc1ca0331ae) - [ux] Changed code-block to display: block to fix issue with list alignment
|
|
13
|
+
- [`9220da2225b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9220da2225b) - ED-16320: Add checks to certain SLO related events to see if they are explicitly disabled, in preparation for disabling them for synthetic tenants in prod
|
|
14
|
+
- [`a142ba1aa28`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a142ba1aa28) - [ED17172] Bump prosemirror-model to 1.16.0 and prosemirror-view to 1.23.7 and removed work-arounds for fixed issues
|
|
15
|
+
- [`9369cc38a68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9369cc38a68) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 108.0.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 108.0.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/actions/package.json
CHANGED
package/consts/package.json
CHANGED
|
@@ -15,6 +15,7 @@ var _utils = require("../../utils");
|
|
|
15
15
|
var _events = require("../../analytics/events");
|
|
16
16
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
17
17
|
var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
|
|
18
|
+
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
18
19
|
var _templateObject;
|
|
19
20
|
/** @jsx jsx */
|
|
20
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -39,7 +40,16 @@ function Link(props) {
|
|
|
39
40
|
if (isMediaLink) {
|
|
40
41
|
return (0, _react2.jsx)(_react.Fragment, null, props.children);
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
+
var analyticsData = {
|
|
44
|
+
attributes: {
|
|
45
|
+
location: 'renderer'
|
|
46
|
+
},
|
|
47
|
+
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
48
|
+
location: 'renderer'
|
|
49
|
+
};
|
|
50
|
+
return (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
51
|
+
data: analyticsData
|
|
52
|
+
}, (0, _react2.jsx)(_linkUrl.default, (0, _extends2.default)({
|
|
43
53
|
css: anchorStyles,
|
|
44
54
|
onClick: function onClick(e) {
|
|
45
55
|
if (fireAnalyticsEvent) {
|
|
@@ -57,5 +67,5 @@ function Link(props) {
|
|
|
57
67
|
handler(e, href);
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
|
-
}, anchorProps, dataAttributes), props.children);
|
|
70
|
+
}, anchorProps, dataAttributes), props.children));
|
|
61
71
|
}
|
|
@@ -13,6 +13,7 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
13
13
|
var _utils = require("../../utils");
|
|
14
14
|
var _fallback = require("./fallback");
|
|
15
15
|
var _getCardClickHandler = require("../utils/getCardClickHandler");
|
|
16
|
+
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
19
|
function BlockCard(props) {
|
|
@@ -34,7 +35,16 @@ function BlockCard(props) {
|
|
|
34
35
|
onClick: onClick,
|
|
35
36
|
container: portal
|
|
36
37
|
};
|
|
37
|
-
|
|
38
|
+
var analyticsData = {
|
|
39
|
+
attributes: {
|
|
40
|
+
location: 'renderer'
|
|
41
|
+
},
|
|
42
|
+
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
43
|
+
location: 'renderer'
|
|
44
|
+
};
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
46
|
+
data: analyticsData
|
|
47
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
38
48
|
className: "blockCardView-content-wrap",
|
|
39
49
|
"data-block-card": true,
|
|
40
50
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
@@ -46,5 +56,5 @@ function BlockCard(props) {
|
|
|
46
56
|
showActions: rendererAppearance !== 'mobile',
|
|
47
57
|
platform: platform,
|
|
48
58
|
showServerActions: showServerActions
|
|
49
|
-
}, cardProps))));
|
|
59
|
+
}, cardProps)))));
|
|
50
60
|
}
|
|
@@ -24,7 +24,7 @@ var codeBlockStyleOverrides = function codeBlockStyleOverrides(props) {
|
|
|
24
24
|
light: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
25
25
|
dark: "var(--ds-background-neutral, ".concat(_colors.DN50, ")")
|
|
26
26
|
})(props),
|
|
27
|
-
leftCoverWidth: "
|
|
27
|
+
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
28
28
|
}));
|
|
29
29
|
};
|
|
30
30
|
var CodeBlockContainer = function CodeBlockContainer(_ref) {
|
|
@@ -18,6 +18,7 @@ var _utils = require("../../utils");
|
|
|
18
18
|
var _fallback = require("./fallback");
|
|
19
19
|
var _style = require("../../ui/Renderer/style");
|
|
20
20
|
var _getCardClickHandler = require("../utils/getCardClickHandler");
|
|
21
|
+
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
21
22
|
var _templateObject, _templateObject2;
|
|
22
23
|
/** @jsx jsx */
|
|
23
24
|
var embedCardWrapperStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n\n > div {\n height: 100%;\n }\n\n .loader-wrapper {\n height: 100%;\n }\n\n margin: 0 auto;\n"])));
|
|
@@ -90,7 +91,16 @@ function EmbedCard(props) {
|
|
|
90
91
|
}
|
|
91
92
|
setAspectRatio(resolvedAspectRatio);
|
|
92
93
|
};
|
|
93
|
-
|
|
94
|
+
var analyticsData = {
|
|
95
|
+
attributes: {
|
|
96
|
+
location: 'renderer'
|
|
97
|
+
},
|
|
98
|
+
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
99
|
+
location: 'renderer'
|
|
100
|
+
};
|
|
101
|
+
return (0, _react.jsx)(_analyticsNext.AnalyticsContext, {
|
|
102
|
+
data: analyticsData
|
|
103
|
+
}, (0, _react.jsx)(_ui.WidthConsumer, null, function (_ref2) {
|
|
94
104
|
var containerWidth = _ref2.width,
|
|
95
105
|
breakpoint = _ref2.breakpoint;
|
|
96
106
|
var nonFullWidthSize = containerWidth;
|
|
@@ -138,5 +148,5 @@ function EmbedCard(props) {
|
|
|
138
148
|
inheritDimensions: true,
|
|
139
149
|
embedIframeRef: embedIframeRef
|
|
140
150
|
})))))));
|
|
141
|
-
});
|
|
151
|
+
}));
|
|
142
152
|
}
|
|
@@ -14,6 +14,7 @@ var _fallback = require("./fallback");
|
|
|
14
14
|
var _SmartCardStorage = require("../../ui/SmartCardStorage");
|
|
15
15
|
var _getCardClickHandler = require("../utils/getCardClickHandler");
|
|
16
16
|
var _useFeatureFlags = require("../../use-feature-flags");
|
|
17
|
+
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
17
18
|
var InlineCard = function InlineCard(props) {
|
|
18
19
|
var url = props.url,
|
|
19
20
|
data = props.data,
|
|
@@ -32,15 +33,26 @@ var InlineCard = function InlineCard(props) {
|
|
|
32
33
|
showAuthTooltip = _ref.showAuthTooltip,
|
|
33
34
|
showServerActions = _ref.showServerActions,
|
|
34
35
|
ssr = _ref.ssr;
|
|
36
|
+
var analyticsData = {
|
|
37
|
+
attributes: {
|
|
38
|
+
location: 'renderer'
|
|
39
|
+
},
|
|
40
|
+
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
41
|
+
location: 'renderer'
|
|
42
|
+
};
|
|
35
43
|
if (ssr && url) {
|
|
36
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
44
|
+
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
45
|
+
data: analyticsData
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement(_ssr.CardSSR, {
|
|
37
47
|
appearance: "inline",
|
|
38
48
|
url: url,
|
|
39
49
|
showAuthTooltip: showAuthTooltip,
|
|
40
50
|
showServerActions: showServerActions
|
|
41
|
-
});
|
|
51
|
+
}));
|
|
42
52
|
}
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
54
|
+
data: analyticsData
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
44
56
|
"data-inline-card": true,
|
|
45
57
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
46
58
|
"data-card-url": url
|
|
@@ -58,7 +70,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
58
70
|
}
|
|
59
71
|
props.smartCardStorage.set(data.url, data.title);
|
|
60
72
|
}
|
|
61
|
-
}))));
|
|
73
|
+
})))));
|
|
62
74
|
};
|
|
63
75
|
var _default = (0, _SmartCardStorage.withSmartCardStorage)(InlineCard);
|
|
64
76
|
exports.default = _default;
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -24,11 +24,12 @@ var _uniqueId2 = _interopRequireDefault(require("lodash/uniqueId"));
|
|
|
24
24
|
var _utils = require("../utils");
|
|
25
25
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
26
26
|
/** @jsx jsx */
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
27
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
28
29
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
var titleStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n outline: none;\n border: none;\n font-size: ", ";\n line-height: ", ";\n font-weight: normal;\n display: flex;\n flex: 1;\n margin: 0;\n padding: 0 0 0 ", "
|
|
30
|
+
var titleStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n outline: none;\n border: none;\n font-size: ", ";\n line-height: ", ";\n font-weight: normal;\n display: flex;\n flex: 1;\n margin: 0;\n padding: 0 0 0 ", ";\n text-align: left;\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), _editorSharedStyles.akEditorLineHeight, "var(--ds-space-050, 4px)");
|
|
30
31
|
var Container = function Container(props) {
|
|
31
|
-
var paddingBottom =
|
|
32
|
+
var paddingBottom = props.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)";
|
|
32
33
|
var sharedContainerStyles = _ui.sharedExpandStyles.containerStyles(props);
|
|
33
34
|
var styles = function styles(themeProps) {
|
|
34
35
|
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n padding: 0;\n padding-bottom: ", ";\n "])), sharedContainerStyles({
|
|
@@ -40,11 +41,11 @@ var Container = function Container(props) {
|
|
|
40
41
|
}, props), props.children);
|
|
41
42
|
};
|
|
42
43
|
var TitleContainer = function TitleContainer(props) {
|
|
43
|
-
var paddingBottom =
|
|
44
|
+
var paddingBottom = !props.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)";
|
|
44
45
|
var styles = function styles(themeProps) {
|
|
45
|
-
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n padding: ", "
|
|
46
|
+
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n padding: ", ";\n padding-bottom: ", ";\n "])), _ui.sharedExpandStyles.titleContainerStyles({
|
|
46
47
|
theme: themeProps
|
|
47
|
-
}), (
|
|
48
|
+
}), "var(--ds-space-100, 8px)", paddingBottom);
|
|
48
49
|
};
|
|
49
50
|
return (0, _react2.jsx)("button", (0, _extends2.default)({
|
|
50
51
|
css: styles
|
|
@@ -55,9 +56,9 @@ var ContentContainer = function ContentContainer(props) {
|
|
|
55
56
|
var sharedContentStyles = _ui.sharedExpandStyles.contentStyles(props);
|
|
56
57
|
var visibility = props.expanded ? 'visible' : 'hidden';
|
|
57
58
|
var styles = function styles(themeProps) {
|
|
58
|
-
return (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n padding-right: ", "
|
|
59
|
+
return (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n padding-right: ", ";\n // TODO: Migrate away from gridSize\n // Recommendation: Replace gridSize with 8, or directly replace with 36px\n padding-left: ", "px;\n visibility: ", ";\n "])), sharedContentStyles({
|
|
59
60
|
theme: themeProps
|
|
60
|
-
}), (
|
|
61
|
+
}), "var(--ds-space-200, 16px)", (0, _constants.gridSize)() * 5 - (0, _constants.gridSize)() / 2, visibility);
|
|
61
62
|
};
|
|
62
63
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
63
64
|
css: styles
|
|
@@ -13,9 +13,11 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var _events = require("../../analytics/events");
|
|
17
16
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
18
17
|
var _analyticsListeners = require("@atlaskit/analytics-listeners");
|
|
18
|
+
var _monitoring = require("@atlaskit/editor-common/monitoring");
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
|
+
var _events = require("../../analytics/events");
|
|
19
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
20
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21
23
|
var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
@@ -71,6 +73,11 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
71
73
|
errorStack: error === null || error === void 0 ? void 0 : error.stack
|
|
72
74
|
}
|
|
73
75
|
});
|
|
76
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.sentry-error-monitoring_6bksu')) {
|
|
77
|
+
(0, _monitoring.logException)(error, {
|
|
78
|
+
location: 'renderer'
|
|
79
|
+
});
|
|
80
|
+
}
|
|
74
81
|
if (this.hasFallback()) {
|
|
75
82
|
this.setState({
|
|
76
83
|
errorCaptured: true
|
|
@@ -55,7 +55,7 @@ exports.NORMAL_SEVERITY_THRESHOLD = NORMAL_SEVERITY_THRESHOLD;
|
|
|
55
55
|
var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
exports.DEGRADED_SEVERITY_THRESHOLD = DEGRADED_SEVERITY_THRESHOLD;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "108.
|
|
58
|
+
var packageVersion = "108.1.0";
|
|
59
59
|
var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
|
@@ -198,26 +198,33 @@ var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
198
198
|
});
|
|
199
199
|
this.rafID = requestAnimationFrame(function () {
|
|
200
200
|
(0, _utils.stopMeasure)("Renderer Render Time: ".concat(_this2.id), function (duration) {
|
|
201
|
-
var _analyticsEventSeveri, _analyticsEventSeveri2;
|
|
201
|
+
var _analyticsEventSeveri, _analyticsEventSeveri2, _this2$props, _this2$props$analytic;
|
|
202
202
|
var analyticsEventSeverityTracking = _this2.props.analyticsEventSeverityTracking;
|
|
203
203
|
var forceSeverityTracking = typeof analyticsEventSeverityTracking === 'undefined' && (0, _utils.shouldForceTracking)();
|
|
204
204
|
var severity = !!forceSeverityTracking || analyticsEventSeverityTracking !== null && analyticsEventSeverityTracking !== void 0 && analyticsEventSeverityTracking.enabled ? (0, _utils.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;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
205
|
+
|
|
206
|
+
// ED-16320: Check for explicit disable so that by default
|
|
207
|
+
// it will still be enabled as it currently is. Then we can
|
|
208
|
+
// progressively opt out synthetic tenants.
|
|
209
|
+
var isTTRTrackingExplicitlyDisabled = ((_this2$props = _this2.props) === null || _this2$props === void 0 ? void 0 : (_this2$props$analytic = _this2$props.analyticsEventSeverityTracking) === null || _this2$props$analytic === void 0 ? void 0 : _this2$props$analytic.enabled) === false;
|
|
210
|
+
if (!isTTRTrackingExplicitlyDisabled) {
|
|
211
|
+
_this2.fireAnalyticsEvent({
|
|
212
|
+
action: _analytics.ACTION.RENDERED,
|
|
213
|
+
actionSubject: _analytics.ACTION_SUBJECT.RENDERER,
|
|
214
|
+
attributes: {
|
|
215
|
+
platform: _events.PLATFORM.WEB,
|
|
216
|
+
duration: duration,
|
|
217
|
+
distortedDuration: _this2.renderedMeasurementDistortedDurationMonitor.distortedDuration,
|
|
218
|
+
ttfb: (0, _utils.getResponseEndTime)(),
|
|
219
|
+
nodes: (0, _traverse.reduce)(_this2.props.document, function (acc, node) {
|
|
220
|
+
acc[node.type] = (acc[node.type] || 0) + 1;
|
|
221
|
+
return acc;
|
|
222
|
+
}, {}),
|
|
223
|
+
severity: severity
|
|
224
|
+
},
|
|
225
|
+
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
226
|
+
});
|
|
227
|
+
}
|
|
221
228
|
_this2.renderedMeasurementDistortedDurationMonitor.cleanup();
|
|
222
229
|
delete _this2.renderedMeasurementDistortedDurationMonitor;
|
|
223
230
|
});
|
|
@@ -344,7 +351,7 @@ var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
344
351
|
}
|
|
345
352
|
};
|
|
346
353
|
try {
|
|
347
|
-
var _featureFlags$feature, _this$featureFlags2, _this$featureFlags2$f, _this$featureFlags2$f2;
|
|
354
|
+
var _featureFlags$feature, _featureFlags$feature2, _this$featureFlags2, _this$featureFlags2$f, _this$featureFlags2$f2;
|
|
348
355
|
var schema = this.getSchema(this.props.schema, this.props.adfStage);
|
|
349
356
|
var _renderDocument = (0, _.renderDocument)(adfDocument, this.serializer, schema, adfStage, this.props.useSpecBasedValidator, this.id, this.fireAnalyticsEvent, this.props.unsupportedContentLevelsTracking, this.props.appearance),
|
|
350
357
|
result = _renderDocument.result,
|
|
@@ -372,6 +379,7 @@ var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
372
379
|
allowCustomPanels: allowCustomPanels,
|
|
373
380
|
allowPlaceholderText: allowPlaceholderText,
|
|
374
381
|
useFragmentMarkBreakoutWidthStylingFix: (_featureFlags$feature = featureFlags.featureFlags.useFragmentMarkBreakoutWidthStylingFix) !== null && _featureFlags$feature !== void 0 ? _featureFlags$feature : true,
|
|
382
|
+
useBlockRenderForCodeBlock: (_featureFlags$feature2 = featureFlags.featureFlags.useBlockRenderForCodeBlock) !== null && _featureFlags$feature2 !== void 0 ? _featureFlags$feature2 : true,
|
|
375
383
|
innerRef: this.editorRef,
|
|
376
384
|
onClick: handleWrapperOnClick,
|
|
377
385
|
onMouseDown: this.onMouseDownEditView
|
|
@@ -394,7 +402,7 @@ var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
394
402
|
});
|
|
395
403
|
return (0, _react2.jsx)(_react.Fragment, null, reRenderTracking, rendererResult);
|
|
396
404
|
} catch (e) {
|
|
397
|
-
var _featureFlags$
|
|
405
|
+
var _featureFlags$feature3, _featureFlags$feature4;
|
|
398
406
|
if (onError) {
|
|
399
407
|
onError(e);
|
|
400
408
|
}
|
|
@@ -405,7 +413,8 @@ var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
405
413
|
allowPlaceholderText: allowPlaceholderText,
|
|
406
414
|
allowColumnSorting: allowColumnSorting,
|
|
407
415
|
allowNestedHeaderLinks: allowNestedHeaderLinks,
|
|
408
|
-
useFragmentMarkBreakoutWidthStylingFix: (_featureFlags$
|
|
416
|
+
useFragmentMarkBreakoutWidthStylingFix: (_featureFlags$feature3 = featureFlags.featureFlags.useFragmentMarkBreakoutWidthStylingFix) !== null && _featureFlags$feature3 !== void 0 ? _featureFlags$feature3 : true,
|
|
417
|
+
useBlockRenderForCodeBlock: (_featureFlags$feature4 = featureFlags.featureFlags.useBlockRenderForCodeBlock) !== null && _featureFlags$feature4 !== void 0 ? _featureFlags$feature4 : true,
|
|
409
418
|
onClick: handleWrapperOnClick
|
|
410
419
|
}, (0, _react2.jsx)(_ui.UnsupportedBlock, null));
|
|
411
420
|
}
|
|
@@ -459,7 +468,8 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
459
468
|
children = props.children,
|
|
460
469
|
onClick = props.onClick,
|
|
461
470
|
onMouseDown = props.onMouseDown,
|
|
462
|
-
useFragmentMarkBreakoutWidthStylingFix = props.useFragmentMarkBreakoutWidthStylingFix
|
|
471
|
+
useFragmentMarkBreakoutWidthStylingFix = props.useFragmentMarkBreakoutWidthStylingFix,
|
|
472
|
+
useBlockRenderForCodeBlock = props.useBlockRenderForCodeBlock;
|
|
463
473
|
return (0, _react2.jsx)(_ui.WidthProvider, {
|
|
464
474
|
className: "ak-renderer-wrapper"
|
|
465
475
|
}, (0, _react2.jsx)(_ui.BaseTheme, {
|
|
@@ -472,7 +482,8 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
472
482
|
appearance: appearance,
|
|
473
483
|
allowNestedHeaderLinks: allowNestedHeaderLinks,
|
|
474
484
|
allowColumnSorting: !!allowColumnSorting,
|
|
475
|
-
useFragmentMarkBreakoutWidthStylingFix: useFragmentMarkBreakoutWidthStylingFix
|
|
485
|
+
useFragmentMarkBreakoutWidthStylingFix: useFragmentMarkBreakoutWidthStylingFix,
|
|
486
|
+
useBlockRenderForCodeBlock: useBlockRenderForCodeBlock
|
|
476
487
|
})
|
|
477
488
|
}, children)));
|
|
478
489
|
});
|
|
@@ -97,7 +97,8 @@ var rendererStyles = function rendererStyles(wrapperProps) {
|
|
|
97
97
|
var themeProps = {
|
|
98
98
|
theme: theme
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
var useBlockRenderForCodeBlock = wrapperProps.useBlockRenderForCodeBlock;
|
|
101
|
+
return (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n .", "::after {\n // we add a clearfix after ak-renderer-document in order to\n // contain internal floats (such as media images that are \"wrap-left\")\n // to just the renderer (and not spill outside of it)\n content: '';\n visibility: hidden;\n display: block;\n height: 0;\n clear: both;\n }\n\n ", "\n ", "\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:active {\n color: ", ";\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", ";\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", " 0;\n }\n\n .", ".rich-media-wrapped\n + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped\n + .rich-media-wrapped\n + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n /* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n ", "\n\n * .", " {\n overflow-x: auto;\n }\n\n & .", ":first-child {\n margin-top: 0;\n }\n }\n\n .", " {\n .", " {\n margin-top: ", ";\n }\n\n .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .", " {\n overflow-x: auto;\n }\n\n .", "\n .", " {\n display: flex;\n }\n }\n\n ", "\n\n .", " .", " {\n z-index: 0;\n transition: all 0.1s linear;\n display: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n /** Shadow overrides */\n &.", "::after,\n &.", "::before {\n top: ", "px;\n height: calc(100% - ", "px);\n z-index: ", ";\n }\n\n &\n .", ",\n &\n .", " {\n height: calc(100% - ", "px);\n }\n\n /**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n table {\n height: 1px; /* will be ignored */\n ", ";\n margin-left: 0;\n margin-right: 0;\n }\n\n table tr:first-of-type {\n height: 100%;\n\n td,\n th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid\n ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th,\n .sticky td {\n box-shadow: 0px 1px\n ", ",\n 0px -0.5px ", ",\n inset -1px 0px ", ",\n 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: block;\n /* stylelint-enable */\n\n position: relative;\n border-radius: ", ";\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n\n ", "\n\n ", "\n\n ", ";\n & [data-layout-section] {\n margin-top: ", ";\n & > div + div {\n margin-left: ", ";\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n }\n }\n\n & li {\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n & :not([data-node-type='decisionList']) > li {\n ", "\n }\n "])), (0, _editorSharedStyles.editorFontSize)(themeProps), (0, _components.themed)({
|
|
101
102
|
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
102
103
|
dark: "var(--ds-text, #B8C7E0)"
|
|
103
104
|
})(themeProps), _consts.RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), (0, _components.themed)({
|
|
@@ -109,7 +110,7 @@ var rendererStyles = function rendererStyles(wrapperProps) {
|
|
|
109
110
|
})(themeProps), "var(--ds-radius-100, 3px)", (0, _components.themed)({
|
|
110
111
|
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
111
112
|
dark: "var(--ds-text, ".concat(colors.DN600, ")")
|
|
112
|
-
})(themeProps), "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), (
|
|
113
|
+
})(themeProps), "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), "var(--ds-space-300, 24px)", _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, alignedHeadingAnchorStyle(wrapperProps), _styles.mediaSingleSharedStyle, _consts.RendererCssClassName.DOCUMENT, breakoutWidthStyle(wrapperProps.useFragmentMarkBreakoutWidthStylingFix), _consts.RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, _consts.RendererCssClassName.EXTENSION, _consts.RendererCssClassName.DOCUMENT, _consts.RendererCssClassName.EXTENSION, _editorSharedStyles.blockNodesVerticalMargin, _consts.RendererCssClassName.EXTENSION_CENTER_ALIGN, _styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, _ui.shadowObserverClassNames.SHADOW_CONTAINER, _styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, (0, _styles.tableSharedStyle)(themeProps), _consts.RendererCssClassName.DOCUMENT, _styles.TableSharedCssClassName.TABLE_CONTAINER, _ui.shadowClassNames.RIGHT_SHADOW, _ui.shadowClassNames.LEFT_SHADOW, _styles.tableMarginTop - 1, _styles.tableMarginTop, _editorSharedStyles.akEditorStickyHeaderZIndex, _ui.shadowObserverClassNames.SENTINEL_LEFT, _ui.shadowObserverClassNames.SENTINEL_RIGHT, _styles.tableMarginTop, tableSortableColumnStyle(wrapperProps), _consts.RendererCssClassName.NUMBER_COLUMN, (0, _components.themed)({
|
|
113
114
|
light: "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
|
|
114
115
|
dark: "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
|
|
115
116
|
})(themeProps), (0, _components.themed)({
|
|
@@ -136,7 +137,13 @@ var rendererStyles = function rendererStyles(wrapperProps) {
|
|
|
136
137
|
})(themeProps), (0, _components.themed)({
|
|
137
138
|
light: "var(--ds-border, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
|
|
138
139
|
dark: "var(--ds-border, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
|
|
139
|
-
})(themeProps), "var(--ds-radius-100, 3px)", _editorSharedStyles.blockNodesVerticalMargin, (0, _lightWeightCodeBlock.getLightWeightCodeBlockStylesForRootRendererStyleSheet)(), _styles.columnLayoutSharedStyle, (
|
|
140
|
+
})(themeProps), "var(--ds-radius-100, 3px)", _editorSharedStyles.blockNodesVerticalMargin, useGridRenderForCodeBlock(useBlockRenderForCodeBlock), (0, _lightWeightCodeBlock.getLightWeightCodeBlockStylesForRootRendererStyleSheet)(), _styles.columnLayoutSharedStyle, "var(--ds-space-250, 20px)", "var(--ds-space-400, 32px)", _editorSharedStyles.gridMediumMaxWidth, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin, _utils.browser.safari ? _styles.codeBlockInListSafariFix : '');
|
|
140
141
|
};
|
|
141
142
|
};
|
|
142
|
-
exports.rendererStyles = rendererStyles;
|
|
143
|
+
exports.rendererStyles = rendererStyles;
|
|
144
|
+
var useGridRenderForCodeBlock = function useGridRenderForCodeBlock(codeBlockRenderAsBlock) {
|
|
145
|
+
if (codeBlockRenderAsBlock) {
|
|
146
|
+
return '';
|
|
147
|
+
}
|
|
148
|
+
return "& .code-block {\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }";
|
|
149
|
+
};
|
|
@@ -8,7 +8,6 @@ exports.default = exports.StatusClassNames = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
11
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
12
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
var _types = require("@atlaskit/editor-common/types");
|
|
14
13
|
var _messages = require("../messages");
|
|
@@ -24,7 +23,7 @@ var StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
|
|
|
24
23
|
return StatusClassNames;
|
|
25
24
|
}({});
|
|
26
25
|
exports.StatusClassNames = StatusClassNames;
|
|
27
|
-
var buttonStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n display: flex;\n height: 28px;\n width: 28px;\n margin: 6px;\n right: 0;\n top: 0;\n border: 2px solid ", ";\n border-radius: ", "
|
|
26
|
+
var buttonStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n display: flex;\n height: 28px;\n width: 28px;\n margin: 6px;\n right: 0;\n top: 0;\n border: 2px solid ", ";\n border-radius: ", ";\n background-color: ", ";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n\n &:active {\n background-color: ", ";\n }\n\n &.", "__not-allowed {\n cursor: not-allowed;\n }\n"])), "var(--ds-border, #fff)", "var(--ds-radius-100, 4px)", "var(--ds-surface-overlay, ".concat(_colors.N20, ")"), "var(--ds-surface-overlay-hovered, ".concat(_colors.N30, ")"), "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))", _consts.RendererCssClassName.SORTABLE_COLUMN_ICON);
|
|
28
27
|
var iconWrapperStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 8px;\n height: 12px;\n transition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);\n transform-origin: 50% 50%;\n display: flex;\n justify-content: center;\n\n &.", " {\n transform: rotate(-180deg);\n }\n\n &.", "-inactive {\n opacity: 0.7;\n }\n"])), StatusClassNames.DESC, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON);
|
|
29
28
|
|
|
30
29
|
// The icon is created with CSS due to the following Firefox issue: https://product-fabric.atlassian.net/browse/ED-8001
|
package/dist/cjs/version.json
CHANGED
|
@@ -7,6 +7,7 @@ import { getEventHandler } from '../../utils';
|
|
|
7
7
|
import { PLATFORM, MODE } from '../../analytics/events';
|
|
8
8
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
10
|
+
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
10
11
|
const anchorStyles = css`
|
|
11
12
|
color: ${`var(--ds-link, ${B400})`};
|
|
12
13
|
|
|
@@ -40,7 +41,16 @@ export default function Link(props) {
|
|
|
40
41
|
if (isMediaLink) {
|
|
41
42
|
return jsx(Fragment, null, props.children);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
const analyticsData = {
|
|
45
|
+
attributes: {
|
|
46
|
+
location: 'renderer'
|
|
47
|
+
},
|
|
48
|
+
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
49
|
+
location: 'renderer'
|
|
50
|
+
};
|
|
51
|
+
return jsx(AnalyticsContext, {
|
|
52
|
+
data: analyticsData
|
|
53
|
+
}, jsx(LinkUrl, _extends({
|
|
44
54
|
css: anchorStyles,
|
|
45
55
|
onClick: e => {
|
|
46
56
|
if (fireAnalyticsEvent) {
|
|
@@ -58,5 +68,5 @@ export default function Link(props) {
|
|
|
58
68
|
handler(e, href);
|
|
59
69
|
}
|
|
60
70
|
}
|
|
61
|
-
}, anchorProps, dataAttributes), props.children);
|
|
71
|
+
}, anchorProps, dataAttributes), props.children));
|
|
62
72
|
}
|
|
@@ -5,6 +5,7 @@ import { UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
|
5
5
|
import { getPlatform } from '../../utils';
|
|
6
6
|
import { CardErrorBoundary } from './fallback';
|
|
7
7
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
8
|
+
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
8
9
|
export default function BlockCard(props) {
|
|
9
10
|
const {
|
|
10
11
|
url,
|
|
@@ -25,7 +26,16 @@ export default function BlockCard(props) {
|
|
|
25
26
|
onClick,
|
|
26
27
|
container: portal
|
|
27
28
|
};
|
|
28
|
-
|
|
29
|
+
const analyticsData = {
|
|
30
|
+
attributes: {
|
|
31
|
+
location: 'renderer'
|
|
32
|
+
},
|
|
33
|
+
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
34
|
+
location: 'renderer'
|
|
35
|
+
};
|
|
36
|
+
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
37
|
+
data: analyticsData
|
|
38
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
29
39
|
className: "blockCardView-content-wrap",
|
|
30
40
|
"data-block-card": true,
|
|
31
41
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
@@ -37,5 +47,5 @@ export default function BlockCard(props) {
|
|
|
37
47
|
showActions: rendererAppearance !== 'mobile',
|
|
38
48
|
platform: platform,
|
|
39
49
|
showServerActions: showServerActions
|
|
40
|
-
}, cardProps))));
|
|
50
|
+
}, cardProps)))));
|
|
41
51
|
}
|
|
@@ -3,7 +3,7 @@ import { jsx, css } from '@emotion/react';
|
|
|
3
3
|
import { overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { N20, DN50 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { themed } from '@atlaskit/theme/components';
|
|
6
|
-
import { fontSize
|
|
6
|
+
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
7
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
8
8
|
import CodeBlockButtonContainer from './codeBlockButtonContainer';
|
|
9
9
|
const codeBlockStyleOverrides = props => css`
|
|
@@ -32,7 +32,7 @@ const codeBlockStyleOverrides = props => css`
|
|
|
32
32
|
light: `var(--ds-background-neutral, ${N20})`,
|
|
33
33
|
dark: `var(--ds-background-neutral, ${DN50})`
|
|
34
34
|
})(props),
|
|
35
|
-
leftCoverWidth:
|
|
35
|
+
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
36
36
|
})};
|
|
37
37
|
background-attachment: local, local, local, local, scroll, scroll, scroll,
|
|
38
38
|
scroll;
|