Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
265 changes: 144 additions & 121 deletions bun.lock

Large diffs are not rendered by default.

518 changes: 263 additions & 255 deletions bun.nix

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"@radix-ui/react-scroll-area": "^1.2.10",
"ajv": "^8.17.1",
"class-variance-authority": "^0.7.1",
"fumadocs-core": "16.2.3",
"fumadocs-core": "16.9.3",
"fumadocs-mdx": "14.1.0",
"fumadocs-openapi": "^10.1.1",
"fumadocs-ui": "16.2.3",
"fumadocs-openapi": "^10.10.3",
"fumadocs-ui": "16.9.3",
"fuse.js": "^7.1.0",
"lucide-react": "^0.552.0",
"next": "16.0.11",
Expand All @@ -48,7 +48,7 @@
"@commitlint/cli": "^20.2.0",
"@commitlint/config-conventional": "^20.2.0",
"@eslint/eslintrc": "^3.3.3",
"@tailwindcss/postcss": "^4.1.16",
"@tailwindcss/postcss": "^4.3.3",
"@types/bun": "^1.3.9",
"@types/mdx": "^2.0.13",
"@types/node": "^24.10.0",
Expand All @@ -61,12 +61,9 @@
"lint-staged": "^16.2.7",
"postcss": "^8.5.6",
"prettier": "3.7.4",
"tailwindcss": "^4.1.16",
"tailwindcss": "^4.3.3",
"typescript": "^5.9.3",
"wrangler": "^4.53.0",
"yaml": "2.8.2"
},
"patchedDependencies": {
"fumadocs-openapi@10.1.1": "patches/fumadocs-openapi@10.1.1.patch"
}
}
13 changes: 0 additions & 13 deletions patches/fumadocs-openapi@10.1.1.patch

This file was deleted.

2 changes: 1 addition & 1 deletion src/lib/layout.shared.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
import type { BaseLayoutProps } from "@/components/layout/shared";
import { WhitepagesLogoLink } from "@/components/layout/whitepages-logo-link";

export function baseOptions(): BaseLayoutProps {
Expand Down
10 changes: 8 additions & 2 deletions src/lib/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ import { flattenOptionalUnions, stripAutoTitles } from "./openapi-transform";

const OPENAPI_URL = "https://api.whitepages.com/openapi.json";

// fumadocs-openapi's `SchemaMap` type (a Document per URL) isn't exported,
// so the input function is typed off `createOpenAPI`'s own signature rather
// than a guessed private type name. `response.json()` returns an untyped
// value; the cast asserts it's the OpenAPI document the URL promises.
type OpenAPIInput = NonNullable<Parameters<typeof createOpenAPI>[0]>["input"];

export const openapi = createOpenAPI({
input: async () => {
input: (async () => {
const response = await fetch(OPENAPI_URL);
if (!response.ok) {
throw new Error(
Expand All @@ -13,5 +19,5 @@ export const openapi = createOpenAPI({
}
const spec = await response.json();
return { [OPENAPI_URL]: stripAutoTitles(flattenOptionalUnions(spec)) };
},
}) as OpenAPIInput,
});
Loading