@ash-ai/ui 0.0.4 → 0.0.5
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1214,13 +1214,13 @@ function Terminal2({ logs, connected, onClear, className }) {
|
|
|
1214
1214
|
ref: containerRef,
|
|
1215
1215
|
onScroll: handleScroll,
|
|
1216
1216
|
className: "flex-1 overflow-auto p-3 font-mono text-xs leading-5 scrollbar-thin min-h-[120px]",
|
|
1217
|
-
children: filteredLogs.length === 0 ? /* @__PURE__ */ jsx11("div", { className: "flex h-full items-center justify-center text-white/20 text-xs", children: logs.length === 0 ? "Waiting for sandbox output..." : "No matching lines" }) : filteredLogs.map((entry) => /* @__PURE__ */ jsxs10("div", { className: "flex hover:bg-white/5 rounded px-1 -mx-1", children: [
|
|
1217
|
+
children: filteredLogs.length === 0 ? /* @__PURE__ */ jsx11("div", { className: "flex h-full items-center justify-center text-white/20 text-xs", children: logs.length === 0 ? "Waiting for sandbox output..." : "No matching lines" }) : filteredLogs.map((entry, i) => /* @__PURE__ */ jsxs10("div", { className: "flex hover:bg-white/5 rounded px-1 -mx-1", children: [
|
|
1218
1218
|
showTimestamps && /* @__PURE__ */ jsx11("span", { className: "mr-3 shrink-0 select-none text-white/20", children: formatTimestamp(entry.ts) }),
|
|
1219
1219
|
/* @__PURE__ */ jsx11("span", { className: cn(
|
|
1220
1220
|
"whitespace-pre-wrap break-all",
|
|
1221
1221
|
levelColors[entry.level] || "text-white/60"
|
|
1222
1222
|
), children: entry.text })
|
|
1223
|
-
] }, entry.index))
|
|
1223
|
+
] }, `${entry.index}-${i}`))
|
|
1224
1224
|
}
|
|
1225
1225
|
)
|
|
1226
1226
|
] });
|