@lincle/react-native-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.
@@ -28,7 +28,7 @@ const Node = (_a, ref) => {
28
28
  const shape = (_c = givenShape !== null && givenShape !== void 0 ? givenShape : defaultShape) !== null && _c !== void 0 ? _c : 'oval';
29
29
  const width = (_d = givenWidth !== null && givenWidth !== void 0 ? givenWidth : defaultWidth) !== null && _d !== void 0 ? _d : 0;
30
30
  const { x, y } = (0, react_1.useMemo)(() => {
31
- var _a;
31
+ var _a, _b, _c;
32
32
  if (!(givenX || givenY)) {
33
33
  const getNumber = /(-?\d+(\.\d+)?)/gu;
34
34
  const transform = nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.transform;
@@ -41,12 +41,8 @@ const Node = (_a, ref) => {
41
41
  undefined,
42
42
  undefined
43
43
  ];
44
- const left = (nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.left) ?
45
- nodeStyle.left :
46
- undefined;
47
- const top = (nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.top) ?
48
- nodeStyle.top :
49
- undefined;
44
+ const left = (_b = nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.left) !== null && _b !== void 0 ? _b : undefined;
45
+ const top = (_c = nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.top) !== null && _c !== void 0 ? _c : undefined;
50
46
  return {
51
47
  x: Number(translateX) || Number(left) || 0,
52
48
  y: Number(translateY) || Number(top) || 0
@@ -111,12 +107,11 @@ const Node = (_a, ref) => {
111
107
  y
112
108
  ]);
113
109
  const adjustedStyle = (0, react_1.useMemo)(() => {
110
+ var _a;
114
111
  return Object.assign(Object.assign({}, nodeStyle), { height, position: track ?
115
112
  'absolute' :
116
113
  'relative', transform: track ?
117
- ((nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.transform) ?
118
- nodeStyle.transform :
119
- `translate(${x}px, ${y}px)`) :
114
+ ((_a = nodeStyle === null || nodeStyle === void 0 ? void 0 : nodeStyle.transform) !== null && _a !== void 0 ? _a : `translate(${x}px, ${y}px)`) :
120
115
  'translate(0px, 0px)', transformOrigin: '0 0', width });
121
116
  }, [
122
117
  height,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lincle/react-native-base",
3
3
  "title": "lincle react native 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)",
@@ -43,35 +43,35 @@
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/jest": "^29.5.14",
54
- "@types/node": "^22.10.1",
55
- "@types/react": "^18.3.12",
54
+ "@types/node": "^22.13.5",
55
+ "@types/react": "^19.0.10",
56
56
  "@types/react-native": "^0.73.0",
57
- "@types/react-test-renderer": "^18.3.0",
57
+ "@types/react-test-renderer": "^19.0.0",
58
58
  "cross-env": "^7.0.3",
59
59
  "jest-environment-jsdom": "^29.7.0",
60
60
  "jest-environment-jsdom-global": "^4.0.0",
61
61
  "ncp": "^2.0.0",
62
62
  "npm-run-all": "^4.1.5",
63
- "react": "^18.3.1",
64
- "react-native": "^0.76.3",
65
- "react-native-svg": "^15.9.0",
66
- "react-test-renderer": "^18.3.1",
63
+ "react": "^19.0.0",
64
+ "react-native": "^0.78.0",
65
+ "react-native-svg": "^15.11.2",
66
+ "react-test-renderer": "^19.0.0",
67
67
  "rimraf": "^6.0.1"
68
68
  },
69
69
  "dependencies": {
70
- "@lincle/react-shared": "^0.4.0-next.13"
70
+ "@lincle/react-shared": "^0.4.0-next.15"
71
71
  },
72
72
  "peerDependencies": {
73
- "react": "^18.0.0",
74
- "react-native": "^0.76.0",
73
+ "react": "^18.0.0 || ^19.0.0",
74
+ "react-native": "^0.78.0",
75
75
  "react-native-svg": "^15.0.0"
76
76
  },
77
77
  "keywords": [
@@ -89,5 +89,5 @@
89
89
  "acyclical graph",
90
90
  "cyclical graph"
91
91
  ],
92
- "gitHead": "84d45ca98dd0d6589c697cc7457a897fa777340f"
92
+ "gitHead": "89748f778efb4771c6bd40e3e7249faafa6eb05e"
93
93
  }