@atlaskit/code 15.6.6 → 15.6.8
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 +14 -0
- package/dist/cjs/internal/theme/styles.js +1 -1
- package/dist/cjs/syntax-highlighter/async.js +5 -7
- package/dist/cjs/syntax-highlighter/types.js +4 -5
- package/dist/es2019/internal/theme/styles.js +1 -1
- package/dist/esm/internal/theme/styles.js +1 -1
- package/dist/esm/syntax-highlighter/async.js +5 -7
- package/dist/esm/syntax-highlighter/types.js +4 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 15.6.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#178053](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178053)
|
|
8
|
+
[`cb318c8c28c26`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb318c8c28c26) -
|
|
9
|
+
Internal changes to typography.
|
|
10
|
+
|
|
11
|
+
## 15.6.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 15.6.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -9,15 +9,15 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
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
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
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 && {}.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
|
-
function
|
|
20
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
21
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)
|
|
@@ -26,13 +26,12 @@ var generator = function generator(options) {
|
|
|
26
26
|
|
|
27
27
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
28
28
|
var AsyncHighlighter = /*#__PURE__*/function (_React$PureComponent) {
|
|
29
|
-
(0, _inherits2.default)(AsyncHighlighter, _React$PureComponent);
|
|
30
|
-
var _super = _createSuper(AsyncHighlighter);
|
|
31
29
|
function AsyncHighlighter() {
|
|
32
30
|
(0, _classCallCheck2.default)(this, AsyncHighlighter);
|
|
33
|
-
return
|
|
31
|
+
return _callSuper(this, AsyncHighlighter, arguments);
|
|
34
32
|
}
|
|
35
|
-
(0,
|
|
33
|
+
(0, _inherits2.default)(AsyncHighlighter, _React$PureComponent);
|
|
34
|
+
return (0, _createClass2.default)(AsyncHighlighter, [{
|
|
36
35
|
key: "componentDidMount",
|
|
37
36
|
value: function componentDidMount() {
|
|
38
37
|
var _this = this;
|
|
@@ -69,7 +68,6 @@ var generator = function generator(options) {
|
|
|
69
68
|
return AsyncHighlighter.astGeneratorPromise;
|
|
70
69
|
}
|
|
71
70
|
}]);
|
|
72
|
-
return AsyncHighlighter;
|
|
73
71
|
}(_react.default.PureComponent);
|
|
74
72
|
(0, _defineProperty2.default)(AsyncHighlighter, "astGenerator", null);
|
|
75
73
|
(0, _defineProperty2.default)(AsyncHighlighter, "highlightInstance", _highlight.default);
|
|
@@ -7,22 +7,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.SyntaxHighlighter = void 0;
|
|
8
8
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
10
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
|
-
function
|
|
14
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
15
15
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
17
|
// This wrapper supports the async loading of refractor and language grammars. The internal Highlight is a memo() functional component as expected
|
|
18
18
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
19
19
|
var SyntaxHighlighter = exports.SyntaxHighlighter = /*#__PURE__*/function (_React$PureComponent) {
|
|
20
|
-
(0, _inherits2.default)(SyntaxHighlighter, _React$PureComponent);
|
|
21
|
-
var _super = _createSuper(SyntaxHighlighter);
|
|
22
20
|
function SyntaxHighlighter() {
|
|
23
21
|
(0, _classCallCheck2.default)(this, SyntaxHighlighter);
|
|
24
|
-
return
|
|
22
|
+
return _callSuper(this, SyntaxHighlighter, arguments);
|
|
25
23
|
}
|
|
24
|
+
(0, _inherits2.default)(SyntaxHighlighter, _React$PureComponent);
|
|
26
25
|
return (0, _createClass2.default)(SyntaxHighlighter);
|
|
27
26
|
}(_react.default.PureComponent);
|
|
28
27
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
8
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
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';
|
|
@@ -16,13 +16,12 @@ var generator = function generator(options) {
|
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
18
18
|
var AsyncHighlighter = /*#__PURE__*/function (_React$PureComponent) {
|
|
19
|
-
_inherits(AsyncHighlighter, _React$PureComponent);
|
|
20
|
-
var _super = _createSuper(AsyncHighlighter);
|
|
21
19
|
function AsyncHighlighter() {
|
|
22
20
|
_classCallCheck(this, AsyncHighlighter);
|
|
23
|
-
return
|
|
21
|
+
return _callSuper(this, AsyncHighlighter, arguments);
|
|
24
22
|
}
|
|
25
|
-
|
|
23
|
+
_inherits(AsyncHighlighter, _React$PureComponent);
|
|
24
|
+
return _createClass(AsyncHighlighter, [{
|
|
26
25
|
key: "componentDidMount",
|
|
27
26
|
value: function componentDidMount() {
|
|
28
27
|
var _this = this;
|
|
@@ -59,7 +58,6 @@ var generator = function generator(options) {
|
|
|
59
58
|
return AsyncHighlighter.astGeneratorPromise;
|
|
60
59
|
}
|
|
61
60
|
}]);
|
|
62
|
-
return AsyncHighlighter;
|
|
63
61
|
}(React.PureComponent);
|
|
64
62
|
_defineProperty(AsyncHighlighter, "astGenerator", null);
|
|
65
63
|
_defineProperty(AsyncHighlighter, "highlightInstance", highlight);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
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
|
|
|
@@ -12,12 +12,11 @@ import React from 'react';
|
|
|
12
12
|
// This wrapper supports the async loading of refractor and language grammars. The internal Highlight is a memo() functional component as expected
|
|
13
13
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
14
14
|
export var SyntaxHighlighter = /*#__PURE__*/function (_React$PureComponent) {
|
|
15
|
-
_inherits(SyntaxHighlighter, _React$PureComponent);
|
|
16
|
-
var _super = _createSuper(SyntaxHighlighter);
|
|
17
15
|
function SyntaxHighlighter() {
|
|
18
16
|
_classCallCheck(this, SyntaxHighlighter);
|
|
19
|
-
return
|
|
17
|
+
return _callSuper(this, SyntaxHighlighter, arguments);
|
|
20
18
|
}
|
|
19
|
+
_inherits(SyntaxHighlighter, _React$PureComponent);
|
|
21
20
|
return _createClass(SyntaxHighlighter);
|
|
22
21
|
}(React.PureComponent);
|
|
23
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/code",
|
|
3
|
-
"version": "15.6.
|
|
3
|
+
"version": "15.6.8",
|
|
4
4
|
"description": "Code highlights short strings of code snippets inline with body text.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"team": "Design System Team",
|
|
21
21
|
"website": {
|
|
22
22
|
"name": "Code",
|
|
23
|
-
"category": "
|
|
23
|
+
"category": "Text and data display"
|
|
24
24
|
},
|
|
25
25
|
"runReact18": true
|
|
26
26
|
},
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
32
32
|
"@atlaskit/theme": "^14.0.0",
|
|
33
|
-
"@atlaskit/tokens": "^2.
|
|
34
|
-
"@atlaskit/tooltip": "^
|
|
33
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
34
|
+
"@atlaskit/tooltip": "^19.0.0",
|
|
35
35
|
"@atlaskit/visually-hidden": "^1.5.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0",
|
|
37
37
|
"@emotion/react": "^11.7.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@af/accessibility-testing": "*",
|
|
46
46
|
"@af/integration-testing": "*",
|
|
47
47
|
"@af/visual-regression": "*",
|
|
48
|
-
"@atlaskit/ds-lib": "^3.
|
|
48
|
+
"@atlaskit/ds-lib": "^3.3.0",
|
|
49
49
|
"@atlaskit/ssr": "*",
|
|
50
50
|
"@atlaskit/toggle": "^13.4.0",
|
|
51
51
|
"@atlaskit/visual-regression": "*",
|