@elaraai/e3-ui-components 1.0.41 → 1.0.42
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/TaskPreview.d.ts +6 -0
- package/dist/components/TaskPreview.d.ts.map +1 -1
- package/dist/components/UITaskPreview.d.ts +7 -0
- package/dist/components/UITaskPreview.d.ts.map +1 -1
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -64115,7 +64115,8 @@ function treePathToString$1(path2) {
|
|
|
64115
64115
|
const UITaskPreview = memo(function UITaskPreview2({
|
|
64116
64116
|
task,
|
|
64117
64117
|
config: config2,
|
|
64118
|
-
pollInterval = 1e3
|
|
64118
|
+
pollInterval = 1e3,
|
|
64119
|
+
bare = false
|
|
64119
64120
|
}) {
|
|
64120
64121
|
var _a2, _b2;
|
|
64121
64122
|
const e3 = useE3ConfigOptional();
|
|
@@ -64191,7 +64192,7 @@ const UITaskPreview = memo(function UITaskPreview2({
|
|
|
64191
64192
|
if (statusQuery.data.refType !== "value") return /* @__PURE__ */ jsx$1(StatusDisplay, { variant: "info", title: "No output yet", message: "Task has not produced a value" });
|
|
64192
64193
|
if (valueQuery.isLoading || !valueQuery.data) return /* @__PURE__ */ jsx$1(StatusDisplay, { variant: "loading", title: "Loading..." });
|
|
64193
64194
|
if (valueQuery.error) return /* @__PURE__ */ jsx$1(StatusDisplay, { variant: "error", title: "Decode failed", message: valueQuery.error.message });
|
|
64194
|
-
return /* @__PURE__ */ jsx$1(UIStoreProvider, { store, children: /* @__PURE__ */ jsx$1(ErrorBoundary, { children: /* @__PURE__ */ jsx$1(Box, { height: "100%", overflow: "auto", p: "4", children: /* @__PURE__ */ jsx$1(
|
|
64195
|
+
return /* @__PURE__ */ jsx$1(UIStoreProvider, { store, children: /* @__PURE__ */ jsx$1(ErrorBoundary, { children: /* @__PURE__ */ jsx$1(Box, { height: "100%", overflow: bare ? void 0 : "auto", p: bare ? void 0 : "4", minH: bare ? 0 : void 0, children: /* @__PURE__ */ jsx$1(
|
|
64195
64196
|
EastChakraComponent,
|
|
64196
64197
|
{
|
|
64197
64198
|
value: valueQuery.data.decoded,
|
|
@@ -64708,18 +64709,20 @@ const TaskPreview = memo(function TaskPreview2({
|
|
|
64708
64709
|
repo,
|
|
64709
64710
|
workspace,
|
|
64710
64711
|
task,
|
|
64711
|
-
requestOptions
|
|
64712
|
+
requestOptions,
|
|
64713
|
+
bare = false
|
|
64712
64714
|
}) {
|
|
64713
64715
|
const detailsQuery = useTaskDetails(apiUrl, repo, workspace, task, {
|
|
64714
64716
|
...requestOptions != null && { requestOptions }
|
|
64715
64717
|
});
|
|
64716
64718
|
const kind = detailsQuery.data ? getTaskKind(detailsQuery.data) : null;
|
|
64717
64719
|
return /* @__PURE__ */ jsxs(Box, { height: "100%", display: "flex", flexDirection: "column", overflow: "hidden", children: [
|
|
64718
|
-
/* @__PURE__ */ jsx$1(Flex, { px: 4, py: 2, borderBottom: "1px solid", borderColor: "border.subtle", bg: "bg.surface", align: "center", flexShrink: 0, children: /* @__PURE__ */ jsx$1(Text, { fontSize: "sm", fontWeight: "medium", color: "fg", children: task }) }),
|
|
64720
|
+
!bare && /* @__PURE__ */ jsx$1(Flex, { px: 4, py: 2, borderBottom: "1px solid", borderColor: "border.subtle", bg: "bg.surface", align: "center", flexShrink: 0, children: /* @__PURE__ */ jsx$1(Text, { fontSize: "sm", fontWeight: "medium", color: "fg", children: task }) }),
|
|
64719
64721
|
/* @__PURE__ */ jsx$1(Box, { flex: 1, overflow: "hidden", minHeight: 0, children: detailsQuery.isLoading ? /* @__PURE__ */ jsx$1(StatusDisplay, { variant: "loading", title: "Loading task..." }) : detailsQuery.error ? /* @__PURE__ */ jsx$1(StatusDisplay, { variant: "error", title: "Error", message: detailsQuery.error.message }) : kind === "ui" ? /* @__PURE__ */ jsx$1(
|
|
64720
64722
|
UITaskPreview,
|
|
64721
64723
|
{
|
|
64722
64724
|
task,
|
|
64725
|
+
bare,
|
|
64723
64726
|
config: { apiUrl, repo, workspace, token: (requestOptions == null ? void 0 : requestOptions.token) ?? null }
|
|
64724
64727
|
}
|
|
64725
64728
|
) : /* @__PURE__ */ jsx$1(
|
|
@@ -64733,7 +64736,7 @@ const TaskPreview = memo(function TaskPreview2({
|
|
|
64733
64736
|
}
|
|
64734
64737
|
) })
|
|
64735
64738
|
] });
|
|
64736
|
-
}, (prev2, next2) => prev2.task === next2.task && prev2.repo === next2.repo && prev2.workspace === next2.workspace);
|
|
64739
|
+
}, (prev2, next2) => prev2.task === next2.task && prev2.repo === next2.repo && prev2.workspace === next2.workspace && prev2.bare === next2.bare);
|
|
64737
64740
|
function formatPrimitive(type, value) {
|
|
64738
64741
|
switch (type.type) {
|
|
64739
64742
|
case "Null":
|