@eventcatalog/visualiser 3.17.0 → 3.17.1
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 +22 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -33
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1257,8 +1257,8 @@ function DefaultService(props) {
|
|
|
1257
1257
|
() => normalizeOwners(props.data.service.owners),
|
|
1258
1258
|
[props.data.service.owners]
|
|
1259
1259
|
);
|
|
1260
|
-
const targetConnections = (0, import_react6.
|
|
1261
|
-
const sourceConnections = (0, import_react6.
|
|
1260
|
+
const targetConnections = (0, import_react6.useNodeConnections)({ handleType: "target" });
|
|
1261
|
+
const sourceConnections = (0, import_react6.useNodeConnections)({ handleType: "source" });
|
|
1262
1262
|
const isDark = useDarkMode();
|
|
1263
1263
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
1264
1264
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
@@ -1562,8 +1562,8 @@ function DefaultEvent(props) {
|
|
|
1562
1562
|
() => normalizeOwners(props?.data?.message?.owners),
|
|
1563
1563
|
[props?.data?.message?.owners]
|
|
1564
1564
|
);
|
|
1565
|
-
const targetConnections = (0, import_react9.
|
|
1566
|
-
const sourceConnections = (0, import_react9.
|
|
1565
|
+
const targetConnections = (0, import_react9.useNodeConnections)({ handleType: "target" });
|
|
1566
|
+
const sourceConnections = (0, import_react9.useNodeConnections)({ handleType: "source" });
|
|
1567
1567
|
const isDark = useDarkMode();
|
|
1568
1568
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
1569
1569
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
@@ -1898,8 +1898,8 @@ function DefaultQuery(props) {
|
|
|
1898
1898
|
() => normalizeOwners(props.data.message?.owners),
|
|
1899
1899
|
[props.data.message?.owners]
|
|
1900
1900
|
);
|
|
1901
|
-
const targetConnections = (0, import_react12.
|
|
1902
|
-
const sourceConnections = (0, import_react12.
|
|
1901
|
+
const targetConnections = (0, import_react12.useNodeConnections)({ handleType: "target" });
|
|
1902
|
+
const sourceConnections = (0, import_react12.useNodeConnections)({ handleType: "source" });
|
|
1903
1903
|
const isDark = useDarkMode();
|
|
1904
1904
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
1905
1905
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
@@ -2154,8 +2154,8 @@ function DefaultCommand(props) {
|
|
|
2154
2154
|
() => normalizeOwners(props.data.message?.owners),
|
|
2155
2155
|
[props.data.message?.owners]
|
|
2156
2156
|
);
|
|
2157
|
-
const targetConnections = (0, import_react14.
|
|
2158
|
-
const sourceConnections = (0, import_react14.
|
|
2157
|
+
const targetConnections = (0, import_react14.useNodeConnections)({ handleType: "target" });
|
|
2158
|
+
const sourceConnections = (0, import_react14.useNodeConnections)({ handleType: "source" });
|
|
2159
2159
|
const isDark = useDarkMode();
|
|
2160
2160
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
2161
2161
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
@@ -2495,8 +2495,8 @@ function DefaultChannel(props) {
|
|
|
2495
2495
|
() => normalizeOwners(data.channel?.owners),
|
|
2496
2496
|
[data.channel?.owners]
|
|
2497
2497
|
);
|
|
2498
|
-
const sourceConnections = (0, import_react15.
|
|
2499
|
-
const targetConnections = (0, import_react15.
|
|
2498
|
+
const sourceConnections = (0, import_react15.useNodeConnections)({ handleType: "source" });
|
|
2499
|
+
const targetConnections = (0, import_react15.useNodeConnections)({ handleType: "target" });
|
|
2500
2500
|
const isDark = useDarkMode();
|
|
2501
2501
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
2502
2502
|
const guarantee = getGuarantee(deliveryGuarantee);
|
|
@@ -2776,8 +2776,8 @@ function DefaultData(props) {
|
|
|
2776
2776
|
} = props.data.data;
|
|
2777
2777
|
const mode = props.data.mode || "simple";
|
|
2778
2778
|
const ownersNormalized = (0, import_react17.useMemo)(() => normalizeOwners(owners), [owners]);
|
|
2779
|
-
const targetConnections = (0, import_react18.
|
|
2780
|
-
const sourceConnections = (0, import_react18.
|
|
2779
|
+
const targetConnections = (0, import_react18.useNodeConnections)({ handleType: "target" });
|
|
2780
|
+
const sourceConnections = (0, import_react18.useNodeConnections)({ handleType: "source" });
|
|
2781
2781
|
const isDark = useDarkMode();
|
|
2782
2782
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
2783
2783
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
@@ -3169,8 +3169,8 @@ function PostItActor(props) {
|
|
|
3169
3169
|
function DefaultActor(props) {
|
|
3170
3170
|
const { name, summary, deprecated, draft, notes } = props?.data;
|
|
3171
3171
|
const mode = props?.data?.mode || "simple";
|
|
3172
|
-
const targetConnections = (0, import_react23.
|
|
3173
|
-
const sourceConnections = (0, import_react23.
|
|
3172
|
+
const targetConnections = (0, import_react23.useNodeConnections)({ handleType: "target" });
|
|
3173
|
+
const sourceConnections = (0, import_react23.useNodeConnections)({ handleType: "source" });
|
|
3174
3174
|
const isDark = useDarkMode();
|
|
3175
3175
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
3176
3176
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
@@ -3431,8 +3431,8 @@ function PostItExternalSystem(props) {
|
|
|
3431
3431
|
function DefaultExternalSystem(props) {
|
|
3432
3432
|
const { version, name, summary, deprecated, draft, notes } = props.data.externalSystem;
|
|
3433
3433
|
const mode = props.data.mode || "simple";
|
|
3434
|
-
const targetConnections = (0, import_react26.
|
|
3435
|
-
const sourceConnections = (0, import_react26.
|
|
3434
|
+
const targetConnections = (0, import_react26.useNodeConnections)({ handleType: "target" });
|
|
3435
|
+
const sourceConnections = (0, import_react26.useNodeConnections)({ handleType: "source" });
|
|
3436
3436
|
const isDark = useDarkMode();
|
|
3437
3437
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
3438
3438
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
@@ -3814,8 +3814,8 @@ function classNames11(...classes) {
|
|
|
3814
3814
|
var FieldNode_default = (0, import_react30.memo)(function Field(props) {
|
|
3815
3815
|
const { name, type: fieldType } = props.data;
|
|
3816
3816
|
const mode = props.data.mode || "simple";
|
|
3817
|
-
const targetConnections = (0, import_react31.
|
|
3818
|
-
const sourceConnections = (0, import_react31.
|
|
3817
|
+
const targetConnections = (0, import_react31.useNodeConnections)({ handleType: "target" });
|
|
3818
|
+
const sourceConnections = (0, import_react31.useNodeConnections)({ handleType: "source" });
|
|
3819
3819
|
const isDark = useDarkMode();
|
|
3820
3820
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
3821
3821
|
"div",
|
|
@@ -4969,8 +4969,8 @@ function PostItDataProduct(props) {
|
|
|
4969
4969
|
function DefaultDataProduct(props) {
|
|
4970
4970
|
const { version, name, summary, deprecated, draft, notes } = props.data.dataProduct;
|
|
4971
4971
|
const mode = props.data.mode || "simple";
|
|
4972
|
-
const targetConnections = (0, import_react49.
|
|
4973
|
-
const sourceConnections = (0, import_react49.
|
|
4972
|
+
const targetConnections = (0, import_react49.useNodeConnections)({ handleType: "target" });
|
|
4973
|
+
const sourceConnections = (0, import_react49.useNodeConnections)({ handleType: "source" });
|
|
4974
4974
|
const isDark = useDarkMode();
|
|
4975
4975
|
const deprecatedStripe = isDark ? "rgba(239,68,68,0.25)" : "rgba(239,68,68,0.1)";
|
|
4976
4976
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
@@ -5070,8 +5070,8 @@ var CARD_STYLE = {
|
|
|
5070
5070
|
var MessageGroupNode_default = (0, import_react50.memo)(function MessageGroupNode(props) {
|
|
5071
5071
|
const { groupName, messageCount } = props.data;
|
|
5072
5072
|
const isDark = useDarkMode();
|
|
5073
|
-
const targetConnections = (0, import_react51.
|
|
5074
|
-
const sourceConnections = (0, import_react51.
|
|
5073
|
+
const targetConnections = (0, import_react51.useNodeConnections)({ handleType: "target" });
|
|
5074
|
+
const sourceConnections = (0, import_react51.useNodeConnections)({ handleType: "source" });
|
|
5075
5075
|
const stackDepth = messageCount >= 3 ? 3 : messageCount;
|
|
5076
5076
|
const typeBreakdown = (0, import_react50.useMemo)(() => {
|
|
5077
5077
|
const counts = {};
|