@atlaskit/renderer 141.0.1 → 141.0.2
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 +6 -0
- package/dist/cjs/actions/index.js +1 -1
- package/dist/cjs/actions/selection.js +1 -1
- package/dist/cjs/analytics/unsupported-content.js +1 -1
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
- package/dist/cjs/react/index.js +9 -9
- package/dist/cjs/react/marks/index.js +10 -10
- package/dist/cjs/react/marks/link.js +3 -3
- package/dist/cjs/react/nodes/blockCard.js +12 -12
- package/dist/cjs/react/nodes/bodiedExtension.js +4 -4
- package/dist/cjs/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +11 -11
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/date.js +2 -2
- package/dist/cjs/react/nodes/embedCard.js +33 -32
- package/dist/cjs/react/nodes/emoji.js +12 -12
- package/dist/cjs/react/nodes/extension.js +19 -19
- package/dist/cjs/react/nodes/fallback.js +2 -2
- package/dist/cjs/react/nodes/heading-anchor.js +1 -38
- package/dist/cjs/react/nodes/heading.js +3 -3
- package/dist/cjs/react/nodes/index.js +5 -5
- package/dist/cjs/react/nodes/inlineCard.js +12 -12
- package/dist/cjs/react/nodes/loosely-lazy.js +0 -1
- package/dist/cjs/react/nodes/media/index.js +10 -10
- package/dist/cjs/react/nodes/mediaInline.js +6 -6
- package/dist/cjs/react/nodes/mediaSingle/index.js +4 -4
- package/dist/cjs/react/nodes/multiBodiedExtension.js +29 -29
- package/dist/cjs/react/nodes/panel-compiled.js +1 -1
- package/dist/cjs/react/nodes/panel-emotion.js +1 -1
- package/dist/cjs/react/nodes/status.js +1 -1
- package/dist/cjs/react/nodes/table/colgroup.js +2 -2
- package/dist/cjs/react/nodes/table/sticky.js +1 -1
- package/dist/cjs/react/nodes/table/table.js +2 -2
- package/dist/cjs/react/nodes/table.js +14 -14
- package/dist/cjs/react/nodes/tableCell.js +7 -7
- package/dist/cjs/react/nodes/tableRow.js +2 -2
- package/dist/cjs/react/nodes/taskItem.js +2 -2
- package/dist/cjs/react/utils/EditorMediaClientProvider.js +2 -2
- package/dist/cjs/react/utils/use-select-all-trap.js +1 -1
- package/dist/cjs/render-document.js +1 -1
- package/dist/cjs/steps/index.js +1 -1
- package/dist/cjs/text/nodes/status.js +1 -1
- package/dist/cjs/ui/Expand.js +53 -52
- package/dist/cjs/ui/ExtensionRenderer.js +19 -17
- package/dist/cjs/ui/MediaCard.js +4 -4
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +1 -1
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +25 -35
- package/dist/cjs/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +22 -22
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +7 -6
- package/dist/cjs/ui/RendererActionsContext/index.js +2 -2
- package/dist/cjs/ui/annotations/draft/component.js +5 -5
- package/dist/cjs/ui/annotations/element/index.js +4 -4
- package/dist/cjs/ui/annotations/element/mark.js +1 -1
- package/dist/cjs/ui/annotations/hooks/use-events.js +17 -17
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/cjs/ui/annotations/hooks/user-selection.js +2 -2
- package/dist/cjs/ui/annotations/hover/mounter.js +2 -2
- package/dist/cjs/ui/annotations/hover/range-validator.js +2 -2
- package/dist/cjs/ui/annotations/index.js +6 -6
- package/dist/cjs/ui/annotations/selection/mounter.js +3 -3
- package/dist/cjs/ui/annotations/selection/range-validator.js +1 -1
- package/dist/cjs/ui/annotations/view/index.js +1 -1
- package/dist/cjs/utils.js +1 -0
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/actions/selection.js +1 -1
- package/dist/es2019/analytics/unsupported-content.js +1 -1
- package/dist/es2019/custom-nodes.js +1 -0
- package/dist/es2019/entry-points/actions-renderer-actions-context.js +1 -0
- package/dist/es2019/entry-points/actions-with-renderer-actions.js +1 -0
- package/dist/es2019/entry-points/annotations.js +1 -0
- package/dist/es2019/entry-points/consts.js +1 -0
- package/dist/es2019/entry-points/custom-nodes-loosely-lazy.js +1 -0
- package/dist/es2019/entry-points/events.js +1 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/cards.js +1 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/media.js +1 -0
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/small-nodes.js +2 -1
- package/dist/es2019/entry-points/extension-renderer.js +1 -0
- package/dist/es2019/entry-points/loosely-lazy.js +1 -0
- package/dist/es2019/entry-points/messages.js +1 -0
- package/dist/es2019/entry-points/nodes.js +1 -0
- package/dist/es2019/entry-points/render-document.js +1 -0
- package/dist/es2019/entry-points/renderer-actions-context.js +1 -0
- package/dist/es2019/entry-points/renderer-context.js +1 -0
- package/dist/es2019/entry-points/renderer-default.js +1 -0
- package/dist/es2019/entry-points/renderer.js +1 -0
- package/dist/es2019/entry-points/text-serializer-text.js +1 -0
- package/dist/es2019/entry-points/text.js +1 -0
- package/dist/es2019/entry-points/use-feature-flags.js +1 -0
- package/dist/es2019/entry-points/utils.js +1 -0
- package/dist/es2019/entry-points/validation-context.js +1 -0
- package/dist/es2019/i18n/index.js +1 -0
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/react/index.js +9 -9
- package/dist/es2019/react/marks/alignment.js +1 -0
- package/dist/es2019/react/marks/index.js +11 -12
- package/dist/es2019/react/marks/link.js +3 -3
- package/dist/es2019/react/nodes/blockCard.js +9 -9
- package/dist/es2019/react/nodes/bodiedExtension.js +4 -4
- package/dist/es2019/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -5
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +2 -1
- package/dist/es2019/react/nodes/date.js +2 -2
- package/dist/es2019/react/nodes/embedCard.js +11 -10
- package/dist/es2019/react/nodes/emoji.js +5 -4
- package/dist/es2019/react/nodes/extension.js +5 -4
- package/dist/es2019/react/nodes/fallback.js +2 -2
- package/dist/es2019/react/nodes/heading-anchor.js +2 -38
- package/dist/es2019/react/nodes/heading.js +3 -3
- package/dist/es2019/react/nodes/index.js +9 -8
- package/dist/es2019/react/nodes/inlineCard.js +12 -12
- package/dist/es2019/react/nodes/loosely-lazy.js +2 -2
- package/dist/es2019/react/nodes/media/index.js +11 -10
- package/dist/es2019/react/nodes/mediaInline.js +6 -6
- package/dist/es2019/react/nodes/mediaSingle/index.js +5 -4
- package/dist/es2019/react/nodes/multiBodiedExtension.js +6 -5
- package/dist/es2019/react/nodes/panel-compiled.js +1 -1
- package/dist/es2019/react/nodes/panel-emotion.js +1 -1
- package/dist/es2019/react/nodes/status.js +1 -1
- package/dist/es2019/react/nodes/table/colgroup.js +2 -3
- package/dist/es2019/react/nodes/table/sticky.js +2 -1
- package/dist/es2019/react/nodes/table/table.js +2 -2
- package/dist/es2019/react/nodes/table.js +12 -11
- package/dist/es2019/react/nodes/tableCell.js +7 -7
- package/dist/es2019/react/nodes/tableRow.js +2 -2
- package/dist/es2019/react/nodes/taskItem.js +2 -2
- package/dist/es2019/react/utils/EditorMediaClientProvider.js +2 -2
- package/dist/es2019/react/utils/getStandaloneBackgroundColorMarks.js +1 -0
- package/dist/es2019/react/utils/use-select-all-trap.js +1 -1
- package/dist/es2019/render-document.js +1 -1
- package/dist/es2019/steps/index.js +2 -1
- package/dist/es2019/text/nodes/status.js +1 -1
- package/dist/es2019/ui/Expand.js +7 -5
- package/dist/es2019/ui/ExtensionRenderer.js +5 -2
- package/dist/es2019/ui/MediaCard.js +4 -4
- package/dist/es2019/ui/Renderer/ErrorBoundary.js +1 -1
- package/dist/es2019/ui/Renderer/PortalContext.js +1 -0
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +16 -27
- package/dist/es2019/ui/Renderer/breakout-ssr.js +2 -1
- package/dist/es2019/ui/Renderer/count-nodes.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +23 -24
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +7 -2
- package/dist/es2019/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
- package/dist/es2019/ui/RendererActionsContext/index.js +3 -2
- package/dist/es2019/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
- package/dist/es2019/ui/annotations/draft/component.js +6 -5
- package/dist/es2019/ui/annotations/element/index.js +4 -4
- package/dist/es2019/ui/annotations/element/mark.js +2 -1
- package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -0
- package/dist/es2019/ui/annotations/hooks/use-events.js +2 -2
- package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/es2019/ui/annotations/hooks/user-selection.js +2 -2
- package/dist/es2019/ui/annotations/hover/mounter.js +2 -2
- package/dist/es2019/ui/annotations/hover/range-validator.js +2 -2
- package/dist/es2019/ui/annotations/index.js +6 -6
- package/dist/es2019/ui/annotations/selection/mounter.js +3 -3
- package/dist/es2019/ui/annotations/selection/range-validator.js +1 -1
- package/dist/es2019/ui/annotations/view/index.js +1 -1
- package/dist/es2019/utils.js +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/actions/selection.js +1 -1
- package/dist/esm/analytics/unsupported-content.js +1 -1
- package/dist/esm/custom-nodes.js +1 -0
- package/dist/esm/entry-points/actions-renderer-actions-context.js +1 -0
- package/dist/esm/entry-points/actions-with-renderer-actions.js +1 -0
- package/dist/esm/entry-points/annotations.js +1 -0
- package/dist/esm/entry-points/consts.js +1 -0
- package/dist/esm/entry-points/custom-nodes-loosely-lazy.js +1 -0
- package/dist/esm/entry-points/events.js +1 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/cards.js +1 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/media.js +1 -0
- package/dist/esm/entry-points/experimental-sync-custom-nodes/small-nodes.js +2 -1
- package/dist/esm/entry-points/extension-renderer.js +1 -0
- package/dist/esm/entry-points/loosely-lazy.js +1 -0
- package/dist/esm/entry-points/messages.js +1 -0
- package/dist/esm/entry-points/nodes.js +1 -0
- package/dist/esm/entry-points/render-document.js +1 -0
- package/dist/esm/entry-points/renderer-actions-context.js +1 -0
- package/dist/esm/entry-points/renderer-context.js +1 -0
- package/dist/esm/entry-points/renderer-default.js +1 -0
- package/dist/esm/entry-points/renderer.js +1 -0
- package/dist/esm/entry-points/text-serializer-text.js +1 -0
- package/dist/esm/entry-points/text.js +1 -0
- package/dist/esm/entry-points/use-feature-flags.js +1 -0
- package/dist/esm/entry-points/utils.js +1 -0
- package/dist/esm/entry-points/validation-context.js +1 -0
- package/dist/esm/i18n/index.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/react/index.js +9 -9
- package/dist/esm/react/marks/alignment.js +1 -0
- package/dist/esm/react/marks/index.js +11 -12
- package/dist/esm/react/marks/link.js +3 -3
- package/dist/esm/react/nodes/blockCard.js +9 -9
- package/dist/esm/react/nodes/bodiedExtension.js +4 -4
- package/dist/esm/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -0
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -5
- package/dist/esm/react/nodes/codeBlock/components/codeBlockDownloadButton.js +3 -3
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -1
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +2 -1
- package/dist/esm/react/nodes/date.js +2 -2
- package/dist/esm/react/nodes/embedCard.js +11 -10
- package/dist/esm/react/nodes/emoji.js +5 -4
- package/dist/esm/react/nodes/extension.js +5 -4
- package/dist/esm/react/nodes/fallback.js +2 -2
- package/dist/esm/react/nodes/heading-anchor.js +2 -38
- package/dist/esm/react/nodes/heading.js +3 -3
- package/dist/esm/react/nodes/index.js +9 -8
- package/dist/esm/react/nodes/inlineCard.js +12 -12
- package/dist/esm/react/nodes/loosely-lazy.js +2 -2
- package/dist/esm/react/nodes/media/index.js +11 -10
- package/dist/esm/react/nodes/mediaInline.js +6 -6
- package/dist/esm/react/nodes/mediaSingle/index.js +5 -4
- package/dist/esm/react/nodes/multiBodiedExtension.js +6 -5
- package/dist/esm/react/nodes/panel-compiled.js +1 -1
- package/dist/esm/react/nodes/panel-emotion.js +1 -1
- package/dist/esm/react/nodes/status.js +1 -1
- package/dist/esm/react/nodes/table/colgroup.js +2 -3
- package/dist/esm/react/nodes/table/sticky.js +2 -1
- package/dist/esm/react/nodes/table/table.js +2 -2
- package/dist/esm/react/nodes/table.js +12 -11
- package/dist/esm/react/nodes/tableCell.js +7 -7
- package/dist/esm/react/nodes/tableRow.js +2 -2
- package/dist/esm/react/nodes/taskItem.js +2 -2
- package/dist/esm/react/utils/EditorMediaClientProvider.js +2 -2
- package/dist/esm/react/utils/getStandaloneBackgroundColorMarks.js +1 -0
- package/dist/esm/react/utils/use-select-all-trap.js +1 -1
- package/dist/esm/render-document.js +1 -1
- package/dist/esm/steps/index.js +2 -1
- package/dist/esm/text/nodes/status.js +1 -1
- package/dist/esm/ui/Expand.js +7 -5
- package/dist/esm/ui/ExtensionRenderer.js +5 -2
- package/dist/esm/ui/MediaCard.js +4 -4
- package/dist/esm/ui/Renderer/ErrorBoundary.js +1 -1
- package/dist/esm/ui/Renderer/PortalContext.js +1 -0
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +20 -30
- package/dist/esm/ui/Renderer/breakout-ssr.js +2 -1
- package/dist/esm/ui/Renderer/count-nodes.js +1 -0
- package/dist/esm/ui/Renderer/index.js +23 -24
- package/dist/esm/ui/Renderer/truncated-wrapper.js +7 -2
- package/dist/esm/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
- package/dist/esm/ui/RendererActionsContext/index.js +3 -2
- package/dist/esm/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
- package/dist/esm/ui/annotations/draft/component.js +6 -5
- package/dist/esm/ui/annotations/element/index.js +4 -4
- package/dist/esm/ui/annotations/element/mark.js +2 -1
- package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -0
- package/dist/esm/ui/annotations/hooks/use-events.js +2 -2
- package/dist/esm/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/esm/ui/annotations/hooks/user-selection.js +2 -2
- package/dist/esm/ui/annotations/hover/mounter.js +2 -2
- package/dist/esm/ui/annotations/hover/range-validator.js +2 -2
- package/dist/esm/ui/annotations/index.js +6 -6
- package/dist/esm/ui/annotations/selection/mounter.js +3 -3
- package/dist/esm/ui/annotations/selection/range-validator.js +1 -1
- package/dist/esm/ui/annotations/view/index.js +1 -1
- package/dist/esm/utils.js +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/analytics/events.d.ts +1 -1
- package/dist/types/react/index.d.ts +4 -4
- package/dist/types/react/marks/annotation.d.ts +1 -1
- package/dist/types/react/marks/index.d.ts +7 -7
- package/dist/types/react/nodes/blockCard.d.ts +2 -2
- package/dist/types/react/nodes/bodiedExtension.d.ts +4 -4
- package/dist/types/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +1 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockContainer.d.ts +1 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +4 -0
- package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +4 -0
- package/dist/types/react/nodes/embedCard.d.ts +3 -3
- package/dist/types/react/nodes/emoji.d.ts +5 -1
- package/dist/types/react/nodes/extension.d.ts +3 -3
- package/dist/types/react/nodes/extensionFrame.d.ts +3 -3
- package/dist/types/react/nodes/heading.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +27 -27
- package/dist/types/react/nodes/inlineCard.d.ts +4 -4
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
- package/dist/types/react/nodes/media/index.d.ts +6 -6
- package/dist/types/react/nodes/mediaGroup.d.ts +2 -2
- package/dist/types/react/nodes/mediaInline.d.ts +4 -4
- package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -1
- package/dist/types/react/nodes/multiBodiedExtension.d.ts +4 -4
- package/dist/types/react/nodes/table/sticky.d.ts +2 -2
- package/dist/types/react/nodes/table/types.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +2 -2
- package/dist/types/react/nodes/text-wrapper.d.ts +1 -1
- package/dist/types/react/types.d.ts +2 -2
- package/dist/types/react/utils/markBlockAsInline.d.ts +1 -1
- package/dist/types/react/utils/render-text-segments.d.ts +1 -1
- package/dist/types/types/mediaOptions.d.ts +1 -1
- package/dist/types/ui/Expand.d.ts +5 -1
- package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
- package/dist/types/ui/MediaCard.d.ts +8 -8
- package/dist/types/ui/Renderer/truncated-wrapper.d.ts +1 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/draft/component.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
- package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +1 -1
- package/dist/types/utils.d.ts +3 -3
- package/package.json +3 -3
- package/dist/cjs/react/nodes/heading-anchor-button.compiled.css +0 -16
- package/dist/cjs/react/nodes/heading-anchor-button.js +0 -24
- package/dist/es2019/react/nodes/heading-anchor-button.compiled.css +0 -16
- package/dist/es2019/react/nodes/heading-anchor-button.js +0 -15
- package/dist/esm/react/nodes/heading-anchor-button.compiled.css +0 -16
- package/dist/esm/react/nodes/heading-anchor-button.js +0 -15
- package/dist/types/react/nodes/heading-anchor-button.d.ts +0 -7
|
@@ -6,25 +6,26 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, { PureComponent, Fragment, useEffect, useState, useMemo } from 'react';
|
|
9
|
+
|
|
9
10
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
10
11
|
import { jsx, css } from '@emotion/react';
|
|
11
|
-
import
|
|
12
|
+
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
12
13
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
|
|
14
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
15
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
|
|
16
|
+
import { CommentBadgeNext, ExternalImageBadge, MediaBadges } from '@atlaskit/editor-common/media-single';
|
|
13
17
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
18
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
14
19
|
import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
|
|
20
|
+
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
15
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
|
+
import { MODE, PLATFORM } from '../../../analytics/events';
|
|
23
|
+
import { useAnnotationRangeState } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
24
|
+
import { useInlineCommentSubscriberContext } from '../../../ui/annotations/hooks/use-inline-comment-subscriber';
|
|
25
|
+
import { useInlineCommentsFilter } from '../../../ui/annotations/hooks/use-inline-comments-filter';
|
|
16
26
|
import { MediaCard } from '../../../ui/MediaCard';
|
|
17
|
-
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
18
|
-
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
19
27
|
import { getEventHandler } from '../../../utils';
|
|
20
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
|
|
21
|
-
import { MODE, PLATFORM } from '../../../analytics/events';
|
|
22
28
|
import AnnotationComponent from '../../marks/annotation';
|
|
23
|
-
import { CommentBadgeNext, ExternalImageBadge, MediaBadges } from '@atlaskit/editor-common/media-single';
|
|
24
|
-
import { useInlineCommentsFilter } from '../../../ui/annotations/hooks/use-inline-comments-filter';
|
|
25
|
-
import { useInlineCommentSubscriberContext } from '../../../ui/annotations/hooks/use-inline-comment-subscriber';
|
|
26
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
27
|
-
import { useAnnotationRangeState } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
28
29
|
const getDataConsumerMark = marks => marks.find(mark => {
|
|
29
30
|
var _mark$type;
|
|
30
31
|
return mark.type === 'dataConsumer' || ((_mark$type = mark.type) === null || _mark$type === void 0 ? void 0 : _mark$type.name) === 'dataConsumer';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React, { useCallback, useEffect, useMemo, useState, useContext } from 'react';
|
|
3
|
+
import { injectIntl } from 'react-intl';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
|
+
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
2
6
|
import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline';
|
|
3
7
|
import { useProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
8
|
import MediaInlineCard from '@atlaskit/media-card/loader';
|
|
5
|
-
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
6
9
|
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
10
|
+
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
7
11
|
import { MediaInlineCardLoadingView } from '@atlaskit/media-ui/LoadingView';
|
|
8
|
-
import
|
|
9
|
-
import { injectIntl } from 'react-intl';
|
|
12
|
+
import { ACTION_SUBJECT } from '../../analytics/enums';
|
|
10
13
|
import { getClipboardAttrs, mediaIdentifierMap } from '../../ui/MediaCard';
|
|
11
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
12
14
|
import { ErrorBoundary } from '../../ui/Renderer/ErrorBoundary';
|
|
13
|
-
import { ACTION_SUBJECT } from '../../analytics/enums';
|
|
14
|
-
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
15
15
|
const RenderMediaInline = ({
|
|
16
16
|
rendererAppearance: _rendererAppearance,
|
|
17
17
|
clipboardAttrs,
|
|
@@ -5,16 +5,17 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { default as React, Fragment, useCallback, useContext, useMemo, useEffect } from 'react';
|
|
8
|
+
|
|
8
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
10
|
import { css, jsx } from '@emotion/react';
|
|
10
11
|
import { injectIntl } from 'react-intl';
|
|
12
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
11
13
|
import { MediaSingle as UIMediaSingle, WidthContext } from '@atlaskit/editor-common/ui';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
14
|
import { akEditorFullWidthLayoutWidth, akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
14
|
-
import {
|
|
15
|
-
import { FullPagePadding } from '../../../ui/Renderer/style';
|
|
16
|
-
import { useAnnotationRangeDispatch } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
16
|
import { useAnnotationHoverDispatch } from '../../../ui/annotations/contexts/AnnotationHoverContext';
|
|
17
|
+
import { useAnnotationRangeDispatch } from '../../../ui/annotations/contexts/AnnotationRangeContext';
|
|
18
|
+
import { FullPagePadding } from '../../../ui/Renderer/style';
|
|
18
19
|
const DEFAULT_WIDTH = 250;
|
|
19
20
|
const DEFAULT_HEIGHT = 200;
|
|
20
21
|
const uiMediaSingleBaseStyles = css({
|
|
@@ -5,17 +5,18 @@
|
|
|
5
5
|
*/
|
|
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
|
+
|
|
9
9
|
import React, { useContext, useState } from 'react';
|
|
10
|
+
import { jsx, css } from '@emotion/react';
|
|
10
11
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
11
|
-
import { RendererCssClassName } from '../../consts';
|
|
12
12
|
import { calcBreakoutWidth } from '@atlaskit/editor-common/utils';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { useMultiBodiedExtensionActions } from './multiBodiedExtension/actions';
|
|
15
|
-
import { useMultiBodiedExtensionContext } from './multiBodiedExtension/context';
|
|
16
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
|
-
import { calcBreakoutWidthCss } from '../utils/breakout';
|
|
18
15
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
16
|
+
import { RendererCssClassName } from '../../consts';
|
|
17
|
+
import { calcBreakoutWidthCss } from '../utils/breakout';
|
|
18
|
+
import { useMultiBodiedExtensionActions } from './multiBodiedExtension/actions';
|
|
19
|
+
import { useMultiBodiedExtensionContext } from './multiBodiedExtension/context';
|
|
19
20
|
const containerStyles = css({
|
|
20
21
|
// Remove top margin if MBE is the first on the doc/page (MBE can only be on the first level)
|
|
21
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -10,8 +10,8 @@ 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 { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
14
13
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
14
|
+
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
17
|
// New custom icons are a little smaller than predefined icons.
|
|
@@ -14,8 +14,8 @@ 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 { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
18
17
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
18
|
+
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
21
|
// New custom icons are a little smaller than predefined icons.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
|
-
import { Status as AkStatus } from '@atlaskit/status/element';
|
|
4
3
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
|
|
5
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
|
+
import { Status as AkStatus } from '@atlaskit/status/element';
|
|
6
6
|
import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
7
7
|
const ANALYTICS_DATA = {
|
|
8
8
|
userContext: 'document'
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
+
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
2
3
|
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
4
|
import { WidthContext } from '@atlaskit/editor-common/ui';
|
|
4
5
|
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
6
|
-
import { useRendererContext } from '../../../renderer-context';
|
|
7
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
|
-
|
|
8
|
+
import { useRendererContext } from '../../../renderer-context';
|
|
10
9
|
// we allow scaling down column widths by no more than 30%
|
|
11
10
|
// this intends to reduce unwanted scrolling in the Renderer in these scenarios:
|
|
12
11
|
// User A creates a table with column widths → User B views it on a smaller screen
|
|
@@ -4,14 +4,15 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
+
|
|
7
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 */
|
|
8
9
|
import { jsx, css } from '@emotion/react';
|
|
9
10
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
10
11
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
|
-
import { Table } from './table';
|
|
14
14
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
15
|
+
import { Table } from './table';
|
|
15
16
|
export const tableStickyPadding = 8;
|
|
16
17
|
const modeSpecficStyles = {
|
|
17
18
|
none: css({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Colgroup, colWidthSum } from './colgroup';
|
|
4
3
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
4
|
+
import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
5
5
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
|
-
import {
|
|
7
|
+
import { Colgroup, colWidthSum } from './colgroup';
|
|
8
8
|
import { isContentModeSupported } from './content-mode';
|
|
9
9
|
export const Table = /*#__PURE__*/React.memo(({
|
|
10
10
|
innerRef,
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
/* eslint-disable @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/enforce-style-prop, @repo/internal/react/no-class-components */
|
|
4
|
+
|
|
4
5
|
import React from 'react';
|
|
6
|
+
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
5
7
|
import { TableSharedCssClassName, tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
8
|
+
import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
9
|
+
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
6
10
|
import { overflowShadow } from '@atlaskit/editor-common/ui';
|
|
7
|
-
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
8
|
-
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
|
-
import { RendererCssClassName } from '../../consts';
|
|
11
11
|
import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMergedCell, compose } from '@atlaskit/editor-common/utils';
|
|
12
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
13
12
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
|
-
import {
|
|
15
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
+
import { RendererCssClassName } from '../../consts';
|
|
17
|
+
import { useRendererContext } from '../../renderer-context';
|
|
18
|
+
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
16
19
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
20
|
+
import { isCommentAppearance, isFullWidthOrFullPageAppearance, isFullWidthAppearance, isMaxWidthAppearance, isFullPageAppearance } from '../utils/appearance';
|
|
21
|
+
import { isContentModeSupported } from './table/content-mode';
|
|
17
22
|
import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
|
|
18
23
|
import { Table } from './table/table';
|
|
19
|
-
import {
|
|
24
|
+
import { TableCell, TableHeader } from './tableCell';
|
|
20
25
|
import { TableStickyScrollbar } from './TableStickyScrollbar';
|
|
21
|
-
import { useRendererContext } from '../../renderer-context';
|
|
22
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
|
-
import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
24
|
-
import { isContentModeSupported } from './table/content-mode';
|
|
25
26
|
const stickyContainerBaseStyles = {
|
|
26
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
27
28
|
height: "var(--ds-space-250, 20px)",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useIntl } from 'react-intl';
|
|
4
4
|
import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
|
|
5
|
-
import {
|
|
5
|
+
import { tableBackgroundColorNameByHex } from '@atlaskit/adf-schema/tableNodes';
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import { SortingIcon } from '@atlaskit/editor-common/table';
|
|
6
8
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
7
9
|
import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
|
|
8
|
-
import {
|
|
10
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
12
|
+
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
9
13
|
import { MODE, PLATFORM } from '../../analytics/events';
|
|
10
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
14
|
import { RendererCssClassName } from '../../consts';
|
|
12
|
-
import { useIntl } from 'react-intl';
|
|
13
15
|
import { tableCellMessages } from '../../messages';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
16
16
|
const IgnoreSorting = ['LABEL', 'INPUT'];
|
|
17
17
|
const nextStatusOrder = currentSortOrder => {
|
|
18
18
|
switch (currentSortOrder) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
|
-
import { compose } from '@atlaskit/editor-common/utils';
|
|
5
3
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { compose } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { RendererCssClassName } from '../../consts';
|
|
7
7
|
// Ignored via go/ees005
|
|
8
8
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
|
-
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import TaskItemWithProviders from './task-item-with-providers';
|
|
5
3
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
|
|
4
|
+
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
6
5
|
import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
6
|
+
import TaskItemWithProviders from './task-item-with-providers';
|
|
7
7
|
// Ignored via go/ees005
|
|
8
8
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
9
9
|
export default class TaskItem extends PureComponent {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useEffect, useLayoutEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
3
|
-
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
4
2
|
import { useProviderFactory, useProviderLayout } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
4
|
+
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
const getMediaClientConfigForRenderer = provider => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
4
4
|
import { ElementSelection } from './element-selection';
|
|
5
5
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
2
|
// Entry file in package.json
|
|
3
3
|
|
|
4
|
+
import memoizeOne from 'memoize-one';
|
|
4
5
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
5
6
|
import { nativeEmbedsFallbackTransform, transformContainerNodes, transformMediaLinkMarks, transformNestedTablesIncomingDocument } from '@atlaskit/adf-utils/transforms';
|
|
6
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -8,7 +9,6 @@ import { findAndTrackUnsupportedContentNodes, validateADFEntity } from '@atlaski
|
|
|
8
9
|
import { getValidDocument } from '@atlaskit/editor-common/validator';
|
|
9
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
|
-
import memoizeOne from 'memoize-one';
|
|
12
12
|
import { PLATFORM } from './analytics/events';
|
|
13
13
|
import { trackUnsupportedContentLevels } from './analytics/unsupported-content';
|
|
14
14
|
import { countNodes } from './ui/Renderer/count-nodes';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc -- internal step helpers */
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
5
|
|
|
5
6
|
// Ignored via go/ees005
|
|
6
7
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getText } from '../../utils';
|
|
2
1
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
|
+
import { getText } from '../../utils';
|
|
3
3
|
const status = (node, _schema) => {
|
|
4
4
|
return node.attrs.text ? node.attrs.style === 'mixedCase' && fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? `[ ${node.attrs.text} ]` : `[ ${node.attrs.text.toUpperCase()} ]` : getText(node);
|
|
5
5
|
};
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -2,22 +2,24 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
+
|
|
6
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
7
|
+
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
9
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
8
10
|
import { bind } from 'bind-event-listener';
|
|
11
|
+
import _uniqueId from 'lodash/uniqueId';
|
|
12
|
+
import { injectIntl } from 'react-intl';
|
|
9
13
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
10
14
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
15
|
import { ExpandIconWrapper, ExpandLayoutWrapperWithRef, expandMessages, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
12
16
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
|
|
13
17
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
14
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
18
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
-
import
|
|
17
|
-
import _uniqueId from 'lodash/uniqueId';
|
|
18
|
-
import { injectIntl } from 'react-intl';
|
|
19
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
19
20
|
import { MODE, PLATFORM } from '../analytics/events';
|
|
20
21
|
import { ActiveHeaderIdConsumer } from './active-header-id-provider';
|
|
22
|
+
import { ExpandBodyProvider, useExpandBody } from './utils/expand-body';
|
|
21
23
|
const titleStyles = css({
|
|
22
24
|
outline: 'none',
|
|
23
25
|
border: 'none',
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
5
|
+
|
|
7
6
|
import React from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
9
|
+
import { css, jsx } from '@emotion/react';
|
|
10
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
8
11
|
import memoizeOne from 'memoize-one';
|
|
9
12
|
import { getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
10
13
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -2,15 +2,15 @@ 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
4
|
import { filter } from '@atlaskit/adf-utils/traverse';
|
|
5
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
7
|
+
import { CardError } from '@atlaskit/media-card/cardError';
|
|
5
8
|
import CardAsync from '@atlaskit/media-card/cardLoader';
|
|
6
|
-
import CardSync from '@atlaskit/media-card/cardSync';
|
|
7
9
|
import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
8
|
-
import
|
|
10
|
+
import CardSync from '@atlaskit/media-card/cardSync';
|
|
9
11
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
10
|
-
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
11
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
import AnalyticsContext from '../analytics/analyticsContext';
|
|
13
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
14
14
|
export const mediaIdentifierMap = new Map();
|
|
15
15
|
export const getListOfIdentifiersFromDoc = doc => {
|
|
16
16
|
if (!doc) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
4
3
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
4
|
+
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
6
6
|
import { PLATFORM } from '../../analytics/events';
|
|
7
7
|
|
|
@@ -8,29 +8,29 @@
|
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
10
10
|
|
|
11
|
-
import { FullPagePadding } from './style';
|
|
12
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { RendererCssClassName } from '../../consts';
|
|
15
|
-
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';
|
|
16
|
-
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
|
|
17
|
-
import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
|
|
18
|
-
import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
19
11
|
import { bulletListSelector } from '@atlaskit/adf-schema/bullet-list';
|
|
20
12
|
import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
|
|
21
|
-
import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
|
|
22
13
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
14
|
+
import { EmojiSharedCssClassName, defaultEmojiHeight, defaultDenseEmojiHeight, defaultInlineEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4 } from '@atlaskit/editor-common/emoji';
|
|
15
|
+
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
|
|
16
|
+
import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
17
|
+
import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
25
18
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
|
|
26
|
-
import { LightWeightCodeBlockCssClassName } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
|
|
27
19
|
import { editorUGCTokensRefreshed } from '@atlaskit/editor-common/ugc-tokens';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
20
|
+
import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
|
|
21
|
+
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';
|
|
22
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
23
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
24
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
30
25
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
31
26
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
32
|
-
import {
|
|
27
|
+
import { RendererCssClassName } from '../../consts';
|
|
28
|
+
import { LightWeightCodeBlockCssClassName } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
|
|
29
|
+
import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
|
|
30
|
+
import { isStickyScrollbarEnabled, isTableResizingEnabled } from '../../react/nodes/table';
|
|
33
31
|
import { COLLAPSED_CONTENT_OWNERS_ATTRIBUTE } from '../collapsible-headings-dom';
|
|
32
|
+
import { getBaseFontSize } from './get-base-font-size';
|
|
33
|
+
import { FullPagePadding } from './style';
|
|
34
34
|
const wrappedMediaBreakoutPoint = 410;
|
|
35
35
|
const TELEPOINTER_ID = 'ai-streaming-telepointer';
|
|
36
36
|
const tableShadowWidth = 32;
|
|
@@ -661,17 +661,6 @@ const headingWrapperInlineFlowStyles = css({
|
|
|
661
661
|
marginTop: '1.59091em'
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
|
-
const headingAnchorWrapperTargetSizeStyles = css({
|
|
665
|
-
'& .renderer-heading-wrapper > h1, & .renderer-heading-wrapper > h2, & .renderer-heading-wrapper > h3, & .renderer-heading-wrapper > h4, & .renderer-heading-wrapper > h5, & .renderer-heading-wrapper > h6': {
|
|
666
|
-
verticalAlign: 'middle'
|
|
667
|
-
},
|
|
668
|
-
[`& .renderer-heading-wrapper > .${HeadingAnchorWrapperClassName}`]: {
|
|
669
|
-
display: 'inline-flex',
|
|
670
|
-
alignItems: 'center',
|
|
671
|
-
justifyContent: 'center',
|
|
672
|
-
verticalAlign: 'middle'
|
|
673
|
-
}
|
|
674
|
-
});
|
|
675
664
|
const headingWithAlignmentStylesDuplicateAnchor = css({
|
|
676
665
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
677
666
|
'.fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)': {
|
|
@@ -2931,7 +2920,7 @@ export const RendererStyleContainer = props => {
|
|
|
2931
2920
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- CSS custom properties for UGC font tokens
|
|
2932
2921
|
'--ak-renderer-editor-font-small-text': editorUGCTokensRefreshed['editor.font.body.small']
|
|
2933
2922
|
},
|
|
2934
|
-
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, headingAnchorButtonFocusVisibleStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? hideHeadingCopyLinkWrapperStyles : hideHeadingCopyLinkWrapperStylesDuplicateAnchor, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles,
|
|
2923
|
+
css: [expValEquals('confluence_ttvc_inline_extensions', 'isEnabled', true) ? baseFontStyle : originalBaseFontLineHeight, baseStyles, fontSizeStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingAnchorStyles : headingAnchorStylesDuplicateAnchor, headingAnchorButtonFocusVisibleStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? hideHeadingCopyLinkWrapperStyles : hideHeadingCopyLinkWrapperStylesDuplicateAnchor, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererFullWidthStyles : oldRendererFullWidthStyles), (appearance === 'full-width' || appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true))) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) && (expValEquals('platform_editor_remove_important_in_render_ext', 'isEnabled', true) ? rendererMaxWidthStyles : oldRendererMaxWidthStyles), rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingWrapperInlineFlowStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? headingWithAlignmentStyles : headingWithAlignmentStylesDuplicateAnchor, ruleSharedStyles, contentMode === 'compact' && extensionStyle, contentMode === 'compact' ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, listItemHiddenMarkerStyles, indentationSharedStyles, indentationSharedStylesWithMarginFix, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) ? blockMarksSharedStyles : blockMarksSharedStylesDuplicateAnchor, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && highlightLinksUnsetStyles,
|
|
2935
2924
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2936
2925
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, expValEquals('platform_editor_copy_link_a11y_inconsistency_fix', 'isEnabled', true) && headingPanelStyles, smartCardStyles, smartCardStylesAvatarFix, headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && (expValEquals('confluence_fe_renderer_inline_node_mark_color_fix', 'isEnabled', true) ? rendererAnnotationStyles : rendererAnnotationStylesOld),
|
|
2937
2926
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc -- SSR inline script helpers */
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { breakoutConsts } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { FullPagePadding } from './style';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
+
import { FullPagePadding } from './style';
|
|
6
7
|
/**
|
|
7
8
|
* Inline Script that updates breakout node width on client side,
|
|
8
9
|
* before main JavaScript bundle is ready.
|