@lincle/react-web-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.
@@ -5,24 +5,24 @@ const shared_1 = require("../../../shared");
5
5
  const react_1 = require("react");
6
6
  const CLICK_TIME = 500;
7
7
  const useDoubleTap = () => {
8
- const timer = (0, react_1.useRef)(null);
8
+ const timer = (0, react_1.useRef)(undefined);
9
9
  (0, react_1.useEffect)(() => {
10
10
  return () => {
11
11
  if (timer.current) {
12
12
  clearTimeout(timer.current);
13
- timer.current = null;
13
+ timer.current = undefined;
14
14
  }
15
15
  };
16
16
  }, []);
17
17
  return (0, react_1.useCallback)((callback, threshold = CLICK_TIME) => {
18
18
  if (timer.current) {
19
19
  clearTimeout(timer.current);
20
- timer.current = null;
20
+ timer.current = undefined;
21
21
  callback();
22
22
  }
23
23
  else {
24
24
  timer.current = setTimeout(() => {
25
- timer.current = null;
25
+ timer.current = undefined;
26
26
  }, threshold);
27
27
  return;
28
28
  }
@@ -50,7 +50,7 @@ const MoveNode = ({ children, className, disabled, height, id, mode, onDrag, onS
50
50
  const snapped = (0, react_1.useRef)(position);
51
51
  snapped.current = position;
52
52
  const moved = (0, react_1.useRef)(false);
53
- const press = (0, react_1.useRef)();
53
+ const press = (0, react_1.useRef)(undefined);
54
54
  (0, react_1.useEffect)(() => {
55
55
  return () => {
56
56
  if (press.current) {
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.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)",
@@ -44,33 +44,33 @@
44
44
  "clean:dist": "rimraf dist"
45
45
  },
46
46
  "devDependencies": {
47
- "@digest/eslint-config-jest": "^4.13.1",
48
- "@digest/eslint-config-react": "^4.13.1",
49
- "@digest/eslint-config-typescript": "^4.13.1",
50
- "@digest/jest-junit": "^4.13.1",
51
- "@digest/jest-react": "^4.13.1",
52
- "@digest/jest-typescript": "^4.13.1",
53
- "@digest/stylelint-config": "^4.13.1",
54
- "@digest/typescript": "^4.13.1",
47
+ "@digest/eslint-config-jest": "^4.14.3",
48
+ "@digest/eslint-config-react": "^4.14.3",
49
+ "@digest/eslint-config-typescript": "^4.14.3",
50
+ "@digest/jest-junit": "^4.14.3",
51
+ "@digest/jest-react": "^4.14.3",
52
+ "@digest/jest-typescript": "^4.14.3",
53
+ "@digest/stylelint-config": "^4.14.3",
54
+ "@digest/typescript": "^4.14.3",
55
55
  "@types/jest": "^29.5.14",
56
- "@types/node": "^22.10.5",
57
- "@types/react": "^18.3.18",
58
- "@types/react-dom": "^18.3.5",
59
- "@types/react-test-renderer": "^18.3.1",
56
+ "@types/node": "^22.15.18",
57
+ "@types/react": "^19.1.4",
58
+ "@types/react-dom": "^19.1.5",
59
+ "@types/react-test-renderer": "^19.1.0",
60
60
  "cross-env": "^7.0.3",
61
61
  "jest-environment-jsdom": "^29.7.0",
62
62
  "jest-environment-jsdom-global": "^4.0.0",
63
63
  "ncp": "^2.0.0",
64
64
  "npm-run-all": "^4.1.5",
65
- "react": "^18.3.1",
66
- "react-dom": "^18.3.1",
67
- "react-test-renderer": "^18.3.1",
65
+ "react": "^19.1.0",
66
+ "react-dom": "^19.1.0",
67
+ "react-test-renderer": "^19.1.0",
68
68
  "rimraf": "^6.0.1"
69
69
  },
70
70
  "dependencies": {
71
- "@lincle/react-interactive-shared": "^0.4.0-next.14",
72
- "@lincle/react-shared": "^0.4.0-next.14",
73
- "@lincle/react-web-base": "^0.4.0-next.14",
71
+ "@lincle/react-interactive-shared": "^0.4.0-next.16",
72
+ "@lincle/react-shared": "^0.4.0-next.16",
73
+ "@lincle/react-web-base": "^0.4.0-next.16",
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": "35bfe2cc062f327d657b90c0ccded1caca6d5a3e"
100
+ "gitHead": "fbf9e67e3a145457c0f13ec5b65b1528e82aee99"
101
101
  }