@sdata/web-vue-mcp 3.6.0 → 3.7.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 (2) hide show
  1. package/dist/index.js +11 -11
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -5,8 +5,8 @@ import * as z from "zod/v4";
5
5
  //#endregion
6
6
  //#region src/index.ts
7
7
  const data = {
8
- version: "5.4.0",
9
- generatedAt: "2026-10-02T02:14:05.590Z",
8
+ version: "5.6.0",
9
+ generatedAt: "2026-10-02T15:38:35.039Z",
10
10
  library: {
11
11
  "name": "@sdata/web-vue",
12
12
  "framework": "Vue 3",
@@ -1867,7 +1867,7 @@ const data = {
1867
1867
  },
1868
1868
  {
1869
1869
  "name": "textarea-attrs",
1870
- "type": "Record<string, any>",
1870
+ "type": "Record<string, unknown>",
1871
1871
  "default": "",
1872
1872
  "description": {
1873
1873
  "zh": "透传给 textarea 的属性",
@@ -4527,7 +4527,7 @@ const data = {
4527
4527
  },
4528
4528
  {
4529
4529
  "name": "row-class",
4530
- "type": "string | any[] | Record<string, any> | ((record: TableData, rowIndex: number) => any)",
4530
+ "type": "| import('../_utils/types').ClassName\n| ((record: TableData, rowIndex: number) => import('../_utils/types').ClassName)",
4531
4531
  "default": "",
4532
4532
  "description": {
4533
4533
  "zh": "表格行元素的类名。`2.34.0` 版本增加函数值支持",
@@ -6649,7 +6649,7 @@ const data = {
6649
6649
  {
6650
6650
  "name": "simple",
6651
6651
  "type": "boolean",
6652
- "default": "(props: any) => {\n return props.notice;\n}",
6652
+ "default": "(props: { simple: boolean; notice: boolean }) => {\n return props.notice;\n}",
6653
6653
  "description": {
6654
6654
  "zh": "是否开启简单模式",
6655
6655
  "en": "Whether to enable simple mode"
@@ -6747,7 +6747,7 @@ const data = {
6747
6747
  },
6748
6748
  {
6749
6749
  "name": "modal-class",
6750
- "type": "string | any[]",
6750
+ "type": "string | string[]",
6751
6751
  "default": "",
6752
6752
  "description": {
6753
6753
  "zh": "对话框的类名",
@@ -6811,7 +6811,7 @@ const data = {
6811
6811
  {
6812
6812
  "name": "mask-animation-name",
6813
6813
  "type": "string",
6814
- "default": "(props: Record<string, any>) => {\n if (props.fullscreen) {\n return 'fade-in-standard';\n }\n return 'fade-modal';\n}",
6814
+ "default": "(props: Record<string, unknown>) => {\n if (props.fullscreen) {\n return 'fade-in-standard';\n }\n return 'fade-modal';\n}",
6815
6815
  "description": {
6816
6816
  "zh": "遮罩层动画名字",
6817
6817
  "en": "Mask layer animation name"
@@ -6820,7 +6820,7 @@ const data = {
6820
6820
  {
6821
6821
  "name": "modal-animation-name",
6822
6822
  "type": "string",
6823
- "default": "(props: Record<string, any>) => {\n if (props.fullscreen) {\n return 'zoom-in';\n }\n return 'zoom-modal';\n}",
6823
+ "default": "(props: Record<string, unknown>) => {\n if (props.fullscreen) {\n return 'zoom-in';\n }\n return 'zoom-modal';\n}",
6824
6824
  "description": {
6825
6825
  "zh": "对话框动画名字",
6826
6826
  "en": "Modal animation name"
@@ -6828,7 +6828,7 @@ const data = {
6828
6828
  },
6829
6829
  {
6830
6830
  "name": "body-class",
6831
- "type": "string | any[]",
6831
+ "type": "string | string[]",
6832
6832
  "default": "",
6833
6833
  "description": {
6834
6834
  "zh": "对话框内容部分的类名",
@@ -7073,7 +7073,7 @@ const data = {
7073
7073
  },
7074
7074
  {
7075
7075
  "name": "body-class",
7076
- "type": "string | any[]",
7076
+ "type": "string | string[]",
7077
7077
  "default": "",
7078
7078
  "description": {
7079
7079
  "zh": "抽屉内容部分的类名",
@@ -8540,7 +8540,7 @@ const findByProp = (prop) => {
8540
8540
  const createServer = () => {
8541
8541
  const server = new McpServer({
8542
8542
  name: PKG_NAME,
8543
- version: "3.6.0"
8543
+ version: "3.7.1"
8544
8544
  });
8545
8545
  server.registerTool("list_components", {
8546
8546
  description: "List all SD Design components with their category, bilingual title and API size. Optionally filter by category. Use this first to discover what is available.",
package/package.json CHANGED
@@ -64,11 +64,11 @@
64
64
  "engines": {
65
65
  "node": ">=20"
66
66
  },
67
- "version": "3.6.0",
67
+ "version": "3.7.1",
68
68
  "scripts": {
69
- "gen": "node ./scripts/gen-component-data.mjs",
70
- "build": "node ./scripts/build.mjs",
71
- "test": "node ./scripts/build.mjs 9.8.7-test && node --test ./test/*.test.mjs",
69
+ "gen": "node ./scripts/gen-component-data.ts",
70
+ "build": "node ./scripts/build.ts",
71
+ "test": "node ./scripts/build.ts 9.8.7-test && node --test ./test/*.test.ts",
72
72
  "typecheck": "pnpm run gen && tsc --noEmit",
73
73
  "dev:link": "pnpm link --global && npm link"
74
74
  }