@atlaskit/editor-core 187.31.3 → 187.31.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/create-editor/ReactEditorViewInternal.js +2 -3
  3. package/dist/cjs/create-editor/create-plugins-list.js +2 -28
  4. package/dist/cjs/create-editor/create-preset.js +36 -0
  5. package/dist/cjs/labs/next/presets/useUniversalPreset.js +3 -3
  6. package/dist/cjs/version-wrapper.js +1 -1
  7. package/dist/es2019/create-editor/ReactEditorViewInternal.js +2 -3
  8. package/dist/es2019/create-editor/create-plugins-list.js +2 -23
  9. package/dist/es2019/create-editor/create-preset.js +25 -0
  10. package/dist/es2019/labs/next/presets/useUniversalPreset.js +1 -1
  11. package/dist/es2019/version-wrapper.js +1 -1
  12. package/dist/esm/create-editor/ReactEditorViewInternal.js +2 -3
  13. package/dist/esm/create-editor/create-plugins-list.js +2 -27
  14. package/dist/esm/create-editor/create-preset.js +29 -0
  15. package/dist/esm/labs/next/presets/useUniversalPreset.js +1 -1
  16. package/dist/esm/version-wrapper.js +1 -1
  17. package/dist/types/create-editor/create-plugins-list.d.ts +2 -3
  18. package/dist/types/create-editor/create-preset.d.ts +3 -0
  19. package/dist/types/plugins/base/plugin.d.ts +2 -2
  20. package/dist/types/plugins/breakout/index.d.ts +2 -2
  21. package/dist/types/plugins/extension/index.d.ts +8 -8
  22. package/dist/types/plugins/extension/nodeviews/extension.d.ts +3 -3
  23. package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
  24. package/dist/types/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
  25. package/dist/types/plugins/extension/ui/Extension/index.d.ts +2 -2
  26. package/dist/types/plugins/media/next-plugin-type.d.ts +12 -12
  27. package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +4 -4
  28. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +2 -3
  29. package/dist/types-ts4.5/create-editor/create-preset.d.ts +3 -0
  30. package/dist/types-ts4.5/plugins/base/plugin.d.ts +2 -2
  31. package/dist/types-ts4.5/plugins/breakout/index.d.ts +2 -2
  32. package/dist/types-ts4.5/plugins/extension/index.d.ts +8 -8
  33. package/dist/types-ts4.5/plugins/extension/nodeviews/extension.d.ts +3 -3
  34. package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
  35. package/dist/types-ts4.5/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -2
  36. package/dist/types-ts4.5/plugins/extension/ui/Extension/index.d.ts +2 -2
  37. package/dist/types-ts4.5/plugins/media/next-plugin-type.d.ts +12 -12
  38. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +4 -4
  39. package/package.json +6 -6
  40. package/report.api.md +12 -12
  41. package/tmp/api-report-tmp.d.ts +0 -1897
@@ -1,1897 +0,0 @@
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 type { ActivityProvider } from '@atlaskit/activity-provider';
15
- import type { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
16
- import type { AllowedBlockTypes } from '@atlaskit/editor-common/types';
17
- import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
18
- import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
19
- import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
20
- import type { AnnotationTypes } from '@atlaskit/adf-schema';
21
- import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
22
- import type { CardOptions } from '@atlaskit/editor-common/card';
23
- import { CardProvider } from '@atlaskit/editor-common/provider-factory';
24
- import { clearEditorContent } from '@atlaskit/editor-common/commands';
25
- import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
26
- import { Color } from '@atlaskit/status/element';
27
- import { Command as Command_2 } from '@atlaskit/editor-common/types';
28
- import { ComponentType } from 'react';
29
- import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
30
- import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
31
- import type { ContextUpdateHandler } from '@atlaskit/editor-common/types';
32
- import { createTable } from '@atlaskit/editor-plugin-table/commands';
33
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
34
- import { darkModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
35
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
36
- import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
37
- import { dedupe } from '@atlaskit/editor-common/utils';
38
- import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
39
- import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
40
- import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
41
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
42
- import type { EditorActionsOptions } from '@atlaskit/editor-common/types';
43
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
44
- import { EditorAppearance } from '@atlaskit/editor-common/types';
45
- import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
46
- import { FeatureFlags as EditorFeatureFlags } from '@atlaskit/editor-common/types';
47
- import { EditorPlugin } from '@atlaskit/editor-common/types';
48
- import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
49
- import { EditorReactContext } from '@atlaskit/editor-common/types';
50
- import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
51
- import { EditorState } from '@atlaskit/editor-prosemirror/state';
52
- import { EditorView } from '@atlaskit/editor-prosemirror/view';
53
- import { EmojiResource } from '@atlaskit/emoji/resource';
54
- import { EmptyStateHandler } from '@atlaskit/editor-common/types';
55
- import type { ErrorReporter } from '@atlaskit/editor-common/utils';
56
- import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
57
- import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
58
- import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
59
- import { EventEmitter as EventEmitter_2 } from 'events';
60
- import { ExperienceStore } from '@atlaskit/editor-common/ufo';
61
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
62
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
63
- import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
64
- import { FC } from 'react';
65
- import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
66
- import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
67
- import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
68
- import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
69
- import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
70
- import { GapCursorSelection } from '@atlaskit/editor-common/selection';
71
- import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
72
- import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
73
- import type { gridPlugin } from '@atlaskit/editor-plugin-grid';
74
- import type { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
75
- import type { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
76
- import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
77
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
78
- import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
79
- import { InputTracking } from '@atlaskit/editor-common/types';
80
- import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
81
- import { jsx } from '@emotion/react';
82
- import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
83
- import type { LinkingOptions } from '@atlaskit/editor-common/types';
84
- import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
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 type { MediaFeatureFlags } from '@atlaskit/media-common';
90
- import { MediaFeatureFlags as MediaFeatureFlags_2 } from '@atlaskit/media-common/mediaFeatureFlags';
91
- import type { MediaFile } from '@atlaskit/media-picker/types';
92
- import type { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
93
- import type { MentionDescription } from '@atlaskit/mention';
94
- import { MentionProvider } from '@atlaskit/mention/resource';
95
- import type { MentionProvider as MentionProvider_2 } from '@atlaskit/mention';
96
- import { MentionResource } from '@atlaskit/mention/resource';
97
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
98
- import type { MessageDescriptor } from 'react-intl-next';
99
- import { default as messages } from '@atlaskit/editor-common/messages';
100
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
101
- import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
102
- import { NodeConfig } from '@atlaskit/editor-common/types';
103
- import type { NodeType } from '@atlaskit/editor-prosemirror/model';
104
- import type { NodeView } from '@atlaskit/editor-prosemirror/view';
105
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
106
- import { PaletteColor } from '@atlaskit/editor-common/ui-color';
107
- import { PerformanceTracking } from '@atlaskit/editor-common/types';
108
- import type { PluginConfig } from '@atlaskit/editor-plugin-table/types';
109
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
110
- import { PMPlugin } from '@atlaskit/editor-common/types';
111
- import { PortalProvider } from '@atlaskit/editor-common/portal-provider';
112
- import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
113
- import { PortalRenderer } from '@atlaskit/editor-common/portal-provider';
114
- import { PositionType } from '@atlaskit/tooltip/types';
115
- import { PresenceProvider } from '@atlaskit/mention/resource';
116
- import { PresenceResource } from '@atlaskit/mention/resource';
117
- import PropTypes from 'prop-types';
118
- import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
119
- import type { Providers } from '@atlaskit/editor-common/provider-factory';
120
- import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
121
- import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
122
- import type { QuickInsertOptions } from '@atlaskit/editor-common/types';
123
- import type { QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
124
- import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
125
- import { default as React_2 } from 'react';
126
- import type { ReactElement } from 'react';
127
- import type { ReactHookFactory } from '@atlaskit/editor-common/types';
128
- import type { ReplaceRawValue } from '@atlaskit/editor-common/types';
129
- import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
130
- import type { RichMediaLayout } from '@atlaskit/adf-schema';
131
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
132
- import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
133
- import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
134
- import { setTextSelection } from '@atlaskit/editor-common/utils';
135
- import type { SEVERITY } from '@atlaskit/editor-common/utils';
136
- import type { TaskDecisionProvider } from '@atlaskit/task-decision';
137
- import { TeamMentionResource } from '@atlaskit/mention/team-resource';
138
- import { InputMethodBasic as TextFormattingInputMethodBasic } from '@atlaskit/editor-common/types';
139
- import { InputMethodToolbar as TextFormattingInputMethodToolbar } from '@atlaskit/editor-common/types';
140
- import type { TextFormattingOptions } from '@atlaskit/editor-common/types';
141
- import { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
142
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
143
- import { TransactionTracking } from '@atlaskit/editor-common/types';
144
- import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
145
- import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
146
- import type { TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
147
- import { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
148
- import type { TypeAheadItem as TypeAheadItem_2 } from '@atlaskit/editor-common/types';
149
- import type { TypeAheadPluginOptions } from '@atlaskit/editor-plugin-type-ahead';
150
- import type { TypeAheadStats } from '@atlaskit/editor-common/types';
151
- import { UIComponentFactory } from '@atlaskit/editor-common/types';
152
- import { UploadEndEventPayload } from '@atlaskit/media-picker/types';
153
- import { UploadErrorEventPayload } from '@atlaskit/media-picker/types';
154
- import { UploadParams } from '@atlaskit/media-picker/types';
155
- import { UploadPreviewUpdateEventPayload } from '@atlaskit/media-picker/types';
156
- import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
157
- import type { WeekDay } from '@atlaskit/calendar/types';
158
- import type { widthPlugin } from '@atlaskit/editor-plugin-width';
159
- import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
160
- import { WithIntlProps } from 'react-intl-next';
161
- import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
162
- import { WrappedComponentProps } from 'react-intl-next';
163
-
164
- export { AbstractMentionResource }
165
-
166
- export { ACTION }
167
-
168
- export { ACTION_SUBJECT }
169
-
170
- export { ACTION_SUBJECT_ID }
171
-
172
- // @public (undocumented)
173
- type AddItemTransactionCreator = (opts: {
174
- state: EditorState;
175
- tr: Transaction;
176
- list: NodeType;
177
- item: NodeType;
178
- listLocalId: string;
179
- itemLocalId: string;
180
- }) => Transaction | null;
181
-
182
- // @public (undocumented)
183
- interface AllSelectionData {
184
- // (undocumented)
185
- type: 'all';
186
- }
187
-
188
- export { AnalyticsEventPayload }
189
-
190
- // @public (undocumented)
191
- type AnnotationComponentProps = {
192
- textSelection?: string;
193
- dom?: HTMLElement;
194
- onClose?: () => void;
195
- };
196
-
197
- // @public (undocumented)
198
- export type AnnotationInfo = {
199
- id: string;
200
- type: AnnotationTypes.INLINE_COMMENT;
201
- };
202
-
203
- // @public (undocumented)
204
- export interface AnnotationProviders {
205
- // (undocumented)
206
- inlineComment: InlineCommentAnnotationProvider;
207
- }
208
-
209
- // @public (undocumented)
210
- export interface AnnotationState<Type, State> {
211
- // (undocumented)
212
- annotationType: Type;
213
- // (undocumented)
214
- id: string;
215
- // (undocumented)
216
- state: State;
217
- }
218
-
219
- // @public (undocumented)
220
- export interface AnnotationTypeProvider<Type, State> {
221
- // (undocumented)
222
- disallowOnWhitespace?: boolean;
223
- // (undocumented)
224
- getState: (annotationIds: string[]) => Promise<AnnotationState<Type, State>[]>;
225
- // (undocumented)
226
- updateSubscriber?: AnnotationUpdateEmitter;
227
- }
228
-
229
- // @public (undocumented)
230
- export class AnnotationUpdateEmitter extends EventEmitter_2 {
231
- // (undocumented)
232
- on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
233
- // (undocumented)
234
- on(event: UpdateEvent, listener: (annotationId: string) => void): this;
235
- }
236
-
237
- // @public (undocumented)
238
- interface BasePluginOptions {
239
- // (undocumented)
240
- allowInlineCursorTarget?: boolean;
241
- // (undocumented)
242
- allowScrollGutter?: ScrollGutterPluginOptions;
243
- // (undocumented)
244
- browserFreezeTracking?: BrowserFreezetracking;
245
- // (undocumented)
246
- inputTracking?: InputTracking;
247
- // (undocumented)
248
- ufo?: boolean;
249
- }
250
-
251
- // @public (undocumented)
252
- export class BaseReactEditorView<T = {}> extends ReactEditorView_2<T> {
253
- }
254
-
255
- // @public (undocumented)
256
- type BeforeAndAfterToolbarComponents = {
257
- before: ReactComponents;
258
- after: ReactComponents;
259
- };
260
-
261
- // @public (undocumented)
262
- export const blockPluginStateKey: PluginKey<BlockTypeState>;
263
-
264
- // @public (undocumented)
265
- interface BlockType {
266
- // (undocumented)
267
- level?: HeadingLevelsAndNormalText;
268
- // (undocumented)
269
- name: string;
270
- // (undocumented)
271
- nodeName: string;
272
- // (undocumented)
273
- tagName?: string;
274
- // (undocumented)
275
- title: MessageDescriptor;
276
- }
277
-
278
- // @public (undocumented)
279
- export type BlockTypeInputMethod = INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
280
-
281
- // @public (undocumented)
282
- interface BlockTypePluginOptions {
283
- // (undocumented)
284
- allowBlockType?: {
285
- exclude?: Array<AllowedBlockTypes>;
286
- };
287
- // (undocumented)
288
- isUndoRedoButtonsEnabled?: boolean;
289
- // (undocumented)
290
- lastNodeMustBeParagraph?: boolean;
291
- }
292
-
293
- // @public (undocumented)
294
- export type BlockTypeState = {
295
- currentBlockType: BlockType;
296
- blockTypesDisabled: boolean;
297
- availableBlockTypes: BlockType[];
298
- availableWrapperBlockTypes: BlockType[];
299
- };
300
-
301
- export { CardProvider }
302
-
303
- // @public (undocumented)
304
- interface CellSelectionData {
305
- // (undocumented)
306
- anchor: number;
307
- // (undocumented)
308
- head: number;
309
- // (undocumented)
310
- type: 'cell';
311
- }
312
-
313
- // @public (undocumented)
314
- export const changeColor: (color: string) => Command;
315
-
316
- export { clearEditorContent }
317
-
318
- // @public (undocumented)
319
- type CloseOptions = {
320
- insertCurrentQueryAsRawText: boolean;
321
- attachCommand?: Command;
322
- };
323
-
324
- // @public (undocumented)
325
- interface CodeBlockOptions extends LongPressSelectionPluginOptions {
326
- // (undocumented)
327
- allowCompositionInputOverride?: boolean;
328
- // (undocumented)
329
- allowCopyToClipboard?: boolean;
330
- // (undocumented)
331
- appearance?: EditorAppearance | undefined;
332
- }
333
-
334
- // @public (undocumented)
335
- export class CollapsedEditor extends React_2.Component<Props, State> {
336
- // (undocumented)
337
- componentDidUpdate(): void;
338
- // (undocumented)
339
- editorComponent?: Editor;
340
- // (undocumented)
341
- functionalEditor?: boolean;
342
- // (undocumented)
343
- handleEditorRef: (editorRef?: Editor, editorRefCallback?: any) => void;
344
- // (undocumented)
345
- previouslyExpanded?: boolean;
346
- // (undocumented)
347
- render(): any;
348
- }
349
-
350
- // @public (undocumented)
351
- export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
352
-
353
- // @public (undocumented)
354
- export type CommandDispatch = (tr: Transaction) => void;
355
-
356
- // @public (undocumented)
357
- export const commitStatusPicker: () => (editorView: EditorView) => void;
358
-
359
- // @public (undocumented)
360
- export function ContextPanel(props: Props_4): jsx.JSX.Element;
361
-
362
- // @public (undocumented)
363
- interface CreateEditorStateOptions {
364
- // (undocumented)
365
- context: EditorReactContext;
366
- // (undocumented)
367
- doc?: Object | Node_2 | string;
368
- // (undocumented)
369
- props: EditorViewProps;
370
- // (undocumented)
371
- resetting?: boolean;
372
- // (undocumented)
373
- selectionAtStart?: boolean;
374
- }
375
-
376
- export { createTable }
377
-
378
- // @public (undocumented)
379
- export const createTypeAheadTools: (editorView: EditorView) => {
380
- isOpen: () => TypeAheadHandler | false;
381
- currentQuery: () => string | undefined;
382
- close: (options?: CloseOptions) => boolean;
383
- openMention: (inputMethod: TypeAheadInputMethod) => boolean;
384
- searchMention: (query?: string) => {
385
- type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
386
- result: () => Promise<TypeAheadItem[] | undefined>;
387
- close: (options?: CloseOptions) => boolean;
388
- insert: ({ index, mode }: {
389
- index: number;
390
- mode?: SelectItemMode | undefined;
391
- }) => Promise<void>;
392
- };
393
- openQuickInsert: (inputMethod: TypeAheadInputMethod) => boolean;
394
- searchQuickInsert: (query?: string) => {
395
- type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
396
- result: () => Promise<TypeAheadItem[] | undefined>;
397
- close: (options?: CloseOptions) => boolean;
398
- insert: ({ index, mode }: {
399
- index: number;
400
- mode?: SelectItemMode | undefined;
401
- }) => Promise<void>;
402
- };
403
- openEmoji: (inputMethod: TypeAheadInputMethod) => boolean;
404
- searchEmoji: (query?: string) => {
405
- type: (appendValue: string) => Promise<TypeAheadItem[]> | undefined;
406
- result: () => Promise<TypeAheadItem[] | undefined>;
407
- close: (options?: CloseOptions) => boolean;
408
- insert: ({ index, mode }: {
409
- index: number;
410
- mode?: SelectItemMode | undefined;
411
- }) => Promise<void>;
412
- };
413
- insertItemMention: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
414
- insertItemEmoji: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
415
- insertItemQuickInsert: ({ contentItem, query, sourceListItem }: InsertItemProps) => boolean;
416
- };
417
-
418
- // @public (undocumented)
419
- export interface CustomMediaPicker {
420
- // (undocumented)
421
- destroy(): void;
422
- // (undocumented)
423
- emit(event: string, data: any): void;
424
- // (undocumented)
425
- on(event: string, cb: Listener): void;
426
- // (undocumented)
427
- removeAllListeners(event: any): void;
428
- // (undocumented)
429
- setUploadParams(uploadParams: UploadParams): void;
430
- }
431
-
432
- export { darkModeStatusColorPalette }
433
-
434
- // @public (undocumented)
435
- export const dateMessages: {
436
- editText: {
437
- id: string;
438
- defaultMessage: string;
439
- description: string;
440
- };
441
- };
442
-
443
- // @public (undocumented)
444
- interface DatePluginConfig {
445
- // (undocumented)
446
- weekStartDay?: WeekDay;
447
- }
448
-
449
- // @public (undocumented)
450
- export const datePluginKey: PluginKey<DatePluginState>;
451
-
452
- // @public (undocumented)
453
- export type DatePluginState = {
454
- isQuickInsertAction?: boolean;
455
- isNew: boolean;
456
- showDatePickerAt: null | number;
457
- isDateEmpty: boolean;
458
- focusDateInput: boolean;
459
- };
460
-
461
- // @public
462
- export function dateToDateType(date: Date): DateType;
463
-
464
- // @public (undocumented)
465
- type DateType = {
466
- year: number;
467
- month: number;
468
- day?: number;
469
- };
470
-
471
- export { dedupe }
472
-
473
- export { DEFAULT_BORDER_COLOR }
474
-
475
- // @public (undocumented)
476
- type DefaultPresetPluginOptions = {
477
- paste: PastePluginOptions;
478
- base?: BasePluginOptions;
479
- blockType?: BlockTypePluginOptions;
480
- placeholder?: PlaceholderPluginOptions;
481
- textFormatting?: TextFormattingOptions;
482
- submitEditor?: EditorProps['onSave'];
483
- annotationProviders?: AnnotationProviders;
484
- quickInsert?: QuickInsertPluginOptions;
485
- codeBlock?: CodeBlockOptions;
486
- selection?: SelectionPluginOptions;
487
- cardOptions?: CardOptions;
488
- hyperlinkOptions?: HyperlinkPluginOptions;
489
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
490
- typeAhead?: TypeAheadPluginOptions;
491
- allowAnalyticsGASV3?: boolean;
492
- performanceTracking?: EditorProps['performanceTracking'];
493
- };
494
-
495
- // @public
496
- export const deleteDate: () => Command;
497
-
498
- // @public (undocumented)
499
- export class Editor extends React_2.Component<EditorProps> {
500
- constructor(props: EditorProps);
501
- // (undocumented)
502
- static defaultProps: EditorProps;
503
- // (undocumented)
504
- render(): jsx.JSX.Element;
505
- }
506
-
507
- // @public (undocumented)
508
- export class EditorActions<T = any> implements EditorActionsOptions<T> {
509
- // (undocumented)
510
- __temporaryFixForConfigPanel(): Promise<void>;
511
- // (undocumented)
512
- appendText(text: string): boolean;
513
- // (undocumented)
514
- blur(): boolean;
515
- // (undocumented)
516
- clear(): boolean;
517
- // (undocumented)
518
- dispatchAnalyticsEvent: (payload: AnalyticsEventPayload_2) => void;
519
- // (undocumented)
520
- focus(): boolean;
521
- // (undocumented)
522
- static from<T>(view: EditorView, eventDispatcher: EventDispatcher, transformer?: Transformer_2<T>): EditorActions<T>;
523
- // (undocumented)
524
- getNodeByFragmentLocalId(id: string): Node_2 | undefined;
525
- // (undocumented)
526
- getNodeByLocalId(id: string): Node_2 | undefined;
527
- getResolvedEditorState: () => Promise<ResolvedEditorState | undefined>;
528
- getSelectedNode(): Node_2 | undefined;
529
- // (undocumented)
530
- getValue(): Promise<T | JSONDocNode | undefined>;
531
- // (undocumented)
532
- isDocumentEmpty(): boolean;
533
- // (undocumented)
534
- _privateGetEditorView(): EditorView | undefined;
535
- // (undocumented)
536
- _privateGetEventDispatcher(): EventDispatcher | undefined;
537
- // (undocumented)
538
- _privateRegisterEditor(editorView: EditorView, eventDispatcher: EventDispatcher, contentTransformer?: Transformer_2<T>, getFeatureFlags?: () => EditorFeatureFlags): void;
539
- // (undocumented)
540
- _privateSubscribe(cb: ContextUpdateHandler): void;
541
- // (undocumented)
542
- _privateUnregisterEditor(): void;
543
- // (undocumented)
544
- _privateUnsubscribe(cb: ContextUpdateHandler): void;
545
- // (undocumented)
546
- replaceDocument(rawValue: any, shouldScrollToBottom?: boolean,
547
- shouldAddToHistory?: boolean): boolean;
548
- // (undocumented)
549
- replaceSelection(rawValue: Array<ReplaceRawValue> | ReplaceRawValue, tryToReplace?: boolean): boolean;
550
- }
551
-
552
- // @public (undocumented)
553
- interface EditorBaseProps {
554
- // (undocumented)
555
- appearance?: EditorAppearance;
556
- // (undocumented)
557
- assistiveLabel?: string;
558
- // (undocumented)
559
- contentComponents?: ReactComponents;
560
- // (undocumented)
561
- contentTransformerProvider?: (schema: Schema) => Transformer_2<string>;
562
- // (undocumented)
563
- contextPanel?: ReactComponents;
564
- // (undocumented)
565
- defaultValue?: Node_2 | Object | string;
566
- // (undocumented)
567
- disabled?: boolean;
568
- // (undocumented)
569
- editorActions?: EditorActions;
570
- // (undocumented)
571
- errorReporterHandler?: ErrorReportingHandler;
572
- // (undocumented)
573
- extensionProviders?: ExtensionProvidersProp;
574
- featureFlags?: {
575
- [featureFlag: string]: boolean | string;
576
- };
577
- // @deprecated
578
- inputSamplingLimit?: number;
579
- // (undocumented)
580
- maxHeight?: number;
581
- // (undocumented)
582
- minHeight?: number;
583
- // (undocumented)
584
- onCancel?: (editorView: EditorView) => void;
585
- // (undocumented)
586
- onChange?: EditorOnChangeHandler;
587
- // (undocumented)
588
- onDestroy?: () => void;
589
- // (undocumented)
590
- onEditorReady?: (editorActions: EditorActions) => void;
591
- // (undocumented)
592
- persistScrollGutter?: boolean;
593
- // (undocumented)
594
- placeholder?: string;
595
- // (undocumented)
596
- placeholderBracketHint?: string;
597
- // (undocumented)
598
- popupsBoundariesElement?: HTMLElement;
599
- // (undocumented)
600
- popupsMountPoint?: HTMLElement;
601
- // (undocumented)
602
- popupsScrollableElement?: HTMLElement;
603
- // (undocumented)
604
- primaryToolbarIconBefore?: ReactElement;
605
- // (undocumented)
606
- quickInsert?: QuickInsertOptions;
607
- // (undocumented)
608
- secondaryToolbarComponents?: ReactComponents;
609
- // (undocumented)
610
- shouldFocus?: boolean;
611
- trackValidTransactions?: boolean | {
612
- samplingRate: number;
613
- };
614
- // (undocumented)
615
- UNSAFE_useAnalyticsContext?: boolean;
616
- useStickyToolbar?: UseStickyToolbarType;
617
- }
618
-
619
- // @public (undocumented)
620
- interface EditorConfig {
621
- // (undocumented)
622
- contentComponents: UIComponentFactory[];
623
- // (undocumented)
624
- marks: MarkConfig[];
625
- // (undocumented)
626
- nodes: NodeConfig[];
627
- // (undocumented)
628
- onEditorViewStateUpdatedCallbacks: Array<{
629
- pluginName: string;
630
- callback: (props: EditorViewStateUpdatedCallbackProps) => void;
631
- }>;
632
- // (undocumented)
633
- pluginHooks: ReactHookFactory[];
634
- // (undocumented)
635
- pmPlugins: Array<PMPlugin>;
636
- // (undocumented)
637
- primaryToolbarComponents: ToolbarUIComponentFactory[];
638
- // (undocumented)
639
- secondaryToolbarComponents: UIComponentFactory[];
640
- }
641
-
642
- // @public (undocumented)
643
- export class EditorContext extends React_2.Component<EditorContextProps, {}> {
644
- constructor(props: EditorContextProps);
645
- // (undocumented)
646
- static childContextTypes: {
647
- editorActions: PropTypes.Requireable<object>;
648
- };
649
- // (undocumented)
650
- getChildContext(): {
651
- editorActions: EditorActions<any>;
652
- };
653
- // (undocumented)
654
- render(): JSX.Element;
655
- }
656
-
657
- // @public (undocumented)
658
- type EditorContextProps = {
659
- editorActions?: EditorActions;
660
- };
661
-
662
- export { EditorFeatureFlags }
663
-
664
- // @public (undocumented)
665
- export interface EditorInstance {
666
- // (undocumented)
667
- contentComponents: UIComponentFactory[];
668
- // (undocumented)
669
- contentTransformer?: Transformer<string>;
670
- // (undocumented)
671
- editorView: EditorView;
672
- // (undocumented)
673
- eventDispatcher: EventDispatcher;
674
- // (undocumented)
675
- insertMenuItems?: MenuItem[];
676
- // (undocumented)
677
- onEditorViewStateUpdatedCallbacks: {
678
- pluginName: string;
679
- callback: OnEditorViewStateUpdated;
680
- }[];
681
- // (undocumented)
682
- primaryToolbarComponents: ToolbarUIComponentFactory[];
683
- // (undocumented)
684
- secondaryToolbarComponents: UIComponentFactory[];
685
- }
686
-
687
- // @public (undocumented)
688
- interface EditorNextProps extends EditorBaseProps, EditorSharedPropsWithPlugins, EditorProviderProps {
689
- // (undocumented)
690
- preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
691
- }
692
-
693
- // @public (undocumented)
694
- type EditorOnChangeHandler = (editorView: EditorView, meta: {
695
- source: 'local' | 'remote';
696
- }) => void;
697
-
698
- export { EditorPlugin }
699
-
700
- // @public (undocumented)
701
- interface EditorPluginFeatureProps {
702
- // (undocumented)
703
- allowAnalyticsGASV3?: boolean;
704
- // (undocumented)
705
- allowBlockType?: BlockTypePluginOptions['allowBlockType'];
706
- // (undocumented)
707
- allowBreakout?: boolean;
708
- // (undocumented)
709
- allowConfluenceInlineComment?: boolean;
710
- // (undocumented)
711
- allowDate?: DatePluginConfig | boolean;
712
- // (undocumented)
713
- allowExpand?: boolean | {
714
- allowInsertion?: boolean;
715
- allowInteractiveExpand?: boolean;
716
- };
717
- // (undocumented)
718
- allowExtension?: ExtensionConfig | boolean;
719
- // (undocumented)
720
- allowFindReplace?: FindReplaceOptions | boolean;
721
- allowFragmentMark?: boolean;
722
- // (undocumented)
723
- allowHelpDialog?: boolean;
724
- // (undocumented)
725
- allowIndentation?: boolean;
726
- // (undocumented)
727
- allowJiraIssue?: boolean;
728
- // (undocumented)
729
- allowLayouts?: LayoutPluginOptions | boolean;
730
- // (undocumented)
731
- allowNestedTasks?: boolean;
732
- allowNewInsertionBehaviour?: boolean;
733
- // (undocumented)
734
- allowPanel?: PanelPluginConfig | boolean;
735
- // (undocumented)
736
- allowRule?: boolean;
737
- // (undocumented)
738
- allowStatus?: boolean | {
739
- menuDisabled: boolean;
740
- };
741
- // (undocumented)
742
- allowTables?: PluginConfig | boolean;
743
- // (undocumented)
744
- allowTasksAndDecisions?: boolean;
745
- // (undocumented)
746
- allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
747
- // (undocumented)
748
- allowTextAlignment?: boolean;
749
- // (undocumented)
750
- allowTextColor?: TextColorPluginConfig | boolean;
751
- autoScrollIntoView?: boolean;
752
- // (undocumented)
753
- codeBlock?: CodeBlockOptions;
754
- // (undocumented)
755
- elementBrowser?: {
756
- showModal?: boolean;
757
- replacePlusMenu?: boolean;
758
- helpUrl?: string;
759
- emptyStateHandler?: EmptyStateHandler;
760
- };
761
- // (undocumented)
762
- extensionHandlers?: ExtensionHandlers;
763
- // (undocumented)
764
- feedbackInfo?: FeedbackInfo;
765
- // (undocumented)
766
- insertMenuItems?: MenuItem[];
767
- // (undocumented)
768
- maxContentSize?: number;
769
- // (undocumented)
770
- mention?: MentionPluginConfig;
771
- // @deprecated
772
- mentionInsertDisplayName?: boolean;
773
- // (undocumented)
774
- saveOnEnter?: boolean;
775
- // @deprecated (undocumented)
776
- smartLinks?: CardOptions;
777
- // (undocumented)
778
- textFormatting?: TextFormattingOptions;
779
- UNSAFE_allowBorderMark?: boolean;
780
- // @deprecated (undocumented)
781
- UNSAFE_cards?: CardOptions;
782
- // (undocumented)
783
- uploadErrorHandler?: (state: MediaState) => void;
784
- // (undocumented)
785
- waitForMediaUpload?: boolean;
786
- }
787
-
788
- // @public (undocumented)
789
- interface EditorPresetProps {
790
- // (undocumented)
791
- excludes?: Set<string>;
792
- // (undocumented)
793
- experimental?: Array<string>;
794
- // (undocumented)
795
- featureFlags?: EditorFeatureFlags;
796
- }
797
-
798
- // @public (undocumented)
799
- type EditorProduct = 'bitbucket' | 'confluence' | 'jira' | 'stride' | undefined;
800
-
801
- // @public (undocumented)
802
- export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps, EditorSharedPropsWithPlugins, EditorProviderProps {
803
- // @deprecated (undocumented)
804
- dangerouslyAppendPlugins?: {
805
- __plugins: EditorPlugin[];
806
- };
807
- }
808
-
809
- // @public (undocumented)
810
- interface EditorProviderProps {
811
- // (undocumented)
812
- activityProvider?: Promise<ActivityProvider>;
813
- // (undocumented)
814
- annotationProviders?: AnnotationProviders;
815
- // (undocumented)
816
- autoformattingProvider?: Providers['autoformattingProvider'];
817
- // (undocumented)
818
- collabEditProvider?: Providers['collabEditProvider'];
819
- // (undocumented)
820
- contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
821
- // (undocumented)
822
- emojiProvider?: Providers['emojiProvider'];
823
- // (undocumented)
824
- legacyImageUploadProvider?: Providers['imageUploadProvider'];
825
- // (undocumented)
826
- macroProvider?: Providers['macroProvider'];
827
- // (undocumented)
828
- mentionProvider?: Promise<MentionProvider>;
829
- // (undocumented)
830
- presenceProvider?: Promise<any>;
831
- // (undocumented)
832
- searchProvider?: Promise<SearchProvider>;
833
- // (undocumented)
834
- taskDecisionProvider?: Promise<TaskDecisionProvider>;
835
- }
836
-
837
- // @public (undocumented)
838
- interface EditorSharedPropsWithPlugins {
839
- // (undocumented)
840
- allowUndoRedoButtons?: boolean;
841
- // (undocumented)
842
- collabEdit?: CollabEditOptions;
843
- linking?: LinkingOptions;
844
- // (undocumented)
845
- media?: MediaOptions;
846
- // (undocumented)
847
- onSave?: (editorView: EditorView) => void;
848
- performanceTracking?: PerformanceTracking;
849
- // (undocumented)
850
- primaryToolbarComponents?: PrimaryToolbarComponents;
851
- // (undocumented)
852
- sanitizePrivateContent?: boolean;
853
- }
854
-
855
- // @public (undocumented)
856
- interface EditorViewProps {
857
- // (undocumented)
858
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
859
- // (undocumented)
860
- disabled?: boolean;
861
- // (undocumented)
862
- editorProps: EditorNextProps | EditorProps;
863
- // (undocumented)
864
- experienceStore?: ExperienceStore;
865
- // (undocumented)
866
- onEditorCreated: (instance: {
867
- view: EditorView;
868
- config: EditorConfig;
869
- eventDispatcher: EventDispatcher;
870
- transformer?: Transformer_2<string>;
871
- }) => void;
872
- // (undocumented)
873
- onEditorDestroyed: (instance: {
874
- view: EditorView;
875
- config: EditorConfig;
876
- eventDispatcher: EventDispatcher;
877
- transformer?: Transformer_2<string>;
878
- }) => void;
879
- // (undocumented)
880
- portalProviderAPI: PortalProviderAPI;
881
- // (undocumented)
882
- preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
883
- // (undocumented)
884
- providerFactory: ProviderFactory;
885
- // (undocumented)
886
- render?: (props: {
887
- editor: JSX.Element;
888
- view?: EditorView;
889
- config: EditorConfig;
890
- eventDispatcher: EventDispatcher;
891
- transformer?: Transformer_2<string>;
892
- dispatchAnalyticsEvent: DispatchAnalyticsEvent;
893
- editorRef: React_2.RefObject<HTMLDivElement>;
894
- }) => JSX.Element;
895
- // (undocumented)
896
- setEditorApi?: SetEditorAPI;
897
- }
898
-
899
- // @public (undocumented)
900
- type EditorViewStateUpdatedCallbackProps = {
901
- readonly originalTransaction: Readonly<Transaction>;
902
- readonly transactions: readonly Transaction[];
903
- readonly oldEditorState: Readonly<EditorState>;
904
- readonly newEditorState: Readonly<EditorState>;
905
- };
906
-
907
- export { EmojiResource }
908
-
909
- export { EVENT_TYPE }
910
-
911
- export { EventDispatcher }
912
-
913
- // @public (undocumented)
914
- interface ExtensionConfig {
915
- // (undocumented)
916
- allowAutoSave?: boolean;
917
- // (undocumented)
918
- allowBreakout?: boolean;
919
- // (undocumented)
920
- allowExtendFloatingToolbars?: boolean;
921
- }
922
-
923
- // @public (undocumented)
924
- type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
925
-
926
- // @public (undocumented)
927
- type ExtensionProvidersProp = ExtensionProviders | ExtensionProvidersWithEditorAction;
928
-
929
- // @public (undocumented)
930
- type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
931
-
932
- export { ExtensionType }
933
-
934
- // @public (undocumented)
935
- type FeedbackInfo = {
936
- product?: string;
937
- packageVersion?: string;
938
- packageName?: string;
939
- labels?: Array<string>;
940
- sessionId?: string;
941
- contentId?: string;
942
- tabId?: string;
943
- };
944
-
945
- // @public (undocumented)
946
- type FindReplaceOptions = {
947
- allowMatchCase?: boolean;
948
- };
949
-
950
- export { GapCursorSelection }
951
-
952
- export { GapCursorSide }
953
-
954
- // @public (undocumented)
955
- interface GapSelectionData {
956
- // (undocumented)
957
- pos: number;
958
- // (undocumented)
959
- type: 'gapcursor';
960
- }
961
-
962
- // @public (undocumented)
963
- export function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): EditorPresetProps & DefaultPresetPluginOptions & EditorPluginFeatureProps;
964
-
965
- // @public (undocumented)
966
- export function getNodesCount(node: Node_2): Record<string, number>;
967
-
968
- // @public (undocumented)
969
- type getPosHandler = boolean | getPosHandlerNode;
970
-
971
- // @public (undocumented)
972
- type getPosHandlerNode = () => number | undefined;
973
-
974
- // @public
975
- export const historyPluginKey: PluginKey<HistoryPluginState>;
976
-
977
- // @public (undocumented)
978
- export interface HistoryPluginState {
979
- // (undocumented)
980
- canRedo: boolean;
981
- // (undocumented)
982
- canUndo: boolean;
983
- }
984
-
985
- // @public (undocumented)
986
- export type InlineCommentAnnotationProvider = AnnotationTypeProvider<AnnotationTypes.INLINE_COMMENT, InlineCommentState> & {
987
- createComponent?: React_2.ComponentType<InlineCommentCreateComponentProps>;
988
- viewComponent?: React_2.ComponentType<InlineCommentViewComponentProps>;
989
- isToolbarAbove?: boolean;
990
- };
991
-
992
- // @public (undocumented)
993
- export type InlineCommentCreateComponentProps = AnnotationComponentProps & {
994
- onCreate: (id: string) => void;
995
- };
996
-
997
- // @public (undocumented)
998
- export type InlineCommentState = {
999
- resolved: boolean;
1000
- };
1001
-
1002
- // @public (undocumented)
1003
- export type InlineCommentViewComponentProps = AnnotationComponentProps & {
1004
- annotations: Array<AnnotationInfo>;
1005
- onResolve: (id: string) => void;
1006
- onDelete?: (id: string) => void;
1007
- annotationsList?: string[];
1008
- };
1009
-
1010
- export { INPUT_METHOD }
1011
-
1012
- // @public (undocumented)
1013
- export type InsertBlockInputMethodToolbar = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.TOOLBAR;
1014
-
1015
- // @public (undocumented)
1016
- export function insertBlockType(name: string): Command_2;
1017
-
1018
- // @public (undocumented)
1019
- export const insertBlockTypesWithAnalytics: (name: string, inputMethod: BlockTypeInputMethod, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command_2;
1020
-
1021
- // @public (undocumented)
1022
- export const insertDate: (date?: DateType, inputMethod?: InsertBlockInputMethodToolbar, commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER, enterPressed?: boolean) => Command;
1023
-
1024
- // @public (undocumented)
1025
- export const insertExpand: Command;
1026
-
1027
- // @public (undocumented)
1028
- export const insertHorizontalRule: (inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR, featureFlags: EditorFeatureFlags) => Command;
1029
-
1030
- // @public (undocumented)
1031
- type InsertItemProps = {
1032
- contentItem: TypeAheadItem;
1033
- query: string;
1034
- sourceListItem: TypeAheadItem[];
1035
- };
1036
-
1037
- // @public (undocumented)
1038
- export const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean, widthPluginState?: WidthPluginState | undefined, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => boolean;
1039
-
1040
- // @public (undocumented)
1041
- export const insertTaskDecisionCommand: (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | InsertBlockInputMethodToolbar, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
1042
-
1043
- // @public (undocumented)
1044
- interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
1045
- // (undocumented)
1046
- allowBreakout?: boolean;
1047
- // (undocumented)
1048
- UNSAFE_addSidebarLayouts?: boolean;
1049
- // (undocumented)
1050
- UNSAFE_allowSingleColumnLayout?: boolean;
1051
- }
1052
-
1053
- export { lightModeStatusColorPalette }
1054
-
1055
- // @public (undocumented)
1056
- type Listener = (data: any) => void;
1057
-
1058
- export { MacroAttributes }
1059
-
1060
- export { MacroProvider }
1061
-
1062
- // @public (undocumented)
1063
- interface MeasureHelpers {
1064
- // (undocumented)
1065
- startMeasure: (measureName: string) => void;
1066
- // (undocumented)
1067
- stopMeasure: (measureName: string, onMeasureComplete?: (duration: number, startTime: number) => void) => void;
1068
- }
1069
-
1070
- // @public (undocumented)
1071
- type MeasureListener = (entry: SimpleEntry) => void;
1072
-
1073
- // @public (undocumented)
1074
- export const measurements: {
1075
- EDITOR_MOUNTED: string;
1076
- PROSEMIRROR_RENDERED: string;
1077
- PROSEMIRROR_CONTENT_RENDERED: string;
1078
- ON_EDITOR_READY_CALLBACK: string;
1079
- PASTE: string;
1080
- };
1081
-
1082
- // @public (undocumented)
1083
- type MediaNextEditorPluginType = NextEditorPlugin<'media', {
1084
- pluginConfiguration: MediaOptions | undefined;
1085
- dependencies: [
1086
- typeof featureFlagsPlugin,
1087
- OptionalPlugin<typeof analyticsPlugin>,
1088
- typeof guidelinePlugin,
1089
- typeof gridPlugin,
1090
- typeof widthPlugin,
1091
- typeof decorationsPlugin,
1092
- FloatingToolbarPlugin,
1093
- EditorDisabledPlugin,
1094
- FocusPlugin
1095
- ];
1096
- sharedState: MediaPluginState | null;
1097
- }>;
1098
-
1099
- // @public (undocumented)
1100
- interface MediaNodeWithPosHandler {
1101
- // (undocumented)
1102
- getPos: ProsemirrorGetPosHandler;
1103
- // (undocumented)
1104
- node: Node_2;
1105
- }
1106
-
1107
- // @public (undocumented)
1108
- export interface MediaOptions {
1109
- // (undocumented)
1110
- alignLeftOnInsert?: boolean;
1111
- // (undocumented)
1112
- allowAdvancedToolBarOptions?: boolean;
1113
- // (undocumented)
1114
- allowAltTextOnImages?: boolean;
1115
- // (undocumented)
1116
- allowBreakoutSnapPoints?: boolean;
1117
- // (undocumented)
1118
- allowDropzoneDropLine?: boolean;
1119
- // (undocumented)
1120
- allowLazyLoading?: boolean;
1121
- // (undocumented)
1122
- allowLinking?: boolean;
1123
- // (undocumented)
1124
- allowMarkingUploadsAsIncomplete?: boolean;
1125
- // (undocumented)
1126
- allowMediaGroup?: boolean;
1127
- // (undocumented)
1128
- allowMediaSingle?: MediaSingleOptions | boolean;
1129
- // (undocumented)
1130
- allowMediaSingleEditable?: boolean;
1131
- // (undocumented)
1132
- allowRemoteDimensionsFetch?: boolean;
1133
- // (undocumented)
1134
- allowResizing?: boolean;
1135
- // (undocumented)
1136
- allowResizingInTables?: boolean;
1137
- // (undocumented)
1138
- allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
1139
- // (undocumented)
1140
- altTextValidator?: (value: string) => string[];
1141
- // (undocumented)
1142
- customDropzoneContainer?: HTMLElement;
1143
- // (undocumented)
1144
- customMediaPicker?: CustomMediaPicker;
1145
- // (undocumented)
1146
- editorSelectionAPI?: EditorSelectionAPI;
1147
- // (undocumented)
1148
- enableDownloadButton?: boolean;
1149
- // (undocumented)
1150
- featureFlags?: MediaFeatureFlags;
1151
- // (undocumented)
1152
- fullWidthEnabled?: boolean;
1153
- // (undocumented)
1154
- getEditorFeatureFlags?: GetEditorFeatureFlags;
1155
- // (undocumented)
1156
- isCopyPasteEnabled?: boolean;
1157
- // (undocumented)
1158
- provider?: Providers['mediaProvider'];
1159
- // (undocumented)
1160
- uploadErrorHandler?: (state: MediaState) => void;
1161
- // (undocumented)
1162
- useForgePlugins?: boolean;
1163
- // (undocumented)
1164
- waitForMediaUpload?: boolean;
1165
- }
1166
-
1167
- // @public (undocumented)
1168
- export const mediaPlugin: MediaNextEditorPluginType;
1169
-
1170
- // @public (undocumented)
1171
- export const mediaPluginKey: PluginKey<MediaPluginState>;
1172
-
1173
- // @public (undocumented)
1174
- type MediaPluginOptions = {
1175
- providerFactory: ProviderFactory;
1176
- nodeViews: {
1177
- [name: string]: (node: Node_2, view: EditorView, getPos: getPosHandler) => NodeView;
1178
- };
1179
- errorReporter?: ErrorReporter;
1180
- uploadErrorHandler?: (state: MediaState) => void;
1181
- waitForMediaUpload?: boolean;
1182
- customDropzoneContainer?: HTMLElement;
1183
- customMediaPicker?: CustomMediaPicker;
1184
- allowResizing: boolean;
1185
- };
1186
-
1187
- // @public (undocumented)
1188
- interface MediaPluginState {
1189
- // (undocumented)
1190
- addPendingTask: (promise: Promise<any>) => void;
1191
- // (undocumented)
1192
- allowsUploads: boolean;
1193
- // (undocumented)
1194
- allUploadsFinished: boolean;
1195
- // (undocumented)
1196
- destroy(): void;
1197
- // (undocumented)
1198
- dispatch?: Dispatch;
1199
- // (undocumented)
1200
- editingMediaSinglePos?: number;
1201
- // (undocumented)
1202
- element?: HTMLElement;
1203
- // (undocumented)
1204
- findMediaNode: (id: string) => MediaNodeWithPosHandler | null;
1205
- // (undocumented)
1206
- getMediaOptions: () => MediaPluginOptions;
1207
- // (undocumented)
1208
- handleDrag: (dragState: 'enter' | 'leave') => void;
1209
- // (undocumented)
1210
- handleMediaGroupUpdate: (oldNodes: Node_2[], newNodes: Node_2[]) => void;
1211
- // (undocumented)
1212
- handleMediaNodeMount: (node: Node_2, getPos: ProsemirrorGetPosHandler) => void;
1213
- // (undocumented)
1214
- handleMediaNodeRemoval: (node: Node_2 | undefined, getPos: ProsemirrorGetPosHandler) => void;
1215
- // (undocumented)
1216
- handleMediaNodeUnmount: (oldNode: Node_2) => void;
1217
- // (undocumented)
1218
- ignoreLinks: boolean;
1219
- // (undocumented)
1220
- insertFile: (mediaState: MediaState, onMediaStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
1221
- // (undocumented)
1222
- isFullscreen: boolean;
1223
- // (undocumented)
1224
- isResizing: boolean;
1225
- // (undocumented)
1226
- layout: RichMediaLayout;
1227
- // (undocumented)
1228
- mediaClientConfig?: MediaClientConfig;
1229
- // (undocumented)
1230
- mediaNodes: MediaNodeWithPosHandler[];
1231
- // (undocumented)
1232
- mediaOptions?: MediaOptions;
1233
- // (undocumented)
1234
- mediaProvider?: MediaProvider_2;
1235
- // (undocumented)
1236
- onContextIdentifierProvider: (_name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
1237
- // (undocumented)
1238
- onPopupPickerClose: () => void;
1239
- // (undocumented)
1240
- onPopupToggle: (onPopupToogleCallback: (isOpen: boolean) => void) => void;
1241
- // (undocumented)
1242
- options: MediaPluginOptions;
1243
- // (undocumented)
1244
- pickerPromises: Array<Promise<PickerFacade>>;
1245
- // (undocumented)
1246
- pickers: PickerFacade[];
1247
- // (undocumented)
1248
- removeSelectedMediaContainer: () => boolean;
1249
- // (undocumented)
1250
- resizingWidth: number;
1251
- // (undocumented)
1252
- selectedMediaContainerNode: () => Node_2 | undefined;
1253
- // (undocumented)
1254
- setBrowseFn: (browseFn: () => void) => void;
1255
- // (undocumented)
1256
- setIsResizing(isResizing: boolean): void;
1257
- // (undocumented)
1258
- setMediaProvider: (mediaProvider?: Promise<MediaProvider_2>) => Promise<void>;
1259
- // (undocumented)
1260
- setResizingWidth(width: number): void;
1261
- // (undocumented)
1262
- setView(view: EditorView): void;
1263
- // (undocumented)
1264
- showDropzone: boolean;
1265
- // (undocumented)
1266
- showEditingDialog?: boolean;
1267
- // (undocumented)
1268
- showMediaPicker: () => void;
1269
- // (undocumented)
1270
- splitMediaGroup: () => boolean;
1271
- // (undocumented)
1272
- updateAndDispatch(props: Partial<Pick<this, 'allUploadsFinished' | 'allowsUploads' | 'isFullscreen'>>): void;
1273
- // (undocumented)
1274
- updateElement(): void;
1275
- // (undocumented)
1276
- updateMediaSingleNodeAttrs: (id: string, attrs: object) => boolean | undefined;
1277
- // (undocumented)
1278
- uploadMediaClientConfig?: MediaClientConfig;
1279
- // (undocumented)
1280
- waitForMediaUpload: boolean;
1281
- // (undocumented)
1282
- waitForPendingTasks: (timeout?: number, lastTask?: Promise<MediaState | null>) => Promise<MediaState | null>;
1283
- }
1284
-
1285
- export { MediaProvider_2 as MediaProvider }
1286
-
1287
- // @public (undocumented)
1288
- interface MediaSingleOptions {
1289
- // (undocumented)
1290
- disableLayout?: boolean;
1291
- }
1292
-
1293
- // @public (undocumented)
1294
- export interface MediaState {
1295
- // (undocumented)
1296
- collection?: string;
1297
- // (undocumented)
1298
- contextId?: string;
1299
- // (undocumented)
1300
- dimensions?: {
1301
- width: number | undefined;
1302
- height: number | undefined;
1303
- };
1304
- // (undocumented)
1305
- error?: {
1306
- name: string;
1307
- description: string;
1308
- };
1309
- // (undocumented)
1310
- fileMimeType?: string;
1311
- // (undocumented)
1312
- fileName?: string;
1313
- // (undocumented)
1314
- fileSize?: number;
1315
- // (undocumented)
1316
- id: string;
1317
- publicId?: string;
1318
- // (undocumented)
1319
- scaleFactor?: number;
1320
- // (undocumented)
1321
- status?: MediaStateStatus;
1322
- }
1323
-
1324
- // @public (undocumented)
1325
- type MediaStateEvent = MediaState;
1326
-
1327
- // @public (undocumented)
1328
- type MediaStateEventListener = (evt: MediaStateEvent) => void;
1329
-
1330
- // @public (undocumented)
1331
- type MediaStateEventSubscriber = (listener: MediaStateEventListener) => void;
1332
-
1333
- // @public (undocumented)
1334
- type MediaStateStatus = 'cancelled' | 'error' | 'mobile-upload-end' | 'preview' | 'ready' | 'unknown';
1335
-
1336
- // @public (undocumented)
1337
- interface MentionPluginConfig {
1338
- // (undocumented)
1339
- HighlightComponent?: React.ComponentType;
1340
- // (undocumented)
1341
- insertDisplayName?: boolean;
1342
- }
1343
-
1344
- // @public (undocumented)
1345
- export const mentionPluginKey: PluginKey<MentionPluginState>;
1346
-
1347
- // @public (undocumented)
1348
- export type MentionPluginState = {
1349
- mentionProvider?: MentionProvider_2;
1350
- contextIdentifierProvider?: ContextIdentifierProvider;
1351
- mentions?: Array<MentionDescription>;
1352
- canInsertMention?: boolean;
1353
- };
1354
-
1355
- export { MentionProvider }
1356
-
1357
- export { MentionResource }
1358
-
1359
- export { messages }
1360
-
1361
- // @public (undocumented)
1362
- type MobileUploadEndEventPayload = {
1363
- readonly file: MediaFile & {
1364
- readonly collectionName?: string;
1365
- readonly publicId?: string;
1366
- };
1367
- };
1368
-
1369
- // @public (undocumented)
1370
- const name_2: string;
1371
- export { name_2 as name }
1372
-
1373
- // @public (undocumented)
1374
- type NewMediaEvent = (state: MediaState, onStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
1375
-
1376
- // @public (undocumented)
1377
- interface NodeSelectionData {
1378
- // (undocumented)
1379
- anchor: number;
1380
- // (undocumented)
1381
- type: 'node';
1382
- }
1383
-
1384
- // @public (undocumented)
1385
- type OnEditorViewStateUpdated = (props: {
1386
- readonly originalTransaction: Readonly<Transaction>;
1387
- readonly transactions: ReadonlyArray<Transaction>;
1388
- readonly oldEditorState: Readonly<EditorState>;
1389
- readonly newEditorState: Readonly<EditorState>;
1390
- }) => void;
1391
-
1392
- // @public (undocumented)
1393
- export const openDatePicker: () => Command;
1394
-
1395
- export { PaletteColor }
1396
-
1397
- // @public (undocumented)
1398
- interface PanelPluginConfig {
1399
- // (undocumented)
1400
- allowCustomPanel?: boolean;
1401
- // (undocumented)
1402
- allowCustomPanelEdit?: boolean;
1403
- }
1404
-
1405
- // @public (undocumented)
1406
- type PastePluginOptions = {
1407
- cardOptions?: CardOptions;
1408
- sanitizePrivateContent?: boolean;
1409
- };
1410
-
1411
- // @public (undocumented)
1412
- class PickerFacade {
1413
- constructor(pickerType: PickerType, config: PickerFacadeConfig, pickerConfig?: CustomMediaPicker | null | undefined, analyticsName?: string);
1414
- // (undocumented)
1415
- readonly config: PickerFacadeConfig;
1416
- // (undocumented)
1417
- destroy(): void;
1418
- // (undocumented)
1419
- erroredFiles: Set<string>;
1420
- // (undocumented)
1421
- handleMobileUploadEnd: (event: MobileUploadEndEventPayload) => void;
1422
- // (undocumented)
1423
- handleReady: (event: UploadEndEventPayload) => void;
1424
- // (undocumented)
1425
- handleUploadError: ({ error, fileId }: UploadErrorEventPayload) => void;
1426
- // (undocumented)
1427
- handleUploadPreviewUpdate: (event: UploadPreviewUpdateEventPayload) => void;
1428
- // (undocumented)
1429
- init(): Promise<PickerFacade>;
1430
- // (undocumented)
1431
- get mediaPicker(): CustomMediaPicker | undefined;
1432
- // (undocumented)
1433
- onDrag(cb: (state: 'enter' | 'leave') => any): void;
1434
- // (undocumented)
1435
- onNewMedia(cb: NewMediaEvent): void;
1436
- // (undocumented)
1437
- readonly pickerConfig?: CustomMediaPicker | null | undefined;
1438
- // (undocumented)
1439
- setUploadParams(params: UploadParams): void;
1440
- // (undocumented)
1441
- get type(): PickerType;
1442
- }
1443
-
1444
- // @public (undocumented)
1445
- type PickerFacadeConfig = {
1446
- mediaClientConfig: MediaClientConfig;
1447
- errorReporter: ErrorReportingHandler;
1448
- featureFlags?: MediaFeatureFlags_2;
1449
- };
1450
-
1451
- // @public (undocumented)
1452
- type PickerType = 'clipboard' | 'customMediaPicker' | 'dropzone';
1453
-
1454
- // @public (undocumented)
1455
- interface PlaceholderPluginOptions {
1456
- // (undocumented)
1457
- placeholder?: string;
1458
- // (undocumented)
1459
- placeholderBracketHint?: string;
1460
- }
1461
-
1462
- // @public (undocumented)
1463
- interface PlaceholderTextOptions {
1464
- // (undocumented)
1465
- allowInserting?: boolean;
1466
- }
1467
-
1468
- export { PortalProvider }
1469
-
1470
- export { PortalProviderAPI }
1471
-
1472
- export { PortalRenderer }
1473
-
1474
- export { PresenceProvider }
1475
-
1476
- export { PresenceResource }
1477
-
1478
- // @public (undocumented)
1479
- type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
1480
-
1481
- // @public (undocumented)
1482
- interface Props {
1483
- // (undocumented)
1484
- children?: any;
1485
- // (undocumented)
1486
- isExpanded?: boolean;
1487
- // (undocumented)
1488
- onExpand?: () => void;
1489
- // (undocumented)
1490
- onFocus?: (e: React_2.FocusEvent<HTMLInputElement>) => void;
1491
- // (undocumented)
1492
- placeholder?: string;
1493
- }
1494
-
1495
- // @public (undocumented)
1496
- interface Props_2 {
1497
- // (undocumented)
1498
- title?: string;
1499
- // (undocumented)
1500
- titlePosition?: PositionType;
1501
- }
1502
-
1503
- // @public (undocumented)
1504
- interface Props_3 {
1505
- // @deprecated (undocumented)
1506
- labels?: string[];
1507
- // @deprecated (undocumented)
1508
- packageName?: string;
1509
- // @deprecated (undocumented)
1510
- packageVersion?: string;
1511
- // (undocumented)
1512
- popupsBoundariesElement?: HTMLElement;
1513
- // (undocumented)
1514
- popupsMountPoint?: HTMLElement;
1515
- // (undocumented)
1516
- popupsScrollableElement?: HTMLElement;
1517
- // (undocumented)
1518
- product?: EditorProduct;
1519
- }
1520
-
1521
- // @public (undocumented)
1522
- type Props_4 = {
1523
- visible: boolean;
1524
- children?: React_2.ReactElement;
1525
- };
1526
-
1527
- // @public (undocumented)
1528
- type Props_5 = {
1529
- oldPluginState: TypeAheadPluginState;
1530
- newPluginState: TypeAheadPluginState;
1531
- };
1532
-
1533
- // @public (undocumented)
1534
- type ProsemirrorGetPosHandler = () => number | undefined;
1535
-
1536
- export { QuickInsertItem }
1537
-
1538
- export { QuickInsertProvider }
1539
-
1540
- // @public (undocumented)
1541
- type ReactComponents = ReactElement<any> | ReactElement<any>[];
1542
-
1543
- // @public (undocumented)
1544
- export const ReactEditorView: FC<WithIntlProps<EditorViewProps & WrappedComponentProps<"intl">>> & {
1545
- WrappedComponent: ComponentType<EditorViewProps & WrappedComponentProps<"intl">>;
1546
- };
1547
-
1548
- // @public (undocumented)
1549
- class ReactEditorView_2<T = {}> extends React_2.Component<EditorViewProps & WrappedComponentProps & T, {}, EditorReactContext> {
1550
- constructor(props: EditorViewProps & WrappedComponentProps & T, context: EditorReactContext);
1551
- // (undocumented)
1552
- blur: () => void;
1553
- // (undocumented)
1554
- componentDidMount(): void;
1555
- componentWillUnmount(): void;
1556
- // (undocumented)
1557
- config: EditorConfig;
1558
- // (undocumented)
1559
- contentTransformer?: Transformer_2<string>;
1560
- // (undocumented)
1561
- static contextTypes: {
1562
- getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
1563
- };
1564
- // (undocumented)
1565
- createEditorState: (options: CreateEditorStateOptions) => EditorState;
1566
- // (undocumented)
1567
- dispatch: Dispatch;
1568
- // (undocumented)
1569
- dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
1570
- // (undocumented)
1571
- editorRef: React_2.RefObject<HTMLDivElement>;
1572
- // (undocumented)
1573
- editorState: EditorState;
1574
- // (undocumented)
1575
- errorReporter: ErrorReporter;
1576
- // (undocumented)
1577
- eventDispatcher: EventDispatcher;
1578
- // (undocumented)
1579
- experienceStore?: ExperienceStore;
1580
- // (undocumented)
1581
- formatFullWidthAppearance: (appearance: EditorAppearance | undefined) => FULL_WIDTH_MODE;
1582
- // (undocumented)
1583
- getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
1584
- // (undocumented)
1585
- getEditorState: () => EditorState | undefined;
1586
- // (undocumented)
1587
- getEditorView: () => EditorView | undefined;
1588
- // (undocumented)
1589
- getPlugins(preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>): EditorPlugin[];
1590
- // (undocumented)
1591
- handleAnalyticsEvent: FireAnalyticsCallback;
1592
- // (undocumented)
1593
- handleEditorViewRef: (node: HTMLDivElement) => void;
1594
- // (undocumented)
1595
- proseMirrorRenderedSeverity?: SEVERITY;
1596
- // (undocumented)
1597
- reconfigureState(props: EditorViewProps): void;
1598
- // (undocumented)
1599
- render(): JSX.Element;
1600
- // (undocumented)
1601
- resetEditorState: ({ doc, shouldScrollToBottom, }: {
1602
- doc: string;
1603
- shouldScrollToBottom: boolean;
1604
- }) => void;
1605
- // (undocumented)
1606
- transactionTracker: TransactionTracker;
1607
- // (undocumented)
1608
- get transactionTracking(): TransactionTracking;
1609
- // (undocumented)
1610
- UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
1611
- // (undocumented)
1612
- validTransactionCount: number;
1613
- // (undocumented)
1614
- view?: EditorView;
1615
- }
1616
-
1617
- // @public (undocumented)
1618
- interface RectData {
1619
- // (undocumented)
1620
- left: number;
1621
- // (undocumented)
1622
- top: number;
1623
- }
1624
-
1625
- // @public (undocumented)
1626
- export const removeStatus: (showStatusPickerAt: number) => Command;
1627
-
1628
- // @public (undocumented)
1629
- type ScrollGutterPluginOptions = {
1630
- getScrollElement?: (view: EditorView) => HTMLElement | null;
1631
- allowCustomScrollHandler?: boolean;
1632
- persistScrollGutter?: boolean;
1633
- gutterSize?: number;
1634
- };
1635
-
1636
- // @public (undocumented)
1637
- export type SelectionData = AllSelectionData | CellSelectionData | GapSelectionData | NodeSelectionData | TextSelectionData;
1638
-
1639
- // @public (undocumented)
1640
- export interface SelectionDataState {
1641
- // (undocumented)
1642
- markTypes: string[];
1643
- // (undocumented)
1644
- nodeTypes: string[];
1645
- // (undocumented)
1646
- rect: RectData;
1647
- // (undocumented)
1648
- selection: SelectionData;
1649
- }
1650
-
1651
- // @public (undocumented)
1652
- export const selectionPluginKey: PluginKey<any>;
1653
-
1654
- // @public (undocumented)
1655
- interface SelectionPluginOptions extends LongPressSelectionPluginOptions {
1656
- }
1657
-
1658
- // @public (undocumented)
1659
- export function setBlockType(name: string): Command_2;
1660
-
1661
- // @public (undocumented)
1662
- export function setBlockTypeWithAnalytics(name: string, inputMethod: BlockTypeInputMethod, editorAnalyticsApi: EditorAnalyticsAPI | undefined): Command_2;
1663
-
1664
- // @public (undocumented)
1665
- type SetEditorAPI = (editorApi: PublicPluginAPI<any>) => void;
1666
-
1667
- // @public (undocumented)
1668
- export const setIsExpanded: (isExpanded: boolean) => Command_2;
1669
-
1670
- // @public (undocumented)
1671
- export const setKeyboardHeight: (keyboardHeight: number) => Command_2;
1672
-
1673
- // @public (undocumented)
1674
- export const setMobilePaddingTop: (paddingTop: number) => Command_2;
1675
-
1676
- // @public (undocumented)
1677
- export const setStatusPickerAt: (showStatusPickerAt: null | number) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
1678
-
1679
- export { setTextSelection }
1680
-
1681
- // @public (undocumented)
1682
- interface SimpleEntry {
1683
- // (undocumented)
1684
- duration: number;
1685
- // (undocumented)
1686
- name: string;
1687
- // (undocumented)
1688
- startTime: number;
1689
- }
1690
-
1691
- // @public (undocumented)
1692
- interface State {
1693
- }
1694
-
1695
- // @public (undocumented)
1696
- export const statusMessages: {
1697
- placeholder: {
1698
- id: string;
1699
- defaultMessage: string;
1700
- description: string;
1701
- };
1702
- editText: {
1703
- id: string;
1704
- defaultMessage: string;
1705
- description: string;
1706
- };
1707
- editColor: {
1708
- id: string;
1709
- defaultMessage: string;
1710
- description: string;
1711
- };
1712
- };
1713
-
1714
- // @public (undocumented)
1715
- export const statusPluginKey: PluginKey<StatusState>;
1716
-
1717
- // @public (undocumented)
1718
- export type StatusState = {
1719
- isNew: boolean;
1720
- showStatusPickerAt: null | number;
1721
- };
1722
-
1723
- // @public (undocumented)
1724
- export type StatusType = {
1725
- color: Color;
1726
- text: string;
1727
- localId?: string;
1728
- };
1729
-
1730
- // @public (undocumented)
1731
- type SubscribeToToolbarAndPickerUpdates = (editorView: EditorView, cb: (args: SubscribeToToolbarAndPickerUpdatesCallbackArgs) => void) => () => void;
1732
-
1733
- // @public (undocumented)
1734
- export const subscribeToToolbarAndPickerUpdates: SubscribeToToolbarAndPickerUpdates;
1735
-
1736
- // @public (undocumented)
1737
- type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
1738
- dateState?: DatePluginState;
1739
- statusState?: StatusState;
1740
- toolbarConfig: ConfigWithNodeInfo | null | undefined;
1741
- };
1742
-
1743
- // @public (undocumented)
1744
- type SubscribeTypeAheadUpdates = (editorView: EditorView, cb: (props: Props_5) => void) => () => void;
1745
-
1746
- // @public (undocumented)
1747
- export const subscribeTypeAheadUpdates: SubscribeTypeAheadUpdates;
1748
-
1749
- // @public (undocumented)
1750
- export type TaskDecisionInputMethod = INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
1751
-
1752
- // @public (undocumented)
1753
- type TaskDecisionListType = 'decisionList' | 'taskList';
1754
-
1755
- export { TeamMentionResource }
1756
-
1757
- // @public (undocumented)
1758
- type TextColorDefaultColor = {
1759
- color: string;
1760
- label: string;
1761
- };
1762
-
1763
- // @public (undocumented)
1764
- interface TextColorPluginConfig {
1765
- // (undocumented)
1766
- defaultColor?: TextColorDefaultColor;
1767
- }
1768
-
1769
- // @public (undocumented)
1770
- export const textColorPluginKey: PluginKey<TextColorPluginState>;
1771
-
1772
- // @public (undocumented)
1773
- export type TextColorPluginState = {
1774
- palette: Array<PaletteColor>;
1775
- defaultColor: string;
1776
- disabled?: boolean;
1777
- color: null | string;
1778
- };
1779
-
1780
- export { TextFormattingInputMethodBasic }
1781
-
1782
- export { TextFormattingInputMethodToolbar }
1783
-
1784
- // @public (undocumented)
1785
- interface TextSelectionData {
1786
- // (undocumented)
1787
- anchor: number;
1788
- // (undocumented)
1789
- head: number;
1790
- // (undocumented)
1791
- type: 'text';
1792
- }
1793
-
1794
- // @public (undocumented)
1795
- export function ToolbarFeedback(props: Props_3): jsx.JSX.Element;
1796
-
1797
- // @public (undocumented)
1798
- export const ToolbarHelp: React_2.FC<WithIntlProps<Props_2 & WrappedComponentProps<"intl">>> & {
1799
- WrappedComponent: React_2.ComponentType<Props_2 & WrappedComponentProps<"intl">>;
1800
- };
1801
-
1802
- // @public (undocumented)
1803
- class TransactionTracker {
1804
- // (undocumented)
1805
- addMeasureListener(listener: MeasureListener): void;
1806
- // (undocumented)
1807
- bumpDispatchCounter: (options: TransactionTracking) => number;
1808
- // (undocumented)
1809
- getMeasureHelpers: (options: TransactionTracking) => MeasureHelpers;
1810
- // (undocumented)
1811
- removeMeasureListener(listener: MeasureListener): void;
1812
- // (undocumented)
1813
- shouldTrackTransaction(options: TransactionTracking): boolean;
1814
- }
1815
-
1816
- export { TypeAheadItem }
1817
-
1818
- // @public (undocumented)
1819
- export const typeAheadPluginKey: PluginKey<TypeAheadPluginState>;
1820
-
1821
- // @public (undocumented)
1822
- export type TypeAheadPluginState = {
1823
- decorationSet: DecorationSet;
1824
- decorationElement: HTMLElement | null;
1825
- typeAheadHandlers: Array<TypeAheadHandler>;
1826
- query: string;
1827
- items: Array<TypeAheadItem_2>;
1828
- triggerHandler?: TypeAheadHandler;
1829
- selectedIndex: number;
1830
- stats: TypeAheadStatsSerializable | null;
1831
- inputMethod: TypeAheadInputMethod | null;
1832
- };
1833
-
1834
- // @public (undocumented)
1835
- interface TypeAheadStatsSerializable extends TypeAheadStats {
1836
- // (undocumented)
1837
- serialize: () => TypeAheadStats;
1838
- }
1839
-
1840
- // @public (undocumented)
1841
- export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'setselectedannotation' | 'unresolve';
1842
-
1843
- // @public (undocumented)
1844
- export const updateStatus: (status?: StatusType) => Command;
1845
-
1846
- // @public (undocumented)
1847
- export const updateStatusWithAnalytics: (inputMethod: InsertBlockInputMethodToolbar, status?: StatusType) => Command;
1848
-
1849
- // @public (undocumented)
1850
- export const version: string;
1851
-
1852
- // @public (undocumented)
1853
- type VisibilityEvent = 'setvisibility';
1854
-
1855
- // @public (undocumented)
1856
- export class WithEditorActions extends React_2.Component<WithEditorActionsProps, any> {
1857
- // (undocumented)
1858
- componentDidMount(): void;
1859
- // (undocumented)
1860
- componentWillUnmount(): void;
1861
- // (undocumented)
1862
- context: {
1863
- editorActions: EditorActions;
1864
- };
1865
- // (undocumented)
1866
- static contextTypes: {
1867
- editorActions: PropTypes.Validator<object>;
1868
- };
1869
- // (undocumented)
1870
- render(): React_2.ReactElement<any, React_2.JSXElementConstructor<any> | string> | null;
1871
- }
1872
-
1873
- // @public (undocumented)
1874
- interface WithEditorActionsProps {
1875
- // (undocumented)
1876
- render(actions: EditorActions): React_2.ReactElement<any> | null;
1877
- }
1878
-
1879
- // @public (undocumented)
1880
- export class WithHelpTrigger extends React_2.Component<{
1881
- render: (openHelp: () => void) => React_2.ReactNode;
1882
- }, any> {
1883
- // (undocumented)
1884
- static contextTypes: {
1885
- editorActions: PropTypes.Validator<object>;
1886
- };
1887
- // (undocumented)
1888
- openHelp: () => void;
1889
- // (undocumented)
1890
- render(): React_2.ReactNode;
1891
- }
1892
-
1893
- export { WithPluginState }
1894
-
1895
- // (No @packageDocumentation comment for this package)
1896
-
1897
- ```