@atlaskit/code 14.6.6 → 14.6.7

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 14.6.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
8
+ - Updated dependencies
9
+
3
10
  ## 14.6.6
4
11
 
5
12
  ### Patch Changes
@@ -11,7 +11,7 @@ import { token } from '@atlaskit/tokens';
11
11
 
12
12
  // Applies styles to nested links within banner messages.
13
13
  const nestedLinkStyles = css({
14
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
14
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
15
15
  'a, a:visited, a:hover, a:focus, a:active': {
16
16
  color: 'currentColor',
17
17
  textDecoration: 'underline',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.6.6",
3
+ "version": "14.6.7",
4
4
  "description": "Code highlights short strings of code snippets inline with body text.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@atlaskit/codemod-utils": "^4.2.0",
30
30
  "@atlaskit/theme": "^12.5.0",
31
- "@atlaskit/tokens": "^1.11.0",
31
+ "@atlaskit/tokens": "^1.15.0",
32
32
  "@atlaskit/tooltip": "^17.8.0",
33
33
  "@atlaskit/visually-hidden": "^1.2.0",
34
34
  "@babel/runtime": "^7.0.0",
@@ -0,0 +1,376 @@
1
+ ## API Report File for "@atlaskit/code"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import type { CSSObject } from '@emotion/react';
10
+ import type { HTMLProps } from 'react';
11
+ import { NamedExoticComponent } from 'react';
12
+ import { default as React_2 } from 'react';
13
+ import type { ReactNode } from 'react';
14
+ import type { Theme } from '@atlaskit/theme/types';
15
+
16
+ // @public
17
+ export const Code: React_2.MemoExoticComponent<React_2.ForwardRefExoticComponent<Pick<CodeProps, "about" | "accept" | "acceptCharset" | "accessKey" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "as" | "async" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "autoPlay" | "autoSave" | "capture" | "cellPadding" | "cellSpacing" | "challenge" | "charSet" | "checked" | "children" | "cite" | "classID" | "className" | "codeBidiWarningLabel" | "codeBidiWarningTooltipEnabled" | "codeBidiWarnings" | "colSpan" | "color" | "cols" | "content" | "contentEditable" | "contextMenu" | "controls" | "coords" | "crossOrigin" | "dangerouslySetInnerHTML" | "data" | "datatype" | "dateTime" | "default" | "defaultChecked" | "defaultValue" | "defer" | "dir" | "disabled" | "download" | "draggable" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "hidden" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "id" | "inlist" | "inputMode" | "integrity" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "keyParams" | "keyType" | "kind" | "label" | "lang" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "prefix" | "preload" | "property" | "radioGroup" | "readOnly" | "rel" | "required" | "resource" | "results" | "reversed" | "role" | "rowSpan" | "rows" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "security" | "selected" | "shape" | "size" | "sizes" | "slot" | "span" | "spellCheck" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "style" | "summary" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "target" | "testId" | "title" | "type" | "typeof" | "unselectable" | "useMap" | "value" | "vocab" | "width" | "wmode" | "wrap"> & React_2.RefAttributes<HTMLElement>>>;
18
+
19
+ // @public
20
+ export const CodeBlock: NamedExoticComponent<CodeBlockProps>;
21
+
22
+ // @public (undocumented)
23
+ export interface CodeBlockProps {
24
+ codeBidiWarningLabel?: string;
25
+ codeBidiWarnings?: boolean;
26
+ codeBidiWarningTooltipEnabled?: boolean;
27
+ highlight?: string;
28
+ highlightedEndText?: string;
29
+ highlightedStartText?: string;
30
+ language?: SupportedLanguages;
31
+ shouldWrapLongLines?: boolean;
32
+ showLineNumbers?: boolean;
33
+ testId?: string;
34
+ text: string;
35
+ }
36
+
37
+ // @public (undocumented)
38
+ export interface CodeProps extends HTMLProps<HTMLElement> {
39
+ children?: ReactNode;
40
+ codeBidiWarningLabel?: string;
41
+ codeBidiWarnings?: boolean;
42
+ codeBidiWarningTooltipEnabled?: boolean;
43
+ testId?: string;
44
+ }
45
+
46
+ // @public (undocumented)
47
+ export const getCodeStyles: (globalTheme: Theme | {
48
+ theme: Theme;
49
+ }) => CSSObject;
50
+
51
+ // @public (undocumented)
52
+ export type Language = (typeof SUPPORTED_LANGUAGES)[number];
53
+
54
+ // @public (undocumented)
55
+ export type LanguageAlias = (typeof SUPPORTED_LANGUAGES)[number]['alias'][number];
56
+
57
+ // @public (undocumented)
58
+ type LanguageName = (typeof SUPPORTED_LANGUAGES)[number]['name'];
59
+
60
+ // @public (undocumented)
61
+ export const SUPPORTED_LANGUAGES: readonly [{
62
+ readonly name: "PHP";
63
+ readonly alias: readonly ["php", "php3", "php4", "php5"];
64
+ readonly value: "php";
65
+ }, {
66
+ readonly name: "Java";
67
+ readonly alias: readonly ["java"];
68
+ readonly value: "java";
69
+ }, {
70
+ readonly name: "CSharp";
71
+ readonly alias: readonly ["csharp", "c#"];
72
+ readonly value: "cs";
73
+ }, {
74
+ readonly name: "Python";
75
+ readonly alias: readonly ["python", "py"];
76
+ readonly value: "python";
77
+ }, {
78
+ readonly name: "JavaScript";
79
+ readonly alias: readonly ["javascript", "js"];
80
+ readonly value: "javascript";
81
+ }, {
82
+ readonly name: "Html";
83
+ readonly alias: readonly ["html"];
84
+ readonly value: "xml";
85
+ }, {
86
+ readonly name: "C++";
87
+ readonly alias: readonly ["c++", "cpp", "clike"];
88
+ readonly value: "cpp";
89
+ }, {
90
+ readonly name: "Ruby";
91
+ readonly alias: readonly ["ruby", "rb", "duby"];
92
+ readonly value: "ruby";
93
+ }, {
94
+ readonly name: "Objective-C";
95
+ readonly alias: readonly ["objective-c", "objectivec", "obj-c", "objc"];
96
+ readonly value: "objectivec";
97
+ }, {
98
+ readonly name: "C";
99
+ readonly alias: readonly ["c"];
100
+ readonly value: "cpp";
101
+ }, {
102
+ readonly name: "Swift";
103
+ readonly alias: readonly ["swift"];
104
+ readonly value: "swift";
105
+ }, {
106
+ readonly name: "TeX";
107
+ readonly alias: readonly ["tex", "latex"];
108
+ readonly value: "tex";
109
+ }, {
110
+ readonly name: "Shell";
111
+ readonly alias: readonly ["shell", "bash", "sh", "ksh", "zsh"];
112
+ readonly value: "shell";
113
+ }, {
114
+ readonly name: "Scala";
115
+ readonly alias: readonly ["scala"];
116
+ readonly value: "scala";
117
+ }, {
118
+ readonly name: "Go";
119
+ readonly alias: readonly ["go"];
120
+ readonly value: "go";
121
+ }, {
122
+ readonly name: "ActionScript";
123
+ readonly alias: readonly ["actionscript", "actionscript3", "as"];
124
+ readonly value: "actionscript";
125
+ }, {
126
+ readonly name: "ColdFusion";
127
+ readonly alias: readonly ["coldfusion"];
128
+ readonly value: "xml";
129
+ }, {
130
+ readonly name: "JavaFX";
131
+ readonly alias: readonly ["javafx", "jfx"];
132
+ readonly value: "java";
133
+ }, {
134
+ readonly name: "VbNet";
135
+ readonly alias: readonly ["vbnet", "vb.net", "vfp", "clipper", "xbase"];
136
+ readonly value: "vbnet";
137
+ }, {
138
+ readonly name: "JSON";
139
+ readonly alias: readonly ["json"];
140
+ readonly value: "json";
141
+ }, {
142
+ readonly name: "MATLAB";
143
+ readonly alias: readonly ["matlab"];
144
+ readonly value: "matlab";
145
+ }, {
146
+ readonly name: "Groovy";
147
+ readonly alias: readonly ["groovy"];
148
+ readonly value: "groovy";
149
+ }, {
150
+ readonly name: "SQL";
151
+ readonly alias: readonly ["sql", "postgresql", "postgres", "plpgsql", "psql", "postgresql-console", "postgres-console", "tsql", "t-sql", "mysql", "sqlite"];
152
+ readonly value: "sql";
153
+ }, {
154
+ readonly name: "R";
155
+ readonly alias: readonly ["r"];
156
+ readonly value: "r";
157
+ }, {
158
+ readonly name: "Perl";
159
+ readonly alias: readonly ["perl", "pl"];
160
+ readonly value: "perl";
161
+ }, {
162
+ readonly name: "Lua";
163
+ readonly alias: readonly ["lua"];
164
+ readonly value: "lua";
165
+ }, {
166
+ readonly name: "Pascal";
167
+ readonly alias: readonly ["pas", "pascal", "objectpascal", "delphi"];
168
+ readonly value: "pascal";
169
+ }, {
170
+ readonly name: "XML";
171
+ readonly alias: readonly ["xml"];
172
+ readonly value: "xml";
173
+ }, {
174
+ readonly name: "TypeScript";
175
+ readonly alias: readonly ["typescript", "ts"];
176
+ readonly value: "typescript";
177
+ }, {
178
+ readonly name: "CoffeeScript";
179
+ readonly alias: readonly ["coffeescript", "coffee-script", "coffee"];
180
+ readonly value: "coffeescript";
181
+ }, {
182
+ readonly name: "Haskell";
183
+ readonly alias: readonly ["haskell", "hs"];
184
+ readonly value: "haskell";
185
+ }, {
186
+ readonly name: "Puppet";
187
+ readonly alias: readonly ["puppet"];
188
+ readonly value: "puppet";
189
+ }, {
190
+ readonly name: "Arduino";
191
+ readonly alias: readonly ["arduino"];
192
+ readonly value: "arduino";
193
+ }, {
194
+ readonly name: "Fortran";
195
+ readonly alias: readonly ["fortran"];
196
+ readonly value: "fortran";
197
+ }, {
198
+ readonly name: "Erlang";
199
+ readonly alias: readonly ["erlang", "erl"];
200
+ readonly value: "erlang";
201
+ }, {
202
+ readonly name: "PowerShell";
203
+ readonly alias: readonly ["powershell", "posh", "ps1", "psm1"];
204
+ readonly value: "powershell";
205
+ }, {
206
+ readonly name: "Haxe";
207
+ readonly alias: readonly ["haxe", "hx", "hxsl"];
208
+ readonly value: "haxe";
209
+ }, {
210
+ readonly name: "Elixir";
211
+ readonly alias: readonly ["elixir", "ex", "exs"];
212
+ readonly value: "elixir";
213
+ }, {
214
+ readonly name: "Verilog";
215
+ readonly alias: readonly ["verilog", "v"];
216
+ readonly value: "verilog";
217
+ }, {
218
+ readonly name: "Rust";
219
+ readonly alias: readonly ["rust"];
220
+ readonly value: "rust";
221
+ }, {
222
+ readonly name: "VHDL";
223
+ readonly alias: readonly ["vhdl"];
224
+ readonly value: "vhdl";
225
+ }, {
226
+ readonly name: "Sass";
227
+ readonly alias: readonly ["sass"];
228
+ readonly value: "less";
229
+ }, {
230
+ readonly name: "OCaml";
231
+ readonly alias: readonly ["ocaml"];
232
+ readonly value: "ocaml";
233
+ }, {
234
+ readonly name: "Dart";
235
+ readonly alias: readonly ["dart"];
236
+ readonly value: "dart";
237
+ }, {
238
+ readonly name: "CSS";
239
+ readonly alias: readonly ["css"];
240
+ readonly value: "css";
241
+ }, {
242
+ readonly name: "reStructuredText";
243
+ readonly alias: readonly ["restructuredtext", "rst", "rest"];
244
+ readonly value: "rest";
245
+ }, {
246
+ readonly name: "Kotlin";
247
+ readonly alias: readonly ["kotlin"];
248
+ readonly value: "kotlin";
249
+ }, {
250
+ readonly name: "D";
251
+ readonly alias: readonly ["d"];
252
+ readonly value: "d";
253
+ }, {
254
+ readonly name: "Octave";
255
+ readonly alias: readonly ["octave"];
256
+ readonly value: "matlab";
257
+ }, {
258
+ readonly name: "QML";
259
+ readonly alias: readonly ["qbs", "qml"];
260
+ readonly value: "qml";
261
+ }, {
262
+ readonly name: "Prolog";
263
+ readonly alias: readonly ["prolog"];
264
+ readonly value: "prolog";
265
+ }, {
266
+ readonly name: "FoxPro";
267
+ readonly alias: readonly ["foxpro", "purebasic"];
268
+ readonly value: "purebasic";
269
+ }, {
270
+ readonly name: "Scheme";
271
+ readonly alias: readonly ["scheme", "scm"];
272
+ readonly value: "scheme";
273
+ }, {
274
+ readonly name: "CUDA";
275
+ readonly alias: readonly ["cuda", "cu"];
276
+ readonly value: "cpp";
277
+ }, {
278
+ readonly name: "Julia";
279
+ readonly alias: readonly ["julia", "jl"];
280
+ readonly value: "julia";
281
+ }, {
282
+ readonly name: "Racket";
283
+ readonly alias: readonly ["racket", "rkt"];
284
+ readonly value: "lisp";
285
+ }, {
286
+ readonly name: "Ada";
287
+ readonly alias: readonly ["ada", "ada95", "ada2005"];
288
+ readonly value: "ada";
289
+ }, {
290
+ readonly name: "Tcl";
291
+ readonly alias: readonly ["tcl"];
292
+ readonly value: "tcl";
293
+ }, {
294
+ readonly name: "Mathematica";
295
+ readonly alias: readonly ["mathematica", "mma", "nb"];
296
+ readonly value: "mathematica";
297
+ }, {
298
+ readonly name: "Autoit";
299
+ readonly alias: readonly ["autoit"];
300
+ readonly value: "autoit";
301
+ }, {
302
+ readonly name: "StandardML";
303
+ readonly alias: readonly ["standardmL", "sml", "standardml"];
304
+ readonly value: "sml";
305
+ }, {
306
+ readonly name: "Objective-J";
307
+ readonly alias: readonly ["objective-j", "objectivej", "obj-j", "objj"];
308
+ readonly value: "objectivec";
309
+ }, {
310
+ readonly name: "Smalltalk";
311
+ readonly alias: readonly ["smalltalk", "squeak", "st"];
312
+ readonly value: "smalltalk";
313
+ }, {
314
+ readonly name: "Vala";
315
+ readonly alias: readonly ["vala", "vapi"];
316
+ readonly value: "vala";
317
+ }, {
318
+ readonly name: "ABAP";
319
+ readonly alias: readonly ["abap"];
320
+ readonly value: "sql";
321
+ }, {
322
+ readonly name: "LiveScript";
323
+ readonly alias: readonly ["livescript", "live-script"];
324
+ readonly value: "livescript";
325
+ }, {
326
+ readonly name: "XQuery";
327
+ readonly alias: readonly ["xquery", "xqy", "xq", "xql", "xqm"];
328
+ readonly value: "xquery";
329
+ }, {
330
+ readonly name: "PlainText";
331
+ readonly alias: readonly ["text", "plaintext"];
332
+ readonly value: "text";
333
+ }, {
334
+ readonly name: "Yaml";
335
+ readonly alias: readonly ["yaml", "yml"];
336
+ readonly value: "yaml";
337
+ }, {
338
+ readonly name: "GraphQL";
339
+ readonly alias: readonly ["graphql"];
340
+ readonly value: "graphql";
341
+ }, {
342
+ readonly name: "AppleScript";
343
+ readonly alias: readonly ["applescript"];
344
+ readonly value: "applescript";
345
+ }, {
346
+ readonly name: "Clojure";
347
+ readonly alias: readonly ["clojure"];
348
+ readonly value: "clojure";
349
+ }, {
350
+ readonly name: "Diff";
351
+ readonly alias: readonly ["diff"];
352
+ readonly value: "diff";
353
+ }, {
354
+ readonly name: "VisualBasic";
355
+ readonly alias: readonly ["visualbasic"];
356
+ readonly value: "visual-basic";
357
+ }, {
358
+ readonly name: "JSX";
359
+ readonly alias: readonly ["jsx"];
360
+ readonly value: "jsx";
361
+ }, {
362
+ readonly name: "TSX";
363
+ readonly alias: readonly ["tsx"];
364
+ readonly value: "tsx";
365
+ }, {
366
+ readonly name: "SplunkSPL";
367
+ readonly alias: readonly ["splunk-spl"];
368
+ readonly value: "splunk-spl";
369
+ }];
370
+
371
+ // @public (undocumented)
372
+ export type SupportedLanguages = LanguageAlias | LanguageName;
373
+
374
+ // (No @packageDocumentation comment for this package)
375
+
376
+ ```
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/code",
3
- "version": "14.6.6",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/code",
3
- "version": "14.6.6",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/code",
3
- "version": "14.6.6",
4
- "sideEffects": false
5
- }