@fumadocs/base-ui 16.18.2 → 16.18.3
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/spacious.css +1 -1
- package/dist/_virtual/_rolldown/runtime.js +4 -4
- package/dist/components/accordion.js +1 -1
- package/dist/components/codeblock.js +2 -2
- package/dist/components/codeblock.rsc.js +1 -1
- package/dist/components/dialog/search-algolia.d.ts +1 -1
- package/dist/components/dialog/search-algolia.js +1 -1
- package/dist/components/dialog/search-default.d.ts +1 -1
- package/dist/components/dialog/search-orama.d.ts +1 -1
- package/dist/components/dialog/search-orama.js +1 -1
- package/dist/components/dynamic-codeblock.core.js +1 -1
- package/dist/components/image-zoom.js +3 -3
- package/dist/components/inline-toc.js +1 -1
- package/dist/components/sidebar/base.js +1 -1
- package/dist/components/sidebar/tabs/dropdown.js +2 -2
- package/dist/i18n.js +1 -1
- package/dist/layouts/docs/client.js +3 -3
- package/dist/layouts/docs/index.d.ts +1 -1
- package/dist/layouts/docs/page/index.js +1 -1
- package/dist/layouts/docs/page/slots/breadcrumb.js +1 -1
- package/dist/layouts/docs/page/slots/container.js +1 -1
- package/dist/layouts/docs/page/slots/toc.d.ts +6 -6
- package/dist/layouts/docs/page/slots/toc.js +2 -2
- package/dist/layouts/docs/slots/header.js +1 -1
- package/dist/layouts/docs/slots/sidebar.js +5 -5
- package/dist/layouts/flux/index.js +4 -4
- package/dist/layouts/flux/page/index.d.ts +1 -1
- package/dist/layouts/flux/page/index.js +2 -2
- package/dist/layouts/flux/page/slots/breadcrumb.js +1 -1
- package/dist/layouts/flux/page/slots/toc.d.ts +5 -5
- package/dist/layouts/flux/page/slots/toc.js +3 -3
- package/dist/layouts/flux/slots/sidebar.js +2 -2
- package/dist/layouts/flux/slots/tab-dropdown.js +1 -1
- package/dist/layouts/glass/index.js +2 -2
- package/dist/layouts/glass/layout-tabs.js +2 -2
- package/dist/layouts/glass/page/index.d.ts +1 -1
- package/dist/layouts/glass/page/index.js +1 -1
- package/dist/layouts/glass/page/slots/breadcrumb.js +1 -1
- package/dist/layouts/glass/page/slots/toc.js +1 -1
- package/dist/layouts/glass/slots/header.js +1 -1
- package/dist/layouts/glass/slots/sidebar.js +4 -4
- package/dist/layouts/home/not-found.js +1 -1
- package/dist/layouts/home/slots/header.js +3 -3
- package/dist/layouts/notebook/client.d.ts +1 -1
- package/dist/layouts/notebook/client.js +3 -3
- package/dist/layouts/notebook/index.d.ts +1 -1
- package/dist/layouts/notebook/page/index.d.ts +1 -1
- package/dist/layouts/notebook/page/index.js +2 -2
- package/dist/layouts/notebook/page/slots/breadcrumb.js +1 -1
- package/dist/layouts/notebook/page/slots/container.js +1 -1
- package/dist/layouts/notebook/page/slots/toc.d.ts +6 -6
- package/dist/layouts/notebook/page/slots/toc.js +2 -2
- package/dist/layouts/notebook/slots/header.js +5 -5
- package/dist/layouts/notebook/slots/sidebar.js +4 -4
- package/dist/layouts/shared/client.d.ts +2 -2
- package/dist/layouts/shared/client.js +2 -2
- package/dist/layouts/shared/index.d.ts +2 -2
- package/dist/layouts/shared/index.js +3 -1
- package/dist/layouts/shared/page-actions.js +1 -1
- package/dist/layouts/shared/slots/language-select.js +2 -2
- package/dist/layouts/shared/slots/search-trigger.js +1 -1
- package/dist/layouts/spacious/index.js +3 -3
- package/dist/layouts/spacious/page/index.d.ts +1 -1
- package/dist/layouts/spacious/page/index.js +4 -4
- package/dist/layouts/spacious/page/slots/breadcrumb.js +1 -1
- package/dist/layouts/spacious/page/slots/toc.d.ts +5 -5
- package/dist/layouts/spacious/page/slots/toc.js +2 -2
- package/dist/layouts/spacious/slots/actions.js +1 -1
- package/dist/layouts/spacious/slots/header.js +2 -2
- package/dist/layouts/spacious/slots/sidebar.js +19 -11
- package/dist/mdx.d.ts +2 -2
- package/dist/mdx.js +1 -1
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/index.d.ts +1 -1
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +1 -1
- package/dist/page.js +3 -3
- package/dist/provider/base.d.ts +1 -1
- package/dist/provider/base.js +1 -1
- package/dist/style.css +25 -28
- package/package.json +15 -15
- /package/dist/.translations/{keys.js → keys.json.js} +0 -0
- /package/dist/components/{image-zoom2.css → image-zoom.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:not-first:border-t *:pointer-events-auto --available-width --fd-docs-height --fd-docs-row-3 --fd-header-height --fd-layout-height --fd-page-width --fd-roll --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width --index -ms-2 -mx-1.5 -start-1 -translate-x-3 @max-5xl:invisible @max-5xl:opacity-0 @max-5xl:opacity-100 @max-5xl:ps-0 @max-5xl:transition-none @max-5xl:visible @max-5xl:w-0 @max-md:col-span-full [&>[data-icon]]:size-3.5 [&_svg]:shrink-0 [--fd-header-height:--spacing(14)] [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-page-width:760px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-sidebar-width:0px] [--fd-toc-width:0px] [clip-path:inset(0_-8px_-8px)] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover] activeClassName activeLine aiChat alignOffset along angle apart appear area aria-valuemax aria-valuemin aria-valuenow article available bar bars bg-clip-content bg-fd-accent/60 bg-linear-to-b bg-origin-border border-x breadcrumb breadcrumbEnabled circle circumference clerk click closeOnClick col-start-2 collapse comes coming controller createLinkItemRenderer createPageTreeRenderer customSlots data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-sidebar-in data-ending-style:duration-100 data-ending-style:scale-95 data-ending-style:scale-97 data-full data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground data-highlighted:text-fd-foreground data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground data-starting-style:scale-95 defaultVariants docs duration duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] easing edit fade fd-spacious-layout first:mt-1 focusin focusout font-semibold footer footerEnabled footerList from-50% from-fd-background fumadocs-core/breadcrumb gap-2.5 gaps getBreadcrumbItemsFromPath glide glides gliding gridTemplate group-hover:-translate-x-0.5 group-hover:translate-x-0.5 gutter h-(--fd-header-height) h-10 h-7.5 h-8 h-[calc(var(--fd-layout-height)-var(--fd-header-height)-100%)] hasFolders hideIfDisabled hold hover hover:bg-fd-accent/40 hover:bg-fd-accent/60 hover:text-fd-foreground iconLinks in-data-popup-open:rotate-180 includePage includeRoot including information inset inset-e-0 inset-x-0 inset-y-1 inset-y-2 itemClass itemOf items-end items-start keep keyboard labels layout:[--fd-page-width:1200px] layout:[--fd-toc-width:--spacing(76)] left lg:hidden linkItems mask-b-from-[calc(100%-32px)] mask-t-from-[calc(100%-16px)] max-h-[50vh] max-h-[min(28rem,var(--available-height))] max-lg:hidden max-md:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+var(--fd-header-height)+var(--fd-toc-popover-height,0px))] max-md:layout:[--fd-toc-popover-height:--spacing(10)] max-w-(--available-width) max-w-(--fd-page-width) max-w-95 may mb-6 mb-8 md:[--fd-docs-height:calc(var(--fd-layout-height)-var(--spacing)*4-2px-var(--fd-header-height))] md:border md:h-(--fd-layout-height) md:layout:[--fd-sidebar-col:--spacing(2)] md:layout:[--fd-sidebar-width:268px] md:min-h-0 md:ms-0 md:my-2 md:overflow-clip md:overflow-y-auto md:overscroll-y-contain md:pt-(--fd-header-height) md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))] md:rounded-2xl md:scrollbar-gutter-stable md:scrollbar-thin md:shadow-sm min-h-(--fd-layout-height) min-h-9 min-w-44 mobile motion-safe:animate-fd-roll-in motion-safe:transition-[translate,width,height,opacity] move mt-0.5 mt-2 mt-8 mx-0.5 mx-2 my-2 navbar nd-page nd-page-panel nd-subnav nd-toc origin outline-8 outline-fd-card outside pagination pb-4 pb-8 pe-1 pe-3 pe-4 picked pointer-events-none pointerleave pointerover popover popupClass positionMethod print:h-auto print:overflow-visible progressbar ps-0 ps-16 ps-2.5 ps-3.5 ps-5.5 ps-6 ps-[calc(--spacing(2.5)-1px)] pt-4 pt-6 pt-8 px-[calc(--spacing(2.5)-1px)] queries rect remain right ring-1 ring-fd-border roll rolls rotate rotate-180 rounded rounded-t-2xl rtl:-translate-x-[calc(var(--index)*100%)] rtl:translate-x-3 scale scrolling selectProgress selectTopmost selectors self-start separators setShown setTheme shadow-xl shorter signal single size-3.5! size-7 size-8 soft start-0 start-0.5 starts stroke-current/25 strokeDasharray strokeDashoffset tableOfContent tableOfContentPopover tabsOptions text-[1.75em] text-end timezone to-40% to-[16px] to-transparent toc-popover tocEnabled tocPopoverEnabled tocPopoverProps tocProps top-(--fd-banner-height,0px) top-0.5 top-[calc(var(--fd-banner-height,0px)+var(--fd-header-height))] top-full transition-[grid-template-columns] transition-[opacity,scale] transition-[opacity,translate] transition-[opacity,visibility] transition-[stroke-dashoffset] transition-[width,padding,opacity,visibility] transitionProperty translate translate-x-[calc(var(--index)*100%)] turn turns typography under unlisted updated useBaseSlots useBreadcrumbItems useFooterItems useSpaciousLayout useTOCSelector used viewports w-(--fd-sidebar-width) w-(--fd-toc-width) w-64 w-88 w-[85%] w-[calc(var(--anchor-width)+--spacing(2))] wider xl:bg-fd-background xl:border xl:me-2 xl:my-2 xl:rounded-2xl xl:shadow-sm z-10 z-30");
|
|
1
|
+
@source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:not-first:border-t *:pointer-events-auto --available-width --fd-docs-height --fd-docs-row-3 --fd-header-height --fd-layout-height --fd-page-width --fd-roll --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width --index -ms-2 -mx-1.5 -start-1 -translate-x-3 @max-5xl:invisible @max-5xl:opacity-0 @max-5xl:opacity-100 @max-5xl:ps-0 @max-5xl:transition-none @max-5xl:visible @max-5xl:w-0 @max-md:col-span-full [&>[data-icon]]:size-3.5 [&_svg]:shrink-0 [--fd-header-height:--spacing(14)] [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-page-width:760px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-sidebar-width:0px] [--fd-toc-width:0px] [clip-path:inset(0_-8px_-8px)] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover] activeClassName activeLine aiChat alignOffset along angle apart appear area aria-valuemax aria-valuemin aria-valuenow article available bar bars bg-clip-content bg-fd-accent/60 bg-linear-to-b bg-origin-border border-x breadcrumb breadcrumbEnabled circle circumference clerk click closeOnClick col-start-2 collapse comes coming control controller createLinkItemRenderer createPageTreeRenderer customSlots data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-sidebar-in data-ending-style:duration-100 data-ending-style:scale-95 data-ending-style:scale-97 data-full data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground data-highlighted:text-fd-foreground data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground data-starting-style:scale-95 defaultVariants docs duration duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] easing edit fade fd-spacious-layout first:mt-1 focusin focusout font-semibold footer footerEnabled footerList from-50% from-fd-background fumadocs-core/breadcrumb gap-2.5 gaps getBreadcrumbItemsFromPath glide glides gliding gridTemplate group-hover:-translate-x-0.5 group-hover:translate-x-0.5 gutter h-(--fd-header-height) h-10 h-7.5 h-8 h-[calc(var(--fd-layout-height)-var(--fd-header-height)-100%)] hasFolders hideIfDisabled hold hover hover:bg-fd-accent/40 hover:bg-fd-accent/60 hover:text-fd-foreground iconLinks in-data-popup-open:rotate-180 includePage includeRoot including information inset inset-e-0 inset-x-0 inset-y-1 inset-y-2 itemClass itemOf items-end items-start keep keyboard labels layout:[--fd-page-width:1200px] layout:[--fd-toc-width:--spacing(76)] left lg:hidden linkItems mask-b-from-[calc(100%-32px)] mask-t-from-[calc(100%-16px)] max-h-[50vh] max-h-[min(28rem,var(--available-height))] max-lg:hidden max-md:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+var(--fd-header-height)+var(--fd-toc-popover-height,0px))] max-md:layout:[--fd-toc-popover-height:--spacing(10)] max-w-(--available-width) max-w-(--fd-page-width) max-w-95 may mb-6 mb-8 md:[--fd-docs-height:calc(var(--fd-layout-height)-var(--spacing)*4-2px-var(--fd-header-height))] md:border md:h-(--fd-layout-height) md:layout:[--fd-sidebar-col:--spacing(2)] md:layout:[--fd-sidebar-width:268px] md:min-h-0 md:ms-0 md:my-2 md:overflow-clip md:overflow-y-auto md:overscroll-y-contain md:pt-(--fd-header-height) md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))] md:rounded-2xl md:scrollbar-gutter-stable md:scrollbar-thin md:shadow-sm min-h-(--fd-layout-height) min-h-9 min-w-44 mobile motion-safe:animate-fd-roll-in motion-safe:transition-[translate,width,height,opacity] move mt-0.5 mt-2 mt-8 mx-0.5 mx-2 my-2 navbar nd-page nd-page-panel nd-subnav nd-toc origin outline-8 outline-fd-card outside pagination pb-4 pb-8 pe-1 pe-3 pe-4 picked pointer-events-none pointerleave pointerover popover popupClass positionMethod print:h-auto print:overflow-visible progressbar ps-0 ps-16 ps-2.5 ps-3.5 ps-5.5 ps-6 ps-[calc(--spacing(2.5)-1px)] pt-4 pt-6 pt-8 px-[calc(--spacing(2.5)-1px)] queries rect remain right ring-1 ring-fd-border roll rolls rotate rotate-180 rounded rounded-t-2xl rtl:-translate-x-[calc(var(--index)*100%)] rtl:translate-x-3 scale scrolling selectProgress selectTopmost selectors self-start separators setShown setTheme shadow-xl shorter signal single size-3.5! size-7 size-8 soft start-0 start-0.5 starts stroke-current/25 strokeDasharray strokeDashoffset tableOfContent tableOfContentPopover tabsOptions text-[1.75em] text-end timezone to-40% to-[16px] to-transparent toc-popover tocEnabled tocPopoverEnabled tocPopoverProps tocProps top-(--fd-banner-height,0px) top-0.5 top-[calc(var(--fd-banner-height,0px)+var(--fd-header-height))] top-full transition-[grid-template-columns] transition-[opacity,scale] transition-[opacity,translate] transition-[opacity,visibility] transition-[stroke-dashoffset] transition-[width,padding,opacity,visibility] transitionProperty translate translate-x-[calc(var(--index)*100%)] turn turns typography under unlisted updated useBaseSlots useBreadcrumbItems useFooterItems useSpaciousLayout useTOCSelector used version viewports w-(--fd-sidebar-width) w-(--fd-toc-width) w-64 w-88 w-[85%] w-[calc(var(--anchor-width)+--spacing(2))] wider within xl:bg-fd-background xl:border xl:me-2 xl:my-2 xl:rounded-2xl xl:shadow-sm z-10 z-30");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all,
|
|
4
|
-
let target = {};
|
|
3
|
+
var __exportAll = (all, flags) => {
|
|
4
|
+
let target = Object.setPrototypeOf({}, null);
|
|
5
5
|
for (var name in all) __defProp(target, name, {
|
|
6
6
|
get: all[name],
|
|
7
7
|
enumerable: true
|
|
8
8
|
});
|
|
9
|
-
if (!
|
|
10
|
-
return target;
|
|
9
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
11
11
|
};
|
|
12
12
|
export { __exportAll };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../utils/cn.js";
|
|
3
|
-
import { buttonVariants } from "./ui/button.js";
|
|
4
3
|
import { useCopyButton } from "../utils/use-copy-button.js";
|
|
4
|
+
import { buttonVariants } from "./ui/button.js";
|
|
5
5
|
import { mergeRefs } from "../utils/merge-refs.js";
|
|
6
6
|
import { Accordion as Accordion$1, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger } from "./ui/accordion.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../utils/cn.js";
|
|
3
|
-
import { buttonVariants } from "./ui/button.js";
|
|
4
3
|
import { useCopyButton } from "../utils/use-copy-button.js";
|
|
5
|
-
import {
|
|
4
|
+
import { buttonVariants } from "./ui/button.js";
|
|
6
5
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs.js";
|
|
6
|
+
import { mergeRefs } from "../utils/merge-refs.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Check, Clipboard } from "lucide-react";
|
|
9
9
|
import { createContext, use, useMemo, useRef } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cn } from "../utils/cn.js";
|
|
2
1
|
import { CodeBlock, Pre } from "./codeblock.js";
|
|
2
|
+
import { cn } from "../utils/cn.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { toJsx } from "fumadocs-core/utils/hast-to-jsx";
|
|
5
5
|
import { highlight } from "fumadocs-core/highlight";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
2
1
|
import "./search.js";
|
|
2
|
+
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { AlgoliaOptions } from "fumadocs-core/search/client";
|
|
5
5
|
export interface AlgoliaSearchDialogProps extends SharedProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useI18n } from "../../contexts/i18n.js";
|
|
3
2
|
import { SearchDialog, SearchDialogClose, SearchDialogContent, SearchDialogFooter, SearchDialogHeader, SearchDialogIcon, SearchDialogInput, SearchDialogList, SearchDialogOverlay, TagsList, TagsListItem } from "./search.js";
|
|
3
|
+
import { useI18n } from "../../contexts/i18n.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useMemo, useState } from "react";
|
|
6
6
|
import { useOnChange } from "fumadocs-core/utils/use-on-change";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
2
1
|
import "./search.js";
|
|
2
|
+
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
export interface DefaultSearchDialogProps extends SharedProps {
|
|
5
5
|
/** @deprecated re-create the dialog instead for other clients, see https://fumadocs.dev/docs/search/orama */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
2
1
|
import "./search.js";
|
|
2
|
+
import { SearchLink, SharedProps, TagItem } from "../../contexts/search.js";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { OramaCloudOptions } from "fumadocs-core/search/client";
|
|
5
5
|
export interface OramaSearchDialogProps extends SharedProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useI18n } from "../../contexts/i18n.js";
|
|
3
2
|
import { SearchDialog, SearchDialogClose, SearchDialogContent, SearchDialogFooter, SearchDialogHeader, SearchDialogIcon, SearchDialogInput, SearchDialogList, SearchDialogOverlay, TagsList, TagsListItem } from "./search.js";
|
|
3
|
+
import { useI18n } from "../../contexts/i18n.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useMemo, useState } from "react";
|
|
6
6
|
import { useOnChange } from "fumadocs-core/utils/use-on-change";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../utils/cn.js";
|
|
3
2
|
import { CodeBlock, Pre } from "./codeblock.js";
|
|
3
|
+
import { cn } from "../utils/cn.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Suspense, createContext, use, useMemo, useRef } from "react";
|
|
6
6
|
import { toJsx } from "fumadocs-core/utils/hast-to-jsx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../utils/cn.js";
|
|
3
|
-
import { buttonVariants } from "./ui/button.js";
|
|
4
2
|
import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
|
|
5
|
-
import "./
|
|
3
|
+
import { buttonVariants } from "./ui/button.js";
|
|
4
|
+
import { cn } from "../utils/cn.js";
|
|
5
|
+
import "./image-zoom.css";
|
|
6
6
|
import { Image } from "fumadocs-core/framework";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { ChevronLeft, ChevronRight, X } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../utils/cn.js";
|
|
3
2
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.js";
|
|
3
|
+
import { cn } from "../utils/cn.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { ChevronDown } from "lucide-react";
|
|
6
6
|
import { useTranslations } from "@fuma-translate/react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { cn } from "../../utils/cn.js";
|
|
4
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
|
|
5
4
|
import { useHotKey } from "../../utils/hotkey.js";
|
|
5
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
|
|
6
6
|
import Link from "fumadocs-core/link";
|
|
7
7
|
import { usePathname } from "fumadocs-core/framework";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useSidebar } from "../base.js";
|
|
4
4
|
import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover.js";
|
|
5
5
|
import { isLayoutTabActive } from "../../../layouts/shared/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useTabsGroups, useTreePath } from "../../../contexts/tree.js";
|
|
7
7
|
import Link from "fumadocs-core/link";
|
|
8
8
|
import { usePathname } from "fumadocs-core/framework";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
package/dist/i18n.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../utils/cn.js";
|
|
3
|
-
import { TreeContextProvider, useTabsGroups, useTreePath } from "../../contexts/tree.js";
|
|
4
|
-
import { AIChatPanel, AIChatTrigger, SkipToContent, baseSlots } from "../shared/client.js";
|
|
5
|
-
import { isLayoutTabActive, useLinkItems } from "../shared/index.js";
|
|
6
3
|
import { useIsScrollTop } from "../../utils/use-is-scroll-top.js";
|
|
7
4
|
import { Sidebar, SidebarProvider, SidebarTrigger, useSidebar } from "./slots/sidebar.js";
|
|
5
|
+
import { isLayoutTabActive, useLinkItems } from "../shared/index.js";
|
|
6
|
+
import { AIChatPanel, AIChatTrigger, SkipToContent, baseSlots } from "../shared/client.js";
|
|
7
|
+
import { TreeContextProvider, useTabsGroups, useTreePath } from "../../contexts/tree.js";
|
|
8
8
|
import { Header } from "./slots/header.js";
|
|
9
9
|
import { Container } from "./slots/container.js";
|
|
10
10
|
import Link from "fumadocs-core/link";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AIChatOptions, BaseLayoutProps, GetLayoutTabsOptions, LayoutTab } from "../shared/index.js";
|
|
2
1
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
2
|
+
import { AIChatOptions, BaseLayoutProps, GetLayoutTabsOptions, LayoutTab } from "../shared/index.js";
|
|
3
3
|
import { DocsSlots, useDocsLayout } from "./client.js";
|
|
4
4
|
import { HTMLAttributes, ReactNode } from "react";
|
|
5
5
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { cn } from "../../../utils/cn.js";
|
|
4
|
-
import { buttonVariants } from "../../../components/ui/button.js";
|
|
5
4
|
import { TOC, TOCPopover, TOCProvider } from "./slots/toc.js";
|
|
6
5
|
import { Footer } from "./slots/footer.js";
|
|
7
6
|
import { Breadcrumb } from "./slots/breadcrumb.js";
|
|
8
7
|
import { Container } from "./slots/container.js";
|
|
8
|
+
import { buttonVariants } from "../../../components/ui/button.js";
|
|
9
9
|
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { Edit } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../../../utils/cn.js";
|
|
3
2
|
import { useTreeContext, useTreePath } from "../../../../contexts/tree.js";
|
|
3
|
+
import { cn } from "../../../../utils/cn.js";
|
|
4
4
|
import Link from "fumadocs-core/link";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { ChevronRight } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../../../utils/cn.js";
|
|
3
2
|
import { useDocsPage } from "../index.js";
|
|
3
|
+
import { cn } from "../../../../utils/cn.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/layouts/docs/page/slots/container.tsx
|
|
6
6
|
function Container(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TOCItemsProps } from "../../../../components/toc/default.js";
|
|
2
|
-
import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/
|
|
3
|
-
import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/
|
|
2
|
+
import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/clerk.js";
|
|
3
|
+
import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/block.js";
|
|
4
4
|
import { TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
|
|
5
5
|
import { ComponentProps, ReactNode } from "react";
|
|
6
6
|
export type TOCProviderProps = TOCProviderProps$1;
|
|
@@ -20,10 +20,10 @@ export type TOCProps = {
|
|
|
20
20
|
list?: TOCItemsProps;
|
|
21
21
|
} | {
|
|
22
22
|
style: 'clerk';
|
|
23
|
-
list?: TOCItemsProps$
|
|
23
|
+
list?: TOCItemsProps$1;
|
|
24
24
|
} | {
|
|
25
25
|
style: 'block';
|
|
26
|
-
list?: TOCItemsProps$
|
|
26
|
+
list?: TOCItemsProps$2;
|
|
27
27
|
});
|
|
28
28
|
export declare function TOC({ container, header, footer, style, list }: TOCProps): import("react").JSX.Element;
|
|
29
29
|
export type TOCPopoverProps = {
|
|
@@ -43,9 +43,9 @@ export type TOCPopoverProps = {
|
|
|
43
43
|
list?: TOCItemsProps;
|
|
44
44
|
} | {
|
|
45
45
|
style: 'clerk';
|
|
46
|
-
list?: TOCItemsProps$
|
|
46
|
+
list?: TOCItemsProps$1;
|
|
47
47
|
} | {
|
|
48
48
|
style: 'block';
|
|
49
|
-
list?: TOCItemsProps$
|
|
49
|
+
list?: TOCItemsProps$2;
|
|
50
50
|
});
|
|
51
51
|
export declare function TOCPopover({ container, trigger, content, header, footer, style, list }: TOCPopoverProps): import("react").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../../../utils/cn.js";
|
|
3
|
-
import { TOCProvider as TOCProvider$1, TOCScrollArea, useItems, useTOCItems } from "../../../../components/toc/index.js";
|
|
4
2
|
import { default_exports } from "../../../../components/toc/default.js";
|
|
5
3
|
import { clerk_exports } from "../../../../components/toc/clerk.js";
|
|
6
4
|
import { block_exports } from "../../../../components/toc/block.js";
|
|
5
|
+
import { TOCProvider as TOCProvider$1, TOCScrollArea, useItems, useTOCItems } from "../../../../components/toc/index.js";
|
|
6
|
+
import { cn } from "../../../../utils/cn.js";
|
|
7
7
|
import { useTreePath } from "../../../../contexts/tree.js";
|
|
8
8
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../../components/ui/collapsible.js";
|
|
9
9
|
import { useDocsLayout } from "../../client.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useDocsLayout } from "../client.js";
|
|
2
3
|
import { cn } from "../../../utils/cn.js";
|
|
3
4
|
import { buttonVariants } from "../../../components/ui/button.js";
|
|
4
|
-
import { useDocsLayout } from "../client.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { SidebarIcon } from "lucide-react";
|
|
7
7
|
// src/layouts/docs/slots/header.tsx
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { SidebarCollapseTrigger as SidebarCollapseTrigger$1, SidebarContent as SidebarContent$1, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder as SidebarFolder$1, SidebarFolderContent as SidebarFolderContent$1, SidebarFolderLink as SidebarFolderLink$1, SidebarFolderTrigger as SidebarFolderTrigger$1, SidebarItem as SidebarItem$1, SidebarProvider as SidebarProvider$1, SidebarSeparator as SidebarSeparator$1, SidebarTrigger as SidebarTrigger$1, SidebarViewport, base_exports, useFolder, useFolderDepth } from "../../../components/sidebar/base.js";
|
|
2
3
|
import { cn } from "../../../utils/cn.js";
|
|
4
|
+
import { createPageTreeRenderer } from "../../../components/sidebar/page-tree.js";
|
|
5
|
+
import { createLinkItemRenderer } from "../../../components/sidebar/link-item.js";
|
|
3
6
|
import { buttonVariants } from "../../../components/ui/button.js";
|
|
4
|
-
import { mergeRefs } from "../../../utils/merge-refs.js";
|
|
5
7
|
import { SearchTrigger } from "../../shared/slots/search-trigger.js";
|
|
8
|
+
import { mergeRefs } from "../../../utils/merge-refs.js";
|
|
9
|
+
import { useDocsLayout } from "../client.js";
|
|
6
10
|
import { LinkItem } from "../../shared/client.js";
|
|
7
|
-
import { SidebarCollapseTrigger as SidebarCollapseTrigger$1, SidebarContent as SidebarContent$1, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder as SidebarFolder$1, SidebarFolderContent as SidebarFolderContent$1, SidebarFolderLink as SidebarFolderLink$1, SidebarFolderTrigger as SidebarFolderTrigger$1, SidebarItem as SidebarItem$1, SidebarProvider as SidebarProvider$1, SidebarSeparator as SidebarSeparator$1, SidebarTrigger as SidebarTrigger$1, SidebarViewport, base_exports, useFolder, useFolderDepth } from "../../../components/sidebar/base.js";
|
|
8
|
-
import { createPageTreeRenderer } from "../../../components/sidebar/page-tree.js";
|
|
9
|
-
import { createLinkItemRenderer } from "../../../components/sidebar/link-item.js";
|
|
10
11
|
import { SidebarTabsDropdown } from "../../../components/sidebar/tabs/dropdown.js";
|
|
11
|
-
import { useDocsLayout } from "../client.js";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { ChevronDown, Languages, SidebarIcon } from "lucide-react";
|
|
14
14
|
import { cva } from "class-variance-authority";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { getLayoutTabs, useLinkItems } from "../shared/index.js";
|
|
3
|
+
import { TreeContextProvider } from "../../contexts/tree.js";
|
|
2
4
|
import { cn } from "../../utils/cn.js";
|
|
5
|
+
import { TabDropdown } from "./slots/tab-dropdown.js";
|
|
6
|
+
import { LinkItem, baseSlots } from "../shared/client.js";
|
|
3
7
|
import { buttonVariants } from "../../components/ui/button.js";
|
|
4
|
-
import { TreeContextProvider } from "../../contexts/tree.js";
|
|
5
8
|
import { useSearchContext } from "../../contexts/search.js";
|
|
6
|
-
import { LinkItem, baseSlots } from "../shared/client.js";
|
|
7
|
-
import { getLayoutTabs, useLinkItems } from "../shared/index.js";
|
|
8
|
-
import { TabDropdown } from "./slots/tab-dropdown.js";
|
|
9
9
|
import { Sidebar as Sidebar$1, SidebarProvider, SidebarTrigger, useSidebar } from "./slots/sidebar.js";
|
|
10
10
|
import { Container } from "./slots/container.js";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
2
1
|
import { TOCProps, TOCProviderProps } from "./slots/toc.js";
|
|
3
2
|
import { Footer, FooterProps } from "./slots/footer.js";
|
|
4
3
|
import { Breadcrumb, BreadcrumbProps } from "./slots/breadcrumb.js";
|
|
4
|
+
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
5
5
|
import { ComponentProps, FC, ReactNode } from "react";
|
|
6
6
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
7
7
|
export interface DocsPageProps extends ComponentProps<'article'> {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
|
-
import { buttonVariants } from "../../../components/ui/button.js";
|
|
4
|
-
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
5
3
|
import { TOC, TOCProvider } from "./slots/toc.js";
|
|
6
4
|
import { Footer } from "./slots/footer.js";
|
|
7
5
|
import { Breadcrumb } from "./slots/breadcrumb.js";
|
|
8
6
|
import { Container } from "./slots/container.js";
|
|
7
|
+
import { buttonVariants } from "../../../components/ui/button.js";
|
|
8
|
+
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { Edit } from "lucide-react";
|
|
11
11
|
import { createContext, use, useEffect, useState } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../../../utils/cn.js";
|
|
3
2
|
import { useTreeContext, useTreePath } from "../../../../contexts/tree.js";
|
|
3
|
+
import { cn } from "../../../../utils/cn.js";
|
|
4
4
|
import Link from "fumadocs-core/link";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { ChevronRight } from "lucide-react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TOCItemsProps } from "../../../../components/toc/default.js";
|
|
2
|
-
import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/block.js";
|
|
3
|
-
import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/clerk.js";
|
|
4
1
|
import { TOCProvider as TOCProvider$1, TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
|
|
2
|
+
import { TOCItemsProps } from "../../../../components/toc/default.js";
|
|
3
|
+
import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/clerk.js";
|
|
4
|
+
import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/block.js";
|
|
5
5
|
import { ComponentProps, ReactNode } from "react";
|
|
6
6
|
export type TOCProviderProps = TOCProviderProps$1;
|
|
7
7
|
export declare const TOCProvider: typeof TOCProvider$1;
|
|
@@ -22,9 +22,9 @@ export type TOCProps = {
|
|
|
22
22
|
list?: TOCItemsProps;
|
|
23
23
|
} | {
|
|
24
24
|
style: 'clerk';
|
|
25
|
-
list?: TOCItemsProps$
|
|
25
|
+
list?: TOCItemsProps$1;
|
|
26
26
|
} | {
|
|
27
27
|
style: 'block';
|
|
28
|
-
list?: TOCItemsProps$
|
|
28
|
+
list?: TOCItemsProps$2;
|
|
29
29
|
});
|
|
30
30
|
export declare function TOC({ container, trigger, content, header, footer, style, list }: TOCProps): import("react").JSX.Element | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../../../utils/cn.js";
|
|
3
2
|
import { TOCScrollArea, toc_exports, useItems, useTOCItems } from "../../../../components/toc/index.js";
|
|
3
|
+
import { useTreePath } from "../../../../contexts/tree.js";
|
|
4
|
+
import { cn } from "../../../../utils/cn.js";
|
|
5
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../../components/ui/collapsible.js";
|
|
4
6
|
import { default_exports } from "../../../../components/toc/default.js";
|
|
5
7
|
import { clerk_exports } from "../../../../components/toc/clerk.js";
|
|
6
8
|
import { block_exports } from "../../../../components/toc/block.js";
|
|
7
|
-
import { useTreePath } from "../../../../contexts/tree.js";
|
|
8
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../../components/ui/collapsible.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { ChevronDown } from "lucide-react";
|
|
11
11
|
import { createContext, use, useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { SidebarFolder as SidebarFolder$1, SidebarFolderContent as SidebarFolderContent$1, SidebarFolderLink as SidebarFolderLink$1, SidebarFolderTrigger as SidebarFolderTrigger$1, SidebarItem as SidebarItem$1, SidebarProvider as SidebarProvider$1, SidebarSeparator as SidebarSeparator$1, base_exports, useFolder, useFolderDepth } from "../../../components/sidebar/base.js";
|
|
2
3
|
import { cn } from "../../../utils/cn.js";
|
|
3
|
-
import { mergeRefs } from "../../../utils/merge-refs.js";
|
|
4
4
|
import { useHotKey } from "../../../utils/hotkey.js";
|
|
5
|
-
import { SidebarFolder as SidebarFolder$1, SidebarFolderContent as SidebarFolderContent$1, SidebarFolderLink as SidebarFolderLink$1, SidebarFolderTrigger as SidebarFolderTrigger$1, SidebarItem as SidebarItem$1, SidebarProvider as SidebarProvider$1, SidebarSeparator as SidebarSeparator$1, base_exports, useFolder, useFolderDepth } from "../../../components/sidebar/base.js";
|
|
6
5
|
import { createPageTreeRenderer } from "../../../components/sidebar/page-tree.js";
|
|
7
6
|
import { createLinkItemRenderer } from "../../../components/sidebar/link-item.js";
|
|
7
|
+
import { mergeRefs } from "../../../utils/merge-refs.js";
|
|
8
8
|
import { useFluxLayout } from "../index.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { SidebarIcon, XIcon } from "lucide-react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
|
-
import { useTabsGroups, useTreePath } from "../../../contexts/tree.js";
|
|
4
3
|
import { Popover, PopoverContent, PopoverTrigger } from "../../../components/ui/popover.js";
|
|
5
4
|
import { isLayoutTabActive } from "../../shared/index.js";
|
|
5
|
+
import { useTabsGroups, useTreePath } from "../../../contexts/tree.js";
|
|
6
6
|
import Link from "fumadocs-core/link";
|
|
7
7
|
import { usePathname } from "fumadocs-core/framework";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TreeContextProvider } from "../../contexts/tree.js";
|
|
3
|
-
import { AIChatPanel, SkipToContent, baseSlots } from "../shared/client.js";
|
|
4
2
|
import { getLayoutTabs, useLinkItems } from "../shared/index.js";
|
|
3
|
+
import { AIChatPanel, SkipToContent, baseSlots } from "../shared/client.js";
|
|
4
|
+
import { TreeContextProvider } from "../../contexts/tree.js";
|
|
5
5
|
import { Sidebar, SidebarDrawer, SidebarProvider, drawerHandle, useSidebar } from "./slots/sidebar.js";
|
|
6
6
|
import { Header } from "./slots/header.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { cn } from "../../utils/cn.js";
|
|
2
|
-
import { useTabsGroups, useTreePath } from "../../contexts/tree.js";
|
|
3
1
|
import { Popover, PopoverContent, PopoverTrigger } from "../../components/ui/popover.js";
|
|
2
|
+
import { useTabsGroups, useTreePath } from "../../contexts/tree.js";
|
|
4
3
|
import { isLayoutTabActive } from "../shared/index.js";
|
|
4
|
+
import { cn } from "../../utils/cn.js";
|
|
5
5
|
import Link from "fumadocs-core/link";
|
|
6
6
|
import { usePathname } from "fumadocs-core/framework";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
2
1
|
import { TOCProps } from "./slots/toc.js";
|
|
2
|
+
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
5
5
|
export interface DocsPageProps extends ComponentProps<'article'> {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
3
|
import { buttonVariants } from "../../../components/ui/button.js";
|
|
4
|
-
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
5
4
|
import { Footer } from "./slots/footer.js";
|
|
6
5
|
import { Breadcrumb } from "./slots/breadcrumb.js";
|
|
7
6
|
import { TOC, TOCProvider } from "./slots/toc.js";
|
|
7
|
+
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Edit } from "lucide-react";
|
|
10
10
|
import { createContext, use, useEffect, useState } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../../../utils/cn.js";
|
|
3
2
|
import { useTreeContext, useTreePath } from "../../../../contexts/tree.js";
|
|
3
|
+
import { cn } from "../../../../utils/cn.js";
|
|
4
4
|
import Link from "fumadocs-core/link";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { ChevronRight } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../../../utils/cn.js";
|
|
3
2
|
import { TOCProvider as TOCProvider$1, TOCScrollArea, useTOCItems } from "../../../../components/toc/index.js";
|
|
3
|
+
import { cn } from "../../../../utils/cn.js";
|
|
4
4
|
import { useGlassLayout } from "../../index.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Text } from "lucide-react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
3
|
import { buttonVariants } from "../../../components/ui/button.js";
|
|
4
|
-
import { LayoutTabsDropdown } from "../layout-tabs.js";
|
|
5
4
|
import { useGlassLayout } from "../index.js";
|
|
5
|
+
import { LayoutTabsDropdown } from "../layout-tabs.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { ChevronsUpDown, LanguagesIcon, MessageCircleIcon, SidebarIcon } from "lucide-react";
|
|
8
8
|
import { useTranslations } from "@fuma-translate/react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { buttonVariants } from "../../../components/ui/button.js";
|
|
2
|
+
import { isLinkItemActive } from "../../shared/index.js";
|
|
4
3
|
import { useTreeContext, useTreePath } from "../../../contexts/tree.js";
|
|
5
4
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../components/ui/collapsible.js";
|
|
5
|
+
import { cn } from "../../../utils/cn.js";
|
|
6
6
|
import { useHotKey } from "../../../utils/hotkey.js";
|
|
7
|
-
import {
|
|
8
|
-
import { LayoutTabsDropdown } from "../layout-tabs.js";
|
|
7
|
+
import { buttonVariants } from "../../../components/ui/button.js";
|
|
9
8
|
import { useGlassLayout } from "../index.js";
|
|
9
|
+
import { LayoutTabsDropdown } from "../layout-tabs.js";
|
|
10
10
|
import Link from "fumadocs-core/link";
|
|
11
11
|
import { usePathname } from "fumadocs-core/framework";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn } from "../../utils/cn.js";
|
|
3
2
|
import { buttonVariants } from "../../components/ui/button.js";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
4
|
import Link from "fumadocs-core/link";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { HomeIcon } from "lucide-react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../../utils/cn.js";
|
|
3
|
-
import { buttonVariants } from "../../../components/ui/button.js";
|
|
4
|
-
import { mergeRefs } from "../../../utils/merge-refs.js";
|
|
5
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../components/ui/collapsible.js";
|
|
6
3
|
import { LinkItem } from "../../shared/client.js";
|
|
4
|
+
import { buttonVariants } from "../../../components/ui/button.js";
|
|
7
5
|
import { useIsScrollTop } from "../../../utils/use-is-scroll-top.js";
|
|
8
6
|
import { useHomeLayout } from "../index.js";
|
|
7
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../../components/ui/collapsible.js";
|
|
8
|
+
import { mergeRefs } from "../../../utils/merge-refs.js";
|
|
9
9
|
import Link from "fumadocs-core/link";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { ChevronDown, Languages } from "lucide-react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseSlots, BaseSlotsProps } from "../shared/client.js";
|
|
2
|
+
import { DocsLayoutProps } from "./index.js";
|
|
2
3
|
import { LayoutTab, LinkItemType } from "../shared/index.js";
|
|
3
4
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
4
|
-
import { DocsLayoutProps } from "./index.js";
|
|
5
5
|
import { ComponentProps, FC } from "react";
|
|
6
6
|
export interface DocsSlots extends BaseSlots {
|
|
7
7
|
container: FC<ComponentProps<'div'>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TreeContextProvider } from "../../contexts/tree.js";
|
|
3
|
-
import { AIChatPanel, AIChatTrigger, SkipToContent, baseSlots } from "../shared/client.js";
|
|
4
|
-
import { useLinkItems } from "../shared/index.js";
|
|
5
2
|
import { useIsScrollTop } from "../../utils/use-is-scroll-top.js";
|
|
3
|
+
import { useLinkItems } from "../shared/index.js";
|
|
4
|
+
import { AIChatPanel, AIChatTrigger, SkipToContent, baseSlots } from "../shared/client.js";
|
|
5
|
+
import { TreeContextProvider } from "../../contexts/tree.js";
|
|
6
6
|
import { Container } from "./slots/container.js";
|
|
7
7
|
import { Sidebar, SidebarCollapseTrigger, SidebarProvider, SidebarTrigger, useSidebar } from "./slots/sidebar.js";
|
|
8
8
|
import { Header } from "./slots/header.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AIChatOptions, BaseLayoutProps, GetLayoutTabsOptions, LayoutTab, NavOptions } from "../shared/index.js";
|
|
2
1
|
import { SidebarProps, SidebarProviderProps } from "./slots/sidebar.js";
|
|
2
|
+
import { AIChatOptions, BaseLayoutProps, GetLayoutTabsOptions, LayoutTab, NavOptions } from "../shared/index.js";
|
|
3
3
|
import { DocsSlots, useNotebookLayout } from "./client.js";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
import * as PageTree from "fumadocs-core/page-tree";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
2
1
|
import { TOCPopoverProps, TOCProps, TOCProviderProps } from "./slots/toc.js";
|
|
3
2
|
import { Footer, FooterProps } from "./slots/footer.js";
|
|
4
3
|
import { Breadcrumb, BreadcrumbProps } from "./slots/breadcrumb.js";
|
|
4
|
+
import { MarkdownCopyButton, ViewOptionsPopover } from "../../shared/page-actions.js";
|
|
5
5
|
import { ComponentProps, FC, ReactNode } from "react";
|
|
6
6
|
import { TOCItemType } from "fumadocs-core/toc";
|
|
7
7
|
export interface DocsPageProps extends ComponentProps<'article'> {
|