@donotdev/ui 0.0.19 → 0.0.20
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/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +5 -4
- package/dist/dndev.css +477 -82
- package/dist/index.js +4 -4
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +4 -2
- package/dist/styles/index.css +477 -82
- package/dist/utils/sanitizeSvg.js +1 -1
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +11 -2
- package/dist/vite-routing/RootLayout.d.ts.map +1 -1
- package/dist/vite-routing/RootLayout.js +5 -4
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootLayout.d.ts","sourceRoot":"","sources":["../../src/vite-routing/RootLayout.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"RootLayout.d.ts","sourceRoot":"","sources":["../../src/vite-routing/RootLayout.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AA0LnD;;GAEG;AACH,UAAU,oBAAoB;IAC5B,2BAA2B;IAC3B,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,2CAgC1D"}
|
|
@@ -56,16 +56,17 @@ function CustomScrollRestoration() {
|
|
|
56
56
|
const mainElement = document.querySelector('main[role="main"]');
|
|
57
57
|
if (!mainElement)
|
|
58
58
|
return;
|
|
59
|
-
//
|
|
59
|
+
// main is always the sole scroll container (overflow-y: auto)
|
|
60
|
+
// Save scroll position of the page we're leaving
|
|
60
61
|
if (prevLocationKey.current) {
|
|
61
62
|
scrollPositions.current.set(prevLocationKey.current, mainElement.scrollTop);
|
|
62
63
|
}
|
|
63
64
|
// Check if this is a back/forward navigation (POP) by checking saved position
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
65
|
+
const saved = scrollPositions.current.get(location.key);
|
|
66
|
+
if (saved !== undefined) {
|
|
66
67
|
// POP navigation - restore scroll position
|
|
67
68
|
requestAnimationFrame(() => {
|
|
68
|
-
mainElement.scrollTop =
|
|
69
|
+
mainElement.scrollTop = saved;
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
72
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
"react-hook-form": "^7.71.2"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@donotdev/auth": "^0.0.
|
|
61
|
-
"@donotdev/billing": "^0.0.
|
|
62
|
-
"@donotdev/components": "^0.0.
|
|
63
|
-
"@donotdev/core": "^0.0.
|
|
64
|
-
"@donotdev/crud": "^0.0.
|
|
65
|
-
"@donotdev/firebase": "^0.0.
|
|
66
|
-
"@donotdev/oauth": "^0.0.
|
|
60
|
+
"@donotdev/auth": "^0.0.14",
|
|
61
|
+
"@donotdev/billing": "^0.0.13",
|
|
62
|
+
"@donotdev/components": "^0.0.24",
|
|
63
|
+
"@donotdev/core": "^0.0.30",
|
|
64
|
+
"@donotdev/crud": "^0.0.21",
|
|
65
|
+
"@donotdev/firebase": "^0.0.16",
|
|
66
|
+
"@donotdev/oauth": "^0.0.13",
|
|
67
67
|
"firebase": "^12.9.0",
|
|
68
|
-
"lucide-react": "^0.
|
|
68
|
+
"lucide-react": "^0.575.0",
|
|
69
69
|
"react": "^19.2.4",
|
|
70
70
|
"react-dom": "^19.2.4",
|
|
71
|
-
"react-router-dom": "^7.13.
|
|
71
|
+
"react-router-dom": "^7.13.1",
|
|
72
72
|
"valibot": "^1.2.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|