reifyui 0.6.0 → 0.6.1
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 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Carousel.jsx +10 -3
- package/styles/chat.css +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reifyui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
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/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));
|