@atlaskit/renderer 141.0.1 → 141.0.3
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 +17 -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 -1
- 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 +11 -16
- 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 +21 -21
- 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 -1
- 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 +12 -16
- 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 +15 -15
- 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 -1
- 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 +12 -16
- 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 +15 -15
- 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 +4 -7
|
@@ -14,27 +14,28 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
14
14
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15
15
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
16
|
/* eslint-disable @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/enforce-style-prop, @repo/internal/react/no-class-components */
|
|
17
|
+
|
|
17
18
|
import React from 'react';
|
|
19
|
+
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
18
20
|
import { TableSharedCssClassName, tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
21
|
+
import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
22
|
+
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
19
23
|
import { overflowShadow } from '@atlaskit/editor-common/ui';
|
|
20
|
-
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
21
|
-
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
23
|
-
import { RendererCssClassName } from '../../consts';
|
|
24
24
|
import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMergedCell, compose } from '@atlaskit/editor-common/utils';
|
|
25
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
26
25
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
26
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
27
27
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
28
|
-
import {
|
|
28
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
29
|
+
import { RendererCssClassName } from '../../consts';
|
|
30
|
+
import { useRendererContext } from '../../renderer-context';
|
|
31
|
+
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
29
32
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
33
|
+
import { isCommentAppearance, isFullWidthOrFullPageAppearance, isFullWidthAppearance, isMaxWidthAppearance, isFullPageAppearance } from '../utils/appearance';
|
|
34
|
+
import { isContentModeSupported } from './table/content-mode';
|
|
30
35
|
import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
|
|
31
36
|
import { Table } from './table/table';
|
|
32
|
-
import {
|
|
37
|
+
import { TableCell, TableHeader } from './tableCell';
|
|
33
38
|
import { TableStickyScrollbar } from './TableStickyScrollbar';
|
|
34
|
-
import { useRendererContext } from '../../renderer-context';
|
|
35
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
36
|
-
import { isTableInContentMode } from '@atlaskit/editor-common/table';
|
|
37
|
-
import { isContentModeSupported } from './table/content-mode';
|
|
38
39
|
var stickyContainerBaseStyles = {
|
|
39
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
40
41
|
height: "var(--ds-space-250, 20px)",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useIntl } from 'react-intl';
|
|
4
4
|
import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
|
|
5
|
-
import {
|
|
5
|
+
import { tableBackgroundColorNameByHex } from '@atlaskit/adf-schema/tableNodes';
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import { SortingIcon } from '@atlaskit/editor-common/table';
|
|
6
8
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
7
9
|
import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
|
|
8
|
-
import {
|
|
10
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
12
|
+
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
9
13
|
import { MODE, PLATFORM } from '../../analytics/events';
|
|
10
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
14
|
import { RendererCssClassName } from '../../consts';
|
|
12
|
-
import { useIntl } from 'react-intl';
|
|
13
15
|
import { tableCellMessages } from '../../messages';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
16
16
|
var IgnoreSorting = ['LABEL', 'INPUT'];
|
|
17
17
|
var nextStatusOrder = function nextStatusOrder(currentSortOrder) {
|
|
18
18
|
switch (currentSortOrder) {
|
|
@@ -7,9 +7,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
|
-
import { compose } from '@atlaskit/editor-common/utils';
|
|
12
10
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
11
|
+
import { compose } from '@atlaskit/editor-common/utils';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { RendererCssClassName } from '../../consts';
|
|
14
14
|
// Ignored via go/ees005
|
|
15
15
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -8,10 +8,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
|
-
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
12
|
-
import TaskItemWithProviders from './task-item-with-providers';
|
|
13
11
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
|
|
12
|
+
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
14
13
|
import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
14
|
+
import TaskItemWithProviders from './task-item-with-providers';
|
|
15
15
|
// Ignored via go/ees005
|
|
16
16
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
17
17
|
var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useContext, useEffect, useLayoutEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
4
|
-
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
5
3
|
import { useProviderFactory, useProviderLayout } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
+
import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
|
|
5
|
+
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
6
6
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
var getMediaClientConfigForRenderer = function getMediaClientConfigForRenderer(provider) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
4
4
|
import { ElementSelection } from './element-selection';
|
|
5
5
|
|
|
@@ -2,6 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
3
|
// Entry file in package.json
|
|
4
4
|
|
|
5
|
+
import memoizeOne from 'memoize-one';
|
|
5
6
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
6
7
|
import { nativeEmbedsFallbackTransform, transformContainerNodes, transformMediaLinkMarks, transformNestedTablesIncomingDocument } from '@atlaskit/adf-utils/transforms';
|
|
7
8
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -9,7 +10,6 @@ import { findAndTrackUnsupportedContentNodes, validateADFEntity } from '@atlaski
|
|
|
9
10
|
import { getValidDocument } from '@atlaskit/editor-common/validator';
|
|
10
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
|
-
import memoizeOne from 'memoize-one';
|
|
13
13
|
import { PLATFORM } from './analytics/events';
|
|
14
14
|
import { trackUnsupportedContentLevels } from './analytics/unsupported-content';
|
|
15
15
|
import { countNodes } from './ui/Renderer/count-nodes';
|
package/dist/esm/steps/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc -- internal step helpers */
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
5
|
|
|
5
6
|
// Ignored via go/ees005
|
|
6
7
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getText } from '../../utils';
|
|
2
1
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
|
+
import { getText } from '../../utils';
|
|
3
3
|
var status = function status(node, _schema) {
|
|
4
4
|
return node.attrs.text ? node.attrs.style === 'mixedCase' && fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? "[ ".concat(node.attrs.text, " ]") : "[ ".concat(node.attrs.text.toUpperCase(), " ]") : getText(node);
|
|
5
5
|
};
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -3,22 +3,24 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
8
|
+
|
|
6
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
10
|
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
9
11
|
import { bind } from 'bind-event-listener';
|
|
12
|
+
import _uniqueId from 'lodash/uniqueId';
|
|
13
|
+
import { injectIntl } from 'react-intl';
|
|
10
14
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
11
15
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
12
16
|
import { ExpandIconWrapper, ExpandLayoutWrapperWithRef, expandMessages, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
13
17
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
|
|
14
18
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
15
|
-
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
19
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
|
-
import
|
|
18
|
-
import _uniqueId from 'lodash/uniqueId';
|
|
19
|
-
import { injectIntl } from 'react-intl';
|
|
20
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
20
21
|
import { MODE, PLATFORM } from '../analytics/events';
|
|
21
22
|
import { ActiveHeaderIdConsumer } from './active-header-id-provider';
|
|
23
|
+
import { ExpandBodyProvider, useExpandBody } from './utils/expand-body';
|
|
22
24
|
var titleStyles = css({
|
|
23
25
|
outline: 'none',
|
|
24
26
|
border: 'none',
|
|
@@ -3,9 +3,12 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
6
|
+
|
|
8
7
|
import React from 'react';
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
10
|
+
import { css, jsx } from '@emotion/react';
|
|
11
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
9
12
|
import memoizeOne from 'memoize-one';
|
|
10
13
|
import { getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
11
14
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -13,15 +13,15 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
import React, { Component, useContext } from 'react';
|
|
15
15
|
import { filter } from '@atlaskit/adf-utils/traverse';
|
|
16
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
17
|
+
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
18
|
+
import { CardError } from '@atlaskit/media-card/cardError';
|
|
16
19
|
import CardAsync from '@atlaskit/media-card/cardLoader';
|
|
17
|
-
import CardSync from '@atlaskit/media-card/cardSync';
|
|
18
20
|
import { CardLoading } from '@atlaskit/media-card/cardLoading';
|
|
19
|
-
import
|
|
21
|
+
import CardSync from '@atlaskit/media-card/cardSync';
|
|
20
22
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
21
|
-
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
22
23
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
24
|
import AnalyticsContext from '../analytics/analyticsContext';
|
|
24
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
25
25
|
export var mediaIdentifierMap = new Map();
|
|
26
26
|
export var getListOfIdentifiersFromDoc = function getListOfIdentifiersFromDoc(doc) {
|
|
27
27
|
if (!doc) {
|
|
@@ -7,8 +7,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
10
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
11
|
+
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
13
13
|
import { PLATFORM } from '../../analytics/events';
|
|
14
14
|
|
|
@@ -10,29 +10,29 @@ var _css0, _$concat3, _$concat5;
|
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
12
12
|
|
|
13
|
-
import { FullPagePadding } from './style';
|
|
14
|
-
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
|
-
import { RendererCssClassName } from '../../consts';
|
|
17
|
-
import { akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorFullPageNarrowBreakout, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth, akEditorGutterPadding, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, blockNodesVerticalMargin, scaledBlockNodesVerticalMargin, gridMediumMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
|
|
18
|
-
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
|
|
19
|
-
import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
|
|
20
|
-
import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
21
13
|
import { bulletListSelector } from '@atlaskit/adf-schema/bullet-list';
|
|
22
14
|
import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
|
|
23
|
-
import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
|
|
24
15
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
16
|
+
import { EmojiSharedCssClassName, defaultEmojiHeight, defaultDenseEmojiHeight, defaultInlineEmojiHeight, scaledEmojiHeightH1, scaledEmojiHeightH2, scaledEmojiHeightH3, scaledEmojiHeightH4, denseEmojiHeightH1, denseEmojiHeightH2, denseEmojiHeightH3, denseEmojiHeightH4 } from '@atlaskit/editor-common/emoji';
|
|
17
|
+
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
|
|
18
|
+
import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
19
|
+
import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
27
20
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from '@atlaskit/editor-common/table';
|
|
28
|
-
import { LightWeightCodeBlockCssClassName } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
|
|
29
21
|
import { editorUGCTokensRefreshed } from '@atlaskit/editor-common/ugc-tokens';
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
22
|
+
import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
|
|
23
|
+
import { akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorFullPageNarrowBreakout, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth, akEditorGutterPadding, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, blockNodesVerticalMargin, scaledBlockNodesVerticalMargin, gridMediumMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
|
|
24
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
25
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
26
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
32
27
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
33
28
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
34
|
-
import {
|
|
29
|
+
import { RendererCssClassName } from '../../consts';
|
|
30
|
+
import { LightWeightCodeBlockCssClassName } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
|
|
31
|
+
import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
|
|
32
|
+
import { isStickyScrollbarEnabled, isTableResizingEnabled } from '../../react/nodes/table';
|
|
35
33
|
import { COLLAPSED_CONTENT_OWNERS_ATTRIBUTE } from '../collapsible-headings-dom';
|
|
34
|
+
import { getBaseFontSize } from './get-base-font-size';
|
|
35
|
+
import { FullPagePadding } from './style';
|
|
36
36
|
var wrappedMediaBreakoutPoint = 410;
|
|
37
37
|
var TELEPOINTER_ID = 'ai-streaming-telepointer';
|
|
38
38
|
var tableShadowWidth = 32;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc -- SSR inline script helpers */
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { breakoutConsts } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { FullPagePadding } from './style';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
+
import { FullPagePadding } from './style';
|
|
6
7
|
/**
|
|
7
8
|
* Inline Script that updates breakout node width on client side,
|
|
8
9
|
* before main JavaScript bundle is ready.
|
|
@@ -9,27 +9,27 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
* @jsx jsx
|
|
10
10
|
*/
|
|
11
11
|
import React, { Fragment, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef } from 'react';
|
|
12
|
-
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
|
|
13
|
-
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
14
|
-
import { BaseTheme, IntlErrorBoundary, UnsupportedBlock, WidthProvider, WithCreateAnalyticsEvent } from '@atlaskit/editor-common/ui';
|
|
15
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
16
12
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
17
13
|
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
18
|
-
|
|
14
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
15
|
+
import { v4 as uuid } from 'uuid';
|
|
16
|
+
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
|
|
17
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
18
|
+
import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext';
|
|
19
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
19
20
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
20
21
|
import { isPanelNestingTableSupported } from '@atlaskit/editor-common/nesting';
|
|
22
|
+
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
21
23
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
22
24
|
import { getDistortedDurationMonitor } from '@atlaskit/editor-common/performance/measure-render';
|
|
23
25
|
import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
|
|
24
|
-
import {
|
|
26
|
+
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
27
|
+
import { BaseTheme, IntlErrorBoundary, UnsupportedBlock, WidthProvider, WithCreateAnalyticsEvent } from '@atlaskit/editor-common/ui';
|
|
25
28
|
import { getAnalyticsAppearance, getAnalyticsEventSeverity, shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
26
29
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
31
|
-
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
32
|
-
import { v4 as uuid } from 'uuid';
|
|
30
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
31
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
32
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
33
33
|
import { ReactSerializer, renderDocument } from '../../';
|
|
34
34
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
35
35
|
import { MODE, PLATFORM } from '../../analytics/events';
|
|
@@ -37,26 +37,25 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
37
37
|
import { getActiveHeadingId, isNestedHeaderLinksEnabled } from '../../react/utils/links';
|
|
38
38
|
import { RendererContextProvider, useRendererContext } from '../../renderer-context';
|
|
39
39
|
import { findInTree } from '../../utils';
|
|
40
|
-
import { RendererContext as ActionsContext, RendererActionsContext } from '../RendererActionsContext';
|
|
41
|
-
import { Provider as SmartCardStorageProvider } from '../SmartCardStorage';
|
|
42
40
|
import { ActiveHeaderIdProvider } from '../active-header-id-provider';
|
|
43
41
|
import { AnnotationsPositionContext, AnnotationsWrapper } from '../annotations';
|
|
44
42
|
import { CollapsibleHeadingsProvider } from '../collapsible-headings';
|
|
45
|
-
import {
|
|
43
|
+
import { useScrollToBlock } from '../hooks/useScrollToBlock';
|
|
44
|
+
import { RendererContext as ActionsContext, RendererActionsContext } from '../RendererActionsContext';
|
|
45
|
+
import { Provider as SmartCardStorageProvider } from '../SmartCardStorage';
|
|
46
|
+
import { getHeightInfoPayload, getWidthInfoPayload } from './analytics-utils';
|
|
46
47
|
import { BreakoutSSRInlineScript } from './breakout-ssr';
|
|
47
48
|
import { isInteractiveElement } from './click-to-edit';
|
|
48
49
|
import { countNodes } from './count-nodes';
|
|
49
|
-
import {
|
|
50
|
-
import { TruncatedWrapper } from './truncated-wrapper';
|
|
51
|
-
import { ValidationContext } from './ValidationContext';
|
|
52
|
-
import { RendererStyleContainer } from './RendererStyleContainer';
|
|
50
|
+
import { ErrorBoundary } from './ErrorBoundary';
|
|
53
51
|
import { getBaseFontSize } from './get-base-font-size';
|
|
52
|
+
import { PortalContext } from './PortalContext';
|
|
54
53
|
import { removeEmptySpaceAroundContent } from './rendererHelper';
|
|
54
|
+
import { RendererStyleContainer } from './RendererStyleContainer';
|
|
55
|
+
import { TELEPOINTER_ID } from './style';
|
|
56
|
+
import { TruncatedWrapper } from './truncated-wrapper';
|
|
55
57
|
import { useMemoFromPropsDerivative } from './useMemoFromPropsDerivative';
|
|
56
|
-
import {
|
|
57
|
-
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
58
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
59
|
-
import { getHeightInfoPayload, getWidthInfoPayload } from './analytics-utils';
|
|
58
|
+
import { ValidationContext } from './ValidationContext';
|
|
60
59
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
61
60
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
62
61
|
|
|
@@ -64,7 +63,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
64
63
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
65
64
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
66
65
|
var packageName = "@atlaskit/renderer";
|
|
67
|
-
var packageVersion = "141.0.
|
|
66
|
+
var packageVersion = "141.0.2";
|
|
68
67
|
var setAsQueryContainerStyles = css({
|
|
69
68
|
containerName: 'ak-renderer-wrapper',
|
|
70
69
|
containerType: 'inline-size'
|
|
@@ -9,9 +9,14 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
9
9
|
* @jsxRuntime classic
|
|
10
10
|
* @jsx jsx
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
12
|
+
|
|
14
13
|
import { Component } from 'react';
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
16
|
+
import { css, jsx } from '@emotion/react';
|
|
17
|
+
|
|
18
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
19
|
+
|
|
15
20
|
var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
|
|
16
21
|
return css({
|
|
17
22
|
position: 'relative',
|
|
@@ -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 var RendererContext = /*#__PURE__*/React.createContext(new RendererActions());
|
|
9
10
|
export function RendererActionsContext(_ref) {
|
|
@@ -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
|
var 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
|
var MarkElement = function MarkElement(_ref) {
|
|
11
11
|
var annotationParentIds = _ref.annotationParentIds,
|
|
12
12
|
children = _ref.children,
|
|
@@ -8,11 +8,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useMemo, useCallback } from 'react';
|
|
11
|
+
|
|
11
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
import { css, jsx } from '@emotion/react';
|
|
14
|
+
import { useIntl } from 'react-intl';
|
|
13
15
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
|
|
14
16
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
|
-
import { useIntl } from 'react-intl';
|
|
16
17
|
import { inlineCommentMessages } from '../../../messages';
|
|
17
18
|
import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
|
|
18
19
|
var markStyles = css(_defineProperty({
|
|
@@ -3,10 +3,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
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
|
import { useLayoutEffect, useMemo, useState } from 'react';
|
|
6
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
7
6
|
import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
|
|
8
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
9
7
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
8
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
9
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
10
10
|
import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
|
|
11
11
|
export var useAnnotationStateByTypeEvent = function useAnnotationStateByTypeEvent(_ref) {
|
|
12
12
|
var type = _ref.type,
|
|
@@ -3,8 +3,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { useContext, useEffect } from 'react';
|
|
5
5
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
6
|
-
import { ProvidersContext } from '../context';
|
|
7
6
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
7
|
+
import { ProvidersContext } from '../context';
|
|
8
8
|
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
9
9
|
export var useLoadAnnotations = function useLoadAnnotations(_ref) {
|
|
10
10
|
var adfDocument = _ref.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 var useUserSelectionRange = function useUserSelectionRange(props) {
|
|
7
7
|
var rendererDOM = props.rendererRef.current;
|
|
8
8
|
var selectionTimeoutRef = useRef();
|
|
@@ -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 var Mounter = /*#__PURE__*/React.memo(function (props) {
|
|
10
10
|
var Component = props.component,
|
|
11
11
|
range = props.range,
|
|
@@ -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 var RangeValidator = function RangeValidator(props) {
|
|
7
7
|
var component = props.component,
|
|
8
8
|
rendererRef = props.rendererRef,
|
|
@@ -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
|
var LoadAnnotations = /*#__PURE__*/React.memo(function (_ref) {
|
|
13
13
|
var adfDocument = _ref.adfDocument,
|
|
14
14
|
isNestedRender = _ref.isNestedRender,
|