@sovereignsquad/gds-core 3.9.0 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/GdsBadge-DqTdnomt.d.mts +417 -0
  2. package/dist/GdsBadge-DqTdnomt.d.ts +417 -0
  3. package/dist/PartnerDiscovery-As_-JKtb.d.ts +732 -0
  4. package/dist/PartnerDiscovery-Bwxixtka.d.mts +732 -0
  5. package/dist/QuickStartCard-CB7r-85z.d.ts +17500 -0
  6. package/dist/QuickStartCard-xIP1gbCL.d.mts +17500 -0
  7. package/dist/chunk-2AX4NCID.mjs +9 -0
  8. package/dist/chunk-2IUOZG4C.mjs +9 -0
  9. package/dist/chunk-2XZMNT7I.mjs +338 -0
  10. package/dist/chunk-3D7BVS7D.mjs +9 -0
  11. package/dist/chunk-4LG6EED4.mjs +338 -0
  12. package/dist/chunk-6LULEPIE.mjs +9 -0
  13. package/dist/chunk-6PBDLFSF.mjs +338 -0
  14. package/dist/{chunk-TQ7ZYMEA.mjs → chunk-BH2SMTND.mjs} +2258 -4014
  15. package/dist/chunk-BHR4A3C6.mjs +338 -0
  16. package/dist/chunk-CNTTKK3H.mjs +338 -0
  17. package/dist/chunk-GGDCO5HR.mjs +338 -0
  18. package/dist/chunk-GKNSUUUE.mjs +338 -0
  19. package/dist/chunk-GMK5GXWR.mjs +338 -0
  20. package/dist/chunk-H2QNW4D5.mjs +1768 -0
  21. package/dist/chunk-IHPZ7BNV.mjs +338 -0
  22. package/dist/chunk-J66ITCXC.mjs +473 -0
  23. package/dist/chunk-J6MXKFIM.mjs +9 -0
  24. package/dist/chunk-JTMPFTCK.mjs +338 -0
  25. package/dist/{chunk-BUC7QXRO.mjs → chunk-KFEPREUF.mjs} +13 -5
  26. package/dist/chunk-LNVLXOLI.mjs +9 -0
  27. package/dist/chunk-MAIU557K.mjs +9 -0
  28. package/dist/chunk-MPZFCWWS.mjs +210 -0
  29. package/dist/chunk-NWS7KJ2G.mjs +245 -0
  30. package/dist/chunk-OC3M4CZY.mjs +9 -0
  31. package/dist/chunk-QO653DAE.mjs +338 -0
  32. package/dist/chunk-RCLWUNMR.mjs +9 -0
  33. package/dist/chunk-SHQDVHGR.mjs +338 -0
  34. package/dist/{chunk-5AJJNRZF.mjs → chunk-TJ3WMH25.mjs} +1916 -2026
  35. package/dist/chunk-VU2JLVD3.mjs +89 -0
  36. package/dist/chunk-W5O2JSVK.mjs +20 -0
  37. package/dist/chunk-WNOWHB26.mjs +9 -0
  38. package/dist/chunk-XLPTCIXT.mjs +9 -0
  39. package/dist/chunk-ZCQXBKDM.mjs +24 -0
  40. package/dist/chunk-ZFGYQSNR.mjs +33 -0
  41. package/dist/client.d.mts +1296 -37
  42. package/dist/client.d.ts +1296 -37
  43. package/dist/client.js +11039 -6379
  44. package/dist/client.mjs +273 -58
  45. package/dist/en-Dd7uvXnv.d.mts +336 -0
  46. package/dist/en-Dd7uvXnv.d.ts +336 -0
  47. package/dist/index.d.mts +632 -5
  48. package/dist/index.d.ts +632 -5
  49. package/dist/index.js +21618 -14851
  50. package/dist/index.mjs +2138 -59
  51. package/dist/locales/lazy/all.d.mts +2 -0
  52. package/dist/locales/lazy/all.d.ts +2 -0
  53. package/dist/locales/lazy/all.js +1 -0
  54. package/dist/locales/lazy/all.mjs +24 -0
  55. package/dist/locales/lazy/ar.d.mts +2 -0
  56. package/dist/locales/lazy/ar.d.ts +2 -0
  57. package/dist/locales/lazy/ar.js +683 -0
  58. package/dist/locales/lazy/ar.mjs +4 -0
  59. package/dist/locales/lazy/de.d.mts +2 -0
  60. package/dist/locales/lazy/de.d.ts +2 -0
  61. package/dist/locales/lazy/de.js +683 -0
  62. package/dist/locales/lazy/de.mjs +4 -0
  63. package/dist/locales/lazy/es.d.mts +2 -0
  64. package/dist/locales/lazy/es.d.ts +2 -0
  65. package/dist/locales/lazy/es.js +683 -0
  66. package/dist/locales/lazy/es.mjs +4 -0
  67. package/dist/locales/lazy/fr.d.mts +2 -0
  68. package/dist/locales/lazy/fr.d.ts +2 -0
  69. package/dist/locales/lazy/fr.js +683 -0
  70. package/dist/locales/lazy/fr.mjs +4 -0
  71. package/dist/locales/lazy/he.d.mts +2 -0
  72. package/dist/locales/lazy/he.d.ts +2 -0
  73. package/dist/locales/lazy/he.js +683 -0
  74. package/dist/locales/lazy/he.mjs +4 -0
  75. package/dist/locales/lazy/hu.d.mts +2 -0
  76. package/dist/locales/lazy/hu.d.ts +2 -0
  77. package/dist/locales/lazy/hu.js +683 -0
  78. package/dist/locales/lazy/hu.mjs +4 -0
  79. package/dist/locales/lazy/index.d.mts +25 -0
  80. package/dist/locales/lazy/index.d.ts +25 -0
  81. package/dist/locales/lazy/index.js +384 -0
  82. package/dist/locales/lazy/index.mjs +9 -0
  83. package/dist/locales/lazy/it.d.mts +2 -0
  84. package/dist/locales/lazy/it.d.ts +2 -0
  85. package/dist/locales/lazy/it.js +683 -0
  86. package/dist/locales/lazy/it.mjs +4 -0
  87. package/dist/locales/lazy/ja.d.mts +2 -0
  88. package/dist/locales/lazy/ja.d.ts +2 -0
  89. package/dist/locales/lazy/ja.js +683 -0
  90. package/dist/locales/lazy/ja.mjs +4 -0
  91. package/dist/locales/lazy/ko.d.mts +2 -0
  92. package/dist/locales/lazy/ko.d.ts +2 -0
  93. package/dist/locales/lazy/ko.js +683 -0
  94. package/dist/locales/lazy/ko.mjs +4 -0
  95. package/dist/locales/lazy/ru.d.mts +2 -0
  96. package/dist/locales/lazy/ru.d.ts +2 -0
  97. package/dist/locales/lazy/ru.js +683 -0
  98. package/dist/locales/lazy/ru.mjs +4 -0
  99. package/dist/locales/lazy/zh.d.mts +2 -0
  100. package/dist/locales/lazy/zh.d.ts +2 -0
  101. package/dist/locales/lazy/zh.js +683 -0
  102. package/dist/locales/lazy/zh.mjs +4 -0
  103. package/dist/map.css +664 -0
  104. package/dist/map.d.mts +118 -0
  105. package/dist/map.d.ts +118 -0
  106. package/dist/map.js +777 -0
  107. package/dist/map.mjs +395 -0
  108. package/dist/reference-theme-explorer.d.mts +34 -0
  109. package/dist/reference-theme-explorer.d.ts +34 -0
  110. package/dist/reference-theme-explorer.js +8322 -0
  111. package/dist/reference-theme-explorer.mjs +1988 -0
  112. package/dist/rich-text-editor.d.mts +32 -0
  113. package/dist/rich-text-editor.d.ts +32 -0
  114. package/dist/rich-text-editor.js +469 -0
  115. package/dist/rich-text-editor.mjs +115 -0
  116. package/dist/server.d.mts +112 -248
  117. package/dist/server.d.ts +112 -248
  118. package/dist/server.js +6797 -1679
  119. package/dist/server.mjs +588 -55
  120. package/package.json +104 -9
  121. package/dist/AISearchCard-Bbnsd-yl.d.mts +0 -7786
  122. package/dist/AISearchCard-Bbnsd-yl.d.ts +0 -7786
@@ -0,0 +1,732 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, CSSProperties } from 'react';
3
+ import { a as GdsBadgeAccentName, G as GdsBadgeAccentShade, b as GdsIconKey } from './GdsBadge-DqTdnomt.js';
4
+ import { GdsThemePresetId } from '@sovereignsquad/gds-theme';
5
+
6
+ /**
7
+ * Shared foundations for GDS's generated-imagery system (epic #503): a seeded
8
+ * PRNG so composed art is deterministic (same entity id, same result, every
9
+ * render, on server and client alike), and a palette resolver so that art can
10
+ * be either theme-managed (beautiful against any consumer's brand, zero
11
+ * config) or category-managed (the existing curated accent system, for
12
+ * consumers who want category color to stay stable across themes). No
13
+ * component lives here yet — `GdsGeneratedThumbnail`/`GdsGeneratedHero`
14
+ * (issues #505/#506) are the first consumers of this module.
15
+ */
16
+ /**
17
+ * A small, dependency-free deterministic PRNG (mulberry32) seeded from an
18
+ * arbitrary string via FNV-1a hashing. Never use `Math.random()` for
19
+ * generated-art placement: the same entity id must produce the same
20
+ * composition on every render, including the first server-rendered paint,
21
+ * or hydration mismatches and "the card looks different every reload" bugs
22
+ * follow directly.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const next = gdsSeededRandom(listing.id);
27
+ * const rotationDeg = (next() - 0.5) * 24; // same listing.id -> same angle, always
28
+ * ```
29
+ */
30
+ declare function gdsSeededRandom(seed: string): () => number;
31
+ /** Which color source a generated-art palette resolves from. See `GENERATED_IMAGERY.md` (#507) for the full comparison once it ships. */
32
+ type GdsGeneratedPaletteSource = 'theme' | 'category';
33
+ /** A resolved primary/accent color pair — the two hues generated art composes from. */
34
+ interface GdsGeneratedPaletteColors {
35
+ /** Dominant hue: the wash/fill color. */
36
+ primary: string;
37
+ /** Secondary hue: badges, motif highlights, gradient endpoints. */
38
+ accent: string;
39
+ }
40
+ /** Options shared by both palette resolvers ({@link gdsGeneratedPaletteCssRefs} and {@link resolveGdsGeneratedPaletteHex}). */
41
+ interface GdsGeneratedPaletteOptions {
42
+ /** Defaults to `'theme'`. */
43
+ paletteSource?: GdsGeneratedPaletteSource;
44
+ /** Required when `paletteSource` is `'category'`. */
45
+ category?: GdsBadgeAccentName;
46
+ /** `'category'` mode only. Defaults to `'base'`. */
47
+ shade?: GdsBadgeAccentShade;
48
+ /**
49
+ * Explicit override — wins over `paletteSource` entirely when given, and is
50
+ * used exactly as supplied (no CSS-var wrapping, no lookup). This is the
51
+ * only way to resolve a custom, non-built-in brand theme (one made with a
52
+ * consumer's own `createBrandTheme(...)`, not one of GDS's 25 built-in
53
+ * presets) for {@link resolveGdsGeneratedPaletteHex} — GDS has no static
54
+ * record of a consumer's own brand values to look up outside a live DOM.
55
+ */
56
+ colors?: GdsGeneratedPaletteColors;
57
+ /**
58
+ * Background to tint the resolved palette toward. On {@link gdsGeneratedPaletteCssRefs}
59
+ * (live DOM) this must be a CSS color/var reference, mixed via `color-mix()`; on
60
+ * {@link resolveGdsGeneratedPaletteHex} (no live DOM) it must be a literal hex, mixed via
61
+ * `mixCssColors`. Requires `mixRatio`. Does not apply when `colors` is given — an explicit
62
+ * override is used exactly as supplied.
63
+ */
64
+ tintWithBackground?: string;
65
+ /** Weight of the original palette color, `0`–`1`. Required when `tintWithBackground` is given. */
66
+ mixRatio?: number;
67
+ }
68
+ /** A resolved palette plus which strategy actually produced it. */
69
+ interface GdsGeneratedPalette extends GdsGeneratedPaletteColors {
70
+ source: GdsGeneratedPaletteSource | 'override';
71
+ }
72
+ declare function gdsGeneratedPaletteCssRefs(options?: GdsGeneratedPaletteOptions): GdsGeneratedPalette;
73
+ /** {@link GdsGeneratedPaletteOptions} plus what {@link resolveGdsGeneratedPaletteHex} additionally needs to resolve a literal hex value for `'theme'` mode. */
74
+ interface ResolveGdsGeneratedPaletteHexOptions extends GdsGeneratedPaletteOptions {
75
+ /** One of the 25 built-in presets, required for `'theme'` mode unless `colors` is supplied instead. */
76
+ themePresetId?: GdsThemePresetId;
77
+ /** Defaults to `'light'`. */
78
+ colorScheme?: 'light' | 'dark';
79
+ }
80
+ declare function resolveGdsGeneratedPaletteHex(options?: ResolveGdsGeneratedPaletteHexOptions): GdsGeneratedPalette;
81
+
82
+ /**
83
+ * GdsGeneratedThumbnail (epic #503, issue 505): a deterministic, zero-network
84
+ * SVG+HTML card thumbnail composed entirely from a listing's own category
85
+ * data — no image hosting, no AI image generation, no per-consumer design
86
+ * work. Generalizes a ClassScout engineering proposal (verified against real
87
+ * `GdsMapPinBadge`/`gdsBadgeAccentShades` values before this was built) into
88
+ * a theme-managed GDS primitive: `paletteSource: 'theme'` (default) resolves
89
+ * from the active theme's `brand.primary`/`brand.accent` tokens, so it's
90
+ * on-brand for any consumer with zero config; `paletteSource: 'category'`
91
+ * opts into the existing fixed curated-accent system for consumers who want
92
+ * category color to stay stable across theme changes.
93
+ *
94
+ * **Two rendering layers, two technologies, on purpose.** The background
95
+ * (accent wash + oversized low-opacity icon motif) is decorative and is
96
+ * drawn as inline SVG so it's zero-network and forced-colors-inert by
97
+ * construction. The badges are real information (a category name a screen
98
+ * reader must announce, text that must remain selectable/translatable) and
99
+ * are rendered as HTML, absolutely positioned over the SVG — not composited
100
+ * into it. This also means `GdsBadge`/`GdsBadgeStack` (both HTML-rooted)
101
+ * aren't reusable here as-is: `GdsBadge`'s `accent`/`tone` props are closed
102
+ * unions that can't accept an arbitrary resolved theme color, so the badge
103
+ * pill here is a small dedicated element instead.
104
+ *
105
+ * **Contrast is guaranteed, not assumed, for `paletteSource: 'theme'`.**
106
+ * `'theme'` mode's colors arrive as CSS `var(...)` references — there is no
107
+ * live-resolved hex value in JS to run a contrast check against. Every
108
+ * surface that carries fixed white/inverse text (the badge pill; the
109
+ * gradient's dark stop) is pushed through
110
+ * `color-mix(in srgb, <color> 30%, black)` first: even the lightest
111
+ * possible input (pure white) mixed at that ratio still clears 7:1 against
112
+ * white text, so the guarantee holds for every theme without needing to
113
+ * know its actual values. `paletteSource: 'category'` colors are already
114
+ * individually verified ≥4.5:1 against white (`gdsBadgeAccentShades`'s own
115
+ * test suite); the same mix is applied anyway for one visual language
116
+ * across both modes, not because category mode needs it.
117
+ *
118
+ * A headless, non-React `buildGdsThumbnailSvg()` twin for OG/share-image use
119
+ * (issue 508) lives in `generated-art-svg.ts`, exported from
120
+ * `@sovereignsquad/gds-core/server` only — it needs hand-rendered SVG
121
+ * `<text>` for the badge labels (no HTML/CSS cascade outside a browser),
122
+ * real enough of a difference from this component's HTML badge layer that
123
+ * it's a genuinely separate implementation, not a thin wrapper around this
124
+ * one. See `docs/GENERATED_IMAGERY.md`'s OG-image recipe section.
125
+ */
126
+ /** One ranked category driving {@link GdsGeneratedThumbnail}'s motif and badges. */
127
+ interface GdsGeneratedThumbnailCategory {
128
+ /** Stable identity for React keys — not rendered. */
129
+ key: string;
130
+ /** Real, consumer-supplied category name (never an icon library's own display name). */
131
+ label: string;
132
+ /** A canonical `GdsIcons` key, or any externally-sourced icon element. */
133
+ icon: GdsIconKey | ReactNode;
134
+ /** When given, this badge renders as a real button (native focus/click/keyboard) instead of static content, and fires with the category's `key` on activation. */
135
+ onSelect?: (key: string) => void;
136
+ }
137
+ /** A consumer-supplied region for the `region-mosaic` background strategy — normalized fractions of the thumbnail's own box, same contract as {@link GdsGeneratedHero}'s identically-named type. */
138
+ interface GdsGeneratedThumbnailRegion {
139
+ /** Left edge, 0-1. */
140
+ x0: number;
141
+ /** Top edge, 0-1. */
142
+ y0: number;
143
+ /** Right edge, 0-1. */
144
+ x1: number;
145
+ /** Bottom edge, 0-1. */
146
+ y1: number;
147
+ /** Relative tint weight (higher = more visible). Defaults to `1`. */
148
+ weight?: number;
149
+ }
150
+ /**
151
+ * Background strategy (issue 508/#183 goal 2). `'wash'` (the pre-existing accent gradient plus a
152
+ * single oversized low-opacity lead-category motif) is the default and is BYTE-IDENTICAL to this
153
+ * component's behavior before this option existed — every current consumer is unaffected. The other
154
+ * three strategies REPLACE that single motif with a richer, still fully GDS-generated texture, ported
155
+ * directly from {@link GdsGeneratedHero}'s identical `background` option (`'mosaic-abstract'`: a seeded
156
+ * abstract tile field; `'icon-field'`: a scatter of the thumbnail's own `categories` icons at low
157
+ * opacity; `{type:'region-mosaic', regions}`: consumer-supplied bounding boxes, e.g. neighborhood
158
+ * shapes) — see that component's docs for the full rationale. The gradient wash itself is never
159
+ * replaced; it stays as the base layer every strategy renders over.
160
+ */
161
+ type GdsGeneratedThumbnailBackground = 'wash' | 'mosaic-abstract' | 'icon-field' | {
162
+ type: 'region-mosaic';
163
+ regions: GdsGeneratedThumbnailRegion[];
164
+ };
165
+ /** Supported card aspect ratios. */
166
+ type GdsGeneratedThumbnailAspectRatio = '3:2' | '16:9' | '4:3' | '1:1';
167
+ /** Props for {@link GdsGeneratedThumbnail}. */
168
+ interface GdsGeneratedThumbnailProps {
169
+ /** Stable entity id (e.g. a listing id) driving the deterministic motif placement — same seed, same composition, every render. */
170
+ seed: string;
171
+ /** Ranked categories: index 0 is the lead badge and the motif source; the rest render as icon-only secondary badges up to `maxBadges`. At least one required. */
172
+ categories: GdsGeneratedThumbnailCategory[];
173
+ /** Defaults to `'theme'`. */
174
+ paletteSource?: GdsGeneratedPaletteSource;
175
+ /** Required when `paletteSource` is `'category'`. */
176
+ category?: GdsBadgeAccentName;
177
+ /** `'category'` mode only. Defaults to `'base'`. */
178
+ shade?: GdsBadgeAccentShade;
179
+ /** Explicit palette override — wins over `paletteSource` entirely when given. */
180
+ colors?: GdsGeneratedPaletteColors;
181
+ /** CSS color/var reference to tint the resolved palette toward. Requires `mixRatio`. */
182
+ tintWithBackground?: string;
183
+ /** Weight of the original palette color, `0`–`1`. Required when `tintWithBackground` is given. */
184
+ mixRatio?: number;
185
+ /** Defaults to `'3:2'`. */
186
+ aspectRatio?: GdsGeneratedThumbnailAspectRatio;
187
+ /** Maximum badges shown (1 lead + up to `maxBadges - 1` secondary). Defaults to `3`. */
188
+ maxBadges?: number;
189
+ /**
190
+ * `'ranked'` (default) renders the category badges over the motif. `'none'` renders the motif
191
+ * alone.
192
+ *
193
+ * Motif-only exists for the case where the thumbnail is a **fallback image** rather than a
194
+ * summary: `ListingCard` shows one when a listing has no photo, and the card already prints
195
+ * the title directly beneath it. Repeating it in a badge duplicated the text on screen and in
196
+ * the accessibility tree — `getByText` started matching two nodes, which is the machine
197
+ * noticing what a reader would have seen.
198
+ */
199
+ badges?: 'ranked' | 'none';
200
+ /** Opacity of the background icon motif (0-1). Defaults to `0.14`. Ignored when `background` is not `'wash'` — the alternate strategies manage their own shape opacities. */
201
+ motifOpacity?: number;
202
+ /** Defaults to `'wash'` (unchanged pre-existing behavior). See {@link GdsGeneratedThumbnailBackground}. */
203
+ background?: GdsGeneratedThumbnailBackground;
204
+ /**
205
+ * Optional overall name for the whole composition. When given, the root
206
+ * renders `role="group"` with this label — `role="img"` is deliberately
207
+ * not used here: unlike `GdsBadgeStack`/`GdsMapPinBadge`, this component's
208
+ * badges are individually meaningful content (real category names a
209
+ * screen reader must be able to reach one at a time), and `role="img"`
210
+ * would collapse them into a single opaque graphic, hiding them. The
211
+ * badges stay in the accessibility tree and keep their own labels
212
+ * regardless of whether `label` is set — only the SVG background
213
+ * (gradient + motif) is `aria-hidden`, unconditionally, since that part
214
+ * really is pure decoration.
215
+ */
216
+ label?: string;
217
+ className?: string;
218
+ style?: CSSProperties;
219
+ }
220
+ /**
221
+ * Card-scale generated thumbnail: an accent wash, an oversized low-opacity
222
+ * icon motif, and up to `maxBadges` ranked category badges. See the module
223
+ * docs for the palette/contrast/two-layer rationale.
224
+ *
225
+ * @example
226
+ * ```tsx
227
+ * <GdsGeneratedThumbnail
228
+ * seed={listing.id}
229
+ * categories={[
230
+ * { key: 'soccer', label: 'Soccer', icon: <IconBallFootball /> },
231
+ * { key: 'basketball', label: 'Basketball', icon: <IconBallBasketball /> },
232
+ * ]}
233
+ * />
234
+ * <GdsGeneratedThumbnail seed={listing.id} categories={categories} paletteSource="category" category="forest" shade="deep" />
235
+ * ```
236
+ */
237
+ declare function GdsGeneratedThumbnail({ seed, categories, paletteSource, category, shade, colors, tintWithBackground, mixRatio, aspectRatio, maxBadges, badges, motifOpacity, background, label, className, style, }: GdsGeneratedThumbnailProps): react.JSX.Element;
238
+
239
+ /**
240
+ * GdsGeneratedHero (epic #503, issue 506): a deterministic, zero-network
241
+ * generated backdrop for a page/section hero — a background (one of four
242
+ * pluggable strategies) plus a seeded scatter of up to 6 category badges at
243
+ * a fixed size ladder. This is the backdrop only, not a full hero-with-copy
244
+ * component: eyebrow/title/description/CTAs stay whatever the consumer
245
+ * already renders (e.g. `EditorialHero`, or their own copy) — `GdsGeneratedHero`
246
+ * supplies `background: absolute; inset: 0` art to sit behind it.
247
+ *
248
+ * Shares its palette/contrast/accessibility architecture with
249
+ * `GdsGeneratedThumbnail` — see that module's docs for the full rationale
250
+ * (`paletteSource` theme-vs-category tradeoff, the `color-mix(...30%,
251
+ * black)` contrast guarantee for arbitrary theme colors, and why badges are
252
+ * real HTML rather than composited into the SVG). The one accessibility
253
+ * difference: `label` is **required** here, not optional — a hero backdrop
254
+ * is never used without adjacent context the way a thumbnail sometimes is
255
+ * beside a card title, so there's no decorative-only case to default to.
256
+ *
257
+ * **Fixed slots, not free placement.** Six freely-scattered marks at random
258
+ * sizes reads as clutter and buries whatever headline sits over this
259
+ * backdrop. Six fixed position slots at three sizes (one large, two medium,
260
+ * three small — small ones at reduced opacity, reading as depth rather than
261
+ * debris) is the actual composition; the seed only shuffles which ranked
262
+ * badge lands in which same-size slot (plus a little jitter), never the
263
+ * slot geometry itself or the size-to-rank mapping.
264
+ */
265
+ /** One ranked category badge scattered over the hero backdrop. */
266
+ interface GdsGeneratedHeroBadge {
267
+ key: string;
268
+ label: string;
269
+ icon: GdsIconKey | ReactNode;
270
+ /** When given, this badge renders as a real button (native focus/click/keyboard) instead of static content, and fires with the category's `key` on activation. */
271
+ onSelect?: (key: string) => void;
272
+ }
273
+ /** A consumer-supplied region for the `region-mosaic` background strategy — normalized fractions of the hero's own box, so GDS never needs real geo math or projection logic. */
274
+ interface GdsGeneratedHeroRegion {
275
+ /** Left edge, 0-1. */
276
+ x0: number;
277
+ /** Top edge, 0-1. */
278
+ y0: number;
279
+ /** Right edge, 0-1. */
280
+ x1: number;
281
+ /** Bottom edge, 0-1. */
282
+ y1: number;
283
+ /** Relative tint weight (higher = more visible). Defaults to `1`. */
284
+ weight?: number;
285
+ }
286
+ /**
287
+ * Background strategy. `'wash'` (a flat/gradient accent panel) needs no
288
+ * data and is the true turnkey default. `'mosaic-abstract'` and
289
+ * `'icon-field'` are also data-free (seeded generative texture, and a
290
+ * scatter of the `badges` icons at low opacity, respectively).
291
+ * `{ type: 'region-mosaic', regions }` is how a consumer with their own geo
292
+ * bounding-box data (e.g. neighborhood boxes) builds a map-like mosaic —
293
+ * GDS renders the shape, the consumer supplies every region.
294
+ */
295
+ type GdsGeneratedHeroBackground = 'wash' | 'mosaic-abstract' | 'icon-field' | {
296
+ type: 'region-mosaic';
297
+ regions: GdsGeneratedHeroRegion[];
298
+ };
299
+ /** Supported hero aspect ratios. */
300
+ type GdsGeneratedHeroAspectRatio = '21:9' | '16:9' | '3:1';
301
+ /** Props for {@link GdsGeneratedHero}. */
302
+ interface GdsGeneratedHeroProps {
303
+ /** Stable entity id (e.g. a page/location id) driving the deterministic background texture and badge scatter. */
304
+ seed: string;
305
+ /** Defaults to `'theme'`. */
306
+ paletteSource?: GdsGeneratedPaletteSource;
307
+ /** Required when `paletteSource` is `'category'`. */
308
+ category?: GdsBadgeAccentName;
309
+ /** `'category'` mode only. Defaults to `'base'`. */
310
+ shade?: GdsBadgeAccentShade;
311
+ /** Explicit palette override — wins over `paletteSource` entirely when given. */
312
+ colors?: GdsGeneratedPaletteColors;
313
+ /** CSS color/var reference to tint the resolved palette toward. Requires `mixRatio`. */
314
+ tintWithBackground?: string;
315
+ /** Weight of the original palette color, `0`–`1`. Required when `tintWithBackground` is given. */
316
+ mixRatio?: number;
317
+ /** Defaults to `'wash'`. */
318
+ background?: GdsGeneratedHeroBackground;
319
+ /** Up to 6 ranked badges; index 0 gets the large slot, 1-2 the medium slots, 3-5 the small slots. Extra entries beyond 6 are ignored. */
320
+ badges?: GdsGeneratedHeroBadge[];
321
+ /** Defaults to `'21:9'`. */
322
+ aspectRatio?: GdsGeneratedHeroAspectRatio;
323
+ /** Required accessible name for the whole backdrop (e.g. "Sports classes in Riverdale"). Renders `role="group"`, not `role="img"` — see the module docs for why. */
324
+ label: string;
325
+ className?: string;
326
+ style?: CSSProperties;
327
+ }
328
+ /**
329
+ * Generated hero backdrop: an accent wash, a pluggable background texture,
330
+ * and a seeded scatter of up to 6 ranked category badges. See the module
331
+ * docs for the palette/contrast/accessibility rationale shared with
332
+ * `GdsGeneratedThumbnail`.
333
+ *
334
+ * @example
335
+ * ```tsx
336
+ * <GdsGeneratedHero
337
+ * seed={location.id}
338
+ * label="Sports classes in Riverdale"
339
+ * background="mosaic-abstract"
340
+ * badges={topCategories}
341
+ * />
342
+ * ```
343
+ */
344
+ declare function GdsGeneratedHero({ seed, paletteSource, category, shade, colors, tintWithBackground, mixRatio, background, badges, aspectRatio, label, className, style, }: GdsGeneratedHeroProps): react.JSX.Element;
345
+
346
+ /** Price tier for a partner place, rendered as `$` through `$$$$`. */
347
+ type PartnerPriceLevel = '$' | '$$' | '$$$' | '$$$$';
348
+ /** Navigation/link entry used across the discovery shell header, footer, and detail actions. */
349
+ interface PartnerNavItem {
350
+ id: string;
351
+ label: string;
352
+ href: string;
353
+ /** Marks the item as the current page (`aria-current="page"`, emphasized styling). */
354
+ current?: boolean;
355
+ /** Opens the link in a new tab with `rel="noreferrer noopener"` when true. */
356
+ external?: boolean;
357
+ }
358
+ /** Selectable amenity option shown in filter chips and amenity grids. */
359
+ interface PartnerAmenityOption {
360
+ id: string;
361
+ label: string;
362
+ /** Optional leading icon rendered alongside the label. */
363
+ icon?: ReactNode;
364
+ description?: string;
365
+ }
366
+ /** Current discovery filter selection: free-text query, chosen amenity ids, and price tiers. */
367
+ interface PartnerDiscoveryFilterState {
368
+ query: string;
369
+ amenities: string[];
370
+ prices: PartnerPriceLevel[];
371
+ }
372
+ /** Localized copy for the discovery filter bar and modal. */
373
+ interface PartnerDiscoveryFilterLabels {
374
+ search: string;
375
+ searchPlaceholder: string;
376
+ filters: string;
377
+ reset: string;
378
+ close: string;
379
+ apply: string;
380
+ amenities: string;
381
+ price: string;
382
+ /** Accessible label for the active-filters group; defaults to "Selected filters". */
383
+ selected?: string;
384
+ }
385
+ /** A place returned by discovery search, positioned on the map and rendered as a result card. */
386
+ interface PartnerPlaceResult {
387
+ id: string;
388
+ title: string;
389
+ category?: string;
390
+ neighborhood?: string;
391
+ amenities: string[];
392
+ price?: PartnerPriceLevel;
393
+ href: string;
394
+ /** Optional map position; places without coordinates are treated as always in-viewport. */
395
+ coordinates?: {
396
+ lat: number;
397
+ lng: number;
398
+ };
399
+ }
400
+ /** Geographic bounds of the visible map, used to keep only in-view places. */
401
+ interface PartnerMapViewport {
402
+ north: number;
403
+ south: number;
404
+ east: number;
405
+ west: number;
406
+ }
407
+ /** Props passed to a caller-supplied map adapter so it can render pins and report interactions. */
408
+ interface PartnerMapAdapterProps {
409
+ /** Places currently in view, already filtered by the shell — the adapter renders one pin each and does no filtering of its own. */
410
+ places: PartnerPlaceResult[];
411
+ /** Id of the selected place, so the adapter can render its pin in the active state. */
412
+ activePlaceId?: string;
413
+ /** Called with a place id when a pin is activated; the shell owns selection state, the adapter only reports. */
414
+ onPinSelect?: (placeId: string) => void;
415
+ /** Called when the map is panned or zoomed, so the shell can drop places that left the visible bounds. */
416
+ onViewportChange?: (viewport: PartnerMapViewport) => void;
417
+ }
418
+ /** Telemetry event names emitted across the partner-discovery components. */
419
+ type PartnerDiscoveryEventName = 'filter_open' | 'filter_apply' | 'filter_reset' | 'zero_results' | 'map_load' | 'map_error' | 'result_select' | 'pin_select' | 'detail_action_click' | 'share_success' | 'share_failure' | 'newsletter_submit_success' | 'newsletter_submit_failure' | 'submission_failure';
420
+ /** A single telemetry event with its source component, timestamp, and redacted metadata. */
421
+ interface PartnerDiscoveryEvent {
422
+ name: PartnerDiscoveryEventName;
423
+ component: string;
424
+ timestamp: string;
425
+ /** Extra event context; sensitive keys are stripped by `redactPartnerDiscoveryEventMetadata`. */
426
+ metadata?: Record<string, string | number | boolean | null>;
427
+ }
428
+ /** Consumer callback invoked with each emitted discovery telemetry event. */
429
+ type PartnerDiscoveryEventHandler = (event: PartnerDiscoveryEvent) => void;
430
+ /** Default set of amenity filter options shipped with the discovery components. */
431
+ declare const partnerDiscoveryDefaultAmenities: PartnerAmenityOption[];
432
+ /** Empty starting filter state (no query, amenities, or prices selected). */
433
+ declare const partnerDiscoveryDefaultFilterState: PartnerDiscoveryFilterState;
434
+ /**
435
+ * Returns a copy of the metadata with sensitive keys (email, phone, query,
436
+ * apiKey, token, location, lat, lng) replaced by `[redacted]`.
437
+ */
438
+ declare function redactPartnerDiscoveryEventMetadata(metadata?: PartnerDiscoveryEvent['metadata']): {
439
+ [k: string]: string | number | boolean | null;
440
+ };
441
+ /**
442
+ * Builds a discovery event and dispatches it to `handler`; a no-op when no
443
+ * handler is provided. Handler errors are swallowed so telemetry adapters can
444
+ * never break the UI flow.
445
+ */
446
+ declare function emitPartnerDiscoveryEvent(handler: PartnerDiscoveryEventHandler | undefined, name: PartnerDiscoveryEventName, component: string, metadata?: PartnerDiscoveryEvent['metadata']): void;
447
+ /** Returns a new filter state with the given amenity id toggled on or off. */
448
+ declare function togglePartnerAmenity(state: PartnerDiscoveryFilterState, amenityId: string): PartnerDiscoveryFilterState;
449
+ /** Returns a new filter state with the given price tier toggled on or off. */
450
+ declare function togglePartnerPrice(state: PartnerDiscoveryFilterState, price: PartnerPriceLevel): PartnerDiscoveryFilterState;
451
+ /** Returns a fresh copy of the default (empty) discovery filter state. */
452
+ declare function resetPartnerDiscoveryFilters(): PartnerDiscoveryFilterState;
453
+ /**
454
+ * Filters places by case-insensitive query, required amenities, selected price
455
+ * tiers, and (when supplied) the map viewport bounds. Places without
456
+ * coordinates are always kept regardless of the viewport.
457
+ */
458
+ declare function filterPartnerPlaces(places: PartnerPlaceResult[], filters: PartnerDiscoveryFilterState, viewport?: PartnerMapViewport): PartnerPlaceResult[];
459
+ /** Props for the discovery page shell: branding, primary nav, optional footer, and content. */
460
+ interface PartnerDiscoveryShellProps {
461
+ /** Brand mark for the header. A node rather than a URL so consumers supply their own governed image or generated mark. */
462
+ logo: ReactNode;
463
+ /** Primary navigation entries, rendered in the header on desktop and inside the burger menu on small screens. */
464
+ navItems: PartnerNavItem[];
465
+ /** Optional footer with a copyright line plus legal and social links. */
466
+ footer?: {
467
+ copyright: string;
468
+ legalLinks: PartnerNavItem[];
469
+ socialLinks?: PartnerNavItem[];
470
+ };
471
+ children: ReactNode;
472
+ }
473
+ /** Page-level layout for partner discovery: header, main content, and optional footer on a themed surface. */
474
+ declare function PartnerDiscoveryShell({ logo, navItems, footer, children, }: PartnerDiscoveryShellProps): react.JSX.Element;
475
+ /** Discovery shell header: the logo alongside a primary navigation group. */
476
+ declare function PartnerDiscoveryHeader({ logo, navItems, }: Pick<PartnerDiscoveryShellProps, 'logo' | 'navItems'>): react.JSX.Element;
477
+ /** Discovery shell footer rendering the copyright line plus legal and social links. */
478
+ declare function PartnerDiscoveryFooter({ copyright, legalLinks, socialLinks, }: NonNullable<PartnerDiscoveryShellProps['footer']>): react.JSX.Element;
479
+ /** Props for the toggleable grid of amenity filter chips. */
480
+ interface AmenityChipGridProps {
481
+ /** Amenities offered as filters; an empty array renders the empty state rather than an empty grid. */
482
+ amenities: PartnerAmenityOption[];
483
+ /** Ids of the currently selected amenities. */
484
+ selected: string[];
485
+ /** Called with an amenity id on each press. The grid is controlled — it reflects `selected` and never tracks its own. */
486
+ onToggle?: (amenityId: string) => void;
487
+ }
488
+ /** Grid of amenity chips rendered as pressable toggle buttons; shows an empty state when none are available. */
489
+ declare function AmenityChipGrid({ amenities, selected, onToggle, }: AmenityChipGridProps): react.JSX.Element;
490
+ /** Props for the discovery filter bar and its modal. */
491
+ interface PartnerDiscoveryFiltersProps {
492
+ /** Current filter selection. The bar is fully controlled; it renders this and reports intent through the callbacks. */
493
+ value: PartnerDiscoveryFilterState;
494
+ /** Amenity options offered in the modal. */
495
+ amenities: PartnerAmenityOption[];
496
+ /** All user-facing strings for the bar and modal, supplied by the consumer so copy and locale stay outside the component. */
497
+ labels: PartnerDiscoveryFilterLabels;
498
+ /** Price tiers offered in the modal; defaults to `['$', '$$', '$$$', '$$$$']`. */
499
+ prices?: PartnerPriceLevel[];
500
+ /** Whether the filter modal is open. */
501
+ opened?: boolean;
502
+ /** Disables the search input and open/apply controls while true. */
503
+ loading?: boolean;
504
+ /** Called on every keystroke in the search input. */
505
+ onQueryChange?: (query: string) => void;
506
+ /** Called with the amenity id when a chip is pressed. */
507
+ onAmenityToggle?: (amenityId: string) => void;
508
+ /** Called with the price tier when a price chip is pressed. */
509
+ onPriceToggle?: (price: PartnerPriceLevel) => void;
510
+ /** Called when the filter modal is requested. */
511
+ onOpen?: () => void;
512
+ /** Called when the modal is dismissed without applying. */
513
+ onClose?: () => void;
514
+ /** Called when the reset control clears the current selection. */
515
+ onReset?: () => void;
516
+ /** Called when the selection is confirmed and the modal should close. */
517
+ onApply?: () => void;
518
+ /** Receives the privacy-safe telemetry events this component emits; no destination is built in. */
519
+ onEvent?: PartnerDiscoveryEventHandler;
520
+ }
521
+ /** Search + filter controls with an active-filter summary and a modal for amenity and price selection. */
522
+ declare function PartnerDiscoveryFilters({ value, amenities, labels, prices, opened, loading, onQueryChange, onAmenityToggle, onPriceToggle, onOpen, onClose, onReset, onApply, onEvent, }: PartnerDiscoveryFiltersProps): react.JSX.Element;
523
+ /** Props for a single place result card. */
524
+ interface PartnerPlaceResultCardProps {
525
+ /** The place this card renders. */
526
+ place: PartnerPlaceResult;
527
+ /** Map of amenity id to display label for the amenity badges. */
528
+ amenityLabels?: Record<string, string>;
529
+ /** Highlights the card as the active/selected result. */
530
+ active?: boolean;
531
+ /** Label for the "see details" link; defaults to "See details". */
532
+ detailLabel?: ReactNode;
533
+ /** Called with the place id when the card is activated, so the shell can sync the map pin. */
534
+ onSelect?: (placeId: string) => void;
535
+ /** Receives the privacy-safe telemetry events this card emits; no destination is built in. */
536
+ onEvent?: PartnerDiscoveryEventHandler;
537
+ }
538
+ /** Card summarizing a place: title link, category/neighborhood/price line, amenity badges, and a details link. */
539
+ declare function PartnerPlaceResultCard({ place, amenityLabels, active, detailLabel: detailLabelProp, onSelect, onEvent, }: PartnerPlaceResultCardProps): react.JSX.Element;
540
+ /** Props for a single interactive map pin. */
541
+ interface PartnerMapPinProps {
542
+ /** Accessible name for the pin, announced in place of the visual marker. */
543
+ label: string;
544
+ /** Renders the pin pressed, matching the selected result card. */
545
+ active?: boolean;
546
+ /** Called when the pin is activated by pointer or keyboard. */
547
+ onSelect?: () => void;
548
+ }
549
+ /** Circular map-pin button that toggles pressed state and exposes an accessible label. */
550
+ declare function PartnerMapPin({ label, active, onSelect, }: PartnerMapPinProps): react.JSX.Element;
551
+ /** Props for the map zoom controls. */
552
+ interface PartnerMapControlsProps {
553
+ /** Called when the zoom-in control is activated; the map adapter owns the actual zoom. */
554
+ onZoomIn?: () => void;
555
+ /** Called when the zoom-out control is activated; the map adapter owns the actual zoom. */
556
+ onZoomOut?: () => void;
557
+ /** Accessible label for the zoom-in button; defaults to "Zoom in". */
558
+ zoomInLabel?: string;
559
+ /** Accessible label for the zoom-out button; defaults to "Zoom out". */
560
+ zoomOutLabel?: string;
561
+ }
562
+ /** Zoom-in / zoom-out icon button pair for the map. */
563
+ declare function PartnerMapControls({ onZoomIn, onZoomOut, zoomInLabel: zoomInLabelProp, zoomOutLabel: zoomOutLabelProp, }: PartnerMapControlsProps): react.JSX.Element;
564
+ /** Props for the split map + results-list shell. */
565
+ interface PartnerMapListShellProps {
566
+ /** Places to render as cards and pass to the map adapter, already filtered by the consumer. */
567
+ places: PartnerPlaceResult[];
568
+ /** Active filter state, rendered as a summary above the results. */
569
+ filters: PartnerDiscoveryFilterState;
570
+ /** Id of the selected place, highlighting its card and pin together. */
571
+ activePlaceId?: string;
572
+ /** Renders the loading state in place of results. */
573
+ loading?: boolean;
574
+ /** Renders the error state in place of results; pairs with `onRetry`. */
575
+ error?: ReactNode;
576
+ /** Message shown when filtering yields no places. */
577
+ empty?: ReactNode;
578
+ /** Called from the error state\u2019s retry control. */
579
+ onRetry?: () => void;
580
+ /** Called with a place id when selection changes from either pane, keeping map and list in sync. */
581
+ onActivePlaceChange?: (placeId: string) => void;
582
+ /** Optional adapter that renders the map pane; without it the pane shows a list-only notice. */
583
+ mapAdapter?: (props: PartnerMapAdapterProps) => ReactNode;
584
+ /** Amenity id to display label, used for the badges on each result card. */
585
+ amenityLabels?: Record<string, string>;
586
+ /** Receives the privacy-safe telemetry events this shell emits; no destination is built in. */
587
+ onEvent?: PartnerDiscoveryEventHandler;
588
+ }
589
+ /** Two-column shell pairing a map pane (via `mapAdapter`) with a filtered list of result cards, handling loading, error, and empty states. */
590
+ declare function PartnerMapListShell({ places, filters, activePlaceId, loading, error, empty, onRetry, onActivePlaceChange, mapAdapter, amenityLabels, onEvent, }: PartnerMapListShellProps): react.JSX.Element;
591
+ /** Full detail record for a place, powering the detail template. */
592
+ interface PartnerPlaceDetail {
593
+ id: string;
594
+ title: string;
595
+ address?: string;
596
+ phone?: string;
597
+ neighborhood?: string;
598
+ category?: string;
599
+ /** Parent-oriented tip highlighted on the detail page. */
600
+ parentTip?: string;
601
+ amenities: PartnerAmenityOption[];
602
+ /** Optional outbound links (photos, website, menu, and share URL). */
603
+ links?: {
604
+ photos?: string;
605
+ website?: string;
606
+ menu?: string;
607
+ shareUrl?: string;
608
+ };
609
+ }
610
+ /** Localized copy for the place detail template. */
611
+ interface PartnerPlaceDetailLabels {
612
+ back: string;
613
+ photos: string;
614
+ website: string;
615
+ menu: string;
616
+ share: string;
617
+ parentTip: string;
618
+ copied: string;
619
+ shareFailed: string;
620
+ }
621
+ /** Props for the place detail template. */
622
+ interface PartnerPlaceDetailTemplateProps {
623
+ /** The place this page describes. */
624
+ place: PartnerPlaceDetail;
625
+ /** Target for the back link. A href rather than a callback so the control is a real link and works without JavaScript. */
626
+ backHref: string;
627
+ /** All user-facing strings for the page, supplied by the consumer so copy and locale stay outside the component. */
628
+ labels: PartnerPlaceDetailLabels;
629
+ /** Share button lifecycle state driving its loading state and label. Defaults to `'idle'`. */
630
+ shareState?: 'idle' | 'copying' | 'copied' | 'failed';
631
+ /** Called with the page URL when share is activated; the consumer owns clipboard or native-share behavior and reports the outcome back through `shareState`. */
632
+ onShare?: (url: string) => void;
633
+ /** Receives the privacy-safe telemetry events this page emits; no destination is built in. */
634
+ onEvent?: PartnerDiscoveryEventHandler;
635
+ }
636
+ /** Detail page for a single place: title, contact info, action buttons (photos/website/menu/share), badges, parent tip, and amenities. */
637
+ declare function PartnerPlaceDetailTemplate({ place, backHref, labels, shareState, onShare, onEvent, }: PartnerPlaceDetailTemplateProps): react.JSX.Element;
638
+ /** Emphasized panel presenting a parent-oriented tip with a labeled badge. */
639
+ declare function PartnerParentTipPanel({ label, children, }: {
640
+ label: ReactNode;
641
+ children: ReactNode;
642
+ }): react.JSX.Element;
643
+ /** Grid of amenity tiles (optional icon + label); renders an empty state when there are none. */
644
+ declare function PartnerAmenityBadgeGrid({ amenities }: {
645
+ amenities: PartnerAmenityOption[];
646
+ }): react.JSX.Element;
647
+ /** Localized copy for the newsletter capture modal and form. */
648
+ interface PartnerNewsletterLabels {
649
+ title: string;
650
+ description?: string;
651
+ emailLabel: string;
652
+ emailPlaceholder?: string;
653
+ submitLabel: string;
654
+ dismissLabel: string;
655
+ successMessage: string;
656
+ errorMessage: string;
657
+ }
658
+ /** Props for the newsletter capture modal. */
659
+ interface PartnerNewsletterCaptureProps {
660
+ /** Whether the modal is shown. The consumer owns when to prompt. */
661
+ opened?: boolean;
662
+ /** All user-facing strings for the modal, supplied by the consumer so copy and locale stay outside the component. */
663
+ labels: PartnerNewsletterLabels;
664
+ /** Optional decorative visual shown above the form. */
665
+ visual?: ReactNode;
666
+ /** Current email value. The field is controlled, so this and `onEmailChange` must be supplied together. */
667
+ email?: string;
668
+ /** Submission lifecycle state driving loading, success, and error display. Defaults to `'idle'`. */
669
+ state?: 'idle' | 'submitting' | 'success' | 'error';
670
+ /** Called on every keystroke in the email field. */
671
+ onEmailChange?: (email: string) => void;
672
+ /** Called when the form is submitted; the consumer performs the request and reports progress through `state`. */
673
+ onSubmit?: () => void;
674
+ /** Called when the modal is closed without submitting. */
675
+ onDismiss?: () => void;
676
+ /** Receives the privacy-safe telemetry events this modal emits; no destination is built in. */
677
+ onEvent?: PartnerDiscoveryEventHandler;
678
+ }
679
+ /** Modal wrapper around `PartnerNewsletterForm` that emits success/failure telemetry on submit. */
680
+ declare function PartnerNewsletterCapture({ opened, labels, visual, email, state, onEmailChange, onSubmit, onDismiss, onEvent, }: PartnerNewsletterCaptureProps): react.JSX.Element;
681
+ /** Email capture form with description, input, and submit/dismiss actions, reflecting the submission state. */
682
+ declare function PartnerNewsletterForm({ labels, visual, email, state, onEmailChange, onSubmit, onDismiss, }: Omit<PartnerNewsletterCaptureProps, 'opened' | 'onEvent'>): react.JSX.Element;
683
+ /** Editorial link entry used by the partner list index. */
684
+ interface PartnerEditorialLink {
685
+ id: string;
686
+ title: string;
687
+ href: string;
688
+ description?: string;
689
+ /** Opens the link in a new tab with `rel="noreferrer noopener"` when true. */
690
+ external?: boolean;
691
+ }
692
+ /** A single FAQ question/answer pair. */
693
+ interface PartnerFaqItem {
694
+ id: string;
695
+ question: string;
696
+ answer: ReactNode;
697
+ }
698
+ /** Titled list of editorial links, with an empty state when there are none. */
699
+ declare function PartnerListIndex({ title, items, empty, }: {
700
+ title: ReactNode;
701
+ items: PartnerEditorialLink[];
702
+ empty?: ReactNode;
703
+ }): react.JSX.Element;
704
+ /** Renders a list of FAQ question/answer pairs, or an empty state when none are given. */
705
+ declare function PartnerFaqList({ items }: {
706
+ items: PartnerFaqItem[];
707
+ }): react.JSX.Element;
708
+ /** Contact panel with a heading, optional description, and a mailto link. */
709
+ declare function PartnerContactBlock({ title, description, email, }: {
710
+ title: ReactNode;
711
+ description?: ReactNode;
712
+ email?: string;
713
+ }): react.JSX.Element;
714
+ /** Submission page wrapper that swaps between the form, a success block, and an error block. */
715
+ declare function PartnerSubmissionEntry({ title, description, form, success, error, }: {
716
+ title: ReactNode;
717
+ description?: ReactNode;
718
+ form: ReactNode;
719
+ success?: ReactNode;
720
+ error?: ReactNode;
721
+ }): react.JSX.Element;
722
+ /** Renders a titled page as a sequence of divider-separated content sections. */
723
+ declare function PartnerAboutPageSections({ title, sections, }: {
724
+ title: ReactNode;
725
+ sections: Array<{
726
+ id: string;
727
+ title: ReactNode;
728
+ body: ReactNode;
729
+ }>;
730
+ }): react.JSX.Element;
731
+
732
+ export { filterPartnerPlaces as $, AmenityChipGrid as A, type PartnerMapAdapterProps as B, PartnerMapControls as C, type PartnerMapControlsProps as D, PartnerMapListShell as E, type PartnerMapListShellProps as F, type GdsGeneratedPaletteSource as G, PartnerMapPin as H, type PartnerMapPinProps as I, type PartnerMapViewport as J, type PartnerNavItem as K, PartnerNewsletterCapture as L, type PartnerNewsletterCaptureProps as M, PartnerNewsletterForm as N, type PartnerNewsletterLabels as O, PartnerAboutPageSections as P, PartnerParentTipPanel as Q, type PartnerPlaceDetail as R, type PartnerPlaceDetailLabels as S, PartnerPlaceDetailTemplate as T, type PartnerPlaceDetailTemplateProps as U, type PartnerPlaceResult as V, PartnerPlaceResultCard as W, type PartnerPlaceResultCardProps as X, type PartnerPriceLevel as Y, PartnerSubmissionEntry as Z, emitPartnerDiscoveryEvent as _, type GdsGeneratedPaletteColors as a, partnerDiscoveryDefaultAmenities as a0, partnerDiscoveryDefaultFilterState as a1, redactPartnerDiscoveryEventMetadata as a2, resetPartnerDiscoveryFilters as a3, togglePartnerAmenity as a4, togglePartnerPrice as a5, GdsGeneratedHero as a6, type GdsGeneratedHeroProps as a7, type GdsGeneratedHeroRegion as a8, type GdsGeneratedPalette as a9, type GdsGeneratedPaletteOptions as aa, GdsGeneratedThumbnail as ab, type GdsGeneratedThumbnailProps as ac, type GdsGeneratedThumbnailRegion as ad, type ResolveGdsGeneratedPaletteHexOptions as ae, gdsGeneratedPaletteCssRefs as af, gdsSeededRandom as ag, resolveGdsGeneratedPaletteHex as ah, type GdsGeneratedHeroBackground as b, type GdsGeneratedHeroBadge as c, type GdsGeneratedHeroAspectRatio as d, type GdsGeneratedThumbnailCategory as e, type GdsGeneratedThumbnailAspectRatio as f, type GdsGeneratedThumbnailBackground as g, type AmenityChipGridProps as h, PartnerAmenityBadgeGrid as i, type PartnerAmenityOption as j, PartnerContactBlock as k, type PartnerDiscoveryEvent as l, type PartnerDiscoveryEventHandler as m, type PartnerDiscoveryEventName as n, type PartnerDiscoveryFilterLabels as o, type PartnerDiscoveryFilterState as p, PartnerDiscoveryFilters as q, type PartnerDiscoveryFiltersProps as r, PartnerDiscoveryFooter as s, PartnerDiscoveryHeader as t, PartnerDiscoveryShell as u, type PartnerDiscoveryShellProps as v, type PartnerEditorialLink as w, type PartnerFaqItem as x, PartnerFaqList as y, PartnerListIndex as z };