@sdata/web-vue-mcp 3.5.0 → 3.7.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/index.js +23 -11
- 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.
|
|
9
|
-
generatedAt: "2026-
|
|
8
|
+
version: "5.5.0",
|
|
9
|
+
generatedAt: "2026-10-02T08:38:22.208Z",
|
|
10
10
|
library: {
|
|
11
11
|
"name": "@sdata/web-vue",
|
|
12
12
|
"framework": "Vue 3",
|
|
@@ -270,6 +270,18 @@ const data = {
|
|
|
270
270
|
}],
|
|
271
271
|
"slots": []
|
|
272
272
|
},
|
|
273
|
+
{
|
|
274
|
+
"name": "sd-markdown-render",
|
|
275
|
+
"title": "Markdown 渲染 MarkdownRender",
|
|
276
|
+
"category": "基础与配置",
|
|
277
|
+
"description": "使用 SD 主题显示 Markdown、流式内容与自定义节点。",
|
|
278
|
+
"docUrl": "https://sd-design.js.org/components/markdown-render",
|
|
279
|
+
"importPath": "@sdata/web-vue",
|
|
280
|
+
"importName": "MarkdownRender",
|
|
281
|
+
"props": [],
|
|
282
|
+
"events": [],
|
|
283
|
+
"slots": []
|
|
284
|
+
},
|
|
273
285
|
{
|
|
274
286
|
"name": "sd-typography",
|
|
275
287
|
"title": "排版 Typography",
|
|
@@ -1855,7 +1867,7 @@ const data = {
|
|
|
1855
1867
|
},
|
|
1856
1868
|
{
|
|
1857
1869
|
"name": "textarea-attrs",
|
|
1858
|
-
"type": "Record<string,
|
|
1870
|
+
"type": "Record<string, unknown>",
|
|
1859
1871
|
"default": "",
|
|
1860
1872
|
"description": {
|
|
1861
1873
|
"zh": "透传给 textarea 的属性",
|
|
@@ -4515,7 +4527,7 @@ const data = {
|
|
|
4515
4527
|
},
|
|
4516
4528
|
{
|
|
4517
4529
|
"name": "row-class",
|
|
4518
|
-
"type": "
|
|
4530
|
+
"type": "| import('../_utils/types').ClassName\n| ((record: TableData, rowIndex: number) => import('../_utils/types').ClassName)",
|
|
4519
4531
|
"default": "",
|
|
4520
4532
|
"description": {
|
|
4521
4533
|
"zh": "表格行元素的类名。`2.34.0` 版本增加函数值支持",
|
|
@@ -6637,7 +6649,7 @@ const data = {
|
|
|
6637
6649
|
{
|
|
6638
6650
|
"name": "simple",
|
|
6639
6651
|
"type": "boolean",
|
|
6640
|
-
"default": "(props:
|
|
6652
|
+
"default": "(props: { simple: boolean; notice: boolean }) => {\n return props.notice;\n}",
|
|
6641
6653
|
"description": {
|
|
6642
6654
|
"zh": "是否开启简单模式",
|
|
6643
6655
|
"en": "Whether to enable simple mode"
|
|
@@ -6735,7 +6747,7 @@ const data = {
|
|
|
6735
6747
|
},
|
|
6736
6748
|
{
|
|
6737
6749
|
"name": "modal-class",
|
|
6738
|
-
"type": "string |
|
|
6750
|
+
"type": "string | string[]",
|
|
6739
6751
|
"default": "",
|
|
6740
6752
|
"description": {
|
|
6741
6753
|
"zh": "对话框的类名",
|
|
@@ -6799,7 +6811,7 @@ const data = {
|
|
|
6799
6811
|
{
|
|
6800
6812
|
"name": "mask-animation-name",
|
|
6801
6813
|
"type": "string",
|
|
6802
|
-
"default": "(props: Record<string,
|
|
6814
|
+
"default": "(props: Record<string, unknown>) => {\n if (props.fullscreen) {\n return 'fade-in-standard';\n }\n return 'fade-modal';\n}",
|
|
6803
6815
|
"description": {
|
|
6804
6816
|
"zh": "遮罩层动画名字",
|
|
6805
6817
|
"en": "Mask layer animation name"
|
|
@@ -6808,7 +6820,7 @@ const data = {
|
|
|
6808
6820
|
{
|
|
6809
6821
|
"name": "modal-animation-name",
|
|
6810
6822
|
"type": "string",
|
|
6811
|
-
"default": "(props: Record<string,
|
|
6823
|
+
"default": "(props: Record<string, unknown>) => {\n if (props.fullscreen) {\n return 'zoom-in';\n }\n return 'zoom-modal';\n}",
|
|
6812
6824
|
"description": {
|
|
6813
6825
|
"zh": "对话框动画名字",
|
|
6814
6826
|
"en": "Modal animation name"
|
|
@@ -6816,7 +6828,7 @@ const data = {
|
|
|
6816
6828
|
},
|
|
6817
6829
|
{
|
|
6818
6830
|
"name": "body-class",
|
|
6819
|
-
"type": "string |
|
|
6831
|
+
"type": "string | string[]",
|
|
6820
6832
|
"default": "",
|
|
6821
6833
|
"description": {
|
|
6822
6834
|
"zh": "对话框内容部分的类名",
|
|
@@ -7061,7 +7073,7 @@ const data = {
|
|
|
7061
7073
|
},
|
|
7062
7074
|
{
|
|
7063
7075
|
"name": "body-class",
|
|
7064
|
-
"type": "string |
|
|
7076
|
+
"type": "string | string[]",
|
|
7065
7077
|
"default": "",
|
|
7066
7078
|
"description": {
|
|
7067
7079
|
"zh": "抽屉内容部分的类名",
|
|
@@ -8528,7 +8540,7 @@ const findByProp = (prop) => {
|
|
|
8528
8540
|
const createServer = () => {
|
|
8529
8541
|
const server = new McpServer({
|
|
8530
8542
|
name: PKG_NAME,
|
|
8531
|
-
version: "3.
|
|
8543
|
+
version: "3.7.0"
|
|
8532
8544
|
});
|
|
8533
8545
|
server.registerTool("list_components", {
|
|
8534
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.
|
|
67
|
+
"version": "3.7.0",
|
|
68
68
|
"scripts": {
|
|
69
|
-
"gen": "node ./scripts/gen-component-data.
|
|
70
|
-
"build": "node ./scripts/build.
|
|
71
|
-
"test": "node ./scripts/build.
|
|
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
|
}
|