@atlaskit/editor-common 130.3.2 → 130.4.0

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 (202) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
  3. package/dist/cjs/collab/index.js +2 -2
  4. package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
  5. package/dist/cjs/element-browser/components/ElementSearch.js +8 -8
  6. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -3
  7. package/dist/cjs/extensions/buildMenuItem.js +5 -2
  8. package/dist/cjs/guideline/defaultGuideline.js +2 -2
  9. package/dist/cjs/guideline/getContainerWidthOrFullEditorWidth.js +4 -4
  10. package/dist/cjs/guideline/getMediaSingleDimensions.js +2 -2
  11. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +2 -2
  12. package/dist/cjs/media-inline/inline-image-card.js +2 -2
  13. package/dist/cjs/media-inline/inline-image-wrapper.js +2 -2
  14. package/dist/cjs/media-inline/media-inline-image-card.js +2 -2
  15. package/dist/cjs/media-single/CommentBadge.js +2 -2
  16. package/dist/cjs/media-single/calcMediaSingleMaxWidth.js +5 -5
  17. package/dist/cjs/media-single/getMediaSingleInitialWidth.js +5 -5
  18. package/dist/cjs/media-single/utils.js +4 -4
  19. package/dist/cjs/monitoring/error.js +1 -1
  20. package/dist/cjs/nesting/transformContainerNodesWhenRequired.js +2 -2
  21. package/dist/cjs/node-selection/index.js +2 -2
  22. package/dist/cjs/node-width/index.js +8 -8
  23. package/dist/cjs/quick-insert/build-quick-insert-menu-model.js +4 -2
  24. package/dist/cjs/quick-insert/get-matching-quick-insert-components.js +9 -6
  25. package/dist/cjs/quick-insert/quick-insert-rank.js +32 -0
  26. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +0 -4
  27. package/dist/cjs/resizer/BreakoutResizer.js +6 -6
  28. package/dist/cjs/resizer/useBreakoutGuidelines.js +9 -9
  29. package/dist/cjs/selection/index.js +13 -13
  30. package/dist/cjs/styles/shared/blockquote.js +2 -2
  31. package/dist/cjs/styles/shared/calcTableWidth.js +4 -4
  32. package/dist/cjs/styles/shared/mapBackgroundColors.js +2 -2
  33. package/dist/cjs/styles/shared/media-single.js +2 -2
  34. package/dist/cjs/styles/shared/panel.js +2 -2
  35. package/dist/cjs/styles/shared/table.js +4 -3
  36. package/dist/cjs/table/NewSortingIcon.js +4 -3
  37. package/dist/cjs/toolbar/EditorToolbarUIProvider.js +2 -2
  38. package/dist/cjs/type-ahead/item-rank.js +36 -0
  39. package/dist/cjs/ui/BaseTheme/index.js +2 -2
  40. package/dist/cjs/ui/DropList/index.js +1 -1
  41. package/dist/cjs/ui/Expand/index.js +2 -2
  42. package/dist/cjs/ui/HoverLinkOverlay/index.js +2 -2
  43. package/dist/cjs/ui/MediaSingle/grid.js +3 -3
  44. package/dist/cjs/ui/MediaSingle/index.js +5 -5
  45. package/dist/cjs/ui/MediaSingle/styled.js +5 -5
  46. package/dist/cjs/ui/PanelTextInput/styles.js +2 -2
  47. package/dist/cjs/ui/Popup/index.js +2 -2
  48. package/dist/cjs/ui/ResizerLegacy/index.js +2 -2
  49. package/dist/cjs/ui/TableSelector/index.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-menu/DropdownMenu/index.js +2 -2
  53. package/dist/cjs/utils/areDocsEqualByBlockStructureAndText.js +2 -2
  54. package/dist/cjs/utils/breakout.js +10 -10
  55. package/dist/cjs/utils/calculateSnapPoints.js +2 -2
  56. package/dist/cjs/utils/filter/privacy-filter.js +2 -2
  57. package/dist/cjs/utils/page-element-counts.js +4 -4
  58. package/dist/cjs/utils/processRawValue.js +21 -10
  59. package/dist/cjs/utils/unsupportedContent/get-unsupported-content-level-data.js +3 -3
  60. package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -1
  61. package/dist/es2019/collab/index.js +1 -1
  62. package/dist/es2019/element-browser/components/ElementList/ElementList.js +1 -1
  63. package/dist/es2019/element-browser/components/ElementSearch.js +2 -2
  64. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +1 -1
  65. package/dist/es2019/extensions/buildMenuItem.js +3 -0
  66. package/dist/es2019/guideline/defaultGuideline.js +1 -1
  67. package/dist/es2019/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
  68. package/dist/es2019/guideline/getMediaSingleDimensions.js +1 -1
  69. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +1 -1
  70. package/dist/es2019/media-inline/inline-image-card.js +1 -1
  71. package/dist/es2019/media-inline/inline-image-wrapper.js +1 -1
  72. package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
  73. package/dist/es2019/media-single/CommentBadge.js +1 -1
  74. package/dist/es2019/media-single/calcMediaSingleMaxWidth.js +1 -1
  75. package/dist/es2019/media-single/getMediaSingleInitialWidth.js +1 -1
  76. package/dist/es2019/media-single/utils.js +1 -1
  77. package/dist/es2019/monitoring/error.js +1 -1
  78. package/dist/es2019/nesting/transformContainerNodesWhenRequired.js +1 -1
  79. package/dist/es2019/node-selection/index.js +1 -1
  80. package/dist/es2019/node-width/index.js +1 -1
  81. package/dist/es2019/quick-insert/build-quick-insert-menu-model.js +4 -2
  82. package/dist/es2019/quick-insert/get-matching-quick-insert-components.js +9 -6
  83. package/dist/es2019/quick-insert/quick-insert-rank.js +28 -0
  84. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +0 -4
  85. package/dist/es2019/resizer/BreakoutResizer.js +1 -1
  86. package/dist/es2019/resizer/useBreakoutGuidelines.js +1 -1
  87. package/dist/es2019/selection/index.js +2 -2
  88. package/dist/es2019/styles/shared/blockquote.js +1 -1
  89. package/dist/es2019/styles/shared/calcTableWidth.js +1 -1
  90. package/dist/es2019/styles/shared/mapBackgroundColors.js +1 -1
  91. package/dist/es2019/styles/shared/media-single.js +1 -1
  92. package/dist/es2019/styles/shared/panel.js +1 -1
  93. package/dist/es2019/styles/shared/table.js +2 -1
  94. package/dist/es2019/table/NewSortingIcon.js +2 -1
  95. package/dist/es2019/toolbar/EditorToolbarUIProvider.js +1 -1
  96. package/dist/es2019/type-ahead/item-rank.js +27 -0
  97. package/dist/es2019/ui/BaseTheme/index.js +1 -1
  98. package/dist/es2019/ui/DropList/index.js +1 -1
  99. package/dist/es2019/ui/Expand/index.js +1 -1
  100. package/dist/es2019/ui/HoverLinkOverlay/index.js +1 -1
  101. package/dist/es2019/ui/MediaSingle/grid.js +1 -1
  102. package/dist/es2019/ui/MediaSingle/index.js +1 -1
  103. package/dist/es2019/ui/MediaSingle/styled.js +1 -1
  104. package/dist/es2019/ui/PanelTextInput/styles.js +1 -1
  105. package/dist/es2019/ui/Popup/index.js +1 -1
  106. package/dist/es2019/ui/ResizerLegacy/index.js +1 -1
  107. package/dist/es2019/ui/TableSelector/index.js +1 -1
  108. package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
  109. package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
  110. package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -1
  111. package/dist/es2019/utils/areDocsEqualByBlockStructureAndText.js +1 -1
  112. package/dist/es2019/utils/breakout.js +1 -1
  113. package/dist/es2019/utils/calculateSnapPoints.js +1 -1
  114. package/dist/es2019/utils/filter/privacy-filter.js +1 -1
  115. package/dist/es2019/utils/page-element-counts.js +1 -1
  116. package/dist/es2019/utils/processRawValue.js +12 -1
  117. package/dist/es2019/utils/unsupportedContent/get-unsupported-content-level-data.js +1 -1
  118. package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -1
  119. package/dist/esm/collab/index.js +1 -1
  120. package/dist/esm/element-browser/components/ElementList/ElementList.js +1 -1
  121. package/dist/esm/element-browser/components/ElementSearch.js +2 -2
  122. package/dist/esm/extensibility/Extension/InlineExtension/index.js +1 -1
  123. package/dist/esm/extensions/buildMenuItem.js +5 -2
  124. package/dist/esm/guideline/defaultGuideline.js +1 -1
  125. package/dist/esm/guideline/getContainerWidthOrFullEditorWidth.js +1 -1
  126. package/dist/esm/guideline/getMediaSingleDimensions.js +1 -1
  127. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +1 -1
  128. package/dist/esm/media-inline/inline-image-card.js +1 -1
  129. package/dist/esm/media-inline/inline-image-wrapper.js +1 -1
  130. package/dist/esm/media-inline/media-inline-image-card.js +1 -1
  131. package/dist/esm/media-single/CommentBadge.js +1 -1
  132. package/dist/esm/media-single/calcMediaSingleMaxWidth.js +1 -1
  133. package/dist/esm/media-single/getMediaSingleInitialWidth.js +1 -1
  134. package/dist/esm/media-single/utils.js +1 -1
  135. package/dist/esm/monitoring/error.js +1 -1
  136. package/dist/esm/nesting/transformContainerNodesWhenRequired.js +1 -1
  137. package/dist/esm/node-selection/index.js +1 -1
  138. package/dist/esm/node-width/index.js +1 -1
  139. package/dist/esm/quick-insert/build-quick-insert-menu-model.js +4 -2
  140. package/dist/esm/quick-insert/get-matching-quick-insert-components.js +9 -6
  141. package/dist/esm/quick-insert/quick-insert-rank.js +27 -0
  142. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +0 -4
  143. package/dist/esm/resizer/BreakoutResizer.js +1 -1
  144. package/dist/esm/resizer/useBreakoutGuidelines.js +1 -1
  145. package/dist/esm/selection/index.js +2 -2
  146. package/dist/esm/styles/shared/blockquote.js +1 -1
  147. package/dist/esm/styles/shared/calcTableWidth.js +1 -1
  148. package/dist/esm/styles/shared/mapBackgroundColors.js +1 -1
  149. package/dist/esm/styles/shared/media-single.js +1 -1
  150. package/dist/esm/styles/shared/panel.js +1 -1
  151. package/dist/esm/styles/shared/table.js +2 -1
  152. package/dist/esm/table/NewSortingIcon.js +2 -1
  153. package/dist/esm/toolbar/EditorToolbarUIProvider.js +1 -1
  154. package/dist/esm/type-ahead/item-rank.js +29 -0
  155. package/dist/esm/ui/BaseTheme/index.js +1 -1
  156. package/dist/esm/ui/DropList/index.js +1 -1
  157. package/dist/esm/ui/Expand/index.js +1 -1
  158. package/dist/esm/ui/HoverLinkOverlay/index.js +1 -1
  159. package/dist/esm/ui/MediaSingle/grid.js +1 -1
  160. package/dist/esm/ui/MediaSingle/index.js +1 -1
  161. package/dist/esm/ui/MediaSingle/styled.js +1 -1
  162. package/dist/esm/ui/PanelTextInput/styles.js +1 -1
  163. package/dist/esm/ui/Popup/index.js +1 -1
  164. package/dist/esm/ui/ResizerLegacy/index.js +1 -1
  165. package/dist/esm/ui/TableSelector/index.js +1 -1
  166. package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
  167. package/dist/esm/ui/UnsupportedInline/index.js +1 -1
  168. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -1
  169. package/dist/esm/utils/areDocsEqualByBlockStructureAndText.js +1 -1
  170. package/dist/esm/utils/breakout.js +1 -1
  171. package/dist/esm/utils/calculateSnapPoints.js +1 -1
  172. package/dist/esm/utils/filter/privacy-filter.js +1 -1
  173. package/dist/esm/utils/page-element-counts.js +1 -1
  174. package/dist/esm/utils/processRawValue.js +12 -1
  175. package/dist/esm/utils/unsupportedContent/get-unsupported-content-level-data.js +1 -1
  176. package/dist/types/analytics/types/table-events.d.ts +1 -1
  177. package/dist/types/card/cardOptions.d.ts +1 -1
  178. package/dist/types/extensions/types/extension-manifest.d.ts +1 -0
  179. package/dist/types/extensions/types/utils.d.ts +1 -0
  180. package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
  181. package/dist/types/link/LinkSearch/types.d.ts +1 -1
  182. package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
  183. package/dist/types/media-inline/inline-image-card.d.ts +2 -2
  184. package/dist/types/media-inline/media-inline-image-card.d.ts +2 -1
  185. package/dist/types/media-inline/types.d.ts +1 -1
  186. package/dist/types/provider-factory/types.d.ts +1 -1
  187. package/dist/types/quick-insert/build-quick-insert-menu-model.d.ts +2 -1
  188. package/dist/types/quick-insert/get-matching-quick-insert-components.d.ts +3 -1
  189. package/dist/types/quick-insert/quick-insert-rank.d.ts +3 -0
  190. package/dist/types/toolbar/EditorToolbarUIProvider.d.ts +1 -1
  191. package/dist/types/toolbar/getInputMethodFromParentKeys.d.ts +1 -1
  192. package/dist/types/toolbar/types.d.ts +1 -1
  193. package/dist/types/type-ahead/item-rank.d.ts +12 -0
  194. package/dist/types/types/annotation/index.d.ts +2 -0
  195. package/dist/types/types/hyperlink.d.ts +1 -1
  196. package/dist/types/types/quick-insert.d.ts +2 -0
  197. package/dist/types/types/type-ahead.d.ts +3 -0
  198. package/dist/types/ui/EventHandlers/index.d.ts +1 -1
  199. package/dist/types/utils/isSupportedInParent.d.ts +1 -1
  200. package/package.json +2 -2
  201. package/quick-insert/quick-insert-rank/package.json +10 -0
  202. package/type-ahead/item-rank/package.json +10 -0
@@ -7,7 +7,7 @@ import React, { Fragment, useMemo } from 'react';
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
9
  import classnames from 'classnames';
10
- import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
10
+ import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
11
11
  import { fg } from '@atlaskit/platform-feature-flags/fg';
12
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
13
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -13,7 +13,7 @@ export function buildMenuItem(manifest, extensionModule) {
13
13
  if (!node) {
14
14
  throw new Error("Couldn't find any action for ".concat(title, " (").concat(key, ")"));
15
15
  }
16
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread({
16
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
17
17
  app: (_ref = (_extensionModule$app = extensionModule.app) !== null && _extensionModule$app !== void 0 ? _extensionModule$app : manifest.app) !== null && _ref !== void 0 ? _ref : {
18
18
  key: manifest.key
19
19
  },
@@ -37,7 +37,10 @@ export function buildMenuItem(manifest, extensionModule) {
37
37
  }), extensionModule.lozenge != null && {
38
38
  lozenge: extensionModule.lozenge
39
39
  }), {}, {
40
- icon: extensionModule.icon || manifest.icons['48'],
40
+ icon: extensionModule.icon || manifest.icons['48']
41
+ }, extensionModule.isHidden ? {
42
+ isHidden: extensionModule.isHidden
43
+ } : {}), {}, {
41
44
  node: node
42
45
  });
43
46
  }
@@ -1,6 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import memoizeOne from 'memoize-one';
3
- import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
3
+ import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
4
4
  import { roundToNearest } from '../media-single';
5
5
  import { getContainerWidthOrFullEditorWidth } from './getContainerWidthOrFullEditorWidth';
6
6
  var getDefaultGuidelines = memoizeOne(function (editorWidth) {
@@ -1,4 +1,4 @@
1
- import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
1
+ import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
2
2
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
1
+ import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
2
2
  import { getMediaSinglePixelWidth, roundToNearest } from '../media-single';
3
3
 
4
4
  /**
@@ -11,7 +11,7 @@ import { css, jsx } from '@emotion/react';
11
11
  // AFP-2532 TODO: Fix automatic suppressions below
12
12
 
13
13
  import { injectIntl } from 'react-intl';
14
- import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
14
+ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
15
15
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
16
  import { getCorrectAltByIconUrl } from './listItemAlts';
17
17
  import { transformTimeStamp } from './transformTimeStamp';
@@ -6,7 +6,7 @@ import { Fragment, useCallback, useMemo } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
- import { getRandomHex } from '@atlaskit/media-common';
9
+ import { getRandomHex } from '@atlaskit/media-common/helpers';
10
10
  import { useFilePreview } from '@atlaskit/media-file-preview/use-file-preview';
11
11
  import { MediaImage } from '@atlaskit/media-ui/mediaImage';
12
12
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
9
9
 
10
10
  // 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
11
11
  import { css, jsx } from '@emotion/react';
12
- import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
12
+ import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette/border';
13
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
14
  import { borderStyle, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, INLINE_IMAGE_WRAPPER_CLASS_NAME, selectedStyle, wrapperStyle } from './styles';
15
15
 
@@ -18,7 +18,7 @@ import { fireSucceededOperationalEvent as fireSucceededMediaInlineEvent } from '
18
18
  import { MediaCardError } from '@atlaskit/media-card/media-card-error';
19
19
  import { FileFetcherError } from '@atlaskit/media-client';
20
20
  import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
21
- import { MediaViewer } from '@atlaskit/media-viewer';
21
+ import MediaViewer from '@atlaskit/media-viewer/media-viewer-loader';
22
22
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
23
23
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
24
24
  import { messages } from '../messages/media-inline-card';
@@ -8,7 +8,7 @@ import { forwardRef, useEffect, useMemo, useState } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import debounce from 'lodash/debounce';
10
10
  import CustomThemeButton from '@atlaskit/button/custom-theme-button/custom-theme-button';
11
- import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
11
+ import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles/constants';
12
12
  import CommentIcon from '@atlaskit/icon/core/comment';
13
13
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
14
14
  import Tooltip from '@atlaskit/tooltip/Tooltip';
@@ -1,4 +1,4 @@
1
- import { akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
1
+ import { akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
2
2
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
3
3
  /**
4
4
  * Calculate maximum width allowed for media single node in fix-width editor in new experience
@@ -1,4 +1,4 @@
1
- import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
1
+ import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
2
2
  import { DEFAULT_IMAGE_WIDTH, MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH } from './constants';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
1
+ import { breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
2
2
  import { floatingLayouts } from '../utils/floatingLayouts';
3
3
  import { calcMediaSingleMaxWidth } from './calcMediaSingleMaxWidth';
4
4
  import { wrappedLayouts } from './constants';
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
19
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "130.3.1";
22
+ var packageVersion = "130.3.3";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import { traverse } from '@atlaskit/adf-utils/traverse';
4
+ import { traverse } from '@atlaskit/adf-utils/traverse/main';
5
5
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
6
6
  /**
7
7
  * Promotes `panel` nodes to `panel_c1` wherever their content makes them invalid
@@ -1,5 +1,5 @@
1
1
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
2
- import { selectTableClosestToPos } from '@atlaskit/editor-tables/utils';
2
+ import { selectTableClosestToPos } from '@atlaskit/editor-tables/select-table-closest-to-pos';
3
3
 
4
4
  /**
5
5
  * Returns a NodeSelection for the node at `start`.
@@ -1,5 +1,5 @@
1
1
  import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
2
- import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
2
+ import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles/constants';
3
3
  import { BODIED_EXT_PADDING } from '../styles/shared/extension';
4
4
  import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles/shared/layout';
5
5
  import { tableCellPadding } from '../styles/shared/table';
@@ -5,8 +5,10 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
5
5
  import { getComponentIdentity, resolveSurface, willComponentRender } from '@atlaskit/editor-ui-control-model/surface-renderer';
6
6
  import { isMenuFooterSectionKey } from '../type-ahead/isMenuFooterSectionKey';
7
7
  import { isSectionOverflowItemKey } from '../type-ahead/isSectionOverflowItemKey';
8
- export var buildQuickInsertMenuModel = function buildQuickInsertMenuModel(components, rootComponent, selectCategoryItems, surfaceContext) {
9
- var _resolveSurface = resolveSurface(components, rootComponent),
8
+ import { applyRegisteredItemRanks } from '../type-ahead/item-rank';
9
+ export var buildQuickInsertMenuModel = function buildQuickInsertMenuModel(components, rootComponent, selectCategoryItems, surfaceContext, getItemRank) {
10
+ var rankedComponents = applyRegisteredItemRanks(components, getItemRank);
11
+ var _resolveSurface = resolveSurface(rankedComponents, rootComponent),
10
12
  root = _resolveSurface.root,
11
13
  childrenMap = _resolveSurface.childrenMap,
12
14
  topLevelChildren = _resolveSurface.topLevelChildren;
@@ -5,9 +5,10 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
5
5
  import { getComponentIdentity, resolveSurface, willComponentRender } from '@atlaskit/editor-ui-control-model/surface-renderer';
6
6
  import { isMenuFooterSectionKey } from '../type-ahead/isMenuFooterSectionKey';
7
7
  import { isSectionOverflowItemKey } from '../type-ahead/isSectionOverflowItemKey';
8
+ import { applyRegisteredItemRanks } from '../type-ahead/item-rank';
8
9
  import { ASK_ROVO_MENU_ITEM } from './keys';
9
10
  var SEARCH_TOP_MATCH_LIMIT = 5;
10
- var getRank = function getRank(component, parentKey) {
11
+ var getParentRank = function getParentRank(component, parentKey) {
11
12
  var _component$parents$fi, _component$parents;
12
13
  return (_component$parents$fi = (_component$parents = component.parents) === null || _component$parents === void 0 || (_component$parents = _component$parents.find(function (parent) {
13
14
  return parent.key === parentKey;
@@ -45,8 +46,10 @@ export var getMatchingQuickInsertComponents = function getMatchingQuickInsertCom
45
46
  rootComponent = _ref4.rootComponent,
46
47
  query = _ref4.query,
47
48
  formatMessage = _ref4.formatMessage,
48
- surfaceContext = _ref4.surfaceContext;
49
- var _resolveSurface = resolveSurface(components, rootComponent),
49
+ surfaceContext = _ref4.surfaceContext,
50
+ getItemRank = _ref4.getItemRank;
51
+ var rankedComponents = applyRegisteredItemRanks(components, getItemRank);
52
+ var _resolveSurface = resolveSurface(rankedComponents, rootComponent),
50
53
  childrenMap = _resolveSurface.childrenMap,
51
54
  root = _resolveSurface.root,
52
55
  topLevelChildren = _resolveSurface.topLevelChildren;
@@ -58,7 +61,7 @@ export var getMatchingQuickInsertComponents = function getMatchingQuickInsertCom
58
61
  };
59
62
  }
60
63
  var matches = new Map();
61
- var sourceIndexByComponent = new Map(components.map(function (component, index) {
64
+ var sourceIndexByComponent = new Map(rankedComponents.map(function (component, index) {
62
65
  return [component, index];
63
66
  }));
64
67
  var _iterator = _createForOfIteratorHelper(topLevelChildren),
@@ -89,11 +92,11 @@ export var getMatchingQuickInsertComponents = function getMatchingQuickInsertCom
89
92
  var candidate = {
90
93
  identity: "".concat(item.type, ":").concat(item.key),
91
94
  item: item,
92
- itemRank: getRank(item, section.key),
95
+ itemRank: getParentRank(item, section.key),
93
96
  score: Math.min(1, Math.max(0, (_match$score = match === null || match === void 0 ? void 0 : match.score) !== null && _match$score !== void 0 ? _match$score : 0)),
94
97
  sourceIndex: (_sourceIndexByCompone = sourceIndexByComponent.get(item)) !== null && _sourceIndexByCompone !== void 0 ? _sourceIndexByCompone : Number.MAX_SAFE_INTEGER,
95
98
  section: section,
96
- sectionRank: getRank(section, root.key)
99
+ sectionRank: getParentRank(section, root.key)
97
100
  };
98
101
  var existing = matches.get(candidate.identity);
99
102
  if (!existing || compareMatchedItems(candidate, existing) < 0) {
@@ -0,0 +1,27 @@
1
+ import { isMenuFooterSectionKey } from '../type-ahead/isMenuFooterSectionKey';
2
+ import { isSectionOverflowItemKey } from '../type-ahead/isSectionOverflowItemKey';
3
+ import { RECOMMENDED_SECTION } from './keys';
4
+
5
+ /** Recommendations and navigation controls retain their policy-defined order. */
6
+ export var createQuickInsertRankResolver = function createQuickInsertRankResolver(getItemRank) {
7
+ if (!getItemRank) {
8
+ return undefined;
9
+ }
10
+ return function (_ref) {
11
+ var component = _ref.component,
12
+ parent = _ref.parent;
13
+ if (component.type === 'menu-section' && parent.type === 'menu' && !isMenuFooterSectionKey(component.key)) {
14
+ return getItemRank({
15
+ component: component,
16
+ parent: parent
17
+ });
18
+ }
19
+ if (component.type === 'menu-item' && parent.type === 'menu-section' && !isSectionOverflowItemKey(component.key) && !isMenuFooterSectionKey(parent.key) && parent.key !== RECOMMENDED_SECTION.key) {
20
+ return getItemRank({
21
+ component: component,
22
+ parent: parent
23
+ });
24
+ }
25
+ return undefined;
26
+ };
27
+ };
@@ -4,7 +4,6 @@ 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 React from 'react';
6
6
  import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
7
- import { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
9
8
  import { isSSR } from '../core-utils/is-ssr';
10
9
  import { ErrorBoundary } from '../ui/ErrorBoundary';
@@ -393,9 +392,6 @@ export function getInlineNodeViewProducer(_ref4) {
393
392
  if (!isNodeTypeAllowedToBeVirtualized || isSSR()) {
394
393
  return createNodeView(parameters);
395
394
  }
396
- if (fg('platform_editor_inline_node_virt_threshold_override')) {
397
- return createNodeViewVirtualized(parameters);
398
- }
399
395
  var inlineNodeViewsVirtualizationCounter = counterPerEditorViewMap.get(view) || 0;
400
396
  inlineNodeViewsVirtualizationCounter += 1;
401
397
  counterPerEditorViewMap.set(view, inlineNodeViewsVirtualizationCounter);
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
3
3
  import { bind, bindAll } from 'bind-event-listener';
4
- import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
4
+ import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles/constants';
5
5
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
6
6
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
7
7
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
@@ -1,6 +1,6 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import { useCallback, useMemo, useState } from 'react';
3
- import { akEditorCalculatedWideLayoutWidth, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
3
+ import { akEditorCalculatedWideLayoutWidth, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
4
4
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
5
5
  export var SNAP_GAP = 8;
6
6
  var GUIDELINE_KEYS = {
@@ -2,8 +2,8 @@
2
2
  /* eslint-disable @atlaskit/editor/no-re-export */
3
3
 
4
4
  import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
5
- import { CellSelection } from '@atlaskit/editor-tables';
6
- import { selectedRect } from '@atlaskit/editor-tables/utils';
5
+ import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
6
+ import { selectedRect } from '@atlaskit/editor-tables/utils/selection-rect';
7
7
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
8
8
  export { RelativeSelectionPos } from './types';
9
9
  export { Side } from './gap-cursor/Side';
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
3
  import { css } from '@emotion/react';
4
- import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
4
+ import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles/constants';
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
6
6
  export var blockquoteSharedStyles = css({
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -1,4 +1,4 @@
1
- import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
1
+ import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
2
2
  export var calcTableWidth = function calcTableWidth(layout, containerWidth) {
3
3
  var addControllerPadding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
4
4
  switch (layout) {
@@ -1,5 +1,5 @@
1
1
  import { tableBackgroundColorNames } from '@atlaskit/adf-schema/tableNodes';
2
- import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
2
+ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
3
3
 
4
4
  // This is used in order to support usage of DS tokens. Table cell background-color
5
5
  // is set inline in '@atlaskit/adf-schema' and the color value is stored in ADF so
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
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
- import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
5
+ import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles/constants';
6
6
  var richMediaClassName = 'rich-media-item';
7
7
  var wrappedMediaBreakoutPoint = 410;
8
8
  var mediaSingleSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "li .".concat(richMediaClassName), {
@@ -1,5 +1,5 @@
1
1
  import { PanelType } from '@atlaskit/adf-schema/panel';
2
- import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
2
+ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
3
3
  var lightPanelColors = {
4
4
  info: '#DEEBFF',
5
5
  note: '#EAE6FF',
@@ -4,7 +4,8 @@ var _templateObject, _templateObject2;
4
4
  /* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
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
- import { akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
7
+ import { akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles/constants';
8
+ import { overflowShadow } from '@atlaskit/editor-shared-styles/overflow-shadow';
8
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
9
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
11
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -2,7 +2,8 @@
2
2
  import "./NewSortingIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
- import { SortAscendingIcon, SortDescendingIcon } from '@atlaskit/editor-toolbar';
5
+ import { SortAscendingIcon } from '@atlaskit/editor-toolbar/sort-ascending-icon';
6
+ import { SortDescendingIcon } from '@atlaskit/editor-toolbar/sort-descending-icon';
6
7
  import { SortOrder } from '../types';
7
8
  var newIconWrapperStyles = {
8
9
  base: "_v5642l60 _1bsb7vkz _4t3i7vkz _1e0c1txw _1bah1h6o _4cvr1h6o _8hrz1qre",
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { ToolbarUIProvider } from '@atlaskit/editor-toolbar';
2
+ import { ToolbarUIProvider } from '@atlaskit/editor-toolbar/ui-context';
3
3
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
4
  export var EditorToolbarUIProvider = function EditorToolbarUIProvider(_ref) {
5
5
  var children = _ref.children,
@@ -0,0 +1,29 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ 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; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ /** Pure parent-rank override. Return undefined to preserve parent.rank; do not mutate either record. */
5
+
6
+ /** Applies per-editor parent ranks without changing shared registry records. */
7
+ export var applyRegisteredItemRanks = function applyRegisteredItemRanks(components, getRegisteredItemRank) {
8
+ if (!getRegisteredItemRank) {
9
+ return components;
10
+ }
11
+ return components.map(function (component) {
12
+ if (!component.parents) {
13
+ return component;
14
+ }
15
+ var parents = component.parents.map(function (parent) {
16
+ var _getRegisteredItemRan;
17
+ var rank = (_getRegisteredItemRan = getRegisteredItemRank({
18
+ component: component,
19
+ parent: parent
20
+ })) === null || _getRegisteredItemRan === void 0 ? void 0 : _getRegisteredItemRan.rank;
21
+ return _objectSpread(_objectSpread({}, parent), {}, {
22
+ rank: typeof rank === 'number' && Number.isFinite(rank) ? rank : parent.rank
23
+ });
24
+ });
25
+ return Object.assign({}, component, {
26
+ parents: parents
27
+ });
28
+ });
29
+ };
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
2
2
 
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { ThemeProvider } from '@emotion/react';
5
- import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
5
+ import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
6
6
  import { WidthConsumer } from '../WidthProvider';
7
7
  export function mapBreakpointToLayoutMaxWidth(breakpoint) {
8
8
  switch (breakpoint) {
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
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 = "130.3.1";
24
+ var packageVersion = "130.3.3";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -12,7 +12,7 @@ import React, { forwardRef } from 'react';
12
12
  // 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
13
13
  import { css, jsx } from '@emotion/react';
14
14
  import { defineMessages } from 'react-intl';
15
- import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
15
+ import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles/constants';
16
16
  export var messages = defineMessages({
17
17
  loading: {
18
18
  id: 'fabric.editor.expand.loading',
@@ -12,7 +12,7 @@ import React, { useLayoutEffect, useMemo, useRef, useState } from 'react';
12
12
  import { css, jsx } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
13
13
  import { useIntl } from 'react-intl';
14
14
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
15
- import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
15
+ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles/constants';
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
17
  import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
18
18
  import LinkExternalIcon from '@atlaskit/icon/core/link-external';
@@ -1,4 +1,4 @@
1
- import { akEditorBreakoutPadding, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
1
+ import { akEditorBreakoutPadding, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
2
2
  import { calcColumnsFromPx } from './calcColumnsFromPx';
3
3
  import { calcPxFromColumns } from './calcPxFromColumns';
4
4
  import { calcPxFromPct } from './calcPxFromPct';
@@ -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 { jsx } from '@emotion/react';
11
11
  import classnames from 'classnames';
12
- import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
12
+ import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles/constants';
13
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';
@@ -12,7 +12,7 @@ import React from 'react';
12
12
 
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
- import { akEditorDefaultLayoutWidth, akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
15
+ import { akEditorDefaultLayoutWidth, akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles/constants';
16
16
  import { nonWrappedLayouts } from '../../utils';
17
17
  import { calcBreakoutWidth, calcWideWidth } from '../../utils/breakout';
18
18
  import { calcResizedWidth } from './calcResizedWidth';
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
3
  import { css } from '@emotion/react';
4
- import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
4
+ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
5
5
  // Normal .className gets overridden by input[type=text] hence this hack to produce input.className
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
7
7
  export var panelTextInput = css({
@@ -13,7 +13,7 @@ import { createPortal, flushSync } from 'react-dom';
13
13
  import { bind } from 'bind-event-listener';
14
14
  import createFocusTrap from 'focus-trap';
15
15
  import rafSchedule from 'raf-schd';
16
- import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
16
+ import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles/constants';
17
17
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
18
18
  import { calculatePlacement, calculatePosition as _calculatePosition, findOverflowScrollParent } from './utils';
19
19
  import { validatePosition } from './validatePosition';
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
11
11
  import React from 'react';
12
12
  import classnames from 'classnames';
13
13
  import { Resizable } from 're-resizable';
14
- import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
14
+ import { akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles/constants';
15
15
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
16
16
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics';
17
17
  import { richMediaClassName } from '../../styles';
@@ -11,7 +11,7 @@ import { useCallback, useEffect, useRef, useState } 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 { bind } from 'bind-event-listener';
14
- import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
14
+ import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
15
15
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
16
16
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
17
17
  import { withReactEditorViewOuterListeners as withOuterListeners } from '../../ui-react';
@@ -7,7 +7,7 @@ import React, { useCallback, 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 { injectIntl } from 'react-intl';
10
- import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
10
+ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
11
11
  import QuestionsIcon from '@atlaskit/icon/core/question-circle';
12
12
  import Tooltip from '@atlaskit/tooltip/Tooltip';
13
13
  import { ACTION_SUBJECT_ID } from '../../analytics';
@@ -7,7 +7,7 @@ import React, { useCallback, 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 { injectIntl } from 'react-intl';
10
- import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
10
+ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
11
11
  import QuestionsIcon from '@atlaskit/icon/core/question-circle';
12
12
  import Tooltip from '@atlaskit/tooltip/Tooltip';
13
13
  import { ACTION_SUBJECT_ID } from '../../analytics';
@@ -25,7 +25,7 @@ import React, { PureComponent, useCallback, useContext, useMemo } from 'react';
25
25
 
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
- import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
28
+ import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles/constants';
29
29
  import CustomItem from '@atlaskit/menu/custom-item';
30
30
  import MenuGroup from '@atlaskit/menu/menu-group';
31
31
  import Section from '@atlaskit/menu/section';
@@ -1,4 +1,4 @@
1
- import { JSONTransformer } from '@atlaskit/editor-json-transformer';
1
+ import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
2
2
  import { Transform } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
@@ -1,4 +1,4 @@
1
- import { akEditorBreakoutPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
1
+ import { akEditorBreakoutPadding, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles/constants';
2
2
  import { mapBreakpointToLayoutMaxWidth } from '../ui/BaseTheme';
3
3
  import { getBreakpoint } from '../ui/WidthProvider';
4
4
  import { parsePx } from './parsePx';
@@ -1,4 +1,4 @@
1
- import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
1
+ import { akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles/constants';
2
2
  import { calcPxFromColumns } from '../ui/MediaSingle/calcPxFromColumns';
3
3
  export function calculateSnapPoints(_ref) {
4
4
  var $pos = _ref.$pos,
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import { traverse } from '@atlaskit/adf-utils/traverse';
4
+ import { traverse } from '@atlaskit/adf-utils/traverse/main';
5
5
  import { isResolvingMentionProvider } from '@atlaskit/mention/is-resolving-mention-provider';
6
6
  /**
7
7
  * Sanitises a document where some content should not be in the document (e.g. mention names).