@atlaskit/renderer 137.2.5 → 137.2.6

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 (111) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/actions/index.js +2 -2
  3. package/dist/cjs/react/marks/alignment.js +2 -2
  4. package/dist/cjs/react/marks/annotation.js +2 -2
  5. package/dist/cjs/react/marks/backgroundColor.js +2 -2
  6. package/dist/cjs/react/marks/textColor.js +2 -2
  7. package/dist/cjs/react/nodes/bulletList.js +2 -2
  8. package/dist/cjs/react/nodes/fallback.js +2 -2
  9. package/dist/cjs/react/nodes/media/index.js +4 -4
  10. package/dist/cjs/react/nodes/orderedList.js +2 -2
  11. package/dist/cjs/react/nodes/panel-compiled.js +2 -2
  12. package/dist/cjs/react/nodes/panel-emotion.js +2 -2
  13. package/dist/cjs/react/nodes/panel.js +7 -7
  14. package/dist/cjs/react/nodes/tableCell.js +2 -2
  15. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +3 -2
  16. package/dist/cjs/ui/Renderer/index.js +1 -1
  17. package/dist/cjs/ui/annotations/contexts/AnnotationManagerContext.js +8 -8
  18. package/dist/cjs/ui/annotations/element/index.js +2 -2
  19. package/dist/cjs/ui/annotations/element/mark.js +8 -8
  20. package/dist/cjs/ui/annotations/hooks/use-events.js +3 -3
  21. package/dist/cjs/ui/annotations/hover/mounter.js +3 -3
  22. package/dist/cjs/ui/annotations/index.js +2 -2
  23. package/dist/cjs/ui/annotations/selection/mounter.js +4 -4
  24. package/dist/es2019/actions/index.js +1 -1
  25. package/dist/es2019/react/marks/alignment.js +1 -1
  26. package/dist/es2019/react/marks/annotation.js +1 -1
  27. package/dist/es2019/react/marks/backgroundColor.js +1 -1
  28. package/dist/es2019/react/marks/textColor.js +1 -1
  29. package/dist/es2019/react/nodes/bulletList.js +1 -1
  30. package/dist/es2019/react/nodes/fallback.js +1 -1
  31. package/dist/es2019/react/nodes/media/index.js +1 -1
  32. package/dist/es2019/react/nodes/orderedList.js +1 -1
  33. package/dist/es2019/react/nodes/panel-compiled.js +1 -1
  34. package/dist/es2019/react/nodes/panel-emotion.js +1 -1
  35. package/dist/es2019/react/nodes/panel.js +1 -1
  36. package/dist/es2019/react/nodes/tableCell.js +1 -1
  37. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +2 -1
  38. package/dist/es2019/ui/Renderer/index.js +1 -1
  39. package/dist/es2019/ui/annotations/contexts/AnnotationManagerContext.js +1 -1
  40. package/dist/es2019/ui/annotations/element/index.js +1 -1
  41. package/dist/es2019/ui/annotations/element/mark.js +1 -1
  42. package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
  43. package/dist/es2019/ui/annotations/hover/mounter.js +1 -1
  44. package/dist/es2019/ui/annotations/index.js +1 -1
  45. package/dist/es2019/ui/annotations/selection/mounter.js +1 -1
  46. package/dist/esm/actions/index.js +1 -1
  47. package/dist/esm/react/marks/alignment.js +1 -1
  48. package/dist/esm/react/marks/annotation.js +1 -1
  49. package/dist/esm/react/marks/backgroundColor.js +1 -1
  50. package/dist/esm/react/marks/textColor.js +1 -1
  51. package/dist/esm/react/nodes/bulletList.js +1 -1
  52. package/dist/esm/react/nodes/fallback.js +1 -1
  53. package/dist/esm/react/nodes/media/index.js +1 -1
  54. package/dist/esm/react/nodes/orderedList.js +1 -1
  55. package/dist/esm/react/nodes/panel-compiled.js +1 -1
  56. package/dist/esm/react/nodes/panel-emotion.js +1 -1
  57. package/dist/esm/react/nodes/panel.js +1 -1
  58. package/dist/esm/react/nodes/tableCell.js +1 -1
  59. package/dist/esm/ui/Renderer/RendererStyleContainer.js +2 -1
  60. package/dist/esm/ui/Renderer/index.js +1 -1
  61. package/dist/esm/ui/annotations/contexts/AnnotationManagerContext.js +1 -1
  62. package/dist/esm/ui/annotations/element/index.js +1 -1
  63. package/dist/esm/ui/annotations/element/mark.js +1 -1
  64. package/dist/esm/ui/annotations/hooks/use-events.js +1 -1
  65. package/dist/esm/ui/annotations/hover/mounter.js +1 -1
  66. package/dist/esm/ui/annotations/index.js +1 -1
  67. package/dist/esm/ui/annotations/selection/mounter.js +1 -1
  68. package/dist/types/actions/index.d.ts +1 -1
  69. package/dist/types/react/marks/alignment.d.ts +1 -1
  70. package/dist/types/react/marks/backgroundColor.d.ts +1 -1
  71. package/dist/types/react/marks/border.d.ts +1 -1
  72. package/dist/types/react/marks/breakout.d.ts +1 -1
  73. package/dist/types/react/marks/data-consumer.d.ts +1 -1
  74. package/dist/types/react/marks/fontSize.d.ts +1 -1
  75. package/dist/types/react/marks/fragment.d.ts +1 -1
  76. package/dist/types/react/marks/indentation.d.ts +1 -1
  77. package/dist/types/react/marks/link.d.ts +1 -1
  78. package/dist/types/react/marks/subsup.d.ts +1 -1
  79. package/dist/types/react/marks/textColor.d.ts +1 -1
  80. package/dist/types/react/nodes/blockCard.d.ts +1 -1
  81. package/dist/types/react/nodes/bodiedExtension.d.ts +1 -1
  82. package/dist/types/react/nodes/embedCard.d.ts +1 -1
  83. package/dist/types/react/nodes/emoji.d.ts +1 -1
  84. package/dist/types/react/nodes/extension.d.ts +1 -1
  85. package/dist/types/react/nodes/extensionFrame.d.ts +1 -1
  86. package/dist/types/react/nodes/index.d.ts +2 -1
  87. package/dist/types/react/nodes/layoutColumn-compiled.d.ts +1 -1
  88. package/dist/types/react/nodes/layoutColumn-emotion.d.ts +1 -1
  89. package/dist/types/react/nodes/layoutColumn.d.ts +1 -1
  90. package/dist/types/react/nodes/media/index.d.ts +4 -1
  91. package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -1
  92. package/dist/types/react/nodes/mention.d.ts +1 -1
  93. package/dist/types/react/nodes/multiBodiedExtension.d.ts +1 -1
  94. package/dist/types/react/nodes/panel-compiled.d.ts +1 -1
  95. package/dist/types/react/nodes/panel-emotion.d.ts +1 -1
  96. package/dist/types/react/nodes/panel.d.ts +1 -1
  97. package/dist/types/react/nodes/table/sticky.d.ts +1 -1
  98. package/dist/types/react/nodes/table/types.d.ts +1 -1
  99. package/dist/types/react/nodes/tableCell.d.ts +1 -1
  100. package/dist/types/react/types.d.ts +1 -1
  101. package/dist/types/ui/ExtensionRenderer.d.ts +1 -1
  102. package/dist/types/ui/MediaCard.d.ts +1 -1
  103. package/dist/types/ui/annotations/context.d.ts +1 -1
  104. package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +2 -2
  105. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  106. package/dist/types/ui/annotations/element/mark.d.ts +2 -2
  107. package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -2
  108. package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  109. package/dist/types/ui/hooks/useScrollToBlock.d.ts +1 -1
  110. package/dist/types/ui/renderer-props.d.ts +1 -1
  111. package/package.json +4 -4
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  import React from 'react';
7
7
  /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
8
8
  import { jsx } from '@emotion/react';
9
- import { alignmentPositionMap } from '@atlaskit/adf-schema';
9
+ import { alignmentPositionMap } from '@atlaskit/adf-schema/alignment';
10
10
  const MarkWrapper = props => {
11
11
  const dataAlign = props['data-align'] ? alignmentPositionMap[props['data-align']] : undefined;
12
12
  return jsx("div", _extends({
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { buildAnnotationMarkDataAttributes } from '@atlaskit/adf-schema';
3
+ import { buildDataAttributes as buildAnnotationMarkDataAttributes } from '@atlaskit/adf-schema/annotation';
4
4
  import { MarkElement as AnnotationMark } from '../../ui/annotations/element';
5
5
  export const isAnnotationMark = mark => {
6
6
  return mark && mark.type && mark.type.name === 'annotation';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
- import { getDarkModeLCHColor } from '@atlaskit/adf-schema';
3
+ import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
4
4
  import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
5
5
  import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
6
6
  export default function BackgroundColor(props) {
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useMemo } from 'react';
3
- import { getDarkModeLCHColor } from '@atlaskit/adf-schema';
3
+ import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
4
4
  import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
5
5
  import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
6
6
  export default function TextColor(props) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { bulletListSelector } from '@atlaskit/adf-schema';
2
+ import { bulletListSelector } from '@atlaskit/adf-schema/bullet-list';
3
3
  import { getListIndentLevel } from '../utils/lists';
4
4
  export default function BulletList(props) {
5
5
  return /*#__PURE__*/React.createElement("ul", {
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { isSafeUrl } from '@atlaskit/adf-schema';
2
+ import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
3
3
  import Link from '@atlaskit/link/link';
4
4
  import { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from '@atlaskit/link-datasource';
5
5
  import React from 'react';
@@ -14,7 +14,7 @@ import { WithProviders } from '@atlaskit/editor-common/provider-factory';
14
14
  import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
15
15
  import { fg } from '@atlaskit/platform-feature-flags/fg';
16
16
  import { MediaCard } from '../../../ui/MediaCard';
17
- import { AnnotationMarkStates } from '@atlaskit/adf-schema';
17
+ import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
18
18
  import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
19
19
  import { getEventHandler } from '../../../utils';
20
20
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { orderedListSelector } from '@atlaskit/adf-schema';
3
+ import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
4
4
  import { getOrderedListInlineStyles } from '@atlaskit/editor-common/styles';
5
5
  import { getItemCounterDigitsSize, resolveOrder } from '@atlaskit/editor-common/utils';
6
6
  import { getListIndentLevel } from '../utils/lists';
@@ -9,7 +9,7 @@ import { ax, ix } from "@compiled/react/runtime";
9
9
  * Cleanup: delete this file once the experiment has shipped.
10
10
  */
11
11
  import React from 'react';
12
- import { PanelType } from '@atlaskit/adf-schema';
12
+ import { PanelType } from '@atlaskit/adf-schema/panel';
13
13
  import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
14
14
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
15
15
  import { fg } from '@atlaskit/platform-feature-flags/fg';
@@ -13,7 +13,7 @@ import React from 'react';
13
13
 
14
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration; `jsx` is used as the JSX pragma (see @jsx jsx above) so must be a value import
15
15
  import { css, jsx } from '@emotion/react';
16
- import { PanelType } from '@atlaskit/adf-schema';
16
+ import { PanelType } from '@atlaskit/adf-schema/panel';
17
17
  import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
18
18
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
19
19
  import { fg } from '@atlaskit/platform-feature-flags/fg';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PanelType } from '@atlaskit/adf-schema';
2
+ import { PanelType } from '@atlaskit/adf-schema/panel';
3
3
  import { PanelInfoIcon, PanelSuccessIcon, PanelNoteIcon, PanelWarningIcon, PanelErrorIcon } from '@atlaskit/editor-common/icons';
4
4
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
5
5
  import EmojiIcon from '@atlaskit/icon/core/emoji';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { tableBackgroundColorNameByHex } from '@atlaskit/adf-schema/tableNodes';
4
- import { getDarkModeLCHColor } from '@atlaskit/adf-schema/lch-color-inversion';
4
+ import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
5
5
  import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
6
6
  import { SortOrder } from '@atlaskit/editor-common/types';
7
7
  import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
@@ -16,7 +16,8 @@ import { akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSma
16
16
  import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
17
17
  import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
18
18
  import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
19
- import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
19
+ import { bulletListSelector } from '@atlaskit/adf-schema/bullet-list';
20
+ import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
20
21
  import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
21
22
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
22
23
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
@@ -60,7 +60,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
60
60
  const TABLE_INFO_TIMEOUT = 10000;
61
61
  const RENDER_EVENT_SAMPLE_RATE = 0.1;
62
62
  const packageName = "@atlaskit/renderer";
63
- const packageVersion = "137.2.4";
63
+ const packageVersion = "137.2.5";
64
64
  const setAsQueryContainerStyles = css({
65
65
  containerName: 'ak-renderer-wrapper',
66
66
  containerType: 'inline-size'
@@ -1,5 +1,5 @@
1
1
  import React, { createContext, useContext, useEffect, useMemo, useReducer, useRef } from 'react';
2
- import { AnnotationMarkStates, AnnotationTypes } from '@atlaskit/adf-schema';
2
+ import { AnnotationMarkStates, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
3
3
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
4
4
  import { RendererContext } from '../../../ui/RendererActionsContext';
5
5
  const initState = {
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo, useCallback, useContext } from 'react';
2
- import { AnnotationMarkStates } from '@atlaskit/adf-schema';
2
+ import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
3
3
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
4
4
  import { MarkComponent } from './mark';
5
5
  import { useInlineCommentsFilter } from '../hooks/use-inline-comments-filter';
@@ -6,7 +6,7 @@
6
6
  import { useMemo, useCallback } 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
- import { AnnotationMarkStates } from '@atlaskit/adf-schema';
9
+ import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
10
10
  import { fg } from '@atlaskit/platform-feature-flags/fg';
11
11
  import { useIntl } from 'react-intl';
12
12
  import { inlineCommentMessages } from '../../../messages';
@@ -1,6 +1,6 @@
1
1
  import { useLayoutEffect, useMemo, useState } from 'react';
2
2
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
3
- import { AnnotationTypes } from '@atlaskit/adf-schema';
3
+ import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
5
5
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
6
6
  import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback, useContext } from 'react';
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
- import { AnnotationTypes } from '@atlaskit/adf-schema';
3
+ import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
4
4
  import { updateWindowSelectionAroundDraft } from '../draft/dom';
5
5
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
6
6
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
@@ -1,5 +1,5 @@
1
1
  import React, { useContext } from 'react';
2
- import { AnnotationTypes } from '@atlaskit/adf-schema';
2
+ import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
3
3
  import { AnnotationView } from './view';
4
4
  import { AnnotationsContextWrapper } from './wrapper';
5
5
  import { ProvidersContext, InlineCommentsStateContext } from './context';
@@ -4,7 +4,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
5
5
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
6
6
  import uuid from 'uuid/v4';
7
- import { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema';
7
+ import { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
8
8
  import { updateWindowSelectionAroundDraft } from '../draft/dom';
9
9
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
10
10
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
- import { AnnotationTypes } from '@atlaskit/adf-schema';
5
+ import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
6
6
  import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils';
7
7
  import { JSONTransformer } from '@atlaskit/editor-json-transformer/JSONTransformer-2';
8
8
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
6
6
  import React from 'react';
7
7
  /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
8
8
  import { jsx } from '@emotion/react';
9
- import { alignmentPositionMap } from '@atlaskit/adf-schema';
9
+ import { alignmentPositionMap } from '@atlaskit/adf-schema/alignment';
10
10
  var MarkWrapper = function MarkWrapper(props) {
11
11
  var dataAlign = props['data-align'] ? alignmentPositionMap[props['data-align']] : undefined;
12
12
  return jsx("div", _extends({
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import React from 'react';
6
- import { buildAnnotationMarkDataAttributes } from '@atlaskit/adf-schema';
6
+ import { buildDataAttributes as buildAnnotationMarkDataAttributes } from '@atlaskit/adf-schema/annotation';
7
7
  import { MarkElement as AnnotationMark } from '../../ui/annotations/element';
8
8
  export var isAnnotationMark = function isAnnotationMark(mark) {
9
9
  return mark && mark.type && mark.type.name === 'annotation';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React, { useMemo } from 'react';
4
- import { getDarkModeLCHColor } from '@atlaskit/adf-schema';
4
+ import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
5
5
  import { hexToEditorTextBackgroundPaletteColor } from '@atlaskit/editor-palette';
6
6
  import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
7
7
  export default function BackgroundColor(props) {
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React, { useMemo } from 'react';
4
- import { getDarkModeLCHColor } from '@atlaskit/adf-schema';
4
+ import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
5
5
  import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette';
6
6
  import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
7
7
  export default function TextColor(props) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { bulletListSelector } from '@atlaskit/adf-schema';
2
+ import { bulletListSelector } from '@atlaskit/adf-schema/bullet-list';
3
3
  import { getListIndentLevel } from '../utils/lists';
4
4
  export default function BulletList(props) {
5
5
  return /*#__PURE__*/React.createElement("ul", {
@@ -8,7 +8,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
8
8
  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; }
9
9
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
- import { isSafeUrl } from '@atlaskit/adf-schema';
11
+ import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
12
12
  import Link from '@atlaskit/link/link';
13
13
  import { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from '@atlaskit/link-datasource';
14
14
  import React from 'react';
@@ -26,7 +26,7 @@ import { WithProviders } from '@atlaskit/editor-common/provider-factory';
26
26
  import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
27
27
  import { fg } from '@atlaskit/platform-feature-flags/fg';
28
28
  import { MediaCard } from '../../../ui/MediaCard';
29
- import { AnnotationMarkStates } from '@atlaskit/adf-schema';
29
+ import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
30
30
  import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
31
31
  import { getEventHandler } from '../../../utils';
32
32
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import { orderedListSelector } from '@atlaskit/adf-schema';
3
+ import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
4
4
  import { getOrderedListInlineStyles } from '@atlaskit/editor-common/styles';
5
5
  import { getItemCounterDigitsSize, resolveOrder } from '@atlaskit/editor-common/utils';
6
6
  import { getListIndentLevel } from '../utils/lists';
@@ -14,7 +14,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
14
14
  * Cleanup: delete this file once the experiment has shipped.
15
15
  */
16
16
  import React from 'react';
17
- import { PanelType } from '@atlaskit/adf-schema';
17
+ import { PanelType } from '@atlaskit/adf-schema/panel';
18
18
  import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
19
19
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
20
20
  import { fg } from '@atlaskit/platform-feature-flags/fg';
@@ -15,7 +15,7 @@ import React from 'react';
15
15
 
16
16
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration; `jsx` is used as the JSX pragma (see @jsx jsx above) so must be a value import
17
17
  import { css, jsx } from '@emotion/react';
18
- import { PanelType } from '@atlaskit/adf-schema';
18
+ import { PanelType } from '@atlaskit/adf-schema/panel';
19
19
  import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
20
20
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
21
21
  import { fg } from '@atlaskit/platform-feature-flags/fg';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PanelType } from '@atlaskit/adf-schema';
2
+ import { PanelType } from '@atlaskit/adf-schema/panel';
3
3
  import { PanelInfoIcon, PanelSuccessIcon, PanelNoteIcon, PanelWarningIcon, PanelErrorIcon } from '@atlaskit/editor-common/icons';
4
4
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
5
5
  import EmojiIcon from '@atlaskit/icon/core/emoji';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { tableBackgroundColorNameByHex } from '@atlaskit/adf-schema/tableNodes';
4
- import { getDarkModeLCHColor } from '@atlaskit/adf-schema/lch-color-inversion';
4
+ import { getDarkModeLCHColor } from '@atlaskit/adf-schema/get-dark-mode-lch-color';
5
5
  import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
6
6
  import { SortOrder } from '@atlaskit/editor-common/types';
7
7
  import { hexToEditorBackgroundPaletteRawValue } from '@atlaskit/editor-palette';
@@ -20,7 +20,8 @@ import { akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSma
20
20
  import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
21
21
  import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
22
22
  import { CodeBlockSharedCssClassName, DateSharedCssClassName, listItemCounterPadding, richMediaClassName, SmartCardSharedCssClassName, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginTop, TableSharedCssClassName, TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
23
- import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
23
+ import { bulletListSelector } from '@atlaskit/adf-schema/bullet-list';
24
+ import { orderedListSelector } from '@atlaskit/adf-schema/ordered-list';
24
25
  import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
25
26
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
26
27
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
@@ -65,7 +65,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var TABLE_INFO_TIMEOUT = 10000;
66
66
  var RENDER_EVENT_SAMPLE_RATE = 0.1;
67
67
  var packageName = "@atlaskit/renderer";
68
- var packageVersion = "137.2.4";
68
+ var packageVersion = "137.2.5";
69
69
  var setAsQueryContainerStyles = css({
70
70
  containerName: 'ak-renderer-wrapper',
71
71
  containerType: 'inline-size'
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import React, { createContext, useContext, useEffect, useMemo, useReducer, useRef } from 'react';
6
- import { AnnotationMarkStates, AnnotationTypes } from '@atlaskit/adf-schema';
6
+ import { AnnotationMarkStates, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
7
7
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
8
8
  import { RendererContext } from '../../../ui/RendererActionsContext';
9
9
  var initState = {
@@ -1,5 +1,5 @@
1
1
  import React, { useMemo, useCallback, useContext } from 'react';
2
- import { AnnotationMarkStates } from '@atlaskit/adf-schema';
2
+ import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
3
3
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
4
4
  import { MarkComponent } from './mark';
5
5
  import { useInlineCommentsFilter } from '../hooks/use-inline-comments-filter';
@@ -10,7 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
10
  import { useMemo, useCallback } from 'react';
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { css, jsx } from '@emotion/react';
13
- import { AnnotationMarkStates } from '@atlaskit/adf-schema';
13
+ import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
14
14
  import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import { useIntl } from 'react-intl';
16
16
  import { inlineCommentMessages } from '../../../messages';
@@ -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 { useLayoutEffect, useMemo, useState } from 'react';
6
6
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
7
- import { AnnotationTypes } from '@atlaskit/adf-schema';
7
+ import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
8
8
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
9
9
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
10
10
  import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback, useContext } from 'react';
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
- import { AnnotationTypes } from '@atlaskit/adf-schema';
3
+ import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
4
4
  import { updateWindowSelectionAroundDraft } from '../draft/dom';
5
5
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
6
6
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
@@ -1,5 +1,5 @@
1
1
  import React, { useContext } from 'react';
2
- import { AnnotationTypes } from '@atlaskit/adf-schema';
2
+ import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
3
3
  import { AnnotationView } from './view';
4
4
  import { AnnotationsContextWrapper } from './wrapper';
5
5
  import { ProvidersContext, InlineCommentsStateContext } from './context';
@@ -4,7 +4,7 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
5
5
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
6
6
  import uuid from 'uuid/v4';
7
- import { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema';
7
+ import { AnnotationTypes, AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
8
8
  import { updateWindowSelectionAroundDraft } from '../draft/dom';
9
9
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
10
10
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,4 @@
1
- import { AnnotationTypes } from '@atlaskit/adf-schema';
1
+ import { AnnotationTypes } from '@atlaskit/adf-schema/annotation';
2
2
  import type { AnnotationActionResult, AnnotationByMatches, SelectionContext } from '@atlaskit/editor-common/types';
3
3
  import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
4
4
  import type { Mark, Node, Schema } from '@atlaskit/editor-prosemirror/model';
@@ -1,4 +1,4 @@
1
1
  import { jsx } from '@emotion/react';
2
- import type { AlignmentAttributes } from '@atlaskit/adf-schema';
2
+ import type { AlignmentAttributes } from '@atlaskit/adf-schema/alignment';
3
3
  import type { MarkProps } from '../types';
4
4
  export default function Alignment(props: MarkProps<AlignmentAttributes>): jsx.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { TextColorAttributes } from '@atlaskit/adf-schema';
2
+ import type { TextColorAttributes } from '@atlaskit/adf-schema/text-color';
3
3
  import type { MarkProps } from '../types';
4
4
  export default function BackgroundColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
@@ -3,6 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
- import type { BorderMarkAttributes } from '@atlaskit/adf-schema';
6
+ import type { BorderMarkAttributes } from '@atlaskit/adf-schema/border';
7
7
  import type { MarkProps } from '../types';
8
8
  export default function Border(props: MarkProps<BorderMarkAttributes>): jsx.JSX.Element;
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
- import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
6
+ import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema/breakout';
7
7
  import type { MarkProps } from '../types';
8
8
  /**
9
9
  * React component that renders a breakout mark with dynamic width based on editor layout (wide or full-width).
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { DataConsumerAttributes } from '@atlaskit/adf-schema';
2
+ import type { DataConsumerAttributes } from '@atlaskit/adf-schema/data-consumer';
3
3
  import type { MarkProps } from '../types';
4
4
  export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { FontSizeMarkAttrs } from '@atlaskit/adf-schema';
2
+ import type { FontSizeMarkAttrs } from '@atlaskit/adf-schema/font-size';
3
3
  import type { MarkProps } from '../types';
4
4
  export default function FontSize(props: MarkProps<FontSizeMarkAttrs>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { FragmentAttributes } from '@atlaskit/adf-schema';
2
+ import type { FragmentAttributes } from '@atlaskit/adf-schema/fragment';
3
3
  import type { MarkProps } from '../types';
4
4
  export default function FragmentMark(props: MarkProps<FragmentAttributes>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { IndentationMarkAttributes } from '@atlaskit/adf-schema';
2
+ import type { IndentationMarkAttributes } from '@atlaskit/adf-schema/indentation';
3
3
  import type { MarkProps } from '../types';
4
4
  export default function Indentation(props: MarkProps<IndentationMarkAttributes>): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { LinkAttributes } from '@atlaskit/adf-schema';
2
+ import type { LinkAttributes } from '@atlaskit/adf-schema/link';
3
3
  import type { MarkProps } from '../types';
4
4
  interface LinkProps extends LinkAttributes {
5
5
  isMediaLink?: boolean;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { SubSupAttributes } from '@atlaskit/adf-schema';
2
+ import type { SubSupAttributes } from '@atlaskit/adf-schema/subsup';
3
3
  import type { MarkProps } from '../types';
4
4
  export default function SubSup(props: MarkProps<SubSupAttributes>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { TextColorAttributes } from '@atlaskit/adf-schema';
2
+ import type { TextColorAttributes } from '@atlaskit/adf-schema/text-color';
3
3
  import type { MarkProps } from '../types';
4
4
  export default function TextColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
@@ -6,7 +6,7 @@ import { jsx } from '@emotion/react';
6
6
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
7
7
  import type { RendererAppearance } from '../../ui/Renderer/types';
8
8
  import type { SmartLinksOptions } from '../../types/smartLinksOptions';
9
- import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/schema';
9
+ import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/block-card';
10
10
  export default function BlockCard(props: {
11
11
  data?: object;
12
12
  datasource?: DatasourceAttributeProperties;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { RendererContext, ExtensionViewportSize } from '../types';
4
4
  import type { Serializer } from '../../serializer';
5
- import type { ExtensionLayout } from '@atlaskit/adf-schema';
5
+ import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
6
6
  import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
7
7
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
8
8
  import type { RendererAppearance } from '../../ui/Renderer/types';
@@ -6,7 +6,7 @@ import { jsx } from '@emotion/react';
6
6
  import type { FC } from 'react';
7
7
  import type { SmartLinksOptions } from '../../types/smartLinksOptions';
8
8
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
9
- import type { RichMediaLayout } from '@atlaskit/adf-schema';
9
+ import type { Layout as RichMediaLayout } from '@atlaskit/adf-schema/rich-media-common';
10
10
  import type { RendererAppearance } from '../../ui/Renderer/types';
11
11
  type EmbedCardInternalProps = {
12
12
  data?: object;
@@ -3,7 +3,7 @@ import type { FC, NamedExoticComponent } from 'react';
3
3
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  import type { EmojiId, EmojiProviderLookupOrder } from '@atlaskit/emoji/types';
5
5
  import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
6
- import type { EmojiAttributes } from '@atlaskit/adf-schema';
6
+ import type { EmojiAttributes } from '@atlaskit/adf-schema/emoji';
7
7
  export interface EmojiProps extends EmojiId, EmojiAttributes, MarkDataAttributes {
8
8
  allowTextFallback?: boolean;
9
9
  emojiProviderLookupOrder?: EmojiProviderLookupOrder;
@@ -5,7 +5,7 @@
5
5
  import React from 'react';
6
6
  import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
7
7
  import type { RendererContext, ExtensionViewportSize } from '../types';
8
- import type { ExtensionLayout } from '@atlaskit/adf-schema';
8
+ import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
9
9
  import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
10
10
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
11
11
  import type { OverflowShadowProps, OverflowShadowState } from '@atlaskit/editor-common/ui';
@@ -6,7 +6,7 @@ import { jsx } from '@emotion/react';
6
6
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
7
7
  import type { RendererContext } from '../types';
8
8
  import type { Serializer } from '../../serializer';
9
- import type { ExtensionLayout } from '@atlaskit/adf-schema';
9
+ import type { Layout as ExtensionLayout } from '@atlaskit/adf-schema/extensions';
10
10
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
11
11
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
12
12
  type Props = React.PropsWithChildren<{
@@ -25,7 +25,8 @@ import { TableCell } from './tableCell';
25
25
  import TableRow from './tableRow';
26
26
  import UnknownBlock from './unknownBlock';
27
27
  import type { NodeComponentsProps, RendererAppearance } from '../../ui/Renderer/types';
28
- import type { RichMediaLayout, DatasourceAttributeProperties } from '@atlaskit/adf-schema';
28
+ import type { Layout as RichMediaLayout } from '@atlaskit/adf-schema/rich-media-common';
29
+ import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/block-card';
29
30
  import type { MediaInlineAttrs } from '@atlaskit/editor-common/media-inline';
30
31
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
31
32
  import type { Diff } from '@atlaskit/editor-common/utils';