@atlaskit/editor-core 167.0.2 → 169.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/cjs/i18n/cs.js +1 -23
  3. package/dist/cjs/i18n/da.js +1 -23
  4. package/dist/cjs/i18n/de.js +1 -23
  5. package/dist/cjs/i18n/es.js +1 -23
  6. package/dist/cjs/i18n/et.js +1 -23
  7. package/dist/cjs/i18n/fr.js +1 -23
  8. package/dist/cjs/i18n/hu.js +1 -23
  9. package/dist/cjs/i18n/is.js +1 -23
  10. package/dist/cjs/i18n/it.js +1 -23
  11. package/dist/cjs/i18n/ko.js +1 -23
  12. package/dist/cjs/i18n/nb.js +1 -9
  13. package/dist/cjs/i18n/nl.js +0 -3
  14. package/dist/cjs/i18n/pl.js +0 -1
  15. package/dist/cjs/i18n/pt_BR.js +1 -8
  16. package/dist/cjs/i18n/pt_PT.js +1 -11
  17. package/dist/cjs/i18n/ro.js +1 -23
  18. package/dist/cjs/i18n/sk.js +1 -23
  19. package/dist/cjs/i18n/sv.js +0 -1
  20. package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -2
  21. package/dist/cjs/plugins/card/styles.js +1 -1
  22. package/dist/cjs/plugins/collab-edit/index.js +2 -2
  23. package/dist/cjs/plugins/collab-edit/provider/channel.js +2 -2
  24. package/dist/cjs/plugins/date/actions.js +1 -1
  25. package/dist/cjs/plugins/extension/context-panel.js +2 -2
  26. package/dist/cjs/plugins/extension/pm-plugins/main.js +2 -2
  27. package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +2 -2
  28. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
  29. package/dist/cjs/plugins/layout/styles.js +1 -1
  30. package/dist/cjs/plugins/list/styles.js +3 -1
  31. package/dist/cjs/plugins/macro/actions.js +2 -2
  32. package/dist/cjs/plugins/media/nodeviews/mediaInline.js +2 -2
  33. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +2 -2
  34. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +2 -2
  35. package/dist/cjs/plugins/paste/handlers.js +40 -14
  36. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +1 -1
  37. package/dist/cjs/plugins/paste/pm-plugins/main.js +17 -0
  38. package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
  39. package/dist/cjs/plugins/table/utils/paste.js +16 -3
  40. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +7 -0
  41. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
  42. package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +2 -2
  43. package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +2 -2
  44. package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +2 -2
  45. package/dist/cjs/ui/ConfigPanel/transformers.js +2 -2
  46. package/dist/cjs/version-wrapper.js +1 -1
  47. package/dist/cjs/version.json +1 -1
  48. package/dist/es2019/i18n/cs.js +1 -23
  49. package/dist/es2019/i18n/da.js +1 -23
  50. package/dist/es2019/i18n/de.js +1 -23
  51. package/dist/es2019/i18n/es.js +1 -23
  52. package/dist/es2019/i18n/et.js +1 -23
  53. package/dist/es2019/i18n/fr.js +1 -23
  54. package/dist/es2019/i18n/hu.js +1 -23
  55. package/dist/es2019/i18n/is.js +1 -23
  56. package/dist/es2019/i18n/it.js +1 -23
  57. package/dist/es2019/i18n/ko.js +1 -23
  58. package/dist/es2019/i18n/nb.js +1 -9
  59. package/dist/es2019/i18n/nl.js +0 -3
  60. package/dist/es2019/i18n/pl.js +0 -1
  61. package/dist/es2019/i18n/pt_BR.js +1 -8
  62. package/dist/es2019/i18n/pt_PT.js +1 -11
  63. package/dist/es2019/i18n/ro.js +1 -23
  64. package/dist/es2019/i18n/sk.js +1 -23
  65. package/dist/es2019/i18n/sv.js +0 -1
  66. package/dist/es2019/plugins/card/styles.js +3 -0
  67. package/dist/es2019/plugins/date/actions.js +1 -1
  68. package/dist/es2019/plugins/layout/styles.js +2 -1
  69. package/dist/es2019/plugins/list/styles.js +8 -0
  70. package/dist/es2019/plugins/paste/handlers.js +39 -12
  71. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
  72. package/dist/es2019/plugins/paste/pm-plugins/main.js +14 -0
  73. package/dist/es2019/plugins/table/ui/common-styles.js +2 -1
  74. package/dist/es2019/plugins/table/utils/paste.js +16 -3
  75. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +7 -0
  76. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +5 -2
  77. package/dist/es2019/version-wrapper.js +1 -1
  78. package/dist/es2019/version.json +1 -1
  79. package/dist/esm/actions/index.js +1 -1
  80. package/dist/esm/create-editor/ErrorBoundary.js +1 -1
  81. package/dist/esm/editor.js +2 -1
  82. package/dist/esm/i18n/cs.js +1 -23
  83. package/dist/esm/i18n/da.js +1 -23
  84. package/dist/esm/i18n/de.js +1 -23
  85. package/dist/esm/i18n/es.js +1 -23
  86. package/dist/esm/i18n/et.js +1 -23
  87. package/dist/esm/i18n/fr.js +1 -23
  88. package/dist/esm/i18n/hu.js +1 -23
  89. package/dist/esm/i18n/is.js +1 -23
  90. package/dist/esm/i18n/it.js +1 -23
  91. package/dist/esm/i18n/ko.js +1 -23
  92. package/dist/esm/i18n/nb.js +1 -9
  93. package/dist/esm/i18n/nl.js +0 -3
  94. package/dist/esm/i18n/pl.js +0 -1
  95. package/dist/esm/i18n/pt_BR.js +1 -8
  96. package/dist/esm/i18n/pt_PT.js +1 -11
  97. package/dist/esm/i18n/ro.js +1 -23
  98. package/dist/esm/i18n/sk.js +1 -23
  99. package/dist/esm/i18n/sv.js +0 -1
  100. package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +1 -1
  101. package/dist/esm/plugins/card/styles.js +1 -1
  102. package/dist/esm/plugins/collab-edit/index.js +1 -1
  103. package/dist/esm/plugins/collab-edit/provider/channel.js +1 -1
  104. package/dist/esm/plugins/custom-autoformat/doc.js +1 -1
  105. package/dist/esm/plugins/custom-autoformat/index.js +1 -1
  106. package/dist/esm/plugins/date/actions.js +1 -1
  107. package/dist/esm/plugins/extension/actions.js +1 -1
  108. package/dist/esm/plugins/extension/context-panel.js +1 -1
  109. package/dist/esm/plugins/extension/pm-plugins/main.js +1 -1
  110. package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +1 -1
  111. package/dist/esm/plugins/feedback-dialog/index.js +1 -1
  112. package/dist/esm/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +1 -1
  113. package/dist/esm/plugins/find-replace/utils/batch-decorations.js +1 -1
  114. package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
  115. package/dist/esm/plugins/hyperlink/HyperlinkToolbarAppearance.js +1 -1
  116. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
  117. package/dist/esm/plugins/image-upload/pm-plugins/main.js +1 -1
  118. package/dist/esm/plugins/layout/styles.js +1 -1
  119. package/dist/esm/plugins/list/styles.js +2 -1
  120. package/dist/esm/plugins/macro/actions.js +1 -1
  121. package/dist/esm/plugins/media/nodeviews/mediaGroup.js +1 -1
  122. package/dist/esm/plugins/media/nodeviews/mediaInline.js +2 -1
  123. package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +1 -1
  124. package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +1 -1
  125. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +1 -1
  126. package/dist/esm/plugins/media/picker-facade.js +1 -1
  127. package/dist/esm/plugins/media/pm-plugins/main.js +1 -1
  128. package/dist/esm/plugins/media/toolbar/utils.js +1 -1
  129. package/dist/esm/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -1
  130. package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +1 -1
  131. package/dist/esm/plugins/media/utils/check-media-type.js +1 -1
  132. package/dist/esm/plugins/paste/handlers.js +41 -14
  133. package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
  134. package/dist/esm/plugins/paste/pm-plugins/main.js +17 -1
  135. package/dist/esm/plugins/quick-insert/index.js +1 -1
  136. package/dist/esm/plugins/table/ui/common-styles.js +1 -1
  137. package/dist/esm/plugins/table/utils/paste.js +16 -3
  138. package/dist/esm/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +1 -1
  139. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +7 -0
  140. package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
  141. package/dist/esm/ui/ConfigPanel/ConfigPanel.js +1 -1
  142. package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +1 -1
  143. package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +1 -1
  144. package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -1
  145. package/dist/esm/ui/ConfigPanel/transformers.js +1 -1
  146. package/dist/esm/ui/LinkSearch/index.js +1 -1
  147. package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
  148. package/dist/esm/utils/action.js +1 -1
  149. package/dist/esm/utils/clipboard.js +1 -1
  150. package/dist/esm/utils/extensions.js +1 -1
  151. package/dist/esm/version-wrapper.js +1 -1
  152. package/dist/esm/version.json +1 -1
  153. package/dist/types/i18n/cs.d.ts +0 -22
  154. package/dist/types/i18n/da.d.ts +0 -22
  155. package/dist/types/i18n/de.d.ts +0 -22
  156. package/dist/types/i18n/es.d.ts +0 -22
  157. package/dist/types/i18n/et.d.ts +0 -22
  158. package/dist/types/i18n/fr.d.ts +0 -22
  159. package/dist/types/i18n/hu.d.ts +0 -22
  160. package/dist/types/i18n/is.d.ts +0 -22
  161. package/dist/types/i18n/it.d.ts +0 -22
  162. package/dist/types/i18n/ko.d.ts +0 -22
  163. package/dist/types/i18n/nb.d.ts +0 -8
  164. package/dist/types/i18n/nl.d.ts +0 -3
  165. package/dist/types/i18n/pl.d.ts +0 -1
  166. package/dist/types/i18n/pt_BR.d.ts +0 -7
  167. package/dist/types/i18n/pt_PT.d.ts +0 -10
  168. package/dist/types/i18n/ro.d.ts +0 -22
  169. package/dist/types/i18n/sk.d.ts +0 -22
  170. package/dist/types/i18n/sv.d.ts +0 -1
  171. package/dist/types/plugins/paste/handlers.d.ts +1 -1
  172. package/package.json +19 -19
  173. package/report.api.md +2698 -0
@@ -61,7 +61,7 @@ export var transformSliceToFixHardBreakProblemOnCopyFromCell = function transfor
61
61
  return slice;
62
62
  };
63
63
  export var transformSliceToRemoveOpenTable = function transformSliceToRemoveOpenTable(slice, schema) {
64
- var _slice$content$firstC;
64
+ var _slice$content$firstC6;
65
65
 
66
66
  // we're removing the table, tableRow and tableCell reducing the open depth by 3
67
67
  var depthDecrement = 3; // Case 1: A slice entirely within a single CELL
@@ -69,13 +69,26 @@ export var transformSliceToRemoveOpenTable = function transformSliceToRemoveOpen
69
69
  if ( // starts and ends inside of a cell
70
70
  slice.openStart >= 4 && slice.openEnd >= 4 && // slice is a table node
71
71
  slice.content.childCount === 1 && slice.content.firstChild.type === schema.nodes.table) {
72
- return new Slice(flatmap(slice.content, unwrapContentFromTable), slice.openStart - depthDecrement, slice.openEnd - depthDecrement);
72
+ var _slice$content$firstC, _slice$content$firstC2, _slice$content$firstC3, _slice$content$firstC4, _slice$content$firstC5;
73
+
74
+ // prosemirror-view has a bug that it duplicates table entry when selecting multiple paragraphs in a table cell.
75
+ // https://github.com/ProseMirror/prosemirror/issues/1270
76
+ // The structure becomes
77
+ // table(genuine) > tableRow(genuine) > table(duplicated) > tableRow(duplicated) > tableCell/tableHeader(genuine) > contents(genuine)
78
+ // As we are removing wrapping table anyway, we keep duplicated table and tableRow for simplicity
79
+ var cleaned = slice;
80
+
81
+ if (((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : (_slice$content$firstC2 = _slice$content$firstC.content) === null || _slice$content$firstC2 === void 0 ? void 0 : (_slice$content$firstC3 = _slice$content$firstC2.firstChild) === null || _slice$content$firstC3 === void 0 ? void 0 : (_slice$content$firstC4 = _slice$content$firstC3.content) === null || _slice$content$firstC4 === void 0 ? void 0 : (_slice$content$firstC5 = _slice$content$firstC4.firstChild) === null || _slice$content$firstC5 === void 0 ? void 0 : _slice$content$firstC5.type) === schema.nodes.table) {
82
+ cleaned = new Slice(slice.content.firstChild.content.firstChild.content, slice.openStart - 2, slice.openEnd - 2);
83
+ }
84
+
85
+ return new Slice(flatmap(cleaned.content, unwrapContentFromTable), cleaned.openStart - depthDecrement, cleaned.openEnd - depthDecrement);
73
86
  } // Case 2: A slice starting within a CELL and ending outside the table
74
87
 
75
88
 
76
89
  if ( // starts inside of a cell but ends outside of the starting table
77
90
  slice.openStart >= 4 && // slice starts from a table node (and spans across more than one node)
78
- slice.content.childCount > 1 && ((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === schema.nodes.table) {
91
+ slice.content.childCount > 1 && ((_slice$content$firstC6 = slice.content.firstChild) === null || _slice$content$firstC6 === void 0 ? void 0 : _slice$content$firstC6.type) === schema.nodes.table) {
79
92
  // repoint the slice's cutting depth so that cell content where the slice starts
80
93
  // does not get lifted out of the cell on paste
81
94
  return new Slice(slice.content, 1, slice.openEnd);
@@ -1,6 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- import _regeneratorRuntime from "@babel/runtime/regenerator";
4
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
5
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -10,6 +9,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
10
9
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
11
10
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
12
11
  var _excluded = ["contextIdentifierProvider"];
12
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
13
13
 
14
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
15
15
 
@@ -103,6 +103,13 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
103
103
  break;
104
104
 
105
105
  case 'Enter':
106
+ // ED-14758 - Under the W3C specification, any keycode sent under IME would return a keycode 229
107
+ // event.isComposing can't be used alone as this also included a virtual keyboard under a keyboardless device, therefore, it seems the best practice would be intercepting the event as below.
108
+ // Some suggested the other workaround maybe listen on`keypress` instead of `keydown`
109
+ if (event.isComposing && (event.which === 229 || event.keyCode === 229)) {
110
+ break;
111
+ }
112
+
106
113
  onItemSelect(event.shiftKey ? SelectItemMode.SHIFT_ENTER : SelectItemMode.ENTER);
107
114
  break;
108
115
 
@@ -11,7 +11,7 @@ import { N30 } from '@atlaskit/theme/colors';
11
11
  import { token } from '@atlaskit/tokens';
12
12
  import { akEditorToolbarKeylineHeight, akEditorGridLineZIndex, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
13
13
  export var TableControlsPadding = 20;
14
- var mainToolbarWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div > *:first-child {\n margin-left: 0;\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), gridSize(), gridSize(), token('elevation.surface', 'white'), TableControlsPadding);
14
+ var mainToolbarWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div {\n > :first-child:not(style),\n > style:first-child + * {\n margin-left: 0;\n }\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), gridSize(), gridSize(), token('elevation.surface', 'white'), TableControlsPadding);
15
15
  var stickyToolbarWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* stylelint-disable declaration-block-no-duplicate-properties */\n position: relative;\n position: sticky;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n padding-bottom: ", "px;\n z-index: ", ";\n transition: box-shadow ease-in-out 0.2s;\n &.show-keyline {\n box-shadow: 0 ", "px 0 0\n ", ";\n }\n"])), gridSize(), akEditorGridLineZIndex + akEditorMenuZIndex, akEditorToolbarKeylineHeight, token('color.border', N30));
16
16
 
17
17
  var StickyToolbar = function StickyToolbar(props) {
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -8,6 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
9
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
10
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
11
11
 
12
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
13
 
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  import React, { useEffect, useState } from 'react';
6
6
  import { injectIntl } from 'react-intl-next';
7
7
  import { messages } from '../messages';
@@ -1,9 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
6
5
  var _excluded = ["value"];
6
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
7
7
 
8
8
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
9
9
 
@@ -1,4 +1,3 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -7,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
 
@@ -1,5 +1,4 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
3
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
5
4
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
@@ -11,6 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
11
10
 
12
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13
12
 
13
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
14
14
  import { isFieldset, isDateRange, isTabGroup, isTabField, isExpand, getFieldSerializer, getFieldDeserializer } from '@atlaskit/editor-common/extensions';
15
15
  import { getNameFromDuplicateField, isDuplicateField } from './utils';
16
16
 
@@ -1,4 +1,3 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -7,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
 
@@ -1,4 +1,3 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -7,6 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  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; }
12
12
 
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { Selection } from 'prosemirror-state';
4
4
  import { pluginKey as extensionPluginKey } from '../plugins/extension/plugin-key';
5
5
  import { forceAutoSave } from '../plugins/extension/commands';
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  export function checkClipboardTypes(type, item) {
4
4
  var isDOMStringList = function isDOMStringList(t) {
5
5
  return !t.indexOf && !!t.contains;
@@ -1,5 +1,5 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import React from 'react';
4
4
  import Loadable from 'react-loadable';
5
5
  import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-common/extensions';
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "167.0.2";
2
+ export var version = "169.0.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "167.0.2",
3
+ "version": "169.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -158,28 +158,6 @@ declare const _default: {
158
158
  'fabric.editor.warningPanel.description': string;
159
159
  'fabric.editor.wrapLeft': string;
160
160
  'fabric.editor.wrapRight': string;
161
- 'fabric.theme.blue': string;
162
- 'fabric.theme.dark-blue': string;
163
- 'fabric.theme.dark-green': string;
164
- 'fabric.theme.dark-purple': string;
165
- 'fabric.theme.dark-red': string;
166
- 'fabric.theme.dark-teal': string;
167
- 'fabric.theme.dark-yellow': string;
168
- 'fabric.theme.gray': string;
169
- 'fabric.theme.green': string;
170
- 'fabric.theme.light-blue': string;
171
- 'fabric.theme.light-gray': string;
172
- 'fabric.theme.light-green': string;
173
- 'fabric.theme.light-purple': string;
174
- 'fabric.theme.light-red': string;
175
- 'fabric.theme.light-teal': string;
176
- 'fabric.theme.light-yellow': string;
177
- 'fabric.theme.orange': string;
178
- 'fabric.theme.purple': string;
179
- 'fabric.theme.red': string;
180
- 'fabric.theme.teal': string;
181
- 'fabric.theme.white': string;
182
- 'fabric.theme.yellow': string;
183
161
  };
184
162
  /**
185
163
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -143,28 +143,6 @@ declare const _default: {
143
143
  'fabric.editor.bold': string;
144
144
  'fabric.editor.italic': string;
145
145
  'fabric.editor.selected': string;
146
- 'fabric.theme.white': string;
147
- 'fabric.theme.light-blue': string;
148
- 'fabric.theme.light-teal': string;
149
- 'fabric.theme.light-green': string;
150
- 'fabric.theme.light-yellow': string;
151
- 'fabric.theme.light-red': string;
152
- 'fabric.theme.light-purple': string;
153
- 'fabric.theme.light-gray': string;
154
- 'fabric.theme.blue': string;
155
- 'fabric.theme.teal': string;
156
- 'fabric.theme.green': string;
157
- 'fabric.theme.yellow': string;
158
- 'fabric.theme.red': string;
159
- 'fabric.theme.orange': string;
160
- 'fabric.theme.purple': string;
161
- 'fabric.theme.gray': string;
162
- 'fabric.theme.dark-blue': string;
163
- 'fabric.theme.dark-teal': string;
164
- 'fabric.theme.dark-green': string;
165
- 'fabric.theme.dark-yellow': string;
166
- 'fabric.theme.dark-red': string;
167
- 'fabric.theme.dark-purple': string;
168
146
  };
169
147
  /**
170
148
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,20 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
290
  'fabric.theme.dark-blue': string;
292
291
  'fabric.theme.dark-green': string;
293
292
  'fabric.theme.dark-purple': string;
294
293
  'fabric.theme.dark-red': string;
295
294
  'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
295
  'fabric.theme.light-green': string;
302
296
  'fabric.theme.light-purple': string;
303
297
  'fabric.theme.light-red': string;
304
298
  'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
299
  'fabric.theme.orange': string;
307
300
  'fabric.theme.purple': string;
308
301
  'fabric.theme.red': string;
309
302
  'fabric.theme.teal': string;
310
303
  'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
304
  };
313
305
  /**
314
306
  * NOTE:
@@ -305,9 +305,6 @@ declare const _default: {
305
305
  'fabric.theme.light-yellow': string;
306
306
  'fabric.theme.orange': string;
307
307
  'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
308
  'fabric.theme.yellow': string;
312
309
  };
313
310
  /**
@@ -306,7 +306,6 @@ declare const _default: {
306
306
  'fabric.theme.orange': string;
307
307
  'fabric.theme.purple': string;
308
308
  'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
309
  'fabric.theme.white': string;
311
310
  'fabric.theme.yellow': string;
312
311
  };
@@ -287,28 +287,21 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
290
  'fabric.theme.dark-blue': string;
292
291
  'fabric.theme.dark-green': string;
293
292
  'fabric.theme.dark-purple': string;
294
293
  'fabric.theme.dark-red': string;
295
294
  'fabric.theme.dark-teal': string;
296
295
  'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
296
  'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
297
  'fabric.theme.light-green': string;
302
298
  'fabric.theme.light-purple': string;
303
299
  'fabric.theme.light-red': string;
304
300
  'fabric.theme.light-teal': string;
305
301
  'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
302
  'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
303
  'fabric.theme.teal': string;
310
304
  'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
305
  };
313
306
  /**
314
307
  * NOTE:
@@ -158,28 +158,18 @@ declare const _default: {
158
158
  'fabric.editor.warningPanel.description': string;
159
159
  'fabric.editor.wrapLeft': string;
160
160
  'fabric.editor.wrapRight': string;
161
- 'fabric.theme.blue': string;
162
161
  'fabric.theme.dark-blue': string;
163
162
  'fabric.theme.dark-green': string;
164
163
  'fabric.theme.dark-purple': string;
165
164
  'fabric.theme.dark-red': string;
166
165
  'fabric.theme.dark-teal': string;
167
166
  'fabric.theme.dark-yellow': string;
168
- 'fabric.theme.gray': string;
169
- 'fabric.theme.green': string;
170
- 'fabric.theme.light-blue': string;
171
- 'fabric.theme.light-gray': string;
172
167
  'fabric.theme.light-green': string;
173
168
  'fabric.theme.light-purple': string;
174
169
  'fabric.theme.light-red': string;
175
170
  'fabric.theme.light-teal': string;
176
171
  'fabric.theme.light-yellow': string;
177
- 'fabric.theme.orange': string;
178
- 'fabric.theme.purple': string;
179
- 'fabric.theme.red': string;
180
- 'fabric.theme.teal': string;
181
172
  'fabric.theme.white': string;
182
- 'fabric.theme.yellow': string;
183
173
  };
184
174
  /**
185
175
  * NOTE: