@atlaskit/renderer 108.6.3 → 108.6.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 +6 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +5 -4
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -5
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +5 -4
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -5
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +5 -4
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -5
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 108.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0d603996f7f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0d603996f7f) - [ux] TSLA-609 update code block wrap button and copy button to work in dark/light theme by adding back the wrapper element behind the buttons.
|
|
8
|
+
|
|
3
9
|
## 108.6.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -13,7 +13,8 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
13
13
|
|
|
14
14
|
var codeBlockButtonsWrapper = (0, _react.css)({
|
|
15
15
|
position: 'sticky',
|
|
16
|
-
top: '0px'
|
|
16
|
+
top: '0px',
|
|
17
|
+
background: "".concat("var(--ds-surface, ".concat(_colors.N20, ")"))
|
|
17
18
|
});
|
|
18
19
|
var codeBlockButtonsStyle = (0, _react.css)({
|
|
19
20
|
display: 'flex',
|
|
@@ -27,15 +28,15 @@ var codeBlockButtonsStyle = (0, _react.css)({
|
|
|
27
28
|
button: {
|
|
28
29
|
height: '32px',
|
|
29
30
|
width: '32px',
|
|
30
|
-
border: "2px solid ".concat("var(--ds-border
|
|
31
|
+
border: "2px solid ".concat("var(--ds-border, ".concat(_colors.N0, ")")),
|
|
31
32
|
borderRadius: '4px',
|
|
32
33
|
marginLeft: '4px',
|
|
33
34
|
padding: '2px',
|
|
34
|
-
background: "".concat("var(--ds-
|
|
35
|
+
background: "".concat("var(--ds-surface-overlay, ".concat(_colors.N20, ")")),
|
|
35
36
|
color: "var(--ds-icon, rgb(66, 82, 110))",
|
|
36
37
|
'&:hover': {
|
|
37
38
|
borderWidth: '2px',
|
|
38
|
-
backgroundColor: "".concat("var(--ds-
|
|
39
|
+
backgroundColor: "".concat("var(--ds-surface-overlay-hovered, ".concat(_colors.N30, ")")),
|
|
39
40
|
height: '32px',
|
|
40
41
|
width: '32px'
|
|
41
42
|
},
|
|
@@ -25,11 +25,7 @@ var WrapIcon = function WrapIcon() {
|
|
|
25
25
|
}, (0, _react.jsx)("g", {
|
|
26
26
|
fill: "currentColor",
|
|
27
27
|
clipPath: "url(#clip0_654_431)"
|
|
28
|
-
}, (0, _react.jsx)("
|
|
29
|
-
width: "24",
|
|
30
|
-
height: "24",
|
|
31
|
-
fillOpacity: "0.01"
|
|
32
|
-
}), (0, _react.jsx)("path", {
|
|
28
|
+
}, (0, _react.jsx)("path", {
|
|
33
29
|
d: "M20 4h-1v16h1V4ZM3 8a1 1 0 0 1 1-1h9.5a4.5 4.5 0 1 1 0 9h-2.086l.293.293a1 1 0 0 1-1.414 1.414l-2-2a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 1.414 1.414l-.293.293H13.5a2.5 2.5 0 0 0 0-5H4a1 1 0 0 1-1-1Z",
|
|
34
30
|
clipRule: "evenodd",
|
|
35
31
|
fillRule: "evenodd"
|
|
@@ -55,7 +55,7 @@ exports.NORMAL_SEVERITY_THRESHOLD = NORMAL_SEVERITY_THRESHOLD;
|
|
|
55
55
|
var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
exports.DEGRADED_SEVERITY_THRESHOLD = DEGRADED_SEVERITY_THRESHOLD;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "108.6.
|
|
58
|
+
var packageVersion = "108.6.4";
|
|
59
59
|
var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
package/dist/cjs/version.json
CHANGED
|
@@ -5,7 +5,8 @@ import CodeWrapButton from './codeBlockWrapButton';
|
|
|
5
5
|
import { N0, N20, N30, N700 } from '@atlaskit/theme/colors';
|
|
6
6
|
const codeBlockButtonsWrapper = css({
|
|
7
7
|
position: 'sticky',
|
|
8
|
-
top: '0px'
|
|
8
|
+
top: '0px',
|
|
9
|
+
background: `${`var(--ds-surface, ${N20})`}`
|
|
9
10
|
});
|
|
10
11
|
const codeBlockButtonsStyle = css({
|
|
11
12
|
display: 'flex',
|
|
@@ -19,15 +20,15 @@ const codeBlockButtonsStyle = css({
|
|
|
19
20
|
button: {
|
|
20
21
|
height: '32px',
|
|
21
22
|
width: '32px',
|
|
22
|
-
border: `2px solid ${`var(--ds-border
|
|
23
|
+
border: `2px solid ${`var(--ds-border, ${N0})`}`,
|
|
23
24
|
borderRadius: '4px',
|
|
24
25
|
marginLeft: '4px',
|
|
25
26
|
padding: '2px',
|
|
26
|
-
background: `${`var(--ds-
|
|
27
|
+
background: `${`var(--ds-surface-overlay, ${N20})`}`,
|
|
27
28
|
color: `${"var(--ds-icon, rgb(66, 82, 110))"}`,
|
|
28
29
|
'&:hover': {
|
|
29
30
|
borderWidth: '2px',
|
|
30
|
-
backgroundColor: `${`var(--ds-
|
|
31
|
+
backgroundColor: `${`var(--ds-surface-overlay-hovered, ${N30})`}`,
|
|
31
32
|
height: '32px',
|
|
32
33
|
width: '32px'
|
|
33
34
|
},
|
|
@@ -17,11 +17,7 @@ const WrapIcon = () => {
|
|
|
17
17
|
}, jsx("g", {
|
|
18
18
|
fill: "currentColor",
|
|
19
19
|
clipPath: "url(#clip0_654_431)"
|
|
20
|
-
}, jsx("
|
|
21
|
-
width: "24",
|
|
22
|
-
height: "24",
|
|
23
|
-
fillOpacity: "0.01"
|
|
24
|
-
}), jsx("path", {
|
|
20
|
+
}, jsx("path", {
|
|
25
21
|
d: "M20 4h-1v16h1V4ZM3 8a1 1 0 0 1 1-1h9.5a4.5 4.5 0 1 1 0 9h-2.086l.293.293a1 1 0 0 1-1.414 1.414l-2-2a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 1.414 1.414l-.293.293H13.5a2.5 2.5 0 0 0 0-5H4a1 1 0 0 1-1-1Z",
|
|
26
22
|
clipRule: "evenodd",
|
|
27
23
|
fillRule: "evenodd"
|
|
@@ -35,7 +35,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
35
35
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
36
36
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
37
37
|
const packageName = "@atlaskit/renderer";
|
|
38
|
-
const packageVersion = "108.6.
|
|
38
|
+
const packageVersion = "108.6.4";
|
|
39
39
|
export class Renderer extends PureComponent {
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
package/dist/es2019/version.json
CHANGED
|
@@ -5,7 +5,8 @@ import CodeWrapButton from './codeBlockWrapButton';
|
|
|
5
5
|
import { N0, N20, N30, N700 } from '@atlaskit/theme/colors';
|
|
6
6
|
var codeBlockButtonsWrapper = css({
|
|
7
7
|
position: 'sticky',
|
|
8
|
-
top: '0px'
|
|
8
|
+
top: '0px',
|
|
9
|
+
background: "".concat("var(--ds-surface, ".concat(N20, ")"))
|
|
9
10
|
});
|
|
10
11
|
var codeBlockButtonsStyle = css({
|
|
11
12
|
display: 'flex',
|
|
@@ -19,15 +20,15 @@ var codeBlockButtonsStyle = css({
|
|
|
19
20
|
button: {
|
|
20
21
|
height: '32px',
|
|
21
22
|
width: '32px',
|
|
22
|
-
border: "2px solid ".concat("var(--ds-border
|
|
23
|
+
border: "2px solid ".concat("var(--ds-border, ".concat(N0, ")")),
|
|
23
24
|
borderRadius: '4px',
|
|
24
25
|
marginLeft: '4px',
|
|
25
26
|
padding: '2px',
|
|
26
|
-
background: "".concat("var(--ds-
|
|
27
|
+
background: "".concat("var(--ds-surface-overlay, ".concat(N20, ")")),
|
|
27
28
|
color: "var(--ds-icon, rgb(66, 82, 110))",
|
|
28
29
|
'&:hover': {
|
|
29
30
|
borderWidth: '2px',
|
|
30
|
-
backgroundColor: "".concat("var(--ds-
|
|
31
|
+
backgroundColor: "".concat("var(--ds-surface-overlay-hovered, ".concat(N30, ")")),
|
|
31
32
|
height: '32px',
|
|
32
33
|
width: '32px'
|
|
33
34
|
},
|
|
@@ -17,11 +17,7 @@ var WrapIcon = function WrapIcon() {
|
|
|
17
17
|
}, jsx("g", {
|
|
18
18
|
fill: "currentColor",
|
|
19
19
|
clipPath: "url(#clip0_654_431)"
|
|
20
|
-
}, jsx("
|
|
21
|
-
width: "24",
|
|
22
|
-
height: "24",
|
|
23
|
-
fillOpacity: "0.01"
|
|
24
|
-
}), jsx("path", {
|
|
20
|
+
}, jsx("path", {
|
|
25
21
|
d: "M20 4h-1v16h1V4ZM3 8a1 1 0 0 1 1-1h9.5a4.5 4.5 0 1 1 0 9h-2.086l.293.293a1 1 0 0 1-1.414 1.414l-2-2a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 1.414 1.414l-.293.293H13.5a2.5 2.5 0 0 0 0-5H4a1 1 0 0 1-1-1Z",
|
|
26
22
|
clipRule: "evenodd",
|
|
27
23
|
fillRule: "evenodd"
|
|
@@ -45,7 +45,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
45
45
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
var packageName = "@atlaskit/renderer";
|
|
48
|
-
var packageVersion = "108.6.
|
|
48
|
+
var packageVersion = "108.6.4";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
package/dist/esm/version.json
CHANGED