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