@atlaskit/editor-plugin-help-dialog 1.2.4 → 1.2.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/.eslintrc.js CHANGED
@@ -1,12 +1,12 @@
1
1
  module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- '@atlaskit/design-system/consistent-css-prop-usage': 'warn',
6
- '@repo/internal/dom-events/no-unsafe-event-listeners': 'warn',
7
- '@atlaskit/design-system/ensure-design-token-usage/preview': [
8
- 'error',
9
- { domains: ['spacing'], shouldEnforceFallbacks: false },
10
- ],
11
- },
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ '@atlaskit/design-system/consistent-css-prop-usage': 'warn',
6
+ '@repo/internal/dom-events/no-unsafe-event-listeners': 'warn',
7
+ '@atlaskit/design-system/ensure-design-token-usage/preview': [
8
+ 'error',
9
+ { domains: ['spacing'], shouldEnforceFallbacks: false },
10
+ ],
11
+ },
12
12
  };
package/CHANGELOG.md CHANGED
@@ -1,214 +1,236 @@
1
1
  # @atlaskit/editor-plugin-help-dialog
2
2
 
3
+ ## 1.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#107302](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107302)
8
+ [`c08367b1ada17`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c08367b1ada17) -
9
+ [ux] [ED-23162] Added keyboard shortcut to toggle highlight palette
10
+ - Updated dependencies
11
+
12
+ ## 1.2.5
13
+
14
+ ### Patch Changes
15
+
16
+ - [#106818](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/106818)
17
+ [`bc92b19cf448`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc92b19cf448) -
18
+ Fix missing styling on focused help model close button
19
+ - [#100714](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100714)
20
+ [`81849acfe13c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/81849acfe13c) -
21
+ ECA11Y-228: Added new shortcuts for insert column and row and added correct formatting for help
22
+ modal dialog
23
+ - Updated dependencies
24
+
3
25
  ## 1.2.4
4
26
 
5
27
  ### Patch Changes
6
28
 
7
- - Updated dependencies
29
+ - Updated dependencies
8
30
 
9
31
  ## 1.2.3
10
32
 
11
33
  ### Patch Changes
12
34
 
13
- - Updated dependencies
35
+ - Updated dependencies
14
36
 
15
37
  ## 1.2.2
16
38
 
17
39
  ### Patch Changes
18
40
 
19
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
20
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
21
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
22
- language triggering composition on an empty line.This was fixed in a patch bump of
23
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
41
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
42
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
43
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
44
+ language triggering composition on an empty line.This was fixed in a patch bump of
45
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
24
46
 
25
47
  ## 1.2.1
26
48
 
27
49
  ### Patch Changes
28
50
 
29
- - Updated dependencies
51
+ - Updated dependencies
30
52
 
31
53
  ## 1.2.0
32
54
 
33
55
  ### Minor Changes
34
56
 
35
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
36
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
37
- bumped editor-prosemirror version to 4.0.0
57
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
58
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
59
+ bumped editor-prosemirror version to 4.0.0
38
60
 
39
61
  ### Patch Changes
40
62
 
41
- - Updated dependencies
63
+ - Updated dependencies
42
64
 
43
65
  ## 1.1.2
44
66
 
45
67
  ### Patch Changes
46
68
 
47
- - [#91571](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91571)
48
- [`984cb24fae77`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/984cb24fae77) -
49
- refactored help dialog
69
+ - [#91571](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91571)
70
+ [`984cb24fae77`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/984cb24fae77) -
71
+ refactored help dialog
50
72
 
51
73
  ## 1.1.1
52
74
 
53
75
  ### Patch Changes
54
76
 
55
- - [#81374](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81374)
56
- [`1aa1f97dd341`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1aa1f97dd341) -
57
- React 18 types for editor-plugin-help-dialog
77
+ - [#81374](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81374)
78
+ [`1aa1f97dd341`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1aa1f97dd341) -
79
+ React 18 types for editor-plugin-help-dialog
58
80
 
59
81
  ## 1.1.0
60
82
 
61
83
  ### Minor Changes
62
84
 
63
- - [#77222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77222)
64
- [`b924ab2b79f3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b924ab2b79f3) -
65
- [ux] Add keyboard shortcuts for center and right text alignment
85
+ - [#77222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77222)
86
+ [`b924ab2b79f3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b924ab2b79f3) -
87
+ [ux] Add keyboard shortcuts for center and right text alignment
66
88
 
67
89
  ### Patch Changes
68
90
 
69
- - Updated dependencies
91
+ - Updated dependencies
70
92
 
71
93
  ## 1.0.2
72
94
 
73
95
  ### Patch Changes
74
96
 
75
- - [#73177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73177)
76
- [`22452599ed8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22452599ed8f) -
77
- Move styling for certain packages to tokens.
97
+ - [#73177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73177)
98
+ [`22452599ed8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22452599ed8f) -
99
+ Move styling for certain packages to tokens.
78
100
 
79
101
  ## 1.0.1
80
102
 
81
103
  ### Patch Changes
82
104
 
83
- - Updated dependencies
105
+ - Updated dependencies
84
106
 
85
107
  ## 1.0.0
86
108
 
87
109
  ### Major Changes
88
110
 
89
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
90
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
91
- This changeset exists to bump all editor plugins that currently don't have a major version. This
92
- is to address an issue with Jira plugin consumption.
111
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
112
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
113
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
114
+ is to address an issue with Jira plugin consumption.
93
115
 
94
116
  ### Patch Changes
95
117
 
96
- - Updated dependencies
118
+ - Updated dependencies
97
119
 
98
120
  ## 0.3.9
99
121
 
100
122
  ### Patch Changes
101
123
 
102
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
103
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
104
- Upgrading @atlaskit/editor-prosemirror dependency
124
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
125
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
126
+ Upgrading @atlaskit/editor-prosemirror dependency
105
127
 
106
128
  ## 0.3.8
107
129
 
108
130
  ### Patch Changes
109
131
 
110
- - [#65334](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65334)
111
- [`089979f0308f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/089979f0308f) -
112
- [ux] ECA11Y-111/ECA11Y-86 Help dialog - resize table and media information
132
+ - [#65334](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65334)
133
+ [`089979f0308f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/089979f0308f) -
134
+ [ux] ECA11Y-111/ECA11Y-86 Help dialog - resize table and media information
113
135
 
114
136
  ## 0.3.7
115
137
 
116
138
  ### Patch Changes
117
139
 
118
- - Updated dependencies
140
+ - Updated dependencies
119
141
 
120
142
  ## 0.3.6
121
143
 
122
144
  ### Patch Changes
123
145
 
124
- - [#58893](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58893)
125
- [`ed82b25d516b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ed82b25d516b) -
126
- [ux] [ECA11Y-110] Selecting table columns and rows via shortcuts
146
+ - [#58893](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58893)
147
+ [`ed82b25d516b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ed82b25d516b) -
148
+ [ux] [ECA11Y-110] Selecting table columns and rows via shortcuts
127
149
 
128
150
  ## 0.3.5
129
151
 
130
152
  ### Patch Changes
131
153
 
132
- - Updated dependencies
154
+ - Updated dependencies
133
155
 
134
156
  ## 0.3.4
135
157
 
136
158
  ### Patch Changes
137
159
 
138
- - [#42221](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42221)
139
- [`7fd1f8bb312`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fd1f8bb312) - revert
140
- pr 42221
160
+ - [#42221](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42221)
161
+ [`7fd1f8bb312`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fd1f8bb312) - revert
162
+ pr 42221
141
163
 
142
164
  ## 0.3.3
143
165
 
144
166
  ### Patch Changes
145
167
 
146
- - [#42221](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42221)
147
- [`1f49a73a590`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1f49a73a590) - [ux]
148
- [ECA11Y-110] Selecting table columns, rows, whole table via shortcuts
168
+ - [#42221](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42221)
169
+ [`1f49a73a590`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1f49a73a590) - [ux]
170
+ [ECA11Y-110] Selecting table columns, rows, whole table via shortcuts
149
171
 
150
172
  ## 0.3.2
151
173
 
152
174
  ### Patch Changes
153
175
 
154
- - [#43436](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43436)
155
- [`6bf14e25965`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6bf14e25965) - Revert
156
- "Resize media for the keyboard users"
176
+ - [#43436](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43436)
177
+ [`6bf14e25965`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6bf14e25965) - Revert
178
+ "Resize media for the keyboard users"
157
179
 
158
180
  ## 0.3.1
159
181
 
160
182
  ### Patch Changes
161
183
 
162
- - Updated dependencies
184
+ - Updated dependencies
163
185
 
164
186
  ## 0.3.0
165
187
 
166
188
  ### Minor Changes
167
189
 
168
- - [#43108](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43108)
169
- [`b779a47b799`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b779a47b799) -
170
- ECA11Y-86: Added ability to resize media via keyboard and added announcer
190
+ - [#43108](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43108)
191
+ [`b779a47b799`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b779a47b799) -
192
+ ECA11Y-86: Added ability to resize media via keyboard and added announcer
171
193
 
172
194
  ### Patch Changes
173
195
 
174
- - Updated dependencies
196
+ - Updated dependencies
175
197
 
176
198
  ## 0.2.3
177
199
 
178
200
  ### Patch Changes
179
201
 
180
- - [#42734](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42734)
181
- [`9a298d1b3c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a298d1b3c3) -
182
- Decouple code-block plugin from editor-core.
202
+ - [#42734](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42734)
203
+ [`9a298d1b3c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a298d1b3c3) - Decouple
204
+ code-block plugin from editor-core.
183
205
 
184
206
  ## 0.2.2
185
207
 
186
208
  ### Patch Changes
187
209
 
188
- - Updated dependencies
210
+ - Updated dependencies
189
211
 
190
212
  ## 0.2.1
191
213
 
192
214
  ### Patch Changes
193
215
 
194
- - Updated dependencies
216
+ - Updated dependencies
195
217
 
196
218
  ## 0.2.0
197
219
 
198
220
  ### Minor Changes
199
221
 
200
- - [#41049](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41049)
201
- [`56e271b5da6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56e271b5da6) -
202
- Extract help-dialog-plugin from editor-core
222
+ - [#41049](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41049)
223
+ [`56e271b5da6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56e271b5da6) - Extract
224
+ help-dialog-plugin from editor-core
203
225
 
204
226
  ## 0.1.0
205
227
 
206
228
  ### Minor Changes
207
229
 
208
- - [#41020](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41020)
209
- [`ab49509530f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab49509530f) - Add
210
- editor-plugin-help-dialog
230
+ - [#41020](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41020)
231
+ [`ab49509530f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab49509530f) - Add
232
+ editor-plugin-help-dialog
211
233
 
212
234
  ### Patch Changes
213
235
 
214
- - Updated dependencies
236
+ - Updated dependencies
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -36,19 +36,25 @@ var ModalContent = exports.ModalContent = function ModalContent(_ref) {
36
36
  var keymap = form.keymap && form.keymap();
37
37
  return keymap && keymap[_utils.browser.mac ? 'mac' : 'windows'];
38
38
  }).map(function (form) {
39
- return (0, _react2.jsx)("li", {
40
- css: _styles.row,
41
- key: "textFormatting-".concat(form.name)
42
- }, (0, _react2.jsx)("span", null, form.name), (0, _utils2.getComponentFromKeymap)(form.keymap()));
39
+ return (
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
41
+ (0, _react2.jsx)("li", {
42
+ css: _styles.row,
43
+ key: "textFormatting-".concat(form.name)
44
+ }, (0, _react2.jsx)("span", null, form.name), (0, _utils2.getComponentFromKeymap)(form.keymap()))
45
+ );
43
46
  }), formatting.filter(function (form) {
44
47
  return _utils2.shortcutNamesWithoutKeymap.indexOf(form.type) !== -1;
45
48
  }).filter(function (form) {
46
49
  return form.autoFormatting;
47
50
  }).map(function (form) {
48
- return (0, _react2.jsx)("li", {
49
- css: _styles.row,
50
- key: "autoFormatting-".concat(form.name)
51
- }, (0, _react2.jsx)("span", null, form.name), form.autoFormatting());
51
+ return (
52
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
53
+ (0, _react2.jsx)("li", {
54
+ css: _styles.row,
55
+ key: "autoFormatting-".concat(form.name)
56
+ }, (0, _react2.jsx)("span", null, form.name), form.autoFormatting())
57
+ );
52
58
  }))), (0, _react2.jsx)("div", {
53
59
  css: _styles.line
54
60
  }), (0, _react2.jsx)("div", {
@@ -58,7 +64,9 @@ var ModalContent = exports.ModalContent = function ModalContent(_ref) {
58
64
  }, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.helpDialogMessages.markdown)), (0, _react2.jsx)("ul", null, formatting.filter(function (form) {
59
65
  return _utils2.shortcutNamesWithoutKeymap.indexOf(form.type) === -1;
60
66
  }).map(function (form) {
61
- return form.autoFormatting && (0, _react2.jsx)("li", {
67
+ return form.autoFormatting &&
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
69
+ (0, _react2.jsx)("li", {
62
70
  key: "autoFormatting-".concat(form.name),
63
71
  css: _styles.row
64
72
  }, (0, _react2.jsx)("span", null, form.name), form.autoFormatting());
@@ -15,12 +15,15 @@ var _utils = require("./utils");
15
15
  /** @jsx jsx */
16
16
 
17
17
  var ModalFooter = function ModalFooter() {
18
- return (0, _react.jsx)("div", {
19
- css: _styles.footer
20
- }, (0, _react.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.helpDialogMessages.helpDialogTips, {
21
- values: {
22
- keyMap: (0, _utils.getComponentFromKeymap)(_keymaps.openHelp)
23
- }
24
- })));
18
+ return (
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
20
+ (0, _react.jsx)("div", {
21
+ css: _styles.footer
22
+ }, (0, _react.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.helpDialogMessages.helpDialogTips, {
23
+ values: {
24
+ keyMap: (0, _utils.getComponentFromKeymap)(_keymaps.openHelp)
25
+ }
26
+ })))
27
+ );
25
28
  };
26
29
  var _default = exports.default = ModalFooter;
@@ -16,20 +16,26 @@ var _styles = require("./styles");
16
16
  var ModalHeader = (0, _reactIntlNext.injectIntl)(function (_ref) {
17
17
  var formatMessage = _ref.intl.formatMessage,
18
18
  onClose = _ref.onClose;
19
- return (0, _react.jsx)("div", {
20
- css: _styles.header
21
- }, (0, _react.jsx)("h1", {
22
- css: _styles.dialogHeader
23
- }, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.helpDialogMessages.editorHelp)), (0, _react.jsx)("div", null, (0, _react.jsx)(_uiMenu.ToolbarButton
24
- // @ts-expect-error modal onClose handler requires second parameter of UIAnalyticsEvent, which we don't want to pass
25
- , {
26
- onClick: onClose,
27
- title: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
28
- spacing: "compact",
29
- iconBefore: (0, _react.jsx)(_cross.default, {
30
- label: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
31
- size: "medium"
32
- })
33
- })));
19
+ return (
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
21
+ (0, _react.jsx)("div", {
22
+ css: _styles.header
23
+ }, (0, _react.jsx)("h1", {
24
+ css: _styles.dialogHeader
25
+ }, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.helpDialogMessages.editorHelp)), (0, _react.jsx)("div", null, (0, _react.jsx)(_uiMenu.ToolbarButton
26
+ // @ts-expect-error modal onClose handler requires second parameter of UIAnalyticsEvent, which we don't want to pass
27
+ , {
28
+ onClick: onClose,
29
+ title: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
30
+ spacing: "compact",
31
+ iconBefore: (0, _react.jsx)(_cross.default, {
32
+ label: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
33
+ size: "medium"
34
+ })
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
36
+ ,
37
+ css: _styles.toolbarButton
38
+ })))
39
+ );
34
40
  });
35
41
  var _default = exports.default = ModalHeader;