@atlaskit/editor-core 187.10.8 → 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 (118) hide show
  1. package/CHANGELOG.md +17 -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/index.js +2 -94
  8. package/dist/cjs/plugins/help-dialog/ui/index.js +42 -42
  9. package/dist/cjs/plugins/paste/handlers.js +4 -6
  10. package/dist/cjs/plugins/text-formatting/actions.js +188 -0
  11. package/dist/cjs/plugins/text-formatting/commands/text-formatting.js +1 -180
  12. package/dist/cjs/plugins/text-formatting/index.js +11 -0
  13. package/dist/cjs/plugins/text-formatting/pm-plugins/keymap.js +8 -8
  14. package/dist/cjs/plugins/text-formatting/pm-plugins/main.js +8 -8
  15. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +2 -2
  16. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +16 -16
  17. package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +8 -8
  18. package/dist/cjs/plugins/text-formatting/utils.js +8 -36
  19. package/dist/cjs/ui/ContentStyles/index.js +8 -9
  20. package/dist/cjs/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +3 -3
  21. package/dist/cjs/version-wrapper.js +1 -1
  22. package/dist/cjs/version.json +1 -1
  23. package/dist/es2019/create-editor/ReactEditorViewInternal.js +1 -4
  24. package/dist/es2019/editor-next/editor-internal.js +0 -2
  25. package/dist/es2019/editor-next/hooks/useProviderFactory.js +2 -2
  26. package/dist/es2019/editor-next/index.js +0 -2
  27. package/dist/es2019/editor.js +5 -0
  28. package/dist/es2019/index.js +0 -2
  29. package/dist/es2019/plugins/help-dialog/ui/index.js +1 -1
  30. package/dist/es2019/plugins/paste/handlers.js +5 -7
  31. package/dist/es2019/plugins/text-formatting/actions.js +161 -0
  32. package/dist/es2019/plugins/text-formatting/commands/text-formatting.js +1 -159
  33. package/dist/es2019/plugins/text-formatting/index.js +115 -102
  34. package/dist/es2019/plugins/text-formatting/pm-plugins/keymap.js +8 -8
  35. package/dist/es2019/plugins/text-formatting/pm-plugins/main.js +1 -1
  36. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +1 -1
  37. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -9
  38. package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +1 -1
  39. package/dist/es2019/plugins/text-formatting/utils.js +1 -29
  40. package/dist/es2019/ui/ContentStyles/index.js +2 -3
  41. package/dist/es2019/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +2 -2
  42. package/dist/es2019/version-wrapper.js +1 -1
  43. package/dist/es2019/version.json +1 -1
  44. package/dist/esm/create-editor/ReactEditorViewInternal.js +1 -4
  45. package/dist/esm/editor-next/editor-internal.js +0 -2
  46. package/dist/esm/editor-next/hooks/useProviderFactory.js +2 -2
  47. package/dist/esm/editor-next/index.js +0 -2
  48. package/dist/esm/editor.js +6 -2
  49. package/dist/esm/index.js +0 -2
  50. package/dist/esm/plugins/help-dialog/ui/index.js +1 -1
  51. package/dist/esm/plugins/paste/handlers.js +5 -7
  52. package/dist/esm/plugins/text-formatting/actions.js +168 -0
  53. package/dist/esm/plugins/text-formatting/commands/text-formatting.js +1 -166
  54. package/dist/esm/plugins/text-formatting/index.js +11 -0
  55. package/dist/esm/plugins/text-formatting/pm-plugins/keymap.js +8 -8
  56. package/dist/esm/plugins/text-formatting/pm-plugins/main.js +1 -1
  57. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +1 -1
  58. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -9
  59. package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +1 -1
  60. package/dist/esm/plugins/text-formatting/utils.js +6 -33
  61. package/dist/esm/ui/ContentStyles/index.js +2 -3
  62. package/dist/esm/{editor-next/utils/deprecationWarnings.js → utils/editorDeprecationWarnings.js} +2 -2
  63. package/dist/esm/version-wrapper.js +1 -1
  64. package/dist/esm/version.json +1 -1
  65. package/dist/types/create-editor/ReactEditorViewInternal.d.ts +0 -1
  66. package/dist/types/editor-next/hooks/useProviderFactory.d.ts +4 -4
  67. package/dist/types/editor.d.ts +1 -0
  68. package/dist/types/index.d.ts +6 -4
  69. package/dist/types/labs/next/presets/default.d.ts +50 -15
  70. package/dist/types/labs/next/presets/useUniversalPreset.d.ts +2 -2
  71. package/dist/types/plugins/media/ui/ResizableMediaSingle/guidelines.d.ts +1 -1
  72. package/dist/types/plugins/paste/handlers.d.ts +1 -2
  73. package/dist/types/plugins/text-formatting/actions.d.ts +22 -0
  74. package/dist/types/plugins/text-formatting/commands/text-formatting.d.ts +0 -31
  75. package/dist/types/plugins/text-formatting/index.d.ts +11 -2
  76. package/dist/types/plugins/text-formatting/pm-plugins/main.d.ts +1 -2
  77. package/dist/types/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
  78. package/dist/types/plugins/text-formatting/utils.d.ts +1 -5
  79. package/dist/types/types/editor-props.d.ts +11 -12
  80. package/dist/types/ui/ContentStyles/index.d.ts +1 -1
  81. package/dist/types/utils/editorDeprecationWarnings.d.ts +2 -0
  82. package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +0 -1
  83. package/dist/types-ts4.5/editor-next/hooks/useProviderFactory.d.ts +4 -4
  84. package/dist/types-ts4.5/editor.d.ts +1 -0
  85. package/dist/types-ts4.5/index.d.ts +6 -4
  86. package/dist/types-ts4.5/labs/next/presets/default.d.ts +50 -15
  87. package/dist/types-ts4.5/labs/next/presets/useUniversalPreset.d.ts +2 -2
  88. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/guidelines.d.ts +1 -1
  89. package/dist/types-ts4.5/plugins/paste/handlers.d.ts +1 -2
  90. package/dist/types-ts4.5/plugins/text-formatting/actions.d.ts +22 -0
  91. package/dist/types-ts4.5/plugins/text-formatting/commands/text-formatting.d.ts +0 -31
  92. package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +11 -2
  93. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/main.d.ts +1 -2
  94. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
  95. package/dist/types-ts4.5/plugins/text-formatting/utils.d.ts +1 -5
  96. package/dist/types-ts4.5/types/editor-props.d.ts +11 -12
  97. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +1 -1
  98. package/dist/types-ts4.5/utils/editorDeprecationWarnings.d.ts +2 -0
  99. package/package.json +3 -3
  100. package/report.api.md +39 -166
  101. package/tmp/api-report-tmp.d.ts +36 -135
  102. package/dist/cjs/plugins/text-formatting/styles.js +0 -15
  103. package/dist/cjs/plugins/text-formatting/types.js +0 -5
  104. package/dist/cjs/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -95
  105. package/dist/es2019/plugins/text-formatting/styles.js +0 -5
  106. package/dist/es2019/plugins/text-formatting/types.js +0 -1
  107. package/dist/es2019/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -88
  108. package/dist/esm/plugins/text-formatting/styles.js +0 -7
  109. package/dist/esm/plugins/text-formatting/types.js +0 -1
  110. package/dist/esm/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -88
  111. package/dist/types/editor-next/utils/deprecationWarnings.d.ts +0 -2
  112. package/dist/types/plugins/text-formatting/styles.d.ts +0 -2
  113. package/dist/types/plugins/text-formatting/types.d.ts +0 -30
  114. package/dist/types/plugins/text-formatting/ui/Toolbar/toolbar-messages.d.ts +0 -87
  115. package/dist/types-ts4.5/editor-next/utils/deprecationWarnings.d.ts +0 -2
  116. package/dist/types-ts4.5/plugins/text-formatting/styles.d.ts +0 -2
  117. package/dist/types-ts4.5/plugins/text-formatting/types.d.ts +0 -30
  118. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/toolbar-messages.d.ts +0 -87
@@ -21,8 +21,6 @@ export type { AnnotationProviders, InlineCommentAnnotationProvider, InlineCommen
21
21
  export type { QuickInsertProvider, QuickInsertItem, QuickInsertItemId, QuickInsertActionInsert, } from '@atlaskit/editor-common/provider-factory';
22
22
  export { stateKey as mediaPluginKey } from './plugins/media/pm-plugins/main';
23
23
  export { mentionPluginKey } from './plugins/mentions';
24
- export { pluginKey as textFormattingStateKey } from './plugins/text-formatting/pm-plugins/main';
25
- export type { TextFormattingState } from './plugins/text-formatting/pm-plugins/main';
26
24
  export { textColorPluginKey } from './plugins/text-color';
27
25
  export type { TextColorPluginState } from './plugins/text-color';
28
26
  export { changeColor } from './plugins/text-color/commands/change-color';
@@ -32,10 +30,9 @@ export type { BlockTypeState } from './plugins';
32
30
  export { pluginKey as listStateKey } from './plugins/list/pm-plugins/main';
33
31
  export type { ListState } from './plugins/list/types';
34
32
  export type { InputMethod as ListInputMethod } from './plugins/list/commands';
35
- export { toggleSuperscript, toggleSuperscriptWithAnalytics, toggleSubscript, toggleSubscriptWithAnalytics, toggleStrike, toggleStrikeWithAnalytics, toggleCode, toggleCodeWithAnalytics, toggleUnderline, toggleUnderlineWithAnalytics, toggleEm, toggleEmWithAnalytics, toggleStrong, toggleStrongWithAnalytics, } from './plugins/text-formatting/commands/text-formatting';
36
33
  export { subscribeToToolbarAndPickerUpdates } from './plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates';
37
34
  export { subscribeTypeAheadUpdates } from './plugins/view-update-subscription/subscribe/type-ahead-updates';
38
- export type { InputMethodToolbar as TextFormattingInputMethodToolbar, InputMethodBasic as TextFormattingInputMethodBasic, } from './plugins/text-formatting/commands/text-formatting';
35
+ export type { InputMethodToolbar as TextFormattingInputMethodToolbar, InputMethodBasic as TextFormattingInputMethodBasic, } from '@atlaskit/editor-common/types';
39
36
  export { insertBlockType, insertBlockTypesWithAnalytics, setBlockType, setBlockTypeWithAnalytics, } from './plugins/block-type/commands';
40
37
  export type { InputMethod as BlockTypeInputMethod } from './plugins/block-type/commands';
41
38
  export { createTable } from '@atlaskit/editor-plugin-table/commands';
@@ -85,3 +82,8 @@ export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
85
82
  export { default as messages, statusMessages, dateMessages } from './messages';
86
83
  export { createTypeAheadTools } from './plugins/type-ahead/api';
87
84
  export { createQuickInsertTools } from './plugins/quick-insert/api';
85
+ export type {
86
+ /**
87
+ * Temporary, until we extract the plugin to its own package
88
+ * @deprecated Don't use this
89
+ */ textFormattingPlugin, } from './plugins';
@@ -1,20 +1,19 @@
1
1
  /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
2
  /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- import { PastePluginOptions } from '../../../plugins/paste';
5
- import { BasePluginOptions } from '../../../plugins/base';
6
- import { EditorProps } from '../../../types/editor-props';
7
- import { EditorPresetProps } from './types';
8
- import { BlockTypePluginOptions } from '../../../plugins/block-type/types';
9
- import { PlaceholderPluginOptions } from '../../../plugins/placeholder';
10
- import { AnnotationProviders } from '../../../plugins/annotation';
11
- import { TextFormattingOptions } from '../../../plugins/text-formatting/types';
12
- import { QuickInsertPluginOptions } from '../../../plugins/quick-insert';
13
- import { CodeBlockOptions } from '../../../plugins/code-block/types';
14
- import { SelectionPluginOptions } from '../../../plugins/selection/types';
15
- import { CardOptions } from '@atlaskit/editor-common/card';
16
- import { TypeAheadPluginOptions } from '../../../plugins/type-ahead';
17
- import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
3
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
+ import type { PastePluginOptions } from '../../../plugins/paste';
5
+ import type { BasePluginOptions } from '../../../plugins/base';
6
+ import type { EditorProps } from '../../../types/editor-props';
7
+ import type { EditorPresetProps } from './types';
8
+ import type { BlockTypePluginOptions } from '../../../plugins/block-type/types';
9
+ import type { PlaceholderPluginOptions } from '../../../plugins/placeholder';
10
+ import type { AnnotationProviders } from '../../../plugins/annotation';
11
+ import type { TextFormattingOptions, HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
12
+ import type { QuickInsertPluginOptions } from '../../../plugins/quick-insert';
13
+ import type { CodeBlockOptions } from '../../../plugins/code-block/types';
14
+ import type { SelectionPluginOptions } from '../../../plugins/selection/types';
15
+ import type { CardOptions } from '@atlaskit/editor-common/card';
16
+ import type { TypeAheadPluginOptions } from '../../../plugins/type-ahead';
18
17
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
19
18
  export type DefaultPresetPluginOptions = {
20
19
  paste: PastePluginOptions;
@@ -257,6 +256,15 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
257
256
  }>];
258
257
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
259
258
  }>>];
259
+ actions: {
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;
267
+ };
260
268
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
261
269
  pluginConfiguration: TextFormattingOptions | undefined;
262
270
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
@@ -288,6 +296,15 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
288
296
  }>];
289
297
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
290
298
  }>>];
299
+ actions: {
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;
307
+ };
291
308
  }>, (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
292
309
  pluginConfiguration: HyperlinkPluginOptions | undefined;
293
310
  dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
@@ -598,6 +615,15 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
598
615
  }>];
599
616
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
600
617
  }>>];
618
+ actions: {
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;
626
+ };
601
627
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
602
628
  pluginConfiguration: TextFormattingOptions | undefined;
603
629
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
@@ -629,6 +655,15 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
629
655
  }>];
630
656
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
631
657
  }>>];
658
+ actions: {
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;
666
+ };
632
667
  }>, (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
633
668
  pluginConfiguration: HyperlinkPluginOptions | undefined;
634
669
  dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
@@ -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,4 +1,4 @@
1
1
  import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
2
- import type { EditorView } from 'prosemirror-view';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export declare const generateDefaultGuidelines: (editorWidth: number, containerWidth: number, isFullWidthMode?: boolean | undefined) => GuidelineConfig[];
4
4
  export declare const generateDynamicGuidelines: (view: EditorView) => GuidelineConfig[];
@@ -4,8 +4,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { ExtensionAutoConvertHandler } from '@atlaskit/editor-common/extensions';
5
5
  import type { Command } from '../../types';
6
6
  import type { InputMethodInsertMedia } from '../analytics';
7
- import type { CardOptions } from '@atlaskit/editor-common/card';
8
- import type { QueueCardsFromTransactionAction } from '@atlaskit/editor-common/card';
7
+ import type { QueueCardsFromTransactionAction, CardOptions } from '@atlaskit/editor-common/card';
9
8
  export declare function handleMention(slice: Slice, schema: Schema): Slice;
10
9
  export declare function handlePasteIntoTaskOrDecisionOrPanel(slice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined): Command;
11
10
  export declare function handlePasteNonNestableBlockNodesIntoList(slice: Slice): Command;
@@ -0,0 +1,22 @@
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import type { Command, InputMethodBasic } from '@atlaskit/editor-common/types';
3
+ type ToggleMarkCommand = () => Command;
4
+ export type ToggleMarkWithAnalyticsCommand = (analyticsMetadata: {
5
+ inputMethod: InputMethodBasic;
6
+ }) => Command;
7
+ type ToggleMarkWithAnalyticsFactory = (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ToggleMarkWithAnalyticsCommand;
8
+ export declare const toggleEm: ToggleMarkCommand;
9
+ export declare const toggleEmWithAnalytics: ToggleMarkWithAnalyticsFactory;
10
+ export declare const toggleStrike: ToggleMarkCommand;
11
+ export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsFactory;
12
+ export declare const toggleStrong: ToggleMarkCommand;
13
+ export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsFactory;
14
+ export declare const toggleUnderline: ToggleMarkCommand;
15
+ export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsFactory;
16
+ export declare const toggleSuperscript: ToggleMarkCommand;
17
+ export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
18
+ export declare const toggleSubscript: ToggleMarkCommand;
19
+ export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
20
+ export declare const toggleCode: ToggleMarkCommand;
21
+ export declare const toggleCodeWithAnalytics: ToggleMarkWithAnalyticsFactory;
22
+ export {};
@@ -1,36 +1,5 @@
1
1
  import type { Command } from '@atlaskit/editor-common/types';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
3
  export declare const moveRight: () => Command;
5
4
  export declare const moveLeft: () => Command;
6
- export type InputMethodToolbar = INPUT_METHOD.TOOLBAR;
7
- export type InputMethodBasic = InputMethodToolbar | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING;
8
- export declare const toggleEm: () => Command;
9
- export declare const toggleEmWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ inputMethod }: {
10
- inputMethod: InputMethodBasic;
11
- }) => Command;
12
- export declare const toggleStrike: () => Command;
13
- export declare const toggleStrikeWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ inputMethod }: {
14
- inputMethod: InputMethodBasic;
15
- }) => Command;
16
- export declare const toggleStrong: () => Command;
17
- export declare const toggleStrongWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ inputMethod }: {
18
- inputMethod: InputMethodBasic;
19
- }) => Command;
20
- export declare const toggleUnderline: () => Command;
21
- export declare const toggleUnderlineWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ inputMethod }: {
22
- inputMethod: InputMethodBasic;
23
- }) => Command;
24
- export declare const toggleSuperscript: () => Command;
25
- export declare const toggleSuperscriptWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ inputMethod }: {
26
- inputMethod: InputMethodBasic;
27
- }) => Command;
28
- export declare const toggleSubscript: () => Command;
29
- export declare const toggleSubscriptWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ inputMethod }: {
30
- inputMethod: InputMethodBasic;
31
- }) => Command;
32
- export declare const toggleCode: () => Command;
33
- export declare const toggleCodeWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ inputMethod }: {
34
- inputMethod: InputMethodBasic;
35
- }) => Command;
36
5
  export declare const createInlineCodeFromTextInputWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (from: number, to: number, text: string) => Command;
@@ -1,8 +1,17 @@
1
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { TextFormattingOptions } from './types';
1
+ import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions } from '@atlaskit/editor-common/types';
3
2
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
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
+ actions: {
8
+ toggleSuperscript: ToggleMarkWithAnalyticsCommand;
9
+ toggleSubscript: ToggleMarkWithAnalyticsCommand;
10
+ toggleStrike: ToggleMarkWithAnalyticsCommand;
11
+ toggleCode: ToggleMarkWithAnalyticsCommand;
12
+ toggleUnderline: ToggleMarkWithAnalyticsCommand;
13
+ toggleEm: ToggleMarkWithAnalyticsCommand;
14
+ toggleStrong: ToggleMarkWithAnalyticsCommand;
15
+ };
7
16
  }>;
8
17
  export default textFormatting;
@@ -1,8 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { TextFormattingState } from '../types';
3
+ import type { TextFormattingState } from '@atlaskit/editor-common/types';
4
4
  import { pluginKey } from './plugin-key';
5
5
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
6
6
  export { pluginKey };
7
- export type { TextFormattingState };
8
7
  export declare const plugin: (dispatch: Dispatch, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => SafePlugin<TextFormattingState>;
@@ -1,3 +1,3 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { TextFormattingState } from '../types';
2
+ import type { TextFormattingState } from '@atlaskit/editor-common/types';
3
3
  export declare const pluginKey: PluginKey<TextFormattingState>;
@@ -1,4 +1,4 @@
1
- import type { MarkType, Mark as PMMark, Mark } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { MenuIconItem } from './ui/Toolbar/types';
4
4
  export declare const hasCode: (state: EditorState, pos: number) => boolean;
@@ -6,10 +6,6 @@ export declare const hasCode: (state: EditorState, pos: number) => boolean;
6
6
  * Determine if a mark (with specific attribute values) exists anywhere in the selection.
7
7
  */
8
8
  export declare const markActive: (state: EditorState, mark: PMMark) => boolean;
9
- /**
10
- * Determine if a mark of a specific type exists anywhere in the selection.
11
- */
12
- export declare const anyMarkActive: (state: EditorState, markType: Mark | MarkType) => boolean;
13
9
  export declare const checkFormattingIsPresent: (state: EditorState) => boolean;
14
10
  export declare const compareItemsArrays: (items: MenuIconItem[], prevItems: MenuIconItem[]) => MenuIconItem[];
15
11
  export declare const isArrayContainsContent: (items: MenuIconItem[], content: string) => boolean;
@@ -6,7 +6,7 @@ import type { CardOptions } from '@atlaskit/editor-common/card';
6
6
  import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
7
7
  import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
8
8
  import type { ContextIdentifierProvider, Providers, SearchProvider } from '@atlaskit/editor-common/provider-factory';
9
- import type { AllEditorPresetPluginTypes, Transformer, LinkingOptions } from '@atlaskit/editor-common/types';
9
+ import type { AllEditorPresetPluginTypes, Transformer, LinkingOptions, TextFormattingOptions } from '@atlaskit/editor-common/types';
10
10
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
11
11
  import type { PluginConfig as TablesPluginConfig } from '@atlaskit/editor-plugin-table/types';
12
12
  import type { MentionProvider } from '@atlaskit/mention/resource';
@@ -25,7 +25,6 @@ import type { PanelPluginConfig } from '../plugins/panel/types';
25
25
  import type { PlaceholderTextOptions } from '../plugins/placeholder-text/types';
26
26
  import type { QuickInsertOptions } from '../plugins/quick-insert/types';
27
27
  import type { TextColorPluginConfig } from '../plugins/text-color/pm-plugins/main';
28
- import type { TextFormattingOptions } from '../plugins/text-formatting/types';
29
28
  import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
30
29
  import type { EditorAppearance } from './editor-appearance';
31
30
  import type { EditorOnChangeHandler } from './editor-onchange';
@@ -65,7 +64,6 @@ interface EditorBaseProps {
65
64
  contextPanel?: ReactComponents;
66
65
  errorReporterHandler?: ErrorReportingHandler;
67
66
  contentTransformerProvider?: (schema: Schema) => Transformer<string>;
68
- textFormatting?: TextFormattingOptions;
69
67
  maxHeight?: number;
70
68
  minHeight?: number;
71
69
  placeholder?: string;
@@ -88,7 +86,6 @@ interface EditorBaseProps {
88
86
  inputSamplingLimit?: number;
89
87
  extensionProviders?: ExtensionProvidersProp;
90
88
  UNSAFE_useAnalyticsContext?: boolean;
91
- codeBlock?: CodeBlockOptions;
92
89
  /**
93
90
  * @default undefined
94
91
  * @description Enables valid transaction events to be tracked in analytics (at a sampled rate)
@@ -145,22 +142,16 @@ export interface EditorSharedPropsWithPlugins {
145
142
  */
146
143
  performanceTracking?: PerformanceTracking;
147
144
  sanitizePrivateContent?: boolean;
148
- allowAnalyticsGASV3?: boolean;
149
145
  media?: MediaOptions;
150
146
  collabEdit?: CollabEditOptions;
151
- insertMenuItems?: MenuItem[];
147
+ codeBlock?: CodeBlockOptions;
148
+ textFormatting?: TextFormattingOptions;
152
149
  primaryToolbarComponents?: PrimaryToolbarComponents;
153
150
  allowUndoRedoButtons?: boolean;
154
- allowTables?: boolean | TablesPluginConfig;
155
- /** @deprecated Use smartLinks instead. */
156
- UNSAFE_cards?: CardOptions;
157
- /** @deprecated Use linking instead. */
158
- smartLinks?: CardOptions;
159
151
  /**
160
152
  * Configure and extend editor linking behaviour
161
153
  */
162
154
  linking?: LinkingOptions;
163
- contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
164
155
  }
165
156
  export interface EditorProps extends EditorBaseProps, EditorPluginFeatureProps, EditorSharedPropsWithPlugins, EditorProviderProps {
166
157
  /**
@@ -189,6 +180,7 @@ export interface EditorProviderProps {
189
180
  mentionProvider?: Promise<MentionProvider>;
190
181
  autoformattingProvider?: Providers['autoformattingProvider'];
191
182
  macroProvider?: Providers['macroProvider'];
183
+ contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
192
184
  }
193
185
  export interface EditorPluginFeatureProps {
194
186
  allowExpand?: boolean | {
@@ -254,4 +246,11 @@ export interface EditorPluginFeatureProps {
254
246
  waitForMediaUpload?: boolean;
255
247
  extensionHandlers?: ExtensionHandlers;
256
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;
257
256
  }
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { SerializedStyles } from '@emotion/react';
3
+ import type { SerializedStyles } from '@emotion/react';
4
4
  import type { FeatureFlags } from '../../types/feature-flags';
5
5
  export declare const linkStyles: SerializedStyles;
6
6
  type ContentStylesProps = {
@@ -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
  }
@@ -21,8 +21,6 @@ export type { AnnotationProviders, InlineCommentAnnotationProvider, InlineCommen
21
21
  export type { QuickInsertProvider, QuickInsertItem, QuickInsertItemId, QuickInsertActionInsert, } from '@atlaskit/editor-common/provider-factory';
22
22
  export { stateKey as mediaPluginKey } from './plugins/media/pm-plugins/main';
23
23
  export { mentionPluginKey } from './plugins/mentions';
24
- export { pluginKey as textFormattingStateKey } from './plugins/text-formatting/pm-plugins/main';
25
- export type { TextFormattingState } from './plugins/text-formatting/pm-plugins/main';
26
24
  export { textColorPluginKey } from './plugins/text-color';
27
25
  export type { TextColorPluginState } from './plugins/text-color';
28
26
  export { changeColor } from './plugins/text-color/commands/change-color';
@@ -32,10 +30,9 @@ export type { BlockTypeState } from './plugins';
32
30
  export { pluginKey as listStateKey } from './plugins/list/pm-plugins/main';
33
31
  export type { ListState } from './plugins/list/types';
34
32
  export type { InputMethod as ListInputMethod } from './plugins/list/commands';
35
- export { toggleSuperscript, toggleSuperscriptWithAnalytics, toggleSubscript, toggleSubscriptWithAnalytics, toggleStrike, toggleStrikeWithAnalytics, toggleCode, toggleCodeWithAnalytics, toggleUnderline, toggleUnderlineWithAnalytics, toggleEm, toggleEmWithAnalytics, toggleStrong, toggleStrongWithAnalytics, } from './plugins/text-formatting/commands/text-formatting';
36
33
  export { subscribeToToolbarAndPickerUpdates } from './plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates';
37
34
  export { subscribeTypeAheadUpdates } from './plugins/view-update-subscription/subscribe/type-ahead-updates';
38
- export type { InputMethodToolbar as TextFormattingInputMethodToolbar, InputMethodBasic as TextFormattingInputMethodBasic, } from './plugins/text-formatting/commands/text-formatting';
35
+ export type { InputMethodToolbar as TextFormattingInputMethodToolbar, InputMethodBasic as TextFormattingInputMethodBasic, } from '@atlaskit/editor-common/types';
39
36
  export { insertBlockType, insertBlockTypesWithAnalytics, setBlockType, setBlockTypeWithAnalytics, } from './plugins/block-type/commands';
40
37
  export type { InputMethod as BlockTypeInputMethod } from './plugins/block-type/commands';
41
38
  export { createTable } from '@atlaskit/editor-plugin-table/commands';
@@ -85,3 +82,8 @@ export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
85
82
  export { default as messages, statusMessages, dateMessages } from './messages';
86
83
  export { createTypeAheadTools } from './plugins/type-ahead/api';
87
84
  export { createQuickInsertTools } from './plugins/quick-insert/api';
85
+ export type {
86
+ /**
87
+ * Temporary, until we extract the plugin to its own package
88
+ * @deprecated Don't use this
89
+ */ textFormattingPlugin, } from './plugins';
@@ -1,20 +1,19 @@
1
1
  /// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
2
2
  /// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
3
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
- import { PastePluginOptions } from '../../../plugins/paste';
5
- import { BasePluginOptions } from '../../../plugins/base';
6
- import { EditorProps } from '../../../types/editor-props';
7
- import { EditorPresetProps } from './types';
8
- import { BlockTypePluginOptions } from '../../../plugins/block-type/types';
9
- import { PlaceholderPluginOptions } from '../../../plugins/placeholder';
10
- import { AnnotationProviders } from '../../../plugins/annotation';
11
- import { TextFormattingOptions } from '../../../plugins/text-formatting/types';
12
- import { QuickInsertPluginOptions } from '../../../plugins/quick-insert';
13
- import { CodeBlockOptions } from '../../../plugins/code-block/types';
14
- import { SelectionPluginOptions } from '../../../plugins/selection/types';
15
- import { CardOptions } from '@atlaskit/editor-common/card';
16
- import { TypeAheadPluginOptions } from '../../../plugins/type-ahead';
17
- import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
3
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
+ import type { PastePluginOptions } from '../../../plugins/paste';
5
+ import type { BasePluginOptions } from '../../../plugins/base';
6
+ import type { EditorProps } from '../../../types/editor-props';
7
+ import type { EditorPresetProps } from './types';
8
+ import type { BlockTypePluginOptions } from '../../../plugins/block-type/types';
9
+ import type { PlaceholderPluginOptions } from '../../../plugins/placeholder';
10
+ import type { AnnotationProviders } from '../../../plugins/annotation';
11
+ import type { TextFormattingOptions, HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
12
+ import type { QuickInsertPluginOptions } from '../../../plugins/quick-insert';
13
+ import type { CodeBlockOptions } from '../../../plugins/code-block/types';
14
+ import type { SelectionPluginOptions } from '../../../plugins/selection/types';
15
+ import type { CardOptions } from '@atlaskit/editor-common/card';
16
+ import type { TypeAheadPluginOptions } from '../../../plugins/type-ahead';
18
17
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
19
18
  export type DefaultPresetPluginOptions = {
20
19
  paste: PastePluginOptions;
@@ -312,6 +311,15 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
312
311
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
313
312
  }>>
314
313
  ];
314
+ actions: {
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;
322
+ };
315
323
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
316
324
  pluginConfiguration: TextFormattingOptions | undefined;
317
325
  dependencies: [
@@ -349,6 +357,15 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
349
357
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
350
358
  }>>
351
359
  ];
360
+ actions: {
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;
368
+ };
352
369
  }>,
353
370
  (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
354
371
  pluginConfiguration: HyperlinkPluginOptions | undefined;
@@ -731,6 +748,15 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
731
748
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
732
749
  }>>
733
750
  ];
751
+ actions: {
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;
759
+ };
734
760
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
735
761
  pluginConfiguration: TextFormattingOptions | undefined;
736
762
  dependencies: [
@@ -768,6 +794,15 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
768
794
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
769
795
  }>>
770
796
  ];
797
+ actions: {
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;
805
+ };
771
806
  }>,
772
807
  (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
773
808
  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,4 +1,4 @@
1
1
  import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
2
- import type { EditorView } from 'prosemirror-view';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export declare const generateDefaultGuidelines: (editorWidth: number, containerWidth: number, isFullWidthMode?: boolean | undefined) => GuidelineConfig[];
4
4
  export declare const generateDynamicGuidelines: (view: EditorView) => GuidelineConfig[];
@@ -4,8 +4,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { ExtensionAutoConvertHandler } from '@atlaskit/editor-common/extensions';
5
5
  import type { Command } from '../../types';
6
6
  import type { InputMethodInsertMedia } from '../analytics';
7
- import type { CardOptions } from '@atlaskit/editor-common/card';
8
- import type { QueueCardsFromTransactionAction } from '@atlaskit/editor-common/card';
7
+ import type { QueueCardsFromTransactionAction, CardOptions } from '@atlaskit/editor-common/card';
9
8
  export declare function handleMention(slice: Slice, schema: Schema): Slice;
10
9
  export declare function handlePasteIntoTaskOrDecisionOrPanel(slice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined): Command;
11
10
  export declare function handlePasteNonNestableBlockNodesIntoList(slice: Slice): Command;
@@ -0,0 +1,22 @@
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import type { Command, InputMethodBasic } from '@atlaskit/editor-common/types';
3
+ type ToggleMarkCommand = () => Command;
4
+ export type ToggleMarkWithAnalyticsCommand = (analyticsMetadata: {
5
+ inputMethod: InputMethodBasic;
6
+ }) => Command;
7
+ type ToggleMarkWithAnalyticsFactory = (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ToggleMarkWithAnalyticsCommand;
8
+ export declare const toggleEm: ToggleMarkCommand;
9
+ export declare const toggleEmWithAnalytics: ToggleMarkWithAnalyticsFactory;
10
+ export declare const toggleStrike: ToggleMarkCommand;
11
+ export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsFactory;
12
+ export declare const toggleStrong: ToggleMarkCommand;
13
+ export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsFactory;
14
+ export declare const toggleUnderline: ToggleMarkCommand;
15
+ export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsFactory;
16
+ export declare const toggleSuperscript: ToggleMarkCommand;
17
+ export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
18
+ export declare const toggleSubscript: ToggleMarkCommand;
19
+ export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsFactory;
20
+ export declare const toggleCode: ToggleMarkCommand;
21
+ export declare const toggleCodeWithAnalytics: ToggleMarkWithAnalyticsFactory;
22
+ export {};