@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.
Files changed (221) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/code-block/index.js +2 -2
  3. package/dist/cjs/doc-utils/editor-use-only.js +3 -3
  4. package/dist/cjs/element-browser/components/CategoryList.js +1 -1
  5. package/dist/cjs/element-browser/components/ElementBrowserLoader.js +1 -1
  6. package/dist/cjs/element-browser/components/ElementList/ElementList.js +4 -4
  7. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +2 -2
  8. package/dist/cjs/element-browser/components/ElementSearch.js +2 -2
  9. package/dist/cjs/element-browser/components/ViewMore.js +4 -3
  10. package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
  11. package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +3 -3
  12. package/dist/cjs/extensibility/Extension/Extension/index.js +3 -3
  13. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -2
  14. package/dist/cjs/extensibility/ExtensionComponent.js +2 -2
  15. package/dist/cjs/extensibility/extensionNodeView.js +2 -2
  16. package/dist/cjs/extensions/extension-handlers.js +2 -2
  17. package/dist/cjs/floating-toolbar/DropdownMenuItem.js +4 -4
  18. package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +5 -5
  19. package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +1 -1
  20. package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -2
  21. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -3
  22. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/utils.js +2 -2
  23. package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -1
  24. package/dist/cjs/mark/commands.js +2 -2
  25. package/dist/cjs/media-inline/inline-image-card.js +2 -2
  26. package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
  27. package/dist/cjs/media-inline/views/error-view.js +2 -2
  28. package/dist/cjs/media-inline/views/loading-view.js +1 -1
  29. package/dist/cjs/media-single/CommentBadge.js +3 -3
  30. package/dist/cjs/media-single/CommentBadgeNext.js +2 -2
  31. package/dist/cjs/media-single/ExternalImageBadge.js +2 -2
  32. package/dist/cjs/media-single/MediaBadges.js +2 -2
  33. package/dist/cjs/monitoring/error.js +4 -4
  34. package/dist/cjs/preset/core-plugin/index.js +2 -2
  35. package/dist/cjs/quick-insert/utils.js +2 -2
  36. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +2 -2
  37. package/dist/cjs/react-node-view/index.js +36 -1
  38. package/dist/cjs/resizer/Resizer.js +2 -2
  39. package/dist/cjs/safe-plugin/index.js +2 -2
  40. package/dist/cjs/selection/getLocalIdsFromSelection.js +3 -3
  41. package/dist/cjs/styles/shared/table.js +2 -2
  42. package/dist/cjs/table/SortingIcon.js +2 -2
  43. package/dist/cjs/ui/DropList/index.js +4 -4
  44. package/dist/cjs/ui/FloatingToolbar/Button.js +3 -3
  45. package/dist/cjs/ui/HoverLinkOverlay/index.js +3 -3
  46. package/dist/cjs/ui/Layer/index.js +4 -4
  47. package/dist/cjs/ui/MediaSingle/index.js +4 -4
  48. package/dist/cjs/ui/MediaSingle/styled.js +2 -2
  49. package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
  50. package/dist/cjs/ui/UnsupportedBlock/index.js +2 -2
  51. package/dist/cjs/ui/UnsupportedInline/index.js +2 -2
  52. package/dist/cjs/ui/WidthProvider/index.js +2 -2
  53. package/dist/cjs/ui-color/ColorPalette/Color/index.js +2 -2
  54. package/dist/cjs/ui-menu/ColorPickerButton/index.js +4 -4
  55. package/dist/cjs/ui-menu/DropdownMenu/index.js +8 -6
  56. package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
  57. package/dist/cjs/utils/annotation/index.js +5 -5
  58. package/dist/cjs/utils/compareNodes.js +2 -2
  59. package/dist/cjs/utils/createRule.js +2 -2
  60. package/dist/cjs/utils/processRawValue.js +3 -3
  61. package/dist/cjs/utils/validator.js +6 -6
  62. package/dist/cjs/vanilla-tooltip/index.js +2 -2
  63. package/dist/es2019/code-block/index.js +1 -1
  64. package/dist/es2019/doc-utils/editor-use-only.js +2 -2
  65. package/dist/es2019/element-browser/components/CategoryList.js +1 -1
  66. package/dist/es2019/element-browser/components/ElementBrowserLoader.js +1 -1
  67. package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -2
  68. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
  69. package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
  70. package/dist/es2019/element-browser/components/ViewMore.js +2 -1
  71. package/dist/es2019/element-browser/hooks/use-container-width.js +1 -1
  72. package/dist/es2019/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -1
  73. package/dist/es2019/extensibility/Extension/Extension/index.js +1 -1
  74. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  75. package/dist/es2019/extensibility/ExtensionComponent.js +1 -1
  76. package/dist/es2019/extensibility/extensionNodeView.js +1 -1
  77. package/dist/es2019/extensions/extension-handlers.js +1 -1
  78. package/dist/es2019/floating-toolbar/DropdownMenuItem.js +2 -2
  79. package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +3 -1
  80. package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +1 -1
  81. package/dist/es2019/link/ConfigureLinkOverlay/index.js +1 -1
  82. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  83. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/utils.js +1 -1
  84. package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -1
  85. package/dist/es2019/mark/commands.js +1 -1
  86. package/dist/es2019/media-inline/inline-image-card.js +1 -1
  87. package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
  88. package/dist/es2019/media-inline/views/error-view.js +1 -1
  89. package/dist/es2019/media-inline/views/loading-view.js +1 -1
  90. package/dist/es2019/media-single/CommentBadge.js +2 -2
  91. package/dist/es2019/media-single/CommentBadgeNext.js +1 -1
  92. package/dist/es2019/media-single/ExternalImageBadge.js +1 -1
  93. package/dist/es2019/media-single/MediaBadges.js +1 -1
  94. package/dist/es2019/monitoring/error.js +2 -2
  95. package/dist/es2019/preset/core-plugin/index.js +1 -1
  96. package/dist/es2019/quick-insert/utils.js +1 -1
  97. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -1
  98. package/dist/es2019/react-node-view/index.js +34 -1
  99. package/dist/es2019/resizer/Resizer.js +1 -1
  100. package/dist/es2019/safe-plugin/index.js +1 -1
  101. package/dist/es2019/selection/getLocalIdsFromSelection.js +1 -1
  102. package/dist/es2019/styles/shared/table.js +1 -1
  103. package/dist/es2019/table/SortingIcon.js +1 -1
  104. package/dist/es2019/ui/DropList/index.js +2 -2
  105. package/dist/es2019/ui/FloatingToolbar/Button.js +2 -2
  106. package/dist/es2019/ui/HoverLinkOverlay/index.js +1 -1
  107. package/dist/es2019/ui/Layer/index.js +2 -2
  108. package/dist/es2019/ui/MediaSingle/index.js +1 -1
  109. package/dist/es2019/ui/MediaSingle/styled.js +1 -1
  110. package/dist/es2019/ui/Mention/mention-with-profilecard.js +1 -1
  111. package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
  112. package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
  113. package/dist/es2019/ui/WidthProvider/index.js +1 -1
  114. package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -1
  115. package/dist/es2019/ui-menu/ColorPickerButton/index.js +2 -2
  116. package/dist/es2019/ui-menu/DropdownMenu/index.js +4 -2
  117. package/dist/es2019/ui-menu/ToolbarButton/index.js +1 -1
  118. package/dist/es2019/utils/annotation/index.js +1 -1
  119. package/dist/es2019/utils/compareNodes.js +1 -1
  120. package/dist/es2019/utils/createRule.js +1 -1
  121. package/dist/es2019/utils/processRawValue.js +1 -1
  122. package/dist/es2019/utils/validator.js +1 -1
  123. package/dist/es2019/vanilla-tooltip/index.js +1 -1
  124. package/dist/esm/code-block/index.js +1 -1
  125. package/dist/esm/doc-utils/editor-use-only.js +2 -2
  126. package/dist/esm/element-browser/components/CategoryList.js +1 -1
  127. package/dist/esm/element-browser/components/ElementBrowserLoader.js +1 -1
  128. package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -2
  129. package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
  130. package/dist/esm/element-browser/components/ElementSearch.js +1 -1
  131. package/dist/esm/element-browser/components/ViewMore.js +2 -1
  132. package/dist/esm/element-browser/hooks/use-container-width.js +1 -1
  133. package/dist/esm/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +1 -1
  134. package/dist/esm/extensibility/Extension/Extension/index.js +1 -1
  135. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  136. package/dist/esm/extensibility/ExtensionComponent.js +1 -1
  137. package/dist/esm/extensibility/extensionNodeView.js +1 -1
  138. package/dist/esm/extensions/extension-handlers.js +1 -1
  139. package/dist/esm/floating-toolbar/DropdownMenuItem.js +2 -2
  140. package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +3 -1
  141. package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +1 -1
  142. package/dist/esm/link/ConfigureLinkOverlay/index.js +1 -1
  143. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  144. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/utils.js +1 -1
  145. package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -1
  146. package/dist/esm/mark/commands.js +1 -1
  147. package/dist/esm/media-inline/inline-image-card.js +1 -1
  148. package/dist/esm/media-inline/media-inline-image-card.js +1 -1
  149. package/dist/esm/media-inline/views/error-view.js +1 -1
  150. package/dist/esm/media-inline/views/loading-view.js +1 -1
  151. package/dist/esm/media-single/CommentBadge.js +2 -2
  152. package/dist/esm/media-single/CommentBadgeNext.js +1 -1
  153. package/dist/esm/media-single/ExternalImageBadge.js +1 -1
  154. package/dist/esm/media-single/MediaBadges.js +1 -1
  155. package/dist/esm/monitoring/error.js +2 -2
  156. package/dist/esm/preset/core-plugin/index.js +1 -1
  157. package/dist/esm/quick-insert/utils.js +1 -1
  158. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -1
  159. package/dist/esm/react-node-view/index.js +36 -1
  160. package/dist/esm/resizer/Resizer.js +1 -1
  161. package/dist/esm/safe-plugin/index.js +1 -1
  162. package/dist/esm/selection/getLocalIdsFromSelection.js +1 -1
  163. package/dist/esm/styles/shared/table.js +1 -1
  164. package/dist/esm/table/SortingIcon.js +1 -1
  165. package/dist/esm/ui/DropList/index.js +2 -2
  166. package/dist/esm/ui/FloatingToolbar/Button.js +2 -2
  167. package/dist/esm/ui/HoverLinkOverlay/index.js +1 -1
  168. package/dist/esm/ui/Layer/index.js +2 -2
  169. package/dist/esm/ui/MediaSingle/index.js +1 -1
  170. package/dist/esm/ui/MediaSingle/styled.js +1 -1
  171. package/dist/esm/ui/Mention/mention-with-profilecard.js +1 -1
  172. package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
  173. package/dist/esm/ui/UnsupportedInline/index.js +1 -1
  174. package/dist/esm/ui/WidthProvider/index.js +1 -1
  175. package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
  176. package/dist/esm/ui-menu/ColorPickerButton/index.js +2 -2
  177. package/dist/esm/ui-menu/DropdownMenu/index.js +4 -2
  178. package/dist/esm/ui-menu/ToolbarButton/index.js +1 -1
  179. package/dist/esm/utils/annotation/index.js +1 -1
  180. package/dist/esm/utils/compareNodes.js +1 -1
  181. package/dist/esm/utils/createRule.js +1 -1
  182. package/dist/esm/utils/processRawValue.js +1 -1
  183. package/dist/esm/utils/validator.js +1 -1
  184. package/dist/esm/vanilla-tooltip/index.js +1 -1
  185. package/dist/types/annotation/index.d.ts +1 -1
  186. package/dist/types/card/appearancePropsMap.d.ts +1 -1
  187. package/dist/types/card/types.d.ts +1 -1
  188. package/dist/types/collab/index.d.ts +2 -2
  189. package/dist/types/element-browser/components/CategoryList.d.ts +2 -1
  190. package/dist/types/element-browser/components/ElementList/ElementList.d.ts +2 -1
  191. package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +2 -1
  192. package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +1 -1
  193. package/dist/types/link/ConfigureLinkOverlay/StyledButton.d.ts +1 -1
  194. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
  195. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +1 -1
  196. package/dist/types/lists/replace-content.d.ts +1 -1
  197. package/dist/types/media-inline/types.d.ts +1 -1
  198. package/dist/types/preset/core-plugin/requestDocument.d.ts +1 -1
  199. package/dist/types/react-node-view/index.d.ts +6 -0
  200. package/dist/types/resizer/Resizer.d.ts +1 -1
  201. package/dist/types/resizer/useBreakoutGuidelines.d.ts +1 -1
  202. package/dist/types/types/annotation/index.d.ts +1 -1
  203. package/dist/types/types/editor-actions.d.ts +1 -1
  204. package/dist/types/types/editor-react-context.d.ts +1 -1
  205. package/dist/types/types/floating-toolbar.d.ts +1 -1
  206. package/dist/types/types/next-editor-plugin.d.ts +1 -1
  207. package/dist/types/types/selection.d.ts +1 -1
  208. package/dist/types/ui/DropList/index.d.ts +2 -1
  209. package/dist/types/ui/FloatingToolbar/Button.d.ts +1 -1
  210. package/dist/types/ui/Layer/internal/helpers.d.ts +1 -1
  211. package/dist/types/ui/ResizerLegacy/types.d.ts +1 -1
  212. package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
  213. package/dist/types/ui-menu/ColorPickerButton/index.d.ts +2 -1
  214. package/dist/types/ui-menu/ToolbarButton/index.d.ts +2 -2
  215. package/dist/types/utils/editor-core-utils.d.ts +1 -1
  216. package/dist/types/utils/extractSliceFromStep.d.ts +1 -1
  217. package/dist/types/utils/filter/privacy-filter.d.ts +1 -1
  218. package/dist/types/utils/nodes.d.ts +1 -1
  219. package/dist/types/utils/page-element-counts.d.ts +1 -1
  220. package/dist/types/utils/stepHasSlice.d.ts +1 -1
  221. package/package.json +2 -2
@@ -11,7 +11,9 @@ import { useCallback } from 'react';
11
11
  import { jsx } from '@emotion/react';
12
12
  import { useIntl } from 'react-intl';
13
13
  import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
14
- import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
14
+ import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
15
+ import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
16
+ import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group';
15
17
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
16
18
  import PreferencesIcon from '@atlaskit/icon/core/customize';
17
19
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
@@ -7,7 +7,7 @@ var _excluded = ["innerRef"];
7
7
  */
8
8
  // 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
9
9
  import { css, jsx } from '@emotion/react';
10
- import Button from '@atlaskit/button';
10
+ import Button from '@atlaskit/button/button';
11
11
  var buttonStyles = css({
12
12
  display: 'flex',
13
13
  background: "var(--ds-background-neutral, #0515240F)",
@@ -10,7 +10,7 @@ import { useIntl } from 'react-intl';
10
10
  import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
11
11
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
12
12
  import PreferencesIcon from '@atlaskit/icon/core/customize';
13
- import Tooltip from '@atlaskit/tooltip';
13
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
14
14
  import { cardMessages } from '../../messages';
15
15
  import Dropdown from './Dropdown';
16
16
  import { StyledButton } from './StyledButton';
@@ -31,7 +31,7 @@ import PageObject from '@atlaskit/object/page';
31
31
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
32
32
  import { Pressable, xcss } from '@atlaskit/primitives';
33
33
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
34
- import Tooltip from '@atlaskit/tooltip';
34
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
35
35
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
36
36
  import { Announcer, PanelTextInput } from '../../../ui';
37
37
  import { normalizeUrl } from '../../../utils';
@@ -6,7 +6,7 @@ import PageObject from '@atlaskit/object/page';
6
6
  import StoryObject from '@atlaskit/object/story';
7
7
  import TaskObject from '@atlaskit/object/task';
8
8
  import WorkItemObject from '@atlaskit/object/work-item';
9
- import { fg } from '@atlaskit/platform-feature-flags';
9
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { utilMessages } from './utilMessages';
11
11
  var Issue16 = function Issue16(props) {
12
12
  var intl = props.intl;
@@ -6,7 +6,7 @@
6
6
 
7
7
  // 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
8
8
  import { css, jsx } from '@emotion/react';
9
- import Spinner from '@atlaskit/spinner';
9
+ import Spinner from '@atlaskit/spinner/spinner';
10
10
  import ForwardedLinkSearchListItemNextWithIntl from './LinkSearchListItem';
11
11
  var listContainer = css({
12
12
  paddingTop: 0,
@@ -2,7 +2,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
2
2
  // eslint-disable-next-line no-duplicate-imports
3
3
 
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
- import { fg } from '@atlaskit/platform-feature-flags';
5
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
6
6
  import { entireSelectionContainsMark } from './entireSelectionContainsMark';
7
7
  var SMART_TO_ASCII = {
8
8
  '…': '...',
@@ -8,7 +8,7 @@ import { Fragment, useCallback, useMemo } from 'react';
8
8
  import { jsx } from '@emotion/react';
9
9
  import { getRandomHex } from '@atlaskit/media-common';
10
10
  import { useFilePreview } from '@atlaskit/media-file-preview';
11
- import { MediaImage } from '@atlaskit/media-ui';
11
+ import { MediaImage } from '@atlaskit/media-ui/mediaImage';
12
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
13
  import { InlineImageCardLoadingView } from './views/loading-view';
14
14
  export var InlineImageCard = function InlineImageCard(_ref) {
@@ -15,7 +15,7 @@ import { createIntl, injectIntl } from 'react-intl';
15
15
  import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
16
16
  import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardError } from '@atlaskit/media-card';
17
17
  import { FileFetcherError } from '@atlaskit/media-client';
18
- import { MediaClientContext } from '@atlaskit/media-client-react';
18
+ import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
19
19
  import { MediaViewer } from '@atlaskit/media-viewer';
20
20
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
21
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -6,7 +6,7 @@
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 WarningIcon from '@atlaskit/icon/core/status-warning';
9
- import Tooltip from '@atlaskit/tooltip';
9
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
10
10
  import { Frame } from './frame';
11
11
  import { IconWrapper } from './icon-wrapper';
12
12
  export var InlineImageCardErrorView = function InlineImageCardErrorView(_ref) {
@@ -5,7 +5,7 @@
5
5
 
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
- import Spinner from '@atlaskit/spinner';
8
+ import Spinner from '@atlaskit/spinner/spinner';
9
9
  import { ICON_SIZE_THRESOLD } from './constants';
10
10
  import { Frame } from './frame';
11
11
  export var InlineImageCardLoadingView = function InlineImageCardLoadingView(_ref) {
@@ -7,11 +7,11 @@ import { forwardRef, useEffect, useMemo, useState } 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 debounce from 'lodash/debounce';
10
- import CustomThemeButton from '@atlaskit/button/custom-theme-button';
10
+ import CustomThemeButton from '@atlaskit/button/custom-theme-button/custom-theme-button';
11
11
  import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
12
12
  import CommentIcon from '@atlaskit/icon/core/comment';
13
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
- import Tooltip from '@atlaskit/tooltip';
14
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
15
15
  import { commentMessages as messages } from '../media';
16
16
  import { getBadgeSize } from './getBadgeSize';
17
17
  var 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
  var 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
  var baseStyles = xcss({
10
10
  borderRadius: 'radius.small',
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useEffect, useState } from 'react';
3
3
  import debounce from 'lodash/debounce';
4
- import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
5
5
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
6
6
  import { Box, xcss } from '@atlaskit/primitives';
7
7
  var MEDIA_BADGE_VISIBILITY_BREAKPOINT = 200;
@@ -5,7 +5,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  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; }
6
6
  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; }
7
7
  import { Integrations } from '@sentry/browser';
8
- import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
9
9
  import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
 
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "119.16.0";
23
+ var packageVersion = "119.16.2";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // 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';
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
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 Fuse from 'fuse.js';
6
6
  import memoizeOne from 'memoize-one';
7
- import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
8
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
9
  import { boostNativeResultsAboveSkills } from './boost-native-results-above-skills';
10
10
  var processQuickInsertItems = function processQuickInsertItems(items, intl) {
@@ -11,7 +11,7 @@ import React from 'react';
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { jsx } from '@emotion/react';
13
13
  import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
14
- import { fg } from '@atlaskit/platform-feature-flags';
14
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
16
16
  import { isSSR } from '../core-utils/is-ssr';
17
17
  import { ErrorBoundary } from '../ui/ErrorBoundary';
@@ -6,6 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
6
  /* eslint-disable @atlaskit/editor/no-re-export */
7
7
 
8
8
  import React from 'react';
9
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
10
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
10
11
  import { isSSR } from '../core-utils';
11
12
  import { createDispatch } from '../event-dispatcher';
@@ -26,6 +27,12 @@ var ReactNodeView = /*#__PURE__*/function () {
26
27
  // Spreading props to pass through dynamic component props
27
28
  // Ignored via go/ees005
28
29
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
+ /**
31
+ * Tracks whether a React portal is currently mounted into `domRef`. Only used under
32
+ * `platform_editor_reduce_event_listener_count`, where a node view whose `render()`
33
+ * returns `null` does not mount one at all.
34
+ */
35
+ _defineProperty(this, "hasMountedPortal", false);
29
36
  _defineProperty(this, "decorations", []);
30
37
  _defineProperty(this, "handleRef", function (node) {
31
38
  return _this._handleRef(node);
@@ -129,13 +136,41 @@ var ReactNodeView = /*#__PURE__*/function () {
129
136
  if (!this.domRef || !component) {
130
137
  return;
131
138
  }
139
+
140
+ // React 18 does event delegation per portal container: `createPortal` calls
141
+ // `listenToAllSupportedEvents(container)`, which registers a bubble *and* a capture
142
+ // listener for every supported event type — roughly 130 real `addEventListener` calls
143
+ // on the container element. Those listeners are never removed (React has no
144
+ // un-listen path), so mounting a portal for a node view that renders nothing is pure
145
+ // overhead that scales with the number of such nodes in the document.
146
+ //
147
+ // `PortalProviderAPI.render` already invokes the thunk eagerly (see
148
+ // `getPortalProviderAPI`), so evaluating the element here does not change *when*
149
+ // `render()` runs — the pre-evaluated element is handed to the same render call below.
150
+ // If a node view starts out empty and later renders something, `update()` calls back into
151
+ // this method and the portal is mounted at that point.
152
+ var renderComponent = component;
153
+ if (isExperimentEnabled('platform_editor_reduce_event_listener_count')) {
154
+ var element = component();
155
+ if (element === null) {
156
+ if (this.hasMountedPortal) {
157
+ this.portalProviderAPI.remove(this.key);
158
+ this.hasMountedPortal = false;
159
+ }
160
+ return;
161
+ }
162
+ this.hasMountedPortal = true;
163
+ renderComponent = function renderComponent() {
164
+ return element;
165
+ };
166
+ }
132
167
  var componentWithErrorBoundary = function componentWithErrorBoundary() {
133
168
  var _this3$node$type$name, _this3$node;
134
169
  return /*#__PURE__*/React.createElement(ErrorBoundary, {
135
170
  component: ACTION_SUBJECT.REACT_NODE_VIEW,
136
171
  componentId: (_this3$node$type$name = _this3 === null || _this3 === void 0 || (_this3$node = _this3.node) === null || _this3$node === void 0 || (_this3$node = _this3$node.type) === null || _this3$node === void 0 ? void 0 : _this3$node.name) !== null && _this3$node$type$name !== void 0 ? _this3$node$type$name : ACTION_SUBJECT_ID.UNKNOWN_NODE,
137
172
  dispatchAnalyticsEvent: _this3.dispatchAnalyticsEvent
138
- }, component());
173
+ }, renderComponent());
139
174
  };
140
175
  this.portalProviderAPI.render(componentWithErrorBoundary,
141
176
  // Spreading props to pass through dynamic component props
@@ -15,7 +15,7 @@ import { Box, xcss } from '@atlaskit/primitives';
15
15
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
16
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
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 { messages } from '../messages/breakout';
20
20
  import { handleWrapperClass, resizerDangerClassName, resizerExtendedZone, resizerHandleClassName, resizerHandleThumbClassName, resizerHandleTrackClassName, resizerHandleZIndex, resizerHoverZoneClassName, resizerItemClassName } from '../styles/shared/resizer';
21
21
  var resizerLabelStyles = xcss({
@@ -12,7 +12,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
12
12
  // oxlint-disable-next-line import/no-duplicates
13
13
 
14
14
  import { Plugin } from '@atlaskit/editor-prosemirror/state';
15
- import { fg } from '@atlaskit/platform-feature-flags';
15
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
16
16
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
17
  import { isSSR } from '../core-utils/is-ssr';
18
18
  import { getNodeIdProvider } from '../node-anchor/node-anchor-provider';
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
3
3
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
4
- import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
5
5
  import { getSliceFromSelection } from './context-helpers';
6
6
 
7
7
  /**
@@ -5,7 +5,7 @@ var _templateObject, _templateObject2;
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
6
  import { css } from '@emotion/react';
7
7
  import { akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
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 { getBrowserInfo } from '../../utils/browser';
@@ -10,7 +10,7 @@ var _templateObject, _templateObject2;
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { injectIntl } from 'react-intl';
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 { SortOrder } from '../types';
15
15
  import { SORTABLE_COLUMN_ICON_CLASSNAME } from './consts';
16
16
  import { NewSortingIcon } from './NewSortingIcon';
@@ -18,10 +18,10 @@ import { css, jsx, keyframes } from '@emotion/react';
18
18
  import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
19
19
  import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
- import { fg } from '@atlaskit/platform-feature-flags';
21
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "119.16.0";
24
+ var packageVersion = "119.16.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -5,9 +5,9 @@ var _excluded = ["buttonStyles"];
5
5
  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; }
6
6
  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; }
7
7
  import React, { forwardRef, useCallback, useEffect } from 'react';
8
- import Button from '@atlaskit/button/custom-theme-button';
8
+ import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
9
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
- import Tooltip from '@atlaskit/tooltip';
10
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
11
11
  import { iconOnlySpacing } from './iconOnlySpacing';
12
12
  import { getButtonStyles } from './styles';
13
13
  var customSizeAndPadding = {
@@ -16,7 +16,7 @@ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '
16
16
  import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
17
17
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
18
18
  import PanelRightIcon from '@atlaskit/icon/core/panel-right';
19
- import { fg } from '@atlaskit/platform-feature-flags';
19
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
20
20
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
21
21
  import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
22
22
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -13,8 +13,8 @@ import React, { Component, useLayoutEffect, useMemo, useRef, useState } from 're
13
13
  import Popper from 'popper.js';
14
14
  // eslint-disable-line import/extensions
15
15
  import rafSchedule from 'raf-schd';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
- import { Popper as WrappedPopper } from '@atlaskit/popper/popper';
16
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
17
+ import { Popper as WrappedPopper } from '@atlaskit/popper/main';
18
18
  import { positionPropToPopperPosition } from './internal/helpers';
19
19
  var defaultState = {
20
20
  hasExtractedStyles: false,
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  import { jsx } from '@emotion/react';
11
11
  import classnames from 'classnames';
12
12
  import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
13
- import { fg } from '@atlaskit/platform-feature-flags';
13
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
14
14
  import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
15
15
  import { MEDIA_SINGLE_GUTTER_SIZE } from '../../media-single/constants';
16
16
  import { getMediaSinglePixelWidth } from '../../media-single/getMediaSinglePixelWidth';
@@ -13,7 +13,7 @@ import React from 'react';
13
13
  // 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
14
14
  import { css, jsx } from '@emotion/react';
15
15
  import { akEditorDefaultLayoutWidth, akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
16
- import { fg } from '@atlaskit/platform-feature-flags';
16
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
17
17
  import { nonWrappedLayouts } from '../../utils';
18
18
  import { calcBreakoutWidth, calcWideWidth } from '../../utils/breakout';
19
19
  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';
@@ -9,7 +9,7 @@ import React, { Fragment, useContext, useMemo, useRef, useState } from 'react';
9
9
  import { css, jsx } from '@emotion/react';
10
10
  import memoizeOne from 'memoize-one';
11
11
  import rafSchedule from 'raf-schd';
12
- import { WidthObserver } from '@atlaskit/width-detector';
12
+ import { WidthObserver } from '@atlaskit/width-detector/width-observer';
13
13
  import { isSSR } from '../../core-utils/is-ssr';
14
14
  var styles = css({
15
15
  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
  var Color = function Color(props) {
12
12
  var autoFocus = props.autoFocus,
@@ -10,13 +10,13 @@ import { css, jsx } from '@emotion/react';
10
10
  import { useIntl } from 'react-intl';
11
11
  import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
12
12
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
13
- import Button from '@atlaskit/button/new';
13
+ import Button from '@atlaskit/button/default/button';
14
14
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
15
15
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
16
16
  import { Box, xcss, Inline } from '@atlaskit/primitives';
17
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
18
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
19
- import Tooltip from '@atlaskit/tooltip';
19
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
20
20
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
21
21
  import { colorPickerButtonMessages } from '../../messages/color-picker-button';
22
22
  import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
@@ -26,10 +26,12 @@ import React, { PureComponent, useCallback, useContext, useMemo } from 'react';
26
26
  // 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
27
27
  import { css, jsx } from '@emotion/react';
28
28
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
29
- import { CustomItem, MenuGroup, Section } from '@atlaskit/menu';
29
+ import CustomItem from '@atlaskit/menu/custom-item';
30
+ import MenuGroup from '@atlaskit/menu/menu-group';
31
+ import Section from '@atlaskit/menu/section';
30
32
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
31
33
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
32
- import Tooltip from '@atlaskit/tooltip';
34
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
33
35
  import { DropdownMenuSharedCssClassName } from '../../styles';
34
36
  import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
35
37
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '../../ui-react';
@@ -12,7 +12,7 @@ import React, { useCallback } from 'react';
12
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
13
  import { css, jsx } from '@emotion/react';
14
14
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
15
- import Tooltip from '@atlaskit/tooltip';
15
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
16
16
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics';
17
17
  import { ToolTipContent } from '../../keymaps';
18
18
  import Button from './styles';
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  /* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
3
3
  import { AnnotationTypes } from '@atlaskit/adf-schema';
4
- import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
5
5
  export var canApplyAnnotationOnRange = function canApplyAnnotationOnRange(rangeSelection, doc, schema) {
6
6
  var from = rangeSelection.from,
7
7
  to = rangeSelection.to;
@@ -1,5 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
  import { SortOrder } from '../types';
4
4
  import { ContentType } from './ContentType';
5
5
  function getLinkMark(node) {
@@ -1,4 +1,4 @@
1
- import { closeHistory } from '@atlaskit/prosemirror-history';
1
+ import { closeHistory } from '@atlaskit/prosemirror-history/closeHistory';
2
2
  export var createRule = function createRule(match, handler) {
3
3
  var allowsBackwardMatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
4
4
  return {
@@ -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';
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
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 { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
6
6
  import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
7
- import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
8
8
  import { isSubSupType } from './isSubSupType';
9
9
  import { markOrder } from './markOrder';
10
10
 
@@ -5,7 +5,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  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; }
6
6
  import { createPopper as createLegacyPopper } from '@popperjs/core';
7
7
  import { bind } from 'bind-event-listener';
8
- import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
9
9
  import { createPopper as createWrappedPopper } from '@atlaskit/popper/unsafe-imperative';
10
10
  var startingOffset = {
11
11
  name: 'offset',
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import type { AnnotationId } from '@atlaskit/adf-schema';
3
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
3
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
4
4
  import type { AddNodeMarkStep, AddMarkStep, RemoveNodeMarkStep, RemoveMarkStep } from '@atlaskit/editor-prosemirror/transform';
5
5
  export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation' | 'sethoveredannotation' | 'removehoveredannotation' | 'closeinlinecomment';
6
6
  export type VisibilityEvent = 'setvisibility';
@@ -1,4 +1,4 @@
1
- import type { NewCoreIconProps } from '@atlaskit/icon';
1
+ import type { NewCoreIconProps } from '@atlaskit/icon/types';
2
2
  export declare const appearancePropsMap: {
3
3
  block: {
4
4
  icon: {
@@ -1,5 +1,5 @@
1
1
  import type { IntlShape } from 'react-intl';
2
- import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
3
3
  import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { ACTION, EditorAnalyticsAPI, INPUT_METHOD } from '../analytics';
@@ -1,10 +1,10 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { SerializedStyles } from '@emotion/react';
3
3
  import type { BatchAttrsStep, OverrideDocumentStepJSON as OverrideDocumentStep } from '@atlaskit/adf-schema/steps';
4
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
4
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
5
5
  import type { Node as PMNode, Slice } from '@atlaskit/editor-prosemirror/model';
6
6
  import type { EditorState, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
7
- import type { Step } from '@atlaskit/editor-prosemirror/transform';
7
+ import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
8
8
  import { token } from '@atlaskit/tokens';
9
9
  import type { Providers } from '../provider-factory';
10
10
  import type { GetResolvedEditorStateReason } from '../types';