@atlaskit/editor-plugin-help-dialog 30.0.3 → 30.0.4
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 30.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`36805c1c6ffe5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/36805c1c6ffe5) -
|
|
8
|
+
Behind `platform_dst-modal_title`, render the modal's visible heading with `ModalTitle` so the
|
|
9
|
+
dialog is named by its title. No change when the flag is off.
|
|
10
|
+
|
|
3
11
|
## 30.0.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -12,6 +12,8 @@ var _ToolbarButton = _interopRequireDefault(require("@atlaskit/editor-common/ui-
|
|
|
12
12
|
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
13
13
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
14
14
|
var _closeButton = require("@atlaskit/modal-dialog/close-button");
|
|
15
|
+
var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
|
|
16
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
17
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
16
18
|
var _styles = require("./styles");
|
|
17
19
|
/**
|
|
@@ -37,7 +39,13 @@ var ModalHeader = (0, _reactIntl.injectIntl)(function (_ref) {
|
|
|
37
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
38
40
|
(0, _react.jsx)("div", {
|
|
39
41
|
css: _styles.header
|
|
40
|
-
}, (0, _react.jsx)(_heading.default, {
|
|
42
|
+
}, (0, _fg.fg)('platform_dst-modal_title') ? (0, _react.jsx)(_modalTitle.default, null, (0, _react.jsx)(_heading.default, {
|
|
43
|
+
size: "large",
|
|
44
|
+
as: "span"
|
|
45
|
+
}, (0, _react.jsx)(_reactIntl.FormattedMessage
|
|
46
|
+
// Ignored via go/ees005
|
|
47
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
48
|
+
, _helpDialog.helpDialogMessages.editorHelp))) : (0, _react.jsx)(_heading.default, {
|
|
41
49
|
size: "large"
|
|
42
50
|
}, (0, _react.jsx)(_reactIntl.FormattedMessage
|
|
43
51
|
// Ignored via go/ees005
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var _helpDialog = require("@atlaskit/editor-common/messages/help-dialog");
|
|
|
12
12
|
var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
|
|
13
13
|
var _modalDialog = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-dialog"));
|
|
14
14
|
var _modalTransition = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-transition"));
|
|
15
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
16
|
var _commands = require("../pm-plugins/commands");
|
|
16
17
|
var _formatting = require("./formatting");
|
|
17
18
|
var _Modal = _interopRequireDefault(require("./Modal"));
|
|
@@ -64,7 +65,7 @@ var HelpDialog = function HelpDialog(_ref) {
|
|
|
64
65
|
return (0, _react2.jsx)(_modalTransition.default, null, isVisible ?
|
|
65
66
|
// eslint-disable-next-line @atlaskit/design-system/no-modal-label
|
|
66
67
|
(0, _react2.jsx)(_modalDialog.default, {
|
|
67
|
-
label: label,
|
|
68
|
+
label: (0, _fg.fg)('platform_dst-modal_title') ? undefined : label,
|
|
68
69
|
width: "large",
|
|
69
70
|
onClose: closeDialog,
|
|
70
71
|
testId: "help-modal-dialog"
|
|
@@ -11,6 +11,8 @@ import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
|
11
11
|
import Heading from '@atlaskit/heading/heading';
|
|
12
12
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
13
13
|
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
14
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
16
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
17
|
import { header, toolbarButton } from './styles';
|
|
16
18
|
const toolbarFocusStyles = css({
|
|
@@ -32,7 +34,13 @@ const ModalHeader = injectIntl(({
|
|
|
32
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
33
35
|
jsx("div", {
|
|
34
36
|
css: header
|
|
35
|
-
}, jsx(Heading, {
|
|
37
|
+
}, fg('platform_dst-modal_title') ? jsx(ModalTitle, null, jsx(Heading, {
|
|
38
|
+
size: "large",
|
|
39
|
+
as: "span"
|
|
40
|
+
}, jsx(FormattedMessage
|
|
41
|
+
// Ignored via go/ees005
|
|
42
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
43
|
+
, messages.editorHelp))) : jsx(Heading, {
|
|
36
44
|
size: "large"
|
|
37
45
|
}, jsx(FormattedMessage
|
|
38
46
|
// Ignored via go/ees005
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages
|
|
|
11
11
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
12
12
|
import AkModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
13
13
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
15
|
import { closeHelpCommand } from '../pm-plugins/commands';
|
|
15
16
|
import { getSupportedFormatting } from './formatting';
|
|
16
17
|
import Modal from './Modal';
|
|
@@ -62,7 +63,7 @@ const HelpDialog = ({
|
|
|
62
63
|
return jsx(ModalTransition, null, isVisible ?
|
|
63
64
|
// eslint-disable-next-line @atlaskit/design-system/no-modal-label
|
|
64
65
|
jsx(AkModalDialog, {
|
|
65
|
-
label: label,
|
|
66
|
+
label: fg('platform_dst-modal_title') ? undefined : label,
|
|
66
67
|
width: "large",
|
|
67
68
|
onClose: closeDialog,
|
|
68
69
|
testId: "help-modal-dialog"
|
|
@@ -11,6 +11,8 @@ import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
|
11
11
|
import Heading from '@atlaskit/heading/heading';
|
|
12
12
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
13
13
|
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
14
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
16
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
17
|
import { header, toolbarButton } from './styles';
|
|
16
18
|
var toolbarFocusStyles = css({
|
|
@@ -29,7 +31,13 @@ var ModalHeader = injectIntl(function (_ref) {
|
|
|
29
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
30
32
|
jsx("div", {
|
|
31
33
|
css: header
|
|
32
|
-
}, jsx(Heading, {
|
|
34
|
+
}, fg('platform_dst-modal_title') ? jsx(ModalTitle, null, jsx(Heading, {
|
|
35
|
+
size: "large",
|
|
36
|
+
as: "span"
|
|
37
|
+
}, jsx(FormattedMessage
|
|
38
|
+
// Ignored via go/ees005
|
|
39
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
40
|
+
, messages.editorHelp))) : jsx(Heading, {
|
|
33
41
|
size: "large"
|
|
34
42
|
}, jsx(FormattedMessage
|
|
35
43
|
// Ignored via go/ees005
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages
|
|
|
11
11
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
12
12
|
import AkModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
13
13
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
15
|
import { closeHelpCommand } from '../pm-plugins/commands';
|
|
15
16
|
import { getSupportedFormatting } from './formatting';
|
|
16
17
|
import Modal from './Modal';
|
|
@@ -56,7 +57,7 @@ var HelpDialog = function HelpDialog(_ref) {
|
|
|
56
57
|
return jsx(ModalTransition, null, isVisible ?
|
|
57
58
|
// eslint-disable-next-line @atlaskit/design-system/no-modal-label
|
|
58
59
|
jsx(AkModalDialog, {
|
|
59
|
-
label: label,
|
|
60
|
+
label: fg('platform_dst-modal_title') ? undefined : label,
|
|
60
61
|
width: "large",
|
|
61
62
|
onClose: closeDialog,
|
|
62
63
|
testId: "help-modal-dialog"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-help-dialog",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.4",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,10 +27,11 @@
|
|
|
27
27
|
"@atlaskit/editor-shared-styles": "^4.6.0",
|
|
28
28
|
"@atlaskit/heading": "^8.0.0",
|
|
29
29
|
"@atlaskit/icon": "^38.0.0",
|
|
30
|
-
"@atlaskit/modal-dialog": "^17.
|
|
30
|
+
"@atlaskit/modal-dialog": "^17.2.0",
|
|
31
31
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
32
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
32
33
|
"@atlaskit/primitives": "^22.6.0",
|
|
33
|
-
"@atlaskit/tmp-editor-statsig": "^248.
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^248.1.0",
|
|
34
35
|
"@atlaskit/tokens": "^20.8.0",
|
|
35
36
|
"@atlaskit/tooltip": "^24.4.0",
|
|
36
37
|
"@babel/runtime": "^7.0.0",
|