@cere/cere-design-system 0.0.26 → 0.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.d.mts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.js +22 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -13
- 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';
|
|
@@ -1730,8 +1730,8 @@ interface WorkflowSideInspectorProps extends PaperProps$1 {
|
|
|
1730
1730
|
timestamp?: string;
|
|
1731
1731
|
/** Duration value shown in metadata section. */
|
|
1732
1732
|
duration?: string;
|
|
1733
|
-
/** Bottom CTA label. */
|
|
1734
|
-
actionLabel?: string;
|
|
1733
|
+
/** Bottom CTA label. Set to `undefined` or `null` to hide the button. */
|
|
1734
|
+
actionLabel?: string | null;
|
|
1735
1735
|
/** Called when close button is pressed. */
|
|
1736
1736
|
onClose?: () => void;
|
|
1737
1737
|
/** Called when cubby copy button is pressed. */
|
|
@@ -2226,10 +2226,30 @@ interface FlowEditorProps extends Omit<ReactFlowProps, 'nodes' | 'edges'> {
|
|
|
2226
2226
|
* @default false
|
|
2227
2227
|
*/
|
|
2228
2228
|
showMinimap?: boolean;
|
|
2229
|
+
/**
|
|
2230
|
+
* Allow nodes to be dragged by the user
|
|
2231
|
+
* @default true
|
|
2232
|
+
*/
|
|
2233
|
+
nodesDraggable?: boolean;
|
|
2234
|
+
/**
|
|
2235
|
+
* Show border around the container
|
|
2236
|
+
* @default true
|
|
2237
|
+
*/
|
|
2238
|
+
showBorder?: boolean;
|
|
2239
|
+
/**
|
|
2240
|
+
* Border radius of the container in theme spacing units (e.g. 1 = 8px, 2 = 16px)
|
|
2241
|
+
* @default 1
|
|
2242
|
+
*/
|
|
2243
|
+
borderRadius?: number;
|
|
2229
2244
|
/**
|
|
2230
2245
|
* Container props
|
|
2231
2246
|
*/
|
|
2232
2247
|
containerProps?: BoxProps;
|
|
2248
|
+
/**
|
|
2249
|
+
* Props passed directly to the ReactFlow MiniMap component, allowing full customization
|
|
2250
|
+
* of colors, mask, style, and any other MiniMap option. Consumer values override defaults.
|
|
2251
|
+
*/
|
|
2252
|
+
minimapProps?: Partial<MiniMapProps>;
|
|
2233
2253
|
/**
|
|
2234
2254
|
* Callback when flow instance is initialized
|
|
2235
2255
|
*/
|
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';
|
|
@@ -1730,8 +1730,8 @@ interface WorkflowSideInspectorProps extends PaperProps$1 {
|
|
|
1730
1730
|
timestamp?: string;
|
|
1731
1731
|
/** Duration value shown in metadata section. */
|
|
1732
1732
|
duration?: string;
|
|
1733
|
-
/** Bottom CTA label. */
|
|
1734
|
-
actionLabel?: string;
|
|
1733
|
+
/** Bottom CTA label. Set to `undefined` or `null` to hide the button. */
|
|
1734
|
+
actionLabel?: string | null;
|
|
1735
1735
|
/** Called when close button is pressed. */
|
|
1736
1736
|
onClose?: () => void;
|
|
1737
1737
|
/** Called when cubby copy button is pressed. */
|
|
@@ -2226,10 +2226,30 @@ interface FlowEditorProps extends Omit<ReactFlowProps, 'nodes' | 'edges'> {
|
|
|
2226
2226
|
* @default false
|
|
2227
2227
|
*/
|
|
2228
2228
|
showMinimap?: boolean;
|
|
2229
|
+
/**
|
|
2230
|
+
* Allow nodes to be dragged by the user
|
|
2231
|
+
* @default true
|
|
2232
|
+
*/
|
|
2233
|
+
nodesDraggable?: boolean;
|
|
2234
|
+
/**
|
|
2235
|
+
* Show border around the container
|
|
2236
|
+
* @default true
|
|
2237
|
+
*/
|
|
2238
|
+
showBorder?: boolean;
|
|
2239
|
+
/**
|
|
2240
|
+
* Border radius of the container in theme spacing units (e.g. 1 = 8px, 2 = 16px)
|
|
2241
|
+
* @default 1
|
|
2242
|
+
*/
|
|
2243
|
+
borderRadius?: number;
|
|
2229
2244
|
/**
|
|
2230
2245
|
* Container props
|
|
2231
2246
|
*/
|
|
2232
2247
|
containerProps?: BoxProps;
|
|
2248
|
+
/**
|
|
2249
|
+
* Props passed directly to the ReactFlow MiniMap component, allowing full customization
|
|
2250
|
+
* of colors, mask, style, and any other MiniMap option. Consumer values override defaults.
|
|
2251
|
+
*/
|
|
2252
|
+
minimapProps?: Partial<MiniMapProps>;
|
|
2233
2253
|
/**
|
|
2234
2254
|
* Callback when flow instance is initialized
|
|
2235
2255
|
*/
|
package/dist/index.js
CHANGED
|
@@ -6847,7 +6847,7 @@ var WorkflowSideInspector = ({
|
|
|
6847
6847
|
cubbyId = "ID:S8787",
|
|
6848
6848
|
timestamp = "2026-02-11 14:32:10",
|
|
6849
6849
|
duration = "120ms",
|
|
6850
|
-
actionLabel
|
|
6850
|
+
actionLabel,
|
|
6851
6851
|
onClose,
|
|
6852
6852
|
onCopyCubbyId,
|
|
6853
6853
|
onAction,
|
|
@@ -6964,7 +6964,7 @@ var WorkflowSideInspector = ({
|
|
|
6964
6964
|
] }),
|
|
6965
6965
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material40.Divider, { sx: { borderColor: DIVIDER_COLOR } })
|
|
6966
6966
|
] }),
|
|
6967
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { variant: "primary", fullWidth: true, onClick: onAction, children: actionLabel })
|
|
6967
|
+
actionLabel && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { variant: "primary", fullWidth: true, onClick: onAction, children: actionLabel })
|
|
6968
6968
|
]
|
|
6969
6969
|
}
|
|
6970
6970
|
);
|
|
@@ -8586,7 +8586,11 @@ var FlowEditor = ({
|
|
|
8586
8586
|
backgroundVariant = import_reactflow.BackgroundVariant.Dots,
|
|
8587
8587
|
showControls = true,
|
|
8588
8588
|
showMinimap = false,
|
|
8589
|
+
showBorder = true,
|
|
8590
|
+
borderRadius = 1,
|
|
8591
|
+
nodesDraggable = true,
|
|
8589
8592
|
containerProps,
|
|
8593
|
+
minimapProps,
|
|
8590
8594
|
onInit,
|
|
8591
8595
|
...reactFlowProps
|
|
8592
8596
|
}) => {
|
|
@@ -8599,19 +8603,22 @@ var FlowEditor = ({
|
|
|
8599
8603
|
},
|
|
8600
8604
|
[onInit]
|
|
8601
8605
|
);
|
|
8606
|
+
const { sx: containerSx, ...restContainerProps } = containerProps ?? {};
|
|
8602
8607
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_reactflow.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8603
8608
|
import_material72.Box,
|
|
8604
8609
|
{
|
|
8605
|
-
sx:
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8610
|
+
sx: [
|
|
8611
|
+
{
|
|
8612
|
+
width: "100%",
|
|
8613
|
+
height: typeof height === "number" ? `${height}px` : height,
|
|
8614
|
+
overflow: "hidden",
|
|
8615
|
+
...showBorder && { border: `1px solid ${theme2.palette.divider}` },
|
|
8616
|
+
borderRadius,
|
|
8617
|
+
backgroundColor: theme2.palette.background.paper
|
|
8618
|
+
},
|
|
8619
|
+
...Array.isArray(containerSx) ? containerSx : [containerSx]
|
|
8620
|
+
],
|
|
8621
|
+
...restContainerProps,
|
|
8615
8622
|
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
8616
8623
|
import_reactflow.default,
|
|
8617
8624
|
{
|
|
@@ -8622,6 +8629,7 @@ var FlowEditor = ({
|
|
|
8622
8629
|
nodeTypes,
|
|
8623
8630
|
edgeTypes,
|
|
8624
8631
|
onInit: handleInit,
|
|
8632
|
+
nodesDraggable,
|
|
8625
8633
|
connectionLineType: import_reactflow.ConnectionLineType.SmoothStep,
|
|
8626
8634
|
defaultEdgeOptions: {
|
|
8627
8635
|
style: {
|
|
@@ -8656,7 +8664,8 @@ var FlowEditor = ({
|
|
|
8656
8664
|
maskColor: `${theme2.palette.background.paper}80`,
|
|
8657
8665
|
style: {
|
|
8658
8666
|
backgroundColor: theme2.palette.background.paper
|
|
8659
|
-
}
|
|
8667
|
+
},
|
|
8668
|
+
...minimapProps
|
|
8660
8669
|
}
|
|
8661
8670
|
)
|
|
8662
8671
|
]
|