@flamingo-stack/openframe-frontend-core 0.0.395-snapshot.20260709183848 → 0.0.395

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.
Files changed (90) hide show
  1. package/dist/{chunk-NAFW3LKI.cjs → chunk-3VJPMRNT.cjs} +7 -7
  2. package/dist/{chunk-NAFW3LKI.cjs.map → chunk-3VJPMRNT.cjs.map} +1 -1
  3. package/dist/{chunk-EKYE2VJU.js → chunk-45Z6B6CO.js} +4 -4
  4. package/dist/{chunk-HWJUWOXK.cjs → chunk-4YVUL4T7.cjs} +12 -12
  5. package/dist/{chunk-HWJUWOXK.cjs.map → chunk-4YVUL4T7.cjs.map} +1 -1
  6. package/dist/{chunk-AODSKL5I.cjs → chunk-5U72NXGG.cjs} +9 -9
  7. package/dist/{chunk-AODSKL5I.cjs.map → chunk-5U72NXGG.cjs.map} +1 -1
  8. package/dist/{chunk-VSPNWVIE.cjs → chunk-BEPZ5YAN.cjs} +59 -59
  9. package/dist/{chunk-VSPNWVIE.cjs.map → chunk-BEPZ5YAN.cjs.map} +1 -1
  10. package/dist/{chunk-HNXZFKDQ.cjs → chunk-J2UDV3FH.cjs} +62 -62
  11. package/dist/{chunk-HNXZFKDQ.cjs.map → chunk-J2UDV3FH.cjs.map} +1 -1
  12. package/dist/{chunk-RUYZ5QMK.cjs → chunk-M7WTWBCY.cjs} +37 -37
  13. package/dist/{chunk-RUYZ5QMK.cjs.map → chunk-M7WTWBCY.cjs.map} +1 -1
  14. package/dist/{chunk-NFRHBR7W.js → chunk-MPN3MV5H.js} +4 -4
  15. package/dist/{chunk-GA3R77TB.js → chunk-NJPMHDFG.js} +2 -2
  16. package/dist/{chunk-2PTEK3D6.js → chunk-NN73KMIK.js} +2 -2
  17. package/dist/{chunk-KRMGVMIO.cjs → chunk-OSOKWP5R.cjs} +31 -31
  18. package/dist/{chunk-KRMGVMIO.cjs.map → chunk-OSOKWP5R.cjs.map} +1 -1
  19. package/dist/{chunk-H4WIS6RJ.js → chunk-PFF6Q6N5.js} +2 -2
  20. package/dist/{chunk-OP3H7VB2.js → chunk-PJ2YFSMY.js} +2 -2
  21. package/dist/{chunk-Y36KVLBX.cjs → chunk-PNMX75W4.cjs} +4 -4
  22. package/dist/{chunk-Y36KVLBX.cjs.map → chunk-PNMX75W4.cjs.map} +1 -1
  23. package/dist/{chunk-CCV6Z3CL.cjs → chunk-RNWLVI3V.cjs} +26 -26
  24. package/dist/{chunk-CCV6Z3CL.cjs.map → chunk-RNWLVI3V.cjs.map} +1 -1
  25. package/dist/{chunk-SV7IJPIH.js → chunk-RWBTSF2E.js} +4 -4
  26. package/dist/{chunk-SV7IJPIH.js.map → chunk-RWBTSF2E.js.map} +1 -1
  27. package/dist/{chunk-XQILJ7FF.cjs → chunk-T6FEE3R2.cjs} +5 -5
  28. package/dist/{chunk-XQILJ7FF.cjs.map → chunk-T6FEE3R2.cjs.map} +1 -1
  29. package/dist/{chunk-TIC3UE6L.js → chunk-TTEAYVLT.js} +2 -2
  30. package/dist/{chunk-J2UHW4UM.js → chunk-TWLPG5IQ.js} +2 -2
  31. package/dist/{chunk-FAUC7EA3.js → chunk-WHJEU7V7.js} +4 -4
  32. package/dist/{chunk-HEH47UTC.cjs → chunk-Y4I4462K.cjs} +15 -15
  33. package/dist/{chunk-HEH47UTC.cjs.map → chunk-Y4I4462K.cjs.map} +1 -1
  34. package/dist/{chunk-STEM5CPV.js → chunk-YJE3HL6Q.js} +4 -4
  35. package/dist/{chunk-PQXUY6SB.js → chunk-ZB5HSWX4.js} +2 -2
  36. package/dist/{chunk-6DGQPKVA.cjs → chunk-ZCKVP4SU.cjs} +26 -26
  37. package/dist/{chunk-6DGQPKVA.cjs.map → chunk-ZCKVP4SU.cjs.map} +1 -1
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/index.cjs +2 -2
  41. package/dist/components/chat/index.js +1 -1
  42. package/dist/components/contact/index.cjs +3 -3
  43. package/dist/components/contact/index.js +2 -2
  44. package/dist/components/docs/index.cjs +5 -5
  45. package/dist/components/docs/index.js +4 -4
  46. package/dist/components/embeds/index.cjs +3 -3
  47. package/dist/components/embeds/index.js +2 -2
  48. package/dist/components/faq/index.cjs +3 -3
  49. package/dist/components/faq/index.js +2 -2
  50. package/dist/components/features/auth/create-organization-form.d.ts +1 -1
  51. package/dist/components/features/auth/create-organization-form.d.ts.map +1 -1
  52. package/dist/components/features/auth/login-form.d.ts +1 -1
  53. package/dist/components/features/auth/login-form.d.ts.map +1 -1
  54. package/dist/components/features/auth/sso-providers.d.ts +1 -1
  55. package/dist/components/features/auth/sso-providers.d.ts.map +1 -1
  56. package/dist/components/features/index.cjs +2 -2
  57. package/dist/components/features/index.js +1 -1
  58. package/dist/components/help-center-pages/index.cjs +20 -20
  59. package/dist/components/help-center-pages/index.js +11 -11
  60. package/dist/components/index.cjs +120 -120
  61. package/dist/components/index.js +9 -9
  62. package/dist/components/navigation/index.cjs +2 -2
  63. package/dist/components/navigation/index.js +1 -1
  64. package/dist/components/onboarding-guides/index.cjs +5 -5
  65. package/dist/components/onboarding-guides/index.js +4 -4
  66. package/dist/components/related-content/index.cjs +3 -3
  67. package/dist/components/related-content/index.js +2 -2
  68. package/dist/components/tickets/index.cjs +5 -5
  69. package/dist/components/tickets/index.js +4 -4
  70. package/dist/components/ui/index.cjs +2 -2
  71. package/dist/components/ui/index.js +1 -1
  72. package/dist/index.cjs +2 -2
  73. package/dist/index.js +1 -1
  74. package/package.json +1 -1
  75. package/src/components/features/auth/create-organization-form.tsx +2 -2
  76. package/src/components/features/auth/login-form.tsx +2 -2
  77. package/src/components/features/auth/sso-providers.tsx +2 -2
  78. package/src/stories/auth/CreateOrganization.stories.tsx +1 -0
  79. package/src/stories/auth/Login.stories.tsx +1 -1
  80. /package/dist/{chunk-EKYE2VJU.js.map → chunk-45Z6B6CO.js.map} +0 -0
  81. /package/dist/{chunk-NFRHBR7W.js.map → chunk-MPN3MV5H.js.map} +0 -0
  82. /package/dist/{chunk-GA3R77TB.js.map → chunk-NJPMHDFG.js.map} +0 -0
  83. /package/dist/{chunk-2PTEK3D6.js.map → chunk-NN73KMIK.js.map} +0 -0
  84. /package/dist/{chunk-H4WIS6RJ.js.map → chunk-PFF6Q6N5.js.map} +0 -0
  85. /package/dist/{chunk-OP3H7VB2.js.map → chunk-PJ2YFSMY.js.map} +0 -0
  86. /package/dist/{chunk-TIC3UE6L.js.map → chunk-TTEAYVLT.js.map} +0 -0
  87. /package/dist/{chunk-J2UHW4UM.js.map → chunk-TWLPG5IQ.js.map} +0 -0
  88. /package/dist/{chunk-FAUC7EA3.js.map → chunk-WHJEU7V7.js.map} +0 -0
  89. /package/dist/{chunk-STEM5CPV.js.map → chunk-YJE3HL6Q.js.map} +0 -0
  90. /package/dist/{chunk-PQXUY6SB.js.map → chunk-ZB5HSWX4.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-AODSKL5I.cjs","../src/components/shared/doc-search/format-relative-path.ts","../src/components/shared/doc-search/doc-search-result-row.tsx","../src/components/shared/doc-search/doc-search-bar.tsx","../src/components/shared/doc-search/map-doc-search-results.ts","../src/components/shared/doc-search/resolve-search-result-action.ts","../src/components/shared/doc-search/use-doc-search.ts"],"names":["jsx"],"mappings":"AAAA,6rBAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACZO,SAAS,kBAAA,CAAmB,QAAA,EAA0B;AAC3D,EAAA,GAAA,CAAI,CAAC,QAAA,EAAU,OAAO,EAAA;AACtB,EAAA,MAAM,SAAA,EAAW,QAAA,CAAS,OAAA,CAAQ,OAAA,EAAS,EAAE,CAAA,CAAE,KAAA,CAAM,GAAG,CAAA;AAExD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AAA;AACA,MAAA;AACgB,QAAA;AACK,UAAA;AACrB,QAAA;AACF,MAAA;AACF,IAAA;AAEa,IAAA;AAEA,IAAA;AACC,MAAA;AACd,IAAA;AAC8D,EAAA;AAKL,EAAA;AAGb,EAAA;AAEnB,EAAA;AAUpB,IAAA;AACY,MAAA;AACb,QAAA;AACA,QAAA;AACoB,wBAAA;AACtB,MAAA;AAYc,MAAA;AAEO,MAAA;AACO,QAAA;AAGkB,UAAA;AACxB,YAAA;AAEoD,YAAA;AAC1C,YAAA;AACX,cAAA;AACb,cAAA;AACA,cAAA;AACM,YAAA;AACR,YAAA;AACF,UAAA;AACiB,UAAA;AACC,YAAA;AACmC,YAAA;AACnD,YAAA;AACF,UAAA;AAOiB,UAAA;AAIX,UAAA;AAC4B,UAAA;AACY,UAAA;AAC9C,UAAA;AACF,QAAA;AACK,QAAA;AAIa,UAAA;AACmC,UAAA;AACnD,UAAA;AACG,QAAA;AAMc,UAAA;AACV,UAAA;AAC4D,YAAA;AACnE,UAAA;AACA,UAAA;AACG,QAAA;AAGc,UAAA;AACK,UAAA;AACtB,UAAA;AACG,QAAA;AACH,UAAA;AACJ,MAAA;AACF,IAAA;AAC6D,IAAA;AAC/D,EAAA;AAGgB,EAAA;AACG,IAAA;AACT,EAAA;AAEH,EAAA;AACL,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACkB,IAAA;AACpB,EAAA;AACF;ANyE2H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-AODSKL5I.cjs","sourcesContent":[null,"/**\n * Format a full document path as a breadcrumb trail.\n * Shows parent folders only (excludes the last segment / filename).\n *\n * @example\n * formatRelativePath('openframe-oss-tenant/architecture/api-controllers.md')\n * // → 'Openframe oss tenant / Architecture'\n */\nexport function formatRelativePath(fullPath: string): string {\n if (!fullPath) return ''\n const segments = fullPath.replace(/\\.md$/, '').split('/')\n // Show only parent path (exclude the filename itself since the title already shows it)\n const parentSegments = segments.length > 1 ? segments.slice(0, -1) : segments\n return parentSegments\n .map((seg) => seg.charAt(0).toUpperCase() + seg.slice(1).replace(/-/g, ' '))\n .join(' / ')\n}\n","'use client'\n\n/**\n * Single row in the `<SearchInput>` dropdown — the standard layout\n * used by every doc-search-backed surface (company-hub data-room\n * search bar, onboarding-guide catalog search, …). Single source of\n * truth for the row appearance so search dropdowns are visually\n * identical everywhere.\n *\n * Resolves the source icon via the same `resolveSourceIcon()`\n * registry the inline chat-card refs use, so a row pointing at e.g.\n * an onboarding-guide surfaces the SAME `<GraduationCap>` glyph the\n * chat card surfaces — no cross-surface drift.\n */\n\nimport { resolveSourceIcon } from '../../chat/utils/source-row-cta'\nimport { formatRelativePath } from './format-relative-path'\n\n/**\n * Minimal result shape this row renders. Compatible with any\n * doc-search hook whose result type exposes `{ title?, path?,\n * metadata? }`. The two hub consumers (onboarding-guide catalog,\n * data-room sidebar) both satisfy this shape via their\n * `useDocSearch` hook result.\n */\nexport interface DocSearchResultRowEntry {\n title?: string\n path?: string\n metadata?: Record<string, unknown>\n}\n\nexport interface DocSearchResultRowProps {\n result: DocSearchResultRowEntry\n isHighlighted: boolean\n}\n\nexport function DocSearchResultRow({\n result,\n isHighlighted,\n}: DocSearchResultRowProps) {\n const docType = (result.metadata?.documentType as string) || undefined\n const sourceRepo = (result.metadata?.sourceRepo as string) || undefined\n const { Icon: SourceIcon, label: iconLabel } = resolveSourceIcon({\n sourceRepo,\n documentType: docType,\n })\n const isGroup = result.metadata?.isGroup as boolean | undefined\n\n return (\n <div className=\"flex items-center gap-3 w-full min-w-0\">\n <span\n className=\"flex-shrink-0 text-ods-text-secondary\"\n title={iconLabel}\n >\n <SourceIcon className=\"size-4\" />\n </span>\n <div className=\"min-w-0 flex-1\">\n <div\n className={`text-sm font-medium leading-5 truncate ${\n isHighlighted ? 'text-ods-accent' : 'text-ods-text-primary'\n }`}\n >\n {result.title || result.path}\n </div>\n {!isGroup && result.path?.includes('/') && (\n <div className=\"text-xs leading-4 text-ods-text-secondary truncate mt-0.5\">\n {formatRelativePath(result.path)}\n </div>\n )}\n </div>\n </div>\n )\n}\n","'use client'\n\n/**\n * `<DocSearchBar>` — the canonical RAG-search dropdown surface.\n *\n * Mounted by every doc-search consumer (data-room sidebar, onboarding-\n * guide catalog, and any future surface that needs typeahead against\n * `/api/docs/search`). Wraps `<SearchInput>` with the lib's standard\n * `<DocSearchResultRow>` so the dropdown looks identical everywhere.\n *\n * ## Why a presentation component, not a \"search bar that owns its\n * own hook\"\n *\n * The data-fetching hook (`useDocSearch`) lives hub-side because it\n * depends on hub-only context (`useDocNavigation`, the rag-table-\n * config registry, the hub's `decideNewTab` helper). Moving the hook\n * would cascade ~5 more file migrations into the lib.\n *\n * Instead, the hook stays hub-side and callers pass its result into\n * this component as plain props. Both consumers shrink to ~5 lines.\n */\n\nimport type { ReactNode } from 'react'\nimport { SearchInput, type SearchResult } from '../../ui/search-input'\nimport { DocSearchResultRow } from './doc-search-result-row'\n\nexport interface DocSearchBarProps {\n placeholder: string\n query: string\n onQueryChange: (value: string) => void\n /** Hook-fetched results. Reuses the lib's `<SearchInput>` `SearchResult`\n * shape directly so callers don't translate. */\n results: SearchResult[]\n isLoading: boolean\n /** Result selection handler. Mirrors `<SearchInput>` — the second\n * `modifiers` argument is preserved so cmd-click / shift-click on\n * a result row still forces new-tab behavior. Hub `useDocSearch`\n * reads these to short-circuit to `window.open()`. */\n onResultSelect: (\n result: SearchResult,\n modifiers?: {\n metaKey?: boolean\n ctrlKey?: boolean\n shiftKey?: boolean\n altKey?: boolean\n button?: number\n },\n ) => void\n /** Lets the caller's hook force the dropdown open after a recent\n * internal action (e.g. result navigation). `undefined` falls back\n * to `<SearchInput>`'s built-in focus/hover heuristics. */\n showDropdown?: boolean\n /** Defaults to 2 — matches the existing data-room and onboarding-\n * guide consumers. Override only if a surface needs different\n * typeahead semantics. */\n minQueryLength?: number\n /** Defaults to 0 — both existing consumers debounce inside the\n * hook, not the input. */\n debounceMs?: number\n className?: string\n /** Optional row-renderer override. Defaults to the lib's standard\n * `<DocSearchResultRow>` (source icon + title + path breadcrumb).\n * Override only when a surface needs custom row chrome. */\n renderResult?: (result: SearchResult, isHighlighted: boolean) => ReactNode\n}\n\nexport function DocSearchBar({\n placeholder,\n query,\n onQueryChange,\n results,\n isLoading,\n onResultSelect,\n showDropdown,\n minQueryLength = 2,\n debounceMs = 0,\n className = 'w-full',\n renderResult,\n}: DocSearchBarProps) {\n return (\n <SearchInput\n placeholder={placeholder}\n value={query}\n onChange={onQueryChange}\n results={results}\n isLoading={isLoading}\n onResultSelect={onResultSelect}\n showDropdown={showDropdown || undefined}\n debounceMs={debounceMs}\n minQueryLength={minQueryLength}\n className={className}\n renderResult={\n renderResult ??\n ((result, isHighlighted) => (\n <DocSearchResultRow result={result} isHighlighted={isHighlighted} />\n ))\n }\n />\n )\n}\n","/**\n * Map RAG `/api/docs/search` wire results into the `<DocSearchBar>`\n * dropdown's row shape, collapsing entity-table rows into grouped\n * results so the dropdown lists ONE \"Cap Table (12 records)\" row\n * instead of 12 individual rows.\n *\n * Pure transform — no telemetry, no navigation, no React deps. Lifted\n * from the hub's `hooks/use-docs.ts:mapDocSearchResults` (the hub's\n * `traceCompose` call was hub-only telemetry and is intentionally\n * dropped — callers that want logging can wrap this helper).\n */\n\nimport type { SearchResult } from '../../ui/search-input'\nimport type { DocSearchResult } from './types'\n\n/** Source repos that should be collapsed into grouped results in the search bar.\n * Only financial tables (all rows link to the same admin page).\n * Content tables (blog, webinar, podcast, etc.) stay individual since each has a unique URL. */\nconst SEARCH_GROUP_REPOS = new Set([\n 'financial-cap-table',\n 'financial-kpis',\n 'financial-pnl',\n 'financial-balance-sheet',\n 'financial-cash-flow',\n])\n\nconst ENTITY_LABELS: Record<string, string> = {\n 'financial-cap-table': 'Cap Table',\n 'financial-kpis': 'Financial KPIs',\n 'financial-pnl': 'Profit & Loss',\n 'financial-balance-sheet': 'Balance Sheets',\n 'financial-cash-flow': 'Cash Flow',\n 'blog-posts': 'Blog Posts',\n 'product-releases': 'Product Releases',\n 'case-studies': 'Case Studies',\n webinars: 'Webinars',\n events: 'Events',\n podcasts: 'Podcasts',\n}\n\nexport function mapDocSearchResults(docs: DocSearchResult[]): SearchResult[] {\n const entityGroups = new Map<string, DocSearchResult[]>()\n // Track insertion order — groups appear where the FIRST row of that\n // repo appeared in the response.\n const order: Array<\n { type: 'entity'; repo: string } | { type: 'doc'; doc: DocSearchResult }\n > = []\n const seenRepos = new Set<string>()\n\n for (const doc of docs) {\n if (doc.sourceRepo && SEARCH_GROUP_REPOS.has(doc.sourceRepo)) {\n const group = entityGroups.get(doc.sourceRepo) || []\n group.push(doc)\n entityGroups.set(doc.sourceRepo, group)\n if (!seenRepos.has(doc.sourceRepo)) {\n seenRepos.add(doc.sourceRepo)\n order.push({ type: 'entity', repo: doc.sourceRepo })\n }\n } else {\n order.push({ type: 'doc', doc })\n }\n }\n\n const results: SearchResult[] = []\n for (const entry of order) {\n if (entry.type === 'entity') {\n const rows = entityGroups.get(entry.repo)!\n const label = ENTITY_LABELS[entry.repo] || entry.repo\n results.push({\n id: `group-${entry.repo}`,\n title: `${label} (${rows.length} ${rows.length === 1 ? 'record' : 'records'})`,\n path: rows[0].path,\n type: 'file',\n metadata: {\n documentType: rows[0].documentType,\n externalUrl: rows[0].externalUrl,\n sourceRepo: entry.repo,\n id: rows[0].entityId,\n isGroup: true,\n items: rows.map((r) => ({\n name: r.name,\n externalUrl: r.externalUrl,\n id: r.entityId,\n sourceRepo: r.sourceRepo,\n documentType: r.documentType,\n })),\n },\n })\n } else {\n const doc = entry.doc\n const isNonMarkdown = doc.documentType && doc.documentType !== 'markdown'\n results.push({\n id: doc.path,\n title: doc.name,\n description: isNonMarkdown ? doc.name : doc.snippet,\n path: doc.path,\n type: doc.type,\n metadata: {\n matchType: doc.matchType,\n ...(doc.documentType ? { documentType: doc.documentType } : {}),\n ...(doc.externalUrl ? { externalUrl: doc.externalUrl } : {}),\n ...(doc.targetPlatform != null\n ? { targetPlatform: doc.targetPlatform }\n : {}),\n ...(doc.sourceRepo ? { sourceRepo: doc.sourceRepo } : {}),\n ...(doc.entityId ? { id: doc.entityId } : {}),\n },\n })\n }\n }\n\n return results\n}\n","/**\n * Resolve what should happen when the user picks a search result.\n * Returns one of five typed actions so the caller is a single switch.\n *\n * Resolution order:\n * 1. `externalUrl` present → use `decideNewTab` to choose same-tab vs\n * new-tab against the row's `targetPlatform`.\n * 2. Row has `id` + `sourceRepo` + `documentType` → synth an Ask-AI\n * action (entity drill-in via primary key, no URL).\n * 3. Row has only `path` → legacy navigation fallback.\n * 4. Nothing actionable → noop.\n *\n * Lifted from the hub's `hooks/use-docs.ts:resolveSearchResultAction`.\n * Pure — no React, no telemetry.\n */\n\nimport type { SearchResult } from '../../ui/search-input'\nimport type { ChatRef } from '../../chat/chat-ref.types'\nimport { decideNewTab } from '../../chat/utils/decide-new-tab'\n\nexport type SearchResultAction =\n | { kind: 'navigate-same-tab'; href: string }\n | { kind: 'navigate-new-tab'; href: string }\n | { kind: 'ask-ai'; detail: { source: string; ref: ChatRef } }\n | { kind: 'route'; path: string }\n | { kind: 'noop' }\n\nexport function resolveSearchResultAction(\n result: SearchResult,\n source: string,\n runtimeMode?: 'host' | 'embed',\n): SearchResultAction {\n const meta = result.metadata ?? {}\n const externalUrl = meta.externalUrl as string | undefined\n if (externalUrl) {\n // Same pure helper `useNavLink` and `useUnifiedNav` call — single\n // decision rule across cards, chips, and autocomplete rows. Thread\n // the caller's `source` as `currentSource` so the platform-vs-\n // platform comparison matches the hub's pre-migration behavior.\n const targetPlatform = meta.targetPlatform as string | null | undefined\n const isNewTab = decideNewTab({\n href: externalUrl,\n targetPlatform,\n surface: 'useUnifiedNav',\n runtimeMode,\n currentSource: source,\n })\n return isNewTab\n ? { kind: 'navigate-new-tab', href: externalUrl }\n : { kind: 'navigate-same-tab', href: externalUrl }\n }\n const rowId = meta.id as string | undefined\n const sourceRepo = meta.sourceRepo as string | undefined\n const documentType = meta.documentType as string | undefined\n if (rowId && sourceRepo && documentType) {\n return {\n kind: 'ask-ai',\n detail: {\n source,\n ref: { type: documentType, id: rowId, title: result.title, url: null },\n },\n }\n }\n if (result.path) {\n return { kind: 'route', path: result.path }\n }\n return { kind: 'noop' }\n}\n","'use client'\n\n/**\n * `useDocSearch` — debounced RAG-search hook against `/api/docs/search`.\n *\n * Pure fetch + navigation glue. Embedders can mount this directly\n * (any host with a reverse-proxy that exposes `/api/docs/search` will\n * work). Hub callers wire it into the lib `<DocSearchBar>` for the\n * canonical typeahead dropdown.\n *\n * ## What moved from hub to lib\n *\n * Lifted from `multi-platform-hub/hooks/use-docs.ts:useDocSearch`. Two\n * hub-only concerns are now optional injection points instead of\n * direct imports:\n *\n * - `useDocNavigation()` (hub's in-page doc-tree swap) → optional\n * `onInPageSwap?: (path: string) => boolean` config callback. When\n * present and returns true, the hook treats a same-origin result\n * click as \"handled in-page\"; when absent or returns false, the\n * hook falls back to `onNavigate(path)` (`router.push` on hub,\n * `window.location.assign` on bare embedders).\n * - `traceCompose` (hub-only telemetry) → dropped. The lib has no\n * equivalent runtime-context yet; bring it back when there is one.\n *\n * Everything else (debounce, `useChatRuntime` for embed-mode short-\n * circuit, embed-shim router, the action-resolver + result-mapper) is\n * now lib-resident.\n */\n\nimport { useState, useEffect, useCallback } from 'react'\nimport { useRouter } from '../../../embed-shims'\nimport { useDebounce } from '../../../hooks/ui/use-debounce'\nimport { useChatRuntime } from '../../../contexts/chat-runtime-context'\nimport { contentFetch } from '../../../utils/embed-content-fetch'\nimport type { SearchResult } from '../../ui/search-input'\nimport {\n resolveExternalNavigation,\n stripSameOriginToPath,\n NEW_TAB_FEATURES,\n} from '../../chat/utils/chat-nav-resolution'\nimport type { DocSearchResult } from './types'\nimport { mapDocSearchResults } from './map-doc-search-results'\nimport { resolveSearchResultAction } from './resolve-search-result-action'\n\nexport interface UseDocSearchConfig {\n /** Discriminator passed to `/api/docs/search?source=` (e.g.\n * `'openframe'`). Embedders set it to whatever discriminator their\n * reverse-proxy expects. */\n source: string\n /** Base route prefix this search lives under (e.g. `'/onboarding-guides'`).\n * When a result's href starts with `${baseRoute}/`, the hook\n * attempts the optional in-page swap path before falling through\n * to a full nav. */\n baseRoute: string\n /** Imperative navigation fallback. Called when no override\n * (in-page swap, new-tab) applies. Hub callers pass\n * `(path) => router.push(path)`; embedders pass an equivalent. */\n onNavigate: (path: string) => void\n /** Optional `RagTableConfig.id` list to narrow the search to specific\n * tables (e.g. `['onboarding-guides']`). Forwarded to\n * `/api/docs/search?tableIds=…` which intersects with the source's\n * standing set. */\n tableIds?: string[]\n /** Optional in-page swap callback. When the result's href is under\n * `baseRoute` AND this callback returns true, the hook treats the\n * click as handled in-page (no router push). Hub's\n * `<DocumentationSection>` wires this to\n * `useDocNavigation().navigate(path)`. */\n onInPageSwap?: (path: string) => boolean\n /** Optional endpoint override. Defaults to `'/api/docs/search'`\n * (the hub's reverse-proxy route). Embedders with a different\n * path can override. */\n searchEndpoint?: string\n}\n\nexport function useDocSearch(config: UseDocSearchConfig) {\n const {\n source,\n baseRoute,\n onNavigate,\n tableIds,\n onInPageSwap,\n searchEndpoint,\n } = config\n const tableIdsKey = tableIds && tableIds.length > 0 ? tableIds.join(',') : ''\n\n const router = useRouter()\n // Optional chat-runtime read — when present and mode='embed' the\n // search-result row click short-circuits to a new-tab open against\n // the absolutized URL. Null/host preserves today's behavior.\n // Also used as the proxy-prefix fallback for `searchEndpoint`, matching\n // how tickets resolves `findTicketUrl`.\n const runtime = useChatRuntime()\n const resolvedSearchEndpoint =\n searchEndpoint ?? runtime?.endpoints.docsSearchUrl ?? '/api/docs/search'\n\n const [query, setQuery] = useState('')\n const [results, setResults] = useState<SearchResult[]>([])\n const [isFetching, setIsFetching] = useState(false)\n const debouncedQuery = useDebounce(query, 300)\n\n useEffect(() => {\n if (!debouncedQuery || debouncedQuery.trim().length < 2) {\n setResults([])\n setIsFetching(false)\n return\n }\n\n let cancelled = false\n\n async function fetchResults() {\n setIsFetching(true)\n try {\n const params = new URLSearchParams({\n q: debouncedQuery,\n source,\n limit: '10',\n })\n if (tableIdsKey) params.set('tableIds', tableIdsKey)\n\n const response = await contentFetch(`${resolvedSearchEndpoint}?${params.toString()}`)\n if (!response.ok) {\n throw new Error(`Search request failed: ${response.status}`)\n }\n\n const json = await response.json()\n\n if (!cancelled && json.success && Array.isArray(json.data)) {\n const mapped = mapDocSearchResults(json.data as DocSearchResult[])\n setResults(mapped)\n }\n } catch (error) {\n console.error('Doc search error:', error)\n if (!cancelled) {\n setResults([])\n }\n } finally {\n if (!cancelled) {\n setIsFetching(false)\n }\n }\n }\n\n fetchResults()\n\n return () => {\n cancelled = true\n }\n }, [debouncedQuery, source, tableIdsKey, resolvedSearchEndpoint])\n\n // Derived loading state — single source of truth for \"should the\n // dropdown show 'Loading...' instead of 'No results found'\":\n const isLoading =\n query.trim().length >= 2 && (query !== debouncedQuery || isFetching)\n\n // Track whether dropdown should stay open (external link opened in new tab).\n const [keepOpen, setKeepOpen] = useState(false)\n\n const handleResultSelect = useCallback(\n (\n result: SearchResult,\n modifiers?: {\n metaKey?: boolean\n ctrlKey?: boolean\n shiftKey?: boolean\n altKey?: boolean\n button?: number\n },\n ) => {\n const action = resolveSearchResultAction(\n result,\n source,\n runtime?.navigation.mode,\n )\n // Modifier / non-primary mouse click → force new tab regardless of\n // same-tab/new-tab decision. The dropdown row is a `<div>`, not an\n // `<a target=\"_blank\">`, so the browser doesn't background-tab\n // natively on cmd-click. Honor it explicitly here for parity with\n // the anchor-based surfaces (cards, chips, related-content). Plain\n // Enter from the keyboard passes `modifiers === undefined`.\n const wantsNewTab =\n modifiers &&\n (modifiers.metaKey ||\n modifiers.ctrlKey ||\n modifiers.shiftKey ||\n modifiers.altKey ||\n (typeof modifiers.button === 'number' && modifiers.button !== 0))\n switch (action.kind) {\n case 'navigate-same-tab': {\n // Embed-mode short-circuit — autocomplete row clicked while\n // the chat panel is hosted inside an embedding app.\n if (runtime?.navigation.mode === 'embed') {\n setKeepOpen(true)\n const targetPlatform =\n (result.metadata?.targetPlatform as string | null | undefined) ?? null\n resolveExternalNavigation({\n href: action.href,\n targetPlatform,\n runtime,\n }).open()\n return\n }\n if (wantsNewTab) {\n setKeepOpen(true)\n window.open(action.href, '_blank', NEW_TAB_FEATURES)\n return\n }\n // Same-origin click:\n // 1. If the href is under the current doc-tree's baseRoute AND\n // an `onInPageSwap` callback is wired AND returns true →\n // consider in-page swap handled.\n // 2. Otherwise → embed-shim `router.push()` (soft RSC nav on\n // Next.js hosts, window.location.assign on bare hosts).\n setKeepOpen(false)\n const path =\n baseRoute && action.href.startsWith(`${baseRoute}/`)\n ? action.href.slice(baseRoute.length + 1)\n : null\n if (path && onInPageSwap?.(path)) return\n router.push(stripSameOriginToPath(action.href))\n return\n }\n case 'navigate-new-tab':\n // Cross-origin (e.g. clicking a flamingo.run release from\n // product-hub) — open in a new tab. Keep dropdown open so the\n // user can pick another result without re-searching.\n setKeepOpen(true)\n window.open(action.href, '_blank', NEW_TAB_FEATURES)\n return\n case 'ask-ai':\n // Row is searchable-but-not-openable (cap_table positions,\n // financial-kpi snapshots, anything backed by\n // `resolveUrl: () => null`). Dispatch a CustomEvent that\n // GlobalAskAI listens for — opens chat + drills via\n // `entityIdFilter` (primary-key only, same as inline-card Ask).\n setKeepOpen(false)\n window.dispatchEvent(\n new CustomEvent('ask-ai:open-with-ref', { detail: action.detail }),\n )\n return\n case 'route':\n // Final fallback: legacy navigation by path. Hits when a row\n // has neither URL nor pk metadata — a mapper/API regression.\n setKeepOpen(false)\n onNavigate(action.path)\n return\n case 'noop':\n return\n }\n },\n [onNavigate, source, baseRoute, router, onInPageSwap, runtime],\n )\n\n // Reset keepOpen when query changes.\n useEffect(() => {\n setKeepOpen(false)\n }, [query])\n\n return {\n query,\n setQuery,\n results,\n isLoading,\n handleResultSelect,\n keepDropdownOpen: keepOpen,\n }\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-5U72NXGG.cjs","../src/components/shared/doc-search/format-relative-path.ts","../src/components/shared/doc-search/doc-search-result-row.tsx","../src/components/shared/doc-search/doc-search-bar.tsx","../src/components/shared/doc-search/map-doc-search-results.ts","../src/components/shared/doc-search/resolve-search-result-action.ts","../src/components/shared/doc-search/use-doc-search.ts"],"names":["jsx"],"mappings":"AAAA,6rBAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACZO,SAAS,kBAAA,CAAmB,QAAA,EAA0B;AAC3D,EAAA,GAAA,CAAI,CAAC,QAAA,EAAU,OAAO,EAAA;AACtB,EAAA,MAAM,SAAA,EAAW,QAAA,CAAS,OAAA,CAAQ,OAAA,EAAS,EAAE,CAAA,CAAE,KAAA,CAAM,GAAG,CAAA;AAExD,EAAA,MAAM,eAAA,EAAiB,QAAA,CAAS,OAAA,EAAS,EAAA,EAAI,QAAA,CAAS,KAAA,CAAM,CAAA,EAAG,CAAA,CAAE,EAAA,EAAI,QAAA;AACrE,EAAA,OAAO,cAAA,CACJ,GAAA,CAAI,CAAC,GAAA,EAAA,GAAQ,GAAA,CAAI,MAAA,CAAO,CAAC,CAAA,CAAE,WAAA,CAAY,EAAA,EAAI,GAAA,CAAI,KAAA,CAAM,CAAC,CAAA,CAAE,OAAA,CAAQ,IAAA,EAAM,GAAG,CAAC,CAAA,CAC1E,IAAA,CAAK,KAAK,CAAA;AACf;ADWA;AACA;AE0BQ,+CAAA;AAlBD,SAAS,kBAAA,CAAmB;AAAA,EACjC,MAAA;AAAA,EACA;AACF,CAAA,EAA4B;AAC1B,EAAA,MAAM,QAAA,kBAAW,MAAA,mBAAO,QAAA,6BAAU,eAAA,GAA2B,KAAA,CAAA;AAC7D,EAAA,MAAM,WAAA,kBAAc,M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AAC4D,YAAA;AACnE,UAAA;AACA,UAAA;AACG,QAAA;AAGc,UAAA;AACK,UAAA;AACtB,UAAA;AACG,QAAA;AACH,UAAA;AACJ,MAAA;AACF,IAAA;AAC6D,IAAA;AAC/D,EAAA;AAGgB,EAAA;AACG,IAAA;AACT,EAAA;AAEH,EAAA;AACL,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACkB,IAAA;AACpB,EAAA;AACF;ANyE2H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-5U72NXGG.cjs","sourcesContent":[null,"/**\n * Format a full document path as a breadcrumb trail.\n * Shows parent folders only (excludes the last segment / filename).\n *\n * @example\n * formatRelativePath('openframe-oss-tenant/architecture/api-controllers.md')\n * // → 'Openframe oss tenant / Architecture'\n */\nexport function formatRelativePath(fullPath: string): string {\n if (!fullPath) return ''\n const segments = fullPath.replace(/\\.md$/, '').split('/')\n // Show only parent path (exclude the filename itself since the title already shows it)\n const parentSegments = segments.length > 1 ? segments.slice(0, -1) : segments\n return parentSegments\n .map((seg) => seg.charAt(0).toUpperCase() + seg.slice(1).replace(/-/g, ' '))\n .join(' / ')\n}\n","'use client'\n\n/**\n * Single row in the `<SearchInput>` dropdown — the standard layout\n * used by every doc-search-backed surface (company-hub data-room\n * search bar, onboarding-guide catalog search, …). Single source of\n * truth for the row appearance so search dropdowns are visually\n * identical everywhere.\n *\n * Resolves the source icon via the same `resolveSourceIcon()`\n * registry the inline chat-card refs use, so a row pointing at e.g.\n * an onboarding-guide surfaces the SAME `<GraduationCap>` glyph the\n * chat card surfaces — no cross-surface drift.\n */\n\nimport { resolveSourceIcon } from '../../chat/utils/source-row-cta'\nimport { formatRelativePath } from './format-relative-path'\n\n/**\n * Minimal result shape this row renders. Compatible with any\n * doc-search hook whose result type exposes `{ title?, path?,\n * metadata? }`. The two hub consumers (onboarding-guide catalog,\n * data-room sidebar) both satisfy this shape via their\n * `useDocSearch` hook result.\n */\nexport interface DocSearchResultRowEntry {\n title?: string\n path?: string\n metadata?: Record<string, unknown>\n}\n\nexport interface DocSearchResultRowProps {\n result: DocSearchResultRowEntry\n isHighlighted: boolean\n}\n\nexport function DocSearchResultRow({\n result,\n isHighlighted,\n}: DocSearchResultRowProps) {\n const docType = (result.metadata?.documentType as string) || undefined\n const sourceRepo = (result.metadata?.sourceRepo as string) || undefined\n const { Icon: SourceIcon, label: iconLabel } = resolveSourceIcon({\n sourceRepo,\n documentType: docType,\n })\n const isGroup = result.metadata?.isGroup as boolean | undefined\n\n return (\n <div className=\"flex items-center gap-3 w-full min-w-0\">\n <span\n className=\"flex-shrink-0 text-ods-text-secondary\"\n title={iconLabel}\n >\n <SourceIcon className=\"size-4\" />\n </span>\n <div className=\"min-w-0 flex-1\">\n <div\n className={`text-sm font-medium leading-5 truncate ${\n isHighlighted ? 'text-ods-accent' : 'text-ods-text-primary'\n }`}\n >\n {result.title || result.path}\n </div>\n {!isGroup && result.path?.includes('/') && (\n <div className=\"text-xs leading-4 text-ods-text-secondary truncate mt-0.5\">\n {formatRelativePath(result.path)}\n </div>\n )}\n </div>\n </div>\n )\n}\n","'use client'\n\n/**\n * `<DocSearchBar>` — the canonical RAG-search dropdown surface.\n *\n * Mounted by every doc-search consumer (data-room sidebar, onboarding-\n * guide catalog, and any future surface that needs typeahead against\n * `/api/docs/search`). Wraps `<SearchInput>` with the lib's standard\n * `<DocSearchResultRow>` so the dropdown looks identical everywhere.\n *\n * ## Why a presentation component, not a \"search bar that owns its\n * own hook\"\n *\n * The data-fetching hook (`useDocSearch`) lives hub-side because it\n * depends on hub-only context (`useDocNavigation`, the rag-table-\n * config registry, the hub's `decideNewTab` helper). Moving the hook\n * would cascade ~5 more file migrations into the lib.\n *\n * Instead, the hook stays hub-side and callers pass its result into\n * this component as plain props. Both consumers shrink to ~5 lines.\n */\n\nimport type { ReactNode } from 'react'\nimport { SearchInput, type SearchResult } from '../../ui/search-input'\nimport { DocSearchResultRow } from './doc-search-result-row'\n\nexport interface DocSearchBarProps {\n placeholder: string\n query: string\n onQueryChange: (value: string) => void\n /** Hook-fetched results. Reuses the lib's `<SearchInput>` `SearchResult`\n * shape directly so callers don't translate. */\n results: SearchResult[]\n isLoading: boolean\n /** Result selection handler. Mirrors `<SearchInput>` — the second\n * `modifiers` argument is preserved so cmd-click / shift-click on\n * a result row still forces new-tab behavior. Hub `useDocSearch`\n * reads these to short-circuit to `window.open()`. */\n onResultSelect: (\n result: SearchResult,\n modifiers?: {\n metaKey?: boolean\n ctrlKey?: boolean\n shiftKey?: boolean\n altKey?: boolean\n button?: number\n },\n ) => void\n /** Lets the caller's hook force the dropdown open after a recent\n * internal action (e.g. result navigation). `undefined` falls back\n * to `<SearchInput>`'s built-in focus/hover heuristics. */\n showDropdown?: boolean\n /** Defaults to 2 — matches the existing data-room and onboarding-\n * guide consumers. Override only if a surface needs different\n * typeahead semantics. */\n minQueryLength?: number\n /** Defaults to 0 — both existing consumers debounce inside the\n * hook, not the input. */\n debounceMs?: number\n className?: string\n /** Optional row-renderer override. Defaults to the lib's standard\n * `<DocSearchResultRow>` (source icon + title + path breadcrumb).\n * Override only when a surface needs custom row chrome. */\n renderResult?: (result: SearchResult, isHighlighted: boolean) => ReactNode\n}\n\nexport function DocSearchBar({\n placeholder,\n query,\n onQueryChange,\n results,\n isLoading,\n onResultSelect,\n showDropdown,\n minQueryLength = 2,\n debounceMs = 0,\n className = 'w-full',\n renderResult,\n}: DocSearchBarProps) {\n return (\n <SearchInput\n placeholder={placeholder}\n value={query}\n onChange={onQueryChange}\n results={results}\n isLoading={isLoading}\n onResultSelect={onResultSelect}\n showDropdown={showDropdown || undefined}\n debounceMs={debounceMs}\n minQueryLength={minQueryLength}\n className={className}\n renderResult={\n renderResult ??\n ((result, isHighlighted) => (\n <DocSearchResultRow result={result} isHighlighted={isHighlighted} />\n ))\n }\n />\n )\n}\n","/**\n * Map RAG `/api/docs/search` wire results into the `<DocSearchBar>`\n * dropdown's row shape, collapsing entity-table rows into grouped\n * results so the dropdown lists ONE \"Cap Table (12 records)\" row\n * instead of 12 individual rows.\n *\n * Pure transform — no telemetry, no navigation, no React deps. Lifted\n * from the hub's `hooks/use-docs.ts:mapDocSearchResults` (the hub's\n * `traceCompose` call was hub-only telemetry and is intentionally\n * dropped — callers that want logging can wrap this helper).\n */\n\nimport type { SearchResult } from '../../ui/search-input'\nimport type { DocSearchResult } from './types'\n\n/** Source repos that should be collapsed into grouped results in the search bar.\n * Only financial tables (all rows link to the same admin page).\n * Content tables (blog, webinar, podcast, etc.) stay individual since each has a unique URL. */\nconst SEARCH_GROUP_REPOS = new Set([\n 'financial-cap-table',\n 'financial-kpis',\n 'financial-pnl',\n 'financial-balance-sheet',\n 'financial-cash-flow',\n])\n\nconst ENTITY_LABELS: Record<string, string> = {\n 'financial-cap-table': 'Cap Table',\n 'financial-kpis': 'Financial KPIs',\n 'financial-pnl': 'Profit & Loss',\n 'financial-balance-sheet': 'Balance Sheets',\n 'financial-cash-flow': 'Cash Flow',\n 'blog-posts': 'Blog Posts',\n 'product-releases': 'Product Releases',\n 'case-studies': 'Case Studies',\n webinars: 'Webinars',\n events: 'Events',\n podcasts: 'Podcasts',\n}\n\nexport function mapDocSearchResults(docs: DocSearchResult[]): SearchResult[] {\n const entityGroups = new Map<string, DocSearchResult[]>()\n // Track insertion order — groups appear where the FIRST row of that\n // repo appeared in the response.\n const order: Array<\n { type: 'entity'; repo: string } | { type: 'doc'; doc: DocSearchResult }\n > = []\n const seenRepos = new Set<string>()\n\n for (const doc of docs) {\n if (doc.sourceRepo && SEARCH_GROUP_REPOS.has(doc.sourceRepo)) {\n const group = entityGroups.get(doc.sourceRepo) || []\n group.push(doc)\n entityGroups.set(doc.sourceRepo, group)\n if (!seenRepos.has(doc.sourceRepo)) {\n seenRepos.add(doc.sourceRepo)\n order.push({ type: 'entity', repo: doc.sourceRepo })\n }\n } else {\n order.push({ type: 'doc', doc })\n }\n }\n\n const results: SearchResult[] = []\n for (const entry of order) {\n if (entry.type === 'entity') {\n const rows = entityGroups.get(entry.repo)!\n const label = ENTITY_LABELS[entry.repo] || entry.repo\n results.push({\n id: `group-${entry.repo}`,\n title: `${label} (${rows.length} ${rows.length === 1 ? 'record' : 'records'})`,\n path: rows[0].path,\n type: 'file',\n metadata: {\n documentType: rows[0].documentType,\n externalUrl: rows[0].externalUrl,\n sourceRepo: entry.repo,\n id: rows[0].entityId,\n isGroup: true,\n items: rows.map((r) => ({\n name: r.name,\n externalUrl: r.externalUrl,\n id: r.entityId,\n sourceRepo: r.sourceRepo,\n documentType: r.documentType,\n })),\n },\n })\n } else {\n const doc = entry.doc\n const isNonMarkdown = doc.documentType && doc.documentType !== 'markdown'\n results.push({\n id: doc.path,\n title: doc.name,\n description: isNonMarkdown ? doc.name : doc.snippet,\n path: doc.path,\n type: doc.type,\n metadata: {\n matchType: doc.matchType,\n ...(doc.documentType ? { documentType: doc.documentType } : {}),\n ...(doc.externalUrl ? { externalUrl: doc.externalUrl } : {}),\n ...(doc.targetPlatform != null\n ? { targetPlatform: doc.targetPlatform }\n : {}),\n ...(doc.sourceRepo ? { sourceRepo: doc.sourceRepo } : {}),\n ...(doc.entityId ? { id: doc.entityId } : {}),\n },\n })\n }\n }\n\n return results\n}\n","/**\n * Resolve what should happen when the user picks a search result.\n * Returns one of five typed actions so the caller is a single switch.\n *\n * Resolution order:\n * 1. `externalUrl` present → use `decideNewTab` to choose same-tab vs\n * new-tab against the row's `targetPlatform`.\n * 2. Row has `id` + `sourceRepo` + `documentType` → synth an Ask-AI\n * action (entity drill-in via primary key, no URL).\n * 3. Row has only `path` → legacy navigation fallback.\n * 4. Nothing actionable → noop.\n *\n * Lifted from the hub's `hooks/use-docs.ts:resolveSearchResultAction`.\n * Pure — no React, no telemetry.\n */\n\nimport type { SearchResult } from '../../ui/search-input'\nimport type { ChatRef } from '../../chat/chat-ref.types'\nimport { decideNewTab } from '../../chat/utils/decide-new-tab'\n\nexport type SearchResultAction =\n | { kind: 'navigate-same-tab'; href: string }\n | { kind: 'navigate-new-tab'; href: string }\n | { kind: 'ask-ai'; detail: { source: string; ref: ChatRef } }\n | { kind: 'route'; path: string }\n | { kind: 'noop' }\n\nexport function resolveSearchResultAction(\n result: SearchResult,\n source: string,\n runtimeMode?: 'host' | 'embed',\n): SearchResultAction {\n const meta = result.metadata ?? {}\n const externalUrl = meta.externalUrl as string | undefined\n if (externalUrl) {\n // Same pure helper `useNavLink` and `useUnifiedNav` call — single\n // decision rule across cards, chips, and autocomplete rows. Thread\n // the caller's `source` as `currentSource` so the platform-vs-\n // platform comparison matches the hub's pre-migration behavior.\n const targetPlatform = meta.targetPlatform as string | null | undefined\n const isNewTab = decideNewTab({\n href: externalUrl,\n targetPlatform,\n surface: 'useUnifiedNav',\n runtimeMode,\n currentSource: source,\n })\n return isNewTab\n ? { kind: 'navigate-new-tab', href: externalUrl }\n : { kind: 'navigate-same-tab', href: externalUrl }\n }\n const rowId = meta.id as string | undefined\n const sourceRepo = meta.sourceRepo as string | undefined\n const documentType = meta.documentType as string | undefined\n if (rowId && sourceRepo && documentType) {\n return {\n kind: 'ask-ai',\n detail: {\n source,\n ref: { type: documentType, id: rowId, title: result.title, url: null },\n },\n }\n }\n if (result.path) {\n return { kind: 'route', path: result.path }\n }\n return { kind: 'noop' }\n}\n","'use client'\n\n/**\n * `useDocSearch` — debounced RAG-search hook against `/api/docs/search`.\n *\n * Pure fetch + navigation glue. Embedders can mount this directly\n * (any host with a reverse-proxy that exposes `/api/docs/search` will\n * work). Hub callers wire it into the lib `<DocSearchBar>` for the\n * canonical typeahead dropdown.\n *\n * ## What moved from hub to lib\n *\n * Lifted from `multi-platform-hub/hooks/use-docs.ts:useDocSearch`. Two\n * hub-only concerns are now optional injection points instead of\n * direct imports:\n *\n * - `useDocNavigation()` (hub's in-page doc-tree swap) → optional\n * `onInPageSwap?: (path: string) => boolean` config callback. When\n * present and returns true, the hook treats a same-origin result\n * click as \"handled in-page\"; when absent or returns false, the\n * hook falls back to `onNavigate(path)` (`router.push` on hub,\n * `window.location.assign` on bare embedders).\n * - `traceCompose` (hub-only telemetry) → dropped. The lib has no\n * equivalent runtime-context yet; bring it back when there is one.\n *\n * Everything else (debounce, `useChatRuntime` for embed-mode short-\n * circuit, embed-shim router, the action-resolver + result-mapper) is\n * now lib-resident.\n */\n\nimport { useState, useEffect, useCallback } from 'react'\nimport { useRouter } from '../../../embed-shims'\nimport { useDebounce } from '../../../hooks/ui/use-debounce'\nimport { useChatRuntime } from '../../../contexts/chat-runtime-context'\nimport { contentFetch } from '../../../utils/embed-content-fetch'\nimport type { SearchResult } from '../../ui/search-input'\nimport {\n resolveExternalNavigation,\n stripSameOriginToPath,\n NEW_TAB_FEATURES,\n} from '../../chat/utils/chat-nav-resolution'\nimport type { DocSearchResult } from './types'\nimport { mapDocSearchResults } from './map-doc-search-results'\nimport { resolveSearchResultAction } from './resolve-search-result-action'\n\nexport interface UseDocSearchConfig {\n /** Discriminator passed to `/api/docs/search?source=` (e.g.\n * `'openframe'`). Embedders set it to whatever discriminator their\n * reverse-proxy expects. */\n source: string\n /** Base route prefix this search lives under (e.g. `'/onboarding-guides'`).\n * When a result's href starts with `${baseRoute}/`, the hook\n * attempts the optional in-page swap path before falling through\n * to a full nav. */\n baseRoute: string\n /** Imperative navigation fallback. Called when no override\n * (in-page swap, new-tab) applies. Hub callers pass\n * `(path) => router.push(path)`; embedders pass an equivalent. */\n onNavigate: (path: string) => void\n /** Optional `RagTableConfig.id` list to narrow the search to specific\n * tables (e.g. `['onboarding-guides']`). Forwarded to\n * `/api/docs/search?tableIds=…` which intersects with the source's\n * standing set. */\n tableIds?: string[]\n /** Optional in-page swap callback. When the result's href is under\n * `baseRoute` AND this callback returns true, the hook treats the\n * click as handled in-page (no router push). Hub's\n * `<DocumentationSection>` wires this to\n * `useDocNavigation().navigate(path)`. */\n onInPageSwap?: (path: string) => boolean\n /** Optional endpoint override. Defaults to `'/api/docs/search'`\n * (the hub's reverse-proxy route). Embedders with a different\n * path can override. */\n searchEndpoint?: string\n}\n\nexport function useDocSearch(config: UseDocSearchConfig) {\n const {\n source,\n baseRoute,\n onNavigate,\n tableIds,\n onInPageSwap,\n searchEndpoint,\n } = config\n const tableIdsKey = tableIds && tableIds.length > 0 ? tableIds.join(',') : ''\n\n const router = useRouter()\n // Optional chat-runtime read — when present and mode='embed' the\n // search-result row click short-circuits to a new-tab open against\n // the absolutized URL. Null/host preserves today's behavior.\n // Also used as the proxy-prefix fallback for `searchEndpoint`, matching\n // how tickets resolves `findTicketUrl`.\n const runtime = useChatRuntime()\n const resolvedSearchEndpoint =\n searchEndpoint ?? runtime?.endpoints.docsSearchUrl ?? '/api/docs/search'\n\n const [query, setQuery] = useState('')\n const [results, setResults] = useState<SearchResult[]>([])\n const [isFetching, setIsFetching] = useState(false)\n const debouncedQuery = useDebounce(query, 300)\n\n useEffect(() => {\n if (!debouncedQuery || debouncedQuery.trim().length < 2) {\n setResults([])\n setIsFetching(false)\n return\n }\n\n let cancelled = false\n\n async function fetchResults() {\n setIsFetching(true)\n try {\n const params = new URLSearchParams({\n q: debouncedQuery,\n source,\n limit: '10',\n })\n if (tableIdsKey) params.set('tableIds', tableIdsKey)\n\n const response = await contentFetch(`${resolvedSearchEndpoint}?${params.toString()}`)\n if (!response.ok) {\n throw new Error(`Search request failed: ${response.status}`)\n }\n\n const json = await response.json()\n\n if (!cancelled && json.success && Array.isArray(json.data)) {\n const mapped = mapDocSearchResults(json.data as DocSearchResult[])\n setResults(mapped)\n }\n } catch (error) {\n console.error('Doc search error:', error)\n if (!cancelled) {\n setResults([])\n }\n } finally {\n if (!cancelled) {\n setIsFetching(false)\n }\n }\n }\n\n fetchResults()\n\n return () => {\n cancelled = true\n }\n }, [debouncedQuery, source, tableIdsKey, resolvedSearchEndpoint])\n\n // Derived loading state — single source of truth for \"should the\n // dropdown show 'Loading...' instead of 'No results found'\":\n const isLoading =\n query.trim().length >= 2 && (query !== debouncedQuery || isFetching)\n\n // Track whether dropdown should stay open (external link opened in new tab).\n const [keepOpen, setKeepOpen] = useState(false)\n\n const handleResultSelect = useCallback(\n (\n result: SearchResult,\n modifiers?: {\n metaKey?: boolean\n ctrlKey?: boolean\n shiftKey?: boolean\n altKey?: boolean\n button?: number\n },\n ) => {\n const action = resolveSearchResultAction(\n result,\n source,\n runtime?.navigation.mode,\n )\n // Modifier / non-primary mouse click → force new tab regardless of\n // same-tab/new-tab decision. The dropdown row is a `<div>`, not an\n // `<a target=\"_blank\">`, so the browser doesn't background-tab\n // natively on cmd-click. Honor it explicitly here for parity with\n // the anchor-based surfaces (cards, chips, related-content). Plain\n // Enter from the keyboard passes `modifiers === undefined`.\n const wantsNewTab =\n modifiers &&\n (modifiers.metaKey ||\n modifiers.ctrlKey ||\n modifiers.shiftKey ||\n modifiers.altKey ||\n (typeof modifiers.button === 'number' && modifiers.button !== 0))\n switch (action.kind) {\n case 'navigate-same-tab': {\n // Embed-mode short-circuit — autocomplete row clicked while\n // the chat panel is hosted inside an embedding app.\n if (runtime?.navigation.mode === 'embed') {\n setKeepOpen(true)\n const targetPlatform =\n (result.metadata?.targetPlatform as string | null | undefined) ?? null\n resolveExternalNavigation({\n href: action.href,\n targetPlatform,\n runtime,\n }).open()\n return\n }\n if (wantsNewTab) {\n setKeepOpen(true)\n window.open(action.href, '_blank', NEW_TAB_FEATURES)\n return\n }\n // Same-origin click:\n // 1. If the href is under the current doc-tree's baseRoute AND\n // an `onInPageSwap` callback is wired AND returns true →\n // consider in-page swap handled.\n // 2. Otherwise → embed-shim `router.push()` (soft RSC nav on\n // Next.js hosts, window.location.assign on bare hosts).\n setKeepOpen(false)\n const path =\n baseRoute && action.href.startsWith(`${baseRoute}/`)\n ? action.href.slice(baseRoute.length + 1)\n : null\n if (path && onInPageSwap?.(path)) return\n router.push(stripSameOriginToPath(action.href))\n return\n }\n case 'navigate-new-tab':\n // Cross-origin (e.g. clicking a flamingo.run release from\n // product-hub) — open in a new tab. Keep dropdown open so the\n // user can pick another result without re-searching.\n setKeepOpen(true)\n window.open(action.href, '_blank', NEW_TAB_FEATURES)\n return\n case 'ask-ai':\n // Row is searchable-but-not-openable (cap_table positions,\n // financial-kpi snapshots, anything backed by\n // `resolveUrl: () => null`). Dispatch a CustomEvent that\n // GlobalAskAI listens for — opens chat + drills via\n // `entityIdFilter` (primary-key only, same as inline-card Ask).\n setKeepOpen(false)\n window.dispatchEvent(\n new CustomEvent('ask-ai:open-with-ref', { detail: action.detail }),\n )\n return\n case 'route':\n // Final fallback: legacy navigation by path. Hits when a row\n // has neither URL nor pk metadata — a mapper/API regression.\n setKeepOpen(false)\n onNavigate(action.path)\n return\n case 'noop':\n return\n }\n },\n [onNavigate, source, baseRoute, router, onInPageSwap, runtime],\n )\n\n // Reset keepOpen when query changes.\n useEffect(() => {\n setKeepOpen(false)\n }, [query])\n\n return {\n query,\n setQuery,\n results,\n isLoading,\n handleResultSelect,\n keepDropdownOpen: keepOpen,\n }\n}\n"]}
@@ -4,10 +4,10 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkHEH47UTCcjs = require('./chunk-HEH47UTC.cjs');
7
+ var _chunkY4I4462Kcjs = require('./chunk-Y4I4462K.cjs');
8
8
 
9
9
 
10
- var _chunkXQILJ7FFcjs = require('./chunk-XQILJ7FF.cjs');
10
+ var _chunkT6FEE3R2cjs = require('./chunk-T6FEE3R2.cjs');
11
11
 
12
12
 
13
13
  var _chunk2U3YPWHGcjs = require('./chunk-2U3YPWHG.cjs');
@@ -42,7 +42,7 @@ var _chunk2U3YPWHGcjs = require('./chunk-2U3YPWHG.cjs');
42
42
 
43
43
 
44
44
 
45
- var _chunkY36KVLBXcjs = require('./chunk-Y36KVLBX.cjs');
45
+ var _chunkPNMX75W4cjs = require('./chunk-PNMX75W4.cjs');
46
46
 
47
47
 
48
48
 
@@ -173,7 +173,7 @@ function PersistentPaginationWrapper({
173
173
  const displayCurrentPage = hasResults ? currentPage : 1;
174
174
  const isPaginationDisabled = isLoading;
175
175
  const hasNoResults = !hasResults && !isLoading;
176
- const PaginationComponent = (_chunkHEH47UTCcjs.init_unified_pagination.call(void 0, ), _chunkVRHGVLSLcjs.__toCommonJS.call(void 0, _chunkHEH47UTCcjs.unified_pagination_exports)).UnifiedPagination;
176
+ const PaginationComponent = (_chunkY4I4462Kcjs.init_unified_pagination.call(void 0, ), _chunkVRHGVLSLcjs.__toCommonJS.call(void 0, _chunkY4I4462Kcjs.unified_pagination_exports)).UnifiedPagination;
177
177
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
178
178
  "div",
179
179
  {
@@ -232,8 +232,8 @@ function PersistentPaginationWrapper({
232
232
  _chunkFIG2RKZFcjs.init_cn.call(void 0, );
233
233
 
234
234
  var DEFAULT_ENDPOINT = "/api/releases";
235
- var DEFAULT_SEARCH_PARAM_KEY = _chunkY36KVLBXcjs.DEV_SECTION_PARAM_KEYS.search;
236
- var DEFAULT_STATUS_PARAM_KEY = _chunkY36KVLBXcjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
235
+ var DEFAULT_SEARCH_PARAM_KEY = _chunkPNMX75W4cjs.DEV_SECTION_PARAM_KEYS.search;
236
+ var DEFAULT_STATUS_PARAM_KEY = _chunkPNMX75W4cjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
237
237
  var DEFAULT_PAGE_PARAM_KEY = "page";
238
238
  function ReleaseRow({
239
239
  release,
@@ -242,17 +242,17 @@ function ReleaseRow({
242
242
  }) {
243
243
  const runtime = _chunk3KEBI6TPcjs.useChatRuntime.call(void 0, );
244
244
  const router = _chunkG7UE6RKVcjs.useRouter.call(void 0, );
245
- const cta = _chunkY36KVLBXcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
245
+ const cta = _chunkPNMX75W4cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
246
246
  type: "product_release",
247
247
  slug: release.slug,
248
248
  basePath,
249
249
  platforms: release.product_release_platforms
250
250
  });
251
- const { target, rel } = _chunkY36KVLBXcjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
251
+ const { target, rel } = _chunkPNMX75W4cjs.useEntityCardLink.call(void 0, { href: cta.href, targetPlatform: cta.targetPlatform });
252
252
  const onClick = (e) => {
253
- if (e.defaultPrevented || _chunkY36KVLBXcjs.isModifierClick.call(void 0, e) || target === "_blank") return;
253
+ if (e.defaultPrevented || _chunkPNMX75W4cjs.isModifierClick.call(void 0, e) || target === "_blank") return;
254
254
  e.preventDefault();
255
- _chunkY36KVLBXcjs.executeNavigationImperative.call(void 0, {
255
+ _chunkPNMX75W4cjs.executeNavigationImperative.call(void 0, {
256
256
  runtime,
257
257
  href: cta.href,
258
258
  targetPlatform: cta.targetPlatform,
@@ -260,7 +260,7 @@ function ReleaseRow({
260
260
  });
261
261
  };
262
262
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
263
- _chunkY36KVLBXcjs.ProductReleaseCard,
263
+ _chunkPNMX75W4cjs.ProductReleaseCard,
264
264
  {
265
265
  size: "lg",
266
266
  title: release.title,
@@ -276,7 +276,7 @@ function ProductReleasesView({
276
276
  initialData,
277
277
  itemsPerPage = 5,
278
278
  basePath = "/releases",
279
- buildCardProps = _chunkY36KVLBXcjs.buildProductReleaseCardProps,
279
+ buildCardProps = _chunkPNMX75W4cjs.buildProductReleaseCardProps,
280
280
  searchParamKey = DEFAULT_SEARCH_PARAM_KEY,
281
281
  statusParamKey = DEFAULT_STATUS_PARAM_KEY,
282
282
  pageParamKey = DEFAULT_PAGE_PARAM_KEY,
@@ -314,10 +314,10 @@ function ProductReleasesView({
314
314
  router.replace(`${pathname}?${params.toString()}`, { scroll: false });
315
315
  };
316
316
  if (error) {
317
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
317
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
318
318
  }
319
319
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "w-full flex flex-col gap-[40px]", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[600px]", children: showEmpty ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[600px] flex items-center justify-center", children: hasActiveFilters ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
320
- _chunkHEH47UTCcjs.EmptyState,
320
+ _chunkY4I4462Kcjs.EmptyState,
321
321
  {
322
322
  type: "search",
323
323
  title: "No releases found",
@@ -327,7 +327,7 @@ function ProductReleasesView({
327
327
  onCtaClick: resetFilters
328
328
  }
329
329
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
330
- _chunkHEH47UTCcjs.EmptyState,
330
+ _chunkY4I4462Kcjs.EmptyState,
331
331
  {
332
332
  type: "generic",
333
333
  title: "No releases available",
@@ -342,7 +342,7 @@ function ProductReleasesView({
342
342
  "div",
343
343
  {
344
344
  style: { visibility: isLoading || hasData ? "visible" : "hidden" },
345
- children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.ProductReleaseCardSkeleton, { size: "lg" }) : release ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReleaseRow, { release, basePath, buildCardProps }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.ProductReleaseCardSkeleton, { size: "lg" })
345
+ children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.ProductReleaseCardSkeleton, { size: "lg" }) : release ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ReleaseRow, { release, basePath, buildCardProps }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.ProductReleaseCardSkeleton, { size: "lg" })
346
346
  },
347
347
  _nullishCoalesce(_optionalChain([release, 'optionalAccess', _5 => _5.id]), () => ( `slot-${i}`))
348
348
  );
@@ -390,10 +390,10 @@ function MediaGalleryStrip({ items, className }) {
390
390
  mediaItem.id || index
391
391
  );
392
392
  }
393
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.Video, { url: mediaItem.media_url, layout: "native" }) }, mediaItem.id || index);
393
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: tileClass, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.Video, { url: mediaItem.media_url, layout: "native" }) }, mediaItem.id || index);
394
394
  }) }),
395
395
  galleryImages.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
396
- _chunkY36KVLBXcjs.ImageGalleryModal,
396
+ _chunkPNMX75W4cjs.ImageGalleryModal,
397
397
  {
398
398
  images: galleryImages,
399
399
  isOpen: galleryOpen,
@@ -410,7 +410,7 @@ _chunkG7UE6RKVcjs.init_next_navigation.call(void 0, );
410
410
 
411
411
  var _lucidereact = require('lucide-react');
412
412
 
413
- var DefaultMarkdownRenderer = _chunkY36KVLBXcjs.RichMarkdownRenderer;
413
+ var DefaultMarkdownRenderer = _chunkPNMX75W4cjs.RichMarkdownRenderer;
414
414
  function ReleaseDetailPage({
415
415
  authorHref,
416
416
  slug,
@@ -427,7 +427,7 @@ function ReleaseDetailPage({
427
427
  shell = true
428
428
  }) {
429
429
  const router = _chunkG7UE6RKVcjs.useRouter.call(void 0, );
430
- const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
430
+ const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
431
431
  const { data: fetchedRelease, error, isLoading } = useRelease(initialData ? void 0 : slug);
432
432
  const release = initialData || fetchedRelease;
433
433
  const showBackButton = backButton !== false;
@@ -471,7 +471,7 @@ function ReleaseDetailPage({
471
471
  return renderShell(
472
472
  // Match the loaded page's top offset (TitleBlock's
473
473
  // `pt-[var(--spacing-system-l)]`) so content doesn't jump on load.
474
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXQILJ7FFcjs.DetailPageSkeleton, { bare: true, metadataColumns: 4, showImageGallery: true }) })
474
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT6FEE3R2cjs.DetailPageSkeleton, { bare: true, metadataColumns: 4, showImageGallery: true }) })
475
475
  );
476
476
  }
477
477
  if (error || !release) {
@@ -507,7 +507,7 @@ function ReleaseDetailPage({
507
507
  const improvements = release.improvements;
508
508
  return renderShell(
509
509
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
510
- _chunkY36KVLBXcjs.PageLayout,
510
+ _chunkPNMX75W4cjs.PageLayout,
511
511
  {
512
512
  title: releaseTitle,
513
513
  subtitle: `Version: ${releaseVersion}`,
@@ -516,7 +516,7 @@ function ReleaseDetailPage({
516
516
  backButton: showBackButton ? { label: backLabel, onClick: () => router.push(backHref) } : void 0,
517
517
  children: [
518
518
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-6 md:space-y-8", children: [
519
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.EntityTagBadges, { tags: release.product_release_tags }),
519
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.EntityTagBadges, { tags: release.product_release_tags }),
520
520
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 md:grid-cols-4 border border-ods-border rounded-md overflow-hidden w-full", children: [
521
521
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-card border-b md:border-b-0 md:border-r border-ods-border p-4 flex flex-col gap-3", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
522
522
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4 text-ods-text-primary", children: releaseType.toLocaleUpperCase() }),
@@ -527,11 +527,11 @@ function ReleaseDetailPage({
527
527
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "font-['DM_Sans'] font-medium text-[14px] leading-[20px] text-ods-text-secondary", children: "Release Status" })
528
528
  ] }) }),
529
529
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-ods-card border-b md:border-b-0 md:border-r border-ods-border p-4 flex flex-col gap-3", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-0", children: [
530
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4 text-ods-text-primary", children: _chunkY36KVLBXcjs.formatReleaseDate.call(void 0, releaseDate) }),
530
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4 text-ods-text-primary", children: _chunkPNMX75W4cjs.formatReleaseDate.call(void 0, releaseDate) }),
531
531
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "font-['DM_Sans'] font-medium text-[14px] leading-[20px] text-ods-text-secondary", children: "Release Date" })
532
532
  ] }) }),
533
533
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
534
- _chunkY36KVLBXcjs.EntityMetadataAuthorCell,
534
+ _chunkPNMX75W4cjs.EntityMetadataAuthorCell,
535
535
  {
536
536
  author: _nullishCoalesce(author, () => ( { full_name: null, avatar_url: null })),
537
537
  authorHref: _optionalChain([author, 'optionalAccess', _6 => _6.full_name]) ? authorHref : void 0
@@ -549,16 +549,16 @@ function ReleaseDetailPage({
549
549
  highlightVideoThumbnail,
550
550
  title: releaseTitle,
551
551
  videoBites,
552
- bitesTitle: _chunkY36KVLBXcjs.DEFAULT_VIDEO_BITES_TITLE,
552
+ bitesTitle: _chunkPNMX75W4cjs.DEFAULT_VIDEO_BITES_TITLE,
553
553
  filterPublishedBites: true,
554
- bitesProfile: _chunkY36KVLBXcjs.toStripProfile.call(void 0, author),
554
+ bitesProfile: _chunkPNMX75W4cjs.toStripProfile.call(void 0, author),
555
555
  bitesHref: typeof release.slug === "string" ? `/releases/${release.slug}` : void 0,
556
556
  srtContent: _optionalChain([release, 'optionalAccess', _7 => _7.srt_content]),
557
557
  captionsUrl: _optionalChain([release, 'optionalAccess', _8 => _8.captionsUrl])
558
558
  }
559
559
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
560
560
  youtubeUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
561
- _chunkY36KVLBXcjs.Video,
561
+ _chunkPNMX75W4cjs.Video,
562
562
  {
563
563
  kind: "youtube",
564
564
  url: youtubeUrl,
@@ -567,7 +567,7 @@ function ReleaseDetailPage({
567
567
  }
568
568
  ),
569
569
  !youtubeUrl && mainVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
570
- _chunkY36KVLBXcjs.Video,
570
+ _chunkPNMX75W4cjs.Video,
571
571
  {
572
572
  url: mainVideoUrl,
573
573
  srtContent: _optionalChain([release, 'optionalAccess', _9 => _9.srt_content]),
@@ -576,7 +576,7 @@ function ReleaseDetailPage({
576
576
  }
577
577
  ),
578
578
  highlightVideoUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
579
- _chunkY36KVLBXcjs.Video,
579
+ _chunkPNMX75W4cjs.Video,
580
580
  {
581
581
  url: highlightVideoUrl,
582
582
  poster: highlightVideoThumbnail,
@@ -585,7 +585,7 @@ function ReleaseDetailPage({
585
585
  )
586
586
  ] }),
587
587
  releaseContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-h4 text-ods-text-primary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: releaseContent }) }),
588
- hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.Card, { className: "border-red-500 bg-red-500/10", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.CardContent, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
588
+ hasBreakingChanges && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.Card, { className: "border-red-500 bg-red-500/10", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.CardContent, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
589
589
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.AlertTriangle, { className: "h-6 w-6 text-red-500" }),
590
590
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
591
591
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-bold text-red-500 text-lg", children: "Breaking Changes" }),
@@ -593,7 +593,7 @@ function ReleaseDetailPage({
593
593
  ] })
594
594
  ] }) }) }),
595
595
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
596
- _chunkY36KVLBXcjs.ReleaseChangelogSection,
596
+ _chunkPNMX75W4cjs.ReleaseChangelogSection,
597
597
  {
598
598
  title: "Breaking Changes",
599
599
  entries: breakingChanges || [],
@@ -604,7 +604,7 @@ function ReleaseDetailPage({
604
604
  }
605
605
  ),
606
606
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
607
- _chunkY36KVLBXcjs.ReleaseChangelogSection,
607
+ _chunkPNMX75W4cjs.ReleaseChangelogSection,
608
608
  {
609
609
  title: "Features Added",
610
610
  entries: featuresAdded || [],
@@ -614,7 +614,7 @@ function ReleaseDetailPage({
614
614
  }
615
615
  ),
616
616
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
617
- _chunkY36KVLBXcjs.ReleaseChangelogSection,
617
+ _chunkPNMX75W4cjs.ReleaseChangelogSection,
618
618
  {
619
619
  title: "Bugs Fixed",
620
620
  entries: bugFixed || [],
@@ -624,7 +624,7 @@ function ReleaseDetailPage({
624
624
  }
625
625
  ),
626
626
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
627
- _chunkY36KVLBXcjs.ReleaseChangelogSection,
627
+ _chunkPNMX75W4cjs.ReleaseChangelogSection,
628
628
  {
629
629
  title: "Improvements",
630
630
  entries: improvements || [],
@@ -655,7 +655,7 @@ function ReleaseDetailPage({
655
655
  (() => {
656
656
  const deliveryCount = deliveryData ? deliveryData.completed.length + deliveryData.inProgress.length : 0;
657
657
  return deliveryLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliverySection, { data: deliveryData, isLoading: deliveryLoading }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
658
- _chunkY36KVLBXcjs.FadePreview,
658
+ _chunkPNMX75W4cjs.FadePreview,
659
659
  {
660
660
  hiddenCount: deliveryCount - 1,
661
661
  collapsedHeight: 300,
@@ -667,7 +667,7 @@ function ReleaseDetailPage({
667
667
  ] }),
668
668
  (_optionalChain([githubReleases, 'optionalAccess', _11 => _11.length]) || _optionalChain([knowledgeBaseLinks, 'optionalAccess', _12 => _12.length]) || migrationGuideUrl || documentationUrl) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1 w-full", children: [
669
669
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h5 tracking-[-0.28px] text-ods-text-secondary", children: "Related Links" }),
670
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.Card, { className: "bg-ods-card border-ods-border p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
670
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.Card, { className: "bg-ods-card border-ods-border p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
671
671
  githubReleases && githubReleases.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: githubReleases.map((ghRelease) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-1", children: [
672
672
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLWNPMLIHcjs.GitHubIcon, { className: "shrink-0", width: 24, height: 24, color: "var(--color-text-secondary)" }),
673
673
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4 text-ods-text-primary", children: "Github Release" }),
@@ -741,7 +741,7 @@ function ReleaseDetailPage({
741
741
  // src/components/shared/product-release/release-detail-skeleton.tsx
742
742
 
743
743
  function ReleaseDetailSkeleton() {
744
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXQILJ7FFcjs.DetailPageSkeleton, { metadataColumns: 4, showImageGallery: true });
744
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkT6FEE3R2cjs.DetailPageSkeleton, { metadataColumns: 4, showImageGallery: true });
745
745
  }
746
746
 
747
747
  // src/components/shared/roadmap/use-roadmap-voting.ts
@@ -902,10 +902,10 @@ function RoadmapGridSingle({
902
902
  // `useScrollToHash` in `roadmap-view.tsx` finds the card by id
903
903
  // and scrolls.
904
904
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
905
- _chunkY36KVLBXcjs.RoadmapCard,
905
+ _chunkPNMX75W4cjs.RoadmapCard,
906
906
  {
907
907
  item,
908
- id: _chunkY36KVLBXcjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
908
+ id: _chunkPNMX75W4cjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
909
909
  userVote: getVote(item.id),
910
910
  onVote: (voteType) => onVote(item.id, voteType),
911
911
  isVoting: votingTasks.has(item.id)
@@ -985,7 +985,7 @@ function RoadmapGrid({
985
985
  }, [hasActiveFilters, sortedQuartersKey, isInitialized, quartersToKeepClosed]);
986
986
  if (items.length === 0) {
987
987
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
988
- _chunkHEH47UTCcjs.EmptyState,
988
+ _chunkY4I4462Kcjs.EmptyState,
989
989
  {
990
990
  type: "generic",
991
991
  title: "No roadmap items",
@@ -1006,7 +1006,7 @@ function RoadmapGrid({
1006
1006
  );
1007
1007
  }
1008
1008
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1009
- _chunkY36KVLBXcjs.Accordion,
1009
+ _chunkPNMX75W4cjs.Accordion,
1010
1010
  {
1011
1011
  type: "multiple",
1012
1012
  value: expandedQuarters,
@@ -1016,13 +1016,13 @@ function RoadmapGrid({
1016
1016
  const itemCount = _optionalChain([itemsByQuarter, 'access', _21 => _21[quarter], 'optionalAccess', _22 => _22.length]) || 0;
1017
1017
  const isExpanded = expandedQuarters.includes(quarter);
1018
1018
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1019
- _chunkY36KVLBXcjs.AccordionItem,
1019
+ _chunkPNMX75W4cjs.AccordionItem,
1020
1020
  {
1021
1021
  value: quarter,
1022
1022
  id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
1023
1023
  className: "border-0",
1024
1024
  children: [
1025
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.AccordionTrigger, { className: "w-full p-0 hover:no-underline [&>svg]:h-5 [&>svg]:w-5 [&>svg]:text-ods-text-secondary [&>svg]:ml-auto [&>svg]:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
1025
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.AccordionTrigger, { className: "w-full p-0 hover:no-underline [&>svg]:h-5 [&>svg]:w-5 [&>svg]:text-ods-text-secondary [&>svg]:ml-auto [&>svg]:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
1026
1026
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1027
1027
  "h3",
1028
1028
  {
@@ -1052,7 +1052,7 @@ function RoadmapGrid({
1052
1052
  }
1053
1053
  )
1054
1054
  ] }) }),
1055
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.AccordionContent, { className: "pt-4 pb-0 overflow-hidden data-[state=closed]:animate-none data-[state=open]:animate-none", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1055
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.AccordionContent, { className: "pt-4 pb-0 overflow-hidden data-[state=closed]:animate-none data-[state=open]:animate-none", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1056
1056
  RoadmapGridSingle,
1057
1057
  {
1058
1058
  items: itemsByQuarter[quarter],
@@ -1103,8 +1103,8 @@ function RoadmapGridSkeleton({ count = 4, showLeftMargin = true }) {
1103
1103
 
1104
1104
 
1105
1105
  var DEFAULT_ENDPOINT2 = "/api/roadmap";
1106
- var DEFAULT_SEARCH_PARAM_KEY2 = _chunkY36KVLBXcjs.DEV_SECTION_PARAM_KEYS.search;
1107
- var DEFAULT_STATUS_PARAM_KEY2 = _chunkY36KVLBXcjs.DEV_SECTION_PARAM_KEYS.status;
1106
+ var DEFAULT_SEARCH_PARAM_KEY2 = _chunkPNMX75W4cjs.DEV_SECTION_PARAM_KEYS.search;
1107
+ var DEFAULT_STATUS_PARAM_KEY2 = _chunkPNMX75W4cjs.DEV_SECTION_PARAM_KEYS.status;
1108
1108
  function RoadmapView({
1109
1109
  endpoint = DEFAULT_ENDPOINT2,
1110
1110
  initialItems,
@@ -1130,7 +1130,7 @@ function RoadmapView({
1130
1130
  const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _23 => _23.items]), () => ( []));
1131
1131
  _chunk743FCO64cjs.useScrollToHash.call(void 0, data, { headerOffset: _chunk743FCO64cjs.STICKY_HEADER_OFFSET_PX });
1132
1132
  if (error) {
1133
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
1133
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
1134
1134
  }
1135
1135
  if (isLoading && !data) {
1136
1136
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGridSkeleton, { showLeftMargin });
@@ -1187,7 +1187,7 @@ function DeliveryTable({ items, isLoading = false }) {
1187
1187
  "div",
1188
1188
  {
1189
1189
  className: "border-b border-ods-border last:border-b-0",
1190
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHEH47UTCcjs.DeliveryRow, { item, id: _chunkY36KVLBXcjs.devSectionAnchorId.call(void 0, "delivery", item.id) })
1190
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY4I4462Kcjs.DeliveryRow, { item, id: _chunkPNMX75W4cjs.devSectionAnchorId.call(void 0, "delivery", item.id) })
1191
1191
  },
1192
1192
  item.id
1193
1193
  )
@@ -1199,8 +1199,8 @@ function DeliveryTable({ items, isLoading = false }) {
1199
1199
 
1200
1200
  var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
1201
1201
  var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
1202
- var DEFAULT_SEARCH_PARAM_KEY3 = _chunkY36KVLBXcjs.DEV_SECTION_PARAM_KEYS.search;
1203
- var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkY36KVLBXcjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
1202
+ var DEFAULT_SEARCH_PARAM_KEY3 = _chunkPNMX75W4cjs.DEV_SECTION_PARAM_KEYS.search;
1203
+ var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkPNMX75W4cjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
1204
1204
  function DeliveryLists({
1205
1205
  completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
1206
1206
  inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
@@ -1261,11 +1261,11 @@ function DeliveryLists({
1261
1261
  const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
1262
1262
  const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
1263
1263
  if (error) {
1264
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
1264
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
1265
1265
  }
1266
1266
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-full flex flex-col gap-[40px]", children: [
1267
1267
  !isLoading && !hasResults && (hasActiveFilters ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1268
- _chunkHEH47UTCcjs.EmptyState,
1268
+ _chunkY4I4462Kcjs.EmptyState,
1269
1269
  {
1270
1270
  type: "search",
1271
1271
  title: "No tasks found",
@@ -1280,7 +1280,7 @@ function DeliveryLists({
1280
1280
  }
1281
1281
  }
1282
1282
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1283
- _chunkHEH47UTCcjs.EmptyState,
1283
+ _chunkY4I4462Kcjs.EmptyState,
1284
1284
  {
1285
1285
  type: "generic",
1286
1286
  title: "No tasks available",
@@ -1382,7 +1382,7 @@ function LegalDocumentPage({
1382
1382
  initialData = null,
1383
1383
  initialLastUpdatedLabel = null,
1384
1384
  apiEndpoint,
1385
- MarkdownRenderer = _chunkY36KVLBXcjs.RichMarkdownRenderer,
1385
+ MarkdownRenderer = _chunkPNMX75W4cjs.RichMarkdownRenderer,
1386
1386
  backButton,
1387
1387
  shell = true
1388
1388
  }) {
@@ -1392,10 +1392,10 @@ function LegalDocumentPage({
1392
1392
  label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _26 => _26.label]), () => ( "Back to home")),
1393
1393
  onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _27 => _27.href]), () => ( "/")))
1394
1394
  };
1395
- const fallbackLastUpdatedLabel = _optionalChain([data, 'optionalAccess', _28 => _28.lastSynced]) != null ? _chunkY36KVLBXcjs.formatLegalDate.call(void 0, data.lastSynced) : null;
1395
+ const fallbackLastUpdatedLabel = _optionalChain([data, 'optionalAccess', _28 => _28.lastSynced]) != null ? _chunkPNMX75W4cjs.formatLegalDate.call(void 0, data.lastSynced) : null;
1396
1396
  const effectiveLastUpdatedLabel = _nullishCoalesce(initialLastUpdatedLabel, () => ( fallbackLastUpdatedLabel));
1397
1397
  const subtitle = effectiveLastUpdatedLabel ? `Last Updated: ${effectiveLastUpdatedLabel}` : fallbackDescription;
1398
- const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkY36KVLBXcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: [
1398
+ const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPNMX75W4cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: [
1399
1399
  _optionalChain([data, 'optionalAccess', _29 => _29.sourceFile]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "font-['DM_Sans'] text-sm text-ods-text-secondary opacity-75", children: [
1400
1400
  "Source: ",
1401
1401
  data.sourceFile
@@ -1442,7 +1442,7 @@ function LegalDocumentPage({
1442
1442
  ] })
1443
1443
  ] }) }) }) }) })
1444
1444
  ] });
1445
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY36KVLBXcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
1445
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPNMX75W4cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
1446
1446
  }
1447
1447
 
1448
1448
 
@@ -1462,4 +1462,4 @@ function LegalDocumentPage({
1462
1462
 
1463
1463
 
1464
1464
  exports.PersistentPagination = PersistentPagination; exports.usePaginationLoading = usePaginationLoading; exports.PersistentPaginationWrapper = PersistentPaginationWrapper; exports.ProductReleasesView = ProductReleasesView; exports.MediaGalleryStrip = MediaGalleryStrip; exports.ReleaseDetailPage = ReleaseDetailPage; exports.ReleaseDetailSkeleton = ReleaseDetailSkeleton; exports.useRoadmapVoting = useRoadmapVoting; exports.RoadmapGrid = RoadmapGrid; exports.RoadmapGridSkeleton = RoadmapGridSkeleton; exports.RoadmapView = RoadmapView; exports.DeliveryTable = DeliveryTable; exports.DeliveryLists = DeliveryLists; exports.useLegalDocs = useLegalDocs; exports.LegalDocumentPage = LegalDocumentPage;
1465
- //# sourceMappingURL=chunk-VSPNWVIE.cjs.map
1465
+ //# sourceMappingURL=chunk-BEPZ5YAN.cjs.map