@atlaskit/editor-core 187.11.0 → 187.12.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 +7 -0
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +1 -4
- package/dist/cjs/editor-next/editor-internal.js +0 -2
- package/dist/cjs/editor-next/hooks/useProviderFactory.js +2 -2
- package/dist/cjs/editor-next/index.js +0 -2
- package/dist/cjs/editor.js +6 -2
- package/dist/cjs/plugins/text-formatting/index.js +8 -14
- package/dist/cjs/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +3 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +1 -4
- package/dist/es2019/editor-next/editor-internal.js +0 -2
- package/dist/es2019/editor-next/hooks/useProviderFactory.js +2 -2
- package/dist/es2019/editor-next/index.js +0 -2
- package/dist/es2019/editor.js +5 -0
- package/dist/es2019/plugins/text-formatting/index.js +115 -119
- package/dist/es2019/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ReactEditorViewInternal.js +1 -4
- package/dist/esm/editor-next/editor-internal.js +0 -2
- package/dist/esm/editor-next/hooks/useProviderFactory.js +2 -2
- package/dist/esm/editor-next/index.js +0 -2
- package/dist/esm/editor.js +6 -2
- package/dist/esm/plugins/text-formatting/index.js +9 -15
- package/dist/esm/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +0 -1
- package/dist/types/editor-next/hooks/useProviderFactory.d.ts +4 -4
- package/dist/types/editor.d.ts +1 -0
- package/dist/types/labs/next/presets/default.d.ts +28 -56
- package/dist/types/labs/next/presets/useUniversalPreset.d.ts +2 -2
- package/dist/types/plugins/text-formatting/actions.d.ts +11 -9
- package/dist/types/plugins/text-formatting/index.d.ts +8 -15
- package/dist/types/types/editor-props.d.ts +10 -10
- package/dist/types/utils/editorDeprecationWarnings.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +0 -1
- package/dist/types-ts4.5/editor-next/hooks/useProviderFactory.d.ts +4 -4
- package/dist/types-ts4.5/editor.d.ts +1 -0
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +28 -56
- package/dist/types-ts4.5/labs/next/presets/useUniversalPreset.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/actions.d.ts +11 -9
- package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +8 -15
- package/dist/types-ts4.5/types/editor-props.d.ts +10 -10
- package/dist/types-ts4.5/utils/editorDeprecationWarnings.d.ts +2 -0
- package/package.json +2 -2
- package/report.api.md +25 -38
- package/tmp/api-report-tmp.d.ts +25 -36
- package/dist/types/editor-next/utils/deprecationWarnings.d.ts +0 -2
- package/dist/types-ts4.5/editor-next/utils/deprecationWarnings.d.ts +0 -2
|
@@ -9,8 +9,9 @@ import textFormattingInputRulePlugin from './pm-plugins/input-rule';
|
|
|
9
9
|
import keymapPlugin from './pm-plugins/keymap';
|
|
10
10
|
import textFormattingSmartInputRulePlugin from './pm-plugins/smart-input-rule';
|
|
11
11
|
import Toolbar from './ui/Toolbar';
|
|
12
|
-
import {
|
|
12
|
+
import { toggleSuperscriptWithAnalytics, toggleSubscriptWithAnalytics, toggleStrikeWithAnalytics, toggleCodeWithAnalytics, toggleUnderlineWithAnalytics, toggleEmWithAnalytics, toggleStrongWithAnalytics } from './actions';
|
|
13
13
|
var textFormatting = function textFormatting() {
|
|
14
|
+
var _api$dependencies$ana7, _api$dependencies$ana8, _api$dependencies$ana9, _api$dependencies$ana10, _api$dependencies$ana11, _api$dependencies$ana12, _api$dependencies$ana13;
|
|
14
15
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
15
16
|
var api = arguments.length > 1 ? arguments[1] : undefined;
|
|
16
17
|
return {
|
|
@@ -114,20 +115,13 @@ var textFormatting = function textFormatting() {
|
|
|
114
115
|
});
|
|
115
116
|
},
|
|
116
117
|
actions: {
|
|
117
|
-
toggleSuperscript:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
toggleCodeWithAnalytics: toggleCodeWithAnalytics,
|
|
125
|
-
toggleUnderline: toggleUnderline,
|
|
126
|
-
toggleUnderlineWithAnalytics: toggleUnderlineWithAnalytics,
|
|
127
|
-
toggleEm: toggleEm,
|
|
128
|
-
toggleEmWithAnalytics: toggleEmWithAnalytics,
|
|
129
|
-
toggleStrong: toggleStrong,
|
|
130
|
-
toggleStrongWithAnalytics: toggleStrongWithAnalytics
|
|
118
|
+
toggleSuperscript: toggleSuperscriptWithAnalytics(api === null || api === void 0 ? void 0 : (_api$dependencies$ana7 = api.dependencies.analytics) === null || _api$dependencies$ana7 === void 0 ? void 0 : _api$dependencies$ana7.actions),
|
|
119
|
+
toggleSubscript: toggleSubscriptWithAnalytics(api === null || api === void 0 ? void 0 : (_api$dependencies$ana8 = api.dependencies.analytics) === null || _api$dependencies$ana8 === void 0 ? void 0 : _api$dependencies$ana8.actions),
|
|
120
|
+
toggleStrike: toggleStrikeWithAnalytics(api === null || api === void 0 ? void 0 : (_api$dependencies$ana9 = api.dependencies.analytics) === null || _api$dependencies$ana9 === void 0 ? void 0 : _api$dependencies$ana9.actions),
|
|
121
|
+
toggleCode: toggleCodeWithAnalytics(api === null || api === void 0 ? void 0 : (_api$dependencies$ana10 = api.dependencies.analytics) === null || _api$dependencies$ana10 === void 0 ? void 0 : _api$dependencies$ana10.actions),
|
|
122
|
+
toggleUnderline: toggleUnderlineWithAnalytics(api === null || api === void 0 ? void 0 : (_api$dependencies$ana11 = api.dependencies.analytics) === null || _api$dependencies$ana11 === void 0 ? void 0 : _api$dependencies$ana11.actions),
|
|
123
|
+
toggleEm: toggleEmWithAnalytics(api === null || api === void 0 ? void 0 : (_api$dependencies$ana12 = api.dependencies.analytics) === null || _api$dependencies$ana12 === void 0 ? void 0 : _api$dependencies$ana12.actions),
|
|
124
|
+
toggleStrong: toggleStrongWithAnalytics(api === null || api === void 0 ? void 0 : (_api$dependencies$ana13 = api.dependencies.analytics) === null || _api$dependencies$ana13 === void 0 ? void 0 : _api$dependencies$ana13.actions)
|
|
131
125
|
}
|
|
132
126
|
};
|
|
133
127
|
};
|
package/dist/esm/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { nextMajorVersion } from '
|
|
2
|
-
export default function
|
|
1
|
+
import { nextMajorVersion } from '../version-wrapper';
|
|
2
|
+
export default function editorDeprecationWarnings(props) {
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
|
4
4
|
return;
|
|
5
5
|
}
|
package/dist/esm/version.json
CHANGED
|
@@ -24,7 +24,6 @@ export interface EditorViewProps {
|
|
|
24
24
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
25
25
|
providerFactory: ProviderFactory;
|
|
26
26
|
portalProviderAPI: PortalProviderAPI;
|
|
27
|
-
allowAnalyticsGASV3?: boolean;
|
|
28
27
|
disabled?: boolean;
|
|
29
28
|
experienceStore?: ExperienceStore;
|
|
30
29
|
render?: (props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import EditorActions from '../../actions';
|
|
5
|
-
import { QuickInsertProvider } from '../../plugins/quick-insert/types';
|
|
6
|
-
import { EditorNextProps } from '../../types/editor-props';
|
|
4
|
+
import type EditorActions from '../../actions';
|
|
5
|
+
import type { QuickInsertProvider } from '../../plugins/quick-insert/types';
|
|
6
|
+
import type { EditorNextProps } from '../../types/editor-props';
|
|
7
7
|
export type ProviderFactoryState = {
|
|
8
8
|
extensionProvider?: ExtensionProvider;
|
|
9
9
|
quickInsertProvider?: Promise<QuickInsertProvider>;
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ import type { EditorProps } from './types/editor-props';
|
|
|
5
5
|
export type { AllowedBlockTypes, Command, CommandDispatch, DomAtPos, EditorAppearance, EditorAppearanceComponentProps, EditorConfig, EditorInstance, EditorPlugin, EditorProps, ExtensionConfig, ExtensionProvidersProp, FeedbackInfo, MarkConfig, MessageDescriptor, NodeConfig, NodeViewConfig, PluginsOptions, PMPlugin, PMPluginCreateConfig, PMPluginFactory, PMPluginFactoryParams, ReactComponents, ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, UIComponentFactory, UiComponentFactoryParams, } from './types';
|
|
6
6
|
export default class Editor extends React.Component<EditorProps> {
|
|
7
7
|
static defaultProps: EditorProps;
|
|
8
|
+
constructor(props: EditorProps);
|
|
8
9
|
render(): jsx.JSX.Element;
|
|
9
10
|
}
|
|
@@ -257,20 +257,13 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
257
257
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
258
258
|
}>>];
|
|
259
259
|
actions: {
|
|
260
|
-
toggleSuperscript: import("../../../plugins/text-formatting/actions").
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
toggleCodeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
268
|
-
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
269
|
-
toggleUnderlineWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
270
|
-
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
271
|
-
toggleEmWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
272
|
-
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
273
|
-
toggleStrongWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
260
|
+
toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
261
|
+
toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
262
|
+
toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
263
|
+
toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
264
|
+
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
265
|
+
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
266
|
+
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
274
267
|
};
|
|
275
268
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
276
269
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
@@ -304,20 +297,13 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
304
297
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
305
298
|
}>>];
|
|
306
299
|
actions: {
|
|
307
|
-
toggleSuperscript: import("../../../plugins/text-formatting/actions").
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
toggleCodeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
315
|
-
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
316
|
-
toggleUnderlineWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
317
|
-
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
318
|
-
toggleEmWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
319
|
-
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
320
|
-
toggleStrongWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
300
|
+
toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
301
|
+
toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
302
|
+
toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
303
|
+
toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
304
|
+
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
305
|
+
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
306
|
+
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
321
307
|
};
|
|
322
308
|
}>, (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
323
309
|
pluginConfiguration: HyperlinkPluginOptions | undefined;
|
|
@@ -630,20 +616,13 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
630
616
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
631
617
|
}>>];
|
|
632
618
|
actions: {
|
|
633
|
-
toggleSuperscript: import("../../../plugins/text-formatting/actions").
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
toggleCodeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
641
|
-
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
642
|
-
toggleUnderlineWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
643
|
-
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
644
|
-
toggleEmWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
645
|
-
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
646
|
-
toggleStrongWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
619
|
+
toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
620
|
+
toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
621
|
+
toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
622
|
+
toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
623
|
+
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
624
|
+
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
625
|
+
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
647
626
|
};
|
|
648
627
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
649
628
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
@@ -677,20 +656,13 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
677
656
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
678
657
|
}>>];
|
|
679
658
|
actions: {
|
|
680
|
-
toggleSuperscript: import("../../../plugins/text-formatting/actions").
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
toggleCodeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
688
|
-
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
689
|
-
toggleUnderlineWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
690
|
-
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
691
|
-
toggleEmWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
692
|
-
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
693
|
-
toggleStrongWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
659
|
+
toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
660
|
+
toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
661
|
+
toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
662
|
+
toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
663
|
+
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
664
|
+
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
665
|
+
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
694
666
|
};
|
|
695
667
|
}>, (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
696
668
|
pluginConfiguration: HyperlinkPluginOptions | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorProps } from '../../../types/editor-props';
|
|
2
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
1
|
+
import type { EditorProps } from '../../../types/editor-props';
|
|
2
|
+
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
3
|
interface PresetProps {
|
|
4
4
|
props: EditorProps;
|
|
5
5
|
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Command, InputMethodBasic } from '@atlaskit/editor-common/types';
|
|
3
|
-
|
|
4
|
-
export type ToggleMarkWithAnalyticsCommand = (
|
|
3
|
+
type ToggleMarkCommand = () => Command;
|
|
4
|
+
export type ToggleMarkWithAnalyticsCommand = (analyticsMetadata: {
|
|
5
5
|
inputMethod: InputMethodBasic;
|
|
6
6
|
}) => Command;
|
|
7
|
+
type ToggleMarkWithAnalyticsFactory = (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ToggleMarkWithAnalyticsCommand;
|
|
7
8
|
export declare const toggleEm: ToggleMarkCommand;
|
|
8
|
-
export declare const toggleEmWithAnalytics:
|
|
9
|
+
export declare const toggleEmWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
9
10
|
export declare const toggleStrike: ToggleMarkCommand;
|
|
10
|
-
export declare const toggleStrikeWithAnalytics:
|
|
11
|
+
export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
11
12
|
export declare const toggleStrong: ToggleMarkCommand;
|
|
12
|
-
export declare const toggleStrongWithAnalytics:
|
|
13
|
+
export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
13
14
|
export declare const toggleUnderline: ToggleMarkCommand;
|
|
14
|
-
export declare const toggleUnderlineWithAnalytics:
|
|
15
|
+
export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
15
16
|
export declare const toggleSuperscript: ToggleMarkCommand;
|
|
16
|
-
export declare const toggleSuperscriptWithAnalytics:
|
|
17
|
+
export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
17
18
|
export declare const toggleSubscript: ToggleMarkCommand;
|
|
18
|
-
export declare const toggleSubscriptWithAnalytics:
|
|
19
|
+
export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
19
20
|
export declare const toggleCode: ToggleMarkCommand;
|
|
20
|
-
export declare const toggleCodeWithAnalytics:
|
|
21
|
+
export declare const toggleCodeWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
22
|
+
export {};
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ToggleMarkWithAnalyticsCommand } from './actions';
|
|
4
4
|
declare const textFormatting: NextEditorPlugin<'textFormatting', {
|
|
5
5
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
6
6
|
dependencies: [OptionalPlugin<typeof analyticsPlugin>];
|
|
7
7
|
actions: {
|
|
8
|
-
toggleSuperscript:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
toggleCodeWithAnalytics: ToggleMarkWithAnalyticsCommand;
|
|
16
|
-
toggleUnderline: ToggleMarkCommand;
|
|
17
|
-
toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsCommand;
|
|
18
|
-
toggleEm: ToggleMarkCommand;
|
|
19
|
-
toggleEmWithAnalytics: ToggleMarkWithAnalyticsCommand;
|
|
20
|
-
toggleStrong: ToggleMarkCommand;
|
|
21
|
-
toggleStrongWithAnalytics: ToggleMarkWithAnalyticsCommand;
|
|
8
|
+
toggleSuperscript: ToggleMarkWithAnalyticsCommand;
|
|
9
|
+
toggleSubscript: ToggleMarkWithAnalyticsCommand;
|
|
10
|
+
toggleStrike: ToggleMarkWithAnalyticsCommand;
|
|
11
|
+
toggleCode: ToggleMarkWithAnalyticsCommand;
|
|
12
|
+
toggleUnderline: ToggleMarkWithAnalyticsCommand;
|
|
13
|
+
toggleEm: ToggleMarkWithAnalyticsCommand;
|
|
14
|
+
toggleStrong: ToggleMarkWithAnalyticsCommand;
|
|
22
15
|
};
|
|
23
16
|
}>;
|
|
24
17
|
export default textFormatting;
|
|
@@ -64,7 +64,6 @@ interface EditorBaseProps {
|
|
|
64
64
|
contextPanel?: ReactComponents;
|
|
65
65
|
errorReporterHandler?: ErrorReportingHandler;
|
|
66
66
|
contentTransformerProvider?: (schema: Schema) => Transformer<string>;
|
|
67
|
-
textFormatting?: TextFormattingOptions;
|
|
68
67
|
maxHeight?: number;
|
|
69
68
|
minHeight?: number;
|
|
70
69
|
placeholder?: string;
|
|
@@ -87,7 +86,6 @@ interface EditorBaseProps {
|
|
|
87
86
|
inputSamplingLimit?: number;
|
|
88
87
|
extensionProviders?: ExtensionProvidersProp;
|
|
89
88
|
UNSAFE_useAnalyticsContext?: boolean;
|
|
90
|
-
codeBlock?: CodeBlockOptions;
|
|
91
89
|
/**
|
|
92
90
|
* @default undefined
|
|
93
91
|
* @description Enables valid transaction events to be tracked in analytics (at a sampled rate)
|
|
@@ -144,22 +142,16 @@ export interface EditorSharedPropsWithPlugins {
|
|
|
144
142
|
*/
|
|
145
143
|
performanceTracking?: PerformanceTracking;
|
|
146
144
|
sanitizePrivateContent?: boolean;
|
|
147
|
-
allowAnalyticsGASV3?: boolean;
|
|
148
145
|
media?: MediaOptions;
|
|
149
146
|
collabEdit?: CollabEditOptions;
|
|
150
|
-
|
|
147
|
+
codeBlock?: CodeBlockOptions;
|
|
148
|
+
textFormatting?: TextFormattingOptions;
|
|
151
149
|
primaryToolbarComponents?: PrimaryToolbarComponents;
|
|
152
150
|
allowUndoRedoButtons?: boolean;
|
|
153
|
-
allowTables?: boolean | TablesPluginConfig;
|
|
154
|
-
/** @deprecated Use smartLinks instead. */
|
|
155
|
-
UNSAFE_cards?: CardOptions;
|
|
156
|
-
/** @deprecated Use linking instead. */
|
|
157
|
-
smartLinks?: CardOptions;
|
|
158
151
|
/**
|
|
159
152
|
* Configure and extend editor linking behaviour
|
|
160
153
|
*/
|
|
161
154
|
linking?: LinkingOptions;
|
|
162
|
-
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
163
155
|
}
|
|
164
156
|
export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps, EditorSharedPropsWithPlugins, EditorProviderProps {
|
|
165
157
|
/**
|
|
@@ -188,6 +180,7 @@ export interface EditorProviderProps {
|
|
|
188
180
|
mentionProvider?: Promise<MentionProvider>;
|
|
189
181
|
autoformattingProvider?: Providers['autoformattingProvider'];
|
|
190
182
|
macroProvider?: Providers['macroProvider'];
|
|
183
|
+
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
191
184
|
}
|
|
192
185
|
export interface EditorPluginFeatureProps {
|
|
193
186
|
allowExpand?: boolean | {
|
|
@@ -253,4 +246,11 @@ export interface EditorPluginFeatureProps {
|
|
|
253
246
|
waitForMediaUpload?: boolean;
|
|
254
247
|
extensionHandlers?: ExtensionHandlers;
|
|
255
248
|
allowTextColor?: boolean | TextColorPluginConfig;
|
|
249
|
+
allowTables?: boolean | TablesPluginConfig;
|
|
250
|
+
insertMenuItems?: MenuItem[];
|
|
251
|
+
/** @deprecated Use smartLinks instead. */
|
|
252
|
+
UNSAFE_cards?: CardOptions;
|
|
253
|
+
/** @deprecated Use linking instead. */
|
|
254
|
+
smartLinks?: CardOptions;
|
|
255
|
+
allowAnalyticsGASV3?: boolean;
|
|
256
256
|
}
|
|
@@ -24,7 +24,6 @@ export interface EditorViewProps {
|
|
|
24
24
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
25
25
|
providerFactory: ProviderFactory;
|
|
26
26
|
portalProviderAPI: PortalProviderAPI;
|
|
27
|
-
allowAnalyticsGASV3?: boolean;
|
|
28
27
|
disabled?: boolean;
|
|
29
28
|
experienceStore?: ExperienceStore;
|
|
30
29
|
render?: (props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import EditorActions from '../../actions';
|
|
5
|
-
import { QuickInsertProvider } from '../../plugins/quick-insert/types';
|
|
6
|
-
import { EditorNextProps } from '../../types/editor-props';
|
|
4
|
+
import type EditorActions from '../../actions';
|
|
5
|
+
import type { QuickInsertProvider } from '../../plugins/quick-insert/types';
|
|
6
|
+
import type { EditorNextProps } from '../../types/editor-props';
|
|
7
7
|
export type ProviderFactoryState = {
|
|
8
8
|
extensionProvider?: ExtensionProvider;
|
|
9
9
|
quickInsertProvider?: Promise<QuickInsertProvider>;
|
|
@@ -5,5 +5,6 @@ import type { EditorProps } from './types/editor-props';
|
|
|
5
5
|
export type { AllowedBlockTypes, Command, CommandDispatch, DomAtPos, EditorAppearance, EditorAppearanceComponentProps, EditorConfig, EditorInstance, EditorPlugin, EditorProps, ExtensionConfig, ExtensionProvidersProp, FeedbackInfo, MarkConfig, MessageDescriptor, NodeConfig, NodeViewConfig, PluginsOptions, PMPlugin, PMPluginCreateConfig, PMPluginFactory, PMPluginFactoryParams, ReactComponents, ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, UIComponentFactory, UiComponentFactoryParams, } from './types';
|
|
6
6
|
export default class Editor extends React.Component<EditorProps> {
|
|
7
7
|
static defaultProps: EditorProps;
|
|
8
|
+
constructor(props: EditorProps);
|
|
8
9
|
render(): jsx.JSX.Element;
|
|
9
10
|
}
|
|
@@ -312,20 +312,13 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
312
312
|
}>>
|
|
313
313
|
];
|
|
314
314
|
actions: {
|
|
315
|
-
toggleSuperscript: import("../../../plugins/text-formatting/actions").
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
toggleCodeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
323
|
-
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
324
|
-
toggleUnderlineWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
325
|
-
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
326
|
-
toggleEmWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
327
|
-
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
328
|
-
toggleStrongWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
315
|
+
toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
316
|
+
toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
317
|
+
toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
318
|
+
toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
319
|
+
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
320
|
+
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
321
|
+
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
329
322
|
};
|
|
330
323
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
331
324
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
@@ -365,20 +358,13 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
365
358
|
}>>
|
|
366
359
|
];
|
|
367
360
|
actions: {
|
|
368
|
-
toggleSuperscript: import("../../../plugins/text-formatting/actions").
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
toggleCodeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
376
|
-
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
377
|
-
toggleUnderlineWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
378
|
-
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
379
|
-
toggleEmWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
380
|
-
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
381
|
-
toggleStrongWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
361
|
+
toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
362
|
+
toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
363
|
+
toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
364
|
+
toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
365
|
+
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
366
|
+
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
367
|
+
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
382
368
|
};
|
|
383
369
|
}>,
|
|
384
370
|
(config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
@@ -763,20 +749,13 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
763
749
|
}>>
|
|
764
750
|
];
|
|
765
751
|
actions: {
|
|
766
|
-
toggleSuperscript: import("../../../plugins/text-formatting/actions").
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
toggleCodeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
774
|
-
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
775
|
-
toggleUnderlineWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
776
|
-
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
777
|
-
toggleEmWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
778
|
-
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
779
|
-
toggleStrongWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
752
|
+
toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
753
|
+
toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
754
|
+
toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
755
|
+
toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
756
|
+
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
757
|
+
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
758
|
+
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
780
759
|
};
|
|
781
760
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
782
761
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
@@ -816,20 +795,13 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
816
795
|
}>>
|
|
817
796
|
];
|
|
818
797
|
actions: {
|
|
819
|
-
toggleSuperscript: import("../../../plugins/text-formatting/actions").
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
toggleCodeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
827
|
-
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
828
|
-
toggleUnderlineWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
829
|
-
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
830
|
-
toggleEmWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
831
|
-
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
|
|
832
|
-
toggleStrongWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
798
|
+
toggleSuperscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
799
|
+
toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
800
|
+
toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
801
|
+
toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
802
|
+
toggleUnderline: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
803
|
+
toggleEm: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
804
|
+
toggleStrong: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
|
|
833
805
|
};
|
|
834
806
|
}>,
|
|
835
807
|
(config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorProps } from '../../../types/editor-props';
|
|
2
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
1
|
+
import type { EditorProps } from '../../../types/editor-props';
|
|
2
|
+
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
3
|
interface PresetProps {
|
|
4
4
|
props: EditorProps;
|
|
5
5
|
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Command, InputMethodBasic } from '@atlaskit/editor-common/types';
|
|
3
|
-
|
|
4
|
-
export type ToggleMarkWithAnalyticsCommand = (
|
|
3
|
+
type ToggleMarkCommand = () => Command;
|
|
4
|
+
export type ToggleMarkWithAnalyticsCommand = (analyticsMetadata: {
|
|
5
5
|
inputMethod: InputMethodBasic;
|
|
6
6
|
}) => Command;
|
|
7
|
+
type ToggleMarkWithAnalyticsFactory = (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ToggleMarkWithAnalyticsCommand;
|
|
7
8
|
export declare const toggleEm: ToggleMarkCommand;
|
|
8
|
-
export declare const toggleEmWithAnalytics:
|
|
9
|
+
export declare const toggleEmWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
9
10
|
export declare const toggleStrike: ToggleMarkCommand;
|
|
10
|
-
export declare const toggleStrikeWithAnalytics:
|
|
11
|
+
export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
11
12
|
export declare const toggleStrong: ToggleMarkCommand;
|
|
12
|
-
export declare const toggleStrongWithAnalytics:
|
|
13
|
+
export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
13
14
|
export declare const toggleUnderline: ToggleMarkCommand;
|
|
14
|
-
export declare const toggleUnderlineWithAnalytics:
|
|
15
|
+
export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
15
16
|
export declare const toggleSuperscript: ToggleMarkCommand;
|
|
16
|
-
export declare const toggleSuperscriptWithAnalytics:
|
|
17
|
+
export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
17
18
|
export declare const toggleSubscript: ToggleMarkCommand;
|
|
18
|
-
export declare const toggleSubscriptWithAnalytics:
|
|
19
|
+
export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
19
20
|
export declare const toggleCode: ToggleMarkCommand;
|
|
20
|
-
export declare const toggleCodeWithAnalytics:
|
|
21
|
+
export declare const toggleCodeWithAnalytics: ToggleMarkWithAnalyticsFactory;
|
|
22
|
+
export {};
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ToggleMarkWithAnalyticsCommand } from './actions';
|
|
4
4
|
declare const textFormatting: NextEditorPlugin<'textFormatting', {
|
|
5
5
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
6
6
|
dependencies: [
|
|
7
7
|
OptionalPlugin<typeof analyticsPlugin>
|
|
8
8
|
];
|
|
9
9
|
actions: {
|
|
10
|
-
toggleSuperscript:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
toggleCodeWithAnalytics: ToggleMarkWithAnalyticsCommand;
|
|
18
|
-
toggleUnderline: ToggleMarkCommand;
|
|
19
|
-
toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsCommand;
|
|
20
|
-
toggleEm: ToggleMarkCommand;
|
|
21
|
-
toggleEmWithAnalytics: ToggleMarkWithAnalyticsCommand;
|
|
22
|
-
toggleStrong: ToggleMarkCommand;
|
|
23
|
-
toggleStrongWithAnalytics: ToggleMarkWithAnalyticsCommand;
|
|
10
|
+
toggleSuperscript: ToggleMarkWithAnalyticsCommand;
|
|
11
|
+
toggleSubscript: ToggleMarkWithAnalyticsCommand;
|
|
12
|
+
toggleStrike: ToggleMarkWithAnalyticsCommand;
|
|
13
|
+
toggleCode: ToggleMarkWithAnalyticsCommand;
|
|
14
|
+
toggleUnderline: ToggleMarkWithAnalyticsCommand;
|
|
15
|
+
toggleEm: ToggleMarkWithAnalyticsCommand;
|
|
16
|
+
toggleStrong: ToggleMarkWithAnalyticsCommand;
|
|
24
17
|
};
|
|
25
18
|
}>;
|
|
26
19
|
export default textFormatting;
|