@atlaskit/editor-core 188.0.12 → 188.2.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 (128) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/labs/next/presets/universal.js +2 -1
  3. package/dist/cjs/plugins/annotation/toolbar.js +5 -23
  4. package/dist/cjs/plugins/code-block/index.js +3 -3
  5. package/dist/cjs/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +2 -2
  6. package/dist/cjs/plugins/index.js +0 -7
  7. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +4 -4
  8. package/dist/cjs/plugins/media/index.js +12 -6
  9. package/dist/cjs/plugins/media/utils/media-common.js +7 -109
  10. package/dist/cjs/plugins/media/utils/media-single.js +7 -68
  11. package/dist/cjs/plugins/panel/index.js +13 -13
  12. package/dist/cjs/plugins/paste/handlers.js +4 -4
  13. package/dist/cjs/plugins/paste/plugins/media.js +181 -0
  14. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +2 -2
  15. package/dist/cjs/plugins/paste/pm-plugins/main.js +6 -7
  16. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
  17. package/dist/cjs/ui/Alignment/index.js +1 -1
  18. package/dist/cjs/ui/WithHelpTrigger/index.js +3 -7
  19. package/dist/cjs/version-wrapper.js +1 -1
  20. package/dist/es2019/labs/next/presets/universal.js +2 -1
  21. package/dist/es2019/plugins/annotation/toolbar.js +2 -18
  22. package/dist/es2019/plugins/code-block/index.js +3 -3
  23. package/dist/es2019/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -1
  24. package/dist/es2019/plugins/index.js +0 -1
  25. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
  26. package/dist/es2019/plugins/media/index.js +13 -6
  27. package/dist/es2019/plugins/media/utils/media-common.js +2 -107
  28. package/dist/es2019/plugins/media/utils/media-single.js +6 -72
  29. package/dist/es2019/plugins/panel/index.js +13 -13
  30. package/dist/es2019/plugins/paste/handlers.js +4 -4
  31. package/dist/es2019/plugins/paste/plugins/media.js +176 -0
  32. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
  33. package/dist/es2019/plugins/paste/pm-plugins/main.js +3 -4
  34. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
  35. package/dist/es2019/ui/Alignment/index.js +1 -1
  36. package/dist/es2019/ui/WithHelpTrigger/index.js +2 -7
  37. package/dist/es2019/version-wrapper.js +1 -1
  38. package/dist/esm/labs/next/presets/universal.js +2 -1
  39. package/dist/esm/plugins/annotation/toolbar.js +2 -18
  40. package/dist/esm/plugins/code-block/index.js +3 -3
  41. package/dist/esm/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -1
  42. package/dist/esm/plugins/index.js +0 -1
  43. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
  44. package/dist/esm/plugins/media/index.js +13 -6
  45. package/dist/esm/plugins/media/utils/media-common.js +2 -106
  46. package/dist/esm/plugins/media/utils/media-single.js +6 -66
  47. package/dist/esm/plugins/panel/index.js +13 -13
  48. package/dist/esm/plugins/paste/handlers.js +4 -4
  49. package/dist/esm/plugins/paste/plugins/media.js +172 -0
  50. package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
  51. package/dist/esm/plugins/paste/pm-plugins/main.js +3 -4
  52. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
  53. package/dist/esm/ui/Alignment/index.js +1 -1
  54. package/dist/esm/ui/WithHelpTrigger/index.js +2 -7
  55. package/dist/esm/version-wrapper.js +1 -1
  56. package/dist/types/labs/next/presets/default.d.ts +6 -0
  57. package/dist/types/plugins/annotation/toolbar.d.ts +0 -17
  58. package/dist/types/plugins/index.d.ts +0 -1
  59. package/dist/types/plugins/media/next-plugin-type.d.ts +4 -0
  60. package/dist/types/plugins/media/utils/media-common.d.ts +2 -10
  61. package/dist/types/plugins/media/utils/media-single.d.ts +2 -4
  62. package/dist/types/plugins/paste/handlers.d.ts +2 -2
  63. package/dist/types/plugins/paste/index.d.ts +5 -2
  64. package/dist/types/plugins/paste/plugins/media.d.ts +12 -0
  65. package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +2 -2
  66. package/dist/types/plugins/paste/pm-plugins/main.d.ts +2 -2
  67. package/dist/types/ui/Alignment/index.d.ts +2 -2
  68. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  69. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  70. package/dist/types/ui/WithHelpTrigger/index.d.ts +0 -4
  71. package/dist/types-ts4.5/labs/next/presets/default.d.ts +6 -0
  72. package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +0 -17
  73. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  74. package/dist/types-ts4.5/plugins/media/next-plugin-type.d.ts +4 -0
  75. package/dist/types-ts4.5/plugins/media/utils/media-common.d.ts +2 -10
  76. package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +2 -4
  77. package/dist/types-ts4.5/plugins/paste/handlers.d.ts +2 -2
  78. package/dist/types-ts4.5/plugins/paste/index.d.ts +5 -2
  79. package/dist/types-ts4.5/plugins/paste/plugins/media.d.ts +12 -0
  80. package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +2 -2
  81. package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +2 -2
  82. package/dist/types-ts4.5/ui/Alignment/index.d.ts +2 -2
  83. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  84. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  85. package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +0 -4
  86. package/package.json +8 -7
  87. package/report.api.md +1 -1
  88. package/tmp/api-report-tmp.d.ts +1 -1
  89. package/dist/cjs/plugins/help-dialog/commands.js +0 -19
  90. package/dist/cjs/plugins/help-dialog/index.js +0 -138
  91. package/dist/cjs/plugins/help-dialog/plugin-key.js +0 -8
  92. package/dist/cjs/plugins/help-dialog/ui/HelpDialogLoader.js +0 -24
  93. package/dist/cjs/plugins/help-dialog/ui/index.js +0 -568
  94. package/dist/cjs/plugins/help-dialog/ui/styles.js +0 -50
  95. package/dist/cjs/plugins/undo-redo/messages.js +0 -19
  96. package/dist/cjs/ui/Alignment/messages.js +0 -24
  97. package/dist/es2019/plugins/help-dialog/commands.js +0 -13
  98. package/dist/es2019/plugins/help-dialog/index.js +0 -125
  99. package/dist/es2019/plugins/help-dialog/plugin-key.js +0 -2
  100. package/dist/es2019/plugins/help-dialog/ui/HelpDialogLoader.js +0 -6
  101. package/dist/es2019/plugins/help-dialog/ui/index.js +0 -446
  102. package/dist/es2019/plugins/help-dialog/ui/styles.js +0 -110
  103. package/dist/es2019/plugins/undo-redo/messages.js +0 -13
  104. package/dist/es2019/ui/Alignment/messages.js +0 -18
  105. package/dist/esm/plugins/help-dialog/commands.js +0 -13
  106. package/dist/esm/plugins/help-dialog/index.js +0 -130
  107. package/dist/esm/plugins/help-dialog/plugin-key.js +0 -2
  108. package/dist/esm/plugins/help-dialog/ui/HelpDialogLoader.js +0 -12
  109. package/dist/esm/plugins/help-dialog/ui/index.js +0 -557
  110. package/dist/esm/plugins/help-dialog/ui/styles.js +0 -40
  111. package/dist/esm/plugins/undo-redo/messages.js +0 -13
  112. package/dist/esm/ui/Alignment/messages.js +0 -18
  113. package/dist/types/plugins/help-dialog/commands.d.ts +0 -3
  114. package/dist/types/plugins/help-dialog/index.d.ts +0 -18
  115. package/dist/types/plugins/help-dialog/plugin-key.d.ts +0 -2
  116. package/dist/types/plugins/help-dialog/ui/HelpDialogLoader.d.ts +0 -4
  117. package/dist/types/plugins/help-dialog/ui/index.d.ts +0 -27
  118. package/dist/types/plugins/help-dialog/ui/styles.d.ts +0 -33
  119. package/dist/types/plugins/undo-redo/messages.d.ts +0 -12
  120. package/dist/types/ui/Alignment/messages.d.ts +0 -17
  121. package/dist/types-ts4.5/plugins/help-dialog/commands.d.ts +0 -3
  122. package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +0 -18
  123. package/dist/types-ts4.5/plugins/help-dialog/plugin-key.d.ts +0 -2
  124. package/dist/types-ts4.5/plugins/help-dialog/ui/HelpDialogLoader.d.ts +0 -4
  125. package/dist/types-ts4.5/plugins/help-dialog/ui/index.d.ts +0 -27
  126. package/dist/types-ts4.5/plugins/help-dialog/ui/styles.d.ts +0 -33
  127. package/dist/types-ts4.5/plugins/undo-redo/messages.d.ts +0 -12
  128. package/dist/types-ts4.5/ui/Alignment/messages.d.ts +0 -17
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import { jsx } from '@emotion/react';
3
- import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
4
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { Keymap } from '@atlaskit/editor-common/keymaps';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type helpDialogPlugin from '..';
9
- export interface Format {
10
- name: string;
11
- type: string;
12
- keymap?: Function;
13
- autoFormatting?: Function;
14
- imageEnabled?: boolean;
15
- }
16
- export declare const formatting: (intl: IntlShape) => Format[];
17
- export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean, quickInsertEnabled?: boolean) => Format[];
18
- export declare const getComponentFromKeymap: (keymap: Keymap) => jsx.JSX.Element;
19
- export interface HelpDialogProps {
20
- pluginInjectionApi: ExtractInjectionAPI<typeof helpDialogPlugin> | undefined;
21
- editorView: EditorView;
22
- quickInsertEnabled?: boolean;
23
- }
24
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<HelpDialogProps & WrappedComponentProps<"intl">>> & {
25
- WrappedComponent: import("react").ComponentType<HelpDialogProps & WrappedComponentProps<"intl">>;
26
- };
27
- export default _default;
@@ -1,33 +0,0 @@
1
- export declare const header: import("@emotion/react").SerializedStyles;
2
- export declare const footer: import("@emotion/react").SerializedStyles;
3
- export declare const contentWrapper: import("@emotion/react").SerializedStyles;
4
- export declare const line: import("@emotion/react").SerializedStyles;
5
- export declare const content: import("@emotion/react").SerializedStyles;
6
- export declare const column: {
7
- width: string;
8
- '& > ul': {
9
- padding: number;
10
- };
11
- };
12
- export declare const row: import("@emotion/react").SerializedStyles;
13
- export declare const dialogHeader: {
14
- '&': {
15
- fontSize: string;
16
- fontWeight: number;
17
- color: "var(--ds-text-subtle)";
18
- letterSpacing: string;
19
- lineHeight: number;
20
- };
21
- };
22
- export declare const title: {
23
- '&': {
24
- fontSize: string;
25
- fontWeight: number;
26
- color: "var(--ds-text-subtle)";
27
- letterSpacing: string;
28
- lineHeight: number;
29
- };
30
- };
31
- export declare const codeSm: import("@emotion/react").SerializedStyles;
32
- export declare const codeMd: import("@emotion/react").SerializedStyles;
33
- export declare const codeLg: import("@emotion/react").SerializedStyles;
@@ -1,12 +0,0 @@
1
- export declare const messages: {
2
- undo: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- redo: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- };
@@ -1,17 +0,0 @@
1
- export declare const alignmentMessages: {
2
- alignLeft: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- alignCenter: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- alignRight: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- };
@@ -1,3 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- export declare const openHelpCommand: (tr: Transaction, dispatch?: Function) => boolean;
3
- export declare const closeHelpCommand: (tr: Transaction, dispatch: Function) => void;
@@ -1,18 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
5
- export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any>;
6
- interface HelpDialogSharedState {
7
- isVisible: boolean;
8
- imageEnabled: boolean;
9
- }
10
- declare const helpDialog: NextEditorPlugin<'helpDialog', {
11
- dependencies: [
12
- OptionalPlugin<AnalyticsPlugin>,
13
- OptionalPlugin<QuickInsertPlugin>
14
- ];
15
- pluginConfiguration: boolean;
16
- sharedState: HelpDialogSharedState | null;
17
- }>;
18
- export default helpDialog;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const pluginKey: PluginKey<any>;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import Loadable from 'react-loadable';
3
- import type { HelpDialogProps } from './index';
4
- export declare const HelpDialogLoader: import("react").ComponentType<HelpDialogProps> & Loadable.LoadableComponent;
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import { jsx } from '@emotion/react';
3
- import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
4
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { Keymap } from '@atlaskit/editor-common/keymaps';
7
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
8
- import type helpDialogPlugin from '..';
9
- export interface Format {
10
- name: string;
11
- type: string;
12
- keymap?: Function;
13
- autoFormatting?: Function;
14
- imageEnabled?: boolean;
15
- }
16
- export declare const formatting: (intl: IntlShape) => Format[];
17
- export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean, quickInsertEnabled?: boolean) => Format[];
18
- export declare const getComponentFromKeymap: (keymap: Keymap) => jsx.JSX.Element;
19
- export interface HelpDialogProps {
20
- pluginInjectionApi: ExtractInjectionAPI<typeof helpDialogPlugin> | undefined;
21
- editorView: EditorView;
22
- quickInsertEnabled?: boolean;
23
- }
24
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<HelpDialogProps & WrappedComponentProps<"intl">>> & {
25
- WrappedComponent: import("react").ComponentType<HelpDialogProps & WrappedComponentProps<"intl">>;
26
- };
27
- export default _default;
@@ -1,33 +0,0 @@
1
- export declare const header: import("@emotion/react").SerializedStyles;
2
- export declare const footer: import("@emotion/react").SerializedStyles;
3
- export declare const contentWrapper: import("@emotion/react").SerializedStyles;
4
- export declare const line: import("@emotion/react").SerializedStyles;
5
- export declare const content: import("@emotion/react").SerializedStyles;
6
- export declare const column: {
7
- width: string;
8
- '& > ul': {
9
- padding: number;
10
- };
11
- };
12
- export declare const row: import("@emotion/react").SerializedStyles;
13
- export declare const dialogHeader: {
14
- '&': {
15
- fontSize: string;
16
- fontWeight: number;
17
- color: "var(--ds-text-subtle)";
18
- letterSpacing: string;
19
- lineHeight: number;
20
- };
21
- };
22
- export declare const title: {
23
- '&': {
24
- fontSize: string;
25
- fontWeight: number;
26
- color: "var(--ds-text-subtle)";
27
- letterSpacing: string;
28
- lineHeight: number;
29
- };
30
- };
31
- export declare const codeSm: import("@emotion/react").SerializedStyles;
32
- export declare const codeMd: import("@emotion/react").SerializedStyles;
33
- export declare const codeLg: import("@emotion/react").SerializedStyles;
@@ -1,12 +0,0 @@
1
- export declare const messages: {
2
- undo: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- redo: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- };
@@ -1,17 +0,0 @@
1
- export declare const alignmentMessages: {
2
- alignLeft: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- alignCenter: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- alignRight: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- };