@types/react-medium-image-zoom 3.0.0 → 3.0.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.
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -2,15 +2,55 @@
2
2
  > `npm install --save @types/react-medium-image-zoom`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for react-medium-image-zoom ( https://github.com/rpearce/react-medium-image-zoom#readme ).
5
+ This package contains type definitions for react-medium-image-zoom (https://github.com/rpearce/react-medium-image-zoom#readme).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-medium-image-zoom
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-medium-image-zoom.
9
+ ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-medium-image-zoom/index.d.ts)
10
+ ````ts
11
+ import * as React from "react";
12
+
13
+ export interface ImageZoom_Image {
14
+ src: string;
15
+ alt?: string | undefined;
16
+ className?: string | undefined;
17
+ style?: object | undefined;
18
+ }
19
+
20
+ export interface ImageZoom_ZoomImage {
21
+ src?: string | undefined;
22
+ alt?: string | undefined;
23
+ className?: string | undefined;
24
+ style?: object | undefined;
25
+ }
26
+
27
+ export interface ImageZoomDefaultStyles {
28
+ zoomContainer?: object | undefined;
29
+ overlay?: object | undefined;
30
+ image?: object | undefined;
31
+ zoomImage?: object | undefined;
32
+ }
33
+
34
+ export interface ImageZoomProps {
35
+ image: ImageZoom_Image;
36
+ zoomImage?: ImageZoom_ZoomImage | undefined;
37
+ zoomMargin?: number | undefined;
38
+ isZoomed?: boolean | undefined;
39
+ shouldHandleZoom?: (() => boolean) | undefined;
40
+ shouldReplaceImage?: boolean | undefined;
41
+ shouldRespectMaxDimension?: boolean | undefined;
42
+ defaultStyles?: ImageZoomDefaultStyles | undefined;
43
+ onZoom?: (() => object) | undefined;
44
+ onUnzoom?: (() => object) | undefined;
45
+ }
46
+
47
+ export default class ImageZoom extends React.Component<ImageZoomProps, any> {}
9
48
 
10
- Additional Details
11
- * Last updated: Fri, 15 Mar 2019 18:33:47 GMT
12
- * Dependencies: @types/react
13
- * Global values: none
49
+ ````
50
+
51
+ ### Additional Details
52
+ * Last updated: Wed, 18 Oct 2023 11:45:05 GMT
53
+ * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
14
54
 
15
55
  # Credits
16
- These definitions were written by James Bellamy <https://github.com/james-ff>.
56
+ These definitions were written by [James Bellamy](https://github.com/james-ff).
@@ -1,43 +1,37 @@
1
- // Type definitions for react-medium-image-zoom 3.0
2
- // Project: https://github.com/rpearce/react-medium-image-zoom#readme
3
- // Definitions by: James Bellamy <https://github.com/james-ff>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
- // TypeScript Version: 3.3
6
-
7
1
  import * as React from "react";
8
2
 
9
3
  export interface ImageZoom_Image {
10
4
  src: string;
11
- alt?: string;
12
- className?: string;
13
- style?: object;
5
+ alt?: string | undefined;
6
+ className?: string | undefined;
7
+ style?: object | undefined;
14
8
  }
15
9
 
16
10
  export interface ImageZoom_ZoomImage {
17
- src?: string;
18
- alt?: string;
19
- className?: string;
20
- style?: object;
11
+ src?: string | undefined;
12
+ alt?: string | undefined;
13
+ className?: string | undefined;
14
+ style?: object | undefined;
21
15
  }
22
16
 
23
17
  export interface ImageZoomDefaultStyles {
24
- zoomContainer?: object;
25
- overlay?: object;
26
- image?: object;
27
- zoomImage?: object;
18
+ zoomContainer?: object | undefined;
19
+ overlay?: object | undefined;
20
+ image?: object | undefined;
21
+ zoomImage?: object | undefined;
28
22
  }
29
23
 
30
24
  export interface ImageZoomProps {
31
25
  image: ImageZoom_Image;
32
- zoomImage?: ImageZoom_ZoomImage;
33
- zoomMargin?: number;
34
- isZoomed?: boolean;
35
- shouldHandleZoom?: () => boolean;
36
- shouldReplaceImage?: boolean;
37
- shouldRespectMaxDimension?: boolean;
38
- defaultStyles?: ImageZoomDefaultStyles;
39
- onZoom?: () => object;
40
- onUnzoom?: () => object;
26
+ zoomImage?: ImageZoom_ZoomImage | undefined;
27
+ zoomMargin?: number | undefined;
28
+ isZoomed?: boolean | undefined;
29
+ shouldHandleZoom?: (() => boolean) | undefined;
30
+ shouldReplaceImage?: boolean | undefined;
31
+ shouldRespectMaxDimension?: boolean | undefined;
32
+ defaultStyles?: ImageZoomDefaultStyles | undefined;
33
+ onZoom?: (() => object) | undefined;
34
+ onUnzoom?: (() => object) | undefined;
41
35
  }
42
36
 
43
37
  export default class ImageZoom extends React.Component<ImageZoomProps, any> {}
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@types/react-medium-image-zoom",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "TypeScript definitions for react-medium-image-zoom",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-medium-image-zoom",
5
6
  "license": "MIT",
6
7
  "contributors": [
7
8
  {
8
9
  "name": "James Bellamy",
9
- "url": "https://github.com/james-ff",
10
- "githubUsername": "james-ff"
10
+ "githubUsername": "james-ff",
11
+ "url": "https://github.com/james-ff"
11
12
  }
12
13
  ],
13
14
  "main": "",
14
- "types": "index",
15
+ "types": "index.d.ts",
15
16
  "repository": {
16
17
  "type": "git",
17
18
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -21,6 +22,6 @@
21
22
  "dependencies": {
22
23
  "@types/react": "*"
23
24
  },
24
- "typesPublisherContentHash": "02822114a3edeaf0cdf1a9b0e238fdc394d51b166e38f539be44696e31af7873",
25
- "typeScriptVersion": "3.3"
25
+ "typesPublisherContentHash": "0ac28ce785f70d1c2f86b336ddae8325701314b585658f0074facc8bd9de4b28",
26
+ "typeScriptVersion": "4.5"
26
27
  }