@thewhatmatters/wmds 0.4.3 → 0.4.4

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 (153) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/CONSUMING.md +1 -1
  3. package/dist/components/organisms/ChatDock/ChatDock.d.ts +25 -10
  4. package/dist/components/organisms/ChatDock/ChatDock.d.ts.map +1 -1
  5. package/dist/components/organisms/ChatDock/ChatDock.js +423 -428
  6. package/dist/components/organisms/ChatDock/ChatDockGate.d.ts +11 -10
  7. package/dist/components/organisms/ChatDock/ChatDockGate.d.ts.map +1 -1
  8. package/dist/components/organisms/ChatDock/ChatDockGate.js +130 -153
  9. package/dist/components/organisms/ChatDock/chatDockGateContext.d.ts +7 -6
  10. package/dist/components/organisms/ChatDock/chatDockGateContext.d.ts.map +1 -1
  11. package/dist/components/organisms/ChatDock/chatDockGateStyles.d.ts +18 -11
  12. package/dist/components/organisms/ChatDock/chatDockGateStyles.d.ts.map +1 -1
  13. package/dist/components/organisms/ChatDock/chatDockGateStyles.js +2 -3
  14. package/dist/components/organisms/ChatDock/chatDockStyles.d.ts +6 -12
  15. package/dist/components/organisms/ChatDock/chatDockStyles.d.ts.map +1 -1
  16. package/dist/components/organisms/ChatDock/chatDockStyles.js +6 -9
  17. package/dist/components/organisms/Dialog/Dialog.js +34 -34
  18. package/dist/components/organisms/Sheet/Sheet.js +38 -38
  19. package/dist/lib/dialogOverlay.d.ts +0 -5
  20. package/dist/lib/dialogOverlay.d.ts.map +1 -1
  21. package/dist/lib/dialogOverlay.js +1 -12
  22. package/dist/styles.css +1 -1
  23. package/docs/component-contracts.md +2 -2
  24. package/docs/components.md +2 -2
  25. package/docs/exports.json +1 -1
  26. package/docs/patterns/components-accordion--flush.tsx +1 -1
  27. package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
  28. package/docs/patterns/components-badge--outline-tags.tsx +1 -1
  29. package/docs/patterns/components-badge--with-avatar.tsx +1 -1
  30. package/docs/patterns/components-breadcrumb--editorial.tsx +1 -1
  31. package/docs/patterns/components-breadcrumb--long-path.tsx +1 -1
  32. package/docs/patterns/components-breadcrumb--path.tsx +1 -1
  33. package/docs/patterns/components-breadcrumb--router-links.tsx +1 -1
  34. package/docs/patterns/components-button-button--copy-button.tsx +1 -1
  35. package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
  36. package/docs/patterns/components-button-button--external-link.tsx +1 -1
  37. package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
  38. package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
  39. package/docs/patterns/components-button-button--link-render.tsx +1 -1
  40. package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
  41. package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
  42. package/docs/patterns/components-button-button--primary-action.tsx +1 -1
  43. package/docs/patterns/components-button-button--row-hug.tsx +1 -1
  44. package/docs/patterns/components-button-button--row-layout.tsx +1 -1
  45. package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
  46. package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
  47. package/docs/patterns/components-button-button--with-count.tsx +1 -1
  48. package/docs/patterns/components-button-button--with-icon.tsx +1 -1
  49. package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
  50. package/docs/patterns/components-calembed--pattern-skip-in-footer.tsx +1 -1
  51. package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
  52. package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
  53. package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
  54. package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
  55. package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
  56. package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
  57. package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
  58. package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
  59. package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
  60. package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
  61. package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
  62. package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
  63. package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +3 -2
  64. package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +2 -2
  65. package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
  66. package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
  67. package/docs/patterns/components-checkbox-checkbox--with-count.tsx +1 -1
  68. package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
  69. package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
  70. package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +1 -1
  71. package/docs/patterns/components-descriptionlist--details.tsx +1 -1
  72. package/docs/patterns/components-descriptionlist--post-metadata.tsx +1 -1
  73. package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
  74. package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
  75. package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
  76. package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
  77. package/docs/patterns/components-field--horizontal-input.tsx +1 -1
  78. package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
  79. package/docs/patterns/components-field--multi-control.tsx +1 -1
  80. package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
  81. package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
  82. package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
  83. package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
  84. package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
  85. package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
  86. package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
  87. package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
  88. package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
  89. package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
  90. package/docs/patterns/components-indexlist--post-index.tsx +1 -1
  91. package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
  92. package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
  93. package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
  94. package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
  95. package/docs/patterns/components-kbd--command-row.tsx +1 -1
  96. package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
  97. package/docs/patterns/components-kbd--shortcut.tsx +1 -1
  98. package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
  99. package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
  100. package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
  101. package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
  102. package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
  103. package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
  104. package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
  105. package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
  106. package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
  107. package/docs/patterns/components-prose--article-body.tsx +1 -1
  108. package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
  109. package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
  110. package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
  111. package/docs/patterns/components-sectioncaption--column-caption.tsx +1 -1
  112. package/docs/patterns/components-sectioncaption--with-action.tsx +1 -1
  113. package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
  114. package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
  115. package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
  116. package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
  117. package/docs/patterns/components-sitenav--compact.tsx +1 -1
  118. package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
  119. package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
  120. package/docs/patterns/components-stat--insights-row.tsx +1 -1
  121. package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
  122. package/docs/patterns/components-switch--default.tsx +1 -1
  123. package/docs/patterns/components-switch--settings-row.tsx +1 -1
  124. package/docs/patterns/components-tab--settings-pages.tsx +1 -1
  125. package/docs/patterns/components-taskrows--action-details.tsx +1 -1
  126. package/docs/patterns/components-taskrows--capsules.tsx +1 -1
  127. package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
  128. package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
  129. package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
  130. package/docs/patterns/components-taskrows--status-list.tsx +1 -1
  131. package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
  132. package/docs/patterns/components-textlink--external-destination.tsx +1 -1
  133. package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
  134. package/docs/patterns/components-textlink--quiet-title.tsx +1 -1
  135. package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
  136. package/docs/patterns/components-textsequence--default.tsx +1 -1
  137. package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
  138. package/docs/patterns/components-textsequence--shapes.tsx +1 -1
  139. package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
  140. package/docs/patterns/components-tooltip--controlled.tsx +1 -1
  141. package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
  142. package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
  143. package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
  144. package/docs/patterns/components-tooltip--placement.tsx +1 -1
  145. package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
  146. package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
  147. package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
  148. package/docs/patterns/guides-filter-panel--filtered-index.tsx +1 -1
  149. package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
  150. package/docs/patterns/guides-post-page--post-page.tsx +1 -1
  151. package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
  152. package/docs/patterns/index.json +1 -1
  153. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,30 @@ Every release of `@thewhatmatters/wmds` is listed here, newest first.
7
7
  - **Pasted patterns:** when a release changes a **Pattern — …** story's Show code, it is named under Consumer actions so apps re-copy it.
8
8
  - **How to add an entry** (contributors): add your change to the top entry. If that version is already on npm (`npm view @thewhatmatters/wmds versions`), start a new entry above it and bump `version` in `package.json` to match. `npm run check:changelog` enforces the format.
9
9
 
10
+ ## 0.4.4
11
+
12
+ **ChatDock: the Start a project form sits in the conversation.** Having seen 0.4.3 live, the form goes back inside the chat window instead of replacing it — as a component in the conversation, without the 0.4.2 problems (no card inside a card, one header and one close, no gap above the form, no cap that clips the step). See the second 2026-10-05 amendment to **ADR-0039**.
13
+
14
+ - **ChatDock `gate`** — the form is the last item in the conversation, under the latest message, where a reply would go. The window keeps its header and its close. The composer stays in place but is off, with the placeholder "Finish or cancel the form to keep chatting" (new label `gatePlaceholder`); suggestion rows, follow-ups, and the rows under replies (Copy, thumbs, score) step aside until the form goes. The disclaimer stays.
15
+ - **The window stays non-modal.** No scrim; the page behind stays usable, and focus is not held in the window.
16
+ - **The step is never clipped.** The form never scrolls on its own. From `md` the window grows to fit the conversation and the form — up to the viewport less 7rem — and eases back after; at 1280×900, step 1 shows all seven services with the reply above it. Past that the conversation scrolls, and each step is brought into view: the whole form when it fits, else its top.
17
+ - **`gateSubtitle`** (new) — the window's subtitle while a gate is up, for example "Start a project". Without it the subtitle is hidden while the gate is up.
18
+ - **ChatDock.Gate** — flat on the window surface under a hairline, and as wide as the conversation's turns. Its header is the step's title (now an `h3`), subtitle, previous, "2 of 4", and next; it has **no close of its own** — the window's close and Escape fold the window and keep the form, and Cancel leaves it. `pending` and `error` are unchanged. `labels.close` is unused and deprecated.
19
+ - **Unchanged from 0.4.3:** closing the window keeps the form and its answers, and reopening brings it back at the same step; `onSubmit` returns a promise, with "Sending…", the error, and Try again; the Toaster and reduced-motion hydration fixes, the post page and filtered index options, and the `wmds-check` changes.
20
+ - **Components/ChatDock → Pattern — chat dock** passes `gateSubtitle="Start a project"`. **Pattern — start a project gate**: only its `close` description changed. New stories: **Start a project — after a long conversation** at 1280 and 390; the step stories now show the reply above the form.
21
+ - **Fix:** the conversation stays at its end while the window changes size, so the confirmation a finished form leaves is in view.
22
+
23
+ ### Consumer actions
24
+
25
+ 1. **WhatMatters site: re-copy Components/ChatDock → Pattern — chat dock** (`node_modules/@thewhatmatters/wmds/docs/patterns/components-chatdock--pattern-chat-dock.tsx`) over your ask component, and re-apply only your content, data, and handlers. It adds `gateSubtitle="Start a project"` to **ChatDock**. If you'd rather not re-copy, add that one prop by hand.
26
+ 2. **WhatMatters site: re-copy Components/ChatDock → Pattern — start a project gate** (`node_modules/@thewhatmatters/wmds/docs/patterns/components-chatdock--pattern-start-project-gate.tsx`) over `components/start-project-gate.tsx` and re-apply only your services, budgets, step copy, and calendar. Only a comment changed, so `npx wmds-check` reports nothing either way; re-copy to keep the header at 0.4.4.
27
+ 3. **The form in the conversation: nothing else to do.** It comes with the upgrade, and your `onSubmit`, `renderCalendar`, and the 0.4.3 wiring stay as they are. Check your tests:
28
+ - The page is no longer blocked while the form is up: a test that closed the window before clicking the page no longer needs to.
29
+ - The form has no close: a test that pressed the gate's close should press the window's (**Close chat**) or Escape — both still keep the form — or **Cancel** to leave it.
30
+ - The composer is disabled while the form is up, not hidden: a test that expected no textbox should expect a disabled one.
31
+ - The step's title is an `h3`.
32
+ 4. Other apps: step 3 only, if they render a ChatDock `gate`. `gateSubtitle` is optional.
33
+
10
34
  ## 0.4.3
11
35
 
12
36
  **ChatDock: the gate takes over the window.** Start a project no longer sits as a card inside the chat. While a `gate` is up the window is the form: one header, the step, and the footer on the window's bottom edge, and the window is modal. Also: two hydration fixes, a promise-based send for the gate pattern, options for the post page and filtered index patterns, and fewer false positives in `wmds-check`. See the amendments to **ADR-0039**, **ADR-0040**, and **ADR-0041**.
package/CONSUMING.md CHANGED
@@ -265,7 +265,7 @@ import {
265
265
  | `Input` | `label`, `description`, `status`, `message`, `loading`, `endBadge`, `icon`, `size` | Components/Input — pill shell; Required via `endBadge={<Badge>…</Badge>}` |
266
266
  | `Search` | `size`, `placeholder`, `onSubmit` | Components/Search — inline input + button row |
267
267
  | `PromptBar` | `value`, `onValueChange`, `onSend`, `placeholder` (default Ask anything…), `start`, `end` | Components/PromptBar — **Pattern — prompt bar**. Wide pill, inline field (one line empty, up to 3 lines, then scroll), inset **IconButton** send. Muted until there is text, then `--color-brand` (`#011272`). Enter sends. `start` takes the brand mark; `end` takes extra inset controls. Voice and attachments are not part of this version. |
268
- | `ChatDock` | `title`, `subtitle`, `mark`, `greeting`, `messages` (replies may carry `copyText`, `meta`, `feedback`), `thinking`, `suggestions`, `followUps`, `followUpsPlacement`, `onSend`, `onSuggestionSelect`, `onMessageFeedback`, `gate` (**ChatDock.Gate**), `disclaimer` | Components/ChatDock — **Pattern — chat dock**. The site assistant: a pinned **PromptBar** with suggested-question pills on hover that opens into a non-modal chat window (full screen on phones). The app owns the conversation and the request, and passes `followUps` for the latest reply when it has them (shown under the reply by default). Finished replies get Copy, thumbs, and a score row from `copyText`, `onMessageFeedback` with `feedback`, and `meta`. Start a project runs as a `gate` that takes over the window (modal while it is up) — **Pattern — start a project gate**. Replaces the separate ask page. |
268
+ | `ChatDock` | `title`, `subtitle`, `mark`, `greeting`, `messages` (replies may carry `copyText`, `meta`, `feedback`), `thinking`, `suggestions`, `followUps`, `followUpsPlacement`, `onSend`, `onSuggestionSelect`, `onMessageFeedback`, `gate` (**ChatDock.Gate**), `gateSubtitle`, `disclaimer` | Components/ChatDock — **Pattern — chat dock**. The site assistant: a pinned **PromptBar** with suggested-question pills on hover that opens into a non-modal chat window (full screen on phones). The app owns the conversation and the request, and passes `followUps` for the latest reply when it has them (shown under the reply by default). Finished replies get Copy, thumbs, and a score row from `copyText`, `onMessageFeedback` with `feedback`, and `meta`. Start a project runs as a `gate` in the conversation, under the latest message, with the composer off until it finishes — **Pattern — start a project gate**. Replaces the separate ask page. |
269
269
  | `Card` | `variant`, `shape`, `padding` | Components/Card/Card — `Card.Header` (`start` | `end`), **`Card.Body` slot** (no default fill), `Card.Footer` |
270
270
  | `Accordion` | `variant`, `flush` (plain), `Accordion.Item` `leading` / `label` / `trailing` / `open` | Components/Accordion — FAQ, settings sections; **Pattern — flush** for filter groups. Closed panels leave the tab order |
271
271
  | `Breadcrumb` | `items` (`{ label, href }`, current page last), `maxItems`, `separator` (`chevron` \| `slash`), `variant` (`sans` \| `mono`), `renderLink`, `labels` | Components/Breadcrumb — **Pattern — path**, **long path**, **router links**, **editorial** |
@@ -64,6 +64,8 @@ export interface ChatDockLabels {
64
64
  helpful: string;
65
65
  /** Thumbs down under a reply. Default: "Mark this reply not helpful". */
66
66
  notHelpful: string;
67
+ /** The field's placeholder while a `gate` is up and the composer is off. Default: "Finish or cancel the form to keep chatting". */
68
+ gatePlaceholder: string;
67
69
  }
68
70
  export declare const chatDockDefaultLabels: ChatDockLabels;
69
71
  export declare const chatDockFollowUpsPlacements: readonly ["inline", "composer"];
@@ -110,15 +112,20 @@ export interface ChatDockProps {
110
112
  */
111
113
  onMessageFeedback?: (message: ChatDockMessage, value: ChatDockFeedback) => void;
112
114
  /**
113
- * A form that takes over the window — usually **ChatDock.Gate** with the steps of Start a project.
114
- * While it is set and the window is open, the window is the form: its header, the conversation,
115
- * the composer, the suggestion rows, the follow-ups, and the disclaimer give way to the gate, which
116
- * fills the window. The fixed window is modal meanwhile (scrim, page inert, focus kept inside).
117
- * Setting it opens the window and moves focus into it; clearing it brings the conversation and the
118
- * composer back, with focus in the composer. The gate's close, Escape, and the scrim fold the window
119
- * and keep the gate, with its progress, for when it reopens; the gate's Cancel clears it.
115
+ * A form in the conversation — usually **ChatDock.Gate** with the steps of Start a project. While
116
+ * it is set it sits under the latest message, where a reply would, and the window keeps its
117
+ * header: the composer stays in place but is off, and the suggestion rows and follow-ups step aside.
118
+ * Setting it opens the window and moves focus into it; clearing it brings the composer back with
119
+ * focus. The window grows to fit the form, up to the viewport, and the conversation scrolls past
120
+ * that. Closing the window keeps the gate, with its progress, for when it reopens. The window stays
121
+ * non-modal.
120
122
  */
121
123
  gate?: ReactNode;
124
+ /**
125
+ * The window's subtitle while `gate` is set — the form's name, for example "Start a project".
126
+ * Without it the subtitle is hidden while the gate is up.
127
+ */
128
+ gateSubtitle?: string;
122
129
  /** Controlled open state. */
123
130
  open?: boolean;
124
131
  defaultOpen?: boolean;
@@ -169,6 +176,15 @@ export declare function chatDockReplyRow({ message, isLatest, thinking, takesVot
169
176
  * 7rem when that is shorter. Inline specimens are 32rem.
170
177
  */
171
178
  export declare function chatDockOpenHeight(placement: ChatDockPlacement, viewportHeight: number, remPx: number): number;
179
+ /**
180
+ * The window's height while a gate is up, in px: tall enough for the conversation and the form
181
+ * (`needed`), never below its usual height (`normal`), and never past `max` (the viewport less 7rem).
182
+ */
183
+ export declare function chatDockGateWindowHeight({ normal, needed, max }: {
184
+ normal: number;
185
+ needed: number;
186
+ max: number;
187
+ }): number;
172
188
  /**
173
189
  * How the window moves. `grow` (from `md`, and inline): it sits on the composer's bottom edge and
174
190
  * grows up and out of it. `rise`: on phones it fills the screen and rises from the bottom edge.
@@ -178,10 +194,9 @@ export type ChatDockWindowMotion = "grow" | "rise";
178
194
  * Pinned prompt that opens into a chat window. At rest it is a **PromptBar** with the brand
179
195
  * mark; hovering shows suggestion pills above it. Focusing or typing opens a non-modal window
180
196
  * around the same composer — header, conversation, suggestion rows, and an optional disclaimer.
181
- * Escape or Close folds it back into the bar. The page behind stays usable, except while a `gate`
182
- * fills the window.
197
+ * Escape or Close folds it back into the bar. The page behind stays usable.
183
198
  */
184
- declare function ChatDockRoot({ title, subtitle, mark, greeting, messages, thinking, suggestions, onSend, onSuggestionSelect, followUps, followUpsPlacement, onMessageFeedback, gate, open: openProp, defaultOpen, onOpenChange, placeholder, disclaimer, labels: labelsProp, placement, className, }: ChatDockProps): import("react").JSX.Element;
199
+ declare function ChatDockRoot({ title, subtitle, mark, greeting, messages, thinking, suggestions, onSend, onSuggestionSelect, followUps, followUpsPlacement, onMessageFeedback, gate, gateSubtitle, open: openProp, defaultOpen, onOpenChange, placeholder, disclaimer, labels: labelsProp, placement, className, }: ChatDockProps): import("react").JSX.Element;
185
200
  /**
186
201
  * Pinned prompt that opens into a chat window. At rest it is a **PromptBar** with the brand
187
202
  * mark; hovering shows suggestion pills above it. Focusing or typing opens a non-modal window
@@ -1 +1 @@
1
- {"version":3,"file":"ChatDock.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/ChatDock/ChatDock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA8Bf,OAAO,EAiCL,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EACL,YAAY,EACZ,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC;AAExB,kEAAkE;AAClE,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wDAAwD;AACxD,MA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QAAa,EACb,QAAgB,EAChB,WAAgB,EAChB,MAAM,EACN,kBAAkB,EAClB,SAAc,EACd,kBAA6B,EAC7B,iBAAiB,EACjB,IAAI,EACJ,IAAI,EAAE,QAAQ,EACd,WAAmB,EACnB,YAAY,EACZ,WAAW,EACX,UAAU,EACV,MAAM,EAAE,UAAU,EAClB,SAAmB,EACnB,SAAS,GACV,EAAE,aAAa,+BA8sBf;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;CAEnB,CAAC"}
1
+ {"version":3,"file":"ChatDock.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/ChatDock/ChatDock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA8Bf,OAAO,EA+BL,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EACL,YAAY,EACZ,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC;AAExB,kEAAkE;AAClE,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wDAAwD;AACxD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;AAEpD,wFAAwF;AACxF,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,uHAAuH;IACvH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,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