@atlaskit/editor-core 187.28.3 → 187.29.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 (225) 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/plugins/text-color/ui/ToolbarTextColor/index.js +7 -1
  9. package/dist/cjs/utils/commands.js +1 -33
  10. package/dist/cjs/utils/index.js +0 -13
  11. package/dist/cjs/utils/mark.js +2 -46
  12. package/dist/cjs/utils/selection.js +0 -5
  13. package/dist/cjs/version-wrapper.js +1 -1
  14. package/dist/es2019/index.js +0 -1
  15. package/dist/es2019/labs/next/presets/universal.js +2 -1
  16. package/dist/es2019/plugins/analytics/index.js +1 -1
  17. package/dist/es2019/plugins/analytics/types/index.js +1 -1
  18. package/dist/es2019/plugins/index.js +0 -1
  19. package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/commands.js +1 -1
  20. package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +5 -1
  21. package/dist/es2019/utils/commands.js +1 -33
  22. package/dist/es2019/utils/index.js +1 -2
  23. package/dist/es2019/utils/mark.js +0 -41
  24. package/dist/es2019/utils/selection.js +0 -6
  25. package/dist/es2019/version-wrapper.js +1 -1
  26. package/dist/esm/index.js +0 -1
  27. package/dist/esm/labs/next/presets/universal.js +2 -1
  28. package/dist/esm/plugins/analytics/index.js +1 -1
  29. package/dist/esm/plugins/analytics/types/index.js +1 -1
  30. package/dist/esm/plugins/index.js +0 -1
  31. package/dist/esm/plugins/tasks-and-decisions/pm-plugins/commands.js +1 -1
  32. package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +7 -1
  33. package/dist/esm/utils/commands.js +1 -31
  34. package/dist/esm/utils/index.js +1 -2
  35. package/dist/esm/utils/mark.js +0 -42
  36. package/dist/esm/utils/selection.js +0 -4
  37. package/dist/esm/version-wrapper.js +1 -1
  38. package/dist/types/index.d.ts +0 -3
  39. package/dist/types/plugins/analytics/index.d.ts +1 -1
  40. package/dist/types/plugins/analytics/types/index.d.ts +1 -1
  41. package/dist/types/plugins/index.d.ts +0 -1
  42. package/dist/types/plugins/paste/index.d.ts +1 -1
  43. package/dist/types/plugins/text-color/ui/ToolbarTextColor/index.d.ts +1 -0
  44. package/dist/types/utils/commands.d.ts +1 -4
  45. package/dist/types/utils/index.d.ts +1 -2
  46. package/dist/types/utils/mark.d.ts +2 -12
  47. package/dist/types/utils/selection.d.ts +0 -2
  48. package/dist/types-ts4.5/index.d.ts +0 -3
  49. package/dist/types-ts4.5/plugins/analytics/index.d.ts +1 -1
  50. package/dist/types-ts4.5/plugins/analytics/types/index.d.ts +1 -1
  51. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  52. package/dist/types-ts4.5/plugins/paste/index.d.ts +1 -1
  53. package/dist/types-ts4.5/plugins/text-color/ui/ToolbarTextColor/index.d.ts +1 -0
  54. package/dist/types-ts4.5/utils/commands.d.ts +1 -4
  55. package/dist/types-ts4.5/utils/index.d.ts +1 -2
  56. package/dist/types-ts4.5/utils/mark.d.ts +2 -12
  57. package/dist/types-ts4.5/utils/selection.d.ts +0 -2
  58. package/package.json +3 -3
  59. package/report.api.md +0 -9
  60. package/tmp/api-report-tmp.d.ts +0 -9
  61. package/dist/cjs/plugins/list/actions/conversions.js +0 -153
  62. package/dist/cjs/plugins/list/actions/indent-list-items-selected.js +0 -125
  63. package/dist/cjs/plugins/list/actions/indent-list.js +0 -49
  64. package/dist/cjs/plugins/list/actions/join-list-items-forward.js +0 -59
  65. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/index.js +0 -40
  66. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +0 -88
  67. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +0 -85
  68. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +0 -79
  69. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.js +0 -45
  70. package/dist/cjs/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.js +0 -56
  71. package/dist/cjs/plugins/list/actions/merge-lists.js +0 -27
  72. package/dist/cjs/plugins/list/actions/outdent-list-items-selected.js +0 -291
  73. package/dist/cjs/plugins/list/actions/wrap-and-join-lists.js +0 -98
  74. package/dist/cjs/plugins/list/commands/indent-list.js +0 -71
  75. package/dist/cjs/plugins/list/commands/index.js +0 -348
  76. package/dist/cjs/plugins/list/commands/join-list-item-forward.js +0 -61
  77. package/dist/cjs/plugins/list/commands/listBackspace.js +0 -284
  78. package/dist/cjs/plugins/list/commands/outdent-list.js +0 -70
  79. package/dist/cjs/plugins/list/index.js +0 -133
  80. package/dist/cjs/plugins/list/messages.js +0 -37
  81. package/dist/cjs/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +0 -61
  82. package/dist/cjs/plugins/list/pm-plugins/input-rules/index.js +0 -36
  83. package/dist/cjs/plugins/list/pm-plugins/input-rules/wrapping-join-rule.js +0 -58
  84. package/dist/cjs/plugins/list/pm-plugins/keymap.js +0 -27
  85. package/dist/cjs/plugins/list/pm-plugins/main.js +0 -168
  86. package/dist/cjs/plugins/list/transforms.js +0 -100
  87. package/dist/cjs/plugins/list/types.js +0 -8
  88. package/dist/cjs/plugins/list/utils/analytics.js +0 -22
  89. package/dist/cjs/plugins/list/utils/find.js +0 -68
  90. package/dist/cjs/plugins/list/utils/indentation.js +0 -22
  91. package/dist/cjs/plugins/list/utils/node.js +0 -16
  92. package/dist/cjs/plugins/list/utils/selection.js +0 -95
  93. package/dist/cjs/utils/input-rules.js +0 -30
  94. package/dist/es2019/plugins/list/actions/conversions.js +0 -160
  95. package/dist/es2019/plugins/list/actions/indent-list-items-selected.js +0 -124
  96. package/dist/es2019/plugins/list/actions/indent-list.js +0 -44
  97. package/dist/es2019/plugins/list/actions/join-list-items-forward.js +0 -54
  98. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/index.js +0 -5
  99. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +0 -74
  100. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +0 -78
  101. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +0 -72
  102. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.js +0 -37
  103. package/dist/es2019/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.js +0 -48
  104. package/dist/es2019/plugins/list/actions/merge-lists.js +0 -24
  105. package/dist/es2019/plugins/list/actions/outdent-list-items-selected.js +0 -295
  106. package/dist/es2019/plugins/list/actions/wrap-and-join-lists.js +0 -91
  107. package/dist/es2019/plugins/list/commands/indent-list.js +0 -62
  108. package/dist/es2019/plugins/list/commands/index.js +0 -322
  109. package/dist/es2019/plugins/list/commands/join-list-item-forward.js +0 -53
  110. package/dist/es2019/plugins/list/commands/listBackspace.js +0 -276
  111. package/dist/es2019/plugins/list/commands/outdent-list.js +0 -60
  112. package/dist/es2019/plugins/list/index.js +0 -120
  113. package/dist/es2019/plugins/list/messages.js +0 -29
  114. package/dist/es2019/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +0 -55
  115. package/dist/es2019/plugins/list/pm-plugins/input-rules/index.js +0 -33
  116. package/dist/es2019/plugins/list/pm-plugins/input-rules/wrapping-join-rule.js +0 -52
  117. package/dist/es2019/plugins/list/pm-plugins/keymap.js +0 -19
  118. package/dist/es2019/plugins/list/pm-plugins/main.js +0 -159
  119. package/dist/es2019/plugins/list/transforms.js +0 -102
  120. package/dist/es2019/plugins/list/types.js +0 -1
  121. package/dist/es2019/plugins/list/utils/analytics.js +0 -12
  122. package/dist/es2019/plugins/list/utils/find.js +0 -61
  123. package/dist/es2019/plugins/list/utils/indentation.js +0 -16
  124. package/dist/es2019/plugins/list/utils/node.js +0 -12
  125. package/dist/es2019/plugins/list/utils/selection.js +0 -96
  126. package/dist/es2019/utils/input-rules.js +0 -20
  127. package/dist/esm/plugins/list/actions/conversions.js +0 -147
  128. package/dist/esm/plugins/list/actions/indent-list-items-selected.js +0 -117
  129. package/dist/esm/plugins/list/actions/indent-list.js +0 -43
  130. package/dist/esm/plugins/list/actions/join-list-items-forward.js +0 -52
  131. package/dist/esm/plugins/list/actions/join-list-items-scenarios/index.js +0 -5
  132. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +0 -81
  133. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +0 -79
  134. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +0 -73
  135. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.js +0 -38
  136. package/dist/esm/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.js +0 -49
  137. package/dist/esm/plugins/list/actions/merge-lists.js +0 -21
  138. package/dist/esm/plugins/list/actions/outdent-list-items-selected.js +0 -283
  139. package/dist/esm/plugins/list/actions/wrap-and-join-lists.js +0 -92
  140. package/dist/esm/plugins/list/commands/indent-list.js +0 -63
  141. package/dist/esm/plugins/list/commands/index.js +0 -320
  142. package/dist/esm/plugins/list/commands/join-list-item-forward.js +0 -53
  143. package/dist/esm/plugins/list/commands/listBackspace.js +0 -275
  144. package/dist/esm/plugins/list/commands/outdent-list.js +0 -62
  145. package/dist/esm/plugins/list/index.js +0 -127
  146. package/dist/esm/plugins/list/messages.js +0 -29
  147. package/dist/esm/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +0 -56
  148. package/dist/esm/plugins/list/pm-plugins/input-rules/index.js +0 -30
  149. package/dist/esm/plugins/list/pm-plugins/input-rules/wrapping-join-rule.js +0 -51
  150. package/dist/esm/plugins/list/pm-plugins/keymap.js +0 -19
  151. package/dist/esm/plugins/list/pm-plugins/main.js +0 -159
  152. package/dist/esm/plugins/list/transforms.js +0 -92
  153. package/dist/esm/plugins/list/types.js +0 -1
  154. package/dist/esm/plugins/list/utils/analytics.js +0 -12
  155. package/dist/esm/plugins/list/utils/find.js +0 -59
  156. package/dist/esm/plugins/list/utils/indentation.js +0 -16
  157. package/dist/esm/plugins/list/utils/node.js +0 -10
  158. package/dist/esm/plugins/list/utils/selection.js +0 -81
  159. package/dist/esm/utils/input-rules.js +0 -22
  160. package/dist/types/plugins/list/actions/conversions.d.ts +0 -6
  161. package/dist/types/plugins/list/actions/indent-list-items-selected.d.ts +0 -2
  162. package/dist/types/plugins/list/actions/indent-list.d.ts +0 -2
  163. package/dist/types/plugins/list/actions/join-list-items-forward.d.ts +0 -13
  164. package/dist/types/plugins/list/actions/join-list-items-scenarios/index.d.ts +0 -5
  165. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts +0 -9
  166. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.d.ts +0 -9
  167. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.d.ts +0 -9
  168. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts +0 -9
  169. package/dist/types/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.d.ts +0 -9
  170. package/dist/types/plugins/list/actions/merge-lists.d.ts +0 -7
  171. package/dist/types/plugins/list/actions/outdent-list-items-selected.d.ts +0 -3
  172. package/dist/types/plugins/list/actions/wrap-and-join-lists.d.ts +0 -15
  173. package/dist/types/plugins/list/commands/indent-list.d.ts +0 -6
  174. package/dist/types/plugins/list/commands/index.d.ts +0 -17
  175. package/dist/types/plugins/list/commands/join-list-item-forward.d.ts +0 -3
  176. package/dist/types/plugins/list/commands/listBackspace.d.ts +0 -10
  177. package/dist/types/plugins/list/commands/outdent-list.d.ts +0 -7
  178. package/dist/types/plugins/list/index.d.ts +0 -3
  179. package/dist/types/plugins/list/messages.d.ts +0 -27
  180. package/dist/types/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +0 -9
  181. package/dist/types/plugins/list/pm-plugins/input-rules/index.d.ts +0 -4
  182. package/dist/types/plugins/list/pm-plugins/input-rules/wrapping-join-rule.d.ts +0 -12
  183. package/dist/types/plugins/list/pm-plugins/keymap.d.ts +0 -5
  184. package/dist/types/plugins/list/pm-plugins/main.d.ts +0 -11
  185. package/dist/types/plugins/list/transforms.d.ts +0 -4
  186. package/dist/types/plugins/list/types.d.ts +0 -4
  187. package/dist/types/plugins/list/utils/analytics.d.ts +0 -5
  188. package/dist/types/plugins/list/utils/find.d.ts +0 -10
  189. package/dist/types/plugins/list/utils/indentation.d.ts +0 -2
  190. package/dist/types/plugins/list/utils/node.d.ts +0 -2
  191. package/dist/types/plugins/list/utils/selection.d.ts +0 -14
  192. package/dist/types/utils/input-rules.d.ts +0 -10
  193. package/dist/types-ts4.5/plugins/list/actions/conversions.d.ts +0 -6
  194. package/dist/types-ts4.5/plugins/list/actions/indent-list-items-selected.d.ts +0 -2
  195. package/dist/types-ts4.5/plugins/list/actions/indent-list.d.ts +0 -2
  196. package/dist/types-ts4.5/plugins/list/actions/join-list-items-forward.d.ts +0 -16
  197. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/index.d.ts +0 -5
  198. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts +0 -9
  199. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.d.ts +0 -9
  200. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.d.ts +0 -9
  201. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts +0 -9
  202. package/dist/types-ts4.5/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.d.ts +0 -9
  203. package/dist/types-ts4.5/plugins/list/actions/merge-lists.d.ts +0 -7
  204. package/dist/types-ts4.5/plugins/list/actions/outdent-list-items-selected.d.ts +0 -3
  205. package/dist/types-ts4.5/plugins/list/actions/wrap-and-join-lists.d.ts +0 -15
  206. package/dist/types-ts4.5/plugins/list/commands/indent-list.d.ts +0 -6
  207. package/dist/types-ts4.5/plugins/list/commands/index.d.ts +0 -17
  208. package/dist/types-ts4.5/plugins/list/commands/join-list-item-forward.d.ts +0 -3
  209. package/dist/types-ts4.5/plugins/list/commands/listBackspace.d.ts +0 -13
  210. package/dist/types-ts4.5/plugins/list/commands/outdent-list.d.ts +0 -7
  211. package/dist/types-ts4.5/plugins/list/index.d.ts +0 -3
  212. package/dist/types-ts4.5/plugins/list/messages.d.ts +0 -27
  213. package/dist/types-ts4.5/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +0 -9
  214. package/dist/types-ts4.5/plugins/list/pm-plugins/input-rules/index.d.ts +0 -4
  215. package/dist/types-ts4.5/plugins/list/pm-plugins/input-rules/wrapping-join-rule.d.ts +0 -12
  216. package/dist/types-ts4.5/plugins/list/pm-plugins/keymap.d.ts +0 -5
  217. package/dist/types-ts4.5/plugins/list/pm-plugins/main.d.ts +0 -11
  218. package/dist/types-ts4.5/plugins/list/transforms.d.ts +0 -4
  219. package/dist/types-ts4.5/plugins/list/types.d.ts +0 -4
  220. package/dist/types-ts4.5/plugins/list/utils/analytics.d.ts +0 -5
  221. package/dist/types-ts4.5/plugins/list/utils/find.d.ts +0 -10
  222. package/dist/types-ts4.5/plugins/list/utils/indentation.d.ts +0 -2
  223. package/dist/types-ts4.5/plugins/list/utils/node.d.ts +0 -2
  224. package/dist/types-ts4.5/plugins/list/utils/selection.d.ts +0 -14
  225. 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.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8e9c21af71d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e9c21af71d) - Extracting list plugin code from editor-core to @atlaskit/editor-plugin-list.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 187.28.5
14
+
15
+ ### Patch Changes
16
+
17
+ - [`5ce0bea6aa6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5ce0bea6aa6) - [ED-19399] Fixing text color underline on toolbar
18
+
3
19
  ## 187.28.3
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) {
@@ -181,7 +181,7 @@ var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
181
181
  // Not sure where the extra 2px comes from
182
182
  fitWidth = 242;
183
183
  }
184
- var selectedColor = pluginState.color !== pluginState.defaultColor && pluginState.color;
184
+ var selectedColor = this.getSelectedColor(pluginState);
185
185
  var _getSelectedRowAndCol = (0, _uiColor.getSelectedRowAndColumnFromPalette)(palette, pluginState.color),
186
186
  selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
187
187
  selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
@@ -246,6 +246,12 @@ var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
246
246
  css: _styles2.separatorStyles
247
247
  }));
248
248
  }
249
+ }, {
250
+ key: "getSelectedColor",
251
+ value: function getSelectedColor(pluginState) {
252
+ var selectedColor = pluginState.color !== pluginState.defaultColor && (pluginState.color ? (0, _editorPalette.hexToEditorTextPaletteColor)(pluginState.color) : pluginState.color);
253
+ return selectedColor;
254
+ }
249
255
  }, {
250
256
  key: "getCommonAnalyticsAttributes",
251
257
  value: function getCommonAnalyticsAttributes() {
@@ -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.3";
9
+ var version = "187.29.0";
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) => {
@@ -159,7 +159,7 @@ export class ToolbarTextColor extends React.Component {
159
159
  // Not sure where the extra 2px comes from
160
160
  fitWidth = 242;
161
161
  }
162
- const selectedColor = pluginState.color !== pluginState.defaultColor && pluginState.color;
162
+ const selectedColor = this.getSelectedColor(pluginState);
163
163
  const {
164
164
  selectedRowIndex,
165
165
  selectedColumnIndex
@@ -223,6 +223,10 @@ export class ToolbarTextColor extends React.Component {
223
223
  css: separatorStyles
224
224
  }));
225
225
  }
226
+ getSelectedColor(pluginState) {
227
+ const selectedColor = pluginState.color !== pluginState.defaultColor && (pluginState.color ? hexToEditorTextPaletteColor(pluginState.color) : pluginState.color);
228
+ return selectedColor;
229
+ }
226
230
  getCommonAnalyticsAttributes() {
227
231
  return {
228
232
  experiment: EXPERIMENT_NAME,
@@ -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.3";
2
+ export const version = "187.29.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
@@ -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) {
@@ -171,7 +171,7 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
171
171
  // Not sure where the extra 2px comes from
172
172
  fitWidth = 242;
173
173
  }
174
- var selectedColor = pluginState.color !== pluginState.defaultColor && pluginState.color;
174
+ var selectedColor = this.getSelectedColor(pluginState);
175
175
  var _getSelectedRowAndCol = getSelectedRowAndColumnFromPalette(palette, pluginState.color),
176
176
  selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
177
177
  selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
@@ -236,6 +236,12 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
236
236
  css: separatorStyles
237
237
  }));
238
238
  }
239
+ }, {
240
+ key: "getSelectedColor",
241
+ value: function getSelectedColor(pluginState) {
242
+ var selectedColor = pluginState.color !== pluginState.defaultColor && (pluginState.color ? hexToEditorTextPaletteColor(pluginState.color) : pluginState.color);
243
+ return selectedColor;
244
+ }
239
245
  }, {
240
246
  key: "getCommonAnalyticsAttributes",
241
247
  value: function getCommonAnalyticsAttributes() {