@atlaskit/renderer 83.0.0 → 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.
- package/CHANGELOG.md +81 -0
- package/dist/cjs/actions/index.js +3 -3
- package/dist/cjs/actions/matches-utils.js +1 -1
- package/dist/cjs/analytics/enums.js +2 -1
- package/dist/cjs/analytics/events.js +1 -1
- package/dist/cjs/analytics/unsupported-content.js +3 -3
- package/dist/cjs/i18n/index.js +26 -26
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/messages.js +4 -4
- package/dist/cjs/react/index.js +13 -9
- package/dist/cjs/react/marks/annotation.js +3 -3
- package/dist/cjs/react/marks/breakout.js +6 -4
- package/dist/cjs/react/marks/code.js +3 -3
- package/dist/cjs/react/marks/index.js +24 -24
- package/dist/cjs/react/marks/textColor.js +15 -4
- package/dist/cjs/react/nodes/blockCard.js +2 -2
- package/dist/cjs/react/nodes/caption.js +2 -2
- package/dist/cjs/react/nodes/codeBlock.js +2 -2
- package/dist/cjs/react/nodes/codeBlockCopyButton.js +2 -2
- package/dist/cjs/react/nodes/copy-text-provider.js +1 -1
- package/dist/cjs/react/nodes/date.js +8 -6
- package/dist/cjs/react/nodes/doc.js +1 -1
- package/dist/cjs/react/nodes/embedCard.js +5 -5
- package/dist/cjs/react/nodes/emoji.js +2 -2
- package/dist/cjs/react/nodes/extension.js +7 -5
- package/dist/cjs/react/nodes/heading-anchor.js +5 -3
- package/dist/cjs/react/nodes/index.js +92 -58
- package/dist/cjs/react/nodes/inlineCard.js +2 -2
- package/dist/cjs/react/nodes/layoutColumn.js +2 -2
- package/dist/cjs/react/nodes/media.js +5 -3
- package/dist/cjs/react/nodes/mediaGroup.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +2 -2
- package/dist/cjs/react/nodes/mediaSingle/index.js +6 -6
- package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -2
- package/dist/cjs/react/nodes/mention.js +2 -2
- package/dist/cjs/react/nodes/panel.js +18 -20
- package/dist/cjs/react/nodes/table/colgroup.js +3 -3
- package/dist/cjs/react/nodes/table/sticky.js +5 -5
- package/dist/cjs/react/nodes/table.js +19 -13
- package/dist/cjs/react/nodes/tableCell.js +16 -14
- package/dist/cjs/react/nodes/tableRow.js +6 -4
- package/dist/cjs/react/nodes/task-item-with-providers.js +3 -1
- package/dist/cjs/react/nodes/taskItem.js +3 -3
- package/dist/cjs/react/renderer-node.js +1 -1
- package/dist/cjs/react/utils/links.js +1 -1
- package/dist/cjs/render-document.js +24 -4
- package/dist/cjs/renderer-context.js +1 -1
- package/dist/cjs/steps/index.js +2 -2
- package/dist/cjs/text/nodes/date.js +3 -3
- package/dist/cjs/text/nodes/index.js +1 -1
- package/dist/cjs/ui/Expand.js +11 -11
- package/dist/cjs/ui/ExtensionRenderer.js +8 -4
- package/dist/cjs/ui/MediaCard.js +5 -5
- package/dist/cjs/ui/Renderer/breakout-ssr.js +4 -4
- package/dist/cjs/ui/Renderer/index.js +27 -23
- package/dist/cjs/ui/Renderer/style.js +9 -7
- package/dist/cjs/ui/RendererActionsContext/index.js +1 -1
- package/dist/cjs/ui/SortingIcon.js +9 -9
- package/dist/cjs/ui/active-header-id-provider.js +1 -1
- package/dist/cjs/ui/annotations/context.js +1 -1
- package/dist/cjs/ui/annotations/draft/component.js +3 -3
- package/dist/cjs/ui/annotations/draft/index.js +4 -4
- package/dist/cjs/ui/annotations/draft/text.js +1 -1
- package/dist/cjs/ui/annotations/element/index.js +2 -2
- package/dist/cjs/ui/annotations/element/mark.js +4 -4
- package/dist/cjs/ui/annotations/hooks/index.js +8 -8
- package/dist/cjs/ui/annotations/hooks/use-events.js +12 -12
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +4 -4
- package/dist/cjs/ui/annotations/index.js +5 -5
- package/dist/cjs/utils.js +6 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/analytics/enums.js +1 -0
- package/dist/es2019/analytics/unsupported-content.js +1 -1
- package/dist/es2019/messages.js +1 -1
- package/dist/es2019/react/index.js +2 -1
- package/dist/es2019/react/marks/breakout.js +2 -1
- package/dist/es2019/react/marks/code.js +1 -1
- package/dist/es2019/react/marks/textColor.js +7 -4
- package/dist/es2019/react/nodes/blockCard.js +1 -1
- package/dist/es2019/react/nodes/caption.js +1 -1
- package/dist/es2019/react/nodes/codeBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlockCopyButton.js +1 -1
- package/dist/es2019/react/nodes/date.js +3 -2
- package/dist/es2019/react/nodes/embedCard.js +1 -1
- package/dist/es2019/react/nodes/emoji.js +1 -1
- package/dist/es2019/react/nodes/extension.js +2 -1
- package/dist/es2019/react/nodes/heading-anchor.js +1 -1
- package/dist/es2019/react/nodes/index.js +32 -7
- package/dist/es2019/react/nodes/inlineCard.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn.js +1 -1
- package/dist/es2019/react/nodes/media.js +2 -1
- package/dist/es2019/react/nodes/mediaInline.js +1 -1
- package/dist/es2019/react/nodes/mediaSingle/index.js +2 -2
- package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -1
- package/dist/es2019/react/nodes/mention.js +1 -1
- package/dist/es2019/react/nodes/panel.js +14 -12
- package/dist/es2019/react/nodes/table/colgroup.js +1 -1
- package/dist/es2019/react/nodes/table/sticky.js +1 -1
- package/dist/es2019/react/nodes/table.js +4 -1
- package/dist/es2019/react/nodes/tableCell.js +2 -1
- package/dist/es2019/react/nodes/tableRow.js +2 -1
- package/dist/es2019/react/nodes/taskItem.js +1 -1
- package/dist/es2019/render-document.js +20 -2
- package/dist/es2019/text/nodes/date.js +1 -1
- package/dist/es2019/ui/Expand.js +2 -2
- package/dist/es2019/ui/ExtensionRenderer.js +3 -1
- package/dist/es2019/ui/MediaCard.js +1 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +8 -6
- package/dist/es2019/ui/Renderer/style.js +3 -1
- package/dist/es2019/ui/SortingIcon.js +2 -2
- package/dist/es2019/ui/annotations/draft/component.js +1 -1
- package/dist/es2019/ui/annotations/element/index.js +1 -1
- package/dist/es2019/ui/annotations/element/mark.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/analytics/enums.js +1 -0
- package/dist/esm/analytics/unsupported-content.js +1 -1
- package/dist/esm/messages.js +1 -1
- package/dist/esm/react/index.js +6 -4
- package/dist/esm/react/marks/annotation.js +2 -2
- package/dist/esm/react/marks/breakout.js +2 -1
- package/dist/esm/react/marks/code.js +1 -1
- package/dist/esm/react/marks/textColor.js +8 -4
- package/dist/esm/react/nodes/blockCard.js +1 -1
- package/dist/esm/react/nodes/caption.js +1 -1
- package/dist/esm/react/nodes/codeBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlockCopyButton.js +1 -1
- package/dist/esm/react/nodes/date.js +3 -2
- package/dist/esm/react/nodes/embedCard.js +1 -1
- package/dist/esm/react/nodes/emoji.js +1 -1
- package/dist/esm/react/nodes/extension.js +2 -1
- package/dist/esm/react/nodes/heading-anchor.js +4 -2
- package/dist/esm/react/nodes/index.js +62 -7
- package/dist/esm/react/nodes/inlineCard.js +1 -1
- package/dist/esm/react/nodes/layoutColumn.js +1 -1
- package/dist/esm/react/nodes/media.js +2 -1
- package/dist/esm/react/nodes/mediaGroup.js +2 -2
- package/dist/esm/react/nodes/mediaInline.js +1 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +2 -2
- package/dist/esm/react/nodes/mediaSingle/styles.js +1 -1
- package/dist/esm/react/nodes/mention.js +1 -1
- package/dist/esm/react/nodes/panel.js +14 -12
- package/dist/esm/react/nodes/table/colgroup.js +1 -1
- package/dist/esm/react/nodes/table/sticky.js +1 -1
- package/dist/esm/react/nodes/table.js +4 -1
- package/dist/esm/react/nodes/tableCell.js +2 -1
- package/dist/esm/react/nodes/tableRow.js +2 -1
- package/dist/esm/react/nodes/task-item-with-providers.js +2 -1
- package/dist/esm/react/nodes/taskItem.js +1 -1
- package/dist/esm/render-document.js +20 -2
- package/dist/esm/text/nodes/date.js +1 -1
- package/dist/esm/ui/Expand.js +2 -2
- package/dist/esm/ui/ExtensionRenderer.js +3 -1
- package/dist/esm/ui/MediaCard.js +3 -3
- package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/esm/ui/Renderer/index.js +10 -8
- package/dist/esm/ui/Renderer/style.js +4 -3
- package/dist/esm/ui/SortingIcon.js +2 -2
- package/dist/esm/ui/annotations/draft/component.js +1 -1
- package/dist/esm/ui/annotations/element/index.js +1 -1
- package/dist/esm/ui/annotations/element/mark.js +3 -3
- package/dist/esm/ui/annotations/hooks/use-events.js +3 -3
- package/dist/esm/ui/annotations/hooks/use-load-annotations.js +3 -3
- package/dist/esm/utils.js +3 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/analytics/enums.d.ts +1 -0
- package/dist/types/analytics/events.d.ts +8 -2
- package/dist/types/analytics/unsupported-content.d.ts +1 -1
- package/dist/types/react/index.d.ts +4 -1
- package/dist/types/react/marks/alignment.d.ts +1 -0
- package/dist/types/react/marks/annotation.d.ts +1 -0
- package/dist/types/react/marks/code.d.ts +6 -6
- package/dist/types/react/marks/data-consumer.d.ts +1 -0
- package/dist/types/react/marks/em.d.ts +1 -0
- package/dist/types/react/marks/fragment.d.ts +1 -0
- package/dist/types/react/marks/indentation.d.ts +1 -0
- package/dist/types/react/marks/link.d.ts +1 -0
- package/dist/types/react/marks/strike.d.ts +1 -0
- package/dist/types/react/marks/strong.d.ts +1 -0
- package/dist/types/react/marks/subsup.d.ts +1 -0
- package/dist/types/react/marks/textColor.d.ts +1 -0
- package/dist/types/react/marks/underline.d.ts +1 -0
- package/dist/types/react/marks/unsupportedMark.d.ts +1 -0
- package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -0
- package/dist/types/react/nodes/blockCard.d.ts +2 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
- package/dist/types/react/nodes/caption.d.ts +1 -0
- package/dist/types/react/nodes/codeBlock.d.ts +11 -3
- package/dist/types/react/nodes/codeBlockCopyButton.d.ts +3 -3
- package/dist/types/react/nodes/date.d.ts +3 -3
- package/dist/types/react/nodes/decisionItem.d.ts +1 -0
- package/dist/types/react/nodes/doc.d.ts +1 -0
- package/dist/types/react/nodes/embedCard.d.ts +2 -1
- package/dist/types/react/nodes/emoji.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +14 -13
- package/dist/types/react/nodes/heading-anchor.d.ts +4 -4
- package/dist/types/react/nodes/heading.d.ts +1 -0
- package/dist/types/react/nodes/index.d.ts +41 -17
- package/dist/types/react/nodes/inlineCard.d.ts +21 -21
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -1
- package/dist/types/react/nodes/media.d.ts +2 -2
- package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +1 -1
- package/dist/types/react/nodes/mediaSingle/index.d.ts +4 -4
- package/dist/types/react/nodes/mediaSingle/styles.d.ts +1 -1
- package/dist/types/react/nodes/mention.d.ts +2 -1
- package/dist/types/react/nodes/panel.d.ts +3 -1
- package/dist/types/react/nodes/paragraph.d.ts +1 -0
- package/dist/types/react/nodes/placeholder.d.ts +1 -0
- package/dist/types/react/nodes/rule.d.ts +1 -0
- package/dist/types/react/nodes/table/colgroup.d.ts +1 -0
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +22 -21
- package/dist/types/react/nodes/tableCell.d.ts +1 -1
- package/dist/types/react/nodes/tableRow.d.ts +1 -1
- package/dist/types/react/nodes/task-item-with-providers.d.ts +1 -1
- package/dist/types/react/nodes/taskItem.d.ts +1 -1
- package/dist/types/react/nodes/text-wrapper.d.ts +1 -0
- package/dist/types/react/types.d.ts +3 -1
- package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
- package/dist/types/render-document.d.ts +1 -1
- package/dist/types/ui/Expand.d.ts +3 -3
- package/dist/types/ui/ExtensionRenderer.d.ts +3 -1
- package/dist/types/ui/MediaCard.d.ts +3 -2
- package/dist/types/ui/Renderer/breakout-ssr.d.ts +1 -0
- package/dist/types/ui/SortingIcon.d.ts +2 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -1
- package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +6 -1
- package/dist/types/utils.d.ts +3 -1
- package/package.json +20 -20
|
@@ -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
|
|
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
|
|
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);
|
|
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]
|
|
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,10 +11,10 @@ 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
|
-
import { injectIntl } from 'react-intl';
|
|
17
|
+
import { injectIntl } from 'react-intl-next';
|
|
18
18
|
import { FullPagePadding } from '../../../ui/Renderer/style';
|
|
19
19
|
import { ExtendedUIMediaSingle } from './styles';
|
|
20
20
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
@@ -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:
|
|
33
|
-
success:
|
|
34
|
-
note:
|
|
28
|
+
info: PanelInfoIcon,
|
|
29
|
+
success: PanelSuccessIcon,
|
|
30
|
+
note: PanelNoteIcon,
|
|
35
31
|
tip: TipIcon,
|
|
36
|
-
warning:
|
|
37
|
-
error:
|
|
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,
|
|
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
|
|
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 {
|
|
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,
|
|
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,8 @@
|
|
|
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
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from './analytics/enums';
|
|
5
|
+
import { PLATFORM } from './analytics/events';
|
|
4
6
|
import { trackUnsupportedContentLevels } from './analytics/unsupported-content';
|
|
5
7
|
var SUPPORTS_HIRES_TIMER_API = !!(window.performance && performance.now);
|
|
6
8
|
|
|
@@ -64,7 +66,23 @@ export var renderDocument = function renderDocument(doc, serializer) {
|
|
|
64
66
|
|
|
65
67
|
var _withStopwatch2 = withStopwatch(function () {
|
|
66
68
|
var pmNode = schema.nodeFromJSON(validDoc);
|
|
67
|
-
|
|
69
|
+
|
|
70
|
+
try {
|
|
71
|
+
pmNode.check();
|
|
72
|
+
} catch (err) {
|
|
73
|
+
if (dispatchAnalyticsEvent) {
|
|
74
|
+
dispatchAnalyticsEvent({
|
|
75
|
+
action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
|
|
76
|
+
actionSubject: ACTION_SUBJECT.RENDERER,
|
|
77
|
+
attributes: {
|
|
78
|
+
platform: PLATFORM.WEB,
|
|
79
|
+
error: err === null || err === void 0 ? void 0 : err.toString()
|
|
80
|
+
},
|
|
81
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
68
86
|
return pmNode;
|
|
69
87
|
}),
|
|
70
88
|
node = _withStopwatch2.output,
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -9,11 +9,11 @@ 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';
|
|
16
|
-
import { injectIntl } from 'react-intl';
|
|
16
|
+
import { injectIntl } from 'react-intl-next';
|
|
17
17
|
import { ActiveHeaderIdConsumer } from './active-header-id-provider';
|
|
18
18
|
import _uniqueId from 'lodash/uniqueId';
|
|
19
19
|
var Title = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n outline: none;\n border: none;\n font-size: ", ";\n line-height: ", ";\n font-weight: normal;\n display: flex;\n flex: 1;\n margin: 0;\n padding: 0 0 0 ", "px;\n text-align: left;\n"])), relativeFontSizeToBase16(fontSize()), akEditorLineHeight, gridSize() / 2);
|
|
@@ -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 {
|
|
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);
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -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);
|
|
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]
|
|
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) {
|
|
@@ -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);
|
|
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]
|
|
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
|
|
|
@@ -17,10 +17,11 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
17
17
|
|
|
18
18
|
import React, { useContext, useLayoutEffect, useRef } from 'react';
|
|
19
19
|
import { PureComponent } from 'react';
|
|
20
|
-
import { IntlProvider } from 'react-intl';
|
|
21
20
|
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema';
|
|
22
21
|
import { reduce } from '@atlaskit/adf-utils';
|
|
23
|
-
import {
|
|
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';
|
|
24
25
|
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
25
26
|
import { akEditorFullPageDefaultFontSize } from '@atlaskit/editor-shared-styles';
|
|
26
27
|
import { IframeWidthObserverFallbackWrapper, IframeWrapperConsumer } from '@atlaskit/width-detector';
|
|
@@ -297,7 +298,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
297
298
|
value: this.featureFlags(this.props.featureFlags)
|
|
298
299
|
}, /*#__PURE__*/React.createElement(CopyTextProvider, null, /*#__PURE__*/React.createElement(ActiveHeaderIdProvider, {
|
|
299
300
|
value: getActiveHeadingId(allowHeadingAnchorLinks)
|
|
300
|
-
}, /*#__PURE__*/React.createElement(
|
|
301
|
+
}, /*#__PURE__*/React.createElement(LegacyToNextIntlProvider, null, /*#__PURE__*/React.createElement(IntlLegacyFallbackProvider, null, /*#__PURE__*/React.createElement(AnalyticsContext.Provider, {
|
|
301
302
|
value: {
|
|
302
303
|
fireAnalyticsEvent: function fireAnalyticsEvent(event) {
|
|
303
304
|
return _this3.fireAnalyticsEvent(event);
|
|
@@ -320,7 +321,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
320
321
|
doc: pmDoc,
|
|
321
322
|
schema: schema,
|
|
322
323
|
onAnalyticsEvent: this.fireAnalyticsEvent
|
|
323
|
-
}, result))))))));
|
|
324
|
+
}, result)))))))));
|
|
324
325
|
return truncated ? /*#__PURE__*/React.createElement(TruncatedWrapper, {
|
|
325
326
|
height: maxHeight,
|
|
326
327
|
fadeHeight: fadeOutHeight
|
|
@@ -371,14 +372,15 @@ var RendererWithAnalytics = /*#__PURE__*/React.memo(function (props) {
|
|
|
371
372
|
}
|
|
372
373
|
}, /*#__PURE__*/React.createElement(WithCreateAnalyticsEvent, {
|
|
373
374
|
render: function render(createAnalyticsEvent) {
|
|
375
|
+
// `IntlNextErrorBoundary` only captures Internationalisation errors, leaving others for `ErrorBoundary`.
|
|
374
376
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
375
377
|
component: ACTION_SUBJECT.RENDERER,
|
|
376
378
|
rethrowError: true,
|
|
377
379
|
fallbackComponent: null,
|
|
378
380
|
createAnalyticsEvent: createAnalyticsEvent
|
|
379
|
-
}, /*#__PURE__*/React.createElement(Renderer, _extends({}, props, {
|
|
381
|
+
}, /*#__PURE__*/React.createElement(IntlNextErrorBoundary, null, /*#__PURE__*/React.createElement(Renderer, _extends({}, props, {
|
|
380
382
|
createAnalyticsEvent: createAnalyticsEvent
|
|
381
|
-
})));
|
|
383
|
+
}))));
|
|
382
384
|
}
|
|
383
385
|
}));
|
|
384
386
|
});
|
|
@@ -7,7 +7,8 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
7
7
|
import { gridSize, fontFamily, fontSize, borderRadius } from '@atlaskit/theme/constants';
|
|
8
8
|
import * as colors from '@atlaskit/theme/colors';
|
|
9
9
|
import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
|
|
10
|
-
import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, panelSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle,
|
|
10
|
+
import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, panelSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles } from '@atlaskit/editor-common/styles';
|
|
11
|
+
import { shadowClassNames } from '@atlaskit/editor-common/ui';
|
|
11
12
|
import { editorFontSize, blockNodesVerticalMargin, akEditorTableToolbar, akEditorTableToolbarDark, akEditorTableBorder, akEditorTableBorderDark, akEditorTableNumberColumnWidth, gridMediumMaxWidth, akEditorFullWidthLayoutWidth, akEditorStickyHeaderZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
13
|
import { RendererCssClassName } from '../../consts';
|
|
13
14
|
import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
|
|
@@ -91,10 +92,10 @@ var fullWidthStyles = function fullWidthStyles(_ref4) {
|
|
|
91
92
|
}; // prettier-ignore
|
|
92
93
|
|
|
93
94
|
|
|
94
|
-
export var Wrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n ", "\n ", "\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", "px 0;\n }\n\n .", ".rich-media-wrapped + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n * .", " {\n width: 100% !important;\n left: 0 !important;\n }\n\n * .", " {\n overflow-x: auto;\n }\n\n & .", ":first-child {\n margin-top: 0;\n }\n }\n\n .", " {\n margin-top: ", ";\n }\n\n .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .", " {\n overflow-x: auto;\n }\n\n ", "\n\n .", " {\n z-index: 0;\n transition: all 0.1s linear;\n display: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n /** Shadow overrides */\n &.", "::after, &.", "::before {\n top: ", "px;\n height: calc(100% - ", "px);\n z-index: ", ";\n }\n\n /**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n table {\n height: 1px; /* will be ignored */\n ", ";\n margin-left: 0;\n margin-right: 0;\n }\n\n table tr:first-child {\n height: 100%;\n\n td, th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid ", ";\n border-bottom: 1px solid ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th, .sticky td {\n box-shadow: 0px 1px ", ", 0px -0.5px ", ", inset -1px 0px ", ", 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n position: relative;\n border-radius: ", "px;\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n\n &:hover button.copy-to-clipboard, .copy-to-clipboard:focus{\n opacity: 1;\n position: absolute;\n height: 32px;\n width: 32px;\n right: 6px;\n top: 4px;\n padding: 2px;\n }\n }\n\n ", ";\n & [data-layout-section] {\n margin-top: ", "px;\n & > div + div {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n }\n"])), editorFontSize, themed({
|
|
95
|
+
export var Wrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: ", "px;\n line-height: 1.5rem;\n color: ", ";\n\n ", "\n ", "\n\n & h1 {\n ", "\n }\n\n & h2 {\n ", "\n }\n\n & h3 {\n ", "\n }\n\n & h4 {\n ", "\n }\n\n & h5 {\n ", "\n }\n\n & h6 {\n ", "\n }\n\n & span.akActionMark {\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n\n & span.akActionMark {\n cursor: pointer;\n }\n\n & span[data-placeholder] {\n color: ", ";\n }\n\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", "\n\n & .UnknownBlock {\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n white-space: pre-wrap;\n word-wrap: break-word;\n }\n\n & span.date-node {\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n padding: 2px 4px;\n margin: 0 1px;\n transition: background 0.3s;\n }\n\n & span.date-node-highlighted {\n background: ", ";\n color: ", ";\n }\n\n & .renderer-image {\n max-width: 100%;\n display: block;\n margin: ", "px 0;\n }\n\n .", ".rich-media-wrapped + .", ":not(.rich-media-wrapped) {\n clear: both;\n }\n\n & .code-block,\n & blockquote,\n & hr,\n & > div > div:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n .", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n .", ".image-align-start,\n .", ".image-center,\n .", ".image-align-end {\n clear: both;\n }\n\n & .rich-media-wrapped {\n & + h1,\n & + h2,\n & + h3,\n & + h4,\n & + h5,\n & + h6 {\n margin-top: 8px;\n }\n }\n\n ", "\n\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n margin-left: 0;\n margin-right: 0;\n }\n\n /* Breakout for tables and extensions */\n .", " > {\n * .", " {\n width: 100% !important;\n left: 0 !important;\n }\n\n * .", " {\n overflow-x: auto;\n }\n\n & .", ":first-child {\n margin-top: 0;\n }\n }\n\n .", " {\n margin-top: ", ";\n }\n\n .", " {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n\n .", " {\n overflow-x: auto;\n }\n\n ", "\n\n .", " {\n z-index: 0;\n transition: all 0.1s linear;\n display: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n /** Shadow overrides */\n &.", "::after, &.", "::before {\n top: ", "px;\n height: calc(100% - ", "px);\n z-index: ", ";\n }\n\n /**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n table {\n height: 1px; /* will be ignored */\n ", ";\n margin-left: 0;\n margin-right: 0;\n }\n\n table tr:first-child {\n height: 100%;\n\n td, th {\n position: relative;\n }\n }\n\n table[data-number-column='true'] {\n .", " {\n background-color: ", ";\n border-right: 1px solid ", ";\n width: ", "px;\n text-align: center;\n color: ", ";\n font-size: ", ";\n }\n\n .fixed .", " {\n border-right: 0px none;\n }\n }\n }\n\n tr[data-header-row].fixed {\n position: fixed !important;\n display: flex;\n overflow: hidden;\n z-index: ", ";\n\n border-right: 1px solid ", ";\n border-bottom: 1px solid ", ";\n\n /* this is to compensate for the table border */\n transform: translateX(-1px);\n }\n\n .sticky > th {\n z-index: ", ";\n position: sticky !important;\n top: 0;\n }\n\n /* Make the number column header sticky */\n .sticky > td {\n position: sticky !important;\n top: 0;\n }\n\n /* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n .sticky th, .sticky td {\n box-shadow: 0px 1px ", ", 0px -0.5px ", ", inset -1px 0px ", ", 0px -1px ", ";\n }\n\n /* this will remove jumpiness caused in Chrome for sticky headers */\n .fixed + tr {\n min-height: 0px;\n }\n\n /*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n & .code-block {\n max-width: 100%;\n /* -ms- properties are necessary until MS supports the latest version of the grid spec */\n /* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n display: -ms-grid;\n display: grid;\n -ms-grid-columns: auto 1fr;\n /* stylelint-enable */\n\n grid-template-columns: minmax(0, 1fr);\n position: relative;\n border-radius: ", "px;\n\n /*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n word-wrap: normal;\n\n & > span {\n /* stylelint-disable value-no-vendor-prefix */\n -ms-grid-row: 1;\n -ms-grid-column: 2;\n /* stylelint-enable */\n grid-column: 1;\n }\n }\n\n & .MediaGroup,\n & .code-block {\n margin-top: ", ";\n\n &:first-child {\n margin-top: 0;\n }\n\n &:hover button.copy-to-clipboard, .copy-to-clipboard:focus{\n opacity: 1;\n position: absolute;\n height: 32px;\n width: 32px;\n right: 6px;\n top: 4px;\n padding: 2px;\n }\n }\n\n ", ";\n & [data-layout-section] {\n margin-top: ", "px;\n & > div + div {\n margin-left: ", "px;\n }\n\n @media screen and (max-width: ", "px) {\n & > div + div {\n margin-left: 0;\n }\n }\n }\n"])), editorFontSize, themed({
|
|
95
96
|
light: colors.N800,
|
|
96
97
|
dark: '#B8C7E0'
|
|
97
|
-
}), fullPageStyles, fullWidthStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), colors.B400, colors.B300, colors.placeholderText, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, panelSharedStyles, ruleSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, smartCardSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
|
|
98
|
+
}), fullPageStyles, fullWidthStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), colors.B400, colors.B300, colors.placeholderText, whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles, panelSharedStyles, ruleSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, tasksAndDecisionsStyles, smartCardSharedStyles, fontFamily(), relativeFontSizeToBase16(fontSize()), themed({
|
|
98
99
|
light: colors.N30A,
|
|
99
100
|
dark: colors.DN70
|
|
100
101
|
}), borderRadius(), themed({
|
|
@@ -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';
|
|
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,
|