@cere/cere-design-system 0.0.27 → 0.0.29

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.mjs CHANGED
@@ -6604,6 +6604,7 @@ import { jsx as jsx58, jsxs as jsxs26 } from "react/jsx-runtime";
6604
6604
  var WorkflowTopBar = ({
6605
6605
  title = "Agent visualization flow chart",
6606
6606
  executionId,
6607
+ executionIdLabel = "Job ID",
6607
6608
  onExecutionIdChange,
6608
6609
  onClearExecutionId,
6609
6610
  submitLabel = "Submit",
@@ -6691,7 +6692,7 @@ var WorkflowTopBar = ({
6691
6692
  fontSize: 12,
6692
6693
  display: "block"
6693
6694
  },
6694
- children: "Execution CID"
6695
+ children: executionIdLabel
6695
6696
  }
6696
6697
  ),
6697
6698
  /* @__PURE__ */ jsx58(
@@ -6699,7 +6700,7 @@ var WorkflowTopBar = ({
6699
6700
  {
6700
6701
  value: executionId,
6701
6702
  onChange: (event) => onExecutionIdChange?.(event.target.value),
6702
- inputProps: { "aria-label": "Execution CID value" },
6703
+ inputProps: { "aria-label": executionIdLabel },
6703
6704
  sx: {
6704
6705
  width: "100%",
6705
6706
  mt: 0.25,
@@ -6717,7 +6718,7 @@ var WorkflowTopBar = ({
6717
6718
  IconButton11,
6718
6719
  {
6719
6720
  size: "small",
6720
- "aria-label": "Clear execution ID",
6721
+ "aria-label": `Clear ${executionIdLabel.toLowerCase()}`,
6721
6722
  onClick: onClearExecutionId,
6722
6723
  sx: { color: "#4A4458", ml: 1 },
6723
6724
  children: /* @__PURE__ */ jsx58(CancelIcon, { fontSize: "small" })
@@ -6781,7 +6782,7 @@ import {
6781
6782
  } from "@mui/material";
6782
6783
  import CloseIcon4 from "@mui/icons-material/Close";
6783
6784
  import ContentCopyOutlinedIcon from "@mui/icons-material/ContentCopyOutlined";
6784
- import { jsx as jsx59, jsxs as jsxs27 } from "react/jsx-runtime";
6785
+ import { Fragment as Fragment12, jsx as jsx59, jsxs as jsxs27 } from "react/jsx-runtime";
6785
6786
  var INSPECTOR_WIDTH = 320;
6786
6787
  var DIVIDER_COLOR = "#D6CEDD";
6787
6788
  var MUTED_TEXT_COLOR = "#938F99";
@@ -6807,6 +6808,10 @@ var WorkflowSideInspector = ({
6807
6808
  cubbyId = "ID:S8787",
6808
6809
  timestamp = "2026-02-11 14:32:10",
6809
6810
  duration = "120ms",
6811
+ showInput = true,
6812
+ showOutput = true,
6813
+ showTimestamp = true,
6814
+ showDuration = true,
6810
6815
  actionLabel,
6811
6816
  onClose,
6812
6817
  onCopyCubbyId,
@@ -6898,11 +6903,13 @@ var WorkflowSideInspector = ({
6898
6903
  )
6899
6904
  ] }),
6900
6905
  /* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } }),
6901
- /* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6902
- /* @__PURE__ */ jsx59(InfoBlock, { label: "Input", value: inputValue }),
6903
- /* @__PURE__ */ jsx59(InfoBlock, { label: "Output", value: outputValue })
6906
+ (showInput || showOutput) && /* @__PURE__ */ jsxs27(Fragment12, { children: [
6907
+ /* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6908
+ showInput && /* @__PURE__ */ jsx59(InfoBlock, { label: "Input", value: inputValue }),
6909
+ showOutput && /* @__PURE__ */ jsx59(InfoBlock, { label: "Output", value: outputValue })
6910
+ ] }),
6911
+ /* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } })
6904
6912
  ] }),
6905
- /* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } }),
6906
6913
  /* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
6907
6914
  /* @__PURE__ */ jsx59(Typography18, { variant: "body2", sx: { color: MUTED_TEXT_COLOR }, children: "Cubby ID" }),
6908
6915
  /* @__PURE__ */ jsx59(
@@ -6918,11 +6925,13 @@ var WorkflowSideInspector = ({
6918
6925
  )
6919
6926
  ] }),
6920
6927
  /* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } }),
6921
- /* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6922
- /* @__PURE__ */ jsx59(InfoBlock, { label: "Timestamp", value: timestamp }),
6923
- /* @__PURE__ */ jsx59(InfoBlock, { label: "Duration", value: duration })
6924
- ] }),
6925
- /* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } })
6928
+ (showTimestamp || showDuration) && /* @__PURE__ */ jsxs27(Fragment12, { children: [
6929
+ /* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6930
+ showTimestamp && /* @__PURE__ */ jsx59(InfoBlock, { label: "Timestamp", value: timestamp }),
6931
+ showDuration && /* @__PURE__ */ jsx59(InfoBlock, { label: "Duration", value: duration })
6932
+ ] }),
6933
+ /* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } })
6934
+ ] })
6926
6935
  ] }),
6927
6936
  actionLabel && /* @__PURE__ */ jsx59(Button, { variant: "primary", fullWidth: true, onClick: onAction, children: actionLabel })
6928
6937
  ]
@@ -7957,9 +7966,9 @@ var Truncate = ({
7957
7966
 
7958
7967
  // src/components/utilities/BytesSize/BytesSize.tsx
7959
7968
  import size from "byte-size";
7960
- import { Fragment as Fragment12, jsx as jsx87 } from "react/jsx-runtime";
7969
+ import { Fragment as Fragment13, jsx as jsx87 } from "react/jsx-runtime";
7961
7970
  var BytesSize = ({ bytes }) => {
7962
- return /* @__PURE__ */ jsx87(Fragment12, { children: size(bytes).toString() });
7971
+ return /* @__PURE__ */ jsx87(Fragment13, { children: size(bytes).toString() });
7963
7972
  };
7964
7973
 
7965
7974
  // src/components/utilities/QRCode/QRCode.tsx
@@ -8311,7 +8320,7 @@ var SummaryStats = ({ items }) => {
8311
8320
  };
8312
8321
 
8313
8322
  // src/components/charts/TimeSeriesGraph/TimeSeriesGraph.tsx
8314
- import { Fragment as Fragment13, jsx as jsx94, jsxs as jsxs46 } from "react/jsx-runtime";
8323
+ import { Fragment as Fragment14, jsx as jsx94, jsxs as jsxs46 } from "react/jsx-runtime";
8315
8324
  var ChartContainer = styled45(Box28)({
8316
8325
  position: "relative",
8317
8326
  height: 320
@@ -8539,7 +8548,7 @@ var TimeSeriesGraph = ({
8539
8548
  }
8540
8549
  )
8541
8550
  ] }),
8542
- shouldShowSummary && /* @__PURE__ */ jsxs46(Fragment13, { children: [
8551
+ shouldShowSummary && /* @__PURE__ */ jsxs46(Fragment14, { children: [
8543
8552
  /* @__PURE__ */ jsx94(Divider11, {}),
8544
8553
  /* @__PURE__ */ jsx94(SummaryStats, { items: summaryItems })
8545
8554
  ] })
@@ -8574,7 +8583,11 @@ var FlowEditor = ({
8574
8583
  backgroundVariant = BackgroundVariant.Dots,
8575
8584
  showControls = true,
8576
8585
  showMinimap = false,
8586
+ showBorder = true,
8587
+ borderRadius = 1,
8588
+ nodesDraggable = true,
8577
8589
  containerProps,
8590
+ minimapProps,
8578
8591
  onInit,
8579
8592
  ...reactFlowProps
8580
8593
  }) => {
@@ -8587,19 +8600,22 @@ var FlowEditor = ({
8587
8600
  },
8588
8601
  [onInit]
8589
8602
  );
8603
+ const { sx: containerSx, ...restContainerProps } = containerProps ?? {};
8590
8604
  return /* @__PURE__ */ jsx95(ReactFlowProvider, { children: /* @__PURE__ */ jsx95(
8591
8605
  Box29,
8592
8606
  {
8593
- sx: {
8594
- width: "100%",
8595
- height: typeof height === "number" ? `${height}px` : height,
8596
- border: `1px solid ${theme2.palette.divider}`,
8597
- borderRadius: theme2.shape.borderRadius,
8598
- overflow: "hidden",
8599
- backgroundColor: theme2.palette.background.paper,
8600
- ...containerProps?.sx
8601
- },
8602
- ...containerProps,
8607
+ sx: [
8608
+ {
8609
+ width: "100%",
8610
+ height: typeof height === "number" ? `${height}px` : height,
8611
+ overflow: "hidden",
8612
+ ...showBorder && { border: `1px solid ${theme2.palette.divider}` },
8613
+ borderRadius,
8614
+ backgroundColor: theme2.palette.background.paper
8615
+ },
8616
+ ...Array.isArray(containerSx) ? containerSx : [containerSx]
8617
+ ],
8618
+ ...restContainerProps,
8603
8619
  children: /* @__PURE__ */ jsxs47(
8604
8620
  ReactFlow,
8605
8621
  {
@@ -8610,6 +8626,7 @@ var FlowEditor = ({
8610
8626
  nodeTypes,
8611
8627
  edgeTypes,
8612
8628
  onInit: handleInit,
8629
+ nodesDraggable,
8613
8630
  connectionLineType: ConnectionLineType.SmoothStep,
8614
8631
  defaultEdgeOptions: {
8615
8632
  style: {
@@ -8644,7 +8661,8 @@ var FlowEditor = ({
8644
8661
  maskColor: `${theme2.palette.background.paper}80`,
8645
8662
  style: {
8646
8663
  backgroundColor: theme2.palette.background.paper
8647
- }
8664
+ },
8665
+ ...minimapProps
8648
8666
  }
8649
8667
  )
8650
8668
  ]
@@ -9058,7 +9076,7 @@ import { Panel as Panel2 } from "reactflow";
9058
9076
 
9059
9077
  // src/components/third-party/WorkflowNodeHandle.tsx
9060
9078
  import { Handle, Position } from "reactflow";
9061
- import { Fragment as Fragment14, jsx as jsx97, jsxs as jsxs49 } from "react/jsx-runtime";
9079
+ import { Fragment as Fragment15, jsx as jsx97, jsxs as jsxs49 } from "react/jsx-runtime";
9062
9080
  var WorkflowNodeHandle = ({
9063
9081
  data,
9064
9082
  selected
@@ -9072,7 +9090,7 @@ var WorkflowNodeHandle = ({
9072
9090
  background: handleColor,
9073
9091
  boxShadow: WORKFLOW_NODE_SHADOW
9074
9092
  };
9075
- return /* @__PURE__ */ jsxs49(Fragment14, { children: [
9093
+ return /* @__PURE__ */ jsxs49(Fragment15, { children: [
9076
9094
  /* @__PURE__ */ jsx97(Handle, { type: "target", position: Position.Left, style: handleStyle }),
9077
9095
  /* @__PURE__ */ jsx97(
9078
9096
  WorkflowNode,