@atlaskit/editor-core 191.1.0 → 191.1.3

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 (77) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/afm-cc/tsconfig.json +3 -6
  3. package/dist/cjs/plugins/index.js +1 -8
  4. package/dist/cjs/presets/universal.js +10 -13
  5. package/dist/cjs/ui/Addon/click-area-helper.js +2 -0
  6. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +6 -12
  7. package/dist/cjs/version-wrapper.js +1 -1
  8. package/dist/es2019/plugins/index.js +1 -2
  9. package/dist/es2019/presets/universal.js +11 -14
  10. package/dist/es2019/ui/Addon/click-area-helper.js +2 -0
  11. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +4 -10
  12. package/dist/es2019/version-wrapper.js +1 -1
  13. package/dist/esm/plugins/index.js +1 -2
  14. package/dist/esm/presets/universal.js +11 -14
  15. package/dist/esm/ui/Addon/click-area-helper.js +2 -0
  16. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +4 -10
  17. package/dist/esm/version-wrapper.js +1 -1
  18. package/dist/types/plugins/index.d.ts +0 -1
  19. package/dist/types/presets/default.d.ts +6 -36
  20. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  21. package/dist/types-ts4.5/presets/default.d.ts +6 -36
  22. package/docs/0-intro.tsx +252 -174
  23. package/docs/1-legacy-editor.tsx +268 -0
  24. package/package.json +5 -5
  25. package/dist/cjs/plugins/avatar-group/index.js +0 -40
  26. package/dist/cjs/plugins/avatar-group/messages.js +0 -14
  27. package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -49
  28. package/dist/cjs/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -42
  29. package/dist/cjs/plugins/avatar-group/ui/avatars.js +0 -70
  30. package/dist/cjs/plugins/avatar-group/ui/colored-avatar-item.js +0 -20
  31. package/dist/cjs/plugins/avatar-group/ui/index.js +0 -9
  32. package/dist/cjs/plugins/avatar-group/ui/invite-to-edit.js +0 -45
  33. package/dist/cjs/plugins/avatar-group/ui/styles.js +0 -17
  34. package/dist/cjs/plugins/avatar-group/ui/to-avatar.js +0 -30
  35. package/dist/es2019/plugins/avatar-group/index.js +0 -35
  36. package/dist/es2019/plugins/avatar-group/messages.js +0 -8
  37. package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -53
  38. package/dist/es2019/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -38
  39. package/dist/es2019/plugins/avatar-group/ui/avatars.js +0 -62
  40. package/dist/es2019/plugins/avatar-group/ui/colored-avatar-item.js +0 -13
  41. package/dist/es2019/plugins/avatar-group/ui/index.js +0 -2
  42. package/dist/es2019/plugins/avatar-group/ui/invite-to-edit.js +0 -32
  43. package/dist/es2019/plugins/avatar-group/ui/styles.js +0 -46
  44. package/dist/es2019/plugins/avatar-group/ui/to-avatar.js +0 -16
  45. package/dist/esm/plugins/avatar-group/index.js +0 -33
  46. package/dist/esm/plugins/avatar-group/messages.js +0 -8
  47. package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -42
  48. package/dist/esm/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -35
  49. package/dist/esm/plugins/avatar-group/ui/avatars.js +0 -62
  50. package/dist/esm/plugins/avatar-group/ui/colored-avatar-item.js +0 -13
  51. package/dist/esm/plugins/avatar-group/ui/index.js +0 -2
  52. package/dist/esm/plugins/avatar-group/ui/invite-to-edit.js +0 -34
  53. package/dist/esm/plugins/avatar-group/ui/styles.js +0 -10
  54. package/dist/esm/plugins/avatar-group/ui/to-avatar.js +0 -23
  55. package/dist/types/plugins/avatar-group/index.d.ts +0 -19
  56. package/dist/types/plugins/avatar-group/messages.d.ts +0 -7
  57. package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +0 -18
  58. package/dist/types/plugins/avatar-group/ui/avatars-with-plugin-state.d.ts +0 -81
  59. package/dist/types/plugins/avatar-group/ui/avatars.d.ts +0 -17
  60. package/dist/types/plugins/avatar-group/ui/colored-avatar-item.d.ts +0 -10
  61. package/dist/types/plugins/avatar-group/ui/index.d.ts +0 -2
  62. package/dist/types/plugins/avatar-group/ui/invite-to-edit.d.ts +0 -10
  63. package/dist/types/plugins/avatar-group/ui/styles.d.ts +0 -3
  64. package/dist/types/plugins/avatar-group/ui/to-avatar.d.ts +0 -30
  65. package/dist/types-ts4.5/plugins/avatar-group/index.d.ts +0 -19
  66. package/dist/types-ts4.5/plugins/avatar-group/messages.d.ts +0 -7
  67. package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +0 -18
  68. package/dist/types-ts4.5/plugins/avatar-group/ui/avatars-with-plugin-state.d.ts +0 -97
  69. package/dist/types-ts4.5/plugins/avatar-group/ui/avatars.d.ts +0 -19
  70. package/dist/types-ts4.5/plugins/avatar-group/ui/colored-avatar-item.d.ts +0 -12
  71. package/dist/types-ts4.5/plugins/avatar-group/ui/index.d.ts +0 -2
  72. package/dist/types-ts4.5/plugins/avatar-group/ui/invite-to-edit.d.ts +0 -10
  73. package/dist/types-ts4.5/plugins/avatar-group/ui/styles.d.ts +0 -3
  74. package/dist/types-ts4.5/plugins/avatar-group/ui/to-avatar.d.ts +0 -37
  75. /package/docs/{1-labs.tsx → 2-labs.tsx} +0 -0
  76. /package/docs/{2-autoformatting.tsx → 3-autoformatting.tsx} +0 -0
  77. /package/docs/{3-annotations.tsx → 4-annotations.tsx} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 191.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#65788](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65788) [`be744e423e9f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be744e423e9f) - ED-21700 Extraction of avatar group plugin
8
+ - [#67194](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67194) [`37379761475c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37379761475c) - [ED-21806] Skip changes from NCS and tinted transactions.
9
+ - Updated dependencies
10
+
3
11
  ## 191.1.0
4
12
 
5
13
  ### Minor Changes
@@ -28,12 +28,6 @@
28
28
  {
29
29
  "path": "../../../analytics/analytics-next/afm-cc/tsconfig.json"
30
30
  },
31
- {
32
- "path": "../../../design-system/avatar/afm-cc/tsconfig.json"
33
- },
34
- {
35
- "path": "../../../design-system/avatar-group/afm-cc/tsconfig.json"
36
- },
37
31
  {
38
32
  "path": "../../../design-system/button/afm-cc/tsconfig.json"
39
33
  },
@@ -52,6 +46,9 @@
52
46
  {
53
47
  "path": "../../editor-plugin-annotation/afm-cc/tsconfig.json"
54
48
  },
49
+ {
50
+ "path": "../../editor-plugin-avatar-group/afm-cc/tsconfig.json"
51
+ },
55
52
  {
56
53
  "path": "../../editor-plugin-base/afm-cc/tsconfig.json"
57
54
  },
@@ -4,17 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- Object.defineProperty(exports, "avatarGroupPlugin", {
8
- enumerable: true,
9
- get: function get() {
10
- return _avatarGroup.default;
11
- }
12
- });
13
7
  Object.defineProperty(exports, "jiraIssuePlugin", {
14
8
  enumerable: true,
15
9
  get: function get() {
16
10
  return _jiraIssue.default;
17
11
  }
18
12
  });
19
- var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
20
- var _avatarGroup = _interopRequireDefault(require("./avatar-group"));
13
+ var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
@@ -49,6 +49,7 @@ var _editorPluginDataConsumer = require("@atlaskit/editor-plugin-data-consumer")
49
49
  var _editorPluginAnnotation = require("@atlaskit/editor-plugin-annotation");
50
50
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
51
51
  var _editorPluginCollabEdit = require("@atlaskit/editor-plugin-collab-edit");
52
+ var _editorPluginAvatarGroup = require("@atlaskit/editor-plugin-avatar-group");
52
53
  var _plugins = require("../plugins");
53
54
  var _editorPluginExtension = require("@atlaskit/editor-plugin-extension");
54
55
  var _editorPluginBeforePrimaryToolbar = require("@atlaskit/editor-plugin-before-primary-toolbar");
@@ -386,19 +387,15 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
386
387
  }]);
387
388
  }
388
389
  return builder;
389
- }).maybeAdd(_plugins.avatarGroupPlugin, function (plugin, builder) {
390
- if (!props.hideAvatarGroup && featureFlags.showAvatarGroupAsPlugin === true && !featureFlags.twoLineEditorToolbar) {
391
- // Avatars are moved to Confluence codebase for Edit in Context
392
- // When Edit in Context is enabled primaryToolbarComponents is undefined
393
- // For more details please check
394
- // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
395
- return builder.add([plugin, {
396
- collabEdit: props.collabEdit,
397
- takeFullWidth: !hasBeforePrimaryToolbar(props.primaryToolbarComponents)
398
- }]);
399
- }
400
- return builder;
401
- }).maybeAdd(_editorPluginFindReplace.findReplacePlugin, function (plugin, builder) {
390
+ }).add([_editorPluginAvatarGroup.avatarGroupPlugin, {
391
+ // Avatars are moved to Confluence codebase for Edit in Context
392
+ // When Edit in Context is enabled primaryToolbarComponents is undefined
393
+ // For more details please check
394
+ // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
395
+ collabEdit: props.collabEdit,
396
+ takeFullWidth: !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
397
+ showAvatarGroup: !props.hideAvatarGroup && featureFlags.showAvatarGroupAsPlugin === true && !featureFlags.twoLineEditorToolbar
398
+ }]).maybeAdd(_editorPluginFindReplace.findReplacePlugin, function (plugin, builder) {
402
399
  if (props.allowFindReplace) {
403
400
  return builder.add([plugin, {
404
401
  takeFullWidth: !props.hideAvatarGroup && !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
@@ -7,6 +7,7 @@ exports.clickAreaClickHandler = exports.checkForModal = void 0;
7
7
  var _utils = require("@atlaskit/editor-common/utils");
8
8
  var _selection = require("@atlaskit/editor-common/selection");
9
9
  var _commands = require("@atlaskit/editor-common/commands");
10
+ var _collab = require("@atlaskit/editor-common/collab");
10
11
  // we ignore all of the clicks made inside <div class="ak-editor-content-area" /> (but not clicks on the node itself)
11
12
  var insideContentArea = function insideContentArea(ref) {
12
13
  while (ref) {
@@ -101,6 +102,7 @@ var outsideProsemirrorEditorClickHandler = function outsideProsemirrorEditorClic
101
102
  (0, _commands.addParagraphAtEnd)(tr);
102
103
  }
103
104
  (0, _selection.setSelectionTopLevelBlocks)(tr, event, dom, view.posAtCoords.bind(view), isEditorFocused);
105
+ (0, _collab.tintDirtyTransaction)(tr);
104
106
  if (!tr.docChanged && !tr.selectionSet) {
105
107
  return;
106
108
  }
@@ -10,10 +10,9 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _react2 = require("@emotion/react");
12
12
  var _reactIntlNext = require("react-intl-next");
13
- var _ui = _interopRequireDefault(require("../../../plugins/avatar-group/ui"));
14
13
  var _Toolbar = _interopRequireDefault(require("../../Toolbar"));
15
14
  var _MainToolbar = require("./MainToolbar");
16
- var _ui2 = require("@atlaskit/editor-common/ui");
15
+ var _ui = require("@atlaskit/editor-common/ui");
17
16
  var _messages = require("@atlaskit/editor-common/messages");
18
17
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
19
18
  var _context = require("../../../presets/context");
@@ -23,7 +22,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
22
  /** @jsx jsx */
24
23
 
25
24
  var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
26
- var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _props$collabEdit, _props$collabEdit2, _props$collabEdit3, _editorAPI$analytics;
25
+ var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _editorAPI$avatarGrou, _props$collabEdit, _props$collabEdit2, _props$collabEdit3;
27
26
  var _useState = (0, _react.useState)(false),
28
27
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
29
28
  shouldSplitToolbar = _useState2[0],
@@ -56,20 +55,15 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
56
55
  css: _MainToolbar.customToolbarWrapperStyle
57
56
  }, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? (0, _react2.jsx)(_BeforeWrapper.BeforePrimaryToolbarWrapper, {
58
57
  beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
59
- }) : null, props.hideAvatarGroup || (props === null || props === void 0 || (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null :
60
- // Avatars are moved to Confluence codebase for Edit in Context
58
+ }) : null, props.hideAvatarGroup || (props === null || props === void 0 || (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null : // Avatars are moved to Confluence codebase for Edit in Context
61
59
  // When Edit in Context is enabled customPrimaryToolbarComponents is undefined
62
60
  // For more details please check
63
61
  // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
64
- (0, _react2.jsx)(_ui.default, {
62
+ editorAPI === null || editorAPI === void 0 || (_editorAPI$avatarGrou = editorAPI.avatarGroup) === null || _editorAPI$avatarGrou === void 0 ? void 0 : _editorAPI$avatarGrou.actions.getToolbarItem({
65
63
  editorView: props.editorView,
66
- eventDispatcher: props.eventDispatcher,
67
64
  inviteToEditComponent: (_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.inviteToEditComponent,
68
65
  inviteToEditHandler: (_props$collabEdit2 = props.collabEdit) === null || _props$collabEdit2 === void 0 ? void 0 : _props$collabEdit2.inviteToEditHandler,
69
- isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected,
70
- featureFlags: props.featureFlags || {},
71
- editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions,
72
- editorAPI: editorAPI
66
+ isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected
73
67
  }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbarButton({
74
68
  popupsBoundariesElement: props.popupsBoundariesElement,
75
69
  popupsMountPoint: props.popupsMountPoint,
@@ -103,7 +97,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
103
97
  event.preventDefault();
104
98
  event.stopPropagation();
105
99
  };
106
- return (0, _react2.jsx)(_ui2.ContextPanelConsumer, null, function (_ref) {
100
+ return (0, _react2.jsx)(_ui.ContextPanelConsumer, null, function (_ref) {
107
101
  var contextPanelWidth = _ref.width;
108
102
  return (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
109
103
  editorView: props.editorView,
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "191.1.0";
8
+ var version = exports.version = "191.1.3";
@@ -1,2 +1 @@
1
- export { default as jiraIssuePlugin } from './jira-issue';
2
- export { default as avatarGroupPlugin } from './avatar-group';
1
+ export { default as jiraIssuePlugin } from './jira-issue';
@@ -39,7 +39,8 @@ import { dataConsumerPlugin } from '@atlaskit/editor-plugin-data-consumer';
39
39
  import { annotationPlugin } from '@atlaskit/editor-plugin-annotation';
40
40
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
41
41
  import { collabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
42
- import { avatarGroupPlugin, jiraIssuePlugin } from '../plugins';
42
+ import { avatarGroupPlugin } from '@atlaskit/editor-plugin-avatar-group';
43
+ import { jiraIssuePlugin } from '../plugins';
43
44
  import { extensionPlugin } from '@atlaskit/editor-plugin-extension';
44
45
  import { beforePrimaryToolbarPlugin } from '@atlaskit/editor-plugin-before-primary-toolbar';
45
46
  import { feedbackDialogPlugin } from '@atlaskit/editor-plugin-feedback-dialog';
@@ -384,19 +385,15 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
384
385
  }]);
385
386
  }
386
387
  return builder;
387
- }).maybeAdd(avatarGroupPlugin, (plugin, builder) => {
388
- if (!props.hideAvatarGroup && featureFlags.showAvatarGroupAsPlugin === true && !featureFlags.twoLineEditorToolbar) {
389
- // Avatars are moved to Confluence codebase for Edit in Context
390
- // When Edit in Context is enabled primaryToolbarComponents is undefined
391
- // For more details please check
392
- // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
393
- return builder.add([plugin, {
394
- collabEdit: props.collabEdit,
395
- takeFullWidth: !hasBeforePrimaryToolbar(props.primaryToolbarComponents)
396
- }]);
397
- }
398
- return builder;
399
- }).maybeAdd(findReplacePlugin, (plugin, builder) => {
388
+ }).add([avatarGroupPlugin, {
389
+ // Avatars are moved to Confluence codebase for Edit in Context
390
+ // When Edit in Context is enabled primaryToolbarComponents is undefined
391
+ // For more details please check
392
+ // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
393
+ collabEdit: props.collabEdit,
394
+ takeFullWidth: !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
395
+ showAvatarGroup: !props.hideAvatarGroup && featureFlags.showAvatarGroupAsPlugin === true && !featureFlags.twoLineEditorToolbar
396
+ }]).maybeAdd(findReplacePlugin, (plugin, builder) => {
400
397
  if (props.allowFindReplace) {
401
398
  return builder.add([plugin, {
402
399
  takeFullWidth: !props.hideAvatarGroup && !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
@@ -1,6 +1,7 @@
1
1
  import { closestElement } from '@atlaskit/editor-common/utils';
2
2
  import { setSelectionTopLevelBlocks } from '@atlaskit/editor-common/selection';
3
3
  import { addParagraphAtEnd } from '@atlaskit/editor-common/commands';
4
+ import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
4
5
 
5
6
  // we ignore all of the clicks made inside <div class="ak-editor-content-area" /> (but not clicks on the node itself)
6
7
  const insideContentArea = ref => {
@@ -100,6 +101,7 @@ const outsideProsemirrorEditorClickHandler = (view, event) => {
100
101
  addParagraphAtEnd(tr);
101
102
  }
102
103
  setSelectionTopLevelBlocks(tr, event, dom, view.posAtCoords.bind(view), isEditorFocused);
104
+ tintDirtyTransaction(tr);
103
105
  if (!tr.docChanged && !tr.selectionSet) {
104
106
  return;
105
107
  }
@@ -3,7 +3,6 @@
3
3
  import React, { useState, useEffect } from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import { injectIntl } from 'react-intl-next';
6
- import AvatarsWithPluginState from '../../../plugins/avatar-group/ui';
7
6
  import Toolbar from '../../Toolbar';
8
7
  import { mainToolbarStyle, mainToolbarIconBeforeStyle, mainToolbarFirstChildStyle, mainToolbarSecondChildStyle, nonCustomToolbarWrapperStyle, customToolbarWrapperStyle, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
9
8
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
@@ -12,7 +11,7 @@ import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-me
12
11
  import { usePresetContext } from '../../../presets/context';
13
12
  import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
14
13
  export const EditorToolbar = /*#__PURE__*/React.memo(props => {
15
- var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _props$collabEdit, _props$collabEdit2, _props$collabEdit3, _editorAPI$analytics;
14
+ var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _editorAPI$avatarGrou, _props$collabEdit, _props$collabEdit2, _props$collabEdit3;
16
15
  const [shouldSplitToolbar, setShouldSplitToolbar] = useState(false);
17
16
  const editorAPI = usePresetContext();
18
17
 
@@ -42,20 +41,15 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
42
41
  css: customToolbarWrapperStyle
43
42
  }, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? jsx(BeforePrimaryToolbarWrapper, {
44
43
  beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
45
- }) : null, props.hideAvatarGroup || (props === null || props === void 0 ? void 0 : (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null :
46
- // Avatars are moved to Confluence codebase for Edit in Context
44
+ }) : null, props.hideAvatarGroup || (props === null || props === void 0 ? void 0 : (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null : // Avatars are moved to Confluence codebase for Edit in Context
47
45
  // When Edit in Context is enabled customPrimaryToolbarComponents is undefined
48
46
  // For more details please check
49
47
  // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
50
- jsx(AvatarsWithPluginState, {
48
+ editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$avatarGrou = editorAPI.avatarGroup) === null || _editorAPI$avatarGrou === void 0 ? void 0 : _editorAPI$avatarGrou.actions.getToolbarItem({
51
49
  editorView: props.editorView,
52
- eventDispatcher: props.eventDispatcher,
53
50
  inviteToEditComponent: (_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.inviteToEditComponent,
54
51
  inviteToEditHandler: (_props$collabEdit2 = props.collabEdit) === null || _props$collabEdit2 === void 0 ? void 0 : _props$collabEdit2.inviteToEditHandler,
55
- isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected,
56
- featureFlags: props.featureFlags || {},
57
- editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions,
58
- editorAPI: editorAPI
52
+ isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected
59
53
  }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbarButton({
60
54
  popupsBoundariesElement: props.popupsBoundariesElement,
61
55
  popupsMountPoint: props.popupsMountPoint,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "191.1.0";
2
+ export const version = "191.1.3";
@@ -1,2 +1 @@
1
- export { default as jiraIssuePlugin } from './jira-issue';
2
- export { default as avatarGroupPlugin } from './avatar-group';
1
+ export { default as jiraIssuePlugin } from './jira-issue';
@@ -43,7 +43,8 @@ import { dataConsumerPlugin } from '@atlaskit/editor-plugin-data-consumer';
43
43
  import { annotationPlugin } from '@atlaskit/editor-plugin-annotation';
44
44
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
45
45
  import { collabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
46
- import { avatarGroupPlugin, jiraIssuePlugin } from '../plugins';
46
+ import { avatarGroupPlugin } from '@atlaskit/editor-plugin-avatar-group';
47
+ import { jiraIssuePlugin } from '../plugins';
47
48
  import { extensionPlugin } from '@atlaskit/editor-plugin-extension';
48
49
  import { beforePrimaryToolbarPlugin } from '@atlaskit/editor-plugin-before-primary-toolbar';
49
50
  import { feedbackDialogPlugin } from '@atlaskit/editor-plugin-feedback-dialog';
@@ -378,19 +379,15 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
378
379
  }]);
379
380
  }
380
381
  return builder;
381
- }).maybeAdd(avatarGroupPlugin, function (plugin, builder) {
382
- if (!props.hideAvatarGroup && featureFlags.showAvatarGroupAsPlugin === true && !featureFlags.twoLineEditorToolbar) {
383
- // Avatars are moved to Confluence codebase for Edit in Context
384
- // When Edit in Context is enabled primaryToolbarComponents is undefined
385
- // For more details please check
386
- // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
387
- return builder.add([plugin, {
388
- collabEdit: props.collabEdit,
389
- takeFullWidth: !hasBeforePrimaryToolbar(props.primaryToolbarComponents)
390
- }]);
391
- }
392
- return builder;
393
- }).maybeAdd(findReplacePlugin, function (plugin, builder) {
382
+ }).add([avatarGroupPlugin, {
383
+ // Avatars are moved to Confluence codebase for Edit in Context
384
+ // When Edit in Context is enabled primaryToolbarComponents is undefined
385
+ // For more details please check
386
+ // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
387
+ collabEdit: props.collabEdit,
388
+ takeFullWidth: !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
389
+ showAvatarGroup: !props.hideAvatarGroup && featureFlags.showAvatarGroupAsPlugin === true && !featureFlags.twoLineEditorToolbar
390
+ }]).maybeAdd(findReplacePlugin, function (plugin, builder) {
394
391
  if (props.allowFindReplace) {
395
392
  return builder.add([plugin, {
396
393
  takeFullWidth: !props.hideAvatarGroup && !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
@@ -1,6 +1,7 @@
1
1
  import { closestElement } from '@atlaskit/editor-common/utils';
2
2
  import { setSelectionTopLevelBlocks } from '@atlaskit/editor-common/selection';
3
3
  import { addParagraphAtEnd } from '@atlaskit/editor-common/commands';
4
+ import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
4
5
 
5
6
  // we ignore all of the clicks made inside <div class="ak-editor-content-area" /> (but not clicks on the node itself)
6
7
  var insideContentArea = function insideContentArea(ref) {
@@ -96,6 +97,7 @@ var outsideProsemirrorEditorClickHandler = function outsideProsemirrorEditorClic
96
97
  addParagraphAtEnd(tr);
97
98
  }
98
99
  setSelectionTopLevelBlocks(tr, event, dom, view.posAtCoords.bind(view), isEditorFocused);
100
+ tintDirtyTransaction(tr);
99
101
  if (!tr.docChanged && !tr.selectionSet) {
100
102
  return;
101
103
  }
@@ -4,7 +4,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import React, { useState, useEffect } from 'react';
5
5
  import { jsx } from '@emotion/react';
6
6
  import { injectIntl } from 'react-intl-next';
7
- import AvatarsWithPluginState from '../../../plugins/avatar-group/ui';
8
7
  import Toolbar from '../../Toolbar';
9
8
  import { mainToolbarStyle, mainToolbarIconBeforeStyle, mainToolbarFirstChildStyle, mainToolbarSecondChildStyle, nonCustomToolbarWrapperStyle, customToolbarWrapperStyle, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
10
9
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
@@ -13,7 +12,7 @@ import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-me
13
12
  import { usePresetContext } from '../../../presets/context';
14
13
  import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
15
14
  export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
16
- var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _props$collabEdit, _props$collabEdit2, _props$collabEdit3, _editorAPI$analytics;
15
+ var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _editorAPI$avatarGrou, _props$collabEdit, _props$collabEdit2, _props$collabEdit3;
17
16
  var _useState = useState(false),
18
17
  _useState2 = _slicedToArray(_useState, 2),
19
18
  shouldSplitToolbar = _useState2[0],
@@ -46,20 +45,15 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
46
45
  css: customToolbarWrapperStyle
47
46
  }, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? jsx(BeforePrimaryToolbarWrapper, {
48
47
  beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
49
- }) : null, props.hideAvatarGroup || (props === null || props === void 0 || (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null :
50
- // Avatars are moved to Confluence codebase for Edit in Context
48
+ }) : null, props.hideAvatarGroup || (props === null || props === void 0 || (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null : // Avatars are moved to Confluence codebase for Edit in Context
51
49
  // When Edit in Context is enabled customPrimaryToolbarComponents is undefined
52
50
  // For more details please check
53
51
  // https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
54
- jsx(AvatarsWithPluginState, {
52
+ editorAPI === null || editorAPI === void 0 || (_editorAPI$avatarGrou = editorAPI.avatarGroup) === null || _editorAPI$avatarGrou === void 0 ? void 0 : _editorAPI$avatarGrou.actions.getToolbarItem({
55
53
  editorView: props.editorView,
56
- eventDispatcher: props.eventDispatcher,
57
54
  inviteToEditComponent: (_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.inviteToEditComponent,
58
55
  inviteToEditHandler: (_props$collabEdit2 = props.collabEdit) === null || _props$collabEdit2 === void 0 ? void 0 : _props$collabEdit2.inviteToEditHandler,
59
- isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected,
60
- featureFlags: props.featureFlags || {},
61
- editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions,
62
- editorAPI: editorAPI
56
+ isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected
63
57
  }), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbarButton({
64
58
  popupsBoundariesElement: props.popupsBoundariesElement,
65
59
  popupsMountPoint: props.popupsMountPoint,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "191.1.0";
2
+ export var version = "191.1.3";
@@ -1,2 +1 @@
1
1
  export { default as jiraIssuePlugin } from './jira-issue';
2
- export { default as avatarGroupPlugin } from './avatar-group';
@@ -338,12 +338,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
338
338
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
339
339
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
340
340
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
341
- sharedState: {
342
- query: string;
343
- isOpen: boolean;
344
- isAllowed: boolean;
345
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
346
- };
341
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
347
342
  actions: {
348
343
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
349
344
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -386,12 +381,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
386
381
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
387
382
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
388
383
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
389
- sharedState: {
390
- query: string;
391
- isOpen: boolean;
392
- isAllowed: boolean;
393
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
394
- };
384
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
395
385
  actions: {
396
386
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
397
387
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -435,12 +425,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
435
425
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
436
426
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
437
427
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
438
- sharedState: {
439
- query: string;
440
- isOpen: boolean;
441
- isAllowed: boolean;
442
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
443
- };
428
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
444
429
  actions: {
445
430
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
446
431
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -834,12 +819,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
834
819
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
835
820
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
836
821
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
837
- sharedState: {
838
- query: string;
839
- isOpen: boolean;
840
- isAllowed: boolean;
841
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
842
- };
822
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
843
823
  actions: {
844
824
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
845
825
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -882,12 +862,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
882
862
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
883
863
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
884
864
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
885
- sharedState: {
886
- query: string;
887
- isOpen: boolean;
888
- isAllowed: boolean;
889
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
890
- };
865
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
891
866
  actions: {
892
867
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
893
868
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -931,12 +906,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
931
906
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
932
907
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
933
908
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
934
- sharedState: {
935
- query: string;
936
- isOpen: boolean;
937
- isAllowed: boolean;
938
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
939
- };
909
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
940
910
  actions: {
941
911
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
942
912
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -1,2 +1 @@
1
1
  export { default as jiraIssuePlugin } from './jira-issue';
2
- export { default as avatarGroupPlugin } from './avatar-group';
@@ -435,12 +435,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
435
435
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
436
436
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
437
437
  ];
438
- sharedState: {
439
- query: string;
440
- isOpen: boolean;
441
- isAllowed: boolean;
442
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
443
- };
438
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
444
439
  actions: {
445
440
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
446
441
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -489,12 +484,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
489
484
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
490
485
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
491
486
  ];
492
- sharedState: {
493
- query: string;
494
- isOpen: boolean;
495
- isAllowed: boolean;
496
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
497
- };
487
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
498
488
  actions: {
499
489
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
500
490
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -544,12 +534,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
544
534
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
545
535
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
546
536
  ];
547
- sharedState: {
548
- query: string;
549
- isOpen: boolean;
550
- isAllowed: boolean;
551
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
552
- };
537
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
553
538
  actions: {
554
539
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
555
540
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -1054,12 +1039,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
1054
1039
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1055
1040
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
1056
1041
  ];
1057
- sharedState: {
1058
- query: string;
1059
- isOpen: boolean;
1060
- isAllowed: boolean;
1061
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
1062
- };
1042
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
1063
1043
  actions: {
1064
1044
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
1065
1045
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -1108,12 +1088,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
1108
1088
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1109
1089
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
1110
1090
  ];
1111
- sharedState: {
1112
- query: string;
1113
- isOpen: boolean;
1114
- isAllowed: boolean;
1115
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
1116
- };
1091
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
1117
1092
  actions: {
1118
1093
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
1119
1094
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
@@ -1163,12 +1138,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
1163
1138
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1164
1139
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
1165
1140
  ];
1166
- sharedState: {
1167
- query: string;
1168
- isOpen: boolean;
1169
- isAllowed: boolean;
1170
- currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
1171
- };
1141
+ sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
1172
1142
  actions: {
1173
1143
  isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
1174
1144
  isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;