@atlaskit/editor-plugin-toolbar 23.0.4 → 23.0.7

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 (49) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/pm-plugins/experiences/selection-toolbar-open-experience.js +9 -5
  3. package/dist/cjs/toolbarPlugin.js +2 -2
  4. package/dist/cjs/ui/OverflowMenu.js +8 -6
  5. package/dist/cjs/ui/OverflowMenuSection.js +4 -4
  6. package/dist/cjs/ui/OverflowSection.js +4 -4
  7. package/dist/cjs/ui/PrimaryToolbar.js +4 -4
  8. package/dist/cjs/ui/Section.js +10 -9
  9. package/dist/cjs/ui/SelectionToolbar/index.js +35 -29
  10. package/dist/cjs/ui/SelectionToolbar/keyboard-config.js +7 -7
  11. package/dist/cjs/ui/SelectionToolbar/utils.js +7 -7
  12. package/dist/cjs/ui/TextCollapsedMenu.js +9 -7
  13. package/dist/cjs/ui/toolbar-components.js +85 -83
  14. package/dist/es2019/pm-plugins/experiences/selection-toolbar-open-experience.js +6 -2
  15. package/dist/es2019/toolbarPlugin.js +1 -1
  16. package/dist/es2019/ui/OverflowMenu.js +4 -2
  17. package/dist/es2019/ui/OverflowMenuSection.js +2 -2
  18. package/dist/es2019/ui/OverflowSection.js +2 -2
  19. package/dist/es2019/ui/PrimaryToolbar.js +2 -2
  20. package/dist/es2019/ui/Section.js +4 -3
  21. package/dist/es2019/ui/SelectionToolbar/index.js +16 -11
  22. package/dist/es2019/ui/SelectionToolbar/keyboard-config.js +3 -3
  23. package/dist/es2019/ui/SelectionToolbar/utils.js +2 -2
  24. package/dist/es2019/ui/TextCollapsedMenu.js +4 -2
  25. package/dist/es2019/ui/toolbar-components.js +5 -3
  26. package/dist/esm/pm-plugins/experiences/selection-toolbar-open-experience.js +6 -2
  27. package/dist/esm/toolbarPlugin.js +1 -1
  28. package/dist/esm/ui/OverflowMenu.js +4 -2
  29. package/dist/esm/ui/OverflowMenuSection.js +2 -2
  30. package/dist/esm/ui/OverflowSection.js +2 -2
  31. package/dist/esm/ui/PrimaryToolbar.js +2 -2
  32. package/dist/esm/ui/Section.js +4 -3
  33. package/dist/esm/ui/SelectionToolbar/index.js +16 -11
  34. package/dist/esm/ui/SelectionToolbar/keyboard-config.js +3 -3
  35. package/dist/esm/ui/SelectionToolbar/utils.js +2 -2
  36. package/dist/esm/ui/TextCollapsedMenu.js +4 -2
  37. package/dist/esm/ui/toolbar-components.js +5 -3
  38. package/dist/types/pm-plugins/experiences/selection-toolbar-open-experience.d.ts +1 -1
  39. package/dist/types/toolbarPluginType.d.ts +11 -10
  40. package/dist/types/types/index.d.ts +3 -3
  41. package/dist/types/ui/OverflowSection.d.ts +1 -1
  42. package/dist/types/ui/PrimaryToolbar.d.ts +1 -1
  43. package/dist/types/ui/Section.d.ts +2 -2
  44. package/dist/types/ui/SelectionToolbar/index.d.ts +1 -1
  45. package/dist/types/ui/SelectionToolbar/keyboard-config.d.ts +2 -2
  46. package/dist/types/ui/SelectionToolbar/utils.d.ts +1 -1
  47. package/dist/types/ui/toolbar-components.d.ts +4 -4
  48. package/docs/0-intro.tsx +1 -1
  49. package/package.json +3 -3
@@ -7,9 +7,11 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.getToolbarComponents = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
- var _analytics = require("@atlaskit/editor-common/analytics");
11
- var _toolbar = require("@atlaskit/editor-common/toolbar");
12
- var _editorToolbar = require("@atlaskit/editor-toolbar");
10
+ var _enums = require("@atlaskit/editor-common/analytics/types/enums");
11
+ var _keys = require("@atlaskit/editor-common/toolbar/keys");
12
+ var _rank = require("@atlaskit/editor-common/toolbar/rank");
13
+ var _show = require("@atlaskit/editor-toolbar/show");
14
+ var _toolbar = require("@atlaskit/editor-toolbar/toolbar");
13
15
  var _consts = require("./consts");
14
16
  var _OverflowMenu = require("./OverflowMenu");
15
17
  var _OverflowMenuSection = require("./OverflowMenuSection");
@@ -20,12 +22,12 @@ var _TextCollapsedMenu = require("./TextCollapsedMenu");
20
22
  var getInlineTextToolbarComponents = function getInlineTextToolbarComponents() {
21
23
  return [{
22
24
  type: 'toolbar',
23
- key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
25
+ key: _keys.TOOLBARS.INLINE_TEXT_TOOLBAR,
24
26
  component: function component(_ref) {
25
27
  var children = _ref.children;
26
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.Toolbar, {
28
+ return /*#__PURE__*/_react.default.createElement(_toolbar.Toolbar, {
27
29
  label: _consts.SELECTION_TOOLBAR_LABEL,
28
- actionSubjectId: _analytics.ACTION_SUBJECT_ID.SELECTION_TOOLBAR,
30
+ actionSubjectId: _enums.ACTION_SUBJECT_ID.SELECTION_TOOLBAR,
29
31
  testId: 'editor-floating-toolbar'
30
32
  }, children);
31
33
  }
@@ -34,7 +36,7 @@ var getInlineTextToolbarComponents = function getInlineTextToolbarComponents() {
34
36
  var getPrimaryToolbarComponents = function getPrimaryToolbarComponents(breakpointPreset) {
35
37
  return [{
36
38
  type: 'toolbar',
37
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
39
+ key: _keys.TOOLBARS.PRIMARY_TOOLBAR,
38
40
  component: function component(_ref2) {
39
41
  var children = _ref2.children;
40
42
  return /*#__PURE__*/_react.default.createElement(_PrimaryToolbar.PrimaryToolbar, {
@@ -45,17 +47,17 @@ var getPrimaryToolbarComponents = function getPrimaryToolbarComponents(breakpoin
45
47
  };
46
48
  var getToolbarComponents = exports.getToolbarComponents = function getToolbarComponents(contextualFormattingEnabled, api, breakpointPreset) {
47
49
  var components = [{
48
- type: _toolbar.TEXT_SECTION.type,
49
- key: _toolbar.TEXT_SECTION.key,
50
+ type: _keys.TEXT_SECTION.type,
51
+ key: _keys.TEXT_SECTION.key,
50
52
  parents: [{
51
53
  type: 'toolbar',
52
- key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
53
- rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION.key]
54
+ key: _keys.TOOLBARS.INLINE_TEXT_TOOLBAR,
55
+ rank: _rank.TOOLBAR_RANK[_keys.TEXT_SECTION.key]
54
56
  }],
55
57
  component: function component(_ref3) {
56
58
  var children = _ref3.children,
57
59
  parents = _ref3.parents;
58
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.Show, {
60
+ return /*#__PURE__*/_react.default.createElement(_show.Show, {
59
61
  above: "md"
60
62
  }, /*#__PURE__*/_react.default.createElement(_Section.Section, {
61
63
  parents: parents,
@@ -64,17 +66,17 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
64
66
  }, children));
65
67
  }
66
68
  }, {
67
- type: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.type,
68
- key: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.key,
69
+ type: _keys.TEXT_SECTION_PRIMARY_TOOLBAR.type,
70
+ key: _keys.TEXT_SECTION_PRIMARY_TOOLBAR.key,
69
71
  parents: [{
70
72
  type: 'toolbar',
71
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
72
- rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION.key]
73
+ key: _keys.TOOLBARS.PRIMARY_TOOLBAR,
74
+ rank: _rank.TOOLBAR_RANK[_keys.TEXT_SECTION.key]
73
75
  }],
74
76
  component: function component(_ref4) {
75
77
  var children = _ref4.children,
76
78
  parents = _ref4.parents;
77
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.Show, {
79
+ return /*#__PURE__*/_react.default.createElement(_show.Show, {
78
80
  above: "md"
79
81
  }, /*#__PURE__*/_react.default.createElement(_Section.Section, {
80
82
  parents: parents,
@@ -83,21 +85,21 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
83
85
  }, children));
84
86
  }
85
87
  }, {
86
- type: _toolbar.TEXT_SECTION_COLLAPSED.type,
87
- key: _toolbar.TEXT_SECTION_COLLAPSED.key,
88
+ type: _keys.TEXT_SECTION_COLLAPSED.type,
89
+ key: _keys.TEXT_SECTION_COLLAPSED.key,
88
90
  parents: [{
89
91
  type: 'toolbar',
90
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
91
- rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
92
+ key: _keys.TOOLBARS.PRIMARY_TOOLBAR,
93
+ rank: _rank.TOOLBAR_RANK[_keys.TEXT_SECTION_COLLAPSED.key]
92
94
  }, {
93
95
  type: 'toolbar',
94
- key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
95
- rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
96
+ key: _keys.TOOLBARS.INLINE_TEXT_TOOLBAR,
97
+ rank: _rank.TOOLBAR_RANK[_keys.TEXT_SECTION_COLLAPSED.key]
96
98
  }],
97
99
  component: function component(_ref5) {
98
100
  var children = _ref5.children,
99
101
  parents = _ref5.parents;
100
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.Show, {
102
+ return /*#__PURE__*/_react.default.createElement(_show.Show, {
101
103
  below: "md"
102
104
  }, /*#__PURE__*/_react.default.createElement(_Section.Section, {
103
105
  parents: parents,
@@ -106,29 +108,29 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
106
108
  }, children));
107
109
  }
108
110
  }, {
109
- type: _toolbar.TEXT_COLLAPSED_GROUP.type,
110
- key: _toolbar.TEXT_COLLAPSED_GROUP.key,
111
+ type: _keys.TEXT_COLLAPSED_GROUP.type,
112
+ key: _keys.TEXT_COLLAPSED_GROUP.key,
111
113
  parents: [{
112
- type: _toolbar.TEXT_SECTION_COLLAPSED.type,
113
- key: _toolbar.TEXT_SECTION_COLLAPSED.key,
114
+ type: _keys.TEXT_SECTION_COLLAPSED.type,
115
+ key: _keys.TEXT_SECTION_COLLAPSED.key,
114
116
  rank: 100
115
117
  }]
116
118
  }, {
117
- type: _toolbar.TEXT_COLLAPSED_MENU.type,
118
- key: _toolbar.TEXT_COLLAPSED_MENU.key,
119
+ type: _keys.TEXT_COLLAPSED_MENU.type,
120
+ key: _keys.TEXT_COLLAPSED_MENU.key,
119
121
  parents: [{
120
- type: _toolbar.TEXT_COLLAPSED_GROUP.type,
121
- key: _toolbar.TEXT_COLLAPSED_GROUP.key,
122
+ type: _keys.TEXT_COLLAPSED_GROUP.type,
123
+ key: _keys.TEXT_COLLAPSED_GROUP.key,
122
124
  rank: 100
123
125
  }],
124
126
  component: _TextCollapsedMenu.TextCollapsedMenu
125
127
  }, {
126
- type: _toolbar.INSERT_BLOCK_SECTION.type,
127
- key: _toolbar.INSERT_BLOCK_SECTION.key,
128
+ type: _keys.INSERT_BLOCK_SECTION.type,
129
+ key: _keys.INSERT_BLOCK_SECTION.key,
128
130
  parents: [{
129
131
  type: 'toolbar',
130
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
131
- rank: _toolbar.TOOLBAR_RANK[_toolbar.INSERT_BLOCK_SECTION.key]
132
+ key: _keys.TOOLBARS.PRIMARY_TOOLBAR,
133
+ rank: _rank.TOOLBAR_RANK[_keys.INSERT_BLOCK_SECTION.key]
132
134
  }],
133
135
  component: function component(_ref6) {
134
136
  var children = _ref6.children,
@@ -142,16 +144,16 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
142
144
  }, children);
143
145
  }
144
146
  }, {
145
- type: _toolbar.LINKING_SECTION.type,
146
- key: _toolbar.LINKING_SECTION.key,
147
+ type: _keys.LINKING_SECTION.type,
148
+ key: _keys.LINKING_SECTION.key,
147
149
  parents: [{
148
150
  type: 'toolbar',
149
- key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
150
- rank: _toolbar.TOOLBAR_RANK[_toolbar.LINKING_SECTION.key]
151
+ key: _keys.TOOLBARS.INLINE_TEXT_TOOLBAR,
152
+ rank: _rank.TOOLBAR_RANK[_keys.LINKING_SECTION.key]
151
153
  }, {
152
154
  type: 'toolbar',
153
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
154
- rank: _toolbar.TOOLBAR_RANK[_toolbar.LINKING_SECTION.key]
155
+ key: _keys.TOOLBARS.PRIMARY_TOOLBAR,
156
+ rank: _rank.TOOLBAR_RANK[_keys.LINKING_SECTION.key]
155
157
  }],
156
158
  component: function component(_ref7) {
157
159
  var children = _ref7.children,
@@ -164,49 +166,49 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
164
166
  }, children);
165
167
  }
166
168
  }, {
167
- type: _toolbar.OVERFLOW_SECTION.type,
168
- key: _toolbar.OVERFLOW_SECTION.key,
169
+ type: _keys.OVERFLOW_SECTION.type,
170
+ key: _keys.OVERFLOW_SECTION.key,
169
171
  parents: [{
170
172
  type: 'toolbar',
171
- key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
172
- rank: _toolbar.TOOLBAR_RANK[_toolbar.OVERFLOW_SECTION.key]
173
+ key: _keys.TOOLBARS.INLINE_TEXT_TOOLBAR,
174
+ rank: _rank.TOOLBAR_RANK[_keys.OVERFLOW_SECTION.key]
173
175
  }]
174
176
  }, {
175
- type: _toolbar.OVERFLOW_GROUP.type,
176
- key: _toolbar.OVERFLOW_GROUP.key,
177
+ type: _keys.OVERFLOW_GROUP.type,
178
+ key: _keys.OVERFLOW_GROUP.key,
177
179
  parents: [{
178
- type: _toolbar.OVERFLOW_SECTION.type,
179
- key: _toolbar.OVERFLOW_SECTION.key,
180
- rank: _toolbar.OVERFLOW_SECTION_RANK[_toolbar.OVERFLOW_GROUP.key]
180
+ type: _keys.OVERFLOW_SECTION.type,
181
+ key: _keys.OVERFLOW_SECTION.key,
182
+ rank: _rank.OVERFLOW_SECTION_RANK[_keys.OVERFLOW_GROUP.key]
181
183
  }]
182
184
  }, {
183
- type: _toolbar.OVERFLOW_MENU.type,
184
- key: _toolbar.OVERFLOW_MENU.key,
185
+ type: _keys.OVERFLOW_MENU.type,
186
+ key: _keys.OVERFLOW_MENU.key,
185
187
  parents: [{
186
- type: _toolbar.OVERFLOW_GROUP.type,
187
- key: _toolbar.OVERFLOW_GROUP.key,
188
- rank: _toolbar.OVERFLOW_GROUP_RANK[_toolbar.OVERFLOW_MENU.key]
188
+ type: _keys.OVERFLOW_GROUP.type,
189
+ key: _keys.OVERFLOW_GROUP.key,
190
+ rank: _rank.OVERFLOW_GROUP_RANK[_keys.OVERFLOW_MENU.key]
189
191
  }],
190
192
  component: function component(_ref8) {
191
193
  var children = _ref8.children;
192
194
  return /*#__PURE__*/_react.default.createElement(_OverflowMenu.OverflowMenu, null, children);
193
195
  }
194
196
  }, {
195
- type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
196
- key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
197
+ type: _keys.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
198
+ key: _keys.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
197
199
  parents: [{
198
- type: _toolbar.OVERFLOW_MENU.type,
199
- key: _toolbar.OVERFLOW_MENU.key,
200
- rank: _toolbar.OVERFLOW_MENU_RANK[_toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key]
200
+ type: _keys.OVERFLOW_MENU.type,
201
+ key: _keys.OVERFLOW_MENU.key,
202
+ rank: _rank.OVERFLOW_MENU_RANK[_keys.OVERFLOW_EXTENSIONS_MENU_SECTION.key]
201
203
  }],
202
204
  component: _OverflowMenuSection.OverflowMenuSection
203
205
  }, {
204
- type: _toolbar.PIN_SECTION.type,
205
- key: _toolbar.PIN_SECTION.key,
206
+ type: _keys.PIN_SECTION.type,
207
+ key: _keys.PIN_SECTION.key,
206
208
  parents: [{
207
209
  type: 'toolbar',
208
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
209
- rank: _toolbar.TOOLBAR_RANK[_toolbar.PIN_SECTION.key]
210
+ key: _keys.TOOLBARS.PRIMARY_TOOLBAR,
211
+ rank: _rank.TOOLBAR_RANK[_keys.PIN_SECTION.key]
210
212
  }],
211
213
  component: function component(_ref9) {
212
214
  var children = _ref9.children,
@@ -220,32 +222,32 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
220
222
  }
221
223
  }];
222
224
  components.push({
223
- type: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
224
- key: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
225
+ type: _keys.OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
226
+ key: _keys.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
225
227
  parents: [{
226
228
  type: 'toolbar',
227
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
228
- rank: _toolbar.TOOLBAR_RANK[_toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
229
+ key: _keys.TOOLBARS.PRIMARY_TOOLBAR,
230
+ rank: _rank.TOOLBAR_RANK[_keys.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
229
231
  }],
230
232
  component: function component(_ref0) {
231
233
  var children = _ref0.children;
232
234
  return /*#__PURE__*/_react.default.createElement(_OverflowSection.OverflowSection, null, children);
233
235
  }
234
236
  }, {
235
- type: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
236
- key: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
237
+ type: _keys.OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
238
+ key: _keys.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
237
239
  parents: [{
238
- type: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
239
- key: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
240
- rank: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK[_toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key]
240
+ type: _keys.OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
241
+ key: _keys.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
242
+ rank: _rank.OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK[_keys.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key]
241
243
  }]
242
244
  }, {
243
- type: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
244
- key: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
245
+ type: _keys.OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
246
+ key: _keys.OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
245
247
  parents: [{
246
- type: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
247
- key: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
248
- rank: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[_toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
248
+ type: _keys.OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
249
+ key: _keys.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
250
+ rank: _rank.OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[_keys.OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
249
251
  }],
250
252
  component: function component(_ref1) {
251
253
  var children = _ref1.children;
@@ -265,12 +267,12 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
265
267
  break;
266
268
  }
267
269
  components.push({
268
- type: _toolbar.TRACK_CHANGES_SECTION.type,
269
- key: _toolbar.TRACK_CHANGES_SECTION.key,
270
+ type: _keys.TRACK_CHANGES_SECTION.type,
271
+ key: _keys.TRACK_CHANGES_SECTION.key,
270
272
  parents: [{
271
273
  type: 'toolbar',
272
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
273
- rank: _toolbar.TOOLBAR_RANK[_toolbar.TRACK_CHANGES_SECTION.key]
274
+ key: _keys.TOOLBARS.PRIMARY_TOOLBAR,
275
+ rank: _rank.TOOLBAR_RANK[_keys.TRACK_CHANGES_SECTION.key]
274
276
  }],
275
277
  component: function component(_ref10) {
276
278
  var children = _ref10.children,
@@ -1,5 +1,9 @@
1
- import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
2
- import { containsPopupWithNestedElement, Experience, EXPERIENCE_ID, ExperienceCheckDomMutation, ExperienceCheckTimeout, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
1
+ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
2
+ import { containsPopupWithNestedElement, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
3
+ import { EXPERIENCE_ID } from '@atlaskit/editor-common/experiences/consts';
4
+ import { Experience } from '@atlaskit/editor-common/experiences/Experience';
5
+ import { ExperienceCheckDomMutation } from '@atlaskit/editor-common/experiences/ExperienceCheckDomMutation';
6
+ import { ExperienceCheckTimeout } from '@atlaskit/editor-common/experiences/ExperienceCheckTimeout';
3
7
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
8
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
9
  import { hasSelectionChanged, isPlainShiftArrowKey, isSelectionToolbarSuppressedByUserIntent } from '../../ui/SelectionToolbar/visibility';
@@ -3,7 +3,7 @@ import { bind } from 'bind-event-listener';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
6
- import { createComponentRegistry } from '@atlaskit/editor-toolbar-model';
6
+ import { createComponentRegistry } from '@atlaskit/editor-toolbar-model/create-registry';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
8
  import { getSelectionToolbarOpenExperiencePlugin } from './pm-plugins/experiences/selection-toolbar-open-experience';
9
9
  import { editorToolbarPluginKey } from './pm-plugins/plugin-key';
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
4
- import { ShowMoreHorizontalIcon, ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
3
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
4
+ import { ShowMoreHorizontalIcon } from '@atlaskit/editor-toolbar/show-more-horizontal';
5
+ import { ToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu';
6
+ import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
5
7
  export const OverflowMenu = ({
6
8
  children
7
9
  }) => {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
4
4
  export const OverflowMenuSection = ({
5
5
  children
6
6
  }) => {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { ToolbarSection } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { ToolbarSection } from '@atlaskit/editor-toolbar/toolbar-section';
4
4
  export const OverflowSection = ({
5
5
  children,
6
6
  hasSeparator,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { PrimaryToolbar as PrimaryToolbarBase } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { PrimaryToolbar as PrimaryToolbarBase } from '@atlaskit/editor-toolbar/toolbar';
4
4
  const isFullPage = editorAppearance => {
5
5
  return editorAppearance === 'full-page' || editorAppearance === 'full-width';
6
6
  };
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
- import { TOOLBARS, useEditorToolbar } from '@atlaskit/editor-common/toolbar';
4
- import { ToolbarSection, SeparatorPosition } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { TOOLBARS } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
5
+ import { ToolbarSection, SeparatorPosition } from '@atlaskit/editor-toolbar/toolbar-section';
5
6
  const shouldShowSection = (editMode, toolbar, toolbarDocking, contextualFormattingEnabled) => {
6
7
  if (editMode === 'view') {
7
8
  return false;
@@ -1,18 +1,23 @@
1
1
  import React, { useCallback, useMemo } from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
4
- import { isSSR } from '@atlaskit/editor-common/core-utils';
3
+ import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
4
+ import { isOfflineMode } from '@atlaskit/editor-common/connectivity/isOfflineMode';
5
5
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
6
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
7
- import { logException } from '@atlaskit/editor-common/monitoring';
8
- import { EditorToolbarProvider, EditorToolbarUIProvider, shouldShowSelectionToolbar } from '@atlaskit/editor-common/toolbar';
9
- import { Popup } from '@atlaskit/editor-common/ui';
10
- import { calculateToolbarPositionTrackHead, calculateToolbarPositionOnCellSelection } from '@atlaskit/editor-common/utils';
11
- import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
6
+ import { isSSR } from '@atlaskit/editor-common/is-ssr';
7
+ import { logException } from '@atlaskit/editor-common/monitoring/error';
8
+ import Popup from '@atlaskit/editor-common/Popup';
9
+ import { shouldShowSelectionToolbar } from '@atlaskit/editor-common/toolbar';
10
+ import { EditorToolbarProvider } from '@atlaskit/editor-common/toolbar/context';
11
+ import { EditorToolbarUIProvider } from '@atlaskit/editor-common/toolbar/EditorToolbarUIProvider';
12
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
13
+ import { calculateToolbarPositionTrackHead, calculateToolbarPositionOnCellSelection } from '@atlaskit/editor-common/utils/calculate-toolbar-position';
12
14
  import { AllSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
13
- import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
14
- import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useToolbarUI } from '@atlaskit/editor-toolbar';
15
- import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
15
+ import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles/constants';
16
+ import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model/toolbar-model-renderer';
17
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
18
+ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
19
+ import { ToolbarSection } from '@atlaskit/editor-toolbar/toolbar-section';
20
+ import { useToolbarUI } from '@atlaskit/editor-toolbar/ui-context';
16
21
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
17
22
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
18
23
  import { SELECTION_TOOLBAR_LABEL } from '../consts';
@@ -1,7 +1,7 @@
1
1
  import { getDocument } from '@atlaskit/browser-apis';
2
- import { fullPageMessages } from '@atlaskit/editor-common/messages';
3
- import { logException } from '@atlaskit/editor-common/monitoring';
4
- import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
2
+ import { messages as fullPageMessages } from '@atlaskit/editor-common/messages/full-page';
3
+ import { logException } from '@atlaskit/editor-common/monitoring/error';
4
+ import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui-toolbar';
5
5
  import { getFocusableElements, isShortcutToFocusToolbar } from '../utils/toolbar';
6
6
  export const getKeyboardNavigationConfig = (editorView, intl, api) => {
7
7
  if (!(editorView.dom instanceof HTMLElement)) {
@@ -1,5 +1,5 @@
1
- import { ACTION, ACTION_SUBJECT, CONTENT_COMPONENT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
2
- import { logException } from '@atlaskit/editor-common/monitoring';
1
+ import { ACTION, ACTION_SUBJECT, CONTENT_COMPONENT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
2
+ import { logException } from '@atlaskit/editor-common/monitoring/error';
3
3
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
4
4
  export const getDomRefFromSelection = (view, dispatchAnalyticsEvent) => {
5
5
  try {
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
4
- import { ToolbarDropdownMenu, ToolbarTooltip, TextIcon } from '@atlaskit/editor-toolbar';
3
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
4
+ import { TextIcon } from '@atlaskit/editor-toolbar/text-icon';
5
+ import { ToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu';
6
+ import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
5
7
  /**
6
8
  * Basic version of existing 'Text Styles' Menu - which doesn't dynamically change icon
7
9
  * and is also placeholder to render all other menus in the collapsed state.
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
- import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
3
- import { INSERT_BLOCK_SECTION, LINKING_SECTION, OVERFLOW_GROUP, OVERFLOW_GROUP_PRIMARY_TOOLBAR, OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK, OVERFLOW_GROUP_RANK, OVERFLOW_MENU, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_SECTION, OVERFLOW_SECTION_PRIMARY_TOOLBAR, OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK, OVERFLOW_SECTION_RANK, PIN_SECTION, TEXT_COLLAPSED_GROUP, TEXT_SECTION, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_COLLAPSED, TEXT_COLLAPSED_MENU, TOOLBAR_RANK, TOOLBARS, TRACK_CHANGES_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_MENU_RANK } from '@atlaskit/editor-common/toolbar';
4
- import { Show, Toolbar } from '@atlaskit/editor-toolbar';
2
+ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
3
+ import { INSERT_BLOCK_SECTION, LINKING_SECTION, OVERFLOW_GROUP, OVERFLOW_GROUP_PRIMARY_TOOLBAR, OVERFLOW_MENU, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_SECTION, OVERFLOW_SECTION_PRIMARY_TOOLBAR, PIN_SECTION, TEXT_COLLAPSED_GROUP, TEXT_SECTION, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_COLLAPSED, TEXT_COLLAPSED_MENU, TOOLBARS, TRACK_CHANGES_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK, OVERFLOW_GROUP_RANK, OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK, OVERFLOW_SECTION_RANK, TOOLBAR_RANK, OVERFLOW_MENU_RANK } from '@atlaskit/editor-common/toolbar/rank';
5
+ import { Show } from '@atlaskit/editor-toolbar/show';
6
+ import { Toolbar } from '@atlaskit/editor-toolbar/toolbar';
5
7
  import { SELECTION_TOOLBAR_LABEL } from './consts';
6
8
  import { OverflowMenu } from './OverflowMenu';
7
9
  import { OverflowMenuSection } from './OverflowMenuSection';
@@ -1,6 +1,10 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
3
- import { containsPopupWithNestedElement, Experience, EXPERIENCE_ID, ExperienceCheckDomMutation, ExperienceCheckTimeout, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
2
+ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
3
+ import { containsPopupWithNestedElement, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
4
+ import { EXPERIENCE_ID } from '@atlaskit/editor-common/experiences/consts';
5
+ import { Experience } from '@atlaskit/editor-common/experiences/Experience';
6
+ import { ExperienceCheckDomMutation } from '@atlaskit/editor-common/experiences/ExperienceCheckDomMutation';
7
+ import { ExperienceCheckTimeout } from '@atlaskit/editor-common/experiences/ExperienceCheckTimeout';
4
8
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
9
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
10
  import { hasSelectionChanged, isPlainShiftArrowKey, isSelectionToolbarSuppressedByUserIntent } from '../../ui/SelectionToolbar/visibility';
@@ -9,7 +9,7 @@ import { bind } from 'bind-event-listener';
9
9
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
10
10
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
11
11
  import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
12
- import { createComponentRegistry } from '@atlaskit/editor-toolbar-model';
12
+ import { createComponentRegistry } from '@atlaskit/editor-toolbar-model/create-registry';
13
13
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
14
14
  import { getSelectionToolbarOpenExperiencePlugin } from './pm-plugins/experiences/selection-toolbar-open-experience';
15
15
  import { editorToolbarPluginKey } from './pm-plugins/plugin-key';
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { toolbarMessages } from '@atlaskit/editor-common/messages';
4
- import { ShowMoreHorizontalIcon, ToolbarDropdownMenu, ToolbarTooltip } from '@atlaskit/editor-toolbar';
3
+ import { toolbarMessages } from '@atlaskit/editor-common/messages/toolbar';
4
+ import { ShowMoreHorizontalIcon } from '@atlaskit/editor-toolbar/show-more-horizontal';
5
+ import { ToolbarDropdownMenu } from '@atlaskit/editor-toolbar/toolbar-dropdown-menu';
6
+ import { ToolbarTooltip } from '@atlaskit/editor-toolbar/toolbar-tooltip';
5
7
  export var OverflowMenu = function OverflowMenu(_ref) {
6
8
  var children = _ref.children;
7
9
  var intl = useIntl();
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
4
4
  export var OverflowMenuSection = function OverflowMenuSection(_ref) {
5
5
  var children = _ref.children;
6
6
  var _useEditorToolbar = useEditorToolbar(),
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { ToolbarSection } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { ToolbarSection } from '@atlaskit/editor-toolbar/toolbar-section';
4
4
  export var OverflowSection = function OverflowSection(_ref) {
5
5
  var children = _ref.children,
6
6
  hasSeparator = _ref.hasSeparator,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
3
- import { PrimaryToolbar as PrimaryToolbarBase } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { PrimaryToolbar as PrimaryToolbarBase } from '@atlaskit/editor-toolbar/toolbar';
4
4
  var isFullPage = function isFullPage(editorAppearance) {
5
5
  return editorAppearance === 'full-page' || editorAppearance === 'full-width';
6
6
  };
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
3
- import { TOOLBARS, useEditorToolbar } from '@atlaskit/editor-common/toolbar';
4
- import { ToolbarSection, SeparatorPosition } from '@atlaskit/editor-toolbar';
2
+ import { useEditorToolbar } from '@atlaskit/editor-common/toolbar/context';
3
+ import { TOOLBARS } from '@atlaskit/editor-common/toolbar/keys';
4
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
5
+ import { ToolbarSection, SeparatorPosition } from '@atlaskit/editor-toolbar/toolbar-section';
5
6
  var shouldShowSection = function shouldShowSection(editMode, toolbar, toolbarDocking, contextualFormattingEnabled) {
6
7
  if (editMode === 'view') {
7
8
  return false;
@@ -1,18 +1,23 @@
1
1
  import React, { useCallback, useMemo } from 'react';
2
2
  import { useIntl } from 'react-intl';
3
- import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
4
- import { isSSR } from '@atlaskit/editor-common/core-utils';
3
+ import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
4
+ import { isOfflineMode } from '@atlaskit/editor-common/connectivity/isOfflineMode';
5
5
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
6
- import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
7
- import { logException } from '@atlaskit/editor-common/monitoring';
8
- import { EditorToolbarProvider, EditorToolbarUIProvider, shouldShowSelectionToolbar } from '@atlaskit/editor-common/toolbar';
9
- import { Popup } from '@atlaskit/editor-common/ui';
10
- import { calculateToolbarPositionTrackHead, calculateToolbarPositionOnCellSelection } from '@atlaskit/editor-common/utils';
11
- import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
6
+ import { isSSR } from '@atlaskit/editor-common/is-ssr';
7
+ import { logException } from '@atlaskit/editor-common/monitoring/error';
8
+ import Popup from '@atlaskit/editor-common/Popup';
9
+ import { shouldShowSelectionToolbar } from '@atlaskit/editor-common/toolbar';
10
+ import { EditorToolbarProvider } from '@atlaskit/editor-common/toolbar/context';
11
+ import { EditorToolbarUIProvider } from '@atlaskit/editor-common/toolbar/EditorToolbarUIProvider';
12
+ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
13
+ import { calculateToolbarPositionTrackHead, calculateToolbarPositionOnCellSelection } from '@atlaskit/editor-common/utils/calculate-toolbar-position';
12
14
  import { AllSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
13
- import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
14
- import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useToolbarUI } from '@atlaskit/editor-toolbar';
15
- import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
15
+ import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles/constants';
16
+ import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model/toolbar-model-renderer';
17
+ import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
18
+ import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
19
+ import { ToolbarSection } from '@atlaskit/editor-toolbar/toolbar-section';
20
+ import { useToolbarUI } from '@atlaskit/editor-toolbar/ui-context';
16
21
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
17
22
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
18
23
  import { SELECTION_TOOLBAR_LABEL } from '../consts';
@@ -1,7 +1,7 @@
1
1
  import { getDocument } from '@atlaskit/browser-apis';
2
- import { fullPageMessages } from '@atlaskit/editor-common/messages';
3
- import { logException } from '@atlaskit/editor-common/monitoring';
4
- import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
2
+ import { messages as fullPageMessages } from '@atlaskit/editor-common/messages/full-page';
3
+ import { logException } from '@atlaskit/editor-common/monitoring/error';
4
+ import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui-toolbar';
5
5
  import { getFocusableElements, isShortcutToFocusToolbar } from '../utils/toolbar';
6
6
  export var getKeyboardNavigationConfig = function getKeyboardNavigationConfig(editorView, intl, api) {
7
7
  if (!(editorView.dom instanceof HTMLElement)) {