@lincle/react-shared 0.4.0-next.13 → 0.4.0-next.15

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/types.d.ts CHANGED
@@ -51,7 +51,7 @@ export type Line = 'curve' | 'direct' | 'step';
51
51
  export type NodeProps = PropsWithChildren<{
52
52
  height?: number;
53
53
  id: number | string;
54
- ref?: ((instance: HTMLDivElement | null) => void) | null | React.MutableRefObject<HTMLDivElement | null>;
54
+ ref?: ((instance: HTMLDivElement | null) => void) | null | React.RefObject<HTMLDivElement | null>;
55
55
  shape?: Shape;
56
56
  track?: boolean;
57
57
  width?: number;
@@ -32,9 +32,7 @@ class NodePositions {
32
32
  y > node.y &&
33
33
  y < node.y + node.height;
34
34
  }));
35
- return ids ?
36
- ids :
37
- undefined;
35
+ return ids !== null && ids !== void 0 ? ids : undefined;
38
36
  });
39
37
  this.register = (node, { maxWait = MAX_WAIT } = {}) => {
40
38
  this.nodes[node.id] = node;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lincle/react-shared",
3
3
  "title": "lincle react shared",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "0.4.0-next.13",
5
+ "version": "0.4.0-next.15",
6
6
  "private": false,
7
7
  "description": "Shared library for @lincle",
8
8
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
@@ -43,28 +43,28 @@
43
43
  "clean:dist": "rimraf dist"
44
44
  },
45
45
  "devDependencies": {
46
- "@digest/eslint-config-jest": "^4.13.0",
47
- "@digest/eslint-config-react": "^4.13.0",
48
- "@digest/eslint-config-typescript": "^4.13.0",
49
- "@digest/jest-junit": "^4.13.0",
50
- "@digest/jest-react": "^4.13.0",
51
- "@digest/jest-typescript": "^4.13.0",
52
- "@digest/typescript": "^4.13.0",
46
+ "@digest/eslint-config-jest": "^4.13.2-next.3",
47
+ "@digest/eslint-config-react": "^4.13.2-next.3",
48
+ "@digest/eslint-config-typescript": "^4.13.2-next.3",
49
+ "@digest/jest-junit": "^4.13.2-next.3",
50
+ "@digest/jest-react": "^4.13.2-next.3",
51
+ "@digest/jest-typescript": "^4.13.2-next.3",
52
+ "@digest/typescript": "^4.13.2-next.3",
53
53
  "@types/bezier-js": "^4.1.3",
54
54
  "@types/jest": "^29.5.14",
55
55
  "@types/lodash.debounce": "^4.0.9",
56
56
  "@types/lodash.throttle": "^4.1.9",
57
- "@types/node": "^22.10.1",
58
- "@types/react": "^18.3.12",
59
- "@types/react-dom": "^18.3.1",
60
- "@types/react-test-renderer": "^18.3.0",
57
+ "@types/node": "^22.13.5",
58
+ "@types/react": "^19.0.10",
59
+ "@types/react-dom": "^19.0.4",
60
+ "@types/react-test-renderer": "^19.0.0",
61
61
  "cross-env": "^7.0.3",
62
62
  "jest-environment-jsdom": "^29.7.0",
63
63
  "jest-environment-jsdom-global": "^4.0.0",
64
64
  "ncp": "^2.0.0",
65
65
  "npm-run-all": "^4.1.5",
66
- "react": "^18.3.1",
67
- "react-test-renderer": "^18.3.1",
66
+ "react": "^19.0.0",
67
+ "react-test-renderer": "^19.0.0",
68
68
  "rimraf": "^6.0.1"
69
69
  },
70
70
  "dependencies": {
@@ -73,7 +73,7 @@
73
73
  "lodash.throttle": "^4.1.1"
74
74
  },
75
75
  "peerDependencies": {
76
- "react": "^18.0.0"
76
+ "react": "^18.0.0 || ^19.0.0"
77
77
  },
78
78
  "keywords": [
79
79
  "library",
@@ -88,5 +88,5 @@
88
88
  "acyclical graph",
89
89
  "cyclical graph"
90
90
  ],
91
- "gitHead": "84d45ca98dd0d6589c697cc7457a897fa777340f"
91
+ "gitHead": "89748f778efb4771c6bd40e3e7249faafa6eb05e"
92
92
  }