@atlaskit/editor-core 203.9.0 → 203.10.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 (39) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/composable-editor/editor-internal.js +1 -0
  3. package/dist/cjs/composable-editor/hooks/useProviders.js +7 -0
  4. package/dist/cjs/create-editor/ReactEditorViewNext.js +1 -0
  5. package/dist/cjs/presets/universal.js +2 -1
  6. package/dist/cjs/ui/Appearance/Chromeless.js +1 -0
  7. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -0
  8. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +1 -0
  9. package/dist/cjs/ui/ChromeCollapsed/styles.js +2 -0
  10. package/dist/cjs/version-wrapper.js +1 -1
  11. package/dist/es2019/composable-editor/editor-internal.js +1 -0
  12. package/dist/es2019/composable-editor/hooks/useProviders.js +7 -0
  13. package/dist/es2019/create-editor/ReactEditorViewNext.js +1 -0
  14. package/dist/es2019/presets/universal.js +1 -0
  15. package/dist/es2019/ui/Appearance/Chromeless.js +1 -0
  16. package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -0
  17. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +1 -0
  18. package/dist/es2019/ui/ChromeCollapsed/styles.js +2 -0
  19. package/dist/es2019/version-wrapper.js +1 -1
  20. package/dist/esm/composable-editor/editor-internal.js +1 -0
  21. package/dist/esm/composable-editor/hooks/useProviders.js +7 -0
  22. package/dist/esm/create-editor/ReactEditorViewNext.js +1 -0
  23. package/dist/esm/presets/universal.js +2 -1
  24. package/dist/esm/ui/Appearance/Chromeless.js +1 -0
  25. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -0
  26. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +1 -0
  27. package/dist/esm/ui/ChromeCollapsed/styles.js +2 -0
  28. package/dist/esm/version-wrapper.js +1 -1
  29. package/dist/types/composable-editor/hooks/useProviders.d.ts +9 -5
  30. package/dist/types/create-editor/create-universal-preset.d.ts +20 -1
  31. package/dist/types/presets/default.d.ts +20 -2
  32. package/dist/types/presets/universal.d.ts +20 -1
  33. package/dist/types/presets/useUniversalPreset.d.ts +20 -1
  34. package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +9 -5
  35. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +24 -1
  36. package/dist/types-ts4.5/presets/default.d.ts +24 -2
  37. package/dist/types-ts4.5/presets/universal.d.ts +24 -1
  38. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +24 -1
  39. package/package.json +14 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 203.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#101149](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101149)
8
+ [`ab4c33f1ecd77`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ab4c33f1ecd77) -
9
+ [ux] Fixes issue where the extension label is causing inline macros to have a large line gap &
10
+ updates tests accordingly
11
+
12
+ ## 203.10.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#100935](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100935)
17
+ [`44dcbb7e1884c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/44dcbb7e1884c) -
18
+ clean up platform_editor_element_dnd_nested_fix_patch_1 feature gate
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 203.9.0
4
25
 
5
26
  ### Minor Changes
@@ -218,6 +218,7 @@ function ReactEditorViewContextWrapper(props) {
218
218
  editorApi: editorAPI,
219
219
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
220
220
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
221
+ mentionProvider: props.editorProps.mentionProvider,
221
222
  cardProvider: ((_linking = props.editorProps.linking) === null || _linking === void 0 || (_linking = _linking.smartLinks) === null || _linking === void 0 ? void 0 : _linking.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
222
223
  emojiProvider: props.editorProps.emojiProvider,
223
224
  autoformattingProvider: props.editorProps.autoformattingProvider,
@@ -20,6 +20,7 @@ var useProviders = exports.useProviders = function useProviders(_ref) {
20
20
  var editorApi = _ref.editorApi,
21
21
  contextIdentifierProvider = _ref.contextIdentifierProvider,
22
22
  mediaProvider = _ref.mediaProvider,
23
+ mentionProvider = _ref.mentionProvider,
23
24
  cardProvider = _ref.cardProvider,
24
25
  emojiProvider = _ref.emojiProvider,
25
26
  autoformattingProvider = _ref.autoformattingProvider,
@@ -64,6 +65,12 @@ var useProviders = exports.useProviders = function useProviders(_ref) {
64
65
  editorApi === null || editorApi === void 0 || (_editorApi$media = editorApi.media) === null || _editorApi$media === void 0 || _editorApi$media.actions.setProvider(mediaProvider);
65
66
  }
66
67
  }, [mediaProvider, editorApi]);
68
+ (0, _react.useEffect)(function () {
69
+ if (mentionProvider) {
70
+ var _editorApi$mention;
71
+ editorApi === null || editorApi === void 0 || (_editorApi$mention = editorApi.mention) === null || _editorApi$mention === void 0 || _editorApi$mention.actions.setProvider(mentionProvider);
72
+ }
73
+ }, [mentionProvider, editorApi]);
67
74
  (0, _react.useEffect)(function () {
68
75
  if (cardProvider) {
69
76
  var _editorApi$card;
@@ -383,6 +383,7 @@ function ReactEditorView(props) {
383
383
  editorApi: editorAPI,
384
384
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
385
385
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
386
+ mentionProvider: props.editorProps.mentionProvider,
386
387
  cardProvider: ((_linking = props.editorProps.linking) === null || _linking === void 0 || (_linking = _linking.smartLinks) === null || _linking === void 0 ? void 0 : _linking.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
387
388
  emojiProvider: props.editorProps.emojiProvider,
388
389
  autoformattingProvider: props.editorProps.autoformattingProvider,
@@ -141,7 +141,8 @@ function createUniversalPresetInternal(_ref) {
141
141
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
142
142
  allowZeroWidthSpaceAfter: true,
143
143
  HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
144
- profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
144
+ profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
145
+ mentionProvider: props.mentionProvider
145
146
  }, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd([_emoji.emojiPlugin, {
146
147
  emojiProvider: props.emojiProvider,
147
148
  emojiNodeDataProvider: initialPluginConfiguration === null || initialPluginConfiguration === void 0 || (_initialPluginConfigu = initialPluginConfiguration.emoji) === null || _initialPluginConfigu === void 0 ? void 0 : _initialPluginConfigu.emojiNodeDataProvider
@@ -27,6 +27,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
27
27
  * @jsx jsx
28
28
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
29
29
  var chromelessEditorStyles = (0, _react2.css)({
30
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
30
31
  lineHeight: '20px',
31
32
  height: 'auto',
32
33
  overflowX: 'hidden',
@@ -59,6 +59,7 @@ var commentEditorStyles = (0, _react2.css)({
59
59
  var ContentArea = (0, _ContentStyles.createEditorContentStyle)((0, _react2.css)({
60
60
  flexGrow: 1,
61
61
  overflowX: 'clip',
62
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
62
63
  lineHeight: '24px',
63
64
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
64
65
  '.ProseMirror': {
@@ -148,6 +148,7 @@ var editorContentAreaWithLayoutWith = function editorContentAreaWithLayoutWith(l
148
148
  });
149
149
  };
150
150
  var editorContentArea = (0, _react.css)({
151
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
151
152
  lineHeight: '24px',
152
153
  paddingTop: "var(--ds-space-600, 48px)",
153
154
  paddingBottom: "var(--ds-space-600, 48px)",
@@ -26,7 +26,9 @@ var inputStyle = exports.inputStyle = (0, _react.css)({
26
26
  fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(14),
27
27
  width: '100%',
28
28
  fontWeight: "var(--ds-font-weight-regular, 400)",
29
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
29
30
  lineHeight: 1.42857142857143,
31
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
30
32
  letterSpacing: '-0.005em',
31
33
  color: "var(--ds-text-subtlest, #626F86)",
32
34
  '&:hover': {
@@ -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 = "203.9.0";
8
+ var version = exports.version = "203.10.1";
@@ -205,6 +205,7 @@ function ReactEditorViewContextWrapper(props) {
205
205
  editorApi: editorAPI,
206
206
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
207
207
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
208
+ mentionProvider: props.editorProps.mentionProvider,
208
209
  cardProvider: ((_linking = props.editorProps.linking) === null || _linking === void 0 ? void 0 : (_linking$smartLinks = _linking.smartLinks) === null || _linking$smartLinks === void 0 ? void 0 : _linking$smartLinks.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
209
210
  emojiProvider: props.editorProps.emojiProvider,
210
211
  autoformattingProvider: props.editorProps.autoformattingProvider,
@@ -11,6 +11,7 @@ export const useProviders = ({
11
11
  editorApi,
12
12
  contextIdentifierProvider,
13
13
  mediaProvider,
14
+ mentionProvider,
14
15
  cardProvider,
15
16
  emojiProvider,
16
17
  autoformattingProvider,
@@ -35,6 +36,12 @@ export const useProviders = ({
35
36
  editorApi === null || editorApi === void 0 ? void 0 : (_editorApi$media = editorApi.media) === null || _editorApi$media === void 0 ? void 0 : _editorApi$media.actions.setProvider(mediaProvider);
36
37
  }
37
38
  }, [mediaProvider, editorApi]);
39
+ useEffect(() => {
40
+ if (mentionProvider) {
41
+ var _editorApi$mention;
42
+ editorApi === null || editorApi === void 0 ? void 0 : (_editorApi$mention = editorApi.mention) === null || _editorApi$mention === void 0 ? void 0 : _editorApi$mention.actions.setProvider(mentionProvider);
43
+ }
44
+ }, [mentionProvider, editorApi]);
38
45
  useEffect(() => {
39
46
  if (cardProvider) {
40
47
  var _editorApi$card;
@@ -358,6 +358,7 @@ function ReactEditorView(props) {
358
358
  editorApi: editorAPI,
359
359
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
360
360
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
361
+ mentionProvider: props.editorProps.mentionProvider,
361
362
  cardProvider: ((_linking = props.editorProps.linking) === null || _linking === void 0 ? void 0 : (_linking$smartLinks = _linking.smartLinks) === null || _linking$smartLinks === void 0 ? void 0 : _linking$smartLinks.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
362
363
  emojiProvider: props.editorProps.emojiProvider,
363
364
  autoformattingProvider: props.editorProps.autoformattingProvider,
@@ -133,6 +133,7 @@ export default function createUniversalPresetInternal({
133
133
  allowZeroWidthSpaceAfter: true,
134
134
  HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
135
135
  profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
136
+ mentionProvider: props.mentionProvider,
136
137
  ...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)
137
138
  }], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
138
139
  emojiProvider: props.emojiProvider,
@@ -13,6 +13,7 @@ import { createEditorContentStyle } from '../ContentStyles';
13
13
  import PluginSlot from '../PluginSlot';
14
14
  import WithFlash from '../WithFlash';
15
15
  const chromelessEditorStyles = css({
16
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
16
17
  lineHeight: '20px',
17
18
  height: 'auto',
18
19
  overflowX: 'hidden',
@@ -46,6 +46,7 @@ const commentEditorStyles = css({
46
46
  const ContentArea = createEditorContentStyle(css({
47
47
  flexGrow: 1,
48
48
  overflowX: 'clip',
49
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
49
50
  lineHeight: '24px',
50
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
51
52
  '.ProseMirror': {
@@ -133,6 +133,7 @@ const editorContentAreaWithLayoutWith = layoutMaxWidth => css({
133
133
  maxWidth: `${layoutMaxWidth + getTotalPadding()}px`
134
134
  });
135
135
  const editorContentArea = css({
136
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
136
137
  lineHeight: '24px',
137
138
  paddingTop: "var(--ds-space-600, 48px)",
138
139
  paddingBottom: "var(--ds-space-600, 48px)",
@@ -19,7 +19,9 @@ export const inputStyle = css({
19
19
  fontSize: relativeFontSizeToBase16(14),
20
20
  width: '100%',
21
21
  fontWeight: "var(--ds-font-weight-regular, 400)",
22
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
22
23
  lineHeight: 1.42857142857143,
24
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
23
25
  letterSpacing: '-0.005em',
24
26
  color: "var(--ds-text-subtlest, #626F86)",
25
27
  '&:hover': {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "203.9.0";
2
+ export const version = "203.10.1";
@@ -214,6 +214,7 @@ function ReactEditorViewContextWrapper(props) {
214
214
  editorApi: editorAPI,
215
215
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
216
216
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
217
+ mentionProvider: props.editorProps.mentionProvider,
217
218
  cardProvider: ((_linking = props.editorProps.linking) === null || _linking === void 0 || (_linking = _linking.smartLinks) === null || _linking === void 0 ? void 0 : _linking.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
218
219
  emojiProvider: props.editorProps.emojiProvider,
219
220
  autoformattingProvider: props.editorProps.autoformattingProvider,
@@ -13,6 +13,7 @@ export var useProviders = function useProviders(_ref) {
13
13
  var editorApi = _ref.editorApi,
14
14
  contextIdentifierProvider = _ref.contextIdentifierProvider,
15
15
  mediaProvider = _ref.mediaProvider,
16
+ mentionProvider = _ref.mentionProvider,
16
17
  cardProvider = _ref.cardProvider,
17
18
  emojiProvider = _ref.emojiProvider,
18
19
  autoformattingProvider = _ref.autoformattingProvider,
@@ -57,6 +58,12 @@ export var useProviders = function useProviders(_ref) {
57
58
  editorApi === null || editorApi === void 0 || (_editorApi$media = editorApi.media) === null || _editorApi$media === void 0 || _editorApi$media.actions.setProvider(mediaProvider);
58
59
  }
59
60
  }, [mediaProvider, editorApi]);
61
+ useEffect(function () {
62
+ if (mentionProvider) {
63
+ var _editorApi$mention;
64
+ editorApi === null || editorApi === void 0 || (_editorApi$mention = editorApi.mention) === null || _editorApi$mention === void 0 || _editorApi$mention.actions.setProvider(mentionProvider);
65
+ }
66
+ }, [mentionProvider, editorApi]);
60
67
  useEffect(function () {
61
68
  if (cardProvider) {
62
69
  var _editorApi$card;
@@ -373,6 +373,7 @@ function ReactEditorView(props) {
373
373
  editorApi: editorAPI,
374
374
  contextIdentifierProvider: props.editorProps.contextIdentifierProvider,
375
375
  mediaProvider: (_media = props.editorProps.media) === null || _media === void 0 ? void 0 : _media.provider,
376
+ mentionProvider: props.editorProps.mentionProvider,
376
377
  cardProvider: ((_linking = props.editorProps.linking) === null || _linking === void 0 || (_linking = _linking.smartLinks) === null || _linking === void 0 ? void 0 : _linking.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider,
377
378
  emojiProvider: props.editorProps.emojiProvider,
378
379
  autoformattingProvider: props.editorProps.autoformattingProvider,
@@ -134,7 +134,8 @@ export default function createUniversalPresetInternal(_ref) {
134
134
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
135
135
  allowZeroWidthSpaceAfter: true,
136
136
  HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
137
- profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
137
+ profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
138
+ mentionProvider: props.mentionProvider
138
139
  }, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
139
140
  emojiProvider: props.emojiProvider,
140
141
  emojiNodeDataProvider: initialPluginConfiguration === null || initialPluginConfiguration === void 0 || (_initialPluginConfigu = initialPluginConfiguration.emoji) === null || _initialPluginConfigu === void 0 ? void 0 : _initialPluginConfigu.emojiNodeDataProvider
@@ -20,6 +20,7 @@ import { createEditorContentStyle } from '../ContentStyles';
20
20
  import PluginSlot from '../PluginSlot';
21
21
  import WithFlash from '../WithFlash';
22
22
  var chromelessEditorStyles = css({
23
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
23
24
  lineHeight: '20px',
24
25
  height: 'auto',
25
26
  overflowX: 'hidden',
@@ -47,6 +47,7 @@ var commentEditorStyles = css({
47
47
  var ContentArea = createEditorContentStyle(css({
48
48
  flexGrow: 1,
49
49
  overflowX: 'clip',
50
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
50
51
  lineHeight: '24px',
51
52
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
52
53
  '.ProseMirror': {
@@ -141,6 +141,7 @@ var editorContentAreaWithLayoutWith = function editorContentAreaWithLayoutWith(l
141
141
  });
142
142
  };
143
143
  var editorContentArea = css({
144
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
144
145
  lineHeight: '24px',
145
146
  paddingTop: "var(--ds-space-600, 48px)",
146
147
  paddingBottom: "var(--ds-space-600, 48px)",
@@ -19,7 +19,9 @@ export var inputStyle = css({
19
19
  fontSize: relativeFontSizeToBase16(14),
20
20
  width: '100%',
21
21
  fontWeight: "var(--ds-font-weight-regular, 400)",
22
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
22
23
  lineHeight: 1.42857142857143,
24
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
23
25
  letterSpacing: '-0.005em',
24
26
  color: "var(--ds-text-subtlest, #626F86)",
25
27
  '&:hover': {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "203.9.0";
2
+ export var version = "203.10.1";
@@ -2,16 +2,19 @@ import type { AutoformattingProvider, CardProvider, ContextIdentifierProvider, M
2
2
  import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
3
3
  import type { CardPlugin } from '@atlaskit/editor-plugins/card';
4
4
  import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugins/context-identifier';
5
- import { type CustomAutoformatPlugin } from '@atlaskit/editor-plugins/custom-autoformat';
6
- import { type EmojiPlugin } from '@atlaskit/editor-plugins/emoji';
5
+ import type { CustomAutoformatPlugin } from '@atlaskit/editor-plugins/custom-autoformat';
6
+ import type { EmojiPlugin } from '@atlaskit/editor-plugins/emoji';
7
7
  import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
8
- import { type TasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
9
- import { type EmojiProvider } from '@atlaskit/emoji';
8
+ import type { MentionsPlugin } from '@atlaskit/editor-plugins/mentions';
9
+ import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
10
+ import type { EmojiProvider } from '@atlaskit/emoji';
11
+ import type { MentionProvider } from '@atlaskit/mention/resource';
10
12
  import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
11
13
  interface UseProvidersProps {
12
14
  editorApi: PublicPluginAPI<[
13
15
  OptionalPlugin<ContextIdentifierPlugin>,
14
16
  OptionalPlugin<MediaPlugin>,
17
+ OptionalPlugin<MentionsPlugin>,
15
18
  OptionalPlugin<CardPlugin>,
16
19
  OptionalPlugin<EmojiPlugin>,
17
20
  OptionalPlugin<CustomAutoformatPlugin>,
@@ -19,6 +22,7 @@ interface UseProvidersProps {
19
22
  ]> | undefined;
20
23
  contextIdentifierProvider: Promise<ContextIdentifierProvider> | undefined;
21
24
  mediaProvider: Promise<MediaProvider> | undefined;
25
+ mentionProvider: Promise<MentionProvider> | undefined;
22
26
  cardProvider: Promise<CardProvider> | undefined;
23
27
  emojiProvider: Promise<EmojiProvider> | undefined;
24
28
  autoformattingProvider: Promise<AutoformattingProvider> | undefined;
@@ -32,5 +36,5 @@ interface UseProvidersProps {
32
36
  *
33
37
  * In the future ideally consumers implement this behaviour themselves.
34
38
  */
35
- export declare const useProviders: ({ editorApi, contextIdentifierProvider, mediaProvider, cardProvider, emojiProvider, autoformattingProvider, taskDecisionProvider, }: UseProvidersProps) => void;
39
+ export declare const useProviders: ({ editorApi, contextIdentifierProvider, mediaProvider, mentionProvider, cardProvider, emojiProvider, autoformattingProvider, taskDecisionProvider, }: UseProvidersProps) => void;
36
40
  export {};
@@ -415,6 +415,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
415
415
  actions: {
416
416
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
417
417
  };
418
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
419
+ sharedState: {
420
+ mode: "offline" | "online";
421
+ };
418
422
  }, undefined>>];
419
423
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
420
424
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1157,6 +1161,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1157
1161
  id: string;
1158
1162
  taskLocalId?: string | undefined;
1159
1163
  }[]) => void;
1164
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
1160
1165
  };
1161
1166
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
1162
1167
  sharedState: {
@@ -1908,6 +1913,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1908
1913
  actions: {
1909
1914
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
1910
1915
  };
1916
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
1917
+ sharedState: {
1918
+ mode: "offline" | "online";
1919
+ };
1911
1920
  }, undefined>>];
1912
1921
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
1913
1922
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -3431,6 +3440,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
3431
3440
  id: string;
3432
3441
  taskLocalId?: string | undefined;
3433
3442
  }[]) => void;
3443
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
3434
3444
  };
3435
3445
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
3436
3446
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -6278,6 +6288,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
6278
6288
  actions: {
6279
6289
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
6280
6290
  };
6291
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
6292
+ sharedState: {
6293
+ mode: "offline" | "online";
6294
+ };
6281
6295
  }, undefined>>];
6282
6296
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
6283
6297
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -6356,7 +6370,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
6356
6370
  commands: {
6357
6371
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
6358
6372
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
6359
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
6373
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
6360
6374
  };
6361
6375
  }, import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
6362
6376
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
@@ -6901,6 +6915,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
6901
6915
  actions: {
6902
6916
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
6903
6917
  };
6918
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
6919
+ sharedState: {
6920
+ mode: "offline" | "online";
6921
+ };
6904
6922
  }, undefined>>];
6905
6923
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
6906
6924
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -7643,6 +7661,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
7643
7661
  id: string;
7644
7662
  taskLocalId?: string | undefined;
7645
7663
  }[]) => void;
7664
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
7646
7665
  };
7647
7666
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
7648
7667
  sharedState: {
@@ -1419,6 +1419,10 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1419
1419
  actions: {
1420
1420
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
1421
1421
  };
1422
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
1423
+ sharedState: {
1424
+ mode: "offline" | "online";
1425
+ };
1422
1426
  }, undefined>>];
1423
1427
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
1424
1428
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1497,7 +1501,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1497
1501
  commands: {
1498
1502
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1499
1503
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
1500
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
1504
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
1501
1505
  };
1502
1506
  }, BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
1503
1507
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
@@ -2042,6 +2046,10 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
2042
2046
  actions: {
2043
2047
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
2044
2048
  };
2049
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
2050
+ sharedState: {
2051
+ mode: "offline" | "online";
2052
+ };
2045
2053
  }, undefined>>];
2046
2054
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
2047
2055
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -2784,6 +2792,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
2784
2792
  id: string;
2785
2793
  taskLocalId?: string | undefined;
2786
2794
  }[]) => void;
2795
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
2787
2796
  };
2788
2797
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
2789
2798
  sharedState: {
@@ -4180,6 +4189,10 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
4180
4189
  actions: {
4181
4190
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
4182
4191
  };
4192
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
4193
+ sharedState: {
4194
+ mode: "offline" | "online";
4195
+ };
4183
4196
  }, undefined>>];
4184
4197
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
4185
4198
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -4258,7 +4271,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
4258
4271
  commands: {
4259
4272
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
4260
4273
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
4261
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
4274
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
4262
4275
  };
4263
4276
  }, BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
4264
4277
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
@@ -4803,6 +4816,10 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
4803
4816
  actions: {
4804
4817
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
4805
4818
  };
4819
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
4820
+ sharedState: {
4821
+ mode: "offline" | "online";
4822
+ };
4806
4823
  }, undefined>>];
4807
4824
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
4808
4825
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -5545,6 +5562,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
5545
5562
  id: string;
5546
5563
  taskLocalId?: string | undefined;
5547
5564
  }[]) => void;
5565
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
5548
5566
  };
5549
5567
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
5550
5568
  sharedState: {
@@ -467,6 +467,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
467
467
  actions: {
468
468
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
469
469
  };
470
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
471
+ sharedState: {
472
+ mode: "offline" | "online";
473
+ };
470
474
  }, undefined>>];
471
475
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
472
476
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1209,6 +1213,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1209
1213
  id: string;
1210
1214
  taskLocalId?: string | undefined;
1211
1215
  }[]) => void;
1216
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
1212
1217
  };
1213
1218
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
1214
1219
  sharedState: {
@@ -1960,6 +1965,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1960
1965
  actions: {
1961
1966
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
1962
1967
  };
1968
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
1969
+ sharedState: {
1970
+ mode: "offline" | "online";
1971
+ };
1963
1972
  }, undefined>>];
1964
1973
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
1965
1974
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -3483,6 +3492,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
3483
3492
  id: string;
3484
3493
  taskLocalId?: string | undefined;
3485
3494
  }[]) => void;
3495
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
3486
3496
  };
3487
3497
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
3488
3498
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -6330,6 +6340,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
6330
6340
  actions: {
6331
6341
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
6332
6342
  };
6343
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
6344
+ sharedState: {
6345
+ mode: "offline" | "online";
6346
+ };
6333
6347
  }, undefined>>];
6334
6348
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
6335
6349
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -6408,7 +6422,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
6408
6422
  commands: {
6409
6423
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
6410
6424
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
6411
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
6425
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
6412
6426
  };
6413
6427
  }, import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
6414
6428
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
@@ -6953,6 +6967,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
6953
6967
  actions: {
6954
6968
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
6955
6969
  };
6970
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
6971
+ sharedState: {
6972
+ mode: "offline" | "online";
6973
+ };
6956
6974
  }, undefined>>];
6957
6975
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
6958
6976
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -7695,6 +7713,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
7695
7713
  id: string;
7696
7714
  taskLocalId?: string | undefined;
7697
7715
  }[]) => void;
7716
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
7698
7717
  };
7699
7718
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
7700
7719
  sharedState: {
@@ -415,6 +415,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
415
415
  actions: {
416
416
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
417
417
  };
418
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
419
+ sharedState: {
420
+ mode: "offline" | "online";
421
+ };
418
422
  }, undefined>>];
419
423
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
420
424
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -1157,6 +1161,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1157
1161
  id: string;
1158
1162
  taskLocalId?: string | undefined;
1159
1163
  }[]) => void;
1164
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
1160
1165
  };
1161
1166
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
1162
1167
  sharedState: {
@@ -1908,6 +1913,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1908
1913
  actions: {
1909
1914
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
1910
1915
  };
1916
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
1917
+ sharedState: {
1918
+ mode: "offline" | "online";
1919
+ };
1911
1920
  }, undefined>>];
1912
1921
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
1913
1922
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -3431,6 +3440,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
3431
3440
  id: string;
3432
3441
  taskLocalId?: string | undefined;
3433
3442
  }[]) => void;
3443
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
3434
3444
  };
3435
3445
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
3436
3446
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -6278,6 +6288,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
6278
6288
  actions: {
6279
6289
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
6280
6290
  };
6291
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
6292
+ sharedState: {
6293
+ mode: "offline" | "online";
6294
+ };
6281
6295
  }, undefined>>];
6282
6296
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
6283
6297
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -6356,7 +6370,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
6356
6370
  commands: {
6357
6371
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
6358
6372
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
6359
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
6373
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
6360
6374
  };
6361
6375
  }, import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
6362
6376
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
@@ -6901,6 +6915,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
6901
6915
  actions: {
6902
6916
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
6903
6917
  };
6918
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
6919
+ sharedState: {
6920
+ mode: "offline" | "online";
6921
+ };
6904
6922
  }, undefined>>];
6905
6923
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
6906
6924
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
@@ -7643,6 +7661,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
7643
7661
  id: string;
7644
7662
  taskLocalId?: string | undefined;
7645
7663
  }[]) => void;
7664
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
7646
7665
  };
7647
7666
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
7648
7667
  sharedState: {
@@ -2,16 +2,19 @@ import type { AutoformattingProvider, CardProvider, ContextIdentifierProvider, M
2
2
  import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
3
3
  import type { CardPlugin } from '@atlaskit/editor-plugins/card';
4
4
  import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugins/context-identifier';
5
- import { type CustomAutoformatPlugin } from '@atlaskit/editor-plugins/custom-autoformat';
6
- import { type EmojiPlugin } from '@atlaskit/editor-plugins/emoji';
5
+ import type { CustomAutoformatPlugin } from '@atlaskit/editor-plugins/custom-autoformat';
6
+ import type { EmojiPlugin } from '@atlaskit/editor-plugins/emoji';
7
7
  import type { MediaPlugin } from '@atlaskit/editor-plugins/media';
8
- import { type TasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
9
- import { type EmojiProvider } from '@atlaskit/emoji';
8
+ import type { MentionsPlugin } from '@atlaskit/editor-plugins/mentions';
9
+ import type { TasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
10
+ import type { EmojiProvider } from '@atlaskit/emoji';
11
+ import type { MentionProvider } from '@atlaskit/mention/resource';
10
12
  import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
11
13
  interface UseProvidersProps {
12
14
  editorApi: PublicPluginAPI<[
13
15
  OptionalPlugin<ContextIdentifierPlugin>,
14
16
  OptionalPlugin<MediaPlugin>,
17
+ OptionalPlugin<MentionsPlugin>,
15
18
  OptionalPlugin<CardPlugin>,
16
19
  OptionalPlugin<EmojiPlugin>,
17
20
  OptionalPlugin<CustomAutoformatPlugin>,
@@ -19,6 +22,7 @@ interface UseProvidersProps {
19
22
  ]> | undefined;
20
23
  contextIdentifierProvider: Promise<ContextIdentifierProvider> | undefined;
21
24
  mediaProvider: Promise<MediaProvider> | undefined;
25
+ mentionProvider: Promise<MentionProvider> | undefined;
22
26
  cardProvider: Promise<CardProvider> | undefined;
23
27
  emojiProvider: Promise<EmojiProvider> | undefined;
24
28
  autoformattingProvider: Promise<AutoformattingProvider> | undefined;
@@ -32,5 +36,5 @@ interface UseProvidersProps {
32
36
  *
33
37
  * In the future ideally consumers implement this behaviour themselves.
34
38
  */
35
- export declare const useProviders: ({ editorApi, contextIdentifierProvider, mediaProvider, cardProvider, emojiProvider, autoformattingProvider, taskDecisionProvider, }: UseProvidersProps) => void;
39
+ export declare const useProviders: ({ editorApi, contextIdentifierProvider, mediaProvider, mentionProvider, cardProvider, emojiProvider, autoformattingProvider, taskDecisionProvider, }: UseProvidersProps) => void;
36
40
  export {};
@@ -580,6 +580,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
580
580
  actions: {
581
581
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
582
582
  };
583
+ }, undefined>>,
584
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
585
+ sharedState: {
586
+ mode: "offline" | "online";
587
+ };
583
588
  }, undefined>>
584
589
  ];
585
590
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -1469,6 +1474,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1469
1474
  id: string;
1470
1475
  taskLocalId?: string | undefined;
1471
1476
  }[]) => void;
1477
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
1472
1478
  };
1473
1479
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>
1474
1480
  ];
@@ -2368,6 +2374,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
2368
2374
  actions: {
2369
2375
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
2370
2376
  };
2377
+ }, undefined>>,
2378
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
2379
+ sharedState: {
2380
+ mode: "offline" | "online";
2381
+ };
2371
2382
  }, undefined>>
2372
2383
  ];
2373
2384
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -4188,6 +4199,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4188
4199
  id: string;
4189
4200
  taskLocalId?: string | undefined;
4190
4201
  }[]) => void;
4202
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
4191
4203
  };
4192
4204
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined> | undefined,
4193
4205
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
@@ -7627,6 +7639,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
7627
7639
  actions: {
7628
7640
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
7629
7641
  };
7642
+ }, undefined>>,
7643
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
7644
+ sharedState: {
7645
+ mode: "offline" | "online";
7646
+ };
7630
7647
  }, undefined>>
7631
7648
  ];
7632
7649
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -7720,7 +7737,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
7720
7737
  commands: {
7721
7738
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7722
7739
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
7723
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
7740
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
7724
7741
  };
7725
7742
  }, import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined>,
7726
7743
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
@@ -8375,6 +8392,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
8375
8392
  actions: {
8376
8393
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
8377
8394
  };
8395
+ }, undefined>>,
8396
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
8397
+ sharedState: {
8398
+ mode: "offline" | "online";
8399
+ };
8378
8400
  }, undefined>>
8379
8401
  ];
8380
8402
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -9264,6 +9286,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
9264
9286
  id: string;
9265
9287
  taskLocalId?: string | undefined;
9266
9288
  }[]) => void;
9289
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
9267
9290
  };
9268
9291
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>
9269
9292
  ];
@@ -1728,6 +1728,11 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1728
1728
  actions: {
1729
1729
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
1730
1730
  };
1731
+ }, undefined>>,
1732
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
1733
+ sharedState: {
1734
+ mode: "offline" | "online";
1735
+ };
1731
1736
  }, undefined>>
1732
1737
  ];
1733
1738
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -1821,7 +1826,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1821
1826
  commands: {
1822
1827
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
1823
1828
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
1824
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
1829
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
1825
1830
  };
1826
1831
  }, BlockTypePluginOptions | undefined>,
1827
1832
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
@@ -2476,6 +2481,11 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
2476
2481
  actions: {
2477
2482
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
2478
2483
  };
2484
+ }, undefined>>,
2485
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
2486
+ sharedState: {
2487
+ mode: "offline" | "online";
2488
+ };
2479
2489
  }, undefined>>
2480
2490
  ];
2481
2491
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -3365,6 +3375,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
3365
3375
  id: string;
3366
3376
  taskLocalId?: string | undefined;
3367
3377
  }[]) => void;
3378
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
3368
3379
  };
3369
3380
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>
3370
3381
  ];
@@ -5077,6 +5088,11 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
5077
5088
  actions: {
5078
5089
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
5079
5090
  };
5091
+ }, undefined>>,
5092
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
5093
+ sharedState: {
5094
+ mode: "offline" | "online";
5095
+ };
5080
5096
  }, undefined>>
5081
5097
  ];
5082
5098
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -5170,7 +5186,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
5170
5186
  commands: {
5171
5187
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
5172
5188
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
5173
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
5189
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
5174
5190
  };
5175
5191
  }, BlockTypePluginOptions | undefined>,
5176
5192
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
@@ -5825,6 +5841,11 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
5825
5841
  actions: {
5826
5842
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
5827
5843
  };
5844
+ }, undefined>>,
5845
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
5846
+ sharedState: {
5847
+ mode: "offline" | "online";
5848
+ };
5828
5849
  }, undefined>>
5829
5850
  ];
5830
5851
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -6714,6 +6735,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
6714
6735
  id: string;
6715
6736
  taskLocalId?: string | undefined;
6716
6737
  }[]) => void;
6738
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
6717
6739
  };
6718
6740
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>
6719
6741
  ];
@@ -632,6 +632,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
632
632
  actions: {
633
633
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
634
634
  };
635
+ }, undefined>>,
636
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
637
+ sharedState: {
638
+ mode: "offline" | "online";
639
+ };
635
640
  }, undefined>>
636
641
  ];
637
642
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -1521,6 +1526,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1521
1526
  id: string;
1522
1527
  taskLocalId?: string | undefined;
1523
1528
  }[]) => void;
1529
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
1524
1530
  };
1525
1531
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>
1526
1532
  ];
@@ -2420,6 +2426,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
2420
2426
  actions: {
2421
2427
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
2422
2428
  };
2429
+ }, undefined>>,
2430
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
2431
+ sharedState: {
2432
+ mode: "offline" | "online";
2433
+ };
2423
2434
  }, undefined>>
2424
2435
  ];
2425
2436
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -4240,6 +4251,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
4240
4251
  id: string;
4241
4252
  taskLocalId?: string | undefined;
4242
4253
  }[]) => void;
4254
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
4243
4255
  };
4244
4256
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined> | undefined,
4245
4257
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
@@ -7679,6 +7691,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
7679
7691
  actions: {
7680
7692
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
7681
7693
  };
7694
+ }, undefined>>,
7695
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
7696
+ sharedState: {
7697
+ mode: "offline" | "online";
7698
+ };
7682
7699
  }, undefined>>
7683
7700
  ];
7684
7701
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -7772,7 +7789,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
7772
7789
  commands: {
7773
7790
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7774
7791
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
7775
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
7792
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
7776
7793
  };
7777
7794
  }, import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined>,
7778
7795
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
@@ -8427,6 +8444,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
8427
8444
  actions: {
8428
8445
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
8429
8446
  };
8447
+ }, undefined>>,
8448
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
8449
+ sharedState: {
8450
+ mode: "offline" | "online";
8451
+ };
8430
8452
  }, undefined>>
8431
8453
  ];
8432
8454
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -9316,6 +9338,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
9316
9338
  id: string;
9317
9339
  taskLocalId?: string | undefined;
9318
9340
  }[]) => void;
9341
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
9319
9342
  };
9320
9343
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>
9321
9344
  ];
@@ -580,6 +580,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
580
580
  actions: {
581
581
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
582
582
  };
583
+ }, undefined>>,
584
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
585
+ sharedState: {
586
+ mode: "offline" | "online";
587
+ };
583
588
  }, undefined>>
584
589
  ];
585
590
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -1469,6 +1474,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1469
1474
  id: string;
1470
1475
  taskLocalId?: string | undefined;
1471
1476
  }[]) => void;
1477
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
1472
1478
  };
1473
1479
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>
1474
1480
  ];
@@ -2368,6 +2374,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
2368
2374
  actions: {
2369
2375
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
2370
2376
  };
2377
+ }, undefined>>,
2378
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
2379
+ sharedState: {
2380
+ mode: "offline" | "online";
2381
+ };
2371
2382
  }, undefined>>
2372
2383
  ];
2373
2384
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -4188,6 +4199,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
4188
4199
  id: string;
4189
4200
  taskLocalId?: string | undefined;
4190
4201
  }[]) => void;
4202
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
4191
4203
  };
4192
4204
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined> | undefined,
4193
4205
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
@@ -7627,6 +7639,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
7627
7639
  actions: {
7628
7640
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
7629
7641
  };
7642
+ }, undefined>>,
7643
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
7644
+ sharedState: {
7645
+ mode: "offline" | "online";
7646
+ };
7630
7647
  }, undefined>>
7631
7648
  ];
7632
7649
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -7720,7 +7737,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
7720
7737
  commands: {
7721
7738
  setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod, fromBlockQuote?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7722
7739
  insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
7723
- clearFormatting: () => import("@atlaskit/editor-common/types").EditorCommand;
7740
+ clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
7724
7741
  };
7725
7742
  }, import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined>,
7726
7743
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
@@ -8375,6 +8392,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
8375
8392
  actions: {
8376
8393
  setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
8377
8394
  };
8395
+ }, undefined>>,
8396
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
8397
+ sharedState: {
8398
+ mode: "offline" | "online";
8399
+ };
8378
8400
  }, undefined>>
8379
8401
  ];
8380
8402
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
@@ -9264,6 +9286,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
9264
9286
  id: string;
9265
9287
  taskLocalId?: string | undefined;
9266
9288
  }[]) => void;
9289
+ setProvider: (provider: Promise<import("@atlaskit/mention").MentionProvider>) => Promise<boolean>;
9267
9290
  };
9268
9291
  }, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>
9269
9292
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "203.9.0",
3
+ "version": "203.10.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,19 +43,19 @@
43
43
  "@atlaskit/analytics-next": "^10.2.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
45
  "@atlaskit/button": "^20.3.0",
46
- "@atlaskit/editor-common": "^98.0.0",
46
+ "@atlaskit/editor-common": "^98.2.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.21.0",
48
48
  "@atlaskit/editor-plugin-quick-insert": "1.8.2",
49
49
  "@atlaskit/editor-plugins": "^6.1.0",
50
50
  "@atlaskit/editor-prosemirror": "6.2.1",
51
51
  "@atlaskit/editor-shared-styles": "^3.2.0",
52
- "@atlaskit/emoji": "^67.11.0",
53
- "@atlaskit/icon": "^23.1.0",
52
+ "@atlaskit/emoji": "^67.12.0",
53
+ "@atlaskit/icon": "^23.2.0",
54
54
  "@atlaskit/media-card": "^78.17.0",
55
- "@atlaskit/mention": "^23.5.0",
55
+ "@atlaskit/mention": "^23.7.0",
56
56
  "@atlaskit/platform-feature-flags": "^0.3.0",
57
57
  "@atlaskit/task-decision": "^17.11.0",
58
- "@atlaskit/tmp-editor-statsig": "^2.31.0",
58
+ "@atlaskit/tmp-editor-statsig": "^2.32.0",
59
59
  "@atlaskit/tokens": "^2.5.0",
60
60
  "@atlaskit/tooltip": "^19.0.0",
61
61
  "@atlaskit/width-detector": "^4.3.0",
@@ -84,7 +84,7 @@
84
84
  "@atlaskit/adf-utils": "^19.14.0",
85
85
  "@atlaskit/analytics-listeners": "^8.13.0",
86
86
  "@atlaskit/collab-provider": "10.3.3",
87
- "@atlaskit/editor-plugin-annotation": "1.26.9",
87
+ "@atlaskit/editor-plugin-annotation": "1.26.10",
88
88
  "@atlaskit/editor-plugin-card": "^4.5.0",
89
89
  "@atlaskit/editor-plugin-list": "^3.9.0",
90
90
  "@atlaskit/editor-plugin-paste": "^2.0.0",
@@ -93,17 +93,17 @@
93
93
  "@atlaskit/media-core": "^34.4.0",
94
94
  "@atlaskit/media-integration-test-helpers": "^3.1.0",
95
95
  "@atlaskit/media-test-helpers": "^34.7.0",
96
- "@atlaskit/modal-dialog": "^12.18.0",
96
+ "@atlaskit/modal-dialog": "^12.19.0",
97
97
  "@atlaskit/primitives": "^13.3.0",
98
98
  "@atlaskit/renderer": "^112.8.0",
99
- "@atlaskit/smart-card": "^33.3.0",
99
+ "@atlaskit/smart-card": "^34.0.0",
100
100
  "@atlaskit/synchrony-test-helpers": "^3.0.0",
101
101
  "@atlaskit/toggle": "^14.0.0",
102
102
  "@atlaskit/util-data-test": "^17.13.0",
103
103
  "@atlaskit/visual-regression": "*",
104
104
  "@atlassian/adf-schema-json": "^1.22.0",
105
105
  "@atlassian/feature-flags-test-utils": "*",
106
- "@atlassian/search-provider": "3.0.19",
106
+ "@atlassian/search-provider": "3.0.20",
107
107
  "@emotion/jest": "^11.8.0",
108
108
  "@storybook/addon-knobs": "^6.4.0",
109
109
  "@testing-library/react": "^12.1.5",
@@ -188,10 +188,6 @@
188
188
  "platform_editor_react_18_plugin_slot": {
189
189
  "type": "boolean"
190
190
  },
191
- "editor_code_block_wrapping_language_change_bug": {
192
- "type": "boolean",
193
- "referenceOnly": true
194
- },
195
191
  "platform_editor_disable_instrumented_plugin": {
196
192
  "type": "boolean"
197
193
  },
@@ -258,10 +254,6 @@
258
254
  "type": "boolean",
259
255
  "referenceOnly": true
260
256
  },
261
- "platform_editor_element_dnd_nested_fix_patch_1": {
262
- "type": "boolean",
263
- "referenceOnly": true
264
- },
265
257
  "platform_editor_element_dnd_nested_fix_patch_2": {
266
258
  "type": "boolean",
267
259
  "referenceOnly": true
@@ -404,6 +396,10 @@
404
396
  "platform_editor_fix_edit_caption_on_edge": {
405
397
  "type": "boolean",
406
398
  "referenceOnly": true
399
+ },
400
+ "platform_editor_mention_provider_via_plugin_config": {
401
+ "type": "boolean",
402
+ "referenceOnly": true
407
403
  }
408
404
  },
409
405
  "stricter": {