@tangle-network/sandbox-ui 2.0.9 → 2.0.10

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.js CHANGED
@@ -12,9 +12,9 @@ import { a as CodeSurface, i as CODE_THEME, n as buildUnifiedPatch, r as compute
12
12
  import { n as PreviewView, t as EmbeddedAppView } from "./embedded-app-view-DXsoPale.js";
13
13
  import { OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, findUnsupportedOpenUINode, validateOpenUIJsonArtifact, validateOpenUIJsonNode } from "./openui.js";
14
14
  import { S as ReasoningLevelPicker, _ as modelProvider, a as ChatMessage, b as DEFAULT_REASONING_LEVEL_OPTIONS, c as SpeakerHeader, d as UserMessage, f as agentTimelineStepKind, g as ArtifactAgentDock, h as partitionBySpeaker, i as ChatContainer, l as TRANSCRIPT_TEXT, m as isViewerMessage, n as AgentTimelineColumn, o as MessageAuthor, p as foldSummary, r as AgentTimelineStep, s as MessageList, t as AgentTimeline, u as ThinkingIndicator, v as snapHarnessToModel, x as HARNESS_REASONING_OPTIONS, y as AgentProfilePicker } from "./chat-BU39pb2j.js";
15
- import { C as TraceWaterfall, S as useAgentStream, _ as statusMeta, a as InlineToolItem, b as TraceWorkspace, c as RunPhaseList, d as RunStatusIcon, f as TaskList, g as showsTaskPriority, h as runStatus, i as InlineThinkingItem, l as RunRowShell, m as parseToolEvent, n as ApprovalDiffSummary, o as LiveDuration, p as ToolCallFeed, r as ExpandedToolDetail, s as RunGroup, t as ApprovalCard, u as RunRowStatusDot, v as taskProgress, w as traceSpanMark, x as foldAgentRows, y as taskStatus } from "./run-BzfG6aO5.js";
15
+ import { C as TraceWaterfall, S as useAgentStream, _ as statusMeta, a as InlineToolItem, b as TraceWorkspace, c as RunPhaseList, d as RunStatusIcon, f as TaskList, g as showsTaskPriority, h as runStatus, i as InlineThinkingItem, l as RunRowShell, m as parseToolEvent, n as ApprovalDiffSummary, o as LiveDuration, p as ToolCallFeed, r as ExpandedToolDetail, s as RunGroup, t as ApprovalCard, u as RunRowStatusDot, v as taskProgress, w as traceSpanMark, x as foldAgentRows, y as taskStatus } from "./run-CJyFiBG9.js";
16
16
  import { t as LatestEvents } from "./latest-events-v_vXRyd7.js";
17
- import { a as VirtualList, i as model_exports, n as Conversation, r as indexRecord, t as withPrompts } from "./record-CzsY5-Mv.js";
17
+ import { a as VirtualList, i as model_exports, n as Conversation, r as indexRecord, t as withPrompts } from "./record-D-evY-c_.js";
18
18
  import "./vault-tree.js";
19
19
  import { a as TangleLoginButton, i as UserMenu, n as GitHubLoginButton, r as LoginLayout, t as AuthHeader } from "./auth-BDpoZ_2f.js";
20
20
  import { t as AgentMessagingConnection } from "./connections-DymjzHe_.js";
@@ -136,8 +136,16 @@ function VirtualList({ items, keyOf, render, scroller, estimate = 96, overscan =
136
136
  useEffect(() => {
137
137
  const element = scroller.current;
138
138
  if (!element) return;
139
- const release = () => {
140
- pending.current = null;
139
+ const release = (event) => {
140
+ const key = event instanceof KeyboardEvent && event.target === element && !event.defaultPrevented ? event.key : "";
141
+ pending.current = items.length && (key === "Home" || key === "End") ? {
142
+ key: keyOf(items[key === "Home" ? 0 : items.length - 1]),
143
+ until: performance.now() + 2e3
144
+ } : null;
145
+ if (pending.current) {
146
+ event.preventDefault();
147
+ settle();
148
+ }
141
149
  };
142
150
  element.addEventListener("wheel", release, { passive: true });
143
151
  element.addEventListener("touchstart", release, { passive: true });
@@ -149,7 +157,12 @@ function VirtualList({ items, keyOf, render, scroller, estimate = 96, overscan =
149
157
  element.removeEventListener("pointerdown", release);
150
158
  element.removeEventListener("keydown", release);
151
159
  };
152
- }, [scroller]);
160
+ }, [
161
+ scroller,
162
+ items,
163
+ keyOf,
164
+ offsets
165
+ ]);
153
166
  const bind = (key) => (element) => {
154
167
  if (!element) {
155
168
  rows.current.delete(key);
@@ -173,7 +186,10 @@ function VirtualList({ items, keyOf, render, scroller, estimate = 96, overscan =
173
186
  });
174
187
  return /* @__PURE__ */ jsxs(Fragment, { children: [
175
188
  /* @__PURE__ */ jsx("div", {
176
- style: { height: offsets[start] },
189
+ style: {
190
+ height: offsets[start],
191
+ transitionProperty: "none"
192
+ },
177
193
  "aria-hidden": "true"
178
194
  }),
179
195
  items.slice(start, end).map((item, i) => {
@@ -186,7 +202,10 @@ function VirtualList({ items, keyOf, render, scroller, estimate = 96, overscan =
186
202
  }, key);
187
203
  }),
188
204
  /* @__PURE__ */ jsx("div", {
189
- style: { height: offsets[items.length] - offsets[end] },
205
+ style: {
206
+ height: offsets[items.length] - offsets[end],
207
+ transitionProperty: "none"
208
+ },
190
209
  "aria-hidden": "true"
191
210
  })
192
211
  ] });
@@ -1 +1 @@
1
- export { n as Conversation, a as VirtualList, r as indexRecord, i as recordModel, t as withPrompts } from "../record-CzsY5-Mv.js";
1
+ export { n as Conversation, a as VirtualList, r as indexRecord, i as recordModel, t as withPrompts } from "../record-D-evY-c_.js";
@@ -3,7 +3,7 @@ import { i as modelBrandFor, t as ModelBrandStack } from "./model-brand-bTcMjQtB
3
3
  import { t as ProviderIcon } from "./provider-logo-CPKRPHcS.js";
4
4
  import { f as syncAmbient, l as activityTiming, t as AgentGraph, u as ambientStyle } from "./AgentGraph-CFlI9qta.js";
5
5
  import { t as LatestEvents } from "./latest-events-v_vXRyd7.js";
6
- import "./record-CzsY5-Mv.js";
6
+ import "./record-D-evY-c_.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
9
9
  import { X } from "lucide-react";
package/dist/run.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as TraceWaterfall, S as useAgentStream, _ as statusMeta, a as InlineToolItem, b as TraceWorkspace, c as RunPhaseList, d as RunStatusIcon, f as TaskList, g as showsTaskPriority, h as runStatus, i as InlineThinkingItem, l as RunRowShell, m as parseToolEvent, n as ApprovalDiffSummary, o as LiveDuration, p as ToolCallFeed, r as ExpandedToolDetail, s as RunGroup, t as ApprovalCard, u as RunRowStatusDot, v as taskProgress, w as traceSpanMark, x as foldAgentRows, y as taskStatus } from "./run-BzfG6aO5.js";
1
+ import { C as TraceWaterfall, S as useAgentStream, _ as statusMeta, a as InlineToolItem, b as TraceWorkspace, c as RunPhaseList, d as RunStatusIcon, f as TaskList, g as showsTaskPriority, h as runStatus, i as InlineThinkingItem, l as RunRowShell, m as parseToolEvent, n as ApprovalDiffSummary, o as LiveDuration, p as ToolCallFeed, r as ExpandedToolDetail, s as RunGroup, t as ApprovalCard, u as RunRowStatusDot, v as taskProgress, w as traceSpanMark, x as foldAgentRows, y as taskStatus } from "./run-CJyFiBG9.js";
2
2
  import { t as LatestEvents } from "./latest-events-v_vXRyd7.js";
3
- import { a as VirtualList, i as model_exports, n as Conversation, r as indexRecord, t as withPrompts } from "./record-CzsY5-Mv.js";
3
+ import { a as VirtualList, i as model_exports, n as Conversation, r as indexRecord, t as withPrompts } from "./record-D-evY-c_.js";
4
4
  export { ApprovalCard, ApprovalDiffSummary, Conversation, ExpandedToolDetail, InlineThinkingItem, InlineToolItem, LatestEvents, LiveDuration, RunGroup, RunPhaseList, RunRowShell, RunRowStatusDot, RunStatusIcon, TaskList, ToolCallFeed, TraceWaterfall, TraceWorkspace, VirtualList, foldAgentRows, indexRecord, parseToolEvent, model_exports as recordModel, runStatus, showsTaskPriority, statusMeta, taskProgress, taskStatus, traceSpanMark, useAgentStream, withPrompts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "license": "MIT",
5
5
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
6
6
  "repository": {