flow-lib-creomnia 1.0.19-dev.2 → 1.0.20-dev.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.
@@ -28,7 +28,7 @@ const AddButton = ({ endPoint, startPoint, node, curveType, parentId, childNodeI
28
28
  });
29
29
  const widthDiff = (config_1.Config.ADD_BUTTON_WIDTH - config_1.Config.CONNECTION_WIDTH) / 2;
30
30
  const xPosition = top ? startPoint.x - widthDiff + width : startPoint.x - widthDiff;
31
- const yPosition = y + ConnectionWithButton_1.nodeHeightByType[node.type] / 2 + config_1.Config.ADD_BUTTON_SHIFT;
31
+ const yPosition = y + (ConnectionWithButton_1.nodeHeightByType[node.type] ?? config_1.Config.NODE_HEIGHT) / 2 + config_1.Config.ADD_BUTTON_SHIFT;
32
32
  const PlusButton = (0, styled_1.createAddButton)({
33
33
  background,
34
34
  });
@@ -7,6 +7,7 @@ export declare const nodeHeightByType: {
7
7
  choiceNode: number;
8
8
  hubNode: number;
9
9
  parallelNode: number;
10
+ telephony: number;
10
11
  };
11
12
  declare const _default: React.NamedExoticComponent<ConnectionPropsType>;
12
13
  export default _default;
@@ -22,6 +22,7 @@ exports.nodeHeightByType = {
22
22
  [enums_1.NodeTypeEnum.ChoiceNode]: 0,
23
23
  [enums_1.NodeTypeEnum.HubNode]: config_1.Config.HUB_NODE_HEIGHT,
24
24
  [enums_1.NodeTypeEnum.ParallelNode]: 0,
25
+ [enums_1.NodeTypeEnum.Telephony]: config_1.Config.NODE_HEIGHT,
25
26
  };
26
27
  const ConnectionWithButton = ({ parentId, menuTabs, startPoint, endPoint, addNewNodeCallback, node, connectionIndex, curveType, isProcessed, childNodeId, emptyMenuItemsComponent, searchPlaceholder }) => {
27
28
  const [anchorRect, setAnchorRect] = (0, react_1.useState)(null);
@@ -4,7 +4,8 @@ export declare enum NodeTypeEnum {
4
4
  EndNode = "endNode",
5
5
  HubNode = "hubNode",
6
6
  ChoiceNode = "choiceNode",
7
- ParallelNode = "parallelNode"
7
+ ParallelNode = "parallelNode",
8
+ Telephony = "telephony"
8
9
  }
9
10
  export declare enum NodeMenuItemType {
10
11
  EXTENSION = "extension",
@@ -9,6 +9,7 @@ var NodeTypeEnum;
9
9
  NodeTypeEnum["HubNode"] = "hubNode";
10
10
  NodeTypeEnum["ChoiceNode"] = "choiceNode";
11
11
  NodeTypeEnum["ParallelNode"] = "parallelNode";
12
+ NodeTypeEnum["Telephony"] = "telephony";
12
13
  })(NodeTypeEnum || (exports.NodeTypeEnum = NodeTypeEnum = {}));
13
14
  var NodeMenuItemType;
14
15
  (function (NodeMenuItemType) {
@@ -17,6 +17,9 @@ exports.nodeModule = {
17
17
  endNode: EndNode_1.default,
18
18
  hubNode: HubNode_1.default,
19
19
  choiceNode: ChoiseNode_1.default,
20
- parallelNode: ParallelNode_1.default
20
+ parallelNode: ParallelNode_1.default,
21
+ // Telephony is a backend special node; it renders as a plain
22
+ // extension node on the canvas (same component as BaseNode).
23
+ telephony: BaseNode_1.default,
21
24
  },
22
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-lib-creomnia",
3
- "version": "1.0.19-dev.2",
3
+ "version": "1.0.20-dev.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",