@atlaskit/code 14.5.3 → 14.6.0
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 +16 -0
- package/dist/cjs/bidi-warning/bidi-warning-decorator.js +1 -1
- package/dist/cjs/code.js +1 -0
- package/dist/cjs/syntax-highlighter/async.js +2 -1
- package/dist/cjs/syntax-highlighter/types.js +5 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/syntax-highlighter/types.js +6 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/bidi-warning/bidi-warning-decorator.js +1 -1
- package/dist/esm/syntax-highlighter/types.js +6 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/constants.d.ts +3 -3
- package/package.json +13 -13
- package/report.api.md +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 14.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 14.5.4
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
18
|
+
|
|
3
19
|
## 14.5.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ exports.default = codeBidiWarningDecorator;
|
|
|
9
9
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
10
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
11
11
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
13
|
var bidiCharacterRegex = /[\u202A-\u202E\u2066-\u2069]/g;
|
|
14
14
|
|
|
15
15
|
/**
|
package/dist/cjs/code.js
CHANGED
|
@@ -22,6 +22,7 @@ var _bidiWarningDecorator = _interopRequireDefault(require("./bidi-warning/bidi-
|
|
|
22
22
|
var _styles = require("./internal/theme/styles");
|
|
23
23
|
var _excluded = ["testId"],
|
|
24
24
|
_excluded2 = ["children", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled"];
|
|
25
|
+
/** @jsx jsx */
|
|
25
26
|
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
27
|
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; }
|
|
27
28
|
/**
|
|
@@ -78,7 +78,8 @@ var generator = function generator(options) {
|
|
|
78
78
|
var _default = generator({
|
|
79
79
|
loader: function loader() {
|
|
80
80
|
return Promise.resolve().then(function () {
|
|
81
|
-
return _interopRequireWildcard(require(
|
|
81
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_refractor-import" */
|
|
82
|
+
'refractor'));
|
|
82
83
|
}).then(function (module) {
|
|
83
84
|
// Webpack 3 returns module.exports as default as module, but webpack 4 returns module.exports as module.default
|
|
84
85
|
return module.default || module;
|
|
@@ -28,4 +28,9 @@ var SyntaxHighlighter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
28
28
|
* Function that receives current line number as argument and returns a
|
|
29
29
|
* line props object to be applied to each `span` wrapping code line.
|
|
30
30
|
*/
|
|
31
|
+
/**
|
|
32
|
+
* Props to be passed to the `span` wrapping each code line. Can be an
|
|
33
|
+
* object or a function that receives current line number as argument and
|
|
34
|
+
* returns a props object.
|
|
35
|
+
*/
|
|
31
36
|
exports.SyntaxHighlighter = SyntaxHighlighter;
|
package/dist/cjs/version.json
CHANGED
|
@@ -6,4 +6,10 @@ export class SyntaxHighlighter extends React.PureComponent {}
|
|
|
6
6
|
/**
|
|
7
7
|
* Function that receives current line number as argument and returns a
|
|
8
8
|
* line props object to be applied to each `span` wrapping code line.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Props to be passed to the `span` wrapping each code line. Can be an
|
|
13
|
+
* object or a function that receives current line number as argument and
|
|
14
|
+
* returns a props object.
|
|
9
15
|
*/
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
export var bidiCharacterRegex = /[\u202A-\u202E\u2066-\u2069]/g;
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -21,4 +21,10 @@ export var SyntaxHighlighter = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21
21
|
/**
|
|
22
22
|
* Function that receives current line number as argument and returns a
|
|
23
23
|
* line props object to be applied to each `span` wrapping code line.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Props to be passed to the `span` wrapping each code line. Can be an
|
|
28
|
+
* object or a function that receives current line number as argument and
|
|
29
|
+
* returns a props object.
|
|
24
30
|
*/
|
package/dist/esm/version.json
CHANGED
|
@@ -308,7 +308,7 @@ export declare const SUPPORTED_LANGUAGES: readonly [{
|
|
|
308
308
|
readonly value: "splunk-spl";
|
|
309
309
|
}];
|
|
310
310
|
export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
|
|
311
|
-
export declare type Language = typeof SUPPORTED_LANGUAGES[number];
|
|
312
|
-
export declare type LanguageAlias = typeof SUPPORTED_LANGUAGES[number]['alias'][number];
|
|
313
|
-
export declare type LanguageName = typeof SUPPORTED_LANGUAGES[number]['name'];
|
|
311
|
+
export declare type Language = (typeof SUPPORTED_LANGUAGES)[number];
|
|
312
|
+
export declare type LanguageAlias = (typeof SUPPORTED_LANGUAGES)[number]['alias'][number];
|
|
313
|
+
export declare type LanguageName = (typeof SUPPORTED_LANGUAGES)[number]['name'];
|
|
314
314
|
export declare type SupportedLanguages = LanguageName | LanguageAlias;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/code",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.6.0",
|
|
4
4
|
"description": "Code highlights short strings of code snippets inline with body text.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@atlaskit/codemod-utils": "^4.
|
|
30
|
-
"@atlaskit/theme": "^12.
|
|
31
|
-
"@atlaskit/tokens": "^1.
|
|
32
|
-
"@atlaskit/tooltip": "^17.
|
|
29
|
+
"@atlaskit/codemod-utils": "^4.2.0",
|
|
30
|
+
"@atlaskit/theme": "^12.5.0",
|
|
31
|
+
"@atlaskit/tokens": "^1.3.0",
|
|
32
|
+
"@atlaskit/tooltip": "^17.8.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@emotion/react": "^11.7.1",
|
|
35
35
|
"memoize-one": "^6.0.0",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"react": "^16.8.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@atlaskit/button": "^16.
|
|
43
|
-
"@atlaskit/docs": "^9.
|
|
44
|
-
"@atlaskit/ds-explorations": "^2.0
|
|
45
|
-
"@atlaskit/ds-lib": "^2.
|
|
46
|
-
"@atlaskit/form": "^8.
|
|
47
|
-
"@atlaskit/primitives": "^0.
|
|
48
|
-
"@atlaskit/section-message": "^6.
|
|
42
|
+
"@atlaskit/button": "^16.7.0",
|
|
43
|
+
"@atlaskit/docs": "^9.1.0",
|
|
44
|
+
"@atlaskit/ds-explorations": "^2.1.0",
|
|
45
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
46
|
+
"@atlaskit/form": "^8.11.0",
|
|
47
|
+
"@atlaskit/primitives": "^0.9.0",
|
|
48
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
49
49
|
"@atlaskit/ssr": "*",
|
|
50
|
-
"@atlaskit/toggle": "^12.
|
|
50
|
+
"@atlaskit/toggle": "^12.6.0",
|
|
51
51
|
"@atlaskit/visual-regression": "*",
|
|
52
52
|
"@atlaskit/webdriver-runner": "*",
|
|
53
53
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
package/report.api.md
CHANGED
|
@@ -434,13 +434,14 @@ export const getCodeStyles: (
|
|
|
434
434
|
) => CSSObject;
|
|
435
435
|
|
|
436
436
|
// @public (undocumented)
|
|
437
|
-
export type Language = typeof SUPPORTED_LANGUAGES[number];
|
|
437
|
+
export type Language = (typeof SUPPORTED_LANGUAGES)[number];
|
|
438
438
|
|
|
439
439
|
// @public (undocumented)
|
|
440
|
-
export type LanguageAlias =
|
|
440
|
+
export type LanguageAlias =
|
|
441
|
+
(typeof SUPPORTED_LANGUAGES)[number]['alias'][number];
|
|
441
442
|
|
|
442
443
|
// @public (undocumented)
|
|
443
|
-
type LanguageName = typeof SUPPORTED_LANGUAGES[number]['name'];
|
|
444
|
+
type LanguageName = (typeof SUPPORTED_LANGUAGES)[number]['name'];
|
|
444
445
|
|
|
445
446
|
// @public (undocumented)
|
|
446
447
|
export const SUPPORTED_LANGUAGES: readonly [
|