v4.9.0
🚀 Features
-
@maz-ui/mcp: Search engine improvements (dc7d67e0)
-
@maz-ui/nuxt: Provide NuxtLink component via maz-link-component plugin (3a409ba9)
New plugin that uses defineNuxtLink({}) and provides it via app.provide('mazLinkComponent'). This allows maz-ui components (MazLink, MazBtn, MazCard, MazAvatar) to automatically use NuxtLink when the @maz-ui/nuxt module is installed, enabling prefetching and proper SSR href rendering.
-
@maz-ui/themes: Persist resolved color mode in cookie for SSR dark mode detection (abfb1bb8)
🩹 Fixes
-
maz-ui: Use provide/inject to resolve NuxtLink in resolveLinkComponent (5a84767c)
resolveLinkComponent now checks for a provided link component via inject('mazLinkComponent') before falling back to RouterLink from appContext.components. This fixes NuxtLink not being detected in Nuxt apps because it is auto-imported and not registered in the global component registry. The @maz-ui/nuxt module provides NuxtLink automatically via a new plugin.
-
@maz-ui/nuxt: Prevent dark mode FOUC with blocking script and resolved color mode cookie (2070d649)
When color mode is set to "auto", the server now reads the
maz-resolved-color-modecookie to determine the user's preference. A blocking inline script is injected in<head>to detect and apply dark mode before first paint, eliminating FOUC on first visit. TheAccept-CHmeta tag enablesSec-CH-Prefers-Color-Schemeclient hint for Chromium browsers.
❤️ Contributors
- LouisMazel (@LouisMazel)