@atlaskit/renderer 141.0.1 → 141.0.3
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 +17 -0
- package/dist/cjs/actions/index.js +1 -1
- package/dist/cjs/actions/selection.js +1 -1
- package/dist/cjs/analytics/unsupported-content.js +1 -1
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
- package/dist/cjs/react/index.js +9 -9
- package/dist/cjs/react/marks/index.js +10 -10
- package/dist/cjs/react/marks/link.js +3 -3
- package/dist/cjs/react/nodes/blockCard.js +12 -12
- package/dist/cjs/react/nodes/bodiedExtension.js +4 -4
- package/dist/cjs/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +11 -11
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/date.js +2 -2
- package/dist/cjs/react/nodes/embedCard.js +33 -32
- package/dist/cjs/react/nodes/emoji.js +12 -12
- package/dist/cjs/react/nodes/extension.js +19 -19
- package/dist/cjs/react/nodes/fallback.js +2 -2
- package/dist/cjs/react/nodes/heading-anchor.js +1 -1
- package/dist/cjs/react/nodes/heading.js +3 -3
- package/dist/cjs/react/nodes/index.js +5 -5
- package/dist/cjs/react/nodes/inlineCard.js +12 -12
- package/dist/cjs/react/nodes/loosely-lazy.js +0 -1
- package/dist/cjs/react/nodes/media/index.js +11 -16
- package/dist/cjs/react/nodes/mediaInline.js +6 -6
- package/dist/cjs/react/nodes/mediaSingle/index.js +4 -4
- package/dist/cjs/react/nodes/multiBodiedExtension.js +29 -29
- package/dist/cjs/react/nodes/panel-compiled.js +1 -1
- package/dist/cjs/react/nodes/panel-emotion.js +1 -1
- package/dist/cjs/react/nodes/status.js +1 -1
- package/dist/cjs/react/nodes/table/colgroup.js +2 -2
- package/dist/cjs/react/nodes/table/sticky.js +1 -1
- package/dist/cjs/react/nodes/table/table.js +2 -2
- package/dist/cjs/react/nodes/table.js +14 -14
- package/dist/cjs/react/nodes/tableCell.js +7 -7
- package/dist/cjs/react/nodes/tableRow.js +2 -2
- package/dist/cjs/react/nodes/taskItem.js +2 -2
- package/dist/cjs/react/utils/EditorMediaClientProvider.js +2 -2
- package/dist/cjs/react/utils/use-select-all-trap.js +1 -1
- package/dist/cjs/render-document.js +1 -1
- package/dist/cjs/steps/index.js +1 -1
- package/dist/cjs/text/nodes/status.js +1 -1
- package/dist/cjs/ui/Expand.js +53 -52
- package/dist/cjs/ui/ExtensionRenderer.js +19 -17
- package/dist/cjs/ui/MediaCard.js +4 -4
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +1 -1
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +21 -21
- package/dist/cjs/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +22 -22
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +7 -6
- package/dist/cjs/ui/RendererActionsContext/index.js +2 -2
- package/dist/cjs/ui/annotations/draft/component.js +5 -5
- package/dist/cjs/ui/annotations/element/index.js +4 -4
- package/dist/cjs/ui/annotations/element/mark.js +1 -1
- package/dist/cjs/ui/annotations/hooks/use-events.js +17 -17
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/cjs/ui/annotations/hooks/user-selection.js +2 -2
- package/dist/cjs/ui/annotations/hover/mounter.js +2 -2
- package/dist/cjs/ui/annotations/hover/range-validator.js +2 -2
- package/dist/cjs/ui/annotations/index.js +6 -6
- package/dist/cjs/ui/annotations/selection/mounter.js +3 -3
- package/dist/cjs/ui/annotations/selection/range-validator.js +1 -1
- package/dist/cjs/ui/annotations/view/index.js +1 -1
- package/dist/cjs/utils.js +1 -0
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/actions/selection.js +1 -1
- package/dist/es2019/analytics/unsupported-content.js +1 -1
- package/dist/es2019/custom-nodes.js +1 -0
- package/dist/es2019/entry-points/actions-renderer-actions-context.js +1 -0
- package/dist/es2019/entry-points/actions-with-renderer-actions.js +1 -0
- package/dist/es2019/entry-points/annotations.js +1 -0
- package/dist/es2019/entry-points/consts.js +1 -0
- package/dist/es2019/entry-points/custom-nodes-loosely-lazy.js +1 -0
- package/dist/es2019/entry-points/events.js +1 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/cards.js +1 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/media.js +1 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/small-nodes.js +2 -1
- package/dist/es2019/entry-points/extension-renderer.js +1 -0
- package/dist/es2019/entry-points/loosely-lazy.js +1 -0
- package/dist/es2019/entry-points/messages.js +1 -0
- package/dist/es2019/entry-points/nodes.js +1 -0
- package/dist/es2019/entry-points/render-document.js +1 -0
- package/dist/es2019/entry-points/renderer-actions-context.js +1 -0
- package/dist/es2019/entry-points/renderer-context.js +1 -0
- package/dist/es2019/entry-points/renderer-default.js +1 -0
- package/dist/es2019/entry-points/renderer.js +1 -0
- package/dist/es2019/entry-points/text-serializer-text.js +1 -0
- package/dist/es2019/entry-points/text.js +1 -0
- package/dist/es2019/entry-points/use-feature-flags.js +1 -0
- package/dist/es2019/entry-points/utils.js +1 -0
- package/dist/es2019/entry-points/validation-context.js +1 -0
- package/dist/es2019/i18n/index.js +1 -0
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/react/index.js +9 -9
- package/dist/es2019/react/marks/alignment.js +1 -0
- package/dist/es2019/react/marks/index.js +11 -12
- package/dist/es2019/react/marks/link.js +3 -3
- package/dist/es2019/react/nodes/blockCard.js +9 -9
- package/dist/es2019/react/nodes/bodiedExtension.js +4 -4
- package/dist/es2019/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -5
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +2 -1
- package/dist/es2019/react/nodes/date.js +2 -2
- package/dist/es2019/react/nodes/embedCard.js +11 -10
- package/dist/es2019/react/nodes/emoji.js +5 -4
- package/dist/es2019/react/nodes/extension.js +5 -4
- package/dist/es2019/react/nodes/fallback.js +2 -2
- package/dist/es2019/react/nodes/heading-anchor.js +2 -1
- package/dist/es2019/react/nodes/heading.js +3 -3
- package/dist/es2019/react/nodes/index.js +9 -8
- package/dist/es2019/react/nodes/inlineCard.js +12 -12
- package/dist/es2019/react/nodes/loosely-lazy.js +2 -2
- package/dist/es2019/react/nodes/media/index.js +12 -16
- package/dist/es2019/react/nodes/mediaInline.js +6 -6
- package/dist/es2019/react/nodes/mediaSingle/index.js +5 -4
- package/dist/es2019/react/nodes/multiBodiedExtension.js +6 -5
- package/dist/es2019/react/nodes/panel-compiled.js +1 -1
- package/dist/es2019/react/nodes/panel-emotion.js +1 -1
- package/dist/es2019/react/nodes/status.js +1 -1
- package/dist/es2019/react/nodes/table/colgroup.js +2 -3
- package/dist/es2019/react/nodes/table/sticky.js +2 -1
- package/dist/es2019/react/nodes/table/table.js +2 -2
- package/dist/es2019/react/nodes/table.js +12 -11
- package/dist/es2019/react/nodes/tableCell.js +7 -7
- package/dist/es2019/react/nodes/tableRow.js +2 -2
- package/dist/es2019/react/nodes/taskItem.js +2 -2
- package/dist/es2019/react/utils/EditorMediaClientProvider.js +2 -2
- package/dist/es2019/react/utils/getStandaloneBackgroundColorMarks.js +1 -0
- package/dist/es2019/react/utils/use-select-all-trap.js +1 -1
- package/dist/es2019/render-document.js +1 -1
- package/dist/es2019/steps/index.js +2 -1
- package/dist/es2019/text/nodes/status.js +1 -1
- package/dist/es2019/ui/Expand.js +7 -5
- package/dist/es2019/ui/ExtensionRenderer.js +5 -2
- package/dist/es2019/ui/MediaCard.js +4 -4
- package/dist/es2019/ui/Renderer/ErrorBoundary.js +1 -1
- package/dist/es2019/ui/Renderer/PortalContext.js +1 -0
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +15 -15
- package/dist/es2019/ui/Renderer/breakout-ssr.js +2 -1
- package/dist/es2019/ui/Renderer/count-nodes.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +23 -24
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +7 -2
- package/dist/es2019/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
- package/dist/es2019/ui/RendererActionsContext/index.js +3 -2
- package/dist/es2019/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
- package/dist/es2019/ui/annotations/draft/component.js +6 -5
- package/dist/es2019/ui/annotations/element/index.js +4 -4
- package/dist/es2019/ui/annotations/element/mark.js +2 -1
- package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -0
- package/dist/es2019/ui/annotations/hooks/use-events.js +2 -2
- package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/es2019/ui/annotations/hooks/user-selection.js +2 -2
- package/dist/es2019/ui/annotations/hover/mounter.js +2 -2
- package/dist/es2019/ui/annotations/hover/range-validator.js +2 -2
- package/dist/es2019/ui/annotations/index.js +6 -6
- package/dist/es2019/ui/annotations/selection/mounter.js +3 -3
- package/dist/es2019/ui/annotations/selection/range-validator.js +1 -1
- package/dist/es2019/ui/annotations/view/index.js +1 -1
- package/dist/es2019/utils.js +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/actions/selection.js +1 -1
- package/dist/esm/analytics/unsupported-content.js +1 -1
- package/dist/esm/custom-nodes.js +1 -0
- package/dist/esm/entry-points/actions-renderer-actions-context.js +1 -0
- package/dist/esm/entry-points/actions-with-renderer-actions.js +1 -0
- package/dist/esm/entry-points/annotations.js +1 -0
- package/dist/esm/entry-points/consts.js +1 -0
- package/dist/esm/entry-points/custom-nodes-loosely-lazy.js +1 -0
- package/dist/esm/entry-points/events.js +1 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/cards.js +1 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/media.js +1 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/small-nodes.js +2 -1
- package/dist/esm/entry-points/extension-renderer.js +1 -0
- package/dist/esm/entry-points/loosely-lazy.js +1 -0
- package/dist/esm/entry-points/messages.js +1 -0
- package/dist/esm/entry-points/nodes.js +1 -0
- package/dist/esm/entry-points/render-document.js +1 -0
- package/dist/esm/entry-points/renderer-actions-context.js +1 -0
- package/dist/esm/entry-points/renderer-context.js +1 -0
- package/dist/esm/entry-points/renderer-default.js +1 -0
- package/dist/esm/entry-points/renderer.js +1 -0
- package/dist/esm/entry-points/text-serializer-text.js +1 -0
- package/dist/esm/entry-points/text.js +1 -0
- package/dist/esm/entry-points/use-feature-flags.js +1 -0
- package/dist/esm/entry-points/utils.js +1 -0
- package/dist/esm/entry-points/validation-context.js +1 -0
- package/dist/esm/i18n/index.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/react/index.js +9 -9
- package/dist/esm/react/marks/alignment.js +1 -0
- package/dist/esm/react/marks/index.js +11 -12
- package/dist/esm/react/marks/link.js +3 -3
- package/dist/esm/react/nodes/blockCard.js +9 -9
- package/dist/esm/react/nodes/bodiedExtension.js +4 -4
- package/dist/esm/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -5
- package/dist/esm/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -1
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +2 -1
- package/dist/esm/react/nodes/date.js +2 -2
- package/dist/esm/react/nodes/embedCard.js +11 -10
- package/dist/esm/react/nodes/emoji.js +5 -4
- package/dist/esm/react/nodes/extension.js +5 -4
- package/dist/esm/react/nodes/fallback.js +2 -2
- package/dist/esm/react/nodes/heading-anchor.js +2 -1
- package/dist/esm/react/nodes/heading.js +3 -3
- package/dist/esm/react/nodes/index.js +9 -8
- package/dist/esm/react/nodes/inlineCard.js +12 -12
- package/dist/esm/react/nodes/loosely-lazy.js +2 -2
- package/dist/esm/react/nodes/media/index.js +12 -16
- package/dist/esm/react/nodes/mediaInline.js +6 -6
- package/dist/esm/react/nodes/mediaSingle/index.js +5 -4
- package/dist/esm/react/nodes/multiBodiedExtension.js +6 -5
- package/dist/esm/react/nodes/panel-compiled.js +1 -1
- package/dist/esm/react/nodes/panel-emotion.js +1 -1
- package/dist/esm/react/nodes/status.js +1 -1
- package/dist/esm/react/nodes/table/colgroup.js +2 -3
- package/dist/esm/react/nodes/table/sticky.js +2 -1
- package/dist/esm/react/nodes/table/table.js +2 -2
- package/dist/esm/react/nodes/table.js +12 -11
- package/dist/esm/react/nodes/tableCell.js +7 -7
- package/dist/esm/react/nodes/tableRow.js +2 -2
- package/dist/esm/react/nodes/taskItem.js +2 -2
- package/dist/esm/react/utils/EditorMediaClientProvider.js +2 -2
- package/dist/esm/react/utils/getStandaloneBackgroundColorMarks.js +1 -0
- package/dist/esm/react/utils/use-select-all-trap.js +1 -1
- package/dist/esm/render-document.js +1 -1
- package/dist/esm/steps/index.js +2 -1
- package/dist/esm/text/nodes/status.js +1 -1
- package/dist/esm/ui/Expand.js +7 -5
- package/dist/esm/ui/ExtensionRenderer.js +5 -2
- package/dist/esm/ui/MediaCard.js +4 -4
- package/dist/esm/ui/Renderer/ErrorBoundary.js +1 -1
- package/dist/esm/ui/Renderer/PortalContext.js +1 -0
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +15 -15
- package/dist/esm/ui/Renderer/breakout-ssr.js +2 -1
- package/dist/esm/ui/Renderer/count-nodes.js +1 -0
- package/dist/esm/ui/Renderer/index.js +23 -24
- package/dist/esm/ui/Renderer/truncated-wrapper.js +7 -2
- package/dist/esm/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
- package/dist/esm/ui/RendererActionsContext/index.js +3 -2
- package/dist/esm/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
- package/dist/esm/ui/annotations/draft/component.js +6 -5
- package/dist/esm/ui/annotations/element/index.js +4 -4
- package/dist/esm/ui/annotations/element/mark.js +2 -1
- package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -0
- package/dist/esm/ui/annotations/hooks/use-events.js +2 -2
- package/dist/esm/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/esm/ui/annotations/hooks/user-selection.js +2 -2
- package/dist/esm/ui/annotations/hover/mounter.js +2 -2
- package/dist/esm/ui/annotations/hover/range-validator.js +2 -2
- package/dist/esm/ui/annotations/index.js +6 -6
- package/dist/esm/ui/annotations/selection/mounter.js +3 -3
- package/dist/esm/ui/annotations/selection/range-validator.js +1 -1
- package/dist/esm/ui/annotations/view/index.js +1 -1
- package/dist/esm/utils.js +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/analytics/events.d.ts +1 -1
- package/dist/types/react/index.d.ts +4 -4
- package/dist/types/react/marks/annotation.d.ts +1 -1
- package/dist/types/react/marks/index.d.ts +7 -7
- package/dist/types/react/nodes/blockCard.d.ts +2 -2
- package/dist/types/react/nodes/bodiedExtension.d.ts +4 -4
- package/dist/types/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +1 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockContainer.d.ts +1 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +4 -0
- package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +4 -0
- package/dist/types/react/nodes/embedCard.d.ts +3 -3
- package/dist/types/react/nodes/emoji.d.ts +5 -1
- package/dist/types/react/nodes/extension.d.ts +3 -3
- package/dist/types/react/nodes/extensionFrame.d.ts +3 -3
- package/dist/types/react/nodes/heading.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +27 -27
- package/dist/types/react/nodes/inlineCard.d.ts +4 -4
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
- package/dist/types/react/nodes/media/index.d.ts +6 -6
- package/dist/types/react/nodes/mediaGroup.d.ts +2 -2
- package/dist/types/react/nodes/mediaInline.d.ts +4 -4
- package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -1
- package/dist/types/react/nodes/multiBodiedExtension.d.ts +4 -4
- package/dist/types/react/nodes/table/sticky.d.ts +2 -2
- 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/text-wrapper.d.ts +1 -1
- package/dist/types/react/types.d.ts +2 -2
- package/dist/types/react/utils/markBlockAsInline.d.ts +1 -1
- package/dist/types/react/utils/render-text-segments.d.ts +1 -1
- package/dist/types/types/mediaOptions.d.ts +1 -1
- package/dist/types/ui/Expand.d.ts +5 -1
- package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
- package/dist/types/ui/MediaCard.d.ts +8 -8
- package/dist/types/ui/Renderer/truncated-wrapper.d.ts +1 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/draft/component.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 +1 -1
- package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/hover/range-validator.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/types.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +1 -1
- package/dist/types/utils.d.ts +3 -3
- package/package.json +4 -7
|
@@ -3,6 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
7
8
|
import { jsx, css } from '@emotion/react';
|
|
8
9
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
@@ -3,16 +3,18 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
import { useState } from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
import { jsx } from '@emotion/react';
|
|
11
|
+
import { injectIntl } from 'react-intl';
|
|
6
12
|
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
7
13
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
8
14
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
15
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
17
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
11
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
-
import { jsx } from '@emotion/react';
|
|
14
|
-
import { useState } from 'react';
|
|
15
|
-
import { injectIntl } from 'react-intl';
|
|
16
18
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
17
19
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
18
20
|
import { copyTextToClipboard } from '../../../utils/clipboard';
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { injectIntl } from 'react-intl';
|
|
7
|
-
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
8
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
7
|
import { jsx } from '@emotion/react';
|
|
8
|
+
import { injectIntl } from 'react-intl';
|
|
10
9
|
import IconButton from '@atlaskit/button/icon/button';
|
|
11
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
10
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
11
|
+
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
12
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
14
14
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
15
15
|
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
+
|
|
5
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
7
|
import { jsx } from '@emotion/react';
|
|
7
8
|
import { injectIntl } from 'react-intl';
|
|
8
|
-
import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
10
10
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
11
|
+
import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
|
|
11
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
14
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
@@ -8,11 +8,13 @@ var _templateObject;
|
|
|
8
8
|
* @jsxRuntime classic
|
|
9
9
|
* @jsx jsx
|
|
10
10
|
*/
|
|
11
|
+
|
|
11
12
|
import React, { forwardRef, useMemo } from 'react';
|
|
13
|
+
|
|
12
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
15
|
import { css, jsx } from '@emotion/react';
|
|
14
|
-
import { akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow } from '@atlaskit/editor-shared-styles';
|
|
15
16
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
17
|
+
import { akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow } from '@atlaskit/editor-shared-styles';
|
|
16
18
|
import { RendererCssClassName } from '../../../../consts';
|
|
17
19
|
var codeBlockSharedStyles = css(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, "\n\t\t> .").concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "\n\t\t> .").concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTENT), {
|
|
18
20
|
marginRight: "var(--ds-space-100, 8px)",
|
|
@@ -6,13 +6,14 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
6
6
|
* @jsx jsx
|
|
7
7
|
*/
|
|
8
8
|
import { Fragment, lazy, memo, Suspense, useState } from 'react';
|
|
9
|
+
|
|
9
10
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
10
11
|
import { jsx } from '@emotion/react';
|
|
11
12
|
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
12
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
14
|
import { useInViewport } from '../../hooks/use-in-viewport';
|
|
14
|
-
import LightWeightCodeBlock from './components/lightWeightCodeBlock';
|
|
15
15
|
import CodeBlockContainer from './components/codeBlockContainer';
|
|
16
|
+
import LightWeightCodeBlock from './components/lightWeightCodeBlock';
|
|
16
17
|
var LazyAkCodeBlock = /*#__PURE__*/lazy(
|
|
17
18
|
/*#__PURE__*/
|
|
18
19
|
// Ignored via go/ees005
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import React, { memo } from 'react';
|
|
4
|
+
import { injectIntl } from 'react-intl';
|
|
4
5
|
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
5
6
|
import { isPastDate, timestampToString, timestampToTaskContext } from '@atlaskit/editor-common/utils';
|
|
6
|
-
import { injectIntl } from 'react-intl';
|
|
7
7
|
import { useRendererContext } from '../../renderer-context';
|
|
8
|
-
import { useTaskItemsFormatContext } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
9
8
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
9
|
+
import { useTaskItemsFormatContext } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
10
10
|
var Date = /*#__PURE__*/memo(function Date(props) {
|
|
11
11
|
var inlineAnnotationProps = useInlineAnnotationProps(props);
|
|
12
12
|
var timestamp = props.timestamp,
|
|
@@ -4,27 +4,28 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
* @jsxRuntime classic
|
|
5
5
|
* @jsx jsx
|
|
6
6
|
*/
|
|
7
|
+
|
|
8
|
+
import { useContext, useState, useRef } from 'react';
|
|
7
9
|
/* eslint-disable jsdoc/check-tag-names */
|
|
8
10
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
9
11
|
import { jsx, css } from '@emotion/react';
|
|
10
|
-
import
|
|
11
|
-
import { Card, EmbedResizeMessageListener } from '@atlaskit/smart-card';
|
|
12
|
-
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
13
|
-
import { SmartCardContext } from '@atlaskit/link-provider/context';
|
|
12
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
14
13
|
import { WidthConsumer, UnsupportedBlock, MediaSingle as UIMediaSingle, WidthContext } from '@atlaskit/editor-common/ui';
|
|
15
14
|
import { akEditorDefaultLayoutWidth, akEditorFullPageNarrowBreakout, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
16
|
-
import {
|
|
15
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
16
|
+
import { SmartCardContext } from '@atlaskit/link-provider/context';
|
|
17
17
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
|
+
import { Card, EmbedResizeMessageListener } from '@atlaskit/smart-card';
|
|
20
|
+
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
18
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
|
-
import { CardErrorBoundary } from './fallback';
|
|
20
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
21
22
|
import { RendererCssClassName } from '../../consts';
|
|
23
|
+
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
22
24
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
23
|
-
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
24
25
|
import { getEventHandler } from '../../utils';
|
|
25
|
-
import
|
|
26
|
-
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
26
|
+
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
27
27
|
import BlockCard from './blockCard';
|
|
28
|
+
import { CardErrorBoundary } from './fallback';
|
|
28
29
|
var embedCardWrapperStyles = css({
|
|
29
30
|
width: '100%',
|
|
30
31
|
height: '100%',
|
|
@@ -10,16 +10,17 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
10
10
|
* @jsxRuntime classic
|
|
11
11
|
* @jsx jsx
|
|
12
12
|
*/
|
|
13
|
+
|
|
14
|
+
import { PureComponent, memo } from 'react';
|
|
13
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
16
|
import { jsx } from '@emotion/react';
|
|
15
|
-
import { PureComponent, memo } from 'react';
|
|
16
17
|
import { messages } from '@atlaskit/editor-common/emoji';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
|
-
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
19
18
|
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
20
19
|
import { isSingleEmoji } from '@atlaskit/editor-common/utils/isSingleEmoji';
|
|
20
|
+
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
21
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
22
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
22
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
23
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components -- class kept for WithProviders compatibility
|
|
23
24
|
var EmojiNode = /*#__PURE__*/function (_PureComponent) {
|
|
24
25
|
function EmojiNode(props) {
|
|
25
26
|
var _this;
|
|
@@ -4,18 +4,19 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import React, { useEffect, useRef } from 'react';
|
|
8
|
+
|
|
7
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
10
|
import { jsx, css } from '@emotion/react';
|
|
9
|
-
import React, { useEffect, useRef } from 'react';
|
|
10
11
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
|
-
import ExtensionRenderer from '../../ui/ExtensionRenderer';
|
|
12
12
|
import { overflowShadow, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
13
13
|
import { calcBreakoutWidth } from '@atlaskit/editor-common/utils';
|
|
14
|
-
import { RendererCssClassName } from '../../consts';
|
|
15
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
|
+
import { RendererCssClassName } from '../../consts';
|
|
18
|
+
import ExtensionRenderer from '../../ui/ExtensionRenderer';
|
|
17
19
|
import { calcBreakoutWidthCss } from '../utils/breakout';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
20
|
var FORGE_EXTENSION_TYPE = 'com.atlassian.ecosystem';
|
|
20
21
|
/**
|
|
21
22
|
* Mirrors `FORGE_INLINE_BODIED_PARAM` in `@atlassian/xen-editor-provider`. Duplicated rather than
|
|
@@ -8,10 +8,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
+
import React from 'react';
|
|
11
12
|
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
12
|
-
import Link from '@atlaskit/link/link';
|
|
13
13
|
import { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from '@atlaskit/link-datasource/analytics/render-failed';
|
|
14
|
-
import
|
|
14
|
+
import Link from '@atlaskit/link/link';
|
|
15
15
|
import { InlineCard } from './';
|
|
16
16
|
// Ignored via go/ees005
|
|
17
17
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -17,13 +17,14 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import React from 'react';
|
|
20
|
+
|
|
20
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
22
|
import { css, jsx } from '@emotion/react';
|
|
22
23
|
import { injectIntl } from 'react-intl';
|
|
23
24
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
24
25
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
25
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
26
26
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
27
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
27
28
|
import { headingAnchorLinkMessages } from '../../messages';
|
|
28
29
|
import HeadingAnchorButton from './heading-anchor-button';
|
|
29
30
|
export var HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
@@ -6,16 +6,16 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import IconButton from '@atlaskit/button/icon/button';
|
|
9
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
9
10
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
|
|
10
11
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
11
12
|
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
12
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
13
|
-
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
14
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
|
+
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
15
15
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
16
|
-
import { copyTextToClipboard } from '../utils/clipboard';
|
|
17
16
|
import { collapsibleHeadingMessages } from '../../messages';
|
|
18
17
|
import { useCollapsibleHeading } from '../../ui/collapsible-headings';
|
|
18
|
+
import { copyTextToClipboard } from '../utils/clipboard';
|
|
19
19
|
import HeadingAnchor from './heading-anchor';
|
|
20
20
|
var RENDERER_HEADING_WRAPPER = 'renderer-heading-wrapper';
|
|
21
21
|
var RENDERER_COLLAPSIBLE_HEADING_WRAPPER = 'renderer-collapsible-heading-wrapper';
|
|
@@ -8,18 +8,22 @@ import Loadable from 'react-loadable';
|
|
|
8
8
|
import { UnsupportedBlock, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
9
9
|
import Blockquote from './blockquote';
|
|
10
10
|
import BodiedExtension from './bodiedExtension';
|
|
11
|
-
import MultiBodiedExtension from './multiBodiedExtension';
|
|
12
|
-
import ExtensionFrame from './extensionFrame';
|
|
13
11
|
import BulletList from './bulletList';
|
|
12
|
+
import Caption from './caption';
|
|
13
|
+
|
|
14
|
+
// Ignored via go/ees005
|
|
15
|
+
// eslint-disable-next-line import/no-named-as-default
|
|
16
|
+
|
|
14
17
|
import Doc, { DocWithSelectAllTrap } from './doc';
|
|
15
18
|
import Extension from './extension';
|
|
19
|
+
import ExtensionFrame from './extensionFrame';
|
|
16
20
|
import HardBreak from './hardBreak';
|
|
17
21
|
import Heading from './heading';
|
|
18
22
|
import InlineExtension from './inlineExtension';
|
|
19
|
-
import LayoutSection from './layoutSection';
|
|
20
23
|
import LayoutColumn from './layoutColumn';
|
|
24
|
+
import LayoutSection from './layoutSection';
|
|
21
25
|
import ListItem from './listItem';
|
|
22
|
-
import
|
|
26
|
+
import MultiBodiedExtension from './multiBodiedExtension';
|
|
23
27
|
import OrderedList from './orderedList';
|
|
24
28
|
import Paragraph from './paragraph';
|
|
25
29
|
import Placeholder from './placeholder';
|
|
@@ -28,10 +32,6 @@ import Table from './table';
|
|
|
28
32
|
import { TableCell, TableHeader } from './tableCell';
|
|
29
33
|
import TableRow from './tableRow';
|
|
30
34
|
import UnknownBlock from './unknownBlock';
|
|
31
|
-
|
|
32
|
-
// Ignored via go/ees005
|
|
33
|
-
// eslint-disable-next-line import/no-named-as-default
|
|
34
|
-
|
|
35
35
|
var WindowedCodeBlock = Loadable({
|
|
36
36
|
loader: function loader() {
|
|
37
37
|
return import( /* webpackChunkName: "@atlaskit-internal_renderer-node_WindowedCodeBlock" */
|
|
@@ -374,6 +374,7 @@ export var toReact = function toReact(node, flags, nodeComponents
|
|
|
374
374
|
* }
|
|
375
375
|
* ]
|
|
376
376
|
*/
|
|
377
|
+
|
|
377
378
|
export var mergeTextNodes = function mergeTextNodes(nodes) {
|
|
378
379
|
return nodes.reduce(function (acc, current) {
|
|
379
380
|
if (!isText(current.type.name)) {
|
|
@@ -8,25 +8,25 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
8
8
|
import { Fragment, useState, useMemo, useEffect } from 'react';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
12
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
13
|
+
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
14
|
+
import { HoverLinkOverlay, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
15
|
+
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
16
|
+
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
11
17
|
import { useSmartCardContext } from '@atlaskit/link-provider/use-smart-card-context';
|
|
12
|
-
import { Card, getObjectAri, getObjectIconUrl, getObjectName } from '@atlaskit/smart-card';
|
|
13
18
|
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils/is-within-preview-panel-iframe';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
|
+
import { Card, getObjectAri, getObjectIconUrl, getObjectName } from '@atlaskit/smart-card';
|
|
14
21
|
import { useSmartLinkActions } from '@atlaskit/smart-card/hooks';
|
|
15
22
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
16
|
-
import { HoverLinkOverlay, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
|
-
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
19
23
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
21
|
-
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
22
|
-
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
23
|
-
import { CardErrorBoundary } from './fallback';
|
|
24
|
-
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
25
|
-
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
26
|
-
import { getEventHandler } from '../../utils';
|
|
27
24
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
28
25
|
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
29
|
-
import {
|
|
26
|
+
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
27
|
+
import { getEventHandler } from '../../utils';
|
|
28
|
+
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
29
|
+
import { CardErrorBoundary } from './fallback';
|
|
30
30
|
var HoverLinkOverlayNoop = function HoverLinkOverlayNoop(props) {
|
|
31
31
|
return jsx(Fragment, null, props.children);
|
|
32
32
|
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
5
5
|
import { lazyForPaint } from 'react-loosely-lazy';
|
|
6
|
-
import Table from './table';
|
|
7
|
-
import TableRow from './tableRow';
|
|
8
6
|
|
|
9
7
|
// Ignored via go/ees005
|
|
10
8
|
// eslint-disable-next-line import/no-named-as-default
|
|
11
9
|
|
|
10
|
+
import Table from './table';
|
|
11
|
+
import TableRow from './tableRow';
|
|
12
12
|
var CodeBlock = lazyForPaint(function () {
|
|
13
13
|
return import( /* webpackChunkName: "@atlaskit-internal_renderer-node_CodeBlock" */
|
|
14
14
|
'./codeBlock/codeBlock').then(function (mod) {
|
|
@@ -18,25 +18,26 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
import React, { PureComponent, Fragment, useEffect, useState, useMemo } from 'react';
|
|
21
|
+
|
|
21
22
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
22
23
|
import { jsx, css } from '@emotion/react';
|
|
23
|
-
import
|
|
24
|
+
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
24
25
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
|
|
26
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
27
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
|
|
28
|
+
import { CommentBadgeNext, ExternalImageBadge, MediaBadges } from '@atlaskit/editor-common/media-single';
|
|
25
29
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
30
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
26
31
|
import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
|
|
32
|
+
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
27
33
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
34
|
+
import { MODE, PLATFORM } from '../../../analytics/events';
|
|
35
|
+
import { useAnnotationRangeState } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
36
|
+
import { useInlineCommentSubscriberContext } from '../../../ui/annotations/hooks/use-inline-comment-subscriber';
|
|
37
|
+
import { useInlineCommentsFilter } from '../../../ui/annotations/hooks/use-inline-comments-filter';
|
|
28
38
|
import { MediaCard } from '../../../ui/MediaCard';
|
|
29
|
-
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
30
|
-
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
31
39
|
import { getEventHandler } from '../../../utils';
|
|
32
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
|
|
33
|
-
import { MODE, PLATFORM } from '../../../analytics/events';
|
|
34
40
|
import AnnotationComponent from '../../marks/annotation';
|
|
35
|
-
import { CommentBadgeNext, ExternalImageBadge, MediaBadges } from '@atlaskit/editor-common/media-single';
|
|
36
|
-
import { useInlineCommentsFilter } from '../../../ui/annotations/hooks/use-inline-comments-filter';
|
|
37
|
-
import { useInlineCommentSubscriberContext } from '../../../ui/annotations/hooks/use-inline-comment-subscriber';
|
|
38
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
39
|
-
import { useAnnotationRangeState } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
40
41
|
var getDataConsumerMark = function getDataConsumerMark(marks) {
|
|
41
42
|
return marks.find(function (mark) {
|
|
42
43
|
var _mark$type;
|
|
@@ -76,12 +77,7 @@ var MediaBorder = function MediaBorder(_ref) {
|
|
|
76
77
|
var borderColor = (_mark$attrs$color = mark === null || mark === void 0 ? void 0 : mark.attrs.color) !== null && _mark$attrs$color !== void 0 ? _mark$attrs$color : '';
|
|
77
78
|
var borderWidth = (_mark$attrs$size = mark === null || mark === void 0 ? void 0 : mark.attrs.size) !== null && _mark$attrs$size !== void 0 ? _mark$attrs$size : 0;
|
|
78
79
|
var paletteColorValue = hexToEditorBorderPaletteColor(borderColor) || borderColor;
|
|
79
|
-
|
|
80
|
-
// [FEATURE FLAG: platform_editor_media_border_radius_fix]
|
|
81
|
-
// Fixes border radius to properly match image with 8px radius
|
|
82
|
-
// To clean up: keep only flag-on behavior ('8px')
|
|
83
|
-
var borderRadius = fg('platform_editor_media_border_radius_fix') ? "var(--ds-radius-large, 8px)" : "".concat(borderWidth, "px"); // OLD BEHAVIOR (to be removed when flag is cleaned up)
|
|
84
|
-
|
|
80
|
+
var borderRadius = "var(--ds-radius-large, 8px)";
|
|
85
81
|
return jsx("div", {
|
|
86
82
|
"data-mark-type": "border",
|
|
87
83
|
"data-color": borderColor,
|
|
@@ -5,19 +5,19 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
+
import React, { useCallback, useEffect, useMemo, useState, useContext } from 'react';
|
|
9
|
+
import { injectIntl } from 'react-intl';
|
|
10
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
11
|
+
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
8
12
|
import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline';
|
|
9
13
|
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
10
14
|
import MediaInlineCard from '@atlaskit/media-card/loader';
|
|
11
|
-
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
12
15
|
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
16
|
+
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
13
17
|
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui/LoadingView';
|
|
14
|
-
import
|
|
15
|
-
import { injectIntl } from 'react-intl';
|
|
18
|
+
import { ACTION_SUBJECT } from '../../analytics/enums';
|
|
16
19
|
import { getClipboardAttrs, mediaIdentifierMap } from '../../ui/MediaCard';
|
|
17
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
18
20
|
import { ErrorBoundary } from '../../ui/Renderer/ErrorBoundary';
|
|
19
|
-
import { ACTION_SUBJECT } from '../../analytics/enums';
|
|
20
|
-
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
21
21
|
var RenderMediaInline = function RenderMediaInline(_ref) {
|
|
22
22
|
var _rendererAppearance = _ref.rendererAppearance,
|
|
23
23
|
clipboardAttrs = _ref.clipboardAttrs,
|
|
@@ -6,16 +6,17 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { default as React, Fragment, useCallback, useContext, useMemo, useEffect } from 'react';
|
|
9
|
+
|
|
9
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
import { css, jsx } from '@emotion/react';
|
|
11
12
|
import { injectIntl } from 'react-intl';
|
|
13
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
12
14
|
import { MediaSingle as UIMediaSingle, WidthContext } from '@atlaskit/editor-common/ui';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
15
|
import { akEditorFullWidthLayoutWidth, akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
15
|
-
import {
|
|
16
|
-
import { FullPagePadding } from '../../../ui/Renderer/style';
|
|
17
|
-
import { useAnnotationRangeDispatch } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
17
|
import { useAnnotationHoverDispatch } from '../../../ui/annotations/contexts/AnnotationHoverContext';
|
|
18
|
+
import { useAnnotationRangeDispatch } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
19
|
+
import { FullPagePadding } from '../../../ui/Renderer/style';
|
|
19
20
|
var DEFAULT_WIDTH = 250;
|
|
20
21
|
var DEFAULT_HEIGHT = 200;
|
|
21
22
|
var uiMediaSingleBaseStyles = css({
|
|
@@ -8,17 +8,18 @@ var _templateObject, _templateObject2;
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
import React, { useContext, useState } from 'react';
|
|
13
|
+
import { jsx, css } from '@emotion/react';
|
|
13
14
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
14
|
-
import { RendererCssClassName } from '../../consts';
|
|
15
15
|
import { calcBreakoutWidth } from '@atlaskit/editor-common/utils';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
|
-
import { useMultiBodiedExtensionActions } from './multiBodiedExtension/actions';
|
|
18
|
-
import { useMultiBodiedExtensionContext } from './multiBodiedExtension/context';
|
|
19
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
|
-
import { calcBreakoutWidthCss } from '../utils/breakout';
|
|
21
18
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
19
|
+
import { RendererCssClassName } from '../../consts';
|
|
20
|
+
import { calcBreakoutWidthCss } from '../utils/breakout';
|
|
21
|
+
import { useMultiBodiedExtensionActions } from './multiBodiedExtension/actions';
|
|
22
|
+
import { useMultiBodiedExtensionContext } from './multiBodiedExtension/context';
|
|
22
23
|
var containerStyles = css({
|
|
23
24
|
// Remove top margin if MBE is the first on the doc/page (MBE can only be on the first level)
|
|
24
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -15,8 +15,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
15
15
|
*/
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
18
|
-
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
19
18
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
19
|
+
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
20
20
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
22
|
// New custom icons are a little smaller than predefined icons.
|
|
@@ -16,8 +16,8 @@ import React from 'react';
|
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration; `jsx` is used as the JSX pragma (see @jsx jsx above) so must be a value import
|
|
17
17
|
import { css, jsx } from '@emotion/react';
|
|
18
18
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
19
|
-
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
20
19
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
20
|
+
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
23
|
// New custom icons are a little smaller than predefined icons.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
|
-
import { Status as AkStatus } from '@atlaskit/status/element';
|
|
4
3
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
|
|
5
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
|
+
import { Status as AkStatus } from '@atlaskit/status/element';
|
|
6
6
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
7
7
|
var ANALYTICS_DATA = {
|
|
8
8
|
userContext: 'document'
|
|
@@ -2,14 +2,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React, { useContext } from 'react';
|
|
5
|
+
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
5
6
|
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
6
7
|
import { WidthContext } from '@atlaskit/editor-common/ui';
|
|
7
8
|
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
9
|
-
import { useRendererContext } from '../../../renderer-context';
|
|
10
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
|
-
|
|
11
|
+
import { useRendererContext } from '../../../renderer-context';
|
|
13
12
|
// we allow scaling down column widths by no more than 30%
|
|
14
13
|
// this intends to reduce unwanted scrolling in the Renderer in these scenarios:
|
|
15
14
|
// User A creates a table with column widths → User B views it on a smaller screen
|
|
@@ -7,14 +7,15 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
* @jsx jsx
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
+
|
|
10
11
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
11
12
|
import { jsx, css } from '@emotion/react';
|
|
12
13
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
13
14
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
14
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
-
import { Table } from './table';
|
|
17
17
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
18
|
+
import { Table } from './table';
|
|
18
19
|
export var tableStickyPadding = 8;
|
|
19
20
|
var modeSpecficStyles = {
|
|
20
21
|
none: css({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Colgroup, colWidthSum } from './colgroup';
|
|
4
3
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
4
|
+
import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
5
5
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
|
-
import {
|
|
7
|
+
import { Colgroup, colWidthSum } from './colgroup';
|
|
8
8
|
import { isContentModeSupported } from './content-mode';
|
|
9
9
|
export var Table = /*#__PURE__*/React.memo(function (_ref) {
|
|
10
10
|
var _tableNode$attrs;
|