@atlaskit/editor-core 193.10.0 → 193.10.7

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.10.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#88342](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88342) [`104d7d1b8191`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104d7d1b8191) - Introducing requestDocument API on core plugin which can be used to get the document using the editor API.
8
+
9
+ This is intended to replace the `editorActions.getValue()`.
10
+
11
+ Using the editor API you can do:
12
+
13
+ ```ts
14
+ const { editorApi, preset } = usePreset(() => createDefaultPreset({}));
15
+
16
+ //
17
+ editorApi?.core?.actions.requestDocument((doc) => {
18
+ // Use the document as you require
19
+ });
20
+ ```
21
+
22
+ See: Editor RFC 51 for more details.
23
+
24
+ - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106) [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) - Bump ADF-schema package to version 35.0.0
25
+ - Updated dependencies
26
+
27
+ ## 193.10.4
28
+
29
+ ### Patch Changes
30
+
31
+ - [#89978](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89978) [`6e7143622425`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e7143622425) - fix paste markdown table into a table issue
32
+
3
33
  ## 193.10.0
4
34
 
5
35
  ### Minor Changes
@@ -225,10 +225,20 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
225
225
  return _temporaryFixForConfigPanel2.apply(this, arguments);
226
226
  }
227
227
  return __temporaryFixForConfigPanel;
228
- }() // WARNING: this may be called repeatedly, async with care
228
+ }()
229
+ /**
230
+ * @deprecated This is deprecated and is no longer maintained.
231
+ *
232
+ * Use the `requestDocument` API from `editorAPI` (ie. `editorApi?.core?.actions.requestDocument( ... ))
233
+ * it has inbuilt throttling and is designed for use with `ComposableEditor`.
234
+ *
235
+ * Docs on its usage are available from: https://atlaskit.atlassian.com/packages/editor/editor-core
236
+ *
237
+ * WARNING: this may be called repeatedly, async with care
238
+ */
229
239
  }, {
230
240
  key: "getValue",
231
- value: function () {
241
+ value: (function () {
232
242
  var _getValue = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
233
243
  var editorView, doc, json, nodeSanitized;
234
244
  return _regenerator.default.wrap(function _callee3$(_context3) {
@@ -264,7 +274,7 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
264
274
  return _getValue.apply(this, arguments);
265
275
  }
266
276
  return getValue;
267
- }()
277
+ }())
268
278
  }, {
269
279
  key: "getNodeByLocalId",
270
280
  value: function getNodeByLocalId(id) {
@@ -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 = "193.10.0";
8
+ var version = exports.version = "193.10.7";
@@ -156,7 +156,16 @@ export default class EditorActions {
156
156
  __temporaryFixForConfigPanel(editorView, __EDITOR_INTERNALS_DO_NOT_USE__API);
157
157
  }
158
158
 
159
- // WARNING: this may be called repeatedly, async with care
159
+ /**
160
+ * @deprecated This is deprecated and is no longer maintained.
161
+ *
162
+ * Use the `requestDocument` API from `editorAPI` (ie. `editorApi?.core?.actions.requestDocument( ... ))
163
+ * it has inbuilt throttling and is designed for use with `ComposableEditor`.
164
+ *
165
+ * Docs on its usage are available from: https://atlaskit.atlassian.com/packages/editor/editor-core
166
+ *
167
+ * WARNING: this may be called repeatedly, async with care
168
+ */
160
169
  async getValue() {
161
170
  const {
162
171
  editorView
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.10.0";
2
+ export const version = "193.10.7";
@@ -219,10 +219,20 @@ var EditorActions = /*#__PURE__*/function () {
219
219
  return _temporaryFixForConfigPanel2.apply(this, arguments);
220
220
  }
221
221
  return __temporaryFixForConfigPanel;
222
- }() // WARNING: this may be called repeatedly, async with care
222
+ }()
223
+ /**
224
+ * @deprecated This is deprecated and is no longer maintained.
225
+ *
226
+ * Use the `requestDocument` API from `editorAPI` (ie. `editorApi?.core?.actions.requestDocument( ... ))
227
+ * it has inbuilt throttling and is designed for use with `ComposableEditor`.
228
+ *
229
+ * Docs on its usage are available from: https://atlaskit.atlassian.com/packages/editor/editor-core
230
+ *
231
+ * WARNING: this may be called repeatedly, async with care
232
+ */
223
233
  }, {
224
234
  key: "getValue",
225
- value: function () {
235
+ value: (function () {
226
236
  var _getValue = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
227
237
  var editorView, doc, json, nodeSanitized;
228
238
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
@@ -258,7 +268,7 @@ var EditorActions = /*#__PURE__*/function () {
258
268
  return _getValue.apply(this, arguments);
259
269
  }
260
270
  return getValue;
261
- }()
271
+ }())
262
272
  }, {
263
273
  key: "getNodeByLocalId",
264
274
  value: function getNodeByLocalId(id) {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.10.0";
2
+ export var version = "193.10.7";
@@ -22,6 +22,16 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
22
22
  blur(): boolean;
23
23
  clear(): boolean;
24
24
  __temporaryFixForConfigPanel(): Promise<void>;
25
+ /**
26
+ * @deprecated This is deprecated and is no longer maintained.
27
+ *
28
+ * Use the `requestDocument` API from `editorAPI` (ie. `editorApi?.core?.actions.requestDocument( ... ))
29
+ * it has inbuilt throttling and is designed for use with `ComposableEditor`.
30
+ *
31
+ * Docs on its usage are available from: https://atlaskit.atlassian.com/packages/editor/editor-core
32
+ *
33
+ * WARNING: this may be called repeatedly, async with care
34
+ */
25
35
  getValue(): Promise<T | import("@atlaskit/editor-json-transformer/types").JSONDocNode | undefined>;
26
36
  getNodeByLocalId(id: string): Node | undefined;
27
37
  getNodeByFragmentLocalId(id: string): Node | undefined;
@@ -71,7 +71,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
71
71
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
72
72
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
73
73
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
74
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
74
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
75
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
76
+ dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
77
+ pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
78
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
79
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
80
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
81
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
82
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
83
+ sharedState: {
84
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
85
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
86
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
87
+ };
88
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
89
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
90
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
91
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
92
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
93
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
94
+ sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
95
+ actions: {
96
+ getAvatarColor: (str: string) => {
97
+ index: number;
98
+ color: import("@atlaskit/editor-common/collab").Color;
99
+ };
100
+ addInlineCommentMark: (props: {
101
+ from: number;
102
+ to: number;
103
+ mark: import("prosemirror-model").Mark;
104
+ }) => boolean;
105
+ };
106
+ }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
107
+ pluginConfiguration?: {
108
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
109
+ } | undefined;
110
+ commands: {
111
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
112
+ };
113
+ actions: {
114
+ applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
115
+ };
116
+ }, {
117
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
118
+ } | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
75
119
  sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
76
120
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
77
121
  sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
@@ -237,6 +281,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
237
281
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
238
282
  actions: {
239
283
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
284
+ addToolbarItems: import("@atlaskit/editor-plugin-hyperlink").AddToolbarItems;
240
285
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
241
286
  insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
242
287
  updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
@@ -988,7 +1033,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
988
1033
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
989
1034
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
990
1035
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
991
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
1036
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
1037
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
1038
+ dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
1039
+ pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
1040
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1041
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
1042
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
1043
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
1044
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
1045
+ sharedState: {
1046
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
1047
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
1048
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
1049
+ };
1050
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1051
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
1052
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
1053
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
1054
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1055
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
1056
+ sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
1057
+ actions: {
1058
+ getAvatarColor: (str: string) => {
1059
+ index: number;
1060
+ color: import("@atlaskit/editor-common/collab").Color;
1061
+ };
1062
+ addInlineCommentMark: (props: {
1063
+ from: number;
1064
+ to: number;
1065
+ mark: import("prosemirror-model").Mark;
1066
+ }) => boolean;
1067
+ };
1068
+ }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
1069
+ pluginConfiguration?: {
1070
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1071
+ } | undefined;
1072
+ commands: {
1073
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1074
+ };
1075
+ actions: {
1076
+ applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
1077
+ };
1078
+ }, {
1079
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1080
+ } | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
992
1081
  sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
993
1082
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
994
1083
  sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
@@ -1154,6 +1243,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
1154
1243
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
1155
1244
  actions: {
1156
1245
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
1246
+ addToolbarItems: import("@atlaskit/editor-plugin-hyperlink").AddToolbarItems;
1157
1247
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
1158
1248
  insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
1159
1249
  updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
@@ -2767,51 +2857,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
2767
2857
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2768
2858
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2769
2859
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2770
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
2771
- sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
2772
- dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
2773
- pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
2774
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2775
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2776
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2777
- }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
2778
- pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
2779
- sharedState: {
2780
- createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
2781
- attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
2782
- performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
2783
- };
2784
- dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
2785
- pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
2786
- sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
2787
- }, import("@atlaskit/editor-common/types").FeatureFlags>>];
2788
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
2789
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
2790
- sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
2791
- actions: {
2792
- getAvatarColor: (str: string) => {
2793
- index: number;
2794
- color: import("@atlaskit/editor-common/collab").Color;
2795
- };
2796
- addInlineCommentMark: (props: {
2797
- from: number;
2798
- to: number;
2799
- mark: import("prosemirror-model").Mark;
2800
- }) => boolean;
2801
- };
2802
- }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
2803
- pluginConfiguration?: {
2804
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2805
- } | undefined;
2806
- commands: {
2807
- updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
2808
- };
2809
- actions: {
2810
- applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
2811
- };
2812
- }, {
2813
- mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2814
- } | undefined>>];
2860
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
2815
2861
  actions: {
2816
2862
  insertCodeBlock: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
2817
2863
  };
@@ -3428,6 +3474,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3428
3474
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
3429
3475
  actions: {
3430
3476
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
3477
+ addToolbarItems: import("@atlaskit/editor-plugin-hyperlink").AddToolbarItems;
3431
3478
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
3432
3479
  insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
3433
3480
  updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;
@@ -3685,7 +3732,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3685
3732
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3686
3733
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3687
3734
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3688
- }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
3735
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3736
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3737
+ dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
3738
+ pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
3739
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3740
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3741
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3742
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
3743
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
3744
+ sharedState: {
3745
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
3746
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
3747
+ performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
3748
+ };
3749
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
3750
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
3751
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3752
+ }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3753
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
3754
+ }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
3755
+ sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
3756
+ actions: {
3757
+ getAvatarColor: (str: string) => {
3758
+ index: number;
3759
+ color: import("@atlaskit/editor-common/collab").Color;
3760
+ };
3761
+ addInlineCommentMark: (props: {
3762
+ from: number;
3763
+ to: number;
3764
+ mark: import("prosemirror-model").Mark;
3765
+ }) => boolean;
3766
+ };
3767
+ }, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
3768
+ pluginConfiguration?: {
3769
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3770
+ } | undefined;
3771
+ commands: {
3772
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3773
+ };
3774
+ actions: {
3775
+ applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
3776
+ };
3777
+ }, {
3778
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3779
+ } | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
3689
3780
  sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
3690
3781
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
3691
3782
  sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
@@ -3851,6 +3942,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3851
3942
  }, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
3852
3943
  actions: {
3853
3944
  prependToolbarButtons: import("@atlaskit/editor-plugin-hyperlink").PrependToolbarButtons;
3945
+ addToolbarItems: import("@atlaskit/editor-plugin-hyperlink").AddToolbarItems;
3854
3946
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
3855
3947
  insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
3856
3948
  updateLink: import("@atlaskit/editor-plugin-hyperlink").UpdateLink;