@atlaskit/editor-common 119.16.1 → 119.16.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 +29 -0
- package/dist/cjs/code-block/index.js +2 -2
- package/dist/cjs/doc-utils/editor-use-only.js +3 -3
- package/dist/cjs/element-browser/components/CategoryList.js +1 -1
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +4 -4
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +2 -2
- package/dist/cjs/element-browser/components/ElementSearch.js +2 -2
- package/dist/cjs/element-browser/components/ViewMore.js +4 -3
- package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
- package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +3 -3
- package/dist/cjs/extensibility/Extension/Extension/index.js +3 -3
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -2
- package/dist/cjs/extensibility/ExtensionComponent.js +2 -2
- package/dist/cjs/extensibility/extensionNodeView.js +2 -2
- package/dist/cjs/extensions/extension-handlers.js +2 -2
- package/dist/cjs/floating-toolbar/DropdownMenuItem.js +4 -4
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +5 -5
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -3
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/utils.js +2 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/cjs/mark/commands.js +2 -2
- package/dist/cjs/media-inline/inline-image-card.js +2 -2
- package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
- package/dist/cjs/media-inline/views/error-view.js +2 -2
- package/dist/cjs/media-inline/views/loading-view.js +1 -1
- package/dist/cjs/media-single/CommentBadge.js +3 -3
- package/dist/cjs/media-single/CommentBadgeNext.js +2 -2
- package/dist/cjs/media-single/ExternalImageBadge.js +2 -2
- package/dist/cjs/media-single/MediaBadges.js +2 -2
- package/dist/cjs/monitoring/error.js +4 -4
- package/dist/cjs/preset/core-plugin/index.js +2 -2
- package/dist/cjs/quick-insert/utils.js +2 -2
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +2 -2
- package/dist/cjs/react-node-view/index.js +36 -1
- package/dist/cjs/resizer/Resizer.js +2 -2
- package/dist/cjs/safe-plugin/index.js +2 -2
- package/dist/cjs/selection/getLocalIdsFromSelection.js +3 -3
- package/dist/cjs/styles/shared/table.js +2 -2
- package/dist/cjs/table/SortingIcon.js +2 -2
- package/dist/cjs/ui/DropList/index.js +4 -4
- package/dist/cjs/ui/FloatingToolbar/Button.js +3 -3
- package/dist/cjs/ui/HoverLinkOverlay/index.js +3 -3
- package/dist/cjs/ui/Layer/index.js +4 -4
- package/dist/cjs/ui/MediaSingle/index.js +4 -4
- package/dist/cjs/ui/MediaSingle/styled.js +2 -2
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -2
- package/dist/cjs/ui/WidthProvider/index.js +2 -2
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +2 -2
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +4 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +8 -6
- package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
- package/dist/cjs/utils/annotation/index.js +5 -5
- package/dist/cjs/utils/compareNodes.js +2 -2
- package/dist/cjs/utils/createRule.js +2 -2
- package/dist/cjs/utils/processRawValue.js +3 -3
- package/dist/cjs/utils/validator.js +6 -6
- package/dist/cjs/vanilla-tooltip/index.js +2 -2
- package/dist/es2019/code-block/index.js +1 -1
- package/dist/es2019/doc-utils/editor-use-only.js +2 -2
- package/dist/es2019/element-browser/components/CategoryList.js +1 -1
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
- package/dist/es2019/element-browser/components/ViewMore.js +2 -1
- package/dist/es2019/element-browser/hooks/use-container-width.js +1 -1
- package/dist/es2019/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/es2019/extensibility/ExtensionComponent.js +1 -1
- package/dist/es2019/extensibility/extensionNodeView.js +1 -1
- package/dist/es2019/extensions/extension-handlers.js +1 -1
- package/dist/es2019/floating-toolbar/DropdownMenuItem.js +2 -2
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +3 -1
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/utils.js +1 -1
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/es2019/mark/commands.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
- package/dist/es2019/media-inline/views/error-view.js +1 -1
- package/dist/es2019/media-inline/views/loading-view.js +1 -1
- package/dist/es2019/media-single/CommentBadge.js +2 -2
- package/dist/es2019/media-single/CommentBadgeNext.js +1 -1
- package/dist/es2019/media-single/ExternalImageBadge.js +1 -1
- package/dist/es2019/media-single/MediaBadges.js +1 -1
- package/dist/es2019/monitoring/error.js +2 -2
- package/dist/es2019/preset/core-plugin/index.js +1 -1
- package/dist/es2019/quick-insert/utils.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/es2019/react-node-view/index.js +34 -1
- package/dist/es2019/resizer/Resizer.js +1 -1
- package/dist/es2019/safe-plugin/index.js +1 -1
- package/dist/es2019/selection/getLocalIdsFromSelection.js +1 -1
- package/dist/es2019/styles/shared/table.js +1 -1
- package/dist/es2019/table/SortingIcon.js +1 -1
- package/dist/es2019/ui/DropList/index.js +2 -2
- package/dist/es2019/ui/FloatingToolbar/Button.js +2 -2
- package/dist/es2019/ui/HoverLinkOverlay/index.js +1 -1
- package/dist/es2019/ui/Layer/index.js +2 -2
- package/dist/es2019/ui/MediaSingle/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +1 -1
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
- package/dist/es2019/ui/WidthProvider/index.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +2 -2
- package/dist/es2019/ui-menu/DropdownMenu/index.js +4 -2
- package/dist/es2019/ui-menu/ToolbarButton/index.js +1 -1
- package/dist/es2019/utils/annotation/index.js +1 -1
- package/dist/es2019/utils/compareNodes.js +1 -1
- package/dist/es2019/utils/createRule.js +1 -1
- package/dist/es2019/utils/processRawValue.js +1 -1
- package/dist/es2019/utils/validator.js +1 -1
- package/dist/es2019/vanilla-tooltip/index.js +1 -1
- package/dist/esm/code-block/index.js +1 -1
- package/dist/esm/doc-utils/editor-use-only.js +2 -2
- package/dist/esm/element-browser/components/CategoryList.js +1 -1
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +1 -1
- package/dist/esm/element-browser/components/ViewMore.js +2 -1
- package/dist/esm/element-browser/hooks/use-container-width.js +1 -1
- package/dist/esm/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/esm/extensibility/ExtensionComponent.js +1 -1
- package/dist/esm/extensibility/extensionNodeView.js +1 -1
- package/dist/esm/extensions/extension-handlers.js +1 -1
- package/dist/esm/floating-toolbar/DropdownMenuItem.js +2 -2
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +3 -1
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/esm/link/ConfigureLinkOverlay/index.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/utils.js +1 -1
- package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/esm/mark/commands.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +1 -1
- package/dist/esm/media-inline/views/error-view.js +1 -1
- package/dist/esm/media-inline/views/loading-view.js +1 -1
- package/dist/esm/media-single/CommentBadge.js +2 -2
- package/dist/esm/media-single/CommentBadgeNext.js +1 -1
- package/dist/esm/media-single/ExternalImageBadge.js +1 -1
- package/dist/esm/media-single/MediaBadges.js +1 -1
- package/dist/esm/monitoring/error.js +2 -2
- package/dist/esm/preset/core-plugin/index.js +1 -1
- package/dist/esm/quick-insert/utils.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/esm/react-node-view/index.js +36 -1
- package/dist/esm/resizer/Resizer.js +1 -1
- package/dist/esm/safe-plugin/index.js +1 -1
- package/dist/esm/selection/getLocalIdsFromSelection.js +1 -1
- package/dist/esm/styles/shared/table.js +1 -1
- package/dist/esm/table/SortingIcon.js +1 -1
- package/dist/esm/ui/DropList/index.js +2 -2
- package/dist/esm/ui/FloatingToolbar/Button.js +2 -2
- package/dist/esm/ui/HoverLinkOverlay/index.js +1 -1
- package/dist/esm/ui/Layer/index.js +2 -2
- package/dist/esm/ui/MediaSingle/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +1 -1
- package/dist/esm/ui/Mention/mention-with-profilecard.js +1 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +1 -1
- package/dist/esm/ui/WidthProvider/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +2 -2
- package/dist/esm/ui-menu/DropdownMenu/index.js +4 -2
- package/dist/esm/ui-menu/ToolbarButton/index.js +1 -1
- package/dist/esm/utils/annotation/index.js +1 -1
- package/dist/esm/utils/compareNodes.js +1 -1
- package/dist/esm/utils/createRule.js +1 -1
- package/dist/esm/utils/processRawValue.js +1 -1
- package/dist/esm/utils/validator.js +1 -1
- package/dist/esm/vanilla-tooltip/index.js +1 -1
- package/dist/types/annotation/index.d.ts +1 -1
- package/dist/types/card/appearancePropsMap.d.ts +1 -1
- package/dist/types/card/types.d.ts +1 -1
- package/dist/types/collab/index.d.ts +2 -2
- package/dist/types/element-browser/components/CategoryList.d.ts +2 -1
- package/dist/types/element-browser/components/ElementList/ElementList.d.ts +2 -1
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +2 -1
- package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +1 -1
- package/dist/types/link/ConfigureLinkOverlay/StyledButton.d.ts +1 -1
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +1 -1
- package/dist/types/lists/replace-content.d.ts +1 -1
- package/dist/types/media-inline/types.d.ts +1 -1
- package/dist/types/preset/core-plugin/requestDocument.d.ts +1 -1
- package/dist/types/react-node-view/index.d.ts +6 -0
- package/dist/types/resizer/Resizer.d.ts +1 -1
- package/dist/types/resizer/useBreakoutGuidelines.d.ts +1 -1
- package/dist/types/types/annotation/index.d.ts +1 -1
- package/dist/types/types/editor-actions.d.ts +1 -1
- package/dist/types/types/editor-react-context.d.ts +1 -1
- package/dist/types/types/floating-toolbar.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +1 -1
- package/dist/types/types/selection.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +2 -1
- package/dist/types/ui/FloatingToolbar/Button.d.ts +1 -1
- package/dist/types/ui/Layer/internal/helpers.d.ts +1 -1
- package/dist/types/ui/ResizerLegacy/types.d.ts +1 -1
- package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +2 -1
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +2 -2
- package/dist/types/utils/editor-core-utils.d.ts +1 -1
- package/dist/types/utils/extractSliceFromStep.d.ts +1 -1
- package/dist/types/utils/filter/privacy-filter.d.ts +1 -1
- package/dist/types/utils/nodes.d.ts +1 -1
- package/dist/types/utils/page-element-counts.d.ts +1 -1
- package/dist/types/utils/stepHasSlice.d.ts +1 -1
- package/package.json +2 -2
|
@@ -6,11 +6,11 @@ import { forwardRef, useEffect, useMemo, useState } from 'react';
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import debounce from 'lodash/debounce';
|
|
9
|
-
import CustomThemeButton from '@atlaskit/button/custom-theme-button';
|
|
9
|
+
import CustomThemeButton from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
10
10
|
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
13
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
14
14
|
import { commentMessages as messages } from '../media';
|
|
15
15
|
import { getBadgeSize } from './getBadgeSize';
|
|
16
16
|
const commentBadgeWrapper = css({
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
6
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
6
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
7
7
|
import { commentMessages as messages } from '../media';
|
|
8
8
|
const baseStyles = xcss({
|
|
9
9
|
borderRadius: 'radius.small'
|
|
@@ -4,7 +4,7 @@ import InfoIcon from '@atlaskit/icon/core/status-information';
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
8
8
|
import { externalMediaMessages } from '../media';
|
|
9
9
|
const baseStyles = xcss({
|
|
10
10
|
borderRadius: 'radius.small',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import debounce from 'lodash/debounce';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
6
|
const MEDIA_BADGE_VISIBILITY_BREAKPOINT = 200;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Integrations } from '@sentry/browser';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { isFedRamp } from './environment';
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "119.16.
|
|
17
|
+
const packageVersion = "119.16.2";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
import { getNodeIdProvider } from '../../node-anchor/node-anchor-provider';
|
|
5
5
|
import { processRawFragmentValue } from '../../utils/processRawFragmentValue';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Fuse from 'fuse.js';
|
|
2
2
|
import memoizeOne from 'memoize-one';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { boostNativeResultsAboveSkills } from './boost-native-results-above-skills';
|
|
6
6
|
const processQuickInsertItems = (items, intl) => {
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
13
13
|
import { isSSR } from '../core-utils/is-ssr';
|
|
14
14
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
@@ -4,6 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
8
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
8
9
|
import { isSSR } from '../core-utils';
|
|
9
10
|
import { createDispatch } from '../event-dispatcher';
|
|
@@ -22,6 +23,12 @@ export default class ReactNodeView {
|
|
|
22
23
|
// Spreading props to pass through dynamic component props
|
|
23
24
|
// Ignored via go/ees005
|
|
24
25
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
26
|
+
/**
|
|
27
|
+
* Tracks whether a React portal is currently mounted into `domRef`. Only used under
|
|
28
|
+
* `platform_editor_reduce_event_listener_count`, where a node view whose `render()`
|
|
29
|
+
* returns `null` does not mount one at all.
|
|
30
|
+
*/
|
|
31
|
+
_defineProperty(this, "hasMountedPortal", false);
|
|
25
32
|
_defineProperty(this, "decorations", []);
|
|
26
33
|
_defineProperty(this, "handleRef", node => this._handleRef(node));
|
|
27
34
|
_defineProperty(this, "dispatchAnalyticsEvent", payload => {
|
|
@@ -116,13 +123,39 @@ export default class ReactNodeView {
|
|
|
116
123
|
if (!this.domRef || !component) {
|
|
117
124
|
return;
|
|
118
125
|
}
|
|
126
|
+
|
|
127
|
+
// React 18 does event delegation per portal container: `createPortal` calls
|
|
128
|
+
// `listenToAllSupportedEvents(container)`, which registers a bubble *and* a capture
|
|
129
|
+
// listener for every supported event type — roughly 130 real `addEventListener` calls
|
|
130
|
+
// on the container element. Those listeners are never removed (React has no
|
|
131
|
+
// un-listen path), so mounting a portal for a node view that renders nothing is pure
|
|
132
|
+
// overhead that scales with the number of such nodes in the document.
|
|
133
|
+
//
|
|
134
|
+
// `PortalProviderAPI.render` already invokes the thunk eagerly (see
|
|
135
|
+
// `getPortalProviderAPI`), so evaluating the element here does not change *when*
|
|
136
|
+
// `render()` runs — the pre-evaluated element is handed to the same render call below.
|
|
137
|
+
// If a node view starts out empty and later renders something, `update()` calls back into
|
|
138
|
+
// this method and the portal is mounted at that point.
|
|
139
|
+
let renderComponent = component;
|
|
140
|
+
if (isExperimentEnabled('platform_editor_reduce_event_listener_count')) {
|
|
141
|
+
const element = component();
|
|
142
|
+
if (element === null) {
|
|
143
|
+
if (this.hasMountedPortal) {
|
|
144
|
+
this.portalProviderAPI.remove(this.key);
|
|
145
|
+
this.hasMountedPortal = false;
|
|
146
|
+
}
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this.hasMountedPortal = true;
|
|
150
|
+
renderComponent = () => element;
|
|
151
|
+
}
|
|
119
152
|
const componentWithErrorBoundary = () => {
|
|
120
153
|
var _this$node$type$name, _this$node, _this$node$type;
|
|
121
154
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
122
155
|
component: ACTION_SUBJECT.REACT_NODE_VIEW,
|
|
123
156
|
componentId: (_this$node$type$name = this === null || this === void 0 ? void 0 : (_this$node = this.node) === null || _this$node === void 0 ? void 0 : (_this$node$type = _this$node.type) === null || _this$node$type === void 0 ? void 0 : _this$node$type.name) !== null && _this$node$type$name !== void 0 ? _this$node$type$name : ACTION_SUBJECT_ID.UNKNOWN_NODE,
|
|
124
157
|
dispatchAnalyticsEvent: this.dispatchAnalyticsEvent
|
|
125
|
-
},
|
|
158
|
+
}, renderComponent());
|
|
126
159
|
};
|
|
127
160
|
this.portalProviderAPI.render(componentWithErrorBoundary,
|
|
128
161
|
// Spreading props to pass through dynamic component props
|
|
@@ -9,7 +9,7 @@ import { Box, xcss } from '@atlaskit/primitives';
|
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
11
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
12
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { messages } from '../messages/breakout';
|
|
14
14
|
import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
|
|
15
15
|
const resizerLabelStyles = xcss({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// oxlint-disable-next-line import/no-duplicates
|
|
2
2
|
|
|
3
3
|
import { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
import { isSSR } from '../core-utils/is-ssr';
|
|
7
7
|
import { getNodeIdProvider } from '../node-anchor/node-anchor-provider';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { getSliceFromSelection } from './context-helpers';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
9
|
import { getBrowserInfo } from '../../utils/browser';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
11
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
12
|
import { SortOrder } from '../types';
|
|
13
13
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from './consts';
|
|
14
14
|
import { NewSortingIcon } from './NewSortingIcon';
|
|
@@ -11,10 +11,10 @@ import { css, jsx, keyframes } from '@emotion/react';
|
|
|
11
11
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
12
12
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "119.16.
|
|
17
|
+
const packageVersion = "119.16.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef, useCallback, useEffect } from 'react';
|
|
2
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
2
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
3
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
4
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
5
5
|
import { iconOnlySpacing } from './iconOnlySpacing';
|
|
6
6
|
import { getButtonStyles } from './styles';
|
|
7
7
|
const customSizeAndPadding = {
|
|
@@ -15,7 +15,7 @@ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '
|
|
|
15
15
|
import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
16
16
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
17
17
|
import PanelRightIcon from '@atlaskit/icon/core/panel-right';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
19
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
20
20
|
import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
|
|
21
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -3,8 +3,8 @@ import React, { Component, useLayoutEffect, useMemo, useRef, useState } from 're
|
|
|
3
3
|
import Popper from 'popper.js';
|
|
4
4
|
// eslint-disable-line import/extensions
|
|
5
5
|
import rafSchedule from 'raf-schd';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { Popper as WrappedPopper } from '@atlaskit/popper/
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
|
+
import { Popper as WrappedPopper } from '@atlaskit/popper/main';
|
|
8
8
|
import { positionPropToPopperPosition } from './internal/helpers';
|
|
9
9
|
const defaultState = {
|
|
10
10
|
hasExtractedStyles: false,
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import classnames from 'classnames';
|
|
11
11
|
import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
|
|
14
14
|
import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
|
|
15
15
|
import { getMediaSinglePixelWidth } from '../../media-single/getMediaSinglePixelWidth';
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { akEditorDefaultLayoutWidth, akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { nonWrappedLayouts } from '../../utils';
|
|
14
14
|
import { calcBreakoutWidth, calcWideWidth } from '../../utils/breakout';
|
|
15
15
|
import { calcResizedWidth } from './calcResizedWidth';
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import { ResourcedMention } from '@atlaskit/mention';
|
|
4
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- TODO: migrate to @atlaskit/primitives/compiled
|
|
7
7
|
import { Anchor } from '@atlaskit/primitives/anchor';
|
|
8
8
|
import ProfileCardTrigger from '@atlaskit/profilecard/user';
|
|
@@ -9,7 +9,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import QuestionsIcon from '@atlaskit/icon/core/question-circle';
|
|
12
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
12
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
14
14
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
15
15
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
@@ -9,7 +9,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import QuestionsIcon from '@atlaskit/icon/core/question-circle';
|
|
12
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
12
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
14
14
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
15
15
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
@@ -8,7 +8,7 @@ import React, { Fragment, useContext, useMemo, useRef, useState } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import memoizeOne from 'memoize-one';
|
|
10
10
|
import rafSchedule from 'raf-schd';
|
|
11
|
-
import { WidthObserver } from '@atlaskit/width-detector';
|
|
11
|
+
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
12
12
|
import { isSSR } from '../../core-utils/is-ssr';
|
|
13
13
|
const styles = css({
|
|
14
14
|
position: 'relative',
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
import { buttonStyle, buttonWrapperStyle } from './styles';
|
|
11
11
|
const Color = props => {
|
|
12
12
|
const {
|
|
@@ -9,13 +9,13 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { useIntl } from 'react-intl';
|
|
10
10
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
11
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
12
|
-
import Button from '@atlaskit/button/
|
|
12
|
+
import Button from '@atlaskit/button/default/button';
|
|
13
13
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
15
15
|
import { Box, xcss, Inline } from '@atlaskit/primitives';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
18
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
19
19
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
20
20
|
import { colorPickerButtonMessages } from '../../messages/color-picker-button';
|
|
21
21
|
import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
|
|
@@ -11,10 +11,12 @@ import React, { PureComponent, useCallback, useContext, useMemo } from 'react';
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
14
|
-
import
|
|
14
|
+
import CustomItem from '@atlaskit/menu/custom-item';
|
|
15
|
+
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
16
|
+
import Section from '@atlaskit/menu/section';
|
|
15
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
19
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
18
20
|
import { DropdownMenuSharedCssClassName } from '../../styles';
|
|
19
21
|
import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
20
22
|
import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '../../ui-react';
|
|
@@ -9,7 +9,7 @@ import React, { useCallback } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
12
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
12
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
|
|
14
14
|
import { ToolTipContent } from '../../keymaps';
|
|
15
15
|
import Button from './styles';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
2
2
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
export const canApplyAnnotationOnRange = (rangeSelection, doc, schema) => {
|
|
5
5
|
const {
|
|
6
6
|
from,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { panelC1FallbackTransform, panelC1FallbackTransformV2, syncBlockFallbackTransform, transformDedupeMarks, transformIndentationMarks, transformInvalidMediaContent, transformMediaLinkMarks, transformNestedTablesIncomingDocument, transformNodesMissingContent, transformTextLinkCodeMarks, transformMediaSingleWidth, transformContainerNodes } from '@atlaskit/adf-utils/transforms';
|
|
2
2
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
6
6
|
import { isNestedTablesSupported } from '../nesting/isNestedTablesSupported';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
|
|
2
2
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { isSubSupType } from './isSubSupType';
|
|
5
5
|
import { markOrder } from './markOrder';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { createPopper as createLegacyPopper } from '@popperjs/core';
|
|
3
3
|
import { bind } from 'bind-event-listener';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { createPopper as createWrappedPopper } from '@atlaskit/popper/unsafe-imperative';
|
|
6
6
|
const startingOffset = {
|
|
7
7
|
name: 'offset',
|
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
6
6
|
import { uuid } from '@atlaskit/adf-schema';
|
|
7
7
|
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
11
11
|
import { mapSlice } from '../utils/slice';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Link from '@atlaskit/link';
|
|
4
|
-
import SectionMessage from '@atlaskit/section-message';
|
|
3
|
+
import Link from '@atlaskit/link/link';
|
|
4
|
+
import SectionMessage from '@atlaskit/section-message/message';
|
|
5
5
|
function AlternativePackagesMessage(_ref) {
|
|
6
6
|
var alternatePackages = _ref.alternatePackages;
|
|
7
7
|
if (!alternatePackages) {
|
|
@@ -14,7 +14,7 @@ import React, { Fragment, memo, useCallback } from 'react';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
17
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
17
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
18
18
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
19
19
|
import { DEVICE_BREAKPOINT_NUMBERS } from '../constants';
|
|
20
20
|
import useFocus from '../hooks/use-focus';
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import Loadable from 'react-loadable';
|
|
10
|
-
import Spinner from '@atlaskit/spinner';
|
|
10
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
11
|
var spinnerContainer = css({
|
|
12
12
|
display: 'flex',
|
|
13
13
|
alignItems: 'center',
|
|
@@ -15,10 +15,10 @@ import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
|
|
|
15
15
|
import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
|
|
16
16
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
17
17
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
18
|
-
import
|
|
18
|
+
import ButtonItem from '@atlaskit/menu/button-item';
|
|
19
19
|
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
21
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
22
22
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../analytics';
|
|
23
23
|
import { IconFallback } from '../../../quick-insert';
|
|
24
24
|
import { ELEMENT_ITEM_HEIGHT, ELEMENT_ITEM_PADDING, ELEMENT_LIST_PADDING, SCROLLBAR_WIDTH } from '../../constants';
|
|
@@ -7,7 +7,7 @@ import { useEffect, useRef } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl';
|
|
10
|
-
import
|
|
10
|
+
import LinkButton from '@atlaskit/button/link';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
12
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
13
13
|
import NotFoundIllustration from './NotFoundIllustration';
|
|
@@ -13,7 +13,7 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
13
13
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
14
14
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
-
import Textfield from '@atlaskit/textfield';
|
|
16
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
17
17
|
import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
18
18
|
import useFocus from '../hooks/use-focus';
|
|
19
19
|
import commonMessages from '../messages';
|
|
@@ -5,7 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useEffect, useRef } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
8
|
-
import
|
|
8
|
+
import ButtonItem from '@atlaskit/menu/button-item';
|
|
9
|
+
import Section from '@atlaskit/menu/section';
|
|
9
10
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
10
11
|
import { toolbarInsertBlockMessages } from '../../messages/insert-block';
|
|
11
12
|
var styles = {
|
|
@@ -7,7 +7,7 @@ import React, { memo, useEffect, useRef, useState } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { WidthObserver } from '@atlaskit/width-detector';
|
|
10
|
+
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
@@ -3,7 +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
|
import { useCallback, useEffect, useReducer, useRef } from 'react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { ACTIONS } from './ACTIONS';
|
|
8
8
|
import { ensureSafeIndex } from './ensureSafeIndex'; /**
|
|
9
9
|
* a custom hook that handles keyboard navigation for Arrow keys based on a
|
|
@@ -14,7 +14,7 @@ import React, { Fragment } from 'react';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import classnames from 'classnames';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
19
|
import { useSharedPluginStateWithSelector } from '../../../hooks';
|
|
20
20
|
import { NodeViewContentHole } from '../../../react-node-view/NodeViewContentHole';
|
|
@@ -13,7 +13,7 @@ import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
14
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
16
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
17
17
|
var containerStyles = css({
|
|
18
18
|
textAlign: 'left',
|
|
19
19
|
zIndex: 1,
|
|
@@ -16,7 +16,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
16
16
|
import React, { Component, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
17
17
|
import memoizeOne from 'memoize-one';
|
|
18
18
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
20
|
import { getExtensionModuleNodePrivateProps, getNodeRenderer } from '../extensions';
|
|
21
21
|
import { getExtensionRenderer, nodeToJSON, toJSON } from '../utils';
|
|
22
22
|
import Extension from './Extension/Extension';
|
|
@@ -9,7 +9,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
13
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
import { isSSR } from '../core-utils';
|
|
15
15
|
import ReactNodeView from '../react-node-view';
|
|
@@ -4,7 +4,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import Loadable from 'react-loadable';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { getExtensionKeyAndNodeKey, resolveImport } from './manifest-helpers';
|
|
9
9
|
import { messages } from './messages';
|
|
10
10
|
import { resolveImportSync } from './resolveImportSync';
|
|
@@ -10,8 +10,8 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
11
11
|
|
|
12
12
|
import EditorDoneIcon from '@atlaskit/icon/core/check-mark';
|
|
13
|
-
import
|
|
14
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
13
|
+
import ButtonItem from '@atlaskit/menu/button-item';
|
|
14
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
15
|
import { messages } from '../floating-toolbar';
|
|
16
16
|
var labelStyles = css({
|
|
17
17
|
display: 'inline-block',
|