@atlaskit/code 14.3.1 → 14.3.4
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 +23 -0
- package/__perf__/default.tsx +1 -1
- package/codemods/__tests__/14.0.0-lite-mode/14.0.0-lite-mode.ts +10 -10
- package/codemods/__tests__/14.0.0-lite-mode/remove-language.ts +6 -6
- package/codemods/__tests__/14.0.0-lite-mode/text-to-child.ts +10 -10
- package/dist/cjs/bidi-warning/bidi-warning-decorator.js +1 -1
- package/dist/cjs/bidi-warning/ui/index.js +3 -1
- package/dist/cjs/bidi-warning/ui/styled.js +4 -3
- package/dist/cjs/code.js +6 -4
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/internal/hooks/use-highlight.js +2 -2
- package/dist/cjs/internal/theme/constants.js +1 -1
- package/dist/cjs/internal/theme/get-theme.js +99 -99
- package/dist/cjs/internal/theme/styles.js +4 -3
- package/dist/cjs/react-syntax-highlighter-bidi-warning-renderer.js +4 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/bidi-warning/ui/styled.js +4 -3
- package/dist/es2019/internal/theme/get-theme.js +96 -96
- package/dist/es2019/internal/theme/styles.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/bidi-warning/ui/index.js +2 -1
- package/dist/esm/bidi-warning/ui/styled.js +4 -3
- package/dist/esm/code.js +4 -2
- package/dist/esm/internal/hooks/use-highlight.js +2 -2
- package/dist/esm/internal/theme/get-theme.js +98 -98
- package/dist/esm/internal/theme/styles.js +3 -2
- package/dist/esm/react-syntax-highlighter-bidi-warning-renderer.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/bidi-warning/ui/index.d.ts +1 -0
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 14.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 14.3.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`a1a89347baa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a1a89347baa) - [ux] Instrumented `@atlaskit/code` with the new theming package, `@atlaskit/tokens`.
|
|
14
|
+
|
|
15
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
16
|
+
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
20
|
+
## 14.3.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [`b5226ba2c15`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5226ba2c15) - Replace `bolt` with `yarn` for rendered example changeset commands
|
|
25
|
+
|
|
3
26
|
## 14.3.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/__perf__/default.tsx
CHANGED
|
@@ -14,12 +14,12 @@ describe('all transforms should be applied', () => {
|
|
|
14
14
|
import { Code } from '@atlaskit/code';
|
|
15
15
|
|
|
16
16
|
export default function CodeDefaultExample() {
|
|
17
|
-
const text = "
|
|
17
|
+
const text = "yarn changeset";
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
20
|
<p>
|
|
21
21
|
To start creating a changeset, run{' '}
|
|
22
|
-
<Code language="text" text="
|
|
22
|
+
<Code language="text" text="yarn changeset" />. Then you will be prompted
|
|
23
23
|
to select packages for release.
|
|
24
24
|
</p>
|
|
25
25
|
);
|
|
@@ -32,12 +32,12 @@ describe('all transforms should be applied', () => {
|
|
|
32
32
|
import { Code } from '@atlaskit/code';
|
|
33
33
|
|
|
34
34
|
export default function CodeDefaultExample() {
|
|
35
|
-
const text = "
|
|
35
|
+
const text = "yarn changeset";
|
|
36
36
|
|
|
37
37
|
return (
|
|
38
38
|
<p>
|
|
39
39
|
To start creating a changeset, run{' '}
|
|
40
|
-
<Code>
|
|
40
|
+
<Code>yarn changeset</Code>. Then you will be prompted
|
|
41
41
|
to select packages for release.
|
|
42
42
|
</p>
|
|
43
43
|
);
|
|
@@ -60,7 +60,7 @@ describe('all transforms should be applied', () => {
|
|
|
60
60
|
return (
|
|
61
61
|
<p>
|
|
62
62
|
To start creating a changeset, run{' '}
|
|
63
|
-
<AkCode language={language} text="
|
|
63
|
+
<AkCode language={language} text="yarn changeset" />. Then you will be prompted
|
|
64
64
|
to select packages for release.
|
|
65
65
|
</p>
|
|
66
66
|
);
|
|
@@ -78,7 +78,7 @@ describe('all transforms should be applied', () => {
|
|
|
78
78
|
return (
|
|
79
79
|
<p>
|
|
80
80
|
To start creating a changeset, run{' '}
|
|
81
|
-
<AkCode>
|
|
81
|
+
<AkCode>yarn changeset</AkCode>. Then you will be prompted
|
|
82
82
|
to select packages for release.
|
|
83
83
|
</p>
|
|
84
84
|
);
|
|
@@ -186,11 +186,11 @@ describe('all transforms should be applied', () => {
|
|
|
186
186
|
import { Code } from '@atlaskit/code';
|
|
187
187
|
|
|
188
188
|
export default function CodeDefaultExample() {
|
|
189
|
-
const text = "
|
|
189
|
+
const text = "yarn changeset";
|
|
190
190
|
|
|
191
191
|
return (
|
|
192
192
|
<p>
|
|
193
|
-
To start creating a changeset, run <Code language="text" text="
|
|
193
|
+
To start creating a changeset, run <Code language="text" text="yarn changeset" />. All g mate.
|
|
194
194
|
</p>
|
|
195
195
|
);
|
|
196
196
|
}
|
|
@@ -202,11 +202,11 @@ describe('all transforms should be applied', () => {
|
|
|
202
202
|
import { Code } from '@atlaskit/code';
|
|
203
203
|
|
|
204
204
|
export default function CodeDefaultExample() {
|
|
205
|
-
const text = "
|
|
205
|
+
const text = "yarn changeset";
|
|
206
206
|
|
|
207
207
|
return (
|
|
208
208
|
<p>
|
|
209
|
-
To start creating a changeset, run <Code>
|
|
209
|
+
To start creating a changeset, run <Code>yarn changeset</Code>. All g mate.
|
|
210
210
|
</p>
|
|
211
211
|
);
|
|
212
212
|
}
|
|
@@ -27,7 +27,7 @@ describe('remove language prop', () => {
|
|
|
27
27
|
return (
|
|
28
28
|
<p>
|
|
29
29
|
To start creating a changeset, run{' '}
|
|
30
|
-
<Code language="text" text="
|
|
30
|
+
<Code language="text" text="yarn changeset" />. Then you will be prompted
|
|
31
31
|
to select packages for release.
|
|
32
32
|
</p>
|
|
33
33
|
);
|
|
@@ -43,7 +43,7 @@ describe('remove language prop', () => {
|
|
|
43
43
|
return (
|
|
44
44
|
<p>
|
|
45
45
|
To start creating a changeset, run{' '}
|
|
46
|
-
<Code text="
|
|
46
|
+
<Code text="yarn changeset" />. Then you will be prompted
|
|
47
47
|
to select packages for release.
|
|
48
48
|
</p>
|
|
49
49
|
);
|
|
@@ -66,7 +66,7 @@ describe('remove language prop', () => {
|
|
|
66
66
|
return (
|
|
67
67
|
<p>
|
|
68
68
|
To start creating a changeset, run{' '}
|
|
69
|
-
<Code language={language} text="
|
|
69
|
+
<Code language={language} text="yarn changeset" />. Then you will be prompted
|
|
70
70
|
to select packages for release.
|
|
71
71
|
</p>
|
|
72
72
|
);
|
|
@@ -84,7 +84,7 @@ describe('remove language prop', () => {
|
|
|
84
84
|
return (
|
|
85
85
|
<p>
|
|
86
86
|
To start creating a changeset, run{' '}
|
|
87
|
-
<Code text="
|
|
87
|
+
<Code text="yarn changeset" />. Then you will be prompted
|
|
88
88
|
to select packages for release.
|
|
89
89
|
</p>
|
|
90
90
|
);
|
|
@@ -105,7 +105,7 @@ describe('remove language prop', () => {
|
|
|
105
105
|
return (
|
|
106
106
|
<p>
|
|
107
107
|
To start creating a changeset, run{' '}
|
|
108
|
-
<Code text="
|
|
108
|
+
<Code text="yarn changeset" />. Then you will be prompted
|
|
109
109
|
to select packages for release.
|
|
110
110
|
</p>
|
|
111
111
|
);
|
|
@@ -120,7 +120,7 @@ describe('remove language prop', () => {
|
|
|
120
120
|
return (
|
|
121
121
|
<p>
|
|
122
122
|
To start creating a changeset, run{' '}
|
|
123
|
-
<Code text="
|
|
123
|
+
<Code text="yarn changeset" />. Then you will be prompted
|
|
124
124
|
to select packages for release.
|
|
125
125
|
</p>
|
|
126
126
|
);
|
|
@@ -19,7 +19,7 @@ describe('make the test prop a child', () => {
|
|
|
19
19
|
return (
|
|
20
20
|
<p>
|
|
21
21
|
To start creating a changeset, run{' '}
|
|
22
|
-
<Code text="
|
|
22
|
+
<Code text="yarn changeset" />. Then you will be prompted
|
|
23
23
|
to select packages for release.
|
|
24
24
|
</p>
|
|
25
25
|
);
|
|
@@ -34,7 +34,7 @@ describe('make the test prop a child', () => {
|
|
|
34
34
|
return (
|
|
35
35
|
<p>
|
|
36
36
|
To start creating a changeset, run{' '}
|
|
37
|
-
<Code>
|
|
37
|
+
<Code>yarn changeset</Code>. Then you will be prompted
|
|
38
38
|
to select packages for release.
|
|
39
39
|
</p>
|
|
40
40
|
);
|
|
@@ -51,7 +51,7 @@ describe('make the test prop a child', () => {
|
|
|
51
51
|
|
|
52
52
|
import { Code } from '@atlaskit/code';
|
|
53
53
|
|
|
54
|
-
const text = "
|
|
54
|
+
const text = "yarn changeset";
|
|
55
55
|
|
|
56
56
|
export default function CodeDefaultExample() {
|
|
57
57
|
return (
|
|
@@ -68,7 +68,7 @@ describe('make the test prop a child', () => {
|
|
|
68
68
|
|
|
69
69
|
import { Code } from '@atlaskit/code';
|
|
70
70
|
|
|
71
|
-
const text = "
|
|
71
|
+
const text = "yarn changeset";
|
|
72
72
|
|
|
73
73
|
export default function CodeDefaultExample() {
|
|
74
74
|
return (
|
|
@@ -95,7 +95,7 @@ describe('make the test prop a child', () => {
|
|
|
95
95
|
return (
|
|
96
96
|
<p>
|
|
97
97
|
To start creating a changeset, run{' '}
|
|
98
|
-
<Code testId="hello!" text="
|
|
98
|
+
<Code testId="hello!" text="yarn changeset" />. Then you will be prompted
|
|
99
99
|
to select packages for release.
|
|
100
100
|
</p>
|
|
101
101
|
);
|
|
@@ -110,7 +110,7 @@ describe('make the test prop a child', () => {
|
|
|
110
110
|
return (
|
|
111
111
|
<p>
|
|
112
112
|
To start creating a changeset, run{' '}
|
|
113
|
-
<Code testId="hello!">
|
|
113
|
+
<Code testId="hello!">yarn changeset</Code>. Then you will be prompted
|
|
114
114
|
to select packages for release.
|
|
115
115
|
</p>
|
|
116
116
|
);
|
|
@@ -133,7 +133,7 @@ describe('make the test prop a child', () => {
|
|
|
133
133
|
return (
|
|
134
134
|
<p>
|
|
135
135
|
To start creating a changeset, run{' '}
|
|
136
|
-
<Code {...codeProps} text="
|
|
136
|
+
<Code {...codeProps} text="yarn changeset" />. Then you will be prompted
|
|
137
137
|
to select packages for release.
|
|
138
138
|
</p>
|
|
139
139
|
);
|
|
@@ -150,7 +150,7 @@ describe('make the test prop a child', () => {
|
|
|
150
150
|
return (
|
|
151
151
|
<p>
|
|
152
152
|
To start creating a changeset, run{' '}
|
|
153
|
-
<Code {...codeProps}>
|
|
153
|
+
<Code {...codeProps}>yarn changeset</Code>. Then you will be prompted
|
|
154
154
|
to select packages for release.
|
|
155
155
|
</p>
|
|
156
156
|
);
|
|
@@ -167,7 +167,7 @@ describe('make the test prop a child', () => {
|
|
|
167
167
|
|
|
168
168
|
import { Code } from '@atlaskit/code';
|
|
169
169
|
|
|
170
|
-
const text = "
|
|
170
|
+
const text = "yarn changeset" ;
|
|
171
171
|
|
|
172
172
|
export default function CodeDefaultExample() {
|
|
173
173
|
return (
|
|
@@ -185,7 +185,7 @@ describe('make the test prop a child', () => {
|
|
|
185
185
|
|
|
186
186
|
import { Code } from '@atlaskit/code';
|
|
187
187
|
|
|
188
|
-
const text = "
|
|
188
|
+
const text = "yarn changeset" ;
|
|
189
189
|
|
|
190
190
|
export default function CodeDefaultExample() {
|
|
191
191
|
return (
|
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = codeBidiWarningDecorator;
|
|
9
8
|
exports.bidiCharacterRegex = void 0;
|
|
9
|
+
exports.default = codeBidiWarningDecorator;
|
|
10
10
|
|
|
11
11
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
12
12
|
|
|
@@ -17,6 +17,8 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
|
17
17
|
|
|
18
18
|
var _styled = require("./styled");
|
|
19
19
|
|
|
20
|
+
var _excluded = ["children"];
|
|
21
|
+
|
|
20
22
|
function BidiWarning(_ref) {
|
|
21
23
|
var testId = _ref.testId,
|
|
22
24
|
bidiCharacter = _ref.bidiCharacter,
|
|
@@ -48,7 +50,7 @@ function BidiWarning(_ref) {
|
|
|
48
50
|
|
|
49
51
|
var CustomizedTagWithRef = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
50
52
|
var children = props.children,
|
|
51
|
-
rest = (0, _objectWithoutProperties2.default)(props,
|
|
53
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
52
54
|
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, rest, {
|
|
53
55
|
ref: ref
|
|
54
56
|
}), children);
|
|
@@ -26,7 +26,7 @@ var decoration = (0, _core.css)({
|
|
|
26
26
|
padding: '0 4px',
|
|
27
27
|
fontSize: '14px',
|
|
28
28
|
lineHeight: '18px',
|
|
29
|
-
background: _colors.Y75,
|
|
29
|
+
background: "var(--ds-background-warning, ".concat(_colors.Y75, ")"),
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Ensures the decoration receives pointer events when it occurs with
|
|
@@ -38,11 +38,12 @@ var decoration = (0, _core.css)({
|
|
|
38
38
|
content: '"<"attr(data-bidi-character-code)">"',
|
|
39
39
|
// This color is Y800 which is not yet rolled out
|
|
40
40
|
// https://hello.atlassian.net/wiki/spaces/~tswan/pages/1366555782?focusedCommentId=1370387374#comment-1370387374
|
|
41
|
-
color:
|
|
41
|
+
color: "var(--ds-text-warning, #7F5F01)",
|
|
42
42
|
fontStyle: 'normal'
|
|
43
43
|
},
|
|
44
44
|
':hover:before': {
|
|
45
|
-
color:
|
|
45
|
+
color: "var(--ds-text-warning, #533F04)",
|
|
46
|
+
background: "var(--ds-background-warning-hovered, ".concat(_colors.Y75, ")")
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
49
|
|
package/dist/cjs/code.js
CHANGED
|
@@ -7,13 +7,13 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
+
exports.default = void 0;
|
|
10
11
|
Object.defineProperty(exports, "getCodeStyles", {
|
|
11
12
|
enumerable: true,
|
|
12
13
|
get: function get() {
|
|
13
14
|
return _styles.getCodeStyles;
|
|
14
15
|
}
|
|
15
16
|
});
|
|
16
|
-
exports.default = void 0;
|
|
17
17
|
|
|
18
18
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
19
19
|
|
|
@@ -31,14 +31,16 @@ var _bidiWarningDecorator = _interopRequireDefault(require("./bidi-warning/bidi-
|
|
|
31
31
|
|
|
32
32
|
var _styles = require("./internal/theme/styles");
|
|
33
33
|
|
|
34
|
+
var _excluded = ["testId"],
|
|
35
|
+
_excluded2 = ["children", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled"];
|
|
36
|
+
|
|
34
37
|
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); }
|
|
35
38
|
|
|
36
39
|
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; }
|
|
37
40
|
|
|
38
|
-
/** @jsx jsx */
|
|
39
41
|
var Code = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function Code(_ref, ref) {
|
|
40
42
|
var testId = _ref.testId,
|
|
41
|
-
props = (0, _objectWithoutProperties2.default)(_ref,
|
|
43
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
42
44
|
var theme = (0, _components.useGlobalTheme)();
|
|
43
45
|
var styles = (0, _react.useMemo)(function () {
|
|
44
46
|
return (0, _styles.getCodeStyles)(theme);
|
|
@@ -49,7 +51,7 @@ var Code = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
49
51
|
codeBidiWarningLabel = props.codeBidiWarningLabel,
|
|
50
52
|
_props$codeBidiWarnin2 = props.codeBidiWarningTooltipEnabled,
|
|
51
53
|
codeBidiWarningTooltipEnabled = _props$codeBidiWarnin2 === void 0 ? true : _props$codeBidiWarnin2,
|
|
52
|
-
otherProps = (0, _objectWithoutProperties2.default)(props,
|
|
54
|
+
otherProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
53
55
|
var decoratedChildren = codeBidiWarnings ? (0, _core.jsx)(RenderCodeChildrenWithBidiWarnings, {
|
|
54
56
|
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
55
57
|
codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled
|
package/dist/cjs/index.js
CHANGED
|
@@ -13,12 +13,6 @@ Object.defineProperty(exports, "Code", {
|
|
|
13
13
|
return _code.default;
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
Object.defineProperty(exports, "getCodeStyles", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _code.getCodeStyles;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
16
|
Object.defineProperty(exports, "CodeBlock", {
|
|
23
17
|
enumerable: true,
|
|
24
18
|
get: function get() {
|
|
@@ -31,6 +25,12 @@ Object.defineProperty(exports, "SUPPORTED_LANGUAGES", {
|
|
|
31
25
|
return _constants.SUPPORTED_LANGUAGES;
|
|
32
26
|
}
|
|
33
27
|
});
|
|
28
|
+
Object.defineProperty(exports, "getCodeStyles", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function get() {
|
|
31
|
+
return _code.getCodeStyles;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
34
|
|
|
35
35
|
var _code = _interopRequireWildcard(require("./code"));
|
|
36
36
|
|
|
@@ -13,9 +13,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
19
|
|
|
20
20
|
var DEFAULT_LINE_EL_ATTR_OBJ = {
|
|
21
21
|
'data-ds--code--row': ''
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.VAR_CODE_LINE_NUMBER_BG_COLOR = exports.VAR_CODE_BG_COLOR = exports.SPACING = exports.LINE_NUMBER_GUTTER = exports.HIGHLIGHT_BORDER_WIDTH = exports.CODE_LINE_HEIGHT = exports.CODE_FONT_SIZE = exports.CODE_BLOCK_SELECTOR = void 0;
|
|
7
7
|
|
|
8
8
|
var _constants = require("@atlaskit/theme/constants");
|
|
9
9
|
|