@donotdev/ui 0.1.45 → 0.1.47

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 (342) hide show
  1. package/dist/CookieConsent-W7UE647Y.js +1 -0
  2. package/dist/components/auth/AuthHeader.d.ts +1 -1
  3. package/dist/components/auth/AuthHeader.d.ts.map +1 -1
  4. package/dist/components/auth/AuthMenu.d.ts +2 -2
  5. package/dist/components/auth/AuthMenu.d.ts.map +1 -1
  6. package/dist/components/common/FeatureCard.d.ts +13 -2
  7. package/dist/components/common/FeatureCard.d.ts.map +1 -1
  8. package/dist/components/common/FeatureCard.js +0 -12
  9. package/dist/components/common/FeatureDisabled.d.ts +1 -1
  10. package/dist/components/common/FeatureDisabled.d.ts.map +1 -1
  11. package/dist/components/common/ProgressBar.d.ts.map +1 -1
  12. package/dist/components/common/RedirectOverlay.d.ts +1 -1
  13. package/dist/components/common/RedirectOverlay.d.ts.map +1 -1
  14. package/dist/components/common/Skeleton.d.ts +11 -0
  15. package/dist/components/common/Skeleton.d.ts.map +1 -1
  16. package/dist/components/common/Skeleton.js +0 -12
  17. package/dist/components/common/TechBento.d.ts +1 -1
  18. package/dist/components/common/TechBento.d.ts.map +1 -1
  19. package/dist/components/common/icon.d.ts.map +1 -1
  20. package/dist/components/cookie-consent/ConsentBanner.d.ts +1 -1
  21. package/dist/components/cookie-consent/ConsentBanner.d.ts.map +1 -1
  22. package/dist/components/cookie-consent/CookieConsent.d.ts +1 -1
  23. package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
  24. package/dist/components/cookie-consent/CookieConsent.js +13 -0
  25. package/dist/components/layout/GameContainer.d.ts +9 -1
  26. package/dist/components/layout/GameContainer.d.ts.map +1 -1
  27. package/dist/components/layout/GameContainer.js +0 -9
  28. package/dist/components/layout/GameFlow.d.ts +1 -1
  29. package/dist/components/layout/GameFlow.d.ts.map +1 -1
  30. package/dist/components/layout/PageContainer.d.ts +1 -1
  31. package/dist/components/layout/PageContainer.d.ts.map +1 -1
  32. package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
  33. package/dist/components/layout/components/DropdownNavigation.d.ts +16 -1
  34. package/dist/components/layout/components/DropdownNavigation.d.ts.map +1 -1
  35. package/dist/components/layout/components/DropdownNavigation.js +0 -16
  36. package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts +8 -0
  37. package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts.map +1 -1
  38. package/dist/components/layout/components/FloatingLanguageSwitcher.js +0 -9
  39. package/dist/components/layout/components/Notifications.d.ts +1 -1
  40. package/dist/components/layout/components/Notifications.d.ts.map +1 -1
  41. package/dist/components/layout/components/header/AppBranding.d.ts +1 -1
  42. package/dist/components/layout/components/header/AppBranding.d.ts.map +1 -1
  43. package/dist/components/layout/components/header/AppIcon.d.ts +1 -1
  44. package/dist/components/layout/components/header/AppIcon.d.ts.map +1 -1
  45. package/dist/components/layout/components/header/AppTitle.d.ts +1 -1
  46. package/dist/components/layout/components/header/AppTitle.d.ts.map +1 -1
  47. package/dist/components/layout/components/header/CacheSettings.d.ts +1 -1
  48. package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
  49. package/dist/components/layout/components/header/GameTitle.d.ts +1 -1
  50. package/dist/components/layout/components/header/GameTitle.d.ts.map +1 -1
  51. package/dist/components/layout/components/header/HeaderMenu.d.ts +1 -1
  52. package/dist/components/layout/components/header/HeaderMenu.d.ts.map +1 -1
  53. package/dist/components/layout/components/header/HeaderNavigation.d.ts +1 -1
  54. package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
  55. package/dist/components/layout/components/header/SettingsMenu.d.ts +1 -1
  56. package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
  57. package/dist/components/layout/components/header/ThemeToggle.d.ts +1 -1
  58. package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
  59. package/dist/crud/components/CrudCardLink.d.ts +1 -1
  60. package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
  61. package/dist/crud/components/CrudCardLink.js +1 -2
  62. package/dist/crud/components/EntityCardList.d.ts +1 -1
  63. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  64. package/dist/crud/components/EntityCardList.js +0 -1
  65. package/dist/crud/components/EntityDisplayRenderer.d.ts +1 -1
  66. package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
  67. package/dist/crud/components/EntityDisplayRenderer.js +1 -2
  68. package/dist/crud/components/EntityFormRenderer.d.ts +1 -1
  69. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  70. package/dist/crud/components/EntityFormRenderer.js +20 -5
  71. package/dist/crud/components/EntityList.d.ts +1 -1
  72. package/dist/crud/components/EntityList.d.ts.map +1 -1
  73. package/dist/crud/components/EntityList.js +1 -2
  74. package/dist/crud/components/EntityRecommendations.d.ts +1 -1
  75. package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
  76. package/dist/crud/components/EntityRecommendations.js +0 -1
  77. package/dist/crud/components/EntityWorkflow.d.ts +22 -2
  78. package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
  79. package/dist/crud/components/EntityWorkflow.js +0 -22
  80. package/dist/crud/components/Form.d.ts +8 -8
  81. package/dist/crud/components/Form.d.ts.map +1 -1
  82. package/dist/dndev-next.css +1714 -0
  83. package/dist/dndev.css +14 -932
  84. package/dist/files/inter-cyrillic-300-normal.woff +0 -0
  85. package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
  86. package/dist/files/inter-cyrillic-400-normal.woff +0 -0
  87. package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
  88. package/dist/files/inter-cyrillic-600-normal.woff +0 -0
  89. package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
  90. package/dist/files/inter-cyrillic-700-normal.woff +0 -0
  91. package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
  92. package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
  93. package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
  94. package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
  95. package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
  96. package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
  97. package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
  98. package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
  99. package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
  100. package/dist/files/inter-greek-300-normal.woff +0 -0
  101. package/dist/files/inter-greek-300-normal.woff2 +0 -0
  102. package/dist/files/inter-greek-400-normal.woff +0 -0
  103. package/dist/files/inter-greek-400-normal.woff2 +0 -0
  104. package/dist/files/inter-greek-600-normal.woff +0 -0
  105. package/dist/files/inter-greek-600-normal.woff2 +0 -0
  106. package/dist/files/inter-greek-700-normal.woff +0 -0
  107. package/dist/files/inter-greek-700-normal.woff2 +0 -0
  108. package/dist/files/inter-greek-ext-300-normal.woff +0 -0
  109. package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
  110. package/dist/files/inter-greek-ext-400-normal.woff +0 -0
  111. package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
  112. package/dist/files/inter-greek-ext-600-normal.woff +0 -0
  113. package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
  114. package/dist/files/inter-greek-ext-700-normal.woff +0 -0
  115. package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
  116. package/dist/files/inter-latin-300-normal.woff +0 -0
  117. package/dist/files/inter-latin-300-normal.woff2 +0 -0
  118. package/dist/files/inter-latin-400-normal.woff +0 -0
  119. package/dist/files/inter-latin-400-normal.woff2 +0 -0
  120. package/dist/files/inter-latin-600-normal.woff +0 -0
  121. package/dist/files/inter-latin-600-normal.woff2 +0 -0
  122. package/dist/files/inter-latin-700-normal.woff +0 -0
  123. package/dist/files/inter-latin-700-normal.woff2 +0 -0
  124. package/dist/files/inter-latin-ext-300-normal.woff +0 -0
  125. package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
  126. package/dist/files/inter-latin-ext-400-normal.woff +0 -0
  127. package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
  128. package/dist/files/inter-latin-ext-600-normal.woff +0 -0
  129. package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
  130. package/dist/files/inter-latin-ext-700-normal.woff +0 -0
  131. package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
  132. package/dist/files/inter-vietnamese-300-normal.woff +0 -0
  133. package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
  134. package/dist/files/inter-vietnamese-400-normal.woff +0 -0
  135. package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
  136. package/dist/files/inter-vietnamese-600-normal.woff +0 -0
  137. package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
  138. package/dist/files/inter-vietnamese-700-normal.woff +0 -0
  139. package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
  140. package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
  141. package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
  142. package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
  143. package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
  144. package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
  145. package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
  146. package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
  147. package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
  148. package/dist/files/playfair-display-latin-400-normal.woff +0 -0
  149. package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
  150. package/dist/files/playfair-display-latin-500-normal.woff +0 -0
  151. package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
  152. package/dist/files/playfair-display-latin-600-normal.woff +0 -0
  153. package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
  154. package/dist/files/playfair-display-latin-700-normal.woff +0 -0
  155. package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
  156. package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
  157. package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
  158. package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
  159. package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
  160. package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
  161. package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
  162. package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
  163. package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
  164. package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
  165. package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
  166. package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
  167. package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
  168. package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
  169. package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
  170. package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
  171. package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
  172. package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
  173. package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
  174. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
  175. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
  176. package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
  177. package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
  178. package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
  179. package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
  180. package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
  181. package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
  182. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  183. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  184. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  185. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  186. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  187. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  188. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  189. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  190. package/dist/files/roboto-greek-400-normal.woff +0 -0
  191. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  192. package/dist/files/roboto-greek-700-normal.woff +0 -0
  193. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  194. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  195. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  196. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  197. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  198. package/dist/files/roboto-latin-400-normal.woff +0 -0
  199. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  200. package/dist/files/roboto-latin-700-normal.woff +0 -0
  201. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  202. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  203. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  204. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  205. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  206. package/dist/files/roboto-math-400-normal.woff +0 -0
  207. package/dist/files/roboto-math-400-normal.woff2 +0 -0
  208. package/dist/files/roboto-math-700-normal.woff +0 -0
  209. package/dist/files/roboto-math-700-normal.woff2 +0 -0
  210. package/dist/files/roboto-symbols-400-normal.woff +0 -0
  211. package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
  212. package/dist/files/roboto-symbols-700-normal.woff +0 -0
  213. package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
  214. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  215. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  216. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  217. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  218. package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
  219. package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
  220. package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
  221. package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
  222. package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
  223. package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
  224. package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
  225. package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
  226. package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
  227. package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
  228. package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
  229. package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
  230. package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
  231. package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  232. package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
  233. package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  234. package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
  235. package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  236. package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
  237. package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  238. package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
  239. package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
  240. package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
  241. package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  242. package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
  243. package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
  244. package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
  245. package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  246. package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
  247. package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  248. package/dist/index.js +3 -3
  249. package/dist/internal/common/ErrorFallback.d.ts.map +1 -1
  250. package/dist/internal/common/GlobalErrorFallback.d.ts.map +1 -1
  251. package/dist/internal/common/RouteErrorFallback.d.ts.map +1 -1
  252. package/dist/internal/devtools/DebugTools.d.ts +1 -1
  253. package/dist/internal/devtools/DebugTools.d.ts.map +1 -1
  254. package/dist/internal/devtools/components/AuthDebugButton.d.ts.map +1 -1
  255. package/dist/internal/devtools/components/ConfigTab.d.ts +1 -1
  256. package/dist/internal/devtools/components/ConfigTab.d.ts.map +1 -1
  257. package/dist/internal/devtools/components/CookieTab.d.ts +1 -1
  258. package/dist/internal/devtools/components/CookieTab.d.ts.map +1 -1
  259. package/dist/internal/devtools/components/DebugDialog.d.ts +1 -1
  260. package/dist/internal/devtools/components/DebugDialog.d.ts.map +1 -1
  261. package/dist/internal/devtools/components/DesignTab.d.ts +1 -1
  262. package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
  263. package/dist/internal/devtools/components/LayoutReset.d.ts.map +1 -1
  264. package/dist/internal/devtools/components/MaskedValue.d.ts +1 -1
  265. package/dist/internal/devtools/components/MaskedValue.d.ts.map +1 -1
  266. package/dist/internal/devtools/components/StoresTab.d.ts +1 -1
  267. package/dist/internal/devtools/components/StoresTab.d.ts.map +1 -1
  268. package/dist/internal/initializers/BaseStoresInitializer.d.ts +2 -2
  269. package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
  270. package/dist/internal/initializers/BaseStoresInitializer.js +1 -1
  271. package/dist/internal/initializers/NextJsStoresInitializer.d.ts +2 -2
  272. package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
  273. package/dist/internal/initializers/ViteStoresInitializer.d.ts +10 -2
  274. package/dist/internal/initializers/ViteStoresInitializer.d.ts.map +1 -1
  275. package/dist/internal/initializers/ViteStoresInitializer.js +0 -9
  276. package/dist/internal/layout/DnDevLayout.d.ts +1 -1
  277. package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
  278. package/dist/internal/layout/DnDevLayout.js +30 -9
  279. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  280. package/dist/internal/layout/components/AutoMetaTags.js +1 -1
  281. package/dist/internal/layout/components/FaviconHead.d.ts.map +1 -1
  282. package/dist/internal/layout/components/HeadTags.d.ts +17 -1
  283. package/dist/internal/layout/components/HeadTags.d.ts.map +1 -1
  284. package/dist/internal/layout/components/HeadTags.js +0 -17
  285. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +1 -1
  286. package/dist/internal/layout/components/PerformanceHints.d.ts +12 -0
  287. package/dist/internal/layout/components/PerformanceHints.d.ts.map +1 -1
  288. package/dist/internal/layout/components/PerformanceHints.js +0 -13
  289. package/dist/internal/layout/config/defaults.d.ts +10 -0
  290. package/dist/internal/layout/config/defaults.d.ts.map +1 -1
  291. package/dist/internal/layout/config/defaults.js +0 -11
  292. package/dist/internal/layout/zones/DnDevFooter.d.ts +1 -1
  293. package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
  294. package/dist/internal/layout/zones/DnDevHeader.d.ts.map +1 -1
  295. package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
  296. package/dist/internal/layout/zones/DnDevSidebar.d.ts.map +1 -1
  297. package/dist/internal/providers/NavigationProvider.d.ts +30 -1
  298. package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
  299. package/dist/internal/providers/UIProviders.d.ts +8 -0
  300. package/dist/internal/providers/UIProviders.d.ts.map +1 -1
  301. package/dist/internal/providers/UIProviders.js +0 -9
  302. package/dist/providers/NextJsAppProviders.d.ts +1 -1
  303. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  304. package/dist/providers/NextJsAppProviders.js +1 -4
  305. package/dist/providers/ViteAppProviders.d.ts +1 -1
  306. package/dist/providers/ViteAppProviders.d.ts.map +1 -1
  307. package/dist/routing/404.d.ts +1 -1
  308. package/dist/routing/404.d.ts.map +1 -1
  309. package/dist/routing/AuthGuard.d.ts +2 -2
  310. package/dist/routing/AuthGuard.d.ts.map +1 -1
  311. package/dist/routing/AuthGuardFallback.d.ts +1 -1
  312. package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
  313. package/dist/routing/AuthReturnTo.js +1 -1
  314. package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
  315. package/dist/routing/GoTo.d.ts +1 -1
  316. package/dist/routing/GoTo.d.ts.map +1 -1
  317. package/dist/routing/GoToDialog.d.ts.map +1 -1
  318. package/dist/routing/GoToInput.d.ts +1 -1
  319. package/dist/routing/GoToInput.d.ts.map +1 -1
  320. package/dist/routing/GoToWrapper.d.ts +1 -1
  321. package/dist/routing/GoToWrapper.d.ts.map +1 -1
  322. package/dist/routing/Link.d.ts +1 -1
  323. package/dist/routing/Link.d.ts.map +1 -1
  324. package/dist/routing/Link.js +0 -1
  325. package/dist/routing/NavigationItem.d.ts +1 -1
  326. package/dist/routing/NavigationItem.d.ts.map +1 -1
  327. package/dist/routing/useRouteDiscovery.d.ts +1 -1
  328. package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
  329. package/dist/styles/index.css +14 -831
  330. package/dist/symbol-index.json +1 -1
  331. package/dist/utils/tList.d.ts +8 -0
  332. package/dist/utils/tList.d.ts.map +1 -1
  333. package/dist/utils/tList.js +0 -9
  334. package/dist/utils/useSeo.d.ts.map +1 -1
  335. package/dist/utils/useSeo.js +1 -1
  336. package/dist/vite-routing/AppRoutes.d.ts +1 -1
  337. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  338. package/dist/vite-routing/AppRoutes.js +1 -1
  339. package/dist/vite-routing/RootLayout.d.ts +1 -1
  340. package/dist/vite-routing/RootLayout.d.ts.map +1 -1
  341. package/dist/vite-routing/RootLayout.js +1 -1
  342. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
- import { DISPLAY } from '@donotdev/components';
2
1
  import type { ComponentType } from 'react';
2
+ import { DISPLAY } from '@donotdev/components';
3
3
  interface ThemeToggleProps {
4
4
  /**
5
5
  * Display mode for theme toggle
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/header/ThemeToggle.tsx"],"names":[],"mappings":"AAcA,OAAO,EAIL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAM9B,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAEtD,UAAU,gBAAgB;IACxB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAUD;;;;;;;;;GASG;AACH,QAAA,MAAM,WAAW,EAAE,aAAa,CAAC,gBAAgB,CA8FhD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ThemeToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/header/ThemeToggle.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAEtD,OAAO,EAIL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAM9B,UAAU,gBAAgB;IACxB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAUD;;;;;;;;;GASG;AACH,QAAA,MAAM,WAAW,EAAE,aAAa,CAAC,gBAAgB,CA8FhD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -14,6 +14,6 @@ import type { CrudCardProps } from '@donotdev/core';
14
14
  */
15
15
  export declare function CrudCard({ detailHref, onClick, ...rest }: CrudCardProps & {
16
16
  detailHref?: string;
17
- }): import("react/jsx-runtime").JSX.Element | null;
17
+ }): import("react").JSX.Element | null;
18
18
  export default CrudCard;
19
19
  //# sourceMappingURL=CrudCardLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CrudCardLink.d.ts","sourceRoot":"","sources":["../../../src/crud/components/CrudCardLink.tsx"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQpD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACvB,UAAU,EACV,OAAO,EACP,GAAG,IAAI,EACR,EAAE,aAAa,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,kDAsBzC;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CrudCardLink.d.ts","sourceRoot":"","sources":["../../../src/crud/components/CrudCardLink.tsx"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQpD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACvB,UAAU,EACV,OAAO,EACP,GAAG,IAAI,EACR,EAAE,aAAa,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,sCAsBzC;AAED,eAAe,QAAQ,CAAC"}
@@ -1,14 +1,13 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { isCrudModuleAvailable, CrudCard as BaseCrudCard, } from '../crudImports';
4
3
  import { Link } from '../../routing';
4
+ import { isCrudModuleAvailable, CrudCard as BaseCrudCard, } from '../crudImports';
5
5
  /**
6
6
  * CrudCard with Link wrapping for web navigation.
7
7
  * When detailHref is provided, wraps the card in a Link for a11y/SEO.
8
8
  */
9
9
  export function CrudCard({ detailHref, onClick, ...rest }) {
10
10
  // Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
11
- // eslint-disable-next-line react-hooks/rules-of-hooks
12
11
  if (!isCrudModuleAvailable)
13
12
  return null;
14
13
  // When detailHref is set, Link handles navigation — don't pass onClick to inner card
@@ -12,5 +12,5 @@ export type { EntityCardListProps };
12
12
  * - Auto-routing when handler not provided
13
13
  */
14
14
  export declare function EntityCardList({ entity, basePath, onClick, cols, staleTime, // 30 minutes default cache
15
- queryOptions, filter, hideFilters, resultLabel, tone, renderCardOverlay, clientSort, collapsible, defaultOpen, preview, }: EntityCardListProps): import("react/jsx-runtime").JSX.Element | null;
15
+ queryOptions, filter, hideFilters, resultLabel, tone, renderCardOverlay, clientSort, collapsible, defaultOpen, preview, }: EntityCardListProps): import("react").JSX.Element | null;
16
16
  //# sourceMappingURL=EntityCardList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityCardList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityCardList.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,gBAAgB,CAAC;AAWxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AA0GpC;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAAE,2BAA2B;AACvD,YAAY,EACZ,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,UAAU,EACV,WAAmB,EACnB,WAAW,EACX,OAAO,GACR,EAAE,mBAAmB,kDA4OrB"}
1
+ {"version":3,"file":"EntityCardList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityCardList.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,gBAAgB,CAAC;AAYxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AA0GpC;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAAE,2BAA2B;AACvD,YAAY,EACZ,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,UAAU,EACV,WAAmB,EACnB,WAAW,EACX,OAAO,GACR,EAAE,mBAAmB,sCA4OrB"}
@@ -89,7 +89,6 @@ function CardListSkeleton({ cols, entity, }) {
89
89
  export function EntityCardList({ entity, basePath, onClick, cols = [1, 2, 3, 4], staleTime = 1000 * 60 * 30, // 30 minutes default cache
90
90
  queryOptions, filter, hideFilters = false, resultLabel, tone, renderCardOverlay, clientSort, collapsible = false, defaultOpen, preview, }) {
91
91
  // Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
92
- // eslint-disable-next-line react-hooks/rules-of-hooks
93
92
  if (!isCrudModuleAvailable)
94
93
  return null;
95
94
  const isPreview = !!preview;
@@ -16,6 +16,6 @@ export type { EntityDisplayRendererProps };
16
16
  * <EntityDisplayRenderer entity={carEntity} id={carId} />
17
17
  * ```
18
18
  */
19
- export declare function EntityDisplayRenderer<T extends EntityRecord = EntityRecord>({ entity, id, t, className, loadingMessage, notFoundMessage, viewerRole: viewerRoleProp, excludeFields, preview, }: EntityDisplayRendererProps<T>): import("react/jsx-runtime").JSX.Element | null;
19
+ export declare function EntityDisplayRenderer<T extends EntityRecord = EntityRecord>({ entity, id, t, className, loadingMessage, notFoundMessage, viewerRole: viewerRoleProp, excludeFields, preview, }: EntityDisplayRendererProps<T>): import("react").JSX.Element | null;
20
20
  export default EntityDisplayRenderer;
21
21
  //# sourceMappingURL=EntityDisplayRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityDisplayRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityDisplayRenderer.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAS/E,YAAY,EAAE,0BAA0B,EAAE,CAAC;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EAC3E,MAAM,EACN,EAAE,EACF,CAAC,EACD,SAAc,EACd,cAAc,EACd,eAAe,EACf,UAAU,EAAE,cAAc,EAC1B,aAAa,EACb,OAAO,GACR,EAAE,0BAA0B,CAAC,CAAC,CAAC,kDAgN/B;AAED,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"EntityDisplayRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityDisplayRenderer.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAS/E,YAAY,EAAE,0BAA0B,EAAE,CAAC;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EAC3E,MAAM,EACN,EAAE,EACF,CAAC,EACD,SAAc,EACd,cAAc,EACd,eAAe,EACf,UAAU,EAAE,cAAc,EAC1B,aAAa,EACb,OAAO,GACR,EAAE,0BAA0B,CAAC,CAAC,CAAC,sCAgN/B;AAED,eAAe,qBAAqB,CAAC"}
@@ -13,8 +13,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { useEffect, useState, useMemo } from 'react';
14
14
  import { Stack, Spinner } from '@donotdev/components';
15
15
  import { useTranslation, isFieldVisible } from '@donotdev/core';
16
- import { isCrudModuleAvailable, useCrud, DisplayFieldRenderer, } from '../crudImports';
17
16
  import { useAuthSafe } from '../../utils/useAuthSafe';
17
+ import { isCrudModuleAvailable, useCrud, DisplayFieldRenderer, } from '../crudImports';
18
18
  /**
19
19
  * EntityDisplayRenderer - Automatically fetches and displays entity data
20
20
  *
@@ -33,7 +33,6 @@ import { useAuthSafe } from '../../utils/useAuthSafe';
33
33
  */
34
34
  export function EntityDisplayRenderer({ entity, id, t, className = '', loadingMessage, notFoundMessage, viewerRole: viewerRoleProp, excludeFields, preview, }) {
35
35
  // Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
36
- // eslint-disable-next-line react-hooks/rules-of-hooks
37
36
  if (!isCrudModuleAvailable)
38
37
  return null;
39
38
  const isPreview = !!preview;
@@ -18,6 +18,6 @@ export type { EntityFormRendererProps };
18
18
  * Applies instanceKey as React key on the inner component for clean state isolation
19
19
  * when navigating between entities on the same route (e.g. /cars/:id).
20
20
  */
21
- export declare function EntityFormRenderer<T extends EntityRecord = EntityRecord>(props: EntityFormRendererProps<T>): import("react/jsx-runtime").JSX.Element;
21
+ export declare function EntityFormRenderer<T extends EntityRecord = EntityRecord>(props: EntityFormRendererProps<T>): import("react").JSX.Element;
22
22
  export default EntityFormRenderer;
23
23
  //# sourceMappingURL=EntityFormRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityFormRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityFormRenderer.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAexB,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAExC;;;;;;;;;;;;GAYG;AACH;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EACtE,KAAK,EAAE,uBAAuB,CAAC,CAAC,CAAC,2CAIlC;AAoeD,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"EntityFormRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityFormRenderer.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAexB,YAAY,EAAE,uBAAuB,EAAE,CAAC;AA6BxC;;;;;;;;;;;;GAYG;AACH;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EACtE,KAAK,EAAE,uBAAuB,CAAC,CAAC,CAAC,+BAIlC;AAseD,eAAe,kBAAkB,CAAC"}
@@ -11,12 +11,26 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  * @author AMBROISE PARK Consulting
12
12
  */
13
13
  import { useEffect, useId, useMemo, useState } from 'react';
14
- import { FormProvider } from 'react-hook-form';
14
+ import { FormProvider, useWatch } from 'react-hook-form';
15
15
  import { Badge, Button, DropdownMenu, Grid, Stack, Spinner, } from '@donotdev/components';
16
16
  import { hasRoleAccess, useTranslation } from '@donotdev/core';
17
- import { isCrudModuleAvailable, DisplayFieldRenderer, FormFieldRenderer, UploadProvider, useEntityForm, useFormStore, useFieldConditions, } from '../crudImports';
18
17
  import { useNavigate } from '../../routing';
19
18
  import { useAuthSafe } from '../../utils/useAuthSafe';
19
+ import { isCrudModuleAvailable, DisplayFieldRenderer, FormFieldRenderer, UploadProvider, useEntityForm, useFormStore, useFieldConditions, } from '../crudImports';
20
+ /**
21
+ * Read-only field inside a form.
22
+ *
23
+ * Subscribes to the field's live form value rather than reading the initial
24
+ * `defaultValues`, so fields written during the session — a computed value set
25
+ * by another field's component via `setValue`, for instance — display what the
26
+ * form will actually submit, not what it was loaded with.
27
+ *
28
+ * Mirrors FormFieldRenderer's contract: takes `control`, subscribes itself.
29
+ */
30
+ function FormDisplayField({ name, config, control, t, }) {
31
+ const value = useWatch({ control, name });
32
+ return (_jsx(DisplayFieldRenderer, { name: name, config: config, value: value, t: t }));
33
+ }
20
34
  /**
21
35
  * EntityFormRenderer - Dumb component that renders a form from entity definition.
22
36
  *
@@ -42,7 +56,6 @@ export function EntityFormRenderer(props) {
42
56
  function EntityFormRendererCore({ entity, onSubmit, t, className = '', submitText, loading = false, defaultValues, submitVariant = 'primary', secondaryButtonText, secondaryButtonVariant = 'outline', onSecondarySubmit, viewerRole: viewerRoleProp, operation = defaultValues ? 'edit' : 'create', formId: externalFormId, cancelText, cancelPath, successPath, onCancel, hideVisibilityInfo = false, }) {
43
57
  // Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
44
58
  // Hooks below are either ALL called or NONE — no Rules-of-Hooks violation at runtime.
45
- // eslint-disable-next-line react-hooks/rules-of-hooks
46
59
  if (!isCrudModuleAvailable)
47
60
  return null;
48
61
  const navigate = useNavigate();
@@ -224,7 +237,9 @@ function EntityFormRendererCore({ entity, onSubmit, t, className = '', submitTex
224
237
  gridColumn: '1 / -1',
225
238
  display: 'contents',
226
239
  }, children: [isLoading && _jsx(Spinner, { overlay: true }), _jsxs("form", { onSubmit: (e) => {
227
- console.log('[EntityFormRenderer] native form onSubmit event', { defaultPrevented: e.defaultPrevented });
240
+ console.log('[EntityFormRenderer] native form onSubmit event', {
241
+ defaultPrevented: e.defaultPrevented,
242
+ });
228
243
  return handleSubmit(handleFormSubmit)(e);
229
244
  }, noValidate: true, className: className, style: { width: '100%', gridColumn: '1 / -1', display: 'contents' }, children: [renderableFields.map(({ name, config, editable }) => {
230
245
  // Evaluate dynamic conditions for this field
@@ -253,7 +268,7 @@ function EntityFormRendererCore({ entity, onSubmit, t, className = '', submitTex
253
268
  const badgeLabel = roleLabels[config.visibility] ??
254
269
  config.visibility;
255
270
  // Wrap field with visibility badge when enabled
256
- const fieldElement = !effectiveEditable ? (_jsx(DisplayFieldRenderer, { name: name, config: effectiveConfig, value: defaultValues?.[name], t: translate }, name)) : (_jsx(FormFieldRenderer, { name: name, config: effectiveConfig, control: control, errors: errors, t: translate }, name));
271
+ const fieldElement = !effectiveEditable ? (_jsx(FormDisplayField, { name: name, config: effectiveConfig, control: control, t: translate }, name)) : (_jsx(FormFieldRenderer, { name: name, config: effectiveConfig, control: control, errors: errors, t: translate }, name));
257
272
  // If no badge needed, return field directly
258
273
  if (!showBadge)
259
274
  return fieldElement;
@@ -10,5 +10,5 @@ export type { EntityListProps };
10
10
  * - Edit and Delete actions (admin only)
11
11
  * - Auto-routing when handlers not provided
12
12
  */
13
- export declare function EntityList({ entity, basePath, onClick, hideFilters, pagination, pageSize: pageSizeProp, queryOptions, exportable, preview, tone, }: EntityListProps): import("react/jsx-runtime").JSX.Element | null;
13
+ export declare function EntityList({ entity, basePath, onClick, hideFilters, pagination, pageSize: pageSizeProp, queryOptions, exportable, preview, tone, }: EntityListProps): import("react").JSX.Element | null;
14
14
  //# sourceMappingURL=EntityList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityList.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAetD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAmB,EACnB,UAAmB,EACnB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAiB,EACjB,OAAO,EACP,IAAI,GACL,EAAE,eAAe,kDAqTjB"}
1
+ {"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityList.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAetD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAmB,EACnB,UAAmB,EACnB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAiB,EACjB,OAAO,EACP,IAAI,GACL,EAAE,eAAe,sCAqTjB"}
@@ -17,8 +17,8 @@ import { RefreshCw, Plus, Trash2, Edit, Search } from 'lucide-react';
17
17
  import { useCallback, useState } from 'react';
18
18
  import { DataTable, Button, Stack, ActionButton, Section, Input, } from '@donotdev/components';
19
19
  import { useTranslation } from '@donotdev/core';
20
- import { isCrudModuleAvailable, translateFieldLabel, useCrud, useCrudList, useCrudPageSize, EntityFilters, formatValue, useReferenceResolver, } from '../crudImports';
21
20
  import { Link, useNavigate } from '../../routing';
21
+ import { isCrudModuleAvailable, translateFieldLabel, useCrud, useCrudList, useCrudPageSize, EntityFilters, formatValue, useReferenceResolver, } from '../crudImports';
22
22
  /**
23
23
  * Entity List Component - Table view for admin/internal operations
24
24
  *
@@ -31,7 +31,6 @@ import { Link, useNavigate } from '../../routing';
31
31
  */
32
32
  export function EntityList({ entity, basePath, onClick, hideFilters = false, pagination = 'auto', pageSize: pageSizeProp, queryOptions, exportable = true, preview, tone, }) {
33
33
  // Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
34
- // eslint-disable-next-line react-hooks/rules-of-hooks
35
34
  if (!isCrudModuleAvailable)
36
35
  return null;
37
36
  const isPreview = !!preview;
@@ -39,5 +39,5 @@ import type { EntityRecommendationsProps } from '@donotdev/core';
39
39
  * @since 0.0.15
40
40
  * @author AMBROISE PARK Consulting
41
41
  */
42
- export declare function EntityRecommendations({ entity, queryOptions, title, basePath, cols, tone, className, }: EntityRecommendationsProps): import("react/jsx-runtime").JSX.Element | null;
42
+ export declare function EntityRecommendations({ entity, queryOptions, title, basePath, cols, tone, className, }: EntityRecommendationsProps): import("react").JSX.Element | null;
43
43
  //# sourceMappingURL=EntityRecommendations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityRecommendations.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityRecommendations.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAKjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,IAAmB,EACnB,IAAI,EACJ,SAAS,GACV,EAAE,0BAA0B,kDAmE5B"}
1
+ {"version":3,"file":"EntityRecommendations.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityRecommendations.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAKjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,IAAmB,EACnB,IAAI,EACJ,SAAS,GACV,EAAE,0BAA0B,sCAmE5B"}
@@ -56,7 +56,6 @@ import { CrudCard } from './CrudCardLink';
56
56
  */
57
57
  export function EntityRecommendations({ entity, queryOptions, title, basePath, cols = [1, 1, 3, 3], tone, className, }) {
58
58
  // Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
59
- // eslint-disable-next-line react-hooks/rules-of-hooks
60
59
  if (!isCrudModuleAvailable)
61
60
  return null;
62
61
  const { t } = useTranslation([entity.namespace, 'crud']);
@@ -1,5 +1,25 @@
1
- import type { WorkflowConfig, EntityWorkflowReturn } from '@donotdev/crud';
1
+ /**
2
+ * @fileoverview EntityWorkflow component
3
+ * @description Renders a multi-step entity workflow with stepper navigation.
4
+ * Uses useEntityWorkflow for orchestration and EntityFormRenderer for each step's form.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <EntityWorkflow
9
+ * workflow={onboardingWorkflow}
10
+ * onComplete={async (data) => {
11
+ * await api.createAccount(data);
12
+ * navigate('/dashboard');
13
+ * }}
14
+ * />
15
+ * ```
16
+ *
17
+ * @version 0.1.0
18
+ * @since 0.0.1
19
+ * @author AMBROISE PARK Consulting
20
+ */
2
21
  import type { ReactNode } from 'react';
22
+ import type { WorkflowConfig, EntityWorkflowReturn } from '@donotdev/crud';
3
23
  /** Props for EntityWorkflow */
4
24
  export interface EntityWorkflowProps {
5
25
  /** Workflow configuration from defineWorkflow() */
@@ -23,5 +43,5 @@ export interface EntityWorkflowProps {
23
43
  * Default mode: auto-renders Stepper + form + navigation buttons.
24
44
  * Custom mode: pass a render prop as children for full control.
25
45
  */
26
- export declare function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }: EntityWorkflowProps): import("react/jsx-runtime").JSX.Element | null;
46
+ export declare function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }: EntityWorkflowProps): import("react").JSX.Element | null;
27
47
  //# sourceMappingURL=EntityWorkflow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityWorkflow.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityWorkflow.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EACV,cAAc,EAEd,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,+BAA+B;AAC/B,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,QAAQ,EAAE,cAAc,CAAC;IACzB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAoB,KAAK,SAAS,CAAC;IACnD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,kDA2FrB"}
1
+ {"version":3,"file":"EntityWorkflow.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityWorkflow.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EACV,cAAc,EAEd,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAKxB,+BAA+B;AAC/B,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,QAAQ,EAAE,cAAc,CAAC;IACzB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAoB,KAAK,SAAS,CAAC;IACnD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,sCA2FrB"}
@@ -1,26 +1,5 @@
1
1
  'use client';
2
2
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- // packages/ui/src/crud/components/EntityWorkflow.tsx
4
- /**
5
- * @fileoverview EntityWorkflow component
6
- * @description Renders a multi-step entity workflow with stepper navigation.
7
- * Uses useEntityWorkflow for orchestration and EntityFormRenderer for each step's form.
8
- *
9
- * @example
10
- * ```tsx
11
- * <EntityWorkflow
12
- * workflow={onboardingWorkflow}
13
- * onComplete={async (data) => {
14
- * await api.createAccount(data);
15
- * navigate('/dashboard');
16
- * }}
17
- * />
18
- * ```
19
- *
20
- * @version 0.1.0
21
- * @since 0.0.1
22
- * @author AMBROISE PARK Consulting
23
- */
24
3
  import { Button, Stack, Stepper } from '@donotdev/components';
25
4
  import { useTranslation } from '@donotdev/core';
26
5
  import { isCrudModuleAvailable, useEntityWorkflow } from '../crudImports';
@@ -33,7 +12,6 @@ import { EntityFormRenderer } from './EntityFormRenderer';
33
12
  */
34
13
  export function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }) {
35
14
  // Safe guard: isCrudModuleAvailable is a module-level constant (immutable after load).
36
- // eslint-disable-next-line react-hooks/rules-of-hooks
37
15
  if (!isCrudModuleAvailable)
38
16
  return null;
39
17
  const { t } = useTranslation('crud');
@@ -16,7 +16,7 @@ import { Label, Slot } from '@donotdev/components';
16
16
  * @since 0.0.1
17
17
  * @author AMBROISE PARK Consulting
18
18
  */
19
- declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
19
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getErrors, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, resetDefaultValues, handleSubmit, unregister, control, register, setFocus, subscribe, }: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
20
20
  /**
21
21
  * Form field component
22
22
  *
@@ -28,7 +28,7 @@ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransfor
28
28
  * @since 0.0.1
29
29
  * @author AMBROISE PARK Consulting
30
30
  */
31
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
31
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react").JSX.Element;
32
32
  /**
33
33
  * Form item component
34
34
  *
@@ -40,7 +40,7 @@ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName
40
40
  * @since 0.0.1
41
41
  * @author AMBROISE PARK Consulting
42
42
  */
43
- declare const FormItem: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
43
+ declare const FormItem: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
44
44
  /**
45
45
  * Hook for accessing form field context
46
46
  *
@@ -56,7 +56,7 @@ declare const useFormField: () => {
56
56
  isDirty: boolean;
57
57
  isTouched: boolean;
58
58
  isValidating: boolean;
59
- error?: import("react-hook-form").FieldError;
59
+ error?: import("react-hook-form").FieldError | undefined;
60
60
  id: string;
61
61
  name: string;
62
62
  formItemId: string;
@@ -74,7 +74,7 @@ declare const useFormField: () => {
74
74
  * @since 0.0.1
75
75
  * @author AMBROISE PARK Consulting
76
76
  */
77
- declare const FormLabel: ({ className, ...props }: ComponentProps<typeof Label>) => import("react/jsx-runtime").JSX.Element | null;
77
+ declare const FormLabel: ({ className, ...props }: ComponentProps<typeof Label>) => import("react").JSX.Element | null;
78
78
  /**
79
79
  * Form control component
80
80
  *
@@ -86,7 +86,7 @@ declare const FormLabel: ({ className, ...props }: ComponentProps<typeof Label>)
86
86
  * @since 0.0.1
87
87
  * @author AMBROISE PARK Consulting
88
88
  */
89
- declare const FormControl: ({ ...props }: ComponentProps<typeof Slot>) => import("react/jsx-runtime").JSX.Element | null;
89
+ declare const FormControl: ({ ...props }: ComponentProps<typeof Slot>) => import("react").JSX.Element | null;
90
90
  /**
91
91
  * Form description component
92
92
  *
@@ -98,7 +98,7 @@ declare const FormControl: ({ ...props }: ComponentProps<typeof Slot>) => import
98
98
  * @since 0.0.1
99
99
  * @author AMBROISE PARK Consulting
100
100
  */
101
- declare const FormDescription: ({ className, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react/jsx-runtime").JSX.Element | null;
101
+ declare const FormDescription: ({ className, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react").JSX.Element | null;
102
102
  /**
103
103
  * Form message component
104
104
  *
@@ -110,7 +110,7 @@ declare const FormDescription: ({ className, ...props }: HTMLAttributes<HTMLPara
110
110
  * @since 0.0.1
111
111
  * @author AMBROISE PARK Consulting
112
112
  */
113
- declare const FormMessage: ({ className, children, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react/jsx-runtime").JSX.Element | null;
113
+ declare const FormMessage: ({ className, children, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react").JSX.Element | null;
114
114
  /**
115
115
  * Form component exports
116
116
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/crud/components/Form.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAGjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAa,MAAM,sBAAsB,CAAC;AAE9D;;;;;;GAMG;AACH,QAAA,MAAM,IAAI,4MAAe,CAAC;AAqB1B;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAYF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,QAAQ,GAAI,yBAAyB,cAAc,CAAC,cAAc,CAAC,4CAOxE,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;QA4BjB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS,GAAI,yBAAyB,cAAc,CAAC,OAAO,KAAK,CAAC,mDAWvE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,GAAI,cAAc,cAAc,CAAC,OAAO,IAAI,CAAC,mDAgB7D,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,eAAe,GAAI,yBAGtB,cAAc,CAAC,oBAAoB,CAAC,mDAetC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,GAAI,mCAIlB,cAAc,CAAC,oBAAoB,CAAC,mDAsBtC,CAAC;AAEF;;;;;;GAMG;AACH,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,EACT,YAAY,GACb,CAAC"}
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/crud/components/Form.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAGjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAa,MAAM,sBAAsB,CAAC;AAE9D;;;;;;GAMG;AACH,QAAA,MAAM,IAAI,yaAAe,CAAC;AAqB1B;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,gCAMtC,CAAC;AAYF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,QAAQ,GAAI,yBAAyB,cAAc,CAAC,cAAc,CAAC,gCAOxE,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;QA4BjB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS,GAAI,yBAAyB,cAAc,CAAC,OAAO,KAAK,CAAC,uCAWvE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,GAAI,cAAc,cAAc,CAAC,OAAO,IAAI,CAAC,uCAgB7D,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,eAAe,GAAI,yBAGtB,cAAc,CAAC,oBAAoB,CAAC,uCAetC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,GAAI,mCAIlB,cAAc,CAAC,oBAAoB,CAAC,uCAsBtC,CAAC;AAEF;;;;;;GAMG;AACH,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,EACT,YAAY,GACb,CAAC"}