fumadocs-ui 13.4.9 → 13.4.10
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,12 +1,17 @@
|
|
|
1
1
|
import { ImageProps } from 'next/image';
|
|
2
2
|
import { ImgHTMLAttributes } from 'react';
|
|
3
|
+
import { UncontrolledProps } from 'react-medium-image-zoom';
|
|
3
4
|
|
|
4
5
|
type ImageZoomProps = ImageProps & {
|
|
5
6
|
/**
|
|
6
7
|
* Image props when zoom in
|
|
7
8
|
*/
|
|
8
9
|
zoomInProps?: ImgHTMLAttributes<HTMLImageElement>;
|
|
10
|
+
/**
|
|
11
|
+
* Props for `react-medium-image-zoom`
|
|
12
|
+
*/
|
|
13
|
+
rmiz?: UncontrolledProps;
|
|
9
14
|
};
|
|
10
|
-
declare function ImageZoom({ zoomInProps, children, ...props }: ImageZoomProps): React.ReactElement;
|
|
15
|
+
declare function ImageZoom({ zoomInProps, children, rmiz, ...props }: ImageZoomProps): React.ReactElement;
|
|
11
16
|
|
|
12
17
|
export { ImageZoom, type ImageZoomProps };
|
|
@@ -17,6 +17,7 @@ function getImageSrc(src) {
|
|
|
17
17
|
function ImageZoom({
|
|
18
18
|
zoomInProps,
|
|
19
19
|
children,
|
|
20
|
+
rmiz,
|
|
20
21
|
...props
|
|
21
22
|
}) {
|
|
22
23
|
return /* @__PURE__ */ jsx(
|
|
@@ -24,6 +25,7 @@ function ImageZoom({
|
|
|
24
25
|
{
|
|
25
26
|
zoomMargin: 20,
|
|
26
27
|
wrapElement: "span",
|
|
28
|
+
...rmiz,
|
|
27
29
|
zoomImg: {
|
|
28
30
|
src: getImageSrc(props.src),
|
|
29
31
|
sizes: void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.10",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"react-medium-image-zoom": "^5.2.9",
|
|
111
111
|
"swr": "^2.2.5",
|
|
112
112
|
"tailwind-merge": "^2.5.2",
|
|
113
|
-
"fumadocs-core": "13.4.
|
|
113
|
+
"fumadocs-core": "13.4.10"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@algolia/client-search": "^4.24.0",
|