@atlaskit/renderer 149.0.4 → 149.0.5
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 +12 -1
- package/dist/cjs/actions/get-renderer-range-inline-node-names.js +3 -3
- package/dist/cjs/actions/index.js +10 -10
- package/dist/cjs/analytics/unsupported-content.js +9 -8
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/cards.js +1 -1
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/media.js +1 -1
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
- package/dist/cjs/entry-points/react.js +2 -2
- package/dist/cjs/entry-points/renderer.js +7 -7
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/react/index.js +9 -8
- package/dist/cjs/react/marks/backgroundColor.js +2 -2
- package/dist/cjs/react/marks/breakout.js +5 -5
- package/dist/cjs/react/marks/code.js +2 -2
- package/dist/cjs/react/marks/link-compiled.js +2 -2
- package/dist/cjs/react/marks/link-emotion.js +2 -2
- package/dist/cjs/react/marks/link.js +4 -4
- package/dist/cjs/react/marks/textColor.js +3 -3
- package/dist/cjs/react/nodes/blockCard.js +14 -11
- package/dist/cjs/react/nodes/bodiedExtension.js +4 -4
- package/dist/cjs/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/cjs/react/nodes/caption.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +3 -3
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -3
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockDownloadButton.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +22 -21
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +2 -2
- package/dist/cjs/react/nodes/date.js +5 -5
- package/dist/cjs/react/nodes/embedCard.js +19 -16
- package/dist/cjs/react/nodes/emoji.js +6 -5
- package/dist/cjs/react/nodes/extension.js +7 -7
- package/dist/cjs/react/nodes/heading.js +8 -8
- package/dist/cjs/react/nodes/index.js +7 -5
- package/dist/cjs/react/nodes/inlineCard.js +15 -13
- package/dist/cjs/react/nodes/layoutColumn-compiled.js +2 -2
- package/dist/cjs/react/nodes/layoutColumn-emotion.js +2 -2
- package/dist/cjs/react/nodes/media/index.js +24 -21
- package/dist/cjs/react/nodes/mediaGroup.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +8 -8
- package/dist/cjs/react/nodes/mediaSingle/index.js +13 -12
- package/dist/cjs/react/nodes/mention.js +4 -3
- package/dist/cjs/react/nodes/multiBodiedExtension/actions.js +4 -4
- package/dist/cjs/react/nodes/multiBodiedExtension/context.js +7 -7
- package/dist/cjs/react/nodes/nodes.js +4 -3
- package/dist/cjs/react/nodes/orderedList.js +6 -5
- package/dist/cjs/react/nodes/panel-compiled.js +2 -2
- package/dist/cjs/react/nodes/panel-emotion.js +2 -2
- package/dist/cjs/react/nodes/panel.js +11 -7
- package/dist/cjs/react/nodes/table/colgroup.js +24 -24
- package/dist/cjs/react/nodes/table/sticky.js +2 -2
- package/dist/cjs/react/nodes/table/table.js +6 -6
- package/dist/cjs/react/nodes/table.js +19 -16
- package/dist/cjs/react/nodes/tableCell.js +11 -11
- package/dist/cjs/react/nodes/taskItem.js +4 -3
- package/dist/cjs/react/utils/EditorMediaClientProvider.js +3 -3
- package/dist/cjs/react/utils/use-select-all-trap.js +7 -7
- package/dist/cjs/render-document.js +32 -28
- package/dist/cjs/text/nodes/date.js +3 -3
- package/dist/cjs/text/nodes/orderedList.js +2 -2
- package/dist/cjs/ui/Expand.js +17 -16
- package/dist/cjs/ui/ExtensionRenderer.js +6 -6
- package/dist/cjs/ui/MediaCard.js +9 -9
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +7 -7
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +271 -262
- package/dist/cjs/ui/Renderer/analytics-utils.js +13 -11
- package/dist/cjs/ui/Renderer/breakout-ssr.js +3 -3
- package/dist/cjs/ui/Renderer/count-nodes.js +2 -2
- package/dist/cjs/ui/Renderer/get-base-font-size.js +3 -3
- package/dist/cjs/ui/Renderer/index.js +30 -23
- package/dist/cjs/ui/RendererActionsContext/index.js +2 -2
- package/dist/cjs/ui/annotations/contexts/AnnotationManagerContext.js +15 -15
- package/dist/cjs/ui/annotations/element/index.js +2 -2
- package/dist/cjs/ui/annotations/hooks/use-events.js +20 -20
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +2 -2
- package/dist/cjs/ui/annotations/hover/mounter.js +21 -21
- package/dist/cjs/ui/annotations/selection/mounter.js +21 -21
- package/dist/cjs/ui/hooks/useScrollToBlock.js +6 -4
- package/dist/es2019/actions/get-renderer-range-inline-node-names.js +1 -1
- package/dist/es2019/actions/index.js +2 -2
- package/dist/es2019/analytics/unsupported-content.js +3 -2
- package/dist/es2019/custom-nodes.js +1 -1
- package/dist/es2019/entry-points/custom-nodes-loosely-lazy.js +1 -1
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/cards.js +1 -1
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/media.js +1 -1
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
- package/dist/es2019/entry-points/loosely-lazy.js +1 -1
- package/dist/es2019/entry-points/nodes.js +2 -2
- package/dist/es2019/entry-points/react.js +2 -2
- package/dist/es2019/entry-points/renderer.js +7 -7
- package/dist/es2019/entry-points/text-serializer-text.js +1 -1
- package/dist/es2019/entry-points/text.js +1 -1
- package/dist/es2019/index.js +7 -7
- package/dist/es2019/react/index.js +3 -2
- package/dist/es2019/react/marks/backgroundColor.js +1 -1
- package/dist/es2019/react/marks/breakout.js +1 -1
- package/dist/es2019/react/marks/code.js +1 -1
- package/dist/es2019/react/marks/link-compiled.js +1 -1
- package/dist/es2019/react/marks/link-emotion.js +1 -1
- package/dist/es2019/react/marks/link.js +1 -1
- package/dist/es2019/react/marks/textColor.js +1 -1
- package/dist/es2019/react/nodes/blockCard.js +6 -3
- package/dist/es2019/react/nodes/bodiedExtension.js +1 -1
- package/dist/es2019/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/es2019/react/nodes/caption.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockDownloadButton.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -2
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/es2019/react/nodes/date.js +2 -2
- package/dist/es2019/react/nodes/embedCard.js +6 -3
- package/dist/es2019/react/nodes/emoji.js +3 -2
- package/dist/es2019/react/nodes/extension.js +2 -2
- package/dist/es2019/react/nodes/heading.js +1 -1
- package/dist/es2019/react/nodes/index.js +5 -3
- package/dist/es2019/react/nodes/inlineCard.js +7 -5
- package/dist/es2019/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +9 -6
- package/dist/es2019/react/nodes/mediaGroup.js +1 -1
- package/dist/es2019/react/nodes/mediaInline.js +3 -3
- package/dist/es2019/react/nodes/mediaSingle/index.js +4 -3
- package/dist/es2019/react/nodes/mention.js +1 -1
- package/dist/es2019/react/nodes/multiBodiedExtension/actions.js +1 -1
- package/dist/es2019/react/nodes/multiBodiedExtension/context.js +3 -3
- package/dist/es2019/react/nodes/nodes.js +2 -1
- package/dist/es2019/react/nodes/orderedList.js +3 -2
- 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/panel.js +6 -2
- package/dist/es2019/react/nodes/table/colgroup.js +3 -3
- package/dist/es2019/react/nodes/table/sticky.js +1 -1
- package/dist/es2019/react/nodes/table/table.js +2 -2
- package/dist/es2019/react/nodes/table.js +8 -5
- package/dist/es2019/react/nodes/tableCell.js +3 -3
- package/dist/es2019/react/nodes/taskItem.js +2 -1
- package/dist/es2019/react/utils/EditorMediaClientProvider.js +1 -1
- package/dist/es2019/react/utils/use-select-all-trap.js +1 -1
- package/dist/es2019/render-document.js +7 -3
- package/dist/es2019/text/nodes/date.js +1 -1
- package/dist/es2019/text/nodes/orderedList.js +1 -1
- package/dist/es2019/ui/Expand.js +4 -3
- package/dist/es2019/ui/ExtensionRenderer.js +3 -3
- package/dist/es2019/ui/MediaCard.js +3 -3
- package/dist/es2019/ui/Renderer/ErrorBoundary.js +2 -2
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +18 -9
- package/dist/es2019/ui/Renderer/analytics-utils.js +3 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/es2019/ui/Renderer/count-nodes.js +1 -1
- package/dist/es2019/ui/Renderer/get-base-font-size.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +12 -5
- package/dist/es2019/ui/RendererActionsContext/index.js +1 -1
- package/dist/es2019/ui/annotations/contexts/AnnotationManagerContext.js +1 -1
- package/dist/es2019/ui/annotations/element/index.js +1 -1
- 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/hover/mounter.js +1 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +1 -1
- package/dist/es2019/ui/hooks/useScrollToBlock.js +3 -1
- package/dist/esm/actions/get-renderer-range-inline-node-names.js +1 -1
- package/dist/esm/actions/index.js +2 -2
- package/dist/esm/analytics/unsupported-content.js +3 -2
- package/dist/esm/custom-nodes.js +1 -1
- package/dist/esm/entry-points/custom-nodes-loosely-lazy.js +1 -1
- package/dist/esm/entry-points/experimental-sync-custom-nodes/cards.js +1 -1
- package/dist/esm/entry-points/experimental-sync-custom-nodes/media.js +1 -1
- package/dist/esm/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
- package/dist/esm/entry-points/loosely-lazy.js +1 -1
- package/dist/esm/entry-points/nodes.js +2 -2
- package/dist/esm/entry-points/react.js +2 -2
- package/dist/esm/entry-points/renderer.js +7 -7
- package/dist/esm/entry-points/text-serializer-text.js +1 -1
- package/dist/esm/entry-points/text.js +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/react/index.js +3 -2
- package/dist/esm/react/marks/backgroundColor.js +1 -1
- package/dist/esm/react/marks/breakout.js +1 -1
- package/dist/esm/react/marks/code.js +1 -1
- package/dist/esm/react/marks/link-compiled.js +1 -1
- package/dist/esm/react/marks/link-emotion.js +1 -1
- package/dist/esm/react/marks/link.js +1 -1
- package/dist/esm/react/marks/textColor.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +6 -3
- package/dist/esm/react/nodes/bodiedExtension.js +1 -1
- package/dist/esm/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/esm/react/nodes/caption.js +1 -1
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockDownloadButton.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -2
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/esm/react/nodes/date.js +2 -2
- package/dist/esm/react/nodes/embedCard.js +6 -3
- package/dist/esm/react/nodes/emoji.js +3 -2
- package/dist/esm/react/nodes/extension.js +2 -2
- package/dist/esm/react/nodes/heading.js +1 -1
- package/dist/esm/react/nodes/index.js +5 -3
- package/dist/esm/react/nodes/inlineCard.js +7 -5
- package/dist/esm/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/esm/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/esm/react/nodes/media/index.js +9 -6
- package/dist/esm/react/nodes/mediaGroup.js +1 -1
- package/dist/esm/react/nodes/mediaInline.js +3 -3
- package/dist/esm/react/nodes/mediaSingle/index.js +4 -3
- package/dist/esm/react/nodes/mention.js +1 -1
- package/dist/esm/react/nodes/multiBodiedExtension/actions.js +1 -1
- package/dist/esm/react/nodes/multiBodiedExtension/context.js +3 -3
- package/dist/esm/react/nodes/nodes.js +2 -1
- package/dist/esm/react/nodes/orderedList.js +3 -2
- 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/panel.js +6 -2
- package/dist/esm/react/nodes/table/colgroup.js +3 -3
- package/dist/esm/react/nodes/table/sticky.js +1 -1
- package/dist/esm/react/nodes/table/table.js +2 -2
- package/dist/esm/react/nodes/table.js +8 -5
- package/dist/esm/react/nodes/tableCell.js +3 -3
- package/dist/esm/react/nodes/taskItem.js +2 -1
- package/dist/esm/react/utils/EditorMediaClientProvider.js +1 -1
- package/dist/esm/react/utils/use-select-all-trap.js +1 -1
- package/dist/esm/render-document.js +7 -3
- package/dist/esm/text/nodes/date.js +1 -1
- package/dist/esm/text/nodes/orderedList.js +1 -1
- package/dist/esm/ui/Expand.js +4 -3
- package/dist/esm/ui/ExtensionRenderer.js +3 -3
- package/dist/esm/ui/MediaCard.js +3 -3
- package/dist/esm/ui/Renderer/ErrorBoundary.js +2 -2
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +18 -9
- package/dist/esm/ui/Renderer/analytics-utils.js +3 -1
- package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/esm/ui/Renderer/count-nodes.js +1 -1
- package/dist/esm/ui/Renderer/get-base-font-size.js +1 -1
- package/dist/esm/ui/Renderer/index.js +12 -5
- package/dist/esm/ui/RendererActionsContext/index.js +1 -1
- package/dist/esm/ui/annotations/contexts/AnnotationManagerContext.js +1 -1
- package/dist/esm/ui/annotations/element/index.js +1 -1
- 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/hover/mounter.js +1 -1
- package/dist/esm/ui/annotations/selection/mounter.js +1 -1
- package/dist/esm/ui/hooks/useScrollToBlock.js +3 -1
- package/dist/types/actions/index.d.ts +2 -1
- package/dist/types/actions/selection.d.ts +1 -1
- package/dist/types/analytics/events.d.ts +9 -2
- package/dist/types/analytics/unsupported-content.d.ts +1 -1
- package/dist/types/custom-nodes.d.ts +1 -1
- package/dist/types/entry-points/custom-nodes-loosely-lazy.d.ts +1 -1
- package/dist/types/entry-points/experimental-sync-custom-nodes/cards.d.ts +1 -1
- package/dist/types/entry-points/experimental-sync-custom-nodes/media.d.ts +1 -1
- package/dist/types/entry-points/experimental-sync-custom-nodes/small-nodes.d.ts +1 -1
- package/dist/types/entry-points/loosely-lazy.d.ts +1 -1
- package/dist/types/entry-points/nodes.d.ts +2 -2
- package/dist/types/entry-points/react.d.ts +2 -2
- package/dist/types/entry-points/renderer.d.ts +7 -7
- package/dist/types/entry-points/serializer.d.ts +1 -1
- package/dist/types/entry-points/text-serializer-text.d.ts +1 -1
- package/dist/types/entry-points/text.d.ts +1 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/react/index.d.ts +5 -4
- package/dist/types/react/marks/link-compiled.d.ts +1 -1
- package/dist/types/react/marks/link-emotion.d.ts +1 -1
- package/dist/types/react/nodes/blockCard.d.ts +1 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +3 -2
- package/dist/types/react/nodes/embedCard.d.ts +1 -1
- package/dist/types/react/nodes/emoji.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +4 -3
- package/dist/types/react/nodes/extensionFrame.d.ts +2 -2
- package/dist/types/react/nodes/index.d.ts +5 -5
- package/dist/types/react/nodes/inlineCard.d.ts +2 -2
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
- package/dist/types/react/nodes/media/index.d.ts +3 -3
- package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
- package/dist/types/react/nodes/mediaInline.d.ts +4 -4
- package/dist/types/react/nodes/mediaSingle/index.d.ts +4 -3
- package/dist/types/react/nodes/mention.d.ts +3 -3
- package/dist/types/react/nodes/multiBodiedExtension/actions.d.ts +1 -1
- package/dist/types/react/nodes/multiBodiedExtension/context.d.ts +1 -1
- package/dist/types/react/nodes/multiBodiedExtension.d.ts +2 -2
- package/dist/types/react/nodes/panel.d.ts +1 -1
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +2 -2
- package/dist/types/react/nodes/task-item-with-providers.d.ts +1 -1
- package/dist/types/react/nodes/taskItem.d.ts +1 -1
- package/dist/types/react/types.d.ts +3 -3
- package/dist/types/react/utils/getCardClickHandler.d.ts +2 -2
- package/dist/types/react/utils/markBlockAsInline.d.ts +2 -1
- package/dist/types/render-document.d.ts +2 -2
- package/dist/types/renderer-context.d.ts +1 -1
- package/dist/types/types/mediaOptions.d.ts +3 -2
- package/dist/types/types/smartLinksOptions.d.ts +1 -1
- package/dist/types/ui/ExtensionRenderer.d.ts +3 -2
- package/dist/types/ui/MediaCard.d.ts +8 -5
- package/dist/types/ui/SmartCardStorage.d.ts +1 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/contexts/AnnotationManagerContext.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 +2 -1
- package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.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 +8 -7
- package/dist/types/utils.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
|
-
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
5
|
-
import { isPastDate, timestampToString, timestampToTaskContext } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles/date';
|
|
5
|
+
import { isPastDate, timestampToString, timestampToTaskContext } from '@atlaskit/editor-common/utils/date';
|
|
6
6
|
import { useRendererContext } from '../../renderer-context';
|
|
7
7
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
8
8
|
import { useTaskItemsFormatContext } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
@@ -9,13 +9,16 @@ import { useContext, useState, useRef } from 'react';
|
|
|
9
9
|
/* 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
10
|
import { jsx, css } from '@emotion/react';
|
|
11
11
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import UIMediaSingle from '@atlaskit/editor-common/MediaSingle';
|
|
13
|
+
import UnsupportedBlock from '@atlaskit/editor-common/UnsupportedBlock';
|
|
14
|
+
import { WidthConsumer, WidthContext } from '@atlaskit/editor-common/WidthProvider';
|
|
15
|
+
import { akEditorDefaultLayoutWidth, akEditorFullPageNarrowBreakout, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles/constants';
|
|
14
16
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
15
17
|
import { SmartCardContext } from '@atlaskit/link-provider/context';
|
|
16
18
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
17
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
|
-
import { Card
|
|
20
|
+
import { Card } from '@atlaskit/smart-card/card/lazy';
|
|
21
|
+
import { EmbedResizeMessageListener } from '@atlaskit/smart-card/embed-resize-message-listener';
|
|
19
22
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
20
23
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
21
24
|
import { RendererCssClassName } from '../../consts';
|
|
@@ -7,8 +7,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
import { PureComponent, memo } from 'react';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import { messages } from '@atlaskit/editor-common/emoji';
|
|
11
|
-
import
|
|
10
|
+
import { messages } from '@atlaskit/editor-common/emoji/messages';
|
|
11
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
12
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory/with-providers';
|
|
12
13
|
import { isSingleEmoji } from '@atlaskit/editor-common/utils/isSingleEmoji';
|
|
13
14
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
14
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -8,8 +8,8 @@ import React, { useCallback, useContext, useEffect, useMemo, useRef } from 'reac
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx, css } from '@emotion/react';
|
|
11
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
12
|
-
import
|
|
11
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
12
|
+
import overflowShadow from '@atlaskit/editor-common/OverflowShadow';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
15
|
import { RendererCssClassName } from '../../consts';
|
|
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import IconButton from '@atlaskit/button/icon/button';
|
|
7
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
8
8
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
|
|
9
9
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
10
10
|
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
// Mapping file
|
|
3
3
|
|
|
4
4
|
import Loadable from 'react-loadable';
|
|
5
|
-
import
|
|
5
|
+
import UnsupportedBlock from '@atlaskit/editor-common/UnsupportedBlock';
|
|
6
|
+
import UnsupportedInline from '@atlaskit/editor-common/UnsupportedInline';
|
|
7
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
8
|
import Blockquote from './blockquote';
|
|
7
9
|
import BodiedExtension from './bodiedExtension';
|
|
8
10
|
import BulletList from './bulletList';
|
|
@@ -190,9 +192,9 @@ export const toReact = (node, flags, nodeComponents
|
|
|
190
192
|
return DocWithSelectAllTrap;
|
|
191
193
|
}
|
|
192
194
|
|
|
193
|
-
//
|
|
195
|
+
// Custom components provide the node implementations used by the renderer.
|
|
194
196
|
const nodes = {
|
|
195
|
-
...nodeToReact,
|
|
197
|
+
...(isExperimentEnabled('platform_editor_remove_default_renderer_nodes') ? {} : nodeToReact),
|
|
196
198
|
...nodeComponents
|
|
197
199
|
};
|
|
198
200
|
if (node.type.name === 'codeBlock') {
|
|
@@ -8,16 +8,18 @@ import { Fragment, useState, useMemo, useEffect } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
11
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
11
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
12
|
+
import HoverLinkOverlay from '@atlaskit/editor-common/HoverLinkOverlay';
|
|
13
|
+
import { useProvider } from '@atlaskit/editor-common/provider-factory/context';
|
|
14
|
+
import UnsupportedInline from '@atlaskit/editor-common/UnsupportedInline';
|
|
14
15
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
15
16
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
16
17
|
import { useSmartCardContext } from '@atlaskit/link-provider/use-smart-card-context';
|
|
17
18
|
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils/is-within-preview-panel-iframe';
|
|
18
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
20
|
+
import { getObjectAri, getObjectIconUrl, getObjectName } from '@atlaskit/smart-card';
|
|
21
|
+
import { Card } from '@atlaskit/smart-card/card/lazy';
|
|
22
|
+
import { useSmartLinkActions } from '@atlaskit/smart-card/hook/use-smart-link-actions';
|
|
21
23
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
22
24
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
25
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import "./layoutColumn-compiled.compiled.css";
|
|
9
9
|
import { ax, ix } from "@compiled/react/runtime";
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { WidthProvider } from '@atlaskit/editor-common/
|
|
11
|
+
import { WidthProvider } from '@atlaskit/editor-common/WidthProvider';
|
|
12
12
|
|
|
13
13
|
// localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
|
|
14
14
|
const clearNextSiblingMarginTopStyle = null;
|
|
@@ -12,7 +12,7 @@ import React from 'react';
|
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
14
14
|
import { css, jsx } from '@emotion/react';
|
|
15
|
-
import { WidthProvider } from '@atlaskit/editor-common/
|
|
15
|
+
import { WidthProvider } from '@atlaskit/editor-common/WidthProvider';
|
|
16
16
|
|
|
17
17
|
// localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
|
|
18
18
|
const clearNextSiblingMarginTopStyle = css({
|
|
@@ -12,12 +12,15 @@ import { jsx, css } from '@emotion/react';
|
|
|
12
12
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
13
13
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
|
|
14
14
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
15
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
15
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
16
|
+
import { VIEW_METHOD } from '@atlaskit/editor-common/analytics/types/inline-comment-events';
|
|
17
|
+
import { CommentBadgeNext } from '@atlaskit/editor-common/media-single/CommentBadgeNext';
|
|
18
|
+
import { ExternalImageBadge } from '@atlaskit/editor-common/media-single/ExternalImageBadge';
|
|
19
|
+
import { MediaBadges } from '@atlaskit/editor-common/media-single/MediaBadges';
|
|
20
|
+
import { MediaBorderGapFiller } from '@atlaskit/editor-common/MediaSingle/styled';
|
|
21
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory/with-providers';
|
|
22
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types/emitter';
|
|
23
|
+
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette/border';
|
|
21
24
|
import { MODE, PLATFORM } from '../../../analytics/events';
|
|
22
25
|
import { useAnnotationRangeState } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
23
26
|
import { useInlineCommentSubscriberContext } from '../../../ui/annotations/hooks/use-inline-comment-subscriber';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { PureComponent } from 'react';
|
|
4
4
|
import { defaultImageCardDimensions } from '@atlaskit/media-card/cardDimensions';
|
|
5
|
-
import { FilmstripView } from '@atlaskit/media-filmstrip';
|
|
5
|
+
import { FilmstripView } from '@atlaskit/media-filmstrip/filmstrip-view';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
|
|
8
8
|
// Ignored via go/ees005
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useState, useContext } from 'react';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
4
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
|
-
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline';
|
|
7
|
-
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
+
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
|
+
import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline-image-card';
|
|
7
|
+
import { useProvider } from '@atlaskit/editor-common/provider-factory/context';
|
|
8
8
|
import MediaInlineCard from '@atlaskit/media-card/loader';
|
|
9
9
|
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
10
10
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
@@ -9,9 +9,10 @@ import { default as React, Fragment, useCallback, useContext, useMemo, useEffect
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
12
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
13
|
+
import UIMediaSingle from '@atlaskit/editor-common/MediaSingle';
|
|
14
|
+
import { WidthContext } from '@atlaskit/editor-common/WidthProvider';
|
|
15
|
+
import { akEditorFullWidthLayoutWidth, akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
15
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
17
|
import { useAnnotationHoverDispatch } from '../../../ui/annotations/contexts/AnnotationHoverContext';
|
|
17
18
|
import { useAnnotationRangeDispatch } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import Mention from '@atlaskit/editor-common/ui-mention';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
5
5
|
const _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
export const useMultiBodiedExtensionActions = ({
|
|
5
5
|
updateActiveChild,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import memoizeOne from 'memoize-one';
|
|
3
|
-
import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import { getExtensionRenderer } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '@atlaskit/editor-common/extensions/extension-handlers';
|
|
4
|
+
import { useProvider } from '@atlaskit/editor-common/provider-factory/context';
|
|
5
|
+
import { getExtensionRenderer } from '@atlaskit/editor-common/utils/extension-handler';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
7
|
const getExtensionHandlerNode = extensionHandler => {
|
|
8
8
|
return ({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import UnsupportedBlock from '@atlaskit/editor-common/UnsupportedBlock';
|
|
4
|
+
import UnsupportedInline from '@atlaskit/editor-common/UnsupportedInline';
|
|
4
5
|
import Expand from '../../ui/Expand';
|
|
5
6
|
import BlockCard from './blockCard';
|
|
6
7
|
import Blockquote from './blockquote';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
|
|
4
|
-
import { getOrderedListInlineStyles } from '@atlaskit/editor-common/styles';
|
|
5
|
-
import {
|
|
4
|
+
import { getOrderedListInlineStyles } from '@atlaskit/editor-common/styles/lists';
|
|
5
|
+
import { resolveOrder } from '@atlaskit/editor-common/utils';
|
|
6
|
+
import { getItemCounterDigitsSize } from '@atlaskit/editor-common/utils/list';
|
|
6
7
|
import { getListIndentLevel } from '../utils/lists';
|
|
7
8
|
export default function OrderedList(props) {
|
|
8
9
|
var _props$getContent, _props$getContent$cal;
|
|
@@ -10,7 +10,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
10
10
|
*/
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
13
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
13
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
14
14
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
16
|
// New custom icons are a little smaller than predefined icons.
|
|
@@ -14,7 +14,7 @@ import React from 'react';
|
|
|
14
14
|
// 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
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
17
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
17
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
18
18
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
20
|
// New custom icons are a little smaller than predefined icons.
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { PanelErrorIcon } from '@atlaskit/editor-common/icons/PanelErrorIcon';
|
|
4
|
+
import { PanelInfoIcon } from '@atlaskit/editor-common/icons/PanelInfoIcon';
|
|
5
|
+
import { PanelNoteIcon } from '@atlaskit/editor-common/icons/PanelNoteIcon';
|
|
6
|
+
import { PanelSuccessIcon } from '@atlaskit/editor-common/icons/PanelSuccessIcon';
|
|
7
|
+
import { PanelWarningIcon } from '@atlaskit/editor-common/icons/PanelWarningIcon';
|
|
8
|
+
import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles/panel';
|
|
5
9
|
import EmojiIcon from '@atlaskit/icon/core/emoji';
|
|
6
10
|
import TipIcon from '@atlaskit/icon/core/lightbulb';
|
|
7
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
3
|
-
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
4
|
-
import { WidthContext } from '@atlaskit/editor-common/
|
|
5
|
-
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
4
|
+
import { WidthContext } from '@atlaskit/editor-common/WidthProvider';
|
|
5
|
+
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
6
|
import { useRendererContext } from '../../../renderer-context';
|
|
7
7
|
// we allow scaling down column widths by no more than 30%
|
|
8
8
|
// this intends to reduce unwanted scrolling in the Renderer in these scenarios:
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
/* 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
9
|
import { jsx, css } from '@emotion/react';
|
|
10
10
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
11
|
-
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
|
+
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
13
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
14
14
|
import { Table } from './table';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
4
|
-
import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
5
|
-
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { isTableInContentMode } from '@atlaskit/editor-common/table/content-mode';
|
|
5
|
+
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { Colgroup, colWidthSum } from './colgroup';
|
|
8
8
|
import { isContentModeSupported } from './content-mode';
|
|
@@ -4,12 +4,15 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
7
|
+
import overflowShadow from '@atlaskit/editor-common/OverflowShadow';
|
|
8
|
+
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
9
|
+
import { tableMarginTop } from '@atlaskit/editor-common/styles/table';
|
|
10
|
+
import { isTableInContentMode } from '@atlaskit/editor-common/table/content-mode';
|
|
9
11
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
10
|
-
import {
|
|
11
|
-
import { createCompareNodes
|
|
12
|
-
import {
|
|
12
|
+
import { convertProsemirrorTableNodeToArrayOfRows, hasMergedCell } from '@atlaskit/editor-common/utils';
|
|
13
|
+
import { createCompareNodes } from '@atlaskit/editor-common/utils/compareNodes';
|
|
14
|
+
import { compose } from '@atlaskit/editor-common/utils/compose';
|
|
15
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
13
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -3,10 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
|
|
5
5
|
import { tableBackgroundColorNameByHex } from '@atlaskit/adf-schema/tableNodes';
|
|
6
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
7
|
+
import SortingIcon from '@atlaskit/editor-common/table/SortingIcon';
|
|
8
8
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
9
|
-
import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
|
|
9
|
+
import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette/background';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
12
12
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
|
|
4
|
-
import
|
|
4
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
5
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory/with-providers';
|
|
5
6
|
import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
6
7
|
import TaskItemWithProviders from './task-item-with-providers';
|
|
7
8
|
// Ignored via go/ees005
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext, useEffect, useLayoutEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { useProviderFactory, useProviderLayout } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import { useProviderFactory, useProviderLayout } from '@atlaskit/editor-common/provider-factory/context';
|
|
3
3
|
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
4
4
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
4
4
|
import { ElementSelection } from './element-selection';
|
|
5
5
|
|
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
import memoizeOne from 'memoize-one';
|
|
5
5
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { transformContainerNodes } from '@atlaskit/adf-utils/depth-limited-nesting-container-nodes-transform';
|
|
7
|
+
import { transformMediaLinkMarks } from '@atlaskit/adf-utils/media-link-transform';
|
|
8
|
+
import { nativeEmbedsFallbackTransform } from '@atlaskit/adf-utils/native-embeds-fallback-transform';
|
|
9
|
+
import { transformNestedTablesIncomingDocument } from '@atlaskit/adf-utils/transforms';
|
|
10
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
11
|
+
import { findAndTrackUnsupportedContentNodes } from '@atlaskit/editor-common/utils/track-unsupported-content';
|
|
12
|
+
import { validateADFEntity } from '@atlaskit/editor-common/validate-using-spec';
|
|
9
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
15
|
import { PLATFORM } from './analytics/events';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { timestampToIsoFormat } from '@atlaskit/editor-common/utils';
|
|
1
|
+
import { timestampToIsoFormat } from '@atlaskit/editor-common/utils/date';
|
|
2
2
|
import { getText } from '../../utils';
|
|
3
3
|
const date = (node, _schema) => {
|
|
4
4
|
return node.attrs.timestamp ? timestampToIsoFormat(node.attrs.timestamp) : getText(node);
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -11,9 +11,10 @@ import { bind } from 'bind-event-listener';
|
|
|
11
11
|
import _uniqueId from 'lodash/uniqueId';
|
|
12
12
|
import { injectIntl } from 'react-intl';
|
|
13
13
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
14
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
15
|
-
import { ExpandIconWrapper, ExpandLayoutWrapperWithRef, expandMessages
|
|
16
|
-
import {
|
|
14
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
15
|
+
import { ExpandIconWrapper, ExpandLayoutWrapperWithRef, messages as expandMessages } from '@atlaskit/editor-common/ui-expand';
|
|
16
|
+
import { WidthProvider } from '@atlaskit/editor-common/WidthProvider';
|
|
17
|
+
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles/constants';
|
|
17
18
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
18
19
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
20
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
@@ -9,9 +9,9 @@ import React from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
11
11
|
import memoizeOne from 'memoize-one';
|
|
12
|
-
import { getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
13
|
-
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
14
|
-
import { getExtensionRenderer } from '@atlaskit/editor-common/utils';
|
|
12
|
+
import { getNodeRenderer } from '@atlaskit/editor-common/extensions/extension-handlers';
|
|
13
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory/with-providers';
|
|
14
|
+
import { getExtensionRenderer } from '@atlaskit/editor-common/utils/extension-handler';
|
|
15
15
|
const inlineExtensionStyle = css({
|
|
16
16
|
display: 'inline-block',
|
|
17
17
|
maxWidth: '100%',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { Component, useContext } from 'react';
|
|
4
|
-
import { filter } from '@atlaskit/adf-utils/
|
|
5
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { filter } from '@atlaskit/adf-utils/filter';
|
|
5
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
|
+
import { withImageLoader } from '@atlaskit/editor-common/utils/imageLoader';
|
|
7
7
|
import { CardError } from '@atlaskit/media-card/cardError';
|
|
8
8
|
import CardAsync from '@atlaskit/media-card/cardLoader';
|
|
9
9
|
import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
4
|
-
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
4
|
+
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
6
6
|
import { PLATFORM } from '../../analytics/events';
|
|
7
7
|
|
|
8
8
|
// Ignored via go/ees005
|
|
@@ -11,14 +11,23 @@ import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/c
|
|
|
11
11
|
import { bulletListSelector } from '@atlaskit/adf-schema/bullet-list';
|
|
12
12
|
import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
|
|
13
13
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
14
|
-
import {
|
|
15
|
-
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
14
|
+
import { editorUGCTokensRefreshed } from '@atlaskit/editor-common/editor-ugc-token-names';
|
|
15
|
+
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline/styles';
|
|
16
|
+
import { shadowClassNames } from '@atlaskit/editor-common/OverflowShadow';
|
|
17
|
+
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
18
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles/code-block';
|
|
19
|
+
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles/date';
|
|
20
|
+
import { EmojiSharedCssClassName } from '@atlaskit/editor-common/styles/emoji';
|
|
21
|
+
import { listItemCounterPadding } from '@atlaskit/editor-common/styles/lists';
|
|
22
|
+
import { richMediaClassName } from '@atlaskit/editor-common/styles/media-single';
|
|
23
|
+
import { SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles/smart-card';
|
|
24
|
+
import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName } from '@atlaskit/editor-common/styles/sync-block';
|
|
25
|
+
import { tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop } from '@atlaskit/editor-common/styles/table';
|
|
26
|
+
import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles/task-decision';
|
|
27
|
+
import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table/consts';
|
|
28
|
+
import { shadowObserverClassNames } from '@atlaskit/editor-common/ui';
|
|
29
|
+
import { akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorFullPageNarrowBreakout, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth, akEditorGutterPadding, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, blockNodesVerticalMargin, scaledBlockNodesVerticalMargin, gridMediumMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
30
|
+
import { defaultEmojiHeight, defaultDenseEmojiHeight, defaultInlineEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4 } from '@atlaskit/emoji/constants';
|
|
22
31
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
23
32
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
24
33
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
@@ -2967,7 +2976,7 @@ export const RendererStyleContainer = props => {
|
|
|
2967
2976
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
2968
2977
|
fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStylesCommentHeightFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? baseOtherStyles : baseOtherStylesDuplicateAnchor, expandSsrMarginStyles,
|
|
2969
2978
|
// this should be placed after baseOtherStyles
|
|
2970
|
-
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), fg('platform_forge_inline_bodied_macro') && [migratedInlineBodiedFlowStyle, forgeInlineBodiedSpacingStyle], inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, tableContentModeScopedStyles, tableContentModeExtensionContainmentStyles, tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && isExperimentEnabled('platform_editor_table_css_overflow_shadow') && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, blockSsrMarginStyles, layoutBlockSsrMarginStyles, browser.safari && codeBlockInListSsrMarginSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max') && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, contentMode === 'compact' ? scaledDenseUnicodeEmojiStylesNew : scaledUnicodeEmojiStylesNew, syncBlockStyles, centerWrapperStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null,
|
|
2979
|
+
expValEquals('platform_editor_render_bodied_extension_as_inline', 'isEnabled', true) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? extensionAsInlineStyle : oldExtensionAsInlineStyle), fg('platform_forge_inline_bodied_macro') && [migratedInlineBodiedFlowStyle, forgeInlineBodiedSpacingStyle], inlineExtensionRendererMarginFix, allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? alignedHeadingAnchorStyle : alignedHeadingAnchorStyleDuplicateAnchor), mediaSingleSharedStyle, firstWrappedMediaStyles, tableSharedStyle, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableOuterBorderOverlayStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && roundedTableRemixBlockHighlightStyles, tableContentModeScopedStyles, tableContentModeExtensionContainmentStyles, tableContentModeNestedTableStyles, tableRendererHeaderStylesForTableCellOnly, fg('platform_editor_bordered_panel_nested_in_table') && tableRendererNestedPanelStyles, isBackgroundClipBrowserFixNeeded() && tableStylesBackGroundClipForGeckoForTableCellOnly, firstNodeWithNotMarginTopWithNestedDnD, rendererTableStyles, isStickyScrollbarOn && stickyScrollbarStyles, isStickyScrollbarOn && isExperimentEnabled('platform_editor_table_css_overflow_shadow') && stickyScrollbarOverflowShadowFixStyles, rendererTableHeaderEqualHeightStylesForTableCellOnly, allowColumnSorting && rendererTableSortableColumnStyles, allowColumnSorting && expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) && rendererTableSortableColumnValignStyles, allowColumnSorting && allowNestedHeaderLinks && (expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinks : rendererTableHeaderEqualHeightStylesAllowNestedHeaderLinksDuplicateAnchor), rendererTableColumnStyles, stickyHeaderStyles, codeBlockAndLayoutStyles, columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, isAdvancedLayoutsOn && layoutSectionForAdvancedLayoutsStyles, !useBlockRenderForCodeBlock && gridRenderForCodeBlockStyles, browser.safari && codeBlockInListSafariFixStyles, blockSsrMarginStyles, layoutBlockSsrMarginStyles, browser.safari && codeBlockInListSsrMarginSafariFixStyles, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && responsiveBreakoutWidth, appearance === 'full-page' && isPreviewPanelResponsivenessOn && responsiveBreakoutWidthWithReducedPadding, (appearance === 'full-width' || appearance === 'max') && responsiveBreakoutWidthFullWidth, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? contentMode === 'compact' ? scaledDenseEmojiStyles : scaledEmojiStyles : contentMode === 'compact' ? denseStyles : undefined, contentMode === 'compact' ? scaledDenseUnicodeEmojiStylesNew : scaledUnicodeEmojiStylesNew, syncBlockStyles, centerWrapperStyles, isInsideSyncBlock ? syncBlockRendererStyles : null, isInsideSyncBlock && tableFakeBorderStyles, isInsideSyncBlock && expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? roundedTableFakeBorderOverlayStyles : null, hideExtensionStyles],
|
|
2971
2980
|
"data-testid": testId
|
|
2972
2981
|
}, children);
|
|
2973
2982
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { MODE } from '@atlaskit/editor-common/analytics/types/general-events';
|
|
3
|
+
import { TABLE_ACTION } from '@atlaskit/editor-common/analytics/types/table-events';
|
|
2
4
|
import { getBreakpointKey } from '@atlaskit/editor-common/utils/analytics';
|
|
3
5
|
export const getWidthInfoPayload = renderer => {
|
|
4
6
|
const tablesInfo = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc -- SSR inline script helpers */
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { breakoutConsts } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { breakoutConsts } from '@atlaskit/editor-common/utils/breakout';
|
|
5
5
|
import { FullPagePadding } from './style';
|
|
6
6
|
/**
|
|
7
7
|
* Inline Script that updates breakout node width on client side,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
|
|
1
|
+
import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles/constants';
|
|
2
2
|
export const getBaseFontSize = (appearance, contentMode) => {
|
|
3
3
|
if (contentMode === 'compact') {
|
|
4
4
|
return akEditorFullPageDenseFontSize;
|