@atlaskit/editor-common 74.1.2 → 74.2.1

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 (99) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/monitoring/error.js +1 -1
  3. package/dist/cjs/styles/index.js +14 -1
  4. package/dist/cjs/styles/shared/grid.js +16 -0
  5. package/dist/cjs/styles/shared/resizer.js +14 -2
  6. package/dist/cjs/ui/ContextPanel/context.js +89 -0
  7. package/dist/cjs/ui/DropList/index.js +3 -5
  8. package/dist/cjs/ui/Resizer/index.js +8 -1
  9. package/dist/cjs/ui/index.js +25 -0
  10. package/dist/cjs/ui-menu/ToolbarButton/index.js +3 -1
  11. package/dist/cjs/ui-menu/ToolbarButton/styles.js +3 -0
  12. package/dist/cjs/utils/grid.js +10 -0
  13. package/dist/cjs/utils/index.js +7 -0
  14. package/dist/cjs/utils/validator.js +2 -1
  15. package/dist/cjs/version.json +1 -1
  16. package/dist/es2019/index.js +1 -1
  17. package/dist/es2019/monitoring/error.js +1 -1
  18. package/dist/es2019/styles/index.js +2 -1
  19. package/dist/es2019/styles/shared/grid.js +36 -0
  20. package/dist/es2019/styles/shared/resizer.js +23 -0
  21. package/dist/es2019/ui/ContextPanel/context.js +65 -0
  22. package/dist/es2019/ui/DropList/index.js +3 -6
  23. package/dist/es2019/ui/Resizer/index.js +8 -2
  24. package/dist/es2019/ui/index.js +2 -1
  25. package/dist/es2019/ui-menu/ToolbarButton/index.js +3 -0
  26. package/dist/es2019/ui-menu/ToolbarButton/styles.js +3 -0
  27. package/dist/es2019/utils/grid.js +1 -0
  28. package/dist/es2019/utils/index.js +2 -1
  29. package/dist/es2019/utils/validator.js +2 -1
  30. package/dist/es2019/version.json +1 -1
  31. package/dist/esm/index.js +1 -1
  32. package/dist/esm/monitoring/error.js +1 -1
  33. package/dist/esm/styles/index.js +2 -1
  34. package/dist/esm/styles/shared/grid.js +7 -0
  35. package/dist/esm/styles/shared/resizer.js +9 -1
  36. package/dist/esm/ui/ContextPanel/context.js +79 -0
  37. package/dist/esm/ui/DropList/index.js +3 -6
  38. package/dist/esm/ui/Resizer/index.js +9 -2
  39. package/dist/esm/ui/index.js +2 -1
  40. package/dist/esm/ui-menu/ToolbarButton/index.js +3 -0
  41. package/dist/esm/ui-menu/ToolbarButton/styles.js +3 -0
  42. package/dist/esm/utils/grid.js +3 -0
  43. package/dist/esm/utils/index.js +2 -1
  44. package/dist/esm/utils/validator.js +2 -1
  45. package/dist/esm/version.json +1 -1
  46. package/dist/types/analytics/types/events.d.ts +1 -1
  47. package/dist/types/provider-factory/types.d.ts +1 -1
  48. package/dist/types/resizer.d.ts +1 -0
  49. package/dist/types/styles/index.d.ts +1 -0
  50. package/dist/types/styles/shared/grid.d.ts +2 -0
  51. package/dist/types/styles/shared/resizer.d.ts +8 -0
  52. package/dist/types/types/editor-actions.d.ts +1 -1
  53. package/dist/types/types/grid.d.ts +1 -0
  54. package/dist/types/types/index.d.ts +2 -2
  55. package/dist/types/types/next-editor-plugin.d.ts +5 -0
  56. package/dist/types/ui/ContextPanel/context.d.ts +24 -0
  57. package/dist/types/ui/DropList/index.d.ts +1 -1
  58. package/dist/types/ui/Resizer/index.d.ts +2 -1
  59. package/dist/types/ui/Resizer/types.d.ts +1 -0
  60. package/dist/types/ui/index.d.ts +1 -0
  61. package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -1
  62. package/dist/types/utils/grid.d.ts +3 -0
  63. package/dist/types/utils/index.d.ts +1 -0
  64. package/dist/types-ts4.5/analytics/types/events.d.ts +1 -1
  65. package/dist/types-ts4.5/provider-factory/types.d.ts +1 -1
  66. package/dist/types-ts4.5/resizer.d.ts +1 -0
  67. package/dist/types-ts4.5/styles/index.d.ts +1 -0
  68. package/dist/types-ts4.5/styles/shared/grid.d.ts +2 -0
  69. package/dist/types-ts4.5/styles/shared/resizer.d.ts +8 -0
  70. package/dist/types-ts4.5/types/editor-actions.d.ts +1 -1
  71. package/dist/types-ts4.5/types/grid.d.ts +1 -0
  72. package/dist/types-ts4.5/types/index.d.ts +2 -2
  73. package/dist/types-ts4.5/types/next-editor-plugin.d.ts +5 -0
  74. package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +24 -0
  75. package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -1
  76. package/dist/types-ts4.5/ui/Resizer/index.d.ts +2 -1
  77. package/dist/types-ts4.5/ui/Resizer/types.d.ts +1 -0
  78. package/dist/types-ts4.5/ui/index.d.ts +1 -0
  79. package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -1
  80. package/dist/types-ts4.5/utils/grid.d.ts +3 -0
  81. package/dist/types-ts4.5/utils/index.d.ts +1 -0
  82. package/package.json +10 -8
  83. package/report.api.md +1 -1
  84. package/collab/package.json +0 -15
  85. package/dist/cjs/collab/types.js +0 -5
  86. package/dist/cjs/types/collab.js +0 -5
  87. package/dist/es2019/types/collab.js +0 -1
  88. package/dist/esm/collab/types.js +0 -1
  89. package/dist/esm/collab.js +0 -1
  90. package/dist/esm/types/collab.js +0 -1
  91. package/dist/types/collab/types.d.ts +0 -101
  92. package/dist/types/collab.d.ts +0 -1
  93. package/dist/types/types/collab.d.ts +0 -8
  94. package/dist/types-ts4.5/collab/types.d.ts +0 -101
  95. package/dist/types-ts4.5/collab.d.ts +0 -1
  96. package/dist/types-ts4.5/types/collab.d.ts +0 -8
  97. /package/dist/cjs/{collab.js → types/grid.js} +0 -0
  98. /package/dist/es2019/{collab.js → types/grid.js} +0 -0
  99. /package/dist/{es2019/collab/types.js → esm/types/grid.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.1.2",
3
+ "version": "74.2.1",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- // DO NOT EMPORT ANYTHING FROM THIS FILE. USE CHILD ENTRY POINTS.
1
+ // DO NOT EXPORT ANYTHING FROM THIS FILE. USE CHILD ENTRY POINTS.
2
2
  export {};
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
6
6
  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; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "74.1.2";
9
+ var packageVersion = "74.2.1";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -22,4 +22,5 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
22
22
  export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafariFix } from './shared/code-block';
23
23
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
24
24
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
25
- export { resizerStyles } from './shared/resizer';
25
+ export { resizerStyles } from './shared/resizer';
26
+ export { gridStyles, GRID_GUTTER } from './shared/grid';
@@ -0,0 +1,7 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import { css } from '@emotion/react';
4
+ import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
5
+ import { B200, N30A } from '@atlaskit/theme/colors';
6
+ export var GRID_GUTTER = 12;
7
+ export var gridStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .gridParent {\n width: calc(100% + ", "px);\n margin-left: -", "px;\n margin-right: -", "px;\n transform: scale(1);\n z-index: ", ";\n }\n\n .gridContainer {\n position: fixed;\n height: 100vh;\n width: 100%;\n pointer-events: none;\n }\n\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4352\n .gridLine {\n border-left: 1px solid ", ";\n display: inline-block;\n box-sizing: border-box;\n height: 100%;\n margin-left: -1px;\n\n transition: border-color 0.15s linear;\n z-index: 0;\n }\n\n .highlight {\n border-left: 1px solid ", ";\n }\n"])), GRID_GUTTER * 2, GRID_GUTTER, GRID_GUTTER, akEditorGridLineZIndex, "var(--ds-border, ".concat(N30A, ")"), "var(--ds-border-focused, ".concat(B200, ")"));
@@ -15,4 +15,12 @@ export var resizerHandleLeftClassName = 'resizer-handle-left';
15
15
  var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
16
16
  export var resizerHandlePadding = 13;
17
17
  export var resizerHandleZIndex = 99;
18
- export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n background: ", ";\n }\n\n .", ", .", " {\n display: flex;\n flex-direction: column;\n\n /* vertical align */\n justify-content: center;\n }\n\n .", " {\n align-items: flex-end;\n /* padding-right: 12px; */\n /* margin-right: -", "px; */\n }\n\n .", " {\n align-items: flex-start;\n /* padding-left: 12px; */\n /* margin-left: -", "px; */\n }\n\n .", "::after,\n .", "::after {\n content: ' ';\n display: flex;\n width: 3px;\n height: 64px;\n\n border-radius: 6px;\n }\n\n .", ":hover\n .", "::after,\n .", ":hover\n .", "::after {\n background: ", ";\n }\n\n .", "\n .", "::after,\n .", "\n .", "::after,\n .", "\n .", ":hover::after,\n .", "\n .", ":hover::after,\n .", ".is-resizing\n .", "::after,\n .", ".is-resizing\n .", "::after {\n background: ", ";\n }\n"])), resizerItemClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleRightClassName, resizerHandleLeftClassName, resizerHandleRightClassName, resizerHandlePadding, resizerHandleLeftClassName, resizerHandlePadding, resizerHandleRightClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, "var(--ds-border, ".concat(N60, ")"), akEditorSelectedNodeClassName, resizerHandleRightClassName, akEditorSelectedNodeClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, resizerItemClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, resizerItemClassName, resizerHandleLeftClassName, "var(--ds-border-focused, ".concat(B200, ")"));
18
+ export var resizerHandlerSmallClassName = 'resizer-handler-small';
19
+ export var resizerHandlerMediumClassName = 'resizer-handler-medium';
20
+ export var resizerHandlerLargeClassName = 'resizer-handler-large';
21
+ export var resizerHandlerClassName = {
22
+ small: resizerHandlerSmallClassName,
23
+ medium: resizerHandlerMediumClassName,
24
+ large: resizerHandlerLargeClassName
25
+ };
26
+ export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n background: ", ";\n }\n\n .", ", .", " {\n display: flex;\n flex-direction: column;\n\n /* vertical align */\n justify-content: center;\n }\n\n .", " {\n align-items: flex-end;\n /* padding-right: 12px; */\n /* margin-right: -", "px; */\n }\n\n .", " {\n align-items: flex-start;\n /* padding-left: 12px; */\n /* margin-left: -", "px; */\n }\n\n .", "::after,\n .", "::after {\n content: ' ';\n display: flex;\n width: 3px;\n height: 64px;\n\n border-radius: 6px;\n }\n\n .", ":hover\n .", "::after,\n .", ":hover\n .", "::after {\n background: ", ";\n }\n\n .", "\n .", "::after,\n .", "\n .", "::after,\n .", "\n .", ":hover::after,\n .", "\n .", ":hover::after,\n .", ".is-resizing\n .", "::after,\n .", ".is-resizing\n .", "::after {\n background: ", ";\n }\n\n .", ".", "::after,\n .", ".", "::after {\n height: 64px;\n }\n\n .", ".", "::after,\n .", ".", "::after {\n height: 43px;\n }\n\n .", ".", "::after,\n .", ".", "::after {\n height: 96px;\n }\n"])), resizerItemClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleRightClassName, resizerHandleLeftClassName, resizerHandleRightClassName, resizerHandlePadding, resizerHandleLeftClassName, resizerHandlePadding, resizerHandleRightClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, "var(--ds-border, ".concat(N60, ")"), akEditorSelectedNodeClassName, resizerHandleRightClassName, akEditorSelectedNodeClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, resizerItemClassName, resizerHandleLeftClassName, resizerItemClassName, resizerHandleRightClassName, resizerItemClassName, resizerHandleLeftClassName, "var(--ds-border-focused, ".concat(B200, ")"), resizerHandleRightClassName, resizerHandlerClassName.medium, resizerHandleLeftClassName, resizerHandlerClassName.medium, resizerHandleRightClassName, resizerHandlerClassName.small, resizerHandleLeftClassName, resizerHandlerClassName.small, resizerHandleRightClassName, resizerHandlerClassName.large, resizerHandleLeftClassName, resizerHandlerClassName.large);
@@ -0,0 +1,79 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/createClass";
3
+ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
+ import _inherits from "@babel/runtime/helpers/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
+ 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); }; }
9
+ 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
+ import React from 'react';
11
+
12
+ // React context to communicate the active context panel width up and down the tree.
13
+ //
14
+ // We need the width prop from the ContextPanel component.
15
+ //
16
+ // However, the actual <ContextPanel /> component might be deeply nested inside the contextPanel.
17
+ // For example, in the template context panel storybook, we wrap it in 2 higher order components.
18
+ //
19
+ // Changing the max-width on the main editor container happens above where the <ContextPanel /> gets rendered.
20
+ //
21
+ // To subtract the context panel width from the available real estate, we use the Provider and Consumer.
22
+ //
23
+ // positionedOverEditor is used to determine whether the context panel is positioned over the Editor so we are
24
+ // able to position and add margins to handle certain elements like inline comment dialogues overlapping the context
25
+ // panel
26
+ export var ContextPanel = /*#__PURE__*/React.createContext({
27
+ width: 0,
28
+ positionedOverEditor: false,
29
+ broadcastWidth: function broadcastWidth() {},
30
+ broadcastPosition: function broadcastPosition() {}
31
+ });
32
+ export var ContextPanelWidthProvider = /*#__PURE__*/function (_React$Component) {
33
+ _inherits(ContextPanelWidthProvider, _React$Component);
34
+ var _super = _createSuper(ContextPanelWidthProvider);
35
+ function ContextPanelWidthProvider(props) {
36
+ var _this;
37
+ _classCallCheck(this, ContextPanelWidthProvider);
38
+ _this = _super.call(this, props);
39
+ _defineProperty(_assertThisInitialized(_this), "state", {
40
+ width: 0,
41
+ positionedOverEditor: false
42
+ });
43
+ _defineProperty(_assertThisInitialized(_this), "broadcastSidebarWidth", function (width) {
44
+ if (width !== _this.state.width) {
45
+ _this.setState({
46
+ width: width
47
+ });
48
+ }
49
+ });
50
+ _defineProperty(_assertThisInitialized(_this), "broadcastPosition", function (positionedOverEditor) {
51
+ if (positionedOverEditor !== _this.state.positionedOverEditor) {
52
+ _this.setState({
53
+ positionedOverEditor: positionedOverEditor
54
+ });
55
+ }
56
+ });
57
+ return _this;
58
+ }
59
+ _createClass(ContextPanelWidthProvider, [{
60
+ key: "render",
61
+ value: function render() {
62
+ var _this$state = this.state,
63
+ width = _this$state.width,
64
+ positionedOverEditor = _this$state.positionedOverEditor;
65
+ return /*#__PURE__*/React.createElement(Provider, {
66
+ value: {
67
+ width: width,
68
+ positionedOverEditor: positionedOverEditor,
69
+ broadcastWidth: this.broadcastSidebarWidth,
70
+ broadcastPosition: this.broadcastPosition
71
+ }
72
+ }, this.props.children);
73
+ }
74
+ }]);
75
+ return ContextPanelWidthProvider;
76
+ }(React.Component);
77
+ var Provider = ContextPanel.Provider,
78
+ Consumer = ContextPanel.Consumer;
79
+ export { Provider as ContextPanelProvider, Consumer as ContextPanelConsumer };
@@ -15,15 +15,12 @@ import { css, jsx } from '@emotion/react';
15
15
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
16
16
  import { DN50, DN600, N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
17
17
  import { themed } from '@atlaskit/theme/components';
18
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
19
- import { borderRadius, gridSize } from '@atlaskit/theme/constants';
18
+ import { borderRadius } from '@atlaskit/theme/constants';
20
19
  import Layer from '../Layer';
21
20
  var packageName = "@atlaskit/editor-common";
22
- var packageVersion = "74.1.2";
21
+ var packageVersion = "74.2.1";
23
22
  var halfFocusRing = 1;
24
- // TODO: Migrate away from gridSize
25
- // Recommendation: Replace gridSize with token('space.100', '8px') after verfiying Popper can accept this
26
- var dropOffset = "0, ".concat(gridSize(), "px");
23
+ var dropOffset = '0, 8';
27
24
  var DropList = /*#__PURE__*/function (_Component) {
28
25
  _inherits(DropList, _Component);
29
26
  var _super = _createSuper(DropList);
@@ -1,13 +1,15 @@
1
1
  import React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { Resizable } from 're-resizable';
4
- import { resizerHandleLeftClassName, resizerHandlePadding, resizerHandleRightClassName, resizerHandleZIndex, resizerItemClassName } from '../../styles/shared/resizer';
4
+ import { resizerHandleLeftClassName, resizerHandlePadding, resizerHandlerClassName, resizerHandleRightClassName, resizerHandleZIndex, resizerItemClassName } from '../../styles/shared/resizer';
5
5
  import { handleSides } from './utils';
6
6
  export default function ResizerNext(props) {
7
7
  var resizable = React.useRef(null);
8
8
  var handleResize = props.handleResize,
9
9
  handleResizeStart = props.handleResizeStart,
10
- handleResizeStop = props.handleResizeStop;
10
+ handleResizeStop = props.handleResizeStop,
11
+ _props$handlerHeightS = props.handlerHeightSize,
12
+ handlerHeightSize = _props$handlerHeightS === void 0 ? 'medium' : _props$handlerHeightS;
11
13
  var onResizeStart = React.useCallback(function (event) {
12
14
  // prevent creating a drag event on Firefox
13
15
  event.preventDefault();
@@ -50,6 +52,11 @@ export default function ResizerNext(props) {
50
52
  right: resizerHandleRightClassName
51
53
  };
52
54
  }
55
+
56
+ // add handler height size classname to handleClasses
57
+ Object.keys(handles).forEach(function (key) {
58
+ handles[key] = classnames(handles[key], resizerHandlerClassName[handlerHeightSize]);
59
+ });
53
60
  var innerPadding = props.innerPadding || resizerHandlePadding;
54
61
  var handleStyles = {
55
62
  left: {
@@ -17,4 +17,5 @@ export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
17
17
  export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle } from './clear-next-sibling-margin-top';
18
18
  export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE } from './IntlErrorBoundary';
19
19
  export { default as IntlProviderIfMissingWrapper } from './IntlProviderIfMissingWrapper';
20
- export { default as FloatingToolbarButton } from './FloatingToolbar/Button';
20
+ export { default as FloatingToolbarButton } from './FloatingToolbar/Button';
21
+ export { ContextPanelProvider, ContextPanelWidthProvider, ContextPanelConsumer, ContextPanel } from './ContextPanel/context';
@@ -3,6 +3,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
3
3
  var _templateObject;
4
4
  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; }
5
5
  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; }
6
+ // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/index.tsx`
7
+ // If you make any change here, copy it to above file as well
8
+ // and notify about the change in #team-fc-editor-ai-dev channel.
6
9
  /** @jsx jsx */
7
10
  import React, { useCallback } from 'react';
8
11
  import { css, jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/styles.tsx`
3
+ // If you make any change here, copy it to above file as well
4
+ // and notify about the change in #team-fc-editor-ai-dev channel.
2
5
  import React from 'react';
3
6
  import Button from '@atlaskit/button/standard-button';
4
7
  export default /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -0,0 +1,3 @@
1
+ export var gridTypeForLayout = function gridTypeForLayout(layout) {
2
+ return layout === 'wrap-left' || layout === 'wrap-right' ? 'wrapped' : 'full';
3
+ };
@@ -38,4 +38,5 @@ export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, is
38
38
  export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent } from './hyperlink';
39
39
 
40
40
  // prosemirror-history does not export its plugin key
41
- export var pmHistoryPluginKey = 'history$';
41
+ export var pmHistoryPluginKey = 'history$';
42
+ export { gridTypeForLayout } from './grid';
@@ -656,7 +656,8 @@ export var getValidNode = function getValidNode(originalNode) {
656
656
  type: type,
657
657
  content: content,
658
658
  attrs: _objectSpread(_objectSpread({}, attrs), {}, {
659
- localId: (attrs === null || attrs === void 0 ? void 0 : attrs.localId) || uuid()
659
+ localId: (attrs === null || attrs === void 0 ? void 0 : attrs.localId) || uuid(),
660
+ width: (attrs === null || attrs === void 0 ? void 0 : attrs.width) || null
660
661
  })
661
662
  };
662
663
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.1.2",
3
+ "version": "74.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { EditorState, PluginKey } from 'prosemirror-state';
3
3
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- import type { NewCollabSyncUpErrorAttributes } from '../../types';
4
+ import type { NewCollabSyncUpErrorAttributes } from '@atlaskit/collab-provider/types';
5
5
  import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
6
6
  import type { AvatarEventPayload } from './avatar';
7
7
  import type { ConfigPanelEventPayload } from './config-panel-events';
@@ -1,8 +1,8 @@
1
1
  import { ActivityProvider } from '@atlaskit/activity-provider';
2
+ import type { CollabEditProvider } from '@atlaskit/collab-provider';
2
3
  import type { EmojiProvider } from '@atlaskit/emoji/types';
3
4
  import { MentionProvider } from '@atlaskit/mention/types';
4
5
  import { TaskDecisionProvider } from '@atlaskit/task-decision/types';
5
- import { CollabEditProvider } from '../collab/types';
6
6
  import { ExtensionProvider } from '../extensions/types';
7
7
  import { AutoformattingProvider } from './autoformatting-provider';
8
8
  import { CardProvider } from './card-provider';
@@ -1 +1,2 @@
1
1
  export { default as ResizerNext } from './ui/Resizer';
2
+ export type { HandlerHeightSizeType, EnabledHandles } from './ui/Resizer/types';
@@ -23,3 +23,4 @@ export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafa
23
23
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
24
24
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
25
25
  export { resizerStyles } from './shared/resizer';
26
+ export { gridStyles, GRID_GUTTER } from './shared/grid';
@@ -0,0 +1,2 @@
1
+ export declare const GRID_GUTTER = 12;
2
+ export declare const gridStyles: import("@emotion/react").SerializedStyles;
@@ -3,4 +3,12 @@ export declare const resizerHandleRightClassName = "resizer-handle-right";
3
3
  export declare const resizerHandleLeftClassName = "resizer-handle-left";
4
4
  export declare const resizerHandlePadding = 13;
5
5
  export declare const resizerHandleZIndex = 99;
6
+ export declare const resizerHandlerSmallClassName = "resizer-handler-small";
7
+ export declare const resizerHandlerMediumClassName = "resizer-handler-medium";
8
+ export declare const resizerHandlerLargeClassName = "resizer-handler-large";
9
+ export declare const resizerHandlerClassName: {
10
+ small: string;
11
+ medium: string;
12
+ large: string;
13
+ };
6
14
  export declare const resizerStyles: import("@emotion/react").SerializedStyles;
@@ -1,7 +1,7 @@
1
1
  import { Node } from 'prosemirror-model';
2
2
  import { EditorView } from 'prosemirror-view';
3
+ import type { ResolvedEditorState } from '@atlaskit/collab-provider/types';
3
4
  import { JSONDocNode } from '@atlaskit/editor-json-transformer';
4
- import { ResolvedEditorState } from '../collab';
5
5
  import { EventDispatcher } from '../event-dispatcher';
6
6
  export type ContextUpdateHandler = (editorView: EditorView, eventDispatcher: EventDispatcher) => void;
7
7
  export type ReplaceRawValue = Node | object | string;
@@ -0,0 +1 @@
1
+ export type GridType = 'full' | 'wrapped';
@@ -12,7 +12,6 @@ export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
12
12
  export type { AnnotationState, AnnotationProviders, AnnotationUpdateEventPayloads, InlineCommentSelectionComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, OnAnnotationClickPayload, AnnotationByMatches, AnnotationActionResult, } from './annotation';
13
13
  export type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, } from './editor-actions';
14
14
  export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
15
- export type { NewCollabSyncUpErrorAttributes, SyncUpErrorFunction, } from './collab';
16
15
  export type { CommandDispatch, Command, HigherOrderCommand } from './command';
17
16
  export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags, } from './feature-flags';
18
17
  export type { Browsers, Range, DisableSpellcheckByBrowser, } from './supported-browsers';
@@ -29,8 +28,9 @@ export type { EditorReactContext } from './editor-react-context';
29
28
  export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
30
29
  export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
31
30
  export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
32
- export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, } from './next-editor-plugin';
31
+ export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependency, } from './next-editor-plugin';
33
32
  export type IconProps = {
34
33
  label?: string;
35
34
  };
36
35
  export type { TTITracking, TransactionTracking, UITracking, CatchAllTracking, NodeViewTracking, BrowserFreezetracking, ProseMirrorRenderedTracking, InputTracking, ContentRetrievalTracking, OnChangeCallbackTracking, OnEditorReadyCallbackTracking, PasteTracking, RenderTracking, PerformanceTracking, } from './performance-tracking';
36
+ export type { GridType } from './grid';
@@ -32,6 +32,11 @@ export type PluginInjectionAPI<Name extends string, Metadata extends NextEditorP
32
32
  ...ExtractPluginDependenciesFromMetadata<Metadata>
33
33
  ]>;
34
34
  };
35
+ export type PluginInjectionAPIWithDependency<Plugin> = Plugin extends NextEditorPlugin<infer Name, infer Metadata> ? {
36
+ dependencies: CreatePluginDependenciesAPI<[
37
+ NextEditorPlugin<Name, Metadata>
38
+ ]>;
39
+ } : never;
35
40
  type NextEditorPluginFunctionDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration> = (config: Configuration, api?: PluginInjectionAPI<Name, Metadata>) => DefaultEditorPlugin<Name, Metadata>;
36
41
  type NextEditorPluginFunctionOptionalConfigDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration = undefined> = (config?: Configuration, api?: PluginInjectionAPI<Name, Metadata>) => DefaultEditorPlugin<Name, Metadata>;
37
42
  type OptionalPrivateProperty = {
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ export type ContextPanelContext = {
3
+ width: number;
4
+ positionedOverEditor: boolean;
5
+ broadcastWidth: (width: number) => void;
6
+ broadcastPosition: (positionedOverEditor: boolean) => void;
7
+ };
8
+ export declare const ContextPanel: React.Context<ContextPanelContext>;
9
+ export type ContextPanelProviderState = {
10
+ width?: number;
11
+ positionedOverEditor?: boolean;
12
+ };
13
+ export declare class ContextPanelWidthProvider extends React.Component<any, ContextPanelProviderState> {
14
+ state: {
15
+ width: number;
16
+ positionedOverEditor: boolean;
17
+ };
18
+ constructor(props: any);
19
+ broadcastSidebarWidth: (width: number) => void;
20
+ broadcastPosition: (positionedOverEditor: boolean) => void;
21
+ render(): JSX.Element;
22
+ }
23
+ declare const Provider: React.Provider<ContextPanelContext>, Consumer: React.Consumer<ContextPanelContext>;
24
+ export { Provider as ContextPanelProvider, Consumer as ContextPanelConsumer };
@@ -16,5 +16,5 @@ export type OpenChangedEvent = {
16
16
  isOpen: boolean;
17
17
  event: MouseEvent | KeyboardEvent;
18
18
  };
19
- declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "id" | "children" | "position" | "trigger" | "testId" | "analyticsContext" | "isOpen" | "shouldFitContainer" | "onPositioned" | "onOpenChange"> & import("react").RefAttributes<any>>;
19
+ declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "children" | "id" | "position" | "trigger" | "testId" | "analyticsContext" | "isOpen" | "shouldFitContainer" | "onPositioned" | "onOpenChange"> & import("react").RefAttributes<any>>;
20
20
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import { HandleComponent } from 're-resizable';
3
- import { EnabledHandles, HandleResize } from './types';
3
+ import { EnabledHandles, HandleResize, HandlerHeightSizeType } from './types';
4
4
  export interface ResizableNumberSize {
5
5
  width: number;
6
6
  height: number;
@@ -18,5 +18,6 @@ export type ResizerProps = {
18
18
  maxWidth?: number;
19
19
  handleWrapperStyle?: React.CSSProperties;
20
20
  handleComponent?: HandleComponent;
21
+ handlerHeightSize?: HandlerHeightSizeType;
21
22
  };
22
23
  export default function ResizerNext(props: PropsWithChildren<ResizerProps>): JSX.Element;
@@ -16,3 +16,4 @@ export type HandleStyles = {
16
16
  right?: React.CSSProperties;
17
17
  left?: React.CSSProperties;
18
18
  };
19
+ export type HandlerHeightSizeType = 'small' | 'medium' | 'large';
@@ -26,3 +26,4 @@ export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle
26
26
  export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE, } from './IntlErrorBoundary';
27
27
  export { default as IntlProviderIfMissingWrapper } from './IntlProviderIfMissingWrapper';
28
28
  export { default as FloatingToolbarButton } from './FloatingToolbar/Button';
29
+ export { ContextPanelProvider, ContextPanelWidthProvider, ContextPanelConsumer, ContextPanel, } from './ContextPanel/context';
@@ -42,7 +42,7 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
42
42
  onItemClick?: ((item: MenuItem) => void) | undefined;
43
43
  onKeyDown?: ((event: React.KeyboardEvent<HTMLElement>) => void) | undefined;
44
44
  selected?: boolean | undefined;
45
- spacing?: "none" | "default" | "compact" | undefined;
45
+ spacing?: "default" | "none" | "compact" | undefined;
46
46
  target?: string | undefined;
47
47
  title?: React.ReactNode;
48
48
  titlePosition?: PositionType | undefined;
@@ -0,0 +1,3 @@
1
+ import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
2
+ import type { GridType } from '../types';
3
+ export declare const gridTypeForLayout: (layout: MediaSingleLayout) => GridType;
@@ -49,3 +49,4 @@ export { isReferencedSource, removeConnectedNodes, getChildrenInfo, getNodeName,
49
49
  export { getItemCounterDigitsSize, getOrderFromOrderedListNode, resolveOrder, isListNode, isParagraphNode, isListItemNode, isBulletList, } from './list';
50
50
  export { isFromCurrentDomain, LinkMatcher, normalizeUrl, linkifyContent, getLinkDomain, findFilepaths, isLinkInMatches, FILEPATH_REGEXP, DONTLINKIFY_REGEXP, getLinkCreationAnalyticsEvent, } from './hyperlink';
51
51
  export declare const pmHistoryPluginKey = "history$";
52
+ export { gridTypeForLayout } from './grid';
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { EditorState, PluginKey } from 'prosemirror-state';
3
3
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- import type { NewCollabSyncUpErrorAttributes } from '../../types';
4
+ import type { NewCollabSyncUpErrorAttributes } from '@atlaskit/collab-provider/types';
5
5
  import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
6
6
  import type { AvatarEventPayload } from './avatar';
7
7
  import type { ConfigPanelEventPayload } from './config-panel-events';
@@ -1,8 +1,8 @@
1
1
  import { ActivityProvider } from '@atlaskit/activity-provider';
2
+ import type { CollabEditProvider } from '@atlaskit/collab-provider';
2
3
  import type { EmojiProvider } from '@atlaskit/emoji/types';
3
4
  import { MentionProvider } from '@atlaskit/mention/types';
4
5
  import { TaskDecisionProvider } from '@atlaskit/task-decision/types';
5
- import { CollabEditProvider } from '../collab/types';
6
6
  import { ExtensionProvider } from '../extensions/types';
7
7
  import { AutoformattingProvider } from './autoformatting-provider';
8
8
  import { CardProvider } from './card-provider';
@@ -1 +1,2 @@
1
1
  export { default as ResizerNext } from './ui/Resizer';
2
+ export type { HandlerHeightSizeType, EnabledHandles } from './ui/Resizer/types';
@@ -23,3 +23,4 @@ export { CodeBlockSharedCssClassName, codeBlockSharedStyles, codeBlockInListSafa
23
23
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from './shared/layout';
24
24
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
25
25
  export { resizerStyles } from './shared/resizer';
26
+ export { gridStyles, GRID_GUTTER } from './shared/grid';
@@ -0,0 +1,2 @@
1
+ export declare const GRID_GUTTER = 12;
2
+ export declare const gridStyles: import("@emotion/react").SerializedStyles;
@@ -3,4 +3,12 @@ export declare const resizerHandleRightClassName = "resizer-handle-right";
3
3
  export declare const resizerHandleLeftClassName = "resizer-handle-left";
4
4
  export declare const resizerHandlePadding = 13;
5
5
  export declare const resizerHandleZIndex = 99;
6
+ export declare const resizerHandlerSmallClassName = "resizer-handler-small";
7
+ export declare const resizerHandlerMediumClassName = "resizer-handler-medium";
8
+ export declare const resizerHandlerLargeClassName = "resizer-handler-large";
9
+ export declare const resizerHandlerClassName: {
10
+ small: string;
11
+ medium: string;
12
+ large: string;
13
+ };
6
14
  export declare const resizerStyles: import("@emotion/react").SerializedStyles;
@@ -1,7 +1,7 @@
1
1
  import { Node } from 'prosemirror-model';
2
2
  import { EditorView } from 'prosemirror-view';
3
+ import type { ResolvedEditorState } from '@atlaskit/collab-provider/types';
3
4
  import { JSONDocNode } from '@atlaskit/editor-json-transformer';
4
- import { ResolvedEditorState } from '../collab';
5
5
  import { EventDispatcher } from '../event-dispatcher';
6
6
  export type ContextUpdateHandler = (editorView: EditorView, eventDispatcher: EventDispatcher) => void;
7
7
  export type ReplaceRawValue = Node | object | string;
@@ -0,0 +1 @@
1
+ export type GridType = 'full' | 'wrapped';
@@ -12,7 +12,6 @@ export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
12
12
  export type { AnnotationState, AnnotationProviders, AnnotationUpdateEventPayloads, InlineCommentSelectionComponentProps, InlineCommentViewComponentProps, InlineCommentAnnotationProvider, OnAnnotationClickPayload, AnnotationByMatches, AnnotationActionResult, } from './annotation';
13
13
  export type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, } from './editor-actions';
14
14
  export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, } from './type-ahead';
15
- export type { NewCollabSyncUpErrorAttributes, SyncUpErrorFunction, } from './collab';
16
15
  export type { CommandDispatch, Command, HigherOrderCommand } from './command';
17
16
  export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags, } from './feature-flags';
18
17
  export type { Browsers, Range, DisableSpellcheckByBrowser, } from './supported-browsers';
@@ -29,8 +28,9 @@ export type { EditorReactContext } from './editor-react-context';
29
28
  export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
30
29
  export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
31
30
  export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
32
- export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, } from './next-editor-plugin';
31
+ export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependency, } from './next-editor-plugin';
33
32
  export type IconProps = {
34
33
  label?: string;
35
34
  };
36
35
  export type { TTITracking, TransactionTracking, UITracking, CatchAllTracking, NodeViewTracking, BrowserFreezetracking, ProseMirrorRenderedTracking, InputTracking, ContentRetrievalTracking, OnChangeCallbackTracking, OnEditorReadyCallbackTracking, PasteTracking, RenderTracking, PerformanceTracking, } from './performance-tracking';
36
+ export type { GridType } from './grid';
@@ -32,6 +32,11 @@ export type PluginInjectionAPI<Name extends string, Metadata extends NextEditorP
32
32
  ...ExtractPluginDependenciesFromMetadata<Metadata>
33
33
  ]>;
34
34
  };
35
+ export type PluginInjectionAPIWithDependency<Plugin> = Plugin extends NextEditorPlugin<infer Name, infer Metadata> ? {
36
+ dependencies: CreatePluginDependenciesAPI<[
37
+ NextEditorPlugin<Name, Metadata>
38
+ ]>;
39
+ } : never;
35
40
  type NextEditorPluginFunctionDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration> = (config: Configuration, api?: PluginInjectionAPI<Name, Metadata>) => DefaultEditorPlugin<Name, Metadata>;
36
41
  type NextEditorPluginFunctionOptionalConfigDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration = undefined> = (config?: Configuration, api?: PluginInjectionAPI<Name, Metadata>) => DefaultEditorPlugin<Name, Metadata>;
37
42
  type OptionalPrivateProperty = {
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ export type ContextPanelContext = {
3
+ width: number;
4
+ positionedOverEditor: boolean;
5
+ broadcastWidth: (width: number) => void;
6
+ broadcastPosition: (positionedOverEditor: boolean) => void;
7
+ };
8
+ export declare const ContextPanel: React.Context<ContextPanelContext>;
9
+ export type ContextPanelProviderState = {
10
+ width?: number;
11
+ positionedOverEditor?: boolean;
12
+ };
13
+ export declare class ContextPanelWidthProvider extends React.Component<any, ContextPanelProviderState> {
14
+ state: {
15
+ width: number;
16
+ positionedOverEditor: boolean;
17
+ };
18
+ constructor(props: any);
19
+ broadcastSidebarWidth: (width: number) => void;
20
+ broadcastPosition: (positionedOverEditor: boolean) => void;
21
+ render(): JSX.Element;
22
+ }
23
+ declare const Provider: React.Provider<ContextPanelContext>, Consumer: React.Consumer<ContextPanelContext>;
24
+ export { Provider as ContextPanelProvider, Consumer as ContextPanelConsumer };
@@ -16,5 +16,5 @@ export type OpenChangedEvent = {
16
16
  isOpen: boolean;
17
17
  event: MouseEvent | KeyboardEvent;
18
18
  };
19
- declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "id" | "children" | "position" | "trigger" | "testId" | "analyticsContext" | "isOpen" | "shouldFitContainer" | "onPositioned" | "onOpenChange"> & import("react").RefAttributes<any>>;
19
+ declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "children" | "id" | "position" | "trigger" | "testId" | "analyticsContext" | "isOpen" | "shouldFitContainer" | "onPositioned" | "onOpenChange"> & import("react").RefAttributes<any>>;
20
20
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import { HandleComponent } from 're-resizable';
3
- import { EnabledHandles, HandleResize } from './types';
3
+ import { EnabledHandles, HandleResize, HandlerHeightSizeType } from './types';
4
4
  export interface ResizableNumberSize {
5
5
  width: number;
6
6
  height: number;
@@ -18,5 +18,6 @@ export type ResizerProps = {
18
18
  maxWidth?: number;
19
19
  handleWrapperStyle?: React.CSSProperties;
20
20
  handleComponent?: HandleComponent;
21
+ handlerHeightSize?: HandlerHeightSizeType;
21
22
  };
22
23
  export default function ResizerNext(props: PropsWithChildren<ResizerProps>): JSX.Element;
@@ -16,3 +16,4 @@ export type HandleStyles = {
16
16
  right?: React.CSSProperties;
17
17
  left?: React.CSSProperties;
18
18
  };
19
+ export type HandlerHeightSizeType = 'small' | 'medium' | 'large';
@@ -26,3 +26,4 @@ export { clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle
26
26
  export { IntlErrorBoundary, REACT_INTL_ERROR_MESSAGE, } from './IntlErrorBoundary';
27
27
  export { default as IntlProviderIfMissingWrapper } from './IntlProviderIfMissingWrapper';
28
28
  export { default as FloatingToolbarButton } from './FloatingToolbar/Button';
29
+ export { ContextPanelProvider, ContextPanelWidthProvider, ContextPanelConsumer, ContextPanel, } from './ContextPanel/context';