@atlaskit/editor-common 78.27.0 → 78.28.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 (55) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +6 -3
  3. package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +9 -2
  4. package/dist/cjs/media/messages/comments.js +1 -1
  5. package/dist/cjs/media-single/CommentBadge.js +23 -3
  6. package/dist/cjs/messages/insert-block.js +4 -4
  7. package/dist/cjs/monitoring/error.js +1 -1
  8. package/dist/cjs/preset/{core-plugin.js → core-plugin/index.js} +15 -1
  9. package/dist/cjs/preset/core-plugin/requestDocument.js +62 -0
  10. package/dist/cjs/preset/core-plugin/types.js +5 -0
  11. package/dist/cjs/ui/DropList/index.js +1 -1
  12. package/dist/cjs/ui/MultiBodiedExtension/index.js +0 -3
  13. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +7 -4
  14. package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +8 -1
  15. package/dist/es2019/media/messages/comments.js +1 -1
  16. package/dist/es2019/media-single/CommentBadge.js +23 -4
  17. package/dist/es2019/messages/insert-block.js +4 -4
  18. package/dist/es2019/monitoring/error.js +1 -1
  19. package/dist/es2019/preset/{core-plugin.js → core-plugin/index.js} +15 -1
  20. package/dist/es2019/preset/core-plugin/requestDocument.js +51 -0
  21. package/dist/es2019/preset/core-plugin/types.js +1 -0
  22. package/dist/es2019/ui/DropList/index.js +1 -1
  23. package/dist/es2019/ui/MultiBodiedExtension/index.js +0 -3
  24. package/dist/esm/extensibility/Extension/InlineExtension/index.js +7 -4
  25. package/dist/esm/extensibility/Extension/InlineExtension/styles.js +8 -1
  26. package/dist/esm/media/messages/comments.js +1 -1
  27. package/dist/esm/media-single/CommentBadge.js +24 -4
  28. package/dist/esm/messages/insert-block.js +4 -4
  29. package/dist/esm/monitoring/error.js +1 -1
  30. package/dist/esm/preset/{core-plugin.js → core-plugin/index.js} +15 -1
  31. package/dist/esm/preset/core-plugin/requestDocument.js +54 -0
  32. package/dist/esm/preset/core-plugin/types.js +1 -0
  33. package/dist/esm/ui/DropList/index.js +1 -1
  34. package/dist/esm/ui/MultiBodiedExtension/index.js +0 -3
  35. package/dist/types/card/cardOptions.d.ts +6 -0
  36. package/dist/types/card/index.d.ts +1 -1
  37. package/dist/types/extensibility/Extension/InlineExtension/styles.d.ts +1 -1
  38. package/dist/types/media-single/CommentBadge.d.ts +4 -1
  39. package/dist/types/preset/core-plugin/index.d.ts +6 -0
  40. package/dist/types/preset/core-plugin/requestDocument.d.ts +7 -0
  41. package/dist/types/preset/core-plugin/types.d.ts +59 -0
  42. package/dist/types/preset/plugin-injection-api.d.ts +1 -1
  43. package/dist/types/types/next-editor-plugin.d.ts +2 -2
  44. package/dist/types-ts4.5/card/cardOptions.d.ts +6 -0
  45. package/dist/types-ts4.5/card/index.d.ts +1 -1
  46. package/dist/types-ts4.5/extensibility/Extension/InlineExtension/styles.d.ts +1 -1
  47. package/dist/types-ts4.5/media-single/CommentBadge.d.ts +4 -1
  48. package/dist/types-ts4.5/preset/core-plugin/index.d.ts +6 -0
  49. package/dist/types-ts4.5/preset/core-plugin/requestDocument.d.ts +7 -0
  50. package/dist/types-ts4.5/preset/core-plugin/types.d.ts +59 -0
  51. package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +2 -2
  52. package/dist/types-ts4.5/types/next-editor-plugin.d.ts +2 -2
  53. package/package.json +4 -4
  54. package/dist/types/preset/core-plugin.d.ts +0 -39
  55. package/dist/types-ts4.5/preset/core-plugin.d.ts +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.27.0",
3
+ "version": "78.28.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -94,7 +94,7 @@
94
94
  },
95
95
  "dependencies": {
96
96
  "@atlaskit/activity-provider": "^2.4.0",
97
- "@atlaskit/adf-schema": "^35.8.0",
97
+ "@atlaskit/adf-schema": "^35.9.0",
98
98
  "@atlaskit/adf-utils": "^19.0.0",
99
99
  "@atlaskit/analytics-listeners": "^8.9.0",
100
100
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
@@ -103,7 +103,7 @@
103
103
  "@atlaskit/button": "^17.12.0",
104
104
  "@atlaskit/code": "^15.1.0",
105
105
  "@atlaskit/codemod-utils": "^4.2.0",
106
- "@atlaskit/custom-steps": "^0.0.17",
106
+ "@atlaskit/custom-steps": "^0.0.18",
107
107
  "@atlaskit/editor-json-transformer": "^8.10.0",
108
108
  "@atlaskit/editor-palette": "1.5.3",
109
109
  "@atlaskit/editor-prosemirror": "3.0.0",
@@ -129,7 +129,7 @@
129
129
  "@atlaskit/primitives": "^5.5.0",
130
130
  "@atlaskit/profilecard": "^19.11.0",
131
131
  "@atlaskit/section-message": "^6.4.0",
132
- "@atlaskit/smart-card": "^26.55.0",
132
+ "@atlaskit/smart-card": "^26.56.0",
133
133
  "@atlaskit/smart-user-picker": "^6.9.0",
134
134
  "@atlaskit/spinner": "^16.0.0",
135
135
  "@atlaskit/task-decision": "^17.9.0",
@@ -1,39 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { EditorCommand, NextEditorPlugin } from '../types';
3
- export type CorePlugin = NextEditorPlugin<'core', {
4
- pluginConfiguration: {
5
- getEditorView: () => EditorView | undefined;
6
- };
7
- actions: {
8
- /**
9
- * Dispatches an EditorCommand to ProseMirror
10
- *
11
- * @param command A function (EditorCommand | undefined) that takes an object containing a `Transaction` and returns a `Transaction` if it
12
- * is successful or `null` if it shouldn't be dispatched.
13
- * @returns (boolean) if the command was successful in dispatching
14
- */
15
- execute: (command: EditorCommand | undefined) => boolean;
16
- /**
17
- * Focuses the editor.
18
- *
19
- * Calls the focus method of the `EditorView` and scrolls the
20
- * current selection into view.
21
- *
22
- * @returns (boolean) if the focus was successful
23
- */
24
- focus: () => boolean;
25
- /**
26
- * Blurs the editor.
27
- *
28
- * Calls blur on the editor DOM element.
29
- *
30
- * @returns (boolean) if the blur was successful
31
- */
32
- blur: () => boolean;
33
- };
34
- }>;
35
- /**
36
- * Core plugin that is always included in the preset.
37
- * Allows for executing `EditorCommand` and other core functionality.
38
- */
39
- export declare const corePlugin: CorePlugin;
@@ -1,39 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- import type { EditorCommand, NextEditorPlugin } from '../types';
3
- export type CorePlugin = NextEditorPlugin<'core', {
4
- pluginConfiguration: {
5
- getEditorView: () => EditorView | undefined;
6
- };
7
- actions: {
8
- /**
9
- * Dispatches an EditorCommand to ProseMirror
10
- *
11
- * @param command A function (EditorCommand | undefined) that takes an object containing a `Transaction` and returns a `Transaction` if it
12
- * is successful or `null` if it shouldn't be dispatched.
13
- * @returns (boolean) if the command was successful in dispatching
14
- */
15
- execute: (command: EditorCommand | undefined) => boolean;
16
- /**
17
- * Focuses the editor.
18
- *
19
- * Calls the focus method of the `EditorView` and scrolls the
20
- * current selection into view.
21
- *
22
- * @returns (boolean) if the focus was successful
23
- */
24
- focus: () => boolean;
25
- /**
26
- * Blurs the editor.
27
- *
28
- * Calls blur on the editor DOM element.
29
- *
30
- * @returns (boolean) if the blur was successful
31
- */
32
- blur: () => boolean;
33
- };
34
- }>;
35
- /**
36
- * Core plugin that is always included in the preset.
37
- * Allows for executing `EditorCommand` and other core functionality.
38
- */
39
- export declare const corePlugin: CorePlugin;