@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 +10 -10
- package/CHANGELOG.md +90 -68
- package/LICENSE.md +6 -8
- package/dist/cjs/ui/ModalContent.js +17 -9
- package/dist/cjs/ui/ModalFooter.js +10 -7
- package/dist/cjs/ui/ModalHeader.js +21 -15
- package/dist/cjs/ui/formatting.js +158 -79
- package/dist/cjs/ui/styles.js +42 -1
- package/dist/cjs/ui/utils.js +53 -34
- package/dist/es2019/ui/ModalContent.js +9 -3
- package/dist/es2019/ui/ModalFooter.js +3 -1
- package/dist/es2019/ui/ModalHeader.js +22 -16
- package/dist/es2019/ui/formatting.js +81 -15
- package/dist/es2019/ui/styles.js +42 -1
- package/dist/es2019/ui/utils.js +53 -34
- package/dist/esm/ui/ModalContent.js +17 -9
- package/dist/esm/ui/ModalFooter.js +10 -7
- package/dist/esm/ui/ModalHeader.js +22 -16
- package/dist/esm/ui/formatting.js +159 -80
- package/dist/esm/ui/styles.js +42 -1
- package/dist/esm/ui/utils.js +53 -34
- package/dist/types/types.d.ts +1 -4
- package/dist/types/ui/styles.d.ts +1 -0
- package/dist/types-ts4.5/ui/styles.d.ts +1 -0
- package/package.json +8 -7
- package/report.api.md +14 -19
package/.eslintrc.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
-
|
|
29
|
+
- Updated dependencies
|
|
8
30
|
|
|
9
31
|
## 1.2.3
|
|
10
32
|
|
|
11
33
|
### Patch Changes
|
|
12
34
|
|
|
13
|
-
-
|
|
35
|
+
- Updated dependencies
|
|
14
36
|
|
|
15
37
|
## 1.2.2
|
|
16
38
|
|
|
17
39
|
### Patch Changes
|
|
18
40
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
-
|
|
51
|
+
- Updated dependencies
|
|
30
52
|
|
|
31
53
|
## 1.2.0
|
|
32
54
|
|
|
33
55
|
### Minor Changes
|
|
34
56
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
-
|
|
63
|
+
- Updated dependencies
|
|
42
64
|
|
|
43
65
|
## 1.1.2
|
|
44
66
|
|
|
45
67
|
### Patch Changes
|
|
46
68
|
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
-
|
|
91
|
+
- Updated dependencies
|
|
70
92
|
|
|
71
93
|
## 1.0.2
|
|
72
94
|
|
|
73
95
|
### Patch Changes
|
|
74
96
|
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
-
|
|
105
|
+
- Updated dependencies
|
|
84
106
|
|
|
85
107
|
## 1.0.0
|
|
86
108
|
|
|
87
109
|
### Major Changes
|
|
88
110
|
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
-
|
|
118
|
+
- Updated dependencies
|
|
97
119
|
|
|
98
120
|
## 0.3.9
|
|
99
121
|
|
|
100
122
|
### Patch Changes
|
|
101
123
|
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
-
|
|
140
|
+
- Updated dependencies
|
|
119
141
|
|
|
120
142
|
## 0.3.6
|
|
121
143
|
|
|
122
144
|
### Patch Changes
|
|
123
145
|
|
|
124
|
-
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
-
|
|
154
|
+
- Updated dependencies
|
|
133
155
|
|
|
134
156
|
## 0.3.4
|
|
135
157
|
|
|
136
158
|
### Patch Changes
|
|
137
159
|
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
-
-
|
|
184
|
+
- Updated dependencies
|
|
163
185
|
|
|
164
186
|
## 0.3.0
|
|
165
187
|
|
|
166
188
|
### Minor Changes
|
|
167
189
|
|
|
168
|
-
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
-
|
|
196
|
+
- Updated dependencies
|
|
175
197
|
|
|
176
198
|
## 0.2.3
|
|
177
199
|
|
|
178
200
|
### Patch Changes
|
|
179
201
|
|
|
180
|
-
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
-
|
|
210
|
+
- Updated dependencies
|
|
189
211
|
|
|
190
212
|
## 0.2.1
|
|
191
213
|
|
|
192
214
|
### Patch Changes
|
|
193
215
|
|
|
194
|
-
-
|
|
216
|
+
- Updated dependencies
|
|
195
217
|
|
|
196
218
|
## 0.2.0
|
|
197
219
|
|
|
198
220
|
### Minor Changes
|
|
199
221
|
|
|
200
|
-
-
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
-
|
|
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
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
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 (
|
|
40
|
-
css
|
|
41
|
-
|
|
42
|
-
|
|
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 (
|
|
49
|
-
css
|
|
50
|
-
|
|
51
|
-
|
|
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 &&
|
|
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 (
|
|
19
|
-
css
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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 (
|
|
20
|
-
css
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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;
|