@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
|
@@ -4,27 +4,27 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React, { Fragment, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef } from 'react';
|
|
7
|
-
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
|
|
8
|
-
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
9
|
-
import { BaseTheme, IntlErrorBoundary, UnsupportedBlock, WidthProvider, WithCreateAnalyticsEvent } from '@atlaskit/editor-common/ui';
|
|
10
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
7
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
12
8
|
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
13
|
-
|
|
9
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
10
|
+
import { v4 as uuid } from 'uuid';
|
|
11
|
+
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
|
|
12
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
13
|
+
import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext';
|
|
14
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
14
15
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
15
16
|
import { isPanelNestingTableSupported } from '@atlaskit/editor-common/nesting';
|
|
17
|
+
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
16
18
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
17
19
|
import { getDistortedDurationMonitor } from '@atlaskit/editor-common/performance/measure-render';
|
|
18
20
|
import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
|
|
19
|
-
import {
|
|
21
|
+
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
22
|
+
import { BaseTheme, IntlErrorBoundary, UnsupportedBlock, WidthProvider, WithCreateAnalyticsEvent } from '@atlaskit/editor-common/ui';
|
|
20
23
|
import { getAnalyticsAppearance, getAnalyticsEventSeverity, shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
21
24
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
26
|
-
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
27
|
-
import { v4 as uuid } from 'uuid';
|
|
25
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
26
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
27
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
28
28
|
import { ReactSerializer, renderDocument } from '../../';
|
|
29
29
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
30
30
|
import { MODE, PLATFORM } from '../../analytics/events';
|
|
@@ -32,26 +32,25 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
32
32
|
import { getActiveHeadingId, isNestedHeaderLinksEnabled } from '../../react/utils/links';
|
|
33
33
|
import { RendererContextProvider, useRendererContext } from '../../renderer-context';
|
|
34
34
|
import { findInTree } from '../../utils';
|
|
35
|
-
import { RendererContext as ActionsContext, RendererActionsContext } from '../RendererActionsContext';
|
|
36
|
-
import { Provider as SmartCardStorageProvider } from '../SmartCardStorage';
|
|
37
35
|
import { ActiveHeaderIdProvider } from '../active-header-id-provider';
|
|
38
36
|
import { AnnotationsPositionContext, AnnotationsWrapper } from '../annotations';
|
|
39
37
|
import { CollapsibleHeadingsProvider } from '../collapsible-headings';
|
|
40
|
-
import {
|
|
38
|
+
import { useScrollToBlock } from '../hooks/useScrollToBlock';
|
|
39
|
+
import { RendererContext as ActionsContext, RendererActionsContext } from '../RendererActionsContext';
|
|
40
|
+
import { Provider as SmartCardStorageProvider } from '../SmartCardStorage';
|
|
41
|
+
import { getHeightInfoPayload, getWidthInfoPayload } from './analytics-utils';
|
|
41
42
|
import { BreakoutSSRInlineScript } from './breakout-ssr';
|
|
42
43
|
import { isInteractiveElement } from './click-to-edit';
|
|
43
44
|
import { countNodes } from './count-nodes';
|
|
44
|
-
import {
|
|
45
|
-
import { TruncatedWrapper } from './truncated-wrapper';
|
|
46
|
-
import { ValidationContext } from './ValidationContext';
|
|
47
|
-
import { RendererStyleContainer } from './RendererStyleContainer';
|
|
45
|
+
import { ErrorBoundary } from './ErrorBoundary';
|
|
48
46
|
import { getBaseFontSize } from './get-base-font-size';
|
|
47
|
+
import { PortalContext } from './PortalContext';
|
|
49
48
|
import { removeEmptySpaceAroundContent } from './rendererHelper';
|
|
49
|
+
import { RendererStyleContainer } from './RendererStyleContainer';
|
|
50
|
+
import { TELEPOINTER_ID } from './style';
|
|
51
|
+
import { TruncatedWrapper } from './truncated-wrapper';
|
|
50
52
|
import { useMemoFromPropsDerivative } from './useMemoFromPropsDerivative';
|
|
51
|
-
import {
|
|
52
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
53
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
54
|
-
import { getHeightInfoPayload, getWidthInfoPayload } from './analytics-utils';
|
|
53
|
+
import { ValidationContext } from './ValidationContext';
|
|
55
54
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
55
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
56
|
|
|
@@ -59,7 +58,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
59
58
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
60
59
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
61
60
|
const packageName = "@atlaskit/renderer";
|
|
62
|
-
const packageVersion = "141.0.
|
|
61
|
+
const packageVersion = "141.0.1";
|
|
63
62
|
const setAsQueryContainerStyles = css({
|
|
64
63
|
containerName: 'ak-renderer-wrapper',
|
|
65
64
|
containerType: 'inline-size'
|
|
@@ -2,9 +2,14 @@
|
|
|
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 { Component } 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
|
+
|
|
11
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
12
|
+
|
|
8
13
|
const fadeOutStyles = (maxHeight, top, backgroundColor) => css({
|
|
9
14
|
position: 'relative',
|
|
10
15
|
overflowY: 'hidden',
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc */
|
|
2
|
+
|
|
2
3
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
4
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
5
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
6
6
|
import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
8
|
import RendererActions from '../../actions/index';
|
|
8
9
|
export const RendererContext = /*#__PURE__*/React.createContext(new RendererActions());
|
|
9
10
|
export function RendererActionsContext({
|
|
@@ -4,17 +4,18 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React, { Fragment, useCallback } from 'react';
|
|
7
|
+
|
|
7
8
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
8
9
|
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
9
10
|
|
|
10
|
-
import { InsertDraftPosition } from '../types';
|
|
11
|
-
import { splitText, calcTextSplitOffset, findTextString } from './text';
|
|
12
|
-
import { calcInsertDraftPositionOnText } from './position';
|
|
13
|
-
import { dataAttributes } from './dom';
|
|
14
|
-
import { segmentText } from '../../../react/utils/segment-text';
|
|
15
11
|
import { renderTextSegments } from '../../../react/utils/render-text-segments';
|
|
12
|
+
import { segmentText } from '../../../react/utils/segment-text';
|
|
16
13
|
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
17
14
|
import { useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
15
|
+
import { InsertDraftPosition } from '../types';
|
|
16
|
+
import { dataAttributes } from './dom';
|
|
17
|
+
import { calcInsertDraftPositionOnText } from './position';
|
|
18
|
+
import { splitText, calcTextSplitOffset, findTextString } from './text';
|
|
18
19
|
|
|
19
20
|
// Localized AnnotationSharedCSSByState().common and AnnotationSharedCSSByState().focus
|
|
20
21
|
const markStyles = css({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useMemo, useCallback, useContext } from 'react';
|
|
2
2
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
3
3
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { MarkComponent } from './mark';
|
|
5
|
-
import { useInlineCommentsFilter } from '../hooks/use-inline-comments-filter';
|
|
6
|
-
import { useInlineCommentSubscriberContext } from '../hooks/use-inline-comment-subscriber';
|
|
7
|
-
import { useHasFocusEvent } from '../hooks/use-events';
|
|
8
4
|
import { InlineCommentsStateContext } from '../context';
|
|
9
5
|
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
6
|
+
import { useHasFocusEvent } from '../hooks/use-events';
|
|
7
|
+
import { useInlineCommentSubscriberContext } from '../hooks/use-inline-comment-subscriber';
|
|
8
|
+
import { useInlineCommentsFilter } from '../hooks/use-inline-comments-filter';
|
|
9
|
+
import { MarkComponent } from './mark';
|
|
10
10
|
const MarkElement = ({
|
|
11
11
|
annotationParentIds,
|
|
12
12
|
children,
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { useMemo, useCallback } from 'react';
|
|
7
|
+
|
|
7
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
+
import { useIntl } from 'react-intl';
|
|
9
11
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
10
12
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
|
-
import { useIntl } from 'react-intl';
|
|
12
13
|
import { inlineCommentMessages } from '../../../messages';
|
|
13
14
|
import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
|
|
14
15
|
const markStyles = css({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useLayoutEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
3
2
|
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
4
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
5
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';
|
|
6
6
|
import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
|
|
7
7
|
export const useAnnotationStateByTypeEvent = ({
|
|
8
8
|
type,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useEffect } from 'react';
|
|
2
2
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
3
|
-
import { ProvidersContext } from '../context';
|
|
4
3
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
4
|
+
import { ProvidersContext } from '../context';
|
|
5
5
|
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
6
6
|
export const useLoadAnnotations = ({
|
|
7
7
|
adfDocument,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useEffect, useRef, useCallback } from 'react';
|
|
2
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
+
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
2
4
|
import { useAnnotationRangeDispatch, useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
3
5
|
import { isRangeInsideOfRendererContainer } from './utils';
|
|
4
|
-
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
5
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
export const useUserSelectionRange = props => {
|
|
7
7
|
const {
|
|
8
8
|
rendererRef: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useCallback, useContext } from 'react';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
2
|
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
4
|
-
import { updateWindowSelectionAroundDraft } from '../draft/dom';
|
|
5
3
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
6
4
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
8
7
|
import { useAnnotationRangeDispatch, useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
8
|
+
import { updateWindowSelectionAroundDraft } from '../draft/dom';
|
|
9
9
|
export const Mounter = /*#__PURE__*/React.memo(props => {
|
|
10
10
|
const {
|
|
11
11
|
component: Component,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { Mounter } from './mounter';
|
|
3
2
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
4
|
-
import { useAnnotationRangeDispatch, useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
5
3
|
import { useAnnotationHoverContext } from '../contexts/AnnotationHoverContext';
|
|
4
|
+
import { useAnnotationRangeDispatch, useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
5
|
+
import { Mounter } from './mounter';
|
|
6
6
|
export const RangeValidator = props => {
|
|
7
7
|
const {
|
|
8
8
|
component,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
2
|
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
3
|
-
import { AnnotationView } from './view';
|
|
4
|
-
import { AnnotationsContextWrapper } from './wrapper';
|
|
5
|
-
import { ProvidersContext, InlineCommentsStateContext } from './context';
|
|
6
|
-
import { useLoadAnnotations } from './hooks/use-load-annotations';
|
|
7
|
-
import { useAnnotationStateByTypeEvent } from './hooks/use-events';
|
|
8
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
9
|
-
import {
|
|
4
|
+
import { ProvidersContext, InlineCommentsStateContext } from './context';
|
|
10
5
|
import { AnnotationHoverContext } from './contexts/AnnotationHoverContext';
|
|
11
6
|
import { AnnotationManagerProvider } from './contexts/AnnotationManagerContext';
|
|
7
|
+
import { AnnotationRangeProvider } from './contexts/AnnotationRangeContext';
|
|
8
|
+
import { useAnnotationStateByTypeEvent } from './hooks/use-events';
|
|
9
|
+
import { useLoadAnnotations } from './hooks/use-load-annotations';
|
|
10
|
+
import { AnnotationView } from './view';
|
|
11
|
+
import { AnnotationsContextWrapper } from './wrapper';
|
|
12
12
|
const LoadAnnotations = /*#__PURE__*/React.memo(({
|
|
13
13
|
adfDocument,
|
|
14
14
|
isNestedRender,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React, { useCallback, useContext, useMemo, useEffect } from 'react';
|
|
2
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
2
|
|
|
5
3
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
4
|
import { v4 as uuid } from 'uuid';
|
|
7
5
|
import { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
8
|
-
import { updateWindowSelectionAroundDraft } from '../draft/dom';
|
|
9
6
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
10
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import { getRendererRangeInlineNodeNames } from '../../../actions/get-renderer-range-inline-node-names';
|
|
12
11
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
13
12
|
import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
|
|
14
13
|
import { useAnnotationRangeDispatch, useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
14
|
+
import { updateWindowSelectionAroundDraft } from '../draft/dom';
|
|
15
15
|
export const SelectionInlineCommentMounter = /*#__PURE__*/React.memo(props => {
|
|
16
16
|
const {
|
|
17
17
|
component: Component,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
+
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
2
3
|
import { useUserSelectionRange } from '../hooks/user-selection';
|
|
3
4
|
import { SelectionInlineCommentMounter } from './mounter';
|
|
4
|
-
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
5
5
|
export const SelectionRangeValidator = props => {
|
|
6
6
|
const {
|
|
7
7
|
selectionComponent,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useMemo, useCallback } from 'react';
|
|
2
|
+
import { RendererContext } from '../../../ui/RendererActionsContext';
|
|
2
3
|
import { ProvidersContext } from '../context';
|
|
3
4
|
import { useAnnotationClickEvent } from '../hooks/use-events';
|
|
4
|
-
import { RendererContext } from '../../../ui/RendererActionsContext';
|
|
5
5
|
const AnnotationView = props => {
|
|
6
6
|
const providers = useContext(ProvidersContext);
|
|
7
7
|
const actionContext = useContext(RendererContext);
|
package/dist/es2019/utils.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
5
5
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
6
|
-
|
|
7
6
|
// Ignored via go/ees005
|
|
8
7
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
8
|
function createEncoder(parser, encoder) {
|
|
@@ -39,6 +38,7 @@ export const getEventHandler = (eventHandlers, type, eventName = 'onClick'
|
|
|
39
38
|
* @param evaluate Function which returns true or false based on the given element. eg: Checks if
|
|
40
39
|
* element has desired classname.
|
|
41
40
|
*/
|
|
41
|
+
|
|
42
42
|
export function findInTree(element, topElement, evaluate) {
|
|
43
43
|
if (element === topElement) {
|
|
44
44
|
return false;
|
|
@@ -3,10 +3,10 @@ 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';
|
|
6
7
|
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils';
|
|
7
8
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
|
|
8
9
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { AddNodeMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { createAnnotationStep, getPosFromRange } from '../steps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
1
|
import { getFragmentsFromSelection, getLocalIdsFromSelection } from '@atlaskit/editor-common/selection';
|
|
2
|
+
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { getPosFromRange, getStartPos, findParent } from '../steps';
|
|
4
4
|
export var getSelectionContext = function getSelectionContext(_ref) {
|
|
5
5
|
var doc = _ref.doc,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getUnsupportedContentLevelData, getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
2
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { getUnsupportedContentLevelData, getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { PLATFORM } from './events';
|
|
4
4
|
|
|
5
5
|
// Ignored via go/ees005
|
package/dist/esm/custom-nodes.js
CHANGED
|
@@ -7,4 +7,5 @@
|
|
|
7
7
|
* This entry point will be removed in January 2027.
|
|
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
11
|
export { nodeToReact as defaultNodeComponentsWithLooselyLazy } from './react/nodes/loosely-lazy';
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
* This entry point will be removed in January 2027.
|
|
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
10
|
export { nodeToReact as defaultNodeComponentsWithLooselyLazy } from '../react/nodes/loosely-lazy';
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import CodeBlock from '../../react/nodes/codeBlock/codeBlock';
|
|
6
6
|
import Date from '../../react/nodes/date';
|
|
7
|
-
import DecisionList from '../../react/nodes/decisionList';
|
|
8
7
|
import DecisionItem from '../../react/nodes/decisionItem';
|
|
8
|
+
import DecisionList from '../../react/nodes/decisionList';
|
|
9
9
|
import Emoji from '../../react/nodes/emoji';
|
|
10
10
|
import Mention from '../../react/nodes/mention';
|
|
11
11
|
import Panel from '../../react/nodes/panel';
|
|
@@ -42,4 +42,5 @@ var nodeToReact = {
|
|
|
42
42
|
* This entry point will be removed in January 2027.
|
|
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
46
|
export default nodeToReact;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* This entry point will be removed in January 2027.
|
|
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
10
|
export { BlockCard, Blockquote, BodiedExtension, BulletList, Caption, CodeBlock, Date, DecisionItem, DecisionList, Doc, DocWithSelectAllTrap, EmbedCard, Emoji, Expand, Extension, ExtensionFrame, HardBreak, Heading, InlineCard, InlineExtension, LayoutColumn, LayoutSection, ListItem, Media, MediaGroup, MediaInline, MediaSingle, Mention, MultiBodiedExtension, OrderedList, Panel, Paragraph, Placeholder, Rule, Status, Table, TableCell, TableRow, TaskItem, TaskList, UnknownBlock, WindowedCodeBlock, isEmojiDoc, isText, isTextNode, isTextWrapper, mergeTextNodes, nodeToReact, toReact } from '../react/nodes/index';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -3,6 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
6
|
+
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { nodes } from '../react/nodes/nodes';
|
|
8
9
|
import RenderLegacy, { RendererFunctionalComponent as RendererFunctionalComponentLegacy, RendererWithAnalytics as RendererWithAnalyticsLegacy } from '../ui/Renderer/index';
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* This export will be removed in January 2027.
|
|
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
10
|
export { DEGRADED_SEVERITY_THRESHOLD } from '../ui/Renderer/index';
|
|
10
11
|
|
|
11
12
|
/**
|
package/dist/esm/i18n/index.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export { default as TextSerializer } from './text';
|
|
|
10
10
|
* This export will be removed in January 2027.
|
|
11
11
|
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/7650942996/Moving+to+Synchronous+Rendering+in+Editor+Renderer for more.
|
|
12
12
|
*/
|
|
13
|
+
|
|
13
14
|
export { default as ReactRenderer } from './ui/Renderer';
|
|
14
15
|
|
|
15
16
|
/**
|
package/dist/esm/react/index.js
CHANGED
|
@@ -8,26 +8,26 @@ 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 { MarkType } from '@atlaskit/editor-prosemirror/model';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
|
-
import { mergeExpandBodyText, withExpandBodyBlock } from '../ui/utils/expand-body';
|
|
14
|
-
import { Doc, DocWithSelectAllTrap, isTextNode, isTextWrapper, mergeTextNodes, toReact } from './nodes';
|
|
15
|
-
import TextWrapperComponent from './nodes/text-wrapper';
|
|
16
|
-
import { isNestedHeaderLinksEnabled } from './utils/links';
|
|
17
11
|
import { getColumnWidths } from '@atlaskit/editor-common/utils';
|
|
18
12
|
import { getMarksByOrder, isSameMark } from '@atlaskit/editor-common/validator';
|
|
13
|
+
import { MarkType } from '@atlaskit/editor-prosemirror/model';
|
|
19
14
|
import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
20
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
+
import { mergeExpandBodyText, withExpandBodyBlock } from '../ui/utils/expand-body';
|
|
22
19
|
import { getText } from '../utils';
|
|
23
20
|
import { isAnnotationMark, toReact as markToReact } from './marks';
|
|
24
21
|
import { isCodeMark } from './marks/code';
|
|
22
|
+
import { Doc, DocWithSelectAllTrap, isTextNode, isTextWrapper, mergeTextNodes, toReact } from './nodes';
|
|
23
|
+
import TextWrapperComponent from './nodes/text-wrapper';
|
|
25
24
|
import { getNestedUnderNodes, insideBlockNode, insideMultiBodiedExtension, insideTable } from './renderer-node';
|
|
26
|
-
import { renderTextSegments } from './utils/render-text-segments';
|
|
27
|
-
import { segmentText } from './utils/segment-text';
|
|
28
|
-
import { getStandaloneBackgroundColorMarks } from './utils/getStandaloneBackgroundColorMarks';
|
|
29
25
|
import { createContentGetter } from './utils/content-getter';
|
|
26
|
+
import { getStandaloneBackgroundColorMarks } from './utils/getStandaloneBackgroundColorMarks';
|
|
27
|
+
import { isNestedHeaderLinksEnabled } from './utils/links';
|
|
30
28
|
import { markBlockAsInline } from './utils/markBlockAsInline';
|
|
29
|
+
import { renderTextSegments } from './utils/render-text-segments';
|
|
30
|
+
import { segmentText } from './utils/segment-text';
|
|
31
31
|
function mergeMarks(marksAndNodes) {
|
|
32
32
|
return marksAndNodes.reduce(function (acc, markOrNode) {
|
|
33
33
|
var prev = acc.length && acc[acc.length - 1] || null;
|
|
@@ -4,6 +4,7 @@ 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 } from '@emotion/react';
|
|
9
10
|
import { alignmentPositionMap } from '@atlaskit/adf-schema/alignment';
|