@flamingo-stack/openframe-frontend-core 0.0.265 → 0.0.266-snapshot.20260613153054

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 (104) hide show
  1. package/dist/{chunk-J5R3QIOJ.cjs → chunk-5QJQAFTP.cjs} +126 -55
  2. package/dist/chunk-5QJQAFTP.cjs.map +1 -0
  3. package/dist/chunk-722TTRIJ.cjs +29 -0
  4. package/dist/chunk-722TTRIJ.cjs.map +1 -0
  5. package/dist/{chunk-A56L7UQG.cjs → chunk-AA77CC2Y.cjs} +12 -12
  6. package/dist/{chunk-A56L7UQG.cjs.map → chunk-AA77CC2Y.cjs.map} +1 -1
  7. package/dist/{chunk-J5BBBDNA.cjs → chunk-CI5XE4LB.cjs} +37 -37
  8. package/dist/{chunk-J5BBBDNA.cjs.map → chunk-CI5XE4LB.cjs.map} +1 -1
  9. package/dist/{chunk-7MNBE7XA.cjs → chunk-CICK3FUU.cjs} +102 -4
  10. package/dist/chunk-CICK3FUU.cjs.map +1 -0
  11. package/dist/{chunk-GBUGYHDY.js → chunk-CYMMGPPV.js} +125 -54
  12. package/dist/chunk-CYMMGPPV.js.map +1 -0
  13. package/dist/{chunk-Z5YEQWLC.js → chunk-GJVSLS2R.js} +5 -7
  14. package/dist/{chunk-Z5YEQWLC.js.map → chunk-GJVSLS2R.js.map} +1 -1
  15. package/dist/{chunk-URJQGMNH.js → chunk-ICOMPUMX.js} +345 -247
  16. package/dist/chunk-ICOMPUMX.js.map +1 -0
  17. package/dist/{chunk-EXU5N5RM.js → chunk-J6O57C7S.js} +2461 -2546
  18. package/dist/chunk-J6O57C7S.js.map +1 -0
  19. package/dist/{chunk-2P6V2EWZ.cjs → chunk-O6UA475M.cjs} +302 -387
  20. package/dist/chunk-O6UA475M.cjs.map +1 -0
  21. package/dist/chunk-OO4ZGDRO.js +29 -0
  22. package/dist/chunk-OO4ZGDRO.js.map +1 -0
  23. package/dist/{chunk-TZ3PV5NT.js → chunk-P7JHUX4X.js} +2 -2
  24. package/dist/{chunk-NR535XIY.js → chunk-T2URJAX2.js} +66 -1
  25. package/dist/chunk-T2URJAX2.js.map +1 -0
  26. package/dist/{chunk-HMHMK6U6.cjs → chunk-TPZI7NBN.cjs} +16 -18
  27. package/dist/chunk-TPZI7NBN.cjs.map +1 -0
  28. package/dist/{chunk-266DUZ6D.js → chunk-XSK72QRR.js} +6 -3
  29. package/dist/chunk-XSK72QRR.js.map +1 -0
  30. package/dist/{chunk-7VMEOFEA.cjs → chunk-Y2B6WDU6.cjs} +67 -2
  31. package/dist/chunk-Y2B6WDU6.cjs.map +1 -0
  32. package/dist/{chunk-D4TWJNO5.cjs → chunk-YV55JZAD.cjs} +29 -26
  33. package/dist/chunk-YV55JZAD.cjs.map +1 -0
  34. package/dist/{chunk-6A2YQ5CY.js → chunk-Z6MKG53Z.js} +4 -4
  35. package/dist/components/chat/index.cjs +5 -5
  36. package/dist/components/chat/index.js +4 -4
  37. package/dist/components/contact/contact-form.d.ts.map +1 -1
  38. package/dist/components/contact/index.cjs +6 -6
  39. package/dist/components/contact/index.js +5 -5
  40. package/dist/components/faq/faq-section.d.ts +20 -23
  41. package/dist/components/faq/faq-section.d.ts.map +1 -1
  42. package/dist/components/faq/index.cjs +4 -4
  43. package/dist/components/faq/index.js +3 -3
  44. package/dist/components/faq-accordion.d.ts +0 -5
  45. package/dist/components/faq-accordion.d.ts.map +1 -1
  46. package/dist/components/features/entity-video-section.d.ts.map +1 -1
  47. package/dist/components/features/index.cjs +7 -8
  48. package/dist/components/features/index.cjs.map +1 -1
  49. package/dist/components/features/index.js +6 -7
  50. package/dist/components/features/video-bites-display.d.ts.map +1 -1
  51. package/dist/components/index.cjs +85 -83
  52. package/dist/components/index.cjs.map +1 -1
  53. package/dist/components/index.js +16 -14
  54. package/dist/components/index.js.map +1 -1
  55. package/dist/components/layout/page-heading.d.ts +8 -0
  56. package/dist/components/layout/page-heading.d.ts.map +1 -1
  57. package/dist/components/navigation/index.cjs +5 -5
  58. package/dist/components/navigation/index.js +4 -4
  59. package/dist/components/onboarding-guides/index.cjs +24 -25
  60. package/dist/components/onboarding-guides/index.cjs.map +1 -1
  61. package/dist/components/onboarding-guides/index.js +4 -5
  62. package/dist/components/onboarding-guides/index.js.map +1 -1
  63. package/dist/components/open-source-features.d.ts.map +1 -1
  64. package/dist/components/related-content/index.cjs +6 -6
  65. package/dist/components/related-content/index.js +5 -5
  66. package/dist/components/shared/onboarding/onboarding-walkthrough.d.ts.map +1 -1
  67. package/dist/components/tickets/index.cjs +69 -69
  68. package/dist/components/tickets/index.cjs.map +1 -1
  69. package/dist/components/tickets/index.js +10 -10
  70. package/dist/components/ui/index.cjs +9 -7
  71. package/dist/components/ui/index.cjs.map +1 -1
  72. package/dist/components/ui/index.js +10 -8
  73. package/dist/components/why-it-matters.d.ts.map +1 -1
  74. package/dist/hooks/use-toast.d.ts +1 -1
  75. package/dist/index.cjs +11 -9
  76. package/dist/index.cjs.map +1 -1
  77. package/dist/index.js +13 -11
  78. package/package.json +1 -1
  79. package/src/components/contact/contact-form.tsx +2 -1
  80. package/src/components/faq/faq-section.tsx +212 -103
  81. package/src/components/faq-accordion.tsx +1 -15
  82. package/src/components/features/entity-video-section.tsx +2 -1
  83. package/src/components/features/video-bites-display.tsx +2 -1
  84. package/src/components/layout/page-heading.tsx +9 -0
  85. package/src/components/open-source-features.tsx +3 -2
  86. package/src/components/shared/onboarding/onboarding-walkthrough.tsx +2 -1
  87. package/src/components/why-it-matters.tsx +3 -2
  88. package/dist/chunk-266DUZ6D.js.map +0 -1
  89. package/dist/chunk-2P6V2EWZ.cjs.map +0 -1
  90. package/dist/chunk-7MNBE7XA.cjs.map +0 -1
  91. package/dist/chunk-7VMEOFEA.cjs.map +0 -1
  92. package/dist/chunk-D4TWJNO5.cjs.map +0 -1
  93. package/dist/chunk-ERFO4JFK.js +0 -104
  94. package/dist/chunk-ERFO4JFK.js.map +0 -1
  95. package/dist/chunk-EXU5N5RM.js.map +0 -1
  96. package/dist/chunk-GBUGYHDY.js.map +0 -1
  97. package/dist/chunk-HMHMK6U6.cjs.map +0 -1
  98. package/dist/chunk-J5R3QIOJ.cjs.map +0 -1
  99. package/dist/chunk-NR535XIY.js.map +0 -1
  100. package/dist/chunk-TT2VBR7P.cjs +0 -104
  101. package/dist/chunk-TT2VBR7P.cjs.map +0 -1
  102. package/dist/chunk-URJQGMNH.js.map +0 -1
  103. /package/dist/{chunk-TZ3PV5NT.js.map → chunk-P7JHUX4X.js.map} +0 -0
  104. /package/dist/{chunk-6A2YQ5CY.js.map → chunk-Z6MKG53Z.js.map} +0 -0
@@ -1,12 +1,15 @@
1
1
  "use client"
2
2
 
3
- import React, { useMemo } from 'react'
3
+ import React, { useCallback, useEffect, useMemo, useState } from 'react'
4
4
  import type { Faq } from '../../types/faq'
5
5
  import { FaqAccordion, type FaqItem } from '../faq-accordion'
6
6
  import { useSelfFetch } from '../../hooks/use-self-fetch'
7
7
  import { buildSuggestionUrl } from '../../utils/suggestion-url'
8
8
  import { serializeJsonLd } from '../../utils/common'
9
+ import { scrollElementIntoView } from '../../utils/scroll-into-view'
10
+ import { cn } from '../../utils/cn'
9
11
  import { buildFaqJsonLdFromFaqs, type FaqSchemaOptions } from './json-ld'
12
+ import { SECTION_HEADING_CLASS } from '../layout/page-heading'
10
13
 
11
14
  export interface FaqSectionProps {
12
15
  /**
@@ -19,23 +22,15 @@ export interface FaqSectionProps {
19
22
  entityType?: string
20
23
  entityId?: number | string
21
24
  /**
22
- * Heading node. `undefined` → variant default (page: <h1>, embedded: <h2>
23
- * "Frequently Asked Questions"); `null` → no heading. React node so
24
- * platforms can drill their local <PageHeading> component without the lib
25
- * referencing platform state.
25
+ * Heading node above the grouped list. `undefined` → default
26
+ * `<h2>`"Frequently Asked Questions". `null` → no heading (the host page
27
+ * owns the `<h1>`, as the standalone /faqs surface does). A React node lets a
28
+ * platform drill its own <PageHeading> without the lib referencing platform
29
+ * state. Also drives category nesting so the document outline stays correct:
30
+ * `null` → categories render `<h2>` (directly under the page `<h1>`);
31
+ * otherwise categories render `<h3>` beneath this heading.
26
32
  */
27
33
  heading?: React.ReactNode | null
28
- /**
29
- * Shell variant — the FAQ LIST itself renders identically everywhere (ONE
30
- * flat accordion, `faq.section` as a per-row chip, never a heading):
31
- * - 'page' — the standalone /faqs surface: <main> shell + page gutters,
32
- * default <h1> heading.
33
- * - 'embedded' — a section inside a host page (entity detail rails, the
34
- * global nested-page block): bare <section>, default <h2> heading.
35
- * Back-compat default: `heading === null` → 'embedded', else 'page' (the
36
- * pre-variant discriminator).
37
- */
38
- variant?: 'page' | 'embedded'
39
34
  /** Inject FAQPage schema.org JSON-LD as a <script>. Off by default so embeds
40
35
  * don't emit duplicate schema. */
41
36
  emitJsonLd?: boolean
@@ -64,16 +59,177 @@ function buildFaqsUrl(
64
59
  return buildSuggestionUrl('/api/faqs', { apiBaseUrl, entityType, entityId, count: minResults })
65
60
  }
66
61
 
67
- /** ONE list shape for every surface — standalone /faqs and embeds render the
68
- * IDENTICAL flat accordion (`faq.section` = per-row chip, never a heading),
69
- * so the two can't drift visually. */
70
- function toAccordionItems(faqs: Faq[]): FaqItem[] {
71
- return faqs.map((faq) => ({
72
- id: faq.id,
73
- question: faq.question,
74
- answer: faq.answer,
75
- badge: faq.section || undefined,
76
- }))
62
+ /** Stable, URL-safe anchor id for a category. Prefixed so it can't collide
63
+ * with other in-page ids, and so a bare numeric/blank section still yields a
64
+ * valid id. */
65
+ function sectionSlug(section: string): string {
66
+ return (
67
+ 'faq-' +
68
+ section
69
+ .toLowerCase()
70
+ .replace(/[^a-z0-9]+/g, '-')
71
+ .replace(/^-+|-+$/g, '')
72
+ )
73
+ }
74
+
75
+ interface FaqGroup {
76
+ /** null → the uncategorized bucket: no heading, no jump pill, rendered last. */
77
+ section: string | null
78
+ slug: string | null
79
+ items: FaqItem[]
80
+ }
81
+
82
+ /** Group FAQs by `faq.section`, preserving the server's first-seen
83
+ * (display_order) order for BOTH the section order and the rows within each
84
+ * section. The uncategorized bucket (blank/missing section) sinks to the end
85
+ * since it renders without a heading. Items carry NO badge here — the `<h2>`
86
+ * IS the category, so a per-row chip would be redundant. */
87
+ function groupFaqsBySection(faqs: Faq[]): FaqGroup[] {
88
+ const order: string[] = []
89
+ const byName = new Map<string, FaqGroup>()
90
+ let uncategorized: FaqGroup | null = null
91
+ for (const faq of faqs) {
92
+ const item: FaqItem = { id: faq.id, question: faq.question, answer: faq.answer }
93
+ const name = faq.section?.trim()
94
+ if (!name) {
95
+ if (!uncategorized) uncategorized = { section: null, slug: null, items: [] }
96
+ uncategorized.items.push(item)
97
+ continue
98
+ }
99
+ let group = byName.get(name)
100
+ if (!group) {
101
+ group = { section: name, slug: sectionSlug(name), items: [] }
102
+ byName.set(name, group)
103
+ order.push(name)
104
+ }
105
+ group.items.push(item)
106
+ }
107
+ const groups = order.map((name) => byName.get(name)!)
108
+ if (uncategorized) groups.push(uncategorized)
109
+ return groups
110
+ }
111
+
112
+ /** The standard hub sticky-header height — same offset `useNavLink`'s hash
113
+ * scroll uses, so a category jump lands below the header, not under it. */
114
+ const FAQ_NAV_HEADER_OFFSET = 96
115
+
116
+ /**
117
+ * Grouped FAQ layout: a category jump-nav above stacked `<h2>` category
118
+ * sections (each its own accordion). Isolated into its own component so the
119
+ * scroll-spy hooks only mount in grouped mode — `FaqSection`'s own hooks stay
120
+ * unconditional.
121
+ *
122
+ * The pills are real `<a href="#slug">` anchors (crawlable in-page links,
123
+ * deep-linkable, work without JS); the click handler upgrades the jump to the
124
+ * cancellation-proof `scrollElementIntoView` tween and syncs the URL hash.
125
+ */
126
+ function GroupedFaqList({
127
+ groups,
128
+ categoryHeadingAs,
129
+ }: {
130
+ groups: FaqGroup[]
131
+ /** Heading tag for each category, so the document outline nests correctly
132
+ * under whatever owns the heading above this block: `h2` on the standalone
133
+ * page (the page owns the `<h1>`), `h3` beneath an embed's `<h2>` title.
134
+ * The VISUAL is `SECTION_HEADING_CLASS` either way, so categories look
135
+ * identical on every surface. */
136
+ categoryHeadingAs: 'h2' | 'h3'
137
+ }) {
138
+ const CategoryHeading = categoryHeadingAs
139
+ const navGroups = useMemo(() => groups.filter((g) => g.slug), [groups])
140
+ const [activeSlug, setActiveSlug] = useState<string | null>(navGroups[0]?.slug ?? null)
141
+ // Identity-stable key for the section set so the observer re-binds only when
142
+ // the categories actually change (not on every parent re-render).
143
+ const slugKey = navGroups.map((g) => g.slug).join('|')
144
+
145
+ // Scroll-spy: mark the pill for the category currently at the top of the
146
+ // viewport. rootMargin drops the trigger line just below the sticky header
147
+ // and ignores the bottom ~55% so "active" is the section being read, not the
148
+ // next one peeking in.
149
+ useEffect(() => {
150
+ if (navGroups.length < 2) return
151
+ const tops = new Map<string, number>()
152
+ const observer = new IntersectionObserver(
153
+ (entries) => {
154
+ for (const entry of entries) {
155
+ const id = (entry.target as HTMLElement).id
156
+ if (entry.isIntersecting) tops.set(id, entry.boundingClientRect.top)
157
+ else tops.delete(id)
158
+ }
159
+ let bestId: string | null = null
160
+ let bestTop = Number.POSITIVE_INFINITY
161
+ for (const [id, top] of tops) {
162
+ if (top < bestTop) {
163
+ bestTop = top
164
+ bestId = id
165
+ }
166
+ }
167
+ if (bestId) setActiveSlug(bestId)
168
+ },
169
+ { rootMargin: `-${FAQ_NAV_HEADER_OFFSET}px 0px -55% 0px`, threshold: 0 },
170
+ )
171
+ for (const group of navGroups) {
172
+ const el = group.slug ? document.getElementById(group.slug) : null
173
+ if (el) observer.observe(el)
174
+ }
175
+ return () => observer.disconnect()
176
+ // slugKey encodes the section set; re-observe only when it changes.
177
+ // eslint-disable-next-line react-hooks/exhaustive-deps
178
+ }, [slugKey])
179
+
180
+ const handleJump = useCallback(
181
+ (e: React.MouseEvent<HTMLAnchorElement>, slug: string) => {
182
+ e.preventDefault()
183
+ setActiveSlug(slug)
184
+ scrollElementIntoView(document.getElementById(slug), {
185
+ headerOffset: FAQ_NAV_HEADER_OFFSET,
186
+ })
187
+ if (typeof history !== 'undefined') history.replaceState(null, '', `#${slug}`)
188
+ },
189
+ [],
190
+ )
191
+
192
+ return (
193
+ <div className="space-y-8">
194
+ {navGroups.length > 1 && (
195
+ <nav aria-label="FAQ categories" className="flex flex-wrap gap-2">
196
+ {navGroups.map((group) => {
197
+ const isActive = group.slug === activeSlug
198
+ return (
199
+ <a
200
+ key={group.slug}
201
+ href={`#${group.slug}`}
202
+ aria-current={isActive ? 'true' : undefined}
203
+ onClick={(e) => handleJump(e, group.slug as string)}
204
+ className={cn(
205
+ "rounded-full border px-4 py-2 text-sm font-medium font-['DM_Sans'] transition-colors",
206
+ isActive
207
+ ? 'border-ods-text-primary bg-ods-card text-ods-text-primary'
208
+ : 'border-ods-border bg-ods-card text-ods-text-secondary hover:border-ods-text-secondary hover:text-ods-text-primary',
209
+ )}
210
+ >
211
+ {group.section}
212
+ </a>
213
+ )
214
+ })}
215
+ </nav>
216
+ )}
217
+ <div className="space-y-10">
218
+ {groups.map((group) => (
219
+ <section
220
+ key={group.slug ?? 'faq-uncategorized'}
221
+ id={group.slug ?? undefined}
222
+ className="scroll-mt-24 space-y-4"
223
+ >
224
+ {group.section && (
225
+ <CategoryHeading className={SECTION_HEADING_CLASS}>{group.section}</CategoryHeading>
226
+ )}
227
+ <FaqAccordion items={group.items} />
228
+ </section>
229
+ ))}
230
+ </div>
231
+ </div>
232
+ )
77
233
  }
78
234
 
79
235
  function FaqSkeleton() {
@@ -97,23 +253,27 @@ interface FaqsResponse {
97
253
  }
98
254
 
99
255
  /**
100
- * Generic, embeddable FAQ display surface.
256
+ * The FAQ display surface — ONE rendering on every host: the list grouped by
257
+ * `faq.section` (each category a heading + its own accordion, with a category
258
+ * jump-nav once there are 2+ categories). There is no flat/ungrouped mode and
259
+ * no page-vs-embedded shell fork; the standalone /faqs page and every embed
260
+ * render through this single path, so they cannot drift.
101
261
  *
102
- * - Standalone /faqs page: pass `initialFaqs` from the server + `heading` +
103
- * `emitJsonLd` with `jsonLd` overrides for SEO.
262
+ * - Standalone /faqs page: pass `initialFaqs` (SSR) + `heading={null}` (the
263
+ * page owns the <h1>) + `emitJsonLd` with `jsonLd` overrides for SEO.
104
264
  * - Per-entity embed: pass `entityType` + `entityId` (no `initialFaqs`); the
105
- * hook self-fetches and the public /api/faqs endpoint picks override-vs-fallback.
265
+ * hook self-fetches `GET /api/faqs`, and `heading` is this block's own <h2>.
106
266
  *
107
- * CONTRACT: the consuming app MUST implement `GET /api/faqs`. Without it,
108
- * useSelfFetch reports `error:true` (logged once); in embedded mode (heading
109
- * === null) this component renders nothing so the host page isn't disfigured.
267
+ * CONTRACT: the consuming app MUST implement `GET /api/faqs`. On a fetch error
268
+ * (or zero FAQs) the component renders nothing so the host page isn't
269
+ * disfigured. The host always supplies the page shell — this renders a bare
270
+ * <section>.
110
271
  */
111
272
  export function FaqSection({
112
273
  initialFaqs,
113
274
  entityType,
114
275
  entityId,
115
276
  heading,
116
- variant,
117
277
  emitJsonLd = false,
118
278
  jsonLd,
119
279
  className,
@@ -130,86 +290,35 @@ export function FaqSection({
130
290
  const { data, isLoading, error } = useSelfFetch<FaqsResponse>(url, { initialData })
131
291
 
132
292
  const faqs = data?.faqs ?? []
133
- const isEmbedded = variant ? variant === 'embedded' : heading === null
134
- const headingNode =
135
- heading === undefined ? (
136
- isEmbedded ? (
137
- // Embedded default is an <h2> — a host page already owns the <h1>,
138
- // and the schema/heading pair must read "Frequently Asked Questions"
139
- // (one FAQ heading per page, never tag/section names).
140
- <h2 className="text-h2 tracking-[-0.04em] text-ods-text-primary">{DEFAULT_HEADING_TEXT}</h2>
141
- ) : (
142
- <h1 className="text-h1 tracking-[-0.04em] text-ods-text-primary">{DEFAULT_HEADING_TEXT}</h1>
143
- )
144
- ) : (
145
- heading
146
- )
147
-
148
- // Embedded mode: degrade silently on error.
149
- if (error && isEmbedded) {
150
- return null
151
- }
293
+ // Grouped before the early returns so the hook order stays stable.
294
+ const groups = useMemo(() => (faqs.length > 0 ? groupFaqsBySection(faqs) : []), [faqs])
152
295
 
153
- // Embedded mode, zero FAQs after load: render nothing — an embedded host
154
- // page (blog/case-study detail) must not show an empty section shell.
155
- // The standalone /faqs page keeps its existing behavior.
156
- if (!isLoading && !error && faqs.length === 0 && isEmbedded) {
157
- return null
158
- }
296
+ // `undefined` → default <h2> title; `null` → the host page owns the <h1>, so
297
+ // no title renders here. `heading === null` also makes the category headings
298
+ // <h2> (directly under the page <h1>); otherwise they nest as <h3>.
299
+ const headingNode =
300
+ heading === undefined ? <h2 className={SECTION_HEADING_CLASS}>{DEFAULT_HEADING_TEXT}</h2> : heading
159
301
 
302
+ // Degrade silently — never show an error banner or an empty section shell
303
+ // where FAQs would be (host pages and the standalone surface both rely on it).
304
+ if (error) return null
305
+ if (!isLoading && faqs.length === 0) return null
160
306
  if (isLoading && faqs.length === 0) {
161
- // Embedded mode renders skeletons WITHOUT the standalone page shell —
162
- // a host detail page already provides <main> + gutters; nesting them
163
- // here would emit invalid markup and double padding.
164
- if (isEmbedded) {
165
- return (
166
- <div className={className}>
167
- <FaqSkeleton />
168
- </div>
169
- )
170
- }
171
- return (
172
- <main className={className ?? 'bg-ods-bg'}>
173
- <div className="max-w-[1920px] px-6 md:px-20 py-6 md:py-10 mx-auto">
174
- <FaqSkeleton />
175
- </div>
176
- </main>
177
- )
178
- }
179
-
180
- if (error && faqs.length === 0) {
181
307
  return (
182
- <main className={className ?? 'bg-ods-bg flex items-center justify-center py-20'}>
183
- <p className="text-ods-text-primary font-medium">Failed to load FAQs. Please try again later.</p>
184
- </main>
308
+ <div className={className}>
309
+ <FaqSkeleton />
310
+ </div>
185
311
  )
186
312
  }
187
313
 
188
314
  const schema = emitJsonLd ? buildFaqJsonLdFromFaqs(faqs, jsonLd) : null
189
315
 
190
- // ONE flat accordion on EVERY surface — `faq.section` becomes a per-row
191
- // chip, NOT a heading, so the page outline stays heading + h3(questions).
192
- // Order is the server's (post-specific first, then reused) — grouping by
193
- // section here would destroy it. The variants differ ONLY in shell:
194
- // standalone /faqs keeps its <main> + page gutters, embeds render bare.
195
- const accordion = <FaqAccordion items={toAccordionItems(faqs)} />
196
- const body = isEmbedded ? (
197
- <section className={className ?? 'space-y-10'}>
198
- {headingNode}
199
- {accordion}
200
- </section>
201
- ) : (
202
- <main className={className ?? 'bg-ods-bg'}>
203
- <div className="max-w-[1920px] px-6 md:px-20 py-6 md:py-10 mx-auto space-y-10">
204
- {headingNode}
205
- {accordion}
206
- </div>
207
- </main>
208
- )
209
-
210
316
  return (
211
317
  <>
212
- {body}
318
+ <section className={className ?? 'space-y-10'}>
319
+ {headingNode}
320
+ <GroupedFaqList groups={groups} categoryHeadingAs={heading === null ? 'h2' : 'h3'} />
321
+ </section>
213
322
  {schema && (
214
323
  <script
215
324
  type="application/ld+json"
@@ -2,19 +2,12 @@
2
2
 
3
3
  import React, { useRef, useState, useEffect, useCallback } from 'react'
4
4
  import { ChevronButton } from './ui/chevron-button'
5
- import { StatusBadge } from './ui/status-badge'
6
- import { TAG_BADGE_CLASS } from './features/entity-tag-badges'
7
5
  import { cn } from "../utils/cn"
8
6
 
9
7
  export interface FaqItem {
10
8
  id: number | string
11
9
  question: string
12
10
  answer: string
13
- /** Optional category label (faq.section = tag name) rendered under the
14
- * question as the product's standard tag badge — the same StatusBadge
15
- * card skin EntityTagBadges uses everywhere (never a heading, so the
16
- * document outline stays h2/h3 only). */
17
- badge?: string
18
11
  }
19
12
 
20
13
  interface FaqAccordionProps {
@@ -83,17 +76,10 @@ export function FaqAccordion({ items, defaultOpenIds = [] }: FaqAccordionProps)
83
76
  aria-expanded={isOpen}
84
77
  className="flex w-full items-center justify-between px-6 md:px-8 py-6 text-left focus:outline-none transition-colors cursor-pointer"
85
78
  >
86
- <div className="flex min-w-0 flex-col items-start gap-2 pr-4">
79
+ <div className="min-w-0 pr-4">
87
80
  <h3>
88
81
  {item.question}
89
82
  </h3>
90
- {item.badge && (
91
- <StatusBadge
92
- text={item.badge.toUpperCase()}
93
- variant="card"
94
- className={TAG_BADGE_CLASS}
95
- />
96
- )}
97
83
  </div>
98
84
  <div className="flex-shrink-0">
99
85
  <ChevronButton
@@ -10,6 +10,7 @@ import {
10
10
  import type { VideoTeaser } from '../../types/video-processing';
11
11
  import { Video } from './video';
12
12
  import { VideoBitesDisplay } from './video-bites-display';
13
+ import { SECTION_HEADING_CLASS } from '../layout/page-heading';
13
14
 
14
15
  /**
15
16
  * <EntityVideoSection> — public detail-page video block.
@@ -154,7 +155,7 @@ export function EntityVideoSection({
154
155
 
155
156
  {videoSummary && MarkdownRenderer && (
156
157
  <div className="flex flex-col gap-6 w-full min-w-0">
157
- <h2 className="text-h1 tracking-[-1.12px] text-ods-text-primary break-words">
158
+ <h2 className={`${SECTION_HEADING_CLASS} break-words`}>
158
159
  Summary
159
160
  </h2>
160
161
  <div className="text-h4 text-ods-text-primary break-words overflow-hidden">
@@ -5,6 +5,7 @@ import { Card } from '../ui/card';
5
5
  import { useNearViewport } from '../../hooks/use-near-viewport';
6
6
  import type { VideoTeaser } from '../../types/video-processing';
7
7
  import { Video } from './video';
8
+ import { SECTION_HEADING_CLASS } from '../layout/page-heading';
8
9
  import {
9
10
  RatioTabs,
10
11
  groupByAspectRatio,
@@ -116,7 +117,7 @@ export function VideoBitesDisplay({
116
117
  return (
117
118
  <div className="flex flex-col gap-6 w-full min-w-0">
118
119
  {showTitle && (
119
- <h2 className="text-h1 tracking-[-1.12px] text-ods-text-primary break-words">
120
+ <h2 className={`${SECTION_HEADING_CLASS} break-words`}>
120
121
  {title}
121
122
  </h2>
122
123
  )}
@@ -12,6 +12,15 @@ import type { ReactNode } from 'react'
12
12
  */
13
13
  export const PAGE_HEADING_CLASS = 'text-h1 text-ods-text-primary'
14
14
 
15
+ /**
16
+ * THE section-heading style — the ODS `text-h2` sub-title token
17
+ * (`--font-size-h2-sub-title` = 24 / 32 / 32px), one step below the page
18
+ * title so a section `<h2>`/`<h3>` is always visually distinguishable from
19
+ * the page's `<h1>`. Same single-source rule as PAGE_HEADING_CLASS: never
20
+ * hardcode a px ramp or re-assert the token's tracking on a section heading.
21
+ */
22
+ export const SECTION_HEADING_CLASS = 'text-h2 text-ods-text-primary'
23
+
15
24
  const DESCRIPTION_CLASS =
16
25
  "mt-6 max-w-[640px] font-['DM_Sans'] text-[16px] md:text-[18px] leading-[24px] md:leading-[28px] text-ods-text-secondary"
17
26
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { Terminal, DollarSign, Network, Users } from 'lucide-react';
5
+ import { SECTION_HEADING_CLASS } from './layout/page-heading';
5
6
 
6
7
  interface FeatureCardProps {
7
8
  icon: React.ReactNode;
@@ -11,7 +12,7 @@ interface FeatureCardProps {
11
12
 
12
13
  const FeatureCard: React.FC<FeatureCardProps> = ({ icon, title, description }) => {
13
14
  return (
14
- <div className="bg-ods-card border border-ods-border rounded-3xl p-6 flex flex-col gap-6 h-full hover:bg-[#252525] transition-colors duration-200">
15
+ <div className="bg-ods-card border border-ods-border rounded-3xl p-6 flex flex-col gap-6 h-full hover:bg-ods-bg-hover transition-colors duration-200">
15
16
  {/* Icon Container */}
16
17
  <div className="w-12 h-12 bg-ods-bg border border-ods-border rounded flex items-center justify-center">
17
18
  <div className="w-6 h-6 text-ods-text-secondary">
@@ -61,7 +62,7 @@ const OpenSourceFeatures: React.FC = () => {
61
62
  <div className="w-full max-w-[1920px] mx-auto px-6 md:px-20">
62
63
  {/* Section Title */}
63
64
  <div className="flex flex-col items-center gap-10">
64
- <h2 className="text-h1 text-center tracking-[-0.02em] text-ods-text-primary w-full">
65
+ <h2 className={`${SECTION_HEADING_CLASS} text-center w-full`}>
65
66
  <span className="text-ods-accent">100%</span>
66
67
  <span> Open-Source. </span>
67
68
  <span className="text-ods-accent">0%</span>
@@ -5,6 +5,7 @@ import { Button } from '../../ui/button'
5
5
  import { OnboardingStepCard } from './onboarding-step-card'
6
6
  import { useOnboardingState, type OnboardingStepConfig } from '../../../hooks/ui/use-onboarding-state'
7
7
  import { cn } from '../../../utils/cn'
8
+ import { SECTION_HEADING_CLASS } from '../../layout/page-heading'
8
9
 
9
10
  export interface OnboardingWalkthroughProps {
10
11
  steps: OnboardingStepConfig[]
@@ -171,7 +172,7 @@ export function OnboardingWalkthrough({
171
172
  <div className={cn('w-full space-y-4', className)}>
172
173
  {/* Header - responsive: stacks on mobile */}
173
174
  <div className="flex flex-col md:flex-row items-start md:items-center justify-between gap-3 md:gap-0">
174
- <h2 className="text-h2 tracking-[-0.48px] text-ods-text-primary">
175
+ <h2 className={SECTION_HEADING_CLASS}>
175
176
  Get Started
176
177
  </h2>
177
178
 
@@ -1,6 +1,7 @@
1
1
  "use client"
2
2
 
3
3
  import React from 'react';
4
+ import { SECTION_HEADING_CLASS } from './layout/page-heading';
4
5
 
5
6
  interface WhyItMattersItemProps {
6
7
  number: string;
@@ -14,7 +15,7 @@ const WhyItMattersItem: React.FC<WhyItMattersItemProps> = ({ number, title, desc
14
15
  <li
15
16
  className={`
16
17
  flex flex-col md:flex-row items-start gap-6 p-10 w-full
17
- transition-colors duration-200 hover:bg-[#2A2A2A]
18
+ transition-colors duration-200 hover:bg-ods-bg-hover
18
19
  ${!isLast ? 'border-b border-ods-border' : ''}
19
20
  `}
20
21
  >
@@ -61,7 +62,7 @@ const WhyItMatters = () => {
61
62
  return (
62
63
  <section className="bg-ods-bg">
63
64
  <div className="w-full max-w-[1920px] mx-auto px-6 md:px-20">
64
- <h2 className="text-h1 text-center text-ods-text-primary tracking-[-0.02em] mb-6">
65
+ <h2 className={`${SECTION_HEADING_CLASS} text-center mb-6`}>
65
66
  Why It Matters
66
67
  </h2>
67
68
  <div className="bg-ods-card border border-ods-border rounded-3xl overflow-hidden w-full">
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/contact/contact-form.tsx","../src/schemas/contact-schema.ts"],"sourcesContent":["'use client'\n\n/**\n * `<ContactForm />` — the canonical contact form used by every public\n * surface (TMCG join, case-study pitch, generic /contact, Help Center\n * ticket creation, etc.).\n *\n * Self-contained inside the lib — host-specific values (user id for\n * tracking, platform-specific contact reasons, reddit-click attribution\n * id) flow IN via props. The hub passes them via a thin\n * `<ContactForm>` wrapper that resolves them from `useAuth` /\n * `getAppConfig` / `getStoredRedditClickId`. Other embedders pass\n * whatever they have (or omit).\n *\n * Field-hide + custom-submit + extra-top-field knobs let one form\n * serve both contact and ticket-creation flows without forking:\n * - Contact page: rendered with all fields visible, built-in submit\n * flow to `/api/contact` via `useContactSubmission`.\n * - Ticket page: hides name/email/companySize/referralSource/\n * helpCategory; supplies `extraTopField` (a Subject input) +\n * `onCustomSubmit` wired to `useTicketActions.submitTicket`.\n */\n\nimport { useState, type ReactNode } from 'react'\nimport { useForm, Controller } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport {\n ContactSchema,\n type ContactFormData,\n companySizeOptions,\n referralSourceOptions,\n defaultHelpCategoryOptions,\n} from '../../schemas/contact-schema'\nimport {\n Button,\n type ButtonProps,\n Input,\n Textarea,\n Select,\n SelectTrigger,\n SelectValue,\n SelectContent,\n SelectItem,\n Label,\n} from '../ui'\nimport { useContactSubmission } from '../../hooks/use-contact-submission'\nimport { useHumanitySignals } from '../../hooks/use-humanity-signals'\nimport { HoneypotField } from '../ui/honeypot-field'\nimport {\n ChatAttachmentAddButton,\n ChatAttachmentChipStrip,\n} from '../chat/chat-attachment-bar'\nimport { useChatAttachments } from '../chat/hooks/use-chat-attachments'\nimport type { ChatAttachment } from '../chat/utils/chat-attachment-markdown'\n\n/**\n * Fields the caller can suppress. Six values — every primary form\n * field plus `name` and `email` (newly hideable so ticket-creation\n * surfaces can hide them; they still need to validate, so the caller\n * MUST supply pre-filled values via `defaultValues` when hiding them).\n */\nexport type ContactFormHideableField =\n | 'name'\n | 'email'\n | 'companySize'\n | 'referralSource'\n | 'helpCategory'\n | 'message'\n\nexport interface ContactFormProps {\n /** Host-side user id passed to `useContactSubmission` for attribution.\n * Hub wrapper passes `useAuth().user?.id`; lib's Help Center surface\n * passes `useChatIdentity().user?.id`. Omit for anon flows. */\n userId?: string\n /** Platform-specific help-category dropdown options. Hub wrapper\n * passes `getAppConfig().contact.contactReasons`. Defaults to the\n * lib's `defaultHelpCategoryOptions`. */\n helpCategoryOptions?: readonly string[]\n /** Reddit click attribution id. Caller resolves from wherever they\n * stash it (hub: sessionStorage via `getStoredRedditClickId`). When\n * set, it's spread into the submission payload. */\n rdtCid?: string\n /** Called after a successful submit so the caller can clear their\n * attribution storage (hub wrapper calls `clearStoredRedditClickId`).\n * Fires for BOTH the built-in and custom submit paths. */\n onSubmitSuccess?: () => void\n\n prefilledReason?: string\n prefilledMessage?: string\n hideFields?: ContactFormHideableField[]\n /** Authoritative pre-fill for any field the caller hides. Merged\n * into react-hook-form's `defaultValues` AFTER the legacy\n * `prefilledReason` / `prefilledMessage` props (caller-supplied\n * wins). REQUIRED when hiding `name` / `email` / `helpCategory` —\n * those fields are still validated by Zod even when not rendered. */\n defaultValues?: Partial<ContactFormData>\n /** Optional custom submit handler. When provided, the form bypasses\n * the built-in `useContactSubmission` flow (no /api/contact call,\n * no success-redirect, no built-in toast) — the caller owns the\n * entire side-effect chain. Reset + `onSubmitSuccess` still fire\n * on a successful await.\n *\n * Receives the schema-validated form payload PLUS the ready\n * attachments array (empty when `attachmentsEnabled === false` or\n * the user hasn't picked any). Caller forwards `attachments` to\n * whichever sink owns the upload (e.g. `actions.submitTicket`'s\n * `attachments` field for HubSpot Note engagements). */\n onCustomSubmit?: (data: ContactFormData, attachments: ChatAttachment[]) => Promise<void>\n /** Turn on the attachments bar (file `+` button + chip strip) using\n * the same lib primitives the chat composer uses\n * (`<ChatAttachmentAddButton>` + `<ChatAttachmentChipStrip>` +\n * `useChatAttachments`). When `false` (the default), the form\n * doesn't render the bar AND the attachments array passed to\n * `onCustomSubmit` is always empty. */\n attachmentsEnabled?: boolean\n /** Render slot for an EXTRA field at the very top of the form,\n * ABOVE the name/email row. Use this for ticket surfaces that need\n * a Subject input — the field is NOT part of `ContactSchema`, so\n * the caller manages its own state + validation and reads the\n * value back inside `onCustomSubmit`. */\n extraTopField?: ReactNode\n\n title?: string\n subtitle?: string\n footerText?: string\n noBorder?: boolean\n noPadding?: boolean\n buttonVariant?: ButtonProps['variant']\n buttonClassName?: string\n /** Submit-button label. Defaults to \"Send Message\". Override for\n * ticket surfaces (e.g. \"Open ticket\"). */\n submitLabel?: string\n /** Success-state submit-button label (shown briefly after submit on\n * the built-in flow). Defaults to \"Message Sent!\". Has no effect\n * when `onCustomSubmit` is provided — the caller owns success UX. */\n submitSuccessLabel?: string\n successRedirectUrl?: string\n successToastMessage?: string\n}\n\nexport function ContactForm({\n userId,\n helpCategoryOptions = defaultHelpCategoryOptions,\n rdtCid,\n onSubmitSuccess,\n prefilledReason,\n prefilledMessage,\n hideFields = [],\n defaultValues: defaultValuesProp,\n onCustomSubmit,\n extraTopField,\n attachmentsEnabled = false,\n title = 'Hit Us Up',\n subtitle,\n footerText = 'We typically respond within 24 hours. We respect your privacy – no spam, ever.',\n noBorder = false,\n noPadding = false,\n buttonVariant = 'accent',\n buttonClassName = '',\n submitLabel = 'Send Message',\n submitSuccessLabel = 'Message Sent!',\n successRedirectUrl = '/blog#community',\n successToastMessage = 'Redirecting you to join our community...',\n}: ContactFormProps = {}) {\n // Attachments staging — same hook the chat composer + ticket\n // detail-drawer composer use. Files upload to Supabase as soon as\n // the user picks them; `readyAttachments` is the wire-shape array\n // ready for the next submit. `hasInflightUploads` disables Send\n // until every upload settles.\n const attachments = useChatAttachments()\n // Built-in contact-API flow. Hook is called unconditionally (rules\n // of hooks); we just don't dispatch its `submit` when the caller\n // passes `onCustomSubmit`. The hook owns its own toast + redirect\n // chain so bypassing it cleanly hands all side-effects to the caller.\n const builtInSubmission = useContactSubmission({\n userId,\n successRedirectUrl,\n successToastMessage,\n })\n // Independent in-flight tracker for the custom path — we can't reuse\n // `builtInSubmission.isSubmitting` because that hook never sees a\n // request when `onCustomSubmit` is active.\n const [customSubmitting, setCustomSubmitting] = useState(false)\n\n // Invisible bot-protection signals (honeypot + timing). Spread into the\n // submit payload for BOTH the built-in and custom paths; reset on success.\n const { honeypotInputProps, getSignals, resetSignals } = useHumanitySignals()\n\n const isSubmitting = onCustomSubmit ? customSubmitting : builtInSubmission.isSubmitting\n // `isSuccess` only ever fires on the built-in path; custom callers\n // own their own UX (no \"Message Sent!\" button-label flicker).\n const isSuccess = onCustomSubmit ? false : builtInSubmission.isSuccess\n\n const {\n register,\n handleSubmit,\n control,\n formState: { errors },\n reset,\n } = useForm<ContactFormData>({\n resolver: zodResolver(ContactSchema),\n defaultValues: {\n ...(prefilledReason && { helpCategory: prefilledReason }),\n ...(prefilledMessage && { message: prefilledMessage }),\n // Caller-supplied defaults win over the legacy `prefilled*` props\n // (they're the authoritative seed for hidden fields).\n ...defaultValuesProp,\n },\n })\n\n const handleFormSubmit = async (data: ContactFormData) => {\n if (isSubmitting) return\n if (attachmentsEnabled && attachments.hasInflightUploads) return\n try {\n const payload = { ...data, ...(rdtCid && { rdt_cid: rdtCid }), ...getSignals() }\n const readyAttachments = attachmentsEnabled ? attachments.readyAttachments : []\n if (onCustomSubmit) {\n setCustomSubmitting(true)\n try {\n await onCustomSubmit(payload, readyAttachments)\n } finally {\n setCustomSubmitting(false)\n }\n } else {\n await builtInSubmission.submit(payload)\n }\n onSubmitSuccess?.()\n reset()\n resetSignals()\n if (attachmentsEnabled) attachments.clear()\n } catch {\n // Error toast is owned by the active flow:\n // - built-in: `useContactSubmission` toasts inside `submit()`.\n // - custom: the caller toasts inside `onCustomSubmit`.\n // Either way we swallow here so a thrown error doesn't crash the\n // form tree (react-hook-form's onSubmit handler rejects upward).\n }\n }\n\n const showName = !hideFields.includes('name')\n const showEmail = !hideFields.includes('email')\n const showNameEmailRow = showName || showEmail\n const showCompanySize = !hideFields.includes('companySize')\n const showReferralSource = !hideFields.includes('referralSource')\n const showHelpCategory = !hideFields.includes('helpCategory')\n const showMessage = !hideFields.includes('message')\n\n return (\n <div\n className={`h-full flex flex-col ${!noBorder ? 'border border-ods-border rounded-2xl md:rounded-3xl' : ''} ${!noPadding ? 'p-6 md:p-8 lg:p-10' : ''}`}\n >\n {(title || subtitle) && (\n <div className=\"mb-6 md:mb-8\">\n {title && (\n <h2 className=\"text-h2 tracking-[-0.04em] text-ods-text-primary mb-3 md:mb-4\">\n {title}\n </h2>\n )}\n {subtitle && (\n <p className=\"font-['DM_Sans'] font-medium text-[16px] md:text-[18px] leading-[24px] text-ods-text-primary\">\n {subtitle}\n </p>\n )}\n </div>\n )}\n\n <form\n onSubmit={handleSubmit(handleFormSubmit, (validationErrors) => {\n // When validation fails on a HIDDEN field (e.g. ticket form\n // hides name/email/helpCategory and seeds them via\n // `defaultValues`), there's no visible error UI for the user\n // — the submit button just appears dead. Log so the broken\n // defaultValues wiring is at least discoverable in DevTools.\n // eslint-disable-next-line no-console\n console.warn(\n '[ContactForm] submit blocked by validation:',\n Object.fromEntries(\n Object.entries(validationErrors).map(([k, v]) => [k, v?.message ?? v]),\n ),\n )\n })}\n className=\"flex flex-col flex-grow space-y-4 md:space-y-6\"\n >\n {/* Hidden inputs for fields that are required by `ContactSchema`\n but suppressed from the visible UI via `hideFields`. Without\n these, `register('name')` never runs, react-hook-form skips\n the field at submit time, and Zod's required-string check\n fails silently — the user clicks Submit and NOTHING visible\n happens (no error, no network call). The caller-supplied\n `defaultValues` seed the values; the hidden inputs just tell\n RHF to include them in the submit payload. */}\n {!showName && <input type=\"hidden\" {...register('name')} />}\n {!showEmail && <input type=\"hidden\" {...register('email')} />}\n {!showHelpCategory && <input type=\"hidden\" {...register('helpCategory')} />}\n {!showMessage && <input type=\"hidden\" {...register('message')} />}\n\n {/* Invisible honeypot — real users never fill it; bots that fill every field trip it. */}\n <HoneypotField {...honeypotInputProps} />\n\n {/* Extra top field (e.g. Subject for ticket forms). Rendered\n outside the schema-driven layout so the caller fully owns\n label / placeholder / state. */}\n {extraTopField}\n\n {showNameEmailRow && (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6\">\n {showName && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"name\">\n Your Name<span className=\"text-ods-accent\">*</span>\n </Label>\n <Input\n id=\"name\"\n type=\"text\"\n {...register('name')}\n placeholder=\"Jane Doe\"\n aria-invalid={!!errors.name}\n aria-describedby=\"name-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary px-3 h-12\"\n />\n {errors.name && (\n <span id=\"name-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.name.message}\n </span>\n )}\n </div>\n )}\n {showEmail && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"email\">\n Email<span className=\"text-ods-accent\">*</span>\n </Label>\n <Input\n id=\"email\"\n type=\"email\"\n {...register('email')}\n placeholder=\"jane@company.com\"\n aria-invalid={!!errors.email}\n aria-describedby=\"email-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary px-3 h-12\"\n />\n {errors.email && (\n <span id=\"email-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.email.message}\n </span>\n )}\n </div>\n )}\n </div>\n )}\n\n {(showCompanySize || showReferralSource) && (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6\">\n {showCompanySize && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"companySize\">Company Size</Label>\n <Controller\n control={control}\n name=\"companySize\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"companySize\"\n aria-label=\"Company Size\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Select company size\" />\n </SelectTrigger>\n <SelectContent>\n {companySizeOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.companySize && (\n <span id=\"companySize-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.companySize.message}\n </span>\n )}\n </div>\n )}\n {showReferralSource && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"referralSource\">How did you hear about us?</Label>\n <Controller\n control={control}\n name=\"referralSource\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"referralSource\"\n aria-label=\"Referral Source\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Select an option\" />\n </SelectTrigger>\n <SelectContent>\n {referralSourceOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.referralSource && (\n <span id=\"referralSource-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.referralSource.message}\n </span>\n )}\n </div>\n )}\n </div>\n )}\n\n {showHelpCategory && (\n <div className=\"flex flex-col\">\n <Label htmlFor=\"helpCategory\">\n Choose your main interest<span className=\"text-ods-accent\">*</span>\n </Label>\n <Controller\n control={control}\n name=\"helpCategory\"\n render={({ field }) => (\n <Select onValueChange={field.onChange} defaultValue={field.value}>\n <SelectTrigger\n id=\"helpCategory\"\n aria-label=\"Help Category\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary h-12 px-3\"\n >\n <SelectValue placeholder=\"Choose your main interest\" />\n </SelectTrigger>\n <SelectContent>\n {helpCategoryOptions.map((opt) => (\n <SelectItem key={opt} value={opt}>\n {opt}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n )}\n />\n {errors.helpCategory && (\n <span id=\"helpCategory-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.helpCategory.message}\n </span>\n )}\n </div>\n )}\n\n {showMessage && (\n <div className=\"flex flex-col flex-grow\">\n <Label htmlFor=\"message\">\n Your Message<span className=\"text-ods-accent\">*</span>\n </Label>\n <Textarea\n id=\"message\"\n {...register('message')}\n placeholder=\"Share your current challenges or questions about open-source alternatives...\"\n aria-invalid={!!errors.message}\n aria-describedby=\"message-error\"\n className=\"bg-ods-card border-ods-border text-ods-text-primary placeholder-ods-text-secondary h-full flex-grow\"\n />\n {errors.message && (\n <span id=\"message-error\" className=\"text-ods-error text-xs font-['DM_Sans'] mt-1\">\n {errors.message.message}\n </span>\n )}\n </div>\n )}\n\n {/* Attachments — only renders when `attachmentsEnabled` is on.\n Uses the SAME chip strip + add button + staging hook the\n chat composer and ticket-drawer composer use, so the visual\n chip styling + upload-progress UX are identical everywhere\n attachments appear. */}\n {attachmentsEnabled && (\n <div className=\"flex flex-col gap-2\">\n <ChatAttachmentChipStrip\n attachments={attachments.attachments}\n onRemove={attachments.removeAttachment}\n disabled={isSubmitting}\n />\n <div className=\"flex items-center gap-2\">\n <ChatAttachmentAddButton\n attachmentsEnabled\n attachmentsCount={attachments.attachments.length}\n onAddFiles={attachments.addFiles}\n disabled={isSubmitting}\n />\n <span className=\"text-xs text-ods-text-secondary\">\n Attach files (optional)\n </span>\n </div>\n </div>\n )}\n\n <div className=\"flex flex-col md:flex-row gap-4 md:gap-6 items-center justify-end w-full pt-2 mt-auto\">\n {footerText && (\n <p className=\"font-['DM_Sans'] text-ods-text-secondary text-xs md:text-sm leading-relaxed text-center md:text-left\">\n {footerText}\n </p>\n )}\n <Button\n type=\"submit\"\n loading={isSubmitting}\n disabled={\n isSubmitting ||\n isSuccess ||\n (attachmentsEnabled && attachments.hasInflightUploads)\n }\n variant={buttonVariant}\n className={`w-full md:w-auto ${buttonClassName}`}\n >\n {isSuccess ? submitSuccessLabel : submitLabel}\n </Button>\n </div>\n </form>\n </div>\n )\n}\n","import { z } from 'zod';\n\n// Dropdown option constants — re-exported by `<ContactForm>` consumers\n// that want to surface their own custom Select widgets keyed on the\n// same allowed-value set.\nexport const companySizeOptions = [\n '1-10',\n '11-50',\n '51-200',\n '201-500',\n '501-1000',\n '1001+',\n] as const;\n\nexport const referralSourceOptions = [\n 'Google',\n 'LinkedIn',\n 'Twitter/X',\n 'Reddit',\n 'Friend / Colleague',\n 'Other',\n] as const;\n\n// Default fallback options — used when the embedder doesn't supply\n// platform-specific help-category options via the `helpCategoryOptions`\n// prop on `<ContactForm>`.\nexport const defaultHelpCategoryOptions = [\n 'Open-Source Alternatives',\n 'Vendor Cost Reduction',\n 'MSP Best Practices',\n 'Partnerships',\n 'Press',\n 'Other',\n] as const;\n\n// Reusable LinkedIn URL validator — the single source of truth. Every\n// public form schema, every admin update schema, every HubSpot push\n// validator MUST reference this so validation rules cannot drift\n// across boundaries.\n//\n// Host validation parses the URL and checks the hostname suffix so an\n// adversarial input like `https://evil.com/linkedin.com/x` is rejected\n// (substring match would have accepted it — CodeQL alert\n// \"Incomplete URL substring sanitization\").\nexport const LinkedInUrlSchema = z\n .string()\n .url({ message: 'Please enter a valid LinkedIn URL' })\n .refine(\n (url) => {\n try {\n const host = new URL(url).hostname.toLowerCase()\n return host === 'linkedin.com' || host.endsWith('.linkedin.com')\n } catch {\n return false\n }\n },\n {\n message: 'Please enter a valid LinkedIn profile URL',\n },\n )\n .optional()\n .or(z.literal(''));\n\n/**\n * Base schema — fields shared by every contact-style form (main contact\n * form, TMCG join, data-room request, case-study pitch, etc.). Any\n * field that exists on a form but NOT on this schema is silently\n * stripped by `safeParse` — that's exactly the bug the LinkedIn field\n * hit historically.\n */\nexport const ContactBaseSchema = z.object({\n name: z\n .string()\n .min(2, { message: 'Name must be at least 2 characters' })\n .max(255, { message: 'Name is too long' }),\n email: z\n .string()\n .email({ message: 'Please enter a valid email address' })\n .max(255),\n linkedin_url: LinkedInUrlSchema,\n helpCategory: z\n .string()\n .min(1, { message: 'Please select what we can help you with' })\n .max(255, { message: 'Help category is too long' }),\n message: z\n .string()\n .min(10, { message: 'Message must be at least 10 characters' })\n .max(5000, { message: 'Message is too long (5,000 character limit)' }),\n rdt_cid: z.string().optional(),\n});\n\n// Public POST /api/contact validator — base + dropdown fields used by\n// the generic contact form. Other form-specific schemas extend\n// `ContactBaseSchema`.\nexport const ContactSchema = ContactBaseSchema.extend({\n companySize: z\n .string()\n .optional()\n .refine((val) => !val || companySizeOptions.includes(val as (typeof companySizeOptions)[number]), {\n message: 'Please select a valid company size',\n }),\n referralSource: z\n .string()\n .optional()\n .refine((val) => !val || referralSourceOptions.includes(val as (typeof referralSourceOptions)[number]), {\n message: 'Please select a valid referral source',\n }),\n});\n\nexport type ContactFormData = z.infer<typeof ContactSchema>;\n\nexport interface ContactApiResponse {\n success: boolean;\n error?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,gBAAgC;AACzC,SAAS,SAAS,kBAAkB;AACpC,SAAS,mBAAmB;;;ACzB5B,SAAS,SAAS;AAKX,IAAM,qBAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,wBAAwB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAKO,IAAM,6BAA6B;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAWO,IAAM,oBAAoB,EAC9B,OAAO,EACP,IAAI,EAAE,SAAS,oCAAoC,CAAC,EACpD;AAAA,EACC,CAAC,QAAQ;AACP,QAAI;AACF,YAAM,OAAO,IAAI,IAAI,GAAG,EAAE,SAAS,YAAY;AAC/C,aAAO,SAAS,kBAAkB,KAAK,SAAS,eAAe;AAAA,IACjE,QAAQ;AACN,aAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA;AAAA,IACE,SAAS;AAAA,EACX;AACF,EACC,SAAS,EACT,GAAG,EAAE,QAAQ,EAAE,CAAC;AASZ,IAAM,oBAAoB,EAAE,OAAO;AAAA,EACxC,MAAM,EACH,OAAO,EACP,IAAI,GAAG,EAAE,SAAS,qCAAqC,CAAC,EACxD,IAAI,KAAK,EAAE,SAAS,mBAAmB,CAAC;AAAA,EAC3C,OAAO,EACJ,OAAO,EACP,MAAM,EAAE,SAAS,qCAA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