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