@donotdev/ui 0.0.31 → 0.1.1

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 (335) hide show
  1. package/LICENSE.md +3 -3
  2. package/dist/{GoToDialog-CR4VOVXT.js → GoToDialog-RU5RP7S2.js} +1 -1
  3. package/dist/chunk-ETE4RC7M.js +1 -0
  4. package/dist/components/auth/AuthHeader.d.ts +8 -3
  5. package/dist/components/auth/AuthHeader.d.ts.map +1 -1
  6. package/dist/components/auth/AuthHeader.js +6 -6
  7. package/dist/components/auth/AuthMenu.d.ts +2 -2
  8. package/dist/components/auth/AuthMenu.js +1 -1
  9. package/dist/components/common/FeatureCard.d.ts +2 -0
  10. package/dist/components/common/FeatureCard.d.ts.map +1 -1
  11. package/dist/components/common/FeatureCard.js +1 -1
  12. package/dist/components/common/FeatureDisabled.d.ts +2 -1
  13. package/dist/components/common/FeatureDisabled.d.ts.map +1 -1
  14. package/dist/components/common/FeatureDisabled.js +2 -2
  15. package/dist/components/common/ProgressBar.d.ts +1 -1
  16. package/dist/components/common/ProgressBar.js +2 -2
  17. package/dist/components/common/RedirectOverlay.d.ts +1 -1
  18. package/dist/components/common/RedirectOverlay.js +2 -2
  19. package/dist/components/common/Skeleton.d.ts +7 -7
  20. package/dist/components/common/Skeleton.js +8 -8
  21. package/dist/components/common/TechBento.d.ts +1 -0
  22. package/dist/components/common/TechBento.d.ts.map +1 -1
  23. package/dist/components/common/icon.d.ts +2 -1
  24. package/dist/components/common/icon.d.ts.map +1 -1
  25. package/dist/components/common/icon.js +2 -2
  26. package/dist/components/common/index.d.ts +1 -1
  27. package/dist/components/common/index.js +1 -1
  28. package/dist/components/cookie-consent/ConsentBanner.d.ts +1 -1
  29. package/dist/components/cookie-consent/ConsentBanner.js +2 -2
  30. package/dist/components/cookie-consent/CookieConsent.d.ts +1 -0
  31. package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
  32. package/dist/components/cookie-consent/index.d.ts +1 -1
  33. package/dist/components/cookie-consent/index.js +1 -1
  34. package/dist/components/index.d.ts +1 -1
  35. package/dist/components/index.js +1 -1
  36. package/dist/components/layout/GameContainer.d.ts +1 -1
  37. package/dist/components/layout/GameContainer.js +2 -2
  38. package/dist/components/layout/GameFlow.d.ts +2 -2
  39. package/dist/components/layout/GameFlow.js +2 -2
  40. package/dist/components/layout/PageConfig.d.ts +25 -0
  41. package/dist/components/layout/PageConfig.d.ts.map +1 -0
  42. package/dist/components/layout/PageConfig.js +47 -0
  43. package/dist/components/layout/PageContainer.d.ts +1 -1
  44. package/dist/components/layout/PageContainer.js +2 -2
  45. package/dist/components/layout/components/Breadcrumbs.d.ts +3 -1
  46. package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
  47. package/dist/components/layout/components/Breadcrumbs.js +2 -2
  48. package/dist/components/layout/components/DropdownNavigation.d.ts +1 -1
  49. package/dist/components/layout/components/DropdownNavigation.js +2 -2
  50. package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts +2 -1
  51. package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts.map +1 -1
  52. package/dist/components/layout/components/FloatingLanguageSwitcher.js +2 -2
  53. package/dist/components/layout/components/Notifications.d.ts +4 -4
  54. package/dist/components/layout/components/Notifications.js +3 -3
  55. package/dist/components/layout/components/header/AppBranding.d.ts +3 -2
  56. package/dist/components/layout/components/header/AppBranding.d.ts.map +1 -1
  57. package/dist/components/layout/components/header/AppBranding.js +2 -2
  58. package/dist/components/layout/components/header/AppIcon.d.ts +2 -1
  59. package/dist/components/layout/components/header/AppIcon.d.ts.map +1 -1
  60. package/dist/components/layout/components/header/AppIcon.js +2 -2
  61. package/dist/components/layout/components/header/AppTitle.d.ts +2 -1
  62. package/dist/components/layout/components/header/AppTitle.d.ts.map +1 -1
  63. package/dist/components/layout/components/header/AppTitle.js +2 -2
  64. package/dist/components/layout/components/header/CacheSettings.d.ts +1 -1
  65. package/dist/components/layout/components/header/CacheSettings.js +5 -5
  66. package/dist/components/layout/components/header/GameTitle.d.ts +2 -1
  67. package/dist/components/layout/components/header/GameTitle.d.ts.map +1 -1
  68. package/dist/components/layout/components/header/GameTitle.js +2 -2
  69. package/dist/components/layout/components/header/HeaderMenu.d.ts +2 -1
  70. package/dist/components/layout/components/header/HeaderMenu.d.ts.map +1 -1
  71. package/dist/components/layout/components/header/HeaderMenu.js +2 -2
  72. package/dist/components/layout/components/header/HeaderNavigation.d.ts +2 -1
  73. package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
  74. package/dist/components/layout/components/header/HeaderNavigation.js +2 -2
  75. package/dist/components/layout/components/header/SettingsMenu.d.ts +2 -1
  76. package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
  77. package/dist/components/layout/components/header/SettingsMenu.js +2 -2
  78. package/dist/components/layout/components/header/ThemeToggle.d.ts +1 -1
  79. package/dist/components/layout/components/header/ThemeToggle.js +2 -2
  80. package/dist/components/layout/components/index.d.ts +1 -1
  81. package/dist/components/layout/components/index.js +1 -1
  82. package/dist/components/layout/index.d.ts +2 -1
  83. package/dist/components/layout/index.d.ts.map +1 -1
  84. package/dist/components/layout/index.js +2 -1
  85. package/dist/components/license/LicenseWatermark.d.ts +1 -1
  86. package/dist/components/license/LicenseWatermark.js +2 -2
  87. package/dist/components/license/watermarkData.js +1 -1
  88. package/dist/crud/components/CrudCardLink.d.ts +1 -1
  89. package/dist/crud/components/EntityCardList.d.ts +1 -1
  90. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  91. package/dist/crud/components/EntityCardList.js +33 -22
  92. package/dist/crud/components/EntityDisplayRenderer.d.ts +1 -1
  93. package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
  94. package/dist/crud/components/EntityDisplayRenderer.js +14 -13
  95. package/dist/crud/components/EntityFormRenderer.d.ts +1 -1
  96. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  97. package/dist/crud/components/EntityFormRenderer.js +18 -20
  98. package/dist/crud/components/EntityList.d.ts +1 -1
  99. package/dist/crud/components/EntityList.d.ts.map +1 -1
  100. package/dist/crud/components/EntityList.js +41 -25
  101. package/dist/crud/components/EntityRecommendations.d.ts +2 -2
  102. package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
  103. package/dist/crud/components/EntityRecommendations.js +6 -6
  104. package/dist/crud/components/EntityWorkflow.js +1 -1
  105. package/dist/crud/components/Form.d.ts +10 -10
  106. package/dist/crud/components/Form.js +12 -12
  107. package/dist/crud/components/index.d.ts +1 -1
  108. package/dist/crud/components/index.js +1 -1
  109. package/dist/crud/crudImports.d.ts +2 -1
  110. package/dist/crud/crudImports.d.ts.map +1 -1
  111. package/dist/crud/crudImports.js +2 -1
  112. package/dist/crud/index.d.ts +1 -1
  113. package/dist/crud/index.js +1 -1
  114. package/dist/data/techLogos.d.ts +1 -1
  115. package/dist/data/techLogos.js +1 -1
  116. package/dist/dndev-next.css +374 -81
  117. package/dist/dndev.css +455 -80
  118. package/dist/index.d.ts +1 -1
  119. package/dist/index.js +4 -4
  120. package/dist/internal/common/DnDevErrorBoundary.d.ts +2 -2
  121. package/dist/internal/common/DnDevErrorBoundary.js +2 -2
  122. package/dist/internal/common/ErrorFallback.d.ts +1 -1
  123. package/dist/internal/common/ErrorFallback.js +3 -3
  124. package/dist/internal/common/GlobalErrorFallback.d.ts +1 -1
  125. package/dist/internal/common/GlobalErrorFallback.js +2 -2
  126. package/dist/internal/common/RouteErrorFallback.d.ts +1 -1
  127. package/dist/internal/common/RouteErrorFallback.js +2 -2
  128. package/dist/internal/devtools/DebugTools.js +2 -2
  129. package/dist/internal/devtools/components/AuthDebugButton.js +1 -1
  130. package/dist/internal/devtools/components/ConfigTab.js +1 -1
  131. package/dist/internal/devtools/components/CookieTab.js +1 -1
  132. package/dist/internal/devtools/components/DebugDialog.js +1 -1
  133. package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
  134. package/dist/internal/devtools/components/DesignTab.js +7 -3
  135. package/dist/internal/devtools/components/LayoutReset.js +2 -2
  136. package/dist/internal/devtools/components/MaskedValue.js +1 -1
  137. package/dist/internal/devtools/components/StoresTab.js +1 -1
  138. package/dist/internal/devtools/components/index.d.ts +1 -1
  139. package/dist/internal/devtools/components/index.js +1 -1
  140. package/dist/internal/devtools/index.d.ts +1 -1
  141. package/dist/internal/devtools/index.js +1 -1
  142. package/dist/internal/devtools/types.d.ts +9 -9
  143. package/dist/internal/devtools/utils/envVarDiscovery.d.ts.map +1 -1
  144. package/dist/internal/devtools/utils/envVarDiscovery.js +5 -6
  145. package/dist/internal/devtools/utils/index.d.ts +1 -1
  146. package/dist/internal/devtools/utils/index.js +1 -1
  147. package/dist/internal/devtools/utils/maskSensitive.js +1 -1
  148. package/dist/internal/devtools/utils/virtualModuleInspector.d.ts.map +1 -1
  149. package/dist/internal/devtools/utils/virtualModuleInspector.js +3 -1
  150. package/dist/internal/initializers/BaseStoresInitializer.d.ts +3 -3
  151. package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
  152. package/dist/internal/initializers/BaseStoresInitializer.js +13 -4
  153. package/dist/internal/initializers/NextJsStoresInitializer.d.ts +1 -1
  154. package/dist/internal/initializers/NextJsStoresInitializer.js +2 -2
  155. package/dist/internal/initializers/ViteStoresInitializer.d.ts +1 -1
  156. package/dist/internal/initializers/ViteStoresInitializer.js +2 -2
  157. package/dist/internal/initializers/index.d.ts +1 -1
  158. package/dist/internal/initializers/index.js +1 -1
  159. package/dist/internal/layout/DnDevLayout.d.ts +2 -2
  160. package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
  161. package/dist/internal/layout/DnDevLayout.js +45 -18
  162. package/dist/internal/layout/components/AutoMetaTags.d.ts +4 -2
  163. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  164. package/dist/internal/layout/components/AutoMetaTags.js +193 -57
  165. package/dist/internal/layout/components/FaviconHead.d.ts +1 -1
  166. package/dist/internal/layout/components/FaviconHead.js +2 -2
  167. package/dist/internal/layout/components/FontPreloadLinks.d.ts +1 -1
  168. package/dist/internal/layout/components/FontPreloadLinks.js +1 -1
  169. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts +3 -1
  170. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +1 -1
  171. package/dist/internal/layout/components/NextJsAutoMetaTags.js +47 -17
  172. package/dist/internal/layout/components/PWAUpdateNotification.d.ts +1 -1
  173. package/dist/internal/layout/components/PWAUpdateNotification.d.ts.map +1 -1
  174. package/dist/internal/layout/components/PWAUpdateNotification.js +17 -4
  175. package/dist/internal/layout/components/PerformanceHints.js +1 -1
  176. package/dist/internal/layout/components/footer/FooterBranding.d.ts +1 -1
  177. package/dist/internal/layout/components/footer/FooterBranding.js +2 -2
  178. package/dist/internal/layout/components/footer/FooterCopyright.d.ts +1 -1
  179. package/dist/internal/layout/components/footer/FooterCopyright.js +2 -2
  180. package/dist/internal/layout/components/footer/FooterLegalLinks.d.ts +1 -1
  181. package/dist/internal/layout/components/footer/FooterLegalLinks.js +2 -2
  182. package/dist/internal/layout/components/index.d.ts +1 -1
  183. package/dist/internal/layout/components/index.js +1 -1
  184. package/dist/internal/layout/config/defaults.js +1 -1
  185. package/dist/internal/layout/config/index.d.ts +1 -1
  186. package/dist/internal/layout/config/index.js +1 -1
  187. package/dist/internal/layout/config/presets/admin.d.ts +1 -1
  188. package/dist/internal/layout/config/presets/blog.d.ts +1 -1
  189. package/dist/internal/layout/config/presets/docs.js +1 -1
  190. package/dist/internal/layout/config/presets/game.js +1 -1
  191. package/dist/internal/layout/config/presets/index.d.ts +1 -1
  192. package/dist/internal/layout/config/presets/landing.js +1 -1
  193. package/dist/internal/layout/config/presets/moolti.js +1 -1
  194. package/dist/internal/layout/config/presets/plain.d.ts +2 -2
  195. package/dist/internal/layout/config/presets/plain.d.ts.map +1 -1
  196. package/dist/internal/layout/config/presets/plain.js +12 -1
  197. package/dist/internal/layout/renderers/index.d.ts +1 -1
  198. package/dist/internal/layout/renderers/index.js +1 -1
  199. package/dist/internal/layout/zones/DnDevFooter.d.ts +3 -1
  200. package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
  201. package/dist/internal/layout/zones/DnDevFooter.js +6 -2
  202. package/dist/internal/layout/zones/DnDevHeader.d.ts +3 -1
  203. package/dist/internal/layout/zones/DnDevHeader.d.ts.map +1 -1
  204. package/dist/internal/layout/zones/DnDevHeader.js +8 -3
  205. package/dist/internal/layout/zones/DnDevMergedBar.js +1 -1
  206. package/dist/internal/layout/zones/DnDevSidebar.d.ts +3 -1
  207. package/dist/internal/layout/zones/DnDevSidebar.d.ts.map +1 -1
  208. package/dist/internal/layout/zones/DnDevSidebar.js +10 -4
  209. package/dist/internal/layout/zones/index.d.ts +1 -1
  210. package/dist/internal/layout/zones/index.js +1 -1
  211. package/dist/internal/providers/NavigationProvider.d.ts +1 -1
  212. package/dist/internal/providers/NavigationProvider.js +2 -2
  213. package/dist/internal/providers/SentryInitializer.d.ts +1 -1
  214. package/dist/internal/providers/SentryInitializer.js +2 -2
  215. package/dist/internal/providers/UIProviders.d.ts +1 -1
  216. package/dist/internal/providers/UIProviders.js +3 -3
  217. package/dist/internal/providers/index.d.ts +1 -1
  218. package/dist/internal/providers/index.js +1 -1
  219. package/dist/next.d.ts +1 -1
  220. package/dist/next.js +1 -1
  221. package/dist/providers/NextJsAppProviders.d.ts +1 -1
  222. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  223. package/dist/providers/NextJsAppProviders.js +5 -3
  224. package/dist/providers/ViteAppProviders.d.ts +1 -1
  225. package/dist/providers/ViteAppProviders.js +2 -2
  226. package/dist/providers/index.d.ts +1 -1
  227. package/dist/providers/index.js +1 -1
  228. package/dist/routing/404.d.ts +2 -2
  229. package/dist/routing/404.js +3 -3
  230. package/dist/routing/AuthGuard.d.ts +14 -29
  231. package/dist/routing/AuthGuard.d.ts.map +1 -1
  232. package/dist/routing/AuthGuard.js +27 -72
  233. package/dist/routing/AuthGuardFallback.d.ts +1 -1
  234. package/dist/routing/AuthGuardFallback.js +2 -2
  235. package/dist/routing/AuthReturnTo.d.ts +13 -0
  236. package/dist/routing/AuthReturnTo.d.ts.map +1 -0
  237. package/dist/routing/AuthReturnTo.js +61 -0
  238. package/dist/routing/DnDevNavigationMenu.d.ts +2 -1
  239. package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
  240. package/dist/routing/DnDevNavigationMenu.js +2 -2
  241. package/dist/routing/GoTo.d.ts +1 -0
  242. package/dist/routing/GoTo.d.ts.map +1 -1
  243. package/dist/routing/GoTo.js +1 -1
  244. package/dist/routing/GoToDialog.js +1 -1
  245. package/dist/routing/GoToInput.js +1 -1
  246. package/dist/routing/GoToWrapper.d.ts +1 -1
  247. package/dist/routing/GoToWrapper.js +2 -2
  248. package/dist/routing/Link.d.ts +2 -2
  249. package/dist/routing/Link.js +2 -2
  250. package/dist/routing/NavigationItem.d.ts +1 -1
  251. package/dist/routing/NavigationItem.js +2 -2
  252. package/dist/routing/hooks/hooks.next.d.ts +1 -1
  253. package/dist/routing/hooks/hooks.next.js +1 -1
  254. package/dist/routing/hooks/hooks.vite.d.ts +1 -1
  255. package/dist/routing/hooks/hooks.vite.js +1 -1
  256. package/dist/routing/hooks/index.d.ts +1 -1
  257. package/dist/routing/hooks/index.js +1 -1
  258. package/dist/routing/hooks/types.d.ts +1 -1
  259. package/dist/routing/hooks/useLocation.next.js +1 -1
  260. package/dist/routing/hooks/useLocation.vite.js +1 -1
  261. package/dist/routing/hooks/useNavigate.next.d.ts +8 -0
  262. package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
  263. package/dist/routing/hooks/useNavigate.next.js +59 -9
  264. package/dist/routing/hooks/useNavigate.vite.d.ts +8 -0
  265. package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
  266. package/dist/routing/hooks/useNavigate.vite.js +65 -15
  267. package/dist/routing/hooks/useQueryParams.next.js +1 -1
  268. package/dist/routing/hooks/useQueryParams.vite.js +1 -1
  269. package/dist/routing/hooks/useRedirectGuard.next.d.ts +2 -0
  270. package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
  271. package/dist/routing/hooks/useRedirectGuard.next.js +12 -28
  272. package/dist/routing/hooks/useRedirectGuard.vite.d.ts +2 -0
  273. package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
  274. package/dist/routing/hooks/useRedirectGuard.vite.js +12 -28
  275. package/dist/routing/hooks/useRouteParam.next.js +1 -1
  276. package/dist/routing/hooks/useRouteParam.vite.js +1 -1
  277. package/dist/routing/index.d.ts +2 -1
  278. package/dist/routing/index.d.ts.map +1 -1
  279. package/dist/routing/index.js +2 -1
  280. package/dist/routing/useGoTo.js +1 -1
  281. package/dist/routing/useNavigation.d.ts +2 -2
  282. package/dist/routing/useNavigation.js +3 -3
  283. package/dist/routing/useRouteDiscovery.d.ts +7 -7
  284. package/dist/routing/useRouteDiscovery.js +6 -6
  285. package/dist/styles/index.css +455 -80
  286. package/dist/styles/index.d.ts +1 -1
  287. package/dist/styles/index.js +1 -1
  288. package/dist/styles/layoutConstants.d.ts +6 -6
  289. package/dist/styles/layoutConstants.js +5 -5
  290. package/dist/symbol-index.json +1 -0
  291. package/dist/utils/assetResolver.d.ts +5 -5
  292. package/dist/utils/assetResolver.js +4 -4
  293. package/dist/utils/index.d.ts +2 -1
  294. package/dist/utils/index.d.ts.map +1 -1
  295. package/dist/utils/index.js +2 -1
  296. package/dist/utils/sanitizeSvg.d.ts +4 -0
  297. package/dist/utils/sanitizeSvg.d.ts.map +1 -1
  298. package/dist/utils/sanitizeSvg.js +5 -1
  299. package/dist/utils/tList.js +1 -1
  300. package/dist/utils/useAISafe.d.ts +28 -0
  301. package/dist/utils/useAISafe.d.ts.map +1 -0
  302. package/dist/utils/useAISafe.js +53 -0
  303. package/dist/utils/useAuthSafe.d.ts +39 -0
  304. package/dist/utils/useAuthSafe.d.ts.map +1 -1
  305. package/dist/utils/useAuthSafe.js +6 -1
  306. package/dist/utils/useAuthVisibility.d.ts +1 -0
  307. package/dist/utils/useAuthVisibility.d.ts.map +1 -1
  308. package/dist/utils/useAuthVisibility.js +1 -1
  309. package/dist/utils/useBillingVisibility.d.ts +1 -0
  310. package/dist/utils/useBillingVisibility.d.ts.map +1 -1
  311. package/dist/utils/useBillingVisibility.js +1 -1
  312. package/dist/utils/useCrudSafe.js +1 -1
  313. package/dist/utils/useFormStoreSafe.js +1 -1
  314. package/dist/utils/useOAuthSafe.d.ts +1 -1
  315. package/dist/utils/useSeo.d.ts +121 -0
  316. package/dist/utils/useSeo.d.ts.map +1 -0
  317. package/dist/utils/useSeo.js +114 -0
  318. package/dist/utils/useStripeBillingSafe.js +1 -1
  319. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  320. package/dist/vite-routing/AppRoutes.js +15 -5
  321. package/dist/vite-routing/RootLayout.d.ts +1 -1
  322. package/dist/vite-routing/RootLayout.d.ts.map +1 -1
  323. package/dist/vite-routing/RootLayout.js +11 -9
  324. package/dist/vite-routing/index.d.ts +1 -1
  325. package/dist/vite-routing/index.js +1 -1
  326. package/dist/vite.d.ts +1 -1
  327. package/dist/vite.js +1 -1
  328. package/guidelines/COMPONENTS.md +136 -0
  329. package/guidelines/GOTCHAS.md +66 -0
  330. package/guidelines/LAYOUTS.md +310 -0
  331. package/guidelines/PAGES.md +205 -0
  332. package/guidelines/ROUTING.md +499 -0
  333. package/guidelines/SEO.md +275 -0
  334. package/package.json +12 -7
  335. package/dist/chunk-XHGRMKOY.js +0 -1
@@ -2,7 +2,7 @@
2
2
  * @fileoverview DnDevErrorBoundary component
3
3
  * @description React error boundary for catching and handling component errors
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -24,7 +24,7 @@ interface DnDevErrorBoundaryState {
24
24
  /**
25
25
  * React error boundary for catching and handling component errors
26
26
  *
27
- * @version 0.0.1
27
+ * @version 0.1.0
28
28
  * @since 0.0.1
29
29
  * @author AMBROISE PARK Consulting
30
30
  */
@@ -4,7 +4,7 @@
4
4
  * @fileoverview DnDevErrorBoundary component
5
5
  * @description React error boundary for catching and handling component errors
6
6
  *
7
- * @version 0.0.1
7
+ * @version 0.1.0
8
8
  * @since 0.0.1
9
9
  * @author AMBROISE PARK Consulting
10
10
  */
@@ -13,7 +13,7 @@ import { handleError } from '@donotdev/core';
13
13
  /**
14
14
  * React error boundary for catching and handling component errors
15
15
  *
16
- * @version 0.0.1
16
+ * @version 0.1.0
17
17
  * @since 0.0.1
18
18
  * @author AMBROISE PARK Consulting
19
19
  */
@@ -16,7 +16,7 @@ interface ErrorFallbackProps {
16
16
  * based on the context (global vs route errors).
17
17
  * Uses only native HTML elements and emojis to avoid component dependencies.
18
18
  *
19
- * @version 0.0.1
19
+ * @version 0.1.0
20
20
  * @since 0.0.1
21
21
  * @author AMBROISE PARK Consulting
22
22
  */
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  * @description A single error UI that takes full viewport and adapts recovery actions based on the context (global vs route errors). Uses only native HTML elements and emojis to avoid component dependencies.
7
7
  * it's not using anything to make sure it doesnt crash.
8
8
  *
9
- * @version 0.0.1
9
+ * @version 0.1.0
10
10
  * @since 0.0.1
11
11
  * @author AMBROISE PARK Consulting
12
12
  */
@@ -18,7 +18,7 @@ import { useState } from 'react';
18
18
  * based on the context (global vs route errors).
19
19
  * Uses only native HTML elements and emojis to avoid component dependencies.
20
20
  *
21
- * @version 0.0.1
21
+ * @version 0.1.0
22
22
  * @since 0.0.1
23
23
  * @author AMBROISE PARK Consulting
24
24
  */
@@ -124,7 +124,7 @@ const ErrorFallback = ({ error, resetError, componentStack, eventId, onGoBack, o
124
124
  backgroundColor: '#ffffff',
125
125
  marginBottom: '2rem',
126
126
  padding: '1rem',
127
- textAlign: 'left',
127
+ textAlign: 'start',
128
128
  border: '1px solid #fecaca',
129
129
  borderRadius: '8px',
130
130
  }, children: [_jsxs("div", { style: {
@@ -8,7 +8,7 @@ interface SentryFallbackProps {
8
8
  /**
9
9
  * Global error boundary fallback component
10
10
  *
11
- * @version 0.0.1
11
+ * @version 0.1.0
12
12
  * @since 0.0.1
13
13
  * @author AMBROISE PARK Consulting
14
14
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  * @fileoverview GlobalErrorFallback component
6
6
  * @description Global error boundary fallback for application-level errors
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -15,7 +15,7 @@ import ErrorFallback from './ErrorFallback';
15
15
  /**
16
16
  * Global error boundary fallback component
17
17
  *
18
- * @version 0.0.1
18
+ * @version 0.1.0
19
19
  * @since 0.0.1
20
20
  * @author AMBROISE PARK Consulting
21
21
  */
@@ -11,7 +11,7 @@ interface RouteErrorFallbackProps {
11
11
  * Uses framework components (Card, Button, Alert, PageContainer) for consistent design.
12
12
  * Only used for route-level errors where framework is stable.
13
13
  *
14
- * @version 0.0.1
14
+ * @version 0.1.0
15
15
  * @since 0.0.1
16
16
  * @author AMBROISE PARK Consulting
17
17
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * @fileoverview Route error fallback component
6
6
  * @description Professional route error fallback using framework components. Only for route-level errors (framework is stable).
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -22,7 +22,7 @@ import { Link } from '../../routing/Link';
22
22
  * Uses framework components (Card, Button, Alert, PageContainer) for consistent design.
23
23
  * Only used for route-level errors where framework is stable.
24
24
  *
25
- * @version 0.0.1
25
+ * @version 0.1.0
26
26
  * @since 0.0.1
27
27
  * @author AMBROISE PARK Consulting
28
28
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * @fileoverview DebugTools component
6
6
  * @description Development tools for debugging framework state
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -74,7 +74,7 @@ const DebugTools = ({ className }) => {
74
74
  return (_jsx(PortalButton, { onClick: () => setIsVisible(true), className: "dndev-z-overlay", style: {
75
75
  position: 'fixed',
76
76
  top: 'calc(var(--gap-lg) + var(--header-height))',
77
- left: 'calc(var(--gap-sm) + var(--sidebar-width))',
77
+ insetInlineStart: 'calc(var(--gap-sm) + var(--sidebar-width))',
78
78
  }, icon: Bug, title: "Show Debug Tools" }));
79
79
  }
80
80
  return (_jsx(Portal, { children: _jsx("div", { className: cn('dndev-z-overlay drag-handle', className), style: {
@@ -5,7 +5,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
5
5
  * @fileoverview Auth Debug Button Component
6
6
  * @description Shows authentication state in a compact button format for debugging
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -5,7 +5,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
5
5
  * @fileoverview Config Tab Component
6
6
  * @description Framework config and environment variables
7
7
  *
8
- * @version 0.0.2
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * @fileoverview Cookie Debug Tab
6
6
  * @description Comprehensive cookie consent debugging tools
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  * @fileoverview Debug Dialog Component
6
6
  * @description Clean debug panel - Config, Design, Cookies, Stores
7
7
  *
8
- * @version 0.0.4
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DesignTab.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/components/DesignTab.tsx"],"names":[],"mappings":"AA+CA,eAAO,MAAM,SAAS,+CAizBrB,CAAC"}
1
+ {"version":3,"file":"DesignTab.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/components/DesignTab.tsx"],"names":[],"mappings":"AA+CA,eAAO,MAAM,SAAS,+CAkzBrB,CAAC"}
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * @fileoverview Design Tab Component
6
6
  * @description Unified design debugging: themes, color ratio, typography
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -33,7 +33,8 @@ export const DesignTab = () => {
33
33
  }
34
34
  }
35
35
  catch (e) {
36
- // Ignore cache errors
36
+ if (process.env.NODE_ENV === 'development')
37
+ console.warn('Cache operation failed:', e);
37
38
  }
38
39
  };
39
40
  // Save analysis to localStorage
@@ -47,7 +48,8 @@ export const DesignTab = () => {
47
48
  }));
48
49
  }
49
50
  catch (e) {
50
- // Ignore save errors
51
+ if (process.env.NODE_ENV === 'development')
52
+ console.warn('Cache operation failed:', e);
51
53
  }
52
54
  };
53
55
  useEffect(() => {
@@ -151,6 +153,8 @@ export const DesignTab = () => {
151
153
  };
152
154
  // Get CSS variables from :root
153
155
  const getCSSVariables = () => {
156
+ if (typeof document === 'undefined')
157
+ return {};
154
158
  const root = document.documentElement;
155
159
  const style = getComputedStyle(root);
156
160
  const vars = {};
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  * @fileoverview Layout Reset Component
6
6
  * @description Comprehensive cache and store reset component for testing first-visit scenarios
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -132,7 +132,7 @@ export const LayoutReset = memo(() => {
132
132
  const cookieCount = document.cookie.split(';').length;
133
133
  document.cookie.split(';').forEach((cookie) => {
134
134
  const eqPos = cookie.indexOf('=');
135
- const name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
135
+ const name = eqPos > -1 ? cookie.slice(0, eqPos) : cookie;
136
136
  document.cookie = `${name.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`;
137
137
  document.cookie = `${name.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${window.location.hostname}`;
138
138
  document.cookie = `${name.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.${window.location.hostname}`;
@@ -9,7 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
 
10
10
  *
11
11
 
12
- * @version 0.0.1
12
+ * @version 0.1.0
13
13
 
14
14
  * @since 0.0.1
15
15
 
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  * @fileoverview Stores Tab Component
6
6
  * @description Displays registered Zustand stores from globalThis._DNDEV_STORES_
7
7
  *
8
- * @version 0.0.2
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -2,7 +2,7 @@
2
2
  * @fileoverview DevTools Components Barrel Exports
3
3
  * @description Barrel exports for devtools component modules
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -3,7 +3,7 @@
3
3
  * @fileoverview DevTools Components Barrel Exports
4
4
  * @description Barrel exports for devtools component modules
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -2,7 +2,7 @@
2
2
  * @fileoverview DevTools Package Barrel Exports
3
3
  * @description Barrel exports for devtools components, types, and utilities
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -3,7 +3,7 @@
3
3
  * @fileoverview DevTools Package Barrel Exports
4
4
  * @description Barrel exports for devtools components, types, and utilities
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -2,7 +2,7 @@
2
2
  * @fileoverview DevTools Types
3
3
  * @description TypeScript type definitions for devtools components and utilities
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -11,7 +11,7 @@ import type { BrowserInfo, FeatureSupport } from '@donotdev/core';
11
11
  /**
12
12
  * Virtual module result interface
13
13
  *
14
- * @version 0.0.1
14
+ * @version 0.1.0
15
15
  * @since 0.0.1
16
16
  * @author AMBROISE PARK Consulting
17
17
  */
@@ -23,7 +23,7 @@ export interface VirtualModuleResult<T = any> {
23
23
  /**
24
24
  * Utility test result interface
25
25
  *
26
- * @version 0.0.1
26
+ * @version 0.1.0
27
27
  * @since 0.0.1
28
28
  * @author AMBROISE PARK Consulting
29
29
  */
@@ -36,7 +36,7 @@ export interface UtilityTestResult {
36
36
  /**
37
37
  * Utility tests interface
38
38
  *
39
- * @version 0.0.1
39
+ * @version 0.1.0
40
40
  * @since 0.0.1
41
41
  * @author AMBROISE PARK Consulting
42
42
  */
@@ -49,7 +49,7 @@ export interface UtilityTests {
49
49
  /**
50
50
  * CSS data interface
51
51
  *
52
- * @version 0.0.1
52
+ * @version 0.1.0
53
53
  * @since 0.0.1
54
54
  * @author AMBROISE PARK Consulting
55
55
  */
@@ -73,7 +73,7 @@ export interface CSSData {
73
73
  /**
74
74
  * Global data interface
75
75
  *
76
- * @version 0.0.1
76
+ * @version 0.1.0
77
77
  * @since 0.0.1
78
78
  * @author AMBROISE PARK Consulting
79
79
  */
@@ -89,7 +89,7 @@ export interface GlobalData {
89
89
  /**
90
90
  * Health check result interface
91
91
  *
92
- * @version 0.0.1
92
+ * @version 0.1.0
93
93
  * @since 0.0.1
94
94
  * @author AMBROISE PARK Consulting
95
95
  */
@@ -115,7 +115,7 @@ export interface HealthCheckResult {
115
115
  /**
116
116
  * Spacing element interface
117
117
  *
118
- * @version 0.0.1
118
+ * @version 0.1.0
119
119
  * @since 0.0.1
120
120
  * @author AMBROISE PARK Consulting
121
121
  */
@@ -141,7 +141,7 @@ export interface SpacingElement {
141
141
  /**
142
142
  * Spacing analysis interface
143
143
  *
144
- * @version 0.0.1
144
+ * @version 0.1.0
145
145
  * @since 0.0.1
146
146
  * @author AMBROISE PARK Consulting
147
147
  */
@@ -1 +1 @@
1
- {"version":3,"file":"envVarDiscovery.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/utils/envVarDiscovery.ts"],"names":[],"mappings":"AA8BA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3B,QAAQ,EAAE,MAAM,EAAE,GACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,CA+CA;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3B,QAAQ,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAOpB"}
1
+ {"version":3,"file":"envVarDiscovery.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/utils/envVarDiscovery.ts"],"names":[],"mappings":"AA8BA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3B,QAAQ,EAAE,MAAM,EAAE,GACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,CA6CA;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3B,QAAQ,EAAE,MAAM,EAAE,GACjB,MAAM,GAAG,SAAS,CAOpB"}
@@ -3,7 +3,7 @@
3
3
  * @fileoverview Environment variable discovery utilities
4
4
  * @description Generic utilities for discovering environment variables by pattern matching
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -14,10 +14,10 @@
14
14
  function matchesPattern(key, pattern) {
15
15
  const normalizedKey = key.toUpperCase();
16
16
  const normalizedPattern = pattern.toUpperCase();
17
- if (normalizedPattern.includes('*')) {
18
- const regexPattern = normalizedPattern
19
- .replace(/\*/g, '.*')
20
- .replace(/\?/g, '.');
17
+ if (normalizedPattern.includes('*') || normalizedPattern.includes('?')) {
18
+ // Escape regex metacharacters before converting wildcards
19
+ const escaped = normalizedPattern.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
20
+ const regexPattern = escaped.replace(/\\\*/g, '.*').replace(/\\\?/g, '.');
21
21
  const regex = new RegExp(`^${regexPattern}$`);
22
22
  return regex.test(normalizedKey);
23
23
  }
@@ -49,7 +49,6 @@ export function discoverEnvVarsByPattern(env, patterns) {
49
49
  export function groupEnvVarsByCategory(env) {
50
50
  const result = {};
51
51
  Object.entries(env).forEach(([key, value]) => {
52
- const upperKey = key.toUpperCase();
53
52
  if (matchesPattern(key, '*STRIPE*') ||
54
53
  matchesPattern(key, '*PRICE*ID*') ||
55
54
  matchesPattern(key, '*PRICE_ID*')) {
@@ -2,7 +2,7 @@
2
2
  * @fileoverview DevTools Utils Barrel Exports
3
3
  * @description Barrel exports for devtools utility modules
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */
@@ -3,7 +3,7 @@
3
3
  * @fileoverview DevTools Utils Barrel Exports
4
4
  * @description Barrel exports for devtools utility modules
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -3,7 +3,7 @@
3
3
  * @fileoverview Sensitive Data Masking Utilities
4
4
  * @description Utilities to mask sensitive values in devtools to prevent exposing real data
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"virtualModuleInspector.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/utils/virtualModuleInspector.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,OAAO,EAER,MAAM,UAAU,CAAC;AAElB,qBAAa,sBAAsB;WACpB,eAAe,IAAI,OAAO,CAAC,mBAAmB,CAAC;WA4E/C,cAAc,IAAI,OAAO,CAAC,mBAAmB,CAAC;IA2D3D,MAAM,CAAC,sBAAsB,IAAI,UAAU;IAoB3C,MAAM,CAAC,kBAAkB,IAAI,OAAO;WAgGvB,kBAAkB,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAgF9D"}
1
+ {"version":3,"file":"virtualModuleInspector.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/utils/virtualModuleInspector.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,UAAU,EACV,OAAO,EAER,MAAM,UAAU,CAAC;AAElB,qBAAa,sBAAsB;WACpB,eAAe,IAAI,OAAO,CAAC,mBAAmB,CAAC;WA4E/C,cAAc,IAAI,OAAO,CAAC,mBAAmB,CAAC;IA2D3D,MAAM,CAAC,sBAAsB,IAAI,UAAU;IAoB3C,MAAM,CAAC,kBAAkB,IAAI,OAAO;WAiGvB,kBAAkB,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAgF9D"}
@@ -3,7 +3,7 @@
3
3
  * @fileoverview Virtual Module Inspector Utility
4
4
  * @description Inspects and validates virtual modules including design tokens, i18n mappings, and performs health checks
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -149,6 +149,8 @@ export class VirtualModuleInspector {
149
149
  };
150
150
  }
151
151
  static getCSSVariableData() {
152
+ if (typeof document === 'undefined')
153
+ return { dndevVariables: {}, allCSSPropsCount: 0, dndevVarsCount: 0, utilityTests: {}, actualHeader: null, keyVariables: { headerHeight: 'not set', sidebarWidth: 'not set', debugEnabled: 'not set' } };
152
154
  const documentStyle = getComputedStyle(document.documentElement);
153
155
  // Get all CSS custom properties
154
156
  const allCSSProps = Array.from(document.documentElement.style);
@@ -3,7 +3,7 @@ import type { ReactNode } from 'react';
3
3
  /**
4
4
  * Store handlers interface
5
5
  *
6
- * @version 0.0.1
6
+ * @version 0.1.0
7
7
  * @since 0.0.1
8
8
  * @author AMBROISE PARK Consulting
9
9
  */
@@ -13,7 +13,7 @@ export interface StoreHandlers {
13
13
  /**
14
14
  * Base stores initializer props interface
15
15
  *
16
- * @version 0.0.1
16
+ * @version 0.1.0
17
17
  * @since 0.0.1
18
18
  * @author AMBROISE PARK Consulting
19
19
  */
@@ -30,7 +30,7 @@ export interface BaseStoresInitializerProps {
30
30
  * Coordinates initialization of critical and regular stores with proper error handling.
31
31
  * Ensures stores are ready before rendering children. Handles SSR cookie hydration for Next.js.
32
32
  *
33
- * @version 0.0.1
33
+ * @version 0.1.0
34
34
  * @since 0.0.1
35
35
  * @author AMBROISE PARK Consulting
36
36
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BaseStoresInitializer.d.ts","sourceRoot":"","sources":["../../../src/internal/initializers/BaseStoresInitializer.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA6DvC;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;IACxB,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAyHD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,QAAQ,EACR,YAAiB,EACjB,aAAqB,EACrB,aAAa,GACd,EAAE,0BAA0B,kDA8K5B"}
1
+ {"version":3,"file":"BaseStoresInitializer.d.ts","sourceRoot":"","sources":["../../../src/internal/initializers/BaseStoresInitializer.tsx"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAa,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA6DvC;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;IACxB,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAyHD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,QAAQ,EACR,YAAiB,EACjB,aAAqB,EACrB,aAAa,GACd,EAAE,0BAA0B,kDAiL5B"}
@@ -5,12 +5,13 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
5
5
  * @fileoverview Base stores initializer for framework state management
6
6
  * @description Initializes and coordinates all framework stores with proper error handling and readiness checks
7
7
  *
8
- * @version 0.0.2
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
12
12
  import { useEffect, useLayoutEffect, useRef, useState } from 'react';
13
13
  import { useThemeStore, useNavigationStore, useOverlayStore, useNetworkStore, useAbortControllerStore, useConsentStore, useLanguageStore, useConsentReady, useThemeReady, getPlatformEnvVar, } from '@donotdev/core';
14
+ import { initRipple } from '@donotdev/components';
14
15
  import { useI18nReady, getI18nInstance, getSupportedLanguages, } from '@donotdev/core';
15
16
  import { handleError, isClient, getDndevConfig, globalEmitter, } from '@donotdev/core';
16
17
  import { useAppConfig } from '@donotdev/core';
@@ -134,7 +135,10 @@ async function initializeStore(config, handlers, appConfig, serverCookies) {
134
135
  if (consentCookie) {
135
136
  const cookieParts = consentCookie.split('=');
136
137
  if (cookieParts.length > 1 && cookieParts[1]) {
137
- cookieValue = decodeURIComponent(cookieParts[1].trim());
138
+ try {
139
+ cookieValue = decodeURIComponent(cookieParts[1].trim());
140
+ }
141
+ catch { /* malformed cookie */ }
138
142
  }
139
143
  }
140
144
  }
@@ -145,7 +149,10 @@ async function initializeStore(config, handlers, appConfig, serverCookies) {
145
149
  if (consentCookie) {
146
150
  const cookieParts = consentCookie.split('=');
147
151
  if (cookieParts.length > 1 && cookieParts[1]) {
148
- cookieValue = decodeURIComponent(cookieParts[1].trim());
152
+ try {
153
+ cookieValue = decodeURIComponent(cookieParts[1].trim());
154
+ }
155
+ catch { /* malformed cookie */ }
149
156
  }
150
157
  }
151
158
  }
@@ -192,7 +199,7 @@ async function initializeStore(config, handlers, appConfig, serverCookies) {
192
199
  * Coordinates initialization of critical and regular stores with proper error handling.
193
200
  * Ensures stores are ready before rendering children. Handles SSR cookie hydration for Next.js.
194
201
  *
195
- * @version 0.0.1
202
+ * @version 0.1.0
196
203
  * @since 0.0.1
197
204
  * @author AMBROISE PARK Consulting
198
205
  */
@@ -277,6 +284,8 @@ export function BaseStoresInitializer({ children, handlers, customStores = [], s
277
284
  useLayoutEffect(() => {
278
285
  if (!isClient() || !criticalReady)
279
286
  return;
287
+ // Initialize ripple effect for all .dndev-interactive elements
288
+ initRipple();
280
289
  let removed = false;
281
290
  let frameworkReady = false;
282
291
  let routeReady = false;
@@ -13,7 +13,7 @@ interface NextJsStoresInitializerProps {
13
13
  * Hydrates theme store from cookies before render to prevent FOUC (Flash of Unstyled Content).
14
14
  * Automatically skips initialization in test environments.
15
15
  *
16
- * @version 0.0.1
16
+ * @version 0.1.0
17
17
  * @since 0.0.1
18
18
  * @author AMBROISE PARK Consulting
19
19
  */
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
5
5
  * @fileoverview Next.js stores initializer
6
6
  * @description Next.js-specific store initialization with SSR cookie hydration
7
7
  *
8
- * @version 0.0.1
8
+ * @version 0.1.0
9
9
  * @since 0.0.1
10
10
  * @author AMBROISE PARK Consulting
11
11
  */
@@ -25,7 +25,7 @@ function createNextJsHandlers() {
25
25
  * Hydrates theme store from cookies before render to prevent FOUC (Flash of Unstyled Content).
26
26
  * Automatically skips initialization in test environments.
27
27
  *
28
- * @version 0.0.1
28
+ * @version 0.1.0
29
29
  * @since 0.0.1
30
30
  * @author AMBROISE PARK Consulting
31
31
  */
@@ -11,7 +11,7 @@ interface ViteStoresInitializerProps {
11
11
  * Wraps BaseStoresInitializer with Vite-specific handlers.
12
12
  * Automatically skips initialization in test environments.
13
13
  *
14
- * @version 0.0.1
14
+ * @version 0.1.0
15
15
  * @since 0.0.1
16
16
  * @author AMBROISE PARK Consulting
17
17
  */
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  * @fileoverview Vite stores initializer
5
5
  * @description Vite-specific store initialization wrapper
6
6
  *
7
- * @version 0.0.1
7
+ * @version 0.1.0
8
8
  * @since 0.0.1
9
9
  * @author AMBROISE PARK Consulting
10
10
  */
@@ -19,7 +19,7 @@ const VITE_HANDLERS = {
19
19
  * Wraps BaseStoresInitializer with Vite-specific handlers.
20
20
  * Automatically skips initialization in test environments.
21
21
  *
22
- * @version 0.0.1
22
+ * @version 0.1.0
23
23
  * @since 0.0.1
24
24
  * @author AMBROISE PARK Consulting
25
25
  */
@@ -2,7 +2,7 @@
2
2
  * @fileoverview Store initializers
3
3
  * @description Store initialization components for Vite and Next.js
4
4
  *
5
- * @version 0.0.1
5
+ * @version 0.1.0
6
6
  * @since 0.0.1
7
7
  * @author AMBROISE PARK Consulting
8
8
  */