@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
|
@@ -5,6 +5,12 @@ export interface TaskPreviewProps {
|
|
|
5
5
|
workspace: string;
|
|
6
6
|
task: string;
|
|
7
7
|
requestOptions?: RequestOptions;
|
|
8
|
+
/**
|
|
9
|
+
* Chromeless mode: drop the task-name header bar and, for a `ui` task,
|
|
10
|
+
* render the output edge-to-edge (forwarded to {@link UITaskPreview} as
|
|
11
|
+
* `bare`) — for host kiosk embedding of a deployed `<App>`. Default `false`.
|
|
12
|
+
*/
|
|
13
|
+
bare?: boolean;
|
|
8
14
|
}
|
|
9
15
|
export declare const TaskPreview: import('react').NamedExoticComponent<TaskPreviewProps>;
|
|
10
16
|
//# sourceMappingURL=TaskPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/TaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM7D,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"TaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/TaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM7D,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,wDA4C8G,CAAC"}
|
|
@@ -11,6 +11,13 @@ export interface UITaskPreviewProps {
|
|
|
11
11
|
* Poll interval (ms) for the manifest's declared reads. Default 1000ms.
|
|
12
12
|
*/
|
|
13
13
|
pollInterval?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Chromeless mode: drop the padding + scroll wrapper so the ui output
|
|
16
|
+
* (e.g. a deployed `<App>` shell that owns its own layout) fills its
|
|
17
|
+
* container edge-to-edge — for host kiosk embedding. Default `false`
|
|
18
|
+
* (the padded, scrollable preview wrapper).
|
|
19
|
+
*/
|
|
20
|
+
bare?: boolean;
|
|
14
21
|
}
|
|
15
22
|
export declare const UITaskPreview: import('react').NamedExoticComponent<UITaskPreviewProps>;
|
|
16
23
|
//# sourceMappingURL=UITaskPreview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UITaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/UITaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,OAAO,EAAuB,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW9E,MAAM,WAAW,kBAAkB;IAC/B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"UITaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/UITaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,OAAO,EAAuB,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW9E,MAAM,WAAW,kBAAkB;IAC/B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAMD,eAAO,MAAM,aAAa,0DAyHxB,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -64133,7 +64133,8 @@ function treePathToString$1(path2) {
|
|
|
64133
64133
|
const UITaskPreview = React.memo(function UITaskPreview2({
|
|
64134
64134
|
task,
|
|
64135
64135
|
config: config2,
|
|
64136
|
-
pollInterval = 1e3
|
|
64136
|
+
pollInterval = 1e3,
|
|
64137
|
+
bare = false
|
|
64137
64138
|
}) {
|
|
64138
64139
|
var _a2, _b2;
|
|
64139
64140
|
const e3 = useE3ConfigOptional();
|
|
@@ -64209,7 +64210,7 @@ const UITaskPreview = React.memo(function UITaskPreview2({
|
|
|
64209
64210
|
if (statusQuery.data.refType !== "value") return /* @__PURE__ */ jsxRuntime.jsx(StatusDisplay, { variant: "info", title: "No output yet", message: "Task has not produced a value" });
|
|
64210
64211
|
if (valueQuery.isLoading || !valueQuery.data) return /* @__PURE__ */ jsxRuntime.jsx(StatusDisplay, { variant: "loading", title: "Loading..." });
|
|
64211
64212
|
if (valueQuery.error) return /* @__PURE__ */ jsxRuntime.jsx(StatusDisplay, { variant: "error", title: "Decode failed", message: valueQuery.error.message });
|
|
64212
|
-
return /* @__PURE__ */ jsxRuntime.jsx(eastUiComponents.UIStoreProvider, { store, children: /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { height: "100%", overflow: "auto", p: "4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
64213
|
+
return /* @__PURE__ */ jsxRuntime.jsx(eastUiComponents.UIStoreProvider, { store, children: /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { height: "100%", overflow: bare ? void 0 : "auto", p: bare ? void 0 : "4", minH: bare ? 0 : void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
64213
64214
|
eastUiComponents.EastChakraComponent,
|
|
64214
64215
|
{
|
|
64215
64216
|
value: valueQuery.data.decoded,
|
|
@@ -64726,18 +64727,20 @@ const TaskPreview = React.memo(function TaskPreview2({
|
|
|
64726
64727
|
repo,
|
|
64727
64728
|
workspace,
|
|
64728
64729
|
task,
|
|
64729
|
-
requestOptions
|
|
64730
|
+
requestOptions,
|
|
64731
|
+
bare = false
|
|
64730
64732
|
}) {
|
|
64731
64733
|
const detailsQuery = useTaskDetails(apiUrl, repo, workspace, task, {
|
|
64732
64734
|
...requestOptions != null && { requestOptions }
|
|
64733
64735
|
});
|
|
64734
64736
|
const kind = detailsQuery.data ? getTaskKind(detailsQuery.data) : null;
|
|
64735
64737
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { height: "100%", display: "flex", flexDirection: "column", overflow: "hidden", children: [
|
|
64736
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { px: 4, py: 2, borderBottom: "1px solid", borderColor: "border.subtle", bg: "bg.surface", align: "center", flexShrink: 0, children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "medium", color: "fg", children: task }) }),
|
|
64738
|
+
!bare && /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { px: 4, py: 2, borderBottom: "1px solid", borderColor: "border.subtle", bg: "bg.surface", align: "center", flexShrink: 0, children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", fontWeight: "medium", color: "fg", children: task }) }),
|
|
64737
64739
|
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { flex: 1, overflow: "hidden", minHeight: 0, children: detailsQuery.isLoading ? /* @__PURE__ */ jsxRuntime.jsx(StatusDisplay, { variant: "loading", title: "Loading task..." }) : detailsQuery.error ? /* @__PURE__ */ jsxRuntime.jsx(StatusDisplay, { variant: "error", title: "Error", message: detailsQuery.error.message }) : kind === "ui" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
64738
64740
|
UITaskPreview,
|
|
64739
64741
|
{
|
|
64740
64742
|
task,
|
|
64743
|
+
bare,
|
|
64741
64744
|
config: { apiUrl, repo, workspace, token: (requestOptions == null ? void 0 : requestOptions.token) ?? null }
|
|
64742
64745
|
}
|
|
64743
64746
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -64751,7 +64754,7 @@ const TaskPreview = React.memo(function TaskPreview2({
|
|
|
64751
64754
|
}
|
|
64752
64755
|
) })
|
|
64753
64756
|
] });
|
|
64754
|
-
}, (prev2, next2) => prev2.task === next2.task && prev2.repo === next2.repo && prev2.workspace === next2.workspace);
|
|
64757
|
+
}, (prev2, next2) => prev2.task === next2.task && prev2.repo === next2.repo && prev2.workspace === next2.workspace && prev2.bare === next2.bare);
|
|
64755
64758
|
function formatPrimitive(type, value) {
|
|
64756
64759
|
switch (type.type) {
|
|
64757
64760
|
case "Null":
|