@atlaskit/renderer 149.0.4 → 149.0.6
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 +28 -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 +63 -34
- 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 +43 -20
- 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 +52 -25
- 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 +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
2
|
+
import { BodiedSyncBlockSharedCssClassName } from '@atlaskit/editor-common/styles/sync-block';
|
|
3
3
|
export default function BodiedSyncBlock(props) {
|
|
4
4
|
var children = props.children,
|
|
5
5
|
localId = props.localId,
|
|
@@ -9,7 +9,7 @@ import { useState } from 'react';
|
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
11
|
import AkCodeBlock from '@atlaskit/code/code-block';
|
|
12
|
-
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
12
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles/code-block';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
import CodeBlockContainer from './components/codeBlockContainer';
|
|
15
15
|
function CodeBlock(props) {
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
|
|
7
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 */
|
|
8
8
|
import { jsx, css } from '@emotion/react';
|
|
9
|
-
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
9
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles/code-block';
|
|
10
10
|
import CodeBlockButtonContainer from './codeBlockButtonContainer';
|
|
11
11
|
var codeBlockStyleOverrides = css(_defineProperty({
|
|
12
12
|
tabSize: 4,
|
|
@@ -10,7 +10,7 @@ import { useState } from 'react';
|
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
12
|
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
13
|
-
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
13
|
+
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages/codeBlockButton';
|
|
14
14
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { injectIntl } from 'react-intl';
|
|
9
9
|
import IconButton from '@atlaskit/button/icon/button';
|
|
10
|
-
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
10
|
+
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages/codeBlockButton';
|
|
11
11
|
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
12
12
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { injectIntl } from 'react-intl';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
10
|
-
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
10
|
+
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages/codeBlockButton';
|
|
11
11
|
import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
@@ -13,8 +13,9 @@ import React, { forwardRef, useMemo } from 'react';
|
|
|
13
13
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
|
-
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
17
|
-
import { akEditorTableCellMinWidth, blockNodesVerticalMargin
|
|
16
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles/code-block';
|
|
17
|
+
import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles/constants';
|
|
18
|
+
import { overflowShadow } from '@atlaskit/editor-shared-styles/overflow-shadow';
|
|
18
19
|
import { RendererCssClassName } from '../../../../consts';
|
|
19
20
|
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), {
|
|
20
21
|
marginRight: "var(--ds-space-100, 8px)",
|
|
@@ -9,7 +9,7 @@ import { Fragment, lazy, memo, Suspense, useState } from 'react';
|
|
|
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
|
import { jsx } from '@emotion/react';
|
|
12
|
-
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
12
|
+
import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles/code-block';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
import { useInViewport } from '../../hooks/use-in-viewport';
|
|
15
15
|
import CodeBlockContainer from './components/codeBlockContainer';
|
|
@@ -2,8 +2,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import React, { memo } from 'react';
|
|
4
4
|
import { injectIntl } from 'react-intl';
|
|
5
|
-
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
6
|
-
import { isPastDate, timestampToString, timestampToTaskContext } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles/date';
|
|
6
|
+
import { isPastDate, timestampToString, timestampToTaskContext } from '@atlaskit/editor-common/utils/date';
|
|
7
7
|
import { useRendererContext } from '../../renderer-context';
|
|
8
8
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
9
9
|
import { useTaskItemsFormatContext } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
@@ -10,13 +10,16 @@ import { useContext, useState, useRef } from 'react';
|
|
|
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
|
import { jsx, css } from '@emotion/react';
|
|
12
12
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import UIMediaSingle from '@atlaskit/editor-common/MediaSingle';
|
|
14
|
+
import UnsupportedBlock from '@atlaskit/editor-common/UnsupportedBlock';
|
|
15
|
+
import { WidthConsumer, WidthContext } from '@atlaskit/editor-common/WidthProvider';
|
|
16
|
+
import { akEditorDefaultLayoutWidth, akEditorFullPageNarrowBreakout, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles/constants';
|
|
15
17
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
16
18
|
import { SmartCardContext } from '@atlaskit/link-provider/context';
|
|
17
19
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
18
20
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
|
-
import { Card
|
|
21
|
+
import { Card } from '@atlaskit/smart-card/card/lazy';
|
|
22
|
+
import { EmbedResizeMessageListener } from '@atlaskit/smart-card/embed-resize-message-listener';
|
|
20
23
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
21
24
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
22
25
|
import { RendererCssClassName } from '../../consts';
|
|
@@ -14,8 +14,9 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
14
14
|
import { PureComponent, memo } from 'react';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { jsx } from '@emotion/react';
|
|
17
|
-
import { messages } from '@atlaskit/editor-common/emoji';
|
|
18
|
-
import
|
|
17
|
+
import { messages } from '@atlaskit/editor-common/emoji/messages';
|
|
18
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
19
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory/with-providers';
|
|
19
20
|
import { isSingleEmoji } from '@atlaskit/editor-common/utils/isSingleEmoji';
|
|
20
21
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
21
22
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
var _excluded = ["commentProps", "commentTargetOptions"];
|
|
3
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; }
|
|
4
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; }
|
|
5
7
|
/**
|
|
@@ -11,8 +13,8 @@ import React, { useCallback, useContext, useEffect, useMemo, useRef } from 'reac
|
|
|
11
13
|
|
|
12
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
15
|
import { jsx, css } from '@emotion/react';
|
|
14
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
15
|
-
import
|
|
16
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
17
|
+
import overflowShadow from '@atlaskit/editor-common/OverflowShadow';
|
|
16
18
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
20
|
import { RendererCssClassName } from '../../consts';
|
|
@@ -189,20 +191,8 @@ export var renderExtension = function renderExtension(content, layout) {
|
|
|
189
191
|
className: RendererCssClassName.STICKY_SAFE_CENTER_WRAPPER + ' ' + RendererCssClassName.FLEX_CENTER_WRAPPER
|
|
190
192
|
}, extensionDiv) : extensionDiv;
|
|
191
193
|
};
|
|
192
|
-
var
|
|
193
|
-
var _providers$inlineComm, _props$dataAttributes;
|
|
194
|
-
var text = props.text,
|
|
195
|
-
_props$layout = props.layout,
|
|
196
|
-
layout = _props$layout === void 0 ? 'default' : _props$layout,
|
|
197
|
-
handleRef = props.handleRef,
|
|
198
|
-
shadowClassNames = props.shadowClassNames,
|
|
199
|
-
_props$path = props.path,
|
|
200
|
-
path = _props$path === void 0 ? [] : _props$path,
|
|
201
|
-
extensionViewportSizes = props.extensionViewportSizes,
|
|
202
|
-
parameters = props.parameters,
|
|
203
|
-
nodeHeight = props.nodeHeight,
|
|
204
|
-
localId = props.localId,
|
|
205
|
-
isInsideOfInlineExtension = props.isInsideOfInlineExtension;
|
|
194
|
+
var ExtensionWithAnnotations = function ExtensionWithAnnotations(props) {
|
|
195
|
+
var _providers$inlineComm, _providers$inlineComm2, _props$dataAttributes;
|
|
206
196
|
var providers = useContext(ProvidersContext);
|
|
207
197
|
var _useAnnotationRangeDi = useAnnotationRangeDispatch(),
|
|
208
198
|
setHoverTarget = _useAnnotationRangeDi.setHoverTarget;
|
|
@@ -211,9 +201,13 @@ var Extension = function Extension(props) {
|
|
|
211
201
|
initiateTimeout = _useAnnotationHoverDi.initiateTimeout,
|
|
212
202
|
setIsWithinRange = _useAnnotationHoverDi.setIsWithinRange;
|
|
213
203
|
var isBlockNodeSupported = providers === null || providers === void 0 || (_providers$inlineComm = providers.inlineComment) === null || _providers$inlineComm === void 0 ? void 0 : _providers$inlineComm.isBlockNodeSupported;
|
|
214
|
-
var
|
|
215
|
-
return Boolean(
|
|
204
|
+
var supportsComments = useMemo(function () {
|
|
205
|
+
return Boolean(props.extensionNode && (isBlockNodeSupported === null || isBlockNodeSupported === void 0 ? void 0 : isBlockNodeSupported(props.extensionNode)) === true);
|
|
216
206
|
}, [props.extensionNode, isBlockNodeSupported]);
|
|
207
|
+
var canCreateCommentOnBlockNode = providers === null || providers === void 0 || (_providers$inlineComm2 = providers.inlineComment) === null || _providers$inlineComm2 === void 0 ? void 0 : _providers$inlineComm2.canCreateCommentOnBlockNode;
|
|
208
|
+
var isCommentTarget = useMemo(function () {
|
|
209
|
+
return Boolean(supportsComments && props.extensionNode && (!canCreateCommentOnBlockNode || canCreateCommentOnBlockNode(props.extensionNode)));
|
|
210
|
+
}, [supportsComments, props.extensionNode, canCreateCommentOnBlockNode]);
|
|
217
211
|
var isFullPageRenderer = props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width';
|
|
218
212
|
var onMouseEnter = useCallback(function (event) {
|
|
219
213
|
cancelTimeout();
|
|
@@ -248,21 +242,45 @@ var Extension = function Extension(props) {
|
|
|
248
242
|
isCommentTarget: isCommentTarget
|
|
249
243
|
};
|
|
250
244
|
var commentProps = {
|
|
251
|
-
enabled:
|
|
252
|
-
allowAnnotations: props.allowAnnotations
|
|
253
|
-
allowAnnotationsDraftMode: props.allowAnnotationsDraftMode,
|
|
245
|
+
enabled: supportsComments,
|
|
246
|
+
allowAnnotations: props.allowAnnotations,
|
|
247
|
+
allowAnnotationsDraftMode: props.allowAnnotationsDraftMode && isCommentTarget,
|
|
254
248
|
startPos: (_props$dataAttributes = props.dataAttributes) === null || _props$dataAttributes === void 0 ? void 0 : _props$dataAttributes['data-renderer-start-pos'],
|
|
255
249
|
marks: props.marks
|
|
256
250
|
};
|
|
251
|
+
return jsx(ExtensionContent
|
|
252
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
253
|
+
, _extends({}, props, {
|
|
254
|
+
commentProps: commentProps,
|
|
255
|
+
commentTargetOptions: commentTargetOptions
|
|
256
|
+
}));
|
|
257
|
+
};
|
|
258
|
+
var ExtensionContent = function ExtensionContent(_ref3) {
|
|
259
|
+
var _ref3$commentProps = _ref3.commentProps,
|
|
260
|
+
commentProps = _ref3$commentProps === void 0 ? {} : _ref3$commentProps,
|
|
261
|
+
commentTargetOptions = _ref3.commentTargetOptions,
|
|
262
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
263
|
+
var text = props.text,
|
|
264
|
+
_props$layout = props.layout,
|
|
265
|
+
layout = _props$layout === void 0 ? 'default' : _props$layout,
|
|
266
|
+
handleRef = props.handleRef,
|
|
267
|
+
shadowClassNames = props.shadowClassNames,
|
|
268
|
+
_props$path = props.path,
|
|
269
|
+
path = _props$path === void 0 ? [] : _props$path,
|
|
270
|
+
extensionViewportSizes = props.extensionViewportSizes,
|
|
271
|
+
parameters = props.parameters,
|
|
272
|
+
nodeHeight = props.nodeHeight,
|
|
273
|
+
localId = props.localId,
|
|
274
|
+
isInsideOfInlineExtension = props.isInsideOfInlineExtension;
|
|
257
275
|
return jsx(ExtensionRenderer
|
|
258
276
|
// Ignored via go/ees005
|
|
259
277
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
260
278
|
, _extends({}, props, {
|
|
261
279
|
type: "extension"
|
|
262
|
-
}), function (
|
|
280
|
+
}), function (_ref4) {
|
|
263
281
|
var _props$hideExtensionK;
|
|
264
|
-
var isExtensionProviderPending =
|
|
265
|
-
result =
|
|
282
|
+
var isExtensionProviderPending = _ref4.isExtensionProviderPending,
|
|
283
|
+
result = _ref4.result;
|
|
266
284
|
try {
|
|
267
285
|
// Return the result directly if it's a valid JSX.Element
|
|
268
286
|
if (result && /*#__PURE__*/React.isValidElement(result)) {
|
|
@@ -307,6 +325,15 @@ var Extension = function Extension(props) {
|
|
|
307
325
|
}, commentTargetOptions), undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined, isInsideOfInlineExtension);
|
|
308
326
|
});
|
|
309
327
|
};
|
|
328
|
+
var Extension = function Extension(props) {
|
|
329
|
+
// Keep annotation context subscriptions out of the gate-off render path.
|
|
330
|
+
if (fg('cc_maui_annotations_on_extensions')) {
|
|
331
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
332
|
+
return jsx(ExtensionWithAnnotations, props);
|
|
333
|
+
}
|
|
334
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
335
|
+
return jsx(ExtensionContent, props);
|
|
336
|
+
};
|
|
310
337
|
var _default_1 = overflowShadow(Extension, {
|
|
311
338
|
overflowSelector: ".".concat(RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER)
|
|
312
339
|
});
|
|
@@ -6,7 +6,7 @@ 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
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
10
10
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
12
12
|
import { abortAll } from '@atlaskit/react-ufo/interaction-metrics';
|
|
@@ -5,7 +5,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
// Mapping file
|
|
6
6
|
|
|
7
7
|
import Loadable from 'react-loadable';
|
|
8
|
-
import
|
|
8
|
+
import UnsupportedBlock from '@atlaskit/editor-common/UnsupportedBlock';
|
|
9
|
+
import UnsupportedInline from '@atlaskit/editor-common/UnsupportedInline';
|
|
10
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
11
|
import Blockquote from './blockquote';
|
|
10
12
|
import BodiedExtension from './bodiedExtension';
|
|
11
13
|
import BulletList from './bulletList';
|
|
@@ -319,8 +321,8 @@ export var toReact = function toReact(node, flags, nodeComponents
|
|
|
319
321
|
return DocWithSelectAllTrap;
|
|
320
322
|
}
|
|
321
323
|
|
|
322
|
-
//
|
|
323
|
-
var nodes = _objectSpread(_objectSpread({}, nodeToReact), nodeComponents);
|
|
324
|
+
// Custom components provide the node implementations used by the renderer.
|
|
325
|
+
var nodes = _objectSpread(_objectSpread({}, isExperimentEnabled('platform_editor_remove_default_renderer_nodes') ? {} : nodeToReact), nodeComponents);
|
|
324
326
|
if (node.type.name === 'codeBlock') {
|
|
325
327
|
var _nodes$codeBlock;
|
|
326
328
|
if ((flags === null || flags === void 0 ? void 0 : flags.allowWindowedCodeBlock) === true) {
|
|
@@ -9,16 +9,18 @@ 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
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
|
|
14
|
-
import {
|
|
12
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
13
|
+
import HoverLinkOverlay from '@atlaskit/editor-common/HoverLinkOverlay';
|
|
14
|
+
import { useProvider } from '@atlaskit/editor-common/provider-factory/context';
|
|
15
|
+
import UnsupportedInline from '@atlaskit/editor-common/UnsupportedInline';
|
|
15
16
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
16
17
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
17
18
|
import { useSmartCardContext } from '@atlaskit/link-provider/use-smart-card-context';
|
|
18
19
|
import { isWithinPreviewPanelIFrame } from '@atlaskit/linking-common/utils/is-within-preview-panel-iframe';
|
|
19
20
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
21
|
+
import { getObjectAri, getObjectIconUrl, getObjectName } from '@atlaskit/smart-card';
|
|
22
|
+
import { Card } from '@atlaskit/smart-card/card/lazy';
|
|
23
|
+
import { useSmartLinkActions } from '@atlaskit/smart-card/hook/use-smart-link-actions';
|
|
22
24
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
23
25
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
24
26
|
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
|
var clearNextSiblingMarginTopStyle = null;
|
|
@@ -13,7 +13,7 @@ import React from 'react';
|
|
|
13
13
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
|
-
import { WidthProvider } from '@atlaskit/editor-common/
|
|
16
|
+
import { WidthProvider } from '@atlaskit/editor-common/WidthProvider';
|
|
17
17
|
|
|
18
18
|
// localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
|
|
19
19
|
var clearNextSiblingMarginTopStyle = css({
|
|
@@ -24,12 +24,15 @@ import { jsx, css } from '@emotion/react';
|
|
|
24
24
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
25
25
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
|
|
26
26
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
27
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
27
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
28
|
+
import { VIEW_METHOD } from '@atlaskit/editor-common/analytics/types/inline-comment-events';
|
|
29
|
+
import { CommentBadgeNext } from '@atlaskit/editor-common/media-single/CommentBadgeNext';
|
|
30
|
+
import { ExternalImageBadge } from '@atlaskit/editor-common/media-single/ExternalImageBadge';
|
|
31
|
+
import { MediaBadges } from '@atlaskit/editor-common/media-single/MediaBadges';
|
|
32
|
+
import { MediaBorderGapFiller } from '@atlaskit/editor-common/MediaSingle/styled';
|
|
33
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory/with-providers';
|
|
34
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types/emitter';
|
|
35
|
+
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette/border';
|
|
33
36
|
import { MODE, PLATFORM } from '../../../analytics/events';
|
|
34
37
|
import { useAnnotationRangeState } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
35
38
|
import { useInlineCommentSubscriberContext } from '../../../ui/annotations/hooks/use-inline-comment-subscriber';
|
|
@@ -11,7 +11,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { PureComponent } from 'react';
|
|
13
13
|
import { defaultImageCardDimensions } from '@atlaskit/media-card/cardDimensions';
|
|
14
|
-
import { FilmstripView } from '@atlaskit/media-filmstrip';
|
|
14
|
+
import { FilmstripView } from '@atlaskit/media-filmstrip/filmstrip-view';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
|
|
17
17
|
// Ignored via go/ees005
|
|
@@ -8,9 +8,9 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
8
8
|
import React, { useCallback, useEffect, useMemo, useState, useContext } from 'react';
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
10
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
11
|
-
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
12
|
-
import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline';
|
|
13
|
-
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
11
|
+
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
12
|
+
import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline-image-card';
|
|
13
|
+
import { useProvider } from '@atlaskit/editor-common/provider-factory/context';
|
|
14
14
|
import MediaInlineCard from '@atlaskit/media-card/loader';
|
|
15
15
|
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
16
16
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
@@ -10,9 +10,10 @@ import { default as React, Fragment, useCallback, useContext, useMemo, useEffect
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { injectIntl } from 'react-intl';
|
|
13
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
13
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
14
|
+
import UIMediaSingle from '@atlaskit/editor-common/MediaSingle';
|
|
15
|
+
import { WidthContext } from '@atlaskit/editor-common/WidthProvider';
|
|
16
|
+
import { akEditorFullWidthLayoutWidth, akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
16
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
18
|
import { useAnnotationHoverDispatch } from '../../../ui/annotations/contexts/AnnotationHoverContext';
|
|
18
19
|
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
|
var _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 var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_ref) {
|
|
5
5
|
var updateActiveChild = _ref.updateActiveChild,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import memoizeOne from 'memoize-one';
|
|
4
|
-
import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
5
|
-
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
import { getExtensionRenderer } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '@atlaskit/editor-common/extensions/extension-handlers';
|
|
5
|
+
import { useProvider } from '@atlaskit/editor-common/provider-factory/context';
|
|
6
|
+
import { getExtensionRenderer } from '@atlaskit/editor-common/utils/extension-handler';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
var getExtensionHandlerNode = function getExtensionHandlerNode(extensionHandler) {
|
|
9
9
|
return function (_ref) {
|
|
@@ -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;
|
|
@@ -15,7 +15,7 @@ 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 { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
18
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
19
19
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
21
|
// New custom icons are a little smaller than predefined icons.
|
|
@@ -16,7 +16,7 @@ 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 { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
19
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
20
20
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
21
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
22
|
// 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';
|
|
@@ -3,9 +3,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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
5
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
6
|
-
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
7
|
-
import { WidthContext } from '@atlaskit/editor-common/
|
|
8
|
-
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles/table';
|
|
7
|
+
import { WidthContext } from '@atlaskit/editor-common/WidthProvider';
|
|
8
|
+
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
9
9
|
import { useRendererContext } from '../../../renderer-context';
|
|
10
10
|
// we allow scaling down column widths by no more than 30%
|
|
11
11
|
// this intends to reduce unwanted scrolling in the Renderer in these scenarios:
|
|
@@ -11,7 +11,7 @@ import React from 'react';
|
|
|
11
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 */
|
|
12
12
|
import { jsx, css } from '@emotion/react';
|
|
13
13
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
14
|
-
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
14
|
+
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
16
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
17
17
|
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';
|
|
@@ -17,12 +17,15 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
17
17
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
20
|
+
import overflowShadow from '@atlaskit/editor-common/OverflowShadow';
|
|
21
|
+
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
22
|
+
import { tableMarginTop } from '@atlaskit/editor-common/styles/table';
|
|
23
|
+
import { isTableInContentMode } from '@atlaskit/editor-common/table/content-mode';
|
|
22
24
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
23
|
-
import {
|
|
24
|
-
import { createCompareNodes
|
|
25
|
-
import {
|
|
25
|
+
import { convertProsemirrorTableNodeToArrayOfRows, hasMergedCell } from '@atlaskit/editor-common/utils';
|
|
26
|
+
import { createCompareNodes } from '@atlaskit/editor-common/utils/compareNodes';
|
|
27
|
+
import { compose } from '@atlaskit/editor-common/utils/compose';
|
|
28
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
26
29
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
27
30
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
28
31
|
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';
|
|
@@ -9,7 +9,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
11
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
|
|
12
|
-
import
|
|
12
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
13
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory/with-providers';
|
|
13
14
|
import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
14
15
|
import TaskItemWithProviders from './task-item-with-providers';
|
|
15
16
|
// Ignored via go/ees005
|