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