@atlaskit/editor-core 187.28.5 → 187.29.2

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 (220) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/index.js +0 -7
  3. package/dist/cjs/labs/next/presets/universal.js +2 -1
  4. package/dist/cjs/plugins/analytics/index.js +0 -6
  5. package/dist/cjs/plugins/analytics/types/index.js +0 -6
  6. package/dist/cjs/plugins/index.js +0 -7
  7. package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/commands.js +1 -1
  8. package/dist/cjs/utils/commands.js +1 -33
  9. package/dist/cjs/utils/index.js +0 -13
  10. package/dist/cjs/utils/mark.js +2 -46
  11. package/dist/cjs/utils/selection.js +0 -5
  12. package/dist/cjs/version-wrapper.js +1 -1
  13. package/dist/es2019/index.js +0 -1
  14. package/dist/es2019/labs/next/presets/universal.js +2 -1
  15. package/dist/es2019/plugins/analytics/index.js +1 -1
  16. package/dist/es2019/plugins/analytics/types/index.js +1 -1
  17. package/dist/es2019/plugins/index.js +0 -1
  18. package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/commands.js +1 -1
  19. package/dist/es2019/utils/commands.js +1 -33
  20. package/dist/es2019/utils/index.js +1 -2
  21. package/dist/es2019/utils/mark.js +0 -41
  22. package/dist/es2019/utils/selection.js +0 -6
  23. package/dist/es2019/version-wrapper.js +1 -1
  24. package/dist/esm/index.js +0 -1
  25. package/dist/esm/labs/next/presets/universal.js +2 -1
  26. package/dist/esm/plugins/analytics/index.js +1 -1
  27. package/dist/esm/plugins/analytics/types/index.js +1 -1
  28. package/dist/esm/plugins/index.js +0 -1
  29. package/dist/esm/plugins/tasks-and-decisions/pm-plugins/commands.js +1 -1
  30. package/dist/esm/utils/commands.js +1 -31
  31. package/dist/esm/utils/index.js +1 -2
  32. package/dist/esm/utils/mark.js +0 -42
  33. package/dist/esm/utils/selection.js +0 -4
  34. package/dist/esm/version-wrapper.js +1 -1
  35. package/dist/types/index.d.ts +0 -3
  36. package/dist/types/plugins/analytics/index.d.ts +1 -1
  37. package/dist/types/plugins/analytics/types/index.d.ts +1 -1
  38. package/dist/types/plugins/index.d.ts +0 -1
  39. package/dist/types/plugins/paste/index.d.ts +1 -1
  40. package/dist/types/utils/commands.d.ts +1 -4
  41. package/dist/types/utils/index.d.ts +1 -2
  42. package/dist/types/utils/mark.d.ts +2 -12
  43. package/dist/types/utils/selection.d.ts +0 -2
  44. package/dist/types-ts4.5/index.d.ts +0 -3
  45. package/dist/types-ts4.5/plugins/analytics/index.d.ts +1 -1
  46. package/dist/types-ts4.5/plugins/analytics/types/index.d.ts +1 -1
  47. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  48. package/dist/types-ts4.5/plugins/paste/index.d.ts +1 -1
  49. package/dist/types-ts4.5/utils/commands.d.ts +1 -4
  50. package/dist/types-ts4.5/utils/index.d.ts +1 -2
  51. package/dist/types-ts4.5/utils/mark.d.ts +2 -12
  52. package/dist/types-ts4.5/utils/selection.d.ts +0 -2
  53. package/package.json +7 -3
  54. package/report.api.md +0 -9
  55. package/tmp/api-report-tmp.d.ts +0 -9
  56. package/dist/cjs/plugins/list/actions/conversions.js +0 -153
  57. package/dist/cjs/plugins/list/actions/indent-list-items-selected.js +0 -125
  58. package/dist/cjs/plugins/list/actions/indent-list.js +0 -49
  59. package/dist/cjs/plugins/list/actions/join-list-items-forward.js +0 -59
  60. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/index.js +0 -40
  61. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +0 -88
  62. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +0 -85
  63. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +0 -79
  64. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.js +0 -45
  65. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.js +0 -56
  66. package/dist/cjs/plugins/list/actions/merge-lists.js +0 -27
  67. package/dist/cjs/plugins/list/actions/outdent-list-items-selected.js +0 -291
  68. package/dist/cjs/plugins/list/actions/wrap-and-join-lists.js +0 -98
  69. package/dist/cjs/plugins/list/commands/indent-list.js +0 -71
  70. package/dist/cjs/plugins/list/commands/index.js +0 -348
  71. package/dist/cjs/plugins/list/commands/join-list-item-forward.js +0 -61
  72. package/dist/cjs/plugins/list/commands/listBackspace.js +0 -284
  73. package/dist/cjs/plugins/list/commands/outdent-list.js +0 -70
  74. package/dist/cjs/plugins/list/index.js +0 -133
  75. package/dist/cjs/plugins/list/messages.js +0 -37
  76. package/dist/cjs/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +0 -61
  77. package/dist/cjs/plugins/list/pm-plugins/input-rules/index.js +0 -36
  78. package/dist/cjs/plugins/list/pm-plugins/input-rules/wrapping-join-rule.js +0 -58
  79. package/dist/cjs/plugins/list/pm-plugins/keymap.js +0 -27
  80. package/dist/cjs/plugins/list/pm-plugins/main.js +0 -168
  81. package/dist/cjs/plugins/list/transforms.js +0 -100
  82. package/dist/cjs/plugins/list/types.js +0 -8
  83. package/dist/cjs/plugins/list/utils/analytics.js +0 -22
  84. package/dist/cjs/plugins/list/utils/find.js +0 -68
  85. package/dist/cjs/plugins/list/utils/indentation.js +0 -22
  86. package/dist/cjs/plugins/list/utils/node.js +0 -16
  87. package/dist/cjs/plugins/list/utils/selection.js +0 -95
  88. package/dist/cjs/utils/input-rules.js +0 -30
  89. package/dist/es2019/plugins/list/actions/conversions.js +0 -160
  90. package/dist/es2019/plugins/list/actions/indent-list-items-selected.js +0 -124
  91. package/dist/es2019/plugins/list/actions/indent-list.js +0 -44
  92. package/dist/es2019/plugins/list/actions/join-list-items-forward.js +0 -54
  93. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/index.js +0 -5
  94. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +0 -74
  95. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +0 -78
  96. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +0 -72
  97. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.js +0 -37
  98. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.js +0 -48
  99. package/dist/es2019/plugins/list/actions/merge-lists.js +0 -24
  100. package/dist/es2019/plugins/list/actions/outdent-list-items-selected.js +0 -295
  101. package/dist/es2019/plugins/list/actions/wrap-and-join-lists.js +0 -91
  102. package/dist/es2019/plugins/list/commands/indent-list.js +0 -62
  103. package/dist/es2019/plugins/list/commands/index.js +0 -322
  104. package/dist/es2019/plugins/list/commands/join-list-item-forward.js +0 -53
  105. package/dist/es2019/plugins/list/commands/listBackspace.js +0 -276
  106. package/dist/es2019/plugins/list/commands/outdent-list.js +0 -60
  107. package/dist/es2019/plugins/list/index.js +0 -120
  108. package/dist/es2019/plugins/list/messages.js +0 -29
  109. package/dist/es2019/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +0 -55
  110. package/dist/es2019/plugins/list/pm-plugins/input-rules/index.js +0 -33
  111. package/dist/es2019/plugins/list/pm-plugins/input-rules/wrapping-join-rule.js +0 -52
  112. package/dist/es2019/plugins/list/pm-plugins/keymap.js +0 -19
  113. package/dist/es2019/plugins/list/pm-plugins/main.js +0 -159
  114. package/dist/es2019/plugins/list/transforms.js +0 -102
  115. package/dist/es2019/plugins/list/types.js +0 -1
  116. package/dist/es2019/plugins/list/utils/analytics.js +0 -12
  117. package/dist/es2019/plugins/list/utils/find.js +0 -61
  118. package/dist/es2019/plugins/list/utils/indentation.js +0 -16
  119. package/dist/es2019/plugins/list/utils/node.js +0 -12
  120. package/dist/es2019/plugins/list/utils/selection.js +0 -96
  121. package/dist/es2019/utils/input-rules.js +0 -20
  122. package/dist/esm/plugins/list/actions/conversions.js +0 -147
  123. package/dist/esm/plugins/list/actions/indent-list-items-selected.js +0 -117
  124. package/dist/esm/plugins/list/actions/indent-list.js +0 -43
  125. package/dist/esm/plugins/list/actions/join-list-items-forward.js +0 -52
  126. package/dist/esm/plugins/list/actions/join-list-items-scenarios/index.js +0 -5
  127. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +0 -81
  128. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +0 -79
  129. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +0 -73
  130. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.js +0 -38
  131. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.js +0 -49
  132. package/dist/esm/plugins/list/actions/merge-lists.js +0 -21
  133. package/dist/esm/plugins/list/actions/outdent-list-items-selected.js +0 -283
  134. package/dist/esm/plugins/list/actions/wrap-and-join-lists.js +0 -92
  135. package/dist/esm/plugins/list/commands/indent-list.js +0 -63
  136. package/dist/esm/plugins/list/commands/index.js +0 -320
  137. package/dist/esm/plugins/list/commands/join-list-item-forward.js +0 -53
  138. package/dist/esm/plugins/list/commands/listBackspace.js +0 -275
  139. package/dist/esm/plugins/list/commands/outdent-list.js +0 -62
  140. package/dist/esm/plugins/list/index.js +0 -127
  141. package/dist/esm/plugins/list/messages.js +0 -29
  142. package/dist/esm/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +0 -56
  143. package/dist/esm/plugins/list/pm-plugins/input-rules/index.js +0 -30
  144. package/dist/esm/plugins/list/pm-plugins/input-rules/wrapping-join-rule.js +0 -51
  145. package/dist/esm/plugins/list/pm-plugins/keymap.js +0 -19
  146. package/dist/esm/plugins/list/pm-plugins/main.js +0 -159
  147. package/dist/esm/plugins/list/transforms.js +0 -92
  148. package/dist/esm/plugins/list/types.js +0 -1
  149. package/dist/esm/plugins/list/utils/analytics.js +0 -12
  150. package/dist/esm/plugins/list/utils/find.js +0 -59
  151. package/dist/esm/plugins/list/utils/indentation.js +0 -16
  152. package/dist/esm/plugins/list/utils/node.js +0 -10
  153. package/dist/esm/plugins/list/utils/selection.js +0 -81
  154. package/dist/esm/utils/input-rules.js +0 -22
  155. package/dist/types/plugins/list/actions/conversions.d.ts +0 -6
  156. package/dist/types/plugins/list/actions/indent-list-items-selected.d.ts +0 -2
  157. package/dist/types/plugins/list/actions/indent-list.d.ts +0 -2
  158. package/dist/types/plugins/list/actions/join-list-items-forward.d.ts +0 -13
  159. package/dist/types/plugins/list/actions/join-list-items-scenarios/index.d.ts +0 -5
  160. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts +0 -9
  161. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.d.ts +0 -9
  162. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.d.ts +0 -9
  163. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts +0 -9
  164. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.d.ts +0 -9
  165. package/dist/types/plugins/list/actions/merge-lists.d.ts +0 -7
  166. package/dist/types/plugins/list/actions/outdent-list-items-selected.d.ts +0 -3
  167. package/dist/types/plugins/list/actions/wrap-and-join-lists.d.ts +0 -15
  168. package/dist/types/plugins/list/commands/indent-list.d.ts +0 -6
  169. package/dist/types/plugins/list/commands/index.d.ts +0 -17
  170. package/dist/types/plugins/list/commands/join-list-item-forward.d.ts +0 -3
  171. package/dist/types/plugins/list/commands/listBackspace.d.ts +0 -10
  172. package/dist/types/plugins/list/commands/outdent-list.d.ts +0 -7
  173. package/dist/types/plugins/list/index.d.ts +0 -3
  174. package/dist/types/plugins/list/messages.d.ts +0 -27
  175. package/dist/types/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +0 -9
  176. package/dist/types/plugins/list/pm-plugins/input-rules/index.d.ts +0 -4
  177. package/dist/types/plugins/list/pm-plugins/input-rules/wrapping-join-rule.d.ts +0 -12
  178. package/dist/types/plugins/list/pm-plugins/keymap.d.ts +0 -5
  179. package/dist/types/plugins/list/pm-plugins/main.d.ts +0 -11
  180. package/dist/types/plugins/list/transforms.d.ts +0 -4
  181. package/dist/types/plugins/list/types.d.ts +0 -4
  182. package/dist/types/plugins/list/utils/analytics.d.ts +0 -5
  183. package/dist/types/plugins/list/utils/find.d.ts +0 -10
  184. package/dist/types/plugins/list/utils/indentation.d.ts +0 -2
  185. package/dist/types/plugins/list/utils/node.d.ts +0 -2
  186. package/dist/types/plugins/list/utils/selection.d.ts +0 -14
  187. package/dist/types/utils/input-rules.d.ts +0 -10
  188. package/dist/types-ts4.5/plugins/list/actions/conversions.d.ts +0 -6
  189. package/dist/types-ts4.5/plugins/list/actions/indent-list-items-selected.d.ts +0 -2
  190. package/dist/types-ts4.5/plugins/list/actions/indent-list.d.ts +0 -2
  191. package/dist/types-ts4.5/plugins/list/actions/join-list-items-forward.d.ts +0 -16
  192. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/index.d.ts +0 -5
  193. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts +0 -9
  194. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.d.ts +0 -9
  195. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.d.ts +0 -9
  196. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts +0 -9
  197. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.d.ts +0 -9
  198. package/dist/types-ts4.5/plugins/list/actions/merge-lists.d.ts +0 -7
  199. package/dist/types-ts4.5/plugins/list/actions/outdent-list-items-selected.d.ts +0 -3
  200. package/dist/types-ts4.5/plugins/list/actions/wrap-and-join-lists.d.ts +0 -15
  201. package/dist/types-ts4.5/plugins/list/commands/indent-list.d.ts +0 -6
  202. package/dist/types-ts4.5/plugins/list/commands/index.d.ts +0 -17
  203. package/dist/types-ts4.5/plugins/list/commands/join-list-item-forward.d.ts +0 -3
  204. package/dist/types-ts4.5/plugins/list/commands/listBackspace.d.ts +0 -13
  205. package/dist/types-ts4.5/plugins/list/commands/outdent-list.d.ts +0 -7
  206. package/dist/types-ts4.5/plugins/list/index.d.ts +0 -3
  207. package/dist/types-ts4.5/plugins/list/messages.d.ts +0 -27
  208. package/dist/types-ts4.5/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +0 -9
  209. package/dist/types-ts4.5/plugins/list/pm-plugins/input-rules/index.d.ts +0 -4
  210. package/dist/types-ts4.5/plugins/list/pm-plugins/input-rules/wrapping-join-rule.d.ts +0 -12
  211. package/dist/types-ts4.5/plugins/list/pm-plugins/keymap.d.ts +0 -5
  212. package/dist/types-ts4.5/plugins/list/pm-plugins/main.d.ts +0 -11
  213. package/dist/types-ts4.5/plugins/list/transforms.d.ts +0 -4
  214. package/dist/types-ts4.5/plugins/list/types.d.ts +0 -4
  215. package/dist/types-ts4.5/plugins/list/utils/analytics.d.ts +0 -5
  216. package/dist/types-ts4.5/plugins/list/utils/find.d.ts +0 -10
  217. package/dist/types-ts4.5/plugins/list/utils/indentation.d.ts +0 -2
  218. package/dist/types-ts4.5/plugins/list/utils/node.d.ts +0 -2
  219. package/dist/types-ts4.5/plugins/list/utils/selection.d.ts +0 -14
  220. package/dist/types-ts4.5/utils/input-rules.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.29.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`90520713d49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90520713d49) - [ux] [ED-19441] - Added dark mode icons for panels
8
+
9
+ ## 187.29.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`8e9c21af71d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e9c21af71d) - Extracting list plugin code from editor-core to @atlaskit/editor-plugin-list.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 187.28.5
4
20
 
5
21
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -329,12 +329,6 @@ Object.defineProperty(exports, "lightModeStatusColorPalette", {
329
329
  return _statusColorPalette.lightModeStatusColorPalette;
330
330
  }
331
331
  });
332
- Object.defineProperty(exports, "listStateKey", {
333
- enumerable: true,
334
- get: function get() {
335
- return _main2.pluginKey;
336
- }
337
- });
338
332
  Object.defineProperty(exports, "measurements", {
339
333
  enumerable: true,
340
334
  get: function get() {
@@ -518,7 +512,6 @@ var _textColor = require("./plugins/text-color");
518
512
  var _changeColor = require("./plugins/text-color/commands/change-color");
519
513
  var _commands2 = require("./plugins/rule/commands");
520
514
  var _plugins = require("./plugins");
521
- var _main2 = require("./plugins/list/pm-plugins/main");
522
515
  var _toolbarAndPickerUpdates = require("./plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates");
523
516
  var _typeAheadUpdates = require("./plugins/view-update-subscription/subscribe/type-ahead-updates");
524
517
  var _commands3 = require("./plugins/block-type/commands");
@@ -9,6 +9,7 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _api = require("../../../selection-api/api");
11
11
  var _plugins = require("../../../plugins");
12
+ var _editorPluginList = require("@atlaskit/editor-plugin-list");
12
13
  var _editorPluginImageUpload = require("@atlaskit/editor-plugin-image-upload");
13
14
  var _editorPluginGuideline = require("@atlaskit/editor-plugin-guideline");
14
15
  var _editorPluginContextPanel = require("@atlaskit/editor-plugin-context-panel");
@@ -69,7 +70,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
69
70
  return builder.add([plugin, props.allowTextColor]);
70
71
  }
71
72
  return builder;
72
- }).add([_plugins.listPlugin, {
73
+ }).add([_editorPluginList.listPlugin, {
73
74
  restartNumberedLists: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.restartNumberedLists
74
75
  }]).maybeAdd(_plugins.rulePlugin, function (plugin, builder) {
75
76
  if (props.allowRule) {
@@ -82,12 +82,6 @@ Object.defineProperty(exports, "LINK_STATUS", {
82
82
  return _analytics.LINK_STATUS;
83
83
  }
84
84
  });
85
- Object.defineProperty(exports, "LIST_TEXT_SCENARIOS", {
86
- enumerable: true,
87
- get: function get() {
88
- return _analytics.LIST_TEXT_SCENARIOS;
89
- }
90
- });
91
85
  Object.defineProperty(exports, "MODE", {
92
86
  enumerable: true,
93
87
  get: function get() {
@@ -75,12 +75,6 @@ Object.defineProperty(exports, "INPUT_METHOD", {
75
75
  return _enums.INPUT_METHOD;
76
76
  }
77
77
  });
78
- Object.defineProperty(exports, "LIST_TEXT_SCENARIOS", {
79
- enumerable: true,
80
- get: function get() {
81
- return _analytics.LIST_TEXT_SCENARIOS;
82
- }
83
- });
84
78
  Object.defineProperty(exports, "MODE", {
85
79
  enumerable: true,
86
80
  get: function get() {
@@ -221,12 +221,6 @@ Object.defineProperty(exports, "layoutPlugin", {
221
221
  return _layout.default;
222
222
  }
223
223
  });
224
- Object.defineProperty(exports, "listPlugin", {
225
- enumerable: true,
226
- get: function get() {
227
- return _list.default;
228
- }
229
- });
230
224
  Object.defineProperty(exports, "macroPlugin", {
231
225
  enumerable: true,
232
226
  get: function get() {
@@ -385,7 +379,6 @@ var _helpDialog = _interopRequireDefault(require("./help-dialog"));
385
379
  var _insertBlock = _interopRequireDefault(require("./insert-block"));
386
380
  var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
387
381
  var _layout = _interopRequireDefault(require("./layout"));
388
- var _list = _interopRequireDefault(require("./list"));
389
382
  var _toolbarListsIndentation = _interopRequireDefault(require("./toolbar-lists-indentation"));
390
383
  var _macro = _interopRequireDefault(require("./macro"));
391
384
  var _maxContentSize = _interopRequireDefault(require("./max-content-size"));
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.wrapSelectionInTaskList = exports.liftSelection = exports.joinAtCut = void 0;
7
7
  var _transform = require("@atlaskit/editor-prosemirror/transform");
8
- var _commands = require("../../../utils/commands");
8
+ var _commands = require("@atlaskit/editor-common/commands");
9
9
  var _helpers = require("./helpers");
10
10
  var _utils = require("../utils");
11
11
  var liftSelection = function liftSelection(state, dispatch) {
@@ -3,15 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.findCutBefore = findCutBefore;
7
- exports.withScrollIntoView = exports.selectNode = exports.isNthParentOfType = exports.isFirstChildOfParent = void 0;
6
+ exports.withScrollIntoView = exports.selectNode = exports.isNthParentOfType = void 0;
8
7
  var _state = require("@atlaskit/editor-prosemirror/state");
9
- var _selection = require("@atlaskit/editor-common/selection");
10
- var isFirstChildOfParent = function isFirstChildOfParent(state) {
11
- var $from = state.selection.$from;
12
- return $from.depth > 1 ? state.selection instanceof _selection.GapCursorSelection && $from.parentOffset === 0 || $from.index($from.depth - 1) === 0 : true;
13
- };
14
-
15
8
  /**
16
9
  * Creates a filter that checks if the node at a given number of parents above the current
17
10
  * selection is of the correct node type.
@@ -20,7 +13,6 @@ var isFirstChildOfParent = function isFirstChildOfParent(state) {
20
13
  * the current selection's parent, which will be the containing node when the selection
21
14
  * is usually inside the text content.
22
15
  */
23
- exports.isFirstChildOfParent = isFirstChildOfParent;
24
16
  var isNthParentOfType = function isNthParentOfType(nodeType, depthAway) {
25
17
  return function (state) {
26
18
  var $from = state.selection.$from;
@@ -28,31 +20,7 @@ var isNthParentOfType = function isNthParentOfType(nodeType, depthAway) {
28
20
  return !!parent && parent.type === state.schema.nodes[nodeType];
29
21
  };
30
22
  };
31
-
32
- // https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.js#L90
33
- // Keep going left up the tree, without going across isolating boundaries, until we
34
- // can go along the tree at that same level
35
- //
36
- // You can think of this as, if you could construct each document like we do in the tests,
37
- // return the position of the first ) backwards from the current selection.
38
23
  exports.isNthParentOfType = isNthParentOfType;
39
- function findCutBefore($pos) {
40
- // parent is non-isolating, so we can look across this boundary
41
- if (!$pos.parent.type.spec.isolating) {
42
- // search up the tree from the pos's *parent*
43
- for (var i = $pos.depth - 1; i >= 0; i--) {
44
- // starting from the inner most node's parent, find out
45
- // if we're not its first child
46
- if ($pos.index(i) > 0) {
47
- return $pos.doc.resolve($pos.before(i + 1));
48
- }
49
- if ($pos.node(i).type.spec.isolating) {
50
- break;
51
- }
52
- }
53
- }
54
- return null;
55
- }
56
24
  var withScrollIntoView = function withScrollIntoView(command) {
57
25
  return function (state, dispatch, view) {
58
26
  return command(state, function (tr) {
@@ -133,18 +133,6 @@ Object.defineProperty(exports, "nonNullable", {
133
133
  }
134
134
  });
135
135
  exports.pipe = pipe;
136
- Object.defineProperty(exports, "sanitiseMarksInSelection", {
137
- enumerable: true,
138
- get: function get() {
139
- return _mark.sanitiseMarksInSelection;
140
- }
141
- });
142
- Object.defineProperty(exports, "setGapCursorSelection", {
143
- enumerable: true,
144
- get: function get() {
145
- return _selection.setGapCursorSelection;
146
- }
147
- });
148
136
  Object.defineProperty(exports, "setNodeSelection", {
149
137
  enumerable: true,
150
138
  get: function get() {
@@ -168,7 +156,6 @@ var _utils = require("@atlaskit/editor-prosemirror/utils");
168
156
  var _utils2 = require("@atlaskit/editor-common/utils");
169
157
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
170
158
  var _document = require("./document");
171
- var _mark = require("./mark");
172
159
  var _nodes = require("./nodes");
173
160
  var _selection = require("./selection");
174
161
  var _measureEnum = _interopRequireDefault(require("./performance/measure-enum"));
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.sanitiseSelectionMarksForWrapping = exports.sanitiseMarksInSelection = exports.isMarkExcluded = exports.isMarkAllowedInRange = void 0;
7
+ exports.isMarkExcluded = exports.isMarkAllowedInRange = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var isMarkAllowedInRange = function isMarkAllowedInRange(doc, ranges, type) {
10
10
  var _loop = function _loop() {
@@ -40,48 +40,4 @@ var isMarkExcluded = function isMarkExcluded(type, marks) {
40
40
  }
41
41
  return false;
42
42
  };
43
-
44
- /**
45
- * Removes marks from nodes in the current selection that are not supported
46
- */
47
- exports.isMarkExcluded = isMarkExcluded;
48
- var sanitiseSelectionMarksForWrapping = function sanitiseSelectionMarksForWrapping(state, newParentType) {
49
- var tr = state.tr;
50
- sanitiseMarksInSelection(tr, newParentType);
51
- return tr;
52
- };
53
- exports.sanitiseSelectionMarksForWrapping = sanitiseSelectionMarksForWrapping;
54
- var sanitiseMarksInSelection = function sanitiseMarksInSelection(tr, newParentType) {
55
- var _tr$selection = tr.selection,
56
- from = _tr$selection.from,
57
- to = _tr$selection.to;
58
- var nodesSanitized = [];
59
- tr.doc.nodesBetween(from, to, function (node, pos, parent) {
60
- if (node.isText) {
61
- return false;
62
- }
63
- // Skip expands and layouts if they are outside selection
64
- // but continue to iterate over their children.
65
- if (['expand', 'layoutSection'].includes(node.type.name) && (pos < from || pos > to)) {
66
- return true;
67
- }
68
- node.marks.forEach(function (mark) {
69
- if (!(parent !== null && parent !== void 0 && parent.type.allowsMarkType(mark.type)) || newParentType && !newParentType.allowsMarkType(mark.type)) {
70
- var filteredMarks = node.marks.filter(function (m) {
71
- return m.type !== mark.type;
72
- });
73
- var position = pos > 0 ? pos : 0;
74
- var marksRemoved = node.marks.filter(function (m) {
75
- return m.type === mark.type;
76
- });
77
- nodesSanitized.push({
78
- node: node,
79
- marksRemoved: marksRemoved
80
- });
81
- tr.setNodeMarkup(position, undefined, node.attrs, filteredMarks);
82
- }
83
- });
84
- });
85
- return nodesSanitized;
86
- };
87
- exports.sanitiseMarksInSelection = sanitiseMarksInSelection;
43
+ exports.isMarkExcluded = isMarkExcluded;
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.isValidPosition = exports.duplicateSelection = void 0;
7
7
  exports.setAllSelection = setAllSelection;
8
8
  exports.setCellSelection = setCellSelection;
9
- exports.setGapCursorSelection = setGapCursorSelection;
10
9
  Object.defineProperty(exports, "setNodeSelection", {
11
10
  enumerable: true,
12
11
  get: function get() {
@@ -29,10 +28,6 @@ function setAllSelection(view) {
29
28
  var tr = state.tr.setSelection(new _state.AllSelection(view.state.doc));
30
29
  dispatch(tr);
31
30
  }
32
- function setGapCursorSelection(view, pos, side) {
33
- var state = view.state;
34
- view.dispatch(state.tr.setSelection(new _selection.GapCursorSelection(state.doc.resolve(pos), side)));
35
- }
36
31
  function setCellSelection(view, anchor, head) {
37
32
  var state = view.state,
38
33
  dispatch = view.dispatch;
@@ -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.28.5";
9
+ var version = "187.29.2";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -21,7 +21,6 @@ export { textColorPluginKey } from './plugins/text-color';
21
21
  export { changeColor } from './plugins/text-color/commands/change-color';
22
22
  export { insertHorizontalRule } from './plugins/rule/commands';
23
23
  export { blockPluginStateKey } from './plugins';
24
- export { pluginKey as listStateKey } from './plugins/list/pm-plugins/main';
25
24
  export { subscribeToToolbarAndPickerUpdates } from './plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates';
26
25
  export { subscribeTypeAheadUpdates } from './plugins/view-update-subscription/subscribe/type-ahead-updates';
27
26
  export { insertBlockType, insertBlockTypesWithAnalytics, setBlockType, setBlockTypeWithAnalytics } from './plugins/block-type/commands';
@@ -1,5 +1,6 @@
1
1
  import { createEditorSelectionAPI } from '../../../selection-api/api';
2
- import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, datePlugin, emojiPlugin, extensionPlugin, fragmentMarkPlugin, helpDialogPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, listPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mediaPlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, rulePlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, captionPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin, copyButtonPlugin, borderPlugin } from '../../../plugins';
2
+ import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, datePlugin, emojiPlugin, extensionPlugin, fragmentMarkPlugin, helpDialogPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mediaPlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, rulePlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, captionPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin, copyButtonPlugin, borderPlugin } from '../../../plugins';
3
+ import { listPlugin } from '@atlaskit/editor-plugin-list';
3
4
  import { imageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
4
5
  import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
5
6
  import { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
@@ -1,6 +1,6 @@
1
1
  import analyticsPlugin from './plugin';
2
2
  import { analyticsPluginKey as pluginKey } from './plugin-key';
3
- export { ACTION_SUBJECT_ID, ACTION_SUBJECT, ACTION, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE, FULL_WIDTH_MODE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, MODE, PasteContents, PasteSources, PasteTypes, PLATFORMS, PUNC, SYMBOL, TABLE_ACTION, TABLE_BREAKOUT, TRIGGER_METHOD, USER_CONTEXT, DELETE_DIRECTION, LIST_TEXT_SCENARIOS, fireAnalyticsEvent, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
3
+ export { ACTION_SUBJECT_ID, ACTION_SUBJECT, ACTION, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE, FULL_WIDTH_MODE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, MODE, PasteContents, PasteSources, PasteTypes, PLATFORMS, PUNC, SYMBOL, TABLE_ACTION, TABLE_BREAKOUT, TRIGGER_METHOD, USER_CONTEXT, DELETE_DIRECTION, fireAnalyticsEvent, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
4
4
  export { withAnalytics, addAnalytics } from './utils';
5
5
  export const analyticsPluginKey = pluginKey;
6
6
  export default analyticsPlugin;
@@ -1,3 +1,3 @@
1
1
  export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
2
2
  export { BROWSER_FREEZE_INTERACTION_TYPE, FULL_WIDTH_MODE, MODE, PLATFORMS } from './general-events';
3
- export { USER_CONTEXT, DELETE_DIRECTION, INDENT_DIRECTION, PUNC, TABLE_ACTION, INDENT_TYPE, LIST_TEXT_SCENARIOS, SYMBOL, TABLE_BREAKOUT } from '@atlaskit/editor-common/analytics';
3
+ export { USER_CONTEXT, DELETE_DIRECTION, INDENT_DIRECTION, PUNC, TABLE_ACTION, INDENT_TYPE, SYMBOL, TABLE_BREAKOUT } from '@atlaskit/editor-common/analytics';
@@ -13,7 +13,6 @@ export { default as helpDialogPlugin } from './help-dialog';
13
13
  export { default as insertBlockPlugin } from './insert-block';
14
14
  export { default as jiraIssuePlugin } from './jira-issue';
15
15
  export { default as layoutPlugin } from './layout';
16
- export { default as listPlugin } from './list';
17
16
  export { default as toolbarListsIndentationPlugin } from './toolbar-lists-indentation';
18
17
  export { default as macroPlugin } from './macro';
19
18
  export { default as maxContentSizePlugin } from './max-content-size';
@@ -1,5 +1,5 @@
1
1
  import { findWrapping, ReplaceAroundStep } from '@atlaskit/editor-prosemirror/transform';
2
- import { findCutBefore } from '../../../utils/commands';
2
+ import { findCutBefore } from '@atlaskit/editor-common/commands';
3
3
  import { getBlockRange, isActionOrDecisionItem, isActionOrDecisionList, liftBlock, subtreeHeight } from './helpers';
4
4
  import { normalizeTaskItemsSelection } from '../utils';
5
5
  export const liftSelection = (state, dispatch) => {
@@ -1,12 +1,4 @@
1
1
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
2
- import { GapCursorSelection } from '@atlaskit/editor-common/selection';
3
- const isFirstChildOfParent = state => {
4
- const {
5
- $from
6
- } = state.selection;
7
- return $from.depth > 1 ? state.selection instanceof GapCursorSelection && $from.parentOffset === 0 || $from.index($from.depth - 1) === 0 : true;
8
- };
9
-
10
2
  /**
11
3
  * Creates a filter that checks if the node at a given number of parents above the current
12
4
  * selection is of the correct node type.
@@ -24,30 +16,6 @@ const isNthParentOfType = (nodeType, depthAway) => {
24
16
  return !!parent && parent.type === state.schema.nodes[nodeType];
25
17
  };
26
18
  };
27
-
28
- // https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.js#L90
29
- // Keep going left up the tree, without going across isolating boundaries, until we
30
- // can go along the tree at that same level
31
- //
32
- // You can think of this as, if you could construct each document like we do in the tests,
33
- // return the position of the first ) backwards from the current selection.
34
- function findCutBefore($pos) {
35
- // parent is non-isolating, so we can look across this boundary
36
- if (!$pos.parent.type.spec.isolating) {
37
- // search up the tree from the pos's *parent*
38
- for (let i = $pos.depth - 1; i >= 0; i--) {
39
- // starting from the inner most node's parent, find out
40
- // if we're not its first child
41
- if ($pos.index(i) > 0) {
42
- return $pos.doc.resolve($pos.before(i + 1));
43
- }
44
- if ($pos.node(i).type.spec.isolating) {
45
- break;
46
- }
47
- }
48
- }
49
- return null;
50
- }
51
19
  const withScrollIntoView = command => (state, dispatch, view) => command(state, tr => {
52
20
  tr.scrollIntoView();
53
21
  if (dispatch) {
@@ -71,4 +39,4 @@ const selectNode = pos => (state, dispatch) => {
71
39
  }
72
40
  return true;
73
41
  };
74
- export { isFirstChildOfParent, isNthParentOfType, findCutBefore, withScrollIntoView, selectNode };
42
+ export { isNthParentOfType, withScrollIntoView, selectNode };
@@ -5,9 +5,8 @@ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
5
  export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem } from '@atlaskit/editor-common/utils';
6
6
  export { insideTable } from '@atlaskit/editor-common/core-utils';
7
7
  export { isNodeEmpty, findFarthestParentNode, isSelectionEndOfParagraph, nodesBetweenChanged, getNodesCount } from './document';
8
- export { sanitiseMarksInSelection } from './mark';
9
8
  export { isParagraph, isText, isLinkMark } from './nodes';
10
- export { setNodeSelection, setGapCursorSelection, setTextSelection } from './selection';
9
+ export { setNodeSelection, setTextSelection } from './selection';
11
10
  export { default as measurements } from './performance/measure-enum';
12
11
  function isMarkTypeCompatibleWithMark(markType, mark) {
13
12
  return !mark.type.excludes(markType) && !markType.excludes(mark.type);
@@ -23,45 +23,4 @@ export const isMarkExcluded = (type, marks) => {
23
23
  return marks.some(mark => mark.type !== type && mark.type.excludes(type));
24
24
  }
25
25
  return false;
26
- };
27
-
28
- /**
29
- * Removes marks from nodes in the current selection that are not supported
30
- */
31
- export const sanitiseSelectionMarksForWrapping = (state, newParentType) => {
32
- const {
33
- tr
34
- } = state;
35
- sanitiseMarksInSelection(tr, newParentType);
36
- return tr;
37
- };
38
- export const sanitiseMarksInSelection = (tr, newParentType) => {
39
- const {
40
- from,
41
- to
42
- } = tr.selection;
43
- const nodesSanitized = [];
44
- tr.doc.nodesBetween(from, to, (node, pos, parent) => {
45
- if (node.isText) {
46
- return false;
47
- }
48
- // Skip expands and layouts if they are outside selection
49
- // but continue to iterate over their children.
50
- if (['expand', 'layoutSection'].includes(node.type.name) && (pos < from || pos > to)) {
51
- return true;
52
- }
53
- node.marks.forEach(mark => {
54
- if (!(parent !== null && parent !== void 0 && parent.type.allowsMarkType(mark.type)) || newParentType && !newParentType.allowsMarkType(mark.type)) {
55
- const filteredMarks = node.marks.filter(m => m.type !== mark.type);
56
- const position = pos > 0 ? pos : 0;
57
- const marksRemoved = node.marks.filter(m => m.type === mark.type);
58
- nodesSanitized.push({
59
- node,
60
- marksRemoved
61
- });
62
- tr.setNodeMarkup(position, undefined, node.attrs, filteredMarks);
63
- }
64
- });
65
- });
66
- return nodesSanitized;
67
26
  };
@@ -10,12 +10,6 @@ export function setAllSelection(view) {
10
10
  const tr = state.tr.setSelection(new AllSelection(view.state.doc));
11
11
  dispatch(tr);
12
12
  }
13
- export function setGapCursorSelection(view, pos, side) {
14
- const {
15
- state
16
- } = view;
17
- view.dispatch(state.tr.setSelection(new GapCursorSelection(state.doc.resolve(pos), side)));
18
- }
19
13
  export function setCellSelection(view, anchor, head) {
20
14
  const {
21
15
  state,
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.28.5";
2
+ export const version = "187.29.2";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
package/dist/esm/index.js CHANGED
@@ -21,7 +21,6 @@ export { textColorPluginKey } from './plugins/text-color';
21
21
  export { changeColor } from './plugins/text-color/commands/change-color';
22
22
  export { insertHorizontalRule } from './plugins/rule/commands';
23
23
  export { blockPluginStateKey } from './plugins';
24
- export { pluginKey as listStateKey } from './plugins/list/pm-plugins/main';
25
24
  export { subscribeToToolbarAndPickerUpdates } from './plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates';
26
25
  export { subscribeTypeAheadUpdates } from './plugins/view-update-subscription/subscribe/type-ahead-updates';
27
26
  export { insertBlockType, insertBlockTypesWithAnalytics, setBlockType, setBlockTypeWithAnalytics } from './plugins/block-type/commands';
@@ -3,7 +3,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
5
  import { createEditorSelectionAPI } from '../../../selection-api/api';
6
- import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, datePlugin, emojiPlugin, extensionPlugin, fragmentMarkPlugin, helpDialogPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, listPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mediaPlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, rulePlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, captionPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin, copyButtonPlugin, borderPlugin } from '../../../plugins';
6
+ import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, datePlugin, emojiPlugin, extensionPlugin, fragmentMarkPlugin, helpDialogPlugin, insertBlockPlugin, jiraIssuePlugin, layoutPlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, mediaPlugin, mentionsPlugin, panelPlugin, placeholderTextPlugin, rulePlugin, saveOnEnterPlugin, tasksAndDecisionsPlugin, textColorPlugin, statusPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, historyPlugin, expandPlugin, isExpandInsertionEnabled, scrollIntoViewPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, captionPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin, copyButtonPlugin, borderPlugin } from '../../../plugins';
7
+ import { listPlugin } from '@atlaskit/editor-plugin-list';
7
8
  import { imageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
8
9
  import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
9
10
  import { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
@@ -1,6 +1,6 @@
1
1
  import analyticsPlugin from './plugin';
2
2
  import { analyticsPluginKey as pluginKey } from './plugin-key';
3
- export { ACTION_SUBJECT_ID, ACTION_SUBJECT, ACTION, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE, FULL_WIDTH_MODE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, MODE, PasteContents, PasteSources, PasteTypes, PLATFORMS, PUNC, SYMBOL, TABLE_ACTION, TABLE_BREAKOUT, TRIGGER_METHOD, USER_CONTEXT, DELETE_DIRECTION, LIST_TEXT_SCENARIOS, fireAnalyticsEvent, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
3
+ export { ACTION_SUBJECT_ID, ACTION_SUBJECT, ACTION, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE, FULL_WIDTH_MODE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD, LINK_REPRESENTATION, LINK_RESOURCE, LINK_STATUS, MODE, PasteContents, PasteSources, PasteTypes, PLATFORMS, PUNC, SYMBOL, TABLE_ACTION, TABLE_BREAKOUT, TRIGGER_METHOD, USER_CONTEXT, DELETE_DIRECTION, fireAnalyticsEvent, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
4
4
  export { withAnalytics, addAnalytics } from './utils';
5
5
  export var analyticsPluginKey = pluginKey;
6
6
  export default analyticsPlugin;
@@ -1,3 +1,3 @@
1
1
  export { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, TRIGGER_METHOD, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
2
2
  export { BROWSER_FREEZE_INTERACTION_TYPE, FULL_WIDTH_MODE, MODE, PLATFORMS } from './general-events';
3
- export { USER_CONTEXT, DELETE_DIRECTION, INDENT_DIRECTION, PUNC, TABLE_ACTION, INDENT_TYPE, LIST_TEXT_SCENARIOS, SYMBOL, TABLE_BREAKOUT } from '@atlaskit/editor-common/analytics';
3
+ export { USER_CONTEXT, DELETE_DIRECTION, INDENT_DIRECTION, PUNC, TABLE_ACTION, INDENT_TYPE, SYMBOL, TABLE_BREAKOUT } from '@atlaskit/editor-common/analytics';
@@ -13,7 +13,6 @@ export { default as helpDialogPlugin } from './help-dialog';
13
13
  export { default as insertBlockPlugin } from './insert-block';
14
14
  export { default as jiraIssuePlugin } from './jira-issue';
15
15
  export { default as layoutPlugin } from './layout';
16
- export { default as listPlugin } from './list';
17
16
  export { default as toolbarListsIndentationPlugin } from './toolbar-lists-indentation';
18
17
  export { default as macroPlugin } from './macro';
19
18
  export { default as maxContentSizePlugin } from './max-content-size';
@@ -1,5 +1,5 @@
1
1
  import { findWrapping, ReplaceAroundStep } from '@atlaskit/editor-prosemirror/transform';
2
- import { findCutBefore } from '../../../utils/commands';
2
+ import { findCutBefore } from '@atlaskit/editor-common/commands';
3
3
  import { getBlockRange, isActionOrDecisionItem, isActionOrDecisionList, liftBlock, subtreeHeight } from './helpers';
4
4
  import { normalizeTaskItemsSelection } from '../utils';
5
5
  export var liftSelection = function liftSelection(state, dispatch) {
@@ -1,10 +1,4 @@
1
1
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
2
- import { GapCursorSelection } from '@atlaskit/editor-common/selection';
3
- var isFirstChildOfParent = function isFirstChildOfParent(state) {
4
- var $from = state.selection.$from;
5
- return $from.depth > 1 ? state.selection instanceof GapCursorSelection && $from.parentOffset === 0 || $from.index($from.depth - 1) === 0 : true;
6
- };
7
-
8
2
  /**
9
3
  * Creates a filter that checks if the node at a given number of parents above the current
10
4
  * selection is of the correct node type.
@@ -20,30 +14,6 @@ var isNthParentOfType = function isNthParentOfType(nodeType, depthAway) {
20
14
  return !!parent && parent.type === state.schema.nodes[nodeType];
21
15
  };
22
16
  };
23
-
24
- // https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.js#L90
25
- // Keep going left up the tree, without going across isolating boundaries, until we
26
- // can go along the tree at that same level
27
- //
28
- // You can think of this as, if you could construct each document like we do in the tests,
29
- // return the position of the first ) backwards from the current selection.
30
- function findCutBefore($pos) {
31
- // parent is non-isolating, so we can look across this boundary
32
- if (!$pos.parent.type.spec.isolating) {
33
- // search up the tree from the pos's *parent*
34
- for (var i = $pos.depth - 1; i >= 0; i--) {
35
- // starting from the inner most node's parent, find out
36
- // if we're not its first child
37
- if ($pos.index(i) > 0) {
38
- return $pos.doc.resolve($pos.before(i + 1));
39
- }
40
- if ($pos.node(i).type.spec.isolating) {
41
- break;
42
- }
43
- }
44
- }
45
- return null;
46
- }
47
17
  var withScrollIntoView = function withScrollIntoView(command) {
48
18
  return function (state, dispatch, view) {
49
19
  return command(state, function (tr) {
@@ -73,4 +43,4 @@ var selectNode = function selectNode(pos) {
73
43
  return true;
74
44
  };
75
45
  };
76
- export { isFirstChildOfParent, isNthParentOfType, findCutBefore, withScrollIntoView, selectNode };
46
+ export { isNthParentOfType, withScrollIntoView, selectNode };
@@ -5,9 +5,8 @@ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
5
  export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem } from '@atlaskit/editor-common/utils';
6
6
  export { insideTable } from '@atlaskit/editor-common/core-utils';
7
7
  export { isNodeEmpty, findFarthestParentNode, isSelectionEndOfParagraph, nodesBetweenChanged, getNodesCount } from './document';
8
- export { sanitiseMarksInSelection } from './mark';
9
8
  export { isParagraph, isText, isLinkMark } from './nodes';
10
- export { setNodeSelection, setGapCursorSelection, setTextSelection } from './selection';
9
+ export { setNodeSelection, setTextSelection } from './selection';
11
10
  export { default as measurements } from './performance/measure-enum';
12
11
  function isMarkTypeCompatibleWithMark(markType, mark) {
13
12
  return !mark.type.excludes(markType) && !markType.excludes(mark.type);