Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
docs: site overhaul — mobile nav, integrations IA, reference pages, SEO (#920)
Sid9382ee552f16
diff --git a/apps/docs/app/api-reference/[module]/[resource]/page.tsx b/apps/docs/app/api-reference/[module]/[resource]/page.tsxindex 9e969cb068..12abcadd3a 100644--- a/apps/docs/app/api-reference/[module]/[resource]/page.tsx+++ b/apps/docs/app/api-reference/[module]/[resource]/page.tsx@@ -1,8 +1,10 @@import type { Metadata } from "next";import { notFound } from "next/navigation";import { BaseUrl } from "@/components/api/base-url";+import { Breadcrumb } from "@/components/api/breadcrumb";import { EndpointSection } from "@/components/api/endpoint-section";import { allResourceParams, apiBase, getResource } from "@/lib/api-data";+import { pageSeo } from "@/lib/seo";type Params = { params: Promise<{ module: string; resource: string }> };@@ -13,10 +15,13 @@ export function generateStaticParams() {export async function generateMetadata(props: Params): Promise<Metadata> {const { module, resource } = await props.params;const found = getResource(module, resource);- return {+ return pageSeo({title: found ? `${found.resource.name} — Carbon API` : "Carbon API",- description: found?.resource.description- };+ ogTitle: found?.resource.name ?? "Carbon API",+ description: found?.resource.description,+ path: `/api-reference/${module}/${resource}`,+ eyebrow: found ? found.module.name : "API reference"+ });}export default async function ResourcePage(props: Params) {@@ -27,9 +32,9 @@ export default async function ResourcePage(props: Params) {return (<div className="max-w-[1180px]">- <p className="m-0 font-[family-name:var(--font-mono)] text-[12px] font-medium uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">- {mod.name}- </p>+ <Breadcrumb+ items={[{ label: "API", href: "/api-reference" }, { label: mod.name }]}+ /><h1 className="m-0 mt-[8px] text-[34px] font-[560] leading-[120%] text-[#262323]">{r.name}</h1>diff --git a/apps/docs/app/api-reference/authentication/page.tsx b/apps/docs/app/api-reference/authentication/page.tsxindex 713f0ca4dc..81bff8aef0 100644--- a/apps/docs/app/api-reference/authentication/page.tsx+++ b/apps/docs/app/api-reference/authentication/page.tsx@@ -1,4 +1,3 @@-import type { Metadata } from "next";import type { ReactNode } from "react";import { CodeBlock } from "@/components/api/code-block";import {@@ -14,12 +13,15 @@ import {} from "@/components/api/doc";import { ContentFooter } from "@/components/api/page-footer";import { highlight } from "@/lib/highlight";+import { pageSeo, SEO } from "@/lib/seo";-export const metadata: Metadata = {- title: "Authentication — Carbon API",- description:- "Create a scoped API key and authenticate requests with a bearer token."-};+export const metadata = pageSeo({+ title: `${SEO.api.auth.title} — Carbon`,+ ogTitle: SEO.api.auth.title,+ description: SEO.api.auth.description,+ path: "/api-reference/authentication",+ eyebrow: "API reference"+});const REQUEST = `curl 'https://rest.carbon.ms/item?limit=1' \\-H "Authorization: Bearer <api-key>"`;diff --git a/apps/docs/app/api-reference/layout.tsx b/apps/docs/app/api-reference/layout.tsxindex 85578d66c7..4ca7f9412b 100644--- a/apps/docs/app/api-reference/layout.tsx+++ b/apps/docs/app/api-reference/layout.tsx@@ -2,8 +2,8 @@ import type { ReactNode } from "react";import { ApiNav } from "@/components/api/api-nav";import { ApiConfigProvider } from "@/components/api/config-context";import { Configurator } from "@/components/api/configurator";-import { TableOfContents } from "@/components/api/toc";import { MainHeader } from "@/components/main-header";+import { ReadingProgress } from "@/components/reading-progress";import { navTree } from "@/lib/api-data";export default function ApiReferenceLayout({@@ -13,7 +13,7 @@ export default function ApiReferenceLayout({}) {return (<div className="min-h-screen w-full bg-[#FBFBF9]">- <MainHeader active="api" />+ <MainHeader active="api" mobileNav={<ApiNav tree={navTree} />} /><ApiConfigProvider><div className="mx-auto flex w-full max-w-[1480px] pt-[64px]">@@ -24,8 +24,8 @@ export default function ApiReferenceLayout({<main className="min-w-0 flex-1 px-[24px] pb-[140px] pt-[40px] lg:px-[56px]">{children}</main>- <aside className="hidden w-[232px] shrink-0 px-[28px] pt-[40px] xl:block">- <TableOfContents />+ <aside className="hidden w-[72px] shrink-0 justify-end pl-[16px] xl:flex">+ <ReadingProgress top={88} /></aside></div></ApiConfigProvider>diff --git a/apps/docs/app/api-reference/page.tsx b/apps/docs/app/api-reference/page.tsxindex f7f4026440..7952ca5125 100644--- a/apps/docs/app/api-reference/page.tsx+++ b/apps/docs/app/api-reference/page.tsx@@ -1,4 +1,3 @@-import type { Metadata } from "next";import { CodeBlock } from "@/components/api/code-block";import {Code,@@ -14,11 +13,15 @@ import { ContentFooter } from "@/components/api/page-footer";import { SdkCards } from "@/components/api/sdk-cards";import { apiBase } from "@/lib/api-data";import { highlight } from "@/lib/highlight";+import { pageSeo, SEO } from "@/lib/seo";-export const metadata: Metadata = {- title: "Introduction — Carbon API",- description: "The Carbon REST API — every table and view is an endpoint."-};+export const metadata = pageSeo({+ title: `${SEO.api.intro.title} — Carbon`,+ ogTitle: SEO.api.intro.title,+ description: SEO.api.intro.description,+ path: "/api-reference",+ eyebrow: "API reference"+});const ENV = `# .envCARBON_API_URL=${apiBase}diff --git a/apps/docs/app/docs/[[...slug]]/page.tsx b/apps/docs/app/docs/[[...slug]]/page.tsxindex 980f683e7f..0db3cc59af 100644--- a/apps/docs/app/docs/[[...slug]]/page.tsx+++ b/apps/docs/app/docs/[[...slug]]/page.tsx@@ -1,12 +1,41 @@import { createRelativeLink } from "fumadocs-ui/mdx";import type { Metadata } from "next";import { notFound } from "next/navigation";+import { Breadcrumb } from "@/components/api/breadcrumb";import { DocsFooter } from "@/components/api/page-footer";+import { PlanBadge } from "@/components/editorial/reference-components";import { getMDXComponents } from "@/components/mdx";+import { pageSeo } from "@/lib/seo";import { source } from "@/lib/source";type Params = { params: Promise<{ slug?: string[] }> };+type DocTreeNode = {+ type: "page" | "folder" | "separator";+ name?: unknown;+ url?: string;+ index?: { url?: string };+ children?: DocTreeNode[];+};++// Display title of the top-level folder that owns a page, read from the docs+// meta.json via the page tree — so the breadcrumb tracks the real folder titles+// (and renames like integrate → "Building") instead of a hardcoded map.+function groupLabelFor(slug0: string | undefined): string | undefined {+ if (!slug0) return undefined;+ const prefix = `/docs/${slug0}`;+ for (const node of (source.getPageTree().children ?? []) as DocTreeNode[]) {+ if (node.type !== "folder") continue;+ const owns =+ node.index?.url === prefix ||+ (node.children ?? []).some(+ (c) => c.url === prefix || c.url?.startsWith(`${prefix}/`)+ );+ if (owns) return typeof node.name === "string" ? node.name : undefined;+ }+ return undefined;+}+export default async function Page(props: Params) {const params = await props.params;const page = source.getPage(params.slug);@@ -16,7 +45,18 @@ export default async function Page(props: Params) {return (<article className="max-w-[760px]">- <h1 className="reference-title m-0">{page.data.title}</h1>+ <Breadcrumb+ items={[+ { label: "Reference", href: page.slugs.length ? "/docs" : undefined },+ ...(page.slugs.length > 1+ ? [{ label: groupLabelFor(page.slugs[0]) ?? page.slugs[0] }]+ : [])+ ]}+ />+ <div className="mt-[14px] flex flex-wrap items-center gap-x-[14px] gap-y-[8px]">+ <h1 className="reference-title m-0">{page.data.title}</h1>+ {page.data.plan && <PlanBadge plan={page.data.plan} />}+ </div>{page.data.description && (<p className="reference-desc m-0 mt-[12px]">{page.data.description}</p>)}@@ -41,8 +81,11 @@ export async function generateMetadata(props: Params): Promise<Metadata> {const page = source.getPage(params.slug);if (!page) notFound();- return {- title: page.data.title,- description: page.data.description- };+ return pageSeo({+ title: `${page.data.title} — Carbon`,+ ogTitle: page.data.title,+ description: page.data.description,+ path: page.url,+ eyebrow: "Documentation"+ });}diff --git a/apps/docs/app/docs/layout.tsx b/apps/docs/app/docs/layout.tsxindex 2380f58d4b..9e305b9e88 100644--- a/apps/docs/app/docs/layout.tsx+++ b/apps/docs/app/docs/layout.tsx@@ -1,8 +1,8 @@import type { ReactNode } from "react";import { DocsNav, type DocsNavNode } from "@/components/api/docs-nav";-import { TableOfContents } from "@/components/api/toc";import { MainHeader } from "@/components/main-header";import { NavScrollChevron } from "@/components/nav-scroll-chevron";+import { ReadingProgress } from "@/components/reading-progress";import { ScrollHints } from "@/components/scroll-hints";import { source } from "@/lib/source";import "../reference.css";@@ -44,7 +44,7 @@ export default function ReferenceLayout({ children }: { children: ReactNode }) {return (<div className="min-h-screen w-full bg-[#FBFBF9]">- <MainHeader active="reference" />+ <MainHeader active="reference" mobileNav={<DocsNav tree={tree} />} /><div className="mx-auto flex w-full max-w-[1480px] pt-[64px]"><aside className="nav-scroll-fade sticky top-[64px] hidden h-[calc(100dvh-64px)] w-[280px] shrink-0 overflow-y-auto border-r border-[#E7E7E3] px-[20px] py-[28px] scrollbar-hidden-until-scroll lg:block">@@ -54,8 +54,8 @@ export default function ReferenceLayout({ children }: { children: ReactNode }) {<main className="min-w-0 flex-1 px-[24px] pb-[140px] pt-[40px] lg:px-[56px]">{children}</main>- <aside className="hidden w-[232px] shrink-0 px-[28px] pt-[40px] xl:block">- <TableOfContents />+ <aside className="hidden w-[72px] shrink-0 justify-end pl-[16px] xl:flex">+ <ReadingProgress top={88} /></aside></div>diff --git a/apps/docs/app/editorial.css b/apps/docs/app/editorial.cssindex 6f76d38cb8..7ae0665074 100644--- a/apps/docs/app/editorial.css+++ b/apps/docs/app/editorial.css@@ -3,13 +3,13 @@* product/Guide surface (app/guides/*). Loaded AFTER global.css so its font* overrides win. */-/* DM Sans for body text, Fira Code for code/labels (loaded via <link> in layout) */+/* DM Sans for body text, Fira Code for code/labels (self-hosted via next/font) */:root {- --font-mono: "Fira Code", ui-monospace, monospace;+ --font-mono: var(--font-fira-code), ui-monospace, monospace;}body {- font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ font-family: var(--font-sans);-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}@@ -61,7 +61,9 @@ body {color: #202020cc;}.text-ink-faint {- color: #26232399;+ /* 0xB3 (70%) → ~5.3:1 on the #F5F5F2 paper, clearing WCAG AA for small text+ * while staying clearly lighter than ink/ink-ui. */+ color: #262323b3;}.text-ink-body {color: rgba(38, 35, 35, 0.78);@@ -156,7 +158,7 @@ body {padding: 16px;overflow-x: auto;background: transparent !important;- font-family: "Fira Code", ui-monospace, monospace;+ font-family: var(--font-mono);font-size: 12.5px;line-height: 1.65;scrollbar-width: none;diff --git a/apps/docs/app/global.css b/apps/docs/app/global.cssindex e4dde0f479..1c3c97ea9e 100644--- a/apps/docs/app/global.css+++ b/apps/docs/app/global.css@@ -3,10 +3,6 @@@import "tailwindcss";-/* Geist (Carbon's typeface) */-@import "non.geist";-@import "non.geist/mono";-/* Carbon's token → utility mapping (@theme inline) + @plugins */@import "@carbon/config/tailwind/theme.css";@@ -17,11 +13,12 @@/* Scan the docs app's own files for utility classes */@source "../";-/* Swap the site typeface to DM Sans / IBM Plex Mono (matches the editorial Guide).- * This overrides Carbon theme.css's Geist font-sans utility site-wide. */+/* Swap the site typeface to DM Sans / Fira Code (matches the editorial Guide), self-hosted+ * via next/font (see app/layout.tsx). This overrides Carbon theme.css's Geist font utilities+ * site-wide. The --font-dm-sans / --font-fira-code vars are set on <html> by next/font. */@theme {- --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;- --font-mono: "Fira Code", ui-monospace, monospace;+ --font-sans: var(--font-dm-sans), ui-sans-serif, system-ui, sans-serif;+ --font-mono: var(--font-fira-code), ui-monospace, monospace;}/* Raw token values for the default "Modern" (zinc) theme, baked in because a@@ -132,7 +129,7 @@--tw-prose-pre-bg: hsl(var(--muted));--tw-prose-th-borders: hsl(var(--border));--tw-prose-td-borders: hsl(var(--border));- font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ font-family: var(--font-sans);}/* Kill Tailwind Typography's default underlines. Heading anchors never underline;@@ -182,3 +179,58 @@font-variant-numeric: tabular-nums;}}++/* Honor reduced-motion globally: near-instant transitions/animations everywhere,+ * including third-party (Radix, Fumadocs). Individual components (View Transitions,+ * scroll-reveal, the lightbox) also opt out in their own code; this is the backstop. */+@media (prefers-reduced-motion: reduce) {+ *,+ *::before,+ *::after {+ animation-duration: 0.01ms !important;+ animation-iteration-count: 1 !important;+ transition-duration: 0.01ms !important;+ scroll-behavior: auto !important;+ }+}++/* Scroll-driven reveal + reading-progress — CSS-only, replacing the motion library.+ * Content is in the SSR HTML and visible by default (never blocks LCP); these are+ * pure enhancements where scroll-timeline is supported, and off under reduced-motion.+ * `.reading-progress-fill` defaults to height:0 so unsupported browsers show no fill. */+.reading-progress-fill {+ height: 0;+}+@media (prefers-reduced-motion: no-preference) {+ @supports (animation-timeline: view()) {+ .scroll-reveal {+ animation: scroll-reveal-in linear both;+ animation-timeline: view();+ animation-range: entry 2% entry 36%;+ }+ }+ @supports (animation-timeline: scroll()) {+ .reading-progress-fill {+ animation: reading-progress-fill linear both;+ animation-timeline: scroll(root block);+ }+ }+}+@keyframes scroll-reveal-in {+ from {+ opacity: 0;+ transform: translateY(14px);+ }+ to {+ opacity: 1;+ transform: none;+ }+}+@keyframes reading-progress-fill {+ from {+ height: 0%;+ }+ to {+ height: 100%;+ }+}diff --git a/apps/docs/app/guides/[chapter]/page.tsx b/apps/docs/app/guides/[chapter]/page.tsxindex ee2583575f..cbea90ce2f 100644--- a/apps/docs/app/guides/[chapter]/page.tsx+++ b/apps/docs/app/guides/[chapter]/page.tsx@@ -3,10 +3,12 @@ import { notFound } from "next/navigation";import type { ReactNode } from "react";import type { GuideChapter } from "@/components/editorial/guide-context";import { GuideProvider } from "@/components/editorial/guide-context";+import { GuideMobileNav } from "@/components/editorial/guide-mobile-nav";import { GuideSubnav } from "@/components/editorial/guide-subnav";import { HowToLayout } from "@/components/editorial/how-to-layout";import { editorialMdxComponents } from "@/components/editorial/mdx";import { MainHeader } from "@/components/main-header";+import { pageSeo, SEO } from "@/lib/seo";import { guideSource } from "@/lib/source";type Params = { params: Promise<{ chapter: string }> };@@ -25,6 +27,20 @@ function tocText(node: ReactNode): string {return "";}+// Rough reading time (~200 wpm) from the chapter's indexed text — the same+// `structuredData` the search index already produces, so no extra parsing.+function readingMinutes(structured?: {+ contents?: { content: string }[];+ headings?: { content: string }[];+}): number {+ const text = [+ ...(structured?.contents ?? []).map((c) => c.content),+ ...(structured?.headings ?? []).map((h) => h.content)+ ].join(" ");+ const words = text.trim().split(/\s+/).filter(Boolean).length;+ return Math.max(1, Math.round(words / 200));+}+// Chapters in reading order: flows are ordered by `flowIndex`, chapters within a// flow by `index`. This keeps each flow's chapters contiguous in the flat list.function orderedPages() {@@ -45,10 +61,19 @@ export function generateStaticParams() {export async function generateMetadata(props: Params): Promise<Metadata> {const { chapter } = await props.params;const page = orderedPages().find((p) => p.slugs[0] === chapter);- return {- title: page ? `${page.data.title} — Carbon` : "Carbon Docs",- description: page?.data.description- };+ // Guide titles read as the guide (flow), not the chapter — so a shared chapter+ // unfurls as "Make to order", not a stray line. Description is the guide's blurb.+ return pageSeo({+ title: page+ ? `${page.data.label} ${page.data.flowName} — Carbon`+ : "Carbon Docs",+ ogTitle: page?.data.flowName ?? "Carbon Docs",+ description: page+ ? (SEO.guides[page.data.flow]?.description ?? page.data.description)+ : SEO.site.description,+ path: `/guides/${chapter}`,+ eyebrow: "Guide"+ });}export default async function GuidePage(props: Params) {@@ -67,6 +92,7 @@ export default async function GuidePage(props: Params) {flow: p.data.flow,flowName: p.data.flowName,flowIndex: p.data.flowIndex,+ readingTime: readingMinutes(p.data.structuredData),items: p.data.toc.filter((t) => t.depth === 2).map((t) => ({@@ -84,7 +110,7 @@ export default async function GuidePage(props: Params) {return (<GuideProvider chapters={chapters} initialSlug={chapter}>- <MainHeader active="guides" />+ <MainHeader active="guides" mobileNav={<GuideMobileNav />} /><GuideSubnav /><HowToLayout bodies={bodies} /></GuideProvider>diff --git a/apps/docs/app/icon.svg b/apps/docs/app/icon.svgnew file mode 100644index 0000000000..db0480c53c--- /dev/null+++ b/apps/docs/app/icon.svg@@ -0,0 +1,3 @@+<svg width="424" height="480" viewBox="0 0 424 480" fill="none" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z" fill="#101A24"/>+</svg>diff --git a/apps/docs/app/layout.tsx b/apps/docs/app/layout.tsxindex 9f7171b70b..e52c65d030 100644--- a/apps/docs/app/layout.tsx+++ b/apps/docs/app/layout.tsx@@ -1,13 +1,123 @@import "./global.css";import "./editorial.css";import { RootProvider } from "fumadocs-ui/provider/next";+import type { Metadata, Viewport } from "next";+import { DM_Sans, Fira_Code } from "next/font/google";import type { ReactNode } from "react";import { SiteFooter } from "@/components/site-footer";+import { ogImage, SEO, SITE } from "@/lib/seo";++// next/font self-hosts DM Sans + Fira Code at build time: no render-blocking request+// to fonts.googleapis.com, automatic `font-display: swap`, and a size-adjusted fallback+// face so swapping in the web font causes ~no layout shift (CLS). Exposed as CSS vars+// the design tokens (--font-sans/--font-mono in global.css) point at.+const dmSans = DM_Sans({+ subsets: ["latin"],+ display: "swap",+ style: ["normal", "italic"],+ variable: "--font-dm-sans"+});++const firaCode = Fira_Code({+ subsets: ["latin"],+ display: "swap",+ variable: "--font-fira-code"+});++const defaultOg = ogImage({ title: SEO.site.title, eyebrow: "Documentation" });++export const metadata: Metadata = {+ metadataBase: new URL(SITE.url),+ // Child routes set their own full <title>; this is the fallback for the home route.+ title: SEO.site.title,+ description: SEO.site.description,+ applicationName: "Carbon",+ keywords: [+ "Carbon",+ "manufacturing system",+ "ERP",+ "MES",+ "MRP",+ "manufacturing software",+ "REST API",+ "MCP"+ ],+ authors: [{ name: "Carbon" }],+ // Favicon comes from the app/icon.svg file convention.+ openGraph: {+ title: SEO.site.title,+ description: SEO.site.description,+ siteName: "Carbon",+ url: SITE.url,+ type: "website",+ locale: "en_US",+ images: [defaultOg]+ },+ twitter: {+ card: "summary_large_image",+ title: SEO.site.title,+ description: SEO.site.description,+ images: [defaultOg.url]+ }+};++export const viewport: Viewport = {+ width: "device-width",+ initialScale: 1,+ themeColor: "#F5F5F2"+};++// Prerender likely-next pages on hover (~200ms) so in-site navigation feels instant.+// Scoped to same-origin doc paths; excludes the /api search endpoint. Chromium-only,+// ignored elsewhere (progressive enhancement). The app fires no on-load analytics, so+// prerendering has no early side effects to guard against.+// Organization + WebSite structured data, so search engines and AI crawlers resolve+// the brand, logo, and site identity consistently across every page.+const jsonLd = JSON.stringify({+ "@context": "https://schema.org",+ "@graph": [+ {+ "@type": "Organization",+ "@id": `${SITE.url}/#organization`,+ name: "Carbon",+ url: SITE.url,+ logo: `${SITE.url}/carbon-mark-light.svg`+ },+ {+ "@type": "WebSite",+ "@id": `${SITE.url}/#website`,+ url: SITE.url,+ name: SEO.site.title,+ description: SEO.site.description,+ publisher: { "@id": `${SITE.url}/#organization` },+ inLanguage: "en-US"+ }+ ]+});++const speculationRules = JSON.stringify({+ prerender: [+ {+ where: {+ and: [{ href_matches: "/*" }, { not: { href_matches: "/api/*" } }]+ },+ eagerness: "moderate"+ }+ ]+});export default function Layout({ children }: { children: ReactNode }) {return (- <html lang="en" suppressHydrationWarning>+ <html+ lang="en"+ className={`${dmSans.variable} ${firaCode.variable}`}+ suppressHydrationWarning+ ><head>+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{ __html: jsonLd }}+ /><linkrel="icon"type="image/svg+xml"@@ -44,9 +154,9 @@ export default function Layout({ children }: { children: ReactNode }) {href="https://fonts.gstatic.com"crossOrigin="anonymous"/>- <link- rel="stylesheet"- href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fira+Code:wght@400;500;600&display=swap"+ <script+ type="speculationrules"+ dangerouslySetInnerHTML={{ __html: speculationRules }}/></head><body className="flex min-h-screen flex-col antialiased">diff --git a/apps/docs/app/manifest.ts b/apps/docs/app/manifest.tsnew file mode 100644index 0000000000..d8c2e48df1--- /dev/null+++ b/apps/docs/app/manifest.ts@@ -0,0 +1,17 @@+import type { MetadataRoute } from "next";++export default function manifest(): MetadataRoute.Manifest {+ return {+ name: "Carbon Docs",+ short_name: "Carbon",+ description:+ "Technical documentation for Carbon — a manufacturing system for the office (ERP) and the floor (MES).",+ start_url: "/",+ display: "standalone",+ background_color: "#F5F5F2",+ theme_color: "#F5F5F2",+ icons: [+ { src: "/carbon-mark-light.svg", sizes: "any", type: "image/svg+xml" }+ ]+ };+}diff --git a/apps/docs/app/mcp/authentication/page.tsx b/apps/docs/app/mcp/authentication/page.tsxindex 2720decbfb..f3e61f5d53 100644--- a/apps/docs/app/mcp/authentication/page.tsx+++ b/apps/docs/app/mcp/authentication/page.tsx@@ -1,4 +1,3 @@-import type { Metadata } from "next";import { ApiKeysLink, AuthHeader } from "@/components/api/config-inline";import {Code,@@ -12,12 +11,15 @@ import {Table} from "@/components/api/doc";import { ContentFooter } from "@/components/api/page-footer";+import { pageSeo, SEO } from "@/lib/seo";-export const metadata: Metadata = {- title: "MCP Authentication — Carbon",- description:- "How MCP clients authenticate — connector OAuth or a scoped API key."-};+export const metadata = pageSeo({+ title: `${SEO.mcp.auth.title} — Carbon`,+ ogTitle: SEO.mcp.auth.title,+ description: SEO.mcp.auth.description,+ path: "/mcp/authentication",+ eyebrow: "MCP"+});export default function McpAuthenticationPage() {return (diff --git a/apps/docs/app/mcp/layout.tsx b/apps/docs/app/mcp/layout.tsxindex d159977f67..fb64b0342e 100644--- a/apps/docs/app/mcp/layout.tsx+++ b/apps/docs/app/mcp/layout.tsx@@ -2,14 +2,14 @@ import type { ReactNode } from "react";import { ApiConfigProvider } from "@/components/api/config-context";import { Configurator } from "@/components/api/configurator";import { McpNav } from "@/components/api/mcp-nav";-import { TableOfContents } from "@/components/api/toc";import { MainHeader } from "@/components/main-header";+import { ReadingProgress } from "@/components/reading-progress";import { toolsNavTree } from "@/lib/tools-data";export default function McpLayout({ children }: { children: ReactNode }) {return (<div className="min-h-screen w-full bg-[#FBFBF9]">- <MainHeader active="mcp" />+ <MainHeader active="mcp" mobileNav={<McpNav tools={toolsNavTree} />} /><ApiConfigProvider><div className="mx-auto flex w-full max-w-[1480px] pt-[64px]">@@ -20,8 +20,8 @@ export default function McpLayout({ children }: { children: ReactNode }) {<main className="min-w-0 flex-1 px-[24px] pb-[140px] pt-[40px] lg:px-[56px]">{children}</main>- <aside className="hidden w-[232px] shrink-0 px-[28px] pt-[40px] xl:block">- <TableOfContents />+ <aside className="hidden w-[72px] shrink-0 justify-end pl-[16px] xl:flex">+ <ReadingProgress top={88} /></aside></div></ApiConfigProvider>diff --git a/apps/docs/app/mcp/page.tsx b/apps/docs/app/mcp/page.tsxindex ec3e54f313..ae043d832d 100644--- a/apps/docs/app/mcp/page.tsx+++ b/apps/docs/app/mcp/page.tsx@@ -1,4 +1,3 @@-import type { Metadata } from "next";import { CodeBlock } from "@/components/api/code-block";import { McpEndpoint } from "@/components/api/config-inline";import {@@ -13,12 +12,15 @@ import {import { Faq, type FaqEntry } from "@/components/api/faq";import { ContentFooter } from "@/components/api/page-footer";import { highlight } from "@/lib/highlight";+import { pageSeo, SEO } from "@/lib/seo";-export const metadata: Metadata = {- title: "MCP — Carbon",- description:- "Connect Carbon's MCP server from Claude Code, Claude Desktop, Cursor, and other AI clients."-};+export const metadata = pageSeo({+ title: `${SEO.mcp.intro.title} — Carbon`,+ ogTitle: SEO.mcp.intro.title,+ description: SEO.mcp.intro.description,+ path: "/mcp",+ eyebrow: "MCP"+});const ENDPOINT = "https://app.carbon.ms/api/mcp";diff --git a/apps/docs/app/mcp/tools/[tool]/page.tsx b/apps/docs/app/mcp/tools/[tool]/page.tsxindex 17aa94090a..a6471c39e0 100644--- a/apps/docs/app/mcp/tools/[tool]/page.tsx+++ b/apps/docs/app/mcp/tools/[tool]/page.tsx@@ -1,8 +1,10 @@import type { Metadata } from "next";import { notFound } from "next/navigation";+import { Breadcrumb } from "@/components/api/breadcrumb";import { CodeBlock } from "@/components/api/code-block";-import { Code, DocEyebrow, DocPage, H2, P } from "@/components/api/doc";+import { Code, DocPage, H2, P } from "@/components/api/doc";import { highlight } from "@/lib/highlight";+import { pageSeo } from "@/lib/seo";import { allToolParams, getTool, type ToolClass } from "@/lib/tools-data";type Params = { params: Promise<{ tool: string }> };@@ -14,10 +16,13 @@ export function generateStaticParams() {export async function generateMetadata(props: Params): Promise<Metadata> {const { tool } = await props.params;const found = getTool(tool);- return {+ return pageSeo({title: found ? `${found.tool.name} — Carbon MCP` : "Carbon MCP",- description: found?.tool.description- };+ ogTitle: found?.tool.name ?? "Carbon MCP",+ description: found?.tool.description,+ path: `/mcp/tools/${tool}`,+ eyebrow: found ? `MCP · ${found.module.name}` : "MCP"+ });}const BADGE: Record<ToolClass, string> = {@@ -137,7 +142,9 @@ export default async function ToolPage(props: Params) {return (<DocPage>- <DocEyebrow>MCP · {mod.name}</DocEyebrow>+ <Breadcrumb+ items={[{ label: "MCP", href: "/mcp" }, { label: mod.name }]}+ /><div className="mt-[8px] flex flex-wrap items-center gap-[12px]"><h1 className="m-0 break-all font-[family-name:var(--font-mono)] text-[25px] font-[560] leading-[120%] text-[#262323]">{t.name}diff --git a/apps/docs/app/mcp/tools/page.tsx b/apps/docs/app/mcp/tools/page.tsxindex 0e2e182293..adb846b556 100644--- a/apps/docs/app/mcp/tools/page.tsx+++ b/apps/docs/app/mcp/tools/page.tsx@@ -1,4 +1,3 @@-import type { Metadata } from "next";import {Code,DocEyebrow,@@ -10,12 +9,15 @@ import {Row,Table} from "@/components/api/doc";+import { pageSeo, SEO } from "@/lib/seo";-export const metadata: Metadata = {- title: "MCP Tools — Carbon",- description:- "Carbon's MCP server exposes 1,200+ tools through a lean discovery pattern."-};+export const metadata = pageSeo({+ title: `${SEO.mcp.tools.title} — Carbon`,+ ogTitle: SEO.mcp.tools.title,+ description: SEO.mcp.tools.description,+ path: "/mcp/tools",+ eyebrow: "MCP"+});const MODULES: [string, number][] = [["Sales", 181],diff --git a/apps/docs/app/og/route.tsx b/apps/docs/app/og/route.tsxnew file mode 100644index 0000000000..1c3111487e--- /dev/null+++ b/apps/docs/app/og/route.tsx@@ -0,0 +1,187 @@+import { ImageResponse } from "next/og";++export const alt = "Carbon";+export const contentType = "image/png";++/**+ * Dynamic Open Graph card — `/og?title=…&eyebrow=…`. Rendered with the editorial+ * warm-paper palette and our display font (DM Sans), matching the site.+ *+ * Satori needs a TrueType/OTF/WOFF buffer (not woff2, which is all next/font emits),+ * so DM Sans is fetched at request time: Google's css2 endpoint serves a `truetype`+ * src when the request is subset by `text=` and not announced as woff2-capable. The+ * result is cached immutably per URL, so the fetch happens once per (title, eyebrow).+ */+async function loadDmSans(weight: number, text: string): Promise<ArrayBuffer> {+ const url = `https://fonts.googleapis.com/css2?family=DM+Sans:wght@${weight}&text=${encodeURIComponent(text)}`;+ const css = await (await fetch(url)).text();+ const src =+ css.match(+ /src:\s*url\((https:[^)]+)\)\s*format\(['"]?truetype['"]?\)/+ )?.[1] ?? css.match(/src:\s*url\((https:[^)]+\.ttf)\)/)?.[1];+ if (!src) throw new Error("Failed to resolve DM Sans TrueType source");+ return (await fetch(src)).arrayBuffer();+}++export async function GET(request: Request) {+ const { searchParams } = new URL(request.url);+ const title = (searchParams.get("title") || "Carbon Docs").slice(0, 110);+ const eyebrow = (searchParams.get("eyebrow") || "Documentation")+ .slice(0, 40)+ .toUpperCase();++ // Subset the font to just the glyphs this card draws.+ const glyphs = `${title}${eyebrow}Carbon carbon.ms`;+ const [semibold, regular] = await Promise.all([+ loadDmSans(600, glyphs),+ loadDmSans(400, glyphs)+ ]);++ const titleSize = title.length > 70 ? 48 : title.length > 44 ? 56 : 66;++ return new ImageResponse(+ <div+ style={{+ position: "relative",+ display: "flex",+ flexDirection: "column",+ justifyContent: "space-between",+ width: "100%",+ height: "100%",+ padding: "76px 80px",+ background: "#F5F5F2",+ fontFamily: "DM Sans"+ }}+ >+ {/* Hairline inset frame */}+ <div+ style={{+ position: "absolute",+ top: 24,+ left: 24,+ right: 24,+ bottom: 24,+ border: "1px solid #E2E1DD",+ borderRadius: 24+ }}+ />++ {/* Brand mark — a soft decorative accent balancing the wordmark */}+ <svg+ width={300}+ height={340}+ viewBox="0 0 424 480"+ fill="none"+ style={{ position: "absolute", top: 30, right: -36 }}+ >+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z"+ fill="#DCEEF7"+ />+ </svg>++ {/* Brand lockup */}+ <div style={{ display: "flex", alignItems: "center" }}>+ <div+ style={{+ display: "flex",+ width: 30,+ height: 30,+ borderRadius: 9,+ background: "#262323"+ }}+ />+ <div+ style={{+ marginLeft: 14,+ fontSize: 28,+ fontWeight: 600,+ color: "#262323"+ }}+ >+ Carbon+ </div>+ </div>++ {/* Title block */}+ <div style={{ display: "flex", flexDirection: "column" }}>+ <div+ style={{+ fontSize: 21,+ fontWeight: 600,+ letterSpacing: 4,+ color: "#1E84B0"+ }}+ >+ {eyebrow}+ </div>+ <div+ style={{+ marginTop: 18,+ fontSize: titleSize,+ fontWeight: 600,+ lineHeight: 1.1,+ color: "#262323",+ maxWidth: 1000+ }}+ >+ {title}+ </div>+ </div>++ {/* Footer */}+ <div+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "space-between"+ }}+ >+ <div+ style={{ fontSize: 22, fontWeight: 400, color: "rgba(38,35,35,0.5)" }}+ >+ carbon.ms+ </div>+ <div style={{ display: "flex" }}>+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: 5,+ background: "#00B0FF"+ }}+ />+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: 5,+ marginLeft: 8,+ background: "rgba(38,35,35,0.18)"+ }}+ />+ <div+ style={{+ width: 10,+ height: 10,+ borderRadius: 5,+ marginLeft: 8,+ background: "rgba(38,35,35,0.18)"+ }}+ />+ </div>+ </div>+ </div>,+ {+ width: 1200,+ height: 630,+ fonts: [+ { name: "DM Sans", data: semibold, weight: 600, style: "normal" },+ { name: "DM Sans", data: regular, weight: 400, style: "normal" }+ ],+ headers: { "cache-control": "public, max-age=31536000, immutable" }+ }+ );+}diff --git a/apps/docs/app/reference.css b/apps/docs/app/reference.cssindex 3ba09cfca9..de27e9ee84 100644--- a/apps/docs/app/reference.css+++ b/apps/docs/app/reference.css@@ -9,7 +9,7 @@/* ── Title + description (Fumadocs <DocsTitle>/<DocsDescription>) ───────────── */.reference-title {- font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ font-family: var(--font-sans);font-size: clamp(2rem, 4vw, 2.5rem) !important;line-height: 1.12 !important;letter-spacing: -0.005em;@@ -24,7 +24,7 @@/* ── Body headings ─────────────────────────────────────────────────────────── */.prose :where(h2):not(:where([class~="not-prose"] *)) {- font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ font-family: var(--font-sans);font-size: 1.5rem;font-weight: 560;letter-spacing: 0.005em;@@ -73,7 +73,7 @@* dozen identifiers per line; a solid dark fill turns that into a ransom note, so* inline stays quiet (ink on a whisper tint) while code blocks carry the dark. ── */.prose :not(pre) > code {- font-family: "Fira Code", ui-monospace, monospace;+ font-family: var(--font-mono);font-size: 0.82em;font-weight: 450;color: #2b2825;@@ -96,7 +96,7 @@padding: 11px 16px !important;padding-right: 64px !important;background: transparent !important;- font-family: "Fira Code", ui-monospace, monospace !important;+ font-family: var(--font-mono) !important;font-size: 12.5px !important;line-height: 1.55 !important;scrollbar-width: none;@@ -186,7 +186,7 @@#nd-sidebar,#nd-subnav,#nd-toc {- font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;+ font-family: var(--font-sans);}/* MainHeader is fixed at 64px. Reserve that height via Fumadocs' own variable so the@@ -255,7 +255,7 @@/* Table of contents: mono eyebrow heading + brand-accented active line */#nd-toc [data-toc] > p,#nd-toc h3 {- font-family: "IBM Plex Mono", ui-monospace, monospace !important;+ font-family: var(--font-mono) !important;font-size: 10px !important;letter-spacing: 0.08em;text-transform: uppercase;diff --git a/apps/docs/app/robots.ts b/apps/docs/app/robots.tsnew file mode 100644index 0000000000..3e9e0303f2--- /dev/null+++ b/apps/docs/app/robots.ts@@ -0,0 +1,11 @@+import type { MetadataRoute } from "next";+import { SITE } from "@/lib/seo";++export default function robots(): MetadataRoute.Robots {+ return {+ // Allow everything except internal endpoints (search, OG generation).+ rules: [{ userAgent: "*", allow: "/", disallow: ["/api/", "/og"] }],+ sitemap: `${SITE.url}/sitemap.xml`,+ host: SITE.url+ };+}diff --git a/apps/docs/app/sitemap.ts b/apps/docs/app/sitemap.tsnew file mode 100644index 0000000000..d28ea70d16--- /dev/null+++ b/apps/docs/app/sitemap.ts@@ -0,0 +1,63 @@+import type { MetadataRoute } from "next";+import { allResourceParams } from "@/lib/api-data";+import { SITE } from "@/lib/seo";+import { guideSource, source } from "@/lib/source";+import { allToolParams } from "@/lib/tools-data";++/** Every canonical, indexable URL on the docs site. `/` is intentionally omitted —+ * it rewrites to /guides/order, which is listed as its own canonical entry. */+export default function sitemap(): MetadataRoute.Sitemap {+ const abs = (path: string) => `${SITE.url}${path}`;+ const out: MetadataRoute.Sitemap = [];++ // Editorial Guide+ for (const page of guideSource.getPages()) {+ out.push({ url: abs(page.url), changeFrequency: "monthly", priority: 0.8 });+ }++ // Reference docs (platform + product reference + integrate)+ for (const page of source.getPages()) {+ out.push({ url: abs(page.url), changeFrequency: "monthly", priority: 0.7 });+ }++ // REST API reference+ out.push({+ url: abs("/api-reference"),+ changeFrequency: "monthly",+ priority: 0.6+ });+ out.push({+ url: abs("/api-reference/authentication"),+ changeFrequency: "yearly",+ priority: 0.5+ });+ for (const { module, resource } of allResourceParams()) {+ out.push({+ url: abs(`/api-reference/${module}/${resource}`),+ changeFrequency: "monthly",+ priority: 0.5+ });+ }++ // MCP+ out.push({ url: abs("/mcp"), changeFrequency: "monthly", priority: 0.6 });+ out.push({+ url: abs("/mcp/authentication"),+ changeFrequency: "yearly",+ priority: 0.5+ });+ out.push({+ url: abs("/mcp/tools"),+ changeFrequency: "monthly",+ priority: 0.5+ });+ for (const { tool } of allToolParams()) {+ out.push({+ url: abs(`/mcp/tools/${tool}`),+ changeFrequency: "monthly",+ priority: 0.4+ });+ }++ return out;+}diff --git a/apps/docs/components/api/base-url.tsx b/apps/docs/components/api/base-url.tsxindex c72db547ff..0713edca70 100644--- a/apps/docs/components/api/base-url.tsx+++ b/apps/docs/components/api/base-url.tsx@@ -6,7 +6,7 @@ import { useApiConfig } from "./config-context";export function BaseUrl({ path }: { path: string }) {const { base } = useApiConfig();return (- <div className="mt-[18px] inline-flex items-center gap-[10px] rounded-[8px] border border-[#E7E7E3] bg-white px-[12px] py-[8px] font-[family-name:var(--font-mono)] text-[13.5px] text-[rgba(38,35,35,0.8)]">+ <div className="mt-[18px] mb-[32px] flex w-fit items-center gap-[10px] rounded-[8px] border border-[#E7E7E3] bg-white px-[12px] py-[8px] font-[family-name:var(--font-mono)] text-[13.5px] text-[rgba(38,35,35,0.8)]"><span className="text-[rgba(38,35,35,0.5)]">Base</span>{base}{path}diff --git a/apps/docs/components/api/breadcrumb.tsx b/apps/docs/components/api/breadcrumb.tsxnew file mode 100644index 0000000000..d1f487a284--- /dev/null+++ b/apps/docs/components/api/breadcrumb.tsx@@ -0,0 +1,38 @@+import Link from "next/link";+import { Fragment } from "react";++export type Crumb = { label: string; href?: string };++/**+ * Slash-separated trail above a page title — surface → section. The current page is+ * the <h1> beneath it, so the trail stops at the parent (no redundant last crumb).+ * Mono + faint to sit quietly above the heading, matching the doc eyebrows.+ */+export function Breadcrumb({ items }: { items: Crumb[] }) {+ return (+ <nav+ aria-label="Breadcrumb"+ className="flex flex-wrap items-center font-[family-name:var(--font-mono)] text-[12.5px] leading-[16px]"+ >+ {items.map((c, i) => (+ <Fragment key={`${c.label}-${i}`}>+ {i > 0 && (+ <span aria-hidden="true" className="px-[7px] text-[rgba(38,35,35,0.3)]">+ /+ </span>+ )}+ {c.href ? (+ <Link+ href={c.href}+ className="text-[rgba(38,35,35,0.5)] no-underline transition-colors hover:text-[#262323]"+ >+ {c.label}+ </Link>+ ) : (+ <span className="text-[rgba(38,35,35,0.72)]">{c.label}</span>+ )}+ </Fragment>+ ))}+ </nav>+ );+}diff --git a/apps/docs/components/api/code-panel.tsx b/apps/docs/components/api/code-panel.tsxindex b46375d503..f8c6173b5f 100644--- a/apps/docs/components/api/code-panel.tsx+++ b/apps/docs/components/api/code-panel.tsx@@ -29,9 +29,52 @@ function CopyButton({ text }: { text: string }) {);}+/** Dark language picker — a native <select> styled to the panel chrome, with a custom+ * chevron so it reads as one calm control instead of a row of tabs. */+function LangSelect({+ value,+ onChange,+}: {+ value: keyof ApiSamples;+ onChange: (v: keyof ApiSamples) => void;+}) {+ return (+ <div className="relative shrink-0">+ <select+ aria-label="Code language"+ value={value}+ onChange={(e) => onChange(e.target.value as keyof ApiSamples)}+ className="cursor-pointer appearance-none rounded-[6px] border border-[#3A3A38] bg-[#262624] py-[4px] pl-[10px] pr-[26px] font-[family-name:var(--font-mono)] text-[12px] text-[#C9C9C5] transition-colors hover:border-[#4A4A47] hover:text-white focus:border-[#4A4A47] focus:outline-none"+ >+ {LANGS.map((l) => (+ <option key={l.key} value={l.key} className="bg-[#1B1B1A] text-[#C9C9C5]">+ {l.label}+ </option>+ ))}+ </select>+ <svg+ width="10"+ height="10"+ viewBox="0 0 12 12"+ fill="none"+ aria-hidden="true"+ className="pointer-events-none absolute right-[9px] top-1/2 -translate-y-1/2"+ >+ <path+ d="M3 4.5L6 7.5L9 4.5"+ stroke="#8C8C88"+ strokeWidth="1.3"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </div>+ );+}+function Panel({ children }: { children: React.ReactNode }) {return (- <div className="overflow-hidden rounded-[12px] border border-[#0e2a3f] bg-[#011627] shadow-[0_1px_2px_rgba(0,0,0,0.06)]">+ <div className="overflow-hidden rounded-[12px] border border-[#2A2A28] bg-[#1B1B1A] shadow-[0_1px_2px_rgba(0,0,0,0.06)]">{children}</div>);@@ -58,44 +101,39 @@ export function CodePanel({return (<div className="sticky top-[88px] flex flex-col gap-[16px]"><Panel>- <div className="flex h-[44px] items-center justify-between gap-[8px] border-b border-[#0e2a3f] pr-[10px] pl-[14px]">+ <div className="flex h-[44px] items-center justify-between gap-[8px] border-b border-[#2A2A28] pr-[8px] pl-[14px]"><div className="flex min-w-0 items-center gap-[8px]"><MethodBadge method={method} /><span className="truncate font-[family-name:var(--font-mono)] text-[12px] text-[#9A9A96]">{applyBase(fullPath, base)}</span></div>- <div className="flex shrink-0 items-center gap-[2px]">- {LANGS.map((l) => (- <button- key={l.key}- type="button"- onClick={() => setLang(l.key)}- className={`rounded-[6px] px-[8px] py-[4px] text-[12px] transition-colors ${- lang === l.key ? "bg-[#2E2E2B] text-white" : "text-[#8C8C88] hover:text-[#C9C9C5]"- }`}- >- {l.label}- </button>- ))}- </div>+ <LangSelect value={lang} onChange={setLang} /></div><div className="relative"><CopyButton text={applyConfig(samples[lang], base, apiKey)} />{/* biome-ignore lint/security/noDangerouslySetInnerHtml: build-time shiki HTML */}- <div className="api-shiki" dangerouslySetInnerHTML={{ __html: applyConfig(highlighted[lang], base, apiKey, true) }} />+ <div+ className="api-shiki"+ dangerouslySetInnerHTML={{+ __html: applyConfig(highlighted[lang], base, apiKey, true),+ }}+ /></div></Panel>{response ? (<Panel>- <div className="flex h-[40px] items-center border-b border-[#0e2a3f] px-[14px]">+ <div className="flex h-[40px] items-center border-b border-[#2A2A28] px-[14px]"><span className="font-[family-name:var(--font-mono)] text-[12px] tracking-[0.04em] text-[#9A9A96]">Response</span></div>{/* biome-ignore lint/security/noDangerouslySetInnerHtml: build-time shiki HTML */}- <div className="api-shiki-response" dangerouslySetInnerHTML={{ __html: responseHtml }} />+ <div+ className="api-shiki-response"+ dangerouslySetInnerHTML={{ __html: responseHtml }}+ /></Panel>) : (<div className="rounded-[10px] border border-[#E7E7E3] bg-[#FBFBF8] px-[14px] py-[12px] font-[family-name:var(--font-mono)] text-[13px] text-[rgba(38,35,35,0.63)]">diff --git a/apps/docs/components/api/toc.tsx b/apps/docs/components/api/toc.tsxdeleted file mode 100644index 27cec87f2a..0000000000--- a/apps/docs/components/api/toc.tsx+++ /dev/null@@ -1,64 +0,0 @@-"use client";--import { usePathname } from "next/navigation";-import { useEffect, useState } from "react";--type Heading = { id: string; text: string; level: number };--/** "On this page" rail. Scans the rendered <main> for headings and scroll-spies the active one. */-export function TableOfContents() {- const pathname = usePathname();- const [headings, setHeadings] = useState<Heading[]>([]);- const [active, setActive] = useState("");-- useEffect(() => {- const nodes = Array.from(document.querySelectorAll<HTMLElement>("main h2[id], main h3[id]"));- setHeadings(- nodes.map((n) => ({ id: n.id, text: n.textContent ?? "", level: n.tagName === "H3" ? 3 : 2 }))- );- setActive(nodes[0]?.id ?? "");-- if (nodes.length === 0) return;- const observer = new IntersectionObserver(- (entries) => {- const visible = entries.filter((e) => e.isIntersecting);- if (visible.length === 0) return;- const top = visible.reduce((a, b) =>- a.boundingClientRect.top < b.boundingClientRect.top ? a : b- );- setActive(top.target.id);- },- { rootMargin: "-88px 0px -68% 0px", threshold: 0 }- );- for (const n of nodes) observer.observe(n);- return () => observer.disconnect();- }, [pathname]);-- if (headings.length === 0) return null;-- return (- <nav className="sticky top-[88px] max-h-[calc(100dvh-120px)] overflow-y-auto scrollbar-hidden-until-scroll">- <p className="m-0 mb-[10px] font-[family-name:var(--font-mono)] text-[11px] font-medium uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">- On this page- </p>- <ul className="m-0 list-none border-l border-[#E7E7E3] p-0">- {headings.map((h) => (- <li key={h.id}>- <a- href={`#${h.id}`}- className={`-ml-px block border-l py-[5px] text-[13.5px] leading-[140%] transition-colors ${- h.level === 3 ? "pl-[24px]" : "pl-[14px]"- } ${- active === h.id- ? "border-[#1E84B0] text-[#1E84B0]"- : "border-transparent text-[rgba(38,35,35,0.68)] hover:text-[#262323]"- }`}- >- {h.text}- </a>- </li>- ))}- </ul>- </nav>- );-}diff --git a/apps/docs/components/editorial/custom-scrollbar.tsx b/apps/docs/components/editorial/custom-scrollbar.tsxdeleted file mode 100644index 013e1035ab..0000000000--- a/apps/docs/components/editorial/custom-scrollbar.tsx+++ /dev/null@@ -1,161 +0,0 @@-"use client";--import { type ReactNode, useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";--const TRACK_COLOR = [208, 209, 210];-const ACTIVE_COLOR = [0, 176, 255];--interface ScrollAreaProps {- children: ReactNode;- className?: string;- scrollbarOffset?: number;- onScrollElement?: (el: HTMLDivElement | null) => void;-}--export function ScrollArea({- children,- className = "",- scrollbarOffset = 20,- onScrollElement,-}: ScrollAreaProps) {- const scrollRef = useRef<HTMLDivElement>(null);- const trackRef = useRef<HTMLDivElement>(null);- const [thumbPos, setThumbPos] = useState(0);- const [dotCount, setDotCount] = useState(0);- const [hoverDot, setHoverDot] = useState<number | null>(null);-- useLayoutEffect(() => {- onScrollElement?.(scrollRef.current);- return () => onScrollElement?.(null);- }, [onScrollElement]);-- const recalc = useCallback(() => {- const el = scrollRef.current;- const track = trackRef.current;- if (!el || !track) return;-- const { scrollTop, scrollHeight, clientHeight } = el;- const dots = Math.floor(track.clientHeight / 7);- setDotCount(dots);-- if (scrollHeight <= clientHeight) {- setThumbPos(0);- } else {- setThumbPos(Math.round((scrollTop / (scrollHeight - clientHeight)) * (dots - 1)));- }- }, []);-- const scrollTo = useCallback((y: number) => {- const el = scrollRef.current;- const track = trackRef.current;- if (!el || !track) return;-- const rect = track.getBoundingClientRect();- const pct = Math.max(0, Math.min(1, (y - rect.top) / rect.height));- const max = el.scrollHeight - el.clientHeight;- if (max <= 0) return;- el.scrollTop = pct * max;- }, []);-- const handlePointerDown = useCallback(- (e: React.PointerEvent<HTMLDivElement>) => {- e.preventDefault();- const target = e.currentTarget;- target.setPointerCapture(e.pointerId);- scrollTo(e.clientY);-- const onMove = (ev: PointerEvent) => scrollTo(ev.clientY);- const onUp = (ev: PointerEvent) => {- target.releasePointerCapture(ev.pointerId);- target.removeEventListener("pointermove", onMove);- target.removeEventListener("pointerup", onUp);- target.removeEventListener("pointercancel", onUp);- };-- target.addEventListener("pointermove", onMove);- target.addEventListener("pointerup", onUp);- target.addEventListener("pointercancel", onUp);- },- [scrollTo],- );-- useEffect(() => {- const el = scrollRef.current;- if (!el) return;-- recalc();- el.addEventListener("scroll", recalc, { passive: true });- const observer = new ResizeObserver(recalc);- observer.observe(el);-- return () => {- el.removeEventListener("scroll", recalc);- observer.disconnect();- };- }, [recalc]);-- const getDotIndex = useCallback(- (clientY: number) => {- const track = trackRef.current;- if (!track || dotCount <= 0) return null;- const rect = track.getBoundingClientRect();- return Math.round(- Math.max(0, Math.min(1, (clientY - rect.top) / rect.height)) * (dotCount - 1),- );- },- [dotCount],- );-- return (- <div className="flex-1 min-w-0 flex min-h-0 my-8">- <div- ref={scrollRef}- className={`flex-1 min-w-0 min-h-0 overflow-y-auto scrollbar-none ${className}`}- style={{ paddingRight: `${scrollbarOffset}px` }}- >- {children}- </div>-- {/* Custom magnetic tick scrollbar */}- <div className="shrink-0 hidden min-[1000px]:block">- <div- ref={trackRef}- onPointerDown={handlePointerDown}- onPointerMove={(e) => setHoverDot(getDotIndex(e.clientY))}- onPointerLeave={() => setHoverDot(null)}- className="h-[80vh] flex flex-col items-end cursor-pointer touch-none"- style={{ gap: "5px", width: 14 }}- >- {Array.from({ length: dotCount }).map((_, i) => {- const dist = Math.abs(i - thumbPos) / 3;- const isNear = dist <= 1;- const influence = isNear ? Math.cos((dist * Math.PI) / 2) ** 2 : 0;- const isHovered = hoverDot === i;-- const lerp = (a: number, b: number) => Math.round(a + (b - a) * influence);-- const color = isHovered- ? `rgb(${ACTIVE_COLOR[0]}, ${ACTIVE_COLOR[1]}, ${ACTIVE_COLOR[2]})`- : isNear- ? `rgb(${lerp(TRACK_COLOR[0], ACTIVE_COLOR[0])}, ${lerp(TRACK_COLOR[1], ACTIVE_COLOR[1])}, ${lerp(TRACK_COLOR[2], ACTIVE_COLOR[2])})`- : "rgba(32, 32, 32, 0.16)";-- return (- <span- key={i}- className="shrink-0 rounded-full"- style={{- width: isHovered ? 14 : isNear ? 7 + 7 * influence : 7,- height: 2,- background: color,- transition:- "background 120ms linear, width 120ms cubic-bezier(0.22, 1, 0.36, 1)",- }}- />- );- })}- </div>- </div>- </div>- );-}diff --git a/apps/docs/components/editorial/guide-context.tsx b/apps/docs/components/editorial/guide-context.tsxindex 96f3d346de..8e2b34209b 100644--- a/apps/docs/components/editorial/guide-context.tsx+++ b/apps/docs/components/editorial/guide-context.tsx@@ -36,6 +36,7 @@ export type GuideChapter = {flow: string;flowName: string;flowIndex: number;+ readingTime: number;items: GuideItem[];};@@ -66,13 +67,20 @@ type Pos = { chapter: number; item: number };type GuideCtx = {active: Pos;goTo: (pos: Pos) => void;- registerScrollEl: (el: HTMLDivElement | null) => void;chapters: GuideChapter[];};const Ctx = createContext<GuideCtx | null>(null);-type DocWithVT = Document & { startViewTransition?: (cb: () => void) => unknown };+type ViewTransitionLike = { finished?: Promise<unknown>; ready?: Promise<unknown> };+type DocWithVT = Document & {+ startViewTransition?: (cb: () => void) => ViewTransitionLike;+};++/** Fixed chrome above the scrolling content: 64px header + 52px subnav (desktop) or+ * mobile context bar. The reader scrolls the window, so anchors and the scrollspy+ * offset by this to land headings just below the chrome. */+const CHROME = 116;export function GuideProvider({chapters,@@ -92,22 +100,15 @@ export function GuideProvider({const activeRef = useRef(active);activeRef.current = active;- const scrollElRef = useRef<HTMLDivElement | null>(null);const isUserScrolling = useRef(false);const guardTimer = useRef<ReturnType<typeof setTimeout> | null>(null);- const registerScrollEl = useCallback((el: HTMLDivElement | null) => {- scrollElRef.current = el;- }, []);-const scrollToAnchor = useCallback((id: string, smooth: boolean) => {- const el = scrollElRef.current;- if (!el || !id) return;- const target = el.querySelector(`#${CSS.escape(id)}`);- if (!(target instanceof HTMLElement)) return;- const top =- target.getBoundingClientRect().top - el.getBoundingClientRect().top + el.scrollTop - 32;- el.scrollTo({ top: Math.max(0, top), behavior: smooth ? "smooth" : "auto" });+ if (!id) return;+ const target = document.getElementById(id);+ if (!target) return;+ const top = target.getBoundingClientRect().top + window.scrollY - CHROME - 16;+ window.scrollTo({ top: Math.max(0, top), behavior: smooth ? "smooth" : "auto" });}, []);const goTo = useCallback(@@ -145,7 +146,10 @@ export function GuideProvider({const doc = document as DocWithVT;if (!reduce && typeof doc.startViewTransition === "function") {- doc.startViewTransition(apply);+ // Swallow the benign "transition aborted" rejection on fast chapter switches.+ const t = doc.startViewTransition(apply);+ t?.finished?.catch(() => {});+ t?.ready?.catch(() => {});} else {apply();}@@ -155,34 +159,41 @@ export function GuideProvider({[chapters, scrollToAnchor],);- // Scrollspy: update the active section as the reader scrolls.+ // The header wordmark fires `carbon:home` (a plain <Link href="/"> can't reset the+ // reader — replaceState has desynced Next's router from the real URL). Reset to the+ // first chapter so the logo always returns to the start of the guide.useEffect(() => {- const el = scrollElRef.current;- if (!el) return;+ const home = () => goTo({ chapter: 0, item: 0 });+ window.addEventListener("carbon:home", home);+ return () => window.removeEventListener("carbon:home", home);+ }, [goTo]);+ // Scrollspy: update the active section as the reader scrolls the window. A section+ // becomes active once its heading passes just under the fixed chrome.+ useEffect(() => {const handleScroll = () => {if (isUserScrolling.current) return;- const rect = el.getBoundingClientRect();- const threshold = rect.top + rect.height * 0.4;const chapter = chapters[activeRef.current.chapter];if (!chapter) return;+ const threshold = CHROME + 48;let closestItem = 0;for (let i = 0; i < chapter.items.length; i++) {- const heading = el.querySelector(`#${CSS.escape(chapter.items[i].id)}`);- if (heading instanceof HTMLElement && heading.getBoundingClientRect().top <= threshold) {+ const heading = document.getElementById(chapter.items[i].id);+ if (heading && heading.getBoundingClientRect().top <= threshold) {closestItem = i;}}setActive((p) => (p.item === closestItem ? p : { ...p, item: closestItem }));};- el.addEventListener("scroll", handleScroll, { passive: true });- return () => el.removeEventListener("scroll", handleScroll);+ window.addEventListener("scroll", handleScroll, { passive: true });+ handleScroll();+ return () => window.removeEventListener("scroll", handleScroll);}, [chapters, active.chapter]);return (- <Ctx.Provider value={{ active, goTo, registerScrollEl, chapters }}>{children}</Ctx.Provider>+ <Ctx.Provider value={{ active, goTo, chapters }}>{children}</Ctx.Provider>);}diff --git a/apps/docs/components/editorial/guide-mobile-nav.tsx b/apps/docs/components/editorial/guide-mobile-nav.tsxnew file mode 100644index 0000000000..1bc8ffe783--- /dev/null+++ b/apps/docs/components/editorial/guide-mobile-nav.tsx@@ -0,0 +1,79 @@+"use client";++import { useMobileNavClose } from "@/components/mobile-nav";+import { chaptersInFlow, flowsOf, useGuide } from "./guide-context";++/**+ * The Guide's tree inside the mobile drawer. Unlike the desktop SidebarNav (which+ * shows only the active flow), this lays out every flow → chapter → section so the+ * whole guide is reachable from a phone. Selecting anything switches via the same+ * `goTo` client state the rest of the reader uses, then closes the drawer.+ */+export function GuideMobileNav() {+ const { chapters, active, goTo } = useGuide();+ const close = useMobileNavClose();+ const flows = flowsOf(chapters);++ const select = (chapter: number, item: number) => {+ goTo({ chapter, item });+ close();+ };++ return (+ <div className="flex flex-col gap-[30px]">+ {flows.map((flow) => (+ <div key={flow.slug}>+ <p className="mb-[16px] px-[4px] font-[family-name:var(--font-mono)] text-[11.5px] font-[600] uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">+ {flow.name}+ </p>+ <div className="flex flex-col gap-[26px]">+ {chaptersInFlow(chapters, flow.slug).map(({ chapter, index }) => (+ <div key={chapter.slug}>+ <button+ type="button"+ onClick={() => select(index, 0)}+ className="flex w-full items-baseline gap-[8px] border-none bg-transparent px-[4px] text-left"+ >+ <span className="font-[family-name:var(--font-mono)] text-[11px] font-[500] leading-[140%] text-ink-faint">+ {chapter.label}+ </span>+ <span className="text-[15px] font-[530] leading-[140%] tracking-[0.15px] text-[rgba(32,32,32,0.82)]">+ {chapter.title}+ </span>+ </button>+ <div className="mt-[14px] flex flex-col gap-[12px] pl-[4px]">+ {chapter.items.map((item, itemIdx) => {+ const isActive = active.chapter === index && active.item === itemIdx;+ return (+ <button+ key={item.id}+ type="button"+ onClick={() => select(index, itemIdx)}+ className="flex cursor-pointer items-center gap-[14px] border-none bg-transparent p-0 text-left"+ >+ <span+ className={`h-[8px] w-[8px] shrink-0 rounded-[5.5px] transition-all duration-200 ${+ isActive+ ? "bg-[#B2E7FF] shadow-[0_1px_1px_0_rgba(0,126,183,0.70),inset_0_0.5px_0.2px_0_#FFF,0_0_0_3px_#96DEFF]"+ : "bg-[#F3F3F0] shadow-[0_1px_1px_0_rgba(0,0,0,0.25),0_0_0_3px_rgba(213,213,211,0.50),inset_0_0.5px_0.2px_0_#FFF]"+ }`}+ />+ <span+ className={`text-[14.5px] font-[460] leading-[140%] tracking-[0.15px] transition-colors ${+ isActive ? "text-[#262323]" : "text-[rgba(75,75,74,0.82)]"+ }`}+ >+ {item.title}+ </span>+ </button>+ );+ })}+ </div>+ </div>+ ))}+ </div>+ </div>+ ))}+ </div>+ );+}diff --git a/apps/docs/components/editorial/guide-subnav.tsx b/apps/docs/components/editorial/guide-subnav.tsxindex 30c37d130a..abdd273386 100644--- a/apps/docs/components/editorial/guide-subnav.tsx+++ b/apps/docs/components/editorial/guide-subnav.tsx@@ -26,7 +26,7 @@ export function GuideSubnav() {return (<div- className="fixed inset-x-0 top-[64px] z-[55]"+ className="fixed inset-x-0 top-[64px] z-[55] hidden min-[1000px]:block"style={{ background: "#F5F5F2", borderBottom: "1px solid #E8E7E6", boxShadow: "0 1px 0 0 #fff" }}><div className="mx-auto flex h-[52px] w-full max-w-[1440px] items-center overflow-x-auto px-[24px] scrollbar-none md:px-[32px]">diff --git a/apps/docs/components/editorial/how-to-layout.tsx b/apps/docs/components/editorial/how-to-layout.tsxindex 516a43bf97..333238e39e 100644--- a/apps/docs/components/editorial/how-to-layout.tsx+++ b/apps/docs/components/editorial/how-to-layout.tsx@@ -2,7 +2,7 @@import type { ReactNode } from "react";import { PageFeedback } from "@/components/api/page-feedback";-import { ScrollArea } from "./custom-scrollbar";+import { ReadingProgress } from "@/components/reading-progress";import { chaptersInFlow, useGuide } from "./guide-context";import { SidebarNav } from "./sidebar-nav";@@ -33,7 +33,7 @@ function ChapterCard({ dir, title, onSelect }: { dir: "prev" | "next"; title: st><FooterChevron dir={next ? "right" : "left"} /><span className="flex min-w-0 flex-1 flex-col">- <span className="font-[family-name:var(--font-mono)] text-[10.5px] font-[600] uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">+ <span className="font-[family-name:var(--font-mono)] text-[10.5px] font-[600] uppercase tracking-[0.08em] text-[rgba(38,35,35,0.72)]">{next ? "Next" : "Previous"}</span><span className="truncate text-[15px] font-[560] text-ink-ui transition-colors group-hover:text-[#262323]">@@ -44,8 +44,66 @@ function ChapterCard({ dir, title, onSelect }: { dir: "prev" | "next"; title: st);}+function PanelIcon() {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true" className="shrink-0">+ <rect x="1.75" y="2.75" width="12.5" height="10.5" rx="2.2" stroke="rgba(38,35,35,0.5)" strokeWidth="1.3" />+ <path d="M6.25 3v10" stroke="rgba(38,35,35,0.5)" strokeWidth="1.3" />+ </svg>+ );+}++/** Mobile-only context bar — takes the slot the flow subnav holds on desktop. Shows+ * where you are (flow / chapter) and opens the nav drawer the header hamburger uses,+ * so the whole guide is one tap away without a row of chips. */+function MobileContextBar({ flowName, title }: { flowName: string; title: string }) {+ return (+ <button+ type="button"+ onClick={() => window.dispatchEvent(new CustomEvent("carbon:open-mobile-nav"))}+ className="fixed inset-x-0 top-[64px] z-[55] flex h-[52px] items-center min-[1000px]:hidden"+ style={{ background: "#F5F5F2", borderBottom: "1px solid #E8E7E6", boxShadow: "0 1px 0 0 #fff" }}+ >+ {/* sr-only prefix keeps the visible flow/title text in the accessible name (Label in Name). */}+ <span className="sr-only">Open contents: </span>+ <span className="mx-auto flex w-full max-w-[1440px] items-center gap-[11px] px-[24px]">+ <PanelIcon />+ <span className="min-w-0 flex-1 truncate text-left text-[14px] font-[460] tracking-[0.15px] text-ink-ui">+ <span className="text-ink-faint">{flowName}</span>+ <span className="mx-[7px] text-[rgba(38,35,35,0.3)]">/</span>+ {title}+ </span>+ <svg width="13" height="13" viewBox="0 0 14 14" fill="none" aria-hidden="true" className="shrink-0">+ <path+ d="M3.5 5.5L7 9l3.5-3.5"+ stroke="rgba(38,35,35,0.45)"+ strokeWidth="1.5"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </span>+ </button>+ );+}++function ClockIcon() {+ return (+ <svg width="12" height="12" viewBox="0 0 14 14" fill="none" aria-hidden="true" className="shrink-0">+ <circle cx="7" cy="7" r="5.25" stroke="rgba(38,35,35,0.42)" strokeWidth="1.2" />+ <path+ d="M7 4.2V7l1.9 1.15"+ stroke="rgba(38,35,35,0.42)"+ strokeWidth="1.2"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}+export function HowToLayout({ bodies }: { bodies: ReactNode[] }) {- const { active, goTo, registerScrollEl, chapters } = useGuide();+ const { active, goTo, chapters } = useGuide();const currentChapter = chapters[active.chapter];if (!currentChapter) return null;@@ -58,91 +116,75 @@ export function HowToLayout({ bodies }: { bodies: ReactNode[] }) {const nextInFlow = flowChapters[posInFlow + 1];return (- <main- className="bg-[#F5F5F2] overflow-hidden min-h-0"- style={{ height: "100dvh", paddingTop: "116px" }}- >- <div className="mx-auto w-full max-w-[1440px] px-[20px] flex h-full min-h-0 overflow-hidden">- {/* Sidebar (desktop) */}- <div className="hidden min-[1000px]:flex shrink-0 w-[260px] flex-col overflow-y-auto scrollbar-hidden-until-scroll nav-scroll-fade pl-[50px] pr-[10px] pt-[40px] pb-[40px]">+ <main className="min-h-screen bg-[#F5F5F2]" style={{ paddingTop: "116px" }}>+ <MobileContextBar flowName={currentChapter.flowName} title={currentChapter.title} />+ <div className="mx-auto flex w-full max-w-[1440px] px-[20px]">+ {/* Sidebar (desktop) — sticky, self-start so it tracks the page scroll instead+ of stretching; scrolls internally only if it outgrows the viewport. */}+ <aside className="sticky top-[116px] hidden max-h-[calc(100dvh-116px)] w-[260px] shrink-0 self-start overflow-y-auto scrollbar-hidden-until-scroll nav-scroll-fade pb-[40px] pl-[50px] pr-[10px] pt-[40px] min-[1000px]:block"><SidebarNav chapters={chapters} active={active} onActiveChange={goTo} />- </div>+ </aside>- {/* Content area */}- <div className="flex-1 min-w-0 flex flex-col min-h-0">- {/* Mobile chapter selector */}- <div className="min-[1000px]:hidden px-[20px] pt-[20px] pb-[10px]">- <div className="flex gap-[8px] overflow-x-auto scrollbar-none">- {flowChapters.map(({ chapter, index }) => (- <button- key={chapter.slug}- type="button"- onClick={() => goTo({ chapter: index, item: 0 })}- className={`shrink-0 whitespace-nowrap px-[14px] py-[8px] rounded-[8px] border-none cursor-pointer text-[14px] font-[460] tracking-[0.14px] transition-all duration-200 ${- active.chapter === index- ? "bg-[rgba(231,231,227,0.80)] text-ink-ui"- : "bg-transparent text-ink-faint hover:bg-[rgba(231,231,227,0.40)]"- }`}- >- {chapter.title}- </button>- ))}+ {/* Content — natural document flow. The window scrolls, so the footer only+ appears once the reader reaches the true end of the chapter. The big left+ indent eases off at xl, where the right-rail TOC fills that space instead. */}+ <div className="min-w-0 flex-1 pb-[80px] pt-[28px] min-[476px]:pl-[32px] min-[640px]:pb-[120px] min-[640px]:pt-[44px] min-[1000px]:pl-[130px] min-[1000px]:pr-[20px] xl:pl-[80px] xl:pr-[40px]">+ <div className="max-w-[620px]">+ <div className="flex flex-wrap items-center gap-[12px]">+ <span+ className="inline-flex items-center justify-center whitespace-nowrap rounded-[100px] px-[8px] py-[4px] font-[family-name:var(--font-mono)] text-[12px] font-medium leading-[16px] text-[rgba(38,35,35,0.72)]"+ style={{+ background:+ "linear-gradient(180deg, rgba(251, 251, 248, 0.50) 0%, rgba(251, 251, 248, 0.00) 100%)",+ boxShadow:+ "0 0 0 1px #FFF inset, 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.02)",+ }}+ >+ {currentChapter.label} — {currentChapter.slug.toUpperCase()}+ </span>+ <span className="inline-flex items-center gap-[5px] font-[family-name:var(--font-mono)] text-[12px] leading-[16px] text-[rgba(38,35,35,0.42)]">+ <ClockIcon />+ {currentChapter.readingTime} min read+ </span></div>- </div>-- {/* Main content with custom scrollbar */}- <div className="flex-1 min-h-0 flex">- <ScrollArea scrollbarOffset={20} onScrollElement={registerScrollEl}>- <div className="px-[20px] min-[476px]:pl-[32px] min-[1000px]:pl-[130px] min-[1000px]:pr-[20px] pb-[100px]">- <div className="max-w-[620px]">- <div className="pt-[44px]">- <span- className="inline-flex items-center justify-center rounded-[100px] px-[8px] py-[4px] font-[family-name:var(--font-mono)] text-[12px] font-medium leading-[16px] text-[rgba(38,35,35,0.5)] whitespace-nowrap"- style={{- background:- "linear-gradient(180deg, rgba(251, 251, 248, 0.50) 0%, rgba(251, 251, 248, 0.00) 100%)",- boxShadow:- "0 0 0 1px #FFF inset, 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.02)",- }}- >- {currentChapter.label} — {currentChapter.slug.toUpperCase()}- </span>- </div>- {/* MDX body for the active chapter */}- {bodies[active.chapter]}+ {/* MDX body for the active chapter */}+ {bodies[active.chapter]}- {/* Footer — feedback + within-flow prev/next, matching the docs pages. */}- <footer className="mt-[64px] border-t border-[rgba(38,35,35,0.12)] pt-[26px]">- <PageFeedback key={active.chapter} variant="editorial" />- {(prevInFlow || nextInFlow) && (- <nav className="mt-[22px] grid grid-cols-1 gap-[12px] sm:grid-cols-2">- <div>- {prevInFlow && (- <ChapterCard- dir="prev"- title={prevInFlow.chapter.title}- onSelect={() => goTo({ chapter: prevInFlow.index, item: 0 })}- />- )}- </div>- <div>- {nextInFlow && (- <ChapterCard- dir="next"- title={nextInFlow.chapter.title}- onSelect={() => goTo({ chapter: nextInFlow.index, item: 0 })}- />- )}- </div>- </nav>+ {/* Footer — feedback + within-flow prev/next, matching the docs pages. */}+ <footer className="mt-[64px] border-t border-[rgba(38,35,35,0.12)] pt-[26px]">+ <PageFeedback key={active.chapter} variant="editorial" />+ {(prevInFlow || nextInFlow) && (+ <nav className="mt-[22px] grid grid-cols-1 gap-[12px] sm:grid-cols-2">+ <div>+ {prevInFlow && (+ <ChapterCard+ dir="prev"+ title={prevInFlow.chapter.title}+ onSelect={() => goTo({ chapter: prevInFlow.index, item: 0 })}+ />)}- </footer>- </div>- </div>- </ScrollArea>+ </div>+ <div>+ {nextInFlow && (+ <ChapterCard+ dir="next"+ title={nextInFlow.chapter.title}+ onSelect={() => goTo({ chapter: nextInFlow.index, item: 0 })}+ />+ )}+ </div>+ </nav>+ )}+ </footer></div></div>++ {/* Right-rail reading-progress ruler (≥xl). Stretches with the row so the+ sticky ruler inside tracks scroll; the left sidebar keeps section nav. */}+ <aside className="hidden w-[72px] shrink-0 justify-end pl-[16px] xl:flex">+ <ReadingProgress />+ </aside></div></main>);diff --git a/apps/docs/components/editorial/mdx.tsx b/apps/docs/components/editorial/mdx.tsxindex 493f97dcc6..de0cb097b9 100644--- a/apps/docs/components/editorial/mdx.tsx+++ b/apps/docs/components/editorial/mdx.tsx@@ -19,10 +19,10 @@ function ImageGlyph() {}const badgeToneClasses: Record<string, string> = {- neutral: "border-[#DADAD5] bg-[#EFEFEB] text-[rgba(38,35,35,0.55)]",- blue: "border-[#A9DAF3] bg-[#DFF5FF] text-[#3583A8]",- green: "border-[#A8DB91] bg-[#E4F8DA] text-[#4F9140]",- amber: "border-[#E6CFA3] bg-[#FFF2D8] text-[#9C7136]",+ neutral: "border-[#DADAD5] bg-[#EFEFEB] text-[rgba(38,35,35,0.72)]",+ blue: "border-[#A9DAF3] bg-[#DFF5FF] text-[#2A6A8A]",+ green: "border-[#A8DB91] bg-[#E4F8DA] text-[#3F7A33]",+ amber: "border-[#E6CFA3] bg-[#FFF2D8] text-[#835F20]",};function Badge({ children, tone = "neutral" }: { children: ReactNode; tone?: string }) {@@ -70,10 +70,10 @@ export function Screenshot({><div className="absolute inset-0 flex flex-col items-center justify-center gap-[10px] px-6 text-center"><ImageGlyph />- <span className="font-[family-name:var(--font-mono)] text-[10px] tracking-[0.08em] uppercase text-[rgba(38,35,35,0.42)]">+ <span className="font-[family-name:var(--font-mono)] text-[10px] tracking-[0.08em] uppercase text-[rgba(38,35,35,0.7)]">Carbon screenshot</span>- <span className="text-[14px] font-[500] text-[rgba(38,35,35,0.68)] max-w-[360px]">{label}</span>+ <span className="text-[14px] font-[500] text-[rgba(38,35,35,0.78)] max-w-[360px]">{label}</span></div></div></Zoomable>@@ -139,19 +139,58 @@ function ListItem({ children, ...props }: ComponentPropsWithoutRef<"li">) {);}-// `##` section headings — the big editorial title each rail item links to. Spread-// props first so rehype-slug's injected `id` survives (anchors + scrollspy need it).-function Heading2(props: ComponentPropsWithoutRef<"h2">) {+/** Hover anchor on a heading — deep-links to the section, matching the Reference.+ * Native `#id` jump; `scroll-mt` on the heading clears the fixed chrome. */+function HeadingAnchor({ id }: { id: string }) {+ return (+ <a+ href={`#${id}`}+ aria-label="Link to this section"+ className="ml-[12px] inline-flex items-center align-middle text-ink-faint no-underline opacity-0 transition-[opacity,color] duration-150 hover:text-[#1E84B0] group-hover:opacity-100"+ >+ <svg+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2.2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden+ className="h-[0.46em] w-[0.46em]"+ >+ <path d="M9.5 13.5a4 4 0 0 0 6 .4l2.5-2.5a4 4 0 0 0-5.7-5.7L11 7" />+ <path d="M14.5 10.5a4 4 0 0 0-6-.4L6 12.6a4 4 0 0 0 5.7 5.7L13 17" />+ </svg>+ </a>+ );+}++// `##` section headings — the big editorial title each rail item links to. `group`+// reveals the hover anchor; `id` (from rehype-slug) drives anchors + scrollspy.+function Heading2({ id, children, ...props }: ComponentPropsWithoutRef<"h2">) {return (<h2{...props}- className="scroll-mt-[32px] m-0 pt-[50px] text-[32px] md:text-[40px] font-normal leading-[115%] text-ink"- />+ id={id}+ className="group scroll-mt-[120px] m-0 pt-[50px] text-[32px] md:text-[40px] font-normal leading-[115%] text-ink"+ >+ {children}+ {id ? <HeadingAnchor id={id} /> : null}+ </h2>);}-function Heading3(props: ComponentPropsWithoutRef<"h3">) {- return <h3 {...props} className="m-0 mt-[48px] text-[24px] font-[530] leading-[140%] tracking-[0.24px] text-ink" />;+function Heading3({ id, children, ...props }: ComponentPropsWithoutRef<"h3">) {+ return (+ <h3+ {...props}+ id={id}+ className="group m-0 mt-[48px] scroll-mt-[120px] text-[24px] font-[530] leading-[140%] tracking-[0.24px] text-ink"+ >+ {children}+ {id ? <HeadingAnchor id={id} /> : null}+ </h3>+ );}function Heading4(props: ComponentPropsWithoutRef<"h4">) {@@ -168,7 +207,14 @@ function Blockquote(props: ComponentPropsWithoutRef<"blockquote">) {}function Anchor(props: ComponentPropsWithoutRef<"a">) {- return <a {...props} className="text-[#1E84B0] no-underline hover:underline" />;+ // Underlined by default: in a text block a link must be distinguishable by more than+ // color alone (WCAG 1.4.1) — the underline is the non-color cue.+ return (+ <a+ {...props}+ className="text-[#17729B] underline decoration-[rgba(23,114,155,0.4)] underline-offset-[3px] transition-colors hover:decoration-[#17729B]"+ />+ );}function HorizontalRule() {diff --git a/apps/docs/components/editorial/reference-components.tsx b/apps/docs/components/editorial/reference-components.tsxindex 456356de9b..34eb450855 100644--- a/apps/docs/components/editorial/reference-components.tsx+++ b/apps/docs/components/editorial/reference-components.tsx@@ -50,6 +50,25 @@ export function Callout({);}+/* Plan gate marker — flags a feature that needs a paid plan. Carbon's gated+ * features (`packages/ee/src/plan.ts`) all require the Business or Partner plan, so+ * the badge reads "Business plan" by default. Drop it at the top of a gated page, or+ * right under the heading of a gated section. */+export function PlanBadge({ plan = "Business", className = "" }: { plan?: string; className?: string }) {+ return (+ <span+ title={`Available on the ${plan} and Partner plans`}+ className={`inline-flex items-center gap-[6px] whitespace-nowrap rounded-[100px] border border-[#E6CFA3] bg-[#FFF2D8] px-[10px] py-[3.5px] font-[family-name:var(--font-mono)] text-[10.5px] font-[600] uppercase tracking-[0.04em] text-[#9C7136] ${className}`}+ >+ <svg width="11" height="11" viewBox="0 0 14 14" fill="none" aria-hidden="true" className="shrink-0">+ <rect x="2.6" y="6.3" width="8.8" height="5.6" rx="1.4" stroke="currentColor" strokeWidth="1.3" />+ <path d="M4.5 6.3V4.7a2.5 2.5 0 0 1 5 0v1.6" stroke="currentColor" strokeWidth="1.3" />+ </svg>+ {plan} plan+ </span>+ );+}+export function Cards({ children }: { children?: ReactNode }) {return <div className="my-[28px] grid gap-[14px] sm:grid-cols-2">{children}</div>;}diff --git a/apps/docs/components/editorial/sidebar-nav.tsx b/apps/docs/components/editorial/sidebar-nav.tsxindex 3f5c45c41a..7185be341d 100644--- a/apps/docs/components/editorial/sidebar-nav.tsx+++ b/apps/docs/components/editorial/sidebar-nav.tsx@@ -1,5 +1,20 @@+"use client";++import { useEffect, useRef } from "react";import { chaptersInFlow, type GuideChapter } from "./guide-context";+/** Walk up to the nearest actually-scrollable ancestor (the sticky sidebar's overflow+ * container) so we can scroll *it* without nudging the window. */+function getScrollParent(el: HTMLElement | null): HTMLElement | null {+ let p = el?.parentElement ?? null;+ while (p) {+ const oy = getComputedStyle(p).overflowY;+ if ((oy === "auto" || oy === "scroll") && p.scrollHeight > p.clientHeight) return p;+ p = p.parentElement;+ }+ return null;+}+interface SidebarNavProps {chapters: GuideChapter[];active: { chapter: number; item: number };@@ -12,6 +27,25 @@ export function SidebarNav({ chapters, active, onActiveChange }: SidebarNavPropsconst activeFlow = chapters[active.chapter]?.flow;const visible = activeFlow ? chaptersInFlow(chapters, activeFlow) : [];+ const activeRef = useRef<HTMLButtonElement>(null);++ // Follow the scrollspy: when the highlighted item sits outside the sidebar's own+ // scroll viewport, glide it back in — scrolling only the sidebar, never the page.+ useEffect(() => {+ const el = activeRef.current;+ if (!el) return;+ const scroller = getScrollParent(el);+ if (!scroller) return;+ const er = el.getBoundingClientRect();+ const sr = scroller.getBoundingClientRect();+ const PAD = 28;+ if (er.top < sr.top + PAD) {+ scroller.scrollTo({ top: scroller.scrollTop - (sr.top + PAD - er.top), behavior: "smooth" });+ } else if (er.bottom > sr.bottom - PAD) {+ scroller.scrollTo({ top: scroller.scrollTop + (er.bottom - sr.bottom + PAD), behavior: "smooth" });+ }+ }, [active.chapter, active.item]);+return (<nav className="flex flex-col gap-[40px]">{visible.map(({ chapter, index: chapterIdx }) => (@@ -30,6 +64,7 @@ export function SidebarNav({ chapters, active, onActiveChange }: SidebarNavPropsreturn (<buttonkey={item.id}+ ref={isActive ? activeRef : undefined}type="button"onClick={() => onActiveChange({ chapter: chapterIdx, item: itemIdx })}className="flex gap-[14px] text-left cursor-pointer bg-transparent border-none p-0 items-center"diff --git a/apps/docs/components/editorial/zoomable.tsx b/apps/docs/components/editorial/zoomable.tsxindex 0856fcc832..33c38eab5a 100644--- a/apps/docs/components/editorial/zoomable.tsx+++ b/apps/docs/components/editorial/zoomable.tsx@@ -1,27 +1,51 @@"use client";/* Click-to-enlarge for guide figures and screenshots. The thumbnail and the- * fullscreen overlay share a Framer Motion `layoutId`, so opening morphs the image- * up into a centered lightbox and closing morphs it back — no cut, no reload. Esc or- * a backdrop click closes it; body scroll is locked while open. */+ * fullscreen overlay share a `view-transition-name`, so opening morphs the image up+ * into a centered lightbox and closing morphs it back — the native View Transitions+ * API does the shared-element morph (no animation library). Esc or a backdrop click+ * closes it; body scroll is locked while open. Browsers without View Transitions, and+ * reduced-motion users, get an instant open/close. */-import { AnimatePresence, motion } from "framer-motion";-import { type ReactNode, useEffect, useId, useState } from "react";-import { createPortal } from "react-dom";+import { type ReactNode, useCallback, useEffect, useId, useState } from "react";+import { createPortal, flushSync } from "react-dom";-const spring = { type: "spring", stiffness: 280, damping: 32 } as const;+type ViewTransitionLike = { finished?: Promise<unknown>; ready?: Promise<unknown> };+type DocWithVT = Document & {+ startViewTransition?: (cb: () => void) => ViewTransitionLike;+};++/** Swallow the benign "transition aborted" rejection (fires on .ready and/or+ * .finished when a transition is interrupted) so it isn't an unhandled rejection. */+function ignoreAbort(t: ViewTransitionLike | undefined) {+ t?.finished?.catch(() => {});+ t?.ready?.catch(() => {});+}export function Zoomable({ children }: { children: ReactNode }) {const [open, setOpen] = useState(false);const [mounted, setMounted] = useState(false);- const id = useId();+ // useId() contains characters illegal in a CSS ident (":"); strip them.+ const name = `zoom-${useId().replace(/[^a-zA-Z0-9_-]/g, "")}`;useEffect(() => setMounted(true), []);+ // Animate the open/close through a view transition when available; the shared+ // view-transition-name on the thumbnail and the overlay image makes it a morph.+ const set = useCallback((next: boolean) => {+ const doc = document as DocWithVT;+ const reduce = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;+ if (!reduce && typeof doc.startViewTransition === "function") {+ ignoreAbort(doc.startViewTransition(() => flushSync(() => setOpen(next))));+ } else {+ setOpen(next);+ }+ }, []);+useEffect(() => {if (!open) return;const onKey = (e: KeyboardEvent) => {- if (e.key === "Escape") setOpen(false);+ if (e.key === "Escape") set(false);};window.addEventListener("keydown", onKey);const prev = document.body.style.overflow;@@ -30,19 +54,19 @@ export function Zoomable({ children }: { children: ReactNode }) {window.removeEventListener("keydown", onKey);document.body.style.overflow = prev;};- }, [open]);+ }, [open, set]);return (<>- <motion.button+ <buttontype="button"- layoutId={id}- transition={spring}- onClick={() => setOpen(true)}- aria-label="Enlarge"- style={{ opacity: open ? 0 : 1 }}+ onClick={() => set(true)}+ // The morph target lives on whichever of the two is currently shown.+ style={{ viewTransitionName: open ? "none" : name, opacity: open ? 0 : 1 }}className="group relative block w-full cursor-zoom-in appearance-none border-0 bg-transparent p-0 text-left">+ {/* Accessible name; prefixing keeps any visible caption in the name (Label in Name). */}+ <span className="sr-only">Enlarge: </span>{children}<span className="pointer-events-none absolute right-[14px] top-[14px] flex h-[28px] w-[28px] items-center justify-center rounded-[8px] border border-[#E7E7E3] bg-[#FBFBF8]/90 opacity-0 shadow-sm backdrop-blur-sm transition-opacity duration-200 group-hover:opacity-100"><svg width="14" height="14" viewBox="0 0 16 16" fill="none" aria-hidden>@@ -55,36 +79,25 @@ export function Zoomable({ children }: { children: ReactNode }) {/></svg></span>- </motion.button>+ </button>{mounted &&+ open &&createPortal(- <AnimatePresence>- {open && (- <motion.div- key="zoom-overlay"- className="fixed inset-0 z-[300] flex items-center justify-center p-[20px] md:p-[56px]"- onClick={() => setOpen(false)}- >- <motion.div- aria-hidden- className="absolute inset-0 bg-[rgba(38,35,35,0.55)] backdrop-blur-[3px]"- initial={{ opacity: 0 }}- animate={{ opacity: 1 }}- exit={{ opacity: 0 }}- transition={{ duration: 0.2 }}- />- <motion.div- layoutId={id}- transition={spring}- onClick={(e) => e.stopPropagation()}- className="relative z-10 w-full max-w-[min(1100px,92vw)] max-h-[88vh] cursor-zoom-out overflow-auto"- >- {children}- </motion.div>- </motion.div>- )}- </AnimatePresence>,+ <div+ className="fixed inset-0 z-[300] flex items-center justify-center p-[20px] md:p-[56px]"+ onClick={() => set(false)}+ >+ {/* Backdrop fades in/out via the root view transition (or instantly without VT). */}+ <div aria-hidden className="absolute inset-0 bg-[rgba(38,35,35,0.55)] backdrop-blur-[3px]" />+ <div+ onClick={(e) => e.stopPropagation()}+ style={{ viewTransitionName: name }}+ className="relative z-10 max-h-[88vh] w-full max-w-[min(1100px,92vw)] cursor-zoom-out overflow-auto"+ >+ {children}+ </div>+ </div>,document.body,)}</>diff --git a/apps/docs/components/main-header.tsx b/apps/docs/components/main-header.tsxindex 5f25016d0e..24771f45a0 100644--- a/apps/docs/components/main-header.tsx+++ b/apps/docs/components/main-header.tsx@@ -1,5 +1,8 @@import Link from "next/link";+import type { ReactNode } from "react";+import { MobileNav } from "./mobile-nav";import { SearchCommand } from "./search/search-command";+import { SiteLogo } from "./site-logo";const NAV = [{ key: "guides", label: "Guides", href: "/guides/order" },@@ -10,18 +13,21 @@ const NAV = [type Active = (typeof NAV)[number]["key"];-/** The single site-wide header: Carbon · Guide · Reference · API · Open Carbon. */-export function MainHeader({ active }: { active?: Active }) {+/** The single site-wide header: Carbon · Guide · Reference · API · Open Carbon.+ * `mobileNav` is the current surface's section tree, surfaced in the hamburger+ * drawer below `lg` where the desktop sidebar is hidden. */+export function MainHeader({ active, mobileNav }: { active?: Active; mobileNav?: ReactNode }) {return (<header- className="fixed inset-x-0 top-0 z-[60] flex h-[64px] items-center justify-between px-[24px] md:px-[32px]"+ className="fixed inset-x-0 top-0 z-[60] h-[64px]"style={{ background: "#F5F5F2", borderBottom: "1px solid #E8E7E6", boxShadow: "0 1px 0 0 #fff" }}>- <div className="flex items-center gap-[26px]">- <Link href="/" className="flex shrink-0 items-center no-underline" aria-label="Carbon home">- <img src="/carbon-word-light.svg" alt="Carbon" width={99} height={24} className="block" />- </Link>- <nav className="hidden items-center gap-[2px] md:flex">+ {/* Inner row capped to the content width so the logo/CTA don't drift to the+ screen edges on large displays — aligns with the docs/api/mcp containers. */}+ <div className="mx-auto flex h-full w-full max-w-[1480px] items-center justify-between px-[24px] md:px-[32px]">+ <div className="flex items-center gap-[26px]">+ <SiteLogo />+ <nav className="hidden items-center gap-[2px] lg:flex">{NAV.map((item) => (<Linkkey={item.key}@@ -42,7 +48,7 @@ export function MainHeader({ active }: { active?: Active }) {<div className="flex items-center gap-[10px]"><SearchCommand /><a- className="group relative inline-flex h-[40px] items-center justify-center rounded-[8px] px-[16px] no-underline"+ className="group relative hidden h-[40px] items-center justify-center rounded-[8px] px-[16px] no-underline sm:inline-flex"href="https://app.carbon.ms"><span aria-hidden="true" className="pointer-events-none absolute inset-0 rounded-[8px] cta-btn-dark" />@@ -52,6 +58,8 @@ export function MainHeader({ active }: { active?: Active }) {/><span className="text-on-dark relative z-10 text-[14px] font-[460] tracking-[0.15px]">Open Carbon</span></a>+ <MobileNav active={active}>{mobileNav}</MobileNav>+ </div></div></header>);diff --git a/apps/docs/components/mdx.tsx b/apps/docs/components/mdx.tsxindex 4046b2f3bc..9165f57c7d 100644--- a/apps/docs/components/mdx.tsx+++ b/apps/docs/components/mdx.tsx@@ -6,7 +6,7 @@ import type { ComponentProps } from "react";import { MdxCodeBlock } from "@/components/api/mdx-code-block";import { Checklist, Check } from "@/components/checklist";// Editorial Callout/Card so the Reference matches the Guide (not Fumadocs defaults).-import { Callout, Card, Cards, EnvVar, EnvVars } from "@/components/editorial/reference-components";+import { Callout, Card, Cards, EnvVar, EnvVars, PlanBadge } from "@/components/editorial/reference-components";import { FeatureCallout } from "@/components/feature-callout";import { Frame } from "@/components/frame";import { Eyebrow } from "@/components/prose";@@ -19,11 +19,22 @@ export function getMDXComponents(components?: MDXComponents) {pre: ({ title, children }: ComponentProps<"pre">) => (<MdxCodeBlock title={typeof title === "string" ? title : undefined}>{children}</MdxCodeBlock>),+ // Reference tables can be wide (many columns). On a phone the prose column is+ // ~330px, so wrap every table in a horizontal scroller — it keeps the rounded+ // frame and lets the table scroll instead of forcing the page to.+ table: ({ children, ...props }: ComponentProps<"table">) => (+ <div className="-mx-[2px] my-[20px] overflow-x-auto overscroll-x-contain">+ <table {...props} className="!my-0 min-w-full">+ {children}+ </table>+ </div>+ ),Card,Cards,Callout,EnvVar,EnvVars,+ PlanBadge,Step,Steps,Tab,diff --git a/apps/docs/components/mobile-nav.tsx b/apps/docs/components/mobile-nav.tsxnew file mode 100644index 0000000000..42407e90d1--- /dev/null+++ b/apps/docs/components/mobile-nav.tsx@@ -0,0 +1,190 @@+"use client";++/**+ * The mobile navigation drawer. Below `lg` the section sidebars are hidden and the+ * header's link row collapses, so this is the *only* way to move around on a phone:+ * a hamburger in the header opens a left drawer that carries the site-level nav+ * (Guides · Reference · API · MCP) plus, when a surface passes one, its full section+ * tree. The header stays on top (higher z) so the hamburger morphs to an X and can+ * close what it opened; the scrim and Esc close it too.+ *+ * Section trees are passed as `children`. Reference/API/MCP use `<Link>`, so a route+ * change closes the drawer on its own; the editorial Guide navigates via client state+ * (no route change), so its tree calls `useMobileNavClose()` to dismiss on select.+ */+import Link from "next/link";+import { usePathname } from "next/navigation";+import {+ createContext,+ useCallback,+ useContext,+ useEffect,+ useState,+ type ReactNode,+} from "react";+import { createPortal } from "react-dom";++const NAV = [+ { key: "guides", label: "Guides", href: "/guides/order" },+ { key: "reference", label: "Reference", href: "/docs" },+ { key: "api", label: "API", href: "/api-reference" },+ { key: "mcp", label: "MCP", href: "/mcp" },+] as const;++type Active = (typeof NAV)[number]["key"];++const CloseCtx = createContext<() => void>(() => {});+/** Lets a client-state nav (the Guide) dismiss the drawer after it switches section. */+export const useMobileNavClose = () => useContext(CloseCtx);++function HamburgerIcon({ open }: { open: boolean }) {+ return (+ <span className="relative block h-[15px] w-[18px]" aria-hidden="true">+ <span+ className={`absolute left-0 h-[1.6px] w-full rounded-full bg-current transition-all duration-300 ease-out ${+ open ? "top-1/2 -translate-y-1/2 rotate-45" : "top-[2px]"+ }`}+ />+ <span+ className={`absolute left-0 top-1/2 h-[1.6px] w-full -translate-y-1/2 rounded-full bg-current transition-opacity duration-200 ${+ open ? "opacity-0" : "opacity-100"+ }`}+ />+ <span+ className={`absolute left-0 h-[1.6px] w-full rounded-full bg-current transition-all duration-300 ease-out ${+ open ? "top-1/2 -translate-y-1/2 -rotate-45" : "bottom-[2px]"+ }`}+ />+ </span>+ );+}++export function MobileNav({ active, children }: { active?: Active; children?: ReactNode }) {+ const [open, setOpen] = useState(false);+ const [mounted, setMounted] = useState(false);+ const pathname = usePathname();+ const close = useCallback(() => setOpen(false), []);++ // The overlay is portaled to <body>; only do so after mount (no SSR portal target).+ useEffect(() => setMounted(true), []);++ // A real route change (Reference/API/MCP links) means the drawer's job is done.+ // The Guide never changes route, so it dismisses itself via useMobileNavClose().+ // biome-ignore lint/correctness/useExhaustiveDependencies: close on every navigation+ useEffect(() => {+ setOpen(false);+ }, [pathname]);++ // Let other surfaces (the Guide's mobile context bar) open the drawer without+ // threading state through — they dispatch a window event, we listen.+ useEffect(() => {+ const open = () => setOpen(true);+ window.addEventListener("carbon:open-mobile-nav", open);+ return () => window.removeEventListener("carbon:open-mobile-nav", open);+ }, []);++ // While open: Esc closes, and the body underneath is locked so it can't scroll.+ useEffect(() => {+ if (!open) return;+ const onKey = (e: KeyboardEvent) => {+ if (e.key === "Escape") setOpen(false);+ };+ document.addEventListener("keydown", onKey);+ const prev = document.body.style.overflow;+ document.body.style.overflow = "hidden";+ return () => {+ document.removeEventListener("keydown", onKey);+ document.body.style.overflow = prev;+ };+ }, [open]);++ return (+ <>+ <button+ type="button"+ onClick={() => setOpen((v) => !v)}+ aria-label={open ? "Close menu" : "Open menu"}+ aria-expanded={open}+ className="inline-flex h-[40px] w-[40px] items-center justify-center rounded-[8px] border border-[rgba(32,32,32,0.1)] bg-[#F5F5F2] text-ink-ui shadow-[0_1px_2px_0_rgba(0,0,0,0.04)] transition-colors hover:bg-[rgba(231,231,227,0.6)] lg:hidden"+ >+ <HamburgerIcon open={open} />+ </button>++ {/* Overlay is portaled to <body> so it escapes the header's stacking context.+ The header (z-60) then paints ABOVE the overlay (z-58) and stays fully on top+ and interactive; the scrim only dims the content below the header. */}+ {mounted &&+ createPortal(+ <div+ className={`fixed inset-0 z-[58] lg:hidden ${open ? "" : "pointer-events-none"}`}+ // `inert` when closed: the off-screen panel's links/buttons leave the tab+ // order and the a11y tree (a plain aria-hidden left them focusable).+ inert={!open}+ >+ {/* Scrim */}+ <button+ type="button"+ tabIndex={-1}+ aria-label="Close menu"+ onClick={close}+ className={`absolute inset-0 cursor-default bg-[rgba(20,18,18,0.34)] backdrop-blur-[1px] transition-opacity duration-300 ${+ open ? "opacity-100" : "opacity-0"+ }`}+ />++ {/* Panel — starts under the 64px header and runs to the bottom. */}+ <aside+ role="dialog"+ aria-modal="true"+ aria-label="Navigation"+ className={`absolute bottom-0 left-0 top-[64px] flex w-[min(86vw,340px)] flex-col overflow-y-auto overscroll-contain border-r border-[#E7E7E3] bg-[#FBFBF9] shadow-[8px_0_40px_-12px_rgba(38,35,35,0.28)] transition-transform duration-300 ease-out scrollbar-hidden-until-scroll ${+ open ? "translate-x-0" : "-translate-x-full"+ }`}+ >+ <div className="flex flex-1 flex-col px-[20px] pb-[24px] pt-[22px]">+ {/* Site-level nav */}+ <p className="mb-[8px] px-[4px] font-[family-name:var(--font-mono)] text-[11.5px] font-[600] uppercase tracking-[0.08em] text-[rgba(38,35,35,0.5)]">+ Browse+ </p>+ <nav className="flex flex-col gap-[2px]">+ {NAV.map((item) => (+ <Link+ key={item.key}+ href={item.href}+ aria-current={active === item.key ? "page" : undefined}+ className={`rounded-[8px] px-[12px] py-[10px] text-[16px] leading-[140%] tracking-[0.15px] no-underline transition-colors ${+ active === item.key+ ? "bg-[rgba(0,176,255,0.10)] font-[530] text-[#1E84B0]"+ : "font-[460] text-ink-ui hover:bg-[rgba(231,231,227,0.55)]"+ }`}+ >+ {item.label}+ </Link>+ ))}+ </nav>++ {/* Section tree for the current surface, if any */}+ {children ? (+ <CloseCtx.Provider value={close}>+ <div className="mt-[22px] border-t border-[#E7E7E3] pt-[22px]">{children}</div>+ </CloseCtx.Provider>+ ) : null}++ {/* CTA pinned to the bottom of the panel */}+ <a+ href="https://app.carbon.ms"+ className="group relative mt-[26px] inline-flex h-[44px] items-center justify-center rounded-[8px] no-underline"+ >+ <span aria-hidden="true" className="pointer-events-none absolute inset-0 rounded-[8px] cta-btn-dark" />+ <span className="text-on-dark relative z-10 text-[15px] font-[460] tracking-[0.15px]">+ Open Carbon+ </span>+ </a>+ </div>+ </aside>+ </div>,+ document.body,+ )}+ </>+ );+}diff --git a/apps/docs/components/reading-progress.tsx b/apps/docs/components/reading-progress.tsxindex f49ac2cacb..e6173e4e32 100644--- a/apps/docs/components/reading-progress.tsx+++ b/apps/docs/components/reading-progress.tsx@@ -1,45 +1,44 @@-"use client";-/**- * ReadingProgress — the right-edge tick ruler that fills as the reader scrolls.- * Mount once in the Guide layout (not inside MDX). Hidden below lg.+ * ReadingProgress — the right-rail tick ruler shared by the Guide and the+ * Reference/API/MCP docs. A dense column of dashes that fills brand-color from the top+ * down to the current scroll depth, making the page's length finite and visible.+ * Non-interactive; hidden below xl.*- * Design intent: make the page's length *finite and visible*. A reader who can- * see they're 40% through keeps going. See references/design-language.md.+ * CSS-only: the brand overlay's height is driven by `animation-timeline: scroll()`+ * (see `.reading-progress-fill` in global.css) — no JS, no motion library, no+ * per-frame React. Browsers without scroll-timeline simply show no fill.*/-import { motion, useScroll, useTransform } from "framer-motion";--const TICKS = 32;+const TICKS = 88;function Ticks({ className }: { className?: string }) {return (- <div className={`flex h-full flex-col justify-between ${className ?? ""}`}>+ <div className={`flex h-full w-full flex-col items-end justify-between ${className ?? ""}`}>{Array.from({ length: TICKS }).map((_, i) => (- <span key={i} className="h-px w-3 rounded-full bg-current" />+ // biome-ignore lint/suspicious/noArrayIndexKey: fixed-length decorative ruler+ <span key={i} className="h-px w-[14px] rounded-full bg-current" />))}</div>);}-export function ReadingProgress() {- const { scrollYProgress } = useScroll();- // Reveal the brand-colored copy of the ruler from the top down to scroll depth.- const height = useTransform(scrollYProgress, (v) => `${Math.min(Math.max(v, 0), 1) * 100}%`);-+/**+ * `top` is the sticky offset — the fixed chrome above the scroll area: 116 on the Guide+ * (64px header + 52px subnav), 88 on Reference/API/MCP (header only). The rail fills the+ * viewport below that, leaving a little breathing room at the bottom.+ */+export function ReadingProgress({ top = 116 }: { top?: number }) {+ const railHeight = `calc(100dvh - ${top + 48}px)`;return (- <div- aria-hidden- className="pointer-events-none fixed right-5 top-1/2 z-30 hidden h-56 -translate-y-1/2 lg:block"- >+ <div aria-hidden className="pointer-events-none sticky w-full" style={{ top, height: railHeight }}><div className="relative h-full">- {/* Base ticks (inactive) */}- <Ticks className="text-border" />- {/* Accent overlay clipped to scroll progress; inner copy is full-height so ticks align */}- <motion.div className="absolute inset-x-0 top-0 overflow-hidden text-brand" style={{ height }}>- <div className="h-56">- <Ticks className="text-brand" />+ {/* Base ruler (unread) */}+ <Ticks className="text-[#D8D9D6]" />+ {/* Brand overlay clipped to scroll depth; inner copy is full-height so ticks align */}+ <div className="reading-progress-fill absolute inset-x-0 top-0 overflow-hidden text-[#00B0FF]">+ <div style={{ height: railHeight }}>+ <Ticks className="text-[#00B0FF]" /></div>- </motion.div>+ </div></div></div>);diff --git a/apps/docs/components/scroll-reveal.tsx b/apps/docs/components/scroll-reveal.tsxindex a980351826..9ec2c1a13d 100644--- a/apps/docs/components/scroll-reveal.tsx+++ b/apps/docs/components/scroll-reveal.tsx@@ -1,9 +1,11 @@-"use client";-/*** ScrollReveal — fade + gentle rise as a section enters the viewport, once.- * Wrap Guide sections to pace a long page. Honors prefers-reduced-motion:- * when the user opts out, it renders the final state with no animation.+ * Wrap sections to pace a long page.+ *+ * CSS-only via a scroll-driven `animation-timeline: view()` (see `.scroll-reveal`+ * in global.css). No JS and no motion library: the content is in the SSR HTML and+ * visible by default, so it never blocks LCP. Browsers without scroll-timeline+ * (Safari/Firefox) and reduced-motion users just see the final state.** Usage in MDX:* <ScrollReveal>@@ -11,7 +13,6 @@* ...* </ScrollReveal>*/-import { motion, useReducedMotion } from "framer-motion";import type { ReactNode } from "react";export function ScrollReveal({@@ -21,19 +22,5 @@ export function ScrollReveal({children: ReactNode;className?: string;}) {- const reduce = useReducedMotion();-- if (reduce) return <div className={className}>{children}</div>;-- return (- <motion.div- className={className}- initial={{ opacity: 0, y: 12 }}- whileInView={{ opacity: 1, y: 0 }}- viewport={{ once: true, margin: "0px 0px -12% 0px" }}- transition={{ duration: 0.4, ease: [0.22, 1, 0.36, 1] }}- >- {children}- </motion.div>- );+ return <div className={`scroll-reveal${className ? ` ${className}` : ""}`}>{children}</div>;}diff --git a/apps/docs/components/site-footer.tsx b/apps/docs/components/site-footer.tsxindex b95234f6c0..b4c072f689 100644--- a/apps/docs/components/site-footer.tsx+++ b/apps/docs/components/site-footer.tsx@@ -75,7 +75,7 @@ export function SiteFooter() {))}</div><div className="mt-[2px]">- <p className="m-0 text-[13px] text-white/45">System Status:</p>+ <p className="m-0 text-[13px] text-white/60">System Status:</p><ahref="https://status.carbon.ms"target="_blank"@@ -92,7 +92,7 @@ export function SiteFooter() {<div className="flex flex-1 flex-wrap gap-x-[56px] gap-y-[32px] lg:justify-center">{COLUMNS.map((col) => (<nav key={col.heading} className="flex min-w-[120px] flex-col gap-[12px]">- <p className="m-0 text-[13px] font-medium text-white/40">{col.heading}</p>+ <p className="m-0 text-[13px] font-medium text-white/60">{col.heading}</p>{col.links.map((link) => (<akey={link.label}@@ -123,7 +123,7 @@ export function SiteFooter() {{/* Copyright */}<div className="mt-[40px] border-t border-white/10 pt-[20px]">- <p className="m-0 text-[13px] text-white/40">+ <p className="m-0 text-[13px] text-white/60">© {year} Carbon Manufacturing Systems Corp. All rights reserved.</p></div>diff --git a/apps/docs/components/site-logo.tsx b/apps/docs/components/site-logo.tsxnew file mode 100644index 0000000000..23228e45a5--- /dev/null+++ b/apps/docs/components/site-logo.tsx@@ -0,0 +1,24 @@+"use client";++import Link from "next/link";++/**+ * The header wordmark. Links to `/` (the make-to-order guide) for normal navigation,+ * but the editorial reader drives its own chapter state with history.replaceState, so+ * Next's router can think it's still on `/` while you're deep in a chapter — making a+ * plain `<Link href="/">` a no-op. So we also fire `carbon:home`, which the+ * GuideProvider listens for to reset the reader to the first chapter. On non-guide+ * pages nothing listens and the link navigates as usual.+ */+export function SiteLogo() {+ return (+ <Link+ href="/"+ className="flex shrink-0 items-center no-underline"+ aria-label="Carbon home"+ onClick={() => window.dispatchEvent(new CustomEvent("carbon:home"))}+ >+ <img src="/carbon-word-light.svg" alt="Carbon" width={99} height={24} className="block" />+ </Link>+ );+}diff --git a/apps/docs/content/docs/integrate/app-connections.mdx b/apps/docs/content/docs/integrate/app-connections.mdxdeleted file mode 100644index 9d70a7df3e..0000000000--- a/apps/docs/content/docs/integrate/app-connections.mdx+++ /dev/null@@ -1,47 +0,0 @@-----title: App connections-description: Connect Carbon to your accounting, CAD, project-management, and messaging tools.------Carbon ships a set of first-party **integrations** to third-party apps. Each one is enabled per company under **Settings → Integrations**, where you flip it on and supply its credentials or settings.--## Available integrations--| Integration | Category | What it does |-| --- | --- | --- |-| Email | Email | Sends outbound email — Carbon-managed via Resend, or your own SMTP server. |-| Exchange Rates | Accounting | Keeps currency exchange rates up to date automatically. |-| Xero | Accounting | Posts sales and purchase invoices to Xero, with account mapping and an initial backfill. |-| Slack | Assistant | Brings the Carbon Assistant into Slack and sends nonconformance notifications. |-| Onshape | CAD | Syncs CAD data from Onshape. |-| Paperless Parts | Estimating & Quoting | Syncs quotes and BOMs with Paperless Parts. |-| Jira | Project Management | Links quality issues to Jira. |-| Linear | Project Management | Syncs issues with Linear. |--<Callout type="note">-Xero, Slack, Onshape, and Jira authenticate over OAuth; Exchange Rates, Linear, and Paperless Parts use an API key; Email is configured with provider settings. A few connectors need server-side credentials to appear at all — **Jira** and **Onshape** require their OAuth client to be configured, and **Slack** is unavailable in controlled (ITAR) environments.-</Callout>--## How configuration works--An integration has two parts: a system-wide definition and a per-company activation.--- The **definition** carries a JSON schema describing the fields that integration needs (API keys, OAuth tokens, mapping options).-- The **activation** is a `companyIntegration` row — an `active` flag plus a `metadata` object holding your credentials and settings. Carbon validates that metadata against the integration's schema, so an integration can't be switched on with incomplete configuration.--That's the whole model: turning an integration on is writing a validated `metadata` blob and setting `active = true` for your company.--## How syncing works--Integrations that mirror data — Xero, Linear, Jira, Paperless Parts — keep a mapping between each Carbon record and its counterpart in the external system, so a Carbon customer, item, or invoice always resolves to the same remote id on the next sync. The work itself runs in the background: an initial backfill when you connect, then continuous syncing as records change.--## Related--<Cards>- <Card title="Webhooks" href="/docs/integrate/webhooks">- Push record changes to your own endpoints instead of a packaged integration.- </Card>- <Card title="Environment variables" href="/docs/platform/environment-variables">- The server-side credentials that gate OAuth integrations.- </Card>-</Cards>diff --git a/apps/docs/content/docs/integrate/meta.json b/apps/docs/content/docs/integrate/meta.jsonindex 5f694e1df6..2329b5e62a 100644--- a/apps/docs/content/docs/integrate/meta.json+++ b/apps/docs/content/docs/integrate/meta.json@@ -1,5 +1,5 @@{- "title": "Integrate",+ "title": "Building","defaultOpen": true,- "pages": ["app-connections", "webhooks"]+ "pages": ["webhooks"]}diff --git a/apps/docs/content/docs/integrate/webhooks.mdx b/apps/docs/content/docs/integrate/webhooks.mdxindex 9cae3f5598..1924ea75e0 100644--- a/apps/docs/content/docs/integrate/webhooks.mdx+++ b/apps/docs/content/docs/integrate/webhooks.mdx@@ -1,5 +1,6 @@---title: Webhooks+plan: Businessdescription: Get an HTTP callback the moment a Carbon record is created, changed, or deleted.---@@ -60,7 +61,7 @@ Carbon does **not** sign webhook payloads — there is no shared secret or signa## Related<Cards>- <Card title="App connections" href="/docs/integrate/app-connections">+ <Card title="Integrations" href="/docs/integrations">Prefer a packaged connector? See the first-party integrations.</Card><Card title="Authentication" href="/api-reference/authentication">diff --git a/apps/docs/content/docs/integrations/accounting.mdx b/apps/docs/content/docs/integrations/accounting.mdxnew file mode 100644index 0000000000..9495a9926b--- /dev/null+++ b/apps/docs/content/docs/integrations/accounting.mdx@@ -0,0 +1,50 @@+---+title: Accounting+description: Post invoices to Xero and keep currency exchange rates current automatically.+---++Two accounting integrations: **Xero** mirrors your invoices into an external ledger, and **Exchange Rates**+keeps multi-currency math honest. Exchange Rates is available on every plan; Xero is an Enterprise+(Business / Partner) integration.++## Xero++<PlanBadge plan="Business" className="my-[8px]" />++Connect over **OAuth**, then choose what Carbon and Xero share. Once connected, Carbon posts **sales and+purchase invoices** to Xero and keeps the two ledgers aligned.++| Setting | What it controls |+| --- | --- |+| Backfill | Whether to seed Xero with your existing **customers**, **vendors**, and **items** on first connect. |+| Source of truth | Per entity (customer, vendor, item, invoice, bill) — whether **Carbon** or the **accounting system** wins on conflict. |+| Account mapping | The default **sales** and **purchase** account codes, picked from your Xero chart of accounts. |++A **Run Initial Sync** action kicks off the first backfill on demand. After that, changes flow continuously,+matched to the same Xero record each time so a Carbon customer or invoice never duplicates.++<Callout type="warn">+Xero only appears when its OAuth client is configured server-side (`XERO_CLIENT_ID`). Without it the+integration is hidden — see [Environment variables](/docs/platform/environment-variables).+</Callout>++## Exchange rates++Turn it on and it runs — no fields to configure. Carbon refreshes currency **exchange rates daily** so+foreign-currency documents convert against current rates. Exchange Rates is available on **every plan**.++<Callout type="info">+On Carbon Cloud the rates come from **exchangeratesapi.io** by default — fetched against a **EUR** base and+then converted into each company's base currency, so every currency you trade in stays aligned.+</Callout>++## Related++<Cards>+ <Card title="Accounting reference" href="/docs/reference/accounting">+ How Carbon posts to the ledger — what Xero mirrors.+ </Card>+ <Card title="Invoices" href="/docs/reference/invoices">+ The sales and purchase invoices that sync to Xero.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/integrations/assistant.mdx b/apps/docs/content/docs/integrations/assistant.mdxnew file mode 100644index 0000000000..9ce18c3bdc--- /dev/null+++ b/apps/docs/content/docs/integrations/assistant.mdx@@ -0,0 +1,31 @@+---+title: Assistant+plan: Business+description: Bring the Carbon Assistant into Slack, with nonconformance notifications.+---++## Slack++Connect **Slack** over **OAuth** to put the **Carbon Assistant** in your workspace and receive+**nonconformance notifications** where your team already talks. Authorizing opens a Slack install popup;+there are no fields to fill in.++| Setting | What it controls |+| --- | --- |+| Connection | Established by the Slack OAuth install — no keys to paste. |++<Callout type="warn">+Slack is **hidden in controlled (ITAR) environments** — when Carbon runs in a controlled deployment, the+Slack integration doesn't appear at all.+</Callout>++## Related++<Cards>+ <Card title="MCP" href="/mcp">+ The Carbon Assistant's tools — the same surface, exposed over MCP.+ </Card>+ <Card title="Quality" href="/docs/reference/quality">+ The nonconformance events that trigger Slack notifications.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/integrations/cad.mdx b/apps/docs/content/docs/integrations/cad.mdxnew file mode 100644index 0000000000..e52367de3c--- /dev/null+++ b/apps/docs/content/docs/integrations/cad.mdx@@ -0,0 +1,30 @@+---+title: CAD+plan: Business+description: Sync CAD data from Onshape into Carbon.+---++## Onshape++Connect to **Onshape** over **OAuth** to bring CAD data into Carbon. Authorizing opens an Onshape popup;+once you approve read access, Carbon stores the connection and can pull from your Onshape documents.++| Setting | What it controls |+| --- | --- |+| Connection | Established by OAuth — no keys to paste. Carbon stores the access and refresh tokens for you. |++<Callout type="warn">+Onshape only appears when its OAuth client is configured server-side (`ONSHAPE_CLIENT_ID`) — see+[Environment variables](/docs/platform/environment-variables).+</Callout>++## Related++<Cards>+ <Card title="Items" href="/docs/reference/items">+ The part records CAD data attaches to.+ </Card>+ <Card title="Methods & sourcing" href="/docs/reference/methods">+ How a part's bill of materials is built up.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/integrations/email.mdx b/apps/docs/content/docs/integrations/email.mdxnew file mode 100644index 0000000000..19475dfca9--- /dev/null+++ b/apps/docs/content/docs/integrations/email.mdx@@ -0,0 +1,23 @@+---+title: Email+description: Send outbound email through Carbon-managed Resend or your own SMTP server.+---+++Email is how Carbon sends transactional mail — order confirmations, notifications, and the like. It's+available on **every plan**, and you choose who actually delivers the mail.++| Setting | What it controls |+| --- | --- |+| Provider | **Resend** (Carbon-managed) or **SMTP** (your own server). |+| From address | The address outbound mail is sent from. |+| API key | *(Resend)* Your Resend API key. |+| Host / Port | *(SMTP)* Your mail server and port (default `587`). |+| Username / Password | *(SMTP)* Credentials for the SMTP server. |+| Secure | *(SMTP)* Whether to connect over TLS. |++<Callout type="note">+The Resend and SMTP fields are shown only for the provider you pick — choose **SMTP** to route mail through+your own server, or **Resend** to let Carbon handle delivery.+</Callout>diff --git a/apps/docs/content/docs/integrations/estimating.mdx b/apps/docs/content/docs/integrations/estimating.mdxnew file mode 100644index 0000000000..d553ba2532--- /dev/null+++ b/apps/docs/content/docs/integrations/estimating.mdx@@ -0,0 +1,32 @@+---+title: Estimating & quoting+plan: Business+description: Pull quotes and bills of material from Paperless Parts into Carbon.+---++## Paperless Parts++Connect with an **API key** plus a **webhook signing secret** (Paperless calls Carbon when something+changes, and the secret verifies those calls). On connect you also set the defaults Carbon applies to items+it imports.++| Setting | What it controls |+| --- | --- |+| API key | Authenticates Carbon to Paperless Parts. |+| Webhook signing secret | Verifies inbound webhooks from Paperless Parts. |+| Method type | Default for imported items — **Purchase to Order** or **Pull from Inventory**. |+| Tracking type | Default for imported items — **Inventory**, **Non-Inventory**, or **Batch**. |+| Use Paperless order number | Whether to carry the Paperless order number onto the Carbon document. |++Imported quotes and BOMs land as Carbon records, ready to turn into sales orders and jobs.++## Related++<Cards>+ <Card title="Quotes" href="/docs/reference/quotes">+ Where an imported estimate becomes a Carbon quote.+ </Card>+ <Card title="Methods & sourcing" href="/docs/reference/methods">+ The bill of materials a Paperless import populates.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/integrations/index.mdx b/apps/docs/content/docs/integrations/index.mdxnew file mode 100644index 0000000000..7a68f403fd--- /dev/null+++ b/apps/docs/content/docs/integrations/index.mdx@@ -0,0 +1,78 @@+---+title: Integrations+description: Connect Carbon to your accounting, CAD, project-management, estimating, and messaging tools.+---++Carbon ships a set of first-party **integrations** to third-party apps. Each one is enabled per company+under **Settings → Integrations**, where you flip it on and supply its credentials or settings.++Integrations are an **Enterprise** capability — on Carbon Cloud they're available on the **Business** and+**Partner** plans, except **Email** and **Exchange Rates**, which are on every plan. Self-hosted instances+aren't plan-gated.++## How a connection works++An integration has two parts: a system-wide **definition** and a per-company **activation**.++- The **definition** describes the fields that integration needs — API keys, OAuth tokens, mapping options.+- The **activation** is a `companyIntegration` record: an `active` flag plus a `metadata` object holding+ your credentials and settings. Carbon validates that metadata against the definition, so an integration+ can't be switched on with incomplete configuration.++Connections are established one of three ways, depending on the app:++| Style | Apps | How |+| --- | --- | --- |+| Provider settings | Email | Pick a provider and fill in its fields. |+| API key | Linear, Paperless Parts, Exchange Rates | Paste a key (and any options). |+| OAuth | Xero, Jira, Onshape, Slack | Authorize Carbon with the provider; tokens are stored for you. |++<Callout type="note">+Disconnecting an integration sets `active = false` but **keeps your stored credentials** — reconnecting+doesn't make you re-enter them. To remove credentials entirely, clear the integration's settings before you+disconnect.+</Callout>++## What's available depends on your deployment++<Callout type="warn">+Which integrations even appear depends on how Carbon is deployed. The OAuth connectors — **Xero**, **Jira**,+and **Onshape** — only show up when their OAuth client is configured server-side (see+[Environment variables](/docs/platform/environment-variables)), and **Slack** is hidden in controlled (ITAR)+environments. So the same Carbon build can offer a different set of integrations depending on its+configuration.+</Callout>++## Browse by category++<Cards>+ <Card title="Accounting" href="/docs/integrations/accounting">+ Xero and automatic currency exchange rates.+ </Card>+ <Card title="Project management" href="/docs/integrations/project-management">+ Push quality issues to Linear or Jira.+ </Card>+ <Card title="CAD" href="/docs/integrations/cad">+ Sync CAD data from Onshape.+ </Card>+ <Card title="Estimating & quoting" href="/docs/integrations/estimating">+ Pull quotes and BOMs from Paperless Parts.+ </Card>+ <Card title="Email" href="/docs/integrations/email">+ Send outbound email through Resend or your own SMTP server.+ </Card>+ <Card title="Assistant" href="/docs/integrations/assistant">+ Bring the Carbon Assistant into Slack.+ </Card>+</Cards>++## Related++<Cards>+ <Card title="Webhooks" href="/docs/integrate/webhooks">+ Push record changes to your own endpoints instead of a packaged integration.+ </Card>+ <Card title="Environment variables" href="/docs/platform/environment-variables">+ The server-side credentials that gate the OAuth integrations.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/integrations/meta.json b/apps/docs/content/docs/integrations/meta.jsonnew file mode 100644index 0000000000..0b5c624473--- /dev/null+++ b/apps/docs/content/docs/integrations/meta.json@@ -0,0 +1,12 @@+{+ "title": "Integrations",+ "defaultOpen": true,+ "pages": [+ "accounting",+ "project-management",+ "cad",+ "estimating",+ "email",+ "assistant"+ ]+}diff --git a/apps/docs/content/docs/integrations/project-management.mdx b/apps/docs/content/docs/integrations/project-management.mdxnew file mode 100644index 0000000000..5fe67c7cd7--- /dev/null+++ b/apps/docs/content/docs/integrations/project-management.mdx@@ -0,0 +1,35 @@+---+title: Project management+plan: Business+description: Link Carbon quality issues to Linear or Jira so engineering tracks them in their own tool.+---++When a quality problem needs engineering's attention, Carbon can push it into the issue tracker your team+already lives in. Both connectors are aimed at **quality (nonconformance) issues**.++## Linear++Authenticate with a **Linear API key** (it begins with `lin_api`). Once connected, Carbon syncs issues to+Linear, keeping each Carbon issue matched to the same Linear issue.++| Setting | What it controls |+| --- | --- |+| API key | Your Linear API key — Carbon checks the `lin_api` prefix. |++## Jira++Connect over **OAuth** — there are no fields to fill in beyond authorizing Carbon. Once connected, you can+link a quality issue to a Jira issue.++<Callout type="warn">+Jira only appears when its OAuth client is configured server-side (`JIRA_CLIENT_ID`) — see+[Environment variables](/docs/platform/environment-variables).+</Callout>++## Related++<Cards>+ <Card title="Quality" href="/docs/reference/quality">+ The nonconformance issues these integrations push to engineering.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/meta.json b/apps/docs/content/docs/meta.jsonindex cdff224d4f..355c98e29a 100644--- a/apps/docs/content/docs/meta.json+++ b/apps/docs/content/docs/meta.json@@ -1,3 +1,3 @@{- "pages": ["index", "platform", "reference", "integrate"]+ "pages": ["index", "platform", "reference", "integrations", "integrate"]}diff --git a/apps/docs/content/docs/reference/meta.json b/apps/docs/content/docs/reference/meta.jsonindex e08e11f2da..54a6d0b625 100644--- a/apps/docs/content/docs/reference/meta.json+++ b/apps/docs/content/docs/reference/meta.json@@ -21,6 +21,8 @@"quality","suppliers-and-customers","inventory",+ "storage-rules",+ "shelf-life","traceability"]}diff --git a/apps/docs/content/docs/reference/shelf-life.mdx b/apps/docs/content/docs/reference/shelf-life.mdxnew file mode 100644index 0000000000..2e5069a12a--- /dev/null+++ b/apps/docs/content/docs/reference/shelf-life.mdx@@ -0,0 +1,125 @@+---+title: Shelf life+description: How Carbon stamps expiration dates on tracked stock — and blocks consuming it once expired.+---++**Shelf life** is how Carbon decides when a batch or serial of an item *expires*, and what happens when+someone tries to use it after that. It only applies to **Serial-** or **Batch-tracked** items, because the+expiration date lives on the physical lot — the **tracked entity** — not on the item master.++Three records work together: a **policy** per item (how expiry is decided), an **expiration date** per+tracked entity (the actual date), and a **company-wide rule** for what to do with expired stock.++Say a batch of adhesive is received under a **180-day** policy: Carbon stamps that lot to expire about six+months out. Try to issue it to a job on day 200 and the issue is **blocked** — expired stock can't flow into+a build unless someone with permission overrides it.++## How a date gets set — the three modes++An item's shelf-life policy has one **mode**, and the mode decides how the expiration date is computed:++| Mode | The date is… | Applies to |+| --- | --- | --- |+| Fixed Duration | a start event **+ a number of days** | Make or Buy items |+| Calculated | the **earliest expiry of the components** consumed to make it | Make items |+| Set on Receipt | **typed in by the operator** at receipt — nothing is computed | Buy items |++<Callout type="warn">+Shelf life is **not** a single "days" field on the item. Only **Fixed Duration** is a day count.+*Calculated* inherits the soonest expiry of its inputs, and *Set on Receipt* captures the supplier's+printed date by hand. A "received date + N days" mental model is wrong for two of the three modes.+</Callout>++## When the clock starts++For **Fixed Duration**, the start event depends on how the item is sourced:++- **Made** items start at a **job operation** finishing (or starting) — optionally gated to a specific+ **trigger process** (say, *Pasteurise* or *Packaging*), with **Before** or **After** timing. Sub-assemblies+ stamp their own batches from their own operations.+- **Bought** items start from the **receipt's posting date** — not "today" — plus the configured days.++**Calculated** items take the minimum expiration date across the tracked components they consume, so a build+can never outlive its shortest-dated ingredient. Whether that minimum spans **every** dated input or only+inputs that themselves carry a shelf-life policy is the company's *calculated input scope* — `AllInputs`+(the default) or `ManagedInputsOnly`.++## Policy fields++The policy lives on the item's pick method:++| Field | Applies to | Description |+| --- | --- | --- |+| Mode | all | *Fixed Duration*, *Calculated*, or *Set on Receipt*. |+| Days | Fixed Duration | The shelf-life length added to the start event. |+| Trigger process | Fixed Duration (made) | The operation that starts the clock; blank means any operation. |+| Timing | Fixed Duration (made) | Whether the clock starts **Before** or **After** that process. |+| Calculate from BOM | Fixed Duration | Also cap the date at the earliest expiry of the consumed components. |++<Callout type="note">+The expiration date is only ever written once, where it was blank — Carbon never silently overwrites a date a+batch already carries. A manual override is available, but it requires a **reason**, which is kept on the+entity's history.+</Callout>++## What happens to expired stock++A company-wide **expired-entity policy** governs every material issue and stock transfer:++| Policy | Effect when stock is past its date |+| --- | --- |+| Warn | Allowed, with a warning. |+| Block | Rejected. *(default)* |+| BlockWithOverride | Rejected unless the user supplies an override reason. |++<Callout type="warn">+Expiry is **enforced, not cosmetic.** The default policy is **Block** — consuming or transferring an expired+batch is rejected outright, with the error *"Cannot consume expired tracked entit(y/ies)"*. The check runs+wherever stock is consumed or moved — material issues, stock transfers, and maintenance work — so it holds+whether the action comes from the office or the floor.+</Callout>++Picking is **FEFO-aware**: available tracked entities are offered earliest-expiry-first, so the oldest stock+leaves first by default. A **near-expiry warning** highlights batches approaching their date in the tracked-entity+lists; set its lead time (in days) in company settings — leaving it blank turns the warning badges off.++## Company settings++Set company-wide in **Settings → Inventory**:++| Setting | Description |+| --- | --- |+| Expired-entity policy | *Warn*, *Block*, or *BlockWithOverride* for issues and transfers. |+| Near-expiry warning (days) | Lead time for the amber "expiring soon" badges; blank disables them. |+| Default shelf-life days | Fallback length when a policy needs a default. |+| Calculated input scope | `AllInputs` or `ManagedInputsOnly` for *Calculated* mode. |++## Where you set it++| Setting | Where |+| --- | --- |+| The per-item policy (mode, days, trigger process, timing) | On the item's **pick method** (item ↔ location), under its shelf-life fields. |+| The expired-entity policy, near-expiry days, default days | **Settings → Inventory**, in the shelf-life section. |+| A one-off date correction | The expiry-edit action on a tracked entity (reason required). |++<Callout type="info">+Setting a shelf-life policy is only allowed on **Serial** or **Batch** items — fungible *Inventory* and+*Non-Inventory* items have no tracked entity to carry a date, so the option doesn't apply.+</Callout>++## Related++<Cards>+ <Card title="Traceability" href="/docs/reference/traceability">+ Expiration lives on the tracked entity — the same lot/serial record traceability follows.+ </Card>+ <Card title="Inventory" href="/docs/reference/inventory">+ Where the expired-entity policy and near-expiry warning are configured.+ </Card>+ <Card title="Items" href="/docs/reference/items">+ Only Serial- and Batch-tracked items can carry a shelf-life policy.+ </Card>+ <Card title="Storage rules" href="/docs/reference/storage-rules">+ The other inventory guard — validate transactions instead of dating stock.+ </Card>+</Cards>diff --git a/apps/docs/content/docs/reference/storage-rules.mdx b/apps/docs/content/docs/reference/storage-rules.mdxnew file mode 100644index 0000000000..37b0a392af--- /dev/null+++ b/apps/docs/content/docs/reference/storage-rules.mdx@@ -0,0 +1,126 @@+---+title: Storage rules+plan: Business+description: Predicate guards that validate inventory transactions — block with an error, or warn and let the user continue.+---++A **storage rule** is a guard that runs when an inventory transaction posts. It checks the line against a+condition you define and, if the condition fails, either **blocks** the transaction or **warns** and lets the+user acknowledge and continue. Rules attach to **items** or to **work centers**.++For example, to keep batch chemicals out of ambient bins: target **items** in your chemicals group, fire on+**receipt** and **place** (put-away), and require `storageUnit.storageTypeId` `eq` your cold-storage type —+severity **error**, message `{item.id} must be stored in cold storage`. Receive that item into the wrong+bin and the post is stopped with exactly that message.++<Callout type="note">+Storage rules are a **validation** layer — a rule never transforms data, sets defaults, or computes a+price. Its only output is a message and a severity.+</Callout>++## What a rule checks++Each rule holds a small **condition tree** — a match kind over one or more field/operator/value rows:++- **Match kind** — `all` (every condition must hold), `any` (at least one), or `none` (none may hold).+- **Field** — chosen from a fixed registry: item facts (`item.type`, `item.replenishmentSystem`,+ `item.itemTrackingType`, custom fields), storage location (`storageUnit.storageTypeId`,+ `storageUnit.locationId`), work-center facts, and the line's `transaction.quantity`.+- **Operator** — `eq`, `neq`, `in`, `notIn`, `isSet`, `isNotSet`, `gt`, `lt`.++The **message** shown on a violation supports tokens like `{item.id}` and `{transaction.quantity}`, so the+text can name the offending line. The rule "passes" when its conditions hold; a violation fires when they+don't.++<Callout type="info">+Aside from the `isSet` / `isNotSet` checks, a condition pointing at a field that has **no value** fails as a+*"…is required"* violation — so the same rules double as presence checks (for instance, require a lot number+before a shipment can post).+</Callout>++## Operators++| Operator | Meaning |+| --- | --- |+| `eq` · `neq` | equals · does not equal |+| `in` · `notIn` | value is · is not in a list |+| `gt` · `lt` | greater than · less than |+| `isSet` · `isNotSet` | field has · does not have a value |++## Where rules fire++A rule lists the **surfaces** (transaction types) it applies to. The available surfaces depend on the+target:++| Target | Surfaces |+| --- | --- |+| Item | receipt, shipment, stockTransfer, warehouseTransfer, inventoryAdjustment, place, pick |+| Work center | operationStart, operationFinish, materialIssue, materialReceive |++Rules are evaluated server-side as the transaction posts — before any accounting or stock movement is+written. A blocked transaction writes nothing.++## Block or warn++| Severity | Behavior |+| --- | --- |+| `error` | Blocks the transaction until the condition is satisfied. |+| `warn` | Surfaces the message but lets the user **acknowledge and continue**. |++<Callout type="info">+An `error` always blocks. A `warn` blocks only until the user acknowledges it, then the same submit goes+through — useful for "are you sure?" guardrails that shouldn't hard-stop the floor.+</Callout>++For instance, a `warn` rule on **inventory adjustments** where `transaction.quantity` `gt` `1000`, with the+message `Large adjustment — confirm the count`, lets the count post once the user acknowledges it while still+flagging the outlier.++## Scope and assignment++A rule reaches the lines it applies to in one of two ways:++- **By filter** — item-target rules can scope to **item types** and/or **item groups**, combined with OR or+ AND. An empty filter matches **every** item.+- **By assignment** — pin a rule to a specific item from the item's **Rules** tab, or to a specific work+ center. Work-center rules can also be set to apply to all work centers.++## Rule fields++| Field | Description |+| --- | --- |+| Name | A unique name for the rule. |+| Severity | `error` (block) or `warn` (acknowledge and continue). |+| Conditions | The match kind plus the field / operator / value rows. |+| Message | Shown on a violation; supports `{token}` interpolation. |+| Surfaces | Which transactions the rule fires on. |+| Target | `item` or `workCenter`. |+| Item filters | Item types and/or groups to scope an item rule (empty = all items). |+| Active | Whether the rule is currently evaluated. |++## Where to manage them++Storage rules live in the **Inventory** area, under **Storage Rules** — create, edit, and toggle them there.+To attach an existing rule to a single item, use the **Rules** tab on that item.++<Callout type="warn">+Storage rules are an **Enterprise** capability, gated to the **Business** and **Partner** plans. On other+plans the screen shows an upgrade prompt and no rules are evaluated.+</Callout>++## Related++<Cards>+ <Card title="Items" href="/docs/reference/items">+ The most common rule target — scope by item type or group, or assign per item.+ </Card>+ <Card title="Inventory" href="/docs/reference/inventory">+ Storage rules run on inventory transactions: receipts, shipments, transfers, picks.+ </Card>+ <Card title="Work centers" href="/docs/reference/work-centers">+ The other target — guards on operation start/finish and material issue/receive.+ </Card>+ <Card title="Shelf life" href="/docs/reference/shelf-life">+ The other inventory guard — date tracked stock and block it once expired.+ </Card>+</Cards>diff --git a/apps/docs/lib/seo.ts b/apps/docs/lib/seo.tsnew file mode 100644index 0000000000..cef81eea84--- /dev/null+++ b/apps/docs/lib/seo.ts@@ -0,0 +1,100 @@+import type { Metadata } from "next";++/** Canonical site origin. Matches `metadataBase` in the root layout. */+export const SITE = {+ url: "https://carbon.ms",+ name: "Carbon",+} as const;++/**+ * Central, hand-written SEO copy — the one place to edit titles + descriptions.+ * Minimal and concrete; no filler. Per-resource / per-tool / per-doc copy still+ * comes from that page's own data — this covers the site, the surfaces, and the+ * guides (where a chapter should read as its guide, not a stray sentence).+ */+export const SEO = {+ site: {+ title: "Carbon Docs",+ description:+ "Docs for Carbon — the manufacturing system. ERP for the office, MES for the floor.",+ },+ api: {+ intro: {+ title: "API reference",+ description: "Carbon's REST API — every table and view is an endpoint.",+ },+ auth: {+ title: "API authentication",+ description: "Create a scoped API key, send it as a bearer token.",+ },+ },+ mcp: {+ intro: {+ title: "MCP server",+ description: "Connect Carbon to Claude, Cursor, and other AI clients over MCP.",+ },+ auth: {+ title: "MCP authentication",+ description: "Authenticate MCP clients with OAuth or a scoped API key.",+ },+ tools: {+ title: "MCP tools",+ description: "1,200+ tools, reached through one lean discovery pattern.",+ },+ },+ // Per-guide blurb, keyed by flow slug — shared by every chapter of that guide.+ guides: {+ "make-to-order": {+ description: "Follow one order from the sales desk to a shipped, traceable robot.",+ },+ "quote-to-cash": {+ description: "From quote to sales order to cash in the bank.",+ },+ "rfq-to-bill": {+ description: "From RFQ to purchase order to a matched supplier bill.",+ },+ "manufacturing-accounting": {+ description: "How a job costs out and posts to the ledger.",+ },+ } as Record<string, { description: string }>,+};++/** Descriptor for the dynamic OG image of a page, resolved against `metadataBase`. */+export function ogImage(opts: { title: string; eyebrow?: string }) {+ const params = new URLSearchParams({ title: opts.title });+ if (opts.eyebrow) params.set("eyebrow", opts.eyebrow);+ return { url: `/og?${params.toString()}`, width: 1200, height: 630, alt: opts.title };+}++/**+ * Per-page SEO: a self-referencing canonical plus Open Graph + Twitter cards that+ * share one dynamic OG template (`/og`). `title` is the full <title> (it may carry a+ * surface suffix like "— Carbon API"); `ogTitle` is the cleaner line drawn on the card.+ */+export function pageSeo(opts: {+ title: string;+ description?: string;+ path: string;+ eyebrow?: string;+ ogTitle?: string;+}): Metadata {+ const image = ogImage({ title: opts.ogTitle ?? opts.title, eyebrow: opts.eyebrow });+ return {+ title: opts.title,+ description: opts.description,+ alternates: { canonical: opts.path },+ openGraph: {+ title: opts.title,+ description: opts.description,+ url: opts.path,+ type: "article",+ images: [image],+ },+ twitter: {+ card: "summary_large_image",+ title: opts.title,+ description: opts.description,+ images: [image.url],+ },+ };+}diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex dbcccb4084..b5eabe24ca 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -17,7 +17,7 @@"dependencies": {"@radix-ui/react-dialog": "1.1.15","@radix-ui/react-popover": "1.1.15",- "framer-motion": "^12",+ "motion": "^12","fumadocs-core": "^16","fumadocs-mdx": "^15","fumadocs-ui": "^16",diff --git a/apps/docs/source.config.ts b/apps/docs/source.config.tsindex b649644007..98ec6fbb8d 100644--- a/apps/docs/source.config.ts+++ b/apps/docs/source.config.ts@@ -1,8 +1,16 @@-import { defineConfig, defineDocs, frontmatterSchema } from "fumadocs-mdx/config";+import { pageSchema } from "fumadocs-core/source/schema";+import { defineConfig, defineDocs } from "fumadocs-mdx/config";import { z } from "zod";export const docs = defineDocs({dir: "content/docs",+ docs: {+ // Optional `plan` frontmatter — when set (e.g. "Business"), the page template+ // renders a PlanBadge inline with the title to flag a paid-tier feature.+ schema: pageSchema.extend({+ plan: z.string().optional(),+ }),+ },});// The editorial Guide. Same MDX pipeline as the Reference, but each file is a@@ -10,7 +18,7 @@ export const docs = defineDocs({export const guide = defineDocs({dir: "content/guides",docs: {- schema: frontmatterSchema.extend({+ schema: pageSchema.extend({label: z.string(),index: z.number(),// Each chapter belongs to a flow (a self-contained tour). `flow` is thediff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 99cd524f60..7793d95319 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -291,7 +291,7 @@ importers:version: 1.40.0'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])cookie:specifier: 'catalog:'version: 1.1.1@@ -328,7 +328,7 @@ importers:version: 5.9.4([email protected])([email protected])'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@types/aws-lambda':specifier: 8.10.152version: 8.10.152@@ -373,7 +373,7 @@ importers:version: 5.8.3vite-plugin-babel-macros:specifier: 'catalog:'- version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))optionalDependencies:'@rollup/rollup-linux-x64-gnu':specifier: 4.60.1@@ -532,9 +532,6 @@ importers:'@radix-ui/react-popover':specifier: 1.1.15version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- framer-motion:- specifier: ^12- version: 12.38.0(@emotion/[email protected])([email protected]([email protected]))([email protected])fumadocs-core:specifier: ^16version: 16.10.3(@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])@@ -544,6 +541,9 @@ importers:fumadocs-ui:specifier: ^16version: 16.10.3(@emotion/[email protected])(@tailwindcss/[email protected])(@types/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected](@mdx-js/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])+ motion:+ specifier: ^12+ version: 12.38.0(@emotion/[email protected])([email protected]([email protected]))([email protected])next:specifier: ^16version: 16.2.3(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])@@ -739,7 +739,7 @@ importers:version: 3.4.5([email protected])'@react-router/remix-routes-option-adapter':specifier: 'catalog:'- version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])+ version: 7.15.1(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])'@react-router/serve':specifier: 'catalog:'version: 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])@@ -784,7 +784,7 @@ importers:version: 1.6.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])'@vercel/react-router':specifier: 'catalog:'- version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 1.2.6(@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])'@visx/responsive':specifier: 2.17.0version: 2.17.0([email protected])@@ -1010,16 +1010,16 @@ importers:version: 5.9.4(@lingui/[email protected]([email protected])([email protected]))([email protected])([email protected])'@lingui/vite-plugin':specifier: 'catalog:'- version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 5.9.4([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@react-router/dev':specifier: 'catalog:'- version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])'@tailwindcss/typography':specifier: 'catalog:'version: 0.5.19([email protected])'@tailwindcss/vite':specifier: 'catalog:'- version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.3.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@types/d3':specifier: 7.4.3version: 7.4.3@@ -1076,13 +1076,13 @@ importers:version: 5.8.3vite:specifier: 'catalog:'- version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ version: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])vite-plugin-babel-macros:specifier: 'catalog:'- version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))vitest:specifier: 'catalog:'- version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 4.1.6(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))apps/mes:dependencies:@@ -10429,20 +10429,6 @@ packages:react-dom:optional: true- resolution: {integrity: sha512-rFYkY/pigbcswl1XQSb7q424kSTQ8q6eAC+YUsSKooHQYuLdzdHjrt6uxUC+PRAO++q5IS7+TamgIw1AphxR+g==}- peerDependencies:- '@emotion/is-prop-valid': '*'- react: ^18.0.0 || ^19.0.0- react-dom: ^18.0.0 || ^19.0.0- peerDependenciesMeta:- '@emotion/is-prop-valid':- optional: true- react:- optional: true- react-dom:- optional: true-resolution: {integrity: sha512-uaBd3qC1v3KQqBEjwTUd183K6PbS+j0yR9w9VmEOLWA/tnUcSn8Xa3uck7t4dgpDoUss8xQTcj8W2L07lrnLFg==}peerDependencies:@@ -11887,9 +11873,6 @@ packages:resolution: {integrity: sha512-g76KvA001z+atjfxczdRtw/RXOM3OMSdd1f4DL77qCTF/+avrRJiawSG4yDibEQ215sr9kpinSlX2pCTJ9zbhw==}- resolution: {integrity: sha512-pdkHLD8QYRp8VfiNLb8xIBJis1byQ9gPT3Jnh2jqfFtAsWUA3dEepDlsWe/xMpO8McV+VdpKVcp+E+TGJEtOoA==}-resolution: {integrity: sha512-HxU3ZaBwNPVQUBQf1xxgq+7JrPNZvjLVxgbpEZL7RrWJnsxOf0/OM+yrHG9ogLQ31Do/r57Oz2gQWPK+6q62mg==}@@ -11903,9 +11886,6 @@ packages:resolution: {integrity: sha512-49Kt+HKjtbJKLtgO/LKj9Ld+6vw9BjH5d9sc40R/kVyH8GLAXgT42M2NnuPcJNuA3s9ZfZBUcwIgpmZWGEE+hA==}- resolution: {integrity: sha512-eHWisygbiwVvf6PZ1vhaHCLamvkSbPIeAYxWUuL3a2PD/TROgE7FvfHWTIH4vMl798QLfMw15nRqIaRDXTlYRg==}-resolution: {integrity: sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==}@@ -15711,6 +15691,16 @@ snapshots:'@lingui/babel-plugin-lingui-macro': 5.9.4([email protected])([email protected])babel-plugin-macros: 3.1.0+ '@lingui/[email protected]([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@lingui/cli': 5.9.4([email protected])([email protected])+ '@lingui/conf': 5.9.4([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ transitivePeerDependencies:+ - babel-plugin-macros+ - supports-color+ - typescript+'@lingui/[email protected]([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@lingui/cli': 5.9.4([email protected])([email protected])@@ -19253,6 +19243,56 @@ snapshots:'@react-pdf/primitives': 4.2.0'@react-pdf/stylesheet': 6.1.4+ '@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/generator': 7.29.1+ '@babel/parser': 7.29.2+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])+ '@babel/preset-typescript': 7.28.5(@babel/[email protected])+ '@babel/traverse': 7.29.0+ '@babel/types': 7.29.0+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@remix-run/node-fetch-server': 0.13.1+ arg: 5.0.2+ babel-dead-code-elimination: 1.0.12+ chokidar: 4.0.3+ dedent: 1.7.2([email protected])+ es-module-lexer: 1.7.0+ exit-hook: 2.2.1+ isbot: 5.1.37+ jsesc: 3.0.2+ lodash: 4.17.21+ p-map: 7.0.4+ pathe: 1.1.2+ picocolors: 1.1.1+ pkg-types: 2.3.0+ prettier: 3.8.1+ react-refresh: 0.14.2+ semver: 7.7.4+ tinyglobby: 0.2.16+ valibot: 1.3.1([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite-node: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ optionalDependencies:+ '@react-router/serve': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ typescript: 5.8.3+ transitivePeerDependencies:+ - '@types/node'+ - babel-plugin-macros+ - jiti+ - less+ - lightningcss+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - supports-color+ - terser+ - tsx+ - yaml+'@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@babel/core': 7.29.0@@ -19353,7 +19393,7 @@ snapshots:- tsx- yaml- '@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@babel/core': 7.29.0'@babel/generator': 7.29.1@@ -19383,7 +19423,7 @@ snapshots:semver: 7.7.4tinyglobby: 0.2.16valibot: 1.3.1([email protected])- vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])vite-node: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected])([email protected])optionalDependencies:'@react-router/serve': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])@@ -19457,15 +19497,21 @@ snapshots:optionalDependencies:typescript: 5.8.3+ '@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ dependencies:+ '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ optionalDependencies:+ typescript: 5.8.3+'@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':dependencies:'@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])optionalDependencies:typescript: 5.8.3- '@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':+ '@react-router/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])':dependencies:- '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])optionalDependencies:typescript: 5.8.3@@ -20688,6 +20734,13 @@ snapshots:postcss-selector-parser: 6.0.10tailwindcss: 4.3.0+ '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@tailwindcss/node': 4.3.0+ '@tailwindcss/oxide': 4.3.0+ tailwindcss: 4.3.0+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+'@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@tailwindcss/node': 4.3.0@@ -21516,6 +21569,16 @@ snapshots:'@vercel/[email protected]': {}+ '@vercel/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@react-router/node': 7.15.1([email protected]([email protected]([email protected]))([email protected]))([email protected])+ '@vercel/static-config': 3.2.0+ isbot: 5.1.37+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ ts-morph: 12.0.0+'@vercel/[email protected](@react-router/[email protected](patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])':dependencies:'@react-router/dev': 7.15.1(patch_hash=77f56df34c4642159bb889b71903a3953827448e994174779d32db487727da95)(@react-router/[email protected]([email protected]([email protected]([email protected]))([email protected]))([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])@@ -21656,6 +21719,14 @@ snapshots:optionalDependencies:vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@vitest/spy': 4.1.6+ estree-walker: 3.0.3+ magic-string: 0.30.21+ optionalDependencies:+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+'@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 4.1.6@@ -23297,26 +23368,16 @@ snapshots:react: 18.3.1react-dom: 19.2.6([email protected])- [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):+ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):dependencies:- motion-dom: 12.38.0- motion-utils: 12.36.0+ motion-dom: 12.40.0+ motion-utils: 12.39.0tslib: 2.8.1optionalDependencies:'@emotion/is-prop-valid': 1.4.0react: 18.3.1react-dom: 18.3.1([email protected])- [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):- dependencies:- motion-dom: 12.38.0- motion-utils: 12.36.0- tslib: 2.8.1- optionalDependencies:- '@emotion/is-prop-valid': 1.4.0- react: 19.2.6- react-dom: 19.2.6([email protected])-[email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):dependencies:motion-dom: 12.40.0@@ -25106,10 +25167,6 @@ snapshots:dependencies:motion-utils: 11.18.1- dependencies:- motion-utils: 12.36.0-dependencies:motion-utils: 12.39.0@@ -25122,19 +25179,26 @@ snapshots:- [email protected]: {}-[email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):dependencies:- framer-motion: 12.38.0(@emotion/[email protected])([email protected]([email protected]))([email protected])+ framer-motion: 12.40.0(@emotion/[email protected])([email protected]([email protected]))([email protected])tslib: 2.8.1optionalDependencies:'@emotion/is-prop-valid': 1.4.0react: 18.3.1react-dom: 18.3.1([email protected])+ [email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ framer-motion: 12.40.0(@emotion/[email protected])([email protected]([email protected]))([email protected])+ tslib: 2.8.1+ optionalDependencies:+ '@emotion/is-prop-valid': 1.4.0+ react: 19.2.6+ react-dom: 19.2.6([email protected])+[email protected](@emotion/[email protected])([email protected]([email protected]))([email protected]):dependencies:framer-motion: 12.40.0(@emotion/[email protected])([email protected]([email protected]))([email protected])@@ -27965,6 +28029,34 @@ snapshots:transitivePeerDependencies:- msw+ [email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):+ dependencies:+ '@vitest/expect': 4.1.6+ '@vitest/mocker': 4.1.6([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/pretty-format': 4.1.6+ '@vitest/runner': 4.1.6+ '@vitest/snapshot': 4.1.6+ '@vitest/spy': 4.1.6+ '@vitest/utils': 4.1.6+ es-module-lexer: 2.0.0+ expect-type: 1.3.0+ magic-string: 0.30.21+ obug: 2.1.1+ pathe: 2.0.3+ picomatch: 4.0.4+ std-env: 4.0.0+ tinybench: 2.9.0+ tinyexec: 1.1.1+ tinyglobby: 0.2.16+ tinyrainbow: 3.1.0+ vite: 8.0.10(@types/[email protected])([email protected])([email protected])([email protected])([email protected])+ why-is-node-running: 2.3.0+ optionalDependencies:+ '@opentelemetry/api': 1.9.0+ '@types/node': 24.12.2+ transitivePeerDependencies:+ - msw+[email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])):dependencies:'@vitest/expect': 4.1.6