reifyui 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reifyui",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "The open-source rendering & interaction layer for agentic applications. Stream and render any agent's output as polished, application-native UI \u2014 model-agnostic, framework-agnostic, design-system-native. The foundation for building generative-UI and agent products.",
5
5
  "keywords": [
6
6
  "react",
@@ -76,7 +76,13 @@ function PopPortal({ anchor, width = 250, estHeight = 300, className, children,
76
76
  const boxRef = useRef(null);
77
77
  useEffect(() => {
78
78
  if (!onClose) return undefined;
79
- const close = () => onClose();
79
+ // A scroll OUTSIDE the box closes it (the anchor moved); scrolling inside it (a long prompt,
80
+ // a long option list) is the box's own. Backported from 0.13.0 (f9d93d9): without it the
81
+ // column configuration vanished the moment its prompt was scrolled.
82
+ const close = (e) => {
83
+ if (e?.type === 'scroll' && boxRef.current && e.target instanceof Node && boxRef.current.contains(e.target)) return;
84
+ onClose();
85
+ };
80
86
  // mousedown, not click: React 18 flushes a listener attached in this effect synchronously
81
87
  // during the very discrete event that opened the popover, so a `click` listener closes the
82
88
  // box before it paints. A press inside the anchor is also ignored — that is the trigger's
package/styles/chat.css CHANGED
@@ -187,8 +187,18 @@ body.uic-resizing iframe { pointer-events: none; }
187
187
  /* The panel is dense by design (13px, no turn gutter, wider bubbles) — the same three overrides
188
188
  all four apps wrote into their :root, where they also changed every OTHER chat surface in the
189
189
  app. Scoped to the panel, they stop leaking. */
190
+ /* `min-width: 0` is what makes the drag-to-resize actually resize.
191
+ *
192
+ * A flex item defaults to `min-width: auto`, which means it can never be narrower than its
193
+ * content's min-content width. One unbreakable string in the transcript — an agent reporting
194
+ * `/data/workspaces/hsess<32 hex chars>/dashboard.json` is 60 monospace characters with no break
195
+ * opportunity — sets a floor of ~550px on the whole pane. The width the drag computes is applied
196
+ * to flex-basis, the basis is then ignored, and the pane stops moving at that floor while the
197
+ * handle keeps following the pointer. It reads as "the drag broke", and it appears only in
198
+ * conversations that happen to contain a long path. */
190
199
  .uic-chat { --uic-font-md: 13px; --uic-turn-pad-x: 0px; --uic-bubble-max-w: 88%;
191
- flex: 0 0 340px; height: 100vh; display: flex; flex-direction: column; min-height: 0;
200
+ flex: 0 0 340px; height: 100vh; display: flex; flex-direction: column;
201
+ min-height: 0; min-width: 0;
192
202
  background: var(--uic-surface, #FFFFFF); border-left: 1px solid var(--uic-line, #DDDFE6); }
193
203
  @media (max-width: 1180px) { .uic-chat { flex: 0 0 300px; } }
194
204
  .uic-chat.is-collapsed { flex: 0 0 44px; }
@@ -269,7 +279,14 @@ body.uic-resizing iframe { pointer-events: none; }
269
279
  .uic-chat-msg-files { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
270
280
 
271
281
  /* ── density inside the panel: the 13px conversation ── */
272
- .uic-chat .wbx-md { overflow-wrap: break-word; }
282
+ /* `anywhere`, not `break-word`, and the difference is the whole bug above.
283
+ *
284
+ * Both let an unbreakable word break rather than overflow, so both LOOK like they fixed it. Only
285
+ * `anywhere` also reduces the element's min-content width — `break-word` leaves it reporting the
286
+ * full width of the longest word. That reported width is what a flex item's `min-width: auto`
287
+ * floors the pane at, so with `break-word` the text wrapped and the pane still would not shrink.
288
+ * Which is exactly what shipped: the rule was here, and the drag was stuck anyway. */
289
+ .uic-chat .wbx-md { overflow-wrap: anywhere; }
273
290
  .uic-chat .wbx-md h1 { font-size: 16px; }
274
291
  .uic-chat .wbx-md h2 { font-size: 14.5px; }
275
292
  .uic-chat .wbx-md h3 { font-size: 13.5px; }