fumadocs-ui 16.14.2 → 16.14.4
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/dist/components/image-zoom.d.ts +2 -2
- package/dist/components/image-zoom.js +1 -1
- package/dist/components/toc/index.js +1 -1
- package/dist/layouts/home/slots/header.d.ts +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/controlled.d.ts +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/controlled.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/uncontrolled.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +5 -3
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +5 -3
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +1 -1
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +1 -1
- package/package.json +10 -10
- /package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.8_react-dom@19.2.8_react@19.2.8__react@19.2.8 → react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/react-medium-image-zoom/dist/index.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UncontrolledProps } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
2
|
-
import "../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
1
|
+
import { UncontrolledProps } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
|
|
2
|
+
import "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/index.js";
|
|
3
3
|
import { ImageProps } from "fumadocs-core/framework";
|
|
4
4
|
import { ComponentProps } from "react";
|
|
5
5
|
//#region src/components/image-zoom.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
2
|
+
import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
|
|
3
3
|
import "./image-zoom2.css";
|
|
4
4
|
import { Image } from "fumadocs-core/framework";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -33,7 +33,7 @@ function TOCScrollArea({ ref, className, ...props }) {
|
|
|
33
33
|
const viewRef = useRef(null);
|
|
34
34
|
return /* @__PURE__ */ jsx("div", {
|
|
35
35
|
ref: mergeRefs(viewRef, ref),
|
|
36
|
-
className: cn("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3", className),
|
|
36
|
+
className: cn("relative min-h-0 text-sm ms-px overflow-auto overscroll-contain [scrollbar-width:none] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3", className),
|
|
37
37
|
...props,
|
|
38
38
|
children: /* @__PURE__ */ jsx(Primitive.ScrollProvider, {
|
|
39
39
|
containerRef: viewRef,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
//#region src/layouts/home/slots/header.d.ts
|
|
3
3
|
declare const navItemVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "icon" | "main" | "button" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Header(props: ComponentProps<'header'>): string | number | bigint | true | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
|
|
7
7
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
2
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.d.ts
|
|
3
3
|
type ModalState = 'LOADED' | 'LOADING' | 'UNLOADED' | 'UNLOADING';
|
|
4
4
|
interface ControlledProps {
|
|
5
5
|
a11yNameButtonUnzoom?: string;
|
|
@@ -6,7 +6,7 @@ import { getStyleGhost } from "./utils/get-style-ghost.js";
|
|
|
6
6
|
import { getStyleModalImg } from "./utils/get-style-modal-img.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import ReactDOM from "react-dom";
|
|
9
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
9
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/controlled.js
|
|
10
10
|
const IMAGE_QUERY = [
|
|
11
11
|
"img",
|
|
12
12
|
"svg",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ControlledProps } from "./controlled.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
3
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts
|
|
4
4
|
type UncontrolledProps = Omit<ControlledProps, 'isZoomed'>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { UncontrolledProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Controlled } from "./controlled.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
3
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/uncontrolled.js
|
|
4
4
|
function Uncontrolled({ onZoomChange, ...props }) {
|
|
5
5
|
const [isZoomed, setIsZoomed] = React.useState(false);
|
|
6
6
|
const handleZoomChange = React.useCallback((value, { event }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js
|
|
2
2
|
const adjustSvgIDs = (svgEl) => {
|
|
3
3
|
const newIdSuffix = "-zoom";
|
|
4
4
|
const attrs = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getScale } from "./get-scale.js";
|
|
2
2
|
import { parsePosition } from "./parse-position.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
3
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js
|
|
4
4
|
const computePositionedStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, position, targetHeight, targetWidth, visibleHeight, visibleWidth }) => {
|
|
5
5
|
const [posLeft = "50%", posTop = "50%"] = position.split(" ");
|
|
6
6
|
const posX = parsePosition(posLeft, containerWidth - visibleWidth);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/element-tests.js
|
|
2
2
|
function isElement(el) {
|
|
3
3
|
if (typeof Element === "undefined") return false;
|
|
4
4
|
return el instanceof Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parsePosition } from "./parse-position.js";
|
|
2
2
|
import { computePositionedStyle } from "./compute-positioned-style.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
3
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js
|
|
4
4
|
const getDivImgStyle = ({ backgroundPosition, backgroundSize, containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
|
|
5
5
|
const base = {
|
|
6
6
|
containerHeight,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { testImg } from "./element-tests.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
2
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js
|
|
3
3
|
const getImgAlt = (imgEl) => {
|
|
4
|
-
if (imgEl !== null)
|
|
5
|
-
|
|
4
|
+
if (imgEl !== null) {
|
|
5
|
+
if (testImg(imgEl)) return imgEl.alt;
|
|
6
|
+
else return imgEl.getAttribute("aria-label") ?? void 0;
|
|
7
|
+
}
|
|
6
8
|
};
|
|
7
9
|
//#endregion
|
|
8
10
|
export { getImgAlt };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { getScale } from "./get-scale.js";
|
|
2
2
|
import { computePositionedStyle } from "./compute-positioned-style.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
3
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js
|
|
4
4
|
const getImgObjectFitStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, objectFit: objectFitParam, objectPosition, offset, targetHeight, targetWidth }) => {
|
|
5
5
|
let resolvedObjectFit = objectFitParam;
|
|
6
|
-
if (resolvedObjectFit === "scale-down")
|
|
7
|
-
|
|
6
|
+
if (resolvedObjectFit === "scale-down") {
|
|
7
|
+
if (targetWidth <= containerWidth && targetHeight <= containerHeight) resolvedObjectFit = "none";
|
|
8
|
+
else resolvedObjectFit = "contain";
|
|
9
|
+
}
|
|
8
10
|
const base = {
|
|
9
11
|
containerHeight,
|
|
10
12
|
containerLeft,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getScale } from "./get-scale.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
2
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js
|
|
3
3
|
const getImgRegularStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
|
|
4
4
|
const scale = getScale({
|
|
5
5
|
containerHeight,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { testDiv, testImg } from "./element-tests.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
2
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js
|
|
3
3
|
const URL_REGEX = /url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/;
|
|
4
4
|
const getImgSrc = (imgEl) => {
|
|
5
5
|
if (imgEl !== null) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
|
|
2
2
|
const getModalImgTransform = ({ height, initialTransform, isZoomed, left, top, userTransform, width }) => {
|
|
3
3
|
let centeredUserTransform = "";
|
|
4
4
|
if (userTransform !== "none" && userTransform !== "") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
|
|
2
2
|
const getScaleToWindow = ({ height, offset, width }) => Math.min((window.innerWidth - offset * 2) / width, (window.innerHeight - offset * 2) / height);
|
|
3
3
|
const getScaleToWindowMax = ({ containerHeight, containerWidth, offset, targetHeight, targetWidth }) => {
|
|
4
4
|
const scale = getScaleToWindow({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { testSvg } from "./element-tests.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
2
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
|
|
3
3
|
const getStyleGhost = (imgEl) => {
|
|
4
4
|
if (imgEl == null) return {};
|
|
5
5
|
if (testSvg(imgEl)) {
|
|
@@ -5,7 +5,7 @@ import { getDivImgStyle } from "./get-div-img-style.js";
|
|
|
5
5
|
import { getModalImgTransform } from "./get-modal-img-transform.js";
|
|
6
6
|
import { getTargetDimension } from "./get-target-dimension.js";
|
|
7
7
|
import { testHasScalableSrc } from "./test-has-scalable-src.js";
|
|
8
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
8
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
|
|
9
9
|
const getStyleModalImg = ({ hasZoomImg, imgSrc, isSvg, isZoomed, loadedImgEl, offset, shouldRefresh, targetEl }) => {
|
|
10
10
|
const hasScalableSrc = testHasScalableSrc({
|
|
11
11
|
hasZoomImg,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
|
|
2
2
|
const getTargetDimension = ({ fallback, natural }) => natural !== void 0 && natural !== 0 ? natural : fallback;
|
|
3
3
|
//#endregion
|
|
4
4
|
export { getTargetDimension };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
|
|
2
2
|
const parsePosition = (position, relativeNum) => {
|
|
3
3
|
const positionNum = parseFloat(position);
|
|
4
4
|
return position.endsWith("%") ? relativeNum * positionNum / 100 : positionNum;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.
|
|
1
|
+
//#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
|
|
2
2
|
const SRC_SVG_REGEX = /\.svg$/i;
|
|
3
3
|
const testHasScalableSrc = ({ hasZoomImg, imgSrc, isSvg }) => isSvg || imgSrc?.slice(0, 18) === "data:image/svg+xml" || hasZoomImg || imgSrc !== void 0 && SRC_SVG_REGEX.test(imgSrc);
|
|
4
4
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "16.14.
|
|
3
|
+
"version": "16.14.4",
|
|
4
4
|
"description": "The Radix UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -147,13 +147,13 @@
|
|
|
147
147
|
"@radix-ui/react-tabs": "^1.1.21",
|
|
148
148
|
"class-variance-authority": "^0.7.1",
|
|
149
149
|
"cnfast": "^0.1.0",
|
|
150
|
-
"lucide-react": "^1.
|
|
151
|
-
"motion": "^
|
|
150
|
+
"lucide-react": "^1.31.0",
|
|
151
|
+
"motion": "^13.1.0",
|
|
152
152
|
"next-themes": "^0.4.6",
|
|
153
153
|
"react-remove-scroll": "^2.7.2",
|
|
154
154
|
"rehype-raw": "^7.0.0",
|
|
155
155
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
156
|
-
"shiki": "^4.4.
|
|
156
|
+
"shiki": "^4.4.3",
|
|
157
157
|
"unist-util-visit": "^5.1.0",
|
|
158
158
|
"@fumadocs/tailwind": "0.1.1"
|
|
159
159
|
},
|
|
@@ -163,17 +163,17 @@
|
|
|
163
163
|
"@tsdown/css": "^0.22.14",
|
|
164
164
|
"@types/hast": "^3.0.5",
|
|
165
165
|
"@types/mdx": "^2.0.14",
|
|
166
|
-
"@types/node": "^26.
|
|
166
|
+
"@types/node": "^26.2.0",
|
|
167
167
|
"@types/react": "^19.2.18",
|
|
168
168
|
"@types/react-dom": "^19.2.4",
|
|
169
169
|
"fuma-cli": "^0.1.1",
|
|
170
|
-
"react-medium-image-zoom": "^5.4.
|
|
170
|
+
"react-medium-image-zoom": "^5.4.9",
|
|
171
171
|
"tailwindcss": "^4.3.3",
|
|
172
172
|
"tsdown": "0.22.14",
|
|
173
173
|
"unified": "^11.0.5",
|
|
174
174
|
"@fumadocs/cli": "1.4.1",
|
|
175
|
-
"
|
|
176
|
-
"
|
|
175
|
+
"fumadocs-core": "16.14.4",
|
|
176
|
+
"tsconfig": "0.0.0"
|
|
177
177
|
},
|
|
178
178
|
"peerDependencies": {
|
|
179
179
|
"@types/mdx": "*",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"react": "^19.2.0",
|
|
183
183
|
"react-dom": "^19.2.0",
|
|
184
184
|
"takumi-js": "*",
|
|
185
|
-
"fumadocs-core": "16.14.
|
|
185
|
+
"fumadocs-core": "16.14.4"
|
|
186
186
|
},
|
|
187
187
|
"peerDependenciesMeta": {
|
|
188
188
|
"next": {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
201
|
"inlinedDependencies": {
|
|
202
|
-
"react-medium-image-zoom": "5.4.
|
|
202
|
+
"react-medium-image-zoom": "5.4.9"
|
|
203
203
|
},
|
|
204
204
|
"scripts": {
|
|
205
205
|
"build": "tsdown",
|