@atlaskit/code 15.1.0 → 15.1.1

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,11 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 15.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
3
9
  ## 15.1.0
4
10
 
5
11
  ### Minor Changes
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/bidi-warning/index.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/bidi-warning/index.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/bidi-warning/bidi-warning-decorator.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/bidi-warning/bidi-warning-decorator.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/block.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/block.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/constants.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/constants.d.ts"
12
12
  ]
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
package/dist/cjs/code.js CHANGED
@@ -22,8 +22,8 @@ var _styles = require("./internal/theme/styles");
22
22
  var _excluded = ["testId"],
23
23
  _excluded2 = ["children", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled"];
24
24
  /** @jsx jsx */
25
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
26
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
26
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
27
27
  /**
28
28
  * __Code__
29
29
  *
@@ -17,5 +17,5 @@ Object.defineProperty(exports, "getCodeStyles", {
17
17
  }
18
18
  });
19
19
  var _code = _interopRequireWildcard(require("../code"));
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
package/dist/cjs/index.js CHANGED
@@ -32,5 +32,5 @@ Object.defineProperty(exports, "getCodeStyles", {
32
32
  var _code = _interopRequireWildcard(require("./code"));
33
33
  var _codeBlock = _interopRequireDefault(require("./code-block"));
34
34
  var _constants = require("./constants");
35
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
36
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
35
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
36
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -10,8 +10,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
10
10
  var _memoizeOne = _interopRequireDefault(require("memoize-one"));
11
11
  var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
12
12
  var _constants = require("@atlaskit/theme/constants");
13
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  // Hardcoded values have been used due to the current color palette not having any
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -15,10 +15,10 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
  var _highlight = _interopRequireDefault(require("./lib/highlight"));
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
21
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
22
  // Uses the loader method of async bundling
23
23
  // Instantiates highligher as a singleton, loading refractor only once per page (refractor/prism are singleton modules)
24
24
  var generator = function generator(options) {
@@ -12,7 +12,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
12
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
15
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
15
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
16
16
  // This wrapper supports the async loading of refractor and language grammars. The internal Highlight is a memo() functional component as expected
17
17
  // eslint-disable-next-line @repo/internal/react/no-class-components
18
18
  var SyntaxHighlighter = exports.SyntaxHighlighter = /*#__PURE__*/function (_React$PureComponent) {
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
  import highlight from './lib/highlight';
12
12
  // Uses the loader method of async bundling
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React from 'react';
9
9
  // This wrapper supports the async loading of refractor and language grammars. The internal Highlight is a memo() functional component as expected
10
10
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -8,7 +8,7 @@ export default function CodeBlock(__: {
8
8
  */
9
9
  testId?: string;
10
10
  /**
11
- * Sets whether to display code line numbers or not. Defaults to `true`
11
+ * Sets whether to display code line numbers or not. Defaults to `true`.
12
12
  */
13
13
  showLineNumbers?: boolean;
14
14
  /**
@@ -19,7 +19,7 @@ export default function CodeBlock(__: {
19
19
  When set to `text` will not perform highlighting. If unsupported language
20
20
  provided - code will be treated as "text" with no highlighting.
21
21
 
22
- Defaults to `text`
22
+ Defaults to `text`.
23
23
  */
24
24
  language?: string;
25
25
  /**
@@ -41,7 +41,7 @@ export default function CodeBlock(__: {
41
41
  highlightedEndText?: string;
42
42
  /**
43
43
  * Sets whether long lines will create a horizontally scrolling container.
44
- * When set to `true`, these lines will visually wrap instead. Defaults to `false`
44
+ * When set to `true`, these lines will visually wrap instead. Defaults to `false`.
45
45
  */
46
46
  shouldWrapLongLines?: boolean;
47
47
  }): null;
@@ -8,7 +8,7 @@ export default function CodeBlock(__: {
8
8
  */
9
9
  testId?: string;
10
10
  /**
11
- * Sets whether to display code line numbers or not. Defaults to `true`
11
+ * Sets whether to display code line numbers or not. Defaults to `true`.
12
12
  */
13
13
  showLineNumbers?: boolean;
14
14
  /**
@@ -19,7 +19,7 @@ export default function CodeBlock(__: {
19
19
  When set to `text` will not perform highlighting. If unsupported language
20
20
  provided - code will be treated as "text" with no highlighting.
21
21
 
22
- Defaults to `text`
22
+ Defaults to `text`.
23
23
  */
24
24
  language?: string;
25
25
  /**
@@ -41,7 +41,7 @@ export default function CodeBlock(__: {
41
41
  highlightedEndText?: string;
42
42
  /**
43
43
  * Sets whether long lines will create a horizontally scrolling container.
44
- * When set to `true`, these lines will visually wrap instead. Defaults to `false`
44
+ * When set to `true`, these lines will visually wrap instead. Defaults to `false`.
45
45
  */
46
46
  shouldWrapLongLines?: boolean;
47
47
  }): null;
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/inline.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/inline.d.ts"
12
12
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "15.1.0",
3
+ "version": "15.1.1",
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,8 +28,8 @@
28
28
  "dependencies": {
29
29
  "@atlaskit/codemod-utils": "^4.2.0",
30
30
  "@atlaskit/theme": "^12.6.0",
31
- "@atlaskit/tokens": "^1.29.0",
32
- "@atlaskit/tooltip": "^18.0.0",
31
+ "@atlaskit/tokens": "^1.42.0",
32
+ "@atlaskit/tooltip": "^18.1.0",
33
33
  "@atlaskit/visually-hidden": "^1.2.0",
34
34
  "@babel/runtime": "^7.0.0",
35
35
  "@emotion/react": "^11.7.1",
@@ -41,11 +41,11 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@af/accessibility-testing": "*",
44
+ "@af/integration-testing": "*",
44
45
  "@af/visual-regression": "*",
45
46
  "@atlaskit/ds-lib": "^2.2.0",
46
47
  "@atlaskit/ssr": "*",
47
48
  "@atlaskit/visual-regression": "*",
48
- "@atlaskit/webdriver-runner": "*",
49
49
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
50
50
  "@testing-library/react": "^12.1.5",
51
51
  "@types/jscodeshift": "^0.11.0",
@@ -54,7 +54,7 @@
54
54
  "jscodeshift": "^0.13.0",
55
55
  "prismjs": "^1.25.0",
56
56
  "react-dom": "^16.8.0",
57
- "typescript": "~4.9.5"
57
+ "typescript": "~5.4.2"
58
58
  },
59
59
  "keywords": [
60
60
  "atlaskit",
@@ -106,4 +106,4 @@
106
106
  },
107
107
  "homepage": "https://atlassian.design/components/code/",
108
108
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
109
- }
109
+ }
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/types.d.ts"
12
12
  ]
@@ -1,389 +0,0 @@
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
-
15
- // @public
16
- 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" | "translate" | "type" | "typeof" | "unselectable" | "useMap" | "value" | "vocab" | "width" | "wmode" | "wrap"> & React_2.RefAttributes<HTMLElement>>>;
17
-
18
- // @public
19
- export const CodeBlock: NamedExoticComponent<CodeBlockProps>;
20
-
21
- // @public (undocumented)
22
- export interface CodeBlockProps {
23
- codeBidiWarningLabel?: string;
24
- codeBidiWarnings?: boolean;
25
- codeBidiWarningTooltipEnabled?: boolean;
26
- highlight?: string;
27
- highlightedEndText?: string;
28
- highlightedStartText?: string;
29
- language?: SupportedLanguages;
30
- shouldWrapLongLines?: boolean;
31
- showLineNumbers?: boolean;
32
- testId?: string;
33
- text: string;
34
- }
35
-
36
- // @public (undocumented)
37
- export interface CodeProps extends HTMLProps<HTMLElement> {
38
- children?: ReactNode;
39
- codeBidiWarningLabel?: string;
40
- codeBidiWarnings?: boolean;
41
- codeBidiWarningTooltipEnabled?: boolean;
42
- testId?: string;
43
- }
44
-
45
- // @public (undocumented)
46
- export const getCodeStyles: () => CSSObject;
47
-
48
- // @public (undocumented)
49
- export type Language = (typeof SUPPORTED_LANGUAGES)[number];
50
-
51
- // @public (undocumented)
52
- export type LanguageAlias = (typeof SUPPORTED_LANGUAGES)[number]['alias'][number];
53
-
54
- // @public (undocumented)
55
- type LanguageName = (typeof SUPPORTED_LANGUAGES)[number]['name'];
56
-
57
- // @public (undocumented)
58
- export const SUPPORTED_LANGUAGES: readonly [{
59
- readonly name: "PHP";
60
- readonly alias: readonly ["php", "php3", "php4", "php5"];
61
- readonly value: "php";
62
- }, {
63
- readonly name: "Java";
64
- readonly alias: readonly ["java"];
65
- readonly value: "java";
66
- }, {
67
- readonly name: "CSharp";
68
- readonly alias: readonly ["csharp", "c#"];
69
- readonly value: "cs";
70
- }, {
71
- readonly name: "Python";
72
- readonly alias: readonly ["python", "py"];
73
- readonly value: "python";
74
- }, {
75
- readonly name: "JavaScript";
76
- readonly alias: readonly ["javascript", "js"];
77
- readonly value: "javascript";
78
- }, {
79
- readonly name: "Html";
80
- readonly alias: readonly ["html"];
81
- readonly value: "xml";
82
- }, {
83
- readonly name: "C++";
84
- readonly alias: readonly ["c++", "cpp", "clike"];
85
- readonly value: "cpp";
86
- }, {
87
- readonly name: "Ruby";
88
- readonly alias: readonly ["ruby", "rb", "duby"];
89
- readonly value: "ruby";
90
- }, {
91
- readonly name: "Objective-C";
92
- readonly alias: readonly ["objective-c", "objectivec", "obj-c", "objc"];
93
- readonly value: "objectivec";
94
- }, {
95
- readonly name: "C";
96
- readonly alias: readonly ["c"];
97
- readonly value: "cpp";
98
- }, {
99
- readonly name: "Swift";
100
- readonly alias: readonly ["swift"];
101
- readonly value: "swift";
102
- }, {
103
- readonly name: "TeX";
104
- readonly alias: readonly ["tex", "latex"];
105
- readonly value: "tex";
106
- }, {
107
- readonly name: "Shell";
108
- readonly alias: readonly ["shell", "bash", "sh", "ksh", "zsh"];
109
- readonly value: "shell";
110
- }, {
111
- readonly name: "Scala";
112
- readonly alias: readonly ["scala"];
113
- readonly value: "scala";
114
- }, {
115
- readonly name: "Go";
116
- readonly alias: readonly ["go"];
117
- readonly value: "go";
118
- }, {
119
- readonly name: "ActionScript";
120
- readonly alias: readonly ["actionscript", "actionscript3", "as"];
121
- readonly value: "actionscript";
122
- }, {
123
- readonly name: "ColdFusion";
124
- readonly alias: readonly ["coldfusion"];
125
- readonly value: "xml";
126
- }, {
127
- readonly name: "JavaFX";
128
- readonly alias: readonly ["javafx", "jfx"];
129
- readonly value: "java";
130
- }, {
131
- readonly name: "VbNet";
132
- readonly alias: readonly ["vbnet", "vb.net", "vfp", "clipper", "xbase"];
133
- readonly value: "vbnet";
134
- }, {
135
- readonly name: "JSON";
136
- readonly alias: readonly ["json"];
137
- readonly value: "json";
138
- }, {
139
- readonly name: "MATLAB";
140
- readonly alias: readonly ["matlab"];
141
- readonly value: "matlab";
142
- }, {
143
- readonly name: "Groovy";
144
- readonly alias: readonly ["groovy"];
145
- readonly value: "groovy";
146
- }, {
147
- readonly name: "SQL";
148
- readonly alias: readonly ["sql", "postgresql", "postgres", "plpgsql", "psql", "postgresql-console", "postgres-console", "tsql", "t-sql", "mysql", "sqlite"];
149
- readonly value: "sql";
150
- }, {
151
- readonly name: "R";
152
- readonly alias: readonly ["r"];
153
- readonly value: "r";
154
- }, {
155
- readonly name: "Perl";
156
- readonly alias: readonly ["perl", "pl"];
157
- readonly value: "perl";
158
- }, {
159
- readonly name: "Lua";
160
- readonly alias: readonly ["lua"];
161
- readonly value: "lua";
162
- }, {
163
- readonly name: "Pascal";
164
- readonly alias: readonly ["pas", "pascal", "objectpascal", "delphi"];
165
- readonly value: "pascal";
166
- }, {
167
- readonly name: "XML";
168
- readonly alias: readonly ["xml"];
169
- readonly value: "xml";
170
- }, {
171
- readonly name: "TypeScript";
172
- readonly alias: readonly ["typescript", "ts"];
173
- readonly value: "typescript";
174
- }, {
175
- readonly name: "CoffeeScript";
176
- readonly alias: readonly ["coffeescript", "coffee-script", "coffee"];
177
- readonly value: "coffeescript";
178
- }, {
179
- readonly name: "Haskell";
180
- readonly alias: readonly ["haskell", "hs"];
181
- readonly value: "haskell";
182
- }, {
183
- readonly name: "Puppet";
184
- readonly alias: readonly ["puppet"];
185
- readonly value: "puppet";
186
- }, {
187
- readonly name: "Arduino";
188
- readonly alias: readonly ["arduino"];
189
- readonly value: "arduino";
190
- }, {
191
- readonly name: "Fortran";
192
- readonly alias: readonly ["fortran"];
193
- readonly value: "fortran";
194
- }, {
195
- readonly name: "Erlang";
196
- readonly alias: readonly ["erlang", "erl"];
197
- readonly value: "erlang";
198
- }, {
199
- readonly name: "PowerShell";
200
- readonly alias: readonly ["powershell", "posh", "ps1", "psm1"];
201
- readonly value: "powershell";
202
- }, {
203
- readonly name: "Haxe";
204
- readonly alias: readonly ["haxe", "hx", "hxsl"];
205
- readonly value: "haxe";
206
- }, {
207
- readonly name: "Elixir";
208
- readonly alias: readonly ["elixir", "ex", "exs"];
209
- readonly value: "elixir";
210
- }, {
211
- readonly name: "Verilog";
212
- readonly alias: readonly ["verilog", "v"];
213
- readonly value: "verilog";
214
- }, {
215
- readonly name: "Rust";
216
- readonly alias: readonly ["rust"];
217
- readonly value: "rust";
218
- }, {
219
- readonly name: "VHDL";
220
- readonly alias: readonly ["vhdl"];
221
- readonly value: "vhdl";
222
- }, {
223
- readonly name: "Sass";
224
- readonly alias: readonly ["sass"];
225
- readonly value: "less";
226
- }, {
227
- readonly name: "OCaml";
228
- readonly alias: readonly ["ocaml"];
229
- readonly value: "ocaml";
230
- }, {
231
- readonly name: "Dart";
232
- readonly alias: readonly ["dart"];
233
- readonly value: "dart";
234
- }, {
235
- readonly name: "CSS";
236
- readonly alias: readonly ["css"];
237
- readonly value: "css";
238
- }, {
239
- readonly name: "reStructuredText";
240
- readonly alias: readonly ["restructuredtext", "rst", "rest"];
241
- readonly value: "rest";
242
- }, {
243
- readonly name: "Kotlin";
244
- readonly alias: readonly ["kotlin"];
245
- readonly value: "kotlin";
246
- }, {
247
- readonly name: "D";
248
- readonly alias: readonly ["d"];
249
- readonly value: "d";
250
- }, {
251
- readonly name: "Octave";
252
- readonly alias: readonly ["octave"];
253
- readonly value: "matlab";
254
- }, {
255
- readonly name: "QML";
256
- readonly alias: readonly ["qbs", "qml"];
257
- readonly value: "qml";
258
- }, {
259
- readonly name: "Prolog";
260
- readonly alias: readonly ["prolog"];
261
- readonly value: "prolog";
262
- }, {
263
- readonly name: "FoxPro";
264
- readonly alias: readonly ["foxpro", "purebasic"];
265
- readonly value: "purebasic";
266
- }, {
267
- readonly name: "Scheme";
268
- readonly alias: readonly ["scheme", "scm"];
269
- readonly value: "scheme";
270
- }, {
271
- readonly name: "CUDA";
272
- readonly alias: readonly ["cuda", "cu"];
273
- readonly value: "cpp";
274
- }, {
275
- readonly name: "Julia";
276
- readonly alias: readonly ["julia", "jl"];
277
- readonly value: "julia";
278
- }, {
279
- readonly name: "Racket";
280
- readonly alias: readonly ["racket", "rkt"];
281
- readonly value: "lisp";
282
- }, {
283
- readonly name: "Ada";
284
- readonly alias: readonly ["ada", "ada95", "ada2005"];
285
- readonly value: "ada";
286
- }, {
287
- readonly name: "Tcl";
288
- readonly alias: readonly ["tcl"];
289
- readonly value: "tcl";
290
- }, {
291
- readonly name: "Mathematica";
292
- readonly alias: readonly ["mathematica", "mma", "nb"];
293
- readonly value: "mathematica";
294
- }, {
295
- readonly name: "Autoit";
296
- readonly alias: readonly ["autoit"];
297
- readonly value: "autoit";
298
- }, {
299
- readonly name: "StandardML";
300
- readonly alias: readonly ["standardmL", "sml", "standardml"];
301
- readonly value: "sml";
302
- }, {
303
- readonly name: "Objective-J";
304
- readonly alias: readonly ["objective-j", "objectivej", "obj-j", "objj"];
305
- readonly value: "objectivec";
306
- }, {
307
- readonly name: "Smalltalk";
308
- readonly alias: readonly ["smalltalk", "squeak", "st"];
309
- readonly value: "smalltalk";
310
- }, {
311
- readonly name: "Vala";
312
- readonly alias: readonly ["vala", "vapi"];
313
- readonly value: "vala";
314
- }, {
315
- readonly name: "ABAP";
316
- readonly alias: readonly ["abap"];
317
- readonly value: "sql";
318
- }, {
319
- readonly name: "LiveScript";
320
- readonly alias: readonly ["livescript", "live-script"];
321
- readonly value: "livescript";
322
- }, {
323
- readonly name: "XQuery";
324
- readonly alias: readonly ["xquery", "xqy", "xq", "xql", "xqm"];
325
- readonly value: "xquery";
326
- }, {
327
- readonly name: "PlainText";
328
- readonly alias: readonly ["text", "plaintext"];
329
- readonly value: "text";
330
- }, {
331
- readonly name: "Yaml";
332
- readonly alias: readonly ["yaml", "yml"];
333
- readonly value: "yaml";
334
- }, {
335
- readonly name: "GraphQL";
336
- readonly alias: readonly ["graphql"];
337
- readonly value: "graphql";
338
- }, {
339
- readonly name: "AppleScript";
340
- readonly alias: readonly ["applescript"];
341
- readonly value: "applescript";
342
- }, {
343
- readonly name: "Clojure";
344
- readonly alias: readonly ["clojure"];
345
- readonly value: "clojure";
346
- }, {
347
- readonly name: "Diff";
348
- readonly alias: readonly ["diff"];
349
- readonly value: "diff";
350
- }, {
351
- readonly name: "VisualBasic";
352
- readonly alias: readonly ["visualbasic"];
353
- readonly value: "visual-basic";
354
- }, {
355
- readonly name: "JSX";
356
- readonly alias: readonly ["jsx"];
357
- readonly value: "jsx";
358
- }, {
359
- readonly name: "TSX";
360
- readonly alias: readonly ["tsx"];
361
- readonly value: "tsx";
362
- }, {
363
- readonly name: "SplunkSPL";
364
- readonly alias: readonly ["splunk-spl"];
365
- readonly value: "splunk-spl";
366
- }, {
367
- readonly name: "Dockerfile";
368
- readonly alias: readonly ["docker", "dockerfile"];
369
- readonly value: "dockerfile";
370
- }, {
371
- readonly name: "HCL";
372
- readonly alias: readonly ["hcl", "terraform"];
373
- readonly value: "hcl";
374
- }, {
375
- readonly name: "NGINX";
376
- readonly alias: readonly ["nginx"];
377
- readonly value: "nginx";
378
- }, {
379
- readonly name: "Protocol Buffers";
380
- readonly alias: readonly ["protobuf", "proto"];
381
- readonly value: "protobuf";
382
- }];
383
-
384
- // @public (undocumented)
385
- export type SupportedLanguages = LanguageAlias | LanguageName;
386
-
387
- // (No @packageDocumentation comment for this package)
388
-
389
- ```