@atlaskit/editor-plugin-help-dialog 6.0.4 → 6.0.6
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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 6.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a067bf022fb93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a067bf022fb93) -
|
|
8
|
+
[ENGHEALTH-32561] Fixes a11y violations in editor plugin help dialog
|
|
9
|
+
|
|
10
|
+
## 6.0.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 6.0.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -193,7 +206,6 @@
|
|
|
193
206
|
shared context or singletons.
|
|
194
207
|
|
|
195
208
|
**HOW TO ADJUST:**
|
|
196
|
-
|
|
197
209
|
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
198
210
|
any of these editor plugins.
|
|
199
211
|
- Ensure the version you install matches the version required by the plugins.
|
|
@@ -11,6 +11,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
11
11
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
16
|
var _ModalFooter = _interopRequireDefault(require("./ModalFooter"));
|
|
16
17
|
var _ModalHeader = _interopRequireDefault(require("./ModalHeader"));
|
|
@@ -30,7 +31,8 @@ var ModalContent = exports.ModalContent = function ModalContent(_ref) {
|
|
|
30
31
|
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_ModalHeader.default, {
|
|
31
32
|
onClose: onClose
|
|
32
33
|
}), (0, _react2.jsx)("div", {
|
|
33
|
-
css: _styles.contentWrapper
|
|
34
|
+
css: _styles.contentWrapper,
|
|
35
|
+
tabIndex: (0, _platformFeatureFlags.fg)('platform_editor_help_dialog_a11y') ? 0 : undefined
|
|
34
36
|
}, (0, _react2.jsx)("div", {
|
|
35
37
|
css: _styles.line
|
|
36
38
|
}), (0, _react2.jsx)("div", {
|
|
@@ -11,6 +11,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
11
11
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
12
12
|
import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import Heading from '@atlaskit/heading';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
15
16
|
import ModalFooter from './ModalFooter';
|
|
16
17
|
import ModalHeader from './ModalHeader';
|
|
@@ -23,7 +24,8 @@ export const ModalContent = ({
|
|
|
23
24
|
return jsx(React.Fragment, null, jsx(ModalHeader, {
|
|
24
25
|
onClose: onClose
|
|
25
26
|
}), jsx("div", {
|
|
26
|
-
css: contentWrapper
|
|
27
|
+
css: contentWrapper,
|
|
28
|
+
tabIndex: fg('platform_editor_help_dialog_a11y') ? 0 : undefined
|
|
27
29
|
}, jsx("div", {
|
|
28
30
|
css: line
|
|
29
31
|
}), jsx("div", {
|
|
@@ -11,6 +11,7 @@ import { FormattedMessage } from 'react-intl-next';
|
|
|
11
11
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
12
12
|
import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import Heading from '@atlaskit/heading';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
15
16
|
import ModalFooter from './ModalFooter';
|
|
16
17
|
import ModalHeader from './ModalHeader';
|
|
@@ -22,7 +23,8 @@ export var ModalContent = function ModalContent(_ref) {
|
|
|
22
23
|
return jsx(React.Fragment, null, jsx(ModalHeader, {
|
|
23
24
|
onClose: onClose
|
|
24
25
|
}), jsx("div", {
|
|
25
|
-
css: contentWrapper
|
|
26
|
+
css: contentWrapper,
|
|
27
|
+
tabIndex: fg('platform_editor_help_dialog_a11y') ? 0 : undefined
|
|
26
28
|
}, jsx("div", {
|
|
27
29
|
css: line
|
|
28
30
|
}), jsx("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-help-dialog",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^6.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-quick-insert": "^6.0.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
35
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
35
|
+
"@atlaskit/editor-shared-styles": "^3.7.0",
|
|
36
36
|
"@atlaskit/heading": "^5.2.0",
|
|
37
37
|
"@atlaskit/icon": "^28.5.0",
|
|
38
|
-
"@atlaskit/modal-dialog": "^14.
|
|
38
|
+
"@atlaskit/modal-dialog": "^14.5.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
|
-
"@atlaskit/primitives": "^
|
|
40
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
41
41
|
"@atlaskit/theme": "^21.0.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
43
|
-
"@atlaskit/tokens": "^6.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^13.12.0",
|
|
43
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
44
44
|
"@atlaskit/tooltip": "^20.5.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@testing-library/react": "^13.4.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^110.
|
|
54
|
+
"@atlaskit/editor-common": "^110.13.0",
|
|
55
55
|
"react": "^18.2.0"
|
|
56
56
|
},
|
|
57
57
|
"techstack": {
|
|
@@ -96,6 +96,9 @@
|
|
|
96
96
|
},
|
|
97
97
|
"platform_editor_update_modal_close_button": {
|
|
98
98
|
"type": "boolean"
|
|
99
|
+
},
|
|
100
|
+
"platform_editor_help_dialog_a11y": {
|
|
101
|
+
"type": "boolean"
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
104
|
}
|