@atlaskit/image 1.3.2 → 1.3.3
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,14 @@
|
|
|
1
1
|
# @atlaskit/image
|
|
2
2
|
|
|
3
|
+
## 1.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#156266](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156266)
|
|
8
|
+
[`6029cf729997a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6029cf729997a) -
|
|
9
|
+
Fixes an issue where images with invalid/not-found urls will be requested in an infinite loop
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.3.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ var baseImageStyles = (0, _react2.css)({
|
|
|
22
22
|
height: 'auto'
|
|
23
23
|
});
|
|
24
24
|
var themedImageStyles = (0, _react2.css)({
|
|
25
|
-
content: "var(--img-source)",
|
|
25
|
+
content: "url(var(--img-source))",
|
|
26
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
27
27
|
'html[data-color-mode=dark] &': {
|
|
28
28
|
content: "var(--img-source-dark)"
|
|
@@ -66,8 +66,8 @@ function Image(_ref) {
|
|
|
66
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
67
67
|
,
|
|
68
68
|
style: {
|
|
69
|
-
'--img-source':
|
|
70
|
-
'--img-source-dark':
|
|
69
|
+
'--img-source': src,
|
|
70
|
+
'--img-source-dark': srcDark || src
|
|
71
71
|
},
|
|
72
72
|
css: [baseImageStyles, themedImageStyles],
|
|
73
73
|
ref: imgRef
|
|
@@ -14,7 +14,7 @@ const baseImageStyles = css({
|
|
|
14
14
|
height: 'auto'
|
|
15
15
|
});
|
|
16
16
|
const themedImageStyles = css({
|
|
17
|
-
content: `var(--img-source)`,
|
|
17
|
+
content: `url(var(--img-source))`,
|
|
18
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
19
19
|
'html[data-color-mode=dark] &': {
|
|
20
20
|
content: `var(--img-source-dark)`
|
|
@@ -60,8 +60,8 @@ export default function Image({
|
|
|
60
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
61
61
|
,
|
|
62
62
|
style: {
|
|
63
|
-
'--img-source':
|
|
64
|
-
'--img-source-dark':
|
|
63
|
+
'--img-source': src,
|
|
64
|
+
'--img-source-dark': srcDark || src
|
|
65
65
|
},
|
|
66
66
|
css: [baseImageStyles, themedImageStyles],
|
|
67
67
|
ref: imgRef
|
|
@@ -16,7 +16,7 @@ var baseImageStyles = css({
|
|
|
16
16
|
height: 'auto'
|
|
17
17
|
});
|
|
18
18
|
var themedImageStyles = css({
|
|
19
|
-
content: "var(--img-source)",
|
|
19
|
+
content: "url(var(--img-source))",
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
21
21
|
'html[data-color-mode=dark] &': {
|
|
22
22
|
content: "var(--img-source-dark)"
|
|
@@ -60,8 +60,8 @@ export default function Image(_ref) {
|
|
|
60
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
61
61
|
,
|
|
62
62
|
style: {
|
|
63
|
-
'--img-source':
|
|
64
|
-
'--img-source-dark':
|
|
63
|
+
'--img-source': src,
|
|
64
|
+
'--img-source-dark': srcDark || src
|
|
65
65
|
},
|
|
66
66
|
css: [baseImageStyles, themedImageStyles],
|
|
67
67
|
ref: imgRef
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/image",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "An image that changes in light or dark themes.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/app-provider": "1.4.1",
|
|
30
|
-
"@atlaskit/tokens": "^2.
|
|
30
|
+
"@atlaskit/tokens": "^2.1.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0",
|
|
32
32
|
"@emotion/react": "^11.7.1"
|
|
33
33
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@af/accessibility-testing": "*",
|
|
39
39
|
"@af/integration-testing": "*",
|
|
40
40
|
"@af/visual-regression": "*",
|
|
41
|
-
"@atlaskit/ds-lib": "^
|
|
41
|
+
"@atlaskit/ds-lib": "^3.1.0",
|
|
42
42
|
"@atlaskit/ssr": "*",
|
|
43
43
|
"@atlaskit/visual-regression": "*",
|
|
44
44
|
"@testing-library/react": "^12.1.5",
|