@blaaiz/docs-core 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { strokeIcon } from './chunk-6H6OB7YP.js';
1
+ import { strokeIcon } from './chunk-FSB3DLMU.js';
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
3
  import { isValidElement, cloneElement, useId, Children } from 'react';
4
4
 
@@ -278,21 +278,86 @@ function Info({ children }) {
278
278
  function Tip({ children }) {
279
279
  return /* @__PURE__ */ jsx(Callout, { tone: "tip", children });
280
280
  }
281
+
282
+ // src/ui/docs-icons.tsx
283
+ var ICONS = {
284
+ house: "house",
285
+ book: "book",
286
+ code: "code",
287
+ rocket: "rocket",
288
+ terminal: "terminal",
289
+ wallet: "wallet",
290
+ key: "key",
291
+ webhook: "webhook",
292
+ globe: "globe",
293
+ user: "user",
294
+ users: "users",
295
+ building: "building",
296
+ clock: "clock",
297
+ history: "history",
298
+ bell: "bell",
299
+ send: "send",
300
+ "id-card": "idCard",
301
+ coins: "coins",
302
+ handshake: "handshake",
303
+ "shield-check": "shieldCheck",
304
+ banknote: "banknote",
305
+ "circle-play": "circlePlay",
306
+ mail: "mail"
307
+ };
308
+ var ALIASES = {
309
+ home: "house",
310
+ "book-open": "book",
311
+ api: "code",
312
+ reference: "code",
313
+ terminal: "terminal",
314
+ bank: "wallet",
315
+ "credit-card": "wallet",
316
+ auth: "key",
317
+ lock: "key",
318
+ world: "globe",
319
+ people: "users",
320
+ team: "users",
321
+ "building-2": "building",
322
+ office: "building",
323
+ company: "building",
324
+ time: "clock",
325
+ "clock-rotate-left": "history",
326
+ "paper-plane": "send",
327
+ "address-card": "id-card",
328
+ shield: "shield-check",
329
+ "money-check-dollar-pen": "banknote",
330
+ "money-bill": "banknote",
331
+ "money-bill-transfer": "banknote",
332
+ play: "circle-play",
333
+ envelope: "mail"
334
+ };
335
+ function docsIcon(name) {
336
+ const glyph = name === void 0 ? void 0 : glyphFor(name);
337
+ return glyph === void 0 ? void 0 : strokeIcon(glyph, { size: 16, rounded: true, key: `docs-icon-${glyph}` });
338
+ }
339
+ function glyphFor(name) {
340
+ const key = name.toLowerCase();
341
+ return ICONS[key] ?? ICONS[ALIASES[key] ?? ""];
342
+ }
281
343
  function Card({
282
344
  title,
345
+ icon: icon2,
283
346
  href,
284
347
  children
285
348
  }) {
349
+ const glyph = icon2 === void 0 ? void 0 : glyphFor(icon2);
286
350
  const style = {
287
351
  display: "block",
288
352
  border: "1px solid var(--color-fd-border)",
289
353
  borderRadius: 12,
290
- padding: "16px 18px",
354
+ padding: "22px 24px",
291
355
  textDecoration: "none",
292
356
  color: "inherit",
293
357
  background: "var(--color-fd-card)"
294
358
  };
295
359
  const body = /* @__PURE__ */ jsxs(Fragment, { children: [
360
+ glyph !== void 0 && /* @__PURE__ */ jsx("div", { style: { color: "var(--color-fd-primary)", marginBottom: 10 }, children: strokeIcon(glyph, { size: 20, rounded: true }) }),
296
361
  title !== void 0 && /* @__PURE__ */ jsx("div", { style: { fontWeight: 700, fontSize: 15, marginBottom: 4 }, children: title }),
297
362
  /* @__PURE__ */ jsx("div", { style: { color: "var(--color-fd-muted-foreground)", fontSize: 14 }, children })
298
363
  ] });
@@ -305,7 +370,7 @@ function CardGroup({ cols = 2, children }) {
305
370
  const style = {
306
371
  display: "grid",
307
372
  gridTemplateColumns: `repeat(${String(cols)}, minmax(0, 1fr))`,
308
- gap: 12,
373
+ gap: 16,
309
374
  margin: "16px 0"
310
375
  };
311
376
  return /* @__PURE__ */ jsx("div", { style, children });
@@ -379,50 +444,6 @@ function Frame({ caption, children }) {
379
444
  ] });
380
445
  }
381
446
 
382
- // src/ui/docs-icons.tsx
383
- var ICONS = {
384
- house: "house",
385
- book: "book",
386
- code: "code",
387
- rocket: "rocket",
388
- terminal: "terminal",
389
- wallet: "wallet",
390
- key: "key",
391
- webhook: "webhook",
392
- globe: "globe",
393
- user: "user",
394
- users: "users",
395
- building: "building",
396
- clock: "clock"
397
- };
398
- var ALIASES = {
399
- home: "house",
400
- "book-open": "book",
401
- api: "code",
402
- reference: "code",
403
- terminal: "terminal",
404
- bank: "wallet",
405
- "credit-card": "wallet",
406
- auth: "key",
407
- lock: "key",
408
- world: "globe",
409
- people: "users",
410
- team: "users",
411
- "building-2": "building",
412
- office: "building",
413
- company: "building",
414
- history: "clock",
415
- time: "clock"
416
- };
417
- function docsIcon(name) {
418
- if (!name) {
419
- return void 0;
420
- }
421
- const key = name.toLowerCase();
422
- const glyph = ICONS[key] ?? ICONS[ALIASES[key] ?? ""];
423
- return glyph === void 0 ? void 0 : strokeIcon(glyph, { size: 16, rounded: true, key: `docs-icon-${glyph}` });
424
- }
425
-
426
447
  // src/ui/nav-links.ts
427
448
  function docsNavLinks(links, options = {}) {
428
449
  const baseUrl = options.baseUrl ?? "/docs";
package/dist/ui.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ui/accordion.tsx","../src/ui/api-layout.tsx","../src/ui/api-sidebar.tsx","../src/ui/auth-screen.tsx","../src/ui/callout.tsx","../src/ui/card.tsx","../src/ui/code-group.tsx","../src/ui/frame.tsx","../src/ui/docs-icons.tsx","../src/ui/nav-links.ts","../src/ui/layout-tabs.tsx","../src/ui/nav-actions.tsx","../src/ui/error-screen.tsx","../src/ui/steps.tsx","../src/ui/tabs.tsx","../src/ui/mdx.tsx","../src/ui/sidebar.tsx"],"names":["jsxs","jsx","Fragment","isValidElement","icon","useId","Children"],"mappings":";;;;AAgBO,SAAS,SAAA,CAAU,EAAE,KAAA,EAAO,QAAA,EAAS,EAA4C;AACtF,EAAA,uBACE,IAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ,kCAAA;AAAA,QACR,YAAA,EAAc,CAAA;AAAA,QACd,OAAA,EAAS,WAAA;AAAA,QACT,MAAA,EAAQ;AAAA,OACV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AAI,GAAA,CAAI,CAAC,GAAA,EAAK,KAAA,qBACbD,IAAAA,CAAC,KAAA,EAAA,EAA+B,OAAO,EAAE,YAAA,EAAc,IAAG,EACxD,QAAA,EAAA;AAAA,oBAAAC,GAAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO;AAAA,UACL,QAAA,EAAU,EAAA;AAAA,UACV,UAAA,EAAY,GAAA;AAAA,UACZ,KAAA,EAAO,4BAAA;AAAA,UACP,YAAA,EAAc;AAAA,SAChB;AAAA,QAEC,QAAA,EAAA,GAAA,CAAI;AAAA;AAAA,KACP;AAAA,oBACAA,IAAC,KAAA,EAAA,EAAM,KAAA,EAAO,IAAI,KAAA,EAAO,KAAA,EAAO,GAAG,WAAA,EAA0B;AAAA,GAAA,EAAA,EAXrD,KAAK,MAAA,CAAO,KAAK,CAAC,CAAA,CAY5B,CACD,CAAA,EACH,CAAA;AAEJ","file":"ui.js","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * Accordion components — the Mintlify `<Accordion>` and `<AccordionGroup>`.\n * Built on the native `<details>` element, so they are interactive with zero\n * client JavaScript and render in a Server Component. The hairline uses the\n * framework's border token, so it follows the site's palette and the dark theme.\n *\n * @packageDocumentation\n */\n\n/**\n * A single collapsible section.\n *\n * @public\n */\nexport function Accordion({ title, children }: { title: string; children?: ReactNode }) {\n return (\n <details\n style={{\n border: '1px solid var(--color-fd-border)',\n borderRadius: 8,\n padding: '10px 14px',\n margin: '8px 0',\n }}\n >\n <summary style={{ cursor: 'pointer', fontWeight: 600 }}>{title}</summary>\n <div style={{ marginTop: 8 }}>{children}</div>\n </details>\n );\n}\n\n/**\n * A group of accordions.\n *\n * @public\n */\nexport function AccordionGroup({ children }: { children?: ReactNode }) {\n return <div style={{ margin: '16px 0' }}>{children}</div>;\n}\n","import { cloneElement, isValidElement, type ReactElement, type ReactNode } from 'react';\n\n/**\n * The Mintlify-style API operation layout: one two-column row for the whole\n * operation, so the code rail starts level with the endpoint title. Pass it to\n * fumadocs-openapi — the slots type is structural, so this module needs no\n * fumadocs dependency and the site keeps ownership of that package.\n *\n * @example\n * ```tsx\n * export const APIPage = createOpenAPIPage({\n * content: { renderOperationLayout: apiOperationLayout },\n * });\n * ```\n *\n * @packageDocumentation\n */\n\n/**\n * The slots fumadocs-openapi hands to `renderOperationLayout`.\n *\n * @public\n */\nexport interface ApiOperationSlots {\n readonly header: ReactNode;\n readonly description: ReactNode;\n readonly apiPlayground: ReactNode;\n readonly authSchemes: ReactNode;\n readonly parameters: ReactNode;\n readonly body: ReactNode;\n readonly responses: ReactNode;\n readonly callbacks: ReactNode;\n readonly apiExample: ReactNode;\n}\n\n/**\n * Render an API operation as title → description → playground → request details\n * on the left, with the code/response rail as the right column. Pair with\n * `@blaaiz/docs-core/styles/api-reference.css`, which anchors the rail to the\n * viewport.\n *\n * @param slots - the operation slots from fumadocs-openapi\n * @returns the two-column operation layout\n * @public\n */\nexport function apiOperationLayout(slots: ApiOperationSlots): ReactNode {\n // When the playground is our ApiTryIt (it declares `acceptsExample`), hand it\n // the code/response column so its modal can show form and sample side by side.\n let playground = slots.apiPlayground;\n if (\n isValidElement(playground) &&\n (playground.type as { acceptsExample?: boolean }).acceptsExample === true\n ) {\n playground = cloneElement(playground as ReactElement<{ example?: ReactNode }>, {\n example: slots.apiExample,\n });\n }\n\n return (\n <div className=\"flex flex-col gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start\">\n <div className=\"min-w-0 flex-1\">\n {slots.header}\n {slots.description}\n {playground}\n {slots.authSchemes}\n {slots.parameters}\n {slots.body}\n {slots.responses}\n {slots.callbacks}\n </div>\n <div className=\"@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-1,2rem)+1rem)] @4xl:w-[400px]\">\n {slots.apiExample}\n </div>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Sidebar helpers for the API reference: a coloured HTTP-method badge and a\n * page-tree transformer that prefixes each API page's sidebar entry with it —\n * the Mintlify look (POST · GET · … next to the endpoint name). Server-\n * compatible; styled by `styles/api-reference.css`.\n *\n * @packageDocumentation\n */\n\n/**\n * A coloured HTTP-method pill (GET, POST, …).\n *\n * @param props - the HTTP method\n * @public\n */\nexport function MethodBadge({ method }: { method: string }) {\n const upper = method.toUpperCase();\n return (\n <span className=\"api-method-badge\" data-method={method.toLowerCase()}>\n {upper}\n </span>\n );\n}\n\n/**\n * The minimal page-tree item this transformer touches. Structural, so the\n * framework needs no fumadocs types; a site passes the result straight into\n * `loader({ pageTree: { transformers } })`.\n *\n * @public\n */\nexport interface SidebarItem {\n readonly type?: string;\n readonly url?: string;\n name?: ReactNode;\n}\n\n/**\n * A page-tree transformer with a `file` hook, generic over the tree's own item\n * type so it slots into fumadocs' `loader({ pageTree: { transformers } })`\n * without a cast: `file` returns exactly the item type it was given.\n *\n * @public\n */\nexport interface SidebarBadgeTransformer {\n file<T extends SidebarItem>(node: T): T;\n}\n\n/**\n * A page-tree transformer that prefixes every API page's sidebar entry with its\n * HTTP-method badge, matching endpoint URLs against the `methods` map the\n * generator emits (`content/api-methods.json`).\n *\n * @example\n * ```ts\n * import methods from '@/content/api-methods.json';\n * loader({ pageTree: { transformers: [apiMethodBadges(methods)] } });\n * ```\n *\n * @param methods - map of page URL to HTTP method\n * @returns a transformer with a `file` hook\n * @public\n */\nexport function apiMethodBadges(\n methods: Readonly<Record<string, string>>,\n): SidebarBadgeTransformer {\n return {\n file<T extends SidebarItem>(node: T): T {\n const method = node.url ? methods[node.url] : undefined;\n if (!method) {\n return node;\n }\n // Only `name` is rewritten; every other field is carried through, so the\n // item keeps its original type.\n return {\n ...node,\n name: (\n <span key={node.url} className=\"api-nav-item\">\n <MethodBadge method={method} />\n <span className=\"api-nav-text\">{node.name}</span>\n </span>\n ),\n };\n },\n };\n}\n","/**\n * The sign-in screen for a workspace-gated docs site.\n *\n * A site renders one element — `<AuthScreen config={config} .../>` — and gets\n * the whole gate: brand, the allowed-domain note, the providers its config\n * declares (email, shared secret, Google), and an inline error banner. The\n * shared-secret provider is a two-step flow — email, then secret — rendered by\n * the `step` prop. The framework owns the layout and copy; the site owns only\n * its config. Server-rendered: every form is a native POST, no client JS.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport type { DocsConfig } from '../core/config.js';\n\nimport { strokeIcon } from './icons.js';\n\n/**\n * Map a sign-in error code (carried on `?error=` after a failed attempt) to a\n * human sentence. Unknown codes get a safe generic message.\n *\n * @param code - the error code, or undefined\n * @param domains - the allowed email domains, for the domain-mismatch message\n * @returns the message to show, or null when there is no error\n * @public\n */\nexport function authErrorMessage(\n code: string | undefined,\n domains: readonly string[],\n): string | null {\n if (!code) {\n return null;\n }\n const list = domains.join(', ');\n switch (code) {\n case 'forbidden':\n case 'domain':\n return list\n ? `That email isn't on an allowed domain. Sign in with your ${list} account.`\n : `That account isn't allowed to access these docs.`;\n case 'oauth':\n case 'state':\n return `Google sign-in didn't complete. Please try again.`;\n case 'badsecret':\n return `That secret is incorrect. Please try again.`;\n case 'expired':\n return `Your session expired. Sign in again to continue.`;\n case 'config':\n return `Sign-in isn't configured for this site. Contact the site owner.`;\n default:\n return `Something went wrong signing in. Please try again.`;\n }\n}\n\n/**\n * Props for {@link AuthScreen}.\n *\n * @public\n */\nexport interface AuthScreenProps {\n /** The site configuration; drives brand, providers, and allowed domains. */\n readonly config: DocsConfig;\n /** The path to return to after sign-in (from the gate's `?from=`). */\n readonly from?: string;\n /** A sign-in error code to surface inline (from `?error=`). */\n readonly error?: string;\n /**\n * Which step of the shared-secret flow to render. `'email'` (default) shows\n * the email field; `'secret'` shows the secret field for the already-validated\n * {@link AuthScreenProps.email}. Ignored unless the secret provider is enabled.\n */\n readonly step?: 'email' | 'secret';\n /** The domain-checked email to show on the secret step (from the site's cookie). */\n readonly email?: string;\n /**\n * Whether to offer the shared-secret flow. Defaults to whether config declares\n * the secret provider; pass `false` when its env secret is absent. When on, it\n * supersedes plain email sign-in.\n */\n readonly secretEnabled?: boolean;\n /**\n * Whether to offer the Google button. Defaults to whether config declares the\n * Google provider; pass `false` to hide it when its env vars are absent.\n */\n readonly googleEnabled?: boolean;\n /** The email sign-in endpoint. Default `/api/auth/email`. */\n readonly emailAction?: string;\n /** The shared-secret sign-in endpoint (both steps post here). Default `/api/auth/secret`. */\n readonly secretAction?: string;\n /** The Google sign-in start path. Default `/api/auth/google/start`. */\n readonly googleStartPath?: string;\n /** The sign-in page path, for the \"use a different email\" link. Default `/signin`. */\n readonly signInPath?: string;\n}\n\nfunction mailIcon(): ReactNode {\n return strokeIcon('mail');\n}\n\nfunction lockIcon(): ReactNode {\n return strokeIcon('lock');\n}\n\nfunction alertIcon(): ReactNode {\n return strokeIcon('info');\n}\n\nfunction keyIcon(): ReactNode {\n return strokeIcon('key');\n}\n\nfunction userIcon(): ReactNode {\n return strokeIcon('user');\n}\n\n/** Google's multicolour \"G\" mark. */\nfunction googleIcon(): ReactNode {\n return (\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path\n fill=\"#4285F4\"\n d=\"M23.52 12.27c0-.82-.07-1.6-.2-2.36H12v4.46h6.47a5.53 5.53 0 0 1-2.4 3.63v3.02h3.88c2.27-2.09 3.57-5.17 3.57-8.75z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 24c3.24 0 5.96-1.08 7.95-2.91l-3.88-3.02c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.12A12 12 0 0 0 12 24z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M5.27 14.27a7.2 7.2 0 0 1 0-4.54V6.61H1.29a12 12 0 0 0 0 10.78l3.98-3.12z\"\n />\n <path\n fill=\"#EA4335\"\n d=\"M12 4.75c1.77 0 3.35.61 4.6 1.8l3.44-3.44A11.5 11.5 0 0 0 12 0 12 12 0 0 0 1.29 6.61l3.98 3.12C6.22 6.86 8.87 4.75 12 4.75z\"\n />\n </svg>\n );\n}\n\n/**\n * Render the sign-in screen.\n *\n * @param props - see {@link AuthScreenProps}\n * @public\n */\nexport function AuthScreen(props: AuthScreenProps): ReactNode {\n const { config, from, error } = props;\n const auth = config.auth;\n const workspace = auth === 'public' ? null : auth;\n const domains = workspace?.allowedDomains ?? [];\n const target = from ?? '/';\n const emailAction = props.emailAction ?? '/api/auth/email';\n const secretAction = props.secretAction ?? '/api/auth/secret';\n const googleStartPath = props.googleStartPath ?? '/api/auth/google/start';\n const signInPath = props.signInPath ?? '/signin';\n\n const secretEnabled = props.secretEnabled ?? Boolean(workspace?.providers.secret);\n const emailProvider = workspace?.providers.email ?? false;\n // The secret flow supersedes plain email sign-in: offering email-only too\n // would let a reader skip the secret.\n const hasEmailFlow = secretEnabled || emailProvider;\n const showGoogle = props.googleEnabled ?? Boolean(workspace?.providers.google);\n const message = authErrorMessage(error, domains);\n const logo = config.theme.logo;\n\n // The secret step: only when the flow is enabled and we hold a validated email.\n const onSecretStep = props.step === 'secret' && secretEnabled && Boolean(props.email);\n\n const brand = (\n <div className=\"auth-brand\">\n {logo ? (\n <>\n <img className=\"auth-logo-light\" src={logo.light} alt={config.theme.name} />\n <img className=\"auth-logo-dark\" src={logo.dark} alt={config.theme.name} />\n </>\n ) : (\n <>\n <span className=\"auth-dot\" aria-hidden=\"true\" />\n {config.theme.name}\n </>\n )}\n </div>\n );\n\n const errorBanner = message ? (\n <div className=\"auth-error\" role=\"alert\">\n {alertIcon()}\n <span>{message}</span>\n </div>\n ) : null;\n\n if (onSecretStep) {\n return (\n <div className=\"auth-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"auth-card\">\n {brand}\n <h1 className=\"auth-title\">Enter access secret</h1>\n <p className=\"auth-sub\">One more step — enter the shared secret to continue.</p>\n\n <div className=\"auth-identity\">\n {userIcon()}\n <span className=\"auth-identity-email\">{props.email}</span>\n <a className=\"auth-change\" href={signInPath}>\n Change\n </a>\n </div>\n\n {errorBanner}\n\n <form className=\"auth-form\" action={secretAction} method=\"post\">\n <input type=\"hidden\" name=\"from\" value={target} />\n <label className=\"auth-label\" htmlFor=\"auth-secret\">\n Access secret\n </label>\n <div className=\"auth-field\">\n {keyIcon()}\n <input\n id=\"auth-secret\"\n name=\"secret\"\n type=\"password\"\n required\n autoFocus\n autoComplete=\"off\"\n placeholder=\"Enter the access secret\"\n className=\"auth-input\"\n />\n </div>\n <button type=\"submit\" className=\"auth-submit\">\n Sign in\n </button>\n </form>\n\n <p className=\"auth-foot\">\n {lockIcon()}\n Access is limited to your workspace.\n </p>\n </main>\n </div>\n );\n }\n\n return (\n <div className=\"auth-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"auth-card\">\n {brand}\n <h1 className=\"auth-title\">Sign in</h1>\n <p className=\"auth-sub\">\n {domains.length ? (\n <>\n These docs are restricted to <b>{domains.join(', ')}</b> accounts.\n </>\n ) : (\n 'These docs are restricted to your workspace.'\n )}\n </p>\n\n {errorBanner}\n\n {hasEmailFlow ? (\n <form\n className=\"auth-form\"\n action={secretEnabled ? secretAction : emailAction}\n method=\"post\"\n >\n <input type=\"hidden\" name=\"from\" value={target} />\n <label className=\"auth-label\" htmlFor=\"auth-email\">\n Work email\n </label>\n <div className=\"auth-field\">\n {mailIcon()}\n <input\n id=\"auth-email\"\n name=\"email\"\n type=\"email\"\n required\n autoComplete=\"email\"\n autoFocus\n placeholder={`you@${domains[0] ?? 'company.com'}`}\n className=\"auth-input\"\n />\n </div>\n <button type=\"submit\" className=\"auth-submit\">\n {secretEnabled ? 'Continue' : 'Continue with email'}\n </button>\n </form>\n ) : null}\n\n {hasEmailFlow && showGoogle ? <div className=\"auth-divider\">or</div> : null}\n\n {showGoogle ? (\n <a className=\"auth-google\" href={`${googleStartPath}?from=${encodeURIComponent(target)}`}>\n {googleIcon()}\n Continue with Google\n </a>\n ) : null}\n\n <p className=\"auth-foot\">\n {lockIcon()}\n Access is limited to your workspace.\n </p>\n </main>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/**\n * Callout components — the Mintlify `<Note>`, `<Warning>`, `<Info>`, and `<Tip>`\n * blocks. Server-compatible: no client state, so they render in a React Server\n * Component without a `'use client'` boundary.\n *\n * The box is styled by the `.cl` classes in `@blaaiz/docs-core/styles/docs.css`,\n * which a site already imports. That is what makes a callout follow the dark\n * theme: the class set carries a light and a dark palette per tone, where the\n * inline colours these components used before could only ever be light.\n *\n * @packageDocumentation\n */\n\ntype Tone = 'note' | 'warning' | 'info' | 'tip';\n\n/** The glyph each tone shows: a circled `i`, a bulb for a tip, a triangle to warn. */\nconst TONE_GLYPHS: Record<Tone, GlyphName> = {\n note: 'info',\n info: 'info',\n tip: 'bulb',\n warning: 'alert',\n};\n\n/**\n * A tinted callout box with the tone's icon.\n *\n * @public\n */\nexport function Callout({ tone = 'note', children }: { tone?: Tone; children?: ReactNode }) {\n return (\n <div className={`cl cl-${tone}`}>\n <span className=\"cl-icon\">{strokeIcon(TONE_GLYPHS[tone], { size: 18, rounded: true })}</span>\n <div className=\"cl-body\">{children}</div>\n </div>\n );\n}\n\n/** Mintlify `<Note>`. @public */\nexport function Note({ children }: { children?: ReactNode }) {\n return <Callout tone=\"note\">{children}</Callout>;\n}\n\n/** Mintlify `<Warning>`. @public */\nexport function Warning({ children }: { children?: ReactNode }) {\n return <Callout tone=\"warning\">{children}</Callout>;\n}\n\n/** Mintlify `<Info>`. @public */\nexport function Info({ children }: { children?: ReactNode }) {\n return <Callout tone=\"info\">{children}</Callout>;\n}\n\n/** Mintlify `<Tip>`. @public */\nexport function Tip({ children }: { children?: ReactNode }) {\n return <Callout tone=\"tip\">{children}</Callout>;\n}\n","import type { CSSProperties, ReactNode } from 'react';\n\n/**\n * Card components — the Mintlify `<Card>` and `<CardGroup>`. Server-compatible.\n *\n * Colours come from the framework's `--color-fd-*` theme variables, so a card\n * follows the site's palette and the dark theme. Nothing here is a fixed hue.\n *\n * @packageDocumentation\n */\n\n/**\n * A card. When `href` is set it renders as a link.\n *\n * @public\n */\nexport function Card({\n title,\n href,\n children,\n}: {\n title?: string;\n href?: string;\n children?: ReactNode;\n}) {\n const style: CSSProperties = {\n display: 'block',\n border: '1px solid var(--color-fd-border)',\n borderRadius: 12,\n padding: '16px 18px',\n textDecoration: 'none',\n color: 'inherit',\n background: 'var(--color-fd-card)',\n };\n const body = (\n <>\n {title !== undefined && (\n <div style={{ fontWeight: 700, fontSize: 15, marginBottom: 4 }}>{title}</div>\n )}\n <div style={{ color: 'var(--color-fd-muted-foreground)', fontSize: 14 }}>{children}</div>\n </>\n );\n if (href !== undefined) {\n return (\n <a href={href} style={style}>\n {body}\n </a>\n );\n }\n return <div style={style}>{body}</div>;\n}\n\n/**\n * A responsive grid of cards. `cols` sets the column count (default 2).\n *\n * @public\n */\nexport function CardGroup({ cols = 2, children }: { cols?: number; children?: ReactNode }) {\n const style: CSSProperties = {\n display: 'grid',\n gridTemplateColumns: `repeat(${String(cols)}, minmax(0, 1fr))`,\n gap: 12,\n margin: '16px 0',\n };\n return <div style={style}>{children}</div>;\n}\n","import { Children, isValidElement, type ReactElement, type ReactNode, useId } from 'react';\n\n/**\n * CodeGroup — the Mintlify `<CodeGroup>`: sibling fenced code blocks presented\n * as tabs, labelled by each fence's title (`js Node.js`). The\n * `remarkCodeTitles` plugin (from `@blaaiz/docs-core/mdx`) reads the titles at\n * compile time and hands them to this component as the `labels` attribute; a\n * runtime walk of each block's props covers MDX written without the plugin.\n * The switching reuses the same hidden-radio CSS as `<Tabs>` — zero client\n * JavaScript. Styled by `styles/docs.css`.\n *\n * @packageDocumentation\n */\n\ninterface BlockProps {\n readonly title?: unknown;\n readonly lang?: unknown;\n readonly children?: ReactNode;\n}\n\n/**\n * The first fence title reachable from a rendered block. The MDX pipeline\n * wraps each fence in a code-block component, so the `title`/`lang` the\n * rehype-code stage attaches sits on a nested `pre`, not on the block itself —\n * hence the bounded walk instead of a single props read.\n */\nfunction findLabel(node: ReactNode, depth = 0): string | undefined {\n if (depth > 4) {\n return undefined;\n }\n for (const child of Children.toArray(node)) {\n if (!isValidElement(child)) {\n continue;\n }\n const { title, lang, children } = child.props as BlockProps;\n if (typeof title === 'string' && title !== '') {\n return title;\n }\n if (typeof lang === 'string' && lang !== '') {\n return lang;\n }\n const nested = findLabel(children, depth + 1);\n if (nested !== undefined) {\n return nested;\n }\n }\n return undefined;\n}\n\nfunction parseLabels(labels: string | readonly string[] | undefined): readonly string[] {\n if (labels === undefined) {\n return [];\n }\n if (typeof labels !== 'string') {\n return labels;\n }\n try {\n const parsed: unknown = JSON.parse(labels);\n return Array.isArray(parsed) ? parsed.map(String) : [];\n } catch {\n return [];\n }\n}\n\n/**\n * The code-tab container: one hidden radio per block, the bar of fence titles,\n * and the blocks as panels. CSS shows the checked radio's label and panel.\n *\n * @public\n */\nexport function CodeGroup({\n children,\n labels,\n}: {\n readonly children?: ReactNode;\n readonly labels?: string | readonly string[];\n}) {\n const group = useId();\n const blocks = Children.toArray(children).filter((child): child is ReactElement<BlockProps> =>\n isValidElement(child),\n );\n const named = parseLabels(labels);\n const labelOf = (block: ReactElement<BlockProps>, index: number): string =>\n named[index] ?? findLabel(block) ?? `Code ${String(index + 1)}`;\n return (\n <div className=\"tabs tabs--code\">\n {blocks.map((_block, index) => (\n <input\n key={index}\n className=\"tabs__radio\"\n type=\"radio\"\n name={group}\n id={`${group}-${String(index)}`}\n defaultChecked={index === 0}\n />\n ))}\n <div className=\"tabs__bar\">\n {blocks.map((block, index) => (\n <label key={index} className=\"tabs__trigger\" htmlFor={`${group}-${String(index)}`}>\n {labelOf(block, index)}\n </label>\n ))}\n </div>\n {blocks.map((block, index) => (\n <section key={index} className=\"tabs__panel\">\n {block}\n </section>\n ))}\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Frame — the Mintlify `<Frame>`: a bordered, centred surface around an image\n * or any media, with an optional caption. A plain `<figure>`, so it renders in\n * a Server Component with zero client JavaScript. Styled by `styles/docs.css`\n * on the theme tokens.\n *\n * @packageDocumentation\n */\n\n/**\n * Props for {@link Frame}.\n *\n * @public\n */\nexport interface FrameProps {\n /** A caption rendered under the media. */\n readonly caption?: ReactNode;\n readonly children?: ReactNode;\n}\n\n/**\n * A framed media block.\n *\n * @public\n */\nexport function Frame({ caption, children }: FrameProps) {\n return (\n <figure className=\"frame\">\n <div className=\"frame__body\">{children}</div>\n {caption === undefined ? null : <figcaption className=\"frame__caption\">{caption}</figcaption>}\n </figure>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Inline-SVG icon resolver for navigation icons named in `docs.json` (Mintlify\n * uses icon names like `house`, `book`, `code`). Zero dependency: a curated set\n * of common docs-nav icons plus a graceful no-icon fallback. Pass it to\n * `loader({ icon: docsIcon })`.\n *\n * @packageDocumentation\n */\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/** The glyphs a docs navigation reaches for, keyed by the names authors write. */\nconst ICONS: Record<string, GlyphName> = {\n house: 'house',\n book: 'book',\n code: 'code',\n rocket: 'rocket',\n terminal: 'terminal',\n wallet: 'wallet',\n key: 'key',\n webhook: 'webhook',\n globe: 'globe',\n user: 'user',\n users: 'users',\n building: 'building',\n clock: 'clock',\n};\n\n// Aliases point several common spellings at one glyph.\nconst ALIASES: Record<string, string> = {\n home: 'house',\n 'book-open': 'book',\n api: 'code',\n reference: 'code',\n terminal: 'terminal',\n bank: 'wallet',\n 'credit-card': 'wallet',\n auth: 'key',\n lock: 'key',\n world: 'globe',\n people: 'users',\n team: 'users',\n 'building-2': 'building',\n office: 'building',\n company: 'building',\n history: 'clock',\n time: 'clock',\n};\n\n/**\n * Resolve a `docs.json` icon name to an inline SVG. Unknown names resolve to\n * nothing, so the sidebar simply shows no icon rather than a broken one.\n *\n * @param name - the icon name from `docs.json`, or undefined\n * @returns the icon element, or undefined\n * @public\n */\nexport function docsIcon(name: string | undefined): ReactNode {\n if (!name) {\n return undefined;\n }\n const key = name.toLowerCase();\n const glyph = ICONS[key] ?? ICONS[ALIASES[key] ?? ''];\n // The key matters: fumadocs renders a nav link as the array [icon, text], and\n // an unkeyed element in that array raises React's \"unique key\" warning in the\n // consuming site's console.\n return glyph === undefined\n ? undefined\n : strokeIcon(glyph, { size: 16, rounded: true, key: `docs-icon-${glyph}` });\n}\n","/**\n * Top-navigation links from `nav.json`.\n *\n * Every site renders the same top bar in two layouts — the landing's\n * `HomeLayout` and the docs' `DocsLayout` — and the mapping carries policy\n * that must not drift per site: Home points at the landing and matches it\n * exactly, a link to the docs root matches only the docs root (never\n * everything nested under it), and section links match their subtree. This\n * module owns that policy; a site's layout is one call.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport { docsIcon } from './docs-icons.js';\n\n/**\n * One entry of `content/nav.json`.\n *\n * @public\n */\nexport interface NavJsonLink {\n readonly text: string;\n readonly url: string;\n readonly icon?: string;\n /**\n * Path prefixes this link is active for, when the generator knows the\n * link's territory better than the URL shows — an API tab whose entry page\n * lives outside its generated folder. Omitted, the section is derived from\n * the URL. Ignored on the exact-match links (Home and the docs root).\n */\n readonly match?: string | readonly string[];\n}\n\n/**\n * A rendered top-navigation link, structurally assignable to a fumadocs\n * `LinkItemType`.\n *\n * @public\n */\nexport interface DocsNavLink {\n readonly text: string;\n readonly url: string;\n readonly icon: ReactNode;\n readonly active: 'url' | 'nested-url';\n /**\n * The path(s) this link is active for. Equal to `url` for Home and the docs\n * root; for a section link, the section prefixes — `nav.json`'s own `match`\n * when the generator emitted one, the URL-derived section otherwise — so the\n * link stays active on every page of its section, not only under its click\n * target. Plain fumadocs link items cannot express this split; a site\n * component that compares the pathname against `match` can.\n */\n readonly match: string | readonly string[];\n}\n\n/**\n * Options for {@link docsNavLinks}.\n *\n * @public\n */\nexport interface DocsNavLinksOptions {\n /**\n * The Home entry prepended before the `nav.json` links, pointing at the\n * landing. Pass `false` on a site with no landing page.\n */\n readonly home?: NavJsonLink | false;\n /** The docs base URL, whose link matches exactly rather than nested. */\n readonly baseUrl?: string;\n /**\n * Resolves an icon name from `docs.json` to an element. Defaults to the\n * framework's `docsIcon` set; pass your own to use any icon library the\n * site installs (return `undefined` for a text-only link). The default\n * Home entry resolves the name `house` through it.\n */\n readonly icon?: (name: string | undefined) => ReactNode;\n}\n\n/**\n * Map `nav.json` entries to top-navigation links for `HomeLayout` and\n * `DocsLayout`.\n *\n * @param links - the parsed `content/nav.json`\n * @param options - the Home entry and the docs base URL\n * @returns links with icons resolved and active-matching applied\n * @public\n */\nexport function docsNavLinks(\n links: readonly NavJsonLink[],\n options: DocsNavLinksOptions = {},\n): readonly DocsNavLink[] {\n const baseUrl = options.baseUrl ?? '/docs';\n const home = options.home ?? { text: 'Home', url: '/', icon: 'house' };\n const icon = options.icon ?? docsIcon;\n return [\n ...(home === false ? [] : [home]),\n ...links.filter((link) => home === false || link.url !== home.url),\n ].map((link) => {\n const exact = link.url === baseUrl || link.url === (home === false ? '' : home.url);\n return {\n text: link.text,\n url: link.url,\n icon: icon(link.icon),\n active: exact ? ('url' as const) : ('nested-url' as const),\n match: exact ? link.url : (providedMatch(link.match) ?? sectionPrefix(link.url, baseUrl)),\n };\n });\n}\n\n/**\n * A usable provided `match`: non-empty entries only, and `undefined` when\n * nothing usable remains — an empty prefix would match every pathname.\n */\nfunction providedMatch(\n match: string | readonly string[] | undefined,\n): string | readonly string[] | undefined {\n if (match === undefined) {\n return undefined;\n }\n const entries = (typeof match === 'string' ? [match] : match).filter((entry) => entry !== '');\n return entries.length === 0 ? undefined : entries;\n}\n\n/**\n * The section a docs URL belongs to: its first path segment under `baseUrl`.\n * A URL outside `baseUrl` is its own section.\n */\nfunction sectionPrefix(url: string, baseUrl: string): string {\n if (!url.startsWith(`${baseUrl}/`)) {\n return url;\n }\n const segment = url.slice(baseUrl.length + 1).split('/')[0] ?? '';\n return segment === '' ? url : `${baseUrl}/${segment}`;\n}\n\n/**\n * Whether a link is active for the current pathname: exact links match only\n * themselves; section links match their whole section.\n *\n * @public\n */\nexport function isDocsNavLinkActive(link: DocsNavLink, pathname: string): boolean {\n const matches = typeof link.match === 'string' ? [link.match] : link.match;\n if (link.active === 'url') {\n return matches.includes(pathname);\n }\n return matches.some((match) => pathname === match || pathname.startsWith(`${match}/`));\n}\n","import type { ReactNode } from 'react';\n\nimport type { DocsNavLinksOptions, NavJsonLink } from './nav-links.js';\nimport { docsNavLinks } from './nav-links.js';\n\n/**\n * The section links as fumadocs navbar tabs: the docs pages' second header\n * row. The notebook layout's navbar tabs render only `title` — a `LayoutTab`'s\n * `icon` field is silently dropped in that mode — so the icon is folded into\n * the title node here, once, instead of every site rediscovering it.\n *\n * A link whose territory is a page-tree folder binds that folder (`$folder`\n * activates the tab on the whole subtree); the rest match their exact URLs.\n *\n * @packageDocumentation\n */\n\n/**\n * One navbar tab, structurally assignable to a fumadocs `LayoutTab`.\n *\n * @public\n */\nexport interface DocsLayoutTab<Folder> {\n /** The tab's label: the link's icon and text. */\n readonly title: ReactNode;\n /** The tab's click target. */\n readonly url: string;\n /** The page-tree folder the tab activates on, when its territory is one. */\n readonly $folder?: Folder;\n /** The exact URLs the tab activates on, when it binds no folder. */\n readonly urls?: Set<string>;\n}\n\n/** The shape of a page-tree node this module reads: a folder's entry URL. */\ninterface TreeNodeShape {\n readonly type: string;\n readonly url?: string;\n readonly index?: { readonly url?: string };\n readonly children?: readonly { readonly type: string; readonly url?: string }[];\n}\n\n/**\n * Map `nav.json` entries to navbar tabs for `DocsLayout` with\n * `tabMode=\"navbar\"`.\n *\n * @param links - the parsed `content/nav.json`\n * @param tree - the site's page tree (`source.pageTree`)\n * @param options - the Home entry, docs base URL, and icon resolver\n * @returns tabs with icons in their titles and territories bound\n * @public\n */\nexport function docsLayoutTabs<Node extends { readonly type: string }>(\n links: readonly NavJsonLink[],\n tree: { readonly children: readonly Node[] },\n options: DocsNavLinksOptions = {},\n): DocsLayoutTab<Extract<Node, { readonly type: 'folder' }>>[] {\n type Folder = Extract<Node, { readonly type: 'folder' }>;\n const folders = tree.children.filter((node): node is Folder => node.type === 'folder');\n const entryUrl = (folder: Folder): string | undefined => {\n const shape = folder as TreeNodeShape;\n const first = shape.index ?? shape.children?.find((child) => child.type === 'page');\n return first?.url;\n };\n return docsNavLinks(links, options).map((link) => {\n const matches = typeof link.match === 'string' ? [link.match] : [...link.match];\n const prefix = matches[0] ?? link.url;\n const folder =\n link.active === 'nested-url'\n ? folders.find((candidate) => entryUrl(candidate)?.startsWith(`${prefix}/`))\n : undefined;\n return {\n // The title owns its layout (`.tab-title` in styles/docs.css): fumadocs\n // places it in contexts that are not flex rows — the mobile drawer's tab\n // dropdown renders it inside a plain <p>, where Tailwind's block-level\n // svg would stack the icon above the text.\n title:\n link.icon === undefined ? (\n link.text\n ) : (\n <span className=\"tab-title\">\n {link.icon}\n {link.text}\n </span>\n ),\n url: link.url,\n ...(folder ? { $folder: folder } : { urls: new Set([...matches, link.url]) }),\n };\n });\n}\n","import type { ReactNode } from 'react';\n\nimport type { NavbarConfig } from '../core/config.js';\n\n/**\n * The top bar's action cluster: the config's calls to action, and sign-out on\n * a workspace site. Server-compatible; sign-out is a native form post to the\n * site's sign-out route, so no client JavaScript is involved. Styled by\n * `styles/docs.css`.\n *\n * @packageDocumentation\n */\n\n/**\n * Props for {@link NavActions}.\n *\n * @public\n */\nexport interface NavActionsProps {\n /** The config's `navbar` block: the primary button and the secondary link. */\n readonly navbar?: NavbarConfig;\n /** Whether to offer sign-out (a workspace site). */\n readonly signOut?: boolean;\n /** The sign-out route. Default `/api/auth/signout`. */\n readonly signOutAction?: string;\n /** Leading extras, such as the Ask AI trigger. */\n readonly children?: ReactNode;\n}\n\n/**\n * The action cluster a site mounts at the end of its top bar: optional extras,\n * the secondary link, sign-out, and the primary button, in that order.\n *\n * @param props - the config's navbar block, the sign-out switch, and extras\n * @public\n */\nexport function NavActions({\n navbar,\n signOut = false,\n signOutAction = '/api/auth/signout',\n children,\n}: NavActionsProps) {\n return (\n <div className=\"nav-actions\">\n {children}\n {navbar?.secondary ? (\n <a className=\"nav-actions__secondary\" href={navbar.secondary.href}>\n {navbar.secondary.text}\n </a>\n ) : null}\n {signOut ? (\n <form method=\"post\" action={signOutAction}>\n <button type=\"submit\" className=\"nav-actions__signout\">\n Log out\n </button>\n </form>\n ) : null}\n {navbar?.primary ? (\n <a className=\"nav-actions__primary\" href={navbar.primary.href}>\n {navbar.primary.text}\n </a>\n ) : null}\n </div>\n );\n}\n","/**\n * A general error screen with per-kind states.\n *\n * One component covers every full-page error a docs site shows — a missing page\n * (404), a forbidden account (403), a runtime failure (500), an offline state —\n * each with its own icon, eyebrow, and default copy. A site picks the `kind`\n * and, for runtime errors, passes a retry action; the framework owns the rest.\n * Server-compatible: the site's `error.tsx` wrapper carries the `'use client'`\n * boundary and hands in the retry button.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/**\n * The error states the screen renders.\n *\n * @public\n */\nexport type ErrorKind = 'not-found' | 'forbidden' | 'server' | 'offline' | 'unknown';\n\n/**\n * The default eyebrow, title, description, and icon for a {@link ErrorKind}.\n *\n * @public\n */\nexport interface ErrorPreset {\n readonly code: string;\n readonly title: string;\n readonly description: string;\n readonly icon: ReactNode;\n}\n\n/** The screens' icons are drawn a hair lighter than the rest of the UI. */\nfunction icon(name: GlyphName): ReactNode {\n return strokeIcon(name, { strokeWidth: 1.75 });\n}\n\nconst PRESETS: Record<ErrorKind, ErrorPreset> = {\n 'not-found': {\n code: '404',\n title: 'Page not found',\n description: \"The page you're looking for doesn't exist or may have moved.\",\n icon: icon('crossCircle'),\n },\n forbidden: {\n code: '403',\n title: 'Access restricted',\n description: 'Your account is not allowed to view this page. Sign in with an allowed account.',\n icon: icon('lock'),\n },\n server: {\n code: '500',\n title: 'Something went wrong',\n description: 'An unexpected error occurred on our side. Please try again in a moment.',\n icon: icon('alert'),\n },\n offline: {\n code: 'Offline',\n title: \"You're offline\",\n description: 'Check your connection and try again.',\n icon: icon('offline'),\n },\n unknown: {\n code: 'Error',\n title: 'Something went wrong',\n description: 'An unexpected error occurred. Please try again.',\n icon: icon('info'),\n },\n};\n\n/**\n * The default preset for an error kind — its icon, eyebrow, and copy.\n *\n * @param kind - the error state\n * @returns the preset a site can render or override\n * @public\n */\nexport function errorPreset(kind: ErrorKind): ErrorPreset {\n return PRESETS[kind];\n}\n\n/**\n * Props for {@link ErrorScreen}. Everything but `kind` is optional: the kind's\n * preset fills the eyebrow, title, description, and icon unless overridden.\n *\n * @public\n */\nexport interface ErrorScreenProps {\n /** Which error state to render. Default `unknown`. */\n readonly kind?: ErrorKind;\n /** Override the eyebrow code (e.g. a specific status). */\n readonly code?: string;\n /** Override the title. */\n readonly title?: string;\n /** Override the description. */\n readonly description?: string;\n /** When set, render a primary button linking here (e.g. `/docs`). */\n readonly homeHref?: string;\n /** Label for the home button. Default \"Back to docs\". */\n readonly homeLabel?: string;\n /** An extra action rendered beside the home button (e.g. a retry button). */\n readonly action?: ReactNode;\n}\n\nfunction homeIcon(): ReactNode {\n return strokeIcon('house');\n}\n\n/**\n * Render the error screen.\n *\n * @param props - see {@link ErrorScreenProps}\n * @public\n */\nexport function ErrorScreen(props: ErrorScreenProps): ReactNode {\n const kind = props.kind ?? 'unknown';\n const preset = PRESETS[kind];\n const code = props.code ?? preset.code;\n const title = props.title ?? preset.title;\n const description = props.description ?? preset.description;\n\n return (\n <div className=\"error-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"error-card\">\n <div className=\"error-glyph\" data-kind={kind}>\n {preset.icon}\n </div>\n <p className=\"error-code\">{code}</p>\n <h1 className=\"error-title\">{title}</h1>\n <p className=\"error-desc\">{description}</p>\n {props.homeHref || props.action ? (\n <div className=\"error-actions\">\n {props.homeHref ? (\n <a className=\"error-btn error-btn-primary\" href={props.homeHref}>\n {homeIcon()}\n {props.homeLabel ?? 'Back to docs'}\n </a>\n ) : null}\n {props.action}\n </div>\n ) : null}\n </main>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Steps components — the Mintlify `<Steps>` and `<Step>`. Server-compatible.\n *\n * The spine uses the framework's border token, so it follows the site's palette\n * and the dark theme.\n *\n * @packageDocumentation\n */\n\n/**\n * An ordered list of steps.\n *\n * @public\n */\nexport function Steps({ children }: { children?: ReactNode }) {\n return (\n <div\n style={{\n borderLeft: '2px solid var(--color-fd-border)',\n paddingLeft: 20,\n margin: '16px 0',\n display: 'flex',\n flexDirection: 'column',\n gap: 16,\n }}\n >\n {children}\n </div>\n );\n}\n\n/**\n * A single step with an optional title.\n *\n * @public\n */\nexport function Step({ title, children }: { title?: string; children?: ReactNode }) {\n return (\n <div>\n {title !== undefined && (\n <div style={{ fontWeight: 700, fontSize: 15, marginBottom: 4 }}>{title}</div>\n )}\n <div>{children}</div>\n </div>\n );\n}\n","import { Children, isValidElement, type ReactElement, type ReactNode, useId } from 'react';\n\n/**\n * Tab components — the Mintlify `<Tabs>` and `<Tab title=\"…\">`. A bar of\n * titles above one visible panel, the first tab active. Built on hidden radio\n * inputs and CSS `:checked`, like the Accordion's native `<details>`: fully\n * interactive with zero client JavaScript, so it renders in a Server Component\n * and belongs in the MDX component map. Styled by `styles/docs.css`, which\n * carries selector pairs for up to eight tabs per group.\n *\n * @packageDocumentation\n */\n\n/**\n * Props for {@link Tab}.\n *\n * @public\n */\nexport interface TabProps {\n /** The tab's label in the bar. */\n readonly title: string;\n readonly children?: ReactNode;\n}\n\n/**\n * One tab's content. {@link Tabs} renders it; on its own it renders nothing.\n *\n * @public\n */\nexport function Tab(props: TabProps): null {\n void props;\n return null;\n}\n\n/**\n * The tab container: one hidden radio per child, the bar of their titles, and\n * the panels. CSS shows the checked radio's label and panel.\n *\n * @public\n */\nexport function Tabs({ children }: { readonly children?: ReactNode }) {\n const group = useId();\n const tabs = Children.toArray(children).filter(\n (child): child is ReactElement<TabProps> =>\n isValidElement(child) && typeof (child.props as TabProps).title === 'string',\n );\n return (\n <div className=\"tabs\">\n {tabs.map((tab, index) => (\n <input\n key={tab.props.title}\n className=\"tabs__radio\"\n type=\"radio\"\n name={group}\n id={`${group}-${String(index)}`}\n defaultChecked={index === 0}\n />\n ))}\n <div className=\"tabs__bar\">\n {tabs.map((tab, index) => (\n <label\n key={tab.props.title}\n className=\"tabs__trigger\"\n htmlFor={`${group}-${String(index)}`}\n >\n {tab.props.title}\n </label>\n ))}\n </div>\n {tabs.map((tab) => (\n <section key={tab.props.title} className=\"tabs__panel\">\n {tab.props.children}\n </section>\n ))}\n </div>\n );\n}\n","import { Accordion, AccordionGroup } from './accordion.js';\nimport { Info, Note, Tip, Warning } from './callout.js';\nimport { Card, CardGroup } from './card.js';\nimport { CodeGroup } from './code-group.js';\nimport { Frame } from './frame.js';\nimport { Step, Steps } from './steps.js';\nimport { Tab, Tabs } from './tabs.js';\n\n/**\n * The Mintlify-compatible MDX component map.\n *\n * Pass this to an MDX renderer (for example `next-mdx-remote`'s `compileMDX`)\n * so real Mintlify guides render unchanged. A site no longer needs to shim\n * these itself.\n *\n * @public\n */\nexport const mdxComponents = {\n Note,\n Warning,\n Info,\n Tip,\n Card,\n CardGroup,\n Accordion,\n AccordionGroup,\n Steps,\n Step,\n Tabs,\n Tab,\n Frame,\n CodeGroup,\n};\n","import type { CSSProperties } from 'react';\n\nimport type { NavItem, NavPage, Navigation } from '../core/index.js';\n\n/**\n * The navigation sidebar. Renders a {@link Navigation} tree (produced by\n * `parseNavigation`) as tabs, groups, and page links. Framework-agnostic: it\n * emits plain anchors and takes an optional `resolveHref` so a site controls\n * its own routing. Server-compatible.\n *\n * @packageDocumentation\n */\n\n/**\n * Map a navigation page to a URL. Override to control routing — the default\n * assumes one specific site shape, which is why {@link DocsSidebar} is\n * deprecated.\n *\n * @public\n */\nexport type ResolveHref = (page: NavPage) => string;\n\nconst defaultResolveHref: ResolveHref = (page) => {\n if (page.kind === 'openapi') {\n return '/reference';\n }\n if (page.file === 'introduction') {\n return '/';\n }\n return `/${page.file}`;\n};\n\n/**\n * The method palette. The three status hues are the ones\n * `styles/api-reference.css` uses for its badges, so a method reads the same\n * colour everywhere; `POST` follows the site's own accent.\n */\nconst METHOD_COLORS: Record<string, string> = {\n GET: '#16a34a',\n POST: 'var(--color-fd-primary)',\n PUT: '#d97706',\n PATCH: '#d97706',\n DELETE: '#dc2626',\n};\n\nfunction labelForDoc(file: string): string {\n const last = file.split('/').pop() ?? file;\n return last.replace(/-/g, ' ').replace(/\\b\\w/g, (c) => c.toUpperCase());\n}\n\nfunction Items({\n items,\n depth,\n resolveHref,\n}: {\n items: readonly NavItem[];\n depth: number;\n resolveHref: ResolveHref;\n}) {\n const list: CSSProperties = { listStyle: 'none', margin: 0, paddingLeft: depth === 0 ? 0 : 12 };\n const groupLabel: CSSProperties = {\n fontSize: 11,\n fontWeight: 700,\n textTransform: 'uppercase',\n letterSpacing: '0.04em',\n color: 'var(--color-fd-muted-foreground)',\n margin: '6px 0',\n };\n const link: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n padding: '5px 8px',\n borderRadius: 6,\n color: 'var(--color-fd-foreground)',\n textDecoration: 'none',\n fontSize: 14,\n };\n return (\n <ul style={list}>\n {items.map((item, index) => {\n if (item.kind === 'group') {\n return (\n <li key={`g-${String(index)}`} style={{ marginTop: 10 }}>\n <div style={groupLabel}>{item.title}</div>\n <Items items={item.items} depth={depth + 1} resolveHref={resolveHref} />\n </li>\n );\n }\n return (\n <li key={`p-${String(index)}`}>\n <a href={resolveHref(item)} style={link}>\n {item.kind === 'openapi' && (\n <span\n style={{\n fontSize: 9,\n fontWeight: 700,\n color: METHOD_COLORS[item.method] ?? 'var(--color-fd-muted-foreground)',\n minWidth: 34,\n }}\n >\n {item.method}\n </span>\n )}\n <span>\n {item.kind === 'openapi'\n ? item.apiPath.replace(/^\\/api\\//, '')\n : labelForDoc(item.file)}\n </span>\n </a>\n </li>\n );\n })}\n </ul>\n );\n}\n\n/**\n * Render the documentation sidebar.\n *\n * @deprecated Use fumadocs' `DocsLayout` with `loader({ icon: docsIcon })`,\n * which both shipped sites use. This component predates that wiring: it renders\n * plain anchors with no active state, no collapsible groups, and no search, and\n * its default `resolveHref` assumes a routing shape (`/reference`, and\n * `introduction` at the root) that no site now uses. Pass your own\n * {@link ResolveHref} if you keep it. It stays exported, and behaves exactly as\n * before, until the next major version.\n *\n * @public\n */\nexport function DocsSidebar({\n nav,\n resolveHref = defaultResolveHref,\n}: {\n nav: Navigation;\n resolveHref?: ResolveHref;\n}) {\n return (\n <nav style={{ padding: '20px 16px' }}>\n {nav.map((tab, index) => (\n <div key={`t-${String(index)}`} style={{ marginBottom: 18 }}>\n <div\n style={{\n fontSize: 13,\n fontWeight: 800,\n color: 'var(--color-fd-foreground)',\n marginBottom: 4,\n }}\n >\n {tab.title}\n </div>\n <Items items={tab.items} depth={0} resolveHref={resolveHref} />\n </div>\n ))}\n </nav>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/ui/accordion.tsx","../src/ui/api-layout.tsx","../src/ui/api-sidebar.tsx","../src/ui/auth-screen.tsx","../src/ui/callout.tsx","../src/ui/docs-icons.tsx","../src/ui/card.tsx","../src/ui/code-group.tsx","../src/ui/frame.tsx","../src/ui/nav-links.ts","../src/ui/layout-tabs.tsx","../src/ui/nav-actions.tsx","../src/ui/error-screen.tsx","../src/ui/steps.tsx","../src/ui/tabs.tsx","../src/ui/mdx.tsx","../src/ui/sidebar.tsx"],"names":["jsxs","jsx","icon","Fragment","isValidElement","useId","Children"],"mappings":";;;;AAgBO,SAAS,SAAA,CAAU,EAAE,KAAA,EAAO,QAAA,EAAS,EAA4C;AACtF,EAAA,uBACE,IAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO;AAAA,QACL,MAAA,EAAQ,kCAAA;AAAA,QACR,YAAA,EAAc,CAAA;AAAA,QACd,OAAA,EAAS,WAAA;AAAA,QACT,MAAA,EAAQ;AAAA,OACV;AAAA,MAEA,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,SAAA,EAAA,EAAQ,OAAO,EAAE,MAAA,EAAQ,WAAW,UAAA,E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,EAAO,KAAA,EAAO,GAAG,WAAA,EAA0B;AAAA,GAAA,EAAA,EAXrD,KAAK,MAAA,CAAO,KAAK,CAAC,CAAA,CAY5B,CACD,CAAA,EACH,CAAA;AAEJ","file":"ui.js","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * Accordion components — the Mintlify `<Accordion>` and `<AccordionGroup>`.\n * Built on the native `<details>` element, so they are interactive with zero\n * client JavaScript and render in a Server Component. The hairline uses the\n * framework's border token, so it follows the site's palette and the dark theme.\n *\n * @packageDocumentation\n */\n\n/**\n * A single collapsible section.\n *\n * @public\n */\nexport function Accordion({ title, children }: { title: string; children?: ReactNode }) {\n return (\n <details\n style={{\n border: '1px solid var(--color-fd-border)',\n borderRadius: 8,\n padding: '10px 14px',\n margin: '8px 0',\n }}\n >\n <summary style={{ cursor: 'pointer', fontWeight: 600 }}>{title}</summary>\n <div style={{ marginTop: 8 }}>{children}</div>\n </details>\n );\n}\n\n/**\n * A group of accordions.\n *\n * @public\n */\nexport function AccordionGroup({ children }: { children?: ReactNode }) {\n return <div style={{ margin: '16px 0' }}>{children}</div>;\n}\n","import { cloneElement, isValidElement, type ReactElement, type ReactNode } from 'react';\n\n/**\n * The Mintlify-style API operation layout: one two-column row for the whole\n * operation, so the code rail starts level with the endpoint title. Pass it to\n * fumadocs-openapi — the slots type is structural, so this module needs no\n * fumadocs dependency and the site keeps ownership of that package.\n *\n * @example\n * ```tsx\n * export const APIPage = createOpenAPIPage({\n * content: { renderOperationLayout: apiOperationLayout },\n * });\n * ```\n *\n * @packageDocumentation\n */\n\n/**\n * The slots fumadocs-openapi hands to `renderOperationLayout`.\n *\n * @public\n */\nexport interface ApiOperationSlots {\n readonly header: ReactNode;\n readonly description: ReactNode;\n readonly apiPlayground: ReactNode;\n readonly authSchemes: ReactNode;\n readonly parameters: ReactNode;\n readonly body: ReactNode;\n readonly responses: ReactNode;\n readonly callbacks: ReactNode;\n readonly apiExample: ReactNode;\n}\n\n/**\n * Render an API operation as title → description → playground → request details\n * on the left, with the code/response rail as the right column. Pair with\n * `@blaaiz/docs-core/styles/api-reference.css`, which anchors the rail to the\n * viewport.\n *\n * @param slots - the operation slots from fumadocs-openapi\n * @returns the two-column operation layout\n * @public\n */\nexport function apiOperationLayout(slots: ApiOperationSlots): ReactNode {\n // When the playground is our ApiTryIt (it declares `acceptsExample`), hand it\n // the code/response column so its modal can show form and sample side by side.\n let playground = slots.apiPlayground;\n if (\n isValidElement(playground) &&\n (playground.type as { acceptsExample?: boolean }).acceptsExample === true\n ) {\n playground = cloneElement(playground as ReactElement<{ example?: ReactNode }>, {\n example: slots.apiExample,\n });\n }\n\n return (\n <div className=\"flex flex-col gap-x-6 gap-y-4 @4xl:flex-row @4xl:items-start\">\n <div className=\"min-w-0 flex-1\">\n {slots.header}\n {slots.description}\n {playground}\n {slots.authSchemes}\n {slots.parameters}\n {slots.body}\n {slots.responses}\n {slots.callbacks}\n </div>\n <div className=\"@4xl:sticky @4xl:top-[calc(var(--fd-docs-row-1,2rem)+1rem)] @4xl:w-[400px]\">\n {slots.apiExample}\n </div>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Sidebar helpers for the API reference: a coloured HTTP-method badge and a\n * page-tree transformer that prefixes each API page's sidebar entry with it —\n * the Mintlify look (POST · GET · … next to the endpoint name). Server-\n * compatible; styled by `styles/api-reference.css`.\n *\n * @packageDocumentation\n */\n\n/**\n * A coloured HTTP-method pill (GET, POST, …).\n *\n * @param props - the HTTP method\n * @public\n */\nexport function MethodBadge({ method }: { method: string }) {\n const upper = method.toUpperCase();\n return (\n <span className=\"api-method-badge\" data-method={method.toLowerCase()}>\n {upper}\n </span>\n );\n}\n\n/**\n * The minimal page-tree item this transformer touches. Structural, so the\n * framework needs no fumadocs types; a site passes the result straight into\n * `loader({ pageTree: { transformers } })`.\n *\n * @public\n */\nexport interface SidebarItem {\n readonly type?: string;\n readonly url?: string;\n name?: ReactNode;\n}\n\n/**\n * A page-tree transformer with a `file` hook, generic over the tree's own item\n * type so it slots into fumadocs' `loader({ pageTree: { transformers } })`\n * without a cast: `file` returns exactly the item type it was given.\n *\n * @public\n */\nexport interface SidebarBadgeTransformer {\n file<T extends SidebarItem>(node: T): T;\n}\n\n/**\n * A page-tree transformer that prefixes every API page's sidebar entry with its\n * HTTP-method badge, matching endpoint URLs against the `methods` map the\n * generator emits (`content/api-methods.json`).\n *\n * @example\n * ```ts\n * import methods from '@/content/api-methods.json';\n * loader({ pageTree: { transformers: [apiMethodBadges(methods)] } });\n * ```\n *\n * @param methods - map of page URL to HTTP method\n * @returns a transformer with a `file` hook\n * @public\n */\nexport function apiMethodBadges(\n methods: Readonly<Record<string, string>>,\n): SidebarBadgeTransformer {\n return {\n file<T extends SidebarItem>(node: T): T {\n const method = node.url ? methods[node.url] : undefined;\n if (!method) {\n return node;\n }\n // Only `name` is rewritten; every other field is carried through, so the\n // item keeps its original type.\n return {\n ...node,\n name: (\n <span key={node.url} className=\"api-nav-item\">\n <MethodBadge method={method} />\n <span className=\"api-nav-text\">{node.name}</span>\n </span>\n ),\n };\n },\n };\n}\n","/**\n * The sign-in screen for a workspace-gated docs site.\n *\n * A site renders one element — `<AuthScreen config={config} .../>` — and gets\n * the whole gate: brand, the allowed-domain note, the providers its config\n * declares (email, shared secret, Google), and an inline error banner. The\n * shared-secret provider is a two-step flow — email, then secret — rendered by\n * the `step` prop. The framework owns the layout and copy; the site owns only\n * its config. Server-rendered: every form is a native POST, no client JS.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport type { DocsConfig } from '../core/config.js';\n\nimport { strokeIcon } from './icons.js';\n\n/**\n * Map a sign-in error code (carried on `?error=` after a failed attempt) to a\n * human sentence. Unknown codes get a safe generic message.\n *\n * @param code - the error code, or undefined\n * @param domains - the allowed email domains, for the domain-mismatch message\n * @returns the message to show, or null when there is no error\n * @public\n */\nexport function authErrorMessage(\n code: string | undefined,\n domains: readonly string[],\n): string | null {\n if (!code) {\n return null;\n }\n const list = domains.join(', ');\n switch (code) {\n case 'forbidden':\n case 'domain':\n return list\n ? `That email isn't on an allowed domain. Sign in with your ${list} account.`\n : `That account isn't allowed to access these docs.`;\n case 'oauth':\n case 'state':\n return `Google sign-in didn't complete. Please try again.`;\n case 'badsecret':\n return `That secret is incorrect. Please try again.`;\n case 'expired':\n return `Your session expired. Sign in again to continue.`;\n case 'config':\n return `Sign-in isn't configured for this site. Contact the site owner.`;\n default:\n return `Something went wrong signing in. Please try again.`;\n }\n}\n\n/**\n * Props for {@link AuthScreen}.\n *\n * @public\n */\nexport interface AuthScreenProps {\n /** The site configuration; drives brand, providers, and allowed domains. */\n readonly config: DocsConfig;\n /** The path to return to after sign-in (from the gate's `?from=`). */\n readonly from?: string;\n /** A sign-in error code to surface inline (from `?error=`). */\n readonly error?: string;\n /**\n * Which step of the shared-secret flow to render. `'email'` (default) shows\n * the email field; `'secret'` shows the secret field for the already-validated\n * {@link AuthScreenProps.email}. Ignored unless the secret provider is enabled.\n */\n readonly step?: 'email' | 'secret';\n /** The domain-checked email to show on the secret step (from the site's cookie). */\n readonly email?: string;\n /**\n * Whether to offer the shared-secret flow. Defaults to whether config declares\n * the secret provider; pass `false` when its env secret is absent. When on, it\n * supersedes plain email sign-in.\n */\n readonly secretEnabled?: boolean;\n /**\n * Whether to offer the Google button. Defaults to whether config declares the\n * Google provider; pass `false` to hide it when its env vars are absent.\n */\n readonly googleEnabled?: boolean;\n /** The email sign-in endpoint. Default `/api/auth/email`. */\n readonly emailAction?: string;\n /** The shared-secret sign-in endpoint (both steps post here). Default `/api/auth/secret`. */\n readonly secretAction?: string;\n /** The Google sign-in start path. Default `/api/auth/google/start`. */\n readonly googleStartPath?: string;\n /** The sign-in page path, for the \"use a different email\" link. Default `/signin`. */\n readonly signInPath?: string;\n}\n\nfunction mailIcon(): ReactNode {\n return strokeIcon('mail');\n}\n\nfunction lockIcon(): ReactNode {\n return strokeIcon('lock');\n}\n\nfunction alertIcon(): ReactNode {\n return strokeIcon('info');\n}\n\nfunction keyIcon(): ReactNode {\n return strokeIcon('key');\n}\n\nfunction userIcon(): ReactNode {\n return strokeIcon('user');\n}\n\n/** Google's multicolour \"G\" mark. */\nfunction googleIcon(): ReactNode {\n return (\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path\n fill=\"#4285F4\"\n d=\"M23.52 12.27c0-.82-.07-1.6-.2-2.36H12v4.46h6.47a5.53 5.53 0 0 1-2.4 3.63v3.02h3.88c2.27-2.09 3.57-5.17 3.57-8.75z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 24c3.24 0 5.96-1.08 7.95-2.91l-3.88-3.02c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.12A12 12 0 0 0 12 24z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M5.27 14.27a7.2 7.2 0 0 1 0-4.54V6.61H1.29a12 12 0 0 0 0 10.78l3.98-3.12z\"\n />\n <path\n fill=\"#EA4335\"\n d=\"M12 4.75c1.77 0 3.35.61 4.6 1.8l3.44-3.44A11.5 11.5 0 0 0 12 0 12 12 0 0 0 1.29 6.61l3.98 3.12C6.22 6.86 8.87 4.75 12 4.75z\"\n />\n </svg>\n );\n}\n\n/**\n * Render the sign-in screen.\n *\n * @param props - see {@link AuthScreenProps}\n * @public\n */\nexport function AuthScreen(props: AuthScreenProps): ReactNode {\n const { config, from, error } = props;\n const auth = config.auth;\n const workspace = auth === 'public' ? null : auth;\n const domains = workspace?.allowedDomains ?? [];\n const target = from ?? '/';\n const emailAction = props.emailAction ?? '/api/auth/email';\n const secretAction = props.secretAction ?? '/api/auth/secret';\n const googleStartPath = props.googleStartPath ?? '/api/auth/google/start';\n const signInPath = props.signInPath ?? '/signin';\n\n const secretEnabled = props.secretEnabled ?? Boolean(workspace?.providers.secret);\n const emailProvider = workspace?.providers.email ?? false;\n // The secret flow supersedes plain email sign-in: offering email-only too\n // would let a reader skip the secret.\n const hasEmailFlow = secretEnabled || emailProvider;\n const showGoogle = props.googleEnabled ?? Boolean(workspace?.providers.google);\n const message = authErrorMessage(error, domains);\n const logo = config.theme.logo;\n\n // The secret step: only when the flow is enabled and we hold a validated email.\n const onSecretStep = props.step === 'secret' && secretEnabled && Boolean(props.email);\n\n const brand = (\n <div className=\"auth-brand\">\n {logo ? (\n <>\n <img className=\"auth-logo-light\" src={logo.light} alt={config.theme.name} />\n <img className=\"auth-logo-dark\" src={logo.dark} alt={config.theme.name} />\n </>\n ) : (\n <>\n <span className=\"auth-dot\" aria-hidden=\"true\" />\n {config.theme.name}\n </>\n )}\n </div>\n );\n\n const errorBanner = message ? (\n <div className=\"auth-error\" role=\"alert\">\n {alertIcon()}\n <span>{message}</span>\n </div>\n ) : null;\n\n if (onSecretStep) {\n return (\n <div className=\"auth-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"auth-card\">\n {brand}\n <h1 className=\"auth-title\">Enter access secret</h1>\n <p className=\"auth-sub\">One more step — enter the shared secret to continue.</p>\n\n <div className=\"auth-identity\">\n {userIcon()}\n <span className=\"auth-identity-email\">{props.email}</span>\n <a className=\"auth-change\" href={signInPath}>\n Change\n </a>\n </div>\n\n {errorBanner}\n\n <form className=\"auth-form\" action={secretAction} method=\"post\">\n <input type=\"hidden\" name=\"from\" value={target} />\n <label className=\"auth-label\" htmlFor=\"auth-secret\">\n Access secret\n </label>\n <div className=\"auth-field\">\n {keyIcon()}\n <input\n id=\"auth-secret\"\n name=\"secret\"\n type=\"password\"\n required\n autoFocus\n autoComplete=\"off\"\n placeholder=\"Enter the access secret\"\n className=\"auth-input\"\n />\n </div>\n <button type=\"submit\" className=\"auth-submit\">\n Sign in\n </button>\n </form>\n\n <p className=\"auth-foot\">\n {lockIcon()}\n Access is limited to your workspace.\n </p>\n </main>\n </div>\n );\n }\n\n return (\n <div className=\"auth-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"auth-card\">\n {brand}\n <h1 className=\"auth-title\">Sign in</h1>\n <p className=\"auth-sub\">\n {domains.length ? (\n <>\n These docs are restricted to <b>{domains.join(', ')}</b> accounts.\n </>\n ) : (\n 'These docs are restricted to your workspace.'\n )}\n </p>\n\n {errorBanner}\n\n {hasEmailFlow ? (\n <form\n className=\"auth-form\"\n action={secretEnabled ? secretAction : emailAction}\n method=\"post\"\n >\n <input type=\"hidden\" name=\"from\" value={target} />\n <label className=\"auth-label\" htmlFor=\"auth-email\">\n Work email\n </label>\n <div className=\"auth-field\">\n {mailIcon()}\n <input\n id=\"auth-email\"\n name=\"email\"\n type=\"email\"\n required\n autoComplete=\"email\"\n autoFocus\n placeholder={`you@${domains[0] ?? 'company.com'}`}\n className=\"auth-input\"\n />\n </div>\n <button type=\"submit\" className=\"auth-submit\">\n {secretEnabled ? 'Continue' : 'Continue with email'}\n </button>\n </form>\n ) : null}\n\n {hasEmailFlow && showGoogle ? <div className=\"auth-divider\">or</div> : null}\n\n {showGoogle ? (\n <a className=\"auth-google\" href={`${googleStartPath}?from=${encodeURIComponent(target)}`}>\n {googleIcon()}\n Continue with Google\n </a>\n ) : null}\n\n <p className=\"auth-foot\">\n {lockIcon()}\n Access is limited to your workspace.\n </p>\n </main>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/**\n * Callout components — the Mintlify `<Note>`, `<Warning>`, `<Info>`, and `<Tip>`\n * blocks. Server-compatible: no client state, so they render in a React Server\n * Component without a `'use client'` boundary.\n *\n * The box is styled by the `.cl` classes in `@blaaiz/docs-core/styles/docs.css`,\n * which a site already imports. That is what makes a callout follow the dark\n * theme: the class set carries a light and a dark palette per tone, where the\n * inline colours these components used before could only ever be light.\n *\n * @packageDocumentation\n */\n\ntype Tone = 'note' | 'warning' | 'info' | 'tip';\n\n/** The glyph each tone shows: a circled `i`, a bulb for a tip, a triangle to warn. */\nconst TONE_GLYPHS: Record<Tone, GlyphName> = {\n note: 'info',\n info: 'info',\n tip: 'bulb',\n warning: 'alert',\n};\n\n/**\n * A tinted callout box with the tone's icon.\n *\n * @public\n */\nexport function Callout({ tone = 'note', children }: { tone?: Tone; children?: ReactNode }) {\n return (\n <div className={`cl cl-${tone}`}>\n <span className=\"cl-icon\">{strokeIcon(TONE_GLYPHS[tone], { size: 18, rounded: true })}</span>\n <div className=\"cl-body\">{children}</div>\n </div>\n );\n}\n\n/** Mintlify `<Note>`. @public */\nexport function Note({ children }: { children?: ReactNode }) {\n return <Callout tone=\"note\">{children}</Callout>;\n}\n\n/** Mintlify `<Warning>`. @public */\nexport function Warning({ children }: { children?: ReactNode }) {\n return <Callout tone=\"warning\">{children}</Callout>;\n}\n\n/** Mintlify `<Info>`. @public */\nexport function Info({ children }: { children?: ReactNode }) {\n return <Callout tone=\"info\">{children}</Callout>;\n}\n\n/** Mintlify `<Tip>`. @public */\nexport function Tip({ children }: { children?: ReactNode }) {\n return <Callout tone=\"tip\">{children}</Callout>;\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Inline-SVG icon resolver for navigation icons named in `docs.json` (Mintlify\n * uses icon names like `house`, `book`, `code`). Zero dependency: a curated set\n * of common docs-nav icons plus a graceful no-icon fallback. Pass it to\n * `loader({ icon: docsIcon })`.\n *\n * @packageDocumentation\n */\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/** The glyphs a docs navigation reaches for, keyed by the names authors write. */\nconst ICONS: Record<string, GlyphName> = {\n house: 'house',\n book: 'book',\n code: 'code',\n rocket: 'rocket',\n terminal: 'terminal',\n wallet: 'wallet',\n key: 'key',\n webhook: 'webhook',\n globe: 'globe',\n user: 'user',\n users: 'users',\n building: 'building',\n clock: 'clock',\n history: 'history',\n bell: 'bell',\n send: 'send',\n 'id-card': 'idCard',\n coins: 'coins',\n handshake: 'handshake',\n 'shield-check': 'shieldCheck',\n banknote: 'banknote',\n 'circle-play': 'circlePlay',\n mail: 'mail',\n};\n\n// Aliases point several common spellings at one glyph.\nconst ALIASES: Record<string, string> = {\n home: 'house',\n 'book-open': 'book',\n api: 'code',\n reference: 'code',\n terminal: 'terminal',\n bank: 'wallet',\n 'credit-card': 'wallet',\n auth: 'key',\n lock: 'key',\n world: 'globe',\n people: 'users',\n team: 'users',\n 'building-2': 'building',\n office: 'building',\n company: 'building',\n time: 'clock',\n 'clock-rotate-left': 'history',\n 'paper-plane': 'send',\n 'address-card': 'id-card',\n shield: 'shield-check',\n 'money-check-dollar-pen': 'banknote',\n 'money-bill': 'banknote',\n 'money-bill-transfer': 'banknote',\n play: 'circle-play',\n envelope: 'mail',\n};\n\n/**\n * Resolve a `docs.json` icon name to an inline SVG. Unknown names resolve to\n * nothing, so the sidebar simply shows no icon rather than a broken one.\n *\n * @param name - the icon name from `docs.json`, or undefined\n * @returns the icon element, or undefined\n * @public\n */\nexport function docsIcon(name: string | undefined): ReactNode {\n const glyph = name === undefined ? undefined : glyphFor(name);\n // The key matters: fumadocs renders a nav link as the array [icon, text], and\n // an unkeyed element in that array raises React's \"unique key\" warning in the\n // consuming site's console.\n return glyph === undefined\n ? undefined\n : strokeIcon(glyph, { size: 16, rounded: true, key: `docs-icon-${glyph}` });\n}\n\n/**\n * Resolve an author-written icon name to its glyph — package-internal, for\n * components that size or colour the icon themselves (`Card`).\n */\nexport function glyphFor(name: string): GlyphName | undefined {\n const key = name.toLowerCase();\n return ICONS[key] ?? ICONS[ALIASES[key] ?? ''];\n}\n","import type { CSSProperties, ReactNode } from 'react';\n\nimport { glyphFor } from './docs-icons.js';\nimport { strokeIcon } from './icons.js';\n\n/**\n * Card components — the Mintlify `<Card>` and `<CardGroup>`. Server-compatible.\n *\n * Colours come from the framework's `--color-fd-*` theme variables, so a card\n * follows the site's palette and the dark theme. Nothing here is a fixed hue.\n *\n * @packageDocumentation\n */\n\n/**\n * A card. When `href` is set it renders as a link. `icon` takes the same\n * names as `docs.json` navigation icons (the Mintlify vocabulary — `user`,\n * `bell`, `paper-plane`, …); an unknown name shows no icon rather than a\n * broken one.\n *\n * @public\n */\nexport function Card({\n title,\n icon,\n href,\n children,\n}: {\n title?: string;\n icon?: string;\n href?: string;\n children?: ReactNode;\n}) {\n const glyph = icon === undefined ? undefined : glyphFor(icon);\n const style: CSSProperties = {\n display: 'block',\n border: '1px solid var(--color-fd-border)',\n borderRadius: 12,\n padding: '22px 24px',\n textDecoration: 'none',\n color: 'inherit',\n background: 'var(--color-fd-card)',\n };\n const body = (\n <>\n {glyph !== undefined && (\n <div style={{ color: 'var(--color-fd-primary)', marginBottom: 10 }}>\n {strokeIcon(glyph, { size: 20, rounded: true })}\n </div>\n )}\n {title !== undefined && (\n <div style={{ fontWeight: 700, fontSize: 15, marginBottom: 4 }}>{title}</div>\n )}\n <div style={{ color: 'var(--color-fd-muted-foreground)', fontSize: 14 }}>{children}</div>\n </>\n );\n if (href !== undefined) {\n return (\n <a href={href} style={style}>\n {body}\n </a>\n );\n }\n return <div style={style}>{body}</div>;\n}\n\n/**\n * A responsive grid of cards. `cols` sets the column count (default 2).\n *\n * @public\n */\nexport function CardGroup({ cols = 2, children }: { cols?: number; children?: ReactNode }) {\n const style: CSSProperties = {\n display: 'grid',\n gridTemplateColumns: `repeat(${String(cols)}, minmax(0, 1fr))`,\n gap: 16,\n margin: '16px 0',\n };\n return <div style={style}>{children}</div>;\n}\n","import { Children, isValidElement, type ReactElement, type ReactNode, useId } from 'react';\n\n/**\n * CodeGroup — the Mintlify `<CodeGroup>`: sibling fenced code blocks presented\n * as tabs, labelled by each fence's title (`js Node.js`). The\n * `remarkCodeTitles` plugin (from `@blaaiz/docs-core/mdx`) reads the titles at\n * compile time and hands them to this component as the `labels` attribute; a\n * runtime walk of each block's props covers MDX written without the plugin.\n * The switching reuses the same hidden-radio CSS as `<Tabs>` — zero client\n * JavaScript. Styled by `styles/docs.css`.\n *\n * @packageDocumentation\n */\n\ninterface BlockProps {\n readonly title?: unknown;\n readonly lang?: unknown;\n readonly children?: ReactNode;\n}\n\n/**\n * The first fence title reachable from a rendered block. The MDX pipeline\n * wraps each fence in a code-block component, so the `title`/`lang` the\n * rehype-code stage attaches sits on a nested `pre`, not on the block itself —\n * hence the bounded walk instead of a single props read.\n */\nfunction findLabel(node: ReactNode, depth = 0): string | undefined {\n if (depth > 4) {\n return undefined;\n }\n for (const child of Children.toArray(node)) {\n if (!isValidElement(child)) {\n continue;\n }\n const { title, lang, children } = child.props as BlockProps;\n if (typeof title === 'string' && title !== '') {\n return title;\n }\n if (typeof lang === 'string' && lang !== '') {\n return lang;\n }\n const nested = findLabel(children, depth + 1);\n if (nested !== undefined) {\n return nested;\n }\n }\n return undefined;\n}\n\nfunction parseLabels(labels: string | readonly string[] | undefined): readonly string[] {\n if (labels === undefined) {\n return [];\n }\n if (typeof labels !== 'string') {\n return labels;\n }\n try {\n const parsed: unknown = JSON.parse(labels);\n return Array.isArray(parsed) ? parsed.map(String) : [];\n } catch {\n return [];\n }\n}\n\n/**\n * The code-tab container: one hidden radio per block, the bar of fence titles,\n * and the blocks as panels. CSS shows the checked radio's label and panel.\n *\n * @public\n */\nexport function CodeGroup({\n children,\n labels,\n}: {\n readonly children?: ReactNode;\n readonly labels?: string | readonly string[];\n}) {\n const group = useId();\n const blocks = Children.toArray(children).filter((child): child is ReactElement<BlockProps> =>\n isValidElement(child),\n );\n const named = parseLabels(labels);\n const labelOf = (block: ReactElement<BlockProps>, index: number): string =>\n named[index] ?? findLabel(block) ?? `Code ${String(index + 1)}`;\n return (\n <div className=\"tabs tabs--code\">\n {blocks.map((_block, index) => (\n <input\n key={index}\n className=\"tabs__radio\"\n type=\"radio\"\n name={group}\n id={`${group}-${String(index)}`}\n defaultChecked={index === 0}\n />\n ))}\n <div className=\"tabs__bar\">\n {blocks.map((block, index) => (\n <label key={index} className=\"tabs__trigger\" htmlFor={`${group}-${String(index)}`}>\n {labelOf(block, index)}\n </label>\n ))}\n </div>\n {blocks.map((block, index) => (\n <section key={index} className=\"tabs__panel\">\n {block}\n </section>\n ))}\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Frame — the Mintlify `<Frame>`: a bordered, centred surface around an image\n * or any media, with an optional caption. A plain `<figure>`, so it renders in\n * a Server Component with zero client JavaScript. Styled by `styles/docs.css`\n * on the theme tokens.\n *\n * @packageDocumentation\n */\n\n/**\n * Props for {@link Frame}.\n *\n * @public\n */\nexport interface FrameProps {\n /** A caption rendered under the media. */\n readonly caption?: ReactNode;\n readonly children?: ReactNode;\n}\n\n/**\n * A framed media block.\n *\n * @public\n */\nexport function Frame({ caption, children }: FrameProps) {\n return (\n <figure className=\"frame\">\n <div className=\"frame__body\">{children}</div>\n {caption === undefined ? null : <figcaption className=\"frame__caption\">{caption}</figcaption>}\n </figure>\n );\n}\n","/**\n * Top-navigation links from `nav.json`.\n *\n * Every site renders the same top bar in two layouts — the landing's\n * `HomeLayout` and the docs' `DocsLayout` — and the mapping carries policy\n * that must not drift per site: Home points at the landing and matches it\n * exactly, a link to the docs root matches only the docs root (never\n * everything nested under it), and section links match their subtree. This\n * module owns that policy; a site's layout is one call.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport { docsIcon } from './docs-icons.js';\n\n/**\n * One entry of `content/nav.json`.\n *\n * @public\n */\nexport interface NavJsonLink {\n readonly text: string;\n readonly url: string;\n readonly icon?: string;\n /**\n * Path prefixes this link is active for, when the generator knows the\n * link's territory better than the URL shows — an API tab whose entry page\n * lives outside its generated folder. Omitted, the section is derived from\n * the URL. Ignored on the exact-match links (Home and the docs root).\n */\n readonly match?: string | readonly string[];\n}\n\n/**\n * A rendered top-navigation link, structurally assignable to a fumadocs\n * `LinkItemType`.\n *\n * @public\n */\nexport interface DocsNavLink {\n readonly text: string;\n readonly url: string;\n readonly icon: ReactNode;\n readonly active: 'url' | 'nested-url';\n /**\n * The path(s) this link is active for. Equal to `url` for Home and the docs\n * root; for a section link, the section prefixes — `nav.json`'s own `match`\n * when the generator emitted one, the URL-derived section otherwise — so the\n * link stays active on every page of its section, not only under its click\n * target. Plain fumadocs link items cannot express this split; a site\n * component that compares the pathname against `match` can.\n */\n readonly match: string | readonly string[];\n}\n\n/**\n * Options for {@link docsNavLinks}.\n *\n * @public\n */\nexport interface DocsNavLinksOptions {\n /**\n * The Home entry prepended before the `nav.json` links, pointing at the\n * landing. Pass `false` on a site with no landing page.\n */\n readonly home?: NavJsonLink | false;\n /** The docs base URL, whose link matches exactly rather than nested. */\n readonly baseUrl?: string;\n /**\n * Resolves an icon name from `docs.json` to an element. Defaults to the\n * framework's `docsIcon` set; pass your own to use any icon library the\n * site installs (return `undefined` for a text-only link). The default\n * Home entry resolves the name `house` through it.\n */\n readonly icon?: (name: string | undefined) => ReactNode;\n}\n\n/**\n * Map `nav.json` entries to top-navigation links for `HomeLayout` and\n * `DocsLayout`.\n *\n * @param links - the parsed `content/nav.json`\n * @param options - the Home entry and the docs base URL\n * @returns links with icons resolved and active-matching applied\n * @public\n */\nexport function docsNavLinks(\n links: readonly NavJsonLink[],\n options: DocsNavLinksOptions = {},\n): readonly DocsNavLink[] {\n const baseUrl = options.baseUrl ?? '/docs';\n const home = options.home ?? { text: 'Home', url: '/', icon: 'house' };\n const icon = options.icon ?? docsIcon;\n return [\n ...(home === false ? [] : [home]),\n ...links.filter((link) => home === false || link.url !== home.url),\n ].map((link) => {\n const exact = link.url === baseUrl || link.url === (home === false ? '' : home.url);\n return {\n text: link.text,\n url: link.url,\n icon: icon(link.icon),\n active: exact ? ('url' as const) : ('nested-url' as const),\n match: exact ? link.url : (providedMatch(link.match) ?? sectionPrefix(link.url, baseUrl)),\n };\n });\n}\n\n/**\n * A usable provided `match`: non-empty entries only, and `undefined` when\n * nothing usable remains — an empty prefix would match every pathname.\n */\nfunction providedMatch(\n match: string | readonly string[] | undefined,\n): string | readonly string[] | undefined {\n if (match === undefined) {\n return undefined;\n }\n const entries = (typeof match === 'string' ? [match] : match).filter((entry) => entry !== '');\n return entries.length === 0 ? undefined : entries;\n}\n\n/**\n * The section a docs URL belongs to: its first path segment under `baseUrl`.\n * A URL outside `baseUrl` is its own section.\n */\nfunction sectionPrefix(url: string, baseUrl: string): string {\n if (!url.startsWith(`${baseUrl}/`)) {\n return url;\n }\n const segment = url.slice(baseUrl.length + 1).split('/')[0] ?? '';\n return segment === '' ? url : `${baseUrl}/${segment}`;\n}\n\n/**\n * Whether a link is active for the current pathname: exact links match only\n * themselves; section links match their whole section.\n *\n * @public\n */\nexport function isDocsNavLinkActive(link: DocsNavLink, pathname: string): boolean {\n const matches = typeof link.match === 'string' ? [link.match] : link.match;\n if (link.active === 'url') {\n return matches.includes(pathname);\n }\n return matches.some((match) => pathname === match || pathname.startsWith(`${match}/`));\n}\n","import type { ReactNode } from 'react';\n\nimport type { DocsNavLinksOptions, NavJsonLink } from './nav-links.js';\nimport { docsNavLinks } from './nav-links.js';\n\n/**\n * The section links as fumadocs navbar tabs: the docs pages' second header\n * row. The notebook layout's navbar tabs render only `title` — a `LayoutTab`'s\n * `icon` field is silently dropped in that mode — so the icon is folded into\n * the title node here, once, instead of every site rediscovering it.\n *\n * A link whose territory is a page-tree folder binds that folder (`$folder`\n * activates the tab on the whole subtree); the rest match their exact URLs.\n *\n * @packageDocumentation\n */\n\n/**\n * One navbar tab, structurally assignable to a fumadocs `LayoutTab`.\n *\n * @public\n */\nexport interface DocsLayoutTab<Folder> {\n /** The tab's label: the link's icon and text. */\n readonly title: ReactNode;\n /** The tab's click target. */\n readonly url: string;\n /** The page-tree folder the tab activates on, when its territory is one. */\n readonly $folder?: Folder;\n /** The exact URLs the tab activates on, when it binds no folder. */\n readonly urls?: Set<string>;\n}\n\n/** The shape of a page-tree node this module reads: a folder's entry URL. */\ninterface TreeNodeShape {\n readonly type: string;\n readonly url?: string;\n readonly index?: { readonly url?: string };\n readonly children?: readonly { readonly type: string; readonly url?: string }[];\n}\n\n/**\n * Map `nav.json` entries to navbar tabs for `DocsLayout` with\n * `tabMode=\"navbar\"`.\n *\n * @param links - the parsed `content/nav.json`\n * @param tree - the site's page tree (`source.pageTree`)\n * @param options - the Home entry, docs base URL, and icon resolver\n * @returns tabs with icons in their titles and territories bound\n * @public\n */\nexport function docsLayoutTabs<Node extends { readonly type: string }>(\n links: readonly NavJsonLink[],\n tree: { readonly children: readonly Node[] },\n options: DocsNavLinksOptions = {},\n): DocsLayoutTab<Extract<Node, { readonly type: 'folder' }>>[] {\n type Folder = Extract<Node, { readonly type: 'folder' }>;\n const folders = tree.children.filter((node): node is Folder => node.type === 'folder');\n const entryUrl = (folder: Folder): string | undefined => {\n const shape = folder as TreeNodeShape;\n const first = shape.index ?? shape.children?.find((child) => child.type === 'page');\n return first?.url;\n };\n return docsNavLinks(links, options).map((link) => {\n const matches = typeof link.match === 'string' ? [link.match] : [...link.match];\n const prefix = matches[0] ?? link.url;\n const folder =\n link.active === 'nested-url'\n ? folders.find((candidate) => entryUrl(candidate)?.startsWith(`${prefix}/`))\n : undefined;\n return {\n // The title owns its layout (`.tab-title` in styles/docs.css): fumadocs\n // places it in contexts that are not flex rows — the mobile drawer's tab\n // dropdown renders it inside a plain <p>, where Tailwind's block-level\n // svg would stack the icon above the text.\n title:\n link.icon === undefined ? (\n link.text\n ) : (\n <span className=\"tab-title\">\n {link.icon}\n {link.text}\n </span>\n ),\n url: link.url,\n ...(folder ? { $folder: folder } : { urls: new Set([...matches, link.url]) }),\n };\n });\n}\n","import type { ReactNode } from 'react';\n\nimport type { NavbarConfig } from '../core/config.js';\n\n/**\n * The top bar's action cluster: the config's calls to action, and sign-out on\n * a workspace site. Server-compatible; sign-out is a native form post to the\n * site's sign-out route, so no client JavaScript is involved. Styled by\n * `styles/docs.css`.\n *\n * @packageDocumentation\n */\n\n/**\n * Props for {@link NavActions}.\n *\n * @public\n */\nexport interface NavActionsProps {\n /** The config's `navbar` block: the primary button and the secondary link. */\n readonly navbar?: NavbarConfig;\n /** Whether to offer sign-out (a workspace site). */\n readonly signOut?: boolean;\n /** The sign-out route. Default `/api/auth/signout`. */\n readonly signOutAction?: string;\n /** Leading extras, such as the Ask AI trigger. */\n readonly children?: ReactNode;\n}\n\n/**\n * The action cluster a site mounts at the end of its top bar: optional extras,\n * the secondary link, sign-out, and the primary button, in that order.\n *\n * @param props - the config's navbar block, the sign-out switch, and extras\n * @public\n */\nexport function NavActions({\n navbar,\n signOut = false,\n signOutAction = '/api/auth/signout',\n children,\n}: NavActionsProps) {\n return (\n <div className=\"nav-actions\">\n {children}\n {navbar?.secondary ? (\n <a className=\"nav-actions__secondary\" href={navbar.secondary.href}>\n {navbar.secondary.text}\n </a>\n ) : null}\n {signOut ? (\n <form method=\"post\" action={signOutAction}>\n <button type=\"submit\" className=\"nav-actions__signout\">\n Log out\n </button>\n </form>\n ) : null}\n {navbar?.primary ? (\n <a className=\"nav-actions__primary\" href={navbar.primary.href}>\n {navbar.primary.text}\n </a>\n ) : null}\n </div>\n );\n}\n","/**\n * A general error screen with per-kind states.\n *\n * One component covers every full-page error a docs site shows — a missing page\n * (404), a forbidden account (403), a runtime failure (500), an offline state —\n * each with its own icon, eyebrow, and default copy. A site picks the `kind`\n * and, for runtime errors, passes a retry action; the framework owns the rest.\n * Server-compatible: the site's `error.tsx` wrapper carries the `'use client'`\n * boundary and hands in the retry button.\n *\n * @packageDocumentation\n */\n\nimport type { ReactNode } from 'react';\n\nimport { type GlyphName, strokeIcon } from './icons.js';\n\n/**\n * The error states the screen renders.\n *\n * @public\n */\nexport type ErrorKind = 'not-found' | 'forbidden' | 'server' | 'offline' | 'unknown';\n\n/**\n * The default eyebrow, title, description, and icon for a {@link ErrorKind}.\n *\n * @public\n */\nexport interface ErrorPreset {\n readonly code: string;\n readonly title: string;\n readonly description: string;\n readonly icon: ReactNode;\n}\n\n/** The screens' icons are drawn a hair lighter than the rest of the UI. */\nfunction icon(name: GlyphName): ReactNode {\n return strokeIcon(name, { strokeWidth: 1.75 });\n}\n\nconst PRESETS: Record<ErrorKind, ErrorPreset> = {\n 'not-found': {\n code: '404',\n title: 'Page not found',\n description: \"The page you're looking for doesn't exist or may have moved.\",\n icon: icon('crossCircle'),\n },\n forbidden: {\n code: '403',\n title: 'Access restricted',\n description: 'Your account is not allowed to view this page. Sign in with an allowed account.',\n icon: icon('lock'),\n },\n server: {\n code: '500',\n title: 'Something went wrong',\n description: 'An unexpected error occurred on our side. Please try again in a moment.',\n icon: icon('alert'),\n },\n offline: {\n code: 'Offline',\n title: \"You're offline\",\n description: 'Check your connection and try again.',\n icon: icon('offline'),\n },\n unknown: {\n code: 'Error',\n title: 'Something went wrong',\n description: 'An unexpected error occurred. Please try again.',\n icon: icon('info'),\n },\n};\n\n/**\n * The default preset for an error kind — its icon, eyebrow, and copy.\n *\n * @param kind - the error state\n * @returns the preset a site can render or override\n * @public\n */\nexport function errorPreset(kind: ErrorKind): ErrorPreset {\n return PRESETS[kind];\n}\n\n/**\n * Props for {@link ErrorScreen}. Everything but `kind` is optional: the kind's\n * preset fills the eyebrow, title, description, and icon unless overridden.\n *\n * @public\n */\nexport interface ErrorScreenProps {\n /** Which error state to render. Default `unknown`. */\n readonly kind?: ErrorKind;\n /** Override the eyebrow code (e.g. a specific status). */\n readonly code?: string;\n /** Override the title. */\n readonly title?: string;\n /** Override the description. */\n readonly description?: string;\n /** When set, render a primary button linking here (e.g. `/docs`). */\n readonly homeHref?: string;\n /** Label for the home button. Default \"Back to docs\". */\n readonly homeLabel?: string;\n /** An extra action rendered beside the home button (e.g. a retry button). */\n readonly action?: ReactNode;\n}\n\nfunction homeIcon(): ReactNode {\n return strokeIcon('house');\n}\n\n/**\n * Render the error screen.\n *\n * @param props - see {@link ErrorScreenProps}\n * @public\n */\nexport function ErrorScreen(props: ErrorScreenProps): ReactNode {\n const kind = props.kind ?? 'unknown';\n const preset = PRESETS[kind];\n const code = props.code ?? preset.code;\n const title = props.title ?? preset.title;\n const description = props.description ?? preset.description;\n\n return (\n <div className=\"error-screen\">\n <div className=\"auth-ambient\" aria-hidden=\"true\" />\n <main className=\"error-card\">\n <div className=\"error-glyph\" data-kind={kind}>\n {preset.icon}\n </div>\n <p className=\"error-code\">{code}</p>\n <h1 className=\"error-title\">{title}</h1>\n <p className=\"error-desc\">{description}</p>\n {props.homeHref || props.action ? (\n <div className=\"error-actions\">\n {props.homeHref ? (\n <a className=\"error-btn error-btn-primary\" href={props.homeHref}>\n {homeIcon()}\n {props.homeLabel ?? 'Back to docs'}\n </a>\n ) : null}\n {props.action}\n </div>\n ) : null}\n </main>\n </div>\n );\n}\n","import type { ReactNode } from 'react';\n\n/**\n * Steps components — the Mintlify `<Steps>` and `<Step>`. Server-compatible.\n *\n * The spine uses the framework's border token, so it follows the site's palette\n * and the dark theme.\n *\n * @packageDocumentation\n */\n\n/**\n * An ordered list of steps.\n *\n * @public\n */\nexport function Steps({ children }: { children?: ReactNode }) {\n return (\n <div\n style={{\n borderLeft: '2px solid var(--color-fd-border)',\n paddingLeft: 20,\n margin: '16px 0',\n display: 'flex',\n flexDirection: 'column',\n gap: 16,\n }}\n >\n {children}\n </div>\n );\n}\n\n/**\n * A single step with an optional title.\n *\n * @public\n */\nexport function Step({ title, children }: { title?: string; children?: ReactNode }) {\n return (\n <div>\n {title !== undefined && (\n <div style={{ fontWeight: 700, fontSize: 15, marginBottom: 4 }}>{title}</div>\n )}\n <div>{children}</div>\n </div>\n );\n}\n","import { Children, isValidElement, type ReactElement, type ReactNode, useId } from 'react';\n\n/**\n * Tab components — the Mintlify `<Tabs>` and `<Tab title=\"…\">`. A bar of\n * titles above one visible panel, the first tab active. Built on hidden radio\n * inputs and CSS `:checked`, like the Accordion's native `<details>`: fully\n * interactive with zero client JavaScript, so it renders in a Server Component\n * and belongs in the MDX component map. Styled by `styles/docs.css`, which\n * carries selector pairs for up to eight tabs per group.\n *\n * @packageDocumentation\n */\n\n/**\n * Props for {@link Tab}.\n *\n * @public\n */\nexport interface TabProps {\n /** The tab's label in the bar. */\n readonly title: string;\n readonly children?: ReactNode;\n}\n\n/**\n * One tab's content. {@link Tabs} renders it; on its own it renders nothing.\n *\n * @public\n */\nexport function Tab(props: TabProps): null {\n void props;\n return null;\n}\n\n/**\n * The tab container: one hidden radio per child, the bar of their titles, and\n * the panels. CSS shows the checked radio's label and panel.\n *\n * @public\n */\nexport function Tabs({ children }: { readonly children?: ReactNode }) {\n const group = useId();\n const tabs = Children.toArray(children).filter(\n (child): child is ReactElement<TabProps> =>\n isValidElement(child) && typeof (child.props as TabProps).title === 'string',\n );\n return (\n <div className=\"tabs\">\n {tabs.map((tab, index) => (\n <input\n key={tab.props.title}\n className=\"tabs__radio\"\n type=\"radio\"\n name={group}\n id={`${group}-${String(index)}`}\n defaultChecked={index === 0}\n />\n ))}\n <div className=\"tabs__bar\">\n {tabs.map((tab, index) => (\n <label\n key={tab.props.title}\n className=\"tabs__trigger\"\n htmlFor={`${group}-${String(index)}`}\n >\n {tab.props.title}\n </label>\n ))}\n </div>\n {tabs.map((tab) => (\n <section key={tab.props.title} className=\"tabs__panel\">\n {tab.props.children}\n </section>\n ))}\n </div>\n );\n}\n","import { Accordion, AccordionGroup } from './accordion.js';\nimport { Info, Note, Tip, Warning } from './callout.js';\nimport { Card, CardGroup } from './card.js';\nimport { CodeGroup } from './code-group.js';\nimport { Frame } from './frame.js';\nimport { Step, Steps } from './steps.js';\nimport { Tab, Tabs } from './tabs.js';\n\n/**\n * The Mintlify-compatible MDX component map.\n *\n * Pass this to an MDX renderer (for example `next-mdx-remote`'s `compileMDX`)\n * so real Mintlify guides render unchanged. A site no longer needs to shim\n * these itself.\n *\n * @public\n */\nexport const mdxComponents = {\n Note,\n Warning,\n Info,\n Tip,\n Card,\n CardGroup,\n Accordion,\n AccordionGroup,\n Steps,\n Step,\n Tabs,\n Tab,\n Frame,\n CodeGroup,\n};\n","import type { CSSProperties } from 'react';\n\nimport type { NavItem, NavPage, Navigation } from '../core/index.js';\n\n/**\n * The navigation sidebar. Renders a {@link Navigation} tree (produced by\n * `parseNavigation`) as tabs, groups, and page links. Framework-agnostic: it\n * emits plain anchors and takes an optional `resolveHref` so a site controls\n * its own routing. Server-compatible.\n *\n * @packageDocumentation\n */\n\n/**\n * Map a navigation page to a URL. Override to control routing — the default\n * assumes one specific site shape, which is why {@link DocsSidebar} is\n * deprecated.\n *\n * @public\n */\nexport type ResolveHref = (page: NavPage) => string;\n\nconst defaultResolveHref: ResolveHref = (page) => {\n if (page.kind === 'openapi') {\n return '/reference';\n }\n if (page.file === 'introduction') {\n return '/';\n }\n return `/${page.file}`;\n};\n\n/**\n * The method palette. The three status hues are the ones\n * `styles/api-reference.css` uses for its badges, so a method reads the same\n * colour everywhere; `POST` follows the site's own accent.\n */\nconst METHOD_COLORS: Record<string, string> = {\n GET: '#16a34a',\n POST: 'var(--color-fd-primary)',\n PUT: '#d97706',\n PATCH: '#d97706',\n DELETE: '#dc2626',\n};\n\nfunction labelForDoc(file: string): string {\n const last = file.split('/').pop() ?? file;\n return last.replace(/-/g, ' ').replace(/\\b\\w/g, (c) => c.toUpperCase());\n}\n\nfunction Items({\n items,\n depth,\n resolveHref,\n}: {\n items: readonly NavItem[];\n depth: number;\n resolveHref: ResolveHref;\n}) {\n const list: CSSProperties = { listStyle: 'none', margin: 0, paddingLeft: depth === 0 ? 0 : 12 };\n const groupLabel: CSSProperties = {\n fontSize: 11,\n fontWeight: 700,\n textTransform: 'uppercase',\n letterSpacing: '0.04em',\n color: 'var(--color-fd-muted-foreground)',\n margin: '6px 0',\n };\n const link: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n padding: '5px 8px',\n borderRadius: 6,\n color: 'var(--color-fd-foreground)',\n textDecoration: 'none',\n fontSize: 14,\n };\n return (\n <ul style={list}>\n {items.map((item, index) => {\n if (item.kind === 'group') {\n return (\n <li key={`g-${String(index)}`} style={{ marginTop: 10 }}>\n <div style={groupLabel}>{item.title}</div>\n <Items items={item.items} depth={depth + 1} resolveHref={resolveHref} />\n </li>\n );\n }\n return (\n <li key={`p-${String(index)}`}>\n <a href={resolveHref(item)} style={link}>\n {item.kind === 'openapi' && (\n <span\n style={{\n fontSize: 9,\n fontWeight: 700,\n color: METHOD_COLORS[item.method] ?? 'var(--color-fd-muted-foreground)',\n minWidth: 34,\n }}\n >\n {item.method}\n </span>\n )}\n <span>\n {item.kind === 'openapi'\n ? item.apiPath.replace(/^\\/api\\//, '')\n : labelForDoc(item.file)}\n </span>\n </a>\n </li>\n );\n })}\n </ul>\n );\n}\n\n/**\n * Render the documentation sidebar.\n *\n * @deprecated Use fumadocs' `DocsLayout` with `loader({ icon: docsIcon })`,\n * which both shipped sites use. This component predates that wiring: it renders\n * plain anchors with no active state, no collapsible groups, and no search, and\n * its default `resolveHref` assumes a routing shape (`/reference`, and\n * `introduction` at the root) that no site now uses. Pass your own\n * {@link ResolveHref} if you keep it. It stays exported, and behaves exactly as\n * before, until the next major version.\n *\n * @public\n */\nexport function DocsSidebar({\n nav,\n resolveHref = defaultResolveHref,\n}: {\n nav: Navigation;\n resolveHref?: ResolveHref;\n}) {\n return (\n <nav style={{ padding: '20px 16px' }}>\n {nav.map((tab, index) => (\n <div key={`t-${String(index)}`} style={{ marginBottom: 18 }}>\n <div\n style={{\n fontSize: 13,\n fontWeight: 800,\n color: 'var(--color-fd-foreground)',\n marginBottom: 4,\n }}\n >\n {tab.title}\n </div>\n <Items items={tab.items} depth={0} resolveHref={resolveHref} />\n </div>\n ))}\n </nav>\n );\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaaiz/docs-core",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Neutral, self-hostable documentation framework core — navigation parsing, OpenAPI merging, MDX doc components, and a hardened try-it proxy. Config and content live in each consuming site.",
5
5
  "keywords": [
6
6
  "documentation",
package/styles/docs.css CHANGED
@@ -188,6 +188,17 @@ button:has(kbd) {
188
188
  margin-bottom: 0;
189
189
  }
190
190
 
191
+ /* Prose gives bold text and links their own foreground colour; inside a
192
+ tinted callout both must keep the tone, as Mintlify's do. Links stay
193
+ underlined to remain visible as links. */
194
+ .cl-body :is(strong, b, a) {
195
+ color: inherit;
196
+ }
197
+
198
+ .cl-body a {
199
+ text-decoration: underline;
200
+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,KAAA,EAAO,OAAA,CAAQ,IAAA,EAAM,MAAA,EAAQ,OAAA,CAAQ,IAAA,EAAK;AAAA,MACnF,OAAA,EAAQ,WAAA;AAAA,MACR,IAAA,EAAK,cAAA;AAAA,MACL,aAAA,EAAY,MAAA;AAAA,MAEZ,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,CAAA,EAAG,IAAA,EAAM;AAAA,KAAA;AAAA,IAPV,OAAA,CAAQ;AAAA,GAQf;AAEJ;AAGO,IAAM,SAAA,GAAY","file":"chunk-6H6OB7YP.js","sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * The framework's inline-SVG glyph set — internal.\n *\n * Five UI modules drew their own icons, and four glyphs were drawn twice: the\n * house on the error screen and in the sidebar icon map, the padlock on the\n * sign-in and the `403` screen, the info circle on both of those, the key in\n * both places again, and the check mark in the copy-page button and the\n * playground. One drawing per glyph now lives here.\n *\n * Nothing is exported from the package: the modules below compose these paths,\n * and `docsIcon` remains the only public icon surface. Zero dependencies — the\n * paths are Lucide-shaped, on the same 24×24 grid, so any glyph works at any\n * size.\n *\n * @packageDocumentation\n */\n\n/**\n * The glyph paths, keyed by name. Each value is the *inside* of an `<svg>`, so\n * a caller decides the size, the stroke, and the class.\n */\nconst GLYPHS = {\n house: (\n <>\n <path d=\"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />\n <path d=\"M9 22V12h6v10\" />\n </>\n ),\n book: <path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20\" />,\n code: (\n <>\n <path d=\"m16 18 6-6-6-6\" />\n <path d=\"m8 6-6 6 6 6\" />\n </>\n ),\n rocket: (\n <>\n <path d=\"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91 0z\" />\n <path d=\"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z\" />\n <path d=\"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0\" />\n <path d=\"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5\" />\n </>\n ),\n terminal: (\n <>\n <path d=\"m4 17 6-6-6-6\" />\n <path d=\"M12 19h8\" />\n </>\n ),\n wallet: (\n <>\n <path d=\"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1\" />\n <path d=\"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4\" />\n </>\n ),\n key: (\n <>\n <path d=\"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4\" />\n <path d=\"m21 2-9.6 9.6\" />\n <circle cx=\"7.5\" cy=\"15.5\" r=\"5.5\" />\n </>\n ),\n webhook: (\n <>\n <path d=\"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2\" />\n <path d=\"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06\" />\n <path d=\"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8\" />\n </>\n ),\n globe: (\n <>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\" />\n <path d=\"M2 12h20\" />\n </>\n ),\n mail: (\n <>\n <rect x=\"2\" y=\"4\" width=\"20\" height=\"16\" rx=\"2\" />\n <path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\" />\n </>\n ),\n user: (\n <>\n <circle cx=\"12\" cy=\"8\" r=\"4\" />\n <path d=\"M4 21a8 8 0 0 1 16 0\" />\n </>\n ),\n lock: (\n <>\n <rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" />\n <path d=\"M7 11V7a5 5 0 0 1 10 0v4\" />\n </>\n ),\n users: (\n <>\n <circle cx=\"9\" cy=\"7\" r=\"4\" />\n <path d=\"M2 21a7 7 0 0 1 14 0\" />\n <path d=\"M16 3.5a4 4 0 0 1 0 7\" />\n <path d=\"M17.5 14.5a7 7 0 0 1 4.5 6.5\" />\n </>\n ),\n building: (\n <>\n <rect x=\"4\" y=\"2\" width=\"16\" height=\"20\" rx=\"2\" />\n <path d=\"M9 22v-4h6v4\" />\n <path d=\"M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01\" />\n </>\n ),\n clock: (\n <>\n <circle cx=\"12\" cy=\"12\" r=\"9\" />\n <path d=\"M12 7v5l3 2\" />\n </>\n ),\n /** A circled `i` — an informational note, and the generic error state. */\n info: (\n <>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 8v4M12 16h.01\" strokeLinecap=\"round\" />\n </>\n ),\n /** A warning triangle — a caution, and the `500` screen. */\n alert: (\n <>\n <path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\" />\n <path d=\"M12 9v4M12 17h.01\" strokeLinecap=\"round\" />\n </>\n ),\n /** A light bulb — a tip. */\n bulb: (\n <path d=\"M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.1V17h6v-.2c0-.8.4-1.6 1-2.1A7 7 0 0 0 12 2Z\" />\n ),\n /** A circle with a cross — the `404` screen. */\n crossCircle: (\n <>\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m14.31 8-1.31 2.4M9.69 8l4.62 8M14.31 16 9.69 8\" strokeLinecap=\"round\" />\n </>\n ),\n /** Struck-through signal bars — the offline screen. */\n offline: (\n <>\n <path d=\"M5 12.55a11 11 0 0 1 14 0M8.5 16.11a6 6 0 0 1 7 0M12 20h.01\" strokeLinecap=\"round\" />\n <path d=\"m2 2 20 20\" strokeLinecap=\"round\" />\n </>\n ),\n copy: (\n <path d=\"M9 9h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2ZM5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\" />\n ),\n check: <path d=\"M20 6 9 17l-5-5\" />,\n chevronDown: <path d=\"m6 9 6 6 6-6\" />,\n /** Stacked chevrons — a value this control switches between. */\n chevronUpDown: <path d=\"m7 15 5 5 5-5M7 9l5-5 5 5\" />,\n /** An open arc — one turn of a loading spinner. */\n spinner: <path d=\"M21 12a9 9 0 1 1-6.219-8.56\" strokeLinecap=\"round\" />,\n markdown: (\n <>\n <rect x=\"2\" y=\"5\" width=\"20\" height=\"14\" rx=\"2\" />\n <path d=\"M6 15V9l3 3 3-3v6M17 9v4m0 0 2-2m-2 2-2-2\" />\n </>\n ),\n} satisfies Record<string, ReactNode>;\n\n/** A glyph in {@link GLYPHS}. */\nexport type GlyphName = keyof typeof GLYPHS;\n\n/**\n * How one icon is drawn. Every field is optional, and the defaults match the\n * house style: 24×24 grid, current colour, hidden from assistive technology.\n */\nexport interface IconOptions {\n /**\n * React key for the `<svg>`. Set it when a host may place the icon in an\n * array of children — fumadocs renders a sidebar link as `[icon, text]`, and\n * an unkeyed element there raises React's \"unique key\" warning in the\n * consuming site's console.\n */\n readonly key?: string;\n /** Pixel size for `width` and `height`. Omit to let CSS size the icon. */\n readonly size?: number;\n /** Stroke width. Default 2. */\n readonly strokeWidth?: number;\n /** Round the stroke's ends and joins. Default `false`. */\n readonly rounded?: boolean;\n /** Class for the `<svg>`, e.g. a spin animation. */\n readonly className?: string;\n}\n\n/**\n * Draw a stroked glyph.\n *\n * @param name - the glyph\n * @param options - size, stroke, and class\n * @returns the `<svg>` element\n */\nexport function strokeIcon(name: GlyphName, options: IconOptions = {}): ReactNode {\n return (\n <svg\n key={options.key}\n {...(options.className === undefined ? {} : { className: options.className })}\n {...(options.size === undefined ? {} : { width: options.size, height: options.size })}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={options.strokeWidth ?? 2}\n {...(options.rounded ? { strokeLinecap: 'round', strokeLinejoin: 'round' } : {})}\n aria-hidden=\"true\"\n >\n {GLYPHS[name]}\n </svg>\n );\n}\n\n/**\n * Draw a filled glyph. Used by the solid play triangle, where a stroke would\n * read as an outline.\n *\n * @param path - the path data\n * @param options - size and class\n * @returns the `<svg>` element\n */\nexport function filledIcon(path: string, options: IconOptions = {}): ReactNode {\n return (\n <svg\n key={options.key}\n {...(options.className === undefined ? {} : { className: options.className })}\n {...(options.size === undefined ? {} : { width: options.size, height: options.size })}\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n >\n <path d={path} />\n </svg>\n );\n}\n\n/** A solid right-pointing triangle: run this request. */\nexport const PLAY_PATH = 'M8 5v14l11-7z';\n"]}