@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
@@ -3,7 +3,8 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
6
+ import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
7
+ import { type WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
7
8
  import type { Category } from '../types';
8
9
  interface Props {
9
10
  categories?: Category[];
@@ -6,7 +6,8 @@ import React from 'react';
6
6
  import { jsx } from '@emotion/react';
7
7
  import type { SerializedStyles } from '@emotion/react';
8
8
  import { CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
9
- import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
9
+ import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
10
+ import { type WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
10
11
  import type { QuickInsertItem } from '../../../provider-factory';
11
12
  import type { EmptyStateHandler } from '../../../types';
12
13
  import type { SelectedItemProps } from '../../types';
@@ -4,7 +4,8 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import type { CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
7
- import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
7
+ import { type WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
8
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
8
9
  import type { QuickInsertItem } from '../../provider-factory';
9
10
  import type { EmptyStateHandler } from '../../types';
10
11
  import type { Category, Modes } from '../types';
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
2
2
  import type { IntlShape } from 'react-intl';
3
3
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { ButtonItemProps } from '@atlaskit/menu';
5
+ import type { ButtonItemProps } from '@atlaskit/menu/types';
6
6
  import type { ExtensionAPI, ExtensionProvider } from '../extensions';
7
7
  import type { DropdownOptionT, FloatingToolbarOverflowDropdownOptions } from '../types';
8
8
  export interface Props {
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
- import type { ButtonProps } from '@atlaskit/button';
6
+ import type { ButtonProps } from '@atlaskit/button/button';
7
7
  export declare const StyledButton: ({ innerRef, ...props }: ButtonProps & {
8
8
  innerRef?: React.Ref<HTMLElement>;
9
9
  }) => jsx.JSX.Element;
@@ -3,7 +3,7 @@ import { jsx } from '@emotion/react';
3
3
  import type { SerializedStyles } from '@emotion/react';
4
4
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
5
5
  import type { ActivityProvider } from '@atlaskit/activity-provider';
6
- import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
6
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
8
  import type { SearchProvider } from '../../../provider-factory';
9
9
  import type { Command, LinkInputType } from '../../../types';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { CardAppearance, ProviderFactory } from '../../../provider-factory';
5
5
  import type { Command, EditorAppearance, LinkInputType, LinkPickerOptions } from '../../../types';
@@ -1,5 +1,5 @@
1
1
  import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import type { Step } from '@atlaskit/editor-prosemirror/transform';
2
+ import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
3
3
  type Params = {
4
4
  $target: ResolvedPos;
5
5
  insertPosition: number;
@@ -1,5 +1,5 @@
1
1
  import type { SSR } from '@atlaskit/media-common';
2
- import type { MediaClientConfig } from '@atlaskit/media-core';
2
+ import type { MediaClientConfig } from '@atlaskit/media-core/auth';
3
3
  export type MediaInlineAttrs = {
4
4
  alt?: string;
5
5
  height?: number;
@@ -1,4 +1,4 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
2
2
  import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { FireAnalyticsCallback } from '../../analytics';
@@ -14,6 +14,12 @@ export default class ReactNodeView<P = ReactComponentProps> implements NodeView
14
14
  private reactComponent?;
15
15
  private portalProviderAPI;
16
16
  private _viewShouldUpdate?;
17
+ /**
18
+ * Tracks whether a React portal is currently mounted into `domRef`. Only used under
19
+ * `platform_editor_reduce_event_listener_count`, where a node view whose `render()`
20
+ * returns `null` does not mount one at all.
21
+ */
22
+ private hasMountedPortal;
17
23
  protected eventDispatcher?: EventDispatcher;
18
24
  protected decorations: ReadonlyArray<Decoration>;
19
25
  reactComponentProps: P;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { CSSProperties } from 'react';
3
- import type { TooltipProps } from '@atlaskit/tooltip';
3
+ import type { TooltipProps } from '@atlaskit/tooltip/types';
4
4
  import type { EnabledHandles, HandleAlignmentMethod, HandleHighlight, HandlePositioning, HandleResize, HandleResizeStart, HandleSize, HandleStyles, ResizerAppearance, Snap } from './types';
5
5
  export type ResizerProps = {
6
6
  appearance?: ResizerAppearance;
@@ -3,8 +3,8 @@ import type { BreakoutMode, EditorContainerWidth } from '../types';
3
3
  import type { Snap } from './types';
4
4
  export declare const SNAP_GAP = 8;
5
5
  export declare function useBreakoutGuidelines(getEditorWidth: () => EditorContainerWidth | undefined, isResizing: boolean, dynamicFullWidthGuidelineOffset?: number): {
6
- snaps: Snap | null;
7
6
  currentLayout: BreakoutMode | null;
8
7
  guidelines: GuidelineConfig[];
9
8
  setCurrentWidth: (newWidth: number | null) => void;
9
+ snaps: Snap | null;
10
10
  };
@@ -1,5 +1,5 @@
1
1
  import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
2
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
3
3
  import type { AddNodeMarkStep, AddMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
4
4
  import type { AnnotationManager } from '../../annotation';
5
5
  import type { AnnotationState, AnnotationUpdateEmitter } from './emitter';
@@ -1,4 +1,4 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
2
2
  import type { Node } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ResolvedEditorState } from '../collab';
@@ -1,5 +1,5 @@
1
1
  import type { IntlShape } from 'react-intl';
2
- import type { UIAnalyticsEventHandler } from '@atlaskit/analytics-next';
2
+ import type { UIAnalyticsEventHandler } from '@atlaskit/analytics-next/UIAnalyticsEvent';
3
3
  export type EditorReactContext = {
4
4
  getAtlaskitAnalyticsEventHandlers: () => UIAnalyticsEventHandler[];
5
5
  intl: IntlShape;
@@ -4,7 +4,7 @@ import type { Node, NodeType } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { EmojiId } from '@atlaskit/emoji/types';
7
- import type { TooltipProps } from '@atlaskit/tooltip';
7
+ import type { TooltipProps } from '@atlaskit/tooltip/types';
8
8
  import type { DispatchAnalyticsEvent } from '../analytics/types/dispatch-analytics-event';
9
9
  import type { DropdownMenuItemProps } from '../floating-toolbar';
10
10
  import type { ProviderFactory } from '../provider-factory';
@@ -4,7 +4,7 @@
4
4
  * `Presets` - if the generics get too unwieldy, we may redesign how presets
5
5
  * are put together - but for now `Builder` & `Preset` aim to beinterchangeable.
6
6
  */
7
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
7
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
8
8
  import type { Fragment, Node, Schema, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
9
9
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
10
10
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1,4 +1,4 @@
1
- import type { JSONNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONNode } from '@atlaskit/editor-json-transformer/types';
2
2
  export interface LongPressSelectionPluginOptions {
3
3
  useLongPressSelection?: boolean;
4
4
  }
@@ -3,7 +3,8 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
6
- import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
6
+ import { type WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
7
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
7
8
  export interface Props extends WithAnalyticsEventsProps {
8
9
  children?: ReactNode;
9
10
  id?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { TooltipProps } from '@atlaskit/tooltip';
2
+ import type { TooltipProps } from '@atlaskit/tooltip/types';
3
3
  import type { ButtonAppearance } from '../../types';
4
4
  export interface Props {
5
5
  appearance?: ButtonAppearance;
@@ -1,2 +1,2 @@
1
- import type { Placement } from '@atlaskit/popper/popper';
1
+ import type { Placement } from '@atlaskit/popper/main';
2
2
  export declare function positionPropToPopperPosition(position: string): Placement;
@@ -1,6 +1,6 @@
1
1
  import type { RichMediaLayout } from '@atlaskit/adf-schema';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { MediaClientConfig } from '@atlaskit/media-core';
3
+ import type { MediaClientConfig } from '@atlaskit/media-core/auth';
4
4
  import type { DispatchAnalyticsEvent } from '../../analytics';
5
5
  import type { getPosHandler } from '../../react-node-view';
6
6
  import type { GridType } from '../../types';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  export type Props = {
4
4
  render: (createAnalyticsEvent?: CreateUIAnalyticsEvent) => React.ReactNode;
5
5
  };
@@ -3,7 +3,8 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
6
+ import { type WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
7
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
7
8
  import type { PaletteColor, PaletteTooltipMessages } from '../../ui-color';
8
9
  import type { Position as PopupPosition } from '../../ui/Popup/utils';
9
10
  declare const _default_1: React.ForwardRefExoticComponent<Omit<Omit<{
@@ -3,8 +3,8 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import type { ButtonProps } from '@atlaskit/button/types';
7
- import type { PositionType } from '@atlaskit/tooltip';
6
+ import type { ButtonProps } from '@atlaskit/button/button';
7
+ import type { PositionType } from '@atlaskit/tooltip/types';
8
8
  import type { TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
9
9
  import type { Keymap } from '../../keymaps';
10
10
  import type { MenuItem } from '../DropdownMenu/types';
@@ -1,6 +1,6 @@
1
1
  import type { MarkType, NodeType } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import type { Step } from '@atlaskit/editor-prosemirror/transform';
3
+ import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
4
4
  /**
5
5
  * Checks whether a given step is adding nodes of given nodeTypes
6
6
  *
@@ -1,3 +1,3 @@
1
1
  import type { Slice } from '@atlaskit/editor-prosemirror/model';
2
- import type { Step } from '@atlaskit/editor-prosemirror/transform';
2
+ import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
3
3
  export declare const extractSliceFromStep: (step: Step) => Slice | null;
@@ -1,4 +1,4 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
2
2
  import type { ProviderFactory } from '../../provider-factory';
3
3
  /**
4
4
  * Sanitises a document where some content should not be in the document (e.g. mention names).
@@ -1,4 +1,4 @@
1
- import type { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer/types';
2
2
  import type { SanitizeNodeOptions } from '@atlaskit/editor-json-transformer/sanitize/sanitize-node';
3
3
  import type { MarkType, NodeType, Mark as PMMark, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
4
4
  import { SelectedState } from './SelectedState';
@@ -1,4 +1,4 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
2
2
  export type PageElementCounts = {
3
3
  elements: {
4
4
  [key: string]: number;
@@ -1,5 +1,5 @@
1
1
  import type { Slice } from '@atlaskit/editor-prosemirror/model';
2
- import type { Step } from '@atlaskit/editor-prosemirror/transform';
2
+ import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
3
3
  export declare const stepHasSlice: (step: Step) => step is Step & {
4
4
  from: number;
5
5
  slice: Slice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "119.16.1",
3
+ "version": "119.16.3",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/link": "^5.1.0",
57
57
  "@atlaskit/link-datasource": "^6.7.0",
58
58
  "@atlaskit/link-picker": "^6.5.0",
59
- "@atlaskit/media-card": "^81.7.0",
59
+ "@atlaskit/media-card": "^81.8.0",
60
60
  "@atlaskit/media-client": "^37.5.0",
61
61
  "@atlaskit/media-client-react": "^6.2.0",
62
62
  "@atlaskit/media-common": "^14.5.0",