@elicdavis/node-flow 0.1.3 → 0.1.5

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.mjs CHANGED
@@ -1412,7 +1412,7 @@ var Port = class {
1412
1412
  __privateSet(this, _dataTypePopupElement, new ContainerRenderElement(
1413
1413
  containerElements,
1414
1414
  {
1415
- BackgroundColor: "rgba(0, 0, 0, 0.75)",
1415
+ BackgroundColor: "rgba(0, 0, 0, 0.85)",
1416
1416
  Border: {
1417
1417
  Radius: 6
1418
1418
  },
@@ -3092,8 +3092,9 @@ recurseBuildMenu_fn = function(graph, name, subMenu, position) {
3092
3092
  const items = [];
3093
3093
  const subMenus = /* @__PURE__ */ new Map();
3094
3094
  for (let [key, nodeConfig] of subMenu) {
3095
- const elements = key.split("/");
3096
- if (elements.length === 1) {
3095
+ const slashIndex = key.indexOf("/");
3096
+ const bracketIndex = key.indexOf("[");
3097
+ if (slashIndex === -1 || bracketIndex !== -1 && bracketIndex < slashIndex) {
3097
3098
  items.push({
3098
3099
  name: key,
3099
3100
  callback: () => {
@@ -3103,6 +3104,7 @@ recurseBuildMenu_fn = function(graph, name, subMenu, position) {
3103
3104
  }
3104
3105
  });
3105
3106
  } else {
3107
+ const elements = key.split("/");
3106
3108
  if (!subMenus.has(elements[0])) {
3107
3109
  subMenus.set(elements[0], /* @__PURE__ */ new Map());
3108
3110
  }