@atlaskit/editor-core 185.1.0 → 185.1.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.
@@ -0,0 +1,2423 @@
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
+
7
+ /// <reference types="node" />
8
+ /// <reference types="react" />
9
+
10
+ import { AbstractMentionResource } from '@atlaskit/mention/resource';
11
+ import { ACTION } from '@atlaskit/editor-common/analytics';
12
+ import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
13
+ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
14
+ import { ActivityProvider } from '@atlaskit/activity-provider';
15
+ import { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
16
+ import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
17
+ import { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
18
+ import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
19
+ import { AnnotationTypes } from '@atlaskit/adf-schema';
20
+ import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
21
+ import { CardOptions } from '@atlaskit/editor-common/card';
22
+ import { CardProvider } from '@atlaskit/editor-common/provider-factory';
23
+ import { Color } from '@atlaskit/status/element';
24
+ import { Command as Command_2 } from '@atlaskit/editor-common/types';
25
+ import { ComponentType } from 'react';
26
+ import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
27
+ import { ContextUpdateHandler } from '@atlaskit/editor-common/types';
28
+ import { createTable } from '@atlaskit/editor-plugin-table/commands';
29
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
30
+ import { CreateUIAnalyticsEvent as CreateUIAnalyticsEvent_2 } from '@atlaskit/analytics-next/types';
31
+ import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
32
+ import { DecorationSet } from 'prosemirror-view';
33
+ import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
34
+ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
35
+ import { DirectEditorProps } from 'prosemirror-view';
36
+ import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
37
+ import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
38
+ import { DropdownOptionT } from '@atlaskit/editor-common/types';
39
+ import { EditorActionsOptions } from '@atlaskit/editor-common/types';
40
+ import { EditorAppearance } from '@atlaskit/editor-common/types';
41
+ import { FeatureFlags as EditorFeatureFlags } from '@atlaskit/editor-common/types';
42
+ import { EditorPlugin } from '@atlaskit/editor-common/types';
43
+ import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
44
+ import { EditorReactContext } from '@atlaskit/editor-common/types';
45
+ import { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
46
+ import { EditorState } from 'prosemirror-state';
47
+ import { EditorView } from 'prosemirror-view';
48
+ import { EmojiResource } from '@atlaskit/emoji/resource';
49
+ import { EmptyStateHandler } from '@atlaskit/editor-common/types';
50
+ import { ErrorReporter } from '@atlaskit/editor-common/utils';
51
+ import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
52
+ import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
53
+ import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
54
+ import { EventEmitter as EventEmitter_2 } from 'events';
55
+ import { ExperienceStore } from '@atlaskit/editor-common/ufo';
56
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
57
+ import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
58
+ import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
59
+ import { FC } from 'react';
60
+ import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
61
+ import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
62
+ import { FloatingToolbarButton } from '@atlaskit/editor-common/types';
63
+ import { FloatingToolbarColorPicker } from '@atlaskit/editor-common/types';
64
+ import { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
65
+ import { FloatingToolbarDatePicker } from '@atlaskit/editor-common/types';
66
+ import { FloatingToolbarDropdown } from '@atlaskit/editor-common/types';
67
+ import { FloatingToolbarEmojiPicker } from '@atlaskit/editor-common/types';
68
+ import { FloatingToolbarInput } from '@atlaskit/editor-common/types';
69
+ import { FloatingToolbarItem } from '@atlaskit/editor-common/types';
70
+ import { FloatingToolbarListPicker } from '@atlaskit/editor-common/types';
71
+ import { FloatingToolbarSelect } from '@atlaskit/editor-common/types';
72
+ import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
73
+ import { GapCursorSelection } from '@atlaskit/editor-common/selection';
74
+ import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
75
+ import { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
76
+ import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
77
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
78
+ import { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
79
+ import { InputTracking } from '@atlaskit/editor-common/types';
80
+ import { IntlShape } from 'react-intl-next';
81
+ import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
82
+ import { jsx } from '@emotion/react';
83
+ import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
84
+ import { LinkPickerProps } from '@atlaskit/link-picker';
85
+ import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
86
+ import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
87
+ import { MarkConfig } from '@atlaskit/editor-common/types';
88
+ import { MediaClientConfig } from '@atlaskit/media-core';
89
+ import { MediaFeatureFlags } from '@atlaskit/media-common';
90
+ import { MediaFeatureFlags as MediaFeatureFlags_2 } from '@atlaskit/media-common/mediaFeatureFlags';
91
+ import { MediaFile } from '@atlaskit/media-picker/types';
92
+ import { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
93
+ import { MentionDescription } from '@atlaskit/mention';
94
+ import { MentionProvider } from '@atlaskit/mention/resource';
95
+ import { MentionProvider as MentionProvider_2 } from '@atlaskit/mention';
96
+ import { MentionResource } from '@atlaskit/mention/resource';
97
+ import { MenuItem } from '@atlaskit/editor-common/ui-menu';
98
+ import { default as messages } from '@atlaskit/editor-common/messages';
99
+ import { NextEditorPlugin } from '@atlaskit/editor-common/types';
100
+ import { Node as Node_2 } from 'prosemirror-model';
101
+ import { NodeConfig } from '@atlaskit/editor-common/types';
102
+ import { NodeType } from 'prosemirror-model';
103
+ import { NodeView } from 'prosemirror-view';
104
+ import { OptionalPlugin } from '@atlaskit/editor-common/types';
105
+ import { PaletteColor } from '@atlaskit/editor-common/ui-color';
106
+ import { PerformanceTracking } from '@atlaskit/editor-common/types';
107
+ import { PluginConfig } from '@atlaskit/editor-plugin-table/types';
108
+ import { PluginKey } from 'prosemirror-state';
109
+ import { PMPlugin } from '@atlaskit/editor-common/types';
110
+ import { PositionType } from '@atlaskit/tooltip/types';
111
+ import { PresenceProvider } from '@atlaskit/mention/resource';
112
+ import { PresenceResource } from '@atlaskit/mention/resource';
113
+ import PropTypes from 'prop-types';
114
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
115
+ import { Providers } from '@atlaskit/editor-common/provider-factory';
116
+ import { PureComponent } from 'react';
117
+ import { QuickInsertActionInsert } from '@atlaskit/editor-common/provider-factory';
118
+ import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
119
+ import { QuickInsertItemId } from '@atlaskit/editor-common/provider-factory';
120
+ import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
121
+ import { default as React_2 } from 'react';
122
+ import { ReactElement } from 'react';
123
+ import { RefObject } from 'react';
124
+ import { ReplaceRawValue } from '@atlaskit/editor-common/types';
125
+ import type { ResolvedEditorState } from '@atlaskit/collab-provider';
126
+ import { RichMediaLayout } from '@atlaskit/adf-schema';
127
+ import { Schema } from 'prosemirror-model';
128
+ import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
129
+ import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
130
+ import type { SelectOption } from '@atlaskit/editor-common/types';
131
+ import { setTextSelection } from '@atlaskit/editor-common/utils';
132
+ import { SEVERITY } from '@atlaskit/editor-common/utils';
133
+ import { TaskDecisionProvider } from '@atlaskit/task-decision';
134
+ import { TeamMentionResource } from '@atlaskit/mention/team-resource';
135
+ import type { ThemeModes } from '@atlaskit/theme/types';
136
+ import { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
137
+ import { Transaction } from 'prosemirror-state';
138
+ import { TransactionTracking } from '@atlaskit/editor-common/types';
139
+ import { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
140
+ import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
141
+ import type { TypeAheadItem } from '@atlaskit/editor-common/types';
142
+ import type { TypeAheadItem as TypeAheadItem_2 } from '@atlaskit/editor-common/provider-factory';
143
+ import type { TypeAheadStats } from '@atlaskit/editor-common/types';
144
+ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
145
+ import { UIComponentFactory } from '@atlaskit/editor-common/types';
146
+ import { UploadEndEventPayload } from '@atlaskit/media-picker/types';
147
+ import { UploadErrorEventPayload } from '@atlaskit/media-picker/types';
148
+ import { UploadParams } from '@atlaskit/media-picker/types';
149
+ import { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
150
+ import type { widthPlugin } from '@atlaskit/editor-plugin-width';
151
+ import { WithIntlProps } from 'react-intl-next';
152
+ import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
153
+ import { WrappedComponentProps } from 'react-intl-next';
154
+
155
+ export { AbstractMentionResource }
156
+
157
+ export { ACTION }
158
+
159
+ export { ACTION_SUBJECT }
160
+
161
+ export { ACTION_SUBJECT_ID }
162
+
163
+ // @public (undocumented)
164
+ type AddItemTransactionCreator = (opts: {
165
+ state: EditorState;
166
+ tr: Transaction;
167
+ list: NodeType;
168
+ item: NodeType;
169
+ listLocalId: string;
170
+ itemLocalId: string;
171
+ }) => Transaction | null;
172
+
173
+ // @public (undocumented)
174
+ type AllowedBlockTypes = 'blockquote' | 'codeBlock' | 'hardBreak' | 'heading';
175
+
176
+ // @public (undocumented)
177
+ interface AllSelectionData {
178
+ // (undocumented)
179
+ type: 'all';
180
+ }
181
+
182
+ export { AnalyticsEventPayload }
183
+
184
+ // @public (undocumented)
185
+ type AnnotationComponentProps = {
186
+ textSelection?: string;
187
+ dom?: HTMLElement;
188
+ onClose?: () => void;
189
+ };
190
+
191
+ // @public (undocumented)
192
+ export type AnnotationInfo = {
193
+ id: string;
194
+ type: AnnotationTypes.INLINE_COMMENT;
195
+ };
196
+
197
+ // @public (undocumented)
198
+ export interface AnnotationProviders {
199
+ // (undocumented)
200
+ inlineComment: InlineCommentAnnotationProvider;
201
+ }
202
+
203
+ // @public (undocumented)
204
+ export interface AnnotationState<Type, State> {
205
+ // (undocumented)
206
+ annotationType: Type;
207
+ // (undocumented)
208
+ id: string;
209
+ // (undocumented)
210
+ state: State;
211
+ }
212
+
213
+ // @public (undocumented)
214
+ export interface AnnotationTypeProvider<Type, State> {
215
+ // (undocumented)
216
+ disallowOnWhitespace?: boolean;
217
+ // (undocumented)
218
+ getState: (annotationIds: string[]) => Promise<AnnotationState<Type, State>[]>;
219
+ // (undocumented)
220
+ updateSubscriber?: AnnotationUpdateEmitter;
221
+ }
222
+
223
+ // @public (undocumented)
224
+ export class AnnotationUpdateEmitter extends EventEmitter_2 {
225
+ // (undocumented)
226
+ on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
227
+ // (undocumented)
228
+ on(event: UpdateEvent, listener: (annotationId: string) => void): this;
229
+ }
230
+
231
+ // @public (undocumented)
232
+ interface BasePluginOptions {
233
+ // (undocumented)
234
+ allowInlineCursorTarget?: boolean;
235
+ // (undocumented)
236
+ allowScrollGutter?: ScrollGutterPluginOptions;
237
+ // (undocumented)
238
+ browserFreezeTracking?: BrowserFreezetracking;
239
+ // (undocumented)
240
+ inputTracking?: InputTracking;
241
+ // (undocumented)
242
+ ufo?: boolean;
243
+ }
244
+
245
+ // @public (undocumented)
246
+ type BasePortalProviderProps = {
247
+ render: (portalProviderAPI: PortalProviderAPI) => JSX.Element | React_2.ReactChild | null;
248
+ onAnalyticsEvent?: FireAnalyticsCallback;
249
+ useAnalyticsContext?: boolean;
250
+ themeMode?: ThemeModes;
251
+ } & WrappedComponentProps;
252
+
253
+ // @public (undocumented)
254
+ export class BaseReactEditorView<T = {}> extends ReactEditorView_2<T> {
255
+ }
256
+
257
+ // @public (undocumented)
258
+ type BeforeAndAfterToolbarComponents = {
259
+ before: ReactComponents;
260
+ after: ReactComponents;
261
+ };
262
+
263
+ // @public (undocumented)
264
+ export const blockPluginStateKey: PluginKey<BlockTypeState, any>;
265
+
266
+ // @public (undocumented)
267
+ interface BlockType {
268
+ // (undocumented)
269
+ level?: HeadingLevelsAndNormalText;
270
+ // (undocumented)
271
+ name: string;
272
+ // (undocumented)
273
+ nodeName: string;
274
+ // (undocumented)
275
+ tagName?: string;
276
+ // (undocumented)
277
+ title: MessageDescriptor;
278
+ }
279
+
280
+ // @public (undocumented)
281
+ export type BlockTypeInputMethod = INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
282
+
283
+ // @public (undocumented)
284
+ interface BlockTypePluginOptions {
285
+ // (undocumented)
286
+ allowBlockType?: {
287
+ exclude?: Array<AllowedBlockTypes>;
288
+ };
289
+ // (undocumented)
290
+ isUndoRedoButtonsEnabled?: boolean;
291
+ // (undocumented)
292
+ lastNodeMustBeParagraph?: boolean;
293
+ }
294
+
295
+ // @public (undocumented)
296
+ export type BlockTypeState = {
297
+ currentBlockType: BlockType;
298
+ blockTypesDisabled: boolean;
299
+ availableBlockTypes: BlockType[];
300
+ availableWrapperBlockTypes: BlockType[];
301
+ };
302
+
303
+ export { CardProvider }
304
+
305
+ // @public (undocumented)
306
+ interface CellSelectionData {
307
+ // (undocumented)
308
+ anchor: number;
309
+ // (undocumented)
310
+ head: number;
311
+ // (undocumented)
312
+ type: 'cell';
313
+ }
314
+
315
+ // @public (undocumented)
316
+ export const changeColor: (color: string) => Command;
317
+
318
+ // @public (undocumented)
319
+ export const clearEditorContent: Command;
320
+
321
+ // @public (undocumented)
322
+ type CloseOptions = {
323
+ insertCurrentQueryAsRawText: boolean;
324
+ attachCommand?: Command;
325
+ };
326
+
327
+ // @public (undocumented)
328
+ interface CodeBlockOptions extends LongPressSelectionPluginOptions {
329
+ // (undocumented)
330
+ allowCompositionInputOverride?: boolean;
331
+ // (undocumented)
332
+ allowCopyToClipboard?: boolean;
333
+ // (undocumented)
334
+ appearance?: EditorAppearance | undefined;
335
+ }
336
+
337
+ // @public (undocumented)
338
+ interface CollabAnalyticsProps {
339
+ EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
340
+ }
341
+
342
+ // @public (undocumented)
343
+ type CollabEditOptions = {
344
+ provider?: Providers['collabEditProvider'];
345
+ userId?: string;
346
+ useNativePlugin?: boolean;
347
+ } & CollabInviteToEditProps & CollabAnalyticsProps;
348
+
349
+ // @public (undocumented)
350
+ interface CollabInviteToEditProps {
351
+ // (undocumented)
352
+ inviteToEditComponent?: React.ComponentType<InviteToEditComponentProps>;
353
+ // (undocumented)
354
+ inviteToEditHandler?: (event: React.MouseEvent<HTMLElement>) => void;
355
+ // (undocumented)
356
+ isInviteToEditButtonSelected?: boolean;
357
+ }
358
+
359
+ // @public (undocumented)
360
+ export class CollapsedEditor extends React_2.Component<Props, State> {
361
+ // (undocumented)
362
+ componentDidUpdate(): void;
363
+ // (undocumented)
364
+ editorComponent?: Editor | EditorNext;
365
+ // (undocumented)
366
+ handleEditorRef: (editorRef?: Editor, editorRefCallback?: any) => void;
367
+ // (undocumented)
368
+ previouslyExpanded?: boolean;
369
+ // (undocumented)
370
+ render(): JSX.Element;
371
+ }
372
+
373
+ // @public (undocumented)
374
+ export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
375
+
376
+ // @public (undocumented)
377
+ export type CommandDispatch = (tr: Transaction) => void;
378
+
379
+ // @public (undocumented)
380
+ export const commitStatusPicker: () => (editorView: EditorView) => void;
381
+
382
+ // @public (undocumented)
383
+ type ConfigWithNodeInfo = {
384
+ config: FloatingToolbarConfig | undefined;
385
+ pos: number;
386
+ node: Node_2;
387
+ };
388
+
389
+ // @public (undocumented)
390
+ type Context = {
391
+ editorActions?: EditorActions;
392
+ intl: IntlShape;
393
+ };
394
+
395
+ // @public (undocumented)
396
+ export function ContextPanel(props: Props_4): jsx.JSX.Element;
397
+
398
+ // @public (undocumented)
399
+ interface CreateEditorStateOptions {
400
+ // (undocumented)
401
+ context: EditorReactContext;
402
+ // (undocumented)
403
+ doc?: Object | Node_2 | string;
404
+ // (undocumented)
405
+ props: EditorViewProps;
406
+ // (undocumented)
407
+ resetting?: boolean;
408
+ // (undocumented)
409
+ selectionAtStart?: boolean;
410
+ }
411
+
412
+ // @public (undocumented)
413
+ export const createQuickInsertTools: (editorView: EditorView) => {
414
+ getItems: (query: string, options?: QuickInsertPluginOptions) => QuickInsertItem[];
415
+ };
416
+
417
+ export { createTable }
418
+
419
+ // @public (undocumented)
420
+ export const createTypeAheadTools: (editorView: EditorView) => {
421
+ isOpen: () => TypeAheadHandler | false;
422
+ currentQuery: () => string;
423
+ close: (options?: CloseOptions) => boolean;
424
+ openMention: (inputMethod: TypeAheadInputMethod) => boolean;
425
+ searchMention: (query?: string) => {
426
+ type: (appendValue: string) => Promise<TypeAheadItem_2[]> | undefined;
427
+ result: () => Promise<TypeAheadItem_2[] | undefined>;
428
+ close: (options?: CloseOptions) => boolean;
429
+ insert: ({ index, mode }: {
430
+ index: number;
431
+ mode?: SelectItemMode | undefined;
432
+ }) => Promise<void>;
433
+ };
434
+ openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
435
+ searchQuickInsert: (query?: string) => {
436
+ type: (appendValue: string) => Promise<TypeAheadItem_2[]> | undefined;
437
+ result: () => Promise<TypeAheadItem_2[] | undefined>;
438
+ close: (options?: CloseOptions) => boolean;
439
+ insert: ({ index, mode }: {
440
+ index: number;
441
+ mode?: SelectItemMode | undefined;
442
+ }) => Promise<void>;
443
+ };
444
+ openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
445
+ searchEmoji: (query?: string) => {
446
+ type: (appendValue: string) => Promise<TypeAheadItem_2[]> | undefined;
447
+ result: () => Promise<TypeAheadItem_2[] | undefined>;
448
+ close: (options?: CloseOptions) => boolean;
449
+ insert: ({ index, mode }: {
450
+ index: number;
451
+ mode?: SelectItemMode | undefined;
452
+ }) => Promise<void>;
453
+ };
454
+ insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
455
+ insertItemEmoji: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
456
+ insertItemQuickInsert: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
457
+ };
458
+
459
+ // @public (undocumented)
460
+ export interface CustomMediaPicker {
461
+ // (undocumented)
462
+ destroy(): void;
463
+ // (undocumented)
464
+ emit(event: string, data: any): void;
465
+ // (undocumented)
466
+ on(event: string, cb: Listener): void;
467
+ // (undocumented)
468
+ removeAllListeners(event: any): void;
469
+ // (undocumented)
470
+ setUploadParams(uploadParams: UploadParams): void;
471
+ }
472
+
473
+ export { darkModeStatusColorPalette }
474
+
475
+ // @public (undocumented)
476
+ export const dateMessages: {
477
+ editText: {
478
+ id: string;
479
+ defaultMessage: string;
480
+ description: string;
481
+ };
482
+ };
483
+
484
+ // @public (undocumented)
485
+ export const datePluginKey: PluginKey<DatePluginState, any>;
486
+
487
+ // @public (undocumented)
488
+ export type DatePluginState = {
489
+ isQuickInsertAction?: boolean;
490
+ isNew: boolean;
491
+ showDatePickerAt: null | number;
492
+ isDateEmpty: boolean;
493
+ focusDateInput: boolean;
494
+ };
495
+
496
+ // @public
497
+ export function dateToDateType(date: Date): DateType;
498
+
499
+ // @public (undocumented)
500
+ type DateType = {
501
+ year: number;
502
+ month: number;
503
+ day?: number;
504
+ };
505
+
506
+ // @public (undocumented)
507
+ export function dedupe<T>(list?: T[], iteratee?: (p: T) => T | T[keyof T]): T[];
508
+
509
+ export { DEFAULT_BORDER_COLOR }
510
+
511
+ // @public (undocumented)
512
+ type DefaultPresetPluginOptions = {
513
+ paste: PastePluginOptions;
514
+ base?: BasePluginOptions;
515
+ blockType?: BlockTypePluginOptions;
516
+ placeholder?: PlaceholderPluginOptions;
517
+ textFormatting?: TextFormattingOptions;
518
+ submitEditor?: EditorProps_2['onSave'];
519
+ annotationProviders?: AnnotationProviders;
520
+ quickInsert?: QuickInsertPluginOptions;
521
+ codeBlock?: CodeBlockOptions;
522
+ selection?: SelectionPluginOptions;
523
+ cardOptions?: CardOptions;
524
+ hyperlinkOptions?: HyperlinkPluginOptions;
525
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
526
+ typeAhead?: TypeAheadPluginOptions;
527
+ allowAnalyticsGASV3?: boolean;
528
+ performanceTracking?: EditorProps['performanceTracking'];
529
+ };
530
+
531
+ // @public
532
+ export const deleteDate: () => Command;
533
+
534
+ export { DropdownOptionT }
535
+
536
+ // @public (undocumented)
537
+ type EditInsertedState = {
538
+ type: HyperlinkInsertStatus.EDIT_INSERTED_TOOLBAR;
539
+ node: Node_2;
540
+ pos: number;
541
+ };
542
+
543
+ // @public (undocumented)
544
+ export class Editor extends React_2.Component<EditorProps> {
545
+ // (undocumented)
546
+ static defaultProps: EditorProps;
547
+ // (undocumented)
548
+ render(): jsx.JSX.Element;
549
+ }
550
+
551
+ // @public (undocumented)
552
+ export class EditorActions<T = any> implements EditorActionsOptions<T> {
553
+ // (undocumented)
554
+ __temporaryFixForConfigPanel(): Promise<void>;
555
+ // (undocumented)
556
+ appendText(text: string): boolean;
557
+ // (undocumented)
558
+ blur(): boolean;
559
+ // (undocumented)
560
+ clear(): boolean;
561
+ // (undocumented)
562
+ dispatchAnalyticsEvent: (payload: AnalyticsEventPayload_2) => void;
563
+ // (undocumented)
564
+ focus(): boolean;
565
+ // (undocumented)
566
+ static from<T>(view: EditorView, eventDispatcher: EventDispatcher, transformer?: Transformer_2<T>): EditorActions<T>;
567
+ // (undocumented)
568
+ getNodeByFragmentLocalId(id: string): Node_2 | undefined;
569
+ // (undocumented)
570
+ getNodeByLocalId(id: string): Node_2 | undefined;
571
+ getResolvedEditorState: () => Promise<ResolvedEditorState | undefined>;
572
+ getSelectedNode(): Node_2 | undefined;
573
+ // (undocumented)
574
+ getValue(): Promise<T | JSONDocNode | undefined>;
575
+ // (undocumented)
576
+ isDocumentEmpty(): boolean;
577
+ // (undocumented)
578
+ _privateGetEditorView(): EditorView | undefined;
579
+ // (undocumented)
580
+ _privateGetEventDispatcher(): EventDispatcher | undefined;
581
+ // (undocumented)
582
+ _privateRegisterEditor(editorView: EditorView, eventDispatcher: EventDispatcher, contentTransformer?: Transformer_2<T>, getFeatureFlags?: () => EditorFeatureFlags): void;
583
+ // (undocumented)
584
+ _privateSubscribe(cb: ContextUpdateHandler): void;
585
+ // (undocumented)
586
+ _privateUnregisterEditor(): void;
587
+ // (undocumented)
588
+ _privateUnsubscribe(cb: ContextUpdateHandler): void;
589
+ // (undocumented)
590
+ replaceDocument(rawValue: any, shouldScrollToBottom?: boolean,
591
+ shouldAddToHistory?: boolean): boolean;
592
+ // (undocumented)
593
+ replaceSelection(rawValue: Array<ReplaceRawValue> | ReplaceRawValue, tryToReplace?: boolean): boolean;
594
+ }
595
+
596
+ // @public (undocumented)
597
+ interface EditorBaseProps extends EditorPluginFeatureProps, EditorProviderProps {
598
+ // (undocumented)
599
+ appearance?: EditorAppearance;
600
+ // (undocumented)
601
+ assistiveLabel?: string;
602
+ // (undocumented)
603
+ codeBlock?: CodeBlockOptions;
604
+ // (undocumented)
605
+ contentComponents?: ReactComponents;
606
+ // (undocumented)
607
+ contentTransformerProvider?: (schema: Schema) => Transformer_2<string>;
608
+ // (undocumented)
609
+ contextPanel?: ReactComponents;
610
+ // (undocumented)
611
+ defaultValue?: Node_2 | Object | string;
612
+ // (undocumented)
613
+ disabled?: boolean;
614
+ // (undocumented)
615
+ editorActions?: EditorActions;
616
+ // (undocumented)
617
+ errorReporterHandler?: ErrorReportingHandler;
618
+ // (undocumented)
619
+ extensionProviders?: ExtensionProvidersProp;
620
+ featureFlags?: {
621
+ [featureFlag: string]: boolean | string;
622
+ };
623
+ // @deprecated
624
+ inputSamplingLimit?: number;
625
+ // (undocumented)
626
+ maxHeight?: number;
627
+ // (undocumented)
628
+ minHeight?: number;
629
+ // (undocumented)
630
+ onCancel?: (editorView: EditorView) => void;
631
+ // (undocumented)
632
+ onChange?: EditorOnChangeHandler;
633
+ // (undocumented)
634
+ onDestroy?: () => void;
635
+ // (undocumented)
636
+ onEditorReady?: (editorActions: EditorActions) => void;
637
+ // (undocumented)
638
+ persistScrollGutter?: boolean;
639
+ // (undocumented)
640
+ placeholder?: string;
641
+ // (undocumented)
642
+ placeholderBracketHint?: string;
643
+ // (undocumented)
644
+ popupsBoundariesElement?: HTMLElement;
645
+ // (undocumented)
646
+ popupsMountPoint?: HTMLElement;
647
+ // (undocumented)
648
+ popupsScrollableElement?: HTMLElement;
649
+ // (undocumented)
650
+ primaryToolbarIconBefore?: ReactElement;
651
+ // (undocumented)
652
+ quickInsert?: QuickInsertOptions;
653
+ // (undocumented)
654
+ secondaryToolbarComponents?: ReactComponents;
655
+ // (undocumented)
656
+ shouldFocus?: boolean;
657
+ // (undocumented)
658
+ textFormatting?: TextFormattingOptions;
659
+ trackValidTransactions?: boolean | {
660
+ samplingRate: number;
661
+ };
662
+ // (undocumented)
663
+ UNSAFE_useAnalyticsContext?: boolean;
664
+ useStickyToolbar?: UseStickyToolbarType;
665
+ }
666
+
667
+ // @public (undocumented)
668
+ interface EditorConfig {
669
+ // (undocumented)
670
+ contentComponents: UIComponentFactory[];
671
+ // (undocumented)
672
+ marks: MarkConfig[];
673
+ // (undocumented)
674
+ nodes: NodeConfig[];
675
+ // (undocumented)
676
+ onEditorViewStateUpdatedCallbacks: Array<{
677
+ pluginName: string;
678
+ callback: (props: EditorViewStateUpdatedCallbackProps) => void;
679
+ }>;
680
+ // (undocumented)
681
+ pmPlugins: Array<PMPlugin>;
682
+ // (undocumented)
683
+ primaryToolbarComponents: ToolbarUIComponentFactory[];
684
+ // (undocumented)
685
+ secondaryToolbarComponents: UIComponentFactory[];
686
+ }
687
+
688
+ // @public (undocumented)
689
+ export class EditorContext extends React_2.Component<EditorContextProps, {}> {
690
+ constructor(props: EditorContextProps);
691
+ // (undocumented)
692
+ static childContextTypes: {
693
+ editorActions: PropTypes.Requireable<object>;
694
+ };
695
+ // (undocumented)
696
+ getChildContext(): {
697
+ editorActions: EditorActions<any>;
698
+ };
699
+ // (undocumented)
700
+ render(): JSX.Element;
701
+ }
702
+
703
+ // @public (undocumented)
704
+ type EditorContextProps = {
705
+ editorActions?: EditorActions;
706
+ };
707
+
708
+ export { EditorFeatureFlags }
709
+
710
+ // @public (undocumented)
711
+ export interface EditorInstance {
712
+ // (undocumented)
713
+ contentComponents: UIComponentFactory[];
714
+ // (undocumented)
715
+ contentTransformer?: Transformer<string>;
716
+ // (undocumented)
717
+ editorView: EditorView;
718
+ // (undocumented)
719
+ eventDispatcher: EventDispatcher;
720
+ // (undocumented)
721
+ insertMenuItems?: MenuItem[];
722
+ // (undocumented)
723
+ onEditorViewStateUpdatedCallbacks: {
724
+ pluginName: string;
725
+ callback: OnEditorViewStateUpdated;
726
+ }[];
727
+ // (undocumented)
728
+ primaryToolbarComponents: ToolbarUIComponentFactory[];
729
+ // (undocumented)
730
+ secondaryToolbarComponents: UIComponentFactory[];
731
+ }
732
+
733
+ // @public (undocumented)
734
+ class EditorNext extends React_2.Component<EditorNextProps> {
735
+ constructor(props: EditorNextProps, context: Context);
736
+ // (undocumented)
737
+ static contextTypes: {
738
+ editorActions: PropTypes.Requireable<object>;
739
+ };
740
+ // (undocumented)
741
+ static defaultProps: EditorProps;
742
+ // (undocumented)
743
+ static propTypes: {
744
+ preset: ({ preset }: Pick<EditorNextProps, 'preset'>) => Error | null;
745
+ minHeight: ({ appearance, minHeight, }: Pick<EditorProps, "appearance" | "minHeight">) => Error | null;
746
+ };
747
+ // (undocumented)
748
+ render(): jsx.JSX.Element;
749
+ }
750
+
751
+ // @public (undocumented)
752
+ interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithPlugins, EditorProviderProps {
753
+ // (undocumented)
754
+ preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
755
+ }
756
+
757
+ // @public (undocumented)
758
+ type EditorOnChangeHandler = (editorView: EditorView, meta: {
759
+ source: 'local' | 'remote';
760
+ }) => void;
761
+
762
+ export { EditorPlugin }
763
+
764
+ // @public (undocumented)
765
+ interface EditorPluginFeatureProps {
766
+ // (undocumented)
767
+ allowBlockType?: BlockTypePluginOptions['allowBlockType'];
768
+ // (undocumented)
769
+ allowBreakout?: boolean;
770
+ // (undocumented)
771
+ allowConfluenceInlineComment?: boolean;
772
+ // (undocumented)
773
+ allowDate?: boolean;
774
+ // (undocumented)
775
+ allowExpand?: boolean | {
776
+ allowInsertion?: boolean;
777
+ allowInteractiveExpand?: boolean;
778
+ };
779
+ // (undocumented)
780
+ allowExtension?: ExtensionConfig | boolean;
781
+ // (undocumented)
782
+ allowFindReplace?: FindReplaceOptions | boolean;
783
+ allowFragmentMark?: boolean;
784
+ // (undocumented)
785
+ allowHelpDialog?: boolean;
786
+ // (undocumented)
787
+ allowIndentation?: boolean;
788
+ // (undocumented)
789
+ allowJiraIssue?: boolean;
790
+ // (undocumented)
791
+ allowLayouts?: LayoutPluginOptions | boolean;
792
+ // (undocumented)
793
+ allowNestedTasks?: boolean;
794
+ allowNewInsertionBehaviour?: boolean;
795
+ // (undocumented)
796
+ allowPanel?: PanelPluginConfig | boolean;
797
+ // (undocumented)
798
+ allowRule?: boolean;
799
+ // (undocumented)
800
+ allowStatus?: boolean | {
801
+ menuDisabled: boolean;
802
+ };
803
+ // (undocumented)
804
+ allowTasksAndDecisions?: boolean;
805
+ // (undocumented)
806
+ allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
807
+ // (undocumented)
808
+ allowTextAlignment?: boolean;
809
+ autoScrollIntoView?: boolean;
810
+ // (undocumented)
811
+ elementBrowser?: {
812
+ showModal?: boolean;
813
+ replacePlusMenu?: boolean;
814
+ helpUrl?: string;
815
+ emptyStateHandler?: EmptyStateHandler;
816
+ };
817
+ // (undocumented)
818
+ extensionHandlers?: ExtensionHandlers;
819
+ // (undocumented)
820
+ feedbackInfo?: FeedbackInfo;
821
+ // (undocumented)
822
+ maxContentSize?: number;
823
+ // (undocumented)
824
+ mention?: MentionPluginConfig;
825
+ // @deprecated
826
+ mentionInsertDisplayName?: boolean;
827
+ // (undocumented)
828
+ saveOnEnter?: boolean;
829
+ UNSAFE_allowBorderMark?: boolean;
830
+ // (undocumented)
831
+ uploadErrorHandler?: (state: MediaState) => void;
832
+ // (undocumented)
833
+ waitForMediaUpload?: boolean;
834
+ }
835
+
836
+ // @public (undocumented)
837
+ interface EditorPresetProps {
838
+ // (undocumented)
839
+ excludes?: Set<string>;
840
+ // (undocumented)
841
+ experimental?: Array<string>;
842
+ // (undocumented)
843
+ featureFlags?: EditorFeatureFlags;
844
+ }
845
+
846
+ // @public (undocumented)
847
+ type EditorProduct = 'bitbucket' | 'confluence' | 'jira' | 'stride' | undefined;
848
+
849
+ // @public (undocumented)
850
+ export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps, EditorSharedPropsWithPlugins, EditorProviderProps {
851
+ // @deprecated (undocumented)
852
+ dangerouslyAppendPlugins?: {
853
+ __plugins: EditorPlugin[];
854
+ };
855
+ }
856
+
857
+ // @public (undocumented)
858
+ type EditorProps_2 = {
859
+ plugins?: Array<EditorPlugin>;
860
+ transformer?: (schema: Schema) => Transformer_2<any>;
861
+ children?: React.ReactChild;
862
+ defaultValue?: object | string;
863
+ popupsMountPoint?: HTMLElement;
864
+ popupsBoundariesElement?: HTMLElement;
865
+ popupsScrollableElement?: HTMLElement;
866
+ disabled?: boolean;
867
+ placeholder?: string;
868
+ onAnalyticsEvent?: FireAnalyticsCallback;
869
+ onChange?: (value: any, meta: {
870
+ source: 'local' | 'remote';
871
+ }) => void;
872
+ onSave?: (value: any) => void;
873
+ onCancel?: (value: any) => void;
874
+ onMount?: (actions: EditorActions) => void;
875
+ onDestroy?: () => void;
876
+ };
877
+
878
+ // @public (undocumented)
879
+ interface EditorProviderProps {
880
+ // (undocumented)
881
+ activityProvider?: Promise<ActivityProvider>;
882
+ // (undocumented)
883
+ annotationProviders?: AnnotationProviders;
884
+ // (undocumented)
885
+ autoformattingProvider?: Providers['autoformattingProvider'];
886
+ // (undocumented)
887
+ collabEditProvider?: Providers['collabEditProvider'];
888
+ // (undocumented)
889
+ emojiProvider?: Providers['emojiProvider'];
890
+ // (undocumented)
891
+ legacyImageUploadProvider?: Providers['imageUploadProvider'];
892
+ // (undocumented)
893
+ macroProvider?: Providers['macroProvider'];
894
+ // (undocumented)
895
+ mentionProvider?: Promise<MentionProvider>;
896
+ // (undocumented)
897
+ presenceProvider?: Promise<any>;
898
+ // (undocumented)
899
+ searchProvider?: Promise<SearchProvider>;
900
+ // (undocumented)
901
+ taskDecisionProvider?: Promise<TaskDecisionProvider>;
902
+ }
903
+
904
+ // @public (undocumented)
905
+ interface EditorSharedPropsWithPlugins {
906
+ // (undocumented)
907
+ allowAnalyticsGASV3?: boolean;
908
+ // (undocumented)
909
+ allowTables?: PluginConfig | boolean;
910
+ // (undocumented)
911
+ allowTextColor?: TextColorPluginConfig | boolean;
912
+ // (undocumented)
913
+ allowUndoRedoButtons?: boolean;
914
+ // (undocumented)
915
+ collabEdit?: CollabEditOptions;
916
+ // (undocumented)
917
+ contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
918
+ // (undocumented)
919
+ insertMenuItems?: MenuItem[];
920
+ linking?: LinkingOptions;
921
+ // (undocumented)
922
+ media?: MediaOptions;
923
+ // (undocumented)
924
+ onSave?: (editorView: EditorView) => void;
925
+ performanceTracking?: PerformanceTracking;
926
+ // (undocumented)
927
+ primaryToolbarComponents?: PrimaryToolbarComponents;
928
+ // (undocumented)
929
+ sanitizePrivateContent?: boolean;
930
+ // @deprecated (undocumented)
931
+ smartLinks?: CardOptions;
932
+ // @deprecated (undocumented)
933
+ UNSAFE_cards?: CardOptions;
934
+ }
935
+
936
+ // @public (undocumented)
937
+ interface EditorViewProps {
938
+ // (undocumented)
939
+ allowAnalyticsGASV3?: boolean;
940
+ // (undocumented)
941
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
942
+ // (undocumented)
943
+ disabled?: boolean;
944
+ // (undocumented)
945
+ editorProps: EditorNextProps | EditorProps;
946
+ // (undocumented)
947
+ experienceStore?: ExperienceStore;
948
+ // (undocumented)
949
+ onEditorCreated: (instance: {
950
+ view: EditorView;
951
+ config: EditorConfig;
952
+ eventDispatcher: EventDispatcher;
953
+ transformer?: Transformer_2<string>;
954
+ }) => void;
955
+ // (undocumented)
956
+ onEditorDestroyed: (instance: {
957
+ view: EditorView;
958
+ config: EditorConfig;
959
+ eventDispatcher: EventDispatcher;
960
+ transformer?: Transformer_2<string>;
961
+ }) => void;
962
+ // (undocumented)
963
+ portalProviderAPI: PortalProviderAPI;
964
+ // (undocumented)
965
+ preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
966
+ // (undocumented)
967
+ providerFactory: ProviderFactory;
968
+ // (undocumented)
969
+ render?: (props: {
970
+ editor: JSX.Element;
971
+ view?: EditorView;
972
+ config: EditorConfig;
973
+ eventDispatcher: EventDispatcher;
974
+ transformer?: Transformer_2<string>;
975
+ dispatchAnalyticsEvent: DispatchAnalyticsEvent;
976
+ editorRef: React_2.RefObject<HTMLDivElement>;
977
+ }) => JSX.Element;
978
+ }
979
+
980
+ // @public (undocumented)
981
+ type EditorViewStateUpdatedCallbackProps = {
982
+ readonly originalTransaction: Readonly<Transaction>;
983
+ readonly transactions: Transaction[];
984
+ readonly oldEditorState: Readonly<EditorState>;
985
+ readonly newEditorState: Readonly<EditorState>;
986
+ };
987
+
988
+ // @public (undocumented)
989
+ type EditState = {
990
+ type: HyperlinkInsertStatus.EDIT_LINK_TOOLBAR;
991
+ node: Node_2;
992
+ pos: number;
993
+ };
994
+
995
+ export { EmojiResource }
996
+
997
+ export { EVENT_TYPE }
998
+
999
+ export { EventDispatcher }
1000
+
1001
+ // @public (undocumented)
1002
+ interface ExtensionConfig {
1003
+ // (undocumented)
1004
+ allowAutoSave?: boolean;
1005
+ // (undocumented)
1006
+ allowBreakout?: boolean;
1007
+ // (undocumented)
1008
+ allowExtendFloatingToolbars?: boolean;
1009
+ }
1010
+
1011
+ // @public (undocumented)
1012
+ type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
1013
+
1014
+ // @public (undocumented)
1015
+ type ExtensionProvidersProp = ExtensionProviders | ExtensionProvidersWithEditorAction;
1016
+
1017
+ // @public (undocumented)
1018
+ type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
1019
+
1020
+ export { ExtensionType }
1021
+
1022
+ // @public (undocumented)
1023
+ type FeedbackInfo = {
1024
+ product?: string;
1025
+ packageVersion?: string;
1026
+ packageName?: string;
1027
+ labels?: Array<string>;
1028
+ sessionId?: string;
1029
+ contentId?: string;
1030
+ tabId?: string;
1031
+ };
1032
+
1033
+ // @public (undocumented)
1034
+ type FindReplaceOptions = {
1035
+ allowMatchCase?: boolean;
1036
+ };
1037
+
1038
+ export { FloatingToolbarButton }
1039
+
1040
+ export { FloatingToolbarColorPicker }
1041
+
1042
+ export { FloatingToolbarConfig }
1043
+
1044
+ export { FloatingToolbarDatePicker }
1045
+
1046
+ export { FloatingToolbarDropdown }
1047
+
1048
+ export { FloatingToolbarEmojiPicker }
1049
+
1050
+ export { FloatingToolbarInput }
1051
+
1052
+ export { FloatingToolbarItem }
1053
+
1054
+ export { FloatingToolbarListPicker }
1055
+
1056
+ // @public
1057
+ export const floatingToolbarPluginKey: PluginKey<FloatingToolbarPluginState, any>;
1058
+
1059
+ // @public (undocumented)
1060
+ export type FloatingToolbarPluginState = Record<'getConfigWithNodeInfo', (state: EditorState) => ConfigWithNodeInfo | null | undefined>;
1061
+
1062
+ export { FloatingToolbarSelect }
1063
+
1064
+ export { GapCursorSelection }
1065
+
1066
+ export { GapCursorSide }
1067
+
1068
+ // @public (undocumented)
1069
+ interface GapSelectionData {
1070
+ // (undocumented)
1071
+ pos: number;
1072
+ // (undocumented)
1073
+ type: 'gapcursor';
1074
+ }
1075
+
1076
+ // @public (undocumented)
1077
+ export function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
1078
+
1079
+ // @public (undocumented)
1080
+ export const getListCommands: () => {
1081
+ indentList: typeof indentList;
1082
+ outdentList: typeof outdentList;
1083
+ toggleOrderedList: typeof toggleOrderedList;
1084
+ toggleBulletList: typeof toggleBulletList;
1085
+ };
1086
+
1087
+ // @public (undocumented)
1088
+ export function getNodesCount(node: Node_2): Record<string, number>;
1089
+
1090
+ // @public (undocumented)
1091
+ type getPosHandler = boolean | getPosHandlerNode;
1092
+
1093
+ // @public (undocumented)
1094
+ type getPosHandlerNode = () => number;
1095
+
1096
+ // @public
1097
+ export function hasVisibleContent(node: Node_2): boolean;
1098
+
1099
+ // @public (undocumented)
1100
+ type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
1101
+
1102
+ // @public (undocumented)
1103
+ type HeadingLevelsAndNormalText = HeadingLevels | NormalTextLevel;
1104
+
1105
+ // @public
1106
+ export const historyPluginKey: PluginKey<HistoryPluginState, any>;
1107
+
1108
+ // @public (undocumented)
1109
+ export interface HistoryPluginState {
1110
+ // (undocumented)
1111
+ canRedo: boolean;
1112
+ // (undocumented)
1113
+ canUndo: boolean;
1114
+ }
1115
+
1116
+ // @public (undocumented)
1117
+ export enum HyperlinkInsertStatus {
1118
+ // (undocumented)
1119
+ EDIT_INSERTED_TOOLBAR = "EDIT_INSERTED",
1120
+ // (undocumented)
1121
+ EDIT_LINK_TOOLBAR = "EDIT",
1122
+ // (undocumented)
1123
+ INSERT_LINK_TOOLBAR = "INSERT"
1124
+ }
1125
+
1126
+ // @public
1127
+ interface HyperlinkPluginOptions {
1128
+ // (undocumented)
1129
+ cardOptions?: CardOptions;
1130
+ // (undocumented)
1131
+ editorAppearance?: EditorAppearance;
1132
+ // (undocumented)
1133
+ linkPicker?: LinkPickerOptions;
1134
+ // (undocumented)
1135
+ platform?: 'mobile' | 'web';
1136
+ }
1137
+
1138
+ // @public (undocumented)
1139
+ export interface HyperlinkState {
1140
+ // (undocumented)
1141
+ activeLinkMark?: LinkToolbarState;
1142
+ // (undocumented)
1143
+ activeText?: string;
1144
+ // (undocumented)
1145
+ canInsertLink: boolean;
1146
+ // (undocumented)
1147
+ editorAppearance?: EditorAppearance;
1148
+ // (undocumented)
1149
+ inputMethod?: INPUT_METHOD;
1150
+ // (undocumented)
1151
+ searchSessionId?: string;
1152
+ // (undocumented)
1153
+ timesViewed: number;
1154
+ }
1155
+
1156
+ // @public (undocumented)
1157
+ export const hyperlinkStateKey: PluginKey<HyperlinkState, any>;
1158
+
1159
+ // @public (undocumented)
1160
+ function indentList(inputMethod?: InputMethod): Command;
1161
+
1162
+ // @public (undocumented)
1163
+ export type InlineCommentAnnotationProvider = AnnotationTypeProvider<AnnotationTypes.INLINE_COMMENT, InlineCommentState> & {
1164
+ createComponent?: React_2.ComponentType<InlineCommentCreateComponentProps>;
1165
+ viewComponent?: React_2.ComponentType<InlineCommentViewComponentProps>;
1166
+ isToolbarAbove?: boolean;
1167
+ };
1168
+
1169
+ // @public (undocumented)
1170
+ export type InlineCommentCreateComponentProps = AnnotationComponentProps & {
1171
+ onCreate: (id: string) => void;
1172
+ };
1173
+
1174
+ // @public (undocumented)
1175
+ export type InlineCommentState = {
1176
+ resolved: boolean;
1177
+ };
1178
+
1179
+ // @public (undocumented)
1180
+ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
1181
+ annotations: Array<AnnotationInfo>;
1182
+ onResolve: (id: string) => void;
1183
+ onDelete?: (id: string) => void;
1184
+ };
1185
+
1186
+ export { INPUT_METHOD }
1187
+
1188
+ // @public (undocumented)
1189
+ type InputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1190
+
1191
+ // @public (undocumented)
1192
+ type InputMethod_2 = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1193
+
1194
+ // @public (undocumented)
1195
+ export type InsertBlockInputMethodToolbar = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.TOOLBAR;
1196
+
1197
+ // @public (undocumented)
1198
+ export function insertBlockType(name: string): Command;
1199
+
1200
+ // @public (undocumented)
1201
+ export const insertBlockTypesWithAnalytics: (name: string, inputMethod: BlockTypeInputMethod) => Command;
1202
+
1203
+ // @public (undocumented)
1204
+ export const insertDate: (date?: DateType, inputMethod?: InsertBlockInputMethodToolbar, commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER, enterPressed?: boolean) => Command;
1205
+
1206
+ // @public (undocumented)
1207
+ export const insertExpand: Command;
1208
+
1209
+ // @public (undocumented)
1210
+ export const insertHorizontalRule: (inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR, featureFlags: EditorFeatureFlags) => Command;
1211
+
1212
+ // @public (undocumented)
1213
+ type InsertItemProps = {
1214
+ contentItem: TypeAheadItem_2;
1215
+ query: string;
1216
+ sourceListItem: TypeAheadItem_2[];
1217
+ };
1218
+
1219
+ // @public (undocumented)
1220
+ export function insertLink(from: number, to: number, incomingHref: string, incomingTitle?: string, displayText?: string, source?: LinkInputMethod, sourceEvent?: UIAnalyticsEvent | null | undefined): Command;
1221
+
1222
+ // @public (undocumented)
1223
+ export const insertLinkWithAnalytics: (inputMethod: LinkInputMethod, from: number, to: number, href: string, title?: string, displayText?: string, cardsAvailable?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined) => Command;
1224
+
1225
+ // @public (undocumented)
1226
+ export const insertLinkWithAnalyticsMobileNative: (inputMethod: LinkInputMethod, from: number, to: number, href: string, title?: string, displayText?: string) => Command;
1227
+
1228
+ // @public (undocumented)
1229
+ export const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean) => boolean;
1230
+
1231
+ // @public (undocumented)
1232
+ type InsertState = {
1233
+ type: HyperlinkInsertStatus.INSERT_LINK_TOOLBAR;
1234
+ from: number;
1235
+ to: number;
1236
+ };
1237
+
1238
+ // @public (undocumented)
1239
+ export const insertTaskDecisionCommand: (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | InsertBlockInputMethodToolbar, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
1240
+
1241
+ // @public (undocumented)
1242
+ type InviteToEditButtonProps = {
1243
+ onClick: (event: React.MouseEvent<HTMLElement>) => void;
1244
+ selected: boolean;
1245
+ };
1246
+
1247
+ // @public (undocumented)
1248
+ type InviteToEditComponentProps = {
1249
+ children: ReactElement<InviteToEditButtonProps>;
1250
+ };
1251
+
1252
+ // @public
1253
+ export function isEmptyDocument(node: Node_2): boolean;
1254
+
1255
+ // @public (undocumented)
1256
+ export function isLinkAtPos(pos: number): Predicate;
1257
+
1258
+ // @public (undocumented)
1259
+ export function isTextAtPos(pos: number): Predicate;
1260
+
1261
+ // @public (undocumented)
1262
+ interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
1263
+ // (undocumented)
1264
+ allowBreakout?: boolean;
1265
+ // (undocumented)
1266
+ UNSAFE_addSidebarLayouts?: boolean;
1267
+ // (undocumented)
1268
+ UNSAFE_allowSingleColumnLayout?: boolean;
1269
+ }
1270
+
1271
+ export { lightModeStatusColorPalette }
1272
+
1273
+ // @public
1274
+ interface LinkingOptions {
1275
+ linkPicker?: LinkPickerOptions;
1276
+ smartLinks?: CardOptions;
1277
+ }
1278
+
1279
+ // @public (undocumented)
1280
+ export type LinkInputMethod = INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD;
1281
+
1282
+ // @public
1283
+ interface LinkPickerOptions extends Partial<LinkPickerProps> {
1284
+ }
1285
+
1286
+ // @public (undocumented)
1287
+ type LinkToolbarState = EditInsertedState | EditState | InsertState | undefined;
1288
+
1289
+ // @public (undocumented)
1290
+ type Listener = (data: any) => void;
1291
+
1292
+ // @public (undocumented)
1293
+ export type ListInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1294
+
1295
+ // @public (undocumented)
1296
+ export interface ListState {
1297
+ // (undocumented)
1298
+ bulletListActive: boolean;
1299
+ // (undocumented)
1300
+ bulletListDisabled: boolean;
1301
+ // (undocumented)
1302
+ decorationSet: DecorationSet;
1303
+ // (undocumented)
1304
+ orderedListActive: boolean;
1305
+ // (undocumented)
1306
+ orderedListDisabled: boolean;
1307
+ }
1308
+
1309
+ // @public (undocumented)
1310
+ export const listStateKey: PluginKey<ListState, any>;
1311
+
1312
+ // @public (undocumented)
1313
+ interface LongPressSelectionPluginOptions {
1314
+ // (undocumented)
1315
+ useLongPressSelection?: boolean;
1316
+ }
1317
+
1318
+ export { MacroAttributes }
1319
+
1320
+ export { MacroProvider }
1321
+
1322
+ // @public (undocumented)
1323
+ interface MeasureHelpers {
1324
+ // (undocumented)
1325
+ startMeasure: (measureName: string) => void;
1326
+ // (undocumented)
1327
+ stopMeasure: (measureName: string, onMeasureComplete?: (duration: number, startTime: number) => void) => void;
1328
+ }
1329
+
1330
+ // @public (undocumented)
1331
+ type MeasureListener = (entry: SimpleEntry) => void;
1332
+
1333
+ // @public (undocumented)
1334
+ export const measurements: {
1335
+ EDITOR_MOUNTED: string;
1336
+ PROSEMIRROR_RENDERED: string;
1337
+ PROSEMIRROR_CONTENT_RENDERED: string;
1338
+ ON_EDITOR_READY_CALLBACK: string;
1339
+ PASTE: string;
1340
+ };
1341
+
1342
+ // @public (undocumented)
1343
+ interface MediaNodeWithPosHandler {
1344
+ // (undocumented)
1345
+ getPos: ProsemirrorGetPosHandler;
1346
+ // (undocumented)
1347
+ node: Node_2;
1348
+ }
1349
+
1350
+ // @public (undocumented)
1351
+ export interface MediaOptions {
1352
+ // (undocumented)
1353
+ alignLeftOnInsert?: boolean;
1354
+ // (undocumented)
1355
+ allowAdvancedToolBarOptions?: boolean;
1356
+ // (undocumented)
1357
+ allowAltTextOnImages?: boolean;
1358
+ // (undocumented)
1359
+ allowBreakoutSnapPoints?: boolean;
1360
+ // (undocumented)
1361
+ allowDropzoneDropLine?: boolean;
1362
+ // (undocumented)
1363
+ allowLazyLoading?: boolean;
1364
+ // (undocumented)
1365
+ allowLinking?: boolean;
1366
+ // (undocumented)
1367
+ allowMarkingUploadsAsIncomplete?: boolean;
1368
+ // (undocumented)
1369
+ allowMediaGroup?: boolean;
1370
+ // (undocumented)
1371
+ allowMediaSingle?: MediaSingleOptions | boolean;
1372
+ // (undocumented)
1373
+ allowMediaSingleEditable?: boolean;
1374
+ // (undocumented)
1375
+ allowRemoteDimensionsFetch?: boolean;
1376
+ // (undocumented)
1377
+ allowResizing?: boolean;
1378
+ // (undocumented)
1379
+ allowResizingInTables?: boolean;
1380
+ // (undocumented)
1381
+ allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
1382
+ // (undocumented)
1383
+ altTextValidator?: (value: string) => string[];
1384
+ // (undocumented)
1385
+ customDropzoneContainer?: HTMLElement;
1386
+ // (undocumented)
1387
+ customMediaPicker?: CustomMediaPicker;
1388
+ // (undocumented)
1389
+ editorSelectionAPI?: EditorSelectionAPI;
1390
+ // (undocumented)
1391
+ enableDownloadButton?: boolean;
1392
+ // (undocumented)
1393
+ featureFlags?: MediaFeatureFlags;
1394
+ // (undocumented)
1395
+ fullWidthEnabled?: boolean;
1396
+ // (undocumented)
1397
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
1398
+ // (undocumented)
1399
+ isCopyPasteEnabled?: boolean;
1400
+ // (undocumented)
1401
+ provider?: Providers['mediaProvider'];
1402
+ // (undocumented)
1403
+ uploadErrorHandler?: (state: MediaState) => void;
1404
+ // (undocumented)
1405
+ useForgePlugins?: boolean;
1406
+ // (undocumented)
1407
+ waitForMediaUpload?: boolean;
1408
+ }
1409
+
1410
+ // @public (undocumented)
1411
+ export const mediaPlugin: NextEditorPlugin<'media', {
1412
+ pluginConfiguration: MediaOptions | undefined;
1413
+ dependencies: [
1414
+ typeof featureFlagsPlugin,
1415
+ OptionalPlugin<typeof analyticsPlugin>,
1416
+ typeof gridPlugin,
1417
+ typeof widthPlugin,
1418
+ typeof decorationsPlugin
1419
+ ];
1420
+ sharedState: MediaPluginState | null;
1421
+ }>;
1422
+
1423
+ // @public (undocumented)
1424
+ export const mediaPluginKey: PluginKey<MediaPluginState, any>;
1425
+
1426
+ // @public (undocumented)
1427
+ type MediaPluginOptions = {
1428
+ providerFactory: ProviderFactory;
1429
+ nodeViews: {
1430
+ [name: string]: (node: Node_2, view: EditorView, getPos: getPosHandler) => NodeView;
1431
+ };
1432
+ errorReporter?: ErrorReporter;
1433
+ uploadErrorHandler?: (state: MediaState) => void;
1434
+ waitForMediaUpload?: boolean;
1435
+ customDropzoneContainer?: HTMLElement;
1436
+ customMediaPicker?: CustomMediaPicker;
1437
+ allowResizing: boolean;
1438
+ };
1439
+
1440
+ // @public (undocumented)
1441
+ interface MediaPluginState {
1442
+ // (undocumented)
1443
+ addPendingTask: (promise: Promise<any>) => void;
1444
+ // (undocumented)
1445
+ allowsUploads: boolean;
1446
+ // (undocumented)
1447
+ allUploadsFinished: boolean;
1448
+ // (undocumented)
1449
+ destroy(): void;
1450
+ // (undocumented)
1451
+ dispatch?: Dispatch;
1452
+ // (undocumented)
1453
+ editingMediaSinglePos?: number;
1454
+ // (undocumented)
1455
+ element?: HTMLElement;
1456
+ // (undocumented)
1457
+ findMediaNode: (id: string) => MediaNodeWithPosHandler | null;
1458
+ // (undocumented)
1459
+ getMediaOptions: () => MediaPluginOptions;
1460
+ // (undocumented)
1461
+ handleDrag: (dragState: 'enter' | 'leave') => void;
1462
+ // (undocumented)
1463
+ handleMediaGroupUpdate: (oldNodes: Node_2[], newNodes: Node_2[]) => void;
1464
+ // (undocumented)
1465
+ handleMediaNodeMount: (node: Node_2, getPos: ProsemirrorGetPosHandler) => void;
1466
+ // (undocumented)
1467
+ handleMediaNodeRemoval: (node: Node_2 | undefined, getPos: ProsemirrorGetPosHandler) => void;
1468
+ // (undocumented)
1469
+ handleMediaNodeUnmount: (oldNode: Node_2) => void;
1470
+ // (undocumented)
1471
+ ignoreLinks: boolean;
1472
+ // (undocumented)
1473
+ insertFile: (mediaState: MediaState, onMediaStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
1474
+ // (undocumented)
1475
+ isFullscreen: boolean;
1476
+ // (undocumented)
1477
+ layout: RichMediaLayout;
1478
+ // (undocumented)
1479
+ mediaClientConfig?: MediaClientConfig;
1480
+ // (undocumented)
1481
+ mediaNodes: MediaNodeWithPosHandler[];
1482
+ // (undocumented)
1483
+ mediaOptions?: MediaOptions;
1484
+ // (undocumented)
1485
+ mediaProvider?: MediaProvider_2;
1486
+ // (undocumented)
1487
+ onContextIdentifierProvider: (_name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
1488
+ // (undocumented)
1489
+ onPopupPickerClose: () => void;
1490
+ // (undocumented)
1491
+ onPopupToggle: (onPopupToogleCallback: (isOpen: boolean) => void) => void;
1492
+ // (undocumented)
1493
+ options: MediaPluginOptions;
1494
+ // (undocumented)
1495
+ pickerPromises: Array<Promise<PickerFacade>>;
1496
+ // (undocumented)
1497
+ pickers: PickerFacade[];
1498
+ // (undocumented)
1499
+ removeSelectedMediaContainer: () => boolean;
1500
+ // (undocumented)
1501
+ selectedMediaContainerNode: () => Node_2 | undefined;
1502
+ // (undocumented)
1503
+ setBrowseFn: (browseFn: () => void) => void;
1504
+ // (undocumented)
1505
+ setMediaProvider: (mediaProvider?: Promise<MediaProvider_2>) => Promise<void>;
1506
+ // (undocumented)
1507
+ setView(view: EditorView): void;
1508
+ // (undocumented)
1509
+ showDropzone: boolean;
1510
+ // (undocumented)
1511
+ showEditingDialog?: boolean;
1512
+ // (undocumented)
1513
+ showMediaPicker: () => void;
1514
+ // (undocumented)
1515
+ splitMediaGroup: () => boolean;
1516
+ // (undocumented)
1517
+ updateAndDispatch(props: Partial<Pick<this, 'allUploadsFinished' | 'allowsUploads' | 'isFullscreen'>>): void;
1518
+ // (undocumented)
1519
+ updateElement(): void;
1520
+ // (undocumented)
1521
+ updateMediaSingleNodeAttrs: (id: string, attrs: object) => boolean | undefined;
1522
+ // (undocumented)
1523
+ uploadMediaClientConfig?: MediaClientConfig;
1524
+ // (undocumented)
1525
+ waitForMediaUpload: boolean;
1526
+ // (undocumented)
1527
+ waitForPendingTasks: (timeout?: number, lastTask?: Promise<MediaState | null>) => Promise<MediaState | null>;
1528
+ }
1529
+
1530
+ export { MediaProvider_2 as MediaProvider }
1531
+
1532
+ // @public (undocumented)
1533
+ interface MediaSingleOptions {
1534
+ // (undocumented)
1535
+ disableLayout?: boolean;
1536
+ }
1537
+
1538
+ // @public (undocumented)
1539
+ export interface MediaState {
1540
+ // (undocumented)
1541
+ collection?: string;
1542
+ // (undocumented)
1543
+ contextId?: string;
1544
+ // (undocumented)
1545
+ dimensions?: {
1546
+ width: number | undefined;
1547
+ height: number | undefined;
1548
+ };
1549
+ // (undocumented)
1550
+ error?: {
1551
+ name: string;
1552
+ description: string;
1553
+ };
1554
+ // (undocumented)
1555
+ fileMimeType?: string;
1556
+ // (undocumented)
1557
+ fileName?: string;
1558
+ // (undocumented)
1559
+ fileSize?: number;
1560
+ // (undocumented)
1561
+ id: string;
1562
+ publicId?: string;
1563
+ // (undocumented)
1564
+ scaleFactor?: number;
1565
+ // (undocumented)
1566
+ status?: MediaStateStatus;
1567
+ }
1568
+
1569
+ // @public (undocumented)
1570
+ type MediaStateEvent = MediaState;
1571
+
1572
+ // @public (undocumented)
1573
+ type MediaStateEventListener = (evt: MediaStateEvent) => void;
1574
+
1575
+ // @public (undocumented)
1576
+ type MediaStateEventSubscriber = (listener: MediaStateEventListener) => void;
1577
+
1578
+ // @public (undocumented)
1579
+ type MediaStateStatus = 'cancelled' | 'error' | 'mobile-upload-end' | 'preview' | 'ready' | 'unknown';
1580
+
1581
+ // @public (undocumented)
1582
+ interface MentionPluginConfig {
1583
+ // (undocumented)
1584
+ HighlightComponent?: React.ComponentType;
1585
+ // (undocumented)
1586
+ insertDisplayName?: boolean;
1587
+ }
1588
+
1589
+ // @public (undocumented)
1590
+ export const mentionPluginKey: PluginKey<MentionPluginState, any>;
1591
+
1592
+ // @public (undocumented)
1593
+ export type MentionPluginState = {
1594
+ mentionProvider?: MentionProvider_2;
1595
+ contextIdentifierProvider?: ContextIdentifierProvider;
1596
+ mentions?: Array<MentionDescription>;
1597
+ };
1598
+
1599
+ export { MentionProvider }
1600
+
1601
+ export { MentionResource }
1602
+
1603
+ // @public (undocumented)
1604
+ interface MessageDescriptor {
1605
+ // (undocumented)
1606
+ defaultMessage: string;
1607
+ // (undocumented)
1608
+ description: string;
1609
+ // (undocumented)
1610
+ id: string;
1611
+ }
1612
+
1613
+ export { messages }
1614
+
1615
+ // @public (undocumented)
1616
+ type MobileUploadEndEventPayload = {
1617
+ readonly file: MediaFile & {
1618
+ readonly collectionName?: string;
1619
+ readonly publicId?: string;
1620
+ };
1621
+ };
1622
+
1623
+ // @public (undocumented)
1624
+ type MountedPortal = {
1625
+ children: () => React_2.ReactChild | null;
1626
+ hasAnalyticsContext: boolean;
1627
+ hasIntlContext: boolean;
1628
+ };
1629
+
1630
+ // @public (undocumented)
1631
+ const name_2: string;
1632
+ export { name_2 as name }
1633
+
1634
+ // @public (undocumented)
1635
+ type NewMediaEvent = (state: MediaState, onStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
1636
+
1637
+ // @public (undocumented)
1638
+ interface NodeSelectionData {
1639
+ // (undocumented)
1640
+ anchor: number;
1641
+ // (undocumented)
1642
+ type: 'node';
1643
+ }
1644
+
1645
+ // @public (undocumented)
1646
+ type NormalTextLevel = 0;
1647
+
1648
+ // @public (undocumented)
1649
+ type OnEditorViewStateUpdated = (props: {
1650
+ readonly originalTransaction: Readonly<Transaction>;
1651
+ readonly transactions: Transaction[];
1652
+ readonly oldEditorState: Readonly<EditorState>;
1653
+ readonly newEditorState: Readonly<EditorState>;
1654
+ }) => void;
1655
+
1656
+ // @public (undocumented)
1657
+ export const openDatePicker: () => Command;
1658
+
1659
+ // @public (undocumented)
1660
+ function outdentList(inputMethod: InputMethod_2 | undefined, featureFlags: EditorFeatureFlags): Command;
1661
+
1662
+ export { PaletteColor }
1663
+
1664
+ // @public (undocumented)
1665
+ interface PanelPluginConfig {
1666
+ // (undocumented)
1667
+ allowCustomPanel?: boolean;
1668
+ // (undocumented)
1669
+ allowCustomPanelEdit?: boolean;
1670
+ }
1671
+
1672
+ // @public (undocumented)
1673
+ type PastePluginOptions = {
1674
+ cardOptions?: CardOptions;
1675
+ sanitizePrivateContent?: boolean;
1676
+ };
1677
+
1678
+ // @public (undocumented)
1679
+ class PickerFacade {
1680
+ constructor(pickerType: PickerType, config: PickerFacadeConfig, pickerConfig?: CustomMediaPicker | null | undefined, analyticsName?: string);
1681
+ // (undocumented)
1682
+ readonly config: PickerFacadeConfig;
1683
+ // (undocumented)
1684
+ destroy(): void;
1685
+ // (undocumented)
1686
+ erroredFiles: Set<string>;
1687
+ // (undocumented)
1688
+ handleMobileUploadEnd: (event: MobileUploadEndEventPayload) => void;
1689
+ // (undocumented)
1690
+ handleReady: (event: UploadEndEventPayload) => void;
1691
+ // (undocumented)
1692
+ handleUploadError: ({ error, fileId }: UploadErrorEventPayload) => void;
1693
+ // (undocumented)
1694
+ handleUploadPreviewUpdate: (event: UploadPreviewUpdateEventPayload) => void;
1695
+ // (undocumented)
1696
+ init(): Promise<PickerFacade>;
1697
+ // (undocumented)
1698
+ get mediaPicker(): CustomMediaPicker | undefined;
1699
+ // (undocumented)
1700
+ onDrag(cb: (state: 'enter' | 'leave') => any): void;
1701
+ // (undocumented)
1702
+ onNewMedia(cb: NewMediaEvent): void;
1703
+ // (undocumented)
1704
+ readonly pickerConfig?: CustomMediaPicker | null | undefined;
1705
+ // (undocumented)
1706
+ setUploadParams(params: UploadParams): void;
1707
+ // (undocumented)
1708
+ get type(): PickerType;
1709
+ }
1710
+
1711
+ // @public (undocumented)
1712
+ type PickerFacadeConfig = {
1713
+ mediaClientConfig: MediaClientConfig;
1714
+ errorReporter: ErrorReportingHandler;
1715
+ featureFlags?: MediaFeatureFlags_2;
1716
+ };
1717
+
1718
+ // @public (undocumented)
1719
+ type PickerType = 'clipboard' | 'customMediaPicker' | 'dropzone';
1720
+
1721
+ // @public (undocumented)
1722
+ interface PlaceholderPluginOptions {
1723
+ // (undocumented)
1724
+ placeholder?: string;
1725
+ // (undocumented)
1726
+ placeholderBracketHint?: string;
1727
+ }
1728
+
1729
+ // @public (undocumented)
1730
+ interface PlaceholderTextOptions {
1731
+ // (undocumented)
1732
+ allowInserting?: boolean;
1733
+ }
1734
+
1735
+ // @public (undocumented)
1736
+ export const PortalProvider: React_2.FC<WithIntlProps<BasePortalProviderProps>> & {
1737
+ WrappedComponent: React_2.ComponentType<BasePortalProviderProps>;
1738
+ };
1739
+
1740
+ // @public (undocumented)
1741
+ export class PortalProviderAPI extends EventDispatcher {
1742
+ constructor(intl: IntlShape, onAnalyticsEvent?: FireAnalyticsCallback, analyticsContext?: boolean, themeMode?: ThemeModes);
1743
+ // (undocumented)
1744
+ context: any;
1745
+ // (undocumented)
1746
+ forceUpdate({ intl, themeMode, }: {
1747
+ intl: IntlShape;
1748
+ themeMode: ThemeModes | undefined;
1749
+ }): void;
1750
+ // (undocumented)
1751
+ intl: IntlShape;
1752
+ // (undocumented)
1753
+ onAnalyticsEvent?: FireAnalyticsCallback;
1754
+ // (undocumented)
1755
+ portals: Map<HTMLElement, MountedPortal>;
1756
+ // (undocumented)
1757
+ remove(container: HTMLElement): void;
1758
+ // (undocumented)
1759
+ render(children: () => JSX.Element | React_2.ReactChild | null, container: HTMLElement, hasAnalyticsContext?: boolean, hasIntlContext?: boolean): void;
1760
+ // (undocumented)
1761
+ setContext: (context: any) => void;
1762
+ // (undocumented)
1763
+ themeMode?: ThemeModes;
1764
+ // (undocumented)
1765
+ useAnalyticsContext?: boolean;
1766
+ }
1767
+
1768
+ // @public (undocumented)
1769
+ export class PortalRenderer extends React_2.Component<{
1770
+ portalProviderAPI: PortalProviderAPI;
1771
+ }, PortalRendererState> {
1772
+ constructor(props: {
1773
+ portalProviderAPI: PortalProviderAPI;
1774
+ });
1775
+ // (undocumented)
1776
+ handleUpdate: (portals: Portals) => void;
1777
+ // (undocumented)
1778
+ render(): JSX.Element;
1779
+ }
1780
+
1781
+ // @public (undocumented)
1782
+ type PortalRendererState = {
1783
+ portals: Portals;
1784
+ };
1785
+
1786
+ // @public (undocumented)
1787
+ type Portals = Map<HTMLElement, React_2.ReactChild>;
1788
+
1789
+ // @public (undocumented)
1790
+ type Predicate = (state: EditorState, view?: EditorView) => boolean;
1791
+
1792
+ export { PresenceProvider }
1793
+
1794
+ export { PresenceResource }
1795
+
1796
+ // @public (undocumented)
1797
+ type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
1798
+
1799
+ // @public (undocumented)
1800
+ const processItems: (items: Array<QuickInsertHandler>, intl: IntlShape, extendedActions?: Record<string, Function>) => QuickInsertItem[];
1801
+
1802
+ // @public (undocumented)
1803
+ export const processQuickInsertItems: typeof processItems;
1804
+
1805
+ // @public (undocumented)
1806
+ interface Props {
1807
+ // (undocumented)
1808
+ children?: any;
1809
+ // (undocumented)
1810
+ isExpanded?: boolean;
1811
+ // (undocumented)
1812
+ onExpand?: () => void;
1813
+ // (undocumented)
1814
+ onFocus?: (e: React_2.FocusEvent<HTMLInputElement>) => void;
1815
+ // (undocumented)
1816
+ placeholder?: string;
1817
+ }
1818
+
1819
+ // @public (undocumented)
1820
+ interface Props_2 {
1821
+ // (undocumented)
1822
+ title?: string;
1823
+ // (undocumented)
1824
+ titlePosition?: PositionType;
1825
+ }
1826
+
1827
+ // @public (undocumented)
1828
+ interface Props_3 {
1829
+ // @deprecated (undocumented)
1830
+ labels?: string[];
1831
+ // @deprecated (undocumented)
1832
+ packageName?: string;
1833
+ // @deprecated (undocumented)
1834
+ packageVersion?: string;
1835
+ // (undocumented)
1836
+ popupsBoundariesElement?: HTMLElement;
1837
+ // (undocumented)
1838
+ popupsMountPoint?: HTMLElement;
1839
+ // (undocumented)
1840
+ popupsScrollableElement?: HTMLElement;
1841
+ // (undocumented)
1842
+ product?: EditorProduct;
1843
+ }
1844
+
1845
+ // @public (undocumented)
1846
+ type Props_4 = {
1847
+ visible: boolean;
1848
+ children?: React_2.ReactElement;
1849
+ };
1850
+
1851
+ // @public (undocumented)
1852
+ type Props_5 = {
1853
+ oldPluginState: TypeAheadPluginState;
1854
+ newPluginState: TypeAheadPluginState;
1855
+ };
1856
+
1857
+ // @public (undocumented)
1858
+ type ProsemirrorGetPosHandler = () => number;
1859
+
1860
+ export { QuickInsertActionInsert }
1861
+
1862
+ // @public (undocumented)
1863
+ type QuickInsertHandler = ((intl: IntlShape) => Array<QuickInsertItem>) | Array<QuickInsertItem>;
1864
+
1865
+ export { QuickInsertItem }
1866
+
1867
+ export { QuickInsertItemId }
1868
+
1869
+ // @public (undocumented)
1870
+ type QuickInsertOptions = boolean | {
1871
+ provider: Promise<QuickInsertProvider>;
1872
+ };
1873
+
1874
+ // @public (undocumented)
1875
+ export const quickInsertPluginKey: PluginKey<QuickInsertPluginState, any>;
1876
+
1877
+ // @public (undocumented)
1878
+ interface QuickInsertPluginOptions {
1879
+ // (undocumented)
1880
+ disableDefaultItems?: boolean;
1881
+ // (undocumented)
1882
+ elementBrowserHelpUrl?: string;
1883
+ // (undocumented)
1884
+ emptyStateHandler?: EmptyStateHandler;
1885
+ // (undocumented)
1886
+ enableElementBrowser?: boolean;
1887
+ // (undocumented)
1888
+ headless?: boolean;
1889
+ }
1890
+
1891
+ // @public (undocumented)
1892
+ export type QuickInsertPluginState = {
1893
+ isElementBrowserModalOpen: boolean;
1894
+ lazyDefaultItems: () => QuickInsertItem[];
1895
+ providedItems?: QuickInsertItem[];
1896
+ provider?: QuickInsertProvider;
1897
+ emptyStateHandler?: EmptyStateHandler;
1898
+ };
1899
+
1900
+ export { QuickInsertProvider }
1901
+
1902
+ // @public (undocumented)
1903
+ type ReactComponents = ReactElement<any> | ReactElement<any>[];
1904
+
1905
+ // @public (undocumented)
1906
+ export const ReactEditorView: FC<WithIntlProps<EditorViewProps & WrappedComponentProps<"intl">>> & {
1907
+ WrappedComponent: ComponentType<EditorViewProps & WrappedComponentProps<"intl">>;
1908
+ };
1909
+
1910
+ // @public (undocumented)
1911
+ class ReactEditorView_2<T = {}> extends React_2.Component<EditorViewProps & WrappedComponentProps & T, {}, EditorReactContext> {
1912
+ constructor(props: EditorViewProps & WrappedComponentProps & T, context: EditorReactContext);
1913
+ // (undocumented)
1914
+ blur: () => void;
1915
+ // (undocumented)
1916
+ componentDidMount(): void;
1917
+ componentWillUnmount(): void;
1918
+ // (undocumented)
1919
+ config: EditorConfig;
1920
+ // (undocumented)
1921
+ contentTransformer?: Transformer_2<string>;
1922
+ // (undocumented)
1923
+ static contextTypes: {
1924
+ getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
1925
+ };
1926
+ // (undocumented)
1927
+ createEditorState: (options: CreateEditorStateOptions) => EditorState<any>;
1928
+ // (undocumented)
1929
+ dispatch: Dispatch;
1930
+ // (undocumented)
1931
+ dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
1932
+ // (undocumented)
1933
+ editorRef: React_2.RefObject<HTMLDivElement>;
1934
+ // (undocumented)
1935
+ editorState: EditorState;
1936
+ // (undocumented)
1937
+ errorReporter: ErrorReporter;
1938
+ // (undocumented)
1939
+ eventDispatcher: EventDispatcher;
1940
+ // (undocumented)
1941
+ experienceStore?: ExperienceStore;
1942
+ // (undocumented)
1943
+ formatFullWidthAppearance: (appearance: EditorAppearance | undefined) => FULL_WIDTH_MODE;
1944
+ // (undocumented)
1945
+ getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
1946
+ // (undocumented)
1947
+ getEditorState: () => EditorState<any> | undefined;
1948
+ // (undocumented)
1949
+ getPlugins(preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>): EditorPlugin[];
1950
+ // (undocumented)
1951
+ handleAnalyticsEvent: FireAnalyticsCallback;
1952
+ // (undocumented)
1953
+ handleEditorViewRef: (node: HTMLDivElement) => void;
1954
+ // (undocumented)
1955
+ proseMirrorRenderedSeverity?: SEVERITY;
1956
+ // (undocumented)
1957
+ reconfigureState(props: EditorViewProps): void;
1958
+ // (undocumented)
1959
+ render(): JSX.Element;
1960
+ // (undocumented)
1961
+ resetEditorState: ({ doc, shouldScrollToBottom, }: {
1962
+ doc: string;
1963
+ shouldScrollToBottom: boolean;
1964
+ }) => void;
1965
+ // (undocumented)
1966
+ transactionTracker: TransactionTracker;
1967
+ // (undocumented)
1968
+ get transactionTracking(): TransactionTracking;
1969
+ // (undocumented)
1970
+ UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
1971
+ // (undocumented)
1972
+ validTransactionCount: number;
1973
+ // (undocumented)
1974
+ view?: EditorView;
1975
+ }
1976
+
1977
+ // @public (undocumented)
1978
+ interface RectData {
1979
+ // (undocumented)
1980
+ left: number;
1981
+ // (undocumented)
1982
+ top: number;
1983
+ }
1984
+
1985
+ // @public (undocumented)
1986
+ export const removeStatus: (showStatusPickerAt: number) => Command;
1987
+
1988
+ // @public (undocumented)
1989
+ type ScrollGutterPluginOptions = {
1990
+ getScrollElement?: (view: EditorView) => HTMLElement | null;
1991
+ allowCustomScrollHandler?: boolean;
1992
+ persistScrollGutter?: boolean;
1993
+ gutterSize?: number;
1994
+ };
1995
+
1996
+ // @public (undocumented)
1997
+ export type SelectionData = AllSelectionData | CellSelectionData | GapSelectionData | NodeSelectionData | TextSelectionData;
1998
+
1999
+ // @public (undocumented)
2000
+ export interface SelectionDataState {
2001
+ // (undocumented)
2002
+ markTypes: string[];
2003
+ // (undocumented)
2004
+ nodeTypes: string[];
2005
+ // (undocumented)
2006
+ rect: RectData;
2007
+ // (undocumented)
2008
+ selection: SelectionData;
2009
+ }
2010
+
2011
+ // @public (undocumented)
2012
+ export const selectionPluginKey: PluginKey<any, any>;
2013
+
2014
+ // @public (undocumented)
2015
+ interface SelectionPluginOptions extends LongPressSelectionPluginOptions {
2016
+ }
2017
+
2018
+ export { SelectOption }
2019
+
2020
+ // @public (undocumented)
2021
+ export function setBlockType(name: string): Command;
2022
+
2023
+ // @public (undocumented)
2024
+ export function setBlockTypeWithAnalytics(name: string, inputMethod: BlockTypeInputMethod): Command;
2025
+
2026
+ // @public (undocumented)
2027
+ export const setIsExpanded: (isExpanded: boolean) => Command_2;
2028
+
2029
+ // @public (undocumented)
2030
+ export const setKeyboardHeight: (keyboardHeight: number) => Command_2;
2031
+
2032
+ // @public (undocumented)
2033
+ export const setMobilePaddingTop: (paddingTop: number) => Command_2;
2034
+
2035
+ // @public (undocumented)
2036
+ export const setStatusPickerAt: (showStatusPickerAt: null | number) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
2037
+
2038
+ export { setTextSelection }
2039
+
2040
+ // @public (undocumented)
2041
+ interface SimpleEntry {
2042
+ // (undocumented)
2043
+ duration: number;
2044
+ // (undocumented)
2045
+ name: string;
2046
+ // (undocumented)
2047
+ startTime: number;
2048
+ }
2049
+
2050
+ // @public (undocumented)
2051
+ interface State {
2052
+ }
2053
+
2054
+ // @public (undocumented)
2055
+ interface State_2 {
2056
+ // (undocumented)
2057
+ jiraIssueCollectorScriptLoading: boolean;
2058
+ // (undocumented)
2059
+ showOptOutOption?: boolean;
2060
+ // (undocumented)
2061
+ target?: HTMLElement;
2062
+ }
2063
+
2064
+ // @public (undocumented)
2065
+ export const statusMessages: {
2066
+ placeholder: {
2067
+ id: string;
2068
+ defaultMessage: string;
2069
+ description: string;
2070
+ };
2071
+ editText: {
2072
+ id: string;
2073
+ defaultMessage: string;
2074
+ description: string;
2075
+ };
2076
+ editColor: {
2077
+ id: string;
2078
+ defaultMessage: string;
2079
+ description: string;
2080
+ };
2081
+ };
2082
+
2083
+ // @public (undocumented)
2084
+ export const statusPluginKey: PluginKey<StatusState, any>;
2085
+
2086
+ // @public (undocumented)
2087
+ export type StatusState = {
2088
+ isNew: boolean;
2089
+ showStatusPickerAt: null | number;
2090
+ };
2091
+
2092
+ // @public (undocumented)
2093
+ export type StatusType = {
2094
+ color: Color;
2095
+ text: string;
2096
+ localId?: string;
2097
+ };
2098
+
2099
+ // @public (undocumented)
2100
+ type SubscribeToToolbarAndPickerUpdates = (editorView: EditorView, cb: (args: SubscribeToToolbarAndPickerUpdatesCallbackArgs) => void) => () => void;
2101
+
2102
+ // @public (undocumented)
2103
+ export const subscribeToToolbarAndPickerUpdates: SubscribeToToolbarAndPickerUpdates;
2104
+
2105
+ // @public (undocumented)
2106
+ type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
2107
+ dateState: DatePluginState;
2108
+ statusState: StatusState;
2109
+ toolbarConfig: ConfigWithNodeInfo | null | undefined;
2110
+ };
2111
+
2112
+ // @public (undocumented)
2113
+ type SubscribeTypeAheadUpdates = (editorView: EditorView, cb: (props: Props_5) => void) => () => void;
2114
+
2115
+ // @public (undocumented)
2116
+ export const subscribeTypeAheadUpdates: SubscribeTypeAheadUpdates;
2117
+
2118
+ // @public (undocumented)
2119
+ export type TaskDecisionInputMethod = INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
2120
+
2121
+ // @public (undocumented)
2122
+ type TaskDecisionListType = 'decisionList' | 'taskList';
2123
+
2124
+ export { TeamMentionResource }
2125
+
2126
+ // @public (undocumented)
2127
+ type TextColorDefaultColor = {
2128
+ color: string;
2129
+ label: string;
2130
+ };
2131
+
2132
+ // @public (undocumented)
2133
+ interface TextColorPluginConfig {
2134
+ // (undocumented)
2135
+ defaultColor?: TextColorDefaultColor;
2136
+ }
2137
+
2138
+ // @public (undocumented)
2139
+ export const textColorPluginKey: PluginKey<TextColorPluginState, any>;
2140
+
2141
+ // @public (undocumented)
2142
+ export type TextColorPluginState = {
2143
+ palette: Array<PaletteColor>;
2144
+ defaultColor: string;
2145
+ disabled?: boolean;
2146
+ color: null | string;
2147
+ };
2148
+
2149
+ // @public (undocumented)
2150
+ export type TextFormattingInputMethodBasic = INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | TextFormattingInputMethodToolbar;
2151
+
2152
+ // @public (undocumented)
2153
+ export type TextFormattingInputMethodToolbar = INPUT_METHOD.TOOLBAR;
2154
+
2155
+ // @public (undocumented)
2156
+ interface TextFormattingOptions {
2157
+ // (undocumented)
2158
+ disableCode?: boolean;
2159
+ // (undocumented)
2160
+ disableSmartTextCompletion?: boolean;
2161
+ // (undocumented)
2162
+ disableSuperscriptAndSubscript?: boolean;
2163
+ // (undocumented)
2164
+ disableUnderline?: boolean;
2165
+ // (undocumented)
2166
+ responsiveToolbarMenu?: boolean;
2167
+ }
2168
+
2169
+ // @public (undocumented)
2170
+ export interface TextFormattingState {
2171
+ // (undocumented)
2172
+ codeActive?: boolean;
2173
+ // (undocumented)
2174
+ codeDisabled?: boolean;
2175
+ // (undocumented)
2176
+ codeHidden?: boolean;
2177
+ // (undocumented)
2178
+ emActive?: boolean;
2179
+ // (undocumented)
2180
+ emDisabled?: boolean;
2181
+ // (undocumented)
2182
+ emHidden?: boolean;
2183
+ // (undocumented)
2184
+ strikeActive?: boolean;
2185
+ // (undocumented)
2186
+ strikeDisabled?: boolean;
2187
+ // (undocumented)
2188
+ strikeHidden?: boolean;
2189
+ // (undocumented)
2190
+ strongActive?: boolean;
2191
+ // (undocumented)
2192
+ strongDisabled?: boolean;
2193
+ // (undocumented)
2194
+ strongHidden?: boolean;
2195
+ // (undocumented)
2196
+ subscriptActive?: boolean;
2197
+ // (undocumented)
2198
+ subscriptDisabled?: boolean;
2199
+ // (undocumented)
2200
+ subscriptHidden?: boolean;
2201
+ // (undocumented)
2202
+ superscriptActive?: boolean;
2203
+ // (undocumented)
2204
+ superscriptDisabled?: boolean;
2205
+ // (undocumented)
2206
+ superscriptHidden?: boolean;
2207
+ // (undocumented)
2208
+ underlineActive?: boolean;
2209
+ // (undocumented)
2210
+ underlineDisabled?: boolean;
2211
+ // (undocumented)
2212
+ underlineHidden?: boolean;
2213
+ }
2214
+
2215
+ // @public (undocumented)
2216
+ export const textFormattingStateKey: PluginKey<TextFormattingState, any>;
2217
+
2218
+ // @public (undocumented)
2219
+ interface TextSelectionData {
2220
+ // (undocumented)
2221
+ anchor: number;
2222
+ // (undocumented)
2223
+ head: number;
2224
+ // (undocumented)
2225
+ type: 'text';
2226
+ }
2227
+
2228
+ // @public (undocumented)
2229
+ function toggleBulletList(view: EditorView, inputMethod?: ListInputMethod): boolean;
2230
+
2231
+ // @public (undocumented)
2232
+ export const toggleCode: () => Command;
2233
+
2234
+ // @public (undocumented)
2235
+ export const toggleCodeWithAnalytics: ({ inputMethod, }: {
2236
+ inputMethod: TextFormattingInputMethodBasic;
2237
+ }) => Command;
2238
+
2239
+ // @public (undocumented)
2240
+ export const toggleEm: () => Command;
2241
+
2242
+ // @public (undocumented)
2243
+ export const toggleEmWithAnalytics: ({ inputMethod, }: {
2244
+ inputMethod: TextFormattingInputMethodBasic;
2245
+ }) => Command;
2246
+
2247
+ // @public (undocumented)
2248
+ function toggleOrderedList(view: EditorView, inputMethod?: ListInputMethod): boolean;
2249
+
2250
+ // @public (undocumented)
2251
+ export const toggleStrike: () => Command;
2252
+
2253
+ // @public (undocumented)
2254
+ export const toggleStrikeWithAnalytics: ({ inputMethod, }: {
2255
+ inputMethod: TextFormattingInputMethodBasic;
2256
+ }) => Command;
2257
+
2258
+ // @public (undocumented)
2259
+ export const toggleStrong: () => Command;
2260
+
2261
+ // @public (undocumented)
2262
+ export const toggleStrongWithAnalytics: ({ inputMethod, }: {
2263
+ inputMethod: TextFormattingInputMethodBasic;
2264
+ }) => Command;
2265
+
2266
+ // @public (undocumented)
2267
+ export const toggleSubscript: () => Command;
2268
+
2269
+ // @public (undocumented)
2270
+ export const toggleSubscriptWithAnalytics: ({ inputMethod, }: {
2271
+ inputMethod: TextFormattingInputMethodBasic;
2272
+ }) => Command;
2273
+
2274
+ // @public (undocumented)
2275
+ export const toggleSuperscript: () => Command;
2276
+
2277
+ // @public (undocumented)
2278
+ export const toggleSuperscriptWithAnalytics: ({ inputMethod, }: {
2279
+ inputMethod: TextFormattingInputMethodBasic;
2280
+ }) => Command;
2281
+
2282
+ // @public (undocumented)
2283
+ export const toggleUnderline: () => Command;
2284
+
2285
+ // @public (undocumented)
2286
+ export const toggleUnderlineWithAnalytics: ({ inputMethod, }: {
2287
+ inputMethod: TextFormattingInputMethodBasic;
2288
+ }) => Command;
2289
+
2290
+ // @public (undocumented)
2291
+ export class ToolbarFeedback extends PureComponent<Props_3, State_2> {
2292
+ constructor(props: Props_3);
2293
+ // (undocumented)
2294
+ static contextTypes: {
2295
+ editorActions: PropTypes.Validator<object>;
2296
+ };
2297
+ // (undocumented)
2298
+ render(): jsx.JSX.Element | null;
2299
+ // (undocumented)
2300
+ showJiraCollectorDialogCallback?: () => void;
2301
+ // (undocumented)
2302
+ state: State_2;
2303
+ }
2304
+
2305
+ // @public (undocumented)
2306
+ export const ToolbarHelp: React_2.FC<WithIntlProps<Props_2 & WrappedComponentProps<"intl">>> & {
2307
+ WrappedComponent: React_2.ComponentType<Props_2 & WrappedComponentProps<"intl">>;
2308
+ };
2309
+
2310
+ // @public (undocumented)
2311
+ class TransactionTracker {
2312
+ // (undocumented)
2313
+ addMeasureListener(listener: MeasureListener): void;
2314
+ // (undocumented)
2315
+ bumpDispatchCounter: (options: TransactionTracking) => number;
2316
+ // (undocumented)
2317
+ getMeasureHelpers: (options: TransactionTracking) => MeasureHelpers;
2318
+ // (undocumented)
2319
+ removeMeasureListener(listener: MeasureListener): void;
2320
+ // (undocumented)
2321
+ shouldTrackTransaction(options: TransactionTracking): boolean;
2322
+ }
2323
+
2324
+ // @public (undocumented)
2325
+ type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
2326
+
2327
+ export { TypeAheadItem }
2328
+
2329
+ // @public (undocumented)
2330
+ export const typeAheadPluginKey: PluginKey<TypeAheadPluginState, any>;
2331
+
2332
+ // @public (undocumented)
2333
+ type TypeAheadPluginOptions = {
2334
+ isMobile?: boolean;
2335
+ createAnalyticsEvent?: CreateUIAnalyticsEvent_2;
2336
+ useBetterTypeaheadNavigation?: boolean;
2337
+ };
2338
+
2339
+ // @public (undocumented)
2340
+ export type TypeAheadPluginState = {
2341
+ decorationSet: DecorationSet;
2342
+ decorationElement: HTMLElement | null;
2343
+ typeAheadHandlers: Array<TypeAheadHandler>;
2344
+ query: string;
2345
+ items: Array<TypeAheadItem>;
2346
+ triggerHandler?: TypeAheadHandler;
2347
+ selectedIndex: number;
2348
+ stats: TypeAheadStatsSerializable | null;
2349
+ inputMethod: TypeAheadInputMethod | null;
2350
+ };
2351
+
2352
+ // @public (undocumented)
2353
+ interface TypeAheadStatsSerializable extends TypeAheadStats {
2354
+ // (undocumented)
2355
+ serialize: () => TypeAheadStats;
2356
+ }
2357
+
2358
+ // @public (undocumented)
2359
+ export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve';
2360
+
2361
+ // @public (undocumented)
2362
+ export function updateLink(href: string, text: string, pos: number, to?: number): Command;
2363
+
2364
+ // @public (undocumented)
2365
+ export const updateStatus: (status?: StatusType) => Command;
2366
+
2367
+ // @public (undocumented)
2368
+ export const updateStatusWithAnalytics: (inputMethod: InsertBlockInputMethodToolbar, status?: StatusType) => Command;
2369
+
2370
+ // @public (undocumented)
2371
+ type UseStickyToolbarType = RefObject<HTMLElement> | boolean | {
2372
+ offsetTop: number;
2373
+ };
2374
+
2375
+ // @public (undocumented)
2376
+ export const version: string;
2377
+
2378
+ // @public (undocumented)
2379
+ type VisibilityEvent = 'setvisibility';
2380
+
2381
+ // @public (undocumented)
2382
+ export class WithEditorActions extends React_2.Component<WithEditorActionsProps, any> {
2383
+ // (undocumented)
2384
+ componentDidMount(): void;
2385
+ // (undocumented)
2386
+ componentWillUnmount(): void;
2387
+ // (undocumented)
2388
+ context: {
2389
+ editorActions: EditorActions;
2390
+ };
2391
+ // (undocumented)
2392
+ static contextTypes: {
2393
+ editorActions: PropTypes.Validator<object>;
2394
+ };
2395
+ // (undocumented)
2396
+ render(): React_2.ReactElement<any, React_2.JSXElementConstructor<any> | string> | null;
2397
+ }
2398
+
2399
+ // @public (undocumented)
2400
+ interface WithEditorActionsProps {
2401
+ // (undocumented)
2402
+ render(actions: EditorActions): React_2.ReactElement<any> | null;
2403
+ }
2404
+
2405
+ // @public (undocumented)
2406
+ export class WithHelpTrigger extends React_2.Component<{
2407
+ render: (openHelp: () => void) => React_2.ReactNode;
2408
+ }, any> {
2409
+ // (undocumented)
2410
+ static contextTypes: {
2411
+ editorActions: PropTypes.Validator<object>;
2412
+ };
2413
+ // (undocumented)
2414
+ openHelp: () => void;
2415
+ // (undocumented)
2416
+ render(): React_2.ReactNode;
2417
+ }
2418
+
2419
+ export { WithPluginState }
2420
+
2421
+ // (No @packageDocumentation comment for this package)
2422
+
2423
+ ```