@atlaskit/image 1.3.2 → 1.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/image
2
2
 
3
+ ## 1.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#166026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166026)
8
+ [`962b5e77810fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962b5e77810fb) -
9
+ Adds side-effect config to support Compiled css extraction in third-party apps
10
+
11
+ ## 1.3.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [#156266](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156266)
16
+ [`6029cf729997a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6029cf729997a) -
17
+ Fixes an issue where images with invalid/not-found urls will be requested in an infinite loop
18
+ - Updated dependencies
19
+
3
20
  ## 1.3.2
4
21
 
5
22
  ### 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': "url(".concat(src, ")"),
70
- '--img-source-dark': "url(".concat(srcDark || src, ")")
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': `url(${src})`,
64
- '--img-source-dark': `url(${srcDark || src})`
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': "url(".concat(src, ")"),
64
- '--img-source-dark': "url(".concat(srcDark || src, ")")
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.2",
3
+ "version": "1.3.4",
4
4
  "description": "An image that changes in light or dark themes.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,7 +12,9 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "sideEffects": false,
15
+ "sideEffects": [
16
+ "**/*.compiled.css"
17
+ ],
16
18
  "atlaskit:src": "src/index.tsx",
17
19
  "atlassian": {
18
20
  "team": "Design System Team",
@@ -27,7 +29,7 @@
27
29
  },
28
30
  "dependencies": {
29
31
  "@atlaskit/app-provider": "1.4.1",
30
- "@atlaskit/tokens": "^2.0.0",
32
+ "@atlaskit/tokens": "^2.2.0",
31
33
  "@babel/runtime": "^7.0.0",
32
34
  "@emotion/react": "^11.7.1"
33
35
  },
@@ -38,7 +40,7 @@
38
40
  "@af/accessibility-testing": "*",
39
41
  "@af/integration-testing": "*",
40
42
  "@af/visual-regression": "*",
41
- "@atlaskit/ds-lib": "^2.6.0",
43
+ "@atlaskit/ds-lib": "^3.2.0",
42
44
  "@atlaskit/ssr": "*",
43
45
  "@atlaskit/visual-regression": "*",
44
46
  "@testing-library/react": "^12.1.5",