@atlaskit/editor-plugin-help-dialog 6.0.7 → 6.0.9
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/index.js +4 -0
- package/dist/es2019/ui/index.js +4 -0
- package/dist/esm/ui/index.js +4 -0
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 6.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fc830b2ec8cad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc830b2ec8cad) -
|
|
8
|
+
ENGHEALTH-32569: ensure editor help modal has an accessible title
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.0.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.0.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -10,7 +10,9 @@ var _react = require("react");
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
13
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
14
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
16
|
var _commands = require("../pm-plugins/commands");
|
|
15
17
|
var _formatting = require("./formatting");
|
|
16
18
|
var _Modal = _interopRequireDefault(require("./Modal"));
|
|
@@ -60,7 +62,9 @@ var HelpDialog = function HelpDialog(_ref) {
|
|
|
60
62
|
};
|
|
61
63
|
}, [handleEsc]);
|
|
62
64
|
var formatting = (0, _formatting.getSupportedFormatting)(editorView.state.schema, intl, imageEnabled, quickInsertEnabled, aiEnabled);
|
|
65
|
+
var label = (0, _platformFeatureFlags.fg)('platform_editor_fix_help_modal_header') ? intl.formatMessage(_messages.helpDialogMessages.editorHelp) : undefined;
|
|
63
66
|
return (0, _react2.jsx)(_modalDialog.ModalTransition, null, isVisible ? (0, _react2.jsx)(_modalDialog.default, {
|
|
67
|
+
label: label,
|
|
64
68
|
width: "large",
|
|
65
69
|
onClose: closeDialog,
|
|
66
70
|
testId: "help-modal-dialog"
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -8,7 +8,9 @@ import { useCallback, useEffect } from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
11
|
+
import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
12
|
import AkModalDialog, { ModalTransition } from '@atlaskit/modal-dialog';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
14
|
import { closeHelpCommand } from '../pm-plugins/commands';
|
|
13
15
|
import { getSupportedFormatting } from './formatting';
|
|
14
16
|
import Modal from './Modal';
|
|
@@ -56,7 +58,9 @@ const HelpDialog = ({
|
|
|
56
58
|
};
|
|
57
59
|
}, [handleEsc]);
|
|
58
60
|
const formatting = getSupportedFormatting(editorView.state.schema, intl, imageEnabled, quickInsertEnabled, aiEnabled);
|
|
61
|
+
const label = fg('platform_editor_fix_help_modal_header') ? intl.formatMessage(messages.editorHelp) : undefined;
|
|
59
62
|
return jsx(ModalTransition, null, isVisible ? jsx(AkModalDialog, {
|
|
63
|
+
label: label,
|
|
60
64
|
width: "large",
|
|
61
65
|
onClose: closeDialog,
|
|
62
66
|
testId: "help-modal-dialog"
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -8,7 +8,9 @@ import { useCallback, useEffect } from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
11
|
+
import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages';
|
|
11
12
|
import AkModalDialog, { ModalTransition } from '@atlaskit/modal-dialog';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
14
|
import { closeHelpCommand } from '../pm-plugins/commands';
|
|
13
15
|
import { getSupportedFormatting } from './formatting';
|
|
14
16
|
import Modal from './Modal';
|
|
@@ -50,7 +52,9 @@ var HelpDialog = function HelpDialog(_ref) {
|
|
|
50
52
|
};
|
|
51
53
|
}, [handleEsc]);
|
|
52
54
|
var formatting = getSupportedFormatting(editorView.state.schema, intl, imageEnabled, quickInsertEnabled, aiEnabled);
|
|
55
|
+
var label = fg('platform_editor_fix_help_modal_header') ? intl.formatMessage(messages.editorHelp) : undefined;
|
|
53
56
|
return jsx(ModalTransition, null, isVisible ? jsx(AkModalDialog, {
|
|
57
|
+
label: label,
|
|
54
58
|
width: "large",
|
|
55
59
|
onClose: closeDialog,
|
|
56
60
|
testId: "help-modal-dialog"
|
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.9",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/editor-plugin-analytics": "^6.
|
|
32
|
+
"@atlaskit/editor-plugin-analytics": "^6.2.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.8.0",
|
|
36
36
|
"@atlaskit/heading": "^5.2.0",
|
|
37
37
|
"@atlaskit/icon": "^28.5.0",
|
|
38
38
|
"@atlaskit/modal-dialog": "^14.5.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
|
-
"@atlaskit/primitives": "^
|
|
40
|
+
"@atlaskit/primitives": "^16.0.0",
|
|
41
41
|
"@atlaskit/theme": "^21.0.0",
|
|
42
42
|
"@atlaskit/tmp-editor-statsig": "^13.13.0",
|
|
43
43
|
"@atlaskit/tokens": "^7.0.0",
|
|
44
|
-
"@atlaskit/tooltip": "^20.
|
|
44
|
+
"@atlaskit/tooltip": "^20.6.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"react-intl-next": "npm:react-intl@^5.18.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.14.0",
|
|
55
55
|
"react": "^18.2.0"
|
|
56
56
|
},
|
|
57
57
|
"techstack": {
|
|
@@ -99,6 +99,9 @@
|
|
|
99
99
|
},
|
|
100
100
|
"platform_editor_help_dialog_a11y": {
|
|
101
101
|
"type": "boolean"
|
|
102
|
+
},
|
|
103
|
+
"platform_editor_fix_help_modal_header": {
|
|
104
|
+
"type": "boolean"
|
|
102
105
|
}
|
|
103
106
|
}
|
|
104
107
|
}
|