@maz-ui/mcp 5.0.0-beta.5 → 5.0.0-beta.51
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.
- package/README.md +1 -1
- package/dist/mcp.d.mts +22 -9
- package/dist/mcp.d.ts +22 -9
- package/dist/mcp.mjs +160 -83
- package/docs/generated-docs/maz-avatar.doc.md +30 -30
- package/docs/generated-docs/maz-bottom-sheet.doc.md +16 -13
- package/docs/generated-docs/maz-btn.doc.md +21 -19
- package/docs/generated-docs/maz-checkbox.doc.md +16 -17
- package/docs/generated-docs/maz-circular-progress-bar.doc.md +1 -1
- package/docs/generated-docs/maz-code-highlight.doc.md +11 -0
- package/docs/generated-docs/maz-container.doc.md +1 -0
- package/docs/generated-docs/maz-date-picker.doc.md +41 -41
- package/docs/generated-docs/maz-drawer.doc.md +7 -8
- package/docs/generated-docs/maz-dropdown.doc.md +3 -0
- package/docs/generated-docs/maz-expand-animation.doc.md +4 -4
- package/docs/generated-docs/maz-fullscreen-loader.doc.md +5 -5
- package/docs/generated-docs/maz-gallery.doc.md +15 -15
- package/docs/generated-docs/maz-input-code.doc.md +16 -16
- package/docs/generated-docs/maz-input-phone-number.doc.md +43 -42
- package/docs/generated-docs/maz-input-price.doc.md +14 -14
- package/docs/generated-docs/maz-input-tags.doc.md +16 -16
- package/docs/generated-docs/maz-input.doc.md +33 -33
- package/docs/generated-docs/maz-lazy-img.doc.md +14 -14
- package/docs/generated-docs/maz-loading-bar.doc.md +4 -4
- package/docs/generated-docs/maz-markdown-editor.doc.md +65 -0
- package/docs/generated-docs/maz-popover.doc.md +1 -1
- package/docs/generated-docs/maz-pull-to-refresh.doc.md +39 -20
- package/docs/generated-docs/maz-radio-buttons.doc.md +17 -17
- package/docs/generated-docs/maz-radio.doc.md +16 -16
- package/docs/generated-docs/maz-reading-progress-bar.doc.md +4 -4
- package/docs/generated-docs/maz-select-country.doc.md +27 -26
- package/docs/generated-docs/maz-sidebar-content.doc.md +5 -0
- package/docs/generated-docs/maz-sidebar-footer.doc.md +5 -0
- package/docs/generated-docs/maz-sidebar-group.doc.md +11 -0
- package/docs/generated-docs/maz-sidebar-header.doc.md +5 -0
- package/docs/generated-docs/maz-sidebar-menu-button.doc.md +27 -0
- package/docs/generated-docs/maz-sidebar-menu-item.doc.md +5 -0
- package/docs/generated-docs/maz-sidebar-menu-sub.doc.md +16 -0
- package/docs/generated-docs/maz-sidebar-menu.doc.md +5 -0
- package/docs/generated-docs/maz-sidebar-separator.doc.md +0 -0
- package/docs/generated-docs/maz-sidebar-trigger.doc.md +5 -0
- package/docs/generated-docs/maz-sidebar.doc.md +36 -0
- package/docs/generated-docs/maz-slider.doc.md +1 -1
- package/docs/generated-docs/maz-spinner.doc.md +4 -4
- package/docs/generated-docs/maz-switch.doc.md +14 -14
- package/docs/generated-docs/maz-table-virtualizer.doc.md +20 -0
- package/docs/generated-docs/maz-table.doc.md +43 -37
- package/docs/generated-docs/maz-tabs-bar.doc.md +20 -9
- package/docs/generated-docs/maz-tabs.doc.md +6 -3
- package/docs/generated-docs/maz-textarea.doc.md +27 -25
- package/docs/generated-docs/maz-ticker.doc.md +1 -1
- package/docs/generated-docs/maz-timeline.doc.md +4 -4
- package/docs/generated-docs/maz-window-mockup.doc.md +23 -0
- package/docs/src/blog/v4.md +1 -1
- package/docs/src/blog/v5.md +5 -7
- package/docs/src/components/maz-avatar.md +52 -4
- package/docs/src/components/maz-bottom-sheet.md +300 -169
- package/docs/src/components/maz-btn.md +1 -1
- package/docs/src/components/maz-checklist.md +10 -10
- package/docs/src/components/maz-code-highlight.md +233 -0
- package/docs/src/components/maz-date-picker.md +55 -1
- package/docs/src/components/maz-dialog.md +46 -0
- package/docs/src/components/maz-dropdown.md +32 -16
- package/docs/src/components/maz-icon.md +16 -5
- package/docs/src/components/maz-input-phone-number.md +30 -0
- package/docs/src/components/maz-lazy-img.md +64 -0
- package/docs/src/components/maz-markdown-editor.md +369 -0
- package/docs/src/components/maz-pull-to-refresh.md +176 -17
- package/docs/src/components/maz-select-country.md +138 -1
- package/docs/src/components/maz-sidebar.md +719 -0
- package/docs/src/components/maz-table.md +156 -1
- package/docs/src/components/maz-tabs.md +110 -3
- package/docs/src/components/maz-textarea.md +58 -0
- package/docs/src/components/maz-timeline.md +60 -0
- package/docs/src/components/maz-window-mockup.md +249 -0
- package/docs/src/composables/use-drag.md +239 -0
- package/docs/src/composables/use-form-validator.md +297 -16
- package/docs/src/composables/use-pull-to-refresh.md +79 -0
- package/docs/src/composables/use-swipe.md +26 -11
- package/docs/src/directives/click-outside.md +8 -15
- package/docs/src/directives/fullscreen-img.md +1 -1
- package/docs/src/directives/lazy-img.md +44 -11
- package/docs/src/directives/tooltip.md +24 -1
- package/docs/src/directives/zoom-img.md +1 -1
- package/docs/src/ecosystem/eslint-config.md +95 -1
- package/docs/src/{guide/icons.md → ecosystem/icons/index.md} +1 -1
- package/docs/src/ecosystem/node/exec-promise.md +87 -0
- package/docs/src/ecosystem/node/index.md +53 -0
- package/docs/src/ecosystem/node/logger.md +146 -0
- package/docs/src/ecosystem/node/print-banner.md +93 -0
- package/docs/src/{guide → ecosystem}/nuxt.md +102 -47
- package/docs/src/{guide → ecosystem}/themes.md +152 -71
- package/docs/src/{guide → ecosystem}/translations.md +1 -1
- package/docs/src/ecosystem/utils/camel-case.md +31 -0
- package/docs/src/{helpers → ecosystem/utils}/capitalize.md +2 -3
- package/docs/src/ecosystem/utils/check-availability.md +79 -0
- package/docs/src/ecosystem/utils/cookie.md +80 -0
- package/docs/src/ecosystem/utils/debounce-callback.md +38 -0
- package/docs/src/ecosystem/utils/debounce-id.md +69 -0
- package/docs/src/ecosystem/utils/debounce.md +65 -0
- package/docs/src/ecosystem/utils/fetch-locale-ip.md +33 -0
- package/docs/src/ecosystem/utils/format-json.md +33 -0
- package/docs/src/ecosystem/utils/format-phone-number.md +37 -0
- package/docs/src/ecosystem/utils/get-browser-locale.md +29 -0
- package/docs/src/ecosystem/utils/get-error-message.md +39 -0
- package/docs/src/ecosystem/utils/idle-timeout.md +90 -0
- package/docs/src/ecosystem/utils/index.md +60 -0
- package/docs/src/ecosystem/utils/is-client.md +32 -0
- package/docs/src/ecosystem/utils/is-equal.md +38 -0
- package/docs/src/ecosystem/utils/is-server.md +31 -0
- package/docs/src/ecosystem/utils/is-standalone-mode.md +43 -0
- package/docs/src/ecosystem/utils/kebab-case.md +36 -0
- package/docs/src/ecosystem/utils/normalize-string.md +77 -0
- package/docs/src/ecosystem/utils/pascal-case.md +35 -0
- package/docs/src/ecosystem/utils/script-loader.md +77 -0
- package/docs/src/ecosystem/utils/sleep.md +59 -0
- package/docs/src/ecosystem/utils/snake-case.md +36 -0
- package/docs/src/ecosystem/utils/swipe-handler.md +91 -0
- package/docs/src/ecosystem/utils/textarea-autogrow.md +41 -0
- package/docs/src/ecosystem/utils/throttle-id.md +48 -0
- package/docs/src/ecosystem/utils/throttle.md +57 -0
- package/docs/src/ecosystem/utils/truthy-filter.md +31 -0
- package/docs/src/ecosystem/utils/types/deep-key-of.md +48 -0
- package/docs/src/ecosystem/utils/types/deep-partial.md +42 -0
- package/docs/src/ecosystem/utils/types/deep-required.md +39 -0
- package/docs/src/ecosystem/utils/types/flatten-object-keys.md +44 -0
- package/docs/src/ecosystem/utils/types/generic-instance-type.md +42 -0
- package/docs/src/ecosystem/utils/types/infer-maybe-ref.md +35 -0
- package/docs/src/ecosystem/utils/upper-first.md +32 -0
- package/docs/src/ecosystem/utils/user-visibility.md +69 -0
- package/docs/src/guide/getting-started.md +15 -13
- package/docs/src/guide/global-defaults.md +102 -0
- package/docs/src/guide/maz-ui-provider.md +6 -3
- package/docs/src/guide/migration-v4.md +13 -9
- package/docs/src/guide/migration-v5.md +211 -15
- package/docs/src/guide/resolvers.md +8 -8
- package/docs/src/guide/tailwind.md +4 -0
- package/docs/src/guide/vue.md +4 -4
- package/docs/src/index.md +13 -13
- package/docs/src/plugins/aos.md +1 -1
- package/package.json +11 -10
- package/docs/src/helpers/camel-case.md +0 -14
- package/docs/src/helpers/check-availability.md +0 -14
- package/docs/src/helpers/debounce-callback.md +0 -14
- package/docs/src/helpers/debounce-id.md +0 -14
- package/docs/src/helpers/debounce.md +0 -14
- package/docs/src/helpers/is-client.md +0 -14
- package/docs/src/helpers/is-equal.md +0 -14
- package/docs/src/helpers/is-standalone-mode.md +0 -14
- package/docs/src/helpers/kebab-case.md +0 -14
- package/docs/src/helpers/normalize-string.md +0 -14
- package/docs/src/helpers/pascal-case.md +0 -14
- package/docs/src/helpers/script-loader.md +0 -14
- package/docs/src/helpers/sleep.md +0 -14
- package/docs/src/helpers/snake-case.md +0 -14
- package/docs/src/helpers/throttle-id.md +0 -14
- package/docs/src/helpers/throttle.md +0 -14
- /package/docs/src/{guide → ecosystem/icons}/icon-set.md +0 -0
- /package/docs/src/{guide → ecosystem}/mcp.md +0 -0
- /package/docs/src/{helpers → ecosystem/utils}/country-code-to-unicode-flag.md +0 -0
- /package/docs/src/{helpers → ecosystem/utils}/currency.md +0 -0
- /package/docs/src/{helpers → ecosystem/utils}/date.md +0 -0
- /package/docs/src/{helpers → ecosystem/utils}/get-country-flag-url.md +0 -0
- /package/docs/src/{helpers → ecosystem/utils}/number.md +0 -0
|
@@ -23,7 +23,7 @@ npx @maz-ui/upgrade ./ --dry-run
|
|
|
23
23
|
npx @maz-ui/upgrade ./
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
It
|
|
26
|
+
It handles the mechanical part of the migration (CSS subpath imports, prop renames, CSS var renames, the `MazAvatar` size scale fix, Nuxt config keys, custom preset color keys, and `package.json` version bumps)
|
|
27
27
|
|
|
28
28
|
What it can't decide for you: the `MazIcon` API simplification (section 4), `MazBadge` numeric size mapping (section 9), `foundation.radius` → `scales.rounded.md` reshape (section 11) and `MazChart` `update-mode` defaults (section 8). Those are best handled with the MCP server below.
|
|
29
29
|
|
|
@@ -54,11 +54,11 @@ For Cursor, Windsurf, VS Code Copilot, Cline and Claude Desktop, see the [MCP gu
|
|
|
54
54
|
|
|
55
55
|
3. **Apply the easy ones in batch.** The mechanical renames are safe to automate:
|
|
56
56
|
|
|
57
|
-
> Apply the codemod for sections 2, 3, 6 and 14 (CSS subpath, `rounded-size="base"`, `left-icon`/`right-icon`, Nuxt `injectMainCss`). Show me a diff before saving.
|
|
57
|
+
> Apply the codemod for "Required changes" sections 2, 3, 6 and 14 (CSS subpath, `rounded-size="base"`, `left-icon`/`right-icon`, Nuxt `injectMainCss`). Show me a diff before saving.
|
|
58
58
|
|
|
59
59
|
4. **Discuss the judgment calls.** For sections that have more than a rename — `MazIcon` API, `MazChart` `update-mode`, theme preset reshape — let the assistant ask before rewriting:
|
|
60
60
|
|
|
61
|
-
> For sections 4, 8 and 10–12, do not patch automatically. Tell me which of my call sites are affected and propose options.
|
|
61
|
+
> For "Required changes" sections 4, 8 and 10–12, do not patch automatically. Tell me which of my call sites are affected and propose options.
|
|
62
62
|
|
|
63
63
|
5. **Verify.** After patches:
|
|
64
64
|
|
|
@@ -83,7 +83,11 @@ The MCP server is read-only — it ships docs, not code edits — so the assista
|
|
|
83
83
|
6. **`MazIcon` API simplified** — drop `name`, `path` and `src` props; use a single `icon` prop that accepts a Vue component, a URL/`data:` URI, or a raw SVG string.
|
|
84
84
|
7. Rename **`left-icon` / `right-icon`** to **`start-icon` / `end-icon`** (and the matching slots / `--has-*-icon` classes) on `MazBtn`, `MazInput`, `MazLink`, `MazContainer`, `MazSelect`. Same idea for `MazCard`'s `footer-align` and `MazDrawer`'s `variant` — `'left' | 'right'` becomes `'start' | 'end'`.
|
|
85
85
|
8. **`MazChart`** drops `vue-chartjs` (lighter bundle, no eager registration of unused chart types). The `update-mode` prop now defaults to `'none'` — pass `update-mode="default"` if you want animated data updates.
|
|
86
|
-
9.
|
|
86
|
+
9. **`MazAvatar` size scale fixed.** A CSS-unit `size` now renders at its real value (`size="2rem"` is a 32px avatar, it was ~96px before). Multiply your unit values by 3 to keep the same render, or switch to a `MazSize` keyword (`'mini' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'`). The upgrade tool does the ×3 rewrite for you on static values.
|
|
87
|
+
10. Rename **`MazPullToRefresh`**'s `on-click` prop to `on-refresh` (handled by the upgrade tool).
|
|
88
|
+
11. Replace bare **`from 'maz-ui'`** utility imports with **`from '@maz-ui/utils'`** (the root re-export of utils was removed; handled by the upgrade tool). Components/composables/directives/plugins stay on their subpaths; types remain importable from `maz-ui`.
|
|
89
|
+
12. If you use **`useFormValidator` / `useFormField`** with Valibot, add **`valibot`** to your own dependencies (it is no longer installed by `maz-ui`). The composables now accept any [Standard Schema](https://standardschema.dev) library (Valibot, Zod, ArkType...).
|
|
90
|
+
13. That's it for most apps. Everything else is opt-in.
|
|
87
91
|
|
|
88
92
|
## Prerequisites
|
|
89
93
|
|
|
@@ -553,11 +557,148 @@ The components that exposed `color="background"` in their public prop now use `c
|
|
|
553
557
|
rg "color\s*=\s*['\"]background['\"]" src/
|
|
554
558
|
```
|
|
555
559
|
|
|
560
|
+
### 16. `MazAvatar` size scale fixed + `MazSize` keywords
|
|
561
|
+
|
|
562
|
+
`MazAvatar`'s `size` prop now accepts the standard `MazSize` keywords on top of CSS units, and a long-standing scale bug is fixed.
|
|
563
|
+
|
|
564
|
+
**The scale bug:** the avatar wrapper is sized at `3em` of a root `font-size: size`, so a CSS-unit `size` rendered the avatar **3x larger** than the value you passed. `size="2rem"` produced a ~96px avatar instead of 32px. In v5 the value is honored 1:1 - `size="2rem"` is a 32px avatar.
|
|
565
|
+
|
|
566
|
+
**New `MazSize` keywords** (aligned with `MazBtn`, `MazInput`, ...):
|
|
567
|
+
|
|
568
|
+
| Keyword | Rendered size |
|
|
569
|
+
| --- | --- |
|
|
570
|
+
| `mini` | 24px |
|
|
571
|
+
| `xs` | 32px |
|
|
572
|
+
| `sm` | 40px |
|
|
573
|
+
| `md` | 48px (matches the old default) |
|
|
574
|
+
| `lg` | 56px |
|
|
575
|
+
| `xl` | 64px |
|
|
576
|
+
|
|
577
|
+
```vue
|
|
578
|
+
<!-- v5 - keyword sizes -->
|
|
579
|
+
<MazAvatar size="sm" />
|
|
580
|
+
<MazAvatar size="lg" />
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
Custom CSS units still work - you just need to triple the value to keep the exact rendering you had in v4:
|
|
584
|
+
|
|
585
|
+
```vue
|
|
586
|
+
<!-- v4 - rendered ~96px -->
|
|
587
|
+
<MazAvatar size="2rem" />
|
|
588
|
+
|
|
589
|
+
<!-- v5 - same ~96px render -->
|
|
590
|
+
<MazAvatar size="6rem" />
|
|
591
|
+
<!-- or adopt the corrected scale / a keyword -->
|
|
592
|
+
<MazAvatar size="2rem" />
|
|
593
|
+
<MazAvatar size="xl" />
|
|
594
|
+
```
|
|
595
|
+
|
|
596
|
+
The upgrade tool rewrites static `size="<unit>"` values on `<MazAvatar>` automatically (every CSS unit is supported). Bound expressions (`:size="…"`) can't be rewritten safely - they are left untouched and listed at the end of the run so you can check them by hand.
|
|
597
|
+
|
|
598
|
+
```bash
|
|
599
|
+
# Find avatars still passing a size you may want to review
|
|
600
|
+
rg "<MazAvatar[^>]*\bsize=" src/
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
### 17. `MazPullToRefresh` — `on-click` → `on-refresh`
|
|
604
|
+
|
|
605
|
+
The callback prop of `MazPullToRefresh` was renamed from `on-click` to `on-refresh` to reflect what it actually does: it runs when the refresh is triggered on release, not on a click.
|
|
606
|
+
|
|
607
|
+
```vue
|
|
608
|
+
<!-- v4 -->
|
|
609
|
+
<MazPullToRefresh :on-click="fetchData" />
|
|
610
|
+
|
|
611
|
+
<!-- v5 -->
|
|
612
|
+
<MazPullToRefresh :on-refresh="fetchData" />
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
The upgrade tool rewrites this automatically on `<MazPullToRefresh>` tags (both `on-click` and `onClick`, bound or static).
|
|
616
|
+
|
|
617
|
+
```bash
|
|
618
|
+
# Find usages to update
|
|
619
|
+
rg "<MazPullToRefresh[^>]*\bon-?[Cc]lick" src/
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
The component was also rewritten on top of the new [usePullToRefresh](./../composables/use-pull-to-refresh.md) composable. Behavior changes to check:
|
|
623
|
+
|
|
624
|
+
- **The pull follows the scroll container.** It starts only when the closest scrollable ancestor (or `container-selector`, or the window) is at the top. In v4, only the window scroll was read, so a layout with a scrolling `<main>` refreshed in the middle of a list.
|
|
625
|
+
- **`distance` is now the indicator distance after resistance** (default `80`, was `100` of raw finger movement). With the default `resistance` of `0.5`, the trigger needs about 160px of finger movement. Lower `distance` or raise `resistance` for a shorter gesture.
|
|
626
|
+
- **`spinner-color` defaults to `primary`** (was `contrast`) and also colors the progress ring.
|
|
627
|
+
- **`offset` is deprecated** and has no effect.
|
|
628
|
+
- **Texts are translated** (`pullToRefresh.*` in `@maz-ui/translations`) instead of hard coded in English. The `pull-before`, `pull-ready` and `pull-loading` slots still replace them, and now receive `{ progress, distance }`.
|
|
629
|
+
- **An error thrown by `on-refresh` is emitted (`error`, then `finish`) and no longer thrown again**, so it does not end up as an unhandled rejection.
|
|
630
|
+
|
|
631
|
+
### 18. Root `maz-ui` import removed for utilities
|
|
632
|
+
|
|
633
|
+
In v4, the bare `maz-ui` entry re-exported `@maz-ui/utils`, so you could write `import { sleep } from 'maz-ui'`. In v5 that root re-export is gone — import helpers from their package directly:
|
|
634
|
+
|
|
635
|
+
```ts
|
|
636
|
+
// v4
|
|
637
|
+
import { sleep, formatDate } from 'maz-ui'
|
|
638
|
+
|
|
639
|
+
// v5
|
|
640
|
+
import { sleep, formatDate } from '@maz-ui/utils'
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
Components, composables, directives and plugins were **already** subpath-only in v4 (`maz-ui/components/MazBtn`, `maz-ui/composables/useToast`, …) and are unchanged. The upgrade tool rewrites the utility imports for you.
|
|
644
|
+
|
|
645
|
+
The `maz-ui` root now exposes **types only** (zero runtime cost), so shared types stay importable from the short path:
|
|
646
|
+
|
|
647
|
+
```ts
|
|
648
|
+
import type { MazColor, MazSize } from 'maz-ui'
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
### 19. ESM-only
|
|
652
|
+
|
|
653
|
+
`maz-ui` and its `@maz-ui/*` packages ship **ESM only** (no CommonJS build). This was already the case in v4, but if you consume the library from a CommonJS context (old Jest without ESM, `require()`), use a bundler/test runner with ESM support (Vitest, Jest ≥ 29 with ESM, or native `import`).
|
|
654
|
+
|
|
655
|
+
### 20. `useFormValidator`: validation library agnostic (Standard Schema)
|
|
656
|
+
|
|
657
|
+
`useFormValidator` and `useFormField` no longer depend on Valibot. They accept any library implementing [Standard Schema](https://standardschema.dev): Valibot (>= 1.0), Zod (>= 3.24), ArkType (>= 2.0), or your own validator. Your existing Valibot schemas keep working as is: same validation, same error messages, same inferred types for `model` and the `handleSubmit` payload.
|
|
658
|
+
|
|
659
|
+
```ts
|
|
660
|
+
// v4 and v5 - unchanged
|
|
661
|
+
import { pipe, string, minLength } from 'valibot'
|
|
662
|
+
useFormValidator({ schema: { name: pipe(string(), minLength(3)) } })
|
|
663
|
+
|
|
664
|
+
// v5 - Zod (or mix both in the same schema)
|
|
665
|
+
import { z } from 'zod'
|
|
666
|
+
useFormValidator({ schema: { name: z.string().min(3) } })
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
What can break:
|
|
670
|
+
|
|
671
|
+
**`valibot` is no longer a dependency of `maz-ui`.** Valibot, Zod and ArkType are now declared as optional peer dependencies (`valibot >=1.0.0 <2.0.0`, `zod >=3.24.0 <5.0.0`, `arktype >=2.0.0 <3.0.0`). If your app imports `valibot` without declaring it (it was installed transitively), add it:
|
|
672
|
+
|
|
673
|
+
```bash
|
|
674
|
+
pnpm add valibot
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
**Issue types are now the Standard Schema ones.** `ValidationIssues` (returned by `errors`, `fieldsStates[field].errors`, `useFormField().errors` and the `onError` payload of `handleSubmit`) is now typed as an array of `{ message: string, path?: ... }` instead of Valibot's `BaseIssue<unknown>`. Only TypeScript is affected: at runtime, the issues are still the native Valibot objects. If you read Valibot specific properties (`kind`, `type`, `input`, `expected`, `received`, `requirement`...), cast the issue:
|
|
678
|
+
|
|
679
|
+
```ts
|
|
680
|
+
import type { BaseIssue } from 'valibot'
|
|
681
|
+
|
|
682
|
+
// v4
|
|
683
|
+
const type = errors.value.email[0].type
|
|
684
|
+
|
|
685
|
+
// v5
|
|
686
|
+
const type = (errors.value.email[0] as BaseIssue<unknown>).type
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
**`FormSchema` values are typed as `StandardSchemaV1`.** If you typed a schema object with `FormSchema<Model>` and then read Valibot specific properties of its entries (`schema.email.type`, `schema.email.pipe`...), declare the object with `as const satisfies FormSchema<Model>` or without annotation, so TypeScript keeps the Valibot types.
|
|
690
|
+
|
|
691
|
+
```bash
|
|
692
|
+
# Find usages to check
|
|
693
|
+
rg "useFormValidator|useFormField" src/
|
|
694
|
+
rg "from 'valibot'" src/
|
|
695
|
+
```
|
|
696
|
+
|
|
556
697
|
## Informational changes (probably no action needed)
|
|
557
698
|
|
|
558
699
|
### Theme colors are now emitted as OKLCh
|
|
559
700
|
|
|
560
|
-
`@maz-ui/themes` now ships its bundled presets (`mazUi`, `ocean`, `pristine`, `obsidian`) in `oklch()` form, and the
|
|
701
|
+
`@maz-ui/themes` now ships its bundled presets (`mazUi`, `ocean`, `pristine`, `obsidian`, `nova`) in `oklch()` form, and the runtime CSS variables (`--maz-primary`, `--maz-primary-100`, …) therefore hold OKLCh colors. The 50–950 scale is derived in CSS via OKLCh relative color syntax — `oklch(from var(--maz-X) clamp(0, calc(l ± offset), 1) calc(c * mult) h)` — perceptually uniform, chroma-preserving, and live-reactive to base color overrides.
|
|
561
702
|
|
|
562
703
|
This is **transparent for consumers**:
|
|
563
704
|
|
|
@@ -568,16 +709,8 @@ This is **transparent for consumers**:
|
|
|
568
709
|
|
|
569
710
|
You only need to do something if you were:
|
|
570
711
|
|
|
571
|
-
- **Reading the channel format** of a color from `--maz-*` in JS — the value used to be an `hsl(...)` string, it's now an `oklch(...)` string. Use `getComputedStyle(...).getPropertyValue(...)` and a CSS color parser if you need channels.
|
|
572
|
-
- **Calling
|
|
573
|
-
|
|
574
|
-
```ts
|
|
575
|
-
// v4: HSL L percentage
|
|
576
|
-
adjustColorLightness('hsl(210 50% 40%)', 20) // → 'hsl(210 50% 60%)'
|
|
577
|
-
|
|
578
|
-
// v5: OKLCh L (0..1)
|
|
579
|
-
adjustColorLightness('hsl(210 50% 40%)', 0.2) // → 'oklch(0.65 0.108 232.62)'
|
|
580
|
-
```
|
|
712
|
+
- **Reading the channel format** of a color from `--maz-*` in JS — the value used to be an `hsl(...)` string, it's now an `oklch(...)` string (and at runtime the base may resolve through `light-dark()`). Use `getComputedStyle(...).getPropertyValue(...)` and a CSS color parser if you need channels.
|
|
713
|
+
- **Calling the legacy JS palette helpers** (`generateColorScale`, `adjustColorLightness`, `getContrastColor`, `parseHSL`) — these exports were removed in v5. See [BREAKING — removed exports](#breaking-removed-exports) for replacements.
|
|
581
714
|
|
|
582
715
|
Why the switch: OKLCh is perceptually uniform, so generated scales (`primary-50` → `primary-950`) ramp consistently across hues — yellow-700 won't look muddy compared to blue-700 anymore. It also unlocks Display P3 colors when you author a vivid preset.
|
|
583
716
|
|
|
@@ -615,6 +748,69 @@ Four bundled presets remain (`mazUi`, `pristine`, `ocean`, `obsidian`) plus a ne
|
|
|
615
748
|
|
|
616
749
|
Switching to one of the bundled presets does not require any code change beyond the preset name. If you depended on the previous (washed-out gray) `secondary` color in a custom theme, override it back via `colors.{light,dark}.secondary` in your preset.
|
|
617
750
|
|
|
751
|
+
### Theming: native CSS rewrite (new — non-breaking by default)
|
|
752
|
+
|
|
753
|
+
The `@maz-ui/themes` CSS pipeline was rewritten to lean on native CSS instead of JS:
|
|
754
|
+
|
|
755
|
+
- Base colors are now emitted as a single `--maz-X: light-dark(L, D)` declaration. The browser resolves it for you.
|
|
756
|
+
- Color scales `--maz-X-50` through `--maz-X-950` are derived via OKLCh relative color syntax at runtime, so any override on the base color cascades through the whole scale automatically (and preserves its chroma).
|
|
757
|
+
- `:root` declares `color-scheme: light dark` so native widgets (scrollbars, native `<select>`, date pickers, autofill) follow the active mode out of the box.
|
|
758
|
+
- A `<meta name="color-scheme">` tag is **automatically injected** at boot (Vue + Nuxt SSR). No user action — prevents the Flash of inAccurate coloR Theme.
|
|
759
|
+
|
|
760
|
+
Consumer-visible CSS surface is unchanged: `var(--maz-primary)`, `--maz-primary-500`, Tailwind utilities `bg-primary/60`, `bg-primary-500`, etc. all keep working.
|
|
761
|
+
|
|
762
|
+
#### `lightClass` (new — optional, default `'light'`)
|
|
763
|
+
|
|
764
|
+
Mirror of `darkClass`. When `colorMode === 'light'` and `darkModeStrategy === 'class'`, this class is added to `<html>` to force `color-scheme: only light`. Default `'light'` — set to `false`/custom string if it clashes with an existing class in your app:
|
|
765
|
+
|
|
766
|
+
```ts
|
|
767
|
+
app.use(MazUi, {
|
|
768
|
+
theme: {
|
|
769
|
+
preset: mazUi,
|
|
770
|
+
darkClass: 'dark',
|
|
771
|
+
lightClass: 'light', // new
|
|
772
|
+
},
|
|
773
|
+
})
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
Non-breaking: if you never explicitly forced light, nothing changes.
|
|
777
|
+
|
|
778
|
+
#### `setColorMode` / `toggleDarkMode` now return `Promise<void>`
|
|
779
|
+
|
|
780
|
+
Both functions are now async to support the optional `{ animate: true }` parameter (View Transitions). Existing callers that ignored the return value keep working — `await` is only required when you need to chain.
|
|
781
|
+
|
|
782
|
+
```ts
|
|
783
|
+
const { setColorMode, toggleDarkMode } = useTheme()
|
|
784
|
+
|
|
785
|
+
// Existing v4 call — still works, return value ignored
|
|
786
|
+
setColorMode('dark')
|
|
787
|
+
toggleDarkMode()
|
|
788
|
+
|
|
789
|
+
// v5 — await to chain after the change is applied
|
|
790
|
+
await setColorMode('dark')
|
|
791
|
+
|
|
792
|
+
// v5 — animated full-page switch via document.startViewTransition()
|
|
793
|
+
await toggleDarkMode({ animate: true })
|
|
794
|
+
await setColorMode('dark', { animate: true })
|
|
795
|
+
```
|
|
796
|
+
|
|
797
|
+
The View Transitions glue is lazy-imported — when `animate` is not used, it stays out of your boot bundle. Browsers that don't support the API apply the change immediately with no animation.
|
|
798
|
+
|
|
799
|
+
#### BREAKING — removed exports
|
|
800
|
+
|
|
801
|
+
The JS-based palette generator is gone. The following helpers used to be exported from `@maz-ui/themes` and **no longer exist** in v5:
|
|
802
|
+
|
|
803
|
+
| Removed export | Replacement |
|
|
804
|
+
| --- | --- |
|
|
805
|
+
| `generateColorScale(base, mode)` | The scale is now generated in CSS via `oklch(from var(--maz-X) clamp(0, calc(l ± offset), 1) calc(c * mult) h)`. Read the live value from `--maz-X-{50..950}`, or replicate the formula inline. |
|
|
806
|
+
| `parseHSL(value)` | Use a CSS color parser or `parseColorAsOklch` from `@maz-ui/themes/utils/color-conversions`. |
|
|
807
|
+
| `adjustColorLightness(color, amount)` | Inline with `oklch(from <color> calc(l + N) c h)` to shift lightness while preserving chroma and hue. |
|
|
808
|
+
| `getContrastColor(color)` | Use the preset's `*-foreground` token, which is what components consume internally. |
|
|
809
|
+
|
|
810
|
+
`colorToHex`, `parseColorAsOklch` and `formatAsOklch` are **preserved**, now exported from `@maz-ui/themes/utils/color-conversions`.
|
|
811
|
+
|
|
812
|
+
If you were importing any of the removed helpers from `@maz-ui/themes`, replace them before upgrading.
|
|
813
|
+
|
|
618
814
|
### Preset name persistence (new — opt-out, no breaking change)
|
|
619
815
|
|
|
620
816
|
`@maz-ui/themes` now persists the active preset name in a `maz-preset` cookie (1-year TTL, `SameSite=Lax`) — same shape as the existing `maz-color-mode` cookie:
|
|
@@ -12,7 +12,7 @@ head:
|
|
|
12
12
|
Supercharge your Vue development with Maz-UI's intelligent auto-import resolvers. Never write import statements again while maintaining perfect tree-shaking and TypeScript support.
|
|
13
13
|
|
|
14
14
|
::: tip Vue Only Feature
|
|
15
|
-
Auto-import resolvers are designed for Vue projects using build tools like Vite or Webpack. For Nuxt users, everything is already integrated in the [@maz-ui/nuxt module](/
|
|
15
|
+
Auto-import resolvers are designed for Vue projects using build tools like Vite or Webpack. For Nuxt users, everything is already integrated in the [@maz-ui/nuxt module](/ecosystem/nuxt).
|
|
16
16
|
:::
|
|
17
17
|
|
|
18
18
|
## Why Use Auto-Import Resolvers?
|
|
@@ -229,18 +229,18 @@ function showSuccess() {
|
|
|
229
229
|
|
|
230
230
|
| Category | Composables |
|
|
231
231
|
| -------------------- | --------------------------------------------------- |
|
|
232
|
-
| **UI Management** | [`useToast`](./../composables/use-toast.md), [`useDialog`](./../composables/use-dialog.md), [`useTheme`](./../
|
|
232
|
+
| **UI Management** | [`useToast`](./../composables/use-toast.md), [`useDialog`](./../composables/use-dialog.md), [`useTheme`](./../ecosystem/themes.md#usetheme-composable-api), [`useWait`](./../composables/use-wait.md) |
|
|
233
233
|
| **Responsive** | [`useBreakpoints`](./../composables/use-breakpoints.md), [`useWindowSize`](./../composables/use-window-size.md) |
|
|
234
|
-
| **User Interaction** | [`useUserVisibility`](./../composables/use-user-visibility.md), [`useIdleTimeout`](./../composables/use-idle-timeout.md), [`useSwipe`](./../composables/use-swipe.md) |
|
|
234
|
+
| **User Interaction** | [`useUserVisibility`](./../composables/use-user-visibility.md), [`useIdleTimeout`](./../composables/use-idle-timeout.md), [`useSwipe`](./../composables/use-swipe.md), [`usePullToRefresh`](./../composables/use-pull-to-refresh.md) |
|
|
235
235
|
| **Form Handling** | [`useFormValidator`](./../composables/use-form-validator.md) |
|
|
236
236
|
| **Advanced** | [`useTimer`](./../composables/use-timer.md), [`useStringMatching`](./../composables/use-string-matching.md) |
|
|
237
237
|
|
|
238
238
|
**Most used available formatters and utilities:**
|
|
239
239
|
|
|
240
|
-
| Category
|
|
241
|
-
|
|
|
242
|
-
| **Formatters**
|
|
243
|
-
| **Utilities**
|
|
240
|
+
| Category | Utilities/Formatters |
|
|
241
|
+
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
242
|
+
| **Formatters** | [`formatCurrency`](./../ecosystem/utils/currency.md), [`formatDate`](./../ecosystem/utils/date.md), [`sleep`](./../ecosystem/utils/sleep.md) |
|
|
243
|
+
| **Utilities** | [`debounce`](./../ecosystem/utils/debounce.md), [`throttle`](./../ecosystem/utils/throttle.md), [`isEqual`](./../ecosystem/utils/is-equal.md) |
|
|
244
244
|
|
|
245
245
|
## Advanced Configuration
|
|
246
246
|
|
|
@@ -670,7 +670,7 @@ const toast = useToast()
|
|
|
670
670
|
|
|
671
671
|
- [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components) - The underlying auto-import system
|
|
672
672
|
- [unplugin-auto-import](https://github.com/antfu/unplugin-auto-import) - Auto-import for composables and utilities
|
|
673
|
-
- [Nuxt Module](/
|
|
673
|
+
- [Nuxt Module](/ecosystem/nuxt) - All auto-imports included out of the box
|
|
674
674
|
|
|
675
675
|
---
|
|
676
676
|
|
|
@@ -47,6 +47,10 @@ Each one comes with `bg-X`, `text-X`, `border-X`, an 11-step scale (`bg-X-50`
|
|
|
47
47
|
<div class="bg-success-100 text-success-700">Saved!</div>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
::: info Alpha utilities and scales in v5
|
|
51
|
+
`bg-primary/60`, `text-primary/40`, `border-primary/50` and the rest of Tailwind's alpha syntax continue to work unchanged. In v5 the 50–950 scales are derived in CSS via OKLCh relative color syntax and the base colors are resolved through `light-dark()`, but this is invisible at the utility level — your Tailwind classes don't change.
|
|
52
|
+
:::
|
|
53
|
+
|
|
50
54
|
### Neutral & surface colors
|
|
51
55
|
|
|
52
56
|
These don't have a foreground variant — they're typically used for backgrounds, text, borders or overlays directly. Each one still ships an 11-step scale.
|
package/docs/src/guide/vue.md
CHANGED
|
@@ -81,7 +81,7 @@ app.use(MazUi, {
|
|
|
81
81
|
/**
|
|
82
82
|
* Theme configuration (optional if you are using the default theme)
|
|
83
83
|
* More information in dedicated documentation
|
|
84
|
-
* @see https://maz-ui.com/
|
|
84
|
+
* @see https://maz-ui.com/ecosystem/themes
|
|
85
85
|
*/
|
|
86
86
|
theme: {
|
|
87
87
|
preset: mazUi, // 'ocean' | 'pristine' | 'obsidian' | 'nova'
|
|
@@ -103,7 +103,7 @@ app.use(MazUi, {
|
|
|
103
103
|
/**
|
|
104
104
|
* Translations configuration (optional if you are using english)
|
|
105
105
|
* More information in dedicated documentation
|
|
106
|
-
* @see https://maz-ui.com/
|
|
106
|
+
* @see https://maz-ui.com/ecosystem/translations
|
|
107
107
|
*/
|
|
108
108
|
translations: {
|
|
109
109
|
locale: 'fr',
|
|
@@ -143,11 +143,11 @@ function handleClick() {
|
|
|
143
143
|
|
|
144
144
|
## Theming
|
|
145
145
|
|
|
146
|
-
More information in the [theme documentation](/
|
|
146
|
+
More information in the [theme documentation](/ecosystem/themes).
|
|
147
147
|
|
|
148
148
|
## Translations
|
|
149
149
|
|
|
150
|
-
More information in the [translations documentation](/
|
|
150
|
+
More information in the [translations documentation](/ecosystem/translations).
|
|
151
151
|
|
|
152
152
|
## Plugins
|
|
153
153
|
|
package/docs/src/index.md
CHANGED
|
@@ -219,7 +219,7 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
219
219
|
This library is written in Typescript, so all types and declarations are directly available.
|
|
220
220
|
</p>
|
|
221
221
|
</MazCardSpotlight>
|
|
222
|
-
<a href="/
|
|
222
|
+
<a href="/ecosystem/themes" class="maz:flex">
|
|
223
223
|
<MazCardSpotlight class="maz:w-full" content-class="maz:flex maz:flex-col maz:gap-2 maz:items-start">
|
|
224
224
|
<span class="maz:py-1 maz:px-2 maz:bg-surface-600 maz:dark:bg-surface-400 maz:rounded-md maz:text-2xl">
|
|
225
225
|
💄
|
|
@@ -229,7 +229,7 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
229
229
|
Created with TailwindCSS | Optimized CSS file sizes | Complies with all CSS best practices | Use your theme easily.
|
|
230
230
|
</p>
|
|
231
231
|
<div class="maz:flex-1"></div>
|
|
232
|
-
<MazBtn color="surface" outlined size="sm" block href="/
|
|
232
|
+
<MazBtn color="surface" outlined size="sm" block href="/ecosystem/themes">Discover</MazBtn>
|
|
233
233
|
</MazCardSpotlight>
|
|
234
234
|
</a>
|
|
235
235
|
<a href="/guide/dark-mode" class="maz:flex">
|
|
@@ -265,7 +265,7 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
265
265
|
<h2 class="maz:text-2xl maz:font-bold maz:mb-8">Ecosystem</h2>
|
|
266
266
|
|
|
267
267
|
<div class="maz:grid maz:grid-cols-1 maz:tab-m:grid-cols-2 maz:gap-4">
|
|
268
|
-
<a href="/
|
|
268
|
+
<a href="/ecosystem/nuxt" class="maz:flex">
|
|
269
269
|
<MazCardSpotlight class="maz:w-full" color="accent" content-class="maz:flex maz:flex-col maz:gap-2 maz:items-start">
|
|
270
270
|
<div class="maz:flex maz:items-start maz:gap-2 maz:justify-between maz:w-full">
|
|
271
271
|
<span class="maz:py-1 maz:px-2 maz:bg-surface-600 maz:dark:bg-surface-400 maz:rounded-md maz:text-2xl">
|
|
@@ -278,10 +278,10 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
278
278
|
Official Nuxt module with auto-imports, optimized builds, and seamless SSR support. Zero configuration required.
|
|
279
279
|
</p>
|
|
280
280
|
<div class="maz:flex-1"></div>
|
|
281
|
-
<MazBtn color="surface" outlined size="sm" block href="/
|
|
281
|
+
<MazBtn color="surface" outlined size="sm" block href="/ecosystem/nuxt">Discover</MazBtn>
|
|
282
282
|
</MazCardSpotlight>
|
|
283
283
|
</a>
|
|
284
|
-
<a href="/
|
|
284
|
+
<a href="/ecosystem/icons/" class="maz:flex">
|
|
285
285
|
<MazCardSpotlight class="maz:w-full" color="accent" content-class="maz:flex maz:flex-col maz:gap-2 maz:items-start">
|
|
286
286
|
<div class="maz:flex maz:items-start maz:gap-2 maz:justify-between maz:w-full">
|
|
287
287
|
<span class="maz:py-1 maz:px-2 maz:bg-surface-600 maz:dark:bg-surface-400 maz:rounded-md maz:text-2xl">
|
|
@@ -294,10 +294,10 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
294
294
|
860+ beautiful SVG icons ready for Vue. Multiple usage patterns: components, direct SVG files, raw SVG strings or auto-import.
|
|
295
295
|
</p>
|
|
296
296
|
<div class="maz:flex-1"></div>
|
|
297
|
-
<MazBtn color="surface" outlined size="sm" block href="/
|
|
297
|
+
<MazBtn color="surface" outlined size="sm" block href="/ecosystem/icons/">Discover</MazBtn>
|
|
298
298
|
</MazCardSpotlight>
|
|
299
299
|
</a>
|
|
300
|
-
<a href="/
|
|
300
|
+
<a href="/ecosystem/translations" class="maz:flex">
|
|
301
301
|
<MazCardSpotlight class="maz:w-full" color="accent" content-class="maz:flex maz:flex-col maz:gap-2 maz:items-start">
|
|
302
302
|
<div class="maz:flex maz:items-start maz:gap-2 maz:justify-between maz:w-full">
|
|
303
303
|
<span class="maz:py-1 maz:px-2 maz:bg-surface-600 maz:dark:bg-surface-400 maz:rounded-md maz:text-2xl">
|
|
@@ -310,10 +310,10 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
310
310
|
Simple internationalization system for Maz-UI components. Translate your interface into any language with ease.
|
|
311
311
|
</p>
|
|
312
312
|
<div class="maz:flex-1"></div>
|
|
313
|
-
<MazBtn color="surface" outlined size="sm" block href="/
|
|
313
|
+
<MazBtn color="surface" outlined size="sm" block href="/ecosystem/translations">Discover</MazBtn>
|
|
314
314
|
</MazCardSpotlight>
|
|
315
315
|
</a>
|
|
316
|
-
<a href="/
|
|
316
|
+
<a href="/ecosystem/themes" class="maz:flex">
|
|
317
317
|
<MazCardSpotlight class="maz:w-full" color="accent" content-class="maz:flex maz:flex-col maz:gap-2 maz:items-start">
|
|
318
318
|
<div class="maz:flex maz:items-start maz:gap-2 maz:justify-between maz:w-full">
|
|
319
319
|
<span class="maz:py-1 maz:px-2 maz:bg-surface-600 maz:dark:bg-surface-400 maz:rounded-md maz:text-2xl">
|
|
@@ -326,10 +326,10 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
326
326
|
Pre-built theme collections and design tokens for rapid UI development. Ready-to-use color schemes and styles.
|
|
327
327
|
</p>
|
|
328
328
|
<div class="maz:flex-1"></div>
|
|
329
|
-
<MazBtn color="surface" outlined size="sm" block href="/
|
|
329
|
+
<MazBtn color="surface" outlined size="sm" block href="/ecosystem/themes">Discover</MazBtn>
|
|
330
330
|
</MazCardSpotlight>
|
|
331
331
|
</a>
|
|
332
|
-
<a href="/
|
|
332
|
+
<a href="/ecosystem/mcp" class="maz:flex">
|
|
333
333
|
<MazCardSpotlight class="maz:w-full" color="accent" content-class="maz:flex maz:flex-col maz:gap-2 maz:items-start">
|
|
334
334
|
<div class="maz:flex maz:items-start maz:gap-2 maz:justify-between maz:w-full">
|
|
335
335
|
<span class="maz:py-1 maz:px-2 maz:bg-surface-600 maz:dark:bg-surface-400 maz:rounded-md maz:text-2xl">
|
|
@@ -342,7 +342,7 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
342
342
|
Provides a Model Context Protocol (MCP) server that exposes Maz-UI documentation to AI agents. This server enables AI agents to generate code and assist developers in using Maz-UI.
|
|
343
343
|
</p>
|
|
344
344
|
<div class="maz:flex-1"></div>
|
|
345
|
-
<MazBtn color="surface" outlined size="sm" block href="/
|
|
345
|
+
<MazBtn color="surface" outlined size="sm" block href="/ecosystem/mcp">Discover</MazBtn>
|
|
346
346
|
</MazCardSpotlight>
|
|
347
347
|
</a>
|
|
348
348
|
</div>
|
|
@@ -465,7 +465,7 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
|
|
|
465
465
|
</div>
|
|
466
466
|
<h3 class="maz:text-base maz:font-semibold">useFormValidator</h3>
|
|
467
467
|
<p class="maz:dark:text-gray-300 maz:text-muted maz:text-sm">
|
|
468
|
-
A Vue composable designed to simplify form validation
|
|
468
|
+
A Vue composable designed to simplify form validation with any Standard Schema library (Valibot, Zod, ArkType...). Offers a flexible and typed approach to handle form validation.
|
|
469
469
|
</p>
|
|
470
470
|
<div class="maz:flex-1"></div>
|
|
471
471
|
<MazBtn color="surface" outlined size="sm" block href="/composables/use-form-validator">Discover</MazBtn>
|
package/docs/src/plugins/aos.md
CHANGED
|
@@ -231,7 +231,7 @@ You can choose one of these timing function to animate elements nicely:
|
|
|
231
231
|
## Nuxt
|
|
232
232
|
|
|
233
233
|
::: tip
|
|
234
|
-
For **NuxtJS v3** and higher, use the dedicated Nuxt module to take advantage of auto-imports of components, plugins, composables and css files: [Nuxt Module Documentation](./../
|
|
234
|
+
For **NuxtJS v3** and higher, use the dedicated Nuxt module to take advantage of auto-imports of components, plugins, composables and css files: [Nuxt Module Documentation](./../ecosystem/nuxt.md)
|
|
235
235
|
:::
|
|
236
236
|
|
|
237
237
|
Should be executed on client side
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/mcp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.51",
|
|
5
5
|
"description": "Maz-UI ModelContextProtocol Client",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -41,18 +41,19 @@
|
|
|
41
41
|
"docs"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"
|
|
44
|
+
"@maz-ui/utils": "5.0.0-beta.46",
|
|
45
|
+
"@modelcontextprotocol/sdk": "^1.32.0",
|
|
46
|
+
"maz-ui": "5.0.0-beta.51"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
49
|
+
"@maz-ui/eslint-config": "5.0.0-beta.47",
|
|
50
|
+
"@maz-ui/node": "5.0.0-beta.44",
|
|
51
|
+
"@modelcontextprotocol/inspector": "^2.9.0",
|
|
52
|
+
"@swc/core": "1.16.13",
|
|
53
|
+
"prettier": "^3.9.9",
|
|
52
54
|
"ts-node-maintained": "^10.9.5",
|
|
53
|
-
"tsx": "^4.
|
|
54
|
-
"unbuild": "^3.6.1"
|
|
55
|
-
"@maz-ui/eslint-config": "5.0.0-beta.5"
|
|
55
|
+
"tsx": "^4.23.15",
|
|
56
|
+
"unbuild": "^3.6.1"
|
|
56
57
|
},
|
|
57
58
|
"lint-staged": {
|
|
58
59
|
"*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: checkAvailability
|
|
3
|
-
description: Utility method to execute a call back when the awaited data is available with timeout and check interval
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# {{ $frontmatter.title }}
|
|
7
|
-
|
|
8
|
-
{{ $frontmatter.description }}
|
|
9
|
-
|
|
10
|
-
::: warning
|
|
11
|
-
|
|
12
|
-
TO DO
|
|
13
|
-
|
|
14
|
-
:::
|