@lincle/react-web-base 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.
@@ -27,7 +27,7 @@ const Node = (_a, ref) => {
27
27
  const shape = (_c = givenShape !== null && givenShape !== void 0 ? givenShape : defaultShape) !== null && _c !== void 0 ? _c : 'oval';
28
28
  const width = (_d = givenWidth !== null && givenWidth !== void 0 ? givenWidth : defaultWidth) !== null && _d !== void 0 ? _d : 0;
29
29
  const { x, y } = (0, react_1.useMemo)(() => {
30
- var _a;
30
+ var _a, _b, _c;
31
31
  if (!(givenX || givenY)) {
32
32
  const getNumber = /(-?\d+(\.\d+)?)/gu;
33
33
  const [translateX, translateY] = (nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.transform) ?
@@ -39,12 +39,8 @@ const Node = (_a, ref) => {
39
39
  undefined,
40
40
  undefined
41
41
  ];
42
- const left = (nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.left) ?
43
- nodeStyle.left :
44
- undefined;
45
- const top = (nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.top) ?
46
- nodeStyle.top :
47
- undefined;
42
+ const left = (_b = nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.left) !== null && _b !== void 0 ? _b : undefined;
43
+ const top = (_c = nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.top) !== null && _c !== void 0 ? _c : undefined;
48
44
  return {
49
45
  x: Number(translateX) || Number(left) || 0,
50
46
  y: Number(translateY) || Number(top) || 0
@@ -109,9 +105,8 @@ const Node = (_a, ref) => {
109
105
  y
110
106
  ]);
111
107
  const adjustedStyle = (0, react_1.useMemo)(() => {
112
- return Object.assign(Object.assign({}, nodeStyle), { height, transform: (nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.transform) ?
113
- nodeStyle.transform :
114
- `translate(${x}px, ${y}px) translateZ(0)`, width });
108
+ var _a;
109
+ return Object.assign(Object.assign({}, nodeStyle), { height, transform: (_a = nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.transform) !== null && _a !== void 0 ? _a : `translate(${x}px, ${y}px) translateZ(0)`, width });
115
110
  }, [
116
111
  height,
117
112
  nodeStyle,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lincle/react-web-base",
3
3
  "title": "lincle react web base",
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": "A 'reactive' React node and edge generator",
8
8
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
@@ -44,35 +44,35 @@
44
44
  "clean:dist": "rimraf dist"
45
45
  },
46
46
  "devDependencies": {
47
- "@digest/eslint-config-jest": "^4.13.0",
48
- "@digest/eslint-config-react": "^4.13.0",
49
- "@digest/eslint-config-typescript": "^4.13.0",
50
- "@digest/jest-junit": "^4.13.0",
51
- "@digest/jest-react": "^4.13.0",
52
- "@digest/jest-typescript": "^4.13.0",
53
- "@digest/stylelint-config": "^4.13.0",
54
- "@digest/typescript": "^4.13.0",
47
+ "@digest/eslint-config-jest": "^4.13.2-next.3",
48
+ "@digest/eslint-config-react": "^4.13.2-next.3",
49
+ "@digest/eslint-config-typescript": "^4.13.2-next.3",
50
+ "@digest/jest-junit": "^4.13.2-next.3",
51
+ "@digest/jest-react": "^4.13.2-next.3",
52
+ "@digest/jest-typescript": "^4.13.2-next.3",
53
+ "@digest/stylelint-config": "^4.13.2-next.3",
54
+ "@digest/typescript": "^4.13.2-next.3",
55
55
  "@types/jest": "^29.5.14",
56
- "@types/node": "^22.10.1",
57
- "@types/react": "^18.3.12",
58
- "@types/react-dom": "^18.3.1",
59
- "@types/react-test-renderer": "^18.3.0",
56
+ "@types/node": "^22.13.5",
57
+ "@types/react": "^19.0.10",
58
+ "@types/react-dom": "^19.0.4",
59
+ "@types/react-test-renderer": "^19.0.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.0.0",
66
+ "react-dom": "^19.0.0",
67
+ "react-test-renderer": "^19.0.0",
68
68
  "rimraf": "^6.0.1"
69
69
  },
70
70
  "dependencies": {
71
- "@lincle/react-shared": "^0.4.0-next.13"
71
+ "@lincle/react-shared": "^0.4.0-next.15"
72
72
  },
73
73
  "peerDependencies": {
74
- "react": "^18.0.0",
75
- "react-dom": "^18.0.0"
74
+ "react": "^18.0.0 || ^19.0.0",
75
+ "react-dom": "^18.0.0 || ^19.0.0"
76
76
  },
77
77
  "keywords": [
78
78
  "library",
@@ -89,5 +89,5 @@
89
89
  "acyclical graph",
90
90
  "cyclical graph"
91
91
  ],
92
- "gitHead": "84d45ca98dd0d6589c697cc7457a897fa777340f"
92
+ "gitHead": "89748f778efb4771c6bd40e3e7249faafa6eb05e"
93
93
  }