@atlaskit/editor-core 187.10.6 → 187.11.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 (105) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/index.js +2 -94
  3. package/dist/cjs/plugins/help-dialog/ui/index.js +42 -42
  4. package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +5 -5
  5. package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +3 -3
  6. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +15 -6
  7. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +18 -16
  8. package/dist/cjs/plugins/media/utils/media-single.js +5 -9
  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 +17 -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/version-wrapper.js +1 -1
  21. package/dist/cjs/version.json +1 -1
  22. package/dist/es2019/index.js +0 -2
  23. package/dist/es2019/plugins/help-dialog/ui/index.js +1 -1
  24. package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +1 -1
  25. package/dist/es2019/plugins/media/nodeviews/mediaNodeView/index.js +1 -1
  26. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +13 -4
  27. package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +11 -10
  28. package/dist/es2019/plugins/media/utils/media-single.js +6 -7
  29. package/dist/es2019/plugins/paste/handlers.js +5 -7
  30. package/dist/es2019/plugins/text-formatting/actions.js +161 -0
  31. package/dist/es2019/plugins/text-formatting/commands/text-formatting.js +1 -159
  32. package/dist/es2019/plugins/text-formatting/index.js +17 -0
  33. package/dist/es2019/plugins/text-formatting/pm-plugins/keymap.js +8 -8
  34. package/dist/es2019/plugins/text-formatting/pm-plugins/main.js +1 -1
  35. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +1 -1
  36. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -9
  37. package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +1 -1
  38. package/dist/es2019/plugins/text-formatting/utils.js +1 -29
  39. package/dist/es2019/ui/ContentStyles/index.js +2 -3
  40. package/dist/es2019/version-wrapper.js +1 -1
  41. package/dist/es2019/version.json +1 -1
  42. package/dist/esm/index.js +0 -2
  43. package/dist/esm/plugins/help-dialog/ui/index.js +1 -1
  44. package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +1 -1
  45. package/dist/esm/plugins/media/nodeviews/mediaNodeView/index.js +1 -1
  46. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +13 -4
  47. package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +21 -19
  48. package/dist/esm/plugins/media/utils/media-single.js +6 -10
  49. package/dist/esm/plugins/paste/handlers.js +5 -7
  50. package/dist/esm/plugins/text-formatting/actions.js +168 -0
  51. package/dist/esm/plugins/text-formatting/commands/text-formatting.js +1 -166
  52. package/dist/esm/plugins/text-formatting/index.js +17 -0
  53. package/dist/esm/plugins/text-formatting/pm-plugins/keymap.js +8 -8
  54. package/dist/esm/plugins/text-formatting/pm-plugins/main.js +1 -1
  55. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +1 -1
  56. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -9
  57. package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +1 -1
  58. package/dist/esm/plugins/text-formatting/utils.js +6 -33
  59. package/dist/esm/ui/ContentStyles/index.js +2 -3
  60. package/dist/esm/version-wrapper.js +1 -1
  61. package/dist/esm/version.json +1 -1
  62. package/dist/types/index.d.ts +6 -4
  63. package/dist/types/labs/next/presets/default.d.ts +78 -15
  64. package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +1 -2
  65. package/dist/types/plugins/media/ui/ResizableMediaSingle/guidelines.d.ts +1 -1
  66. package/dist/types/plugins/paste/handlers.d.ts +1 -2
  67. package/dist/types/plugins/text-formatting/actions.d.ts +20 -0
  68. package/dist/types/plugins/text-formatting/commands/text-formatting.d.ts +0 -31
  69. package/dist/types/plugins/text-formatting/index.d.ts +18 -2
  70. package/dist/types/plugins/text-formatting/pm-plugins/main.d.ts +1 -2
  71. package/dist/types/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
  72. package/dist/types/plugins/text-formatting/utils.d.ts +1 -5
  73. package/dist/types/types/editor-props.d.ts +1 -2
  74. package/dist/types/ui/ContentStyles/index.d.ts +1 -1
  75. package/dist/types-ts4.5/index.d.ts +6 -4
  76. package/dist/types-ts4.5/labs/next/presets/default.d.ts +78 -15
  77. package/dist/types-ts4.5/plugins/media/nodeviews/mediaNodeUpdater.d.ts +1 -2
  78. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/guidelines.d.ts +1 -1
  79. package/dist/types-ts4.5/plugins/paste/handlers.d.ts +1 -2
  80. package/dist/types-ts4.5/plugins/text-formatting/actions.d.ts +20 -0
  81. package/dist/types-ts4.5/plugins/text-formatting/commands/text-formatting.d.ts +0 -31
  82. package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +18 -2
  83. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/main.d.ts +1 -2
  84. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
  85. package/dist/types-ts4.5/plugins/text-formatting/utils.d.ts +1 -5
  86. package/dist/types-ts4.5/types/editor-props.d.ts +1 -2
  87. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +1 -1
  88. package/package.json +3 -3
  89. package/report.api.md +31 -145
  90. package/tmp/api-report-tmp.d.ts +30 -118
  91. package/dist/cjs/plugins/text-formatting/styles.js +0 -15
  92. package/dist/cjs/plugins/text-formatting/types.js +0 -5
  93. package/dist/cjs/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -95
  94. package/dist/es2019/plugins/text-formatting/styles.js +0 -5
  95. package/dist/es2019/plugins/text-formatting/types.js +0 -1
  96. package/dist/es2019/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -88
  97. package/dist/esm/plugins/text-formatting/styles.js +0 -7
  98. package/dist/esm/plugins/text-formatting/types.js +0 -1
  99. package/dist/esm/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -88
  100. package/dist/types/plugins/text-formatting/styles.d.ts +0 -2
  101. package/dist/types/plugins/text-formatting/types.d.ts +0 -30
  102. package/dist/types/plugins/text-formatting/ui/Toolbar/toolbar-messages.d.ts +0 -87
  103. package/dist/types-ts4.5/plugins/text-formatting/styles.d.ts +0 -2
  104. package/dist/types-ts4.5/plugins/text-formatting/types.d.ts +0 -30
  105. package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/toolbar-messages.d.ts +0 -87
@@ -1,4 +1,4 @@
1
- import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
1
+ import { anyMarkActive } from '@atlaskit/editor-common/mark';
2
2
  import { FORMATTING_MARK_TYPES, FORMATTING_NODE_TYPES } from './commands/clear-formatting';
3
3
  export var hasCode = function hasCode(state, pos) {
4
4
  var code = state.schema.marks.code;
@@ -30,37 +30,10 @@ export var markActive = function markActive(state, mark) {
30
30
  });
31
31
  return found;
32
32
  };
33
-
34
- /**
35
- * Determine if a mark of a specific type exists anywhere in the selection.
36
- */
37
- export var anyMarkActive = function anyMarkActive(state, markType) {
33
+ var blockStylingIsPresent = function blockStylingIsPresent(state) {
38
34
  var _state$selection2 = state.selection,
39
- $from = _state$selection2.$from,
40
35
  from = _state$selection2.from,
41
- to = _state$selection2.to,
42
- empty = _state$selection2.empty;
43
- if (empty) {
44
- return !!markType.isInSet(state.storedMarks || $from.marks());
45
- }
46
- var rangeHasMark = false;
47
- if (state.selection instanceof CellSelection) {
48
- state.selection.forEachCell(function (cell, cellPos) {
49
- var from = cellPos;
50
- var to = cellPos + cell.nodeSize;
51
- if (!rangeHasMark) {
52
- rangeHasMark = state.doc.rangeHasMark(from, to, markType);
53
- }
54
- });
55
- } else {
56
- rangeHasMark = state.doc.rangeHasMark(from, to, markType);
57
- }
58
- return rangeHasMark;
59
- };
60
- var blockStylingIsPresent = function blockStylingIsPresent(state) {
61
- var _state$selection3 = state.selection,
62
- from = _state$selection3.from,
63
- to = _state$selection3.to;
36
+ to = _state$selection2.to;
64
37
  var isBlockStyling = false;
65
38
  state.doc.nodesBetween(from, to, function (node) {
66
39
  if (FORMATTING_NODE_TYPES.indexOf(node.type.name) !== -1) {
@@ -74,9 +47,9 @@ var blockStylingIsPresent = function blockStylingIsPresent(state) {
74
47
  var marksArePresent = function marksArePresent(state) {
75
48
  var activeMarkTypes = FORMATTING_MARK_TYPES.filter(function (mark) {
76
49
  if (!!state.schema.marks[mark]) {
77
- var _state$selection4 = state.selection,
78
- $from = _state$selection4.$from,
79
- empty = _state$selection4.empty;
50
+ var _state$selection3 = state.selection,
51
+ $from = _state$selection3.$from,
52
+ empty = _state$selection3.empty;
80
53
  var marks = state.schema.marks;
81
54
  if (empty) {
82
55
  return !!marks[mark].isInSet(state.storedMarks || $from.marks());
@@ -20,7 +20,6 @@ import { panelStyles } from '../../plugins/panel/styles';
20
20
  import { fakeCursorStyles } from '../../plugins/fake-text-cursor/styles';
21
21
  import { mentionsStyles } from '../../plugins/mentions/styles';
22
22
  import { emojiStyles } from '../../plugins/emoji/styles';
23
- import { textFormattingStyles } from '../../plugins/text-formatting/styles';
24
23
  import { placeholderTextStyles } from '../../plugins/placeholder-text/styles';
25
24
  import { extensionStyles } from '../../plugins/extension/ui/styles';
26
25
  import { expandStyles } from '../../plugins/expand/ui/styles';
@@ -30,12 +29,12 @@ import { taskDecisionStyles } from '../../plugins/tasks-and-decisions/styles';
30
29
  import { statusStyles } from '../../plugins/status/styles';
31
30
  import { dateStyles } from '../../plugins/date/styles';
32
31
  import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
33
- import { linkSharedStyle } from '@atlaskit/editor-common/styles';
32
+ import { linkSharedStyle, codeMarkSharedStyles } from '@atlaskit/editor-common/styles';
34
33
  export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n ", "\n }\n"])), linkSharedStyle);
35
34
  var contentStyles = function contentStyles(props) {
36
35
  return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), editorFontSize({
37
36
  theme: props.theme
38
- }), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(props), blocktypeStyles(props), textFormattingStyles(props), textColorStyles, listsStyles, ruleStyles(props), mediaStyles, layoutStyles(props), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(props), fakeCursorStyles, mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(props), findReplaceStyles, taskDecisionStyles, statusStyles, annotationSharedStyles(props), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, ClassNames.FLOATING_TOOLBAR_COMPONENT);
37
+ }), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(props), blocktypeStyles(props), codeMarkSharedStyles(props), textColorStyles, listsStyles, ruleStyles(props), mediaStyles, layoutStyles(props), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(props), fakeCursorStyles, mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(props), findReplaceStyles, taskDecisionStyles, statusStyles, annotationSharedStyles(props), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, ClassNames.FLOATING_TOOLBAR_COMPONENT);
39
38
  };
40
39
  export var createEditorContentStyle = function createEditorContentStyle(styles) {
41
40
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.10.6";
2
+ export var version = "187.11.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.10.6",
3
+ "version": "187.11.0",
4
4
  "sideEffects": false
5
5
  }
@@ -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,22 @@ 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").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;
274
+ };
260
275
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
261
276
  pluginConfiguration: TextFormattingOptions | undefined;
262
277
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
@@ -288,6 +303,22 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
288
303
  }>];
289
304
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
290
305
  }>>];
306
+ 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;
321
+ };
291
322
  }>, (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
292
323
  pluginConfiguration: HyperlinkPluginOptions | undefined;
293
324
  dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
@@ -598,6 +629,22 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
598
629
  }>];
599
630
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
600
631
  }>>];
632
+ 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;
647
+ };
601
648
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
602
649
  pluginConfiguration: TextFormattingOptions | undefined;
603
650
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
@@ -629,6 +676,22 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
629
676
  }>];
630
677
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
631
678
  }>>];
679
+ 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;
694
+ };
632
695
  }>, (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
633
696
  pluginConfiguration: HyperlinkPluginOptions | undefined;
634
697
  dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
@@ -1,8 +1,7 @@
1
1
  import type { MediaADFAttrs } from '@atlaskit/adf-schema';
2
- import type { MediaProvider } from '@atlaskit/editor-common/provider-factory';
2
+ import type { MediaProvider, ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
3
3
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
6
5
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
7
6
  import type { MediaOptions } from '../types';
8
7
  import type { ProsemirrorGetPosHandler } from '../../../nodeviews';
@@ -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,20 @@
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import type { Command, InputMethodBasic } from '@atlaskit/editor-common/types';
3
+ export type ToggleMarkCommand = () => Command;
4
+ export type ToggleMarkWithAnalyticsCommand = (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (analyticsMetadata: {
5
+ inputMethod: InputMethodBasic;
6
+ }) => Command;
7
+ export declare const toggleEm: ToggleMarkCommand;
8
+ export declare const toggleEmWithAnalytics: ToggleMarkWithAnalyticsCommand;
9
+ export declare const toggleStrike: ToggleMarkCommand;
10
+ export declare const toggleStrikeWithAnalytics: ToggleMarkWithAnalyticsCommand;
11
+ export declare const toggleStrong: ToggleMarkCommand;
12
+ export declare const toggleStrongWithAnalytics: ToggleMarkWithAnalyticsCommand;
13
+ export declare const toggleUnderline: ToggleMarkCommand;
14
+ export declare const toggleUnderlineWithAnalytics: ToggleMarkWithAnalyticsCommand;
15
+ export declare const toggleSuperscript: ToggleMarkCommand;
16
+ export declare const toggleSuperscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
17
+ export declare const toggleSubscript: ToggleMarkCommand;
18
+ export declare const toggleSubscriptWithAnalytics: ToggleMarkWithAnalyticsCommand;
19
+ export declare const toggleCode: ToggleMarkCommand;
20
+ export declare const toggleCodeWithAnalytics: ToggleMarkWithAnalyticsCommand;
@@ -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,24 @@
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 { ToggleMarkCommand, 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: 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;
22
+ };
7
23
  }>;
8
24
  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';
@@ -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 = {
@@ -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,22 @@ 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").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;
329
+ };
315
330
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
316
331
  pluginConfiguration: TextFormattingOptions | undefined;
317
332
  dependencies: [
@@ -349,6 +364,22 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
349
364
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
350
365
  }>>
351
366
  ];
367
+ 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;
382
+ };
352
383
  }>,
353
384
  (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
354
385
  pluginConfiguration: HyperlinkPluginOptions | undefined;
@@ -731,6 +762,22 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
731
762
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
732
763
  }>>
733
764
  ];
765
+ 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;
780
+ };
734
781
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
735
782
  pluginConfiguration: TextFormattingOptions | undefined;
736
783
  dependencies: [
@@ -768,6 +815,22 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
768
815
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
769
816
  }>>
770
817
  ];
818
+ 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;
833
+ };
771
834
  }>,
772
835
  (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
773
836
  pluginConfiguration: HyperlinkPluginOptions | undefined;