@atlaskit/editor-core 226.1.7 → 226.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/dist/cjs/create-editor/ReactEditorView.js +2 -2
  4. package/dist/cjs/ui/Appearance/Chromeless.js +2 -2
  5. package/dist/cjs/ui/Appearance/Comment/Comment-emotion.js +2 -1
  6. package/dist/cjs/ui/ContextPanel/index.js +2 -1
  7. package/dist/cjs/ui/Toolbar/Toolbar.js +3 -3
  8. package/dist/cjs/ui/quick-insert/ExtensionQuickInsertIcon.js +18 -1
  9. package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +39 -3
  10. package/dist/cjs/version-wrapper.js +1 -1
  11. package/dist/es2019/create-editor/ReactEditorView.js +2 -2
  12. package/dist/es2019/ui/Appearance/Chromeless.js +2 -2
  13. package/dist/es2019/ui/Appearance/Comment/Comment-emotion.js +2 -1
  14. package/dist/es2019/ui/ContextPanel/index.js +2 -1
  15. package/dist/es2019/ui/Toolbar/Toolbar.js +3 -3
  16. package/dist/es2019/ui/quick-insert/ExtensionQuickInsertIcon.js +20 -1
  17. package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +50 -24
  18. package/dist/es2019/version-wrapper.js +1 -1
  19. package/dist/esm/create-editor/ReactEditorView.js +2 -2
  20. package/dist/esm/ui/Appearance/Chromeless.js +2 -2
  21. package/dist/esm/ui/Appearance/Comment/Comment-emotion.js +2 -1
  22. package/dist/esm/ui/ContextPanel/index.js +2 -1
  23. package/dist/esm/ui/Toolbar/Toolbar.js +3 -3
  24. package/dist/esm/ui/quick-insert/ExtensionQuickInsertIcon.js +18 -1
  25. package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +39 -3
  26. package/dist/esm/version-wrapper.js +1 -1
  27. package/package.json +70 -69
  28. package/report.api.md +0 -805
package/report.api.md DELETED
@@ -1,805 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/editor-core"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- /// <reference types="node" />
20
-
21
- import { ACTION } from '@atlaskit/editor-common/analytics';
22
- import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
23
- import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
24
- import type { ActivityProvider } from '@atlaskit/activity-provider';
25
- import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
26
- import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
27
- import type { AnnotationTypes } from '@atlaskit/adf-schema';
28
- import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type';
29
- import type { CardOptions } from '@atlaskit/editor-common/card';
30
- import { CardProvider } from '@atlaskit/editor-common/provider-factory';
31
- import type { CodeBlockOptions } from '@atlaskit/editor-plugin-code-block';
32
- import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
33
- import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
34
- import type { ContextUpdateHandler } from '@atlaskit/editor-common/types';
35
- import type { DatePluginConfig } from '@atlaskit/editor-plugin-date';
36
- import type { EditorActionsOptions } from '@atlaskit/editor-common/types';
37
- import { EditorAppearance } from '@atlaskit/editor-common/types';
38
- import { EditorPlugin } from '@atlaskit/editor-common/types';
39
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
40
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
41
- import { EmojiResource } from '@atlaskit/emoji/resource';
42
- import { EmptyStateHandler } from '@atlaskit/editor-common/types';
43
- import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
44
- import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
45
- import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
46
- import { EventEmitter as EventEmitter_2 } from 'events';
47
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
48
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
49
- import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
50
- import type { FeatureFlags } from '@atlaskit/editor-common/types';
51
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
52
- import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
53
- import { jsx } from '@emotion/react';
54
- import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
55
- import type { LinkingOptions } from '@atlaskit/editor-common/types';
56
- import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
57
- import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
58
- import { MediaOptions } from '@atlaskit/editor-plugin-media/types';
59
- import { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
60
- import type { MediaState } from '@atlaskit/editor-plugin-media/types';
61
- import type { MentionPluginConfig } from '@atlaskit/editor-plugin-mentions';
62
- import { MentionProvider } from '@atlaskit/mention/resource';
63
- import { MentionResource } from '@atlaskit/mention/resource';
64
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
65
- import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
66
- import type { PanelPluginConfig } from '@atlaskit/editor-plugin-panel';
67
- import { PerformanceTracking } from '@atlaskit/editor-common/types';
68
- import type { PlaceholderTextOptions } from '@atlaskit/editor-plugin-placeholder-text';
69
- import type { PluginConfig } from '@atlaskit/editor-plugin-table/types';
70
- import type { PositionType } from '@atlaskit/tooltip/types';
71
- import { PresenceProvider } from '@atlaskit/mention/resource';
72
- import PropTypes from 'prop-types';
73
- import type { Providers } from '@atlaskit/editor-common/provider-factory';
74
- import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
75
- import type { QuickInsertOptions } from '@atlaskit/editor-common/types';
76
- import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
77
- import { default as React_2 } from 'react';
78
- import type { ReactElement } from 'react';
79
- import type { ReplaceRawValue } from '@atlaskit/editor-common/types';
80
- import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
81
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
82
- import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
83
- import { setTextSelection } from '@atlaskit/editor-common/utils';
84
- import type { TaskDecisionProvider } from '@atlaskit/task-decision';
85
- import { TeamMentionResource } from '@atlaskit/mention/team-resource';
86
- import type { TextColorPluginConfig } from '@atlaskit/editor-plugin-text-color';
87
- import type { TextFormattingOptions } from '@atlaskit/editor-common/types';
88
- import { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
89
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
90
- import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
91
- import { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
92
- import { UIComponentFactory } from '@atlaskit/editor-common/types';
93
- import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
94
- import { WithIntlProps } from 'react-intl';
95
- import type { WrappedComponentProps } from 'react-intl';
96
-
97
- export { ACTION };
98
-
99
- export { ACTION_SUBJECT };
100
-
101
- export { ACTION_SUBJECT_ID };
102
-
103
- export { AnalyticsEventPayload };
104
-
105
- // @public (undocumented)
106
- type AnnotationCallback = (params: string) => void;
107
-
108
- // @public (undocumented)
109
- type AnnotationComponentProps = {
110
- textSelection?: string;
111
- dom?: HTMLElement;
112
- onClose?: () => void;
113
- };
114
-
115
- // @public (undocumented)
116
- export type AnnotationInfo = {
117
- id: string;
118
- type: AnnotationTypes.INLINE_COMMENT;
119
- };
120
-
121
- // @public (undocumented)
122
- export interface AnnotationProviders {
123
- // (undocumented)
124
- inlineComment: InlineCommentAnnotationProvider;
125
- }
126
-
127
- // @public (undocumented)
128
- export interface AnnotationState<Type, State> {
129
- // (undocumented)
130
- annotationType: Type;
131
- // (undocumented)
132
- id: string;
133
- // (undocumented)
134
- state: State;
135
- }
136
-
137
- // @public (undocumented)
138
- export interface AnnotationTypeProvider<Type, State> {
139
- // (undocumented)
140
- disallowOnWhitespace?: boolean;
141
- // (undocumented)
142
- getState: (annotationIds: string[]) => Promise<AnnotationState<Type, State>[]>;
143
- // (undocumented)
144
- updateSubscriber?: AnnotationUpdateEmitter;
145
- }
146
-
147
- // @public (undocumented)
148
- export class AnnotationUpdateEmitter extends EventEmitter_2 {
149
- // (undocumented)
150
- off(event: string, listener: AnnotationCallback | VisibilityCallback): this;
151
- // (undocumented)
152
- on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
153
- // (undocumented)
154
- on(event: UpdateEvent, listener: (annotationId: string) => void): this;
155
- }
156
-
157
- // @public (undocumented)
158
- type BeforeAndAfterToolbarComponents = {
159
- before: ReactComponents;
160
- after: ReactComponents;
161
- };
162
-
163
- export { CardProvider };
164
-
165
- // @public (undocumented)
166
- export class CollapsedEditor extends React_2.Component<Props, State> {
167
- // (undocumented)
168
- componentDidUpdate(): void;
169
- // (undocumented)
170
- editorComponent?: Editor;
171
- // (undocumented)
172
- functionalEditor?: boolean;
173
- // (undocumented)
174
- handleEditorRef: (editorRef?: Editor, editorRefCallback?: any) => void;
175
- // (undocumented)
176
- previouslyExpanded?: boolean;
177
- // (undocumented)
178
- render(): any;
179
- }
180
-
181
- // @public (undocumented)
182
- export type Command = (
183
- state: EditorState,
184
- dispatch?: CommandDispatch,
185
- view?: EditorView,
186
- ) => boolean;
187
-
188
- // @public (undocumented)
189
- export type CommandDispatch = (tr: Transaction) => void;
190
-
191
- // @public (undocumented)
192
- export function ContextPanel(props: Props_4): jsx.JSX.Element;
193
-
194
- // @public (undocumented)
195
- export class Editor extends React_2.Component<EditorProps> {
196
- constructor(props: EditorProps);
197
- // (undocumented)
198
- static defaultProps: EditorProps;
199
- // (undocumented)
200
- render(): jsx.JSX.Element;
201
- }
202
-
203
- // @public (undocumented)
204
- export class EditorActions<T = any> implements EditorActionsOptions<T> {
205
- // (undocumented)
206
- __temporaryFixForConfigPanel(): Promise<void>;
207
- // (undocumented)
208
- appendText(text: string): boolean;
209
- // (undocumented)
210
- blur(): boolean;
211
- // (undocumented)
212
- clear(): boolean;
213
- // (undocumented)
214
- dispatchAnalyticsEvent: (payload: AnalyticsEventPayload_2) => void;
215
- // (undocumented)
216
- focus(): boolean;
217
- // (undocumented)
218
- static from<T>(
219
- view: EditorView,
220
- eventDispatcher: EventDispatcher,
221
- transformer?: Transformer_2<T>,
222
- ): EditorActions<T>;
223
- // (undocumented)
224
- getNodeByFragmentLocalId(id: string): Node_2 | undefined;
225
- // (undocumented)
226
- getNodeByLocalId(id: string): Node_2 | undefined;
227
- getResolvedEditorState: () => Promise<ResolvedEditorState | undefined>;
228
- getSelectedNode(): Node_2 | undefined;
229
- // (undocumented)
230
- getValue(): Promise<T | JSONDocNode | undefined>;
231
- // (undocumented)
232
- isDocumentEmpty(): boolean;
233
- // (undocumented)
234
- _privateGetEditorView(): EditorView | undefined;
235
- // (undocumented)
236
- _privateGetEventDispatcher(): EventDispatcher | undefined;
237
- // (undocumented)
238
- _privateRegisterEditor(
239
- editorView: EditorView,
240
- eventDispatcher: EventDispatcher,
241
- contentTransformer?: Transformer_2<T>,
242
- getFeatureFlags?: () => FeatureFlags,
243
- ): void;
244
- // (undocumented)
245
- _privateSubscribe(cb: ContextUpdateHandler): void;
246
- // (undocumented)
247
- _privateUnregisterEditor(): void;
248
- // (undocumented)
249
- _privateUnsubscribe(cb: ContextUpdateHandler): void;
250
- // (undocumented)
251
- replaceDocument(
252
- rawValue: any,
253
- shouldScrollToBottom?: boolean,
254
- shouldAddToHistory?: boolean,
255
- ): boolean;
256
- // (undocumented)
257
- replaceSelection(
258
- rawValue: Array<ReplaceRawValue> | ReplaceRawValue,
259
- tryToReplace?: boolean,
260
- ): boolean;
261
- }
262
-
263
- // @public (undocumented)
264
- interface EditorBaseProps {
265
- // (undocumented)
266
- appearance?: EditorAppearance;
267
- // (undocumented)
268
- assistiveLabel?: string;
269
- // (undocumented)
270
- contentComponents?: ReactComponents;
271
- // (undocumented)
272
- contentTransformerProvider?: (schema: Schema) => Transformer_2<string>;
273
- // (undocumented)
274
- contextPanel?: ReactComponents;
275
- // (undocumented)
276
- defaultValue?: Node_2 | Object | string;
277
- // (undocumented)
278
- disabled?: boolean;
279
- // (undocumented)
280
- editorActions?: EditorActions;
281
- // (undocumented)
282
- errorReporterHandler?: ErrorReportingHandler;
283
- // (undocumented)
284
- extensionProviders?: ExtensionProvidersProp;
285
- featureFlags?: {
286
- [featureFlag: string]: boolean | string;
287
- };
288
- // @deprecated
289
- inputSamplingLimit?: number;
290
- // (undocumented)
291
- maxHeight?: number;
292
- // (undocumented)
293
- minHeight?: number;
294
- // (undocumented)
295
- onCancel?: (editorView: EditorView) => void;
296
- // (undocumented)
297
- onChange?: EditorOnChangeHandler;
298
- // (undocumented)
299
- onDestroy?: () => void;
300
- // (undocumented)
301
- onEditorReady?: (editorActions: EditorActions) => void;
302
- // (undocumented)
303
- persistScrollGutter?: boolean;
304
- // (undocumented)
305
- placeholder?: string;
306
- // (undocumented)
307
- placeholderBracketHint?: string;
308
- // (undocumented)
309
- popupsBoundariesElement?: HTMLElement;
310
- // (undocumented)
311
- popupsMountPoint?: HTMLElement;
312
- // (undocumented)
313
- popupsScrollableElement?: HTMLElement;
314
- // (undocumented)
315
- primaryToolbarIconBefore?: ReactElement;
316
- // (undocumented)
317
- quickInsert?: QuickInsertOptions;
318
- // (undocumented)
319
- secondaryToolbarComponents?: ReactComponents;
320
- // (undocumented)
321
- shouldFocus?: boolean;
322
- trackValidTransactions?:
323
- | boolean
324
- | {
325
- samplingRate: number;
326
- };
327
- // (undocumented)
328
- UNSAFE_useAnalyticsContext?: boolean;
329
- useStickyToolbar?: UseStickyToolbarType;
330
- }
331
-
332
- // @public (undocumented)
333
- export class EditorContext extends React_2.Component<EditorContextProps, {}> {
334
- constructor(props: EditorContextProps);
335
- // (undocumented)
336
- static childContextTypes: {
337
- editorActions: PropTypes.Requireable<object>;
338
- };
339
- // (undocumented)
340
- getChildContext(): {
341
- editorActions: EditorActions<any>;
342
- };
343
- // (undocumented)
344
- render(): JSX.Element;
345
- }
346
-
347
- // @public (undocumented)
348
- type EditorContextProps = {
349
- editorActions?: EditorActions;
350
- };
351
-
352
- // @public (undocumented)
353
- export interface EditorInstance {
354
- // (undocumented)
355
- contentComponents: UIComponentFactory[];
356
- // (undocumented)
357
- contentTransformer?: Transformer<string>;
358
- // (undocumented)
359
- editorView: EditorView;
360
- // (undocumented)
361
- eventDispatcher: EventDispatcher;
362
- // (undocumented)
363
- insertMenuItems?: MenuItem[];
364
- // (undocumented)
365
- onEditorViewStateUpdatedCallbacks: {
366
- pluginName: string;
367
- callback: OnEditorViewStateUpdated;
368
- }[];
369
- // (undocumented)
370
- primaryToolbarComponents: ToolbarUIComponentFactory[];
371
- // (undocumented)
372
- secondaryToolbarComponents: UIComponentFactory[];
373
- }
374
-
375
- // @public (undocumented)
376
- type EditorOnChangeHandler = (
377
- editorView: EditorView,
378
- meta: {
379
- source: 'local' | 'remote';
380
- },
381
- ) => void;
382
-
383
- export { EditorPlugin };
384
-
385
- // @public (undocumented)
386
- interface EditorPluginFeatureProps {
387
- // (undocumented)
388
- allowAnalyticsGASV3?: boolean;
389
- // (undocumented)
390
- allowBlockType?: BlockTypePluginOptions['allowBlockType'];
391
- allowBorderMark?: boolean;
392
- // (undocumented)
393
- allowBreakout?: boolean;
394
- // (undocumented)
395
- allowConfluenceInlineComment?: boolean;
396
- // (undocumented)
397
- allowDate?: DatePluginConfig | boolean;
398
- // (undocumented)
399
- allowExpand?:
400
- | boolean
401
- | {
402
- allowInsertion?: boolean;
403
- allowInteractiveExpand?: boolean;
404
- };
405
- // (undocumented)
406
- allowExtension?: ExtensionConfig | boolean;
407
- // (undocumented)
408
- allowFindReplace?: FindReplaceOptions | boolean;
409
- allowFragmentMark?: boolean;
410
- // (undocumented)
411
- allowHelpDialog?: boolean;
412
- // (undocumented)
413
- allowIndentation?: boolean;
414
- // (undocumented)
415
- allowJiraIssue?: boolean;
416
- // (undocumented)
417
- allowLayouts?: LayoutPluginOptions | boolean;
418
- // (undocumented)
419
- allowNestedTasks?: boolean;
420
- allowNewInsertionBehaviour?: boolean;
421
- // (undocumented)
422
- allowPanel?: PanelPluginConfig | boolean;
423
- // (undocumented)
424
- allowRule?: boolean;
425
- // (undocumented)
426
- allowStatus?:
427
- | boolean
428
- | {
429
- menuDisabled: boolean;
430
- };
431
- // (undocumented)
432
- allowTables?: PluginConfig | boolean;
433
- // (undocumented)
434
- allowTasksAndDecisions?: boolean;
435
- // (undocumented)
436
- allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
437
- // (undocumented)
438
- allowTextAlignment?: boolean;
439
- // (undocumented)
440
- allowTextColor?: TextColorPluginConfig | boolean;
441
- autoScrollIntoView?: boolean;
442
- // (undocumented)
443
- codeBlock?: CodeBlockOptions;
444
- // (undocumented)
445
- elementBrowser?: {
446
- showModal?: boolean;
447
- replacePlusMenu?: boolean;
448
- helpUrl?: string;
449
- emptyStateHandler?: EmptyStateHandler;
450
- };
451
- // (undocumented)
452
- extensionHandlers?: ExtensionHandlers;
453
- // (undocumented)
454
- feedbackInfo?: FeedbackInfo;
455
- // (undocumented)
456
- insertMenuItems?: MenuItem[];
457
- // (undocumented)
458
- maxContentSize?: number;
459
- // (undocumented)
460
- mention?: MentionPluginConfig;
461
- // @deprecated
462
- mentionInsertDisplayName?: boolean;
463
- // (undocumented)
464
- saveOnEnter?: boolean;
465
- // (undocumented)
466
- showIndentationButtons?: boolean;
467
- // @deprecated (undocumented)
468
- smartLinks?: CardOptions;
469
- // (undocumented)
470
- textFormatting?: TextFormattingOptions;
471
- // @deprecated
472
- UNSAFE_allowBorderMark?: boolean;
473
- // @deprecated (undocumented)
474
- UNSAFE_cards?: CardOptions;
475
- // (undocumented)
476
- uploadErrorHandler?: (state: MediaState) => void;
477
- // (undocumented)
478
- waitForMediaUpload?: boolean;
479
- }
480
-
481
- // @public (undocumented)
482
- type EditorProduct = 'bitbucket' | 'confluence' | 'jira' | 'stride' | undefined;
483
-
484
- // @public (undocumented)
485
- export interface EditorProps
486
- extends EditorBaseProps,
487
- EditorPluginFeatureProps,
488
- EditorSharedPropsWithPlugins,
489
- EditorProviderProps {
490
- // @deprecated (undocumented)
491
- dangerouslyAppendPlugins?: {
492
- __plugins: EditorPlugin[];
493
- };
494
- }
495
-
496
- // @public (undocumented)
497
- interface EditorProviderProps {
498
- // (undocumented)
499
- activityProvider?: Promise<ActivityProvider>;
500
- // (undocumented)
501
- annotationProviders?: AnnotationProviders;
502
- // (undocumented)
503
- autoformattingProvider?: Providers['autoformattingProvider'];
504
- // (undocumented)
505
- collabEditProvider?: Providers['collabEditProvider'];
506
- // (undocumented)
507
- contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
508
- // (undocumented)
509
- emojiProvider?: Providers['emojiProvider'];
510
- // (undocumented)
511
- legacyImageUploadProvider?: Providers['imageUploadProvider'];
512
- // (undocumented)
513
- macroProvider?: Providers['macroProvider'];
514
- // (undocumented)
515
- mentionProvider?: Promise<MentionProvider>;
516
- // (undocumented)
517
- presenceProvider?: Promise<any>;
518
- // (undocumented)
519
- searchProvider?: Promise<SearchProvider>;
520
- // (undocumented)
521
- taskDecisionProvider?: Promise<TaskDecisionProvider>;
522
- }
523
-
524
- // @public (undocumented)
525
- interface EditorSharedPropsWithPlugins {
526
- // (undocumented)
527
- allowUndoRedoButtons?: boolean;
528
- // (undocumented)
529
- collabEdit?: CollabEditOptions;
530
- // (undocumented)
531
- hideAvatarGroup?: boolean;
532
- linking?: LinkingOptions;
533
- // (undocumented)
534
- media?: MediaOptions;
535
- // (undocumented)
536
- onSave?: (editorView: EditorView) => void;
537
- performanceTracking?: PerformanceTracking;
538
- // (undocumented)
539
- primaryToolbarComponents?: PrimaryToolbarComponents;
540
- // (undocumented)
541
- sanitizePrivateContent?: boolean;
542
- }
543
-
544
- export { EmojiResource };
545
-
546
- export { EVENT_TYPE };
547
-
548
- // @public (undocumented)
549
- interface ExtensionConfig {
550
- // (undocumented)
551
- allowAutoSave?: boolean;
552
- // (undocumented)
553
- allowBreakout?: boolean;
554
- // (undocumented)
555
- allowExtendFloatingToolbars?: boolean;
556
- }
557
-
558
- // @public (undocumented)
559
- type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
560
-
561
- // @public (undocumented)
562
- type ExtensionProvidersProp = ExtensionProviders | ExtensionProvidersWithEditorAction;
563
-
564
- // @public (undocumented)
565
- type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
566
-
567
- export { ExtensionType };
568
-
569
- // @public (undocumented)
570
- type FeedbackInfo = {
571
- product?: string;
572
- packageVersion?: string;
573
- packageName?: string;
574
- labels?: Array<string>;
575
- sessionId?: string;
576
- contentId?: string;
577
- tabId?: string;
578
- };
579
-
580
- // @public (undocumented)
581
- type FindReplaceOptions = {
582
- allowMatchCase?: boolean;
583
- };
584
-
585
- // @public (undocumented)
586
- export function getNodesCount(node: Node_2): Record<string, number>;
587
-
588
- // @public (undocumented)
589
- export type InlineCommentAnnotationProvider = AnnotationTypeProvider<
590
- AnnotationTypes.INLINE_COMMENT,
591
- InlineCommentState
592
- > & {
593
- createComponent?: React_2.ComponentType<InlineCommentCreateComponentProps>;
594
- viewComponent?: React_2.ComponentType<InlineCommentViewComponentProps>;
595
- isToolbarAbove?: boolean;
596
- };
597
-
598
- // @public (undocumented)
599
- export type InlineCommentCreateComponentProps = AnnotationComponentProps & {
600
- onCreate: (id: string) => void;
601
- };
602
-
603
- // @public (undocumented)
604
- export type InlineCommentState = {
605
- resolved: boolean;
606
- };
607
-
608
- // @public (undocumented)
609
- export type InlineCommentViewComponentProps = AnnotationComponentProps & {
610
- annotations: Array<AnnotationInfo>;
611
- onResolve: (id: string) => void;
612
- onDelete?: (id: string) => void;
613
- annotationsList?: string[];
614
- };
615
-
616
- export { INPUT_METHOD };
617
-
618
- export { MacroAttributes };
619
-
620
- export { MacroProvider };
621
-
622
- // @public (undocumented)
623
- export const measurements: {
624
- EDITOR_MOUNTED: string;
625
- PROSEMIRROR_RENDERED: string;
626
- PROSEMIRROR_CONTENT_RENDERED: string;
627
- ON_EDITOR_READY_CALLBACK: string;
628
- PASTE: string;
629
- };
630
-
631
- export { MediaOptions };
632
-
633
- export { MediaProvider_2 as MediaProvider };
634
-
635
- export { MentionProvider };
636
-
637
- export { MentionResource };
638
-
639
- // @public (undocumented)
640
- const name_2: string;
641
- export { name_2 as name };
642
-
643
- // @public (undocumented)
644
- type OnEditorViewStateUpdated = (props: {
645
- readonly originalTransaction: Readonly<Transaction>;
646
- readonly transactions: ReadonlyArray<Transaction>;
647
- readonly oldEditorState: Readonly<EditorState>;
648
- readonly newEditorState: Readonly<EditorState>;
649
- }) => void;
650
-
651
- export { PortalProvider };
652
-
653
- export { PortalProviderAPI };
654
-
655
- export { PortalRenderer };
656
-
657
- export { PresenceProvider };
658
-
659
- // @public (undocumented)
660
- type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
661
-
662
- // @public (undocumented)
663
- interface Props {
664
- // (undocumented)
665
- children?: any;
666
- // (undocumented)
667
- isExpanded?: boolean;
668
- // (undocumented)
669
- onExpand?: () => void;
670
- // (undocumented)
671
- onFocus?: (e: React_2.FocusEvent<HTMLInputElement>) => void;
672
- // (undocumented)
673
- placeholder?: string;
674
- }
675
-
676
- // @public (undocumented)
677
- interface Props_2 {
678
- // (undocumented)
679
- title?: string;
680
- // (undocumented)
681
- titlePosition?: PositionType;
682
- }
683
-
684
- // @public (undocumented)
685
- interface Props_3 {
686
- // @deprecated (undocumented)
687
- labels?: string[];
688
- // @deprecated (undocumented)
689
- packageName?: string;
690
- // @deprecated (undocumented)
691
- packageVersion?: string;
692
- // (undocumented)
693
- popupsBoundariesElement?: HTMLElement;
694
- // (undocumented)
695
- popupsMountPoint?: HTMLElement;
696
- // (undocumented)
697
- popupsScrollableElement?: HTMLElement;
698
- // (undocumented)
699
- product?: EditorProduct;
700
- }
701
-
702
- // @public (undocumented)
703
- type Props_4 = {
704
- visible: boolean;
705
- children?: React_2.ReactElement;
706
- };
707
-
708
- export { QuickInsertItem };
709
-
710
- export { QuickInsertProvider };
711
-
712
- // @public (undocumented)
713
- type ReactComponents = ReactElement<any> | ReactElement<any>[];
714
-
715
- export { setTextSelection };
716
-
717
- // @public (undocumented)
718
- interface State {}
719
-
720
- export { TeamMentionResource };
721
-
722
- // @public (undocumented)
723
- export function ToolbarFeedback(props: Props_3): jsx.JSX.Element;
724
-
725
- // @public (undocumented)
726
- export const ToolbarHelp: React_2.FC<WithIntlProps<Props_2 & WrappedComponentProps<'intl'>>> & {
727
- WrappedComponent: React_2.ComponentType<Props_2 & WrappedComponentProps<'intl'>>;
728
- };
729
-
730
- export { TypeAheadItem };
731
-
732
- // @public (undocumented)
733
- export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'setselectedannotation' | 'unresolve';
734
-
735
- // @public (undocumented)
736
- export const version: string;
737
-
738
- // @public (undocumented)
739
- type VisibilityCallback = (params: boolean) => void;
740
-
741
- // @public (undocumented)
742
- type VisibilityEvent = 'setvisibility';
743
-
744
- // @public (undocumented)
745
- export class WithEditorActions extends React_2.Component<WithEditorActionsProps, any> {
746
- // (undocumented)
747
- componentDidMount(): void;
748
- // (undocumented)
749
- componentWillUnmount(): void;
750
- // (undocumented)
751
- context: {
752
- editorActions: EditorActions;
753
- };
754
- // (undocumented)
755
- static contextTypes: {
756
- editorActions: PropTypes.Validator<object>;
757
- };
758
- // (undocumented)
759
- render(): React_2.ReactElement<any, React_2.JSXElementConstructor<any> | string> | null;
760
- }
761
-
762
- // @public (undocumented)
763
- interface WithEditorActionsProps {
764
- // (undocumented)
765
- render(actions: EditorActions): React_2.ReactElement<any> | null;
766
- }
767
-
768
- // @public (undocumented)
769
- export class WithHelpTrigger extends React_2.Component<WithHelpTriggerProps, any> {
770
- // (undocumented)
771
- static contextTypes: {
772
- editorActions: PropTypes.Validator<object>;
773
- };
774
- // (undocumented)
775
- openHelp: () => void;
776
- // (undocumented)
777
- render(): React_2.ReactNode;
778
- }
779
-
780
- // @public (undocumented)
781
- interface WithHelpTriggerProps {
782
- // (undocumented)
783
- render: (openHelp: () => void) => React_2.ReactNode;
784
- }
785
-
786
- // (No @packageDocumentation comment for this package)
787
- ```
788
-
789
- <!--SECTION END: Main Entry Types-->
790
-
791
- ### Peer Dependencies
792
-
793
- <!--SECTION START: Peer Dependencies-->
794
-
795
- ```json
796
- {
797
- "@atlaskit/link-provider": "^1.6.2",
798
- "@atlaskit/media-core": "^34.1.2",
799
- "react": "^16.8.0",
800
- "react-dom": "^16.8.0",
801
- "react-intl": "npm:react-intl@^5.18.1"
802
- }
803
- ```
804
-
805
- <!--SECTION END: Peer Dependencies-->