@atlaskit/image 3.1.0 → 4.0.0

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,31 @@
1
1
  # @atlaskit/image
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 3.1.0
4
30
 
5
31
  ### 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.0",
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,8 @@
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": "^14.0.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@compiled/react": "^0.20.0"
38
38
  },
@@ -43,10 +43,10 @@
43
43
  "@af/accessibility-testing": "workspace:^",
44
44
  "@af/integration-testing": "workspace:^",
45
45
  "@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",
46
+ "@atlaskit/docs": "^12.0.0",
47
+ "@atlaskit/link": "^4.0.0",
48
+ "@atlaskit/primitives": "^20.0.0",
49
+ "@atlaskit/section-message": "^9.0.0",
50
50
  "@atlassian/react-compiler-gating": "workspace:^",
51
51
  "@atlassian/ssr-tests": "workspace:^",
52
52
  "@atlassian/structured-docs-types": "workspace:^",
@@ -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 {};