fumadocs-ui 16.10.0 → 16.10.1

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.
Files changed (26) hide show
  1. package/dist/components/image-zoom.d.ts +1 -1
  2. package/dist/components/image-zoom.js +1 -1
  3. package/dist/components/ui/button.d.ts +1 -1
  4. package/dist/i18n.js +2 -3
  5. package/dist/layouts/home/slots/header.d.ts +1 -1
  6. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/controlled.d.ts +1 -1
  7. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/controlled.js +1 -18
  8. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +1 -1
  9. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/uncontrolled.js +1 -1
  10. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +1 -1
  11. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +1 -1
  12. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +1 -1
  13. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +1 -1
  14. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +1 -1
  15. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +1 -1
  16. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +1 -1
  17. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +1 -1
  18. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +1 -1
  19. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +1 -1
  20. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +1 -1
  21. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +1 -1
  22. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +1 -1
  23. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +1 -1
  24. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +1 -1
  25. package/package.json +21 -21
  26. /package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7 → react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { UncontrolledProps } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
1
+ import { UncontrolledProps } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
2
2
  import { ImageProps } from "fumadocs-core/framework";
3
3
  import { ComponentProps } from "react";
4
4
 
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
2
+ import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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";
@@ -4,7 +4,7 @@ import { VariantProps } from "class-variance-authority";
4
4
  declare const buttonVariants: (props?: ({
5
5
  variant?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
6
6
  color?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
7
- size?: "sm" | "icon" | "icon-sm" | "icon-xs" | null | undefined;
7
+ size?: "icon" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  type ButtonProps = VariantProps<typeof buttonVariants>;
10
10
  //#endregion
package/dist/i18n.js CHANGED
@@ -8,13 +8,12 @@ function i18nProvider(translations, lang) {
8
8
  if ("config" in t) {
9
9
  const { defaultLanguage, languages } = t.config;
10
10
  const locale = lang ?? defaultLanguage;
11
- const values = t.get(locale) ?? t.get(defaultLanguage);
12
11
  return {
13
12
  locale: lang,
14
- translations: values,
13
+ translations: t.get(locale) ?? t.get(defaultLanguage),
15
14
  locales: languages.map((code) => ({
16
15
  locale: code,
17
- name: typeof values.displayName === "string" ? values.displayName : code
16
+ name: t.get(code).displayName ?? code
18
17
  }))
19
18
  };
20
19
  }
@@ -2,7 +2,7 @@ import { ComponentProps } from "react";
2
2
 
3
3
  //#region src/layouts/home/slots/header.d.ts
4
4
  declare const navItemVariants: (props?: ({
5
- variant?: "icon" | "button" | "main" | null | undefined;
5
+ variant?: "icon" | "main" | "button" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  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>;
8
8
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
 
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/controlled.d.ts
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/controlled.d.ts
4
4
  type ModalState = 'LOADED' | 'LOADING' | 'UNLOADED' | 'UNLOADING';
5
5
  interface ControlledProps {
6
6
  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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/controlled.js
9
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/controlled.js
10
10
  const IMAGE_QUERY = [
11
11
  "img",
12
12
  "svg",
@@ -15,8 +15,6 @@ const IMAGE_QUERY = [
15
15
  ].map((x) => `${x}:not([aria-hidden="true"])`).join(",");
16
16
  const defaultBodyAttrs = {
17
17
  overflow: "",
18
- position: "",
19
- top: "",
20
18
  width: ""
21
19
  };
22
20
  function getDialogContainer() {
@@ -52,7 +50,6 @@ var ControlledBase = class extends React.Component {
52
50
  this.imgEl = null;
53
51
  this.isScaling = false;
54
52
  this.prevBodyAttrs = defaultBodyAttrs;
55
- this.prevScrollY = 0;
56
53
  this.styleModalImg = {};
57
54
  this.handleModalStateChange = (prevModalState) => {
58
55
  const { state: { modalState } } = this;
@@ -257,32 +254,18 @@ var ControlledBase = class extends React.Component {
257
254
  const bodyStyle = document.body.style;
258
255
  this.prevBodyAttrs = {
259
256
  overflow: bodyStyle.overflow,
260
- position: bodyStyle.position,
261
- top: bodyStyle.top,
262
257
  width: bodyStyle.width
263
258
  };
264
- const scrollY = window.scrollY;
265
- this.prevScrollY = scrollY;
266
259
  const clientWidth = document.body.clientWidth;
267
260
  bodyStyle.overflow = "hidden";
268
- bodyStyle.position = "fixed";
269
- bodyStyle.top = `-${scrollY}px`;
270
261
  bodyStyle.width = `${clientWidth}px`;
271
262
  };
272
263
  this.bodyScrollEnable = () => {
273
264
  const bodyStyle = document.body.style;
274
265
  const prev = this.prevBodyAttrs;
275
266
  bodyStyle.width = prev.width;
276
- bodyStyle.position = prev.position;
277
- bodyStyle.top = prev.top;
278
267
  bodyStyle.overflow = prev.overflow;
279
- window.scrollTo({
280
- left: 0,
281
- top: this.prevScrollY,
282
- behavior: "instant"
283
- });
284
268
  this.prevBodyAttrs = defaultBodyAttrs;
285
- this.prevScrollY = 0;
286
269
  };
287
270
  this.loadZoomImg = () => {
288
271
  const { props: { zoomImg } } = this;
@@ -1,7 +1,7 @@
1
1
  import { ControlledProps } from "./controlled.js";
2
2
  import React from "react";
3
3
 
4
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts
4
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts
5
5
  type UncontrolledProps = Omit<ControlledProps, 'isZoomed'>;
6
6
  //#endregion
7
7
  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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/uncontrolled.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/element-tests.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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,5 +1,5 @@
1
1
  import { testImg } from "./element-tests.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js
3
3
  const getImgAlt = (imgEl) => {
4
4
  if (imgEl !== null) if (testImg(imgEl)) return imgEl.alt;
5
5
  else return imgEl.getAttribute("aria-label") ?? void 0;
@@ -1,6 +1,6 @@
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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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
6
  if (resolvedObjectFit === "scale-down") if (targetWidth <= containerWidth && targetHeight <= containerHeight) resolvedObjectFit = "none";
@@ -1,5 +1,5 @@
1
1
  import { getScale } from "./get-scale.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
8
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.6_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.7_react-dom@19.2.7_react@19.2.7__react@19.2.7/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.10.0",
3
+ "version": "16.10.1",
4
4
  "description": "The Radix UI version of Fumadocs UI",
5
5
  "keywords": [
6
6
  "Docs",
@@ -120,17 +120,17 @@
120
120
  "access": "public"
121
121
  },
122
122
  "dependencies": {
123
- "@fuma-translate/react": "^0.0.3",
124
- "@radix-ui/react-accordion": "^1.2.12",
125
- "@radix-ui/react-collapsible": "^1.1.12",
126
- "@radix-ui/react-dialog": "^1.1.15",
127
- "@radix-ui/react-direction": "^1.1.1",
128
- "@radix-ui/react-navigation-menu": "^1.2.14",
129
- "@radix-ui/react-popover": "^1.1.15",
130
- "@radix-ui/react-presence": "^1.1.5",
131
- "@radix-ui/react-scroll-area": "^1.2.10",
132
- "@radix-ui/react-slot": "^1.2.4",
133
- "@radix-ui/react-tabs": "^1.1.13",
123
+ "@fuma-translate/react": "^1.0.1",
124
+ "@radix-ui/react-accordion": "^1.2.13",
125
+ "@radix-ui/react-collapsible": "^1.1.13",
126
+ "@radix-ui/react-dialog": "^1.1.16",
127
+ "@radix-ui/react-direction": "^1.1.2",
128
+ "@radix-ui/react-navigation-menu": "^1.2.15",
129
+ "@radix-ui/react-popover": "^1.1.16",
130
+ "@radix-ui/react-presence": "^1.1.6",
131
+ "@radix-ui/react-scroll-area": "^1.2.11",
132
+ "@radix-ui/react-slot": "^1.2.5",
133
+ "@radix-ui/react-tabs": "^1.1.14",
134
134
  "class-variance-authority": "^0.7.1",
135
135
  "lucide-react": "^1.17.0",
136
136
  "motion": "^12.40.0",
@@ -146,19 +146,19 @@
146
146
  "devDependencies": {
147
147
  "@tailwindcss/cli": "^4.3.0",
148
148
  "@tailwindcss/oxide": "^4.3.0",
149
- "@tsdown/css": "^0.22.1",
149
+ "@tsdown/css": "^0.22.2",
150
150
  "@types/hast": "^3.0.4",
151
- "@types/mdx": "^2.0.13",
152
- "@types/node": "^25.9.1",
153
- "@types/react": "^19.2.16",
151
+ "@types/mdx": "^2.0.14",
152
+ "@types/node": "^25.9.2",
153
+ "@types/react": "^19.2.17",
154
154
  "@types/react-dom": "^19.2.3",
155
155
  "fuma-cli": "^0.1.1",
156
- "react-medium-image-zoom": "^5.4.6",
156
+ "react-medium-image-zoom": "^5.4.7",
157
157
  "tailwindcss": "^4.3.0",
158
- "tsdown": "0.22.1",
158
+ "tsdown": "0.22.2",
159
159
  "unified": "^11.0.5",
160
160
  "@fumadocs/cli": "1.3.10",
161
- "fumadocs-core": "16.10.0",
161
+ "fumadocs-core": "16.10.1",
162
162
  "tsconfig": "0.0.0"
163
163
  },
164
164
  "peerDependencies": {
@@ -168,7 +168,7 @@
168
168
  "next": "16.x.x",
169
169
  "react": "^19.2.0",
170
170
  "react-dom": "^19.2.0",
171
- "fumadocs-core": "16.10.0"
171
+ "fumadocs-core": "16.10.1"
172
172
  },
173
173
  "peerDependenciesMeta": {
174
174
  "next": {
@@ -185,7 +185,7 @@
185
185
  }
186
186
  },
187
187
  "inlinedDependencies": {
188
- "react-medium-image-zoom": "5.4.6"
188
+ "react-medium-image-zoom": "5.4.7"
189
189
  },
190
190
  "scripts": {
191
191
  "build": "pnpm build:layout && pnpm build:tailwind",