@atlaskit/editor-core 193.28.5 → 193.28.6
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 +9 -0
- package/dist/cjs/test-utils.js +1 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/test-utils.js +1 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/test-utils.js +1 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +2 -2
- package/dist/types/create-editor/create-preset.d.ts +46 -46
- package/dist/types/presets/context.d.ts +2 -2
- package/dist/types/presets/default.d.ts +18 -18
- package/dist/types/presets/universal.d.ts +46 -46
- package/dist/types/presets/useUniversalPreset.d.ts +46 -46
- package/dist/types/test-utils.d.ts +2 -2
- package/dist/types/types/editor-props.d.ts +3 -3
- package/dist/types/use-preset.d.ts +5 -6
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +122 -122
- package/dist/types-ts4.5/presets/context.d.ts +2 -2
- package/dist/types-ts4.5/presets/default.d.ts +30 -30
- package/dist/types-ts4.5/presets/universal.d.ts +122 -122
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +122 -122
- package/dist/types-ts4.5/test-utils.d.ts +2 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +3 -3
- package/dist/types-ts4.5/use-preset.d.ts +5 -10
- package/package.json +6 -6
- package/tsconfig.json +1 -2
|
@@ -44,7 +44,7 @@ export type DefaultPresetPluginOptions = {
|
|
|
44
44
|
* Note: The order that presets are added determines
|
|
45
45
|
* their placement in the editor toolbar
|
|
46
46
|
*/
|
|
47
|
-
export declare function createDefaultPreset(options: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/
|
|
47
|
+
export declare function createDefaultPreset(options: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/preset").MaybePluginName<"selectionToolbar">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"primaryToolbar">, import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
48
48
|
pluginConfiguration: CodeBlockOptions | undefined;
|
|
49
49
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
50
50
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -862,7 +862,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
862
862
|
showLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").ShowLinkToolbar;
|
|
863
863
|
};
|
|
864
864
|
sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
|
|
865
|
-
}, HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-common/types").
|
|
865
|
+
}, HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
866
866
|
pluginConfiguration: {
|
|
867
867
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
868
868
|
};
|
|
@@ -880,7 +880,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
880
880
|
} | undefined>>];
|
|
881
881
|
}, {
|
|
882
882
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
883
|
-
}
|
|
883
|
+
}> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
884
884
|
pluginConfiguration: BlockTypePluginOptions | undefined;
|
|
885
885
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
886
886
|
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
@@ -910,7 +910,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
910
910
|
commands: {
|
|
911
911
|
setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
912
912
|
};
|
|
913
|
-
}, BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").
|
|
913
|
+
}, BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
|
|
914
914
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
915
915
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
916
916
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -964,7 +964,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
964
964
|
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
965
965
|
};
|
|
966
966
|
}, undefined>>];
|
|
967
|
-
}, undefined
|
|
967
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
968
968
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
969
969
|
commands: {
|
|
970
970
|
registerComponent: ({ name, component, }: {
|
|
@@ -972,9 +972,9 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
972
972
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
973
973
|
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
974
974
|
};
|
|
975
|
-
}, undefined
|
|
975
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
976
976
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
977
|
-
}, undefined
|
|
977
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
978
978
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
979
979
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
980
980
|
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
@@ -1707,7 +1707,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1707
1707
|
};
|
|
1708
1708
|
}, PastePluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"betterTypeHistory", {
|
|
1709
1709
|
actions: import("@atlaskit/editor-plugins/better-type-history").BetterTypeHistoryAPI;
|
|
1710
|
-
}, undefined>, import("@atlaskit/editor-common/types").
|
|
1710
|
+
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1711
1711
|
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
1712
1712
|
sharedState: {
|
|
1713
1713
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
@@ -1719,11 +1719,11 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1719
1719
|
sharedState: FeatureFlags;
|
|
1720
1720
|
}, FeatureFlags>>];
|
|
1721
1721
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1722
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
1722
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1723
1723
|
pluginConfiguration: FeatureFlags;
|
|
1724
1724
|
sharedState: FeatureFlags;
|
|
1725
1725
|
}, FeatureFlags>]>;
|
|
1726
|
-
export declare function useDefaultPreset(props: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/
|
|
1726
|
+
export declare function useDefaultPreset(props: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/preset").MaybePluginName<"selectionToolbar">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"primaryToolbar">, import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
1727
1727
|
pluginConfiguration: CodeBlockOptions | undefined;
|
|
1728
1728
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
1729
1729
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -2541,7 +2541,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2541
2541
|
showLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").ShowLinkToolbar;
|
|
2542
2542
|
};
|
|
2543
2543
|
sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
|
|
2544
|
-
}, HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-common/types").
|
|
2544
|
+
}, HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
2545
2545
|
pluginConfiguration: {
|
|
2546
2546
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
2547
2547
|
};
|
|
@@ -2559,7 +2559,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2559
2559
|
} | undefined>>];
|
|
2560
2560
|
}, {
|
|
2561
2561
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
2562
|
-
}
|
|
2562
|
+
}> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
2563
2563
|
pluginConfiguration: BlockTypePluginOptions | undefined;
|
|
2564
2564
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2565
2565
|
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
@@ -2589,7 +2589,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2589
2589
|
commands: {
|
|
2590
2590
|
setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2591
2591
|
};
|
|
2592
|
-
}, BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").
|
|
2592
|
+
}, BlockTypePluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
|
|
2593
2593
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2594
2594
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
2595
2595
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -2643,7 +2643,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2643
2643
|
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2644
2644
|
};
|
|
2645
2645
|
}, undefined>>];
|
|
2646
|
-
}, undefined
|
|
2646
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
2647
2647
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
2648
2648
|
commands: {
|
|
2649
2649
|
registerComponent: ({ name, component, }: {
|
|
@@ -2651,9 +2651,9 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2651
2651
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2652
2652
|
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2653
2653
|
};
|
|
2654
|
-
}, undefined
|
|
2654
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
2655
2655
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
2656
|
-
}, undefined
|
|
2656
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2657
2657
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
2658
2658
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2659
2659
|
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
@@ -3386,7 +3386,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3386
3386
|
};
|
|
3387
3387
|
}, PastePluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"betterTypeHistory", {
|
|
3388
3388
|
actions: import("@atlaskit/editor-plugins/better-type-history").BetterTypeHistoryAPI;
|
|
3389
|
-
}, undefined>, import("@atlaskit/editor-common/types").
|
|
3389
|
+
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3390
3390
|
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
3391
3391
|
sharedState: {
|
|
3392
3392
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
@@ -3398,7 +3398,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3398
3398
|
sharedState: FeatureFlags;
|
|
3399
3399
|
}, FeatureFlags>>];
|
|
3400
3400
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3401
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
3401
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3402
3402
|
pluginConfiguration: FeatureFlags;
|
|
3403
3403
|
sharedState: FeatureFlags;
|
|
3404
3404
|
}, FeatureFlags>]>[];
|