@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.
Files changed (51) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/create-editor/ReactEditorViewInternal.js +1 -4
  3. package/dist/cjs/editor-next/editor-internal.js +0 -2
  4. package/dist/cjs/editor-next/hooks/useProviderFactory.js +2 -2
  5. package/dist/cjs/editor-next/index.js +0 -2
  6. package/dist/cjs/editor.js +6 -2
  7. package/dist/cjs/plugins/text-formatting/index.js +8 -14
  8. package/dist/cjs/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +3 -3
  9. package/dist/cjs/version-wrapper.js +1 -1
  10. package/dist/cjs/version.json +1 -1
  11. package/dist/es2019/create-editor/ReactEditorViewInternal.js +1 -4
  12. package/dist/es2019/editor-next/editor-internal.js +0 -2
  13. package/dist/es2019/editor-next/hooks/useProviderFactory.js +2 -2
  14. package/dist/es2019/editor-next/index.js +0 -2
  15. package/dist/es2019/editor.js +5 -0
  16. package/dist/es2019/plugins/text-formatting/index.js +115 -119
  17. package/dist/es2019/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +2 -2
  18. package/dist/es2019/version-wrapper.js +1 -1
  19. package/dist/es2019/version.json +1 -1
  20. package/dist/esm/create-editor/ReactEditorViewInternal.js +1 -4
  21. package/dist/esm/editor-next/editor-internal.js +0 -2
  22. package/dist/esm/editor-next/hooks/useProviderFactory.js +2 -2
  23. package/dist/esm/editor-next/index.js +0 -2
  24. package/dist/esm/editor.js +6 -2
  25. package/dist/esm/plugins/text-formatting/index.js +9 -15
  26. package/dist/esm/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +2 -2
  27. package/dist/esm/version-wrapper.js +1 -1
  28. package/dist/esm/version.json +1 -1
  29. package/dist/types/create-editor/ReactEditorViewInternal.d.ts +0 -1
  30. package/dist/types/editor-next/hooks/useProviderFactory.d.ts +4 -4
  31. package/dist/types/editor.d.ts +1 -0
  32. package/dist/types/labs/next/presets/default.d.ts +28 -56
  33. package/dist/types/labs/next/presets/useUniversalPreset.d.ts +2 -2
  34. package/dist/types/plugins/text-formatting/actions.d.ts +11 -9
  35. package/dist/types/plugins/text-formatting/index.d.ts +8 -15
  36. package/dist/types/types/editor-props.d.ts +10 -10
  37. package/dist/types/utils/editorDeprecationWarnings.d.ts +2 -0
  38. package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +0 -1
  39. package/dist/types-ts4.5/editor-next/hooks/useProviderFactory.d.ts +4 -4
  40. package/dist/types-ts4.5/editor.d.ts +1 -0
  41. package/dist/types-ts4.5/labs/next/presets/default.d.ts +28 -56
  42. package/dist/types-ts4.5/labs/next/presets/useUniversalPreset.d.ts +2 -2
  43. package/dist/types-ts4.5/plugins/text-formatting/actions.d.ts +11 -9
  44. package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +8 -15
  45. package/dist/types-ts4.5/types/editor-props.d.ts +10 -10
  46. package/dist/types-ts4.5/utils/editorDeprecationWarnings.d.ts +2 -0
  47. package/package.json +2 -2
  48. package/report.api.md +25 -38
  49. package/tmp/api-report-tmp.d.ts +25 -36
  50. package/dist/types/editor-next/utils/deprecationWarnings.d.ts +0 -2
  51. 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 { toggleSuperscript, toggleSuperscriptWithAnalytics, toggleSubscript, toggleSubscriptWithAnalytics, toggleStrike, toggleStrikeWithAnalytics, toggleCode, toggleCodeWithAnalytics, toggleUnderline, toggleUnderlineWithAnalytics, toggleEm, toggleEmWithAnalytics, toggleStrong, toggleStrongWithAnalytics } from './actions';
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: toggleSuperscript,
118
- toggleSuperscriptWithAnalytics: toggleSuperscriptWithAnalytics,
119
- toggleSubscript: toggleSubscript,
120
- toggleSubscriptWithAnalytics: toggleSubscriptWithAnalytics,
121
- toggleStrike: toggleStrike,
122
- toggleStrikeWithAnalytics: toggleStrikeWithAnalytics,
123
- toggleCode: toggleCode,
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
  };
@@ -1,5 +1,5 @@
1
- import { nextMajorVersion } from '../../version-wrapper';
2
- export default function deprecationWarnings(props) {
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
  }
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.11.0";
2
+ export var version = "187.12.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.11.0",
3
+ "version": "187.12.0",
4
4
  "sideEffects": false
5
5
  }
@@ -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
  }
@@ -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").ToggleMarkCommand;
261
- toggleSuperscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
262
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
263
- toggleSubscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
264
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
265
- toggleStrikeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
266
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
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").ToggleMarkCommand;
308
- toggleSuperscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
309
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
310
- toggleSubscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
311
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
312
- toggleStrikeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
313
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
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").ToggleMarkCommand;
634
- toggleSuperscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
635
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
636
- toggleSubscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
637
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
638
- toggleStrikeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
639
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
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").ToggleMarkCommand;
681
- toggleSuperscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
682
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
683
- toggleSubscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
684
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
685
- toggleStrikeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
686
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
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
- export type ToggleMarkCommand = () => Command;
4
- export type ToggleMarkWithAnalyticsCommand = (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (analyticsMetadata: {
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: ToggleMarkWithAnalyticsCommand;
9
+ export declare const toggleEmWithAnalytics: ToggleMarkWithAnalyticsFactory;
9
10
  export declare const toggleStrike: ToggleMarkCommand;
10
- export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsCommand;
11
+ export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsFactory;
11
12
  export declare const toggleStrong: ToggleMarkCommand;
12
- export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsCommand;
13
+ export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsFactory;
13
14
  export declare const toggleUnderline: ToggleMarkCommand;
14
- export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsCommand;
15
+ export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsFactory;
15
16
  export declare const toggleSuperscript: ToggleMarkCommand;
16
- export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
17
+ export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
17
18
  export declare const toggleSubscript: ToggleMarkCommand;
18
- export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
19
+ export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
19
20
  export declare const toggleCode: ToggleMarkCommand;
20
- export declare const toggleCodeWithAnalytics: ToggleMarkWithAnalyticsCommand;
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 { ToggleMarkCommand, ToggleMarkWithAnalyticsCommand } from './actions';
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: ToggleMarkCommand;
9
- toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
10
- toggleSubscript: ToggleMarkCommand;
11
- toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
12
- toggleStrike: ToggleMarkCommand;
13
- toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsCommand;
14
- toggleCode: ToggleMarkCommand;
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
- insertMenuItems?: MenuItem[];
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
  }
@@ -0,0 +1,2 @@
1
+ import type { EditorProps } from '../types/editor-props';
2
+ export default function editorDeprecationWarnings(props: EditorProps): void;
@@ -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").ToggleMarkCommand;
316
- toggleSuperscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
317
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
318
- toggleSubscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
319
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
320
- toggleStrikeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
321
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
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").ToggleMarkCommand;
369
- toggleSuperscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
370
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
371
- toggleSubscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
372
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
373
- toggleStrikeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
374
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
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").ToggleMarkCommand;
767
- toggleSuperscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
768
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
769
- toggleSubscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
770
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
771
- toggleStrikeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
772
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
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").ToggleMarkCommand;
820
- toggleSuperscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
821
- toggleSubscript: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
822
- toggleSubscriptWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
823
- toggleStrike: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
824
- toggleStrikeWithAnalytics: import("../../../plugins/text-formatting/actions").ToggleMarkWithAnalyticsCommand;
825
- toggleCode: import("../../../plugins/text-formatting/actions").ToggleMarkCommand;
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
- export type ToggleMarkCommand = () => Command;
4
- export type ToggleMarkWithAnalyticsCommand = (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (analyticsMetadata: {
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: ToggleMarkWithAnalyticsCommand;
9
+ export declare const toggleEmWithAnalytics: ToggleMarkWithAnalyticsFactory;
9
10
  export declare const toggleStrike: ToggleMarkCommand;
10
- export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsCommand;
11
+ export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsFactory;
11
12
  export declare const toggleStrong: ToggleMarkCommand;
12
- export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsCommand;
13
+ export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsFactory;
13
14
  export declare const toggleUnderline: ToggleMarkCommand;
14
- export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsCommand;
15
+ export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsFactory;
15
16
  export declare const toggleSuperscript: ToggleMarkCommand;
16
- export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
17
+ export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
17
18
  export declare const toggleSubscript: ToggleMarkCommand;
18
- export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
19
+ export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
19
20
  export declare const toggleCode: ToggleMarkCommand;
20
- export declare const toggleCodeWithAnalytics: ToggleMarkWithAnalyticsCommand;
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 { ToggleMarkCommand, ToggleMarkWithAnalyticsCommand } from './actions';
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: ToggleMarkCommand;
11
- toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
12
- toggleSubscript: ToggleMarkCommand;
13
- toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
14
- toggleStrike: ToggleMarkCommand;
15
- toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsCommand;
16
- toggleCode: ToggleMarkCommand;
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;