@maz-ui/mcp 5.1.0-beta.0 → 5.1.0-beta.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 (57) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.mjs +3 -1
  3. package/dist/index.d.mts +11 -6
  4. package/dist/index.d.ts +11 -6
  5. package/dist/index.mjs +3 -1
  6. package/dist/shared/{mcp.DzqVbCaL.mjs → mcp.DseFuKdl.mjs} +696 -74
  7. package/docs/README.md +37 -37
  8. package/docs/agents/agents-md.md +4 -4
  9. package/docs/agents/claude-rule.md +4 -4
  10. package/docs/components/maz-accordion.md +2 -0
  11. package/docs/components/maz-btn-group.md +1 -0
  12. package/docs/components/maz-btn.md +3 -1
  13. package/docs/components/maz-card-spotlight.md +2 -2
  14. package/docs/components/maz-circular-progress-bar.md +2 -2
  15. package/docs/components/maz-drawer.md +3 -2
  16. package/docs/components/maz-fullscreen-loader.md +2 -2
  17. package/docs/components/maz-loading-bar.md +2 -2
  18. package/docs/components/maz-pagination.md +2 -2
  19. package/docs/components/maz-radio.md +2 -2
  20. package/docs/components/maz-sidebar-content.md +2 -2
  21. package/docs/components/maz-sidebar-footer.md +2 -2
  22. package/docs/components/maz-sidebar-group.md +2 -2
  23. package/docs/components/maz-sidebar-header.md +2 -2
  24. package/docs/components/maz-sidebar-menu-button.md +2 -2
  25. package/docs/components/maz-sidebar-menu-item.md +2 -2
  26. package/docs/components/maz-sidebar-menu-sub.md +2 -2
  27. package/docs/components/maz-sidebar-menu.md +2 -2
  28. package/docs/components/maz-sidebar-separator.md +2 -2
  29. package/docs/components/maz-sidebar-trigger.md +2 -2
  30. package/docs/components/maz-spinner.md +2 -2
  31. package/docs/components/maz-stepper.md +5 -0
  32. package/docs/components/maz-table-cell.md +2 -2
  33. package/docs/components/maz-table-row.md +2 -2
  34. package/docs/components/maz-table-title.md +2 -2
  35. package/docs/components/maz-table-virtualizer.md +2 -2
  36. package/docs/components/maz-tabs-bar.md +2 -2
  37. package/docs/components/maz-tabs-content-item.md +2 -2
  38. package/docs/components/maz-tabs-content.md +2 -2
  39. package/docs/components/maz-ui-provider.md +2 -2
  40. package/docs/composables/use-aos.md +2 -2
  41. package/docs/composables/use-breakpoints.md +2 -2
  42. package/docs/composables/use-toast.md +2 -2
  43. package/docs/composables/use-user-visibility.md +4 -4
  44. package/docs/composables/use-wait.md +2 -2
  45. package/docs/directives/fullscreen-img.md +4 -4
  46. package/docs/ecosystem/icons/icon-set.md +4 -4
  47. package/docs/ecosystem/icons/index.md +4 -4
  48. package/docs/ecosystem/mcp.md +1 -1
  49. package/docs/ecosystem/nuxt.md +5 -1
  50. package/docs/ecosystem/translations.md +2 -2
  51. package/docs/ecosystem/utils/country-code-to-unicode-flag.md +2 -2
  52. package/docs/guide/ai-agents.md +6 -4
  53. package/docs/guide/tailwind.md +25 -1
  54. package/docs/manifest.json +1 -1
  55. package/docs/reference/tailwind-tokens.md +1 -1
  56. package/docs/rules.md +5 -3
  57. package/package.json +4 -2
package/README.md CHANGED
@@ -26,7 +26,7 @@ To use it without writing anything in your projects, register the server once fo
26
26
  | `search_docs` | Find what maz-ui provides for a need in plain words ("confirm before delete", "phone input", "debounce search") |
27
27
  | `get_component_api` | Exact API of up to 10 components: props, accepted values, `v-model`, events, slots, exposed |
28
28
  | `find_icons` | Icons of `@maz-ui/icons` by meaning, with imports |
29
- | `get_theme_tokens` | Every Tailwind class and CSS variable of the maz-ui theme |
29
+ | `get_theme_tokens` | The theme of your project (preset, `@theme` tokens, variants, utilities) and every Tailwind class and CSS variable of the maz-ui theme |
30
30
  | `get_doc` | Any documentation page, whole or by sections |
31
31
  | `list_docs` | Catalog of everything maz-ui provides |
32
32
  | `get_setup_guide` | Install maz-ui in a Vue or Nuxt app, with or without Tailwind |
package/dist/cli.mjs CHANGED
@@ -3,7 +3,7 @@ import 'node:path';
3
3
  import 'node:util';
4
4
  import '@maz-ui/node';
5
5
  import '@maz-ui/utils/helpers/getErrorMessage';
6
- export { H as HELP, m as main, i as runCli, k as runInit, n as runReview } from './shared/mcp.DzqVbCaL.mjs';
6
+ export { H as HELP, m as main, i as runCli, k as runInit, n as runReview } from './shared/mcp.DseFuKdl.mjs';
7
7
  import 'node:fs';
8
8
  import 'node:url';
9
9
  import 'zod';
@@ -12,3 +12,5 @@ import '@vue/compiler-dom';
12
12
  import 'tinyglobby';
13
13
  import '@modelcontextprotocol/sdk/server/mcp.js';
14
14
  import '@modelcontextprotocol/sdk/server/stdio.js';
15
+ import 'node:child_process';
16
+ import '@babel/parser';
package/dist/index.d.mts CHANGED
@@ -219,25 +219,30 @@ interface LoadKnowledgeOptions {
219
219
  cwd?: string;
220
220
  /** Bundle shipped with @maz-ui/mcp */
221
221
  bundledDir?: string;
222
+ /** Version of the bundled docs, default: the version of @maz-ui/mcp (released together with maz-ui) */
223
+ bundledVersion?: string;
222
224
  }
223
225
  declare class Knowledge {
224
226
  readonly manifest: Manifest;
225
227
  readonly source: KnowledgeSource;
228
+ private readonly documentedVersion;
226
229
  readonly docsById: Map<string, DocEntry>;
227
230
  readonly componentsByName: Map<string, ComponentApi>;
228
231
  readonly iconNames: Set<string>;
229
232
  private readonly cache;
230
- constructor(manifest: Manifest, source: KnowledgeSource);
233
+ /**
234
+ * @param manifest manifest of the docs bundle
235
+ * @param source where the bundle was found
236
+ * @param documentedVersion version of the documented maz-ui, read from a package.json at runtime when possible: the
237
+ * docs are generated before the release bumps the version, so `manifest.version` can be the previous one
238
+ */
239
+ constructor(manifest: Manifest, source: KnowledgeSource, documentedVersion?: string);
231
240
  get version(): string;
232
241
  get docs(): DocEntry[];
233
242
  readDoc(id: string): string;
234
243
  readFile(relativePath: string): string | undefined;
235
244
  }
236
- /**
237
- * Finds the maz-ui package installed in the project: in the `node_modules`
238
- * of the project root and of its direct workspace folders (`apps/*`,
239
- * `packages/*`, for monorepos without hoisting), then in the parent folders.
240
- */
245
+ /** Finds the maz-ui package installed in the project, monorepo workspace folders included */
241
246
  declare function findProjectMazUi(cwd: string): {
242
247
  directory: string;
243
248
  version: string;
package/dist/index.d.ts CHANGED
@@ -219,25 +219,30 @@ interface LoadKnowledgeOptions {
219
219
  cwd?: string;
220
220
  /** Bundle shipped with @maz-ui/mcp */
221
221
  bundledDir?: string;
222
+ /** Version of the bundled docs, default: the version of @maz-ui/mcp (released together with maz-ui) */
223
+ bundledVersion?: string;
222
224
  }
223
225
  declare class Knowledge {
224
226
  readonly manifest: Manifest;
225
227
  readonly source: KnowledgeSource;
228
+ private readonly documentedVersion;
226
229
  readonly docsById: Map<string, DocEntry>;
227
230
  readonly componentsByName: Map<string, ComponentApi>;
228
231
  readonly iconNames: Set<string>;
229
232
  private readonly cache;
230
- constructor(manifest: Manifest, source: KnowledgeSource);
233
+ /**
234
+ * @param manifest manifest of the docs bundle
235
+ * @param source where the bundle was found
236
+ * @param documentedVersion version of the documented maz-ui, read from a package.json at runtime when possible: the
237
+ * docs are generated before the release bumps the version, so `manifest.version` can be the previous one
238
+ */
239
+ constructor(manifest: Manifest, source: KnowledgeSource, documentedVersion?: string);
231
240
  get version(): string;
232
241
  get docs(): DocEntry[];
233
242
  readDoc(id: string): string;
234
243
  readFile(relativePath: string): string | undefined;
235
244
  }
236
- /**
237
- * Finds the maz-ui package installed in the project: in the `node_modules`
238
- * of the project root and of its direct workspace folders (`apps/*`,
239
- * `packages/*`, for monorepos without hoisting), then in the parent folders.
240
- */
245
+ /** Finds the maz-ui package installed in the project, monorepo workspace folders included */
241
246
  declare function findProjectMazUi(cwd: string): {
242
247
  directory: string;
243
248
  version: string;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { D as DocSearch, K as Knowledge, T as TOOLS, b as buildInstructions, c as countBySeverity, a as createContext, d as createMazUiMcpServer, f as filterBySeverity, e as findProjectMazUi, g as formatFindings, l as loadKnowledge, m as main, r as reviewCode, h as reviewFiles, i as runCli, s as searchIcons, j as startStdioServer } from './shared/mcp.DzqVbCaL.mjs';
1
+ export { D as DocSearch, K as Knowledge, T as TOOLS, b as buildInstructions, c as countBySeverity, a as createContext, d as createMazUiMcpServer, f as filterBySeverity, e as findProjectMazUi, g as formatFindings, l as loadKnowledge, m as main, r as reviewCode, h as reviewFiles, i as runCli, s as searchIcons, j as startStdioServer } from './shared/mcp.DseFuKdl.mjs';
2
2
  export { setupAgents } from '@maz-ui/node';
3
3
  import 'node:buffer';
4
4
  import 'node:path';
@@ -12,3 +12,5 @@ import '@vue/compiler-dom';
12
12
  import 'tinyglobby';
13
13
  import '@modelcontextprotocol/sdk/server/mcp.js';
14
14
  import '@modelcontextprotocol/sdk/server/stdio.js';
15
+ import 'node:child_process';
16
+ import '@babel/parser';