@atlaskit/editor-core 210.2.6 → 210.2.8
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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -1
- package/dist/cjs/ui/Appearance/Comment/CommentToolbar.js +4 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -1
- package/dist/es2019/ui/Appearance/Comment/CommentToolbar.js +4 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +2 -1
- package/dist/esm/ui/Appearance/Comment/CommentToolbar.js +4 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/Comment/CommentToolbar.d.ts +3 -2
- package/dist/types-ts4.5/ui/Appearance/Comment/CommentToolbar.d.ts +3 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 210.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 210.2.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`51f3f2db61f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51f3f2db61f6e) -
|
|
14
|
+
Update toolbar config across plugins
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 210.2.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -228,7 +228,8 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
228
228
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
229
229
|
}, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true) ? (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_CommentToolbar.CommentToolbar, {
|
|
230
230
|
editorAPI: editorAPI,
|
|
231
|
-
editorView: editorView
|
|
231
|
+
editorView: editorView,
|
|
232
|
+
editorAppearance: appearance
|
|
232
233
|
}), customToolbarSlot) : (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
|
|
233
234
|
editorView: editorView,
|
|
234
235
|
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
@@ -15,7 +15,8 @@ var _Toolbar = require("../../Toolbar/Toolbar");
|
|
|
15
15
|
var CommentToolbar = exports.CommentToolbar = function CommentToolbar(_ref) {
|
|
16
16
|
var _editorAPI$toolbar;
|
|
17
17
|
var editorAPI = _ref.editorAPI,
|
|
18
|
-
editorView = _ref.editorView
|
|
18
|
+
editorView = _ref.editorView,
|
|
19
|
+
editorAppearance = _ref.editorAppearance;
|
|
19
20
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
20
21
|
var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
|
|
21
22
|
return component.key === _toolbar.TOOLBARS.PRIMARY_TOOLBAR;
|
|
@@ -27,6 +28,7 @@ var CommentToolbar = exports.CommentToolbar = function CommentToolbar(_ref) {
|
|
|
27
28
|
toolbar: toolbar,
|
|
28
29
|
components: components,
|
|
29
30
|
editorView: editorView,
|
|
30
|
-
editorAPI: editorAPI
|
|
31
|
+
editorAPI: editorAPI,
|
|
32
|
+
editorAppearance: editorAppearance
|
|
31
33
|
});
|
|
32
34
|
};
|
|
@@ -229,7 +229,8 @@ export const CommentEditorWithIntl = props => {
|
|
|
229
229
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
230
230
|
}, expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) ? jsx(React.Fragment, null, jsx(CommentToolbar, {
|
|
231
231
|
editorAPI: editorAPI,
|
|
232
|
-
editorView: editorView
|
|
232
|
+
editorView: editorView,
|
|
233
|
+
editorAppearance: appearance
|
|
233
234
|
}), customToolbarSlot) : jsx(ToolbarArrowKeyNavigationProvider, {
|
|
234
235
|
editorView: editorView,
|
|
235
236
|
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
@@ -7,7 +7,8 @@ import { ToolbarNext } from '../../Toolbar/Toolbar';
|
|
|
7
7
|
*/
|
|
8
8
|
export const CommentToolbar = ({
|
|
9
9
|
editorAPI,
|
|
10
|
-
editorView
|
|
10
|
+
editorView,
|
|
11
|
+
editorAppearance
|
|
11
12
|
}) => {
|
|
12
13
|
var _editorAPI$toolbar;
|
|
13
14
|
const components = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
@@ -19,6 +20,7 @@ export const CommentToolbar = ({
|
|
|
19
20
|
toolbar: toolbar,
|
|
20
21
|
components: components,
|
|
21
22
|
editorView: editorView,
|
|
22
|
-
editorAPI: editorAPI
|
|
23
|
+
editorAPI: editorAPI,
|
|
24
|
+
editorAppearance: editorAppearance
|
|
23
25
|
});
|
|
24
26
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "210.2.
|
|
2
|
+
export const version = "210.2.7";
|
|
@@ -220,7 +220,8 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
|
|
|
220
220
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
221
221
|
}, expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) ? jsx(React.Fragment, null, jsx(CommentToolbar, {
|
|
222
222
|
editorAPI: editorAPI,
|
|
223
|
-
editorView: editorView
|
|
223
|
+
editorView: editorView,
|
|
224
|
+
editorAppearance: appearance
|
|
224
225
|
}), customToolbarSlot) : jsx(ToolbarArrowKeyNavigationProvider, {
|
|
225
226
|
editorView: editorView,
|
|
226
227
|
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
@@ -8,7 +8,8 @@ import { ToolbarNext } from '../../Toolbar/Toolbar';
|
|
|
8
8
|
export var CommentToolbar = function CommentToolbar(_ref) {
|
|
9
9
|
var _editorAPI$toolbar;
|
|
10
10
|
var editorAPI = _ref.editorAPI,
|
|
11
|
-
editorView = _ref.editorView
|
|
11
|
+
editorView = _ref.editorView,
|
|
12
|
+
editorAppearance = _ref.editorAppearance;
|
|
12
13
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
13
14
|
var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
|
|
14
15
|
return component.key === TOOLBARS.PRIMARY_TOOLBAR;
|
|
@@ -20,6 +21,7 @@ export var CommentToolbar = function CommentToolbar(_ref) {
|
|
|
20
21
|
toolbar: toolbar,
|
|
21
22
|
components: components,
|
|
22
23
|
editorView: editorView,
|
|
23
|
-
editorAPI: editorAPI
|
|
24
|
+
editorAPI: editorAPI,
|
|
25
|
+
editorAppearance: editorAppearance
|
|
24
26
|
});
|
|
25
27
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "210.2.
|
|
2
|
+
export var version = "210.2.7";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorAppearance, OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
type ToolbarEditorPlugins = [OptionalPlugin<ToolbarPlugin>];
|
|
6
6
|
type CommentToolbarProps = {
|
|
7
7
|
editorAPI?: PublicPluginAPI<ToolbarEditorPlugins>;
|
|
8
|
+
editorAppearance: EditorAppearance;
|
|
8
9
|
editorView?: EditorView;
|
|
9
10
|
};
|
|
10
11
|
/**
|
|
11
12
|
* Primary toolbar driven by components registered by `editor-plugin-toolbar`, introduced in `platform_editor_toolbar_aifc`.
|
|
12
13
|
*/
|
|
13
|
-
export declare const CommentToolbar: ({ editorAPI, editorView }: CommentToolbarProps) => React.JSX.Element | null;
|
|
14
|
+
export declare const CommentToolbar: ({ editorAPI, editorView, editorAppearance, }: CommentToolbarProps) => React.JSX.Element | null;
|
|
14
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorAppearance, OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { ToolbarPlugin } from '@atlaskit/editor-plugins/toolbar';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
type ToolbarEditorPlugins = [
|
|
@@ -7,10 +7,11 @@ type ToolbarEditorPlugins = [
|
|
|
7
7
|
];
|
|
8
8
|
type CommentToolbarProps = {
|
|
9
9
|
editorAPI?: PublicPluginAPI<ToolbarEditorPlugins>;
|
|
10
|
+
editorAppearance: EditorAppearance;
|
|
10
11
|
editorView?: EditorView;
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
* Primary toolbar driven by components registered by `editor-plugin-toolbar`, introduced in `platform_editor_toolbar_aifc`.
|
|
14
15
|
*/
|
|
15
|
-
export declare const CommentToolbar: ({ editorAPI, editorView }: CommentToolbarProps) => React.JSX.Element | null;
|
|
16
|
+
export declare const CommentToolbar: ({ editorAPI, editorView, editorAppearance, }: CommentToolbarProps) => React.JSX.Element | null;
|
|
16
17
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "210.2.
|
|
3
|
+
"version": "210.2.8",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"@atlaskit/editor-plugins": "^10.2.0",
|
|
53
53
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
54
54
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
55
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
56
|
-
"@atlaskit/editor-toolbar-model": "^0.
|
|
55
|
+
"@atlaskit/editor-toolbar": "^0.6.0",
|
|
56
|
+
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
57
57
|
"@atlaskit/emoji": "^69.5.0",
|
|
58
58
|
"@atlaskit/icon": "^28.1.0",
|
|
59
59
|
"@atlaskit/link": "^3.2.0",
|
|
60
60
|
"@atlaskit/media-card": "^79.5.0",
|
|
61
61
|
"@atlaskit/mention": "^24.2.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
|
-
"@atlaskit/platform-feature-flags-react": "^0.
|
|
63
|
+
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
64
64
|
"@atlaskit/react-ufo": "^4.5.0",
|
|
65
65
|
"@atlaskit/task-decision": "^19.2.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^11.11.0",
|
|
67
67
|
"@atlaskit/tokens": "^6.1.0",
|
|
68
68
|
"@atlaskit/tooltip": "^20.4.0",
|
|
69
69
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"uuid": "^3.1.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@atlaskit/editor-common": "^107.
|
|
83
|
+
"@atlaskit/editor-common": "^107.34.0",
|
|
84
84
|
"@atlaskit/link-provider": "^3.7.0",
|
|
85
85
|
"@atlaskit/media-core": "^37.0.0",
|
|
86
86
|
"react": "^18.2.0",
|