@abdellatifui/react 3.1.93 → 3.1.94

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.d.ts CHANGED
@@ -657,6 +657,7 @@ declare type NetworkMapProps_2 = {
657
657
  };
658
658
  hideLinks: boolean;
659
659
  mapProps: MapProps;
660
+ customControlButtons: default_2.ReactNode[];
660
661
  menuItems: {
661
662
  label: string;
662
663
  action?: (args: {
package/dist/nextgen.js CHANGED
@@ -14711,7 +14711,8 @@ const SourcesPorts$1 = memo(SourcesPorts);
14711
14711
  const CustomNavigateButtons = (props) => {
14712
14712
  const {
14713
14713
  mapApi,
14714
- showGoNodeControlButton
14714
+ showGoNodeControlButton,
14715
+ customControlButtons = []
14715
14716
  } = props;
14716
14717
  const onMapPinClick = () => {
14717
14718
  var _a, _b, _c, _d;
@@ -14719,7 +14720,12 @@ const CustomNavigateButtons = (props) => {
14719
14720
  (_c = (_b = (_a = mapApi == null ? void 0 : mapApi.current) == null ? void 0 : _a.nodes) == null ? void 0 : _b[0]) == null ? void 0 : _c.elementId
14720
14721
  );
14721
14722
  };
14722
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute bottom-10 overflow-hidden right-3 z-50 min-h-[60px] w-[25px] gap-2 bg-white border rounded-full flex flex-wrap items-center justify-center py-1", children: showGoNodeControlButton && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledTooltip, { title: "Go to first node", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MapPin, { onClick: onMapPinClick, className: "text-blue-600 hover:bg-accent rounded-full", size: 18 }) }) });
14723
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "absolute bottom-10 overflow-hidden right-3 z-50 min-h-[60px] w-[25px] gap-2 bg-white border rounded-full flex flex-wrap items-center justify-center py-1", children: [
14724
+ showGoNodeControlButton && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledTooltip, { title: "Go to first node", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MapPin, { onClick: onMapPinClick, className: "text-blue-600 hover:bg-accent rounded-full", size: 18 }) }),
14725
+ customControlButtons == null ? void 0 : customControlButtons.map((button, index) => {
14726
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: button }, "custom-control-button-" + qindex);
14727
+ })
14728
+ ] });
14723
14729
  };
14724
14730
  const CustomNavigateButtons$1 = memo(CustomNavigateButtons);
14725
14731
  const baseFont = 0.75;
@@ -14754,6 +14760,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
14754
14760
  MapLogoClassName,
14755
14761
  MapLogoStyle,
14756
14762
  linkAnimation = true,
14763
+ customControlButtons = [],
14757
14764
  showGoNodeControlButton = true,
14758
14765
  onConnClick = () => {
14759
14766
  },
@@ -15349,7 +15356,8 @@ const NetworkMapComponent = forwardRef((props, ref) => {
15349
15356
  CustomNavigateButtons$1,
15350
15357
  {
15351
15358
  mapApi: ref,
15352
- showGoNodeControlButton
15359
+ showGoNodeControlButton,
15360
+ customControlButtons
15353
15361
  }
15354
15362
  ),
15355
15363
  MapLogo && /* @__PURE__ */ jsxRuntimeExports.jsx(