@atlaskit/editor-core 215.4.0 → 215.4.1
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 +8 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +18 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +18 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +18 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2fc927b3b7437`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2fc927b3b7437) -
|
|
8
|
+
[ux] ED29532 Add keyboard navigation provider to comment toolbar
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 215.4.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -19,6 +19,7 @@ var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages
|
|
|
19
19
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
20
20
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
21
21
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
23
24
|
var _ClickAreaBlock = _interopRequireDefault(require("../../Addon/ClickAreaBlock"));
|
|
24
25
|
var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
|
|
@@ -191,7 +192,23 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
191
192
|
useStickyToolbar: useStickyToolbar,
|
|
192
193
|
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
193
194
|
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
194
|
-
}, isToolbarAIFCEnabled ? (0,
|
|
195
|
+
}, isToolbarAIFCEnabled ? (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_patch_7') ? (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
|
|
196
|
+
editorView: editorView,
|
|
197
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
198
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
199
|
+
handleEscape: handleEscape,
|
|
200
|
+
editorAppearance: appearance,
|
|
201
|
+
useStickyToolbar: useStickyToolbar,
|
|
202
|
+
intl: intl
|
|
203
|
+
}, (0, _react2.jsx)(_CommentToolbar.CommentToolbar, {
|
|
204
|
+
editorAPI: editorAPI,
|
|
205
|
+
editorView: editorView,
|
|
206
|
+
editorAppearance: appearance,
|
|
207
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
208
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
209
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
210
|
+
popupsMountPoint: popupsMountPoint
|
|
211
|
+
})) : (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_CommentToolbar.CommentToolbar, {
|
|
195
212
|
editorAPI: editorAPI,
|
|
196
213
|
editorView: editorView,
|
|
197
214
|
editorAppearance: appearance,
|
|
@@ -15,6 +15,7 @@ import messages from '@atlaskit/editor-common/messages';
|
|
|
15
15
|
import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
16
16
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
17
17
|
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
20
|
// Ignored via go/ees005
|
|
20
21
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -179,7 +180,23 @@ export const CommentEditorWithIntl = props => {
|
|
|
179
180
|
useStickyToolbar: useStickyToolbar,
|
|
180
181
|
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
181
182
|
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
182
|
-
}, isToolbarAIFCEnabled ?
|
|
183
|
+
}, isToolbarAIFCEnabled ? fg('platform_editor_toolbar_aifc_patch_7') ? jsx(ToolbarArrowKeyNavigationProvider, {
|
|
184
|
+
editorView: editorView,
|
|
185
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
186
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
187
|
+
handleEscape: handleEscape,
|
|
188
|
+
editorAppearance: appearance,
|
|
189
|
+
useStickyToolbar: useStickyToolbar,
|
|
190
|
+
intl: intl
|
|
191
|
+
}, jsx(CommentToolbar, {
|
|
192
|
+
editorAPI: editorAPI,
|
|
193
|
+
editorView: editorView,
|
|
194
|
+
editorAppearance: appearance,
|
|
195
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
196
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
197
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
198
|
+
popupsMountPoint: popupsMountPoint
|
|
199
|
+
})) : jsx(React.Fragment, null, jsx(CommentToolbar, {
|
|
183
200
|
editorAPI: editorAPI,
|
|
184
201
|
editorView: editorView,
|
|
185
202
|
editorAppearance: appearance,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.
|
|
2
|
+
export const version = "215.4.0";
|
|
@@ -17,6 +17,7 @@ import messages from '@atlaskit/editor-common/messages';
|
|
|
17
17
|
import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
18
18
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
19
19
|
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
22
|
// Ignored via go/ees005
|
|
22
23
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -180,7 +181,23 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
|
|
|
180
181
|
useStickyToolbar: useStickyToolbar,
|
|
181
182
|
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
182
183
|
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
183
|
-
}, isToolbarAIFCEnabled ?
|
|
184
|
+
}, isToolbarAIFCEnabled ? fg('platform_editor_toolbar_aifc_patch_7') ? jsx(ToolbarArrowKeyNavigationProvider, {
|
|
185
|
+
editorView: editorView,
|
|
186
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
187
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
188
|
+
handleEscape: handleEscape,
|
|
189
|
+
editorAppearance: appearance,
|
|
190
|
+
useStickyToolbar: useStickyToolbar,
|
|
191
|
+
intl: intl
|
|
192
|
+
}, jsx(CommentToolbar, {
|
|
193
|
+
editorAPI: editorAPI,
|
|
194
|
+
editorView: editorView,
|
|
195
|
+
editorAppearance: appearance,
|
|
196
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
197
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
198
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
199
|
+
popupsMountPoint: popupsMountPoint
|
|
200
|
+
})) : jsx(React.Fragment, null, jsx(CommentToolbar, {
|
|
184
201
|
editorAPI: editorAPI,
|
|
185
202
|
editorView: editorView,
|
|
186
203
|
editorAppearance: appearance,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.
|
|
2
|
+
export var version = "215.4.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.4.
|
|
3
|
+
"version": "215.4.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
65
65
|
"@atlaskit/react-ufo": "^4.12.0",
|
|
66
66
|
"@atlaskit/task-decision": "^19.2.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^13.16.0",
|
|
68
68
|
"@atlaskit/tokens": "^7.0.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.6.0",
|
|
70
70
|
"@atlaskit/width-detector": "^5.0.0",
|