@atlaskit/editor-core 185.16.1 → 185.16.3
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 +6 -0
- package/dist/cjs/plugins/text-formatting/commands/clear-formatting.js +5 -6
- package/dist/cjs/plugins/text-formatting/index.js +6 -2
- package/dist/cjs/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +2 -2
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +6 -3
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +8 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/text-formatting/commands/clear-formatting.js +5 -6
- package/dist/es2019/plugins/text-formatting/index.js +8 -3
- package/dist/es2019/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +2 -2
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +5 -4
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +8 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/text-formatting/commands/clear-formatting.js +5 -6
- package/dist/esm/plugins/text-formatting/index.js +6 -2
- package/dist/esm/plugins/text-formatting/pm-plugins/clear-formatting-keymap.js +2 -2
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +7 -4
- package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +8 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/labs/next/presets/cxhtml.d.ts +58 -0
- package/dist/types/labs/next/presets/default.d.ts +116 -0
- package/dist/types/labs/next/presets/mobile.d.ts +58 -0
- package/dist/types/plugins/text-formatting/commands/clear-formatting.d.ts +3 -3
- package/dist/types/plugins/text-formatting/index.d.ts +3 -1
- package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting-keymap.d.ts +2 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts +6 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +2 -0
- package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +70 -0
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +140 -0
- package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +70 -0
- package/dist/types-ts4.5/plugins/text-formatting/commands/clear-formatting.d.ts +3 -3
- package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +5 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting-keymap.d.ts +2 -1
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts +6 -1
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -234,8 +234,78 @@ export declare function useMobilePreset({ media, placeholder, maxContentSize, cr
|
|
|
234
234
|
}>,
|
|
235
235
|
(config?: import("../../../plugins/text-formatting/types").TextFormattingOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"textFormatting", {
|
|
236
236
|
pluginConfiguration: import("../../../plugins/text-formatting/types").TextFormattingOptions | undefined;
|
|
237
|
+
dependencies: [
|
|
238
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
|
|
239
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
240
|
+
sharedState: {
|
|
241
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
242
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
243
|
+
};
|
|
244
|
+
dependencies: [
|
|
245
|
+
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
246
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
247
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
248
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
|
|
249
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
250
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
251
|
+
}>
|
|
252
|
+
];
|
|
253
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
254
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
|
|
255
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
256
|
+
sharedState: {
|
|
257
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
258
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
259
|
+
};
|
|
260
|
+
dependencies: [
|
|
261
|
+
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
262
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
263
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
264
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
|
|
265
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
266
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
267
|
+
}>
|
|
268
|
+
];
|
|
269
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
270
|
+
}>>
|
|
271
|
+
];
|
|
237
272
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
238
273
|
pluginConfiguration: import("../../../plugins/text-formatting/types").TextFormattingOptions | undefined;
|
|
274
|
+
dependencies: [
|
|
275
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
|
|
276
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
277
|
+
sharedState: {
|
|
278
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
279
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
280
|
+
};
|
|
281
|
+
dependencies: [
|
|
282
|
+
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
283
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
284
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
285
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
|
|
286
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
287
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
288
|
+
}>
|
|
289
|
+
];
|
|
290
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
291
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
|
|
292
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
293
|
+
sharedState: {
|
|
294
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
295
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
296
|
+
};
|
|
297
|
+
dependencies: [
|
|
298
|
+
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
299
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
300
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
301
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
|
|
302
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
303
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
304
|
+
}>
|
|
305
|
+
];
|
|
306
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
307
|
+
}>>
|
|
308
|
+
];
|
|
239
309
|
}>,
|
|
240
310
|
(config?: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
241
311
|
pluginConfiguration: import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command } from '../../../types';
|
|
2
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
export declare const FORMATTING_NODE_TYPES: string[];
|
|
4
4
|
export declare const FORMATTING_MARK_TYPES: string[];
|
|
5
|
-
export declare function clearFormattingWithAnalytics(inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT): Command;
|
|
6
|
-
export declare function clearFormatting(inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT): Command;
|
|
5
|
+
export declare function clearFormattingWithAnalytics(inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): Command;
|
|
6
|
+
export declare function clearFormatting(inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined): Command;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { TextFormattingOptions } from './types';
|
|
3
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
4
|
declare const textFormatting: NextEditorPlugin<'textFormatting', {
|
|
4
5
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
6
|
+
dependencies: [
|
|
7
|
+
OptionalPlugin<typeof analyticsPlugin>
|
|
8
|
+
];
|
|
5
9
|
}>;
|
|
6
10
|
export default textFormatting;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
|
|
2
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
export declare function keymapPlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
3
4
|
export default keymapPlugin;
|
package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { IconHookProps, MenuIconItem } from '../types';
|
|
2
|
-
|
|
2
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
interface ClearIconHookProps extends IconHookProps {
|
|
4
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const useClearIcon: ({ intl, editorState, editorAnalyticsAPI, }: ClearIconHookProps) => MenuIconItem | null;
|
|
7
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
4
4
|
import { EditorState } from 'prosemirror-state';
|
|
5
5
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
6
|
import { ToolbarSize } from '../../../../ui/Toolbar/types';
|
|
7
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
8
|
export type ToolbarFormattingProps = {
|
|
8
9
|
editorView: EditorView;
|
|
9
10
|
isToolbarDisabled: boolean;
|
|
@@ -13,6 +14,7 @@ export type ToolbarFormattingProps = {
|
|
|
13
14
|
popupsMountPoint?: HTMLElement;
|
|
14
15
|
popupsBoundariesElement?: HTMLElement;
|
|
15
16
|
popupsScrollableElement?: HTMLElement;
|
|
17
|
+
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
16
18
|
};
|
|
17
19
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ToolbarFormattingProps & WrappedComponentProps<"intl"> & {
|
|
18
20
|
editorState: EditorState;
|