@types/react-medium-image-zoom 3.0.2 → 5.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.
@@ -1,56 +1,3 @@
|
|
1
|
-
|
2
|
-
> `npm install --save @types/react-medium-image-zoom`
|
3
|
-
|
4
|
-
# Summary
|
5
|
-
This package contains type definitions for react-medium-image-zoom (https://github.com/rpearce/react-medium-image-zoom#readme).
|
6
|
-
|
7
|
-
# Details
|
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";
|
1
|
+
This is a stub types definition for @types/react-medium-image-zoom (https://github.com/rpearce/react-medium-image-zoom).
|
12
2
|
|
13
|
-
|
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> {}
|
48
|
-
|
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)
|
54
|
-
|
55
|
-
# Credits
|
56
|
-
These definitions were written by [James Bellamy](https://github.com/james-ff).
|
3
|
+
react-medium-image-zoom provides its own type definitions, so you don't need @types/react-medium-image-zoom installed!
|
@@ -1,27 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react-medium-image-zoom",
|
3
|
-
"version": "
|
4
|
-
"description": "TypeScript definitions for react-medium-image-zoom",
|
5
|
-
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-medium-image-zoom",
|
6
|
-
"license": "MIT",
|
7
|
-
"contributors": [
|
8
|
-
{
|
9
|
-
"name": "James Bellamy",
|
10
|
-
"githubUsername": "james-ff",
|
11
|
-
"url": "https://github.com/james-ff"
|
12
|
-
}
|
13
|
-
],
|
3
|
+
"version": "5.0.0",
|
4
|
+
"description": "Stub TypeScript definitions entry for react-medium-image-zoom, which provides its own types definitions",
|
14
5
|
"main": "",
|
15
|
-
"types": "index.d.ts",
|
16
|
-
"repository": {
|
17
|
-
"type": "git",
|
18
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
19
|
-
"directory": "types/react-medium-image-zoom"
|
20
|
-
},
|
21
6
|
"scripts": {},
|
7
|
+
"license": "MIT",
|
22
8
|
"dependencies": {
|
23
|
-
"
|
9
|
+
"react-medium-image-zoom": "*"
|
24
10
|
},
|
25
|
-
"
|
26
|
-
"typeScriptVersion": "4.5"
|
11
|
+
"deprecated": "This is a stub types definition. react-medium-image-zoom provides its own type definitions, so you do not need this installed."
|
27
12
|
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import * as React from "react";
|
2
|
-
|
3
|
-
export interface ImageZoom_Image {
|
4
|
-
src: string;
|
5
|
-
alt?: string | undefined;
|
6
|
-
className?: string | undefined;
|
7
|
-
style?: object | undefined;
|
8
|
-
}
|
9
|
-
|
10
|
-
export interface ImageZoom_ZoomImage {
|
11
|
-
src?: string | undefined;
|
12
|
-
alt?: string | undefined;
|
13
|
-
className?: string | undefined;
|
14
|
-
style?: object | undefined;
|
15
|
-
}
|
16
|
-
|
17
|
-
export interface ImageZoomDefaultStyles {
|
18
|
-
zoomContainer?: object | undefined;
|
19
|
-
overlay?: object | undefined;
|
20
|
-
image?: object | undefined;
|
21
|
-
zoomImage?: object | undefined;
|
22
|
-
}
|
23
|
-
|
24
|
-
export interface ImageZoomProps {
|
25
|
-
image: ImageZoom_Image;
|
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;
|
35
|
-
}
|
36
|
-
|
37
|
-
export default class ImageZoom extends React.Component<ImageZoomProps, any> {}
|