@lincle/react-web-interactive 0.4.0-next.10 → 0.4.0-next.12

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.
@@ -14,7 +14,7 @@ const emptySnap = [
14
14
  1
15
15
  ];
16
16
  const Node = ({ children, height: givenHeight, id, line: givenLine, mode: givenMode, move: givenMove, onDrag, onEdgeDrop: givenOnEdgeDrop, onSelect: givenOnSelect, onStart, onStop, pull: givenPull, shape: givenShape, style, width: givenWidth, x, y }) => {
17
- var _a, _b;
17
+ var _a;
18
18
  const defaultHeight = (0, shared_1.useDefaultNodeHeight)();
19
19
  const defaultLine = (0, shared_1.useDefaultLine)();
20
20
  const defaultShape = (0, shared_1.useDefaultShape)();
@@ -131,7 +131,9 @@ const Node = ({ children, height: givenHeight, id, line: givenLine, mode: givenM
131
131
  x,
132
132
  y
133
133
  ]);
134
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MoveNode_1.default, { disabled: (_b = mode === 'pull') !== null && _b !== void 0 ? _b : !move, height: height, id: id, mode: mode, onDrag: handleMoveDrag, onSelect: onSelect, onStart: handleMoveStart, onStop: handleMoveStop, shape: shape, snap: snap, style: style, width: width, x: snapper.x, y: snapper.y, children: children }), pullNode] }));
134
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(MoveNode_1.default, { disabled: mode === 'pull' ?
135
+ true :
136
+ !move, height: height, id: id, mode: mode, onDrag: handleMoveDrag, onSelect: onSelect, onStart: handleMoveStart, onStop: handleMoveStop, shape: shape, snap: snap, style: style, width: width, x: snapper.x, y: snapper.y, children: children }), pullNode] }));
135
137
  };
136
138
  exports.Node = Node;
137
139
  Node.displayName = 'LincleInteractiveNode';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lincle/react-web-interactive",
3
3
  "title": "lincle react web interactive",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "0.4.0-next.10",
5
+ "version": "0.4.0-next.12",
6
6
  "private": false,
7
7
  "description": "A 'reactive' React node and edge generator",
8
8
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
@@ -44,17 +44,17 @@
44
44
  "clean:dist": "rimraf dist"
45
45
  },
46
46
  "devDependencies": {
47
- "@digest/eslint-config-jest": "^4.4.3",
48
- "@digest/eslint-config-react": "^4.4.3",
49
- "@digest/eslint-config-typescript": "^4.4.3",
50
- "@digest/jest-junit": "^4.4.3",
51
- "@digest/jest-react": "^4.4.3",
52
- "@digest/jest-typescript": "^4.4.3",
53
- "@digest/stylelint-config": "^4.4.3",
54
- "@digest/typescript": "^4.4.3",
55
- "@types/jest": "^29.5.12",
56
- "@types/node": "^22.1.0",
57
- "@types/react": "^18.3.3",
47
+ "@digest/eslint-config-jest": "^4.8.2",
48
+ "@digest/eslint-config-react": "^4.8.2",
49
+ "@digest/eslint-config-typescript": "^4.8.2",
50
+ "@digest/jest-junit": "^4.8.2",
51
+ "@digest/jest-react": "^4.8.2",
52
+ "@digest/jest-typescript": "^4.8.2",
53
+ "@digest/stylelint-config": "^4.8.2",
54
+ "@digest/typescript": "^4.8.2",
55
+ "@types/jest": "^29.5.13",
56
+ "@types/node": "^22.7.4",
57
+ "@types/react": "^18.3.10",
58
58
  "@types/react-dom": "^18.3.0",
59
59
  "@types/react-test-renderer": "^18.3.0",
60
60
  "cross-env": "^7.0.3",
@@ -68,9 +68,9 @@
68
68
  "rimraf": "^6.0.1"
69
69
  },
70
70
  "dependencies": {
71
- "@lincle/react-interactive-shared": "^0.4.0-next.10",
72
- "@lincle/react-shared": "^0.4.0-next.10",
73
- "@lincle/react-web-base": "^0.4.0-next.10",
71
+ "@lincle/react-interactive-shared": "^0.4.0-next.12",
72
+ "@lincle/react-shared": "^0.4.0-next.12",
73
+ "@lincle/react-web-base": "^0.4.0-next.12",
74
74
  "react-draggable": "^4.4.6",
75
75
  "react-map-interaction": "^2.1.0"
76
76
  },
@@ -97,5 +97,5 @@
97
97
  "dragndrop",
98
98
  "drag"
99
99
  ],
100
- "gitHead": "c672cbc4ddbc1944133ea10ac26a4c04e7d8e3ba"
100
+ "gitHead": "0ecf2d35d39436bfdde9359aa18dae9e1b60794c"
101
101
  }