@flemo/react 1.3.0 → 1.3.2
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/index.mjs +9 -5
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -969,9 +969,9 @@ function $({ children: e, statusBarHeight: t, statusBarColor: n, systemNavigatio
|
|
|
969
969
|
P(0);
|
|
970
970
|
return;
|
|
971
971
|
}
|
|
972
|
-
P(e.offsetHeight);
|
|
972
|
+
e.offsetHeight > 0 && P(e.offsetHeight);
|
|
973
973
|
let t = new ResizeObserver(([e]) => {
|
|
974
|
-
P(e.contentRect.height);
|
|
974
|
+
e.contentRect.height > 0 && P(e.contentRect.height);
|
|
975
975
|
});
|
|
976
976
|
return t.observe(e), () => {
|
|
977
977
|
t.disconnect();
|
|
@@ -982,9 +982,9 @@ function $({ children: e, statusBarHeight: t, statusBarColor: n, systemNavigatio
|
|
|
982
982
|
ge(0);
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
985
|
-
ge(e.offsetHeight);
|
|
985
|
+
e.offsetHeight > 0 && ge(e.offsetHeight);
|
|
986
986
|
let t = new ResizeObserver(([e]) => {
|
|
987
|
-
ge(e.contentRect.height);
|
|
987
|
+
e.contentRect.height > 0 && ge(e.contentRect.height);
|
|
988
988
|
});
|
|
989
989
|
return t.observe(e), () => {
|
|
990
990
|
t.disconnect();
|
|
@@ -1101,7 +1101,11 @@ function $({ children: e, statusBarHeight: t, statusBarColor: n, systemNavigatio
|
|
|
1101
1101
|
display: "flex",
|
|
1102
1102
|
flexDirection: "column",
|
|
1103
1103
|
flexGrow: 1,
|
|
1104
|
-
overflowY: ee ? "auto" : void 0
|
|
1104
|
+
overflowY: ee ? "auto" : void 0,
|
|
1105
|
+
...C !== "IDLE" && C !== "COMPLETED" ? {
|
|
1106
|
+
transform: "translateZ(0)",
|
|
1107
|
+
willChange: "transform"
|
|
1108
|
+
} : null
|
|
1105
1109
|
},
|
|
1106
1110
|
children: e
|
|
1107
1111
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flemo/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "React bindings for flemo: Router, Route, Screen, and the screen-transition runtime.",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/react": "^19.2.17",
|
|
46
46
|
"@types/react-dom": "^19.2.3",
|
|
47
47
|
"@vitejs/plugin-react-swc": "^4.3.1",
|
|
48
|
-
"@vitest/coverage-v8": "^4.1.
|
|
48
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
49
49
|
"eslint": "^9.39.4",
|
|
50
50
|
"jsdom": "^29.1.1",
|
|
51
51
|
"react": "^19.2.7",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"typescript": "^6.0.3",
|
|
54
54
|
"vite": "^8.0.16",
|
|
55
55
|
"vite-plugin-dts": "^5.0.2",
|
|
56
|
-
"vitest": "^4.1.
|
|
56
|
+
"vitest": "^4.1.9",
|
|
57
57
|
"@flemo/eslint-config": "0.0.0",
|
|
58
58
|
"@flemo/tsconfig": "0.0.0"
|
|
59
59
|
},
|