@atlaskit/editor-core 187.48.8 → 188.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 CHANGED
@@ -1,5 +1,90 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 188.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#40718](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40718) [`c1d4b48bdd9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c1d4b48bdd9) - WHAT: This change removes plugin exports from editor-core that were used only for the mobile bridge.
8
+
9
+ This includes:
10
+
11
+ - All plugin keys
12
+ - Plugin commands
13
+ - Plugin types
14
+
15
+ The full list is:
16
+
17
+ - EditorFeatureFlags (available via '@atlaskit/editor-common/types' as `FeatureFlags`)
18
+ - EmojiResource (available via '@atlaskit/emoji/resource' as `EmojiResource`)
19
+ - mediaPlugin
20
+ - insertMediaSingleNode
21
+ - CustomMediaPicker
22
+ - mediaPluginKey
23
+ - textColorPluginKey
24
+ - TextColorPluginState
25
+ - changeColor
26
+ - CodeBlockPlugin
27
+ - PanelPlugin
28
+ - subscribeToToolbarAndPickerUpdates
29
+ - subscribeTypeAheadUpdates
30
+ - TextFormattingInputMethodToolbar
31
+ - TextFormattingInputMethodBasic
32
+ - createTable
33
+ - insertTaskDecisionCommand
34
+ - TaskDecisionInputMethod
35
+ - EventDispatcher
36
+ - statusPluginKey
37
+ - StatusState
38
+ - StatusType
39
+ - DatePluginState
40
+ - insertDate
41
+ - openDatePicker
42
+ - deleteDate
43
+ - dateToDateType
44
+ - datePluginKey
45
+ - commitStatusPicker
46
+ - setStatusPickerAt
47
+ - updateStatus
48
+ - updateStatusWithAnalytics
49
+ - removeStatus
50
+ - typeAheadPluginKey
51
+ - TypeAheadPluginState
52
+ - setKeyboardHeight
53
+ - setMobilePaddingTop
54
+ - setIsExpanded
55
+ - dedupe (available via '@atlaskit/editor-common/utils' as `dedupe`)
56
+ - GapCursorSelection (available via '@atlaskit/editor-common/selection' as `GapCursorSelection`)
57
+ - GapCursorSide (available via '@atlaskit/editor-common/selection' as `Side`)
58
+ - HistoryPluginState
59
+ - MentionPluginState
60
+ - InsertBlockInputMethodToolbar
61
+ - selectionPluginKey
62
+ - SelectionData
63
+ - SelectionDataState
64
+ - insertExpand
65
+ - createTypeAheadTools
66
+ - AbstractMentionResource (available via '@atlaskit/mention/resource' as `AbstractMentionResource`)
67
+ - PresenceResource (available via '@atlaskit/mention/resource' as `PresenceResource`)
68
+ - ReactEditorView
69
+ - BaseReactEditorView
70
+ - getDefaultPresetOptionsFromEditorProps
71
+ - lightModeStatusColorPalette
72
+ - darkModeStatusColorPalette
73
+ - PaletteColor
74
+ - DEFAULT_BORDER_COLOR
75
+
76
+ WHY: We have been extracting plugins out of `editor-core` and as we move them out we need to remove these exports as the new architecture does not support plugin keys or commands.
77
+
78
+ This major bump will remove all remaining commands and keys in one go - some of these features will be accessible in a safe manner in the future via the `ComposableEditor` and the appropriate plugins.
79
+
80
+ HOW: Should be no consumers using these methods currently (only mobile bridge which has been updated).
81
+
82
+ If there are any issues please reach out to the #help-editor for information on how to update appropriately.
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies
87
+
3
88
  ## 187.48.8
4
89
 
5
90
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -23,24 +22,12 @@ Object.defineProperty(exports, "ACTION_SUBJECT_ID", {
23
22
  return _analytics.ACTION_SUBJECT_ID;
24
23
  }
25
24
  });
26
- Object.defineProperty(exports, "AbstractMentionResource", {
27
- enumerable: true,
28
- get: function get() {
29
- return _resource2.AbstractMentionResource;
30
- }
31
- });
32
25
  Object.defineProperty(exports, "AnnotationUpdateEmitter", {
33
26
  enumerable: true,
34
27
  get: function get() {
35
28
  return _annotation.AnnotationUpdateEmitter;
36
29
  }
37
30
  });
38
- Object.defineProperty(exports, "BaseReactEditorView", {
39
- enumerable: true,
40
- get: function get() {
41
- return _createEditor.BaseReactEditorView;
42
- }
43
- });
44
31
  Object.defineProperty(exports, "CollapsedEditor", {
45
32
  enumerable: true,
46
33
  get: function get() {
@@ -53,12 +40,6 @@ Object.defineProperty(exports, "ContextPanel", {
53
40
  return _ContextPanel.default;
54
41
  }
55
42
  });
56
- Object.defineProperty(exports, "DEFAULT_BORDER_COLOR", {
57
- enumerable: true,
58
- get: function get() {
59
- return _common.DEFAULT_BORDER_COLOR;
60
- }
61
- });
62
43
  Object.defineProperty(exports, "EVENT_TYPE", {
63
44
  enumerable: true,
64
45
  get: function get() {
@@ -74,7 +55,7 @@ Object.defineProperty(exports, "Editor", {
74
55
  Object.defineProperty(exports, "EditorActions", {
75
56
  enumerable: true,
76
57
  get: function get() {
77
- return _actions3.default;
58
+ return _actions.default;
78
59
  }
79
60
  });
80
61
  Object.defineProperty(exports, "EditorContext", {
@@ -89,24 +70,6 @@ Object.defineProperty(exports, "EmojiResource", {
89
70
  return _resource.EmojiResource;
90
71
  }
91
72
  });
92
- Object.defineProperty(exports, "EventDispatcher", {
93
- enumerable: true,
94
- get: function get() {
95
- return _eventDispatcher.EventDispatcher;
96
- }
97
- });
98
- Object.defineProperty(exports, "GapCursorSelection", {
99
- enumerable: true,
100
- get: function get() {
101
- return _selection.GapCursorSelection;
102
- }
103
- });
104
- Object.defineProperty(exports, "GapCursorSide", {
105
- enumerable: true,
106
- get: function get() {
107
- return _selection.Side;
108
- }
109
- });
110
73
  Object.defineProperty(exports, "INPUT_METHOD", {
111
74
  enumerable: true,
112
75
  get: function get() {
@@ -137,18 +100,6 @@ Object.defineProperty(exports, "PortalRenderer", {
137
100
  return _portalProvider.PortalRenderer;
138
101
  }
139
102
  });
140
- Object.defineProperty(exports, "PresenceResource", {
141
- enumerable: true,
142
- get: function get() {
143
- return _resource2.PresenceResource;
144
- }
145
- });
146
- Object.defineProperty(exports, "ReactEditorView", {
147
- enumerable: true,
148
- get: function get() {
149
- return _createEditor.ReactEditorView;
150
- }
151
- });
152
103
  Object.defineProperty(exports, "TeamMentionResource", {
153
104
  enumerable: true,
154
105
  get: function get() {
@@ -179,252 +130,30 @@ Object.defineProperty(exports, "WithHelpTrigger", {
179
130
  return _WithHelpTrigger.default;
180
131
  }
181
132
  });
182
- Object.defineProperty(exports, "WithPluginState", {
183
- enumerable: true,
184
- get: function get() {
185
- return _WithPluginState.default;
186
- }
187
- });
188
- Object.defineProperty(exports, "changeColor", {
189
- enumerable: true,
190
- get: function get() {
191
- return _changeColor.changeColor;
192
- }
193
- });
194
- Object.defineProperty(exports, "clearEditorContent", {
195
- enumerable: true,
196
- get: function get() {
197
- return _commands.clearEditorContent;
198
- }
199
- });
200
- Object.defineProperty(exports, "commitStatusPicker", {
201
- enumerable: true,
202
- get: function get() {
203
- return _actions2.commitStatusPicker;
204
- }
205
- });
206
- Object.defineProperty(exports, "createTable", {
207
- enumerable: true,
208
- get: function get() {
209
- return _commands2.createTable;
210
- }
211
- });
212
- Object.defineProperty(exports, "createTypeAheadTools", {
213
- enumerable: true,
214
- get: function get() {
215
- return _api.createTypeAheadTools;
216
- }
217
- });
218
- Object.defineProperty(exports, "darkModeStatusColorPalette", {
219
- enumerable: true,
220
- get: function get() {
221
- return _statusColorPalette.darkModeStatusColorPalette;
222
- }
223
- });
224
- Object.defineProperty(exports, "dateMessages", {
225
- enumerable: true,
226
- get: function get() {
227
- return _messages.dateMessages;
228
- }
229
- });
230
- Object.defineProperty(exports, "datePluginKey", {
231
- enumerable: true,
232
- get: function get() {
233
- return _pluginKey.pluginKey;
234
- }
235
- });
236
- Object.defineProperty(exports, "dateToDateType", {
237
- enumerable: true,
238
- get: function get() {
239
- return _formatParse.dateToDateType;
240
- }
241
- });
242
- Object.defineProperty(exports, "dedupe", {
243
- enumerable: true,
244
- get: function get() {
245
- return _utils2.dedupe;
246
- }
247
- });
248
- Object.defineProperty(exports, "deleteDate", {
249
- enumerable: true,
250
- get: function get() {
251
- return _actions.deleteDate;
252
- }
253
- });
254
- Object.defineProperty(exports, "getDefaultPresetOptionsFromEditorProps", {
255
- enumerable: true,
256
- get: function get() {
257
- return _createEditor.getDefaultPresetOptionsFromEditorProps;
258
- }
259
- });
260
133
  Object.defineProperty(exports, "getNodesCount", {
261
134
  enumerable: true,
262
135
  get: function get() {
263
136
  return _utils.getNodesCount;
264
137
  }
265
138
  });
266
- Object.defineProperty(exports, "historyPluginKey", {
267
- enumerable: true,
268
- get: function get() {
269
- return _history.historyPluginKey;
270
- }
271
- });
272
- Object.defineProperty(exports, "insertDate", {
273
- enumerable: true,
274
- get: function get() {
275
- return _actions.insertDate;
276
- }
277
- });
278
- Object.defineProperty(exports, "insertExpand", {
279
- enumerable: true,
280
- get: function get() {
281
- return _commands5.insertExpand;
282
- }
283
- });
284
- Object.defineProperty(exports, "insertMediaSingleNode", {
285
- enumerable: true,
286
- get: function get() {
287
- return _media.insertMediaSingleNode;
288
- }
289
- });
290
- Object.defineProperty(exports, "insertTaskDecisionCommand", {
291
- enumerable: true,
292
- get: function get() {
293
- return _commands3.insertTaskDecisionCommand;
294
- }
295
- });
296
- Object.defineProperty(exports, "lightModeStatusColorPalette", {
297
- enumerable: true,
298
- get: function get() {
299
- return _statusColorPalette.lightModeStatusColorPalette;
300
- }
301
- });
302
139
  Object.defineProperty(exports, "measurements", {
303
140
  enumerable: true,
304
141
  get: function get() {
305
142
  return _utils.measurements;
306
143
  }
307
144
  });
308
- Object.defineProperty(exports, "mediaPlugin", {
309
- enumerable: true,
310
- get: function get() {
311
- return _media.default;
312
- }
313
- });
314
- Object.defineProperty(exports, "mediaPluginKey", {
315
- enumerable: true,
316
- get: function get() {
317
- return _main.stateKey;
318
- }
319
- });
320
- Object.defineProperty(exports, "messages", {
321
- enumerable: true,
322
- get: function get() {
323
- return _messages.default;
324
- }
325
- });
326
145
  Object.defineProperty(exports, "name", {
327
146
  enumerable: true,
328
147
  get: function get() {
329
148
  return _versionWrapper.name;
330
149
  }
331
150
  });
332
- Object.defineProperty(exports, "openDatePicker", {
333
- enumerable: true,
334
- get: function get() {
335
- return _actions.openDatePicker;
336
- }
337
- });
338
- Object.defineProperty(exports, "removeStatus", {
339
- enumerable: true,
340
- get: function get() {
341
- return _actions2.removeStatus;
342
- }
343
- });
344
- Object.defineProperty(exports, "selectionPluginKey", {
345
- enumerable: true,
346
- get: function get() {
347
- return _mobileSelection.selectionPluginKey;
348
- }
349
- });
350
- Object.defineProperty(exports, "setIsExpanded", {
351
- enumerable: true,
352
- get: function get() {
353
- return _commands4.setIsExpanded;
354
- }
355
- });
356
- Object.defineProperty(exports, "setKeyboardHeight", {
357
- enumerable: true,
358
- get: function get() {
359
- return _editorPluginBase.setKeyboardHeight;
360
- }
361
- });
362
- Object.defineProperty(exports, "setMobilePaddingTop", {
363
- enumerable: true,
364
- get: function get() {
365
- return _commands4.setMobilePaddingTop;
366
- }
367
- });
368
- Object.defineProperty(exports, "setStatusPickerAt", {
369
- enumerable: true,
370
- get: function get() {
371
- return _actions2.setStatusPickerAt;
372
- }
373
- });
374
151
  Object.defineProperty(exports, "setTextSelection", {
375
152
  enumerable: true,
376
153
  get: function get() {
377
154
  return _utils.setTextSelection;
378
155
  }
379
156
  });
380
- Object.defineProperty(exports, "statusMessages", {
381
- enumerable: true,
382
- get: function get() {
383
- return _messages.statusMessages;
384
- }
385
- });
386
- Object.defineProperty(exports, "statusPluginKey", {
387
- enumerable: true,
388
- get: function get() {
389
- return _plugin.pluginKey;
390
- }
391
- });
392
- Object.defineProperty(exports, "subscribeToToolbarAndPickerUpdates", {
393
- enumerable: true,
394
- get: function get() {
395
- return _toolbarAndPickerUpdates.subscribeToToolbarAndPickerUpdates;
396
- }
397
- });
398
- Object.defineProperty(exports, "subscribeTypeAheadUpdates", {
399
- enumerable: true,
400
- get: function get() {
401
- return _typeAheadUpdates.subscribeTypeAheadUpdates;
402
- }
403
- });
404
- Object.defineProperty(exports, "textColorPluginKey", {
405
- enumerable: true,
406
- get: function get() {
407
- return _textColor.textColorPluginKey;
408
- }
409
- });
410
- Object.defineProperty(exports, "typeAheadPluginKey", {
411
- enumerable: true,
412
- get: function get() {
413
- return _typeAhead.typeAheadPluginKey;
414
- }
415
- });
416
- Object.defineProperty(exports, "updateStatus", {
417
- enumerable: true,
418
- get: function get() {
419
- return _actions2.updateStatus;
420
- }
421
- });
422
- Object.defineProperty(exports, "updateStatusWithAnalytics", {
423
- enumerable: true,
424
- get: function get() {
425
- return _actions2.updateStatusWithAnalytics;
426
- }
427
- });
428
157
  Object.defineProperty(exports, "version", {
429
158
  enumerable: true,
430
159
  get: function get() {
@@ -432,7 +161,6 @@ Object.defineProperty(exports, "version", {
432
161
  }
433
162
  });
434
163
  var _versionWrapper = require("./version-wrapper");
435
- var _commands = require("./commands");
436
164
  var _editor = _interopRequireDefault(require("./editor"));
437
165
  var _EditorContext = _interopRequireDefault(require("./ui/EditorContext"));
438
166
  var _WithEditorActions = _interopRequireDefault(require("./ui/WithEditorActions"));
@@ -442,40 +170,10 @@ var _ToolbarHelp = _interopRequireDefault(require("./ui/ToolbarHelp"));
442
170
  var _ToolbarFeedback = _interopRequireDefault(require("./ui/ToolbarFeedback"));
443
171
  var _ContextPanel = _interopRequireDefault(require("./ui/ContextPanel"));
444
172
  var _resource = require("@atlaskit/emoji/resource");
445
- var _media = _interopRequireWildcard(require("./plugins/media"));
446
173
  var _resource2 = require("@atlaskit/mention/resource");
447
174
  var _teamResource = require("@atlaskit/mention/team-resource");
448
175
  var _annotation = require("./plugins/annotation");
449
- var _main = require("./plugins/media/pm-plugins/main");
450
- var _textColor = require("./plugins/text-color");
451
- var _changeColor = require("./plugins/text-color/commands/change-color");
452
- var _toolbarAndPickerUpdates = require("./plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates");
453
- var _typeAheadUpdates = require("./plugins/view-update-subscription/subscribe/type-ahead-updates");
454
- var _commands2 = require("@atlaskit/editor-plugin-table/commands");
455
- var _commands3 = require("./plugins/tasks-and-decisions/commands");
456
- var _eventDispatcher = require("./event-dispatcher");
457
- var _plugin = require("./plugins/status/plugin");
458
- var _actions = require("./plugins/date/actions");
459
- var _formatParse = require("./plugins/date/utils/formatParse");
460
- var _pluginKey = require("./plugins/date/pm-plugins/plugin-key");
461
- var _actions2 = require("./plugins/status/actions");
462
- var _typeAhead = require("./plugins/type-ahead");
463
- var _history = require("./plugins/history");
464
176
  var _analytics = require("@atlaskit/editor-common/analytics");
465
- var _editorPluginBase = require("@atlaskit/editor-plugin-base");
466
- var _commands4 = require("./plugins/mobile-dimensions/commands");
467
177
  var _utils = require("./utils");
468
- var _utils2 = require("@atlaskit/editor-common/utils");
469
- var _createEditor = require("./create-editor");
470
- var _actions3 = _interopRequireDefault(require("./actions"));
471
- var _portalProvider = require("@atlaskit/editor-common/portal-provider");
472
- var _selection = require("@atlaskit/editor-common/selection");
473
- var _mobileSelection = require("./plugins/mobile-selection");
474
- var _commands5 = require("./plugins/expand/commands");
475
- var _WithPluginState = _interopRequireDefault(require("./ui/WithPluginState"));
476
- var _statusColorPalette = require("./ui/ColorPalette/Palettes/statusColorPalette");
477
- var _common = require("./ui/ColorPalette/Palettes/common");
478
- var _messages = _interopRequireWildcard(require("./messages"));
479
- var _api = require("./plugins/type-ahead/api");
480
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
481
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
178
+ var _actions = _interopRequireDefault(require("./actions"));
179
+ var _portalProvider = require("@atlaskit/editor-common/portal-provider");
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.48.8";
9
+ var version = "188.0.0";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,6 +1,5 @@
1
1
  // Used in products integration code
2
2
  export { name, version } from './version-wrapper';
3
- export { clearEditorContent } from './commands';
4
3
  export { default as Editor } from './editor';
5
4
  export { default as EditorContext } from './ui/EditorContext';
6
5
  export { default as WithEditorActions } from './ui/WithEditorActions';
@@ -10,58 +9,30 @@ export { default as ToolbarHelp } from './ui/ToolbarHelp';
10
9
  export { default as ToolbarFeedback } from './ui/ToolbarFeedback';
11
10
  export { default as ContextPanel } from './ui/ContextPanel';
12
11
  export { EmojiResource } from '@atlaskit/emoji/resource';
13
- export { default as mediaPlugin, insertMediaSingleNode } from './plugins/media';
14
- export { AbstractMentionResource, MentionResource, PresenceResource } from '@atlaskit/mention/resource';
12
+ export { MentionResource } from '@atlaskit/mention/resource';
15
13
  export { TeamMentionResource } from '@atlaskit/mention/team-resource';
16
14
  export { AnnotationUpdateEmitter } from './plugins/annotation';
17
- // Used in mobile bridge
18
- export { stateKey as mediaPluginKey } from './plugins/media/pm-plugins/main';
19
- export { textColorPluginKey } from './plugins/text-color';
20
- export { changeColor } from './plugins/text-color/commands/change-color';
21
- /**
22
- * @private
23
- * @deprecated DO NOT USE, temporary solution while decoupling plugins from editor-core
24
- */
25
15
 
26
- /**
27
- * @private
28
- * @deprecated DO NOT USE, temporary solution while decoupling plugins from editor-core
29
- */
16
+ // Used in mobile bridge
30
17
 
31
- export { subscribeToToolbarAndPickerUpdates } from './plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates';
32
- export { subscribeTypeAheadUpdates } from './plugins/view-update-subscription/subscribe/type-ahead-updates';
33
- export { createTable } from '@atlaskit/editor-plugin-table/commands';
34
- export { insertTaskDecisionCommand } from './plugins/tasks-and-decisions/commands';
35
- export { EventDispatcher } from './event-dispatcher';
36
- export { pluginKey as statusPluginKey } from './plugins/status/plugin';
37
- export { insertDate, openDatePicker, deleteDate } from './plugins/date/actions';
38
- export { dateToDateType } from './plugins/date/utils/formatParse';
39
- export { pluginKey as datePluginKey } from './plugins/date/pm-plugins/plugin-key';
40
- export { commitStatusPicker, setStatusPickerAt, updateStatus, updateStatusWithAnalytics, removeStatus } from './plugins/status/actions';
41
- export { typeAheadPluginKey } from './plugins/type-ahead';
42
- export { historyPluginKey } from './plugins/history';
43
18
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
44
- export { setKeyboardHeight } from '@atlaskit/editor-plugin-base';
45
- export { setMobilePaddingTop, setIsExpanded } from './plugins/mobile-dimensions/commands';
46
-
47
19
  // Used in editor-test-helpers and mobile bridge
48
20
  export { setTextSelection, getNodesCount, measurements } from './utils';
49
- export {
50
- /**
51
- * @deprecated Use dedupe from @atlaskit/editor-common/utils instead
52
- */
53
- dedupe } from '@atlaskit/editor-common/utils';
54
- export { ReactEditorView, BaseReactEditorView } from './create-editor';
55
- export { getDefaultPresetOptionsFromEditorProps } from './create-editor';
56
21
  export { default as EditorActions } from './actions';
57
22
  // Re-export from provider factory to not cause a breaking change
58
23
 
59
24
  export { PortalProvider, PortalProviderAPI, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
60
- export { GapCursorSelection, Side as GapCursorSide } from '@atlaskit/editor-common/selection';
61
- export { selectionPluginKey } from './plugins/mobile-selection';
62
- export { insertExpand } from './plugins/expand/commands';
63
- export { default as WithPluginState } from './ui/WithPluginState';
64
- export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ui/ColorPalette/Palettes/statusColorPalette';
65
- export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
66
- export { default as messages, statusMessages, dateMessages } from './messages';
67
- export { createTypeAheadTools } from './plugins/type-ahead/api';
25
+
26
+ /**
27
+ * @deprecated
28
+ * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
29
+ * This is here while we work to extract the media plugin.
30
+ * Please use the export from `@atlaskit/editor-common/provider-factory`.
31
+ */
32
+
33
+ /**
34
+ * @deprecated
35
+ * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
36
+ * This is here while we work to extract the media plugin.
37
+ * Please use the export from `@atlaskit/editor-common/provider-factory`.
38
+ */
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.48.8";
2
+ export const version = "188.0.0";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
package/dist/esm/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  // Used in products integration code
2
2
  export { name, version } from './version-wrapper';
3
- export { clearEditorContent } from './commands';
4
3
  export { default as Editor } from './editor';
5
4
  export { default as EditorContext } from './ui/EditorContext';
6
5
  export { default as WithEditorActions } from './ui/WithEditorActions';
@@ -10,58 +9,30 @@ export { default as ToolbarHelp } from './ui/ToolbarHelp';
10
9
  export { default as ToolbarFeedback } from './ui/ToolbarFeedback';
11
10
  export { default as ContextPanel } from './ui/ContextPanel';
12
11
  export { EmojiResource } from '@atlaskit/emoji/resource';
13
- export { default as mediaPlugin, insertMediaSingleNode } from './plugins/media';
14
- export { AbstractMentionResource, MentionResource, PresenceResource } from '@atlaskit/mention/resource';
12
+ export { MentionResource } from '@atlaskit/mention/resource';
15
13
  export { TeamMentionResource } from '@atlaskit/mention/team-resource';
16
14
  export { AnnotationUpdateEmitter } from './plugins/annotation';
17
- // Used in mobile bridge
18
- export { stateKey as mediaPluginKey } from './plugins/media/pm-plugins/main';
19
- export { textColorPluginKey } from './plugins/text-color';
20
- export { changeColor } from './plugins/text-color/commands/change-color';
21
- /**
22
- * @private
23
- * @deprecated DO NOT USE, temporary solution while decoupling plugins from editor-core
24
- */
25
15
 
26
- /**
27
- * @private
28
- * @deprecated DO NOT USE, temporary solution while decoupling plugins from editor-core
29
- */
16
+ // Used in mobile bridge
30
17
 
31
- export { subscribeToToolbarAndPickerUpdates } from './plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates';
32
- export { subscribeTypeAheadUpdates } from './plugins/view-update-subscription/subscribe/type-ahead-updates';
33
- export { createTable } from '@atlaskit/editor-plugin-table/commands';
34
- export { insertTaskDecisionCommand } from './plugins/tasks-and-decisions/commands';
35
- export { EventDispatcher } from './event-dispatcher';
36
- export { pluginKey as statusPluginKey } from './plugins/status/plugin';
37
- export { insertDate, openDatePicker, deleteDate } from './plugins/date/actions';
38
- export { dateToDateType } from './plugins/date/utils/formatParse';
39
- export { pluginKey as datePluginKey } from './plugins/date/pm-plugins/plugin-key';
40
- export { commitStatusPicker, setStatusPickerAt, updateStatus, updateStatusWithAnalytics, removeStatus } from './plugins/status/actions';
41
- export { typeAheadPluginKey } from './plugins/type-ahead';
42
- export { historyPluginKey } from './plugins/history';
43
18
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
44
- export { setKeyboardHeight } from '@atlaskit/editor-plugin-base';
45
- export { setMobilePaddingTop, setIsExpanded } from './plugins/mobile-dimensions/commands';
46
-
47
19
  // Used in editor-test-helpers and mobile bridge
48
20
  export { setTextSelection, getNodesCount, measurements } from './utils';
49
- export {
50
- /**
51
- * @deprecated Use dedupe from @atlaskit/editor-common/utils instead
52
- */
53
- dedupe } from '@atlaskit/editor-common/utils';
54
- export { ReactEditorView, BaseReactEditorView } from './create-editor';
55
- export { getDefaultPresetOptionsFromEditorProps } from './create-editor';
56
21
  export { default as EditorActions } from './actions';
57
22
  // Re-export from provider factory to not cause a breaking change
58
23
 
59
24
  export { PortalProvider, PortalProviderAPI, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
60
- export { GapCursorSelection, Side as GapCursorSide } from '@atlaskit/editor-common/selection';
61
- export { selectionPluginKey } from './plugins/mobile-selection';
62
- export { insertExpand } from './plugins/expand/commands';
63
- export { default as WithPluginState } from './ui/WithPluginState';
64
- export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ui/ColorPalette/Palettes/statusColorPalette';
65
- export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
66
- export { default as messages, statusMessages, dateMessages } from './messages';
67
- export { createTypeAheadTools } from './plugins/type-ahead/api';
25
+
26
+ /**
27
+ * @deprecated
28
+ * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
29
+ * This is here while we work to extract the media plugin.
30
+ * Please use the export from `@atlaskit/editor-common/provider-factory`.
31
+ */
32
+
33
+ /**
34
+ * @deprecated
35
+ * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
36
+ * This is here while we work to extract the media plugin.
37
+ * Please use the export from `@atlaskit/editor-common/provider-factory`.
38
+ */
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.48.8";
2
+ export var version = "188.0.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };