@atlaskit/editor-common 78.11.4 → 78.11.5

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 (214) hide show
  1. package/.eslintrc.js +8 -0
  2. package/CHANGELOG.md +8 -0
  3. package/afm-cc/tsconfig.json +3 -0
  4. package/dist/cjs/__tests_external__/page-objects/Editor.js +1 -1
  5. package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  6. package/dist/cjs/__tests_external__/page-objects/Renderer.js +1 -1
  7. package/dist/cjs/analytics/types/enums.js +1 -0
  8. package/dist/cjs/analytics/types/table-events.js +1 -0
  9. package/dist/cjs/annotation/index.js +1 -1
  10. package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
  11. package/dist/cjs/card/index.js +2 -2
  12. package/dist/cjs/clipboard/index.js +2 -2
  13. package/dist/cjs/collab/index.js +6 -3
  14. package/dist/cjs/element-browser/ElementBrowser.js +3 -3
  15. package/dist/cjs/element-browser/components/CategoryList.js +2 -2
  16. package/dist/cjs/element-browser/components/ElementBrowserLoader.js +2 -2
  17. package/dist/cjs/element-browser/components/ElementList/ElementList.js +92 -15
  18. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +6 -5
  19. package/dist/cjs/element-browser/components/ElementSearch.js +5 -6
  20. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
  21. package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
  22. package/dist/cjs/extensibility/Extension/Extension/index.js +2 -2
  23. package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -3
  24. package/dist/cjs/extensibility/Extension/Lozenge.js +1 -1
  25. package/dist/cjs/extensibility/Extension/styles.js +1 -1
  26. package/dist/cjs/extensibility/Extension.js +3 -3
  27. package/dist/cjs/extensibility/ExtensionComponent.js +3 -4
  28. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -2
  29. package/dist/cjs/extensibility/extensionNodeView.js +1 -1
  30. package/dist/cjs/extensibility/index.js +2 -2
  31. package/dist/cjs/icons/index.js +2 -2
  32. package/dist/cjs/keymaps/index.js +2 -2
  33. package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
  34. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -4
  35. package/dist/cjs/link/LinkSearch/LinkSearchList.js +15 -7
  36. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -4
  37. package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -6
  38. package/dist/cjs/link/LinkSearch/index.js +1 -2
  39. package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
  40. package/dist/cjs/link/index.js +2 -2
  41. package/dist/cjs/monitoring/error.js +3 -3
  42. package/dist/cjs/preset/editor-commands.js +1 -1
  43. package/dist/cjs/provider-factory/with-providers.js +1 -1
  44. package/dist/cjs/quick-insert/assets/index.js +2 -2
  45. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -0
  46. package/dist/cjs/resizer/Resizer.js +8 -11
  47. package/dist/cjs/safe-plugin/index.js +1 -1
  48. package/dist/cjs/selection/gap-cursor/selection.js +1 -1
  49. package/dist/cjs/selection/gap-cursor/styles.js +1 -1
  50. package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  51. package/dist/cjs/styles/shared/embedCard.js +19 -5
  52. package/dist/cjs/styles/shared/grid.js +28 -4
  53. package/dist/cjs/styles/shared/indentation.js +1 -0
  54. package/dist/cjs/styles/shared/panel.js +1 -1
  55. package/dist/cjs/styles/shared/resizer.js +3 -3
  56. package/dist/cjs/styles/shared/shadow.js +32 -3
  57. package/dist/cjs/ui/Announcer/announcer.js +4 -2
  58. package/dist/cjs/ui/BaseTheme/index.js +2 -2
  59. package/dist/cjs/ui/Caption/index.js +1 -1
  60. package/dist/cjs/ui/ContextPanel/context.js +1 -1
  61. package/dist/cjs/ui/DropList/index.js +2 -2
  62. package/dist/cjs/ui/Emoji/index.js +3 -3
  63. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  64. package/dist/cjs/ui/Expand/index.js +3 -3
  65. package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
  66. package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +2 -2
  67. package/dist/cjs/ui/Layer/index.js +3 -4
  68. package/dist/cjs/ui/Mention/index.js +3 -3
  69. package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
  70. package/dist/cjs/ui/Mention/mention-with-providers.js +3 -3
  71. package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -2
  72. package/dist/cjs/ui/OverflowShadow/index.js +1 -1
  73. package/dist/cjs/ui/PanelTextInput/index.js +1 -1
  74. package/dist/cjs/ui/Popup/index.js +1 -1
  75. package/dist/cjs/ui/PortalProvider/index.js +1 -1
  76. package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
  77. package/dist/cjs/ui/UnsupportedBlock/index.js +3 -3
  78. package/dist/cjs/ui/UnsupportedInline/index.js +18 -5
  79. package/dist/cjs/ui/WidthProvider/index.js +2 -2
  80. package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -1
  81. package/dist/cjs/ui/index.js +2 -2
  82. package/dist/cjs/ui/with-outer-listeners.js +3 -3
  83. package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -3
  84. package/dist/cjs/ui-color/ColorPalette/Color/styles.js +21 -5
  85. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -2
  86. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
  87. package/dist/cjs/ui-menu/ColorPickerButton/index.js +35 -7
  88. package/dist/cjs/ui-menu/Dropdown/index.js +3 -3
  89. package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -2
  90. package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -4
  91. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -2
  92. package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
  93. package/dist/cjs/ui-menu/index.js +2 -2
  94. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +3 -3
  95. package/dist/cjs/utils/imageLoader.js +3 -3
  96. package/dist/cjs/with-plugin-state/index.js +1 -1
  97. package/dist/es2019/analytics/types/enums.js +1 -0
  98. package/dist/es2019/analytics/types/table-events.js +1 -0
  99. package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -0
  100. package/dist/es2019/collab/index.js +6 -1
  101. package/dist/es2019/element-browser/components/ElementList/ElementList.js +83 -94
  102. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +6 -5
  103. package/dist/es2019/element-browser/components/ElementSearch.js +3 -4
  104. package/dist/es2019/extensibility/Extension/Extension/styles.js +4 -4
  105. package/dist/es2019/extensibility/Extension/styles.js +1 -1
  106. package/dist/es2019/extensibility/ExtensionComponent.js +0 -1
  107. package/dist/es2019/extensions/types/field-definitions.js +1 -0
  108. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  109. package/dist/es2019/link/LinkSearch/LinkSearchList.js +14 -14
  110. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -1
  111. package/dist/es2019/link/LinkSearch/ToolbarComponents.js +17 -18
  112. package/dist/es2019/link/LinkSearch/index.js +0 -1
  113. package/dist/es2019/monitoring/error.js +1 -1
  114. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -0
  115. package/dist/es2019/resizer/Resizer.js +2 -3
  116. package/dist/es2019/selection/gap-cursor/styles.js +2 -2
  117. package/dist/es2019/styles/shared/embedCard.js +17 -21
  118. package/dist/es2019/styles/shared/grid.js +27 -31
  119. package/dist/es2019/styles/shared/indentation.js +2 -0
  120. package/dist/es2019/styles/shared/panel.js +1 -1
  121. package/dist/es2019/styles/shared/resizer.js +6 -3
  122. package/dist/es2019/styles/shared/shadow.js +36 -65
  123. package/dist/es2019/ui/Announcer/announcer.js +2 -0
  124. package/dist/es2019/ui/ContextPanel/context.js +1 -0
  125. package/dist/es2019/ui/DropList/index.js +1 -1
  126. package/dist/es2019/ui/Expand/index.js +3 -4
  127. package/dist/es2019/ui/Layer/index.js +0 -1
  128. package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -3
  129. package/dist/es2019/ui/UnsupportedBlock/index.js +2 -2
  130. package/dist/es2019/ui/UnsupportedInline/index.js +15 -15
  131. package/dist/es2019/ui-color/ColorPalette/Color/styles.js +20 -24
  132. package/dist/es2019/ui-menu/ColorPickerButton/index.js +34 -35
  133. package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -1
  134. package/dist/es2019/utils/dom.js +1 -0
  135. package/dist/es2019/with-plugin-state/index.js +1 -0
  136. package/dist/esm/__tests_external__/page-objects/Editor.js +1 -1
  137. package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  138. package/dist/esm/__tests_external__/page-objects/Renderer.js +1 -1
  139. package/dist/esm/analytics/types/enums.js +1 -0
  140. package/dist/esm/analytics/types/table-events.js +1 -0
  141. package/dist/esm/annotation/index.js +1 -1
  142. package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -0
  143. package/dist/esm/collab/index.js +6 -1
  144. package/dist/esm/element-browser/ElementBrowser.js +1 -1
  145. package/dist/esm/element-browser/components/ElementList/ElementList.js +90 -13
  146. package/dist/esm/element-browser/components/ElementList/EmptyState.js +6 -5
  147. package/dist/esm/element-browser/components/ElementSearch.js +3 -4
  148. package/dist/esm/extensibility/Extension/Extension/styles.js +4 -4
  149. package/dist/esm/extensibility/Extension/Lozenge.js +1 -1
  150. package/dist/esm/extensibility/Extension/styles.js +1 -1
  151. package/dist/esm/extensibility/Extension.js +1 -1
  152. package/dist/esm/extensibility/ExtensionComponent.js +1 -2
  153. package/dist/esm/extensibility/extensionNodeView.js +1 -1
  154. package/dist/esm/extensions/types/field-definitions.js +1 -0
  155. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
  156. package/dist/esm/link/LinkSearch/LinkSearchList.js +15 -6
  157. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +3 -2
  158. package/dist/esm/link/LinkSearch/ToolbarComponents.js +17 -5
  159. package/dist/esm/link/LinkSearch/index.js +1 -2
  160. package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
  161. package/dist/esm/monitoring/error.js +1 -1
  162. package/dist/esm/preset/editor-commands.js +1 -1
  163. package/dist/esm/provider-factory/with-providers.js +1 -1
  164. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -0
  165. package/dist/esm/resizer/Resizer.js +2 -5
  166. package/dist/esm/safe-plugin/index.js +1 -1
  167. package/dist/esm/selection/gap-cursor/selection.js +1 -1
  168. package/dist/esm/selection/gap-cursor/styles.js +1 -1
  169. package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  170. package/dist/esm/styles/shared/embedCard.js +19 -4
  171. package/dist/esm/styles/shared/grid.js +28 -3
  172. package/dist/esm/styles/shared/indentation.js +2 -0
  173. package/dist/esm/styles/shared/panel.js +1 -1
  174. package/dist/esm/styles/shared/resizer.js +2 -2
  175. package/dist/esm/styles/shared/shadow.js +32 -3
  176. package/dist/esm/ui/Announcer/announcer.js +2 -0
  177. package/dist/esm/ui/Caption/index.js +1 -1
  178. package/dist/esm/ui/ContextPanel/context.js +2 -1
  179. package/dist/esm/ui/DropList/index.js +2 -2
  180. package/dist/esm/ui/Emoji/index.js +1 -1
  181. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  182. package/dist/esm/ui/Expand/index.js +2 -2
  183. package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
  184. package/dist/esm/ui/Layer/index.js +1 -2
  185. package/dist/esm/ui/Mention/index.js +1 -1
  186. package/dist/esm/ui/Mention/mention-with-providers.js +1 -1
  187. package/dist/esm/ui/MultiBodiedExtension/index.js +1 -3
  188. package/dist/esm/ui/OverflowShadow/index.js +1 -1
  189. package/dist/esm/ui/PanelTextInput/index.js +1 -1
  190. package/dist/esm/ui/Popup/index.js +1 -1
  191. package/dist/esm/ui/PortalProvider/index.js +1 -1
  192. package/dist/esm/ui/ResizerLegacy/index.js +1 -1
  193. package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
  194. package/dist/esm/ui/UnsupportedInline/index.js +15 -3
  195. package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
  196. package/dist/esm/ui/with-outer-listeners.js +1 -1
  197. package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
  198. package/dist/esm/ui-color/ColorPalette/Color/styles.js +21 -5
  199. package/dist/esm/ui-menu/ColorPickerButton/index.js +34 -7
  200. package/dist/esm/ui-menu/Dropdown/index.js +1 -1
  201. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -2
  202. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  203. package/dist/esm/utils/dom.js +1 -0
  204. package/dist/esm/utils/imageLoader.js +1 -1
  205. package/dist/esm/with-plugin-state/index.js +1 -1
  206. package/dist/types/analytics/types/enums.d.ts +2 -1
  207. package/dist/types/analytics/types/table-events.d.ts +10 -1
  208. package/dist/types/styles/shared/resizer.d.ts +1 -0
  209. package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
  210. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  211. package/dist/types-ts4.5/analytics/types/table-events.d.ts +10 -1
  212. package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
  213. package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
  214. package/package.json +2 -1
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  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); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React, { PureComponent } from 'react';
12
12
  import { withReactEditorViewOuterListeners } from '../../ui-react';
13
13
  import DropdownList from '../../ui/DropList';
@@ -15,7 +15,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  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); }; }
18
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
18
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
19
  /** @jsx jsx */
20
20
 
21
21
  import React, { PureComponent, useContext } from 'react';
@@ -44,7 +44,6 @@ var buttonStyles = function buttonStyles(isActive, submenuActive) {
44
44
  return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n > span:hover[aria-disabled='false'] {\n color: ", ";\n background-color: ", ";\n }\n ", "\n > span[aria-disabled='true'] {\n color: ", ";\n }\n :focus > span[aria-disabled='false'] {\n ", ";\n }\n :focus-visible,\n :focus-visible > span[aria-disabled='false'] {\n outline: none;\n }\n "])), "var(--ds-text, ".concat(N900, ")"), "var(--ds-background-neutral-subtle-hovered, rgb(244, 245, 247))", !submenuActive && "\n > span:active[aria-disabled='false'] {\n background-color: ".concat("var(--ds-background-neutral-subtle-pressed, rgb(179, 212, 255))", ";\n }"), "var(--ds-text-disabled, ".concat(N70, ")"), focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
45
45
  }
46
46
  };
47
-
48
47
  var DropListWithOutsideListeners = withReactEditorViewOuterListeners(DropList);
49
48
 
50
49
  /**
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  var _excluded = ["handleClickOutside", "handleEnterKeydown", "handleEscapeKeydown", "closeOnTab"];
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
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  import React, { PureComponent, useEffect, useState } from 'react';
14
14
  import ReactDOM from 'react-dom';
15
15
  import ReactEditorViewContext from './ReactEditorViewContext';
@@ -94,6 +94,7 @@ export function closestElement(node, s) {
94
94
  */
95
95
  // At time of writting prettier would strip the extend here.
96
96
  // prettier-ignore
97
+
97
98
  export function parsePx(pxStr) {
98
99
  if (!pxStr.endsWith('px')) {
99
100
  return undefined;
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  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); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React, { Component } from 'react';
12
12
  export var withImageLoader = function withImageLoader(Wrapped) {
13
13
  return /*#__PURE__*/function (_Component) {
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
10
  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); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React from 'react';
13
13
  import PropTypes from 'prop-types';
14
14
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
@@ -169,7 +169,8 @@ export declare enum INPUT_METHOD {
169
169
  TOOLBAR = "toolbar",
170
170
  TYPEAHEAD = "typeAhead",
171
171
  DATASOURCE = "datasource_config",
172
- TABLE_CONTEXT_MENU = "tableContextMenu"
172
+ TABLE_CONTEXT_MENU = "tableContextMenu",
173
+ MOUSE = "mouse"
173
174
  }
174
175
  export declare enum TRIGGER_METHOD {
175
176
  BUTTON = "button",
@@ -25,6 +25,7 @@ export declare enum TABLE_ACTION {
25
25
  FIXED = "fixed",
26
26
  RESIZED = "resized",
27
27
  RESIZE_PERF_SAMPLING = "resizePerfSampling",
28
+ COLUMN_RESIZED = "columnResized",
28
29
  OVERFLOW_CHANGED = "overflowChanged",
29
30
  INITIAL_OVERFLOW_CAPTURED = "initialOverflowCaptured",
30
31
  MOVED_ROW = "movedRow",
@@ -82,6 +83,13 @@ type ResizedInfo = {
82
83
  totalTableWidth: number | null;
83
84
  nodeSize: number;
84
85
  } & TotalRowAndColCount;
86
+ type ColumnResizedInfo = {
87
+ colIndex?: number;
88
+ resizedDelta: number;
89
+ isLastColumn: boolean;
90
+ tableWidth: number | null;
91
+ inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.SHORTCUT;
92
+ } & TotalRowAndColCount;
85
93
  type ResizePreviewInfo = {
86
94
  frameRate: number;
87
95
  isInitialSample: boolean;
@@ -150,6 +158,7 @@ type TableOverflowChangedAEP = TableAEP<TABLE_ACTION.OVERFLOW_CHANGED, {
150
158
  type TableInitialOverflowCapturedAEP = TableAEP<TABLE_ACTION.INITIAL_OVERFLOW_CAPTURED, OverflowStateInfo, undefined>;
151
159
  type TableResizedAEP = TableAEP<TABLE_ACTION.RESIZED, ResizedInfo, undefined>;
152
160
  type TableResizePerfSamplingAEP = OperationalAEP<TABLE_ACTION.RESIZE_PERF_SAMPLING, ACTION_SUBJECT.TABLE, undefined, ResizePreviewInfo>;
161
+ type TableColumnResizedAEP = TableAEP<TABLE_ACTION.COLUMN_RESIZED, ColumnResizedInfo, undefined>;
153
162
  type TableRowOrColumnMovedAEP = TableAEP<TABLE_ACTION.ROW_OR_COLUMN_MOVED, {
154
163
  type: 'row' | 'column';
155
164
  }, undefined>;
@@ -159,5 +168,5 @@ type TableMovedRowOrColumnAEP = TableAEP<TABLE_ACTION.MOVED_ROW | TABLE_ACTION.M
159
168
  distance: number;
160
169
  status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
161
170
  } & TotalRowAndColCount, undefined>;
162
- export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP;
171
+ export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableColumnResizedAEP;
163
172
  export {};
@@ -1,5 +1,6 @@
1
1
  export declare const resizerItemClassName = "resizer-item";
2
2
  export declare const resizerHoverZoneClassName = "resizer-hover-zone";
3
+ export declare const resizerExtendedZone = "resizer-is-extended";
3
4
  export declare const resizerHandleClassName = "resizer-handle";
4
5
  export declare const resizerHandleTrackClassName: string;
5
6
  export declare const resizerHandleThumbClassName: string;
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { WrappedComponentProps } from 'react-intl-next';
4
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
- import { UnsupportedContentTooltipPayload } from '../../utils';
3
+ import type { WrappedComponentProps } from 'react-intl-next';
4
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
+ import type { UnsupportedContentTooltipPayload } from '../../utils';
6
6
  export interface Props {
7
7
  node?: PMNode;
8
8
  children?: React.ReactNode;
@@ -169,7 +169,8 @@ export declare enum INPUT_METHOD {
169
169
  TOOLBAR = "toolbar",
170
170
  TYPEAHEAD = "typeAhead",
171
171
  DATASOURCE = "datasource_config",
172
- TABLE_CONTEXT_MENU = "tableContextMenu"
172
+ TABLE_CONTEXT_MENU = "tableContextMenu",
173
+ MOUSE = "mouse"
173
174
  }
174
175
  export declare enum TRIGGER_METHOD {
175
176
  BUTTON = "button",
@@ -25,6 +25,7 @@ export declare enum TABLE_ACTION {
25
25
  FIXED = "fixed",
26
26
  RESIZED = "resized",
27
27
  RESIZE_PERF_SAMPLING = "resizePerfSampling",
28
+ COLUMN_RESIZED = "columnResized",
28
29
  OVERFLOW_CHANGED = "overflowChanged",
29
30
  INITIAL_OVERFLOW_CAPTURED = "initialOverflowCaptured",
30
31
  MOVED_ROW = "movedRow",
@@ -82,6 +83,13 @@ type ResizedInfo = {
82
83
  totalTableWidth: number | null;
83
84
  nodeSize: number;
84
85
  } & TotalRowAndColCount;
86
+ type ColumnResizedInfo = {
87
+ colIndex?: number;
88
+ resizedDelta: number;
89
+ isLastColumn: boolean;
90
+ tableWidth: number | null;
91
+ inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.SHORTCUT;
92
+ } & TotalRowAndColCount;
85
93
  type ResizePreviewInfo = {
86
94
  frameRate: number;
87
95
  isInitialSample: boolean;
@@ -150,6 +158,7 @@ type TableOverflowChangedAEP = TableAEP<TABLE_ACTION.OVERFLOW_CHANGED, {
150
158
  type TableInitialOverflowCapturedAEP = TableAEP<TABLE_ACTION.INITIAL_OVERFLOW_CAPTURED, OverflowStateInfo, undefined>;
151
159
  type TableResizedAEP = TableAEP<TABLE_ACTION.RESIZED, ResizedInfo, undefined>;
152
160
  type TableResizePerfSamplingAEP = OperationalAEP<TABLE_ACTION.RESIZE_PERF_SAMPLING, ACTION_SUBJECT.TABLE, undefined, ResizePreviewInfo>;
161
+ type TableColumnResizedAEP = TableAEP<TABLE_ACTION.COLUMN_RESIZED, ColumnResizedInfo, undefined>;
153
162
  type TableRowOrColumnMovedAEP = TableAEP<TABLE_ACTION.ROW_OR_COLUMN_MOVED, {
154
163
  type: 'row' | 'column';
155
164
  }, undefined>;
@@ -159,5 +168,5 @@ type TableMovedRowOrColumnAEP = TableAEP<TABLE_ACTION.MOVED_ROW | TABLE_ACTION.M
159
168
  distance: number;
160
169
  status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
161
170
  } & TotalRowAndColCount, undefined>;
162
- export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP;
171
+ export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableColumnResizedAEP;
163
172
  export {};
@@ -1,5 +1,6 @@
1
1
  export declare const resizerItemClassName = "resizer-item";
2
2
  export declare const resizerHoverZoneClassName = "resizer-hover-zone";
3
+ export declare const resizerExtendedZone = "resizer-is-extended";
3
4
  export declare const resizerHandleClassName = "resizer-handle";
4
5
  export declare const resizerHandleTrackClassName: string;
5
6
  export declare const resizerHandleThumbClassName: string;
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { WrappedComponentProps } from 'react-intl-next';
4
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
- import { UnsupportedContentTooltipPayload } from '../../utils';
3
+ import type { WrappedComponentProps } from 'react-intl-next';
4
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
+ import type { UnsupportedContentTooltipPayload } from '../../utils';
6
6
  export interface Props {
7
7
  node?: PMNode;
8
8
  children?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.11.4",
3
+ "version": "78.11.5",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -126,6 +126,7 @@
126
126
  "@atlaskit/mention": "^23.0.0",
127
127
  "@atlaskit/menu": "^2.1.0",
128
128
  "@atlaskit/platform-feature-flags": "^0.2.0",
129
+ "@atlaskit/primitives": "^4.0.0",
129
130
  "@atlaskit/profilecard": "^19.11.0",
130
131
  "@atlaskit/section-message": "^6.4.0",
131
132
  "@atlaskit/smart-card": "^26.48.0",