@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.
@@ -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;AAwLnD;;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"}
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
- // Save scroll position of the page we're leaving (Item 89)
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 savedPosition = scrollPositions.current.get(location.key);
65
- if (savedPosition !== undefined) {
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 = savedPosition;
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.19",
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.13",
61
- "@donotdev/billing": "^0.0.12",
62
- "@donotdev/components": "^0.0.23",
63
- "@donotdev/core": "^0.0.29",
64
- "@donotdev/crud": "^0.0.20",
65
- "@donotdev/firebase": "^0.0.15",
66
- "@donotdev/oauth": "^0.0.12",
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.574.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.0",
71
+ "react-router-dom": "^7.13.1",
72
72
  "valibot": "^1.2.0"
73
73
  },
74
74
  "peerDependenciesMeta": {