@atlaskit/renderer 149.0.4 → 149.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -1
- package/dist/cjs/actions/get-renderer-range-inline-node-names.js +3 -3
- package/dist/cjs/actions/index.js +10 -10
- package/dist/cjs/analytics/unsupported-content.js +9 -8
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/cards.js +1 -1
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/media.js +1 -1
- package/dist/cjs/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
- package/dist/cjs/entry-points/react.js +2 -2
- package/dist/cjs/entry-points/renderer.js +7 -7
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/react/index.js +9 -8
- package/dist/cjs/react/marks/backgroundColor.js +2 -2
- package/dist/cjs/react/marks/breakout.js +5 -5
- package/dist/cjs/react/marks/code.js +2 -2
- package/dist/cjs/react/marks/link-compiled.js +2 -2
- package/dist/cjs/react/marks/link-emotion.js +2 -2
- package/dist/cjs/react/marks/link.js +4 -4
- package/dist/cjs/react/marks/textColor.js +3 -3
- package/dist/cjs/react/nodes/blockCard.js +14 -11
- package/dist/cjs/react/nodes/bodiedExtension.js +4 -4
- package/dist/cjs/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/cjs/react/nodes/caption.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +3 -3
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -3
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockDownloadButton.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -2
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +22 -21
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +2 -2
- package/dist/cjs/react/nodes/date.js +5 -5
- package/dist/cjs/react/nodes/embedCard.js +19 -16
- package/dist/cjs/react/nodes/emoji.js +6 -5
- package/dist/cjs/react/nodes/extension.js +7 -7
- package/dist/cjs/react/nodes/heading.js +8 -8
- package/dist/cjs/react/nodes/index.js +7 -5
- package/dist/cjs/react/nodes/inlineCard.js +15 -13
- package/dist/cjs/react/nodes/layoutColumn-compiled.js +2 -2
- package/dist/cjs/react/nodes/layoutColumn-emotion.js +2 -2
- package/dist/cjs/react/nodes/media/index.js +24 -21
- package/dist/cjs/react/nodes/mediaGroup.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +8 -8
- package/dist/cjs/react/nodes/mediaSingle/index.js +13 -12
- package/dist/cjs/react/nodes/mention.js +4 -3
- package/dist/cjs/react/nodes/multiBodiedExtension/actions.js +4 -4
- package/dist/cjs/react/nodes/multiBodiedExtension/context.js +7 -7
- package/dist/cjs/react/nodes/nodes.js +4 -3
- package/dist/cjs/react/nodes/orderedList.js +6 -5
- package/dist/cjs/react/nodes/panel-compiled.js +2 -2
- package/dist/cjs/react/nodes/panel-emotion.js +2 -2
- package/dist/cjs/react/nodes/panel.js +11 -7
- package/dist/cjs/react/nodes/table/colgroup.js +24 -24
- package/dist/cjs/react/nodes/table/sticky.js +2 -2
- package/dist/cjs/react/nodes/table/table.js +6 -6
- package/dist/cjs/react/nodes/table.js +19 -16
- package/dist/cjs/react/nodes/tableCell.js +11 -11
- package/dist/cjs/react/nodes/taskItem.js +4 -3
- package/dist/cjs/react/utils/EditorMediaClientProvider.js +3 -3
- package/dist/cjs/react/utils/use-select-all-trap.js +7 -7
- package/dist/cjs/render-document.js +32 -28
- package/dist/cjs/text/nodes/date.js +3 -3
- package/dist/cjs/text/nodes/orderedList.js +2 -2
- package/dist/cjs/ui/Expand.js +17 -16
- package/dist/cjs/ui/ExtensionRenderer.js +6 -6
- package/dist/cjs/ui/MediaCard.js +9 -9
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +7 -7
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +271 -262
- package/dist/cjs/ui/Renderer/analytics-utils.js +13 -11
- package/dist/cjs/ui/Renderer/breakout-ssr.js +3 -3
- package/dist/cjs/ui/Renderer/count-nodes.js +2 -2
- package/dist/cjs/ui/Renderer/get-base-font-size.js +3 -3
- package/dist/cjs/ui/Renderer/index.js +30 -23
- package/dist/cjs/ui/RendererActionsContext/index.js +2 -2
- package/dist/cjs/ui/annotations/contexts/AnnotationManagerContext.js +15 -15
- package/dist/cjs/ui/annotations/element/index.js +2 -2
- package/dist/cjs/ui/annotations/hooks/use-events.js +20 -20
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +2 -2
- package/dist/cjs/ui/annotations/hover/mounter.js +21 -21
- package/dist/cjs/ui/annotations/selection/mounter.js +21 -21
- package/dist/cjs/ui/hooks/useScrollToBlock.js +6 -4
- package/dist/es2019/actions/get-renderer-range-inline-node-names.js +1 -1
- package/dist/es2019/actions/index.js +2 -2
- package/dist/es2019/analytics/unsupported-content.js +3 -2
- package/dist/es2019/custom-nodes.js +1 -1
- package/dist/es2019/entry-points/custom-nodes-loosely-lazy.js +1 -1
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/cards.js +1 -1
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/media.js +1 -1
- package/dist/es2019/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
- package/dist/es2019/entry-points/loosely-lazy.js +1 -1
- package/dist/es2019/entry-points/nodes.js +2 -2
- package/dist/es2019/entry-points/react.js +2 -2
- package/dist/es2019/entry-points/renderer.js +7 -7
- package/dist/es2019/entry-points/text-serializer-text.js +1 -1
- package/dist/es2019/entry-points/text.js +1 -1
- package/dist/es2019/index.js +7 -7
- package/dist/es2019/react/index.js +3 -2
- package/dist/es2019/react/marks/backgroundColor.js +1 -1
- package/dist/es2019/react/marks/breakout.js +1 -1
- package/dist/es2019/react/marks/code.js +1 -1
- package/dist/es2019/react/marks/link-compiled.js +1 -1
- package/dist/es2019/react/marks/link-emotion.js +1 -1
- package/dist/es2019/react/marks/link.js +1 -1
- package/dist/es2019/react/marks/textColor.js +1 -1
- package/dist/es2019/react/nodes/blockCard.js +6 -3
- package/dist/es2019/react/nodes/bodiedExtension.js +1 -1
- package/dist/es2019/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/es2019/react/nodes/caption.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockDownloadButton.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -2
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/es2019/react/nodes/date.js +2 -2
- package/dist/es2019/react/nodes/embedCard.js +6 -3
- package/dist/es2019/react/nodes/emoji.js +3 -2
- package/dist/es2019/react/nodes/extension.js +2 -2
- package/dist/es2019/react/nodes/heading.js +1 -1
- package/dist/es2019/react/nodes/index.js +5 -3
- package/dist/es2019/react/nodes/inlineCard.js +7 -5
- package/dist/es2019/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +9 -6
- package/dist/es2019/react/nodes/mediaGroup.js +1 -1
- package/dist/es2019/react/nodes/mediaInline.js +3 -3
- package/dist/es2019/react/nodes/mediaSingle/index.js +4 -3
- package/dist/es2019/react/nodes/mention.js +1 -1
- package/dist/es2019/react/nodes/multiBodiedExtension/actions.js +1 -1
- package/dist/es2019/react/nodes/multiBodiedExtension/context.js +3 -3
- package/dist/es2019/react/nodes/nodes.js +2 -1
- package/dist/es2019/react/nodes/orderedList.js +3 -2
- package/dist/es2019/react/nodes/panel-compiled.js +1 -1
- package/dist/es2019/react/nodes/panel-emotion.js +1 -1
- package/dist/es2019/react/nodes/panel.js +6 -2
- package/dist/es2019/react/nodes/table/colgroup.js +3 -3
- package/dist/es2019/react/nodes/table/sticky.js +1 -1
- package/dist/es2019/react/nodes/table/table.js +2 -2
- package/dist/es2019/react/nodes/table.js +8 -5
- package/dist/es2019/react/nodes/tableCell.js +3 -3
- package/dist/es2019/react/nodes/taskItem.js +2 -1
- package/dist/es2019/react/utils/EditorMediaClientProvider.js +1 -1
- package/dist/es2019/react/utils/use-select-all-trap.js +1 -1
- package/dist/es2019/render-document.js +7 -3
- package/dist/es2019/text/nodes/date.js +1 -1
- package/dist/es2019/text/nodes/orderedList.js +1 -1
- package/dist/es2019/ui/Expand.js +4 -3
- package/dist/es2019/ui/ExtensionRenderer.js +3 -3
- package/dist/es2019/ui/MediaCard.js +3 -3
- package/dist/es2019/ui/Renderer/ErrorBoundary.js +2 -2
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +18 -9
- package/dist/es2019/ui/Renderer/analytics-utils.js +3 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/es2019/ui/Renderer/count-nodes.js +1 -1
- package/dist/es2019/ui/Renderer/get-base-font-size.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +12 -5
- package/dist/es2019/ui/RendererActionsContext/index.js +1 -1
- package/dist/es2019/ui/annotations/contexts/AnnotationManagerContext.js +1 -1
- package/dist/es2019/ui/annotations/element/index.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-events.js +2 -2
- package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/es2019/ui/annotations/hover/mounter.js +1 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +1 -1
- package/dist/es2019/ui/hooks/useScrollToBlock.js +3 -1
- package/dist/esm/actions/get-renderer-range-inline-node-names.js +1 -1
- package/dist/esm/actions/index.js +2 -2
- package/dist/esm/analytics/unsupported-content.js +3 -2
- package/dist/esm/custom-nodes.js +1 -1
- package/dist/esm/entry-points/custom-nodes-loosely-lazy.js +1 -1
- package/dist/esm/entry-points/experimental-sync-custom-nodes/cards.js +1 -1
- package/dist/esm/entry-points/experimental-sync-custom-nodes/media.js +1 -1
- package/dist/esm/entry-points/experimental-sync-custom-nodes/small-nodes.js +1 -1
- package/dist/esm/entry-points/loosely-lazy.js +1 -1
- package/dist/esm/entry-points/nodes.js +2 -2
- package/dist/esm/entry-points/react.js +2 -2
- package/dist/esm/entry-points/renderer.js +7 -7
- package/dist/esm/entry-points/text-serializer-text.js +1 -1
- package/dist/esm/entry-points/text.js +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/react/index.js +3 -2
- package/dist/esm/react/marks/backgroundColor.js +1 -1
- package/dist/esm/react/marks/breakout.js +1 -1
- package/dist/esm/react/marks/code.js +1 -1
- package/dist/esm/react/marks/link-compiled.js +1 -1
- package/dist/esm/react/marks/link-emotion.js +1 -1
- package/dist/esm/react/marks/link.js +1 -1
- package/dist/esm/react/marks/textColor.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +6 -3
- package/dist/esm/react/nodes/bodiedExtension.js +1 -1
- package/dist/esm/react/nodes/bodiedSyncBlock.js +1 -1
- package/dist/esm/react/nodes/caption.js +1 -1
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockDownloadButton.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -2
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/esm/react/nodes/date.js +2 -2
- package/dist/esm/react/nodes/embedCard.js +6 -3
- package/dist/esm/react/nodes/emoji.js +3 -2
- package/dist/esm/react/nodes/extension.js +2 -2
- package/dist/esm/react/nodes/heading.js +1 -1
- package/dist/esm/react/nodes/index.js +5 -3
- package/dist/esm/react/nodes/inlineCard.js +7 -5
- package/dist/esm/react/nodes/layoutColumn-compiled.js +1 -1
- package/dist/esm/react/nodes/layoutColumn-emotion.js +1 -1
- package/dist/esm/react/nodes/media/index.js +9 -6
- package/dist/esm/react/nodes/mediaGroup.js +1 -1
- package/dist/esm/react/nodes/mediaInline.js +3 -3
- package/dist/esm/react/nodes/mediaSingle/index.js +4 -3
- package/dist/esm/react/nodes/mention.js +1 -1
- package/dist/esm/react/nodes/multiBodiedExtension/actions.js +1 -1
- package/dist/esm/react/nodes/multiBodiedExtension/context.js +3 -3
- package/dist/esm/react/nodes/nodes.js +2 -1
- package/dist/esm/react/nodes/orderedList.js +3 -2
- package/dist/esm/react/nodes/panel-compiled.js +1 -1
- package/dist/esm/react/nodes/panel-emotion.js +1 -1
- package/dist/esm/react/nodes/panel.js +6 -2
- package/dist/esm/react/nodes/table/colgroup.js +3 -3
- package/dist/esm/react/nodes/table/sticky.js +1 -1
- package/dist/esm/react/nodes/table/table.js +2 -2
- package/dist/esm/react/nodes/table.js +8 -5
- package/dist/esm/react/nodes/tableCell.js +3 -3
- package/dist/esm/react/nodes/taskItem.js +2 -1
- package/dist/esm/react/utils/EditorMediaClientProvider.js +1 -1
- package/dist/esm/react/utils/use-select-all-trap.js +1 -1
- package/dist/esm/render-document.js +7 -3
- package/dist/esm/text/nodes/date.js +1 -1
- package/dist/esm/text/nodes/orderedList.js +1 -1
- package/dist/esm/ui/Expand.js +4 -3
- package/dist/esm/ui/ExtensionRenderer.js +3 -3
- package/dist/esm/ui/MediaCard.js +3 -3
- package/dist/esm/ui/Renderer/ErrorBoundary.js +2 -2
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +18 -9
- package/dist/esm/ui/Renderer/analytics-utils.js +3 -1
- package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/esm/ui/Renderer/count-nodes.js +1 -1
- package/dist/esm/ui/Renderer/get-base-font-size.js +1 -1
- package/dist/esm/ui/Renderer/index.js +12 -5
- package/dist/esm/ui/RendererActionsContext/index.js +1 -1
- package/dist/esm/ui/annotations/contexts/AnnotationManagerContext.js +1 -1
- package/dist/esm/ui/annotations/element/index.js +1 -1
- package/dist/esm/ui/annotations/hooks/use-events.js +2 -2
- package/dist/esm/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/esm/ui/annotations/hover/mounter.js +1 -1
- package/dist/esm/ui/annotations/selection/mounter.js +1 -1
- package/dist/esm/ui/hooks/useScrollToBlock.js +3 -1
- package/dist/types/actions/index.d.ts +2 -1
- package/dist/types/actions/selection.d.ts +1 -1
- package/dist/types/analytics/events.d.ts +9 -2
- package/dist/types/analytics/unsupported-content.d.ts +1 -1
- package/dist/types/custom-nodes.d.ts +1 -1
- package/dist/types/entry-points/custom-nodes-loosely-lazy.d.ts +1 -1
- package/dist/types/entry-points/experimental-sync-custom-nodes/cards.d.ts +1 -1
- package/dist/types/entry-points/experimental-sync-custom-nodes/media.d.ts +1 -1
- package/dist/types/entry-points/experimental-sync-custom-nodes/small-nodes.d.ts +1 -1
- package/dist/types/entry-points/loosely-lazy.d.ts +1 -1
- package/dist/types/entry-points/nodes.d.ts +2 -2
- package/dist/types/entry-points/react.d.ts +2 -2
- package/dist/types/entry-points/renderer.d.ts +7 -7
- package/dist/types/entry-points/serializer.d.ts +1 -1
- package/dist/types/entry-points/text-serializer-text.d.ts +1 -1
- package/dist/types/entry-points/text.d.ts +1 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/react/index.d.ts +5 -4
- package/dist/types/react/marks/link-compiled.d.ts +1 -1
- package/dist/types/react/marks/link-emotion.d.ts +1 -1
- package/dist/types/react/nodes/blockCard.d.ts +1 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +3 -2
- package/dist/types/react/nodes/embedCard.d.ts +1 -1
- package/dist/types/react/nodes/emoji.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +4 -3
- package/dist/types/react/nodes/extensionFrame.d.ts +2 -2
- package/dist/types/react/nodes/index.d.ts +5 -5
- package/dist/types/react/nodes/inlineCard.d.ts +2 -2
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
- package/dist/types/react/nodes/media/index.d.ts +3 -3
- package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
- package/dist/types/react/nodes/mediaInline.d.ts +4 -4
- package/dist/types/react/nodes/mediaSingle/index.d.ts +4 -3
- package/dist/types/react/nodes/mention.d.ts +3 -3
- package/dist/types/react/nodes/multiBodiedExtension/actions.d.ts +1 -1
- package/dist/types/react/nodes/multiBodiedExtension/context.d.ts +1 -1
- package/dist/types/react/nodes/multiBodiedExtension.d.ts +2 -2
- package/dist/types/react/nodes/panel.d.ts +1 -1
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +2 -2
- package/dist/types/react/nodes/task-item-with-providers.d.ts +1 -1
- package/dist/types/react/nodes/taskItem.d.ts +1 -1
- package/dist/types/react/types.d.ts +3 -3
- package/dist/types/react/utils/getCardClickHandler.d.ts +2 -2
- package/dist/types/react/utils/markBlockAsInline.d.ts +2 -1
- package/dist/types/render-document.d.ts +2 -2
- package/dist/types/renderer-context.d.ts +1 -1
- package/dist/types/types/mediaOptions.d.ts +3 -2
- package/dist/types/types/smartLinksOptions.d.ts +1 -1
- package/dist/types/ui/ExtensionRenderer.d.ts +3 -2
- package/dist/types/ui/MediaCard.d.ts +8 -5
- package/dist/types/ui/SmartCardStorage.d.ts +1 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -1
- package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -1
- package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +8 -7
- package/dist/types/utils.d.ts +3 -3
- package/package.json +2 -2
|
@@ -11,16 +11,23 @@ import { v4 as uuid } from 'uuid';
|
|
|
11
11
|
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
|
|
12
12
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
13
13
|
import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext';
|
|
14
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
14
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
15
|
+
import { BaseTheme } from '@atlaskit/editor-common/BaseTheme';
|
|
15
16
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
17
|
+
import { IntlErrorBoundary } from '@atlaskit/editor-common/intl-error-boundary';
|
|
16
18
|
import { isPanelNestingTableSupported } from '@atlaskit/editor-common/nesting';
|
|
17
19
|
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
18
20
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
19
21
|
import { getDistortedDurationMonitor } from '@atlaskit/editor-common/performance/measure-render';
|
|
20
22
|
import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import
|
|
23
|
+
import { ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory/context';
|
|
24
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
25
|
+
import UnsupportedBlock from '@atlaskit/editor-common/UnsupportedBlock';
|
|
26
|
+
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
27
|
+
import { getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
|
|
28
|
+
import { shouldForceTracking } from '@atlaskit/editor-common/utils/should-force-tracking';
|
|
29
|
+
import { WidthProvider } from '@atlaskit/editor-common/WidthProvider';
|
|
30
|
+
import { WithCreateAnalyticsEvent } from '@atlaskit/editor-common/WithCreateAnalyticsEvent';
|
|
24
31
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
25
32
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
26
33
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
@@ -57,7 +64,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
64
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
65
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
59
66
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "149.0.
|
|
67
|
+
const packageVersion = "149.0.4";
|
|
61
68
|
const setAsQueryContainerStyles = css({
|
|
62
69
|
containerName: 'ak-renderer-wrapper',
|
|
63
70
|
containerType: 'inline-size'
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
5
5
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
6
|
-
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import RendererActions from '../../actions/index';
|
|
9
9
|
export const RendererContext = /*#__PURE__*/React.createContext(new RendererActions());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { createContext, useContext, useEffect, useMemo, useReducer, useRef } from 'react';
|
|
2
2
|
import { AnnotationMarkStates, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
3
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types/emitter';
|
|
4
4
|
import { RendererContext } from '../../../ui/RendererActionsContext';
|
|
5
5
|
|
|
6
6
|
// oxlint-disable-next-line eslint/no-redeclare
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo, useCallback, useContext } from 'react';
|
|
2
2
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
3
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types/emitter';
|
|
4
4
|
import { InlineCommentsStateContext } from '../context';
|
|
5
5
|
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
6
6
|
import { useHasFocusEvent } from '../hooks/use-events';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useLayoutEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
3
3
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
4
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types/emitter';
|
|
6
6
|
import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
|
|
7
7
|
export const useAnnotationStateByTypeEvent = ({
|
|
8
8
|
type,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext, useEffect } from 'react';
|
|
2
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types/emitter';
|
|
3
3
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
4
4
|
import { ProvidersContext } from '../context';
|
|
5
5
|
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useContext } from 'react';
|
|
2
2
|
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
3
3
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
4
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
7
7
|
import { useAnnotationRangeDispatch, useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
@@ -4,7 +4,7 @@ import React, { useCallback, useContext, useMemo, useEffect } from 'react';
|
|
|
4
4
|
import { v4 as uuid } from 'uuid';
|
|
5
5
|
import { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
6
6
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
7
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { getRendererRangeInlineNodeNames } from '../../../actions/get-renderer-range-inline-node-names';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
3
|
-
import {
|
|
3
|
+
import { expandElement, isExpandCollapsed, getLocalIdSelector } from '@atlaskit/editor-common/block-menu';
|
|
4
|
+
import { DEFAULT_BLOCK_LINK_HASH_PREFIX } from '@atlaskit/editor-common/block-menu/block-link';
|
|
5
|
+
import { expandAllParentsThenScroll, findNodeWithExpandParents } from '@atlaskit/editor-common/block-menu/scroll-to-block-utils';
|
|
4
6
|
import { useStableScroll } from './useStableScroll';
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getRangeInlineNodeNames, getRangeAncestorNodeNames } from '@atlaskit/editor-common/utils';
|
|
1
|
+
import { getRangeInlineNodeNames, getRangeAncestorNodeNames } from '@atlaskit/editor-common/utils/annotation';
|
|
2
2
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
export function getRendererRangeInlineNodeNames(_ref) {
|
|
4
4
|
var actions = _ref.actions,
|
|
@@ -3,8 +3,8 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
6
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils';
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
7
|
+
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils/annotation';
|
|
8
8
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
9
9
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { AddNodeMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { getUnsupportedContentLevelData } from '@atlaskit/editor-common/utils/get-unsupported-content-level-data';
|
|
3
4
|
import { PLATFORM } from './events';
|
|
4
5
|
|
|
5
6
|
// Ignored via go/ees005
|
package/dist/esm/custom-nodes.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
7
|
-
* This entry point will be removed in
|
|
7
|
+
* This entry point will be removed in December 2026.
|
|
8
8
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
6
|
-
* This entry point will be removed in
|
|
6
|
+
* This entry point will be removed in December 2026.
|
|
7
7
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -21,7 +21,7 @@ var nodeToReact = {
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
24
|
-
* This entry point will be removed in
|
|
24
|
+
* This entry point will be removed in December 2026.
|
|
25
25
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
26
26
|
*/
|
|
27
27
|
|
|
@@ -23,7 +23,7 @@ var nodeToReact = {
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
26
|
-
* This entry point will be removed in
|
|
26
|
+
* This entry point will be removed in December 2026.
|
|
27
27
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
28
28
|
*/
|
|
29
29
|
|
|
@@ -39,7 +39,7 @@ var nodeToReact = {
|
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
42
|
-
* This entry point will be removed in
|
|
42
|
+
* This entry point will be removed in December 2026.
|
|
43
43
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
44
44
|
*/
|
|
45
45
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
6
|
-
* This entry point will be removed in
|
|
6
|
+
* This entry point will be removed in December 2026.
|
|
7
7
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
6
|
-
* This entry point will be removed in
|
|
6
|
+
* This entry point will be removed in December 2026.
|
|
7
7
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -11,6 +11,6 @@ export { BlockCard, Blockquote, BodiedExtension, BulletList, Caption, CodeBlock,
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated This entry point is deprecated. Use `nodes` from `@atlaskit/renderer/nodes/default` for default renderer nodes.
|
|
14
|
-
* This entry point will be removed in
|
|
14
|
+
* This entry point will be removed in December 2026.
|
|
15
15
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
16
16
|
*/
|
|
@@ -16,12 +16,12 @@ import { nodeToReact } from '../react/nodes';
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @deprecated Use `ReactSerializerInit` from `@atlaskit/renderer/serializer/default` instead.
|
|
19
|
-
* This export will be removed in
|
|
19
|
+
* This export will be removed in December 2026.
|
|
20
20
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
21
21
|
*/
|
|
22
22
|
/**
|
|
23
23
|
* @deprecated Use `ReactSerializer` from `@atlaskit/renderer/serializer/default` instead.
|
|
24
|
-
* This export will be removed in
|
|
24
|
+
* This export will be removed in December 2026.
|
|
25
25
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
26
26
|
*/
|
|
27
27
|
var ReactSerializer = /*#__PURE__*/function (_ReactSerializerLegac) {
|
|
@@ -5,14 +5,14 @@ import { withLazyNodes } from '../react/utils/withLazyNodes';
|
|
|
5
5
|
import RendererWithAnnotationSelectionLegacy, { Renderer as RendererLegacy, RendererFunctionalComponent as RendererFunctionalComponentLegacy, RendererWithAnalytics as RendererWithAnalyticsLegacy } from '../ui/Renderer/index';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @deprecated This export will be removed in
|
|
8
|
+
* @deprecated This export will be removed in December 2026.
|
|
9
9
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
10
10
|
* Ping #cc-editor-lego if you are using this export.
|
|
11
11
|
*/
|
|
12
12
|
export { DEGRADED_SEVERITY_THRESHOLD } from '../ui/Renderer/index';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @deprecated This export will be removed in
|
|
15
|
+
* @deprecated This export will be removed in December 2026.
|
|
16
16
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
17
17
|
* Ping #cc-editor-lego if you are using this export.
|
|
18
18
|
*/
|
|
@@ -20,27 +20,27 @@ export { NORMAL_SEVERITY_THRESHOLD } from '../ui/Renderer/index';
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
23
|
-
* This export will be removed in
|
|
23
|
+
* This export will be removed in December 2026.
|
|
24
24
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
25
25
|
*/
|
|
26
26
|
export var Renderer = withLazyNodes(RendererLegacy);
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
30
|
-
* This export will be removed in
|
|
30
|
+
* This export will be removed in December 2026.
|
|
31
31
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
32
32
|
*/
|
|
33
33
|
export var RendererFunctionalComponent = withLazyNodes(RendererFunctionalComponentLegacy);
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
37
|
-
* This export will be removed in
|
|
37
|
+
* This export will be removed in December 2026.
|
|
38
38
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
39
39
|
*/
|
|
40
40
|
export var RendererWithAnalytics = withLazyNodes(RendererWithAnalyticsLegacy);
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* @deprecated This export will be removed in
|
|
43
|
+
* @deprecated This export will be removed in December 2026.
|
|
44
44
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
45
45
|
* Ping #cc-editor-lego if you are using this export.
|
|
46
46
|
*/
|
|
@@ -49,7 +49,7 @@ var RendererWithAnnotationSelection = withLazyNodes(RendererWithAnnotationSelect
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
52
|
-
* This export will be removed in
|
|
52
|
+
* This export will be removed in December 2026.
|
|
53
53
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
54
54
|
*/
|
|
55
55
|
export default RendererWithAnnotationSelection;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @private
|
|
5
5
|
* @deprecated Use `TextSerializer` from `@atlaskit/renderer/serializer/text` instead.
|
|
6
|
-
* This export will be removed in
|
|
6
|
+
* This export will be removed in December 2026.
|
|
7
7
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
8
8
|
*/
|
|
9
9
|
export { default as TextSerializer } from '../text/index';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @private
|
|
5
5
|
* @deprecated Use `TextSerializer` from `@atlaskit/renderer/serializer/text` instead.
|
|
6
|
-
* This export will be removed in
|
|
6
|
+
* This export will be removed in December 2026.
|
|
7
7
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
8
8
|
*/
|
|
9
9
|
export { default } from '../text/index';
|
package/dist/esm/index.js
CHANGED
|
@@ -18,13 +18,13 @@ import RendererWithAnnotationSelectionLegacy, { RendererWithAnalytics as Rendere
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @deprecated Use `ReactSerializerInit` from `@atlaskit/renderer/serializer/default` instead.
|
|
21
|
-
* This export will be removed in
|
|
21
|
+
* This export will be removed in December 2026.
|
|
22
22
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @deprecated Use `ReactSerializer` from `@atlaskit/renderer/serializer/default` instead.
|
|
27
|
-
* This export will be removed in
|
|
27
|
+
* This export will be removed in December 2026.
|
|
28
28
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
29
29
|
*/
|
|
30
30
|
export var ReactSerializer = /*#__PURE__*/function (_ReactSerializerLegac) {
|
|
@@ -41,28 +41,28 @@ export var ReactSerializer = /*#__PURE__*/function (_ReactSerializerLegac) {
|
|
|
41
41
|
/**
|
|
42
42
|
* @private
|
|
43
43
|
* @deprecated Use `TextSerializer` from `@atlaskit/renderer/serializer/text` instead.
|
|
44
|
-
* This export will be removed in
|
|
44
|
+
* This export will be removed in December 2026.
|
|
45
45
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
46
46
|
*/
|
|
47
47
|
export { default as TextSerializer } from './text';
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
51
|
-
* This export will be removed in
|
|
51
|
+
* This export will be removed in December 2026.
|
|
52
52
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
53
53
|
*/
|
|
54
54
|
export var ReactRenderer = withLazyNodes(RendererWithAnnotationSelectionLegacy);
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* @deprecated Use `Renderer` from `@atlaskit/renderer/default` instead.
|
|
58
|
-
* This export will be removed in
|
|
58
|
+
* This export will be removed in December 2026.
|
|
59
59
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
60
60
|
*/
|
|
61
61
|
export var RendererWithAnalytics = withLazyNodes(RendererWithAnalyticsLegacy);
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* @deprecated Use `nodes` from `@atlaskit/renderer/nodes/default` instead.
|
|
65
|
-
* This export will be removed in
|
|
65
|
+
* This export will be removed in December 2026.
|
|
66
66
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
67
67
|
*/
|
|
68
68
|
export { nodeToReact as defaultNodeComponents } from './react/nodes';
|
|
@@ -72,7 +72,7 @@ export { ValidationContextProvider } from './ui/Renderer/ValidationContext';
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* @deprecated Use `Serializer` from `@atlaskit/renderer/serializer/default` instead.
|
|
75
|
-
* This export will be removed in
|
|
75
|
+
* This export will be removed in December 2026.
|
|
76
76
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
77
77
|
*/
|
|
78
78
|
|
package/dist/esm/react/index.js
CHANGED
|
@@ -8,8 +8,9 @@ var _excluded = ["key"];
|
|
|
8
8
|
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; }
|
|
9
9
|
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; }
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { getColumnWidths } from '@atlaskit/editor-common/utils';
|
|
12
|
-
import { getMarksByOrder
|
|
11
|
+
import { getColumnWidths } from '@atlaskit/editor-common/utils/table';
|
|
12
|
+
import { getMarksByOrder } from '@atlaskit/editor-common/utils/validator';
|
|
13
|
+
import { isSameMark } from '@atlaskit/editor-common/validator';
|
|
13
14
|
import { MarkType } from '@atlaskit/editor-prosemirror/model';
|
|
14
15
|
import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
15
16
|
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
|
|
5
|
-
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
5
|
+
import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette/text-background-color';
|
|
6
6
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
7
7
|
export default function BackgroundColor(props) {
|
|
8
8
|
var _useThemeObserver = useThemeObserver(),
|
|
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
5
5
|
*/
|
|
6
6
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
7
7
|
import { jsx, css } from '@emotion/react';
|
|
8
|
-
import { akEditorFullWidthLayoutWidth, akEditorMaxLayoutWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
8
|
+
import { akEditorFullWidthLayoutWidth, akEditorMaxLayoutWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles/constants';
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
10
10
|
import { RendererCssClassName } from '../../consts';
|
|
11
11
|
var flexWrapperStyles = css({
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
4
|
import AkCode from '@atlaskit/code/code';
|
|
5
|
-
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
5
|
+
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages/codeBidiWarning';
|
|
6
6
|
export var isCodeMark = function isCodeMark(mark) {
|
|
7
7
|
return mark && mark.type && mark.type.name === 'code';
|
|
8
8
|
};
|
|
@@ -10,7 +10,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
10
10
|
* Cleanup: delete this file once the experiment has shipped.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import LinkUrl from '@atlaskit/smart-card/link
|
|
13
|
+
import { LinkUrl } from '@atlaskit/smart-card/link';
|
|
14
14
|
var anchorStyles = null;
|
|
15
15
|
export var LinkUrlCompiled = function LinkUrlCompiled(props) {
|
|
16
16
|
return /*#__PURE__*/React.createElement(LinkUrl, _extends({}, props, {
|
|
@@ -12,7 +12,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
12
12
|
|
|
13
13
|
// 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
|
|
14
14
|
import { css, jsx } from '@emotion/react';
|
|
15
|
-
import LinkUrl from '@atlaskit/smart-card/link
|
|
15
|
+
import { LinkUrl } from '@atlaskit/smart-card/link';
|
|
16
16
|
var anchorStyles = css({
|
|
17
17
|
color: "var(--ds-link, #1868DB)",
|
|
18
18
|
'&:hover': {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { Fragment } from 'react';
|
|
3
3
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
4
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
7
7
|
import { PLATFORM, MODE } from '../../analytics/events';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
|
|
5
|
-
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
|
|
5
|
+
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
|
|
6
6
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
7
7
|
export default function TextColor(props) {
|
|
8
8
|
var _useThemeObserver = useThemeObserver(),
|
|
@@ -6,12 +6,15 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
7
7
|
import { jsx, css } from '@emotion/react';
|
|
8
8
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import UnsupportedBlock from '@atlaskit/editor-common/UnsupportedBlock';
|
|
10
|
+
import UnsupportedInline from '@atlaskit/editor-common/UnsupportedInline';
|
|
11
|
+
import { calcBreakoutWidth } from '@atlaskit/editor-common/utils/breakout';
|
|
12
|
+
import { canRenderDatasource } from '@atlaskit/editor-common/utils/datasource';
|
|
13
|
+
import { WidthConsumer } from '@atlaskit/editor-common/WidthProvider';
|
|
11
14
|
import { SmartLinkDraggable, SMART_LINK_DRAG_TYPES, SMART_LINK_APPEARANCE } from '@atlaskit/editor-smart-link-draggable';
|
|
12
15
|
import { DatasourceTableViewWithWrappers as DatasourceTableView } from '@atlaskit/link-datasource/datasource-table-view-with-wrappers';
|
|
13
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { Card } from '@atlaskit/smart-card';
|
|
17
|
+
import { Card } from '@atlaskit/smart-card/card/lazy';
|
|
15
18
|
import { CardSSR } from '@atlaskit/smart-card/ssr';
|
|
16
19
|
import { RendererCssClassName } from '../../consts';
|
|
17
20
|
import { usePortal } from '../../ui/Renderer/PortalContext';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
4
|
-
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { ACTION_SUBJECT } from '../../analytics/enums';
|
|
6
6
|
import { AnnotationsPositionContext } from '../../ui/annotations';
|
|
7
7
|
import ExtensionRenderer from '../../ui/ExtensionRenderer';
|
|
@@ -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';
|