@atlaskit/editor-plugin-floating-toolbar 1.7.4 → 1.7.5
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 +6 -0
- package/dist/cjs/ui/Dropdown.js +8 -0
- package/dist/es2019/ui/Dropdown.js +8 -0
- package/dist/esm/ui/Dropdown.js +8 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/dist/cjs/ui/Dropdown.js
CHANGED
|
@@ -18,6 +18,7 @@ var _react2 = require("@emotion/react");
|
|
|
18
18
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
19
19
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
20
20
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _DropdownMenu = _interopRequireWildcard(require("./DropdownMenu"));
|
|
22
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -202,6 +203,13 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
202
203
|
if (this.props.setDisableParentScroll) {
|
|
203
204
|
this.props.setDisableParentScroll(this.state.isOpen);
|
|
204
205
|
}
|
|
206
|
+
|
|
207
|
+
// ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element, we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
|
|
208
|
+
if (this.props.mountPoint &&
|
|
209
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
210
|
+
(0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-main-toolbar-navigation_osrty')) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
205
213
|
if (this.state.isOpen && this.state.isOpenedByKeyboard) {
|
|
206
214
|
var dropList = document.querySelector('[data-role="droplistContent"]');
|
|
207
215
|
if (dropList) {
|
|
@@ -8,6 +8,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
8
8
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
9
9
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
10
10
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
11
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
12
13
|
|
|
13
14
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
@@ -179,6 +180,13 @@ export default class Dropdown extends Component {
|
|
|
179
180
|
if (this.props.setDisableParentScroll) {
|
|
180
181
|
this.props.setDisableParentScroll(this.state.isOpen);
|
|
181
182
|
}
|
|
183
|
+
|
|
184
|
+
// ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element, we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
|
|
185
|
+
if (this.props.mountPoint &&
|
|
186
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
187
|
+
getBooleanFF('platform.editor.a11y-main-toolbar-navigation_osrty')) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
182
190
|
if (this.state.isOpen && this.state.isOpenedByKeyboard) {
|
|
183
191
|
const dropList = document.querySelector('[data-role="droplistContent"]');
|
|
184
192
|
if (dropList) {
|
package/dist/esm/ui/Dropdown.js
CHANGED
|
@@ -18,6 +18,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
18
18
|
import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
|
|
19
19
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
20
20
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
21
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
21
22
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
22
23
|
|
|
23
24
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
@@ -197,6 +198,13 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
197
198
|
if (this.props.setDisableParentScroll) {
|
|
198
199
|
this.props.setDisableParentScroll(this.state.isOpen);
|
|
199
200
|
}
|
|
201
|
+
|
|
202
|
+
// ECA11Y-235: no sense in sending keyboard event since the menu popup mounted to the custom element, we will ensure first element focused asap as 'MenuArrowKeyNavigationProvider' is mounted
|
|
203
|
+
if (this.props.mountPoint &&
|
|
204
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
205
|
+
getBooleanFF('platform.editor.a11y-main-toolbar-navigation_osrty')) {
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
200
208
|
if (this.state.isOpen && this.state.isOpenedByKeyboard) {
|
|
201
209
|
var dropList = document.querySelector('[data-role="droplistContent"]');
|
|
202
210
|
if (dropList) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,25 +24,25 @@
|
|
|
24
24
|
".": "./src/index.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-utils": "^19.
|
|
27
|
+
"@atlaskit/adf-utils": "^19.4.0",
|
|
28
28
|
"@atlaskit/button": "^18.0.0",
|
|
29
29
|
"@atlaskit/checkbox": "^13.5.0",
|
|
30
|
-
"@atlaskit/editor-common": "^83.
|
|
30
|
+
"@atlaskit/editor-common": "^83.4.0",
|
|
31
31
|
"@atlaskit/editor-palette": "1.6.0",
|
|
32
|
-
"@atlaskit/editor-plugin-block-controls": "^1.
|
|
32
|
+
"@atlaskit/editor-plugin-block-controls": "^1.5.0",
|
|
33
33
|
"@atlaskit/editor-plugin-context-panel": "^1.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-copy-button": "^1.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-extension": "^1.
|
|
39
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
38
|
+
"@atlaskit/editor-plugin-extension": "^1.9.0",
|
|
39
|
+
"@atlaskit/editor-plugin-table": "^7.19.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
41
41
|
"@atlaskit/emoji": "^67.6.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
43
|
-
"@atlaskit/menu": "^2.
|
|
42
|
+
"@atlaskit/icon": "^22.5.0",
|
|
43
|
+
"@atlaskit/menu": "^2.6.0",
|
|
44
44
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
45
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
45
|
+
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
46
|
"@atlaskit/select": "^17.11.0",
|
|
47
47
|
"@atlaskit/theme": "^12.11.0",
|
|
48
48
|
"@atlaskit/tokens": "^1.53.0",
|