@abdellatifui/react 3.1.92 → 3.1.93

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/nextgen.js CHANGED
@@ -14300,7 +14300,7 @@ const CustomMarker = (props) => {
14300
14300
  latitude,
14301
14301
  anchor: "center",
14302
14302
  className: cn(
14303
- "group z-30 isolate hover:z-40",
14303
+ "group z-30 isolate hover:z-40 w-fit h-fit",
14304
14304
  className
14305
14305
  ),
14306
14306
  style: {
@@ -14446,7 +14446,6 @@ const PortText = (props) => {
14446
14446
  var _a;
14447
14447
  const ref = useRef(null);
14448
14448
  const {
14449
- text,
14450
14449
  rotation,
14451
14450
  isVisible,
14452
14451
  data,
@@ -14455,9 +14454,6 @@ const PortText = (props) => {
14455
14454
  isSource,
14456
14455
  setSupressLinkHover
14457
14456
  } = props;
14458
- const vsConnectionHander = (data2) => {
14459
- console.log(data2);
14460
- };
14461
14457
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
14462
14458
  "div",
14463
14459
  {
@@ -14490,12 +14486,11 @@ const PortText = (props) => {
14490
14486
  "flex gap-x-2 px-1 group/2 w-fit rounded-full relative hover:ring-[4px] outline-offset-1 outline-blue-600 transition-all duration-300 ease-in-out"
14491
14487
  ),
14492
14488
  id: `#sub-${item == null ? void 0 : item.u_id}`,
14493
- onMouseEnter: () => vsConnectionHander(item),
14494
14489
  style: {
14495
14490
  backgroundColor: data == null ? void 0 : data.linkColorHex
14496
14491
  },
14497
14492
  children: [
14498
- (item == null ? void 0 : item.isSource) ? item == null ? void 0 : item.sourcePort : item == null ? void 0 : item.destinationPort,
14493
+ isSource ? item == null ? void 0 : item.sourcePort : item == null ? void 0 : item.destinationPort,
14499
14494
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[0px] group-hover/2:text-xs text-black/80 -translate-x-full group-hover/2:translate-x-0 transition-all duration-300 ease-in-out relative flex gap-x-2", children: isSource ? item == null ? void 0 : item.destinationPort : item == null ? void 0 : item.sourcePort })
14500
14495
  ]
14501
14496
  },
@@ -15161,7 +15156,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
15161
15156
  if ((e == null ? void 0 : e.picked) && ((_b = (_a = e == null ? void 0 : e.layer) == null ? void 0 : _a.props) == null ? void 0 : _b.main)) {
15162
15157
  mapApi.current.getCanvas().style.cursor = "default";
15163
15158
  setHoveredConnection({ ...e.object });
15164
- onLinkMouseOver({ event: e, data: e == null ? void 0 : e.object, type: "connection", id: (_c = e == null ? void 0 : e.object) == null ? void 0 : _c.id, mapApi });
15159
+ onLinkMouseOver({ event: e, data: e == null ? void 0 : e.object, type: "connection", id: (_c = e == null ? void 0 : e.object) == null ? void 0 : _c.id, mapApi: ref || mapApi });
15165
15160
  }
15166
15161
  };
15167
15162
  return /* @__PURE__ */ jsxRuntimeExports.jsx(