@atlaskit/image 1.1.0 → 1.1.2
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,17 @@
|
|
|
1
1
|
# @atlaskit/image
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
8
|
+
|
|
9
|
+
## 1.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
14
|
+
|
|
3
15
|
## 1.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ui/image';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Image URL to use for dark mode. This overrides `src` when the user
|
|
6
|
+
* has selected dark mode either in the app or on their operating system.
|
|
7
|
+
*/
|
|
8
|
+
srcDark?: string;
|
|
9
|
+
/**
|
|
10
|
+
* A `testId` prop is provided for specified elements, which is a unique
|
|
11
|
+
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
12
|
+
* serving as a hook for automated tests.
|
|
13
|
+
*/
|
|
14
|
+
testId?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* __Image__
|
|
18
|
+
*
|
|
19
|
+
* This component can be used interchangeably with the native `img` element. It includes additional functionality, such as theme support.
|
|
20
|
+
*
|
|
21
|
+
* - [Examples](https://atlassian.design/components/image/examples)
|
|
22
|
+
* - [Code](https://atlassian.design/components/image/code)
|
|
23
|
+
* - [Usage](https://atlassian.design/components/image/usage)
|
|
24
|
+
*/
|
|
25
|
+
export default function Image({ src, srcDark, alt, testId, ...props }: ImageProps): jsx.JSX.Element;
|
|
26
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/image",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "An image that changes in light or dark themes.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,13 +25,21 @@
|
|
|
25
25
|
"module": "dist/esm/index.js",
|
|
26
26
|
"module:es2019": "dist/es2019/index.js",
|
|
27
27
|
"types": "dist/types/index.d.ts",
|
|
28
|
+
"typesVersions": {
|
|
29
|
+
">=4.5 <4.9": {
|
|
30
|
+
"*": [
|
|
31
|
+
"dist/types-ts4.5/*",
|
|
32
|
+
"dist/types-ts4.5/index.d.ts"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
28
36
|
"sideEffects": false,
|
|
29
37
|
"atlaskit:src": "src/index.tsx",
|
|
30
38
|
"af:exports": {
|
|
31
39
|
".": "./src/index.tsx"
|
|
32
40
|
},
|
|
33
41
|
"dependencies": {
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
35
43
|
"@babel/runtime": "^7.0.0",
|
|
36
44
|
"@emotion/react": "^11.7.1"
|
|
37
45
|
},
|
|
@@ -48,7 +56,7 @@
|
|
|
48
56
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
49
57
|
"@testing-library/react": "^12.1.5",
|
|
50
58
|
"react-dom": "^16.8.0",
|
|
51
|
-
"typescript": "4.
|
|
59
|
+
"typescript": "~4.9.5",
|
|
52
60
|
"wait-for-expect": "^1.2.0"
|
|
53
61
|
},
|
|
54
62
|
"techstack": {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/image"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import { jsx } from '@emotion/react';
|
|
10
|
+
|
|
11
|
+
// @public
|
|
12
|
+
function Image_2({ src, srcDark, alt, testId, ...props }: ImageProps): jsx.JSX.Element;
|
|
13
|
+
export default Image_2;
|
|
14
|
+
|
|
15
|
+
// @public (undocumented)
|
|
16
|
+
interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
17
|
+
srcDark?: string;
|
|
18
|
+
testId?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// (No @packageDocumentation comment for this package)
|
|
22
|
+
|
|
23
|
+
```
|