reifyui 0.6.0 → 0.6.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 +32 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Carousel.jsx +10 -3
- package/src/sheet/SheetGrid.jsx +16 -0
- package/styles/chat.css +5 -1
- package/styles/sheet.css +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reifyui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.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",
|
|
@@ -16,6 +16,13 @@ import { Chevron } from './icons.jsx';
|
|
|
16
16
|
* step px per press; defaults to 90% of the visible width, so a press always leaves a
|
|
17
17
|
* landmark from the previous screenful on screen
|
|
18
18
|
*/
|
|
19
|
+
// Both edge tests need the SAME tolerance. They did not: the end test allowed a pixel of slack
|
|
20
|
+
// and the start test demanded scrollLeft <= 1, while scroll-snap parks the strip at its first
|
|
21
|
+
// snap point — scrollLeft === 2 on a card with a border. So arriving at the start left the back
|
|
22
|
+
// button enabled, and pressing it moved the strip two pixels: a control that looks live and does
|
|
23
|
+
// nothing, which is the thing this component's own header promises not to ship.
|
|
24
|
+
const EDGE = 2;
|
|
25
|
+
|
|
19
26
|
export function Carousel(props) {
|
|
20
27
|
const { label, step, children, classNames = {} } = props;
|
|
21
28
|
const ref = useRef(null);
|
|
@@ -24,11 +31,11 @@ export function Carousel(props) {
|
|
|
24
31
|
const measure = useCallback(() => {
|
|
25
32
|
const el = ref.current;
|
|
26
33
|
if (!el) return;
|
|
27
|
-
const overflow = el.scrollWidth - el.clientWidth >
|
|
34
|
+
const overflow = el.scrollWidth - el.clientWidth > EDGE;
|
|
28
35
|
setEdges({
|
|
29
36
|
overflow,
|
|
30
|
-
start: el.scrollLeft <=
|
|
31
|
-
end: el.scrollLeft >= el.scrollWidth - el.clientWidth -
|
|
37
|
+
start: el.scrollLeft <= EDGE,
|
|
38
|
+
end: el.scrollLeft >= el.scrollWidth - el.clientWidth - EDGE,
|
|
32
39
|
});
|
|
33
40
|
}, []);
|
|
34
41
|
|
package/src/sheet/SheetGrid.jsx
CHANGED
|
@@ -503,6 +503,22 @@ export function SheetGrid({
|
|
|
503
503
|
style={peer ? { boxShadow: `inset 0 0 0 2px ${peer.color}` } : undefined}
|
|
504
504
|
onClick={(e) => { if (!isEditing) openEdit(row.id, col, e.currentTarget); }}
|
|
505
505
|
title={c.error || ''}>
|
|
506
|
+
{/* The boundaries a spreadsheet lets you grab are the ones you can see, and
|
|
507
|
+
from row 20 the header is scrolled away. Both edges of every cell resize
|
|
508
|
+
the same column and row the header and the gutter do — same handler,
|
|
509
|
+
same drag, just reachable where the person already is. */}
|
|
510
|
+
{!readOnly && (
|
|
511
|
+
<>
|
|
512
|
+
<span className="shg-resize-col shg-resize-in-cell"
|
|
513
|
+
onClick={(e) => e.stopPropagation()}
|
|
514
|
+
onMouseDown={(e) => startResize(e, 'col', col.id,
|
|
515
|
+
colWidth(col) || e.currentTarget.closest('td').offsetWidth)} />
|
|
516
|
+
<span className="shg-resize-row shg-resize-in-cell"
|
|
517
|
+
onClick={(e) => e.stopPropagation()}
|
|
518
|
+
onMouseDown={(e) => startResize(e, 'row', row.id,
|
|
519
|
+
rowHeight(row) || e.currentTarget.closest('tr').offsetHeight)} />
|
|
520
|
+
</>
|
|
521
|
+
)}
|
|
506
522
|
{peer && <span className="shg-peer-flag" style={{ background: peer.color }}>{peer.name}</span>}
|
|
507
523
|
{isEditing ? renderEditor(col) : (
|
|
508
524
|
<div className="shg-val"
|
package/styles/chat.css
CHANGED
|
@@ -290,8 +290,12 @@ body.uic-resizing iframe { pointer-events: none; }
|
|
|
290
290
|
Below this width a 340px column and a document cannot both be usable, and squeezing the
|
|
291
291
|
document is the worse trade — the conversation is the thing you can dismiss. */
|
|
292
292
|
@media (max-width: 900px) {
|
|
293
|
+
/* It starts BELOW the host's app bar, not over it. At top:0 the drawer covered the banner's
|
|
294
|
+
right-hand side, so at 768 the sheet's Run button, Export and the account menu all hit-tested
|
|
295
|
+
to the conversation instead — unreachable unless you happened to know the collapse toggle was
|
|
296
|
+
the way out. The host declares its own bar height once; 0 is correct for a host that has none. */
|
|
293
297
|
.uic-chat:not(.is-collapsed) {
|
|
294
|
-
position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
|
|
298
|
+
position: fixed; top: var(--uic-chat-drawer-top, 0); right: 0; bottom: 0; z-index: 90;
|
|
295
299
|
width: min(86vw, 380px);
|
|
296
300
|
flex: none !important; /* beats the inline drag-width basis */
|
|
297
301
|
box-shadow: var(--uic-shadow-3, -16px 0 40px rgba(15, 23, 42, .22));
|
package/styles/sheet.css
CHANGED
|
@@ -168,7 +168,6 @@
|
|
|
168
168
|
.shg-menu-apply:hover { filter: brightness(1.06); }
|
|
169
169
|
|
|
170
170
|
/* ── Resize handles ─────────────────────────────────────────────────────── */
|
|
171
|
-
.shg-col { position: relative; }
|
|
172
171
|
.shg-resize-col {
|
|
173
172
|
position: absolute; top: 0; right: -3px; width: 7px; height: 100%;
|
|
174
173
|
cursor: col-resize; z-index: 5;
|
|
@@ -179,6 +178,10 @@
|
|
|
179
178
|
cursor: row-resize; z-index: 5;
|
|
180
179
|
}
|
|
181
180
|
.shg-resize-row:hover { background: var(--uic-brand-soft, #E1E9FF); opacity: .7; }
|
|
181
|
+
/* Inside a cell the handle sits ON the border rather than 3px beyond it: a cell clips its
|
|
182
|
+
overflow to keep long values from escaping, and a handle hung outside would be clipped with
|
|
183
|
+
them. */
|
|
184
|
+
.shg-resize-in-cell.shg-resize-col { right: 0; }
|
|
182
185
|
.shg-cell, .shg-rownum { overflow: hidden; }
|
|
183
186
|
|
|
184
187
|
/* ── Ghost add-row (Airtable-style, attached to the grid) ───────────────── */
|