@atlaskit/editor-core 195.6.2 → 195.8.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 (36) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -0
  4. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +64 -60
  5. package/dist/cjs/ui/ContextPanel/deprecated.js +283 -0
  6. package/dist/cjs/ui/ContextPanel/index.js +26 -133
  7. package/dist/cjs/version-wrapper.js +1 -1
  8. package/dist/es2019/index.js +6 -1
  9. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -0
  10. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +4 -1
  11. package/dist/es2019/ui/ContextPanel/deprecated.js +258 -0
  12. package/dist/es2019/ui/ContextPanel/index.js +24 -133
  13. package/dist/es2019/version-wrapper.js +1 -1
  14. package/dist/esm/index.js +6 -1
  15. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -0
  16. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +64 -60
  17. package/dist/esm/ui/ContextPanel/deprecated.js +277 -0
  18. package/dist/esm/ui/ContextPanel/index.js +24 -132
  19. package/dist/esm/version-wrapper.js +1 -1
  20. package/dist/types/create-editor/create-universal-preset.d.ts +81 -0
  21. package/dist/types/index.d.ts +6 -1
  22. package/dist/types/presets/default.d.ts +68 -0
  23. package/dist/types/presets/universal.d.ts +83 -1
  24. package/dist/types/presets/useUniversalPreset.d.ts +81 -0
  25. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +3 -1
  26. package/dist/types/ui/ContextPanel/deprecated.d.ts +44 -0
  27. package/dist/types/ui/ContextPanel/index.d.ts +5 -9
  28. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +81 -0
  29. package/dist/types-ts4.5/index.d.ts +6 -1
  30. package/dist/types-ts4.5/presets/default.d.ts +68 -0
  31. package/dist/types-ts4.5/presets/universal.d.ts +83 -1
  32. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +81 -0
  33. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +5 -1
  34. package/dist/types-ts4.5/ui/ContextPanel/deprecated.d.ts +44 -0
  35. package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +7 -9
  36. package/package.json +7 -12
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
3
  import _createClass from "@babel/runtime/helpers/createClass";
5
4
  import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
@@ -7,7 +6,6 @@ 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";
10
- var _excluded = ["actions"];
11
9
  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; }
12
10
  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; }
13
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); }; }
@@ -16,54 +14,18 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
16
14
  * @jsxRuntime classic
17
15
  * @jsx jsx
18
16
  */
19
- import React, { useContext } from 'react';
17
+ import React from 'react';
20
18
 
21
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
20
  import { css, jsx } from '@emotion/react';
23
21
  import Transition from 'react-transition-group/Transition';
24
- import { ContextPanelConsumer, WidthContext } from '@atlaskit/editor-common/ui';
25
- import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
26
- import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
27
- import { akEditorBreakoutPadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
22
+ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
23
+ import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
24
+ import { akEditorContextPanelWidth, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
25
+ import { fg } from '@atlaskit/platform-feature-flags';
28
26
  import { N30 } from '@atlaskit/theme/colors';
29
- import { getChildBreakoutModes } from '../../utils/document';
30
- import WithEditorActions from '../WithEditorActions';
27
+ import ContextPanelDeprecated from './deprecated';
31
28
  var ANIM_SPEED_MS = 500;
32
- var EDITOR_WIDTH = akEditorDefaultLayoutWidth + akEditorBreakoutPadding;
33
- var WIDE_EDITOR_WIDTH = akEditorWideLayoutWidth + akEditorBreakoutPadding;
34
- var FULLWIDTH_MODE = 'full-width';
35
- var WIDE_MODE = 'wide';
36
- var absolutePanelStyles = css({
37
- position: 'absolute',
38
- right: 0,
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
40
- height: "calc(100% - ".concat(FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(), ")")
41
- });
42
- var checkTableExistsInDoc = function checkTableExistsInDoc(editorView) {
43
- var tableNodeSchema = editorView.state.schema.nodes.table;
44
- var findResult = findChildrenByType(editorView.state.doc, tableNodeSchema);
45
- return findResult.length > 0;
46
- };
47
- export var shouldPanelBePositionedOverEditor = function shouldPanelBePositionedOverEditor(editorWidth, panelWidth, editorView) {
48
- var lineLength = editorWidth.lineLength,
49
- _editorWidth$containe = editorWidth.containerWidth,
50
- containerWidth = _editorWidth$containe === void 0 ? 0 : _editorWidth$containe,
51
- contentBreakoutModes = editorWidth.contentBreakoutModes;
52
- var editorNotFullWidth = !(lineLength && lineLength > akEditorDefaultLayoutWidth);
53
- var hasSpaceForPanel = !contentBreakoutModes.length && containerWidth >= panelWidth * 2 + EDITOR_WIDTH;
54
- var hasSpaceForWideBreakoutsAndPanel = !contentBreakoutModes.includes(FULLWIDTH_MODE) && contentBreakoutModes.includes(WIDE_MODE) && containerWidth >= panelWidth * 2 + WIDE_EDITOR_WIDTH;
55
- if (!editorView) {
56
- return editorNotFullWidth && (hasSpaceForPanel || hasSpaceForWideBreakoutsAndPanel);
57
- } else {
58
- // when custom table width feature flag is on,
59
- // there are scenarios when a table has attr layout default, but width is in full-width or very wide
60
- // but in this case we still want the shouldPanelBePositionedOverEditor return false
61
- // previous logic is returning false when table layout default
62
- // but when custom table width feature flag is one, we want to return false whenever there is a table in the doc
63
- var isTableInDoc = checkTableExistsInDoc(editorView);
64
- return editorNotFullWidth && (hasSpaceForPanel || hasSpaceForWideBreakoutsAndPanel) && !isTableInDoc;
65
- }
66
- };
67
29
  var panelHidden = css({
68
30
  width: 0
69
31
  });
@@ -105,11 +67,11 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
105
67
  currentPluginContent: undefined
106
68
  });
107
69
  _defineProperty(_assertThisInitialized(_this), "focusEditor", function () {
108
- var editorView = _this.props.editorView;
109
- if (editorView && !editorView.hasFocus()) {
110
- var _editorView$focus;
111
- (_editorView$focus = editorView.focus) === null || _editorView$focus === void 0 || _editorView$focus.call(editorView);
112
- }
70
+ var _editorAPI$core;
71
+ var editorAPI = _this.props.editorAPI;
72
+ editorAPI === null || editorAPI === void 0 || (_editorAPI$core = editorAPI.core) === null || _editorAPI$core === void 0 || _editorAPI$core.actions.focus({
73
+ scrollIntoView: false
74
+ });
113
75
  });
114
76
  _defineProperty(_assertThisInitialized(_this), "showPluginContent", function () {
115
77
  var pluginContent = _this.props.pluginContent;
@@ -161,27 +123,15 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
161
123
  key: "render",
162
124
  value: function render() {
163
125
  var _this2 = this;
164
- var _this$props = this.props,
165
- editorWidth = _this$props.editorWidth,
166
- editorView = _this$props.editorView;
167
126
  var width = akEditorContextPanelWidth;
168
127
  var userVisible = !!this.props.visible;
169
128
  var visible = userVisible || !!this.state.currentPluginContent;
170
129
  return jsx(ContextPanelConsumer, null, function (_ref) {
171
- var broadcastWidth = _ref.broadcastWidth,
172
- broadcastPosition = _ref.broadcastPosition,
173
- positionedOverEditor = _ref.positionedOverEditor;
130
+ var broadcastWidth = _ref.broadcastWidth;
174
131
  var contextPanelWidth = visible ? width : 0;
175
- var newPosition = editorWidth ? shouldPanelBePositionedOverEditor(editorWidth, width, editorView) : false;
176
132
  broadcastWidth(contextPanelWidth);
177
- (newPosition && visible) !== positionedOverEditor && broadcastPosition(newPosition && visible);
178
133
  return jsx("div", {
179
- css: [panel, !visible && panelHidden,
180
- /**
181
- * Only use absolute position for panel when screen size is wide enough
182
- * to accommodate breakout content and editor is not in wide mode.
183
- */
184
- newPosition && absolutePanelStyles],
134
+ css: [panel, !visible && panelHidden],
185
135
  "data-testid": "context-panel-panel",
186
136
  "aria-labelledby": "context-panel-title",
187
137
  role: "dialog"
@@ -204,74 +154,16 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
204
154
  }]);
205
155
  return SwappableContentArea;
206
156
  }(React.PureComponent);
207
-
208
- // TODO: ED-17837 We have this workaround because we do
209
- // not have access to the pluginInjectionApi at this location.
210
- // It might be that we need to inject the pluginInjectionApi
211
- // via context so that we can use it in this file (similar to
212
- // WithEditorActions). To be investigated further.
213
-
214
- // @ts-ignore
215
- var widthPluginKey = {
216
- key: 'widthPlugin$',
217
- getState: function getState(state) {
218
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
219
- return state['widthPlugin$'];
220
- }
221
- };
222
-
223
- // @ts-ignore
224
- var contextPanelPluginKey = {
225
- key: 'contextPanelPluginKey$',
226
- getState: function getState(state) {
227
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
228
- return state['contextPanelPluginKey$'];
229
- }
230
- };
231
- function ContextPanelWithActions(_ref2) {
232
- var actions = _ref2.actions,
233
- props = _objectWithoutProperties(_ref2, _excluded);
234
- var eventDispatcher = actions._privateGetEventDispatcher();
235
- var editorView = actions._privateGetEditorView();
236
- var _useContext = useContext(WidthContext),
237
- width = _useContext.width;
238
- if (!eventDispatcher) {
239
- return jsx(SwappableContentArea, _extends({
240
- editorView: editorView
241
- }, props));
242
- }
243
- return (
244
- // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
245
- // This error was introduced after upgrading to TypeScript 5
246
- jsx(WithPluginState, {
247
- eventDispatcher: eventDispatcher,
248
- plugins: {
249
- contextPanel: contextPanelPluginKey,
250
- widthState: widthPluginKey
251
- },
252
- render: function render(_ref3) {
253
- var contextPanel = _ref3.contextPanel,
254
- widthState = _ref3.widthState;
255
- var firstContent = contextPanel && contextPanel.contents.find(Boolean);
256
- var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
257
- containerWidth: width,
258
- contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
259
- });
260
- return jsx(SwappableContentArea, _extends({}, props, {
261
- editorView: editorView,
262
- pluginContent: firstContent,
263
- editorWidth: editorWidth
264
- }));
265
- }
266
- })
267
- );
157
+ export function ContextPanel(props) {
158
+ var _contextPanelState$co;
159
+ var _useSharedPluginState = useSharedPluginState(props.editorAPI, ['contextPanel']),
160
+ contextPanelState = _useSharedPluginState.contextPanelState;
161
+ var firstContent = contextPanelState && (contextPanelState === null || contextPanelState === void 0 || (_contextPanelState$co = contextPanelState.contents) === null || _contextPanelState$co === void 0 ? void 0 : _contextPanelState$co.find(Boolean));
162
+ return jsx(SwappableContentArea, _extends({}, props, {
163
+ editorAPI: props.editorAPI,
164
+ pluginContent: firstContent
165
+ }));
268
166
  }
269
- export default function ContextPanel(props) {
270
- return jsx(WithEditorActions, {
271
- render: function render(actions) {
272
- return jsx(ContextPanelWithActions, _extends({
273
- actions: actions
274
- }, props));
275
- }
276
- });
167
+ export default function ContextPanelDefault(props) {
168
+ return fg('platform_editor_context-panel_simplify_behaviour') ? jsx(ContextPanel, props) : jsx(ContextPanelDeprecated, props);
277
169
  }
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "195.6.2";
2
+ export var version = "195.8.0";
@@ -119,6 +119,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
119
119
  actions: {
120
120
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
121
121
  };
122
+ sharedState: {
123
+ contents: import("react").ReactNode[] | undefined;
124
+ } | undefined;
122
125
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
123
126
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
124
127
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -148,6 +151,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
148
151
  actions: {
149
152
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
150
153
  };
154
+ sharedState: {
155
+ contents: import("react").ReactNode[] | undefined;
156
+ } | undefined;
151
157
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
152
158
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
153
159
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -332,6 +338,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
332
338
  actions: {
333
339
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
334
340
  };
341
+ sharedState: {
342
+ contents: import("react").ReactNode[] | undefined;
343
+ } | undefined;
335
344
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
336
345
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
337
346
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -361,6 +370,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
361
370
  actions: {
362
371
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
363
372
  };
373
+ sharedState: {
374
+ contents: import("react").ReactNode[] | undefined;
375
+ } | undefined;
364
376
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
365
377
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
366
378
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -591,6 +603,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
591
603
  actions: {
592
604
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
593
605
  };
606
+ sharedState: {
607
+ contents: import("react").ReactNode[] | undefined;
608
+ } | undefined;
594
609
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
595
610
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
596
611
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -766,6 +781,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
766
781
  actions: {
767
782
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
768
783
  announceMentionsInsertion: (mentionIds: {
784
+ type: "added" | "deleted";
769
785
  localId: string;
770
786
  id: string;
771
787
  }[]) => void;
@@ -1176,6 +1192,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1176
1192
  actions: {
1177
1193
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1178
1194
  };
1195
+ sharedState: {
1196
+ contents: import("react").ReactNode[] | undefined;
1197
+ } | undefined;
1179
1198
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
1180
1199
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
1181
1200
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -1205,6 +1224,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1205
1224
  actions: {
1206
1225
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1207
1226
  };
1227
+ sharedState: {
1228
+ contents: import("react").ReactNode[] | undefined;
1229
+ } | undefined;
1208
1230
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
1209
1231
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
1210
1232
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -1531,6 +1553,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1531
1553
  actions: {
1532
1554
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1533
1555
  };
1556
+ sharedState: {
1557
+ contents: import("react").ReactNode[] | undefined;
1558
+ } | undefined;
1534
1559
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
1535
1560
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
1536
1561
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -1554,6 +1579,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1554
1579
  actions: {
1555
1580
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1556
1581
  };
1582
+ sharedState: {
1583
+ contents: import("react").ReactNode[] | undefined;
1584
+ } | undefined;
1557
1585
  }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"panel", {
1558
1586
  pluginConfiguration: import("@atlaskit/editor-plugin-panel").PanelPluginOptions | undefined;
1559
1587
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
@@ -1698,6 +1726,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1698
1726
  actions: {
1699
1727
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1700
1728
  };
1729
+ sharedState: {
1730
+ contents: import("react").ReactNode[] | undefined;
1731
+ } | undefined;
1701
1732
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
1702
1733
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
1703
1734
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -1727,6 +1758,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1727
1758
  actions: {
1728
1759
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1729
1760
  };
1761
+ sharedState: {
1762
+ contents: import("react").ReactNode[] | undefined;
1763
+ } | undefined;
1730
1764
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
1731
1765
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
1732
1766
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -2318,6 +2352,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
2318
2352
  actions: {
2319
2353
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
2320
2354
  announceMentionsInsertion: (mentionIds: {
2355
+ type: "added" | "deleted";
2321
2356
  localId: string;
2322
2357
  id: string;
2323
2358
  }[]) => void;
@@ -2422,6 +2457,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
2422
2457
  actions: {
2423
2458
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
2424
2459
  };
2460
+ sharedState: {
2461
+ contents: import("react").ReactNode[] | undefined;
2462
+ } | undefined;
2425
2463
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
2426
2464
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
2427
2465
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -2451,6 +2489,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
2451
2489
  actions: {
2452
2490
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
2453
2491
  };
2492
+ sharedState: {
2493
+ contents: import("react").ReactNode[] | undefined;
2494
+ } | undefined;
2454
2495
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
2455
2496
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
2456
2497
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -2725,6 +2766,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
2725
2766
  actions: {
2726
2767
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
2727
2768
  };
2769
+ sharedState: {
2770
+ contents: import("react").ReactNode[] | undefined;
2771
+ } | undefined;
2728
2772
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
2729
2773
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
2730
2774
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -2754,6 +2798,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
2754
2798
  actions: {
2755
2799
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
2756
2800
  };
2801
+ sharedState: {
2802
+ contents: import("react").ReactNode[] | undefined;
2803
+ } | undefined;
2757
2804
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
2758
2805
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
2759
2806
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -3326,6 +3373,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
3326
3373
  actions: {
3327
3374
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
3328
3375
  };
3376
+ sharedState: {
3377
+ contents: import("react").ReactNode[] | undefined;
3378
+ } | undefined;
3329
3379
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
3330
3380
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
3331
3381
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -3355,6 +3405,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
3355
3405
  actions: {
3356
3406
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
3357
3407
  };
3408
+ sharedState: {
3409
+ contents: import("react").ReactNode[] | undefined;
3410
+ } | undefined;
3358
3411
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
3359
3412
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
3360
3413
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -3541,6 +3594,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
3541
3594
  actions: {
3542
3595
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
3543
3596
  };
3597
+ sharedState: {
3598
+ contents: import("react").ReactNode[] | undefined;
3599
+ } | undefined;
3544
3600
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
3545
3601
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
3546
3602
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -3570,6 +3626,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
3570
3626
  actions: {
3571
3627
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
3572
3628
  };
3629
+ sharedState: {
3630
+ contents: import("react").ReactNode[] | undefined;
3631
+ } | undefined;
3573
3632
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
3574
3633
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
3575
3634
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -3994,6 +4053,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
3994
4053
  actions: {
3995
4054
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
3996
4055
  };
4056
+ sharedState: {
4057
+ contents: import("react").ReactNode[] | undefined;
4058
+ } | undefined;
3997
4059
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
3998
4060
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
3999
4061
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -4023,6 +4085,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4023
4085
  actions: {
4024
4086
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
4025
4087
  };
4088
+ sharedState: {
4089
+ contents: import("react").ReactNode[] | undefined;
4090
+ } | undefined;
4026
4091
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
4027
4092
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
4028
4093
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -4436,6 +4501,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4436
4501
  actions: {
4437
4502
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
4438
4503
  };
4504
+ sharedState: {
4505
+ contents: import("react").ReactNode[] | undefined;
4506
+ } | undefined;
4439
4507
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
4440
4508
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
4441
4509
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -4465,6 +4533,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4465
4533
  actions: {
4466
4534
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
4467
4535
  };
4536
+ sharedState: {
4537
+ contents: import("react").ReactNode[] | undefined;
4538
+ } | undefined;
4468
4539
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
4469
4540
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
4470
4541
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -4649,6 +4720,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4649
4720
  actions: {
4650
4721
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
4651
4722
  };
4723
+ sharedState: {
4724
+ contents: import("react").ReactNode[] | undefined;
4725
+ } | undefined;
4652
4726
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
4653
4727
  pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
4654
4728
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -4678,6 +4752,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4678
4752
  actions: {
4679
4753
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
4680
4754
  };
4755
+ sharedState: {
4756
+ contents: import("react").ReactNode[] | undefined;
4757
+ } | undefined;
4681
4758
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
4682
4759
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
4683
4760
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -4908,6 +4985,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4908
4985
  actions: {
4909
4986
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
4910
4987
  };
4988
+ sharedState: {
4989
+ contents: import("react").ReactNode[] | undefined;
4990
+ } | undefined;
4911
4991
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
4912
4992
  pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
4913
4993
  sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
@@ -5083,6 +5163,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
5083
5163
  actions: {
5084
5164
  openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
5085
5165
  announceMentionsInsertion: (mentionIds: {
5166
+ type: "added" | "deleted";
5086
5167
  localId: string;
5087
5168
  id: string;
5088
5169
  }[]) => void;
@@ -6,7 +6,12 @@ export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
6
6
  export { default as CollapsedEditor } from './ui/CollapsedEditor';
7
7
  export { default as ToolbarHelp } from './ui/ToolbarHelp';
8
8
  export { default as ToolbarFeedback } from './ui/ToolbarFeedback';
9
- export { default as ContextPanel } from './ui/ContextPanel';
9
+ export {
10
+ /**
11
+ * @deprecated
12
+ * DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
13
+ */
14
+ default as ContextPanel, } from './ui/ContextPanel/deprecated';
10
15
  export { EmojiResource } from '@atlaskit/emoji/resource';
11
16
  export { MentionResource } from '@atlaskit/mention/resource';
12
17
  export type { MentionProvider, PresenceProvider } from '@atlaskit/mention/resource';