@donotdev/ui 0.0.19 → 0.0.21

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.
Files changed (177) hide show
  1. package/dist/crud/components/EntityList.d.ts.map +1 -1
  2. package/dist/crud/components/EntityList.js +5 -4
  3. package/dist/dndev.css +479 -84
  4. package/dist/files/inter-cyrillic-300-normal.woff +0 -0
  5. package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
  6. package/dist/files/inter-cyrillic-400-normal.woff +0 -0
  7. package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
  8. package/dist/files/inter-cyrillic-600-normal.woff +0 -0
  9. package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
  10. package/dist/files/inter-cyrillic-700-normal.woff +0 -0
  11. package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
  12. package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
  13. package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
  14. package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
  15. package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
  16. package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
  17. package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
  18. package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
  19. package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
  20. package/dist/files/inter-greek-300-normal.woff +0 -0
  21. package/dist/files/inter-greek-300-normal.woff2 +0 -0
  22. package/dist/files/inter-greek-400-normal.woff +0 -0
  23. package/dist/files/inter-greek-400-normal.woff2 +0 -0
  24. package/dist/files/inter-greek-600-normal.woff +0 -0
  25. package/dist/files/inter-greek-600-normal.woff2 +0 -0
  26. package/dist/files/inter-greek-700-normal.woff +0 -0
  27. package/dist/files/inter-greek-700-normal.woff2 +0 -0
  28. package/dist/files/inter-greek-ext-300-normal.woff +0 -0
  29. package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
  30. package/dist/files/inter-greek-ext-400-normal.woff +0 -0
  31. package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
  32. package/dist/files/inter-greek-ext-600-normal.woff +0 -0
  33. package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
  34. package/dist/files/inter-greek-ext-700-normal.woff +0 -0
  35. package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
  36. package/dist/files/inter-latin-300-normal.woff +0 -0
  37. package/dist/files/inter-latin-300-normal.woff2 +0 -0
  38. package/dist/files/inter-latin-400-normal.woff +0 -0
  39. package/dist/files/inter-latin-400-normal.woff2 +0 -0
  40. package/dist/files/inter-latin-600-normal.woff +0 -0
  41. package/dist/files/inter-latin-600-normal.woff2 +0 -0
  42. package/dist/files/inter-latin-700-normal.woff +0 -0
  43. package/dist/files/inter-latin-700-normal.woff2 +0 -0
  44. package/dist/files/inter-latin-ext-300-normal.woff +0 -0
  45. package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
  46. package/dist/files/inter-latin-ext-400-normal.woff +0 -0
  47. package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
  48. package/dist/files/inter-latin-ext-600-normal.woff +0 -0
  49. package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
  50. package/dist/files/inter-latin-ext-700-normal.woff +0 -0
  51. package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
  52. package/dist/files/inter-vietnamese-300-normal.woff +0 -0
  53. package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
  54. package/dist/files/inter-vietnamese-400-normal.woff +0 -0
  55. package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
  56. package/dist/files/inter-vietnamese-600-normal.woff +0 -0
  57. package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
  58. package/dist/files/inter-vietnamese-700-normal.woff +0 -0
  59. package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
  60. package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
  61. package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
  62. package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
  63. package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
  64. package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
  65. package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
  66. package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
  67. package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
  68. package/dist/files/playfair-display-latin-400-normal.woff +0 -0
  69. package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
  70. package/dist/files/playfair-display-latin-500-normal.woff +0 -0
  71. package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
  72. package/dist/files/playfair-display-latin-600-normal.woff +0 -0
  73. package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
  74. package/dist/files/playfair-display-latin-700-normal.woff +0 -0
  75. package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
  76. package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
  77. package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
  78. package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
  79. package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
  80. package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
  81. package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
  82. package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
  83. package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
  84. package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
  85. package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
  86. package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
  87. package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
  88. package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
  89. package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
  90. package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
  91. package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
  92. package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
  93. package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
  94. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
  95. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
  96. package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
  97. package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
  98. package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
  99. package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
  100. package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
  101. package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
  102. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  103. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  104. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  105. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  106. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  107. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  108. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  109. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  110. package/dist/files/roboto-greek-400-normal.woff +0 -0
  111. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  112. package/dist/files/roboto-greek-700-normal.woff +0 -0
  113. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  114. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  115. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  116. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  117. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  118. package/dist/files/roboto-latin-400-normal.woff +0 -0
  119. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  120. package/dist/files/roboto-latin-700-normal.woff +0 -0
  121. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  122. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  123. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  124. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  125. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  126. package/dist/files/roboto-math-400-normal.woff +0 -0
  127. package/dist/files/roboto-math-400-normal.woff2 +0 -0
  128. package/dist/files/roboto-math-700-normal.woff +0 -0
  129. package/dist/files/roboto-math-700-normal.woff2 +0 -0
  130. package/dist/files/roboto-symbols-400-normal.woff +0 -0
  131. package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
  132. package/dist/files/roboto-symbols-700-normal.woff +0 -0
  133. package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
  134. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  135. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  136. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  137. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  138. package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
  139. package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
  140. package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
  141. package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
  142. package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
  143. package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
  144. package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
  145. package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
  146. package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
  147. package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
  148. package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
  149. package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
  150. package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
  151. package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  152. package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
  153. package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  154. package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
  155. package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  156. package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
  157. package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  158. package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
  159. package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
  160. package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
  161. package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  162. package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
  163. package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
  164. package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
  165. package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  166. package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
  167. package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  168. package/dist/index.js +4 -4
  169. package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
  170. package/dist/internal/layout/DnDevLayout.js +4 -2
  171. package/dist/styles/index.css +479 -84
  172. package/dist/utils/sanitizeSvg.js +1 -1
  173. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  174. package/dist/vite-routing/AppRoutes.js +11 -2
  175. package/dist/vite-routing/RootLayout.d.ts.map +1 -1
  176. package/dist/vite-routing/RootLayout.js +5 -4
  177. package/package.json +10 -10
@@ -200,9 +200,18 @@ export function createAppRouter(options) {
200
200
  element: _jsx(RootLayout, { layout: layout }),
201
201
  children: [
202
202
  {
203
- /** HomePage route - lazy loaded, public (no AuthGuard) */
203
+ /** HomePage route - lazy loaded, public (no AuthGuard).
204
+ * Auth config on HomePage is intentionally ignored — use a different page as entry. */
204
205
  index: true,
205
- element: (_jsx(LayoutRoute, { preset: getRoutePreset(homePageRoute.meta), children: _jsx(LazyRoute, { component: homePageRoute.component, path: homePageRoute.path }) })),
206
+ element: (() => {
207
+ if (homePageRoute.auth &&
208
+ typeof window !== 'undefined' &&
209
+ import.meta.env.DEV) {
210
+ console.warn('[DoNotDev] HomePage has auth config but the index route is always public. ' +
211
+ 'Auth config on HomePage is ignored. Use a different page as your protected entry point.');
212
+ }
213
+ return (_jsx(LayoutRoute, { preset: getRoutePreset(homePageRoute.meta), children: _jsx(LazyRoute, { component: homePageRoute.component, path: homePageRoute.path }) }));
214
+ })(),
206
215
  },
207
216
  /** All other routes are discovered and rendered here */
208
217
  ...routesWithParsedAuth
@@ -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.21",
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.15",
61
+ "@donotdev/billing": "^0.0.13",
62
+ "@donotdev/components": "^0.0.24",
63
+ "@donotdev/core": "^0.0.32",
64
+ "@donotdev/crud": "^0.0.21",
65
+ "@donotdev/firebase": "^0.0.17",
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": {