@atlaskit/editor-core 203.16.1 → 203.16.2

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.
@@ -1,5 +1,4 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
2
- import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
3
2
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
4
3
  import type { SelectionPluginOptions } from '@atlaskit/editor-common/selection';
5
4
  import type { EditorAppearance, FeatureFlags, HyperlinkPluginOptions, PerformanceTracking, QuickInsertPluginOptions, TextFormattingOptions } from '@atlaskit/editor-common/types';
@@ -10,6 +9,7 @@ import type { PastePluginOptions } from '@atlaskit/editor-plugins/paste';
10
9
  import type { PlaceholderPluginOptions } from '@atlaskit/editor-plugins/placeholder';
11
10
  import type { TypeAheadPluginOptions } from '@atlaskit/editor-plugins/type-ahead';
12
11
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
+ import type { DefaultPresetBuilder } from './default-preset-type';
13
13
  export type DefaultPresetPluginOptions = {
14
14
  paste?: PastePluginOptions;
15
15
  base?: BasePluginOptions;
@@ -45,1237 +45,5 @@ export type DefaultPresetPluginOptions = {
45
45
  * Note: The order that presets are added determines
46
46
  * their placement in the editor toolbar
47
47
  */
48
- export declare function createDefaultPreset(options: DefaultPresetPluginOptions): EditorPresetBuilder<[
49
- "codeBlock",
50
- "selection",
51
- "floatingToolbar",
52
- "copyButton",
53
- "submitEditor",
54
- "editorDisabled",
55
- "unsupportedContent",
56
- "placeholder",
57
- "quickInsert",
58
- "width",
59
- "textFormatting",
60
- "hyperlink",
61
- "selectionToolbar",
62
- "clearMarksOnEmptyDoc",
63
- "blockType",
64
- import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
65
- "primaryToolbar",
66
- import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
67
- "typeAhead",
68
- "decorations",
69
- "base",
70
- "contextIdentifier",
71
- "composition",
72
- "focus",
73
- "clipboard",
74
- "paste",
75
- "betterTypeHistory",
76
- import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">,
77
- "featureFlags"
78
- ], [
79
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
80
- pluginConfiguration: CodeBlockOptions | undefined;
81
- dependencies: [
82
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
83
- sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
84
- actions: {
85
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
86
- removeDecoration: import("@atlaskit/editor-common/types").Command;
87
- };
88
- }, undefined>,
89
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
90
- sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
91
- }, undefined>,
92
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
93
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
94
- sharedState: {
95
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
96
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
97
- performanceTracking: PerformanceTracking | undefined;
98
- };
99
- dependencies: [
100
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
101
- pluginConfiguration: FeatureFlags;
102
- sharedState: FeatureFlags;
103
- }, FeatureFlags>>
104
- ];
105
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
106
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
107
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
108
- sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
109
- }, undefined>>,
110
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
111
- pluginConfiguration: FeatureFlags;
112
- sharedState: FeatureFlags;
113
- }, FeatureFlags>>
114
- ];
115
- sharedState: {
116
- copyButtonHoverNode: import("prosemirror-model").Node;
117
- } | undefined;
118
- actions: {
119
- insertCodeBlock: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
120
- };
121
- }, CodeBlockOptions | undefined>,
122
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
123
- pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
124
- actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
125
- commands: {
126
- displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
127
- clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
128
- setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
129
- };
130
- sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
131
- }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>,
132
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
133
- dependencies: import("packages/editor/editor-plugin-floating-toolbar/dist/types/floatingToolbarPluginType").FloatingToolbarPluginDependencies;
134
- actions: {
135
- forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
136
- };
137
- sharedState: {
138
- configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
139
- floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
140
- } | undefined;
141
- }, undefined>,
142
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"copyButton", {
143
- dependencies: [
144
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
145
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
146
- sharedState: {
147
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
148
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
149
- performanceTracking: PerformanceTracking | undefined;
150
- };
151
- dependencies: [
152
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
153
- pluginConfiguration: FeatureFlags;
154
- sharedState: FeatureFlags;
155
- }, FeatureFlags>>
156
- ];
157
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
158
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
159
- ];
160
- actions: {
161
- processCopyButtonItems: (state: import("prosemirror-state").EditorState) => (items: import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[], hoverDecoration: ((nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command) | undefined) => import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[];
162
- };
163
- }, undefined>,
164
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"submitEditor", {
165
- pluginConfiguration: import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined;
166
- dependencies: import("packages/editor/editor-plugin-submit-editor/dist/types/submitEditorPluginType").SubmitEditorPluginDependencies;
167
- }, import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined>,
168
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
169
- sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
170
- }, undefined>,
171
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>,
172
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
173
- pluginConfiguration: PlaceholderPluginOptions | undefined;
174
- dependencies: [
175
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
176
- sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
177
- }, undefined>,
178
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
179
- sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
180
- }, undefined>,
181
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
182
- pluginConfiguration: TypeAheadPluginOptions | undefined;
183
- dependencies: [
184
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
185
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
186
- sharedState: {
187
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
188
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
189
- performanceTracking: PerformanceTracking | undefined;
190
- };
191
- dependencies: [
192
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
193
- pluginConfiguration: FeatureFlags;
194
- sharedState: FeatureFlags;
195
- }, FeatureFlags>>
196
- ];
197
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
198
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
199
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
200
- pluginConfiguration: FeatureFlags;
201
- sharedState: FeatureFlags;
202
- }, FeatureFlags>>,
203
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
204
- sharedState: {
205
- mode: "offline" | "online";
206
- };
207
- }, undefined>>
208
- ];
209
- sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
210
- actions: {
211
- isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
212
- isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
213
- insert: (props: {
214
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
215
- contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
216
- query: string;
217
- sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
218
- mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
219
- }) => boolean;
220
- findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
221
- open: (props: {
222
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
223
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
224
- query?: string | undefined;
225
- }) => boolean;
226
- close: (props: {
227
- insertCurrentQueryAsRawText: boolean;
228
- attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
229
- }) => boolean;
230
- openAtTransaction: (props: {
231
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
232
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
233
- query?: string | undefined;
234
- }) => (tr: import("prosemirror-state").Transaction) => boolean;
235
- };
236
- }, TypeAheadPluginOptions | undefined>
237
- ];
238
- }, PlaceholderPluginOptions | undefined>,
239
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
240
- pluginConfiguration: QuickInsertPluginOptions | undefined;
241
- dependencies: [
242
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
243
- pluginConfiguration: TypeAheadPluginOptions | undefined;
244
- dependencies: [
245
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
246
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
247
- sharedState: {
248
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
249
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
250
- performanceTracking: PerformanceTracking | undefined;
251
- };
252
- dependencies: [
253
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
254
- pluginConfiguration: FeatureFlags;
255
- sharedState: FeatureFlags;
256
- }, FeatureFlags>>
257
- ];
258
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
259
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
260
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
261
- pluginConfiguration: FeatureFlags;
262
- sharedState: FeatureFlags;
263
- }, FeatureFlags>>,
264
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
265
- sharedState: {
266
- mode: "offline" | "online";
267
- };
268
- }, undefined>>
269
- ];
270
- sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
271
- actions: {
272
- isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
273
- isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
274
- insert: (props: {
275
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
276
- contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
277
- query: string;
278
- sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
279
- mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
280
- }) => boolean;
281
- findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
282
- open: (props: {
283
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
284
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
285
- query?: string | undefined;
286
- }) => boolean;
287
- close: (props: {
288
- insertCurrentQueryAsRawText: boolean;
289
- attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
290
- }) => boolean;
291
- openAtTransaction: (props: {
292
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
293
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
294
- query?: string | undefined;
295
- }) => (tr: import("prosemirror-state").Transaction) => boolean;
296
- };
297
- }, TypeAheadPluginOptions | undefined>,
298
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
299
- sharedState: {
300
- mode: "offline" | "online";
301
- };
302
- }, undefined>>
303
- ];
304
- sharedState: import("@atlaskit/editor-plugins/quick-insert").QuickInsertSharedState | null;
305
- actions: {
306
- openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
307
- insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
308
- getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
309
- };
310
- commands: {
311
- openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
312
- addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
313
- };
314
- }, QuickInsertPluginOptions | undefined>,
315
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
316
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
317
- }, undefined>,
318
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"textFormatting", {
319
- pluginConfiguration: TextFormattingOptions | undefined;
320
- dependencies: [
321
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
322
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
323
- sharedState: {
324
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
325
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
326
- performanceTracking: PerformanceTracking | undefined;
327
- };
328
- dependencies: [
329
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
330
- pluginConfiguration: FeatureFlags;
331
- sharedState: FeatureFlags;
332
- }, FeatureFlags>>
333
- ];
334
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
335
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
336
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
337
- sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
338
- actions: {
339
- registerComponent: ({ name, component, }: {
340
- name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
341
- component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
342
- }) => void;
343
- };
344
- }, undefined>>,
345
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
346
- pluginConfiguration: BasePluginOptions | undefined;
347
- dependencies: [
348
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
349
- pluginConfiguration: FeatureFlags;
350
- sharedState: FeatureFlags;
351
- }, FeatureFlags>>,
352
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
353
- pluginConfiguration: import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined;
354
- sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
355
- commands: {
356
- setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
357
- };
358
- }, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>>
359
- ];
360
- sharedState: import("@atlaskit/editor-plugins/base").BasePluginState;
361
- actions: {
362
- setKeyboardHeight: (keyboardHeight: number) => import("@atlaskit/editor-common/types").Command;
363
- registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
364
- resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
365
- };
366
- }, BasePluginOptions | undefined>>
367
- ];
368
- commands: {
369
- toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
370
- toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
371
- toggleStrike: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
372
- toggleCode: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
373
- toggleUnderline: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
374
- toggleEm: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
375
- toggleStrong: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
376
- };
377
- sharedState: import("@atlaskit/editor-common/types").TextFormattingState | undefined;
378
- }, TextFormattingOptions | undefined>,
379
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"hyperlink", {
380
- pluginConfiguration: HyperlinkPluginOptions | undefined;
381
- dependencies: import("packages/editor/editor-plugin-hyperlink/dist/types/hyperlinkPluginType").HyperlinkPluginDependencies;
382
- actions: import("packages/editor/editor-plugin-hyperlink/dist/types/hyperlinkPluginType").HyperlinkPluginActions;
383
- commands: {
384
- showLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").ShowLinkToolbar;
385
- updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
386
- removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
387
- };
388
- sharedState: import("packages/editor/editor-plugin-hyperlink/dist/types/hyperlinkPluginType").HyperlinkPluginSharedState;
389
- }, HyperlinkPluginOptions | undefined>,
390
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
391
- pluginConfiguration: {
392
- preferenceToolbarAboveSelection?: boolean | undefined;
393
- };
394
- dependencies: [
395
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
396
- sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
397
- dependencies: [
398
- ];
399
- pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
400
- commands: {
401
- updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
402
- updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
403
- };
404
- }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>
405
- ];
406
- actions?: {
407
- suppressToolbar?: (() => boolean) | undefined;
408
- unsuppressToolbar?: (() => boolean) | undefined;
409
- } | undefined;
410
- }, {
411
- preferenceToolbarAboveSelection?: boolean | undefined;
412
- }>,
413
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
414
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
415
- pluginConfiguration: BlockTypePluginOptions | undefined;
416
- dependencies: [
417
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
418
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
419
- sharedState: {
420
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
421
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
422
- performanceTracking: PerformanceTracking | undefined;
423
- };
424
- dependencies: [
425
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
426
- pluginConfiguration: FeatureFlags;
427
- sharedState: FeatureFlags;
428
- }, FeatureFlags>>
429
- ];
430
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
431
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
432
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
433
- sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
434
- actions: {
435
- registerComponent: ({ name, component, }: {
436
- name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
437
- component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
438
- }) => void;
439
- };
440
- }, undefined>>
441
- ];
442
- sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
443
- actions: {
444
- insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
445
- };
446
- commands: {
447
- 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;
448
- insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
449
- clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
450
- };
451
- }, BlockTypePluginOptions | undefined>,
452
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
453
- dependencies: [
454
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
455
- pluginConfiguration: TypeAheadPluginOptions | undefined;
456
- dependencies: [
457
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
458
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
459
- sharedState: {
460
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
461
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
462
- performanceTracking: PerformanceTracking | undefined;
463
- };
464
- dependencies: [
465
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
466
- pluginConfiguration: FeatureFlags;
467
- sharedState: FeatureFlags;
468
- }, FeatureFlags>>
469
- ];
470
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
471
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
472
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
473
- pluginConfiguration: FeatureFlags;
474
- sharedState: FeatureFlags;
475
- }, FeatureFlags>>,
476
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
477
- sharedState: {
478
- mode: "offline" | "online";
479
- };
480
- }, undefined>>
481
- ];
482
- sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
483
- actions: {
484
- isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
485
- isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
486
- insert: (props: {
487
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
488
- contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
489
- query: string;
490
- sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
491
- mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
492
- }) => boolean;
493
- findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
494
- open: (props: {
495
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
496
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
497
- query?: string | undefined;
498
- }) => boolean;
499
- close: (props: {
500
- insertCurrentQueryAsRawText: boolean;
501
- attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
502
- }) => boolean;
503
- openAtTransaction: (props: {
504
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
505
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
506
- query?: string | undefined;
507
- }) => (tr: import("prosemirror-state").Transaction) => boolean;
508
- };
509
- }, TypeAheadPluginOptions | undefined>,
510
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
511
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
512
- }, undefined>,
513
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
514
- sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
515
- actions: {
516
- registerComponent: ({ name, component, }: {
517
- name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
518
- component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
519
- }) => void;
520
- };
521
- }, undefined>>
522
- ];
523
- }, undefined> | undefined,
524
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
525
- sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
526
- actions: {
527
- registerComponent: ({ name, component, }: {
528
- name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
529
- component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
530
- }) => void;
531
- };
532
- }, undefined>,
533
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
534
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
535
- }, undefined> | undefined,
536
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
537
- pluginConfiguration: TypeAheadPluginOptions | undefined;
538
- dependencies: [
539
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
540
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
541
- sharedState: {
542
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
543
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
544
- performanceTracking: PerformanceTracking | undefined;
545
- };
546
- dependencies: [
547
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
548
- pluginConfiguration: FeatureFlags;
549
- sharedState: FeatureFlags;
550
- }, FeatureFlags>>
551
- ];
552
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
553
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
554
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
555
- pluginConfiguration: FeatureFlags;
556
- sharedState: FeatureFlags;
557
- }, FeatureFlags>>,
558
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
559
- sharedState: {
560
- mode: "offline" | "online";
561
- };
562
- }, undefined>>
563
- ];
564
- sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
565
- actions: {
566
- isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
567
- isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
568
- insert: (props: {
569
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
570
- contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
571
- query: string;
572
- sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
573
- mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
574
- }) => boolean;
575
- findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
576
- open: (props: {
577
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
578
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
579
- query?: string | undefined;
580
- }) => boolean;
581
- close: (props: {
582
- insertCurrentQueryAsRawText: boolean;
583
- attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
584
- }) => boolean;
585
- openAtTransaction: (props: {
586
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
587
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
588
- query?: string | undefined;
589
- }) => (tr: import("prosemirror-state").Transaction) => boolean;
590
- };
591
- }, TypeAheadPluginOptions | undefined>,
592
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
593
- sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
594
- actions: {
595
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
596
- removeDecoration: import("@atlaskit/editor-common/types").Command;
597
- };
598
- }, undefined>,
599
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
600
- pluginConfiguration: BasePluginOptions | undefined;
601
- dependencies: [
602
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
603
- pluginConfiguration: FeatureFlags;
604
- sharedState: FeatureFlags;
605
- }, FeatureFlags>>,
606
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
607
- pluginConfiguration: import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined;
608
- sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
609
- commands: {
610
- setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
611
- };
612
- }, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>>
613
- ];
614
- sharedState: import("@atlaskit/editor-plugins/base").BasePluginState;
615
- actions: {
616
- setKeyboardHeight: (keyboardHeight: number) => import("@atlaskit/editor-common/types").Command;
617
- registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
618
- resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
619
- };
620
- }, BasePluginOptions | undefined>,
621
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
622
- pluginConfiguration: import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined;
623
- sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
624
- commands: {
625
- setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
626
- };
627
- }, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>,
628
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
629
- sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
630
- }, undefined>,
631
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
632
- sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
633
- }, undefined>,
634
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>,
635
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
636
- pluginConfiguration: PastePluginOptions;
637
- dependencies: import("packages/editor/editor-plugin-paste/dist/types/pastePluginType").PastePluginDependencies;
638
- sharedState: {
639
- lastContentPasted: import("@atlaskit/editor-plugins/paste").LastContentPasted | null;
640
- };
641
- }, PastePluginOptions>,
642
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"betterTypeHistory", {
643
- actions: import("@atlaskit/editor-plugins/better-type-history").BetterTypeHistoryAPI;
644
- }, undefined>,
645
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
646
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
647
- sharedState: {
648
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
649
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
650
- performanceTracking: PerformanceTracking | undefined;
651
- };
652
- dependencies: [
653
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
654
- pluginConfiguration: FeatureFlags;
655
- sharedState: FeatureFlags;
656
- }, FeatureFlags>>
657
- ];
658
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
659
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions> | undefined,
660
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
661
- pluginConfiguration: FeatureFlags;
662
- sharedState: FeatureFlags;
663
- }, FeatureFlags>
664
- ]>;
665
- export declare function useDefaultPreset(props: DefaultPresetPluginOptions): EditorPresetBuilder<[
666
- "codeBlock",
667
- "selection",
668
- "floatingToolbar",
669
- "copyButton",
670
- "submitEditor",
671
- "editorDisabled",
672
- "unsupportedContent",
673
- "placeholder",
674
- "quickInsert",
675
- "width",
676
- "textFormatting",
677
- "hyperlink",
678
- "selectionToolbar",
679
- "clearMarksOnEmptyDoc",
680
- "blockType",
681
- import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
682
- "primaryToolbar",
683
- import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
684
- "typeAhead",
685
- "decorations",
686
- "base",
687
- "contextIdentifier",
688
- "composition",
689
- "focus",
690
- "clipboard",
691
- "paste",
692
- "betterTypeHistory",
693
- import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">,
694
- "featureFlags"
695
- ], [
696
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
697
- pluginConfiguration: CodeBlockOptions | undefined;
698
- dependencies: [
699
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
700
- sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
701
- actions: {
702
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
703
- removeDecoration: import("@atlaskit/editor-common/types").Command;
704
- };
705
- }, undefined>,
706
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
707
- sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
708
- }, undefined>,
709
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
710
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
711
- sharedState: {
712
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
713
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
714
- performanceTracking: PerformanceTracking | undefined;
715
- };
716
- dependencies: [
717
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
718
- pluginConfiguration: FeatureFlags;
719
- sharedState: FeatureFlags;
720
- }, FeatureFlags>>
721
- ];
722
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
723
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
724
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
725
- sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
726
- }, undefined>>,
727
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
728
- pluginConfiguration: FeatureFlags;
729
- sharedState: FeatureFlags;
730
- }, FeatureFlags>>
731
- ];
732
- sharedState: {
733
- copyButtonHoverNode: import("prosemirror-model").Node;
734
- } | undefined;
735
- actions: {
736
- insertCodeBlock: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
737
- };
738
- }, CodeBlockOptions | undefined>,
739
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
740
- pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
741
- actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
742
- commands: {
743
- displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
744
- clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
745
- setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
746
- };
747
- sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
748
- }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>,
749
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
750
- dependencies: import("packages/editor/editor-plugin-floating-toolbar/dist/types/floatingToolbarPluginType").FloatingToolbarPluginDependencies;
751
- actions: {
752
- forceFocusSelector: import("@atlaskit/editor-plugins/floating-toolbar").ForceFocusSelector;
753
- };
754
- sharedState: {
755
- configWithNodeInfo: import("@atlaskit/editor-plugins/floating-toolbar").ConfigWithNodeInfo | undefined;
756
- floatingToolbarData: import("@atlaskit/editor-plugins/floating-toolbar").FloatingToolbarPluginData | undefined;
757
- } | undefined;
758
- }, undefined>,
759
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"copyButton", {
760
- dependencies: [
761
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
762
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
763
- sharedState: {
764
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
765
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
766
- performanceTracking: PerformanceTracking | undefined;
767
- };
768
- dependencies: [
769
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
770
- pluginConfiguration: FeatureFlags;
771
- sharedState: FeatureFlags;
772
- }, FeatureFlags>>
773
- ];
774
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
775
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
776
- ];
777
- actions: {
778
- processCopyButtonItems: (state: import("prosemirror-state").EditorState) => (items: import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[], hoverDecoration: ((nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command) | undefined) => import("@atlaskit/editor-common/types").FloatingToolbarItem<import("@atlaskit/editor-common/types").Command>[];
779
- };
780
- }, undefined>,
781
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"submitEditor", {
782
- pluginConfiguration: import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined;
783
- dependencies: import("packages/editor/editor-plugin-submit-editor/dist/types/submitEditorPluginType").SubmitEditorPluginDependencies;
784
- }, import("@atlaskit/editor-plugins/submit-editor").SubmitEditorPluginOptions | undefined>,
785
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
786
- sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
787
- }, undefined>,
788
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>,
789
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
790
- pluginConfiguration: PlaceholderPluginOptions | undefined;
791
- dependencies: [
792
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
793
- sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
794
- }, undefined>,
795
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
796
- sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
797
- }, undefined>,
798
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
799
- pluginConfiguration: TypeAheadPluginOptions | undefined;
800
- dependencies: [
801
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
802
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
803
- sharedState: {
804
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
805
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
806
- performanceTracking: PerformanceTracking | undefined;
807
- };
808
- dependencies: [
809
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
810
- pluginConfiguration: FeatureFlags;
811
- sharedState: FeatureFlags;
812
- }, FeatureFlags>>
813
- ];
814
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
815
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
816
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
817
- pluginConfiguration: FeatureFlags;
818
- sharedState: FeatureFlags;
819
- }, FeatureFlags>>,
820
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
821
- sharedState: {
822
- mode: "offline" | "online";
823
- };
824
- }, undefined>>
825
- ];
826
- sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
827
- actions: {
828
- isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
829
- isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
830
- insert: (props: {
831
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
832
- contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
833
- query: string;
834
- sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
835
- mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
836
- }) => boolean;
837
- findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
838
- open: (props: {
839
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
840
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
841
- query?: string | undefined;
842
- }) => boolean;
843
- close: (props: {
844
- insertCurrentQueryAsRawText: boolean;
845
- attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
846
- }) => boolean;
847
- openAtTransaction: (props: {
848
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
849
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
850
- query?: string | undefined;
851
- }) => (tr: import("prosemirror-state").Transaction) => boolean;
852
- };
853
- }, TypeAheadPluginOptions | undefined>
854
- ];
855
- }, PlaceholderPluginOptions | undefined>,
856
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
857
- pluginConfiguration: QuickInsertPluginOptions | undefined;
858
- dependencies: [
859
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
860
- pluginConfiguration: TypeAheadPluginOptions | undefined;
861
- dependencies: [
862
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
863
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
864
- sharedState: {
865
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
866
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
867
- performanceTracking: PerformanceTracking | undefined;
868
- };
869
- dependencies: [
870
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
871
- pluginConfiguration: FeatureFlags;
872
- sharedState: FeatureFlags;
873
- }, FeatureFlags>>
874
- ];
875
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
876
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
877
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
878
- pluginConfiguration: FeatureFlags;
879
- sharedState: FeatureFlags;
880
- }, FeatureFlags>>,
881
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
882
- sharedState: {
883
- mode: "offline" | "online";
884
- };
885
- }, undefined>>
886
- ];
887
- sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
888
- actions: {
889
- isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
890
- isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
891
- insert: (props: {
892
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
893
- contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
894
- query: string;
895
- sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
896
- mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
897
- }) => boolean;
898
- findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
899
- open: (props: {
900
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
901
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
902
- query?: string | undefined;
903
- }) => boolean;
904
- close: (props: {
905
- insertCurrentQueryAsRawText: boolean;
906
- attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
907
- }) => boolean;
908
- openAtTransaction: (props: {
909
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
910
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
911
- query?: string | undefined;
912
- }) => (tr: import("prosemirror-state").Transaction) => boolean;
913
- };
914
- }, TypeAheadPluginOptions | undefined>,
915
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
916
- sharedState: {
917
- mode: "offline" | "online";
918
- };
919
- }, undefined>>
920
- ];
921
- sharedState: import("@atlaskit/editor-plugins/quick-insert").QuickInsertSharedState | null;
922
- actions: {
923
- openTypeAhead: (inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod) => boolean;
924
- insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem, source?: import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR | undefined) => import("@atlaskit/editor-common/types").Command;
925
- getSuggestions: (searchOptions: import("@atlaskit/editor-common/types").QuickInsertSearchOptions) => import("@atlaskit/editor-common/provider-factory").QuickInsertItem[];
926
- };
927
- commands: {
928
- openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
929
- addQuickInsertItem: (item: import("@atlaskit/editor-common/types").QuickInsertHandler) => import("@atlaskit/editor-common/types").EditorCommand;
930
- };
931
- }, QuickInsertPluginOptions | undefined>,
932
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
933
- sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
934
- }, undefined>,
935
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"textFormatting", {
936
- pluginConfiguration: TextFormattingOptions | undefined;
937
- dependencies: [
938
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
939
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
940
- sharedState: {
941
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
942
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
943
- performanceTracking: PerformanceTracking | undefined;
944
- };
945
- dependencies: [
946
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
947
- pluginConfiguration: FeatureFlags;
948
- sharedState: FeatureFlags;
949
- }, FeatureFlags>>
950
- ];
951
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
952
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
953
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
954
- sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
955
- actions: {
956
- registerComponent: ({ name, component, }: {
957
- name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
958
- component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
959
- }) => void;
960
- };
961
- }, undefined>>,
962
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
963
- pluginConfiguration: BasePluginOptions | undefined;
964
- dependencies: [
965
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
966
- pluginConfiguration: FeatureFlags;
967
- sharedState: FeatureFlags;
968
- }, FeatureFlags>>,
969
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
970
- pluginConfiguration: import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined;
971
- sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
972
- commands: {
973
- setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
974
- };
975
- }, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>>
976
- ];
977
- sharedState: import("@atlaskit/editor-plugins/base").BasePluginState;
978
- actions: {
979
- setKeyboardHeight: (keyboardHeight: number) => import("@atlaskit/editor-common/types").Command;
980
- registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
981
- resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
982
- };
983
- }, BasePluginOptions | undefined>>
984
- ];
985
- commands: {
986
- toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
987
- toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
988
- toggleStrike: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
989
- toggleCode: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
990
- toggleUnderline: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
991
- toggleEm: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
992
- toggleStrong: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
993
- };
994
- sharedState: import("@atlaskit/editor-common/types").TextFormattingState | undefined;
995
- }, TextFormattingOptions | undefined>,
996
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"hyperlink", {
997
- pluginConfiguration: HyperlinkPluginOptions | undefined;
998
- dependencies: import("packages/editor/editor-plugin-hyperlink/dist/types/hyperlinkPluginType").HyperlinkPluginDependencies;
999
- actions: import("packages/editor/editor-plugin-hyperlink/dist/types/hyperlinkPluginType").HyperlinkPluginActions;
1000
- commands: {
1001
- showLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").ShowLinkToolbar;
1002
- updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
1003
- removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
1004
- };
1005
- sharedState: import("packages/editor/editor-plugin-hyperlink/dist/types/hyperlinkPluginType").HyperlinkPluginSharedState;
1006
- }, HyperlinkPluginOptions | undefined>,
1007
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
1008
- pluginConfiguration: {
1009
- preferenceToolbarAboveSelection?: boolean | undefined;
1010
- };
1011
- dependencies: [
1012
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
1013
- sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
1014
- dependencies: [
1015
- ];
1016
- pluginConfiguration?: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined;
1017
- commands: {
1018
- updateViewMode: (mode: import("@atlaskit/editor-plugins/editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1019
- updateContentMode: (action: import("packages/editor/editor-plugin-editor-viewmode/dist/types/editorViewmodePluginType").UpdateContentModeAction) => import("@atlaskit/editor-common/types").EditorCommand;
1020
- };
1021
- }, import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginConfig | undefined>>
1022
- ];
1023
- actions?: {
1024
- suppressToolbar?: (() => boolean) | undefined;
1025
- unsuppressToolbar?: (() => boolean) | undefined;
1026
- } | undefined;
1027
- }, {
1028
- preferenceToolbarAboveSelection?: boolean | undefined;
1029
- }>,
1030
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
1031
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
1032
- pluginConfiguration: BlockTypePluginOptions | undefined;
1033
- dependencies: [
1034
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
1035
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
1036
- sharedState: {
1037
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
1038
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
1039
- performanceTracking: PerformanceTracking | undefined;
1040
- };
1041
- dependencies: [
1042
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1043
- pluginConfiguration: FeatureFlags;
1044
- sharedState: FeatureFlags;
1045
- }, FeatureFlags>>
1046
- ];
1047
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1048
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
1049
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
1050
- sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
1051
- actions: {
1052
- registerComponent: ({ name, component, }: {
1053
- name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
1054
- component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
1055
- }) => void;
1056
- };
1057
- }, undefined>>
1058
- ];
1059
- sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
1060
- actions: {
1061
- insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").Command;
1062
- };
1063
- commands: {
1064
- 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;
1065
- insertBlockQuote: (inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
1066
- clearFormatting: (inputMethod: import("packages/editor/editor-plugin-block-type/dist/types/pm-plugins/commands/block-type").ClearFormattingInputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
1067
- };
1068
- }, BlockTypePluginOptions | undefined>,
1069
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
1070
- dependencies: [
1071
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
1072
- pluginConfiguration: TypeAheadPluginOptions | undefined;
1073
- dependencies: [
1074
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
1075
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
1076
- sharedState: {
1077
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
1078
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
1079
- performanceTracking: PerformanceTracking | undefined;
1080
- };
1081
- dependencies: [
1082
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1083
- pluginConfiguration: FeatureFlags;
1084
- sharedState: FeatureFlags;
1085
- }, FeatureFlags>>
1086
- ];
1087
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1088
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
1089
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1090
- pluginConfiguration: FeatureFlags;
1091
- sharedState: FeatureFlags;
1092
- }, FeatureFlags>>,
1093
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
1094
- sharedState: {
1095
- mode: "offline" | "online";
1096
- };
1097
- }, undefined>>
1098
- ];
1099
- sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
1100
- actions: {
1101
- isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
1102
- isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
1103
- insert: (props: {
1104
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
1105
- contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
1106
- query: string;
1107
- sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
1108
- mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
1109
- }) => boolean;
1110
- findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
1111
- open: (props: {
1112
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
1113
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
1114
- query?: string | undefined;
1115
- }) => boolean;
1116
- close: (props: {
1117
- insertCurrentQueryAsRawText: boolean;
1118
- attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
1119
- }) => boolean;
1120
- openAtTransaction: (props: {
1121
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
1122
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
1123
- query?: string | undefined;
1124
- }) => (tr: import("prosemirror-state").Transaction) => boolean;
1125
- };
1126
- }, TypeAheadPluginOptions | undefined>,
1127
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
1128
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
1129
- }, undefined>,
1130
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
1131
- sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
1132
- actions: {
1133
- registerComponent: ({ name, component, }: {
1134
- name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
1135
- component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
1136
- }) => void;
1137
- };
1138
- }, undefined>>
1139
- ];
1140
- }, undefined> | undefined,
1141
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
1142
- sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
1143
- actions: {
1144
- registerComponent: ({ name, component, }: {
1145
- name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
1146
- component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
1147
- }) => void;
1148
- };
1149
- }, undefined>,
1150
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
1151
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
1152
- }, undefined> | undefined,
1153
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
1154
- pluginConfiguration: TypeAheadPluginOptions | undefined;
1155
- dependencies: [
1156
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
1157
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
1158
- sharedState: {
1159
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
1160
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
1161
- performanceTracking: PerformanceTracking | undefined;
1162
- };
1163
- dependencies: [
1164
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1165
- pluginConfiguration: FeatureFlags;
1166
- sharedState: FeatureFlags;
1167
- }, FeatureFlags>>
1168
- ];
1169
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1170
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
1171
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1172
- pluginConfiguration: FeatureFlags;
1173
- sharedState: FeatureFlags;
1174
- }, FeatureFlags>>,
1175
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
1176
- sharedState: {
1177
- mode: "offline" | "online";
1178
- };
1179
- }, undefined>>
1180
- ];
1181
- sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
1182
- actions: {
1183
- isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
1184
- isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
1185
- insert: (props: {
1186
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
1187
- contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
1188
- query: string;
1189
- sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
1190
- mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
1191
- }) => boolean;
1192
- findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
1193
- open: (props: {
1194
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
1195
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
1196
- query?: string | undefined;
1197
- }) => boolean;
1198
- close: (props: {
1199
- insertCurrentQueryAsRawText: boolean;
1200
- attachCommand?: import("@atlaskit/editor-common/types").Command | undefined;
1201
- }) => boolean;
1202
- openAtTransaction: (props: {
1203
- triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
1204
- inputMethod: import("@atlaskit/editor-plugins/type-ahead").TypeAheadInputMethod;
1205
- query?: string | undefined;
1206
- }) => (tr: import("prosemirror-state").Transaction) => boolean;
1207
- };
1208
- }, TypeAheadPluginOptions | undefined>,
1209
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
1210
- sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
1211
- actions: {
1212
- hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
1213
- removeDecoration: import("@atlaskit/editor-common/types").Command;
1214
- };
1215
- }, undefined>,
1216
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
1217
- pluginConfiguration: BasePluginOptions | undefined;
1218
- dependencies: [
1219
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1220
- pluginConfiguration: FeatureFlags;
1221
- sharedState: FeatureFlags;
1222
- }, FeatureFlags>>,
1223
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
1224
- pluginConfiguration: import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined;
1225
- sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
1226
- commands: {
1227
- setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
1228
- };
1229
- }, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>>
1230
- ];
1231
- sharedState: import("@atlaskit/editor-plugins/base").BasePluginState;
1232
- actions: {
1233
- setKeyboardHeight: (keyboardHeight: number) => import("@atlaskit/editor-common/types").Command;
1234
- registerMarks: (callback: import("packages/editor/editor-plugin-base/dist/types/basePluginType").Callback) => void;
1235
- resolveMarks: (from: number, to: number, tr: import("prosemirror-state").Transaction) => void;
1236
- };
1237
- }, BasePluginOptions | undefined>,
1238
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
1239
- pluginConfiguration: import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined;
1240
- sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
1241
- commands: {
1242
- setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
1243
- };
1244
- }, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>,
1245
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
1246
- sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
1247
- }, undefined>,
1248
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
1249
- sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
1250
- }, undefined>,
1251
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>,
1252
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
1253
- pluginConfiguration: PastePluginOptions;
1254
- dependencies: import("packages/editor/editor-plugin-paste/dist/types/pastePluginType").PastePluginDependencies;
1255
- sharedState: {
1256
- lastContentPasted: import("@atlaskit/editor-plugins/paste").LastContentPasted | null;
1257
- };
1258
- }, PastePluginOptions>,
1259
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"betterTypeHistory", {
1260
- actions: import("@atlaskit/editor-plugins/better-type-history").BetterTypeHistoryAPI;
1261
- }, undefined>,
1262
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
1263
- pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
1264
- sharedState: {
1265
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
1266
- attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
1267
- performanceTracking: PerformanceTracking | undefined;
1268
- };
1269
- dependencies: [
1270
- import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1271
- pluginConfiguration: FeatureFlags;
1272
- sharedState: FeatureFlags;
1273
- }, FeatureFlags>>
1274
- ];
1275
- actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1276
- }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions> | undefined,
1277
- import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
1278
- pluginConfiguration: FeatureFlags;
1279
- sharedState: FeatureFlags;
1280
- }, FeatureFlags>
1281
- ]>[];
48
+ export declare function createDefaultPreset(options: DefaultPresetPluginOptions): DefaultPresetBuilder;
49
+ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): DefaultPresetBuilder[];