@atlaskit/editor-core 190.1.14 → 190.1.16

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 (119) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/afm-cc/tsconfig.json +6 -0
  3. package/dist/cjs/plugins/index.js +0 -14
  4. package/dist/cjs/presets/default.js +2 -2
  5. package/dist/cjs/presets/universal.js +4 -2
  6. package/dist/cjs/version-wrapper.js +1 -1
  7. package/dist/es2019/plugins/index.js +0 -2
  8. package/dist/es2019/presets/default.js +1 -1
  9. package/dist/es2019/presets/universal.js +4 -2
  10. package/dist/es2019/version-wrapper.js +1 -1
  11. package/dist/esm/plugins/index.js +0 -2
  12. package/dist/esm/presets/default.js +1 -1
  13. package/dist/esm/presets/universal.js +4 -2
  14. package/dist/esm/version-wrapper.js +1 -1
  15. package/dist/types/plugins/index.d.ts +0 -2
  16. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
  17. package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
  18. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  19. package/dist/types-ts4.5/plugins/index.d.ts +0 -2
  20. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
  21. package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
  22. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  23. package/package.json +4 -2
  24. package/tsconfig.json +1 -1
  25. package/dist/cjs/plugins/breakout/commands/remove-breakout.js +0 -30
  26. package/dist/cjs/plugins/breakout/commands/set-breakout-mode.js +0 -29
  27. package/dist/cjs/plugins/breakout/index.js +0 -218
  28. package/dist/cjs/plugins/breakout/plugin-key.js +0 -11
  29. package/dist/cjs/plugins/breakout/types.js +0 -5
  30. package/dist/cjs/plugins/breakout/ui/LayoutButton.js +0 -133
  31. package/dist/cjs/plugins/breakout/utils/find-breakout-node.js +0 -42
  32. package/dist/cjs/plugins/breakout/utils/get-breakout-mode.js +0 -24
  33. package/dist/cjs/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -27
  34. package/dist/cjs/plugins/breakout/utils/is-supported-node.js +0 -15
  35. package/dist/cjs/plugins/undo-redo/attach-input-meta.js +0 -26
  36. package/dist/cjs/plugins/undo-redo/commands.js +0 -13
  37. package/dist/cjs/plugins/undo-redo/enums.js +0 -12
  38. package/dist/cjs/plugins/undo-redo/index.js +0 -44
  39. package/dist/cjs/plugins/undo-redo/pm-plugins/keymaps.js +0 -23
  40. package/dist/cjs/plugins/undo-redo/pm-plugins/main.js +0 -14
  41. package/dist/cjs/plugins/undo-redo/pm-plugins/plugin-key.js +0 -8
  42. package/dist/cjs/plugins/undo-redo/types.js +0 -5
  43. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +0 -104
  44. package/dist/es2019/plugins/breakout/commands/remove-breakout.js +0 -22
  45. package/dist/es2019/plugins/breakout/commands/set-breakout-mode.js +0 -23
  46. package/dist/es2019/plugins/breakout/index.js +0 -208
  47. package/dist/es2019/plugins/breakout/plugin-key.js +0 -3
  48. package/dist/es2019/plugins/breakout/types.js +0 -1
  49. package/dist/es2019/plugins/breakout/ui/LayoutButton.js +0 -117
  50. package/dist/es2019/plugins/breakout/utils/find-breakout-node.js +0 -37
  51. package/dist/es2019/plugins/breakout/utils/get-breakout-mode.js +0 -16
  52. package/dist/es2019/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -22
  53. package/dist/es2019/plugins/breakout/utils/is-supported-node.js +0 -9
  54. package/dist/es2019/plugins/undo-redo/attach-input-meta.js +0 -16
  55. package/dist/es2019/plugins/undo-redo/commands.js +0 -7
  56. package/dist/es2019/plugins/undo-redo/enums.js +0 -6
  57. package/dist/es2019/plugins/undo-redo/index.js +0 -32
  58. package/dist/es2019/plugins/undo-redo/pm-plugins/keymaps.js +0 -17
  59. package/dist/es2019/plugins/undo-redo/pm-plugins/main.js +0 -9
  60. package/dist/es2019/plugins/undo-redo/pm-plugins/plugin-key.js +0 -2
  61. package/dist/es2019/plugins/undo-redo/types.js +0 -1
  62. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +0 -94
  63. package/dist/esm/plugins/breakout/commands/remove-breakout.js +0 -24
  64. package/dist/esm/plugins/breakout/commands/set-breakout-mode.js +0 -23
  65. package/dist/esm/plugins/breakout/index.js +0 -211
  66. package/dist/esm/plugins/breakout/plugin-key.js +0 -5
  67. package/dist/esm/plugins/breakout/types.js +0 -1
  68. package/dist/esm/plugins/breakout/ui/LayoutButton.js +0 -126
  69. package/dist/esm/plugins/breakout/utils/find-breakout-node.js +0 -37
  70. package/dist/esm/plugins/breakout/utils/get-breakout-mode.js +0 -18
  71. package/dist/esm/plugins/breakout/utils/is-breakout-mark-allowed.js +0 -22
  72. package/dist/esm/plugins/breakout/utils/is-supported-node.js +0 -9
  73. package/dist/esm/plugins/undo-redo/attach-input-meta.js +0 -20
  74. package/dist/esm/plugins/undo-redo/commands.js +0 -7
  75. package/dist/esm/plugins/undo-redo/enums.js +0 -6
  76. package/dist/esm/plugins/undo-redo/index.js +0 -36
  77. package/dist/esm/plugins/undo-redo/pm-plugins/keymaps.js +0 -17
  78. package/dist/esm/plugins/undo-redo/pm-plugins/main.js +0 -8
  79. package/dist/esm/plugins/undo-redo/pm-plugins/plugin-key.js +0 -2
  80. package/dist/esm/plugins/undo-redo/types.js +0 -1
  81. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +0 -93
  82. package/dist/types/plugins/breakout/commands/remove-breakout.d.ts +0 -2
  83. package/dist/types/plugins/breakout/commands/set-breakout-mode.d.ts +0 -3
  84. package/dist/types/plugins/breakout/index.d.ts +0 -12
  85. package/dist/types/plugins/breakout/plugin-key.d.ts +0 -5
  86. package/dist/types/plugins/breakout/types.d.ts +0 -4
  87. package/dist/types/plugins/breakout/ui/LayoutButton.d.ts +0 -17
  88. package/dist/types/plugins/breakout/utils/find-breakout-node.d.ts +0 -9
  89. package/dist/types/plugins/breakout/utils/get-breakout-mode.d.ts +0 -7
  90. package/dist/types/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +0 -9
  91. package/dist/types/plugins/breakout/utils/is-supported-node.d.ts +0 -6
  92. package/dist/types/plugins/undo-redo/attach-input-meta.d.ts +0 -5
  93. package/dist/types/plugins/undo-redo/commands.d.ts +0 -4
  94. package/dist/types/plugins/undo-redo/enums.d.ts +0 -4
  95. package/dist/types/plugins/undo-redo/index.d.ts +0 -3
  96. package/dist/types/plugins/undo-redo/pm-plugins/keymaps.d.ts +0 -2
  97. package/dist/types/plugins/undo-redo/pm-plugins/main.d.ts +0 -2
  98. package/dist/types/plugins/undo-redo/pm-plugins/plugin-key.d.ts +0 -2
  99. package/dist/types/plugins/undo-redo/types.d.ts +0 -6
  100. package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +0 -20
  101. package/dist/types-ts4.5/plugins/breakout/commands/remove-breakout.d.ts +0 -2
  102. package/dist/types-ts4.5/plugins/breakout/commands/set-breakout-mode.d.ts +0 -3
  103. package/dist/types-ts4.5/plugins/breakout/index.d.ts +0 -14
  104. package/dist/types-ts4.5/plugins/breakout/plugin-key.d.ts +0 -5
  105. package/dist/types-ts4.5/plugins/breakout/types.d.ts +0 -4
  106. package/dist/types-ts4.5/plugins/breakout/ui/LayoutButton.d.ts +0 -17
  107. package/dist/types-ts4.5/plugins/breakout/utils/find-breakout-node.d.ts +0 -9
  108. package/dist/types-ts4.5/plugins/breakout/utils/get-breakout-mode.d.ts +0 -7
  109. package/dist/types-ts4.5/plugins/breakout/utils/is-breakout-mark-allowed.d.ts +0 -9
  110. package/dist/types-ts4.5/plugins/breakout/utils/is-supported-node.d.ts +0 -6
  111. package/dist/types-ts4.5/plugins/undo-redo/attach-input-meta.d.ts +0 -5
  112. package/dist/types-ts4.5/plugins/undo-redo/commands.d.ts +0 -4
  113. package/dist/types-ts4.5/plugins/undo-redo/enums.d.ts +0 -4
  114. package/dist/types-ts4.5/plugins/undo-redo/index.d.ts +0 -3
  115. package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/keymaps.d.ts +0 -2
  116. package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/main.d.ts +0 -2
  117. package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/plugin-key.d.ts +0 -2
  118. package/dist/types-ts4.5/plugins/undo-redo/types.d.ts +0 -9
  119. package/dist/types-ts4.5/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +0 -20
@@ -1,9 +0,0 @@
1
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
- import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
3
- /**
4
- * Find the nearest parent node to the selection that supports breakout, or if the nearest
5
- * matching parent node is the doc, return undefined.
6
- * For depth, if a node is selected and supports breakout, return the depth of the node.
7
- * @param selection Current editor selection
8
- */
9
- export declare function findSupportedNodeForBreakout(selection: Selection): ContentNodeWithPos | undefined;
@@ -1,7 +0,0 @@
1
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
- import type { BreakoutMode } from '@atlaskit/editor-common/types';
3
- /**
4
- * Get the current mode of the breakout at the selection
5
- * @param state Current EditorState
6
- */
7
- export declare function getBreakoutMode(state: EditorState): BreakoutMode | undefined;
@@ -1,9 +0,0 @@
1
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
- /**
3
- * Check if breakout should be allowed for the current selection. If a node is selected,
4
- * can this node be broken out, if text, can the enclosing parent node be broken out.
5
- *
6
- * Currently breakout of a node is not possible if it's nested in anything but the document, however
7
- * this logic supports this changing.
8
- */
9
- export declare function isBreakoutMarkAllowed(state: EditorState): boolean;
@@ -1,6 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- /**
3
- * Check if breakout can be applied to a node
4
- * @param node Node to check
5
- */
6
- export declare function isSupportedNodeForBreakout(node: PMNode): boolean;
@@ -1,5 +0,0 @@
1
- import type { HigherOrderCommand } from '../../types/command';
2
- import type { InputSource } from './enums';
3
- type AttachInputMeta = (inputSource: InputSource) => HigherOrderCommand;
4
- export declare const attachInputMeta: AttachInputMeta;
5
- export {};
@@ -1,4 +0,0 @@
1
- export declare const undoFromKeyboard: import("../..").Command;
2
- export declare const redoFromKeyboard: import("../..").Command;
3
- export declare const undoFromToolbar: import("../..").Command;
4
- export declare const redoFromToolbar: import("../..").Command;
@@ -1,4 +0,0 @@
1
- export declare enum InputSource {
2
- TOOLBAR = "toolbar",
3
- KEYBOARD = "keyboard"
4
- }
@@ -1,3 +0,0 @@
1
- import type { UndoRedoPlugin } from './types';
2
- declare const undoRedoPlugin: UndoRedoPlugin;
3
- export default undoRedoPlugin;
@@ -1,2 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- export declare function keymapPlugin(): SafePlugin;
@@ -1,2 +0,0 @@
1
- import { PMPluginFactory } from '../../../types';
2
- export declare const createPlugin: PMPluginFactory;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const pluginKey: PluginKey<any>;
@@ -1,9 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
3
- import type { HistoryPlugin } from '@atlaskit/editor-plugin-history';
4
- export type UndoRedoPlugin = NextEditorPlugin<'undoRedoPlugin', {
5
- dependencies: [
6
- TypeAheadPlugin,
7
- HistoryPlugin
8
- ];
9
- }>;
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- /** @jsx jsx */
3
- import { jsx } from '@emotion/react';
4
- import type { WrappedComponentProps } from 'react-intl-next';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { UndoRedoPlugin } from '../../types';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- export interface Props {
9
- undoDisabled?: boolean;
10
- redoDisabled?: boolean;
11
- disabled?: boolean;
12
- isReducedSpacing?: boolean;
13
- editorView: EditorView;
14
- api: ExtractInjectionAPI<UndoRedoPlugin> | undefined;
15
- }
16
- export declare const ToolbarUndoRedo: ({ disabled, isReducedSpacing, editorView, api, intl: { formatMessage }, }: Props & WrappedComponentProps) => jsx.JSX.Element;
17
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
18
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
19
- };
20
- export default _default;