@elaraai/e3-ui-components 1.0.42 → 1.0.43
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/components/InputPreview.d.ts.map +1 -1
- package/dist/hooks/types.d.ts +7 -0
- package/dist/hooks/types.d.ts.map +1 -1
- package/dist/hooks/useTaskLogsHook.d.ts.map +1 -1
- package/dist/index.cjs +21 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -16
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -64094,20 +64094,25 @@ const InputPreview = memo(function InputPreview2({
|
|
|
64094
64094
|
requestOptions
|
|
64095
64095
|
}) {
|
|
64096
64096
|
const displayName = path2.replace(/^\.inputs\./, "");
|
|
64097
|
-
return
|
|
64098
|
-
|
|
64099
|
-
|
|
64100
|
-
|
|
64101
|
-
|
|
64102
|
-
|
|
64103
|
-
|
|
64104
|
-
|
|
64105
|
-
|
|
64106
|
-
|
|
64107
|
-
|
|
64108
|
-
|
|
64109
|
-
|
|
64110
|
-
|
|
64097
|
+
return (
|
|
64098
|
+
// `height` rather than `flex`, matching the sibling previews: the host
|
|
64099
|
+
// mount is not always a flex container, and a `flex` bound would then
|
|
64100
|
+
// silently fall back to auto height and grow with the content.
|
|
64101
|
+
/* @__PURE__ */ jsxs(Box, { height: "100%", display: "flex", flexDirection: "column", overflow: "hidden", children: [
|
|
64102
|
+
/* @__PURE__ */ jsx$1(Flex, { px: 4, py: 2, borderBottom: "1px solid", borderColor: "border.subtle", bg: "bg.surface", align: "center", justify: "space-between", children: /* @__PURE__ */ jsx$1(Text, { fontSize: "sm", fontWeight: "medium", color: "fg", children: displayName }) }),
|
|
64103
|
+
/* @__PURE__ */ jsx$1(Box, { flex: 1, overflow: "hidden", minHeight: 0, children: /* @__PURE__ */ jsx$1(
|
|
64104
|
+
DatasetPreview,
|
|
64105
|
+
{
|
|
64106
|
+
apiUrl,
|
|
64107
|
+
repo,
|
|
64108
|
+
workspace,
|
|
64109
|
+
path: path2,
|
|
64110
|
+
editable: true,
|
|
64111
|
+
...requestOptions != null && { requestOptions }
|
|
64112
|
+
}
|
|
64113
|
+
) })
|
|
64114
|
+
] })
|
|
64115
|
+
);
|
|
64111
64116
|
}, (prev2, next2) => prev2.path === next2.path && prev2.workspace === next2.workspace);
|
|
64112
64117
|
function treePathToString$1(path2) {
|
|
64113
64118
|
return path2.map((p2) => p2.value).join(".");
|
|
@@ -64575,10 +64580,10 @@ async function fetchAllLogs(apiUrl, repo, workspace, taskName, stream, requestOp
|
|
|
64575
64580
|
}, requestOptions ?? { token: null });
|
|
64576
64581
|
allData += chunk.data;
|
|
64577
64582
|
totalSize = chunk.totalSize;
|
|
64578
|
-
if (chunk.complete || allData.length >= MAX_TOTAL_SIZE) {
|
|
64583
|
+
if (chunk.complete || allData.length >= MAX_TOTAL_SIZE || chunk.size === 0n) {
|
|
64579
64584
|
break;
|
|
64580
64585
|
}
|
|
64581
|
-
offset +=
|
|
64586
|
+
offset += Number(chunk.size);
|
|
64582
64587
|
}
|
|
64583
64588
|
return {
|
|
64584
64589
|
data: allData,
|