@atlaskit/editor-core 188.7.6 → 188.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/composable-editor/editor-internal.js +2 -2
- package/dist/cjs/create-editor/ReactEditorView.js +796 -8
- package/dist/cjs/labs/next/presets/universal.js +7 -4
- package/dist/cjs/plugins/index.js +0 -21
- package/dist/cjs/plugins/type-ahead/index.js +4 -372
- package/dist/cjs/plugins/type-ahead/plugin.js +382 -0
- package/dist/cjs/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +17 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +753 -2
- package/dist/es2019/labs/next/presets/universal.js +4 -1
- package/dist/es2019/plugins/index.js +0 -3
- package/dist/es2019/plugins/type-ahead/index.js +2 -375
- package/dist/es2019/plugins/type-ahead/plugin.js +381 -0
- package/dist/es2019/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +17 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +797 -8
- package/dist/esm/labs/next/presets/universal.js +4 -1
- package/dist/esm/plugins/index.js +0 -3
- package/dist/esm/plugins/type-ahead/index.js +2 -368
- package/dist/esm/plugins/type-ahead/plugin.js +374 -0
- package/dist/esm/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +17 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +119 -5
- package/dist/types/labs/next/presets/default.d.ts +30 -12
- package/dist/types/plugins/index.d.ts +0 -3
- package/dist/types/plugins/insert-block/types.d.ts +1 -1
- package/dist/types/plugins/type-ahead/index.d.ts +3 -14
- package/dist/types/plugins/type-ahead/plugin.d.ts +10 -0
- package/dist/types/plugins/type-ahead/types.d.ts +51 -6
- package/dist/types/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +119 -5
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +30 -12
- package/dist/types-ts4.5/plugins/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/type-ahead/index.d.ts +3 -14
- package/dist/types-ts4.5/plugins/type-ahead/plugin.d.ts +10 -0
- package/dist/types-ts4.5/plugins/type-ahead/types.d.ts +53 -6
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
- package/package.json +6 -4
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +0 -812
- package/dist/cjs/create-editor/ReactEditorViewNext.js +0 -15
- package/dist/cjs/plugins/save-on-enter/index.js +0 -70
- package/dist/cjs/plugins/scroll-into-view/index.js +0 -55
- package/dist/cjs/plugins/status/actions.js +0 -158
- package/dist/cjs/plugins/status/analytics.js +0 -31
- package/dist/cjs/plugins/status/index.js +0 -143
- package/dist/cjs/plugins/status/keymap.js +0 -22
- package/dist/cjs/plugins/status/nodeviews/status.js +0 -58
- package/dist/cjs/plugins/status/plugin-key.js +0 -9
- package/dist/cjs/plugins/status/plugin.js +0 -133
- package/dist/cjs/plugins/status/types.js +0 -5
- package/dist/cjs/plugins/status/ui/statusPicker.js +0 -314
- package/dist/cjs/plugins/status/utils.js +0 -22
- package/dist/cjs/plugins/view-update-subscription/subscribe/type-ahead-updates.js +0 -33
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +0 -753
- package/dist/es2019/create-editor/ReactEditorViewNext.js +0 -7
- package/dist/es2019/plugins/save-on-enter/index.js +0 -63
- package/dist/es2019/plugins/scroll-into-view/index.js +0 -44
- package/dist/es2019/plugins/status/actions.js +0 -144
- package/dist/es2019/plugins/status/analytics.js +0 -18
- package/dist/es2019/plugins/status/index.js +0 -135
- package/dist/es2019/plugins/status/keymap.js +0 -13
- package/dist/es2019/plugins/status/nodeviews/status.js +0 -60
- package/dist/es2019/plugins/status/plugin-key.js +0 -3
- package/dist/es2019/plugins/status/plugin.js +0 -113
- package/dist/es2019/plugins/status/types.js +0 -1
- package/dist/es2019/plugins/status/ui/statusPicker.js +0 -293
- package/dist/es2019/plugins/status/utils.js +0 -12
- package/dist/es2019/plugins/view-update-subscription/subscribe/type-ahead-updates.js +0 -28
- package/dist/esm/create-editor/ReactEditorViewInternal.js +0 -806
- package/dist/esm/create-editor/ReactEditorViewNext.js +0 -7
- package/dist/esm/plugins/save-on-enter/index.js +0 -63
- package/dist/esm/plugins/scroll-into-view/index.js +0 -50
- package/dist/esm/plugins/status/actions.js +0 -151
- package/dist/esm/plugins/status/analytics.js +0 -24
- package/dist/esm/plugins/status/index.js +0 -136
- package/dist/esm/plugins/status/keymap.js +0 -15
- package/dist/esm/plugins/status/nodeviews/status.js +0 -51
- package/dist/esm/plugins/status/plugin-key.js +0 -3
- package/dist/esm/plugins/status/plugin.js +0 -115
- package/dist/esm/plugins/status/types.js +0 -1
- package/dist/esm/plugins/status/ui/statusPicker.js +0 -308
- package/dist/esm/plugins/status/utils.js +0 -16
- package/dist/esm/plugins/view-update-subscription/subscribe/type-ahead-updates.js +0 -27
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +0 -119
- package/dist/types/create-editor/ReactEditorViewNext.d.ts +0 -8
- package/dist/types/plugins/save-on-enter/index.d.ts +0 -10
- package/dist/types/plugins/scroll-into-view/index.d.ts +0 -14
- package/dist/types/plugins/status/actions.d.ts +0 -16
- package/dist/types/plugins/status/analytics.d.ts +0 -4
- package/dist/types/plugins/status/index.d.ts +0 -15
- package/dist/types/plugins/status/keymap.d.ts +0 -3
- package/dist/types/plugins/status/nodeviews/status.d.ts +0 -25
- package/dist/types/plugins/status/plugin-key.d.ts +0 -4
- package/dist/types/plugins/status/plugin.d.ts +0 -7
- package/dist/types/plugins/status/types.d.ts +0 -18
- package/dist/types/plugins/status/ui/statusPicker.d.ts +0 -63
- package/dist/types/plugins/status/utils.d.ts +0 -5
- package/dist/types/plugins/view-update-subscription/subscribe/type-ahead-updates.d.ts +0 -9
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +0 -119
- package/dist/types-ts4.5/create-editor/ReactEditorViewNext.d.ts +0 -8
- package/dist/types-ts4.5/plugins/save-on-enter/index.d.ts +0 -10
- package/dist/types-ts4.5/plugins/scroll-into-view/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/status/actions.d.ts +0 -16
- package/dist/types-ts4.5/plugins/status/analytics.d.ts +0 -4
- package/dist/types-ts4.5/plugins/status/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/status/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/status/nodeviews/status.d.ts +0 -25
- package/dist/types-ts4.5/plugins/status/plugin-key.d.ts +0 -4
- package/dist/types-ts4.5/plugins/status/plugin.d.ts +0 -7
- package/dist/types-ts4.5/plugins/status/types.d.ts +0 -18
- package/dist/types-ts4.5/plugins/status/ui/statusPicker.d.ts +0 -63
- package/dist/types-ts4.5/plugins/status/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/type-ahead-updates.d.ts +0 -9
|
@@ -281,7 +281,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
281
281
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
282
282
|
sharedState: import("@atlaskit/editor-plugin-composition").CompositionState;
|
|
283
283
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
284
|
-
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
284
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
285
285
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
286
286
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
287
287
|
sharedState: {
|
|
@@ -296,6 +296,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
296
296
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
297
297
|
sharedState: {
|
|
298
298
|
query: string;
|
|
299
|
+
isOpen: boolean;
|
|
300
|
+
isAllowed: boolean;
|
|
301
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
299
302
|
};
|
|
300
303
|
actions: {
|
|
301
304
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -323,7 +326,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
323
326
|
query?: string | undefined;
|
|
324
327
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
325
328
|
};
|
|
326
|
-
}, TypeAheadPluginOptions | undefined>];
|
|
329
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>];
|
|
327
330
|
}, PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
328
331
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
329
332
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -340,6 +343,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
340
343
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
341
344
|
sharedState: {
|
|
342
345
|
query: string;
|
|
346
|
+
isOpen: boolean;
|
|
347
|
+
isAllowed: boolean;
|
|
348
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
343
349
|
};
|
|
344
350
|
actions: {
|
|
345
351
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -354,7 +360,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
354
360
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
355
361
|
open: (props: {
|
|
356
362
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
357
|
-
inputMethod: import("
|
|
363
|
+
inputMethod: import("../../../plugins/type-ahead").TypeAheadInputMethod;
|
|
358
364
|
query?: string | undefined;
|
|
359
365
|
}) => boolean;
|
|
360
366
|
close: (props: {
|
|
@@ -363,14 +369,14 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
363
369
|
}) => boolean;
|
|
364
370
|
openAtTransaction: (props: {
|
|
365
371
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
366
|
-
inputMethod: import("
|
|
372
|
+
inputMethod: import("../../../plugins/type-ahead").TypeAheadInputMethod;
|
|
367
373
|
query?: string | undefined;
|
|
368
374
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
369
375
|
};
|
|
370
376
|
}, TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
371
377
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
372
378
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
373
|
-
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
379
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
374
380
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
375
381
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
376
382
|
sharedState: {
|
|
@@ -385,6 +391,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
385
391
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
386
392
|
sharedState: {
|
|
387
393
|
query: string;
|
|
394
|
+
isOpen: boolean;
|
|
395
|
+
isAllowed: boolean;
|
|
396
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
388
397
|
};
|
|
389
398
|
actions: {
|
|
390
399
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -412,7 +421,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
412
421
|
query?: string | undefined;
|
|
413
422
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
414
423
|
};
|
|
415
|
-
}, TypeAheadPluginOptions | undefined>];
|
|
424
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>];
|
|
416
425
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
417
426
|
actions: {
|
|
418
427
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
@@ -723,7 +732,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
723
732
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
724
733
|
sharedState: import("@atlaskit/editor-plugin-composition").CompositionState;
|
|
725
734
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
726
|
-
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
735
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
727
736
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
728
737
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
729
738
|
sharedState: {
|
|
@@ -738,6 +747,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
738
747
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
739
748
|
sharedState: {
|
|
740
749
|
query: string;
|
|
750
|
+
isOpen: boolean;
|
|
751
|
+
isAllowed: boolean;
|
|
752
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
741
753
|
};
|
|
742
754
|
actions: {
|
|
743
755
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -765,7 +777,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
765
777
|
query?: string | undefined;
|
|
766
778
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
767
779
|
};
|
|
768
|
-
}, TypeAheadPluginOptions | undefined>];
|
|
780
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>];
|
|
769
781
|
}, PlaceholderPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
770
782
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
771
783
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -782,6 +794,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
782
794
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
783
795
|
sharedState: {
|
|
784
796
|
query: string;
|
|
797
|
+
isOpen: boolean;
|
|
798
|
+
isAllowed: boolean;
|
|
799
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
785
800
|
};
|
|
786
801
|
actions: {
|
|
787
802
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -796,7 +811,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
796
811
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
797
812
|
open: (props: {
|
|
798
813
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
799
|
-
inputMethod: import("
|
|
814
|
+
inputMethod: import("../../../plugins/type-ahead").TypeAheadInputMethod;
|
|
800
815
|
query?: string | undefined;
|
|
801
816
|
}) => boolean;
|
|
802
817
|
close: (props: {
|
|
@@ -805,14 +820,14 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
805
820
|
}) => boolean;
|
|
806
821
|
openAtTransaction: (props: {
|
|
807
822
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
808
|
-
inputMethod: import("
|
|
823
|
+
inputMethod: import("../../../plugins/type-ahead").TypeAheadInputMethod;
|
|
809
824
|
query?: string | undefined;
|
|
810
825
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
811
826
|
};
|
|
812
827
|
}, TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"quickInsert", {
|
|
813
828
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
814
829
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
815
|
-
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
830
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
816
831
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
817
832
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
818
833
|
sharedState: {
|
|
@@ -827,6 +842,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
827
842
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
828
843
|
sharedState: {
|
|
829
844
|
query: string;
|
|
845
|
+
isOpen: boolean;
|
|
846
|
+
isAllowed: boolean;
|
|
847
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
830
848
|
};
|
|
831
849
|
actions: {
|
|
832
850
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -854,7 +872,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
854
872
|
query?: string | undefined;
|
|
855
873
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
856
874
|
};
|
|
857
|
-
}, TypeAheadPluginOptions | undefined>];
|
|
875
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>];
|
|
858
876
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
859
877
|
actions: {
|
|
860
878
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
@@ -15,12 +15,10 @@ export { default as mentionsPlugin } from './mentions';
|
|
|
15
15
|
export { default as panelPlugin } from './panel';
|
|
16
16
|
export { default as pastePlugin } from './paste';
|
|
17
17
|
export { default as placeholderTextPlugin } from './placeholder-text';
|
|
18
|
-
export { default as saveOnEnterPlugin } from './save-on-enter';
|
|
19
18
|
export { default as submitEditorPlugin } from './submit-editor';
|
|
20
19
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
21
20
|
export { default as textColorPlugin } from './text-color';
|
|
22
21
|
export { default as typeAheadPlugin } from './type-ahead';
|
|
23
|
-
export { default as statusPlugin } from './status';
|
|
24
22
|
export { default as breakoutPlugin } from './breakout';
|
|
25
23
|
export { default as alignmentPlugin } from './alignment';
|
|
26
24
|
export { default as dataConsumerMarkPlugin } from './data-consumer';
|
|
@@ -32,7 +30,6 @@ export { default as customAutoformatPlugin } from './custom-autoformat';
|
|
|
32
30
|
export { default as feedbackDialogPlugin } from './feedback-dialog';
|
|
33
31
|
export { default as historyPlugin } from './history';
|
|
34
32
|
export { default as expandPlugin, isExpandInsertionEnabled } from './expand';
|
|
35
|
-
export { default as scrollIntoViewPlugin } from './scroll-into-view';
|
|
36
33
|
export { default as mobileDimensionsPlugin } from './mobile-dimensions';
|
|
37
34
|
export { default as findReplacePlugin } from './find-replace';
|
|
38
35
|
export { default as mobileSelectionPlugin } from './mobile-selection';
|
|
@@ -14,7 +14,7 @@ import type panelPlugin from '../panel';
|
|
|
14
14
|
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
15
15
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
16
|
import type { MentionPlugin } from '../mentions';
|
|
17
|
-
import type { StatusPlugin } from '
|
|
17
|
+
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
18
18
|
export type InsertBlockPluginDependencies = [
|
|
19
19
|
FeatureFlagsPlugin,
|
|
20
20
|
OptionalPlugin<typeof tablesPlugin>,
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { TypeAheadPluginOptions, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
3
|
-
export type { TypeAheadPluginOptions, TypeAheadPlugin };
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* Revamped typeahead using decorations instead of the `typeAheadQuery` mark
|
|
7
|
-
*
|
|
8
|
-
* https://product-fabric.atlassian.net/wiki/spaces/E/pages/2992177582/Technical+TypeAhead+Data+Flow
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
declare const typeAheadPlugin: TypeAheadPlugin;
|
|
1
|
+
import { typeAheadPlugin } from './plugin';
|
|
13
2
|
export default typeAheadPlugin;
|
|
14
|
-
export {
|
|
15
|
-
export type { TypeAheadHandler, TypeAheadPluginState } from './types';
|
|
3
|
+
export { typeAheadPlugin };
|
|
4
|
+
export type { TypeAheadHandler, TypeAheadInputMethod, TypeAheadPlugin, TypeAheadPluginOptions, TypeAheadPluginState, } from './types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TypeAheadPlugin } from './types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* Revamped typeahead using decorations instead of the `typeAheadQuery` mark
|
|
5
|
+
*
|
|
6
|
+
* https://product-fabric.atlassian.net/wiki/spaces/E/pages/2992177582/Technical+TypeAhead+Data+Flow
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare const typeAheadPlugin: TypeAheadPlugin;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
4
|
+
import type { Command, NextEditorPlugin, OptionalPlugin, TypeAheadForceSelect, TypeAheadHandler, TypeAheadInsert, TypeAheadItem, TypeAheadItemRenderProps, TypeAheadSelectItem, TypeAheadStats, UiComponentFactoryParams } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
|
+
import type { EditorState, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
1
7
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { EditorState, Transaction, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
8
|
import type { CloseSelectionOptions } from './constants';
|
|
4
|
-
|
|
5
|
-
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
6
|
-
import type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
|
|
8
|
-
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, TypeAheadInputMethod, };
|
|
9
|
+
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, };
|
|
9
10
|
export type OnSelectItem = (props: {
|
|
10
11
|
index: number;
|
|
11
12
|
item: TypeAheadItem;
|
|
@@ -62,3 +63,47 @@ export type CreateTypeAheadDecorations = (tr: ReadonlyTransaction, options: {
|
|
|
62
63
|
stats: TypeAheadStatsSerializable | null;
|
|
63
64
|
};
|
|
64
65
|
export type RemoveTypeAheadDecorations = (decorationSet?: DecorationSet) => boolean;
|
|
66
|
+
export type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
|
|
67
|
+
export type TypeAheadPluginOptions = {
|
|
68
|
+
isMobile?: boolean;
|
|
69
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
70
|
+
};
|
|
71
|
+
type OpenTypeAheadProps = {
|
|
72
|
+
triggerHandler: TypeAheadHandler;
|
|
73
|
+
inputMethod: TypeAheadInputMethod;
|
|
74
|
+
query?: string;
|
|
75
|
+
};
|
|
76
|
+
type InsertTypeAheadItemProps = {
|
|
77
|
+
triggerHandler: TypeAheadHandler;
|
|
78
|
+
contentItem: TypeAheadItem;
|
|
79
|
+
query: string;
|
|
80
|
+
sourceListItem: TypeAheadItem[];
|
|
81
|
+
mode?: SelectItemMode;
|
|
82
|
+
};
|
|
83
|
+
type CloseTypeAheadProps = {
|
|
84
|
+
insertCurrentQueryAsRawText: boolean;
|
|
85
|
+
attachCommand?: Command;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Type ahead plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
89
|
+
* from `@atlaskit/editor-core`.
|
|
90
|
+
*/
|
|
91
|
+
export type TypeAheadPlugin = NextEditorPlugin<'typeAhead', {
|
|
92
|
+
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
93
|
+
dependencies: [OptionalPlugin<AnalyticsPlugin>];
|
|
94
|
+
sharedState: {
|
|
95
|
+
query: string;
|
|
96
|
+
isOpen: boolean;
|
|
97
|
+
isAllowed: boolean;
|
|
98
|
+
currentHandler?: TypeAheadHandler;
|
|
99
|
+
};
|
|
100
|
+
actions: {
|
|
101
|
+
isOpen: (editorState: EditorState) => boolean;
|
|
102
|
+
isAllowed: (editorState: EditorState) => boolean;
|
|
103
|
+
insert: (props: InsertTypeAheadItemProps) => boolean;
|
|
104
|
+
findHandlerByTrigger: (trigger: string) => TypeAheadHandler | null;
|
|
105
|
+
open: (props: OpenTypeAheadProps) => boolean;
|
|
106
|
+
close: (props: CloseTypeAheadProps) => boolean;
|
|
107
|
+
openAtTransaction: (props: OpenTypeAheadProps) => (tr: Transaction) => boolean;
|
|
108
|
+
};
|
|
109
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import type { DatePluginSharedState } from '../../date';
|
|
3
3
|
import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
4
|
-
import type { StatusState } from '
|
|
4
|
+
import type { StatusState } from '@atlaskit/editor-plugin-status';
|
|
5
5
|
type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
|
|
6
6
|
dateState?: DatePluginSharedState;
|
|
7
7
|
statusState?: StatusState;
|
|
@@ -1,8 +1,122 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
9
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
10
|
+
import type { ErrorReporter, SEVERITY } from '@atlaskit/editor-common/utils';
|
|
11
|
+
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
12
|
+
import type { Transformer, AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
|
|
13
|
+
import type { Dispatch } from '../event-dispatcher';
|
|
14
|
+
import { EventDispatcher } from '../event-dispatcher';
|
|
15
|
+
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
16
|
+
import type { EditorAppearance, EditorConfig, EditorReactContext, EditorPlugin, EditorProps } from '../types';
|
|
17
|
+
import type { EditorNextProps } from '../types/editor-props';
|
|
18
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
19
|
+
import type { SetEditorAPI } from '../presets/context';
|
|
20
|
+
import { TransactionTracker } from '../utils/performance/track-transactions';
|
|
21
|
+
import type { FireAnalyticsCallback, AnalyticsEventPayload, DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
22
|
+
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
23
|
+
export interface EditorViewProps {
|
|
24
|
+
editorProps: EditorProps | EditorNextProps;
|
|
25
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
26
|
+
providerFactory: ProviderFactory;
|
|
27
|
+
portalProviderAPI: PortalProviderAPI;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
experienceStore?: ExperienceStore;
|
|
30
|
+
setEditorApi?: SetEditorAPI;
|
|
31
|
+
render?: (props: {
|
|
32
|
+
editor: JSX.Element;
|
|
33
|
+
view?: EditorView;
|
|
34
|
+
config: EditorConfig;
|
|
35
|
+
eventDispatcher: EventDispatcher;
|
|
36
|
+
transformer?: Transformer<string>;
|
|
37
|
+
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
38
|
+
editorRef: React.RefObject<HTMLDivElement>;
|
|
39
|
+
}) => JSX.Element;
|
|
40
|
+
onEditorCreated: (instance: {
|
|
41
|
+
view: EditorView;
|
|
42
|
+
config: EditorConfig;
|
|
43
|
+
eventDispatcher: EventDispatcher;
|
|
44
|
+
transformer?: Transformer<string>;
|
|
45
|
+
}) => void;
|
|
46
|
+
onEditorDestroyed: (instance: {
|
|
47
|
+
view: EditorView;
|
|
48
|
+
config: EditorConfig;
|
|
49
|
+
eventDispatcher: EventDispatcher;
|
|
50
|
+
transformer?: Transformer<string>;
|
|
51
|
+
}) => void;
|
|
52
|
+
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
4
53
|
}
|
|
5
|
-
|
|
6
|
-
|
|
54
|
+
interface CreateEditorStateOptions {
|
|
55
|
+
props: EditorViewProps;
|
|
56
|
+
context: EditorReactContext;
|
|
57
|
+
doc?: string | Object | PMNode;
|
|
58
|
+
resetting?: boolean;
|
|
59
|
+
selectionAtStart?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export declare class ReactEditorView<T = {}> extends React.Component<EditorViewProps & WrappedComponentProps & T, {}, EditorReactContext> {
|
|
62
|
+
view?: EditorView;
|
|
63
|
+
eventDispatcher: EventDispatcher;
|
|
64
|
+
contentTransformer?: Transformer<string>;
|
|
65
|
+
config: EditorConfig;
|
|
66
|
+
editorState: EditorState;
|
|
67
|
+
errorReporter: ErrorReporter;
|
|
68
|
+
dispatch: Dispatch;
|
|
69
|
+
proseMirrorRenderedSeverity?: SEVERITY;
|
|
70
|
+
transactionTracker: TransactionTracker;
|
|
71
|
+
validTransactionCount: number;
|
|
72
|
+
experienceStore?: ExperienceStore;
|
|
73
|
+
editorRef: React.RefObject<HTMLDivElement>;
|
|
74
|
+
static contextTypes: {
|
|
75
|
+
getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
|
|
76
|
+
};
|
|
77
|
+
private canDispatchTransactions;
|
|
78
|
+
private focusTimeoutId?;
|
|
79
|
+
private reliabilityInterval?;
|
|
80
|
+
private pluginPerformanceObserver;
|
|
81
|
+
private featureFlags;
|
|
82
|
+
private pluginInjectionAPI;
|
|
83
|
+
private onPluginObservation;
|
|
84
|
+
get transactionTracking(): import("@atlaskit/editor-common/types").TransactionTracking;
|
|
85
|
+
private getPluginNames;
|
|
86
|
+
private countNodes;
|
|
87
|
+
private isTransactionTrackingExplicitlyDisabled;
|
|
88
|
+
constructor(props: EditorViewProps & WrappedComponentProps & T, context: EditorReactContext);
|
|
89
|
+
getEditorState: () => EditorState | undefined;
|
|
90
|
+
getEditorView: () => EditorView | undefined;
|
|
91
|
+
UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
|
|
92
|
+
formatFullWidthAppearance: (appearance: EditorAppearance | undefined) => FULL_WIDTH_MODE;
|
|
93
|
+
resetEditorState: ({ doc, shouldScrollToBottom, }: {
|
|
94
|
+
doc: string;
|
|
95
|
+
shouldScrollToBottom: boolean;
|
|
96
|
+
}) => void;
|
|
97
|
+
blur: () => void;
|
|
98
|
+
reconfigureState(props: EditorViewProps): void;
|
|
99
|
+
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
100
|
+
componentDidMount(): void;
|
|
101
|
+
/**
|
|
102
|
+
* Clean up any non-PM resources when the editor is unmounted
|
|
103
|
+
*/
|
|
104
|
+
componentWillUnmount(): void;
|
|
105
|
+
private editorPlugins;
|
|
106
|
+
getPlugins(preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>): EditorPlugin[];
|
|
107
|
+
createEditorState: (options: CreateEditorStateOptions) => EditorState;
|
|
108
|
+
private onEditorViewStateUpdated;
|
|
109
|
+
private trackValidTransactions;
|
|
110
|
+
private dispatchTransaction;
|
|
111
|
+
getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
|
|
112
|
+
private createEditorView;
|
|
113
|
+
handleEditorViewRef: (node: HTMLDivElement) => void;
|
|
114
|
+
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
115
|
+
private createEditor;
|
|
116
|
+
private editor;
|
|
117
|
+
render(): JSX.Element;
|
|
118
|
+
}
|
|
119
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps & WrappedComponentProps<"intl">>> & {
|
|
120
|
+
WrappedComponent: React.ComponentType<EditorViewProps & WrappedComponentProps<"intl">>;
|
|
7
121
|
};
|
|
8
122
|
export default _default;
|
|
@@ -370,7 +370,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
370
370
|
sharedState: import("@atlaskit/editor-plugin-composition").CompositionState;
|
|
371
371
|
}, undefined>,
|
|
372
372
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
373
|
-
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
373
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
374
374
|
dependencies: [
|
|
375
375
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
376
376
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -389,6 +389,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
389
389
|
];
|
|
390
390
|
sharedState: {
|
|
391
391
|
query: string;
|
|
392
|
+
isOpen: boolean;
|
|
393
|
+
isAllowed: boolean;
|
|
394
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
392
395
|
};
|
|
393
396
|
actions: {
|
|
394
397
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -416,7 +419,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
416
419
|
query?: string | undefined;
|
|
417
420
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
418
421
|
};
|
|
419
|
-
}, TypeAheadPluginOptions | undefined>
|
|
422
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
420
423
|
];
|
|
421
424
|
}, PlaceholderPluginOptions | undefined>,
|
|
422
425
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
@@ -439,6 +442,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
439
442
|
];
|
|
440
443
|
sharedState: {
|
|
441
444
|
query: string;
|
|
445
|
+
isOpen: boolean;
|
|
446
|
+
isAllowed: boolean;
|
|
447
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
442
448
|
};
|
|
443
449
|
actions: {
|
|
444
450
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -453,7 +459,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
453
459
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
454
460
|
open: (props: {
|
|
455
461
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
456
|
-
inputMethod: import("
|
|
462
|
+
inputMethod: import("../../../plugins/type-ahead").TypeAheadInputMethod;
|
|
457
463
|
query?: string | undefined;
|
|
458
464
|
}) => boolean;
|
|
459
465
|
close: (props: {
|
|
@@ -462,7 +468,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
462
468
|
}) => boolean;
|
|
463
469
|
openAtTransaction: (props: {
|
|
464
470
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
465
|
-
inputMethod: import("
|
|
471
|
+
inputMethod: import("../../../plugins/type-ahead").TypeAheadInputMethod;
|
|
466
472
|
query?: string | undefined;
|
|
467
473
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
468
474
|
};
|
|
@@ -471,7 +477,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
471
477
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
472
478
|
dependencies: [
|
|
473
479
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
474
|
-
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
480
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
475
481
|
dependencies: [
|
|
476
482
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
477
483
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -490,6 +496,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
490
496
|
];
|
|
491
497
|
sharedState: {
|
|
492
498
|
query: string;
|
|
499
|
+
isOpen: boolean;
|
|
500
|
+
isAllowed: boolean;
|
|
501
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
493
502
|
};
|
|
494
503
|
actions: {
|
|
495
504
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -517,7 +526,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
517
526
|
query?: string | undefined;
|
|
518
527
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
519
528
|
};
|
|
520
|
-
}, TypeAheadPluginOptions | undefined>
|
|
529
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
521
530
|
];
|
|
522
531
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
523
532
|
actions: {
|
|
@@ -932,7 +941,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
932
941
|
sharedState: import("@atlaskit/editor-plugin-composition").CompositionState;
|
|
933
942
|
}, undefined>,
|
|
934
943
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
935
|
-
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
944
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
936
945
|
dependencies: [
|
|
937
946
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
938
947
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -951,6 +960,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
951
960
|
];
|
|
952
961
|
sharedState: {
|
|
953
962
|
query: string;
|
|
963
|
+
isOpen: boolean;
|
|
964
|
+
isAllowed: boolean;
|
|
965
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
954
966
|
};
|
|
955
967
|
actions: {
|
|
956
968
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -978,7 +990,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
978
990
|
query?: string | undefined;
|
|
979
991
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
980
992
|
};
|
|
981
|
-
}, TypeAheadPluginOptions | undefined>
|
|
993
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
982
994
|
];
|
|
983
995
|
}, PlaceholderPluginOptions | undefined>,
|
|
984
996
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
@@ -1001,6 +1013,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1001
1013
|
];
|
|
1002
1014
|
sharedState: {
|
|
1003
1015
|
query: string;
|
|
1016
|
+
isOpen: boolean;
|
|
1017
|
+
isAllowed: boolean;
|
|
1018
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
1004
1019
|
};
|
|
1005
1020
|
actions: {
|
|
1006
1021
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -1015,7 +1030,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1015
1030
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
1016
1031
|
open: (props: {
|
|
1017
1032
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1018
|
-
inputMethod: import("
|
|
1033
|
+
inputMethod: import("../../../plugins/type-ahead").TypeAheadInputMethod;
|
|
1019
1034
|
query?: string | undefined;
|
|
1020
1035
|
}) => boolean;
|
|
1021
1036
|
close: (props: {
|
|
@@ -1024,7 +1039,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1024
1039
|
}) => boolean;
|
|
1025
1040
|
openAtTransaction: (props: {
|
|
1026
1041
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1027
|
-
inputMethod: import("
|
|
1042
|
+
inputMethod: import("../../../plugins/type-ahead").TypeAheadInputMethod;
|
|
1028
1043
|
query?: string | undefined;
|
|
1029
1044
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1030
1045
|
};
|
|
@@ -1033,7 +1048,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1033
1048
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
1034
1049
|
dependencies: [
|
|
1035
1050
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
1036
|
-
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
1051
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
1037
1052
|
dependencies: [
|
|
1038
1053
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1039
1054
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -1052,6 +1067,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1052
1067
|
];
|
|
1053
1068
|
sharedState: {
|
|
1054
1069
|
query: string;
|
|
1070
|
+
isOpen: boolean;
|
|
1071
|
+
isAllowed: boolean;
|
|
1072
|
+
currentHandler?: import("@atlaskit/editor-common/types").TypeAheadHandler | undefined;
|
|
1055
1073
|
};
|
|
1056
1074
|
actions: {
|
|
1057
1075
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -1079,7 +1097,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1079
1097
|
query?: string | undefined;
|
|
1080
1098
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1081
1099
|
};
|
|
1082
|
-
}, TypeAheadPluginOptions | undefined>
|
|
1100
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>
|
|
1083
1101
|
];
|
|
1084
1102
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
1085
1103
|
actions: {
|
|
@@ -15,12 +15,10 @@ export { default as mentionsPlugin } from './mentions';
|
|
|
15
15
|
export { default as panelPlugin } from './panel';
|
|
16
16
|
export { default as pastePlugin } from './paste';
|
|
17
17
|
export { default as placeholderTextPlugin } from './placeholder-text';
|
|
18
|
-
export { default as saveOnEnterPlugin } from './save-on-enter';
|
|
19
18
|
export { default as submitEditorPlugin } from './submit-editor';
|
|
20
19
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
21
20
|
export { default as textColorPlugin } from './text-color';
|
|
22
21
|
export { default as typeAheadPlugin } from './type-ahead';
|
|
23
|
-
export { default as statusPlugin } from './status';
|
|
24
22
|
export { default as breakoutPlugin } from './breakout';
|
|
25
23
|
export { default as alignmentPlugin } from './alignment';
|
|
26
24
|
export { default as dataConsumerMarkPlugin } from './data-consumer';
|
|
@@ -32,7 +30,6 @@ export { default as customAutoformatPlugin } from './custom-autoformat';
|
|
|
32
30
|
export { default as feedbackDialogPlugin } from './feedback-dialog';
|
|
33
31
|
export { default as historyPlugin } from './history';
|
|
34
32
|
export { default as expandPlugin, isExpandInsertionEnabled } from './expand';
|
|
35
|
-
export { default as scrollIntoViewPlugin } from './scroll-into-view';
|
|
36
33
|
export { default as mobileDimensionsPlugin } from './mobile-dimensions';
|
|
37
34
|
export { default as findReplacePlugin } from './find-replace';
|
|
38
35
|
export { default as mobileSelectionPlugin } from './mobile-selection';
|
|
@@ -14,7 +14,7 @@ import type panelPlugin from '../panel';
|
|
|
14
14
|
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
15
15
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
16
|
import type { MentionPlugin } from '../mentions';
|
|
17
|
-
import type { StatusPlugin } from '
|
|
17
|
+
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
18
18
|
export type InsertBlockPluginDependencies = [
|
|
19
19
|
FeatureFlagsPlugin,
|
|
20
20
|
OptionalPlugin<typeof tablesPlugin>,
|