reifyui 0.8.1 → 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/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/sheet/SheetGrid.jsx +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reifyui",
|
|
3
|
-
"version": "0.8.
|
|
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",
|
package/src/sheet/SheetGrid.jsx
CHANGED
|
@@ -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
|
-
|
|
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
|