@atlaskit/code 14.4.1 → 14.4.2
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 +6 -0
- package/codemods/13.0.0-remove-unnecessary-code-props.tsx +9 -11
- package/codemods/utils/helpers.tsx +17 -22
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +3 -11
- package/report.api.md +407 -474
- package/dist/types-ts4.0/bidi-warning/bidi-warning-decorator.d.ts +0 -5
- package/dist/types-ts4.0/bidi-warning/index.d.ts +0 -1
- package/dist/types-ts4.0/bidi-warning/ui/index.d.ts +0 -3
- package/dist/types-ts4.0/bidi-warning/ui/styled.d.ts +0 -8
- package/dist/types-ts4.0/bidi-warning/ui/types.d.ts +0 -33
- package/dist/types-ts4.0/code-block.d.ts +0 -13
- package/dist/types-ts4.0/code.d.ts +0 -16
- package/dist/types-ts4.0/constants.d.ts +0 -625
- package/dist/types-ts4.0/entry-points/block.d.ts +0 -2
- package/dist/types-ts4.0/entry-points/constants.d.ts +0 -1
- package/dist/types-ts4.0/entry-points/inline.d.ts +0 -2
- package/dist/types-ts4.0/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.0/extract-react-types/code-block.d.ts +0 -37
- package/dist/types-ts4.0/extract-react-types/code.d.ts +0 -2
- package/dist/types-ts4.0/index.d.ts +0 -4
- package/dist/types-ts4.0/internal/hooks/use-highlight.d.ts +0 -6
- package/dist/types-ts4.0/internal/theme/constants.d.ts +0 -8
- package/dist/types-ts4.0/internal/theme/get-theme.d.ts +0 -7
- package/dist/types-ts4.0/internal/theme/styles.d.ts +0 -27
- package/dist/types-ts4.0/internal/theme/types.d.ts +0 -57
- package/dist/types-ts4.0/internal/types.d.ts +0 -57
- package/dist/types-ts4.0/internal/utils/get-normalized-language.d.ts +0 -2
- package/dist/types-ts4.0/react-syntax-highlighter-bidi-warning-renderer.d.ts +0 -9
- package/dist/types-ts4.0/types.d.ts +0 -32
package/report.api.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/code"
|
|
1
|
+
## API Report File for "@atlaskit/code"
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
Generated API Report version: 2.0
|
|
7
|
+
-->
|
|
4
8
|
|
|
5
9
|
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
6
10
|
|
|
@@ -14,483 +18,407 @@ import { default as React_2 } from 'react';
|
|
|
14
18
|
import type { ReactNode } from 'react';
|
|
15
19
|
import type { Theme } from '@atlaskit/theme/types';
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
| 'useMap'
|
|
390
|
-
| 'value'
|
|
391
|
-
| 'wmode'
|
|
392
|
-
> &
|
|
393
|
-
React_2.RefAttributes<HTMLElement>
|
|
394
|
-
>>;
|
|
21
|
+
// @public
|
|
22
|
+
export const Code: React_2.MemoExoticComponent<
|
|
23
|
+
React_2.ForwardRefExoticComponent<
|
|
24
|
+
Pick<
|
|
25
|
+
CodeProps,
|
|
26
|
+
| 'as'
|
|
27
|
+
| 'name'
|
|
28
|
+
| 'testId'
|
|
29
|
+
| 'codeBidiWarnings'
|
|
30
|
+
| 'codeBidiWarningLabel'
|
|
31
|
+
| 'codeBidiWarningTooltipEnabled'
|
|
32
|
+
| 'list'
|
|
33
|
+
| 'step'
|
|
34
|
+
| 'color'
|
|
35
|
+
| 'content'
|
|
36
|
+
| 'height'
|
|
37
|
+
| 'width'
|
|
38
|
+
| 'start'
|
|
39
|
+
| 'hidden'
|
|
40
|
+
| 'size'
|
|
41
|
+
| 'style'
|
|
42
|
+
| 'default'
|
|
43
|
+
| 'wrap'
|
|
44
|
+
| 'open'
|
|
45
|
+
| 'multiple'
|
|
46
|
+
| 'disabled'
|
|
47
|
+
| 'children'
|
|
48
|
+
| 'cite'
|
|
49
|
+
| 'data'
|
|
50
|
+
| 'form'
|
|
51
|
+
| 'label'
|
|
52
|
+
| 'span'
|
|
53
|
+
| 'summary'
|
|
54
|
+
| 'title'
|
|
55
|
+
| 'pattern'
|
|
56
|
+
| 'className'
|
|
57
|
+
| 'key'
|
|
58
|
+
| 'defaultChecked'
|
|
59
|
+
| 'defaultValue'
|
|
60
|
+
| 'suppressContentEditableWarning'
|
|
61
|
+
| 'suppressHydrationWarning'
|
|
62
|
+
| 'accessKey'
|
|
63
|
+
| 'contentEditable'
|
|
64
|
+
| 'contextMenu'
|
|
65
|
+
| 'dir'
|
|
66
|
+
| 'draggable'
|
|
67
|
+
| 'id'
|
|
68
|
+
| 'lang'
|
|
69
|
+
| 'placeholder'
|
|
70
|
+
| 'slot'
|
|
71
|
+
| 'spellCheck'
|
|
72
|
+
| 'tabIndex'
|
|
73
|
+
| 'inputMode'
|
|
74
|
+
| 'is'
|
|
75
|
+
| 'radioGroup'
|
|
76
|
+
| 'role'
|
|
77
|
+
| 'about'
|
|
78
|
+
| 'datatype'
|
|
79
|
+
| 'inlist'
|
|
80
|
+
| 'prefix'
|
|
81
|
+
| 'property'
|
|
82
|
+
| 'resource'
|
|
83
|
+
| 'typeof'
|
|
84
|
+
| 'vocab'
|
|
85
|
+
| 'autoCapitalize'
|
|
86
|
+
| 'autoCorrect'
|
|
87
|
+
| 'autoSave'
|
|
88
|
+
| 'itemProp'
|
|
89
|
+
| 'itemScope'
|
|
90
|
+
| 'itemType'
|
|
91
|
+
| 'itemID'
|
|
92
|
+
| 'itemRef'
|
|
93
|
+
| 'results'
|
|
94
|
+
| 'security'
|
|
95
|
+
| 'unselectable'
|
|
96
|
+
| 'aria-activedescendant'
|
|
97
|
+
| 'aria-atomic'
|
|
98
|
+
| 'aria-autocomplete'
|
|
99
|
+
| 'aria-busy'
|
|
100
|
+
| 'aria-checked'
|
|
101
|
+
| 'aria-colcount'
|
|
102
|
+
| 'aria-colindex'
|
|
103
|
+
| 'aria-colspan'
|
|
104
|
+
| 'aria-controls'
|
|
105
|
+
| 'aria-current'
|
|
106
|
+
| 'aria-describedby'
|
|
107
|
+
| 'aria-details'
|
|
108
|
+
| 'aria-disabled'
|
|
109
|
+
| 'aria-dropeffect'
|
|
110
|
+
| 'aria-errormessage'
|
|
111
|
+
| 'aria-expanded'
|
|
112
|
+
| 'aria-flowto'
|
|
113
|
+
| 'aria-grabbed'
|
|
114
|
+
| 'aria-haspopup'
|
|
115
|
+
| 'aria-hidden'
|
|
116
|
+
| 'aria-invalid'
|
|
117
|
+
| 'aria-keyshortcuts'
|
|
118
|
+
| 'aria-label'
|
|
119
|
+
| 'aria-labelledby'
|
|
120
|
+
| 'aria-level'
|
|
121
|
+
| 'aria-live'
|
|
122
|
+
| 'aria-modal'
|
|
123
|
+
| 'aria-multiline'
|
|
124
|
+
| 'aria-multiselectable'
|
|
125
|
+
| 'aria-orientation'
|
|
126
|
+
| 'aria-owns'
|
|
127
|
+
| 'aria-placeholder'
|
|
128
|
+
| 'aria-posinset'
|
|
129
|
+
| 'aria-pressed'
|
|
130
|
+
| 'aria-readonly'
|
|
131
|
+
| 'aria-relevant'
|
|
132
|
+
| 'aria-required'
|
|
133
|
+
| 'aria-roledescription'
|
|
134
|
+
| 'aria-rowcount'
|
|
135
|
+
| 'aria-rowindex'
|
|
136
|
+
| 'aria-rowspan'
|
|
137
|
+
| 'aria-selected'
|
|
138
|
+
| 'aria-setsize'
|
|
139
|
+
| 'aria-sort'
|
|
140
|
+
| 'aria-valuemax'
|
|
141
|
+
| 'aria-valuemin'
|
|
142
|
+
| 'aria-valuenow'
|
|
143
|
+
| 'aria-valuetext'
|
|
144
|
+
| 'dangerouslySetInnerHTML'
|
|
145
|
+
| 'onCopy'
|
|
146
|
+
| 'onCopyCapture'
|
|
147
|
+
| 'onCut'
|
|
148
|
+
| 'onCutCapture'
|
|
149
|
+
| 'onPaste'
|
|
150
|
+
| 'onPasteCapture'
|
|
151
|
+
| 'onCompositionEnd'
|
|
152
|
+
| 'onCompositionEndCapture'
|
|
153
|
+
| 'onCompositionStart'
|
|
154
|
+
| 'onCompositionStartCapture'
|
|
155
|
+
| 'onCompositionUpdate'
|
|
156
|
+
| 'onCompositionUpdateCapture'
|
|
157
|
+
| 'onFocus'
|
|
158
|
+
| 'onFocusCapture'
|
|
159
|
+
| 'onBlur'
|
|
160
|
+
| 'onBlurCapture'
|
|
161
|
+
| 'onChange'
|
|
162
|
+
| 'onChangeCapture'
|
|
163
|
+
| 'onBeforeInput'
|
|
164
|
+
| 'onBeforeInputCapture'
|
|
165
|
+
| 'onInput'
|
|
166
|
+
| 'onInputCapture'
|
|
167
|
+
| 'onReset'
|
|
168
|
+
| 'onResetCapture'
|
|
169
|
+
| 'onSubmit'
|
|
170
|
+
| 'onSubmitCapture'
|
|
171
|
+
| 'onInvalid'
|
|
172
|
+
| 'onInvalidCapture'
|
|
173
|
+
| 'onLoad'
|
|
174
|
+
| 'onLoadCapture'
|
|
175
|
+
| 'onError'
|
|
176
|
+
| 'onErrorCapture'
|
|
177
|
+
| 'onKeyDown'
|
|
178
|
+
| 'onKeyDownCapture'
|
|
179
|
+
| 'onKeyPress'
|
|
180
|
+
| 'onKeyPressCapture'
|
|
181
|
+
| 'onKeyUp'
|
|
182
|
+
| 'onKeyUpCapture'
|
|
183
|
+
| 'onAbort'
|
|
184
|
+
| 'onAbortCapture'
|
|
185
|
+
| 'onCanPlay'
|
|
186
|
+
| 'onCanPlayCapture'
|
|
187
|
+
| 'onCanPlayThrough'
|
|
188
|
+
| 'onCanPlayThroughCapture'
|
|
189
|
+
| 'onDurationChange'
|
|
190
|
+
| 'onDurationChangeCapture'
|
|
191
|
+
| 'onEmptied'
|
|
192
|
+
| 'onEmptiedCapture'
|
|
193
|
+
| 'onEncrypted'
|
|
194
|
+
| 'onEncryptedCapture'
|
|
195
|
+
| 'onEnded'
|
|
196
|
+
| 'onEndedCapture'
|
|
197
|
+
| 'onLoadedData'
|
|
198
|
+
| 'onLoadedDataCapture'
|
|
199
|
+
| 'onLoadedMetadata'
|
|
200
|
+
| 'onLoadedMetadataCapture'
|
|
201
|
+
| 'onLoadStart'
|
|
202
|
+
| 'onLoadStartCapture'
|
|
203
|
+
| 'onPause'
|
|
204
|
+
| 'onPauseCapture'
|
|
205
|
+
| 'onPlay'
|
|
206
|
+
| 'onPlayCapture'
|
|
207
|
+
| 'onPlaying'
|
|
208
|
+
| 'onPlayingCapture'
|
|
209
|
+
| 'onProgress'
|
|
210
|
+
| 'onProgressCapture'
|
|
211
|
+
| 'onRateChange'
|
|
212
|
+
| 'onRateChangeCapture'
|
|
213
|
+
| 'onSeeked'
|
|
214
|
+
| 'onSeekedCapture'
|
|
215
|
+
| 'onSeeking'
|
|
216
|
+
| 'onSeekingCapture'
|
|
217
|
+
| 'onStalled'
|
|
218
|
+
| 'onStalledCapture'
|
|
219
|
+
| 'onSuspend'
|
|
220
|
+
| 'onSuspendCapture'
|
|
221
|
+
| 'onTimeUpdate'
|
|
222
|
+
| 'onTimeUpdateCapture'
|
|
223
|
+
| 'onVolumeChange'
|
|
224
|
+
| 'onVolumeChangeCapture'
|
|
225
|
+
| 'onWaiting'
|
|
226
|
+
| 'onWaitingCapture'
|
|
227
|
+
| 'onAuxClick'
|
|
228
|
+
| 'onAuxClickCapture'
|
|
229
|
+
| 'onClick'
|
|
230
|
+
| 'onClickCapture'
|
|
231
|
+
| 'onContextMenu'
|
|
232
|
+
| 'onContextMenuCapture'
|
|
233
|
+
| 'onDoubleClick'
|
|
234
|
+
| 'onDoubleClickCapture'
|
|
235
|
+
| 'onDrag'
|
|
236
|
+
| 'onDragCapture'
|
|
237
|
+
| 'onDragEnd'
|
|
238
|
+
| 'onDragEndCapture'
|
|
239
|
+
| 'onDragEnter'
|
|
240
|
+
| 'onDragEnterCapture'
|
|
241
|
+
| 'onDragExit'
|
|
242
|
+
| 'onDragExitCapture'
|
|
243
|
+
| 'onDragLeave'
|
|
244
|
+
| 'onDragLeaveCapture'
|
|
245
|
+
| 'onDragOver'
|
|
246
|
+
| 'onDragOverCapture'
|
|
247
|
+
| 'onDragStart'
|
|
248
|
+
| 'onDragStartCapture'
|
|
249
|
+
| 'onDrop'
|
|
250
|
+
| 'onDropCapture'
|
|
251
|
+
| 'onMouseDown'
|
|
252
|
+
| 'onMouseDownCapture'
|
|
253
|
+
| 'onMouseEnter'
|
|
254
|
+
| 'onMouseLeave'
|
|
255
|
+
| 'onMouseMove'
|
|
256
|
+
| 'onMouseMoveCapture'
|
|
257
|
+
| 'onMouseOut'
|
|
258
|
+
| 'onMouseOutCapture'
|
|
259
|
+
| 'onMouseOver'
|
|
260
|
+
| 'onMouseOverCapture'
|
|
261
|
+
| 'onMouseUp'
|
|
262
|
+
| 'onMouseUpCapture'
|
|
263
|
+
| 'onSelect'
|
|
264
|
+
| 'onSelectCapture'
|
|
265
|
+
| 'onTouchCancel'
|
|
266
|
+
| 'onTouchCancelCapture'
|
|
267
|
+
| 'onTouchEnd'
|
|
268
|
+
| 'onTouchEndCapture'
|
|
269
|
+
| 'onTouchMove'
|
|
270
|
+
| 'onTouchMoveCapture'
|
|
271
|
+
| 'onTouchStart'
|
|
272
|
+
| 'onTouchStartCapture'
|
|
273
|
+
| 'onPointerDown'
|
|
274
|
+
| 'onPointerDownCapture'
|
|
275
|
+
| 'onPointerMove'
|
|
276
|
+
| 'onPointerMoveCapture'
|
|
277
|
+
| 'onPointerUp'
|
|
278
|
+
| 'onPointerUpCapture'
|
|
279
|
+
| 'onPointerCancel'
|
|
280
|
+
| 'onPointerCancelCapture'
|
|
281
|
+
| 'onPointerEnter'
|
|
282
|
+
| 'onPointerEnterCapture'
|
|
283
|
+
| 'onPointerLeave'
|
|
284
|
+
| 'onPointerLeaveCapture'
|
|
285
|
+
| 'onPointerOver'
|
|
286
|
+
| 'onPointerOverCapture'
|
|
287
|
+
| 'onPointerOut'
|
|
288
|
+
| 'onPointerOutCapture'
|
|
289
|
+
| 'onGotPointerCapture'
|
|
290
|
+
| 'onGotPointerCaptureCapture'
|
|
291
|
+
| 'onLostPointerCapture'
|
|
292
|
+
| 'onLostPointerCaptureCapture'
|
|
293
|
+
| 'onScroll'
|
|
294
|
+
| 'onScrollCapture'
|
|
295
|
+
| 'onWheel'
|
|
296
|
+
| 'onWheelCapture'
|
|
297
|
+
| 'onAnimationStart'
|
|
298
|
+
| 'onAnimationStartCapture'
|
|
299
|
+
| 'onAnimationEnd'
|
|
300
|
+
| 'onAnimationEndCapture'
|
|
301
|
+
| 'onAnimationIteration'
|
|
302
|
+
| 'onAnimationIterationCapture'
|
|
303
|
+
| 'onTransitionEnd'
|
|
304
|
+
| 'onTransitionEndCapture'
|
|
305
|
+
| 'accept'
|
|
306
|
+
| 'acceptCharset'
|
|
307
|
+
| 'action'
|
|
308
|
+
| 'allowFullScreen'
|
|
309
|
+
| 'allowTransparency'
|
|
310
|
+
| 'alt'
|
|
311
|
+
| 'async'
|
|
312
|
+
| 'autoComplete'
|
|
313
|
+
| 'autoFocus'
|
|
314
|
+
| 'autoPlay'
|
|
315
|
+
| 'capture'
|
|
316
|
+
| 'cellPadding'
|
|
317
|
+
| 'cellSpacing'
|
|
318
|
+
| 'charSet'
|
|
319
|
+
| 'challenge'
|
|
320
|
+
| 'checked'
|
|
321
|
+
| 'classID'
|
|
322
|
+
| 'cols'
|
|
323
|
+
| 'colSpan'
|
|
324
|
+
| 'controls'
|
|
325
|
+
| 'coords'
|
|
326
|
+
| 'crossOrigin'
|
|
327
|
+
| 'dateTime'
|
|
328
|
+
| 'defer'
|
|
329
|
+
| 'download'
|
|
330
|
+
| 'encType'
|
|
331
|
+
| 'formAction'
|
|
332
|
+
| 'formEncType'
|
|
333
|
+
| 'formMethod'
|
|
334
|
+
| 'formNoValidate'
|
|
335
|
+
| 'formTarget'
|
|
336
|
+
| 'frameBorder'
|
|
337
|
+
| 'headers'
|
|
338
|
+
| 'high'
|
|
339
|
+
| 'href'
|
|
340
|
+
| 'hrefLang'
|
|
341
|
+
| 'htmlFor'
|
|
342
|
+
| 'httpEquiv'
|
|
343
|
+
| 'integrity'
|
|
344
|
+
| 'keyParams'
|
|
345
|
+
| 'keyType'
|
|
346
|
+
| 'kind'
|
|
347
|
+
| 'loop'
|
|
348
|
+
| 'low'
|
|
349
|
+
| 'manifest'
|
|
350
|
+
| 'marginHeight'
|
|
351
|
+
| 'marginWidth'
|
|
352
|
+
| 'max'
|
|
353
|
+
| 'maxLength'
|
|
354
|
+
| 'media'
|
|
355
|
+
| 'mediaGroup'
|
|
356
|
+
| 'method'
|
|
357
|
+
| 'min'
|
|
358
|
+
| 'minLength'
|
|
359
|
+
| 'muted'
|
|
360
|
+
| 'nonce'
|
|
361
|
+
| 'noValidate'
|
|
362
|
+
| 'optimum'
|
|
363
|
+
| 'playsInline'
|
|
364
|
+
| 'poster'
|
|
365
|
+
| 'preload'
|
|
366
|
+
| 'readOnly'
|
|
367
|
+
| 'rel'
|
|
368
|
+
| 'required'
|
|
369
|
+
| 'reversed'
|
|
370
|
+
| 'rows'
|
|
371
|
+
| 'rowSpan'
|
|
372
|
+
| 'sandbox'
|
|
373
|
+
| 'scope'
|
|
374
|
+
| 'scoped'
|
|
375
|
+
| 'scrolling'
|
|
376
|
+
| 'seamless'
|
|
377
|
+
| 'selected'
|
|
378
|
+
| 'shape'
|
|
379
|
+
| 'sizes'
|
|
380
|
+
| 'src'
|
|
381
|
+
| 'srcDoc'
|
|
382
|
+
| 'srcLang'
|
|
383
|
+
| 'srcSet'
|
|
384
|
+
| 'target'
|
|
385
|
+
| 'type'
|
|
386
|
+
| 'useMap'
|
|
387
|
+
| 'value'
|
|
388
|
+
| 'wmode'
|
|
389
|
+
> &
|
|
390
|
+
React_2.RefAttributes<HTMLElement>
|
|
391
|
+
>
|
|
392
|
+
>;
|
|
395
393
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
*
|
|
399
|
-
* A code block highlights an entire block of code and keeps the formatting.
|
|
400
|
-
*
|
|
401
|
-
* - [Examples](https://atlassian.design/components/code/code-block/examples)
|
|
402
|
-
* - [Code](https://atlassian.design/components/code/code-block/code)
|
|
403
|
-
* - [Usage](https://atlassian.design/components/code/code-block/usage)
|
|
404
|
-
*/
|
|
405
|
-
export declare const CodeBlock: NamedExoticComponent<CodeBlockProps>;
|
|
394
|
+
// @public
|
|
395
|
+
export const CodeBlock: NamedExoticComponent<CodeBlockProps>;
|
|
406
396
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
* The code to be formatted
|
|
410
|
-
*/
|
|
411
|
-
text: string;
|
|
412
|
-
/**
|
|
413
|
-
* A unique string that appears as a data attribute `data-testid`
|
|
414
|
-
* in the rendered code. Serves as a hook for automated tests.
|
|
415
|
-
*/
|
|
416
|
-
testId?: string;
|
|
417
|
-
/**
|
|
418
|
-
* Whether to showLineNumbers or not, defaults to true
|
|
419
|
-
*/
|
|
420
|
-
showLineNumbers?: boolean;
|
|
421
|
-
/**
|
|
422
|
-
* The language in which the code is written
|
|
423
|
-
*/
|
|
424
|
-
language?: SupportedLanguages;
|
|
425
|
-
/**
|
|
426
|
-
* Lines to highlight comma delimited.
|
|
427
|
-
* Example uses:
|
|
428
|
-
* - To highlight one line `highlight="3"`
|
|
429
|
-
* - To highlight a group of lines `highlight="1-5"`
|
|
430
|
-
* - To highlight multiple groups `highlight="1-5,7,10,15-20"`
|
|
431
|
-
*/
|
|
432
|
-
highlight?: string;
|
|
433
|
-
/**
|
|
434
|
-
* Screen reader text for the start of a highlighted line
|
|
435
|
-
*/
|
|
436
|
-
highlightedStartText?: string;
|
|
437
|
-
/**
|
|
438
|
-
* Screen reader text for the end of a highlighted line
|
|
439
|
-
*/
|
|
440
|
-
highlightedEndText?: string;
|
|
441
|
-
/**
|
|
442
|
-
* When false, disables decorating code with bidi warnings
|
|
443
|
-
*
|
|
444
|
-
* defaults to true
|
|
445
|
-
*/
|
|
446
|
-
codeBidiWarnings?: boolean;
|
|
447
|
-
/**
|
|
448
|
-
* Labels for the previous and next buttons used in pagination.
|
|
449
|
-
* Defaults to `Bidirectional characters change the order that text is rendered. This could be used to obscure malicious code.`.
|
|
450
|
-
*/
|
|
397
|
+
// @public (undocumented)
|
|
398
|
+
export interface CodeBlockProps {
|
|
451
399
|
codeBidiWarningLabel?: string;
|
|
452
|
-
|
|
453
|
-
* Defaults to enabled (true)
|
|
454
|
-
*
|
|
455
|
-
* Intended to be disabled when used in a mobile view, such as in the editor
|
|
456
|
-
* via mobile bridge, where the tooltip could end up being cut off of otherwise
|
|
457
|
-
* not work as expected.
|
|
458
|
-
*/
|
|
400
|
+
codeBidiWarnings?: boolean;
|
|
459
401
|
codeBidiWarningTooltipEnabled?: boolean;
|
|
402
|
+
highlight?: string;
|
|
403
|
+
highlightedEndText?: string;
|
|
404
|
+
highlightedStartText?: string;
|
|
405
|
+
language?: SupportedLanguages;
|
|
406
|
+
showLineNumbers?: boolean;
|
|
407
|
+
testId?: string;
|
|
408
|
+
text: string;
|
|
460
409
|
}
|
|
461
410
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
* A unique string that appears as a data attribute `data-testid`
|
|
465
|
-
* in the rendered code. Serves as a hook for automated tests.
|
|
466
|
-
*/
|
|
467
|
-
testId?: string;
|
|
468
|
-
/**
|
|
469
|
-
* Content to be rendered in the inline code block
|
|
470
|
-
*/
|
|
411
|
+
// @public (undocumented)
|
|
412
|
+
export interface CodeProps extends HTMLProps<HTMLElement> {
|
|
471
413
|
children?: ReactNode;
|
|
472
|
-
/**
|
|
473
|
-
* When false, disables decorating code with bidi warnings
|
|
474
|
-
*
|
|
475
|
-
* defaults to true
|
|
476
|
-
*/
|
|
477
|
-
codeBidiWarnings?: boolean;
|
|
478
|
-
/**
|
|
479
|
-
* Labels for the previous and next buttons used in pagination.
|
|
480
|
-
* Defaults to `Bidirectional characters change the order that text is rendered. This could be used to obscure malicious code.`.
|
|
481
|
-
*/
|
|
482
414
|
codeBidiWarningLabel?: string;
|
|
483
|
-
|
|
484
|
-
* Defaults to enabled (true)
|
|
485
|
-
*
|
|
486
|
-
* Intended to be disabled when used in a mobile view, such as in the editor
|
|
487
|
-
* via mobile bridge, where the tooltip could end up being cut off of otherwise
|
|
488
|
-
* not work as expected.
|
|
489
|
-
*/
|
|
415
|
+
codeBidiWarnings?: boolean;
|
|
490
416
|
codeBidiWarningTooltipEnabled?: boolean;
|
|
417
|
+
testId?: string;
|
|
491
418
|
}
|
|
492
419
|
|
|
493
|
-
|
|
420
|
+
// @public (undocumented)
|
|
421
|
+
export const getCodeStyles: (
|
|
494
422
|
globalTheme:
|
|
495
423
|
| Theme
|
|
496
424
|
| {
|
|
@@ -498,13 +426,17 @@ export declare const getCodeStyles: (
|
|
|
498
426
|
},
|
|
499
427
|
) => CSSObject;
|
|
500
428
|
|
|
501
|
-
|
|
429
|
+
// @public (undocumented)
|
|
430
|
+
export type Language = typeof SUPPORTED_LANGUAGES[number];
|
|
502
431
|
|
|
503
|
-
|
|
432
|
+
// @public (undocumented)
|
|
433
|
+
export type LanguageAlias = typeof SUPPORTED_LANGUAGES[number]['alias'][number];
|
|
504
434
|
|
|
505
|
-
|
|
435
|
+
// @public (undocumented)
|
|
436
|
+
type LanguageName = typeof SUPPORTED_LANGUAGES[number]['name'];
|
|
506
437
|
|
|
507
|
-
|
|
438
|
+
// @public (undocumented)
|
|
439
|
+
export const SUPPORTED_LANGUAGES: readonly [
|
|
508
440
|
{
|
|
509
441
|
readonly name: 'PHP';
|
|
510
442
|
readonly alias: readonly ['php', 'php3', 'php4', 'php5'];
|
|
@@ -904,7 +836,8 @@ export declare const SUPPORTED_LANGUAGES: readonly [
|
|
|
904
836
|
},
|
|
905
837
|
];
|
|
906
838
|
|
|
907
|
-
|
|
839
|
+
// @public (undocumented)
|
|
840
|
+
export type SupportedLanguages = LanguageName | LanguageAlias;
|
|
908
841
|
|
|
909
|
-
|
|
842
|
+
// (No @packageDocumentation comment for this package)
|
|
910
843
|
```
|