@atlaskit/editor-core 187.48.8 → 188.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.
package/report.api.md CHANGED
@@ -18,166 +18,81 @@
18
18
  /// <reference types="node" />
19
19
  /// <reference types="react" />
20
20
 
21
- import { AbstractMentionResource } from '@atlaskit/mention/resource';
22
21
  import { ACTION } from '@atlaskit/editor-common/analytics';
23
22
  import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
24
23
  import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
25
24
  import type { ActivityProvider } from '@atlaskit/activity-provider';
26
- import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
27
25
  import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
28
26
  import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
29
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
30
- import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
31
27
  import type { AnnotationTypes } from '@atlaskit/adf-schema';
32
- import type { BasePluginOptions } from '@atlaskit/editor-plugin-base';
33
28
  import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type';
34
29
  import type { CardOptions } from '@atlaskit/editor-common/card';
35
30
  import { CardProvider } from '@atlaskit/editor-common/provider-factory';
36
- import { clearEditorContent } from '@atlaskit/editor-common/commands';
37
31
  import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
38
- import type { Color } from '@atlaskit/status/element';
39
- import { Command as Command_2 } from '@atlaskit/editor-common/types';
40
- import { ComponentType } from 'react';
41
- import type { compositionPlugin } from '@atlaskit/editor-plugin-composition';
42
- import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
43
32
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
44
33
  import type { ContextUpdateHandler } from '@atlaskit/editor-common/types';
45
- import { createTable } from '@atlaskit/editor-plugin-table/commands';
46
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
47
- import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
48
- import type { DecisionItemDefinition } from '@atlaskit/adf-schema';
49
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
50
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
51
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
52
- import { dedupe } from '@atlaskit/editor-common/utils';
53
- import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
54
- import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
55
- import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
56
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
57
34
  import type { EditorActionsOptions } from '@atlaskit/editor-common/types';
58
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
59
35
  import { EditorAppearance } from '@atlaskit/editor-common/types';
60
- import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
61
- import { FeatureFlags as EditorFeatureFlags } from '@atlaskit/editor-common/types';
62
36
  import { EditorPlugin } from '@atlaskit/editor-common/types';
63
- import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
64
- import { EditorReactContext } from '@atlaskit/editor-common/types';
65
37
  import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
66
- import { EditorState } from '@atlaskit/editor-prosemirror/state';
67
- import { EditorView } from '@atlaskit/editor-prosemirror/view';
38
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
39
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
68
40
  import { EmojiResource } from '@atlaskit/emoji/resource';
69
41
  import { EmptyStateHandler } from '@atlaskit/editor-common/types';
70
- import type { ErrorReporter } from '@atlaskit/editor-common/utils';
71
42
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
72
43
  import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
73
44
  import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
74
45
  import { EventEmitter as EventEmitter_2 } from 'events';
75
- import { ExperienceStore } from '@atlaskit/editor-common/ufo';
76
46
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
77
47
  import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
78
48
  import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
79
- import { FC } from 'react';
80
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
81
- import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
82
- import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
83
- import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
84
- import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
85
- import { GapCursorSelection } from '@atlaskit/editor-common/selection';
86
- import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
49
+ import type { FeatureFlags } from '@atlaskit/editor-common/types';
87
50
  import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
88
- import type { GridPlugin } from '@atlaskit/editor-plugin-grid';
89
- import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
90
- import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
91
51
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
92
- import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
93
52
  import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
94
53
  import { jsx } from '@emotion/react';
95
- import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
96
54
  import type { LinkingOptions } from '@atlaskit/editor-common/types';
97
55
  import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
98
56
  import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
99
57
  import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
100
- import { MarkConfig } from '@atlaskit/editor-common/types';
101
- import type { MediaClientConfig } from '@atlaskit/media-core';
102
58
  import type { MediaFeatureFlags } from '@atlaskit/media-common';
103
- import type { MediaFeatureFlags as MediaFeatureFlags_2 } from '@atlaskit/media-common/mediaFeatureFlags';
104
- import type { MediaFile } from '@atlaskit/media-picker/types';
105
- import type { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
106
- import type { MentionDescription } from '@atlaskit/mention';
59
+ import { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
107
60
  import { MentionProvider } from '@atlaskit/mention/resource';
108
- import type { MentionProvider as MentionProvider_2 } from '@atlaskit/mention';
109
61
  import { MentionResource } from '@atlaskit/mention/resource';
110
62
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
111
- import { default as messages } from '@atlaskit/editor-common/messages';
112
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
113
63
  import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
114
- import { NodeConfig } from '@atlaskit/editor-common/types';
115
- import type { NodeType } from '@atlaskit/editor-prosemirror/model';
116
- import type { NodeView } from '@atlaskit/editor-prosemirror/view';
117
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
118
- import { PaletteColor } from '@atlaskit/editor-common/ui-color';
119
64
  import { PerformanceTracking } from '@atlaskit/editor-common/types';
120
- import type { PlaceholderPluginOptions } from '@atlaskit/editor-plugin-placeholder';
121
65
  import type { PluginConfig } from '@atlaskit/editor-plugin-table/types';
122
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
123
- import { PMPlugin } from '@atlaskit/editor-common/types';
124
66
  import { PortalProvider } from '@atlaskit/editor-common/portal-provider';
125
67
  import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
126
68
  import { PortalRenderer } from '@atlaskit/editor-common/portal-provider';
127
69
  import type { PositionType } from '@atlaskit/tooltip/types';
128
70
  import { PresenceProvider } from '@atlaskit/mention/resource';
129
- import { PresenceResource } from '@atlaskit/mention/resource';
130
71
  import PropTypes from 'prop-types';
131
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
132
72
  import type { Providers } from '@atlaskit/editor-common/provider-factory';
133
- import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
134
73
  import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
135
74
  import type { QuickInsertOptions } from '@atlaskit/editor-common/types';
136
- import type { QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
137
75
  import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
138
76
  import { default as React_2 } from 'react';
139
77
  import type { ReactElement } from 'react';
140
- import type { ReactHookFactory } from '@atlaskit/editor-common/types';
141
78
  import type { ReplaceRawValue } from '@atlaskit/editor-common/types';
142
79
  import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
143
- import type { RichMediaLayout } from '@atlaskit/adf-schema';
144
80
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
145
81
  import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
146
- import type { SelectionPluginOptions } from '@atlaskit/editor-common/selection';
147
- import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
148
- import { setKeyboardHeight } from '@atlaskit/editor-plugin-base';
149
82
  import { setTextSelection } from '@atlaskit/editor-common/utils';
150
- import type { SEVERITY } from '@atlaskit/editor-common/utils';
151
83
  import type { TaskDecisionProvider } from '@atlaskit/task-decision';
152
- import type { TaskItemDefinition } from '@atlaskit/adf-schema';
153
84
  import { TeamMentionResource } from '@atlaskit/mention/team-resource';
154
- import { InputMethodBasic as TextFormattingInputMethodBasic } from '@atlaskit/editor-common/types';
155
- import { InputMethodToolbar as TextFormattingInputMethodToolbar } from '@atlaskit/editor-common/types';
156
85
  import type { TextFormattingOptions } from '@atlaskit/editor-common/types';
157
86
  import { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
158
87
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
159
- import { TransactionTracking } from '@atlaskit/editor-common/types';
160
88
  import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
161
- import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
162
- import type { TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
163
89
  import { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
164
- import type { TypeAheadItem as TypeAheadItem_2 } from '@atlaskit/editor-common/types';
165
- import type { TypeAheadPluginOptions } from '@atlaskit/editor-plugin-type-ahead';
166
- import type { TypeAheadStats } from '@atlaskit/editor-common/types';
167
90
  import { UIComponentFactory } from '@atlaskit/editor-common/types';
168
- import type { UploadEndEventPayload } from '@atlaskit/media-picker/types';
169
- import type { UploadErrorEventPayload } from '@atlaskit/media-picker/types';
170
91
  import type { UploadParams } from '@atlaskit/media-picker/types';
171
- import type { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
172
92
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
173
93
  import type { WeekDay } from '@atlaskit/calendar/types';
174
- import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
175
- import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
176
94
  import { WithIntlProps } from 'react-intl-next';
177
- import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
178
- import { WrappedComponentProps } from 'react-intl-next';
179
-
180
- export { AbstractMentionResource };
95
+ import type { WrappedComponentProps } from 'react-intl-next';
181
96
 
182
97
  export { ACTION };
183
98
 
@@ -185,28 +100,6 @@ export { ACTION_SUBJECT };
185
100
 
186
101
  export { ACTION_SUBJECT_ID };
187
102
 
188
- // @public (undocumented)
189
- type AddItemAttrs =
190
- | Partial<DecisionItemDefinition['attrs']>
191
- | Partial<TaskItemDefinition['attrs']>;
192
-
193
- // @public (undocumented)
194
- type AddItemTransactionCreator = (opts: {
195
- state: EditorState;
196
- tr: Transaction;
197
- list: NodeType;
198
- item: NodeType;
199
- listLocalId: string;
200
- itemLocalId: string;
201
- itemAttrs?: AddItemAttrs;
202
- }) => Transaction | null;
203
-
204
- // @public (undocumented)
205
- interface AllSelectionData {
206
- // (undocumented)
207
- type: 'all';
208
- }
209
-
210
103
  export { AnalyticsEventPayload };
211
104
 
212
105
  // @public (undocumented)
@@ -258,9 +151,6 @@ export class AnnotationUpdateEmitter extends EventEmitter_2 {
258
151
  on(event: UpdateEvent, listener: (annotationId: string) => void): this;
259
152
  }
260
153
 
261
- // @public (undocumented)
262
- export class BaseReactEditorView<T = {}> extends ReactEditorView_2<T> {}
263
-
264
154
  // @public (undocumented)
265
155
  type BeforeAndAfterToolbarComponents = {
266
156
  before: ReactComponents;
@@ -269,40 +159,6 @@ type BeforeAndAfterToolbarComponents = {
269
159
 
270
160
  export { CardProvider };
271
161
 
272
- // @public (undocumented)
273
- interface CellSelectionData {
274
- // (undocumented)
275
- anchor: number;
276
- // (undocumented)
277
- head: number;
278
- // (undocumented)
279
- type: 'cell';
280
- }
281
-
282
- // @public (undocumented)
283
- export const changeColor: (color: string) => Command;
284
-
285
- export { clearEditorContent };
286
-
287
- // @public (undocumented)
288
- type CloseOptions = {
289
- insertCurrentQueryAsRawText: boolean;
290
- attachCommand?: Command_2;
291
- };
292
-
293
- // @public (undocumented)
294
- enum closingMethods {
295
- // (undocumented)
296
- ArrowLeft = 'arrowLeft',
297
- // (undocumented)
298
- ArrowRight = 'arrowRight',
299
- }
300
-
301
- // @public (undocumented)
302
- type ClosingPayload = {
303
- closingMethod: closingMethods;
304
- };
305
-
306
162
  // @public (undocumented)
307
163
  interface CodeBlockOptions extends LongPressSelectionPluginOptions {
308
164
  // (undocumented)
@@ -313,25 +169,6 @@ interface CodeBlockOptions extends LongPressSelectionPluginOptions {
313
169
  appearance?: EditorAppearance | undefined;
314
170
  }
315
171
 
316
- // @public (undocumented)
317
- export type CodeBlockPlugin = typeof codeBlockPlugin;
318
-
319
- // @public (undocumented)
320
- const codeBlockPlugin: NextEditorPlugin<
321
- 'codeBlock',
322
- {
323
- pluginConfiguration: CodeBlockOptions;
324
- dependencies: [
325
- typeof decorationsPlugin,
326
- typeof compositionPlugin,
327
- OptionalPlugin<typeof analyticsPlugin>,
328
- ];
329
- actions: {
330
- insertCodeBlock: (inputMethod: INPUT_METHOD) => Command_2;
331
- };
332
- }
333
- >;
334
-
335
172
  // @public (undocumented)
336
173
  export class CollapsedEditor extends React_2.Component<Props, State> {
337
174
  // (undocumented)
@@ -358,93 +195,11 @@ export type Command = (
358
195
  // @public (undocumented)
359
196
  export type CommandDispatch = (tr: Transaction) => void;
360
197
 
361
- // @public (undocumented)
362
- export const commitStatusPicker: (
363
- closingPayload?: ClosingPayload,
364
- ) => (editorView: EditorView) => void;
365
-
366
198
  // @public (undocumented)
367
199
  export function ContextPanel(props: Props_4): jsx.JSX.Element;
368
200
 
369
201
  // @public (undocumented)
370
- interface CreateEditorStateOptions {
371
- // (undocumented)
372
- context: EditorReactContext;
373
- // (undocumented)
374
- doc?: Object | Node_2 | string;
375
- // (undocumented)
376
- props: EditorViewProps;
377
- // (undocumented)
378
- resetting?: boolean;
379
- // (undocumented)
380
- selectionAtStart?: boolean;
381
- }
382
-
383
- export { createTable };
384
-
385
- // @public (undocumented)
386
- export const createTypeAheadTools: (editorView: EditorView) => {
387
- isOpen: () => TypeAheadHandler | false;
388
- currentQuery: () => string | undefined;
389
- close: (options?: CloseOptions) => boolean;
390
- openMention: (inputMethod: TypeAheadInputMethod) => boolean;
391
- searchMention: (query?: string) => {
392
- type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
393
- result: () => Promise<TypeAheadItem[] | undefined>;
394
- close: (options?: CloseOptions) => boolean;
395
- insert: ({
396
- index,
397
- mode,
398
- }: {
399
- index: number;
400
- mode?: SelectItemMode | undefined;
401
- }) => Promise<void>;
402
- };
403
- openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
404
- searchQuickInsert: (query?: string) => {
405
- type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
406
- result: () => Promise<TypeAheadItem[] | undefined>;
407
- close: (options?: CloseOptions) => boolean;
408
- insert: ({
409
- index,
410
- mode,
411
- }: {
412
- index: number;
413
- mode?: SelectItemMode | undefined;
414
- }) => Promise<void>;
415
- };
416
- openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
417
- searchEmoji: (query?: string) => {
418
- type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
419
- result: () => Promise<TypeAheadItem[] | undefined>;
420
- close: (options?: CloseOptions) => boolean;
421
- insert: ({
422
- index,
423
- mode,
424
- }: {
425
- index: number;
426
- mode?: SelectItemMode | undefined;
427
- }) => Promise<void>;
428
- };
429
- insertItemMention: ({
430
- contentItem,
431
- query,
432
- sourceListItem,
433
- }: InsertItemProps) => boolean;
434
- insertItemEmoji: ({
435
- contentItem,
436
- query,
437
- sourceListItem,
438
- }: InsertItemProps) => boolean;
439
- insertItemQuickInsert: ({
440
- contentItem,
441
- query,
442
- sourceListItem,
443
- }: InsertItemProps) => boolean;
444
- };
445
-
446
- // @public (undocumented)
447
- export interface CustomMediaPicker {
202
+ interface CustomMediaPicker {
448
203
  // (undocumented)
449
204
  destroy(): void;
450
205
  // (undocumented)
@@ -457,72 +212,12 @@ export interface CustomMediaPicker {
457
212
  setUploadParams(uploadParams: UploadParams): void;
458
213
  }
459
214
 
460
- export { darkModeStatusColorPalette };
461
-
462
- // @public (undocumented)
463
- export const dateMessages: {
464
- editText: {
465
- id: string;
466
- defaultMessage: string;
467
- description: string;
468
- };
469
- };
470
-
471
215
  // @public (undocumented)
472
216
  interface DatePluginConfig {
473
217
  // (undocumented)
474
218
  weekStartDay?: WeekDay;
475
219
  }
476
220
 
477
- // @public (undocumented)
478
- export const datePluginKey: PluginKey<DatePluginState>;
479
-
480
- // @public (undocumented)
481
- export type DatePluginState = {
482
- isQuickInsertAction?: boolean;
483
- isNew: boolean;
484
- showDatePickerAt: null | number;
485
- isDateEmpty: boolean;
486
- focusDateInput: boolean;
487
- };
488
-
489
- // @public
490
- export function dateToDateType(date: Date): DateType;
491
-
492
- // @public (undocumented)
493
- type DateType = {
494
- year: number;
495
- month: number;
496
- day?: number;
497
- };
498
-
499
- export { dedupe };
500
-
501
- export { DEFAULT_BORDER_COLOR };
502
-
503
- // @public (undocumented)
504
- type DefaultPresetPluginOptions = {
505
- paste: PastePluginOptions;
506
- base?: BasePluginOptions;
507
- blockType?: BlockTypePluginOptions;
508
- placeholder?: PlaceholderPluginOptions;
509
- textFormatting?: TextFormattingOptions;
510
- submitEditor?: EditorProps['onSave'];
511
- annotationProviders?: AnnotationProviders;
512
- quickInsert?: QuickInsertPluginOptions;
513
- codeBlock?: CodeBlockOptions;
514
- selection?: SelectionPluginOptions;
515
- cardOptions?: CardOptions;
516
- hyperlinkOptions?: HyperlinkPluginOptions;
517
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
518
- typeAhead?: TypeAheadPluginOptions;
519
- allowAnalyticsGASV3?: boolean;
520
- performanceTracking?: EditorProps['performanceTracking'];
521
- };
522
-
523
- // @public
524
- export const deleteDate: () => Command;
525
-
526
221
  // @public (undocumented)
527
222
  export class Editor extends React_2.Component<EditorProps> {
528
223
  constructor(props: EditorProps);
@@ -571,7 +266,7 @@ export class EditorActions<T = any> implements EditorActionsOptions<T> {
571
266
  editorView: EditorView,
572
267
  eventDispatcher: EventDispatcher,
573
268
  contentTransformer?: Transformer_2<T>,
574
- getFeatureFlags?: () => EditorFeatureFlags,
269
+ getFeatureFlags?: () => FeatureFlags,
575
270
  ): void;
576
271
  // (undocumented)
577
272
  _privateSubscribe(cb: ContextUpdateHandler): void;
@@ -661,29 +356,6 @@ interface EditorBaseProps {
661
356
  useStickyToolbar?: UseStickyToolbarType;
662
357
  }
663
358
 
664
- // @public (undocumented)
665
- interface EditorConfig {
666
- // (undocumented)
667
- contentComponents: UIComponentFactory[];
668
- // (undocumented)
669
- marks: MarkConfig[];
670
- // (undocumented)
671
- nodes: NodeConfig[];
672
- // (undocumented)
673
- onEditorViewStateUpdatedCallbacks: Array<{
674
- pluginName: string;
675
- callback: (props: EditorViewStateUpdatedCallbackProps) => void;
676
- }>;
677
- // (undocumented)
678
- pluginHooks: ReactHookFactory[];
679
- // (undocumented)
680
- pmPlugins: Array<PMPlugin>;
681
- // (undocumented)
682
- primaryToolbarComponents: ToolbarUIComponentFactory[];
683
- // (undocumented)
684
- secondaryToolbarComponents: UIComponentFactory[];
685
- }
686
-
687
359
  // @public (undocumented)
688
360
  export class EditorContext extends React_2.Component<EditorContextProps, {}> {
689
361
  constructor(props: EditorContextProps);
@@ -704,8 +376,6 @@ type EditorContextProps = {
704
376
  editorActions?: EditorActions;
705
377
  };
706
378
 
707
- export { EditorFeatureFlags };
708
-
709
379
  // @public (undocumented)
710
380
  export interface EditorInstance {
711
381
  // (undocumented)
@@ -729,15 +399,6 @@ export interface EditorInstance {
729
399
  secondaryToolbarComponents: UIComponentFactory[];
730
400
  }
731
401
 
732
- // @public (undocumented)
733
- interface EditorNextProps
734
- extends EditorBaseProps,
735
- EditorSharedPropsWithPlugins,
736
- EditorProviderProps {
737
- // (undocumented)
738
- preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
739
- }
740
-
741
402
  // @public (undocumented)
742
403
  type EditorOnChangeHandler = (
743
404
  editorView: EditorView,
@@ -844,16 +505,6 @@ interface EditorPluginFeatureProps {
844
505
  waitForMediaUpload?: boolean;
845
506
  }
846
507
 
847
- // @public (undocumented)
848
- interface EditorPresetProps {
849
- // (undocumented)
850
- excludes?: Set<string>;
851
- // (undocumented)
852
- experimental?: Array<string>;
853
- // (undocumented)
854
- featureFlags?: EditorFeatureFlags;
855
- }
856
-
857
508
  // @public (undocumented)
858
509
  type EditorProduct = 'bitbucket' | 'confluence' | 'jira' | 'stride' | undefined;
859
510
 
@@ -915,64 +566,10 @@ interface EditorSharedPropsWithPlugins {
915
566
  sanitizePrivateContent?: boolean;
916
567
  }
917
568
 
918
- // @public (undocumented)
919
- interface EditorViewProps {
920
- // (undocumented)
921
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
922
- // (undocumented)
923
- disabled?: boolean;
924
- // (undocumented)
925
- editorProps: EditorNextProps | EditorProps;
926
- // (undocumented)
927
- experienceStore?: ExperienceStore;
928
- // (undocumented)
929
- onEditorCreated: (instance: {
930
- view: EditorView;
931
- config: EditorConfig;
932
- eventDispatcher: EventDispatcher;
933
- transformer?: Transformer_2<string>;
934
- }) => void;
935
- // (undocumented)
936
- onEditorDestroyed: (instance: {
937
- view: EditorView;
938
- config: EditorConfig;
939
- eventDispatcher: EventDispatcher;
940
- transformer?: Transformer_2<string>;
941
- }) => void;
942
- // (undocumented)
943
- portalProviderAPI: PortalProviderAPI;
944
- // (undocumented)
945
- preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
946
- // (undocumented)
947
- providerFactory: ProviderFactory;
948
- // (undocumented)
949
- render?: (props: {
950
- editor: JSX.Element;
951
- view?: EditorView;
952
- config: EditorConfig;
953
- eventDispatcher: EventDispatcher;
954
- transformer?: Transformer_2<string>;
955
- dispatchAnalyticsEvent: DispatchAnalyticsEvent;
956
- editorRef: React_2.RefObject<HTMLDivElement>;
957
- }) => JSX.Element;
958
- // (undocumented)
959
- setEditorApi?: SetEditorAPI;
960
- }
961
-
962
- // @public (undocumented)
963
- type EditorViewStateUpdatedCallbackProps = {
964
- readonly originalTransaction: Readonly<Transaction>;
965
- readonly transactions: readonly Transaction[];
966
- readonly oldEditorState: Readonly<EditorState>;
967
- readonly newEditorState: Readonly<EditorState>;
968
- };
969
-
970
569
  export { EmojiResource };
971
570
 
972
571
  export { EVENT_TYPE };
973
572
 
974
- export { EventDispatcher };
975
-
976
573
  // @public (undocumented)
977
574
  interface ExtensionConfig {
978
575
  // (undocumented)
@@ -1014,44 +611,9 @@ type FindReplaceOptions = {
1014
611
  allowMatchCase?: boolean;
1015
612
  };
1016
613
 
1017
- export { GapCursorSelection };
1018
-
1019
- export { GapCursorSide };
1020
-
1021
- // @public (undocumented)
1022
- interface GapSelectionData {
1023
- // (undocumented)
1024
- pos: number;
1025
- // (undocumented)
1026
- type: 'gapcursor';
1027
- }
1028
-
1029
- // @public (undocumented)
1030
- export function getDefaultPresetOptionsFromEditorProps(
1031
- props: EditorProps,
1032
- createAnalyticsEvent?: CreateUIAnalyticsEvent,
1033
- ): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
1034
-
1035
614
  // @public (undocumented)
1036
615
  export function getNodesCount(node: Node_2): Record<string, number>;
1037
616
 
1038
- // @public (undocumented)
1039
- type getPosHandler = getPosHandlerNode;
1040
-
1041
- // @public (undocumented)
1042
- type getPosHandlerNode = () => number | undefined;
1043
-
1044
- // @public
1045
- export const historyPluginKey: PluginKey<HistoryPluginState>;
1046
-
1047
- // @public (undocumented)
1048
- export interface HistoryPluginState {
1049
- // (undocumented)
1050
- canRedo: boolean;
1051
- // (undocumented)
1052
- canUndo: boolean;
1053
- }
1054
-
1055
617
  // @public (undocumented)
1056
618
  export type InlineCommentAnnotationProvider = AnnotationTypeProvider<
1057
619
  AnnotationTypes.INLINE_COMMENT,
@@ -1082,53 +644,6 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
1082
644
 
1083
645
  export { INPUT_METHOD };
1084
646
 
1085
- // @public (undocumented)
1086
- export type InsertBlockInputMethodToolbar =
1087
- | INPUT_METHOD.INSERT_MENU
1088
- | INPUT_METHOD.TOOLBAR;
1089
-
1090
- // @public (undocumented)
1091
- export const insertDate: (
1092
- date?: DateType,
1093
- inputMethod?: InsertBlockInputMethodToolbar,
1094
- commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER,
1095
- enterPressed?: boolean,
1096
- ) => Command;
1097
-
1098
- // @public (undocumented)
1099
- export const insertExpand: Command;
1100
-
1101
- // @public (undocumented)
1102
- type InsertItemProps = {
1103
- contentItem: TypeAheadItem;
1104
- query: string;
1105
- sourceListItem: TypeAheadItem[];
1106
- };
1107
-
1108
- // @public (undocumented)
1109
- export const insertMediaSingleNode: (
1110
- view: EditorView,
1111
- mediaState: MediaState,
1112
- inputMethod?: InputMethodInsertMedia,
1113
- collection?: string,
1114
- alignLeftOnInsert?: boolean,
1115
- newInsertionBehaviour?: boolean,
1116
- widthPluginState?: WidthPluginState | undefined,
1117
- editorAnalyticsAPI?: EditorAnalyticsAPI | undefined,
1118
- ) => boolean;
1119
-
1120
- // @public (undocumented)
1121
- export const insertTaskDecisionCommand: (
1122
- listType: TaskDecisionListType,
1123
- inputMethod?:
1124
- | INPUT_METHOD.FORMATTING
1125
- | INPUT_METHOD.QUICK_INSERT
1126
- | InsertBlockInputMethodToolbar,
1127
- addItem?: AddItemTransactionCreator,
1128
- listLocalId?: string,
1129
- itemLocalId?: string,
1130
- ) => Command;
1131
-
1132
647
  // @public (undocumented)
1133
648
  interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
1134
649
  // (undocumented)
@@ -1139,8 +654,6 @@ interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
1139
654
  UNSAFE_allowSingleColumnLayout?: boolean;
1140
655
  }
1141
656
 
1142
- export { lightModeStatusColorPalette };
1143
-
1144
657
  // @public (undocumented)
1145
658
  type Listener = (data: any) => void;
1146
659
 
@@ -1148,20 +661,6 @@ export { MacroAttributes };
1148
661
 
1149
662
  export { MacroProvider };
1150
663
 
1151
- // @public (undocumented)
1152
- interface MeasureHelpers {
1153
- // (undocumented)
1154
- startMeasure: (measureName: string) => void;
1155
- // (undocumented)
1156
- stopMeasure: (
1157
- measureName: string,
1158
- onMeasureComplete?: (duration: number, startTime: number) => void,
1159
- ) => void;
1160
- }
1161
-
1162
- // @public (undocumented)
1163
- type MeasureListener = (entry: SimpleEntry) => void;
1164
-
1165
664
  // @public (undocumented)
1166
665
  export const measurements: {
1167
666
  EDITOR_MOUNTED: string;
@@ -1171,34 +670,6 @@ export const measurements: {
1171
670
  PASTE: string;
1172
671
  };
1173
672
 
1174
- // @public (undocumented)
1175
- type MediaNextEditorPluginType = NextEditorPlugin<
1176
- 'media',
1177
- {
1178
- pluginConfiguration: MediaOptions | undefined;
1179
- dependencies: [
1180
- FeatureFlagsPlugin,
1181
- OptionalPlugin<AnalyticsPlugin>,
1182
- GuidelinePlugin,
1183
- GridPlugin,
1184
- WidthPlugin,
1185
- DecorationsPlugin,
1186
- FloatingToolbarPlugin,
1187
- EditorDisabledPlugin,
1188
- FocusPlugin,
1189
- ];
1190
- sharedState: MediaPluginState | null;
1191
- }
1192
- >;
1193
-
1194
- // @public (undocumented)
1195
- interface MediaNodeWithPosHandler {
1196
- // (undocumented)
1197
- getPos: ProsemirrorGetPosHandler;
1198
- // (undocumented)
1199
- node: Node_2;
1200
- }
1201
-
1202
673
  // @public (undocumented)
1203
674
  export interface MediaOptions {
1204
675
  // (undocumented)
@@ -1261,153 +732,6 @@ export interface MediaOptions {
1261
732
  waitForMediaUpload?: boolean;
1262
733
  }
1263
734
 
1264
- // @public (undocumented)
1265
- export const mediaPlugin: MediaNextEditorPluginType;
1266
-
1267
- // @public (undocumented)
1268
- export const mediaPluginKey: PluginKey<MediaPluginState>;
1269
-
1270
- // @public (undocumented)
1271
- type MediaPluginOptions = {
1272
- providerFactory: ProviderFactory;
1273
- nodeViews: {
1274
- [name: string]: (
1275
- node: Node_2,
1276
- view: EditorView,
1277
- getPos: getPosHandler,
1278
- ) => NodeView;
1279
- };
1280
- errorReporter?: ErrorReporter;
1281
- uploadErrorHandler?: (state: MediaState) => void;
1282
- waitForMediaUpload?: boolean;
1283
- customDropzoneContainer?: HTMLElement;
1284
- customMediaPicker?: CustomMediaPicker;
1285
- allowResizing: boolean;
1286
- };
1287
-
1288
- // @public (undocumented)
1289
- interface MediaPluginState {
1290
- // (undocumented)
1291
- addPendingTask: (promise: Promise<any>) => void;
1292
- // (undocumented)
1293
- allowsUploads: boolean;
1294
- // (undocumented)
1295
- allUploadsFinished: boolean;
1296
- // (undocumented)
1297
- currentMaxWidth?: number;
1298
- // (undocumented)
1299
- destroy(): void;
1300
- // (undocumented)
1301
- dispatch?: Dispatch;
1302
- // (undocumented)
1303
- editingMediaSinglePos?: number;
1304
- // (undocumented)
1305
- element?: HTMLElement;
1306
- // (undocumented)
1307
- findMediaNode: (id: string) => MediaNodeWithPosHandler | null;
1308
- // (undocumented)
1309
- getMediaOptions: () => MediaPluginOptions;
1310
- // (undocumented)
1311
- handleDrag: (dragState: 'enter' | 'leave') => void;
1312
- // (undocumented)
1313
- handleMediaGroupUpdate: (oldNodes: Node_2[], newNodes: Node_2[]) => void;
1314
- // (undocumented)
1315
- handleMediaNodeMount: (
1316
- node: Node_2,
1317
- getPos: ProsemirrorGetPosHandler,
1318
- ) => void;
1319
- // (undocumented)
1320
- handleMediaNodeRemoval: (
1321
- node: Node_2 | undefined,
1322
- getPos: ProsemirrorGetPosHandler,
1323
- ) => void;
1324
- // (undocumented)
1325
- handleMediaNodeUnmount: (oldNode: Node_2) => void;
1326
- // (undocumented)
1327
- ignoreLinks: boolean;
1328
- // (undocumented)
1329
- insertFile: (
1330
- mediaState: MediaState,
1331
- onMediaStateChanged: MediaStateEventSubscriber,
1332
- pickerType?: string,
1333
- ) => void;
1334
- // (undocumented)
1335
- isFullscreen: boolean;
1336
- // (undocumented)
1337
- isResizing: boolean;
1338
- // (undocumented)
1339
- layout: RichMediaLayout;
1340
- // (undocumented)
1341
- mediaClientConfig?: MediaClientConfig;
1342
- // (undocumented)
1343
- mediaNodes: MediaNodeWithPosHandler[];
1344
- // (undocumented)
1345
- mediaOptions?: MediaOptions;
1346
- // (undocumented)
1347
- mediaProvider?: MediaProvider_2;
1348
- // (undocumented)
1349
- onContextIdentifierProvider: (
1350
- _name: string,
1351
- provider?: Promise<ContextIdentifierProvider>,
1352
- ) => Promise<void>;
1353
- // (undocumented)
1354
- onPopupPickerClose: () => void;
1355
- // (undocumented)
1356
- onPopupToggle: (onPopupToogleCallback: (isOpen: boolean) => void) => void;
1357
- // (undocumented)
1358
- options: MediaPluginOptions;
1359
- // (undocumented)
1360
- pickerPromises: Array<Promise<PickerFacade>>;
1361
- // (undocumented)
1362
- pickers: PickerFacade[];
1363
- // (undocumented)
1364
- removeSelectedMediaContainer: () => boolean;
1365
- // (undocumented)
1366
- resizingWidth: number;
1367
- // (undocumented)
1368
- selectedMediaContainerNode: () => Node_2 | undefined;
1369
- // (undocumented)
1370
- setBrowseFn: (browseFn: () => void) => void;
1371
- // (undocumented)
1372
- setIsResizing(isResizing: boolean): void;
1373
- // (undocumented)
1374
- setMediaProvider: (mediaProvider?: Promise<MediaProvider_2>) => Promise<void>;
1375
- // (undocumented)
1376
- setResizingWidth(width: number): void;
1377
- // (undocumented)
1378
- setView(view: EditorView): void;
1379
- // (undocumented)
1380
- showDropzone: boolean;
1381
- // (undocumented)
1382
- showEditingDialog?: boolean;
1383
- // (undocumented)
1384
- showMediaPicker: () => void;
1385
- // (undocumented)
1386
- splitMediaGroup: () => boolean;
1387
- // (undocumented)
1388
- updateAndDispatch(
1389
- props: Partial<
1390
- Pick<this, 'allUploadsFinished' | 'allowsUploads' | 'isFullscreen'>
1391
- >,
1392
- ): void;
1393
- // (undocumented)
1394
- updateElement(): void;
1395
- // (undocumented)
1396
- updateMediaSingleNodeAttrs: (
1397
- id: string,
1398
- attrs: object,
1399
- ) => boolean | undefined;
1400
- // (undocumented)
1401
- uploadMediaClientConfig?: MediaClientConfig;
1402
- // (undocumented)
1403
- waitForMediaUpload: boolean;
1404
- // (undocumented)
1405
- waitForPendingTasks: (
1406
- timeout?: number,
1407
- lastTask?: Promise<MediaState | null>,
1408
- ) => Promise<MediaState | null>;
1409
- }
1410
-
1411
735
  export { MediaProvider_2 as MediaProvider };
1412
736
 
1413
737
  // @public (undocumented)
@@ -1417,7 +741,7 @@ interface MediaSingleOptions {
1417
741
  }
1418
742
 
1419
743
  // @public (undocumented)
1420
- export interface MediaState {
744
+ interface MediaState {
1421
745
  // (undocumented)
1422
746
  collection?: string;
1423
747
  // (undocumented)
@@ -1447,15 +771,6 @@ export interface MediaState {
1447
771
  status?: MediaStateStatus;
1448
772
  }
1449
773
 
1450
- // @public (undocumented)
1451
- type MediaStateEvent = MediaState;
1452
-
1453
- // @public (undocumented)
1454
- type MediaStateEventListener = (evt: MediaStateEvent) => void;
1455
-
1456
- // @public (undocumented)
1457
- type MediaStateEventSubscriber = (listener: MediaStateEventListener) => void;
1458
-
1459
774
  // @public (undocumented)
1460
775
  type MediaStateStatus =
1461
776
  | 'cancelled'
@@ -1473,47 +788,14 @@ interface MentionPluginConfig {
1473
788
  insertDisplayName?: boolean;
1474
789
  }
1475
790
 
1476
- // @public (undocumented)
1477
- export type MentionPluginState = {
1478
- mentionProvider?: MentionProvider_2;
1479
- contextIdentifierProvider?: ContextIdentifierProvider;
1480
- mentions?: Array<MentionDescription>;
1481
- canInsertMention?: boolean;
1482
- };
1483
-
1484
791
  export { MentionProvider };
1485
792
 
1486
793
  export { MentionResource };
1487
794
 
1488
- export { messages };
1489
-
1490
- // @public (undocumented)
1491
- type MobileUploadEndEventPayload = {
1492
- readonly file: MediaFile & {
1493
- readonly collectionName?: string;
1494
- readonly publicId?: string;
1495
- };
1496
- };
1497
-
1498
795
  // @public (undocumented)
1499
796
  const name_2: string;
1500
797
  export { name_2 as name };
1501
798
 
1502
- // @public (undocumented)
1503
- type NewMediaEvent = (
1504
- state: MediaState,
1505
- onStateChanged: MediaStateEventSubscriber,
1506
- pickerType?: string,
1507
- ) => void;
1508
-
1509
- // @public (undocumented)
1510
- interface NodeSelectionData {
1511
- // (undocumented)
1512
- anchor: number;
1513
- // (undocumented)
1514
- type: 'node';
1515
- }
1516
-
1517
799
  // @public (undocumented)
1518
800
  type OnEditorViewStateUpdated = (props: {
1519
801
  readonly originalTransaction: Readonly<Transaction>;
@@ -1522,29 +804,6 @@ type OnEditorViewStateUpdated = (props: {
1522
804
  readonly newEditorState: Readonly<EditorState>;
1523
805
  }) => void;
1524
806
 
1525
- // @public (undocumented)
1526
- export const openDatePicker: () => Command;
1527
-
1528
- export { PaletteColor };
1529
-
1530
- // @public (undocumented)
1531
- export type PanelPlugin = typeof panelPlugin;
1532
-
1533
- // @public (undocumented)
1534
- const panelPlugin: NextEditorPlugin<
1535
- 'panel',
1536
- {
1537
- pluginConfiguration: PanelPluginOptions | undefined;
1538
- dependencies: [
1539
- typeof decorationsPlugin,
1540
- OptionalPlugin<typeof analyticsPlugin>,
1541
- ];
1542
- actions: {
1543
- insertPanel: (inputMethod: INPUT_METHOD) => Command_2;
1544
- };
1545
- }
1546
- >;
1547
-
1548
807
  // @public (undocumented)
1549
808
  interface PanelPluginConfig {
1550
809
  // (undocumented)
@@ -1553,65 +812,6 @@ interface PanelPluginConfig {
1553
812
  allowCustomPanelEdit?: boolean;
1554
813
  }
1555
814
 
1556
- // @public (undocumented)
1557
- interface PanelPluginOptions
1558
- extends LongPressSelectionPluginOptions,
1559
- PanelPluginConfig {}
1560
-
1561
- // @public (undocumented)
1562
- type PastePluginOptions = {
1563
- cardOptions?: CardOptions;
1564
- sanitizePrivateContent?: boolean;
1565
- };
1566
-
1567
- // @public (undocumented)
1568
- class PickerFacade {
1569
- constructor(
1570
- pickerType: PickerType,
1571
- config: PickerFacadeConfig,
1572
- pickerConfig?: CustomMediaPicker | null | undefined,
1573
- analyticsName?: string,
1574
- );
1575
- // (undocumented)
1576
- readonly config: PickerFacadeConfig;
1577
- // (undocumented)
1578
- destroy(): void;
1579
- // (undocumented)
1580
- erroredFiles: Set<string>;
1581
- // (undocumented)
1582
- handleMobileUploadEnd: (event: MobileUploadEndEventPayload) => void;
1583
- // (undocumented)
1584
- handleReady: (event: UploadEndEventPayload) => void;
1585
- // (undocumented)
1586
- handleUploadError: ({ error, fileId }: UploadErrorEventPayload) => void;
1587
- // (undocumented)
1588
- handleUploadPreviewUpdate: (event: UploadPreviewUpdateEventPayload) => void;
1589
- // (undocumented)
1590
- init(): Promise<PickerFacade>;
1591
- // (undocumented)
1592
- get mediaPicker(): CustomMediaPicker | undefined;
1593
- // (undocumented)
1594
- onDrag(cb: (state: 'enter' | 'leave') => any): void;
1595
- // (undocumented)
1596
- onNewMedia(cb: NewMediaEvent): void;
1597
- // (undocumented)
1598
- readonly pickerConfig?: CustomMediaPicker | null | undefined;
1599
- // (undocumented)
1600
- setUploadParams(params: UploadParams): void;
1601
- // (undocumented)
1602
- get type(): PickerType;
1603
- }
1604
-
1605
- // @public (undocumented)
1606
- type PickerFacadeConfig = {
1607
- mediaClientConfig: MediaClientConfig;
1608
- errorReporter: ErrorReportingHandler;
1609
- featureFlags?: MediaFeatureFlags_2;
1610
- };
1611
-
1612
- // @public (undocumented)
1613
- type PickerType = 'clipboard' | 'customMediaPicker' | 'dropzone';
1614
-
1615
815
  // @public (undocumented)
1616
816
  interface PlaceholderTextOptions {
1617
817
  // (undocumented)
@@ -1632,8 +832,6 @@ export { PortalRenderer };
1632
832
 
1633
833
  export { PresenceProvider };
1634
834
 
1635
- export { PresenceResource };
1636
-
1637
835
  // @public (undocumented)
1638
836
  type PrimaryToolbarComponents =
1639
837
  | BeforeAndAfterToolbarComponents
@@ -1685,15 +883,6 @@ type Props_4 = {
1685
883
  children?: React_2.ReactElement;
1686
884
  };
1687
885
 
1688
- // @public (undocumented)
1689
- type Props_5 = {
1690
- oldPluginState: TypeAheadPluginState;
1691
- newPluginState: TypeAheadPluginState;
1692
- };
1693
-
1694
- // @public (undocumented)
1695
- type ProsemirrorGetPosHandler = getPosHandlerNode;
1696
-
1697
886
  export { QuickInsertItem };
1698
887
 
1699
888
  export { QuickInsertProvider };
@@ -1701,236 +890,11 @@ export { QuickInsertProvider };
1701
890
  // @public (undocumented)
1702
891
  type ReactComponents = ReactElement<any> | ReactElement<any>[];
1703
892
 
1704
- // @public (undocumented)
1705
- export const ReactEditorView: FC<
1706
- WithIntlProps<EditorViewProps & WrappedComponentProps<'intl'>>
1707
- > & {
1708
- WrappedComponent: ComponentType<
1709
- EditorViewProps & WrappedComponentProps<'intl'>
1710
- >;
1711
- };
1712
-
1713
- // @public (undocumented)
1714
- class ReactEditorView_2<T = {}> extends React_2.Component<
1715
- EditorViewProps & WrappedComponentProps & T,
1716
- {},
1717
- EditorReactContext
1718
- > {
1719
- constructor(
1720
- props: EditorViewProps & WrappedComponentProps & T,
1721
- context: EditorReactContext,
1722
- );
1723
- // (undocumented)
1724
- blur: () => void;
1725
- // (undocumented)
1726
- componentDidMount(): void;
1727
- componentWillUnmount(): void;
1728
- // (undocumented)
1729
- config: EditorConfig;
1730
- // (undocumented)
1731
- contentTransformer?: Transformer_2<string>;
1732
- // (undocumented)
1733
- static contextTypes: {
1734
- getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<
1735
- (...args: any[]) => any
1736
- >;
1737
- };
1738
- // (undocumented)
1739
- createEditorState: (options: CreateEditorStateOptions) => EditorState;
1740
- // (undocumented)
1741
- dispatch: Dispatch;
1742
- // (undocumented)
1743
- dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
1744
- // (undocumented)
1745
- editorRef: React_2.RefObject<HTMLDivElement>;
1746
- // (undocumented)
1747
- editorState: EditorState;
1748
- // (undocumented)
1749
- errorReporter: ErrorReporter;
1750
- // (undocumented)
1751
- eventDispatcher: EventDispatcher;
1752
- // (undocumented)
1753
- experienceStore?: ExperienceStore;
1754
- // (undocumented)
1755
- formatFullWidthAppearance: (
1756
- appearance: EditorAppearance | undefined,
1757
- ) => FULL_WIDTH_MODE;
1758
- // (undocumented)
1759
- getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
1760
- // (undocumented)
1761
- getEditorState: () => EditorState | undefined;
1762
- // (undocumented)
1763
- getEditorView: () => EditorView | undefined;
1764
- // (undocumented)
1765
- getPlugins(
1766
- preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>,
1767
- ): EditorPlugin[];
1768
- // (undocumented)
1769
- handleAnalyticsEvent: FireAnalyticsCallback;
1770
- // (undocumented)
1771
- handleEditorViewRef: (node: HTMLDivElement) => void;
1772
- // (undocumented)
1773
- proseMirrorRenderedSeverity?: SEVERITY;
1774
- // (undocumented)
1775
- reconfigureState(props: EditorViewProps): void;
1776
- // (undocumented)
1777
- render(): JSX.Element;
1778
- // (undocumented)
1779
- resetEditorState: ({
1780
- doc,
1781
- shouldScrollToBottom,
1782
- }: {
1783
- doc: string;
1784
- shouldScrollToBottom: boolean;
1785
- }) => void;
1786
- // (undocumented)
1787
- transactionTracker: TransactionTracker;
1788
- // (undocumented)
1789
- get transactionTracking(): TransactionTracking;
1790
- // (undocumented)
1791
- UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
1792
- // (undocumented)
1793
- validTransactionCount: number;
1794
- // (undocumented)
1795
- view?: EditorView;
1796
- }
1797
-
1798
- // @public (undocumented)
1799
- interface RectData {
1800
- // (undocumented)
1801
- left: number;
1802
- // (undocumented)
1803
- top: number;
1804
- }
1805
-
1806
- // @public (undocumented)
1807
- export const removeStatus: (showStatusPickerAt: number) => Command;
1808
-
1809
- // @public (undocumented)
1810
- export type SelectionData =
1811
- | AllSelectionData
1812
- | CellSelectionData
1813
- | GapSelectionData
1814
- | NodeSelectionData
1815
- | TextSelectionData;
1816
-
1817
- // @public (undocumented)
1818
- export interface SelectionDataState {
1819
- // (undocumented)
1820
- markTypes: string[];
1821
- // (undocumented)
1822
- nodeTypes: string[];
1823
- // (undocumented)
1824
- rect: RectData;
1825
- // (undocumented)
1826
- selection: SelectionData;
1827
- }
1828
-
1829
- // @public (undocumented)
1830
- export const selectionPluginKey: PluginKey<any>;
1831
-
1832
- // @public (undocumented)
1833
- type SetEditorAPI = (editorApi: PublicPluginAPI<any>) => void;
1834
-
1835
- // @public (undocumented)
1836
- export const setIsExpanded: (isExpanded: boolean) => Command_2;
1837
-
1838
- export { setKeyboardHeight };
1839
-
1840
- // @public (undocumented)
1841
- export const setMobilePaddingTop: (paddingTop: number) => Command_2;
1842
-
1843
- // @public (undocumented)
1844
- export const setStatusPickerAt: (
1845
- showStatusPickerAt: null | number,
1846
- ) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
1847
-
1848
893
  export { setTextSelection };
1849
894
 
1850
- // @public (undocumented)
1851
- interface SimpleEntry {
1852
- // (undocumented)
1853
- duration: number;
1854
- // (undocumented)
1855
- name: string;
1856
- // (undocumented)
1857
- startTime: number;
1858
- }
1859
-
1860
895
  // @public (undocumented)
1861
896
  interface State {}
1862
897
 
1863
- // @public (undocumented)
1864
- export const statusMessages: {
1865
- placeholder: {
1866
- id: string;
1867
- defaultMessage: string;
1868
- description: string;
1869
- };
1870
- editText: {
1871
- id: string;
1872
- defaultMessage: string;
1873
- description: string;
1874
- };
1875
- editColor: {
1876
- id: string;
1877
- defaultMessage: string;
1878
- description: string;
1879
- };
1880
- };
1881
-
1882
- // @public (undocumented)
1883
- export const statusPluginKey: PluginKey<StatusState>;
1884
-
1885
- // @public (undocumented)
1886
- export type StatusState = {
1887
- isNew: boolean;
1888
- showStatusPickerAt: null | number;
1889
- };
1890
-
1891
- // @public (undocumented)
1892
- export type StatusType = {
1893
- color: Color;
1894
- text: string;
1895
- localId?: string;
1896
- };
1897
-
1898
- // @public (undocumented)
1899
- type SubscribeToToolbarAndPickerUpdates = (
1900
- editorView: EditorView,
1901
- cb: (args: SubscribeToToolbarAndPickerUpdatesCallbackArgs) => void,
1902
- ) => () => void;
1903
-
1904
- // @public (undocumented)
1905
- export const subscribeToToolbarAndPickerUpdates: SubscribeToToolbarAndPickerUpdates;
1906
-
1907
- // @public (undocumented)
1908
- type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
1909
- dateState?: DatePluginState;
1910
- statusState?: StatusState;
1911
- toolbarConfig: ConfigWithNodeInfo | null | undefined;
1912
- };
1913
-
1914
- // @public (undocumented)
1915
- type SubscribeTypeAheadUpdates = (
1916
- editorView: EditorView,
1917
- cb: (props: Props_5) => void,
1918
- ) => () => void;
1919
-
1920
- // @public (undocumented)
1921
- export const subscribeTypeAheadUpdates: SubscribeTypeAheadUpdates;
1922
-
1923
- // @public (undocumented)
1924
- export type TaskDecisionInputMethod =
1925
- | INPUT_METHOD.FORMATTING
1926
- | INPUT_METHOD.INSERT_MENU
1927
- | INPUT_METHOD.KEYBOARD
1928
- | INPUT_METHOD.QUICK_INSERT
1929
- | INPUT_METHOD.TOOLBAR;
1930
-
1931
- // @public (undocumented)
1932
- type TaskDecisionListType = 'decisionList' | 'taskList';
1933
-
1934
898
  export { TeamMentionResource };
1935
899
 
1936
900
  // @public (undocumented)
@@ -1945,31 +909,6 @@ interface TextColorPluginConfig {
1945
909
  defaultColor?: TextColorDefaultColor;
1946
910
  }
1947
911
 
1948
- // @public (undocumented)
1949
- export const textColorPluginKey: PluginKey<TextColorPluginState>;
1950
-
1951
- // @public (undocumented)
1952
- export type TextColorPluginState = {
1953
- palette: Array<PaletteColor>;
1954
- defaultColor: string;
1955
- disabled?: boolean;
1956
- color: null | string;
1957
- };
1958
-
1959
- export { TextFormattingInputMethodBasic };
1960
-
1961
- export { TextFormattingInputMethodToolbar };
1962
-
1963
- // @public (undocumented)
1964
- interface TextSelectionData {
1965
- // (undocumented)
1966
- anchor: number;
1967
- // (undocumented)
1968
- head: number;
1969
- // (undocumented)
1970
- type: 'text';
1971
- }
1972
-
1973
912
  // @public (undocumented)
1974
913
  export function ToolbarFeedback(props: Props_3): jsx.JSX.Element;
1975
914
 
@@ -1982,44 +921,8 @@ export const ToolbarHelp: React_2.FC<
1982
921
  >;
1983
922
  };
1984
923
 
1985
- // @public (undocumented)
1986
- class TransactionTracker {
1987
- // (undocumented)
1988
- addMeasureListener(listener: MeasureListener): void;
1989
- // (undocumented)
1990
- bumpDispatchCounter: (options: TransactionTracking) => number;
1991
- // (undocumented)
1992
- getMeasureHelpers: (options: TransactionTracking) => MeasureHelpers;
1993
- // (undocumented)
1994
- removeMeasureListener(listener: MeasureListener): void;
1995
- // (undocumented)
1996
- shouldTrackTransaction(options: TransactionTracking): boolean;
1997
- }
1998
-
1999
924
  export { TypeAheadItem };
2000
925
 
2001
- // @public (undocumented)
2002
- export const typeAheadPluginKey: PluginKey<TypeAheadPluginState>;
2003
-
2004
- // @public (undocumented)
2005
- export type TypeAheadPluginState = {
2006
- decorationSet: DecorationSet;
2007
- decorationElement: HTMLElement | null;
2008
- typeAheadHandlers: Array<TypeAheadHandler>;
2009
- query: string;
2010
- items: Array<TypeAheadItem_2>;
2011
- triggerHandler?: TypeAheadHandler;
2012
- selectedIndex: number;
2013
- stats: TypeAheadStatsSerializable | null;
2014
- inputMethod: TypeAheadInputMethod | null;
2015
- };
2016
-
2017
- // @public (undocumented)
2018
- interface TypeAheadStatsSerializable extends TypeAheadStats {
2019
- // (undocumented)
2020
- serialize: () => TypeAheadStats;
2021
- }
2022
-
2023
926
  // @public (undocumented)
2024
927
  export type UpdateEvent =
2025
928
  | 'create'
@@ -2028,15 +931,6 @@ export type UpdateEvent =
2028
931
  | 'setselectedannotation'
2029
932
  | 'unresolve';
2030
933
 
2031
- // @public (undocumented)
2032
- export const updateStatus: (status?: StatusType) => Command;
2033
-
2034
- // @public (undocumented)
2035
- export const updateStatusWithAnalytics: (
2036
- inputMethod: InsertBlockInputMethodToolbar,
2037
- status?: StatusType,
2038
- ) => Command;
2039
-
2040
934
  // @public (undocumented)
2041
935
  export const version: string;
2042
936
 
@@ -2094,8 +988,6 @@ interface WithHelpTriggerProps {
2094
988
  render: (openHelp: () => void) => React_2.ReactNode;
2095
989
  }
2096
990
 
2097
- export { WithPluginState };
2098
-
2099
991
  // (No @packageDocumentation comment for this package)
2100
992
  ```
2101
993