@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.d.mts +34 -4
- package/dist/index.d.ts +34 -4
- package/dist/index.js +41 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32,7 +32,7 @@ import { BoxProps as BoxProps$1 } from '@mui/material/Box';
|
|
|
32
32
|
import { AlertProps as AlertProps$1 } from '@mui/material/Alert';
|
|
33
33
|
import { SnackbarProps as SnackbarProps$1 } from '@mui/material/Snackbar';
|
|
34
34
|
import { QRCodeProps as QRCodeProps$1 } from 'react-qr-code';
|
|
35
|
-
import { ReactFlowProps, Node, Edge, OnNodesChange, OnEdgesChange, NodeTypes, EdgeTypes, BackgroundVariant, ReactFlowInstance, NodeProps } from 'reactflow';
|
|
35
|
+
import { ReactFlowProps, Node, Edge, OnNodesChange, OnEdgesChange, NodeTypes, EdgeTypes, BackgroundVariant, MiniMapProps, ReactFlowInstance, NodeProps } from 'reactflow';
|
|
36
36
|
export { Background, BackgroundVariant, ConnectionLineType, Controls, Edge, EdgeTypes, MiniMap, Node, NodeTypes, OnEdgesChange, OnNodesChange, Panel, ReactFlowInstance } from 'reactflow';
|
|
37
37
|
import { Monaco } from '@monaco-editor/react';
|
|
38
38
|
import { editor } from 'monaco-editor';
|
|
@@ -1681,11 +1681,13 @@ declare const AppBar: React__default.FC<AppBarProps>;
|
|
|
1681
1681
|
interface WorkflowTopBarProps extends Omit<BoxProps$1, 'title'> {
|
|
1682
1682
|
/** Heading shown at the left side of the bar. */
|
|
1683
1683
|
title?: string;
|
|
1684
|
-
/**
|
|
1684
|
+
/** Job identifier displayed in the Job ID field. */
|
|
1685
1685
|
executionId: string;
|
|
1686
|
-
/**
|
|
1686
|
+
/** Label shown above the job ID input. Defaults to "Job ID". */
|
|
1687
|
+
executionIdLabel?: string;
|
|
1688
|
+
/** Called when the job ID value changes. */
|
|
1687
1689
|
onExecutionIdChange?: (value: string) => void;
|
|
1688
|
-
/** Called when the
|
|
1690
|
+
/** Called when the job ID clear action is pressed. */
|
|
1689
1691
|
onClearExecutionId?: () => void;
|
|
1690
1692
|
/** Submit button label. */
|
|
1691
1693
|
submitLabel?: string;
|
|
@@ -1730,6 +1732,14 @@ interface WorkflowSideInspectorProps extends PaperProps$1 {
|
|
|
1730
1732
|
timestamp?: string;
|
|
1731
1733
|
/** Duration value shown in metadata section. */
|
|
1732
1734
|
duration?: string;
|
|
1735
|
+
/** Whether to show the Input field in the details section. Defaults to true. */
|
|
1736
|
+
showInput?: boolean;
|
|
1737
|
+
/** Whether to show the Output field in the details section. Defaults to true. */
|
|
1738
|
+
showOutput?: boolean;
|
|
1739
|
+
/** Whether to show the Timestamp field in the metadata section. Defaults to true. */
|
|
1740
|
+
showTimestamp?: boolean;
|
|
1741
|
+
/** Whether to show the Duration field in the metadata section. Defaults to true. */
|
|
1742
|
+
showDuration?: boolean;
|
|
1733
1743
|
/** Bottom CTA label. Set to `undefined` or `null` to hide the button. */
|
|
1734
1744
|
actionLabel?: string | null;
|
|
1735
1745
|
/** Called when close button is pressed. */
|
|
@@ -2226,10 +2236,30 @@ interface FlowEditorProps extends Omit<ReactFlowProps, 'nodes' | 'edges'> {
|
|
|
2226
2236
|
* @default false
|
|
2227
2237
|
*/
|
|
2228
2238
|
showMinimap?: boolean;
|
|
2239
|
+
/**
|
|
2240
|
+
* Allow nodes to be dragged by the user
|
|
2241
|
+
* @default true
|
|
2242
|
+
*/
|
|
2243
|
+
nodesDraggable?: boolean;
|
|
2244
|
+
/**
|
|
2245
|
+
* Show border around the container
|
|
2246
|
+
* @default true
|
|
2247
|
+
*/
|
|
2248
|
+
showBorder?: boolean;
|
|
2249
|
+
/**
|
|
2250
|
+
* Border radius of the container in theme spacing units (e.g. 1 = 8px, 2 = 16px)
|
|
2251
|
+
* @default 1
|
|
2252
|
+
*/
|
|
2253
|
+
borderRadius?: number;
|
|
2229
2254
|
/**
|
|
2230
2255
|
* Container props
|
|
2231
2256
|
*/
|
|
2232
2257
|
containerProps?: BoxProps;
|
|
2258
|
+
/**
|
|
2259
|
+
* Props passed directly to the ReactFlow MiniMap component, allowing full customization
|
|
2260
|
+
* of colors, mask, style, and any other MiniMap option. Consumer values override defaults.
|
|
2261
|
+
*/
|
|
2262
|
+
minimapProps?: Partial<MiniMapProps>;
|
|
2233
2263
|
/**
|
|
2234
2264
|
* Callback when flow instance is initialized
|
|
2235
2265
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ import { BoxProps as BoxProps$1 } from '@mui/material/Box';
|
|
|
32
32
|
import { AlertProps as AlertProps$1 } from '@mui/material/Alert';
|
|
33
33
|
import { SnackbarProps as SnackbarProps$1 } from '@mui/material/Snackbar';
|
|
34
34
|
import { QRCodeProps as QRCodeProps$1 } from 'react-qr-code';
|
|
35
|
-
import { ReactFlowProps, Node, Edge, OnNodesChange, OnEdgesChange, NodeTypes, EdgeTypes, BackgroundVariant, ReactFlowInstance, NodeProps } from 'reactflow';
|
|
35
|
+
import { ReactFlowProps, Node, Edge, OnNodesChange, OnEdgesChange, NodeTypes, EdgeTypes, BackgroundVariant, MiniMapProps, ReactFlowInstance, NodeProps } from 'reactflow';
|
|
36
36
|
export { Background, BackgroundVariant, ConnectionLineType, Controls, Edge, EdgeTypes, MiniMap, Node, NodeTypes, OnEdgesChange, OnNodesChange, Panel, ReactFlowInstance } from 'reactflow';
|
|
37
37
|
import { Monaco } from '@monaco-editor/react';
|
|
38
38
|
import { editor } from 'monaco-editor';
|
|
@@ -1681,11 +1681,13 @@ declare const AppBar: React__default.FC<AppBarProps>;
|
|
|
1681
1681
|
interface WorkflowTopBarProps extends Omit<BoxProps$1, 'title'> {
|
|
1682
1682
|
/** Heading shown at the left side of the bar. */
|
|
1683
1683
|
title?: string;
|
|
1684
|
-
/**
|
|
1684
|
+
/** Job identifier displayed in the Job ID field. */
|
|
1685
1685
|
executionId: string;
|
|
1686
|
-
/**
|
|
1686
|
+
/** Label shown above the job ID input. Defaults to "Job ID". */
|
|
1687
|
+
executionIdLabel?: string;
|
|
1688
|
+
/** Called when the job ID value changes. */
|
|
1687
1689
|
onExecutionIdChange?: (value: string) => void;
|
|
1688
|
-
/** Called when the
|
|
1690
|
+
/** Called when the job ID clear action is pressed. */
|
|
1689
1691
|
onClearExecutionId?: () => void;
|
|
1690
1692
|
/** Submit button label. */
|
|
1691
1693
|
submitLabel?: string;
|
|
@@ -1730,6 +1732,14 @@ interface WorkflowSideInspectorProps extends PaperProps$1 {
|
|
|
1730
1732
|
timestamp?: string;
|
|
1731
1733
|
/** Duration value shown in metadata section. */
|
|
1732
1734
|
duration?: string;
|
|
1735
|
+
/** Whether to show the Input field in the details section. Defaults to true. */
|
|
1736
|
+
showInput?: boolean;
|
|
1737
|
+
/** Whether to show the Output field in the details section. Defaults to true. */
|
|
1738
|
+
showOutput?: boolean;
|
|
1739
|
+
/** Whether to show the Timestamp field in the metadata section. Defaults to true. */
|
|
1740
|
+
showTimestamp?: boolean;
|
|
1741
|
+
/** Whether to show the Duration field in the metadata section. Defaults to true. */
|
|
1742
|
+
showDuration?: boolean;
|
|
1733
1743
|
/** Bottom CTA label. Set to `undefined` or `null` to hide the button. */
|
|
1734
1744
|
actionLabel?: string | null;
|
|
1735
1745
|
/** Called when close button is pressed. */
|
|
@@ -2226,10 +2236,30 @@ interface FlowEditorProps extends Omit<ReactFlowProps, 'nodes' | 'edges'> {
|
|
|
2226
2236
|
* @default false
|
|
2227
2237
|
*/
|
|
2228
2238
|
showMinimap?: boolean;
|
|
2239
|
+
/**
|
|
2240
|
+
* Allow nodes to be dragged by the user
|
|
2241
|
+
* @default true
|
|
2242
|
+
*/
|
|
2243
|
+
nodesDraggable?: boolean;
|
|
2244
|
+
/**
|
|
2245
|
+
* Show border around the container
|
|
2246
|
+
* @default true
|
|
2247
|
+
*/
|
|
2248
|
+
showBorder?: boolean;
|
|
2249
|
+
/**
|
|
2250
|
+
* Border radius of the container in theme spacing units (e.g. 1 = 8px, 2 = 16px)
|
|
2251
|
+
* @default 1
|
|
2252
|
+
*/
|
|
2253
|
+
borderRadius?: number;
|
|
2229
2254
|
/**
|
|
2230
2255
|
* Container props
|
|
2231
2256
|
*/
|
|
2232
2257
|
containerProps?: BoxProps;
|
|
2258
|
+
/**
|
|
2259
|
+
* Props passed directly to the ReactFlow MiniMap component, allowing full customization
|
|
2260
|
+
* of colors, mask, style, and any other MiniMap option. Consumer values override defaults.
|
|
2261
|
+
*/
|
|
2262
|
+
minimapProps?: Partial<MiniMapProps>;
|
|
2233
2263
|
/**
|
|
2234
2264
|
* Callback when flow instance is initialized
|
|
2235
2265
|
*/
|
package/dist/index.js
CHANGED
|
@@ -6651,6 +6651,7 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
6651
6651
|
var WorkflowTopBar = ({
|
|
6652
6652
|
title = "Agent visualization flow chart",
|
|
6653
6653
|
executionId,
|
|
6654
|
+
executionIdLabel = "Job ID",
|
|
6654
6655
|
onExecutionIdChange,
|
|
6655
6656
|
onClearExecutionId,
|
|
6656
6657
|
submitLabel = "Submit",
|
|
@@ -6738,7 +6739,7 @@ var WorkflowTopBar = ({
|
|
|
6738
6739
|
fontSize: 12,
|
|
6739
6740
|
display: "block"
|
|
6740
6741
|
},
|
|
6741
|
-
children:
|
|
6742
|
+
children: executionIdLabel
|
|
6742
6743
|
}
|
|
6743
6744
|
),
|
|
6744
6745
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
@@ -6746,7 +6747,7 @@ var WorkflowTopBar = ({
|
|
|
6746
6747
|
{
|
|
6747
6748
|
value: executionId,
|
|
6748
6749
|
onChange: (event) => onExecutionIdChange?.(event.target.value),
|
|
6749
|
-
inputProps: { "aria-label":
|
|
6750
|
+
inputProps: { "aria-label": executionIdLabel },
|
|
6750
6751
|
sx: {
|
|
6751
6752
|
width: "100%",
|
|
6752
6753
|
mt: 0.25,
|
|
@@ -6764,7 +6765,7 @@ var WorkflowTopBar = ({
|
|
|
6764
6765
|
import_material39.IconButton,
|
|
6765
6766
|
{
|
|
6766
6767
|
size: "small",
|
|
6767
|
-
"aria-label":
|
|
6768
|
+
"aria-label": `Clear ${executionIdLabel.toLowerCase()}`,
|
|
6768
6769
|
onClick: onClearExecutionId,
|
|
6769
6770
|
sx: { color: "#4A4458", ml: 1 },
|
|
6770
6771
|
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Cancel.default, { fontSize: "small" })
|
|
@@ -6847,6 +6848,10 @@ var WorkflowSideInspector = ({
|
|
|
6847
6848
|
cubbyId = "ID:S8787",
|
|
6848
6849
|
timestamp = "2026-02-11 14:32:10",
|
|
6849
6850
|
duration = "120ms",
|
|
6851
|
+
showInput = true,
|
|
6852
|
+
showOutput = true,
|
|
6853
|
+
showTimestamp = true,
|
|
6854
|
+
showDuration = true,
|
|
6850
6855
|
actionLabel,
|
|
6851
6856
|
onClose,
|
|
6852
6857
|
onCopyCubbyId,
|
|
@@ -6938,11 +6943,13 @@ var WorkflowSideInspector = ({
|
|
|
6938
6943
|
)
|
|
6939
6944
|
] }),
|
|
6940
6945
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6941
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
6942
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.
|
|
6943
|
-
|
|
6946
|
+
(showInput || showOutput) && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
6947
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_material40.Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
6948
|
+
showInput && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoBlock, { label: "Input", value: inputValue }),
|
|
6949
|
+
showOutput && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoBlock, { label: "Output", value: outputValue })
|
|
6950
|
+
] }),
|
|
6951
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } })
|
|
6944
6952
|
] }),
|
|
6945
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6946
6953
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_material40.Box, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
6947
6954
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Typography, { variant: "body2", sx: { color: MUTED_TEXT_COLOR }, children: "Cubby ID" }),
|
|
6948
6955
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
@@ -6958,11 +6965,13 @@ var WorkflowSideInspector = ({
|
|
|
6958
6965
|
)
|
|
6959
6966
|
] }),
|
|
6960
6967
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6961
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
6962
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6968
|
+
(showTimestamp || showDuration) && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
6969
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_material40.Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
6970
|
+
showTimestamp && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoBlock, { label: "Timestamp", value: timestamp }),
|
|
6971
|
+
showDuration && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoBlock, { label: "Duration", value: duration })
|
|
6972
|
+
] }),
|
|
6973
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } })
|
|
6974
|
+
] })
|
|
6966
6975
|
] }),
|
|
6967
6976
|
actionLabel && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { variant: "primary", fullWidth: true, onClick: onAction, children: actionLabel })
|
|
6968
6977
|
]
|
|
@@ -8586,7 +8595,11 @@ var FlowEditor = ({
|
|
|
8586
8595
|
backgroundVariant = import_reactflow.BackgroundVariant.Dots,
|
|
8587
8596
|
showControls = true,
|
|
8588
8597
|
showMinimap = false,
|
|
8598
|
+
showBorder = true,
|
|
8599
|
+
borderRadius = 1,
|
|
8600
|
+
nodesDraggable = true,
|
|
8589
8601
|
containerProps,
|
|
8602
|
+
minimapProps,
|
|
8590
8603
|
onInit,
|
|
8591
8604
|
...reactFlowProps
|
|
8592
8605
|
}) => {
|
|
@@ -8599,19 +8612,22 @@ var FlowEditor = ({
|
|
|
8599
8612
|
},
|
|
8600
8613
|
[onInit]
|
|
8601
8614
|
);
|
|
8615
|
+
const { sx: containerSx, ...restContainerProps } = containerProps ?? {};
|
|
8602
8616
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_reactflow.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8603
8617
|
import_material72.Box,
|
|
8604
8618
|
{
|
|
8605
|
-
sx:
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8619
|
+
sx: [
|
|
8620
|
+
{
|
|
8621
|
+
width: "100%",
|
|
8622
|
+
height: typeof height === "number" ? `${height}px` : height,
|
|
8623
|
+
overflow: "hidden",
|
|
8624
|
+
...showBorder && { border: `1px solid ${theme2.palette.divider}` },
|
|
8625
|
+
borderRadius,
|
|
8626
|
+
backgroundColor: theme2.palette.background.paper
|
|
8627
|
+
},
|
|
8628
|
+
...Array.isArray(containerSx) ? containerSx : [containerSx]
|
|
8629
|
+
],
|
|
8630
|
+
...restContainerProps,
|
|
8615
8631
|
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
8616
8632
|
import_reactflow.default,
|
|
8617
8633
|
{
|
|
@@ -8622,6 +8638,7 @@ var FlowEditor = ({
|
|
|
8622
8638
|
nodeTypes,
|
|
8623
8639
|
edgeTypes,
|
|
8624
8640
|
onInit: handleInit,
|
|
8641
|
+
nodesDraggable,
|
|
8625
8642
|
connectionLineType: import_reactflow.ConnectionLineType.SmoothStep,
|
|
8626
8643
|
defaultEdgeOptions: {
|
|
8627
8644
|
style: {
|
|
@@ -8656,7 +8673,8 @@ var FlowEditor = ({
|
|
|
8656
8673
|
maskColor: `${theme2.palette.background.paper}80`,
|
|
8657
8674
|
style: {
|
|
8658
8675
|
backgroundColor: theme2.palette.background.paper
|
|
8659
|
-
}
|
|
8676
|
+
},
|
|
8677
|
+
...minimapProps
|
|
8660
8678
|
}
|
|
8661
8679
|
)
|
|
8662
8680
|
]
|