@maz-ui/mcp 4.0.0-beta.37 → 4.0.0
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/dist/mcp.mjs +1 -1
- package/docs/src/guide/icon-set.md +2 -2
- package/docs/src/guide/icons.md +11 -8
- package/package.json +5 -6
package/dist/mcp.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { existsSync, readFileSync, readdirSync } from 'node:fs';
|
|
|
7
7
|
import { resolve, dirname, join } from 'node:path';
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
9
|
|
|
10
|
-
const version = "4.0.0-beta.
|
|
10
|
+
const version = "4.0.0-beta.38";
|
|
11
11
|
|
|
12
12
|
const _dirname = dirname(fileURLToPath(import.meta.url));
|
|
13
13
|
class DocumentationService {
|
|
@@ -18,7 +18,7 @@ All icons follow a consistent naming pattern:
|
|
|
18
18
|
</div>
|
|
19
19
|
<div class="maz-grid maz-grid-cols-3 maz-gap-2">
|
|
20
20
|
<div v-for="icon in filteredIcons" :key="icon.label" class="maz-flex maz-flex-col maz-items-center maz-gap-3 maz-text-center maz-border maz-border-solid maz-border-divider maz-rounded maz-p-4 maz-truncate hover:maz-bg-surface-600/50 dark:hover:maz-bg-surface-400">
|
|
21
|
-
<Component :is="icon.value" class="maz-
|
|
21
|
+
<Component :is="icon.value" class="maz-size-8" />
|
|
22
22
|
<span class="maz-text-xs maz-text-muted maz-truncate">{{ icon.label }}</span>
|
|
23
23
|
<div class="maz-flex maz-flex-row maz-gap-2 maz-w-full">
|
|
24
24
|
<MazBtn v-tooltip="'Copy Name'" class="maz-flex-1" size="xs" color="background" outlined @click="copyIcon(icon.label)" :icon="MazClipboardDocument" />
|
|
@@ -38,7 +38,7 @@ import { MazClipboardDocument, MazClipboardDocumentList } from '@maz-ui/icons'
|
|
|
38
38
|
const MazIcons = await import('@maz-ui/icons')
|
|
39
39
|
const { success} = useToast()
|
|
40
40
|
|
|
41
|
-
const icons = Object.entries(MazIcons).map(([name, component]) => ({
|
|
41
|
+
const icons = Object.entries(MazIcons).sort(([nameA, _], [nameB, __]) => nameA.localeCompare(nameB)).map(([name, component]) => ({
|
|
42
42
|
label: name,
|
|
43
43
|
value: component,
|
|
44
44
|
}))
|
package/docs/src/guide/icons.md
CHANGED
|
@@ -78,20 +78,25 @@ import { MazCheck, MazHeart, MazUser } from '@maz-ui/icons'
|
|
|
78
78
|
|
|
79
79
|
### Method 2: Auto-import with Resolver
|
|
80
80
|
|
|
81
|
-
Never worry about imports again with automatic component resolution
|
|
81
|
+
Never worry about imports again with automatic component resolution.
|
|
82
82
|
|
|
83
83
|
#### Setup unplugin-vue-components
|
|
84
84
|
|
|
85
|
+
::: warning Troubleshooting
|
|
86
|
+
|
|
87
|
+
If your are already using [`MazComponentsResolver`](./resolvers.md#mazcomponentsresolver), you should place `MazIconsResolver` before `MazComponentsResolver` in the `resolvers` array.
|
|
88
|
+
|
|
89
|
+
:::
|
|
90
|
+
|
|
91
|
+
`vite.config.ts`
|
|
92
|
+
|
|
85
93
|
```ts
|
|
86
94
|
import { MazIconsResolver } from '@maz-ui/icons/resolvers'
|
|
87
|
-
import vue from '@vitejs/plugin-vue'
|
|
88
95
|
import Components from 'unplugin-vue-components/vite'
|
|
89
|
-
// vite.config.ts
|
|
90
96
|
import { defineConfig } from 'vite'
|
|
91
97
|
|
|
92
98
|
export default defineConfig({
|
|
93
99
|
plugins: [
|
|
94
|
-
vue(),
|
|
95
100
|
Components({
|
|
96
101
|
resolvers: [
|
|
97
102
|
MazIconsResolver() // Auto-import Maz UI icons
|
|
@@ -138,15 +143,13 @@ Transform SVG files into Vue components at build time:
|
|
|
138
143
|
|
|
139
144
|
#### Vite Configuration
|
|
140
145
|
|
|
146
|
+
`vite.config.ts`
|
|
147
|
+
|
|
141
148
|
```ts
|
|
142
|
-
import vue from '@vitejs/plugin-vue'
|
|
143
|
-
// vite.config.ts
|
|
144
|
-
import { defineConfig } from 'vite'
|
|
145
149
|
import svgLoader from 'vite-svg-loader'
|
|
146
150
|
|
|
147
151
|
export default defineConfig({
|
|
148
152
|
plugins: [
|
|
149
|
-
vue(),
|
|
150
153
|
svgLoader({
|
|
151
154
|
defaultImport: 'component' // Import as Vue component by default
|
|
152
155
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/mcp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"description": "Maz-UI ModelContextProtocol Client",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -58,17 +58,16 @@
|
|
|
58
58
|
"test:unit:coverage": "pnpm generate:docs && vitest run --coverage"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@maz-ui/node": "4.0.0
|
|
62
|
-
"@maz-ui/utils": "4.0.0
|
|
61
|
+
"@maz-ui/node": "4.0.0",
|
|
62
|
+
"@maz-ui/utils": "4.0.0",
|
|
63
63
|
"@modelcontextprotocol/sdk": "^1.17.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@maz-ui/eslint-config": "4.0.0
|
|
66
|
+
"@maz-ui/eslint-config": "4.0.0",
|
|
67
67
|
"@modelcontextprotocol/inspector": "^0.16.2",
|
|
68
68
|
"@swc/core": "1.13.3",
|
|
69
69
|
"@types/node": "^24.2.1",
|
|
70
70
|
"@vitest/coverage-v8": "^3.2.4",
|
|
71
|
-
"docs": "4.0.0-beta.37",
|
|
72
71
|
"eslint": "^9.26.0",
|
|
73
72
|
"lint-staged": "^16.1.5",
|
|
74
73
|
"prettier": "^3.5.3",
|
|
@@ -81,5 +80,5 @@
|
|
|
81
80
|
"lint-staged": {
|
|
82
81
|
"*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"
|
|
83
82
|
},
|
|
84
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "b2e03a043ad3334ed5ce456c7f0e67c728c09524"
|
|
85
84
|
}
|