@atlaskit/image 1.1.1 → 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,11 @@
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
+
3
9
  ## 1.1.1
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/image",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/image",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/image",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -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.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",