@atlaskit/editor-core 191.6.1 → 191.7.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 +10 -0
- package/dist/cjs/composable-editor/editor-internal.js +4 -0
- package/dist/cjs/composable-editor/hooks/useProviders.js +57 -0
- package/dist/cjs/presets/default.js +4 -1
- package/dist/cjs/ui/ToolbarFeedback/index.js +6 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +4 -0
- package/dist/es2019/composable-editor/hooks/useProviders.js +28 -0
- package/dist/es2019/presets/default.js +4 -1
- package/dist/es2019/ui/ToolbarFeedback/index.js +2 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +4 -0
- package/dist/esm/composable-editor/hooks/useProviders.js +50 -0
- package/dist/esm/presets/default.js +4 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +6 -7
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/hooks/useProviders.d.ts +14 -0
- package/dist/types/create-editor/create-preset.d.ts +155 -23
- package/dist/types/presets/default.d.ts +146 -36
- package/dist/types/presets/universal.d.ts +155 -23
- package/dist/types/presets/useUniversalPreset.d.ts +155 -23
- package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +14 -0
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +171 -16
- package/dist/types-ts4.5/presets/default.d.ts +158 -28
- package/dist/types-ts4.5/presets/universal.d.ts +171 -16
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +171 -16
- package/package.json +4 -4
- package/tsconfig.json +3 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
|
+
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
4
|
import type { SelectionPluginOptions } from '@atlaskit/editor-common/selection';
|
|
4
5
|
import type { EditorAppearance, FeatureFlags, HyperlinkPluginOptions, PerformanceTracking, QuickInsertPluginOptions, TextFormattingOptions } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { AnnotationProviders } from '@atlaskit/editor-plugins/annotation';
|
|
@@ -29,12 +30,13 @@ export type DefaultPresetPluginOptions = {
|
|
|
29
30
|
appearance?: EditorAppearance | undefined;
|
|
30
31
|
allowUndoRedoButtons?: boolean;
|
|
31
32
|
featureFlags?: FeatureFlags;
|
|
33
|
+
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
36
|
* Note: The order that presets are added determines
|
|
35
37
|
* their placement in the editor toolbar
|
|
36
38
|
*/
|
|
37
|
-
export declare function createDefaultPreset(options: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
39
|
+
export declare function createDefaultPreset(options: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
38
40
|
pluginConfiguration: CodeBlockOptions;
|
|
39
41
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
40
42
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -110,7 +112,13 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
110
112
|
actions: {
|
|
111
113
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
112
114
|
};
|
|
113
|
-
}, undefined
|
|
115
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
116
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
117
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
118
|
+
commands: {
|
|
119
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
120
|
+
};
|
|
121
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
114
122
|
sharedState: {
|
|
115
123
|
showContextPanel: boolean | undefined;
|
|
116
124
|
} | undefined;
|
|
@@ -194,7 +202,13 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
194
202
|
sharedState: FeatureFlags;
|
|
195
203
|
}, FeatureFlags>>];
|
|
196
204
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
197
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
205
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
206
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
207
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
208
|
+
commands: {
|
|
209
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
210
|
+
};
|
|
211
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
198
212
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
199
213
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
200
214
|
}, undefined>];
|
|
@@ -266,7 +280,13 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
266
280
|
actions: {
|
|
267
281
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
268
282
|
};
|
|
269
|
-
}, undefined
|
|
283
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
284
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
285
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
286
|
+
commands: {
|
|
287
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
288
|
+
};
|
|
289
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
270
290
|
sharedState: {
|
|
271
291
|
showContextPanel: boolean | undefined;
|
|
272
292
|
} | undefined;
|
|
@@ -364,9 +384,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
364
384
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
365
385
|
insert: (props: {
|
|
366
386
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
367
|
-
contentItem: import("@atlaskit/editor-common/
|
|
387
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
368
388
|
query: string;
|
|
369
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
389
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
370
390
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
371
391
|
}) => boolean;
|
|
372
392
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -409,9 +429,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
409
429
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
410
430
|
insert: (props: {
|
|
411
431
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
412
|
-
contentItem: import("@atlaskit/editor-common/
|
|
432
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
413
433
|
query: string;
|
|
414
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
434
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
415
435
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
416
436
|
}) => boolean;
|
|
417
437
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -582,9 +602,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
582
602
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
583
603
|
insert: (props: {
|
|
584
604
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
585
|
-
contentItem: import("@atlaskit/editor-common/
|
|
605
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
586
606
|
query: string;
|
|
587
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
607
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
588
608
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
589
609
|
}) => boolean;
|
|
590
610
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -629,9 +649,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
629
649
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
630
650
|
insert: (props: {
|
|
631
651
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
632
|
-
contentItem: import("@atlaskit/editor-common/
|
|
652
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
633
653
|
query: string;
|
|
634
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
654
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
635
655
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
636
656
|
}) => boolean;
|
|
637
657
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -661,12 +681,24 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
661
681
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
662
682
|
pluginConfiguration: FeatureFlags;
|
|
663
683
|
sharedState: FeatureFlags;
|
|
664
|
-
}, FeatureFlags
|
|
684
|
+
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
685
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
686
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
687
|
+
commands: {
|
|
688
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
689
|
+
};
|
|
690
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
665
691
|
sharedState: import("@atlaskit/editor-plugins/base").BasePluginState;
|
|
666
692
|
actions: {
|
|
667
693
|
setKeyboardHeight: (keyboardHeight: number) => import("@atlaskit/editor-common/types").Command;
|
|
668
694
|
};
|
|
669
|
-
}, BasePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
695
|
+
}, BasePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
696
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
697
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
698
|
+
commands: {
|
|
699
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
700
|
+
};
|
|
701
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
670
702
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
671
703
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
672
704
|
sharedState: {
|
|
@@ -788,7 +820,13 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
788
820
|
actions: {
|
|
789
821
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
790
822
|
};
|
|
791
|
-
}, undefined
|
|
823
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
824
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
825
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
826
|
+
commands: {
|
|
827
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
828
|
+
};
|
|
829
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
792
830
|
sharedState: {
|
|
793
831
|
showContextPanel: boolean | undefined;
|
|
794
832
|
} | undefined;
|
|
@@ -893,7 +931,13 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
893
931
|
sharedState: FeatureFlags;
|
|
894
932
|
}, FeatureFlags>>];
|
|
895
933
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
896
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
934
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
935
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
936
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
937
|
+
commands: {
|
|
938
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
939
|
+
};
|
|
940
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
897
941
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
898
942
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
899
943
|
}, undefined>];
|
|
@@ -965,7 +1009,13 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
965
1009
|
actions: {
|
|
966
1010
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
967
1011
|
};
|
|
968
|
-
}, undefined
|
|
1012
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
1013
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1014
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
1015
|
+
commands: {
|
|
1016
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1017
|
+
};
|
|
1018
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
969
1019
|
sharedState: {
|
|
970
1020
|
showContextPanel: boolean | undefined;
|
|
971
1021
|
} | undefined;
|
|
@@ -1060,7 +1110,13 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1060
1110
|
actions: {
|
|
1061
1111
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1062
1112
|
};
|
|
1063
|
-
}, undefined
|
|
1113
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
1114
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1115
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
1116
|
+
commands: {
|
|
1117
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1118
|
+
};
|
|
1119
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
1064
1120
|
sharedState: {
|
|
1065
1121
|
showContextPanel: boolean | undefined;
|
|
1066
1122
|
} | undefined;
|
|
@@ -1122,7 +1178,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1122
1178
|
pluginConfiguration: FeatureFlags;
|
|
1123
1179
|
sharedState: FeatureFlags;
|
|
1124
1180
|
}, FeatureFlags>]>;
|
|
1125
|
-
export declare function useDefaultPreset(props: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
1181
|
+
export declare function useDefaultPreset(props: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
1126
1182
|
pluginConfiguration: CodeBlockOptions;
|
|
1127
1183
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
1128
1184
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -1198,7 +1254,13 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1198
1254
|
actions: {
|
|
1199
1255
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1200
1256
|
};
|
|
1201
|
-
}, undefined
|
|
1257
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
1258
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1259
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
1260
|
+
commands: {
|
|
1261
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1262
|
+
};
|
|
1263
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
1202
1264
|
sharedState: {
|
|
1203
1265
|
showContextPanel: boolean | undefined;
|
|
1204
1266
|
} | undefined;
|
|
@@ -1282,7 +1344,13 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1282
1344
|
sharedState: FeatureFlags;
|
|
1283
1345
|
}, FeatureFlags>>];
|
|
1284
1346
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1285
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
1347
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
1348
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1349
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
1350
|
+
commands: {
|
|
1351
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1352
|
+
};
|
|
1353
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
1286
1354
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
1287
1355
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
1288
1356
|
}, undefined>];
|
|
@@ -1354,7 +1422,13 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1354
1422
|
actions: {
|
|
1355
1423
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1356
1424
|
};
|
|
1357
|
-
}, undefined
|
|
1425
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
1426
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1427
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
1428
|
+
commands: {
|
|
1429
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1430
|
+
};
|
|
1431
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
1358
1432
|
sharedState: {
|
|
1359
1433
|
showContextPanel: boolean | undefined;
|
|
1360
1434
|
} | undefined;
|
|
@@ -1452,9 +1526,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1452
1526
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1453
1527
|
insert: (props: {
|
|
1454
1528
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1455
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1529
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
1456
1530
|
query: string;
|
|
1457
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1531
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
1458
1532
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1459
1533
|
}) => boolean;
|
|
1460
1534
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1497,9 +1571,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1497
1571
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1498
1572
|
insert: (props: {
|
|
1499
1573
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1500
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1574
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
1501
1575
|
query: string;
|
|
1502
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1576
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
1503
1577
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1504
1578
|
}) => boolean;
|
|
1505
1579
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1670,9 +1744,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1670
1744
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1671
1745
|
insert: (props: {
|
|
1672
1746
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1673
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1747
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
1674
1748
|
query: string;
|
|
1675
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1749
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
1676
1750
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1677
1751
|
}) => boolean;
|
|
1678
1752
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1717,9 +1791,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1717
1791
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1718
1792
|
insert: (props: {
|
|
1719
1793
|
triggerHandler: import("@atlaskit/editor-common/types").TypeAheadHandler;
|
|
1720
|
-
contentItem: import("@atlaskit/editor-common/
|
|
1794
|
+
contentItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem;
|
|
1721
1795
|
query: string;
|
|
1722
|
-
sourceListItem: import("@atlaskit/editor-common/
|
|
1796
|
+
sourceListItem: import("@atlaskit/editor-common/provider-factory").TypeAheadItem[];
|
|
1723
1797
|
mode?: import("@atlaskit/editor-common/type-ahead").SelectItemMode | undefined;
|
|
1724
1798
|
}) => boolean;
|
|
1725
1799
|
findHandlerByTrigger: (trigger: string) => import("@atlaskit/editor-common/types").TypeAheadHandler | null;
|
|
@@ -1749,12 +1823,24 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1749
1823
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1750
1824
|
pluginConfiguration: FeatureFlags;
|
|
1751
1825
|
sharedState: FeatureFlags;
|
|
1752
|
-
}, FeatureFlags
|
|
1826
|
+
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
1827
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1828
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
1829
|
+
commands: {
|
|
1830
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1831
|
+
};
|
|
1832
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
1753
1833
|
sharedState: import("@atlaskit/editor-plugins/base").BasePluginState;
|
|
1754
1834
|
actions: {
|
|
1755
1835
|
setKeyboardHeight: (keyboardHeight: number) => import("@atlaskit/editor-common/types").Command;
|
|
1756
1836
|
};
|
|
1757
|
-
}, BasePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
1837
|
+
}, BasePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
1838
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1839
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
1840
|
+
commands: {
|
|
1841
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1842
|
+
};
|
|
1843
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
|
|
1758
1844
|
sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
|
|
1759
1845
|
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
|
|
1760
1846
|
sharedState: {
|
|
@@ -1876,7 +1962,13 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1876
1962
|
actions: {
|
|
1877
1963
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1878
1964
|
};
|
|
1879
|
-
}, undefined
|
|
1965
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
1966
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1967
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
1968
|
+
commands: {
|
|
1969
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1970
|
+
};
|
|
1971
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
1880
1972
|
sharedState: {
|
|
1881
1973
|
showContextPanel: boolean | undefined;
|
|
1882
1974
|
} | undefined;
|
|
@@ -1981,7 +2073,13 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1981
2073
|
sharedState: FeatureFlags;
|
|
1982
2074
|
}, FeatureFlags>>];
|
|
1983
2075
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1984
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2076
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
2077
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
2078
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
2079
|
+
commands: {
|
|
2080
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2081
|
+
};
|
|
2082
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
1985
2083
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
1986
2084
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
1987
2085
|
}, undefined>];
|
|
@@ -2053,7 +2151,13 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2053
2151
|
actions: {
|
|
2054
2152
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
2055
2153
|
};
|
|
2056
|
-
}, undefined
|
|
2154
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
2155
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
2156
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
2157
|
+
commands: {
|
|
2158
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2159
|
+
};
|
|
2160
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
2057
2161
|
sharedState: {
|
|
2058
2162
|
showContextPanel: boolean | undefined;
|
|
2059
2163
|
} | undefined;
|
|
@@ -2148,7 +2252,13 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2148
2252
|
actions: {
|
|
2149
2253
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
2150
2254
|
};
|
|
2151
|
-
}, undefined
|
|
2255
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
2256
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
2257
|
+
sharedState: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration | undefined;
|
|
2258
|
+
commands: {
|
|
2259
|
+
setProvider: (config: import("@atlaskit/editor-plugins/context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2260
|
+
};
|
|
2261
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
2152
2262
|
sharedState: {
|
|
2153
2263
|
showContextPanel: boolean | undefined;
|
|
2154
2264
|
} | undefined;
|