@cere/cere-design-system 0.0.27 → 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 +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +20 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8574,7 +8574,11 @@ var FlowEditor = ({
|
|
|
8574
8574
|
backgroundVariant = BackgroundVariant.Dots,
|
|
8575
8575
|
showControls = true,
|
|
8576
8576
|
showMinimap = false,
|
|
8577
|
+
showBorder = true,
|
|
8578
|
+
borderRadius = 1,
|
|
8579
|
+
nodesDraggable = true,
|
|
8577
8580
|
containerProps,
|
|
8581
|
+
minimapProps,
|
|
8578
8582
|
onInit,
|
|
8579
8583
|
...reactFlowProps
|
|
8580
8584
|
}) => {
|
|
@@ -8587,19 +8591,22 @@ var FlowEditor = ({
|
|
|
8587
8591
|
},
|
|
8588
8592
|
[onInit]
|
|
8589
8593
|
);
|
|
8594
|
+
const { sx: containerSx, ...restContainerProps } = containerProps ?? {};
|
|
8590
8595
|
return /* @__PURE__ */ jsx95(ReactFlowProvider, { children: /* @__PURE__ */ jsx95(
|
|
8591
8596
|
Box29,
|
|
8592
8597
|
{
|
|
8593
|
-
sx:
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8598
|
+
sx: [
|
|
8599
|
+
{
|
|
8600
|
+
width: "100%",
|
|
8601
|
+
height: typeof height === "number" ? `${height}px` : height,
|
|
8602
|
+
overflow: "hidden",
|
|
8603
|
+
...showBorder && { border: `1px solid ${theme2.palette.divider}` },
|
|
8604
|
+
borderRadius,
|
|
8605
|
+
backgroundColor: theme2.palette.background.paper
|
|
8606
|
+
},
|
|
8607
|
+
...Array.isArray(containerSx) ? containerSx : [containerSx]
|
|
8608
|
+
],
|
|
8609
|
+
...restContainerProps,
|
|
8603
8610
|
children: /* @__PURE__ */ jsxs47(
|
|
8604
8611
|
ReactFlow,
|
|
8605
8612
|
{
|
|
@@ -8610,6 +8617,7 @@ var FlowEditor = ({
|
|
|
8610
8617
|
nodeTypes,
|
|
8611
8618
|
edgeTypes,
|
|
8612
8619
|
onInit: handleInit,
|
|
8620
|
+
nodesDraggable,
|
|
8613
8621
|
connectionLineType: ConnectionLineType.SmoothStep,
|
|
8614
8622
|
defaultEdgeOptions: {
|
|
8615
8623
|
style: {
|
|
@@ -8644,7 +8652,8 @@ var FlowEditor = ({
|
|
|
8644
8652
|
maskColor: `${theme2.palette.background.paper}80`,
|
|
8645
8653
|
style: {
|
|
8646
8654
|
backgroundColor: theme2.palette.background.paper
|
|
8647
|
-
}
|
|
8655
|
+
},
|
|
8656
|
+
...minimapProps
|
|
8648
8657
|
}
|
|
8649
8658
|
)
|
|
8650
8659
|
]
|