@atlaskit/image 3.1.0 → 4.0.1

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,40 @@
1
1
  # @atlaskit/image
2
2
 
3
+ ## 4.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
8
+ Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
9
+ gating.
10
+ - Updated dependencies
11
+
12
+ ## 4.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
17
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
18
+
19
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
20
+
21
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
22
+
23
+ ```diff
24
+ - "typesVersions": {
25
+ - ">=4.5 <4.9": {
26
+ - "*": [
27
+ - "dist/types-ts4.5/*",
28
+ - "dist/types-ts4.5/index.d.ts"
29
+ - ]
30
+ - }
31
+ - },
32
+ ```
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies
37
+
3
38
  ## 3.1.0
4
39
 
5
40
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/image",
3
- "version": "3.1.0",
3
+ "version": "4.0.1",
4
4
  "description": "An image that changes in light or dark themes.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,8 +31,9 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/app-provider": "^4.3.0",
35
- "@atlaskit/tokens": "^13.4.0",
34
+ "@atlaskit/app-provider": "^5.0.0",
35
+ "@atlaskit/tokens": "^15.0.0",
36
+ "@atlassian/react-compiler-gating": "^0.2.0",
36
37
  "@babel/runtime": "^7.0.0",
37
38
  "@compiled/react": "^0.20.0"
38
39
  },
@@ -43,11 +44,10 @@
43
44
  "@af/accessibility-testing": "workspace:^",
44
45
  "@af/integration-testing": "workspace:^",
45
46
  "@af/visual-regression": "workspace:^",
46
- "@atlaskit/docs": "^11.8.0",
47
- "@atlaskit/link": "^3.4.0",
48
- "@atlaskit/primitives": "^19.0.0",
49
- "@atlaskit/section-message": "^8.13.0",
50
- "@atlassian/react-compiler-gating": "workspace:^",
47
+ "@atlaskit/docs": "^12.0.0",
48
+ "@atlaskit/link": "^4.0.0",
49
+ "@atlaskit/primitives": "^20.0.0",
50
+ "@atlaskit/section-message": "^9.1.0",
51
51
  "@atlassian/ssr-tests": "workspace:^",
52
52
  "@atlassian/structured-docs-types": "workspace:^",
53
53
  "@testing-library/react": "^16.3.0",
@@ -91,13 +91,5 @@
91
91
  ]
92
92
  }
93
93
  },
94
- "homepage": "https://atlassian.design/components/image/",
95
- "typesVersions": {
96
- ">=4.5 <4.9": {
97
- "*": [
98
- "dist/types-ts4.5/*",
99
- "dist/types-ts4.5/index.d.ts"
100
- ]
101
- }
102
- }
94
+ "homepage": "https://atlassian.design/components/image/"
103
95
  }
@@ -1 +0,0 @@
1
- export { default } from './ui/image';
@@ -1,24 +0,0 @@
1
- interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
2
- /**
3
- * Image URL to use for dark mode. This overrides `src` when the user
4
- * has selected dark mode either in the app or on their operating system.
5
- */
6
- srcDark?: string;
7
- /**
8
- * A `testId` prop is provided for specified elements, which is a unique
9
- * string that appears as a data attribute `data-testid` in the rendered code,
10
- * serving as a hook for automated tests.
11
- */
12
- testId?: string;
13
- }
14
- /**
15
- * __Image__
16
- *
17
- * This component can be used interchangeably with the native `img` element. It includes additional functionality, such as theme support.
18
- *
19
- * - [Examples](https://atlassian.design/components/image/examples)
20
- * - [Code](https://atlassian.design/components/image/code)
21
- * - [Usage](https://atlassian.design/components/image/usage)
22
- */
23
- export default function Image({ src, srcDark, alt, testId, className, ...props }: ImageProps): JSX.Element;
24
- export {};