@g9tm/aiassistant-lynx 1.9.1 → 1.9.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/surfaces.jsx CHANGED
@@ -61,7 +61,12 @@ export function MessageList(props) {
61
61
  return (<view style={{ ...fill, minHeight: "0px", display: "flex", flexDirection: "column", position: "relative" }}>
62
62
  <scroll-view id={id} className={cls(ui, "messages")} scroll-orientation="vertical" style={{ ...fill, minHeight: "0px" }} lower-threshold={48} bindscroll={(e) => { const y = e.detail?.scrollTop ?? 0; if (y < top - 4)
63
63
  setAtEnd(false); setTop(y); }} bindscrolltolower={() => { setAtEnd(true); setMissed(false); }}>
64
- {props.messages.map((m, i) => <Item key={m.id} message={m} plans={props.plans} runId={props.runId} last={i === count - 1 && m.role === "assistant"}/>)}
64
+ {/* the content's own size: a part that settles late (a card, a chart, a picture) grows it after the two scrolls
65
+ above, so the newest stays in view while it grows — unless the person scrolled up to read */}
66
+ <view style={{ display: "flex", flexDirection: "column" }} bindlayoutchange={() => { if (atEnd)
67
+ end(); }}>
68
+ {props.messages.map((m, i) => <Item key={m.id} message={m} plans={props.plans} runId={props.runId} last={i === count - 1 && m.role === "assistant"}/>)}
69
+ </view>
65
70
  </scroll-view>
66
71
  {missed && !atEnd ? (<view className={cls(ui, "messages.newest")} style={{ position: "absolute", bottom: "8px", left: "0px", right: "0px", display: "flex", alignItems: "center" }}>
67
72
  <Button role="newest" label={pageTexts(ui.texts).t("messages.newest")} onTap={() => { setAtEnd(true); setMissed(false); end(); }}/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/aiassistant-lynx",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "ReactLynx components for the G9 AI assistant, fully customisable (layouts, tokens, per-part classes, overrides, parts).",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -29,7 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@g9tm/aiassistant": "1.9.1"
32
+ "@g9tm/aiassistant": "1.9.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@lynx-js/react": "0.129.2",