@atlaskit/renderer 84.1.1 → 85.0.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 (170) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/actions/index.js +3 -3
  3. package/dist/cjs/analytics/unsupported-content.js +3 -3
  4. package/dist/cjs/react/index.js +13 -9
  5. package/dist/cjs/react/marks/annotation.js +2 -2
  6. package/dist/cjs/react/marks/breakout.js +5 -3
  7. package/dist/cjs/react/nodes/blockCard.js +2 -2
  8. package/dist/cjs/react/nodes/caption.js +2 -2
  9. package/dist/cjs/react/nodes/date.js +6 -4
  10. package/dist/cjs/react/nodes/embedCard.js +5 -5
  11. package/dist/cjs/react/nodes/emoji.js +2 -2
  12. package/dist/cjs/react/nodes/extension.js +6 -4
  13. package/dist/cjs/react/nodes/heading-anchor.js +3 -1
  14. package/dist/cjs/react/nodes/index.js +80 -55
  15. package/dist/cjs/react/nodes/inlineCard.js +2 -2
  16. package/dist/cjs/react/nodes/layoutColumn.js +2 -2
  17. package/dist/cjs/react/nodes/media.js +5 -3
  18. package/dist/cjs/react/nodes/mediaGroup.js +2 -2
  19. package/dist/cjs/react/nodes/mediaInline.js +2 -2
  20. package/dist/cjs/react/nodes/mediaSingle/index.js +3 -3
  21. package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -2
  22. package/dist/cjs/react/nodes/mention.js +2 -2
  23. package/dist/cjs/react/nodes/panel.js +18 -20
  24. package/dist/cjs/react/nodes/table/colgroup.js +2 -2
  25. package/dist/cjs/react/nodes/table/sticky.js +4 -4
  26. package/dist/cjs/react/nodes/table.js +19 -13
  27. package/dist/cjs/react/nodes/tableCell.js +15 -13
  28. package/dist/cjs/react/nodes/tableRow.js +6 -4
  29. package/dist/cjs/react/nodes/task-item-with-providers.js +3 -1
  30. package/dist/cjs/react/nodes/taskItem.js +3 -3
  31. package/dist/cjs/render-document.js +3 -3
  32. package/dist/cjs/text/nodes/date.js +3 -3
  33. package/dist/cjs/ui/Expand.js +9 -9
  34. package/dist/cjs/ui/ExtensionRenderer.js +8 -4
  35. package/dist/cjs/ui/MediaCard.js +4 -4
  36. package/dist/cjs/ui/Renderer/breakout-ssr.js +3 -3
  37. package/dist/cjs/ui/Renderer/index.js +22 -18
  38. package/dist/cjs/ui/SortingIcon.js +8 -8
  39. package/dist/cjs/ui/annotations/draft/component.js +2 -2
  40. package/dist/cjs/ui/annotations/element/index.js +2 -2
  41. package/dist/cjs/ui/annotations/element/mark.js +4 -4
  42. package/dist/cjs/ui/annotations/hooks/use-events.js +11 -11
  43. package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +4 -4
  44. package/dist/cjs/utils.js +4 -3
  45. package/dist/cjs/version.json +1 -1
  46. package/dist/es2019/actions/index.js +1 -1
  47. package/dist/es2019/analytics/unsupported-content.js +1 -1
  48. package/dist/es2019/react/index.js +2 -1
  49. package/dist/es2019/react/marks/breakout.js +2 -1
  50. package/dist/es2019/react/nodes/blockCard.js +1 -1
  51. package/dist/es2019/react/nodes/caption.js +1 -1
  52. package/dist/es2019/react/nodes/date.js +2 -1
  53. package/dist/es2019/react/nodes/embedCard.js +1 -1
  54. package/dist/es2019/react/nodes/emoji.js +1 -1
  55. package/dist/es2019/react/nodes/extension.js +2 -1
  56. package/dist/es2019/react/nodes/index.js +32 -7
  57. package/dist/es2019/react/nodes/inlineCard.js +1 -1
  58. package/dist/es2019/react/nodes/layoutColumn.js +1 -1
  59. package/dist/es2019/react/nodes/media.js +2 -1
  60. package/dist/es2019/react/nodes/mediaInline.js +1 -1
  61. package/dist/es2019/react/nodes/mediaSingle/index.js +1 -1
  62. package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -1
  63. package/dist/es2019/react/nodes/mention.js +1 -1
  64. package/dist/es2019/react/nodes/panel.js +14 -12
  65. package/dist/es2019/react/nodes/table/colgroup.js +1 -1
  66. package/dist/es2019/react/nodes/table/sticky.js +1 -1
  67. package/dist/es2019/react/nodes/table.js +4 -1
  68. package/dist/es2019/react/nodes/tableCell.js +2 -1
  69. package/dist/es2019/react/nodes/tableRow.js +2 -1
  70. package/dist/es2019/react/nodes/taskItem.js +1 -1
  71. package/dist/es2019/render-document.js +1 -1
  72. package/dist/es2019/text/nodes/date.js +1 -1
  73. package/dist/es2019/ui/Expand.js +1 -1
  74. package/dist/es2019/ui/ExtensionRenderer.js +3 -1
  75. package/dist/es2019/ui/MediaCard.js +1 -1
  76. package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
  77. package/dist/es2019/ui/Renderer/index.js +3 -1
  78. package/dist/es2019/ui/SortingIcon.js +2 -2
  79. package/dist/es2019/ui/annotations/draft/component.js +1 -1
  80. package/dist/es2019/ui/annotations/element/index.js +1 -1
  81. package/dist/es2019/ui/annotations/element/mark.js +1 -1
  82. package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
  83. package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
  84. package/dist/es2019/version.json +1 -1
  85. package/dist/esm/actions/index.js +1 -1
  86. package/dist/esm/analytics/unsupported-content.js +1 -1
  87. package/dist/esm/react/index.js +6 -4
  88. package/dist/esm/react/marks/annotation.js +2 -2
  89. package/dist/esm/react/marks/breakout.js +2 -1
  90. package/dist/esm/react/nodes/blockCard.js +1 -1
  91. package/dist/esm/react/nodes/caption.js +1 -1
  92. package/dist/esm/react/nodes/date.js +2 -1
  93. package/dist/esm/react/nodes/embedCard.js +1 -1
  94. package/dist/esm/react/nodes/emoji.js +1 -1
  95. package/dist/esm/react/nodes/extension.js +2 -1
  96. package/dist/esm/react/nodes/heading-anchor.js +3 -1
  97. package/dist/esm/react/nodes/index.js +62 -7
  98. package/dist/esm/react/nodes/inlineCard.js +1 -1
  99. package/dist/esm/react/nodes/layoutColumn.js +1 -1
  100. package/dist/esm/react/nodes/media.js +2 -1
  101. package/dist/esm/react/nodes/mediaGroup.js +2 -2
  102. package/dist/esm/react/nodes/mediaInline.js +1 -1
  103. package/dist/esm/react/nodes/mediaSingle/index.js +1 -1
  104. package/dist/esm/react/nodes/mediaSingle/styles.js +1 -1
  105. package/dist/esm/react/nodes/mention.js +1 -1
  106. package/dist/esm/react/nodes/panel.js +14 -12
  107. package/dist/esm/react/nodes/table/colgroup.js +1 -1
  108. package/dist/esm/react/nodes/table/sticky.js +1 -1
  109. package/dist/esm/react/nodes/table.js +4 -1
  110. package/dist/esm/react/nodes/tableCell.js +2 -1
  111. package/dist/esm/react/nodes/tableRow.js +2 -1
  112. package/dist/esm/react/nodes/task-item-with-providers.js +2 -1
  113. package/dist/esm/react/nodes/taskItem.js +1 -1
  114. package/dist/esm/render-document.js +1 -1
  115. package/dist/esm/text/nodes/date.js +1 -1
  116. package/dist/esm/ui/Expand.js +1 -1
  117. package/dist/esm/ui/ExtensionRenderer.js +3 -1
  118. package/dist/esm/ui/MediaCard.js +3 -3
  119. package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
  120. package/dist/esm/ui/Renderer/index.js +5 -3
  121. package/dist/esm/ui/SortingIcon.js +2 -2
  122. package/dist/esm/ui/annotations/draft/component.js +1 -1
  123. package/dist/esm/ui/annotations/element/index.js +1 -1
  124. package/dist/esm/ui/annotations/element/mark.js +3 -3
  125. package/dist/esm/ui/annotations/hooks/use-events.js +3 -3
  126. package/dist/esm/ui/annotations/hooks/use-load-annotations.js +3 -3
  127. package/dist/esm/utils.js +3 -2
  128. package/dist/esm/version.json +1 -1
  129. package/dist/types/actions/index.d.ts +1 -1
  130. package/dist/types/analytics/events.d.ts +3 -1
  131. package/dist/types/analytics/unsupported-content.d.ts +1 -1
  132. package/dist/types/react/index.d.ts +3 -1
  133. package/dist/types/react/nodes/blockCard.d.ts +1 -1
  134. package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
  135. package/dist/types/react/nodes/codeBlock.d.ts +3 -3
  136. package/dist/types/react/nodes/embedCard.d.ts +1 -1
  137. package/dist/types/react/nodes/emoji.d.ts +1 -1
  138. package/dist/types/react/nodes/extension.d.ts +14 -13
  139. package/dist/types/react/nodes/index.d.ts +39 -15
  140. package/dist/types/react/nodes/inlineCard.d.ts +21 -21
  141. package/dist/types/react/nodes/inlineExtension.d.ts +2 -1
  142. package/dist/types/react/nodes/media.d.ts +2 -2
  143. package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
  144. package/dist/types/react/nodes/mediaInline.d.ts +1 -1
  145. package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -1
  146. package/dist/types/react/nodes/mediaSingle/styles.d.ts +1 -1
  147. package/dist/types/react/nodes/mention.d.ts +2 -1
  148. package/dist/types/react/nodes/panel.d.ts +3 -1
  149. package/dist/types/react/nodes/table/sticky.d.ts +1 -1
  150. package/dist/types/react/nodes/table.d.ts +22 -21
  151. package/dist/types/react/nodes/tableCell.d.ts +1 -1
  152. package/dist/types/react/nodes/tableRow.d.ts +1 -1
  153. package/dist/types/react/nodes/task-item-with-providers.d.ts +1 -1
  154. package/dist/types/react/nodes/taskItem.d.ts +1 -1
  155. package/dist/types/react/types.d.ts +3 -1
  156. package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
  157. package/dist/types/render-document.d.ts +1 -1
  158. package/dist/types/ui/ExtensionRenderer.d.ts +3 -1
  159. package/dist/types/ui/MediaCard.d.ts +3 -2
  160. package/dist/types/ui/SortingIcon.d.ts +1 -1
  161. package/dist/types/ui/annotations/context.d.ts +1 -1
  162. package/dist/types/ui/annotations/element/mark.d.ts +1 -1
  163. package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -1
  164. package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -1
  165. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  166. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  167. package/dist/types/ui/annotations/types.d.ts +1 -1
  168. package/dist/types/ui/renderer-props.d.ts +6 -1
  169. package/dist/types/utils.d.ts +3 -1
  170. package/package.json +13 -14
@@ -1,7 +1,7 @@
1
+ import Loadable from 'react-loadable';
1
2
  import Blockquote from './blockquote';
2
3
  import BodiedExtension from './bodiedExtension';
3
4
  import BulletList from './bulletList';
4
- import DecisionList from './decisionList';
5
5
  import Doc, { DocWithSelectAllTrap } from './doc';
6
6
  import Extension from './extension';
7
7
  import HardBreak from './hardBreak';
@@ -10,21 +10,16 @@ import InlineExtension from './inlineExtension';
10
10
  import LayoutSection from './layoutSection';
11
11
  import LayoutColumn from './layoutColumn';
12
12
  import ListItem from './listItem';
13
- import MediaSingle from './mediaSingle';
14
13
  import Caption from './caption';
15
14
  import OrderedList from './orderedList';
16
- import Panel from './panel';
17
15
  import Paragraph from './paragraph';
18
16
  import Placeholder from './placeholder';
19
17
  import Rule from './rule';
20
- import TaskList from './taskList';
21
18
  import Table from './table';
22
19
  import { TableCell, TableHeader } from './tableCell';
23
20
  import TableRow from './tableRow';
24
21
  import UnknownBlock from './unknownBlock';
25
- import Loadable from 'react-loadable';
26
- import EmbedCard from './embedCard';
27
- import { UnsupportedBlock, UnsupportedInline } from '@atlaskit/editor-common';
22
+ import { UnsupportedBlock, UnsupportedInline } from '@atlaskit/editor-common/ui';
28
23
  var CodeBlock = Loadable({
29
24
  loader: function loader() {
30
25
  return import(
@@ -37,6 +32,18 @@ var CodeBlock = Loadable({
37
32
  return null;
38
33
  }
39
34
  });
35
+ var TaskList = Loadable({
36
+ loader: function loader() {
37
+ return import(
38
+ /* webpackChunkName: "@atlaskit-internal_renderer-node_TaskList" */
39
+ './taskList').then(function (mod) {
40
+ return mod.default;
41
+ });
42
+ },
43
+ loading: function loading() {
44
+ return null;
45
+ }
46
+ });
40
47
  var TaskItem = Loadable({
41
48
  loader: function loader() {
42
49
  return import(
@@ -49,6 +56,18 @@ var TaskItem = Loadable({
49
56
  return null;
50
57
  }
51
58
  });
59
+ var DecisionList = Loadable({
60
+ loader: function loader() {
61
+ return import(
62
+ /* webpackChunkName: "@atlaskit-internal_renderer-node_DecisionList" */
63
+ './decisionList').then(function (mod) {
64
+ return mod.default;
65
+ });
66
+ },
67
+ loading: function loading() {
68
+ return null;
69
+ }
70
+ });
52
71
  var DecisionItem = Loadable({
53
72
  loader: function loader() {
54
73
  return import(
@@ -97,6 +116,30 @@ var Emoji = Loadable({
97
116
  return null;
98
117
  }
99
118
  });
119
+ var Panel = Loadable({
120
+ loader: function loader() {
121
+ return import(
122
+ /* webpackChunkName: "@atlaskit-internal_renderer-node_Panel" */
123
+ './panel').then(function (mod) {
124
+ return mod.default;
125
+ });
126
+ },
127
+ loading: function loading() {
128
+ return null;
129
+ }
130
+ });
131
+ var EmbedCard = Loadable({
132
+ loader: function loader() {
133
+ return import(
134
+ /* webpackChunkName: "@atlaskit-internal_renderer-node_EmbedCard" */
135
+ './embedCard').then(function (mod) {
136
+ return mod.default;
137
+ });
138
+ },
139
+ loading: function loading() {
140
+ return null;
141
+ }
142
+ });
100
143
  var InlineCard = Loadable({
101
144
  loader: function loader() {
102
145
  return import(
@@ -157,6 +200,18 @@ var MediaInline = Loadable({
157
200
  return null;
158
201
  }
159
202
  });
203
+ var MediaSingle = Loadable({
204
+ loader: function loader() {
205
+ return import(
206
+ /* webpackChunkName: "@atlaskit-internal_renderer-node_MediaSingle" */
207
+ './mediaSingle').then(function (mod) {
208
+ return mod.default;
209
+ });
210
+ },
211
+ loading: function loading() {
212
+ return null;
213
+ }
214
+ });
160
215
  var Mention = Loadable({
161
216
  loader: function loader() {
162
217
  return import(
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { Card } from '@atlaskit/smart-card';
4
- import { UnsupportedInline } from '@atlaskit/editor-common';
4
+ import { UnsupportedInline } from '@atlaskit/editor-common/ui';
5
5
  import { CardErrorBoundary } from './fallback';
6
6
  import { withSmartCardStorage } from '../../ui/SmartCardStorage';
7
7
  import { getCardClickHandler } from '../utils/getCardClickHandler';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WidthProvider, ClearNextSiblingMarginTop } from '@atlaskit/editor-common';
2
+ import { WidthProvider, ClearNextSiblingMarginTop } from '@atlaskit/editor-common/ui';
3
3
  export default function LayoutSection(props) {
4
4
  return /*#__PURE__*/React.createElement("div", {
5
5
  "data-layout-column": true,
@@ -13,7 +13,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
13
13
 
14
14
  import React from 'react';
15
15
  import { PureComponent } from 'react';
16
- import { WithProviders, MediaLink } from '@atlaskit/editor-common';
16
+ import { WithProviders } from '@atlaskit/editor-common/provider-factory';
17
+ import { MediaLink } from '@atlaskit/editor-common/ui';
17
18
  import { MediaCard } from '../../ui/MediaCard';
18
19
  import { getEventHandler } from '../../utils';
19
20
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics/enums';
@@ -6,9 +6,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
 
9
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10
10
 
11
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
12
 
13
13
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
14
 
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import React, { useEffect, useState } from 'react';
5
5
  import { MediaInlineCard } from '@atlaskit/media-card';
6
- import { WithProviders } from '@atlaskit/editor-common';
6
+ import { WithProviders } from '@atlaskit/editor-common/provider-factory';
7
7
  export var RenderMediaInline = function RenderMediaInline(props) {
8
8
  var mediaProvider = props.mediaProvider;
9
9
 
@@ -11,7 +11,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
11
11
 
12
12
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
13
 
14
- import { mapBreakpointToLayoutMaxWidth, WidthConsumer } from '@atlaskit/editor-common';
14
+ import { mapBreakpointToLayoutMaxWidth, WidthConsumer } from '@atlaskit/editor-common/ui';
15
15
  import { akEditorFullWidthLayoutWidth, getAkEditorFullPageMaxWidth, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
16
16
  import { Component, default as React } from 'react';
17
17
  import { injectIntl } from 'react-intl-next';
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
3
3
  var _templateObject;
4
4
 
5
5
  import styled from 'styled-components';
6
- import { MediaSingle as UIMediaSingle } from '@atlaskit/editor-common';
6
+ import { MediaSingle as UIMediaSingle } from '@atlaskit/editor-common/ui';
7
7
  export var ExtendedUIMediaSingle = styled(UIMediaSingle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", " transition: all 0.1s linear;\n"])), function (_ref) {
8
8
  var layout = _ref.layout;
9
9
  return layout === 'full-width' || layout === 'wide' ? "\n margin-left: 50%;\n transform: translateX(-50%);\n " : "";
@@ -10,7 +10,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
10
10
 
11
11
  import React from 'react';
12
12
  import { PureComponent } from 'react';
13
- import { Mention } from '@atlaskit/editor-common';
13
+ import { Mention } from '@atlaskit/editor-common/mention';
14
14
 
15
15
  var MentionItem = /*#__PURE__*/function (_PureComponent) {
16
16
  _inherits(MentionItem, _PureComponent);
@@ -4,20 +4,16 @@ var _templateObject;
4
4
 
5
5
  import React from 'react';
6
6
  import styled from 'styled-components';
7
- import InfoIcon from '@atlaskit/icon/glyph/editor/info';
8
7
  import TipIcon from '@atlaskit/icon/glyph/editor/hint';
9
- import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
10
- import ErrorIcon from '@atlaskit/icon/glyph/editor/error';
11
- import NoteIcon from '@atlaskit/icon/glyph/editor/note';
12
- import WarningIcon from '@atlaskit/icon/glyph/warning';
13
8
  import { PanelType } from '@atlaskit/adf-schema';
14
- import { PanelSharedCssClassName } from '@atlaskit/editor-common';
9
+ import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles';
15
10
  import EmojiIcon from '@atlaskit/icon/glyph/editor/emoji';
16
11
  import EmojiItem from './emoji'; // AFP-2532 TODO: Fix automatic suppressions below
17
12
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
18
13
 
19
14
  import { themed } from '@atlaskit/theme';
20
- import { getPanelBackgroundDarkModeColors } from '@atlaskit/editor-common';
15
+ import { getPanelBackgroundDarkModeColors } from '@atlaskit/editor-common/styles';
16
+ import { PanelInfoIcon, PanelSuccessIcon, PanelNoteIcon, PanelWarningIcon, PanelErrorIcon } from '@atlaskit/editor-common/icons';
21
17
  var PanelStyled = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (props) {
22
18
  if (props['data-panel-type'] !== PanelType.CUSTOM || !props.backgroundColor) {
23
19
  return '';
@@ -29,12 +25,12 @@ var PanelStyled = styled.div(_templateObject || (_templateObject = _taggedTempla
29
25
  }), ";\n }\n ");
30
26
  });
31
27
  var panelIcons = {
32
- info: InfoIcon,
33
- success: SuccessIcon,
34
- note: NoteIcon,
28
+ info: PanelInfoIcon,
29
+ success: PanelSuccessIcon,
30
+ note: PanelNoteIcon,
35
31
  tip: TipIcon,
36
- warning: WarningIcon,
37
- error: ErrorIcon,
32
+ warning: PanelWarningIcon,
33
+ error: PanelErrorIcon,
38
34
  custom: EmojiIcon
39
35
  };
40
36
 
@@ -43,6 +39,8 @@ var Panel = function Panel(props) {
43
39
  type = props.panelType,
44
40
  panelColor = props.panelColor,
45
41
  panelIcon = props.panelIcon,
42
+ panelIconId = props.panelIconId,
43
+ panelIconText = props.panelIconText,
46
44
  providers = props.providers,
47
45
  children = props.children; // only allow custom panel type if flag is set
48
46
  // otherwise fall back to info if custom panel is given
@@ -53,6 +51,8 @@ var Panel = function Panel(props) {
53
51
  if (panelType === PanelType.CUSTOM) {
54
52
  if (panelIcon && providers) {
55
53
  return /*#__PURE__*/React.createElement(EmojiItem, {
54
+ id: panelIconId,
55
+ text: panelIconText,
56
56
  shortName: panelIcon,
57
57
  providers: providers
58
58
  });
@@ -82,6 +82,8 @@ var Panel = function Panel(props) {
82
82
  "data-panel-type": panelType,
83
83
  "data-panel-color": panelColor,
84
84
  "data-panel-icon": panelIcon,
85
+ "data-panel-icon-id": panelIconId,
86
+ "data-panel-icon-text": panelIconText,
85
87
  backgroundColor: panelColor
86
88
  }, renderIcon(), /*#__PURE__*/React.createElement("div", {
87
89
  className: PanelSharedCssClassName.content
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common';
2
+ import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
3
3
  import { akEditorTableNumberColumnWidth, akEditorWideLayoutWidth, akEditorFullWidthLayoutWidth, akEditorTableLegacyCellMinWidth } from '@atlaskit/editor-shared-styles';
4
4
  import { calcLineLength } from '../../../ui/Renderer/breakout-ssr';
5
5
  // we allow scaling down column widths by no more than 15%
@@ -6,7 +6,7 @@ var _templateObject, _templateObject2, _templateObject3;
6
6
 
7
7
  import React from 'react';
8
8
  import styled from 'styled-components';
9
- import { TableSharedCssClassName } from '@atlaskit/editor-common';
9
+ import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
10
10
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
11
11
  import * as colors from '@atlaskit/theme/colors';
12
12
  var N40A = colors.N40A;
@@ -16,7 +16,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
16
16
 
17
17
  import React from 'react';
18
18
  import styled from 'styled-components';
19
- import { calcTableWidth, WidthConsumer, TableSharedCssClassName, overflowShadow, createCompareNodes, SortOrder, convertProsemirrorTableNodeToArrayOfRows, hasMergedCell, compose, tableMarginTop } from '@atlaskit/editor-common';
19
+ import { calcTableWidth, TableSharedCssClassName, tableMarginTop } from '@atlaskit/editor-common/styles';
20
+ import { WidthConsumer, overflowShadow } from '@atlaskit/editor-common/ui';
21
+ import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMergedCell, compose } from '@atlaskit/editor-common/utils';
22
+ import { SortOrder } from '@atlaskit/editor-common/types';
20
23
  import { FullPagePadding } from '../../ui/Renderer/style';
21
24
  import { TableHeader } from './tableCell';
22
25
  import { withSmartCardStorage } from '../../ui/SmartCardStorage';
@@ -13,7 +13,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
13
13
 
14
14
  import React from 'react';
15
15
  import { tableBackgroundColorPalette } from '@atlaskit/adf-schema';
16
- import { compose, SortOrder } from '@atlaskit/editor-common';
16
+ import { compose } from '@atlaskit/editor-common/utils';
17
+ import { SortOrder } from '@atlaskit/editor-common/types';
17
18
  import SortingIcon from '../../ui/SortingIcon';
18
19
  import { MODE, PLATFORM } from '../../analytics/events';
19
20
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../../analytics/enums';
@@ -11,7 +11,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
11
11
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
12
 
13
13
  import React from 'react';
14
- import { SortOrder, compose } from '@atlaskit/editor-common';
14
+ import { compose } from '@atlaskit/editor-common/utils';
15
+ import { SortOrder } from '@atlaskit/editor-common/types';
15
16
  import { RendererCssClassName } from '../../consts';
16
17
 
17
18
  var TableRow = /*#__PURE__*/function (_React$Component) {
@@ -9,6 +9,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
9
9
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
10
10
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
11
11
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
12
+ var _excluded = ["contextIdentifierProvider", "objectAri"];
12
13
 
13
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
14
15
 
@@ -115,7 +116,7 @@ var TaskItemWithProviders = /*#__PURE__*/function (_Component) {
115
116
  var _this$props = this.props,
116
117
  contextIdentifierProvider = _this$props.contextIdentifierProvider,
117
118
  objectAri = _this$props.objectAri,
118
- otherProps = _objectWithoutProperties(_this$props, ["contextIdentifierProvider", "objectAri"]);
119
+ otherProps = _objectWithoutProperties(_this$props, _excluded);
119
120
 
120
121
  var resolvedObjectId = this.state.resolvedContextProvider && this.state.resolvedContextProvider.objectId || objectAri;
121
122
  return /*#__PURE__*/React.createElement(ResourcedTaskItem, _extends({}, otherProps, {
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
12
12
 
13
13
  import React from 'react';
14
14
  import { PureComponent } from 'react';
15
- import { ProviderFactory, WithProviders } from '@atlaskit/editor-common';
15
+ import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
16
16
  import TaskItemWithProviders from './task-item-with-providers';
17
17
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
18
18
 
@@ -1,6 +1,6 @@
1
1
  import { defaultSchema } from '@atlaskit/adf-schema';
2
2
  import { getValidDocument } from '@atlaskit/editor-common/validator';
3
- import { validateADFEntity, findAndTrackUnsupportedContentNodes } from '@atlaskit/editor-common';
3
+ import { validateADFEntity, findAndTrackUnsupportedContentNodes } from '@atlaskit/editor-common/utils';
4
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from './analytics/enums';
5
5
  import { PLATFORM } from './analytics/events';
6
6
  import { trackUnsupportedContentLevels } from './analytics/unsupported-content';
@@ -1,4 +1,4 @@
1
- import { timestampToIsoFormat } from '@atlaskit/editor-common';
1
+ import { timestampToIsoFormat } from '@atlaskit/editor-common/utils';
2
2
  import { getText } from '../../utils';
3
3
 
4
4
  var date = function date(node, schema) {
@@ -9,7 +9,7 @@ import styled from 'styled-components';
9
9
  import { gridSize, fontSize } from '@atlaskit/theme/constants';
10
10
  import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
11
11
  import Tooltip from '@atlaskit/tooltip';
12
- import { expandMessages, sharedExpandStyles, WidthProvider, ExpandIconWrapper, ExpandLayoutWrapper, ClearNextSiblingMarginTop } from '@atlaskit/editor-common';
12
+ import { expandMessages, sharedExpandStyles, WidthProvider, ExpandIconWrapper, ExpandLayoutWrapper, ClearNextSiblingMarginTop } from '@atlaskit/editor-common/ui';
13
13
  import { akEditorLineHeight, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
14
14
  import { PLATFORM, MODE } from '../analytics/events';
15
15
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics/enums';
@@ -12,7 +12,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
12
12
 
13
13
  import React from 'react';
14
14
  import memoizeOne from 'memoize-one';
15
- import { getExtensionRenderer, WithProviders, getNodeRenderer } from '@atlaskit/editor-common';
15
+ import { getNodeRenderer } from '@atlaskit/editor-common/extensions';
16
+ import { WithProviders } from '@atlaskit/editor-common/provider-factory';
17
+ import { getExtensionRenderer } from '@atlaskit/editor-common/utils';
16
18
 
17
19
  var ExtensionRenderer = /*#__PURE__*/function (_React$Component) {
18
20
  _inherits(ExtensionRenderer, _React$Component);
@@ -11,9 +11,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
11
 
12
12
  var _templateObject;
13
13
 
14
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
15
 
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
17
 
18
18
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
19
19
 
@@ -24,7 +24,7 @@ import { Component } from 'react';
24
24
  import { filter } from '@atlaskit/adf-utils';
25
25
  import { Card, CardLoading, CardError } from '@atlaskit/media-card';
26
26
  import { getMediaClient } from '@atlaskit/media-client';
27
- import { withImageLoader } from '@atlaskit/editor-common';
27
+ import { withImageLoader } from '@atlaskit/editor-common/utils';
28
28
  import styled from 'styled-components';
29
29
  var mediaIdentifierMap = new Map();
30
30
  export var getListOfIdentifiersFromDoc = function getListOfIdentifiersFromDoc(doc) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { breakoutConsts } from '@atlaskit/editor-common';
2
+ import { breakoutConsts } from '@atlaskit/editor-common/utils';
3
3
  /**
4
4
  * Inline Script that updates breakout node width on client side,
5
5
  * before main JavaScript bundle is ready.
@@ -7,9 +7,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
 
10
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
10
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
11
 
12
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
13
 
14
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
15
15
 
@@ -19,7 +19,9 @@ import React, { useContext, useLayoutEffect, useRef } from 'react';
19
19
  import { PureComponent } from 'react';
20
20
  import { getSchemaBasedOnStage } from '@atlaskit/adf-schema';
21
21
  import { reduce } from '@atlaskit/adf-utils';
22
- import { UnsupportedBlock, ProviderFactory, BaseTheme, WidthProvider, getAnalyticsAppearance, getAnalyticsEventSeverity, WithCreateAnalyticsEvent, getResponseEndTime, startMeasure, stopMeasure, shouldForceTracking, IntlNextErrorBoundary, LegacyToNextIntlProvider, IntlLegacyFallbackProvider } from '@atlaskit/editor-common';
22
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
23
+ import { UnsupportedBlock, BaseTheme, WidthProvider, WithCreateAnalyticsEvent, LegacyToNextIntlProvider, IntlLegacyFallbackProvider, IntlNextErrorBoundary } from '@atlaskit/editor-common/ui';
24
+ import { getAnalyticsAppearance, getAnalyticsEventSeverity, getResponseEndTime, startMeasure, stopMeasure, shouldForceTracking } from '@atlaskit/editor-common/utils';
23
25
  import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
24
26
  import { akEditorFullPageDefaultFontSize } from '@atlaskit/editor-shared-styles';
25
27
  import { IframeWidthObserverFallbackWrapper, IframeWrapperConsumer } from '@atlaskit/width-detector';
@@ -4,10 +4,10 @@ var _templateObject, _templateObject2;
4
4
 
5
5
  import React from 'react';
6
6
  import styled from 'styled-components';
7
- import { SortOrder } from '@atlaskit/editor-common';
8
7
  import Tooltip from '@atlaskit/tooltip';
9
8
  import { gridSize } from '@atlaskit/theme/constants';
10
- import { N20, N30 } from '@atlaskit/theme/colors'; // We use data url here because of this issue:
9
+ import { N20, N30 } from '@atlaskit/theme/colors';
10
+ import { SortOrder } from '@atlaskit/editor-common/types'; // We use data url here because of this issue:
11
11
  // https://product-fabric.atlassian.net/browse/ED-8001
12
12
  // Remove this workaround if Firefox has fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1664350
13
13
 
@@ -10,7 +10,7 @@ import { splitText, calcTextSplitOffset } from './text';
10
10
  import { calcInsertDraftPositionOnText } from './position';
11
11
  import { dataAttributes } from './dom';
12
12
  import styled from 'styled-components';
13
- import { AnnotationSharedCSSByState } from '@atlaskit/editor-common';
13
+ import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
14
14
  var DraftAnnotation = styled.mark(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n ", ";\n"])), AnnotationSharedCSSByState.focus);
15
15
  export var AnnotationDraft = function AnnotationDraft(_ref) {
16
16
  var draftPosition = _ref.draftPosition,
@@ -3,7 +3,7 @@ import { AnnotationMarkStates } from '@atlaskit/adf-schema';
3
3
  import { MarkComponent } from './mark';
4
4
  import { useInlineCommentSubscriberContext, useHasFocusEvent, useInlineCommentsFilter } from '../hooks';
5
5
  import { InlineCommentsStateContext } from '../context';
6
- import { AnnotationUpdateEvent } from '@atlaskit/editor-common';
6
+ import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
7
7
 
8
8
  var MarkElement = function MarkElement(_ref) {
9
9
  var annotationParentIds = _ref.annotationParentIds,
@@ -5,12 +5,12 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
5
5
 
6
6
  var _templateObject;
7
7
 
8
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
9
 
10
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
10
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11
11
 
12
12
  import React, { useMemo, useCallback } from 'react';
13
- import { AnnotationSharedCSSByState } from '@atlaskit/editor-common';
13
+ import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
14
14
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
15
15
  import styled from 'styled-components';
16
16
  var MarkStyled = styled.mark(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), AnnotationMarkStates.ACTIVE, AnnotationSharedCSSByState.blur, AnnotationSharedCSSByState.focus);
@@ -1,12 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
 
4
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
4
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
5
 
6
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
 
8
8
  import { useLayoutEffect, useState } from 'react';
9
- import { AnnotationUpdateEvent } from '@atlaskit/editor-common';
9
+ import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
10
10
  import { AnnotationTypes } from '@atlaskit/adf-schema';
11
11
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '../../../analytics/enums';
12
12
  import { FabricChannel } from '@atlaskit/analytics-listeners';
@@ -1,11 +1,11 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
 
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
 
5
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
6
 
7
7
  import { useContext, useEffect } from 'react';
8
- import { AnnotationUpdateEvent } from '@atlaskit/editor-common';
8
+ import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
9
9
  import { ProvidersContext } from '../context';
10
10
  import { RendererContext as ActionsContext } from '../../RendererActionsContext';
11
11
  export var useLoadAnnotations = function useLoadAnnotations(_ref) {
package/dist/esm/utils.js CHANGED
@@ -1,3 +1,4 @@
1
+ import _createClass from "@babel/runtime/helpers/createClass";
1
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
3
  import { defaultSchema } from '@atlaskit/adf-schema';
3
4
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
@@ -8,12 +9,12 @@ function createEncoder(parser, encoder) {
8
9
  };
9
10
  }
10
11
 
11
- export var ADFEncoder = function ADFEncoder(createTransformerWithSchema) {
12
+ export var ADFEncoder = /*#__PURE__*/_createClass(function ADFEncoder(createTransformerWithSchema) {
12
13
  _classCallCheck(this, ADFEncoder);
13
14
 
14
15
  var transformer = createTransformerWithSchema(defaultSchema);
15
16
  this.encode = createEncoder(transformer, new JSONTransformer());
16
- };
17
+ });
17
18
  export var getText = function getText(node) {
18
19
  return node.text || node.attrs && (node.attrs.text || node.attrs.shortName) || "[".concat(typeof node.type === 'string' ? node.type : node.type.name, "]");
19
20
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "84.1.1",
3
+ "version": "85.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { JSONDocNode } from '@atlaskit/editor-json-transformer';
3
- import { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common';
3
+ import type { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common/types';
4
4
  import { AnnotationTypes } from '@atlaskit/adf-schema';
5
5
  import { Node, Schema, Mark } from 'prosemirror-model';
6
6
  import { Step, RemoveMarkStep } from 'prosemirror-transform';
@@ -1,5 +1,7 @@
1
1
  import { ACTION, ACTION_SUBJECT, AEP, EVENT_TYPE, ACTION_SUBJECT_ID } from './enums';
2
- import { SortOrder, UnsupportedContentPayload, SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common';
2
+ import { SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
3
+ import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
4
+ import { SortOrder } from '@atlaskit/editor-common/types';
3
5
  import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/src/utils/analytics';
4
6
  export declare enum PLATFORM {
5
7
  NATIVE = "mobileNative",
@@ -1,4 +1,4 @@
1
- import { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common';
1
+ import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
2
2
  import { AnalyticsEventPayload } from './events';
3
3
  declare type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
4
4
  declare type DocumentData = {
@@ -4,7 +4,9 @@ import { Serializer } from '../';
4
4
  import { RendererAppearance, StickyHeaderConfig, HeadingAnchorLinksProps } from '../ui/Renderer/types';
5
5
  import { AnalyticsEventPayload } from '../analytics/events';
6
6
  import { TextWrapper } from './nodes';
7
- import { ProviderFactory, EventHandlers, ExtensionHandlers } from '@atlaskit/editor-common';
7
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
8
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
9
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
8
10
  import { RendererContext } from './types';
9
11
  import { MediaOptions } from '../types/mediaOptions';
10
12
  export interface ReactSerializerInit {