@fumadocs/base-ui 16.9.3 → 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.
- package/css/generated/docs.css +1 -234
- package/css/generated/flux.css +1 -162
- package/css/generated/home.css +1 -65
- package/css/generated/notebook.css +1 -258
- package/css/generated/shared.css +1 -1189
- package/dist/.translations/index.d.ts +49 -0
- package/dist/.translations/keys.js +49 -0
- package/dist/components/accordion.d.ts +2 -3
- package/dist/components/accordion.js +3 -3
- package/dist/components/banner.d.ts +1 -2
- package/dist/components/banner.js +3 -3
- package/dist/components/callout.d.ts +4 -5
- package/dist/components/card.d.ts +2 -3
- package/dist/components/codeblock.d.ts +6 -7
- package/dist/components/codeblock.js +3 -3
- package/dist/components/codeblock.rsc.d.ts +1 -2
- package/dist/components/dialog/search-algolia.d.ts +1 -2
- package/dist/components/dialog/search-default.d.ts +1 -2
- package/dist/components/dialog/search-orama.d.ts +1 -2
- package/dist/components/dialog/search.d.ts +12 -13
- package/dist/components/dialog/search.js +13 -10
- package/dist/components/dynamic-codeblock.core.d.ts +1 -2
- package/dist/components/dynamic-codeblock.d.ts +1 -2
- package/dist/components/github-info.d.ts +1 -2
- package/dist/components/heading.d.ts +1 -2
- package/dist/components/heading.js +3 -3
- package/dist/components/image-zoom.d.ts +2 -3
- package/dist/components/image-zoom.js +1 -1
- package/dist/components/inline-toc.d.ts +1 -2
- package/dist/components/inline-toc.js +3 -3
- package/dist/components/sidebar/base.d.ts +13 -15
- package/dist/components/sidebar/base.js +3 -3
- package/dist/components/sidebar/link-item.d.ts +1 -2
- package/dist/components/sidebar/page-tree.d.ts +1 -2
- package/dist/components/sidebar/tabs/dropdown.d.ts +1 -2
- package/dist/components/steps.d.ts +2 -3
- package/dist/components/tabs.d.ts +5 -6
- package/dist/components/toc/clerk.d.ts +3 -4
- package/dist/components/toc/clerk.js +2 -2
- package/dist/components/toc/default.d.ts +3 -4
- package/dist/components/toc/default.js +2 -2
- package/dist/components/toc/index.d.ts +2 -3
- package/dist/components/type-table.d.ts +1 -2
- package/dist/components/type-table.js +9 -9
- package/dist/components/ui/accordion.d.ts +5 -6
- package/dist/components/ui/button.d.ts +1 -2
- package/dist/components/ui/collapsible.d.ts +3 -6
- package/dist/components/ui/navigation-menu.d.ts +6 -8
- package/dist/components/ui/popover.d.ts +2 -4
- package/dist/components/ui/scroll-area.d.ts +3 -4
- package/dist/components/ui/tabs.d.ts +4 -7
- package/dist/contexts/i18n.d.ts +5 -30
- package/dist/contexts/i18n.js +10 -22
- package/dist/contexts/search.d.ts +1 -2
- package/dist/contexts/tree.d.ts +1 -2
- package/dist/i18n.d.ts +9 -63
- package/dist/i18n.js +22 -70
- package/dist/layouts/docs/index.d.ts +1 -2
- package/dist/layouts/docs/page/index.d.ts +6 -7
- package/dist/layouts/docs/page/index.js +5 -4
- package/dist/layouts/docs/page/slots/breadcrumb.d.ts +1 -2
- package/dist/layouts/docs/page/slots/container.d.ts +1 -2
- package/dist/layouts/docs/page/slots/footer.d.ts +1 -2
- package/dist/layouts/docs/page/slots/footer.js +3 -3
- package/dist/layouts/docs/page/slots/toc.d.ts +3 -4
- package/dist/layouts/docs/page/slots/toc.js +5 -4
- package/dist/layouts/docs/slots/container.d.ts +1 -2
- package/dist/layouts/docs/slots/header.d.ts +1 -3
- package/dist/layouts/docs/slots/sidebar.d.ts +3 -4
- package/dist/layouts/flux/index.d.ts +3 -4
- package/dist/layouts/flux/page/index.d.ts +6 -7
- package/dist/layouts/flux/page/index.js +5 -4
- package/dist/layouts/flux/page/slots/breadcrumb.d.ts +1 -2
- package/dist/layouts/flux/page/slots/container.d.ts +1 -2
- package/dist/layouts/flux/page/slots/footer.d.ts +1 -2
- package/dist/layouts/flux/page/slots/footer.js +3 -3
- package/dist/layouts/flux/page/slots/toc.d.ts +1 -2
- package/dist/layouts/flux/page/slots/toc.js +3 -3
- package/dist/layouts/flux/slots/container.d.ts +1 -2
- package/dist/layouts/flux/slots/sidebar.d.ts +3 -4
- package/dist/layouts/flux/slots/tab-dropdown.d.ts +1 -2
- package/dist/layouts/home/index.d.ts +1 -2
- package/dist/layouts/home/navbar.d.ts +3 -4
- package/dist/layouts/home/not-found.d.ts +1 -3
- package/dist/layouts/home/not-found.js +6 -4
- package/dist/layouts/home/slots/container.d.ts +1 -2
- package/dist/layouts/home/slots/header.d.ts +2 -4
- package/dist/layouts/home/slots/header.js +3 -3
- package/dist/layouts/notebook/index.d.ts +1 -2
- package/dist/layouts/notebook/page/index.d.ts +6 -7
- package/dist/layouts/notebook/page/index.js +5 -4
- package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +1 -2
- package/dist/layouts/notebook/page/slots/container.d.ts +1 -2
- package/dist/layouts/notebook/page/slots/footer.d.ts +1 -2
- package/dist/layouts/notebook/page/slots/footer.js +3 -3
- package/dist/layouts/notebook/page/slots/toc.d.ts +3 -4
- package/dist/layouts/notebook/page/slots/toc.js +5 -4
- package/dist/layouts/notebook/slots/container.d.ts +1 -2
- package/dist/layouts/notebook/slots/header.d.ts +1 -3
- package/dist/layouts/notebook/slots/sidebar.d.ts +5 -6
- package/dist/layouts/shared/client.d.ts +1 -2
- package/dist/layouts/shared/index.d.ts +1 -1
- package/dist/layouts/shared/page-actions.d.ts +2 -3
- package/dist/layouts/shared/page-actions.js +12 -13
- package/dist/layouts/shared/slots/language-select.d.ts +1 -2
- package/dist/layouts/shared/slots/language-select.js +5 -2
- package/dist/layouts/shared/slots/search-trigger.d.ts +2 -3
- package/dist/layouts/shared/slots/search-trigger.js +5 -5
- package/dist/layouts/shared/slots/theme-switch.d.ts +1 -2
- package/dist/layouts/shared/slots/theme-switch.js +43 -30
- package/dist/mdx.d.ts +9 -10
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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 -14
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
- package/dist/og/takumi.d.ts +1 -2
- package/dist/og.d.ts +1 -2
- package/dist/page.d.ts +2 -3
- package/dist/provider/base.d.ts +1 -2
- package/dist/provider/next.d.ts +1 -2
- package/dist/provider/react-router.d.ts +1 -2
- package/dist/provider/tanstack.d.ts +1 -2
- package/dist/provider/waku.d.ts +1 -2
- package/dist/style.css +3 -0
- package/package.json +12 -11
- /package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → 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
|
@@ -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.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,28 +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(0, this.prevScrollY);
|
|
280
268
|
this.prevBodyAttrs = defaultBodyAttrs;
|
|
281
|
-
this.prevScrollY = 0;
|
|
282
269
|
};
|
|
283
270
|
this.loadZoomImg = () => {
|
|
284
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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/dist/og/takumi.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { ReactNode } from "react";
|
|
3
2
|
import { ImageResponse, ImageResponseOptions } from "@takumi-rs/image-response";
|
|
4
3
|
|
|
@@ -17,6 +16,6 @@ declare function generate({
|
|
|
17
16
|
primaryTextColor,
|
|
18
17
|
icon,
|
|
19
18
|
...props
|
|
20
|
-
}: GenerateProps):
|
|
19
|
+
}: GenerateProps): import("react").JSX.Element;
|
|
21
20
|
//#endregion
|
|
22
21
|
export { GenerateProps, generate, generateOGImage };
|
package/dist/og.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
1
|
import { ReactNode } from "react";
|
|
3
2
|
import { ImageResponse } from "next/og.js";
|
|
4
3
|
import { ImageResponseOptions } from "next/dist/compiled/@vercel/og/types";
|
|
@@ -18,6 +17,6 @@ declare function generate({
|
|
|
18
17
|
primaryTextColor,
|
|
19
18
|
icon,
|
|
20
19
|
...props
|
|
21
|
-
}: GenerateProps):
|
|
20
|
+
}: GenerateProps): import("react").JSX.Element;
|
|
22
21
|
//#endregion
|
|
23
22
|
export { generate, generateOGImage };
|
package/dist/page.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Breadcrumb } from "./layouts/docs/page/slots/breadcrumb.js";
|
|
2
2
|
import { DocsBody, DocsDescription, DocsPageProps as DocsPageProps$1, DocsTitle, EditOnGitHub, PageLastUpdate } from "./layouts/docs/page/index.js";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/page.d.ts
|
|
@@ -25,12 +24,12 @@ interface DocsPageProps extends DocsPageProps$1 {
|
|
|
25
24
|
/**
|
|
26
25
|
* For separate MDX page
|
|
27
26
|
*/
|
|
28
|
-
declare function withArticle(props: ComponentProps<'main'>):
|
|
27
|
+
declare function withArticle(props: ComponentProps<'main'>): import("react").JSX.Element;
|
|
29
28
|
declare function DocsPage({
|
|
30
29
|
lastUpdate,
|
|
31
30
|
editOnGithub,
|
|
32
31
|
children,
|
|
33
32
|
...props
|
|
34
|
-
}: DocsPageProps):
|
|
33
|
+
}: DocsPageProps): import("react").JSX.Element;
|
|
35
34
|
//#endregion
|
|
36
35
|
export { DocsBody, DocsDescription, DocsPage, DocsPageProps, DocsTitle, EditOnGitHub, Breadcrumb as PageBreadcrumb, PageLastUpdate, withArticle };
|
package/dist/provider/base.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SearchProviderProps } from "../contexts/search.js";
|
|
2
2
|
import { DefaultSearchDialogProps } from "../components/dialog/search-default.js";
|
|
3
3
|
import { I18nProviderProps } from "../contexts/i18n.js";
|
|
4
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
4
|
import { ReactNode } from "react";
|
|
6
5
|
import { ThemeProviderProps, UseThemeProps, useTheme } from "next-themes";
|
|
7
6
|
|
|
@@ -45,6 +44,6 @@ declare function RootProvider({
|
|
|
45
44
|
theme,
|
|
46
45
|
search,
|
|
47
46
|
i18n
|
|
48
|
-
}: RootProviderProps):
|
|
47
|
+
}: RootProviderProps): import("react").JSX.Element;
|
|
49
48
|
//#endregion
|
|
50
49
|
export { RootProvider, RootProviderProps, type UseThemeProps, useTheme };
|
package/dist/provider/next.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
2
|
import { Framework } from "fumadocs-core/framework";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/provider/next.d.ts
|
|
@@ -16,6 +15,6 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
15
|
declare function RootProvider({
|
|
17
16
|
components,
|
|
18
17
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
18
|
+
}: RootProviderProps): import("react").JSX.Element;
|
|
20
19
|
//#endregion
|
|
21
20
|
export { RootProvider, RootProviderProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
2
|
import { Framework } from "fumadocs-core/framework";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/provider/react-router.d.ts
|
|
@@ -16,6 +15,6 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
15
|
declare function RootProvider({
|
|
17
16
|
components,
|
|
18
17
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
18
|
+
}: RootProviderProps): import("react").JSX.Element;
|
|
20
19
|
//#endregion
|
|
21
20
|
export { RootProvider, RootProviderProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
2
|
import { Framework } from "fumadocs-core/framework";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/provider/tanstack.d.ts
|
|
@@ -16,6 +15,6 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
15
|
declare function RootProvider({
|
|
17
16
|
components,
|
|
18
17
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
18
|
+
}: RootProviderProps): import("react").JSX.Element;
|
|
20
19
|
//#endregion
|
|
21
20
|
export { RootProvider, RootProviderProps };
|
package/dist/provider/waku.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RootProvider as RootProvider$1 } from "./base.js";
|
|
2
2
|
import { Framework } from "fumadocs-core/framework";
|
|
3
|
-
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/provider/waku.d.ts
|
|
@@ -16,6 +15,6 @@ interface RootProviderProps extends ComponentProps<typeof RootProvider$1> {
|
|
|
16
15
|
declare function RootProvider({
|
|
17
16
|
components,
|
|
18
17
|
...props
|
|
19
|
-
}: RootProviderProps):
|
|
18
|
+
}: RootProviderProps): import("react").JSX.Element;
|
|
20
19
|
//#endregion
|
|
21
20
|
export { RootProvider, RootProviderProps };
|
package/dist/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fumadocs/base-ui",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.10.1",
|
|
4
4
|
"description": "The Base UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
119
|
"@base-ui/react": "^1.5.0",
|
|
120
|
+
"@fuma-translate/react": "^1.0.1",
|
|
120
121
|
"class-variance-authority": "^0.7.1",
|
|
121
122
|
"lucide-react": "^1.17.0",
|
|
122
123
|
"motion": "^12.40.0",
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
"react-remove-scroll": "^2.7.2",
|
|
125
126
|
"rehype-raw": "^7.0.0",
|
|
126
127
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
127
|
-
"shiki": "^4.
|
|
128
|
+
"shiki": "^4.2.0",
|
|
128
129
|
"tailwind-merge": "^3.6.0",
|
|
129
130
|
"unist-util-visit": "^5.1.0",
|
|
130
131
|
"@fumadocs/tailwind": "0.0.5"
|
|
@@ -132,19 +133,19 @@
|
|
|
132
133
|
"devDependencies": {
|
|
133
134
|
"@tailwindcss/cli": "^4.3.0",
|
|
134
135
|
"@tailwindcss/oxide": "^4.3.0",
|
|
135
|
-
"@tsdown/css": "^0.22.
|
|
136
|
+
"@tsdown/css": "^0.22.2",
|
|
136
137
|
"@types/hast": "^3.0.4",
|
|
137
|
-
"@types/mdx": "^2.0.
|
|
138
|
-
"@types/node": "^25.9.
|
|
139
|
-
"@types/react": "^19.2.
|
|
138
|
+
"@types/mdx": "^2.0.14",
|
|
139
|
+
"@types/node": "^25.9.2",
|
|
140
|
+
"@types/react": "^19.2.17",
|
|
140
141
|
"@types/react-dom": "^19.2.3",
|
|
141
142
|
"fuma-cli": "^0.1.1",
|
|
142
|
-
"react-medium-image-zoom": "^5.4.
|
|
143
|
+
"react-medium-image-zoom": "^5.4.7",
|
|
143
144
|
"tailwindcss": "^4.3.0",
|
|
144
|
-
"tsdown": "0.22.
|
|
145
|
+
"tsdown": "0.22.2",
|
|
145
146
|
"unified": "^11.0.5",
|
|
146
147
|
"@fumadocs/cli": "1.3.10",
|
|
147
|
-
"fumadocs-core": "16.
|
|
148
|
+
"fumadocs-core": "16.10.1",
|
|
148
149
|
"tsconfig": "0.0.0"
|
|
149
150
|
},
|
|
150
151
|
"peerDependencies": {
|
|
@@ -154,7 +155,7 @@
|
|
|
154
155
|
"next": "16.x.x",
|
|
155
156
|
"react": "^19.2.0",
|
|
156
157
|
"react-dom": "^19.2.0",
|
|
157
|
-
"fumadocs-core": "16.
|
|
158
|
+
"fumadocs-core": "16.10.1"
|
|
158
159
|
},
|
|
159
160
|
"peerDependenciesMeta": {
|
|
160
161
|
"next": {
|
|
@@ -171,7 +172,7 @@
|
|
|
171
172
|
}
|
|
172
173
|
},
|
|
173
174
|
"inlinedDependencies": {
|
|
174
|
-
"react-medium-image-zoom": "5.4.
|
|
175
|
+
"react-medium-image-zoom": "5.4.7"
|
|
175
176
|
},
|
|
176
177
|
"scripts": {
|
|
177
178
|
"build": "pnpm build:layout && pnpm build:tailwind",
|