@lincle/react-native-interactive 0.4.0-next.14 → 0.4.0-next.16

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.
@@ -30,17 +30,15 @@ const PullNode = ({ disabled, height = 0, line = 'direct', onDrag, onEdgeDrop: g
30
30
  onStart
31
31
  ]);
32
32
  const handleDrag = useCallback((event, gestureState) => {
33
- var _a, _b;
34
- if (!mouseOffset.current) {
35
- mouseOffset.current = {
36
- x: event.nativeEvent.locationX,
37
- y: event.nativeEvent.locationY
38
- };
39
- }
33
+ var _a, _b, _c;
34
+ (_a = mouseOffset.current) !== null && _a !== void 0 ? _a : (mouseOffset.current = {
35
+ x: event.nativeEvent.locationX,
36
+ y: event.nativeEvent.locationY
37
+ });
40
38
  if (!disabled) {
41
39
  position.current = {
42
- x: x + gestureState.dx + ((_a = mouseOffset.current) === null || _a === void 0 ? void 0 : _a.x),
43
- y: y + gestureState.dy + ((_b = mouseOffset.current) === null || _b === void 0 ? void 0 : _b.y)
40
+ x: x + gestureState.dx + ((_b = mouseOffset.current) === null || _b === void 0 ? void 0 : _b.x),
41
+ y: y + gestureState.dy + ((_c = mouseOffset.current) === null || _c === void 0 ? void 0 : _c.y)
44
42
  };
45
43
  setConnection({
46
44
  line,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lincle/react-native-interactive",
3
3
  "title": "lincle react native interactive",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "0.4.0-next.14",
5
+ "version": "0.4.0-next.16",
6
6
  "private": false,
7
7
  "description": "A 'reactive' React node and edge generator",
8
8
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
@@ -43,42 +43,42 @@
43
43
  "clean:dist": "rimraf dist"
44
44
  },
45
45
  "devDependencies": {
46
- "@digest/eslint-config-jest": "^4.13.1",
47
- "@digest/eslint-config-react": "^4.13.1",
48
- "@digest/eslint-config-typescript": "^4.13.1",
49
- "@digest/jest-junit": "^4.13.1",
50
- "@digest/jest-react": "^4.13.1",
51
- "@digest/jest-typescript": "^4.13.1",
52
- "@digest/typescript": "^4.13.1",
53
- "@openspacelabs/react-native-zoomable-view": "^2.3.1",
46
+ "@digest/eslint-config-jest": "^4.14.3",
47
+ "@digest/eslint-config-react": "^4.14.3",
48
+ "@digest/eslint-config-typescript": "^4.14.3",
49
+ "@digest/jest-junit": "^4.14.3",
50
+ "@digest/jest-react": "^4.14.3",
51
+ "@digest/jest-typescript": "^4.14.3",
52
+ "@digest/typescript": "^4.14.3",
53
+ "@openspacelabs/react-native-zoomable-view": "^2.4.2",
54
54
  "@types/jest": "^29.5.14",
55
- "@types/node": "^22.10.5",
56
- "@types/react": "^18.3.18",
55
+ "@types/node": "^22.15.18",
56
+ "@types/react": "^19.1.4",
57
57
  "@types/react-native": "^0.73.0",
58
- "@types/react-test-renderer": "^18.3.1",
58
+ "@types/react-test-renderer": "^19.1.0",
59
59
  "cross-env": "^7.0.3",
60
60
  "jest-environment-jsdom": "^29.7.0",
61
61
  "jest-environment-jsdom-global": "^4.0.0",
62
62
  "ncp": "^2.0.0",
63
63
  "npm-run-all": "^4.1.5",
64
- "react": "^18.3.1",
65
- "react-native": "^0.76.5",
64
+ "react": "^19.1.0",
65
+ "react-native": "^0.79.2",
66
66
  "react-native-draggable": "^3.3.0",
67
- "react-native-reanimated": "^3.16.6",
68
- "react-native-svg": "^15.10.1",
69
- "react-test-renderer": "^18.3.1",
67
+ "react-native-reanimated": "^3.17.5",
68
+ "react-native-svg": "^15.12.0",
69
+ "react-test-renderer": "^19.1.0",
70
70
  "rimraf": "^6.0.1"
71
71
  },
72
72
  "dependencies": {
73
- "@lincle/react-interactive-shared": "^0.4.0-next.14",
74
- "@lincle/react-native-base": "^0.4.0-next.14",
75
- "@lincle/react-shared": "^0.4.0-next.14"
73
+ "@lincle/react-interactive-shared": "^0.4.0-next.16",
74
+ "@lincle/react-native-base": "^0.4.0-next.16",
75
+ "@lincle/react-shared": "^0.4.0-next.16"
76
76
  },
77
77
  "peerDependencies": {
78
- "@openspacelabs/react-native-zoomable-view": "^2.3.1",
78
+ "@openspacelabs/react-native-zoomable-view": "^2.0.0",
79
79
  "react": "^18.0.0 || ^19.0.0",
80
- "react-native": "^0.76.0",
81
- "react-native-draggable": "^3.3.0",
80
+ "react-native": "^0.79.0",
81
+ "react-native-draggable": "^3.0.0",
82
82
  "react-native-reanimated": "^3.0.0",
83
83
  "react-native-svg": "^15.0.0"
84
84
  },
@@ -101,5 +101,5 @@
101
101
  "dragndrop",
102
102
  "drag"
103
103
  ],
104
- "gitHead": "35bfe2cc062f327d657b90c0ccded1caca6d5a3e"
104
+ "gitHead": "fbf9e67e3a145457c0f13ec5b65b1528e82aee99"
105
105
  }