@atlaskit/code 14.6.3 → 14.6.5

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,17 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 14.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`59b808d6a46`](https://bitbucket.org/atlassian/atlassian-frontend/commits/59b808d6a46) - [ux] Improves the accessibility of the bidirectional character warnings.
8
+
9
+ ## 14.6.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
14
+
3
15
  ## 14.6.3
4
16
 
5
17
  ### Patch Changes
@@ -1,14 +1,17 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.Decorator = Decorator;
7
- var _react = require("@emotion/react");
8
+ var _react = require("react");
9
+ var _react2 = require("@emotion/react");
8
10
  var _colors = require("@atlaskit/theme/colors");
11
+ var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
9
12
  /** @jsx jsx */
10
13
 
11
- var decoration = (0, _react.css)({
14
+ var decoration = (0, _react2.css)({
12
15
  // Required as otherwise the following bidi characters cause the span
13
16
  // to not receive hover events.
14
17
  //
@@ -43,20 +46,19 @@ function Decorator(_ref) {
43
46
  children = _ref.children,
44
47
  testId = _ref.testId;
45
48
  var bidiCharacterCode = getBidiCharacterCode(bidiCharacter);
46
- return (0, _react.jsx)("span", {
47
- "aria-label": bidiCharacterCode
48
- }, (0, _react.jsx)("span", {
49
+ return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("span", {
49
50
  css: decoration,
50
51
  "data-testid": testId,
51
52
  "data-bidi-character-code": bidiCharacterCode
52
53
  // This is set to true so that the content is not read out by
53
54
  // screen readers as the content includes angle brackets for
54
55
  // visual decoration purposes.
55
- // We use a span with the aria-label set to the bidi character code
56
- // above this span for screen readers.
56
+ // We use a visually hidden `mark` element below for screen readers
57
57
  ,
58
58
  "aria-hidden": "true"
59
- }, children));
59
+ }, children), (0, _react2.jsx)(_visuallyHidden.default, {
60
+ testId: testId && "".concat(testId, "--visually-hidden")
61
+ }, (0, _react2.jsx)("mark", null, bidiCharacterCode)));
60
62
  }
61
63
  function getBidiCharacterCode(bidiCharacter) {
62
64
  var _bidiCharacter$codePo;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.6.3",
3
+ "version": "14.6.5",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,8 @@
1
1
  /** @jsx jsx */
2
-
2
+ import { Fragment } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { Y75 } from '@atlaskit/theme/colors';
5
+ import VisuallyHidden from '@atlaskit/visually-hidden';
5
6
  const decoration = css({
6
7
  // Required as otherwise the following bidi characters cause the span
7
8
  // to not receive hover events.
@@ -38,20 +39,19 @@ export function Decorator({
38
39
  testId
39
40
  }) {
40
41
  const bidiCharacterCode = getBidiCharacterCode(bidiCharacter);
41
- return jsx("span", {
42
- "aria-label": bidiCharacterCode
43
- }, jsx("span", {
42
+ return jsx(Fragment, null, jsx("span", {
44
43
  css: decoration,
45
44
  "data-testid": testId,
46
45
  "data-bidi-character-code": bidiCharacterCode
47
46
  // This is set to true so that the content is not read out by
48
47
  // screen readers as the content includes angle brackets for
49
48
  // visual decoration purposes.
50
- // We use a span with the aria-label set to the bidi character code
51
- // above this span for screen readers.
49
+ // We use a visually hidden `mark` element below for screen readers
52
50
  ,
53
51
  "aria-hidden": "true"
54
- }, children));
52
+ }, children), jsx(VisuallyHidden, {
53
+ testId: testId && `${testId}--visually-hidden`
54
+ }, jsx("mark", null, bidiCharacterCode)));
55
55
  }
56
56
  function getBidiCharacterCode(bidiCharacter) {
57
57
  var _bidiCharacter$codePo;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.6.3",
3
+ "version": "14.6.5",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,8 @@
1
1
  /** @jsx jsx */
2
-
2
+ import { Fragment } from 'react';
3
3
  import { css, jsx } from '@emotion/react';
4
4
  import { Y75 } from '@atlaskit/theme/colors';
5
+ import VisuallyHidden from '@atlaskit/visually-hidden';
5
6
  var decoration = css({
6
7
  // Required as otherwise the following bidi characters cause the span
7
8
  // to not receive hover events.
@@ -37,20 +38,19 @@ export function Decorator(_ref) {
37
38
  children = _ref.children,
38
39
  testId = _ref.testId;
39
40
  var bidiCharacterCode = getBidiCharacterCode(bidiCharacter);
40
- return jsx("span", {
41
- "aria-label": bidiCharacterCode
42
- }, jsx("span", {
41
+ return jsx(Fragment, null, jsx("span", {
43
42
  css: decoration,
44
43
  "data-testid": testId,
45
44
  "data-bidi-character-code": bidiCharacterCode
46
45
  // This is set to true so that the content is not read out by
47
46
  // screen readers as the content includes angle brackets for
48
47
  // visual decoration purposes.
49
- // We use a span with the aria-label set to the bidi character code
50
- // above this span for screen readers.
48
+ // We use a visually hidden `mark` element below for screen readers
51
49
  ,
52
50
  "aria-hidden": "true"
53
- }, children));
51
+ }, children), jsx(VisuallyHidden, {
52
+ testId: testId && "".concat(testId, "--visually-hidden")
53
+ }, jsx("mark", null, bidiCharacterCode)));
54
54
  }
55
55
  function getBidiCharacterCode(bidiCharacter) {
56
56
  var _bidiCharacter$codePo;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.6.3",
3
+ "version": "14.6.5",
4
4
  "sideEffects": false
5
5
  }
@@ -15,10 +15,10 @@ export interface CodeProps extends HTMLProps<HTMLElement> {
15
15
  */
16
16
  codeBidiWarnings?: boolean;
17
17
  /**
18
- Label for the bidi warning tooltip.
19
-
20
- Defaults to `Bidirectional characters change the order that text is rendered.
21
- This could be used to obscure malicious code.`
18
+ * Label for the bidi warning tooltip.
19
+ *
20
+ * Defaults to `Bidirectional characters change the order that text is rendered.
21
+ * This could be used to obscure malicious code.`
22
22
  */
23
23
  codeBidiWarningLabel?: string;
24
24
  /**
@@ -15,10 +15,10 @@ export interface CodeProps extends HTMLProps<HTMLElement> {
15
15
  */
16
16
  codeBidiWarnings?: boolean;
17
17
  /**
18
- Label for the bidi warning tooltip.
19
-
20
- Defaults to `Bidirectional characters change the order that text is rendered.
21
- This could be used to obscure malicious code.`
18
+ * Label for the bidi warning tooltip.
19
+ *
20
+ * Defaults to `Bidirectional characters change the order that text is rendered.
21
+ * This could be used to obscure malicious code.`
22
22
  */
23
23
  codeBidiWarningLabel?: string;
24
24
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "14.6.3",
3
+ "version": "14.6.5",
4
4
  "description": "Code highlights short strings of code snippets inline with body text.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,7 +24,7 @@
24
24
  "atlaskit:src": "src/index.tsx",
25
25
  "atlassian": {
26
26
  "team": "Design System Team",
27
- "releaseModel": "scheduled",
27
+ "releaseModel": "continuous",
28
28
  "website": {
29
29
  "name": "Code",
30
30
  "category": "Components"
@@ -36,8 +36,9 @@
36
36
  "dependencies": {
37
37
  "@atlaskit/codemod-utils": "^4.2.0",
38
38
  "@atlaskit/theme": "^12.5.0",
39
- "@atlaskit/tokens": "^1.4.0",
39
+ "@atlaskit/tokens": "^1.11.0",
40
40
  "@atlaskit/tooltip": "^17.8.0",
41
+ "@atlaskit/visually-hidden": "^1.2.0",
41
42
  "@babel/runtime": "^7.0.0",
42
43
  "@emotion/react": "^11.7.1",
43
44
  "memoize-one": "^6.0.0",
@@ -47,15 +48,10 @@
47
48
  "react": "^16.8.0"
48
49
  },
49
50
  "devDependencies": {
50
- "@atlaskit/button": "^16.7.0",
51
51
  "@atlaskit/docs": "^9.1.0",
52
- "@atlaskit/ds-explorations": "^2.1.0",
52
+ "@atlaskit/ds-explorations": "^2.2.0",
53
53
  "@atlaskit/ds-lib": "^2.2.0",
54
- "@atlaskit/form": "^8.11.0",
55
- "@atlaskit/primitives": "^0.9.0",
56
- "@atlaskit/section-message": "^6.4.0",
57
54
  "@atlaskit/ssr": "*",
58
- "@atlaskit/toggle": "^12.6.0",
59
55
  "@atlaskit/visual-regression": "*",
60
56
  "@atlaskit/webdriver-runner": "*",
61
57
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -63,6 +59,7 @@
63
59
  "@types/jscodeshift": "^0.11.0",
64
60
  "@types/refractor": "^3.0.2",
65
61
  "color-contrast-checker": "^1.5.0",
62
+ "jest-axe": "^4.0.0",
66
63
  "jscodeshift": "^0.13.0",
67
64
  "prismjs": "^1.25.0",
68
65
  "react-dom": "^16.8.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,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = _;
7
- function _(__) {
8
- return null;
9
- }
@@ -1,3 +0,0 @@
1
- export default function _(__) {
2
- return null;
3
- }
@@ -1,3 +0,0 @@
1
- export default function _(__) {
2
- return null;
3
- }
@@ -1,2 +0,0 @@
1
- import type { CodeProps } from '../types';
2
- export default function _(__: CodeProps): null;
@@ -1,2 +0,0 @@
1
- import type { CodeProps } from '../types';
2
- export default function _(__: CodeProps): null;