@elaraai/e3-ui-components 1.0.27 → 1.0.28

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
@@ -9456,7 +9456,7 @@ const EastChakraDiff = memo(function EastChakraDiff2({ value }) {
9456
9456
  return /* @__PURE__ */ jsx$1(
9457
9457
  Box,
9458
9458
  {
9459
- layerStyle: "frame",
9459
+ layerStyle: "surface.frameless",
9460
9460
  p: "28px",
9461
9461
  textAlign: "center",
9462
9462
  color: "fg.subtle",
@@ -9483,9 +9483,8 @@ const EastChakraDiff = memo(function EastChakraDiff2({ value }) {
9483
9483
  return /* @__PURE__ */ jsxs(
9484
9484
  Box,
9485
9485
  {
9486
- layerStyle: "frame",
9486
+ layerStyle: "surface.frameless",
9487
9487
  fontFamily: "body",
9488
- borderColor: inConflictMode ? "fg.warning" : "border.strong",
9489
9488
  children: [
9490
9489
  /* @__PURE__ */ jsxs(Box, { css: es.root, children: [
9491
9490
  /* @__PURE__ */ jsx$1(Box, { css: es.lbl, children: "Pending changes" }),
@@ -61004,7 +61003,7 @@ function LoadingSkeleton() {
61004
61003
  const sk = useRecipe({ key: "skeleton" });
61005
61004
  const line2 = (w2, h2) => /* @__PURE__ */ jsx$1(Box, { css: sk({ variant: "line" }), width: w2, height: h2 });
61006
61005
  const block = (h2) => /* @__PURE__ */ jsx$1(Box, { css: sk({ variant: "block" }), width: "100%", minHeight: h2 });
61007
- return /* @__PURE__ */ jsxs(Box, { layerStyle: "frame", overflow: "visible", children: [
61006
+ return /* @__PURE__ */ jsxs(Box, { layerStyle: "surface.frameless", overflow: "visible", children: [
61008
61007
  /* @__PURE__ */ jsxs(Box, { layerStyle: "header.bar", display: "flex", alignItems: "center", gap: "3.5", children: [
61009
61008
  line2("260px", "20px"),
61010
61009
  /* @__PURE__ */ jsx$1(Box, { flex: "1" }),
@@ -61206,14 +61205,14 @@ const EastChakraExperiment = memo(function EastChakraExperiment2({ value }) {
61206
61205
  const which = data4.error ? "dataset" : configsBind.error ? "configs" : journalBind.error ? "journal" : null;
61207
61206
  const bindError = data4.error ?? configsBind.error ?? journalBind.error;
61208
61207
  const bindMsg = bindError instanceof Error ? bindError.message : bindError != null ? String(bindError) : null;
61209
- if (bindMsg) return /* @__PURE__ */ jsx$1(Box, { layerStyle: "frame", p: "6", children: /* @__PURE__ */ jsxs(Text, { textStyle: "body.sm", color: "fg.danger", children: [
61208
+ if (bindMsg) return /* @__PURE__ */ jsx$1(Box, { layerStyle: "surface.frameless", p: "6", children: /* @__PURE__ */ jsxs(Text, { textStyle: "body.sm", color: "fg.danger", children: [
61210
61209
  "Couldn’t load the experiment ",
61211
61210
  which,
61212
61211
  ": ",
61213
61212
  bindMsg
61214
61213
  ] }) });
61215
- if (noConfigs) return /* @__PURE__ */ jsx$1(Box, { layerStyle: "frame", p: "6", children: /* @__PURE__ */ jsx$1(Text, { textStyle: "body.sm", color: "fg.muted", children: "No questions to show — bind a non-empty configs list." }) });
61216
- if (failed2 && experiment.error) return /* @__PURE__ */ jsx$1(Box, { layerStyle: "frame", p: "6", children: /* @__PURE__ */ jsx$1(RunError, { error: experiment.error }) });
61214
+ if (noConfigs) return /* @__PURE__ */ jsx$1(Box, { layerStyle: "surface.frameless", p: "6", children: /* @__PURE__ */ jsx$1(Text, { textStyle: "body.sm", color: "fg.muted", children: "No questions to show — bind a non-empty configs list." }) });
61215
+ if (failed2 && experiment.error) return /* @__PURE__ */ jsx$1(Box, { layerStyle: "surface.frameless", p: "6", children: /* @__PURE__ */ jsx$1(RunError, { error: experiment.error }) });
61217
61216
  return /* @__PURE__ */ jsx$1(LoadingSkeleton, {});
61218
61217
  }
61219
61218
  const { spec: vs, answer: a2, refusal: ref, overlap: ov, refute: vr, dose: vd, journal, verdict } = view;
@@ -61234,7 +61233,7 @@ const EastChakraExperiment = memo(function EastChakraExperiment2({ value }) {
61234
61233
  const anyPrecomputedDesign = configs.some((c2) => c2.design.type === "some");
61235
61234
  const showValidate = hasDesign || anyPrecomputedDesign;
61236
61235
  const tabKeys = [...["answer", "trust", "dose"], ...showValidate ? ["validate"] : []];
61237
- return /* @__PURE__ */ jsx$1(GuidanceProvider, { on: guidance, vars: helpVars, children: /* @__PURE__ */ jsxs(Box, { layerStyle: "frame", overflow: "visible", children: [
61236
+ return /* @__PURE__ */ jsx$1(GuidanceProvider, { on: guidance, vars: helpVars, children: /* @__PURE__ */ jsxs(Box, { layerStyle: "surface.frameless", overflow: "visible", children: [
61238
61237
  /* @__PURE__ */ jsxs(Box, { layerStyle: "header.bar", display: "flex", alignItems: "center", gap: "3.5", children: [
61239
61238
  configs.length > 1 ? /* @__PURE__ */ jsxs(Menu.Root, { children: [
61240
61239
  /* @__PURE__ */ jsx$1(Menu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(Box, { as: "button", bg: "transparent", border: "0", p: "0", cursor: "pointer", display: "inline-flex", alignItems: "center", gap: "2", textAlign: "start", children: [
@@ -62994,9 +62993,9 @@ const EastChakraDecisionQueue = memo(function EastChakraDecisionQueue2({ value,
62994
62993
  return m2;
62995
62994
  }, [exiting]);
62996
62995
  if (decisions === null) {
62997
- return /* @__PURE__ */ jsx$1(Box, { layerStyle: "frame", p: "16px", children: /* @__PURE__ */ jsx$1(Text, { color: "fg.muted", fontSize: "13px", children: "Loading decisions…" }) });
62996
+ return /* @__PURE__ */ jsx$1(Box, { layerStyle: "surface.frameless", p: "16px", children: /* @__PURE__ */ jsx$1(Text, { color: "fg.muted", fontSize: "13px", children: "Loading decisions…" }) });
62998
62997
  }
62999
- return /* @__PURE__ */ jsxs(Box, { ref: rootRef, layerStyle: "frame", overflow: "hidden", children: [
62998
+ return /* @__PURE__ */ jsxs(Box, { ref: rootRef, layerStyle: "surface.frameless", overflow: "hidden", children: [
63000
62999
  /* @__PURE__ */ jsxs(Box, { css: es.root, children: [
63001
63000
  /* @__PURE__ */ jsx$1(Box, { css: es.lbl, children: heading }),
63002
63001
  sliceHandle !== null && railAffordances !== void 0 && /* @__PURE__ */ jsx$1(Box, { display: "flex", alignItems: "center", minWidth: "0", flex: "1", justifyContent: "flex-end", marginRight: "10px", children: /* @__PURE__ */ jsx$1(
@@ -63469,12 +63468,7 @@ function useDatasetValue(apiUrl, repo, workspace, datasetPath, options2) {
63469
63468
  queryKey: ["datasetValue", apiUrl, repo, workspace, datasetPath, hash2 ?? null],
63470
63469
  queryFn: async () => {
63471
63470
  const result = await datasetGet(apiUrl, repo, workspace, pathParts, reqOpts);
63472
- const t02 = performance.now();
63473
63471
  const decoded = decodeBeast2For(type, { platform: platformImpls })(result.data);
63474
- const kind = (type == null ? void 0 : type.type) ?? "unknown";
63475
- console.log(
63476
- `[east-value] decode ${kind} ${(result.data.length / 1024).toFixed(1)}KB in ${(performance.now() - t02).toFixed(1)}ms (${datasetPath})`
63477
- );
63478
63472
  return { decoded, sizeBytes: result.data.length };
63479
63473
  },
63480
63474
  enabled: enabled && !!workspace && !!datasetPath && hash2 != null,