Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/app/api/search/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import { createSearchAPI } from "fumadocs-core/search/server";
import { source } from "@/lib/source";

export const { GET } = createSearchAPI("advanced", {
language: "english",
indexes: source.getPages().map((page) => ({
title: page.data.title,
description: page.data.description,
structuredData: page.data.structuredData,
id: page.url,
url: page.url,
id: page.url,
structuredData: page.data.structuredData,
})),
});
2 changes: 1 addition & 1 deletion docs/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default async function DocPage(props: DocPageParams) {
<CopyMarkdownButton markdownUrl={`${page.url}.mdx`} />
<ViewOptions
markdownUrl={`${page.url}.mdx`}
githubUrl={`https://github.com/sadmann7/diceui/blob/main/docs/content/docs/${page.file.path}`}
githubUrl={`https://github.com/sadmann7/diceui/blob/main/docs/content/docs/${page.path}`}
/>
</div>
</div>
Expand Down
5 changes: 2 additions & 3 deletions docs/lib/source.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { loader } from "fumadocs-core/source";
import { createMDXSource } from "fumadocs-mdx";
import { createMDXSource } from "fumadocs-mdx/runtime/next";
import { docs, meta } from "@/.source";

export const source = loader({
export const source = loader(createMDXSource(docs, meta), {
baseUrl: "/docs",
source: createMDXSource(docs, meta),
});
6 changes: 1 addition & 5 deletions docs/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ const withMDX = createMDX();

const nextConfig: NextConfig = {
reactStrictMode: true,
experimental: {
webpackMemoryOptimizations: true,
},
images: {
remotePatterns: [
{
Expand Down Expand Up @@ -62,8 +59,7 @@ const nextConfig: NextConfig = {
},
];
},
// Already doing linting and typechecking as separate tasks in CI
eslint: { ignoreDuringBuilds: true },
// Already doing typechecking as separate task in CI
typescript: { ignoreBuildErrors: true },
};

Expand Down
58 changes: 29 additions & 29 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^5.0.1",
"@mux/mux-video-react": "^0.26.1",
"@hookform/resolvers": "^5.2.2",
"@mux/mux-video-react": "^0.27.1",
"@radix-ui/react-avatar": "^1.1.10",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-collapsible": "^1.1.12",
Expand All @@ -49,56 +49,56 @@
"@tanstack/react-virtual": "^3.13.12",
"@uploadthing/react": "^7.3.3",
"@upstash/ratelimit": "^2.0.6",
"@upstash/redis": "^1.35.3",
"@upstash/redis": "^1.35.6",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.1.1",
"date-fns": "^4.1.0",
"fumadocs-core": "^15.7.13",
"fumadocs-docgen": "^3.0.0",
"fumadocs-mdx": "^12.0.0",
"fumadocs-typescript": "^4.0.8",
"fumadocs-ui": "^15.7.13",
"jotai": "^2.13.1",
"lucide-react": "^0.547.0",
"fumadocs-core": "^16.0.4",
"fumadocs-docgen": "^3.0.3",
"fumadocs-mdx": "^13.0.2",
"fumadocs-typescript": "^4.0.12",
"fumadocs-ui": "^16.0.4",
"jotai": "^2.15.0",
"lucide-react": "^0.548.0",
"match-sorter": "^8.1.0",
"media-chrome": "^4.13.0",
"motion": "^12.23.12",
"media-chrome": "^4.15.0",
"motion": "^12.23.24",
"nanoid": "^5.1.6",
"next": "^15.5.2",
"next": "^16.0.0",
"next-themes": "^0.4.6",
"nuqs": "^2.7.2",
"qrcode": "^1.5.4",
"react": "^19.1.1",
"react": "^19.2.0",
"react-day-picker": "9.11.1",
"react-dom": "^19.1.1",
"react-hook-form": "^7.62.0",
"shadcn": "^3.1.0",
"react-dom": "^19.2.0",
"react-hook-form": "^7.65.0",
"shadcn": "^3.5.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.3.1",
"uploadthing": "^7.7.4",
"zod": "^4.1.5"
"zod": "^4.1.12"
},
"devDependencies": {
"@faker-js/faker": "^10.1.0",
"@tailwindcss/postcss": "^4.1.12",
"@tailwindcss/postcss": "^4.1.16",
"@types/mdx": "^2.0.13",
"@types/qrcode": "^1.5.5",
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"@types/qrcode": "^1.5.6",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"postcss": "^8.5.6",
"react-reconciler": "^0.32.0",
"react-reconciler": "^0.33.0",
"react-scan": "^0.4.3",
"rehype-pretty-code": "^0.14.1",
"rehype-slug": "^6.0.0",
"remark-code-import": "^1.2.0",
"remark-math": "^6.0.0",
"shiki": "^3.12.2",
"tailwindcss": "^4.1.12",
"ts-morph": "^26.0.0",
"tsx": "^4.20.5",
"tw-animate-css": "^1.3.8",
"typescript": "^5.9.2",
"shiki": "^3.14.0",
"tailwindcss": "^4.1.16",
"ts-morph": "^27.0.2",
"tsx": "^4.20.6",
"tw-animate-css": "^1.4.0",
"typescript": "^5.9.3",
"unist-builder": "^4.0.0",
"unist-util-visit": "^5.0.0"
}
Expand Down
14 changes: 8 additions & 6 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,

/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
"checkJs": true,

/* Bundled projects */
"lib": ["dom", "dom.iterable", "ES2022"],
"noEmit": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "preserve",
"plugins": [{ "name": "next" }],
"jsx": "react-jsx",
"plugins": [
{
"name": "next"
}
],
"incremental": true,

/* Path Aliases */
"baseUrl": ".",
"paths": {
Expand All @@ -35,7 +36,8 @@
"**/*.ts",
"**/*.mdx",
".next/types/**/*.ts",
"*.js"
"*.js",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules", "scripts/build-registry.mts", "__registry__"]
}
5 changes: 4 additions & 1 deletion docs/types/docs/data-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import type {
} from "@/types/data-grid";

export interface UseDataGridProps<TData>
extends Omit<TableOptions<TData>, "pageCount" | "getCoreRowModel"> {
extends Pick<
TableOptions<TData>,
"data" | "columns" | "getRowId" | "defaultColumn" | "initialState" | "state"
> {
/**
* Callback function called when data changes due to cell edits.
* Receives the updated data array after changes are applied.
Expand Down
21 changes: 8 additions & 13 deletions docs/types/docs/data-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,16 @@ import type {
} from "@/types/data-table";

export interface UseDataTableProps<TData>
extends Omit<
extends Required<Pick<TableOptions<TData>, "pageCount">>,
Pick<
TableOptions<TData>,
| "data"
| "columns"
| "getRowId"
| "defaultColumn"
| "initialState"
| "state"
| "pageCount"
| "getCoreRowModel"
| "manualFiltering"
| "manualPagination"
| "manualSorting"
>,
Required<Pick<TableOptions<TData>, "pageCount">> {
/** Initial state for the table. */
initialState?: Omit<Partial<TableState>, "sorting"> & {
sorting?: ExtendedColumnSort<TData>[];
};

> {
/**
* Custom query keys for URL state management.
*
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
},
"devDependencies": {
"@biomejs/biome": "^2.3.1",
"@changesets/cli": "^2.29.6",
"@testing-library/jest-dom": "^6.8.0",
"@changesets/cli": "^2.29.7",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.3.0",
"@vitejs/plugin-react": "^5.0.2",
"@types/node": "^24.9.1",
"@vitejs/plugin-react": "^5.1.0",
"expect-type": "^1.2.2",
"jsdom": "^26.1.0",
"jsdom": "^27.0.1",
"rimraf": "^6.0.1",
"turbo": "^2.5.6",
"typescript": "^5.9.2",
"turbo": "^2.5.8",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4"
"vitest": "^4.0.4"
}
}
Loading
Loading