@atlaskit/editor-core 187.48.7 → 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.
Files changed (149) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/dist/cjs/index.js +3 -305
  3. package/dist/cjs/labs/next/presets/default.js +2 -2
  4. package/dist/cjs/plugins/index.js +0 -7
  5. package/dist/cjs/version-wrapper.js +1 -1
  6. package/dist/es2019/index.js +16 -45
  7. package/dist/es2019/labs/next/presets/default.js +1 -1
  8. package/dist/es2019/plugins/index.js +0 -1
  9. package/dist/es2019/version-wrapper.js +1 -1
  10. package/dist/esm/index.js +16 -45
  11. package/dist/esm/labs/next/presets/default.js +1 -1
  12. package/dist/esm/plugins/index.js +0 -1
  13. package/dist/esm/version-wrapper.js +1 -1
  14. package/dist/types/index.d.ts +19 -63
  15. package/dist/types/plugins/index.d.ts +0 -1
  16. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  17. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  18. package/dist/types-ts4.5/index.d.ts +19 -63
  19. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  20. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  21. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  22. package/package.json +4 -4
  23. package/report.api.md +8 -1116
  24. package/tmp/api-report-tmp.d.ts +8 -971
  25. package/dist/cjs/plugins/floating-toolbar/index.js +0 -386
  26. package/dist/cjs/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -73
  27. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -26
  28. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -16
  29. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -9
  30. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -16
  31. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -25
  32. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -5
  33. package/dist/cjs/plugins/floating-toolbar/ui/CheckboxModal.js +0 -83
  34. package/dist/cjs/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -22
  35. package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +0 -208
  36. package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +0 -205
  37. package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -32
  38. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -120
  39. package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -179
  40. package/dist/cjs/plugins/floating-toolbar/ui/Input.js +0 -78
  41. package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +0 -152
  42. package/dist/cjs/plugins/floating-toolbar/ui/Select.js +0 -74
  43. package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +0 -9
  44. package/dist/cjs/plugins/floating-toolbar/ui/SimpleModal.js +0 -42
  45. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +0 -427
  46. package/dist/cjs/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -25
  47. package/dist/cjs/plugins/floating-toolbar/ui/messages.js +0 -55
  48. package/dist/cjs/plugins/floating-toolbar/ui/styles.js +0 -79
  49. package/dist/cjs/plugins/floating-toolbar/utils.js +0 -22
  50. package/dist/es2019/plugins/floating-toolbar/index.js +0 -368
  51. package/dist/es2019/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -63
  52. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -10
  53. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -8
  54. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -2
  55. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -9
  56. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -16
  57. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -1
  58. package/dist/es2019/plugins/floating-toolbar/ui/CheckboxModal.js +0 -71
  59. package/dist/es2019/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -13
  60. package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +0 -180
  61. package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +0 -191
  62. package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -25
  63. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -107
  64. package/dist/es2019/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -100
  65. package/dist/es2019/plugins/floating-toolbar/ui/Input.js +0 -52
  66. package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +0 -137
  67. package/dist/es2019/plugins/floating-toolbar/ui/Select.js +0 -62
  68. package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +0 -2
  69. package/dist/es2019/plugins/floating-toolbar/ui/SimpleModal.js +0 -35
  70. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +0 -419
  71. package/dist/es2019/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -6
  72. package/dist/es2019/plugins/floating-toolbar/ui/messages.js +0 -48
  73. package/dist/es2019/plugins/floating-toolbar/ui/styles.js +0 -64
  74. package/dist/es2019/plugins/floating-toolbar/utils.js +0 -16
  75. package/dist/esm/plugins/floating-toolbar/index.js +0 -375
  76. package/dist/esm/plugins/floating-toolbar/pm-plugins/force-focus/index.js +0 -64
  77. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.js +0 -18
  78. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +0 -8
  79. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.js +0 -2
  80. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.js +0 -9
  81. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +0 -17
  82. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/types.js +0 -1
  83. package/dist/esm/plugins/floating-toolbar/ui/CheckboxModal.js +0 -72
  84. package/dist/esm/plugins/floating-toolbar/ui/ConfirmationModal.js +0 -14
  85. package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +0 -199
  86. package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +0 -197
  87. package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +0 -25
  88. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +0 -113
  89. package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +0 -168
  90. package/dist/esm/plugins/floating-toolbar/ui/Input.js +0 -70
  91. package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +0 -141
  92. package/dist/esm/plugins/floating-toolbar/ui/Select.js +0 -64
  93. package/dist/esm/plugins/floating-toolbar/ui/Separator.js +0 -2
  94. package/dist/esm/plugins/floating-toolbar/ui/SimpleModal.js +0 -31
  95. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +0 -417
  96. package/dist/esm/plugins/floating-toolbar/ui/ToolbarLoader.js +0 -12
  97. package/dist/esm/plugins/floating-toolbar/ui/messages.js +0 -48
  98. package/dist/esm/plugins/floating-toolbar/ui/styles.js +0 -68
  99. package/dist/esm/plugins/floating-toolbar/utils.js +0 -16
  100. package/dist/types/plugins/floating-toolbar/index.d.ts +0 -13
  101. package/dist/types/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +0 -21
  102. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +0 -3
  103. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -1
  104. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +0 -3
  105. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +0 -3
  106. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.d.ts +0 -3
  107. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +0 -8
  108. package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +0 -4
  109. package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +0 -6
  110. package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +0 -41
  111. package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +0 -29
  112. package/dist/types/plugins/floating-toolbar/ui/EditorEmojiAddIcon.d.ts +0 -2
  113. package/dist/types/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +0 -15
  114. package/dist/types/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +0 -16
  115. package/dist/types/plugins/floating-toolbar/ui/Input.d.ts +0 -23
  116. package/dist/types/plugins/floating-toolbar/ui/ScrollButtons.d.ts +0 -13
  117. package/dist/types/plugins/floating-toolbar/ui/Select.d.ts +0 -21
  118. package/dist/types/plugins/floating-toolbar/ui/Separator.d.ts +0 -2
  119. package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +0 -4
  120. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +0 -44
  121. package/dist/types/plugins/floating-toolbar/ui/ToolbarLoader.d.ts +0 -4
  122. package/dist/types/plugins/floating-toolbar/ui/messages.d.ts +0 -48
  123. package/dist/types/plugins/floating-toolbar/ui/styles.d.ts +0 -20
  124. package/dist/types/plugins/floating-toolbar/utils.d.ts +0 -2
  125. package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +0 -13
  126. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +0 -21
  127. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +0 -3
  128. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +0 -1
  129. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +0 -3
  130. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +0 -3
  131. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.d.ts +0 -3
  132. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +0 -8
  133. package/dist/types-ts4.5/plugins/floating-toolbar/ui/CheckboxModal.d.ts +0 -4
  134. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +0 -6
  135. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Dropdown.d.ts +0 -41
  136. package/dist/types-ts4.5/plugins/floating-toolbar/ui/DropdownMenu.d.ts +0 -29
  137. package/dist/types-ts4.5/plugins/floating-toolbar/ui/EditorEmojiAddIcon.d.ts +0 -2
  138. package/dist/types-ts4.5/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +0 -15
  139. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +0 -16
  140. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Input.d.ts +0 -23
  141. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ScrollButtons.d.ts +0 -13
  142. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Select.d.ts +0 -21
  143. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Separator.d.ts +0 -2
  144. package/dist/types-ts4.5/plugins/floating-toolbar/ui/SimpleModal.d.ts +0 -4
  145. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +0 -44
  146. package/dist/types-ts4.5/plugins/floating-toolbar/ui/ToolbarLoader.d.ts +0 -4
  147. package/dist/types-ts4.5/plugins/floating-toolbar/ui/messages.d.ts +0 -48
  148. package/dist/types-ts4.5/plugins/floating-toolbar/ui/styles.d.ts +0 -20
  149. package/dist/types-ts4.5/plugins/floating-toolbar/utils.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,97 @@
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
+
88
+ ## 187.48.8
89
+
90
+ ### Patch Changes
91
+
92
+ - [#40754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40754) [`fc1c299c926`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc1c299c926) - ED-20017 Extract Floating toolbar plugin to its own package
93
+ - Updated dependencies
94
+
3
95
  ## 187.48.7
4
96
 
5
97
  ### 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");
@@ -21,7 +21,7 @@ var _submitEditor = _interopRequireDefault(require("../../../plugins/submit-edit
21
21
  var _fakeTextCursor = _interopRequireDefault(require("../../../plugins/fake-text-cursor"));
22
22
  var _editorPluginFeatureFlags = require("@atlaskit/editor-plugin-feature-flags");
23
23
  var _editorPluginCopyButton = require("@atlaskit/editor-plugin-copy-button");
24
- var _floatingToolbar = _interopRequireDefault(require("../../../plugins/floating-toolbar"));
24
+ var _editorPluginFloatingToolbar = require("@atlaskit/editor-plugin-floating-toolbar");
25
25
  var _clipboard = _interopRequireDefault(require("../../../plugins/clipboard"));
26
26
  var _plugins = require("../../../plugins");
27
27
  var _editorPluginAnalytics = require("@atlaskit/editor-plugin-analytics");
@@ -77,7 +77,7 @@ function createDefaultPreset(options) {
77
77
  return builder;
78
78
  }).add([_editorPluginHyperlink.hyperlinkPlugin, options.hyperlinkOptions]).add([_editorPluginTextFormatting.textFormattingPlugin, options.textFormatting]).add(_editorPluginWidth.widthPlugin).add([_editorPluginQuickInsert.quickInsertPlugin, options.quickInsert]).add([_typeAhead.default, options.typeAhead || {
79
79
  createAnalyticsEvent: options.createAnalyticsEvent
80
- }]).add([_editorPluginPlaceholder.placeholderPlugin, options.placeholder]).add(_editorPluginUnsupportedContent.unsupportedContentPlugin).add(_editorPluginEditorDisabled.editorDisabledPlugin).add([_submitEditor.default, options.submitEditor]).add(_fakeTextCursor.default).add(_editorPluginCopyButton.copyButtonPlugin).add(_floatingToolbar.default).add([_selection.default, options.selection]).add([_codeBlock.default, options.codeBlock || {
80
+ }]).add([_editorPluginPlaceholder.placeholderPlugin, options.placeholder]).add(_editorPluginUnsupportedContent.unsupportedContentPlugin).add(_editorPluginEditorDisabled.editorDisabledPlugin).add([_submitEditor.default, options.submitEditor]).add(_fakeTextCursor.default).add(_editorPluginCopyButton.copyButtonPlugin).add(_editorPluginFloatingToolbar.floatingToolbarPlugin).add([_selection.default, options.selection]).add([_codeBlock.default, options.codeBlock || {
81
81
  appearance: 'full-page'
82
82
  }]);
83
83
  return preset;
@@ -137,12 +137,6 @@ Object.defineProperty(exports, "findReplacePlugin", {
137
137
  return _findReplace.default;
138
138
  }
139
139
  });
140
- Object.defineProperty(exports, "floatingToolbarPlugin", {
141
- enumerable: true,
142
- get: function get() {
143
- return _floatingToolbar.default;
144
- }
145
- });
146
140
  Object.defineProperty(exports, "fragmentMarkPlugin", {
147
141
  enumerable: true,
148
142
  get: function get() {
@@ -335,7 +329,6 @@ var _submitEditor = _interopRequireDefault(require("./submit-editor"));
335
329
  var _tasksAndDecisions = _interopRequireDefault(require("./tasks-and-decisions"));
336
330
  var _textColor = _interopRequireDefault(require("./text-color"));
337
331
  var _typeAhead = _interopRequireDefault(require("./type-ahead"));
338
- var _floatingToolbar = _interopRequireDefault(require("./floating-toolbar"));
339
332
  var _status = _interopRequireDefault(require("./status"));
340
333
  var _breakout = _interopRequireDefault(require("./breakout"));
341
334
  var _alignment = _interopRequireDefault(require("./alignment"));
@@ -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.7";
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
+ */
@@ -15,7 +15,7 @@ import submitEditorPlugin from '../../../plugins/submit-editor';
15
15
  import fakeTextCursorPlugin from '../../../plugins/fake-text-cursor';
16
16
  import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
17
17
  import { copyButtonPlugin } from '@atlaskit/editor-plugin-copy-button';
18
- import floatingToolbarPlugin from '../../../plugins/floating-toolbar';
18
+ import { floatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
19
19
  import clipboardPlugin from '../../../plugins/clipboard';
20
20
  import { analyticsPlugin as deprecatedAnalyticsPlugin } from '../../../plugins';
21
21
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
@@ -22,7 +22,6 @@ export { default as submitEditorPlugin } from './submit-editor';
22
22
  export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
23
23
  export { default as textColorPlugin } from './text-color';
24
24
  export { default as typeAheadPlugin } from './type-ahead';
25
- export { default as floatingToolbarPlugin } from './floating-toolbar';
26
25
  export { default as statusPlugin } from './status';
27
26
  export { default as breakoutPlugin } from './breakout';
28
27
  export { default as alignmentPlugin } from './alignment';
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.48.7";
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
  };