@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.
- package/dist/components/Node/index.js +4 -2
- package/package.json +16 -16
|
@@ -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
|
|
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:
|
|
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.
|
|
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.
|
|
48
|
-
"@digest/eslint-config-react": "^4.
|
|
49
|
-
"@digest/eslint-config-typescript": "^4.
|
|
50
|
-
"@digest/jest-junit": "^4.
|
|
51
|
-
"@digest/jest-react": "^4.
|
|
52
|
-
"@digest/jest-typescript": "^4.
|
|
53
|
-
"@digest/stylelint-config": "^4.
|
|
54
|
-
"@digest/typescript": "^4.
|
|
55
|
-
"@types/jest": "^29.5.
|
|
56
|
-
"@types/node": "^22.
|
|
57
|
-
"@types/react": "^18.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.
|
|
72
|
-
"@lincle/react-shared": "^0.4.0-next.
|
|
73
|
-
"@lincle/react-web-base": "^0.4.0-next.
|
|
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": "
|
|
100
|
+
"gitHead": "0ecf2d35d39436bfdde9359aa18dae9e1b60794c"
|
|
101
101
|
}
|