@atlaskit/editor-core 167.0.3 → 168.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -2
  3. package/dist/cjs/plugins/collab-edit/index.js +2 -2
  4. package/dist/cjs/plugins/collab-edit/provider/channel.js +2 -2
  5. package/dist/cjs/plugins/extension/context-panel.js +2 -2
  6. package/dist/cjs/plugins/extension/pm-plugins/main.js +2 -2
  7. package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +2 -2
  8. package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
  9. package/dist/cjs/plugins/macro/actions.js +2 -2
  10. package/dist/cjs/plugins/media/nodeviews/mediaInline.js +2 -2
  11. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +2 -2
  12. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +2 -2
  13. package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +2 -2
  14. package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +2 -2
  15. package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +2 -2
  16. package/dist/cjs/ui/ConfigPanel/transformers.js +2 -2
  17. package/dist/cjs/version-wrapper.js +1 -1
  18. package/dist/cjs/version.json +1 -1
  19. package/dist/es2019/version-wrapper.js +1 -1
  20. package/dist/es2019/version.json +1 -1
  21. package/dist/esm/actions/index.js +1 -1
  22. package/dist/esm/create-editor/ErrorBoundary.js +1 -1
  23. package/dist/esm/editor.js +2 -1
  24. package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +1 -1
  25. package/dist/esm/plugins/collab-edit/index.js +1 -1
  26. package/dist/esm/plugins/collab-edit/provider/channel.js +1 -1
  27. package/dist/esm/plugins/custom-autoformat/doc.js +1 -1
  28. package/dist/esm/plugins/custom-autoformat/index.js +1 -1
  29. package/dist/esm/plugins/extension/actions.js +1 -1
  30. package/dist/esm/plugins/extension/context-panel.js +1 -1
  31. package/dist/esm/plugins/extension/pm-plugins/main.js +1 -1
  32. package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +1 -1
  33. package/dist/esm/plugins/feedback-dialog/index.js +1 -1
  34. package/dist/esm/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +1 -1
  35. package/dist/esm/plugins/find-replace/utils/batch-decorations.js +1 -1
  36. package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
  37. package/dist/esm/plugins/hyperlink/HyperlinkToolbarAppearance.js +1 -1
  38. package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
  39. package/dist/esm/plugins/image-upload/pm-plugins/main.js +1 -1
  40. package/dist/esm/plugins/macro/actions.js +1 -1
  41. package/dist/esm/plugins/media/nodeviews/mediaGroup.js +1 -1
  42. package/dist/esm/plugins/media/nodeviews/mediaInline.js +2 -1
  43. package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +1 -1
  44. package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +1 -1
  45. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +1 -1
  46. package/dist/esm/plugins/media/picker-facade.js +1 -1
  47. package/dist/esm/plugins/media/pm-plugins/main.js +1 -1
  48. package/dist/esm/plugins/media/toolbar/utils.js +1 -1
  49. package/dist/esm/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -1
  50. package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +1 -1
  51. package/dist/esm/plugins/media/utils/check-media-type.js +1 -1
  52. package/dist/esm/plugins/paste/handlers.js +1 -1
  53. package/dist/esm/plugins/paste/pm-plugins/main.js +1 -1
  54. package/dist/esm/plugins/quick-insert/index.js +1 -1
  55. package/dist/esm/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +1 -1
  56. package/dist/esm/ui/ConfigPanel/ConfigPanel.js +1 -1
  57. package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +1 -1
  58. package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +1 -1
  59. package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -1
  60. package/dist/esm/ui/ConfigPanel/transformers.js +1 -1
  61. package/dist/esm/ui/LinkSearch/index.js +1 -1
  62. package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
  63. package/dist/esm/utils/action.js +1 -1
  64. package/dist/esm/utils/clipboard.js +1 -1
  65. package/dist/esm/utils/extensions.js +1 -1
  66. package/dist/esm/version-wrapper.js +1 -1
  67. package/dist/esm/version.json +1 -1
  68. package/package.json +10 -10
  69. package/report.api.md +2698 -0
package/report.api.md ADDED
@@ -0,0 +1,2698 @@
1
+ ## API Report File for "@atlaskit/editor-core"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+ /// <reference types="node" />
7
+ /// <reference types="react" />
8
+
9
+ import { AbstractMentionResource } from '@atlaskit/mention/resource';
10
+ import { ActivityProvider } from '@atlaskit/activity-provider';
11
+ import type { ADFEntityMark } from '@atlaskit/adf-utils/types';
12
+ import { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
13
+ import { AnnotationTypes } from '@atlaskit/adf-schema';
14
+ import { CardOptions } from '@atlaskit/editor-common/card';
15
+ import { CardProvider } from '@atlaskit/editor-common/provider-factory';
16
+ import { CollabEditProvider } from '@atlaskit/editor-common/collab';
17
+ import { Color } from '@atlaskit/status/element';
18
+ import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
19
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
20
+ import { CreateUIAnalyticsEvent as CreateUIAnalyticsEvent_2 } from '@atlaskit/analytics-next/types';
21
+ import { DecorationSet } from 'prosemirror-view';
22
+ import { DirectEditorProps } from 'prosemirror-view';
23
+ import { EditorState } from 'prosemirror-state';
24
+ import { EditorView } from 'prosemirror-view';
25
+ import { EmojiId } from '@atlaskit/emoji/types';
26
+ import { EmojiResource } from '@atlaskit/emoji/resource';
27
+ import { ErrorReporter } from '@atlaskit/editor-common/utils';
28
+ import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
29
+ import { EventEmitter } from 'events';
30
+ import { ExperienceStore } from '@atlaskit/editor-common/ufo';
31
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
32
+ import { ExtensionLayout } from '@atlaskit/adf-schema';
33
+ import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
34
+ import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
35
+ import { Fragment } from 'prosemirror-model';
36
+ import { IntlShape } from 'react-intl-next';
37
+ import { JSONDocNode } from '@atlaskit/editor-json-transformer';
38
+ import { jsx } from '@emotion/react';
39
+ import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
40
+ import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
41
+ import { Mapping } from 'prosemirror-transform';
42
+ import { MarkSpec } from 'prosemirror-model';
43
+ import { MediaClientConfig } from '@atlaskit/media-core';
44
+ import { MediaFeatureFlags } from '@atlaskit/media-common';
45
+ import { MediaFeatureFlags as MediaFeatureFlags_2 } from '@atlaskit/media-common/mediaFeatureFlags';
46
+ import { MediaFile } from '@atlaskit/media-picker/types';
47
+ import { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
48
+ import { MemoizedFn } from 'memoize-one';
49
+ import { MentionDescription } from '@atlaskit/mention';
50
+ import { MentionProvider } from '@atlaskit/mention/resource';
51
+ import { MentionProvider as MentionProvider_2 } from '@atlaskit/mention';
52
+ import { MentionResource } from '@atlaskit/mention/resource';
53
+ import { MessageDescriptor } from 'react-intl-next';
54
+ import { NewCollabSyncUpErrorAttributes } from '@atlaskit/editor-common/types';
55
+ import { Node as Node_2 } from 'prosemirror-model';
56
+ import { NodeSpec } from 'prosemirror-model';
57
+ import { NodeType } from 'prosemirror-model';
58
+ import { NodeView } from 'prosemirror-view';
59
+ import { PanelType } from '@atlaskit/adf-schema';
60
+ import { PluginKey } from 'prosemirror-state';
61
+ import { Position } from '@atlaskit/editor-common/src/ui/Popup/utils';
62
+ import { PositionType } from '@atlaskit/tooltip/types';
63
+ import { PresenceProvider } from '@atlaskit/mention/resource';
64
+ import { PresenceResource } from '@atlaskit/mention/resource';
65
+ import { PropsDifference } from '@atlaskit/editor-common/utils';
66
+ import PropTypes from 'prop-types';
67
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
68
+ import { Providers } from '@atlaskit/editor-common/provider-factory';
69
+ import { PureComponent } from 'react';
70
+ import { QuickInsertActionInsert } from '@atlaskit/editor-common/provider-factory';
71
+ import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
72
+ import { QuickInsertItemId } from '@atlaskit/editor-common/provider-factory';
73
+ import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
74
+ import { default as React_2 } from 'react';
75
+ import { ReactElement } from 'react';
76
+ import { RefObject } from 'react';
77
+ import { ResolvedEditorState } from '@atlaskit/editor-common/collab';
78
+ import { ResolvedPos } from 'prosemirror-model';
79
+ import { RichMediaLayout } from '@atlaskit/adf-schema';
80
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
81
+ import { Schema } from 'prosemirror-model';
82
+ import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
83
+ import { Selection as Selection_2 } from 'prosemirror-state';
84
+ import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
85
+ import { SEVERITY } from '@atlaskit/editor-common/utils';
86
+ import { ShallowPropsDifference } from '@atlaskit/editor-common/utils';
87
+ import { Slice } from 'prosemirror-model';
88
+ import { TableLayout } from '@atlaskit/adf-schema';
89
+ import { TableSortOrder } from '@atlaskit/adf-schema/steps';
90
+ import { TaskDecisionProvider } from '@atlaskit/task-decision';
91
+ import { TeamMentionProvider } from '@atlaskit/mention/resource';
92
+ import { TeamMentionResource } from '@atlaskit/mention/team-resource';
93
+ import type { ThemeModes } from '@atlaskit/theme/types';
94
+ import { Transaction } from 'prosemirror-state';
95
+ import { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
96
+ import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
97
+ import type { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
98
+ import { UIAnalyticsEventHandler } from '@atlaskit/analytics-next';
99
+ import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
100
+ import type { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
101
+ import { UploadEndEventPayload } from '@atlaskit/media-picker/types';
102
+ import { UploadErrorEventPayload } from '@atlaskit/media-picker/types';
103
+ import { UploadParams } from '@atlaskit/media-picker/types';
104
+ import { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
105
+ import type { UserBrowserExtensionResults } from '@atlaskit/editor-common/utils';
106
+ import { WithIntlProps } from 'react-intl-next';
107
+ import { WrappedComponentProps } from 'react-intl-next';
108
+
109
+ export { AbstractMentionResource };
110
+
111
+ // @public (undocumented)
112
+ export enum ACTION {
113
+ // (undocumented)
114
+ ACTIVATED = 'activated',
115
+ // (undocumented)
116
+ ADDED = 'added',
117
+ // (undocumented)
118
+ BROWSER_FREEZE = 'browserFreeze',
119
+ // (undocumented)
120
+ CHANGED_BACKGROUND_COLOR = 'changedBackgroundColor',
121
+ // (undocumented)
122
+ CHANGED_FULL_WIDTH_MODE = 'changedFullWidthMode',
123
+ // (undocumented)
124
+ CHANGED_ICON = 'changedIcon',
125
+ // (undocumented)
126
+ CHANGED_LAYOUT = 'changedLayout',
127
+ // (undocumented)
128
+ CHANGED_REPLACEMENT_TEXT = 'changedReplacementText',
129
+ // (undocumented)
130
+ CHANGED_TYPE = 'changedType',
131
+ // (undocumented)
132
+ CHANGED_URL = 'changedUrl',
133
+ // (undocumented)
134
+ CLEARED = 'cleared',
135
+ // (undocumented)
136
+ CLICKED = 'clicked',
137
+ // (undocumented)
138
+ CLOSED = 'closed',
139
+ // (undocumented)
140
+ COMMITTED = 'committed',
141
+ // (undocumented)
142
+ CONVERTED = 'converted',
143
+ // (undocumented)
144
+ COPIED = 'copied',
145
+ // (undocumented)
146
+ CUT = 'cut',
147
+ // (undocumented)
148
+ DEACTIVATED = 'deactivated',
149
+ // (undocumented)
150
+ DECREMENTED = 'decremented',
151
+ // (undocumented)
152
+ DEDUPE_MARKS_TRANSFORMED = 'dedupeMarksTransformed',
153
+ // (undocumented)
154
+ DELETED = 'deleted',
155
+ // (undocumented)
156
+ DISCARDED_INVALID_STEPS_FROM_TRANSACTION = 'discardedInvalidStepsFromTransaction',
157
+ // (undocumented)
158
+ DISMISSED = 'dismissed',
159
+ // (undocumented)
160
+ DISPATCHED_INVALID_TRANSACTION = 'dispatchedInvalidTransaction',
161
+ // (undocumented)
162
+ DISPATCHED_VALID_TRANSACTION = 'dispatchedValidTransaction',
163
+ // (undocumented)
164
+ DOCUMENT_PROCESSING_ERROR = 'documentProcessingError',
165
+ // (undocumented)
166
+ EDITED = 'edited',
167
+ // (undocumented)
168
+ EDITOR_CONTENT_RETRIEVAL_PERFORMED = 'contentRetrievalPerformed',
169
+ // (undocumented)
170
+ EDITOR_CRASHED = 'unhandledErrorCaught',
171
+ // (undocumented)
172
+ EDITOR_CRASHED_ADDITIONAL_INFORMATION = 'unhandledErrorCaughtAdditionalInfo',
173
+ // (undocumented)
174
+ EDITOR_MOUNTED = 'mounted',
175
+ // (undocumented)
176
+ EDITOR_TTI = 'tti',
177
+ // (undocumented)
178
+ ENTERED = 'entered',
179
+ // (undocumented)
180
+ ERRORED = 'errored',
181
+ // (undocumented)
182
+ EXPOSED = 'exposed',
183
+ // (undocumented)
184
+ FAILED_TO_UNMOUNT = 'failedToUnmount',
185
+ // (undocumented)
186
+ FIND_NEXT_PERFORMED = 'findNextPerformed',
187
+ // (undocumented)
188
+ FIND_PERFORMED = 'findPerformed',
189
+ // (undocumented)
190
+ FIND_PREV_PERFORMED = 'findPrevPerformed',
191
+ // (undocumented)
192
+ FORMATTED = 'formatted',
193
+ // (undocumented)
194
+ HELP_OPENED = 'helpOpened',
195
+ // (undocumented)
196
+ HIGHLIGHTED = 'highlighted',
197
+ // (undocumented)
198
+ INCREMENTED = 'incremented',
199
+ // (undocumented)
200
+ INDENTATION_MARKS_TRANSFORMED = 'indentationMarksTransformed',
201
+ // (undocumented)
202
+ INDENTED = 'indented',
203
+ // (undocumented)
204
+ INITIALISED = 'initialised',
205
+ // (undocumented)
206
+ INPUT_PERF_SAMPLING = 'inputPerfSampling',
207
+ // (undocumented)
208
+ INPUT_PERF_SAMPLING_AVG = 'inputPerfSamplingAvg',
209
+ // (undocumented)
210
+ INSERTED = 'inserted',
211
+ // (undocumented)
212
+ INVALID_DOCUMENT_ENCOUNTERED = 'invalidDocumentEncountered',
213
+ // (undocumented)
214
+ INVALID_PROSEMIRROR_DOCUMENT = 'invalidProsemirrorDocument',
215
+ // (undocumented)
216
+ INVOKED = 'invoked',
217
+ // (undocumented)
218
+ LANGUAGE_SELECTED = 'languageSelected',
219
+ // (undocumented)
220
+ LIST_ITEM_JOINED = 'listItemJoined',
221
+ // (undocumented)
222
+ MATCHED = 'matched',
223
+ // (undocumented)
224
+ MEDIA_LINK_TRANSFORMED = 'mediaLinkTransformed',
225
+ // (undocumented)
226
+ NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS = 'newCollabSyncUpErrorNoSteps',
227
+ // (undocumented)
228
+ NODE_CONTENT_SANITIZED = 'nodeContentSanitized',
229
+ // (undocumented)
230
+ NODES_MISSING_CONTENT_TRANSFORMED = 'nodesMissingContentTransformed',
231
+ // (undocumented)
232
+ ON_CHANGE_CALLBACK = 'onChangeCalled',
233
+ // (undocumented)
234
+ ON_EDITOR_READY_CALLBACK = 'onEditorReadyCallback',
235
+ // (undocumented)
236
+ OPENED = 'opened',
237
+ // (undocumented)
238
+ OUTDENTED = 'outdented',
239
+ // (undocumented)
240
+ PASTED = 'pasted',
241
+ // (undocumented)
242
+ PASTED_AS_PLAIN = 'pastedAsPlain',
243
+ // (undocumented)
244
+ PASTED_TIMED = 'pastedTimed',
245
+ // (undocumented)
246
+ PROSEMIRROR_RENDERED = 'proseMirrorRendered',
247
+ // (undocumented)
248
+ RE_RENDERED = 'reRendered',
249
+ // (undocumented)
250
+ REACT_NODEVIEW_RENDERED = 'reactNodeViewRendered',
251
+ // (undocumented)
252
+ REMOVE_ICON = 'removedIcon',
253
+ // (undocumented)
254
+ RENDERED = 'rendered',
255
+ // (undocumented)
256
+ REPLACED_ALL = 'replacedAll',
257
+ // (undocumented)
258
+ REPLACED_ONE = 'replacedOne',
259
+ // (undocumented)
260
+ RESOLVED = 'resolved',
261
+ // (undocumented)
262
+ SELECTED = 'selected',
263
+ // (undocumented)
264
+ SHOWN = 'shown',
265
+ // (undocumented)
266
+ SLOW_INPUT = 'slowInput',
267
+ // (undocumented)
268
+ STARTED = 'started',
269
+ // (undocumented)
270
+ STOPPED = 'stopped',
271
+ // (undocumented)
272
+ SUBSTITUTED = 'autoSubstituted',
273
+ // (undocumented)
274
+ SYNCHRONY_DISCONNECTED = 'synchronyDisconnected',
275
+ // (undocumented)
276
+ SYNCHRONY_ENTITY_ERROR = 'synchronyEntityError',
277
+ // (undocumented)
278
+ SYNCHRONY_ERROR = 'synchronyError',
279
+ // (undocumented)
280
+ TEXT_LINK_MARK_TRANSFORMED = 'textLinkMarkTransformed',
281
+ // (undocumented)
282
+ TOGGLE_EXPAND = 'toggleExpand',
283
+ // (undocumented)
284
+ TRANSACTION_DISPATCHED = 'transactionDispatched',
285
+ // (undocumented)
286
+ TRANSACTION_MUTATED_AFTER_DISPATCH = 'transactionMutatedAfterDispatched',
287
+ // (undocumented)
288
+ TYPING_FINISHED = 'typingFinished',
289
+ // (undocumented)
290
+ TYPING_STARTED = 'typingStarted',
291
+ // (undocumented)
292
+ UFO_SESSION_COMPLETE = 'ufoSessionComplete',
293
+ // (undocumented)
294
+ UNLINK = 'unlinked',
295
+ // (undocumented)
296
+ UNSUPPORTED_CONTENT_ENCOUNTERED = 'unsupportedContentEncountered',
297
+ // (undocumented)
298
+ UPDATED = 'updated',
299
+ // (undocumented)
300
+ UPLOAD_EXTERNAL_FAIL = 'uploadExternalFailed',
301
+ // (undocumented)
302
+ VIEWED = 'viewed',
303
+ // (undocumented)
304
+ VISITED = 'visited',
305
+ // (undocumented)
306
+ WITH_PLUGIN_STATE_CALLED = 'withPluginStateCalled',
307
+ }
308
+
309
+ // @public (undocumented)
310
+ export enum ACTION_SUBJECT {
311
+ // (undocumented)
312
+ ANNOTATION = 'annotation',
313
+ // (undocumented)
314
+ BUTTON = 'button',
315
+ // (undocumented)
316
+ CODE_BLOCK = 'codeBlock',
317
+ // (undocumented)
318
+ CONFIG_PANEL = 'configPanel',
319
+ // (undocumented)
320
+ CONTENT_COMPONENT = 'contentComponent',
321
+ // (undocumented)
322
+ CREATE_LINK_INLINE_DIALOG = 'createLinkInlineDialog',
323
+ // (undocumented)
324
+ DATE = 'date',
325
+ // (undocumented)
326
+ DATE_SEGMENT = 'dateSegment',
327
+ // (undocumented)
328
+ DOCUMENT = 'document',
329
+ // (undocumented)
330
+ EDITOR = 'editor',
331
+ // (undocumented)
332
+ ELEMENT_BROWSER = 'elementBrowser',
333
+ // (undocumented)
334
+ EMBEDS = 'embeds',
335
+ // (undocumented)
336
+ EXPAND = 'expand',
337
+ // (undocumented)
338
+ EXTENSION = 'extension',
339
+ // (undocumented)
340
+ FEATURE = 'feature',
341
+ // (undocumented)
342
+ FEEDBACK_DIALOG = 'feedbackDialog',
343
+ // (undocumented)
344
+ FIND_REPLACE_DIALOG = 'findReplaceDialog',
345
+ // (undocumented)
346
+ FLOATING_CONTEXTUAL_BUTTON = 'floatingContextualButton',
347
+ // (undocumented)
348
+ FLOATING_TOOLBAR_PLUGIN = 'floatingToolbarPlugin',
349
+ // (undocumented)
350
+ HELP = 'help',
351
+ // (undocumented)
352
+ HYPERLINK = 'hyperlink',
353
+ // (undocumented)
354
+ LAYOUT = 'layout',
355
+ // (undocumented)
356
+ LIST = 'list',
357
+ // (undocumented)
358
+ MEDIA = 'media',
359
+ // (undocumented)
360
+ MEDIA_SINGLE = 'mediaSingle',
361
+ // (undocumented)
362
+ NESTED_EXPAND = 'nestedExpand',
363
+ // (undocumented)
364
+ PANEL = 'panel',
365
+ // (undocumented)
366
+ PICKER = 'picker',
367
+ // (undocumented)
368
+ PLUGIN_SLOT = 'pluginSlot',
369
+ // (undocumented)
370
+ PLUS_MENU = 'plusMenu',
371
+ // (undocumented)
372
+ REACT_EDITOR_VIEW = 'reactEditorView',
373
+ // (undocumented)
374
+ REACT_NODE_VIEW = 'reactNodeView',
375
+ // (undocumented)
376
+ SEARCH_RESULT = 'searchResult',
377
+ // (undocumented)
378
+ SELECTION = 'selection',
379
+ // (undocumented)
380
+ SMART_LINK = 'smartLink',
381
+ // (undocumented)
382
+ TABLE = 'table',
383
+ // (undocumented)
384
+ TABLES_PLUGIN = 'tablesPlugin',
385
+ // (undocumented)
386
+ TEXT = 'text',
387
+ // (undocumented)
388
+ TOOLBAR = 'toolbar',
389
+ // (undocumented)
390
+ TOOLBAR_BUTTON = 'toolbarButton',
391
+ // (undocumented)
392
+ TYPEAHEAD = 'typeAhead',
393
+ // (undocumented)
394
+ TYPEAHEAD_ITEM = 'typeAheadItem',
395
+ }
396
+
397
+ // @public (undocumented)
398
+ export enum ACTION_SUBJECT_ID {
399
+ // (undocumented)
400
+ ACTION = 'action',
401
+ // (undocumented)
402
+ ALL = 'all',
403
+ // (undocumented)
404
+ ALT_TEXT = 'altText',
405
+ // (undocumented)
406
+ ANNOTATE_BUTTON = 'annotateButton',
407
+ // (undocumented)
408
+ AVATAR_GROUP_PLUGIN = 'AvatarGroupInPlugin',
409
+ // (undocumented)
410
+ BLOCK_QUOTE = 'blockQuote',
411
+ // (undocumented)
412
+ BUTTON_CATEGORY = 'categoryButton',
413
+ // (undocumented)
414
+ BUTTON_FEEDBACK = 'feedbackButton',
415
+ // (undocumented)
416
+ BUTTON_HELP = 'helpButton',
417
+ // (undocumented)
418
+ CANCEL = 'cancel',
419
+ // (undocumented)
420
+ CAPTION = 'caption',
421
+ // (undocumented)
422
+ CARD_BLOCK = 'blockCard',
423
+ // (undocumented)
424
+ CARD_INLINE = 'inlineCard',
425
+ // (undocumented)
426
+ CELL = 'cell',
427
+ // (undocumented)
428
+ CODE_BLOCK = 'codeBlock',
429
+ // (undocumented)
430
+ DATE = 'date',
431
+ // (undocumented)
432
+ DATE_DAY = 'day',
433
+ // (undocumented)
434
+ DATE_MONTH = 'month',
435
+ // (undocumented)
436
+ DATE_YEAR = 'year',
437
+ // (undocumented)
438
+ DECISION = 'decision',
439
+ // (undocumented)
440
+ DIVIDER = 'divider',
441
+ // (undocumented)
442
+ EDIT_LINK = 'editLink',
443
+ // (undocumented)
444
+ EMBEDS = 'embeds',
445
+ // (undocumented)
446
+ EMOJI = 'emoji',
447
+ // (undocumented)
448
+ EXPAND = 'expand',
449
+ // (undocumented)
450
+ EXTENSION = 'extension',
451
+ // (undocumented)
452
+ EXTENSION_API = 'extensionApi',
453
+ // (undocumented)
454
+ EXTENSION_BLOCK = 'extension',
455
+ // (undocumented)
456
+ EXTENSION_BODIED = 'bodiedExtension',
457
+ // (undocumented)
458
+ EXTENSION_INLINE = 'inlineExtension',
459
+ // (undocumented)
460
+ FORMAT_BLOCK_QUOTE = 'blockQuote',
461
+ // (undocumented)
462
+ FORMAT_CLEAR = 'clearFormatting',
463
+ // (undocumented)
464
+ FORMAT_CODE = 'code',
465
+ // (undocumented)
466
+ FORMAT_COLOR = 'color',
467
+ // (undocumented)
468
+ FORMAT_HEADING = 'heading',
469
+ // (undocumented)
470
+ FORMAT_INDENT = 'indentation',
471
+ // (undocumented)
472
+ FORMAT_ITALIC = 'italic',
473
+ // (undocumented)
474
+ FORMAT_LIST_BULLET = 'bulletedList',
475
+ // (undocumented)
476
+ FORMAT_LIST_NUMBER = 'numberedList',
477
+ // (undocumented)
478
+ FORMAT_STRIKE = 'strike',
479
+ // (undocumented)
480
+ FORMAT_STRONG = 'strong',
481
+ // (undocumented)
482
+ FORMAT_SUB = 'subscript',
483
+ // (undocumented)
484
+ FORMAT_SUPER = 'superscript',
485
+ // (undocumented)
486
+ FORMAT_UNDERLINE = 'underline',
487
+ // (undocumented)
488
+ HELP_QUICK_INSERT = 'helpQuickInsert',
489
+ // (undocumented)
490
+ HYPERLINK = 'hyperlink',
491
+ // (undocumented)
492
+ INLINE_COMMENT = 'inlineComment',
493
+ // (undocumented)
494
+ LAYOUT = 'layout',
495
+ // (undocumented)
496
+ LINE_BREAK = 'lineBreak',
497
+ // (undocumented)
498
+ LINK = 'link',
499
+ // (undocumented)
500
+ LINK_PREVIEW = 'linkPreview',
501
+ // (undocumented)
502
+ LINK_SEARCH_INPUT = 'linkSearchInput',
503
+ // (undocumented)
504
+ MEDIA = 'media',
505
+ // (undocumented)
506
+ MEDIA_GROUP = 'mediaGroup',
507
+ // (undocumented)
508
+ MEDIA_INLINE = 'mediaInline',
509
+ // (undocumented)
510
+ MEDIA_LINK = 'mediaLink',
511
+ // (undocumented)
512
+ MEDIA_SINGLE = 'mediaSingle',
513
+ // (undocumented)
514
+ MENTION = 'mention',
515
+ // (undocumented)
516
+ NESTED_EXPAND = 'nestedExpand',
517
+ // (undocumented)
518
+ NODE = 'node',
519
+ // (undocumented)
520
+ OPEN_LINK = 'openLink',
521
+ // (undocumented)
522
+ PANEL = 'panel',
523
+ // (undocumented)
524
+ PASTE_BLOCK_CARD = 'blockCard',
525
+ // (undocumented)
526
+ PASTE_BLOCKQUOTE = 'blockQuote',
527
+ // (undocumented)
528
+ PASTE_BODIED_EXTENSION = 'bodiedExtension',
529
+ // (undocumented)
530
+ PASTE_BULLET_LIST = 'bulletList',
531
+ // (undocumented)
532
+ PASTE_CODE_BLOCK = 'codeBlock',
533
+ // (undocumented)
534
+ PASTE_DECISION_LIST = 'decisionList',
535
+ // (undocumented)
536
+ PASTE_EXPAND = 'expand',
537
+ // (undocumented)
538
+ PASTE_EXTENSION = 'extension',
539
+ // (undocumented)
540
+ PASTE_HEADING = 'heading',
541
+ // (undocumented)
542
+ PASTE_MEDIA_GROUP = 'mediaGroup',
543
+ // (undocumented)
544
+ PASTE_MEDIA_SINGLE = 'mediaSingle',
545
+ // (undocumented)
546
+ PASTE_NESTED_EXPAND = 'nestedExpand',
547
+ // (undocumented)
548
+ PASTE_ORDERED_LIST = 'orderedList',
549
+ // (undocumented)
550
+ PASTE_PANEL = 'panel',
551
+ // (undocumented)
552
+ PASTE_PARAGRAPH = 'paragraph',
553
+ // (undocumented)
554
+ PASTE_RULE = 'rule',
555
+ // (undocumented)
556
+ PASTE_TABLE = 'table',
557
+ // (undocumented)
558
+ PASTE_TABLE_CELL = 'tableCell',
559
+ // (undocumented)
560
+ PASTE_TABLE_HEADER = 'tableHeader',
561
+ // (undocumented)
562
+ PASTE_TABLE_ROW = 'tableRow',
563
+ // (undocumented)
564
+ PASTE_TASK_LIST = 'taskList',
565
+ // (undocumented)
566
+ PICKER_CLOUD = 'cloudPicker',
567
+ // (undocumented)
568
+ PICKER_COLOR = 'colorPicker',
569
+ // (undocumented)
570
+ PICKER_EMOJI = 'emojiPicker',
571
+ // (undocumented)
572
+ PLACEHOLDER_TEXT = 'placeholderText',
573
+ // (undocumented)
574
+ POST_QUERY_SEARCH_RESULTS = 'postQuerySearchResults',
575
+ // (undocumented)
576
+ PRE_QUERY_SEARCH_RESULTS = 'preQuerySearchResults',
577
+ // (undocumented)
578
+ PRODUCT_NAME = 'productName',
579
+ // (undocumented)
580
+ PUNC = 'punctuation',
581
+ // (undocumented)
582
+ QUICK_SEARCH = 'quickSearch',
583
+ // (undocumented)
584
+ RANGE = 'range',
585
+ // (undocumented)
586
+ REACT_NODE_VIEW = 'reactNodeView',
587
+ // (undocumented)
588
+ RECENT_ACTIVITIES = 'recentActivities',
589
+ // (undocumented)
590
+ RESIZED = 'resized',
591
+ // (undocumented)
592
+ RICH_MEDIA_LAYOUT = 'richMediaLayout',
593
+ // (undocumented)
594
+ SAVE = 'save',
595
+ // (undocumented)
596
+ SECTION = 'section',
597
+ // (undocumented)
598
+ SMART_LINK = 'smartLink',
599
+ // (undocumented)
600
+ STATUS = 'status',
601
+ // (undocumented)
602
+ SYMBOL = 'symbol',
603
+ // (undocumented)
604
+ TABLE = 'table',
605
+ // (undocumented)
606
+ TEXT = 'text',
607
+ // (undocumented)
608
+ TYPEAHEAD_EMOJI = 'emojiTypeAhead',
609
+ // (undocumented)
610
+ TYPEAHEAD_LINK = 'linkTypeAhead',
611
+ // (undocumented)
612
+ TYPEAHEAD_MENTION = 'mentionTypeAhead',
613
+ // (undocumented)
614
+ TYPEAHEAD_QUICK_INSERT = 'quickInsertTypeAhead',
615
+ // (undocumented)
616
+ UNKNOWN_NODE = 'unknownNode',
617
+ // (undocumented)
618
+ UNLINK = 'unlink',
619
+ // (undocumented)
620
+ UNSUPPORTED_BLOCK = 'unsupportedBlock',
621
+ // (undocumented)
622
+ UNSUPPORTED_INLINE = 'unsupportedInline',
623
+ // (undocumented)
624
+ UNSUPPORTED_MARK = 'unsupportedMark',
625
+ }
626
+
627
+ // @public (undocumented)
628
+ export type AnalyticsEventPayload<T = void> =
629
+ | AvatarEventPayload
630
+ | GeneralEventPayload<T>
631
+ | FormatEventPayload
632
+ | SubstituteEventPayload
633
+ | InsertEventPayload
634
+ | NodeEventPayload
635
+ | MediaEventPayload
636
+ | TableEventPayload
637
+ | PasteEventPayload
638
+ | CutCopyEventPayload
639
+ | ErrorEventPayload
640
+ | ExperimentalEventPayload
641
+ | FindReplaceEventPayload
642
+ | DateEventPayload
643
+ | SelectionEventPayload
644
+ | ListEventPayload
645
+ | ConfigPanelEventPayload
646
+ | ElementBrowserEventPayload
647
+ | CreateLinkInlineDialogEventPayload
648
+ | UnsupportedContentPayload
649
+ | ExtensionEventPayload
650
+ | TransactionEventPayload
651
+ | TypeAheadPayload
652
+ | UnlinkToolbarAEP
653
+ | EditLinkToolbarAEP
654
+ | CustomPanelEventPayload
655
+ | FeatureExposureAEP
656
+ | NewCollabSyncUpErrorAEP
657
+ | UnsupportedContentTooltipPayload;
658
+
659
+ // @public (undocumented)
660
+ export type AnnotationInfo = {
661
+ id: string;
662
+ type: AnnotationTypes.INLINE_COMMENT;
663
+ };
664
+
665
+ // @public (undocumented)
666
+ export interface AnnotationProviders {
667
+ // (undocumented)
668
+ inlineComment: InlineCommentAnnotationProvider;
669
+ }
670
+
671
+ // @public (undocumented)
672
+ export interface AnnotationState<Type, State> {
673
+ // (undocumented)
674
+ annotationType: Type;
675
+ // (undocumented)
676
+ id: string;
677
+ // (undocumented)
678
+ state: State;
679
+ }
680
+
681
+ // @public (undocumented)
682
+ export interface AnnotationTypeProvider<Type, State> {
683
+ // (undocumented)
684
+ disallowOnWhitespace?: boolean;
685
+ // (undocumented)
686
+ getState: (
687
+ annotationIds: string[],
688
+ ) => Promise<AnnotationState<Type, State>[]>;
689
+ // (undocumented)
690
+ updateSubscriber?: AnnotationUpdateEmitter;
691
+ }
692
+
693
+ // @public (undocumented)
694
+ export class AnnotationUpdateEmitter extends EventEmitter {
695
+ // (undocumented)
696
+ on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
697
+ // (undocumented)
698
+ on(event: UpdateEvent, listener: (annotationId: string) => void): this;
699
+ }
700
+
701
+ // @public (undocumented)
702
+ export class BaseReactEditorView<T = {}> extends React_2.Component<
703
+ EditorViewProps & WrappedComponentProps & T,
704
+ {},
705
+ EditorReactContext
706
+ > {
707
+ constructor(
708
+ props: EditorViewProps & WrappedComponentProps & T,
709
+ context: EditorReactContext,
710
+ );
711
+ // (undocumented)
712
+ blur: () => void;
713
+ // (undocumented)
714
+ componentDidMount(): void;
715
+ componentWillUnmount(): void;
716
+ // (undocumented)
717
+ config: EditorConfig;
718
+ // (undocumented)
719
+ contentTransformer?: Transformer_2<string>;
720
+ // (undocumented)
721
+ static contextTypes: {
722
+ getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<
723
+ (...args: any[]) => any
724
+ >;
725
+ };
726
+ // (undocumented)
727
+ createEditorState: (options: {
728
+ props: EditorViewProps;
729
+ context: EditorReactContext;
730
+ doc?: string | Object | Node_2<any> | undefined;
731
+ resetting?: boolean | undefined;
732
+ selectionAtStart?: boolean | undefined;
733
+ }) => EditorState<any>;
734
+ // (undocumented)
735
+ dispatch: Dispatch;
736
+ // (undocumented)
737
+ dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
738
+ // (undocumented)
739
+ editorState: EditorState;
740
+ // (undocumented)
741
+ errorReporter: ErrorReporter;
742
+ // (undocumented)
743
+ eventDispatcher: EventDispatcher;
744
+ // (undocumented)
745
+ experienceStore?: ExperienceStore;
746
+ // (undocumented)
747
+ formatFullWidthAppearance: (
748
+ appearance: EditorAppearance | undefined,
749
+ ) => FULL_WIDTH_MODE;
750
+ // (undocumented)
751
+ getDirectEditorProps: (
752
+ state?: EditorState<any> | undefined,
753
+ ) => DirectEditorProps;
754
+ // (undocumented)
755
+ getPlugins(
756
+ editorProps: EditorProps,
757
+ prevEditorProps?: EditorProps,
758
+ createAnalyticsEvent?: CreateUIAnalyticsEvent,
759
+ ): EditorPlugin[];
760
+ // (undocumented)
761
+ handleAnalyticsEvent: FireAnalyticsCallback;
762
+ // (undocumented)
763
+ handleEditorViewRef: (node: HTMLDivElement) => void;
764
+ // (undocumented)
765
+ proseMirrorRenderedSeverity?: SEVERITY;
766
+ // (undocumented)
767
+ reconfigureState: (props: EditorViewProps) => void;
768
+ // (undocumented)
769
+ render(): JSX.Element;
770
+ // (undocumented)
771
+ resetEditorState: ({
772
+ doc,
773
+ shouldScrollToBottom,
774
+ }: {
775
+ doc: string;
776
+ shouldScrollToBottom: boolean;
777
+ }) => void;
778
+ // (undocumented)
779
+ transactionTracker: TransactionTracker;
780
+ // (undocumented)
781
+ get transactionTracking(): TransactionTracking;
782
+ // (undocumented)
783
+ UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
784
+ // (undocumented)
785
+ validTransactionCount: number;
786
+ // (undocumented)
787
+ view?: EditorView;
788
+ }
789
+
790
+ // @public (undocumented)
791
+ export const blockPluginStateKey: PluginKey<BlockTypeState, any>;
792
+
793
+ // @public (undocumented)
794
+ export type BlockTypeInputMethod =
795
+ | INPUT_METHOD.TOOLBAR
796
+ | INPUT_METHOD.INSERT_MENU
797
+ | INPUT_METHOD.SHORTCUT
798
+ | INPUT_METHOD.FORMATTING
799
+ | INPUT_METHOD.KEYBOARD;
800
+
801
+ // @public (undocumented)
802
+ export type BlockTypeState = {
803
+ currentBlockType: BlockType;
804
+ blockTypesDisabled: boolean;
805
+ availableBlockTypes: BlockType[];
806
+ availableWrapperBlockTypes: BlockType[];
807
+ };
808
+
809
+ export { CardProvider };
810
+
811
+ // @public (undocumented)
812
+ export const changeColor: (color: string) => Command;
813
+
814
+ // @public (undocumented)
815
+ export const clearEditorContent: Command;
816
+
817
+ export { CollabEditProvider };
818
+
819
+ // @public (undocumented)
820
+ export class CollapsedEditor extends React_2.Component<Props, State_2> {
821
+ // (undocumented)
822
+ componentDidUpdate(): void;
823
+ // (undocumented)
824
+ editorComponent?: Editor;
825
+ // (undocumented)
826
+ handleEditorRef: (
827
+ editorRef?: Editor | undefined,
828
+ editorRefCallback?: any,
829
+ ) => void;
830
+ // (undocumented)
831
+ render(): JSX.Element;
832
+ // (undocumented)
833
+ shouldTriggerExpandEvent?: boolean;
834
+ // (undocumented)
835
+ UNSAFE_componentWillReceiveProps(nextProps: Props): void;
836
+ }
837
+
838
+ // @public (undocumented)
839
+ export type Command = (
840
+ state: EditorState,
841
+ dispatch?: CommandDispatch,
842
+ view?: EditorView,
843
+ ) => boolean;
844
+
845
+ // @public (undocumented)
846
+ export type CommandDispatch = (tr: Transaction) => void;
847
+
848
+ // @public (undocumented)
849
+ export const commitStatusPicker: () => (editorView: EditorView) => void;
850
+
851
+ // @public (undocumented)
852
+ export class ContextPanel extends React_2.Component<Props_4> {
853
+ // (undocumented)
854
+ render(): jsx.JSX.Element;
855
+ }
856
+
857
+ // @public (undocumented)
858
+ export const createQuickInsertTools: (
859
+ editorView: EditorView,
860
+ ) => {
861
+ getItems: (
862
+ query: string,
863
+ options?: QuickInsertPluginOptions | undefined,
864
+ ) => QuickInsertItem[];
865
+ };
866
+
867
+ // @public (undocumented)
868
+ export const createTable: () => Command;
869
+
870
+ // @public (undocumented)
871
+ export const createTypeAheadTools: (
872
+ editorView: EditorView,
873
+ ) => {
874
+ isOpen: () => TypeAheadHandler | false;
875
+ currentQuery: () => string;
876
+ close: (options?: CloseOptions) => boolean;
877
+ openMention: (inputMethod: TypeAheadInputMethod) => boolean;
878
+ searchMention: (
879
+ query?: string,
880
+ ) => {
881
+ type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
882
+ result: () => Promise<TypeAheadItem[] | undefined>;
883
+ close: (options?: CloseOptions) => boolean;
884
+ insert: ({
885
+ index,
886
+ mode,
887
+ }: {
888
+ index: number;
889
+ mode?: SelectItemMode | undefined;
890
+ }) => Promise<void>;
891
+ };
892
+ openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
893
+ searchQuickInsert: (
894
+ query?: string,
895
+ ) => {
896
+ type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
897
+ result: () => Promise<TypeAheadItem[] | undefined>;
898
+ close: (options?: CloseOptions) => boolean;
899
+ insert: ({
900
+ index,
901
+ mode,
902
+ }: {
903
+ index: number;
904
+ mode?: SelectItemMode | undefined;
905
+ }) => Promise<void>;
906
+ };
907
+ openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
908
+ searchEmoji: (
909
+ query?: string,
910
+ ) => {
911
+ type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
912
+ result: () => Promise<TypeAheadItem[] | undefined>;
913
+ close: (options?: CloseOptions) => boolean;
914
+ insert: ({
915
+ index,
916
+ mode,
917
+ }: {
918
+ index: number;
919
+ mode?: SelectItemMode | undefined;
920
+ }) => Promise<void>;
921
+ };
922
+ insertItemMention: ({
923
+ contentItem,
924
+ query,
925
+ sourceListItem,
926
+ }: InsertItemProps) => boolean;
927
+ insertItemEmoji: ({
928
+ contentItem,
929
+ query,
930
+ sourceListItem,
931
+ }: InsertItemProps) => boolean;
932
+ insertItemQuickInsert: ({
933
+ contentItem,
934
+ query,
935
+ sourceListItem,
936
+ }: InsertItemProps) => boolean;
937
+ };
938
+
939
+ // @public (undocumented)
940
+ export interface CustomMediaPicker {
941
+ // (undocumented)
942
+ destroy(): void;
943
+ // (undocumented)
944
+ emit(event: string, data: any): void;
945
+ // (undocumented)
946
+ on(event: string, cb: Listener): void;
947
+ // (undocumented)
948
+ removeAllListeners(event: any): void;
949
+ // (undocumented)
950
+ setUploadParams(uploadParams: UploadParams): void;
951
+ }
952
+
953
+ // @public (undocumented)
954
+ export const darkModeStatusColorPalette: PaletteColor[];
955
+
956
+ // @public (undocumented)
957
+ export const dateMessages: {
958
+ editText: {
959
+ id: string;
960
+ defaultMessage: string;
961
+ description: string;
962
+ };
963
+ };
964
+
965
+ // @public (undocumented)
966
+ export const datePluginKey: PluginKey<DatePluginState, any>;
967
+
968
+ // @public (undocumented)
969
+ export type DatePluginState = {
970
+ isQuickInsertAction?: boolean;
971
+ isNew: boolean;
972
+ showDatePickerAt: number | null;
973
+ isDateEmpty: boolean;
974
+ focusDateInput: boolean;
975
+ };
976
+
977
+ // @public
978
+ export function dateToDateType(date: Date): DateType;
979
+
980
+ // @public (undocumented)
981
+ export function dedupe<T>(list?: T[], iteratee?: (p: T) => T[keyof T] | T): T[];
982
+
983
+ // @public (undocumented)
984
+ export const DEFAULT_BORDER_COLOR: string;
985
+
986
+ // @public
987
+ export const deleteDate: () => Command;
988
+
989
+ // @public (undocumented)
990
+ export interface DropdownOptionT<T> {
991
+ // (undocumented)
992
+ disabled?: boolean;
993
+ // (undocumented)
994
+ hidden?: boolean;
995
+ // (undocumented)
996
+ id?: string;
997
+ // (undocumented)
998
+ onClick: T;
999
+ // (undocumented)
1000
+ selected?: boolean;
1001
+ // (undocumented)
1002
+ testId?: string;
1003
+ // (undocumented)
1004
+ title: string;
1005
+ // (undocumented)
1006
+ tooltip?: string;
1007
+ }
1008
+
1009
+ // @public (undocumented)
1010
+ export class Editor extends React_2.Component<EditorProps, State> {
1011
+ constructor(props: EditorProps, context: Context);
1012
+ // (undocumented)
1013
+ componentDidMount(): void;
1014
+ // (undocumented)
1015
+ componentDidUpdate(prevProps: EditorProps): void;
1016
+ // (undocumented)
1017
+ componentWillUnmount(): void;
1018
+ // (undocumented)
1019
+ static contextTypes: {
1020
+ editorActions: PropTypes.Requireable<object>;
1021
+ };
1022
+ // (undocumented)
1023
+ static defaultProps: EditorProps;
1024
+ // (undocumented)
1025
+ handleAnalyticsEvent: FireAnalyticsCallback;
1026
+ // (undocumented)
1027
+ handleSave: (view: EditorView) => void;
1028
+ // (undocumented)
1029
+ onEditorCreated(instance: {
1030
+ view: EditorView;
1031
+ eventDispatcher: EventDispatcher;
1032
+ transformer?: Transformer_2<string>;
1033
+ }): void;
1034
+ // (undocumented)
1035
+ onEditorDestroyed(_instance: {
1036
+ view: EditorView;
1037
+ transformer?: Transformer_2<string>;
1038
+ }): void;
1039
+ // (undocumented)
1040
+ prepareExtensionProvider: MemoizedFn<
1041
+ (
1042
+ extensionProviders?: ExtensionProvidersProp | undefined,
1043
+ ) => ExtensionProvider<any> | undefined
1044
+ >;
1045
+ // (undocumented)
1046
+ prepareQuickInsertProvider: (
1047
+ extensionProvider?: ExtensionProvider<any> | undefined,
1048
+ quickInsert?: QuickInsertOptions | undefined,
1049
+ ) => Promise<QuickInsertProvider> | undefined;
1050
+ // (undocumented)
1051
+ static propTypes: {
1052
+ minHeight: ({ appearance, minHeight }: EditorProps) => Error | null;
1053
+ };
1054
+ // (undocumented)
1055
+ render(): jsx.JSX.Element;
1056
+ // (undocumented)
1057
+ trackEditorActions(
1058
+ editorActions: EditorActions & {
1059
+ _contentRetrievalTracking?: {
1060
+ getValueTracked: boolean;
1061
+ samplingCounters: {
1062
+ success: number;
1063
+ failure: number;
1064
+ };
1065
+ };
1066
+ },
1067
+ props: EditorProps,
1068
+ ): EditorActions<any> & {
1069
+ _contentRetrievalTracking?:
1070
+ | {
1071
+ getValueTracked: boolean;
1072
+ samplingCounters: {
1073
+ success: number;
1074
+ failure: number;
1075
+ };
1076
+ }
1077
+ | undefined;
1078
+ };
1079
+ }
1080
+
1081
+ // @public (undocumented)
1082
+ export class EditorActions<T = any> implements EditorActionsOptions<T> {
1083
+ // (undocumented)
1084
+ __temporaryFixForConfigPanel(): Promise<void>;
1085
+ // (undocumented)
1086
+ appendText(text: string): boolean;
1087
+ // (undocumented)
1088
+ blur(): boolean;
1089
+ // (undocumented)
1090
+ clear(): boolean;
1091
+ // (undocumented)
1092
+ dispatchAnalyticsEvent: (payload: AnalyticsEventPayload_2) => void;
1093
+ // (undocumented)
1094
+ focus(): boolean;
1095
+ // (undocumented)
1096
+ static from<T>(
1097
+ view: EditorView,
1098
+ eventDispatcher: EventDispatcher,
1099
+ transformer?: Transformer_2<T>,
1100
+ ): EditorActions<T>;
1101
+ // (undocumented)
1102
+ getNodeByLocalId(id: string): Node_2 | undefined;
1103
+ getResolvedEditorState: () => Promise<ResolvedEditorState | undefined>;
1104
+ getSelectedNode(): Node_2 | undefined;
1105
+ // (undocumented)
1106
+ getValue(): Promise<JSONDocNode | T | undefined>;
1107
+ // (undocumented)
1108
+ isDocumentEmpty(): boolean;
1109
+ // (undocumented)
1110
+ _privateGetEditorView(): EditorView | undefined;
1111
+ // (undocumented)
1112
+ _privateGetEventDispatcher(): EventDispatcher | undefined;
1113
+ // (undocumented)
1114
+ _privateRegisterEditor(
1115
+ editorView: EditorView,
1116
+ eventDispatcher: EventDispatcher,
1117
+ contentTransformer?: Transformer_2<T>,
1118
+ ): void;
1119
+ // (undocumented)
1120
+ _privateSubscribe(cb: ContextUpdateHandler): void;
1121
+ // (undocumented)
1122
+ _privateUnregisterEditor(): void;
1123
+ // (undocumented)
1124
+ _privateUnsubscribe(cb: ContextUpdateHandler): void;
1125
+ // (undocumented)
1126
+ replaceDocument(
1127
+ rawValue: any,
1128
+ shouldScrollToBottom?: boolean,
1129
+ shouldAddToHistory?: boolean,
1130
+ ): boolean;
1131
+ // (undocumented)
1132
+ replaceSelection(
1133
+ rawValue: Node_2 | Object | string,
1134
+ tryToReplace?: boolean,
1135
+ ): boolean;
1136
+ }
1137
+
1138
+ // @public (undocumented)
1139
+ export class EditorContext extends React_2.Component<EditorContextProps, {}> {
1140
+ constructor(props: EditorContextProps);
1141
+ // (undocumented)
1142
+ static childContextTypes: {
1143
+ editorActions: PropTypes.Requireable<object>;
1144
+ };
1145
+ // (undocumented)
1146
+ getChildContext(): {
1147
+ editorActions: EditorActions<any>;
1148
+ };
1149
+ // (undocumented)
1150
+ render(): JSX.Element;
1151
+ }
1152
+
1153
+ // @public
1154
+ export type EditorFeatureFlags = {
1155
+ singleLayout?: boolean;
1156
+ newInsertionBehaviour?: boolean;
1157
+ interactiveExpand?: boolean;
1158
+ placeholderBracketHint?: boolean;
1159
+ placeholderHints?: boolean;
1160
+ moreTextColors?: boolean;
1161
+ findReplace?: boolean;
1162
+ findReplaceMatchCase?: boolean;
1163
+ extensionLocalIdGeneration?: boolean;
1164
+ keyboardAccessibleDatepicker?: boolean;
1165
+ addColumnWithCustomStep?: boolean;
1166
+ undoRedoButtons?: boolean;
1167
+ catchAllTracking?: boolean;
1168
+ stickyHeadersOptimization?: boolean;
1169
+ initialRenderOptimization?: boolean;
1170
+ mouseMoveOptimization?: boolean;
1171
+ tableRenderOptimization?: boolean;
1172
+ tableOverflowShadowsOptimization?: boolean;
1173
+ codeBlockSyntaxHighlighting?: boolean;
1174
+ codeBidiWarnings?: boolean;
1175
+ queueAnalytics?: boolean;
1176
+ extendFloatingToolbar?: boolean;
1177
+ useUnpredictableInputRule?: boolean;
1178
+ showAvatarGroupAsPlugin?: boolean;
1179
+ errorBoundaryDocStructure?: boolean;
1180
+ synchronyErrorDocStructure?: boolean;
1181
+ enableViewUpdateSubscription?: boolean;
1182
+ collabAvatarScroll?: boolean;
1183
+ ufo?: boolean;
1184
+ twoLineEditorToolbar?: boolean;
1185
+ saferDispatchedTransactions?: boolean;
1186
+ maxUnsafeChromeSpellcheckingVersion?: number;
1187
+ plainTextPasteLinkification?: boolean;
1188
+ useNativeCollabPlugin?: boolean;
1189
+ chromeCursorHandlerFixedVersion?: number;
1190
+ viewChangingExperimentToolbarStyle?: string;
1191
+ showHoverPreview?: boolean;
1192
+ };
1193
+
1194
+ // @public (undocumented)
1195
+ export interface EditorInstance {
1196
+ // (undocumented)
1197
+ contentComponents: UIComponentFactory[];
1198
+ // (undocumented)
1199
+ contentTransformer?: Transformer<string>;
1200
+ // (undocumented)
1201
+ editorView: EditorView;
1202
+ // (undocumented)
1203
+ eventDispatcher: EventDispatcher;
1204
+ // (undocumented)
1205
+ insertMenuItems?: MenuItem[];
1206
+ // (undocumented)
1207
+ onEditorViewStateUpdatedCallbacks: {
1208
+ pluginName: string;
1209
+ callback: OnEditorViewStateUpdated;
1210
+ }[];
1211
+ // (undocumented)
1212
+ primaryToolbarComponents: ToolbarUIComponentFactory[];
1213
+ // (undocumented)
1214
+ secondaryToolbarComponents: UIComponentFactory[];
1215
+ }
1216
+
1217
+ // @public (undocumented)
1218
+ export interface EditorPlugin {
1219
+ contentComponent?: UIComponentFactory;
1220
+ marks?: () => MarkConfig[];
1221
+ name: string;
1222
+ nodes?: () => NodeConfig[];
1223
+ // (undocumented)
1224
+ onEditorViewStateUpdated?: (
1225
+ props: EditorViewStateUpdatedCallbackProps,
1226
+ ) => void;
1227
+ pluginsOptions?: PluginsOptions;
1228
+ pmPlugins?: (pluginOptions?: any) => Array<PMPlugin>;
1229
+ primaryToolbarComponent?: ToolbarUIComponentFactory;
1230
+ secondaryToolbarComponent?: UIComponentFactory;
1231
+ }
1232
+
1233
+ // @public (undocumented)
1234
+ export interface EditorProps {
1235
+ // (undocumented)
1236
+ activityProvider?: Promise<ActivityProvider>;
1237
+ // (undocumented)
1238
+ allowAnalyticsGASV3?: boolean;
1239
+ // (undocumented)
1240
+ allowBlockType?: BlockTypePluginOptions['allowBlockType'];
1241
+ // (undocumented)
1242
+ allowBreakout?: boolean;
1243
+ // (undocumented)
1244
+ allowConfluenceInlineComment?: boolean;
1245
+ // (undocumented)
1246
+ allowDate?: boolean;
1247
+ // @deprecated (undocumented)
1248
+ allowDynamicTextSizing?: boolean;
1249
+ // (undocumented)
1250
+ allowExpand?:
1251
+ | boolean
1252
+ | {
1253
+ allowInsertion?: boolean;
1254
+ allowInteractiveExpand?: boolean;
1255
+ };
1256
+ // (undocumented)
1257
+ allowExtension?: boolean | ExtensionConfig;
1258
+ // (undocumented)
1259
+ allowFindReplace?: boolean | FindReplaceOptions;
1260
+ allowFragmentMark?: boolean;
1261
+ // (undocumented)
1262
+ allowHelpDialog?: boolean;
1263
+ // (undocumented)
1264
+ allowIndentation?: boolean;
1265
+ // (undocumented)
1266
+ allowJiraIssue?: boolean;
1267
+ // (undocumented)
1268
+ allowKeyboardAccessibleDatepicker?: boolean;
1269
+ // (undocumented)
1270
+ allowLayouts?: boolean | LayoutPluginOptions;
1271
+ // (undocumented)
1272
+ allowNestedTasks?: boolean;
1273
+ allowNewInsertionBehaviour?: boolean;
1274
+ // (undocumented)
1275
+ allowPanel?: boolean | PanelPluginConfig;
1276
+ // (undocumented)
1277
+ allowRule?: boolean;
1278
+ // (undocumented)
1279
+ allowStatus?:
1280
+ | boolean
1281
+ | {
1282
+ menuDisabled: boolean;
1283
+ };
1284
+ // (undocumented)
1285
+ allowTables?: boolean | PluginConfig;
1286
+ // (undocumented)
1287
+ allowTasksAndDecisions?: boolean;
1288
+ // (undocumented)
1289
+ allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
1290
+ // (undocumented)
1291
+ allowTextAlignment?: boolean;
1292
+ // (undocumented)
1293
+ allowTextColor?: boolean | TextColorPluginConfig;
1294
+ // (undocumented)
1295
+ annotationProviders?: AnnotationProviders;
1296
+ // (undocumented)
1297
+ appearance?: EditorAppearance;
1298
+ // (undocumented)
1299
+ autoformattingProvider?: Providers['autoformattingProvider'];
1300
+ autoScrollIntoView?: boolean;
1301
+ // (undocumented)
1302
+ codeBlock?: CodeBlockOptions;
1303
+ // (undocumented)
1304
+ collabEdit?: CollabEditOptions;
1305
+ // (undocumented)
1306
+ collabEditProvider?: Providers['collabEditProvider'];
1307
+ // (undocumented)
1308
+ contentComponents?: ReactComponents;
1309
+ // (undocumented)
1310
+ contentTransformerProvider?: (schema: Schema) => Transformer_2<string>;
1311
+ // (undocumented)
1312
+ contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
1313
+ // (undocumented)
1314
+ contextPanel?: ReactComponents;
1315
+ // @deprecated (undocumented)
1316
+ dangerouslyAppendPlugins?: {
1317
+ __plugins: EditorPlugin[];
1318
+ };
1319
+ // (undocumented)
1320
+ defaultValue?: Node_2 | string | Object;
1321
+ // (undocumented)
1322
+ disabled?: boolean;
1323
+ // (undocumented)
1324
+ editorActions?: EditorActions;
1325
+ // (undocumented)
1326
+ elementBrowser?: {
1327
+ showModal?: boolean;
1328
+ replacePlusMenu?: boolean;
1329
+ helpUrl?: string;
1330
+ emptyStateHandler?: EmptyStateHandler;
1331
+ };
1332
+ // (undocumented)
1333
+ emojiProvider?: Providers['emojiProvider'];
1334
+ // (undocumented)
1335
+ errorReporterHandler?: ErrorReportingHandler;
1336
+ // (undocumented)
1337
+ extensionHandlers?: ExtensionHandlers;
1338
+ // (undocumented)
1339
+ extensionProviders?: ExtensionProvidersProp;
1340
+ featureFlags?: {
1341
+ [featureFlag: string]: string | boolean;
1342
+ };
1343
+ // (undocumented)
1344
+ feedbackInfo?: FeedbackInfo;
1345
+ // @deprecated
1346
+ inputSamplingLimit?: number;
1347
+ // (undocumented)
1348
+ insertMenuItems?: MenuItem[];
1349
+ // (undocumented)
1350
+ legacyImageUploadProvider?: Providers['imageUploadProvider'];
1351
+ // (undocumented)
1352
+ macroProvider?: Providers['macroProvider'];
1353
+ // (undocumented)
1354
+ maxContentSize?: number;
1355
+ // (undocumented)
1356
+ maxHeight?: number;
1357
+ // (undocumented)
1358
+ media?: MediaOptions;
1359
+ // (undocumented)
1360
+ mention?: MentionPluginConfig;
1361
+ // @deprecated
1362
+ mentionInsertDisplayName?: boolean;
1363
+ // (undocumented)
1364
+ mentionProvider?: Promise<MentionProvider>;
1365
+ // (undocumented)
1366
+ minHeight?: number;
1367
+ // (undocumented)
1368
+ onCancel?: (editorView: EditorView) => void;
1369
+ // (undocumented)
1370
+ onChange?: EditorOnChangeHandler;
1371
+ // (undocumented)
1372
+ onDestroy?: () => void;
1373
+ // (undocumented)
1374
+ onEditorReady?: (editorActions: EditorActions) => void;
1375
+ // (undocumented)
1376
+ onSave?: (editorView: EditorView) => void;
1377
+ performanceTracking?: PerformanceTracking;
1378
+ // (undocumented)
1379
+ persistScrollGutter?: boolean;
1380
+ // (undocumented)
1381
+ placeholder?: string;
1382
+ // (undocumented)
1383
+ placeholderBracketHint?: string;
1384
+ // (undocumented)
1385
+ placeholderHints?: string[];
1386
+ // (undocumented)
1387
+ popupsBoundariesElement?: HTMLElement;
1388
+ // (undocumented)
1389
+ popupsMountPoint?: HTMLElement;
1390
+ // (undocumented)
1391
+ popupsScrollableElement?: HTMLElement;
1392
+ // (undocumented)
1393
+ presenceProvider?: Promise<any>;
1394
+ // (undocumented)
1395
+ primaryToolbarComponents?: PrimaryToolbarComponents;
1396
+ // (undocumented)
1397
+ primaryToolbarIconBefore?: ReactElement;
1398
+ // (undocumented)
1399
+ quickInsert?: QuickInsertOptions;
1400
+ // (undocumented)
1401
+ sanitizePrivateContent?: boolean;
1402
+ // (undocumented)
1403
+ saveOnEnter?: boolean;
1404
+ // (undocumented)
1405
+ searchProvider?: Promise<SearchProvider>;
1406
+ // (undocumented)
1407
+ secondaryToolbarComponents?: ReactComponents;
1408
+ // (undocumented)
1409
+ shouldFocus?: boolean;
1410
+ // (undocumented)
1411
+ smartLinks?: CardOptions;
1412
+ // (undocumented)
1413
+ taskDecisionProvider?: Promise<TaskDecisionProvider>;
1414
+ // (undocumented)
1415
+ textFormatting?: TextFormattingOptions;
1416
+ trackValidTransactions?:
1417
+ | {
1418
+ samplingRate: number;
1419
+ }
1420
+ | boolean;
1421
+ // (undocumented)
1422
+ UNSAFE_allowUndoRedoButtons?: boolean;
1423
+ // @deprecated (undocumented)
1424
+ UNSAFE_cards?: CardOptions;
1425
+ // (undocumented)
1426
+ UNSAFE_useAnalyticsContext?: boolean;
1427
+ // (undocumented)
1428
+ uploadErrorHandler?: (state: MediaState) => void;
1429
+ useStickyToolbar?: boolean | RefObject<HTMLElement>;
1430
+ // (undocumented)
1431
+ waitForMediaUpload?: boolean;
1432
+ }
1433
+
1434
+ export { EmojiResource };
1435
+
1436
+ // @public (undocumented)
1437
+ export enum EVENT_TYPE {
1438
+ // (undocumented)
1439
+ OPERATIONAL = 'operational',
1440
+ // (undocumented)
1441
+ SCREEN = 'screen',
1442
+ // (undocumented)
1443
+ TRACK = 'track',
1444
+ // (undocumented)
1445
+ UI = 'ui',
1446
+ }
1447
+
1448
+ // @public (undocumented)
1449
+ export class EventDispatcher<T = any> {
1450
+ // (undocumented)
1451
+ destroy(): void;
1452
+ // (undocumented)
1453
+ emit(event: string, data: T): void;
1454
+ // (undocumented)
1455
+ has(event: string, cb: Listener_2<T>): boolean;
1456
+ // (undocumented)
1457
+ off(event: string, cb: Listener_2<T>): void;
1458
+ // (undocumented)
1459
+ on(event: string, cb: Listener_2<T>): void;
1460
+ }
1461
+
1462
+ export { ExtensionType };
1463
+
1464
+ // @public (undocumented)
1465
+ export type FloatingToolbarButton<T> = {
1466
+ id?: string;
1467
+ type: 'button';
1468
+ title: string;
1469
+ onClick: T;
1470
+ showTitle?: boolean;
1471
+ onMouseEnter?: T;
1472
+ onMouseLeave?: T;
1473
+ onFocus?: T;
1474
+ onBlur?: T;
1475
+ icon?: Icon;
1476
+ selected?: boolean;
1477
+ disabled?: boolean;
1478
+ hidden?: boolean;
1479
+ appearance?: ButtonAppearance;
1480
+ href?: string;
1481
+ target?: string;
1482
+ className?: string;
1483
+ tooltipContent?: React_2.ReactNode;
1484
+ testId?: string;
1485
+ hideTooltipOnClick?: boolean;
1486
+ confirmDialog?: ConfirmDialogOptions;
1487
+ metadata?: {
1488
+ [key: string]: string;
1489
+ };
1490
+ ariaHasPopup?:
1491
+ | boolean
1492
+ | 'dialog'
1493
+ | 'menu'
1494
+ | 'listbox'
1495
+ | 'tree'
1496
+ | 'grid'
1497
+ | undefined;
1498
+ tabIndex?: number | null | undefined;
1499
+ };
1500
+
1501
+ // @public (undocumented)
1502
+ export type FloatingToolbarColorPicker<T> = FloatingToolbarSelectBase<
1503
+ T,
1504
+ PaletteColor
1505
+ > & {
1506
+ selectType: 'color';
1507
+ };
1508
+
1509
+ // @public (undocumented)
1510
+ export interface FloatingToolbarConfig {
1511
+ // (undocumented)
1512
+ align?: AlignType;
1513
+ // (undocumented)
1514
+ className?: string;
1515
+ // (undocumented)
1516
+ forcePlacement?: boolean;
1517
+ getDomRef?: (view: EditorView) => HTMLElement | undefined;
1518
+ // (undocumented)
1519
+ height?: number;
1520
+ // (undocumented)
1521
+ items:
1522
+ | Array<FloatingToolbarItem<Command>>
1523
+ | ((node: Node_2) => Array<FloatingToolbarItem<Command>>);
1524
+ // (undocumented)
1525
+ nodeType: NodeType | NodeType[];
1526
+ // (undocumented)
1527
+ offset?: [number, number];
1528
+ // (undocumented)
1529
+ onPositionCalculated?: (
1530
+ editorView: EditorView,
1531
+ nextPos: Position,
1532
+ ) => Position;
1533
+ // (undocumented)
1534
+ title: string;
1535
+ // (undocumented)
1536
+ visible?: boolean;
1537
+ // (undocumented)
1538
+ width?: number;
1539
+ }
1540
+
1541
+ // @public (undocumented)
1542
+ export type FloatingToolbarDatePicker<T> = FloatingToolbarSelectBase<
1543
+ T,
1544
+ number
1545
+ > & {
1546
+ selectType: 'date';
1547
+ options: never[];
1548
+ };
1549
+
1550
+ // @public (undocumented)
1551
+ export type FloatingToolbarDropdown<T> = {
1552
+ id?: string;
1553
+ type: 'dropdown';
1554
+ title: string;
1555
+ icon?: Icon;
1556
+ options: DropdownOptions<T>;
1557
+ hidden?: boolean;
1558
+ hideExpandIcon?: boolean;
1559
+ disabled?: boolean;
1560
+ tooltip?: string;
1561
+ };
1562
+
1563
+ // @public (undocumented)
1564
+ export type FloatingToolbarEmojiPicker<T> = FloatingToolbarSelectBase<
1565
+ T,
1566
+ EmojiId
1567
+ > & {
1568
+ selectType: 'emoji';
1569
+ selected?: boolean;
1570
+ options: never[];
1571
+ };
1572
+
1573
+ // @public (undocumented)
1574
+ export type FloatingToolbarInput<T> = {
1575
+ id: string;
1576
+ type: 'input';
1577
+ title?: string;
1578
+ description?: string;
1579
+ onSubmit: (...args: any[]) => T;
1580
+ onBlur: (...args: any[]) => T;
1581
+ defaultValue?: string;
1582
+ placeholder?: string;
1583
+ hidden?: boolean;
1584
+ };
1585
+
1586
+ // @public (undocumented)
1587
+ export type FloatingToolbarItem<T> =
1588
+ | FloatingToolbarButton<T>
1589
+ | FloatingToolbarDropdown<T>
1590
+ | FloatingToolbarSelect<T>
1591
+ | FloatingToolbarInput<T>
1592
+ | FloatingToolbarCustom<T>
1593
+ | FloatingToolbarSeparator
1594
+ | FloatingToolbarExtensionsPlaceholder;
1595
+
1596
+ // @public (undocumented)
1597
+ export type FloatingToolbarListPicker<T> = FloatingToolbarSelectBase<T> & {
1598
+ selectType: 'list';
1599
+ };
1600
+
1601
+ // @public
1602
+ export const floatingToolbarPluginKey: PluginKey<
1603
+ FloatingToolbarPluginState,
1604
+ any
1605
+ >;
1606
+
1607
+ // @public (undocumented)
1608
+ export type FloatingToolbarPluginState = Record<
1609
+ 'getConfigWithNodeInfo',
1610
+ (state: EditorState) => ConfigWithNodeInfo | null | undefined
1611
+ >;
1612
+
1613
+ // @public (undocumented)
1614
+ export type FloatingToolbarSelect<T> =
1615
+ | FloatingToolbarEmojiPicker<T>
1616
+ | FloatingToolbarColorPicker<T>
1617
+ | FloatingToolbarListPicker<T>
1618
+ | FloatingToolbarDatePicker<T>;
1619
+
1620
+ // @public (undocumented)
1621
+ export class GapCursorSelection extends Selection_2 {
1622
+ constructor($pos: ResolvedPos, side?: GapCursorSide);
1623
+ // (undocumented)
1624
+ content(): Slice<any>;
1625
+ // (undocumented)
1626
+ eq(other: Selection_2): boolean;
1627
+ // (undocumented)
1628
+ static findFrom(
1629
+ $pos: ResolvedPos,
1630
+ dir: number,
1631
+ mustMove?: boolean,
1632
+ ): GapCursorSelection | null;
1633
+ // (undocumented)
1634
+ static fromJSON(
1635
+ doc: Node_2,
1636
+ json: {
1637
+ pos: number;
1638
+ type: string;
1639
+ side: GapCursorSide;
1640
+ },
1641
+ ): GapCursorSelection;
1642
+ // (undocumented)
1643
+ getBookmark(): GapBookmark;
1644
+ // (undocumented)
1645
+ map(doc: Node_2, mapping: Mapping): Selection_2;
1646
+ // (undocumented)
1647
+ readonly side: GapCursorSide;
1648
+ // (undocumented)
1649
+ toJSON(): {
1650
+ pos: number;
1651
+ type: string;
1652
+ side: GapCursorSide;
1653
+ };
1654
+ // (undocumented)
1655
+ static valid($pos: ResolvedPos): boolean;
1656
+ // (undocumented)
1657
+ readonly visible: boolean;
1658
+ }
1659
+
1660
+ // @public (undocumented)
1661
+ export enum GapCursorSide {
1662
+ // (undocumented)
1663
+ LEFT = 'left',
1664
+ // (undocumented)
1665
+ RIGHT = 'right',
1666
+ }
1667
+
1668
+ // @public (undocumented)
1669
+ export function getDefaultPresetOptionsFromEditorProps(
1670
+ props: EditorProps,
1671
+ createAnalyticsEvent?: CreateUIAnalyticsEvent,
1672
+ ): EditorPresetProps & DefaultPresetPluginOptions;
1673
+
1674
+ // @public (undocumented)
1675
+ export const getListCommands: () => {
1676
+ indentList: typeof indentList;
1677
+ outdentList: typeof outdentList;
1678
+ toggleOrderedList: typeof toggleOrderedList;
1679
+ toggleBulletList: typeof toggleBulletList;
1680
+ };
1681
+
1682
+ // @public (undocumented)
1683
+ export function getNodesCount(node: Node_2): Record<string, number>;
1684
+
1685
+ // @public
1686
+ export function hasVisibleContent(node: Node_2): boolean;
1687
+
1688
+ // @public
1689
+ export const historyPluginKey: PluginKey<HistoryPluginState, any>;
1690
+
1691
+ // @public (undocumented)
1692
+ export interface HistoryPluginState {
1693
+ // (undocumented)
1694
+ canRedo: boolean;
1695
+ // (undocumented)
1696
+ canUndo: boolean;
1697
+ }
1698
+
1699
+ // @public (undocumented)
1700
+ export enum HyperlinkInsertStatus {
1701
+ // (undocumented)
1702
+ EDIT_INSERTED_TOOLBAR = 'EDIT_INSERTED',
1703
+ // (undocumented)
1704
+ EDIT_LINK_TOOLBAR = 'EDIT',
1705
+ // (undocumented)
1706
+ INSERT_LINK_TOOLBAR = 'INSERT',
1707
+ }
1708
+
1709
+ // @public (undocumented)
1710
+ export interface HyperlinkState {
1711
+ // (undocumented)
1712
+ activeLinkMark?: LinkToolbarState;
1713
+ // (undocumented)
1714
+ activeText?: string;
1715
+ // (undocumented)
1716
+ canInsertLink: boolean;
1717
+ // (undocumented)
1718
+ inputMethod?: INPUT_METHOD;
1719
+ // (undocumented)
1720
+ searchSessionId?: string;
1721
+ // (undocumented)
1722
+ timesViewed: number;
1723
+ }
1724
+
1725
+ // @public (undocumented)
1726
+ export const hyperlinkStateKey: PluginKey<HyperlinkState, any>;
1727
+
1728
+ // @public (undocumented)
1729
+ export type InlineCommentAnnotationProvider = AnnotationTypeProvider<
1730
+ AnnotationTypes.INLINE_COMMENT,
1731
+ InlineCommentState
1732
+ > & {
1733
+ createComponent?: React_2.ComponentType<InlineCommentCreateComponentProps>;
1734
+ viewComponent?: React_2.ComponentType<InlineCommentViewComponentProps>;
1735
+ isToolbarAbove?: boolean;
1736
+ };
1737
+
1738
+ // @public (undocumented)
1739
+ export type InlineCommentCreateComponentProps = AnnotationComponentProps & {
1740
+ onCreate: (id: string) => void;
1741
+ };
1742
+
1743
+ // @public (undocumented)
1744
+ export type InlineCommentState = {
1745
+ resolved: boolean;
1746
+ };
1747
+
1748
+ // @public (undocumented)
1749
+ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
1750
+ annotations: Array<AnnotationInfo>;
1751
+ onResolve: (id: string) => void;
1752
+ onDelete?: (id: string) => void;
1753
+ };
1754
+
1755
+ // @public (undocumented)
1756
+ export enum INPUT_METHOD {
1757
+ // (undocumented)
1758
+ ASCII = 'ascii',
1759
+ // (undocumented)
1760
+ AUTO = 'auto',
1761
+ // (undocumented)
1762
+ AUTO_DETECT = 'autoDetect',
1763
+ // (undocumented)
1764
+ BLUR = 'blur',
1765
+ // (undocumented)
1766
+ BUTTON = 'button',
1767
+ // (undocumented)
1768
+ CARD = 'card',
1769
+ // (undocumented)
1770
+ CLIPBOARD = 'clipboard',
1771
+ // (undocumented)
1772
+ CONFIG_PANEL = 'configPanel',
1773
+ // (undocumented)
1774
+ CONTEXT_MENU = 'contextMenu',
1775
+ // (undocumented)
1776
+ DRAG_AND_DROP = 'dragAndDrop',
1777
+ // (undocumented)
1778
+ EXTENSION_API = 'extensionApi',
1779
+ // (undocumented)
1780
+ EXTERNAL = 'external',
1781
+ // (undocumented)
1782
+ FLOATING_TB = 'floatingToolbar',
1783
+ // (undocumented)
1784
+ FORMATTING = 'autoformatting',
1785
+ // (undocumented)
1786
+ INSERT_MENU = 'insertMenu',
1787
+ // (undocumented)
1788
+ KEYBOARD = 'keyboard',
1789
+ // (undocumented)
1790
+ MACRO_BROWSER = 'macroBrowser',
1791
+ // (undocumented)
1792
+ MANUAL = 'manual',
1793
+ // (undocumented)
1794
+ PICKER = 'picker',
1795
+ // (undocumented)
1796
+ PICKER_CLOUD = 'cloudPicker',
1797
+ // (undocumented)
1798
+ PREFILL = 'prefill',
1799
+ // (undocumented)
1800
+ QUICK_INSERT = 'quickInsert',
1801
+ // (undocumented)
1802
+ SHORTCUT = 'shortcut',
1803
+ // (undocumented)
1804
+ TOOLBAR = 'toolbar',
1805
+ // (undocumented)
1806
+ TYPEAHEAD = 'typeAhead',
1807
+ }
1808
+
1809
+ // @public (undocumented)
1810
+ export type InsertBlockInputMethodToolbar =
1811
+ | INPUT_METHOD.TOOLBAR
1812
+ | INPUT_METHOD.INSERT_MENU;
1813
+
1814
+ // @public (undocumented)
1815
+ export function insertBlockType(name: string): Command;
1816
+
1817
+ // @public (undocumented)
1818
+ export const insertBlockTypesWithAnalytics: (
1819
+ name: string,
1820
+ inputMethod: BlockTypeInputMethod,
1821
+ ) => Command;
1822
+
1823
+ // @public (undocumented)
1824
+ export const insertDate: (
1825
+ date?: DateType | undefined,
1826
+ inputMethod?: InsertBlockInputMethodToolbar | undefined,
1827
+ commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER | undefined,
1828
+ enterPressed?: boolean,
1829
+ ) => Command;
1830
+
1831
+ // @public (undocumented)
1832
+ export const insertExpand: Command;
1833
+
1834
+ // @public (undocumented)
1835
+ export const insertHorizontalRule: (
1836
+ inputMethod:
1837
+ | INPUT_METHOD.QUICK_INSERT
1838
+ | INPUT_METHOD.TOOLBAR
1839
+ | INPUT_METHOD.INSERT_MENU
1840
+ | INPUT_METHOD.FORMATTING
1841
+ | INPUT_METHOD.SHORTCUT,
1842
+ ) => Command;
1843
+
1844
+ // @public (undocumented)
1845
+ export function insertLink(
1846
+ from: number,
1847
+ to: number,
1848
+ incomingHref: string,
1849
+ incomingTitle?: string,
1850
+ displayText?: string,
1851
+ source?: LinkInputMethod,
1852
+ ): Command;
1853
+
1854
+ // @public (undocumented)
1855
+ export const insertLinkWithAnalytics: (
1856
+ inputMethod: LinkInputMethod,
1857
+ from: number,
1858
+ to: number,
1859
+ href: string,
1860
+ title?: string | undefined,
1861
+ displayText?: string | undefined,
1862
+ cardsAvailable?: boolean,
1863
+ ) => Command;
1864
+
1865
+ // @public (undocumented)
1866
+ export const insertLinkWithAnalyticsMobileNative: (
1867
+ inputMethod: LinkInputMethod,
1868
+ from: number,
1869
+ to: number,
1870
+ href: string,
1871
+ title?: string | undefined,
1872
+ displayText?: string | undefined,
1873
+ ) => Command;
1874
+
1875
+ // @public (undocumented)
1876
+ export const insertMediaSingleNode: (
1877
+ view: EditorView,
1878
+ mediaState: MediaState,
1879
+ inputMethod?: InputMethodInsertMedia | undefined,
1880
+ collection?: string | undefined,
1881
+ alignLeftOnInsert?: boolean | undefined,
1882
+ ) => boolean;
1883
+
1884
+ // @public (undocumented)
1885
+ export const insertTaskDecision: (
1886
+ view: EditorView,
1887
+ listType: TaskDecisionListType,
1888
+ inputMethod?:
1889
+ | INPUT_METHOD.FORMATTING
1890
+ | INPUT_METHOD.QUICK_INSERT
1891
+ | InsertBlockInputMethodToolbar,
1892
+ listLocalId?: string | undefined,
1893
+ itemLocalId?: string | undefined,
1894
+ ) => Command;
1895
+
1896
+ // @public (undocumented)
1897
+ export const insertTaskDecisionCommand: (
1898
+ listType: TaskDecisionListType,
1899
+ inputMethod?:
1900
+ | INPUT_METHOD.FORMATTING
1901
+ | INPUT_METHOD.QUICK_INSERT
1902
+ | InsertBlockInputMethodToolbar,
1903
+ addItem?: AddItemTransactionCreator | undefined,
1904
+ listLocalId?: string | undefined,
1905
+ itemLocalId?: string | undefined,
1906
+ ) => Command;
1907
+
1908
+ // @public
1909
+ export function isEmptyDocument(node: Node_2): boolean;
1910
+
1911
+ // @public (undocumented)
1912
+ export function isLinkAtPos(pos: number): Predicate;
1913
+
1914
+ // @public (undocumented)
1915
+ export function isTextAtPos(pos: number): Predicate;
1916
+
1917
+ // @public (undocumented)
1918
+ export const lightModeStatusColorPalette: PaletteColor[];
1919
+
1920
+ // @public (undocumented)
1921
+ export type LinkInputMethod = INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD;
1922
+
1923
+ // @public (undocumented)
1924
+ export type ListInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1925
+
1926
+ // @public (undocumented)
1927
+ export interface ListState {
1928
+ // (undocumented)
1929
+ bulletListActive: boolean;
1930
+ // (undocumented)
1931
+ bulletListDisabled: boolean;
1932
+ // (undocumented)
1933
+ decorationSet: DecorationSet;
1934
+ // (undocumented)
1935
+ orderedListActive: boolean;
1936
+ // (undocumented)
1937
+ orderedListDisabled: boolean;
1938
+ }
1939
+
1940
+ // @public (undocumented)
1941
+ export const listStateKey: PluginKey<ListState, any>;
1942
+
1943
+ export { MacroAttributes };
1944
+
1945
+ export { MacroProvider };
1946
+
1947
+ // @public (undocumented)
1948
+ export const measurements: {
1949
+ EDITOR_MOUNTED: string;
1950
+ PROSEMIRROR_RENDERED: string;
1951
+ PROSEMIRROR_CONTENT_RENDERED: string;
1952
+ ON_EDITOR_READY_CALLBACK: string;
1953
+ PASTE: string;
1954
+ };
1955
+
1956
+ // @public (undocumented)
1957
+ export interface MediaOptions {
1958
+ // (undocumented)
1959
+ alignLeftOnInsert?: boolean;
1960
+ // (undocumented)
1961
+ allowAdvancedToolBarOptions?: boolean;
1962
+ // (undocumented)
1963
+ allowAltTextOnImages?: boolean;
1964
+ // (undocumented)
1965
+ allowBreakoutSnapPoints?: boolean;
1966
+ // (undocumented)
1967
+ allowDropzoneDropLine?: boolean;
1968
+ // (undocumented)
1969
+ allowLazyLoading?: boolean;
1970
+ // (undocumented)
1971
+ allowLinking?: boolean;
1972
+ // (undocumented)
1973
+ allowMarkingUploadsAsIncomplete?: boolean;
1974
+ // (undocumented)
1975
+ allowMediaGroup?: boolean;
1976
+ // (undocumented)
1977
+ allowMediaSingle?: boolean | MediaSingleOptions;
1978
+ // (undocumented)
1979
+ allowMediaSingleEditable?: boolean;
1980
+ // (undocumented)
1981
+ allowRemoteDimensionsFetch?: boolean;
1982
+ // (undocumented)
1983
+ allowResizing?: boolean;
1984
+ // (undocumented)
1985
+ allowResizingInTables?: boolean;
1986
+ // (undocumented)
1987
+ allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
1988
+ // (undocumented)
1989
+ altTextValidator?: (value: string) => string[];
1990
+ // (undocumented)
1991
+ customDropzoneContainer?: HTMLElement;
1992
+ // (undocumented)
1993
+ customMediaPicker?: CustomMediaPicker;
1994
+ // (undocumented)
1995
+ enableDownloadButton?: boolean;
1996
+ // (undocumented)
1997
+ featureFlags?: MediaFeatureFlags;
1998
+ // (undocumented)
1999
+ fullWidthEnabled?: boolean;
2000
+ // (undocumented)
2001
+ isCopyPasteEnabled?: boolean;
2002
+ // (undocumented)
2003
+ provider?: Providers['mediaProvider'];
2004
+ // (undocumented)
2005
+ uploadErrorHandler?: (state: MediaState) => void;
2006
+ // (undocumented)
2007
+ useForgePlugins?: boolean;
2008
+ // (undocumented)
2009
+ waitForMediaUpload?: boolean;
2010
+ }
2011
+
2012
+ // @public (undocumented)
2013
+ export const mediaPlugin: (options?: MediaOptions | undefined) => EditorPlugin;
2014
+
2015
+ // @public (undocumented)
2016
+ export const mediaPluginKey: PluginKey<MediaPluginState, any>;
2017
+
2018
+ export { MediaProvider_2 as MediaProvider };
2019
+
2020
+ // @public (undocumented)
2021
+ export interface MediaState {
2022
+ // (undocumented)
2023
+ collection?: string;
2024
+ // (undocumented)
2025
+ contextId?: string;
2026
+ // (undocumented)
2027
+ dimensions?: {
2028
+ width: number | undefined;
2029
+ height: number | undefined;
2030
+ };
2031
+ // (undocumented)
2032
+ error?: {
2033
+ name: string;
2034
+ description: string;
2035
+ };
2036
+ // (undocumented)
2037
+ fileMimeType?: string;
2038
+ // (undocumented)
2039
+ fileName?: string;
2040
+ // (undocumented)
2041
+ fileSize?: number;
2042
+ // (undocumented)
2043
+ id: string;
2044
+ publicId?: string;
2045
+ // (undocumented)
2046
+ scaleFactor?: number;
2047
+ // (undocumented)
2048
+ status?: MediaStateStatus;
2049
+ }
2050
+
2051
+ // @public (undocumented)
2052
+ export const mentionPluginKey: PluginKey<MentionPluginState, any>;
2053
+
2054
+ // @public (undocumented)
2055
+ export type MentionPluginState = {
2056
+ mentionProvider?: MentionProvider_2 | TeamMentionProvider;
2057
+ contextIdentifierProvider?: ContextIdentifierProvider;
2058
+ mentions?: Array<MentionDescription>;
2059
+ };
2060
+
2061
+ export { MentionProvider };
2062
+
2063
+ export { MentionResource };
2064
+
2065
+ // @public (undocumented)
2066
+ export const messages: {
2067
+ layoutFixedWidth: {
2068
+ id: string;
2069
+ defaultMessage: string;
2070
+ description: string;
2071
+ };
2072
+ layoutWide: {
2073
+ id: string;
2074
+ defaultMessage: string;
2075
+ description: string;
2076
+ };
2077
+ layoutFullWidth: {
2078
+ id: string;
2079
+ defaultMessage: string;
2080
+ description: string;
2081
+ };
2082
+ alignImageRight: {
2083
+ id: string;
2084
+ defaultMessage: string;
2085
+ description: string;
2086
+ };
2087
+ alignImageCenter: {
2088
+ id: string;
2089
+ defaultMessage: string;
2090
+ description: string;
2091
+ };
2092
+ alignImageLeft: {
2093
+ id: string;
2094
+ defaultMessage: string;
2095
+ description: string;
2096
+ };
2097
+ remove: {
2098
+ id: string;
2099
+ defaultMessage: string;
2100
+ description: string;
2101
+ };
2102
+ removeEmoji: {
2103
+ id: string;
2104
+ defaultMessage: string;
2105
+ description: string;
2106
+ };
2107
+ visit: {
2108
+ id: string;
2109
+ defaultMessage: string;
2110
+ description: string;
2111
+ };
2112
+ inviteToEditButtonTitle: {
2113
+ id: string;
2114
+ defaultMessage: string;
2115
+ description: string;
2116
+ };
2117
+ saveButton: {
2118
+ id: string;
2119
+ defaultMessage: string;
2120
+ description: string;
2121
+ };
2122
+ cancelButton: {
2123
+ id: string;
2124
+ defaultMessage: string;
2125
+ description: string;
2126
+ };
2127
+ taskList: {
2128
+ id: string;
2129
+ defaultMessage: string;
2130
+ description: string;
2131
+ };
2132
+ bulletList: {
2133
+ id: string;
2134
+ defaultMessage: string;
2135
+ description: string;
2136
+ };
2137
+ nestedExpand: {
2138
+ id: string;
2139
+ defaultMessage: string;
2140
+ description: string;
2141
+ };
2142
+ decisionList: {
2143
+ id: string;
2144
+ defaultMessage: string;
2145
+ description: string;
2146
+ };
2147
+ defaultBlockNode: {
2148
+ id: string;
2149
+ defaultMessage: string;
2150
+ description: string;
2151
+ };
2152
+ panel: {
2153
+ id: string;
2154
+ defaultMessage: string;
2155
+ description: string;
2156
+ };
2157
+ blockquote: {
2158
+ id: string;
2159
+ defaultMessage: string;
2160
+ description: string;
2161
+ };
2162
+ timeUpdated: {
2163
+ id: string;
2164
+ defaultMessage: string;
2165
+ description: string;
2166
+ };
2167
+ timeViewed: {
2168
+ id: string;
2169
+ defaultMessage: string;
2170
+ description: string;
2171
+ };
2172
+ timeAgo: {
2173
+ id: string;
2174
+ defaultMessage: string;
2175
+ description: string;
2176
+ };
2177
+ copyToClipboard: {
2178
+ id: string;
2179
+ defaultMessage: string;
2180
+ description: string;
2181
+ };
2182
+ copiedToClipboard: {
2183
+ id: string;
2184
+ defaultMessage: string;
2185
+ description: string;
2186
+ };
2187
+ };
2188
+
2189
+ // @public (undocumented)
2190
+ const name_2: string;
2191
+ export { name_2 as name };
2192
+
2193
+ // @public (undocumented)
2194
+ export const openDatePicker: () => Command;
2195
+
2196
+ // @public (undocumented)
2197
+ export interface PaletteColor {
2198
+ // (undocumented)
2199
+ border: string;
2200
+ // (undocumented)
2201
+ label: string;
2202
+ // (undocumented)
2203
+ message?: MessageDescriptor;
2204
+ // (undocumented)
2205
+ value: string;
2206
+ }
2207
+
2208
+ // @public (undocumented)
2209
+ export const PortalProvider: React_2.FC<
2210
+ WithIntlProps<BasePortalProviderProps>
2211
+ > & {
2212
+ WrappedComponent: React_2.ComponentType<BasePortalProviderProps>;
2213
+ };
2214
+
2215
+ // @public (undocumented)
2216
+ export class PortalProviderAPI extends EventDispatcher {
2217
+ constructor(
2218
+ intl: IntlShape,
2219
+ onAnalyticsEvent?: FireAnalyticsCallback,
2220
+ analyticsContext?: boolean,
2221
+ themeMode?: ThemeModes,
2222
+ );
2223
+ // (undocumented)
2224
+ context: any;
2225
+ // (undocumented)
2226
+ forceUpdate({ intl }: { intl: IntlShape }): void;
2227
+ // (undocumented)
2228
+ intl: IntlShape;
2229
+ // (undocumented)
2230
+ onAnalyticsEvent?: FireAnalyticsCallback;
2231
+ // (undocumented)
2232
+ portals: Map<HTMLElement, MountedPortal>;
2233
+ // (undocumented)
2234
+ remove(container: HTMLElement): void;
2235
+ // (undocumented)
2236
+ render(
2237
+ children: () => React_2.ReactChild | JSX.Element | null,
2238
+ container: HTMLElement,
2239
+ hasAnalyticsContext?: boolean,
2240
+ hasIntlContext?: boolean,
2241
+ ): void;
2242
+ // (undocumented)
2243
+ setContext: (context: any) => void;
2244
+ // (undocumented)
2245
+ themeMode?: ThemeModes;
2246
+ // (undocumented)
2247
+ useAnalyticsContext?: boolean;
2248
+ }
2249
+
2250
+ // @public (undocumented)
2251
+ export class PortalRenderer extends React_2.Component<
2252
+ {
2253
+ portalProviderAPI: PortalProviderAPI;
2254
+ },
2255
+ PortalRendererState
2256
+ > {
2257
+ constructor(props: { portalProviderAPI: PortalProviderAPI });
2258
+ // (undocumented)
2259
+ handleUpdate: (portals: Portals) => void;
2260
+ // (undocumented)
2261
+ render(): JSX.Element;
2262
+ }
2263
+
2264
+ export { PresenceProvider };
2265
+
2266
+ export { PresenceResource };
2267
+
2268
+ // @public (undocumented)
2269
+ export const processQuickInsertItems: typeof processItems;
2270
+
2271
+ export { QuickInsertActionInsert };
2272
+
2273
+ export { QuickInsertItem };
2274
+
2275
+ export { QuickInsertItemId };
2276
+
2277
+ // @public (undocumented)
2278
+ export const quickInsertPluginKey: PluginKey<QuickInsertPluginState, any>;
2279
+
2280
+ // @public (undocumented)
2281
+ export type QuickInsertPluginState = {
2282
+ isElementBrowserModalOpen: boolean;
2283
+ lazyDefaultItems: () => QuickInsertItem[];
2284
+ providedItems?: QuickInsertItem[];
2285
+ provider?: QuickInsertProvider;
2286
+ emptyStateHandler?: EmptyStateHandler;
2287
+ };
2288
+
2289
+ export { QuickInsertProvider };
2290
+
2291
+ // @public (undocumented)
2292
+ export const ReactEditorView: React_2.FC<
2293
+ WithIntlProps<EditorViewProps & WrappedComponentProps<'intl'>>
2294
+ > & {
2295
+ WrappedComponent: React_2.ComponentType<
2296
+ EditorViewProps & WrappedComponentProps<'intl'>
2297
+ >;
2298
+ };
2299
+
2300
+ // @public (undocumented)
2301
+ export const removeStatus: (showStatusPickerAt: number) => Command;
2302
+
2303
+ // @public (undocumented)
2304
+ export type SelectionData =
2305
+ | AllSelectionData
2306
+ | NodeSelectionData
2307
+ | TextSelectionData
2308
+ | GapSelectionData
2309
+ | CellSelectionData;
2310
+
2311
+ // @public (undocumented)
2312
+ export interface SelectionDataState {
2313
+ // (undocumented)
2314
+ markTypes: string[];
2315
+ // (undocumented)
2316
+ nodeTypes: string[];
2317
+ // (undocumented)
2318
+ rect: RectData;
2319
+ // (undocumented)
2320
+ selection: SelectionData;
2321
+ }
2322
+
2323
+ // @public (undocumented)
2324
+ export const selectionPluginKey: PluginKey<any, any>;
2325
+
2326
+ // @public (undocumented)
2327
+ export interface SelectOption<T = unknown> {
2328
+ // (undocumented)
2329
+ data?: T;
2330
+ // (undocumented)
2331
+ disabled?: boolean;
2332
+ // (undocumented)
2333
+ hidden?: boolean;
2334
+ // (undocumented)
2335
+ label: string;
2336
+ // (undocumented)
2337
+ selected?: boolean;
2338
+ // (undocumented)
2339
+ value: string;
2340
+ }
2341
+
2342
+ // @public (undocumented)
2343
+ export function setBlockType(name: string): Command;
2344
+
2345
+ // @public (undocumented)
2346
+ export function setBlockTypeWithAnalytics(
2347
+ name: string,
2348
+ inputMethod: BlockTypeInputMethod,
2349
+ ): Command;
2350
+
2351
+ // @public (undocumented)
2352
+ export const setIsExpanded: (isExpanded: boolean) => Command;
2353
+
2354
+ // @public (undocumented)
2355
+ export const setKeyboardHeight: (keyboardHeight: number) => Command;
2356
+
2357
+ // @public (undocumented)
2358
+ export const setMobilePaddingTop: (paddingTop: number) => Command;
2359
+
2360
+ // @public (undocumented)
2361
+ export const setStatusPickerAt: (
2362
+ showStatusPickerAt: number | null,
2363
+ ) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
2364
+
2365
+ // @public (undocumented)
2366
+ export function setTextSelection(
2367
+ view: EditorView,
2368
+ anchor: number,
2369
+ head?: number,
2370
+ ): void;
2371
+
2372
+ // @public (undocumented)
2373
+ export const statusMessages: {
2374
+ placeholder: {
2375
+ id: string;
2376
+ defaultMessage: string;
2377
+ description: string;
2378
+ };
2379
+ editText: {
2380
+ id: string;
2381
+ defaultMessage: string;
2382
+ description: string;
2383
+ };
2384
+ editColor: {
2385
+ id: string;
2386
+ defaultMessage: string;
2387
+ description: string;
2388
+ };
2389
+ };
2390
+
2391
+ // @public (undocumented)
2392
+ export const statusPluginKey: PluginKey<StatusState, any>;
2393
+
2394
+ // @public (undocumented)
2395
+ export type StatusState = {
2396
+ isNew: boolean;
2397
+ showStatusPickerAt: number | null;
2398
+ };
2399
+
2400
+ // @public (undocumented)
2401
+ export type StatusType = {
2402
+ color: Color;
2403
+ text: string;
2404
+ localId?: string;
2405
+ };
2406
+
2407
+ // @public (undocumented)
2408
+ export const subscribeToToolbarAndPickerUpdates: SubscribeToToolbarAndPickerUpdates;
2409
+
2410
+ // @public (undocumented)
2411
+ export const subscribeTypeAheadUpdates: SubscribeTypeAheadUpdates;
2412
+
2413
+ // @public (undocumented)
2414
+ export type TaskDecisionInputMethod =
2415
+ | INPUT_METHOD.TOOLBAR
2416
+ | INPUT_METHOD.INSERT_MENU
2417
+ | INPUT_METHOD.QUICK_INSERT
2418
+ | INPUT_METHOD.FORMATTING
2419
+ | INPUT_METHOD.KEYBOARD;
2420
+
2421
+ export { TeamMentionResource };
2422
+
2423
+ // @public (undocumented)
2424
+ export const textColorPluginKey: PluginKey<TextColorPluginState, any>;
2425
+
2426
+ // @public (undocumented)
2427
+ export type TextColorPluginState = {
2428
+ palette: Array<PaletteColor>;
2429
+ paletteExpanded?: Array<PaletteColor>;
2430
+ defaultColor: string;
2431
+ disabled?: boolean;
2432
+ color: string | null;
2433
+ };
2434
+
2435
+ // @public (undocumented)
2436
+ export type TextFormattingInputMethodBasic =
2437
+ | TextFormattingInputMethodToolbar
2438
+ | INPUT_METHOD.SHORTCUT
2439
+ | INPUT_METHOD.FORMATTING;
2440
+
2441
+ // @public (undocumented)
2442
+ export type TextFormattingInputMethodToolbar = INPUT_METHOD.TOOLBAR;
2443
+
2444
+ // @public (undocumented)
2445
+ export interface TextFormattingState {
2446
+ // (undocumented)
2447
+ codeActive?: boolean;
2448
+ // (undocumented)
2449
+ codeDisabled?: boolean;
2450
+ // (undocumented)
2451
+ codeHidden?: boolean;
2452
+ // (undocumented)
2453
+ emActive?: boolean;
2454
+ // (undocumented)
2455
+ emDisabled?: boolean;
2456
+ // (undocumented)
2457
+ emHidden?: boolean;
2458
+ // (undocumented)
2459
+ strikeActive?: boolean;
2460
+ // (undocumented)
2461
+ strikeDisabled?: boolean;
2462
+ // (undocumented)
2463
+ strikeHidden?: boolean;
2464
+ // (undocumented)
2465
+ strongActive?: boolean;
2466
+ // (undocumented)
2467
+ strongDisabled?: boolean;
2468
+ // (undocumented)
2469
+ strongHidden?: boolean;
2470
+ // (undocumented)
2471
+ subscriptActive?: boolean;
2472
+ // (undocumented)
2473
+ subscriptDisabled?: boolean;
2474
+ // (undocumented)
2475
+ subscriptHidden?: boolean;
2476
+ // (undocumented)
2477
+ superscriptActive?: boolean;
2478
+ // (undocumented)
2479
+ superscriptDisabled?: boolean;
2480
+ // (undocumented)
2481
+ superscriptHidden?: boolean;
2482
+ // (undocumented)
2483
+ underlineActive?: boolean;
2484
+ // (undocumented)
2485
+ underlineDisabled?: boolean;
2486
+ // (undocumented)
2487
+ underlineHidden?: boolean;
2488
+ }
2489
+
2490
+ // @public (undocumented)
2491
+ export const textFormattingStateKey: PluginKey<TextFormattingState, any>;
2492
+
2493
+ // @public (undocumented)
2494
+ export const toggleCode: () => Command;
2495
+
2496
+ // @public (undocumented)
2497
+ export const toggleCodeWithAnalytics: ({
2498
+ inputMethod,
2499
+ }: {
2500
+ inputMethod: TextFormattingInputMethodBasic;
2501
+ }) => Command;
2502
+
2503
+ // @public (undocumented)
2504
+ export const toggleEm: () => Command;
2505
+
2506
+ // @public (undocumented)
2507
+ export const toggleEmWithAnalytics: ({
2508
+ inputMethod,
2509
+ }: {
2510
+ inputMethod: TextFormattingInputMethodBasic;
2511
+ }) => Command;
2512
+
2513
+ // @public (undocumented)
2514
+ export const toggleStrike: () => Command;
2515
+
2516
+ // @public (undocumented)
2517
+ export const toggleStrikeWithAnalytics: ({
2518
+ inputMethod,
2519
+ }: {
2520
+ inputMethod: TextFormattingInputMethodBasic;
2521
+ }) => Command;
2522
+
2523
+ // @public (undocumented)
2524
+ export const toggleStrong: () => Command;
2525
+
2526
+ // @public (undocumented)
2527
+ export const toggleStrongWithAnalytics: ({
2528
+ inputMethod,
2529
+ }: {
2530
+ inputMethod: TextFormattingInputMethodBasic;
2531
+ }) => Command;
2532
+
2533
+ // @public (undocumented)
2534
+ export const toggleSubscript: () => Command;
2535
+
2536
+ // @public (undocumented)
2537
+ export const toggleSubscriptWithAnalytics: ({
2538
+ inputMethod,
2539
+ }: {
2540
+ inputMethod: TextFormattingInputMethodBasic;
2541
+ }) => Command;
2542
+
2543
+ // @public (undocumented)
2544
+ export const toggleSuperscript: () => Command;
2545
+
2546
+ // @public (undocumented)
2547
+ export const toggleSuperscriptWithAnalytics: ({
2548
+ inputMethod,
2549
+ }: {
2550
+ inputMethod: TextFormattingInputMethodBasic;
2551
+ }) => Command;
2552
+
2553
+ // @public (undocumented)
2554
+ export const toggleUnderline: () => Command;
2555
+
2556
+ // @public (undocumented)
2557
+ export const toggleUnderlineWithAnalytics: ({
2558
+ inputMethod,
2559
+ }: {
2560
+ inputMethod: TextFormattingInputMethodBasic;
2561
+ }) => Command;
2562
+
2563
+ // @public (undocumented)
2564
+ export class ToolbarFeedback extends PureComponent<Props_3, State_3> {
2565
+ constructor(props: Props_3);
2566
+ // (undocumented)
2567
+ static contextTypes: {
2568
+ editorActions: PropTypes.Validator<object>;
2569
+ };
2570
+ // (undocumented)
2571
+ render(): jsx.JSX.Element | null;
2572
+ // (undocumented)
2573
+ showJiraCollectorDialogCallback?: () => void;
2574
+ // (undocumented)
2575
+ state: State_3;
2576
+ }
2577
+
2578
+ // @public (undocumented)
2579
+ export const ToolbarHelp: React_2.FC<
2580
+ WithIntlProps<Props_2 & WrappedComponentProps<'intl'>>
2581
+ > & {
2582
+ WrappedComponent: React_2.ComponentType<
2583
+ Props_2 & WrappedComponentProps<'intl'>
2584
+ >;
2585
+ };
2586
+
2587
+ export { TypeAheadItem };
2588
+
2589
+ // @public (undocumented)
2590
+ export const typeAheadPluginKey: PluginKey<TypeAheadPluginState, any>;
2591
+
2592
+ // @public (undocumented)
2593
+ export type TypeAheadPluginState = {
2594
+ decorationSet: DecorationSet;
2595
+ decorationElement: HTMLElement | null;
2596
+ typeAheadHandlers: Array<TypeAheadHandler>;
2597
+ query: string;
2598
+ items: Array<TypeAheadItem>;
2599
+ triggerHandler?: TypeAheadHandler;
2600
+ selectedIndex: number;
2601
+ stats: TypeAheadStatsSerializable | null;
2602
+ inputMethod: TypeAheadInputMethod | null;
2603
+ };
2604
+
2605
+ // @public (undocumented)
2606
+ export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve';
2607
+
2608
+ // @public (undocumented)
2609
+ export function updateLink(
2610
+ href: string,
2611
+ text: string,
2612
+ pos: number,
2613
+ to?: number,
2614
+ ): Command;
2615
+
2616
+ // @public (undocumented)
2617
+ export const updateStatus: (status?: StatusType | undefined) => Command;
2618
+
2619
+ // @public (undocumented)
2620
+ export const updateStatusWithAnalytics: (
2621
+ inputMethod: InsertBlockInputMethodToolbar,
2622
+ status?: StatusType | undefined,
2623
+ ) => Command;
2624
+
2625
+ // @public (undocumented)
2626
+ export const version: string;
2627
+
2628
+ // @public (undocumented)
2629
+ export class WithEditorActions extends React_2.Component<
2630
+ WithEditorActionsProps,
2631
+ any
2632
+ > {
2633
+ // (undocumented)
2634
+ componentDidMount(): void;
2635
+ // (undocumented)
2636
+ componentWillUnmount(): void;
2637
+ // (undocumented)
2638
+ context: {
2639
+ editorActions: EditorActions;
2640
+ };
2641
+ // (undocumented)
2642
+ static contextTypes: {
2643
+ editorActions: PropTypes.Validator<object>;
2644
+ };
2645
+ // (undocumented)
2646
+ render(): React_2.ReactElement<
2647
+ any,
2648
+ string | React_2.JSXElementConstructor<any>
2649
+ > | null;
2650
+ }
2651
+
2652
+ // @public (undocumented)
2653
+ export class WithHelpTrigger extends React_2.Component<
2654
+ {
2655
+ render: (openHelp: () => void) => React_2.ReactNode;
2656
+ },
2657
+ any
2658
+ > {
2659
+ // (undocumented)
2660
+ static contextTypes: {
2661
+ editorActions: PropTypes.Validator<object>;
2662
+ };
2663
+ // (undocumented)
2664
+ openHelp: () => void;
2665
+ // (undocumented)
2666
+ render(): React_2.ReactNode;
2667
+ }
2668
+
2669
+ // @public
2670
+ export class WithPluginState<
2671
+ P extends NamedPluginKeys
2672
+ > extends React_2.Component<Props_6<P>, State_4> {
2673
+ // (undocumented)
2674
+ componentDidMount(): void;
2675
+ // (undocumented)
2676
+ componentWillUnmount(): void;
2677
+ // (undocumented)
2678
+ context: Context_2;
2679
+ // (undocumented)
2680
+ static contextTypes: {
2681
+ editorActions: PropTypes.Requireable<object>;
2682
+ editorSharedConfig: PropTypes.Requireable<object>;
2683
+ };
2684
+ // (undocumented)
2685
+ static displayName: string;
2686
+ // (undocumented)
2687
+ render(): React_2.ReactElement<
2688
+ any,
2689
+ string | React_2.JSXElementConstructor<any>
2690
+ > | null;
2691
+ // (undocumented)
2692
+ state: NamedPluginStates<P>;
2693
+ // (undocumented)
2694
+ UNSAFE_componentWillReceiveProps(nextProps: Props_6<P>): void;
2695
+ }
2696
+
2697
+ // (No @packageDocumentation comment for this package)
2698
+ ```