@sdata/web-vue-mcp 3.10.0 → 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.
Files changed (2) hide show
  1. package/dist/index.js +36 -130
  2. package/package.json +1 -1
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.8.7",
9
- generatedAt: "2026-10-06T06:07:37.435Z",
8
+ version: "5.9.0",
9
+ generatedAt: "2026-10-06T10:20:14.947Z",
10
10
  library: {
11
11
  "name": "@sdata/web-vue",
12
12
  "framework": "Vue 3",
@@ -1407,75 +1407,57 @@ const data = {
1407
1407
  }]
1408
1408
  },
1409
1409
  {
1410
- "name": "sd-split",
1411
- "title": "面板分割 Split",
1410
+ "name": "sd-panel-group",
1411
+ "title": "面板组 PanelGroup",
1412
1412
  "category": "布局",
1413
- "description": "将面板分割成两部分。",
1414
- "docUrl": "https://sd-design.js.org/components/split",
1413
+ "description": "可拖拽伸缩、带折叠动画的面板布局组件组,统一替代 Split 和 ResizeBox。",
1414
+ "docUrl": "https://sd-design.js.org/components/panel-group",
1415
1415
  "importPath": "@sdata/web-vue",
1416
- "importName": "Split",
1416
+ "importName": "PanelGroup",
1417
1417
  "props": [
1418
1418
  {
1419
- "name": "component",
1420
- "type": "string",
1421
- "default": "'div'",
1419
+ "name": "orientation",
1420
+ "type": "\"horizontal\" | \"vertical\" | undefined",
1421
+ "default": "",
1422
1422
  "description": {
1423
- "zh": "分割框的 html 标签",
1424
- "en": "The html tag of the split box"
1423
+ "zh": "面板排列方向,可动态切换",
1424
+ "en": "Panel orientation, supports runtime changes"
1425
1425
  }
1426
1426
  },
1427
1427
  {
1428
- "name": "direction",
1428
+ "name": "component",
1429
1429
  "type": "string",
1430
- "default": "'horizontal'",
1431
- "description": {
1432
- "zh": "分割的方向",
1433
- "en": "Direction of division"
1434
- }
1435
- },
1436
- {
1437
- "name": "size",
1438
- "type": "number|string",
1439
- "default": "undefined",
1440
- "description": {
1441
- "zh": "分割的大小,可以是 0~1 代表百分比,或具体数值的像素,如 300px",
1442
- "en": "The size of the segmentation, it can be 0~1 representing a percentage, or a specific number of pixels, such as 300px"
1443
- }
1444
- },
1445
- {
1446
- "name": "default-size",
1447
- "type": "number|string",
1448
- "default": "0.5",
1430
+ "default": "",
1449
1431
  "description": {
1450
- "zh": "默认分割的大小,可以是 0~1 代表百分比,或具体数值的像素,如 300px",
1451
- "en": "Default split size, it can be 0~1 representing a percentage, or a specific number of pixels, such as 300px"
1432
+ "zh": "面板组的 HTML 标签",
1433
+ "en": "HTML tag of the panel group"
1452
1434
  }
1453
1435
  },
1454
1436
  {
1455
- "name": "min",
1456
- "type": "number|string",
1437
+ "name": "disabled",
1438
+ "type": "boolean",
1457
1439
  "default": "",
1458
1440
  "description": {
1459
- "zh": "最小阈值,可以是 0~1 代表百分比,或具体数值的像素,如 300px",
1460
- "en": "Minimum threshold, it can be 0~1 representing a percentage, or a specific number of pixels, such as 300px"
1441
+ "zh": "禁用组内尺寸调整并隐藏伸缩杆",
1442
+ "en": "Disable resizing and hide separators in this group"
1461
1443
  }
1462
1444
  },
1463
1445
  {
1464
- "name": "max",
1465
- "type": "number|string",
1446
+ "name": "reorder",
1447
+ "type": "boolean",
1466
1448
  "default": "",
1467
1449
  "description": {
1468
- "zh": "最大阈值,可以是 0~1 代表百分比,或具体数值的像素,如 300px",
1469
- "en": "Maximum threshold, it can be 0~1 representing a percentage, or a specific number of pixels, such as 300px"
1450
+ "zh": "面板重排时是否播放位移动画",
1451
+ "en": "Play FLIP animation when panels reorder"
1470
1452
  }
1471
1453
  },
1472
1454
  {
1473
- "name": "disabled",
1474
- "type": "boolean",
1475
- "default": "false",
1455
+ "name": "transition",
1456
+ "type": "PanelTransition",
1457
+ "default": "",
1476
1458
  "description": {
1477
- "zh": "是否禁用",
1478
- "en": "Whether to disable"
1459
+ "zh": "重排动画的过渡配置(毫秒)",
1460
+ "en": "Transition for reorder animations (milliseconds)"
1479
1461
  }
1480
1462
  }
1481
1463
  ],
@@ -1483,101 +1465,25 @@ const data = {
1483
1465
  {
1484
1466
  "name": "move-start",
1485
1467
  "description": {
1486
- "zh": "",
1487
- "en": ""
1468
+ "zh": "开始拖拽之前触发",
1469
+ "en": "Emitted before dragging starts"
1488
1470
  }
1489
1471
  },
1490
1472
  {
1491
1473
  "name": "moving",
1492
1474
  "description": {
1493
- "zh": "",
1494
- "en": ""
1475
+ "zh": "拖拽时触发",
1476
+ "en": "Emitted while dragging"
1495
1477
  }
1496
1478
  },
1497
1479
  {
1498
1480
  "name": "move-end",
1499
1481
  "description": {
1500
- "zh": "",
1501
- "en": ""
1502
- }
1503
- },
1504
- {
1505
- "name": "update:size",
1506
- "description": {
1507
- "zh": "",
1508
- "en": ""
1509
- }
1510
- }
1511
- ],
1512
- "slots": [
1513
- {
1514
- "name": "first",
1515
- "description": {
1516
- "zh": "",
1517
- "en": ""
1518
- }
1519
- },
1520
- {
1521
- "name": "resize-trigger",
1522
- "description": {
1523
- "zh": "",
1524
- "en": ""
1525
- }
1526
- },
1527
- {
1528
- "name": "resize-trigger-icon",
1529
- "description": {
1530
- "zh": "",
1531
- "en": ""
1532
- }
1533
- },
1534
- {
1535
- "name": "second",
1536
- "description": {
1537
- "zh": "",
1538
- "en": ""
1539
- }
1540
- }
1541
- ]
1542
- },
1543
- {
1544
- "name": "sd-panel-group",
1545
- "title": "面板组 PanelGroup",
1546
- "category": "布局",
1547
- "description": "可拖拽伸缩、带折叠动画的面板布局组件组,用于替代 ResizeBox。",
1548
- "docUrl": "https://sd-design.js.org/components/panel-group",
1549
- "importPath": "@sdata/web-vue",
1550
- "importName": "PanelGroup",
1551
- "props": [
1552
- {
1553
- "name": "orientation",
1554
- "type": "\"horizontal\" | \"vertical\" | undefined",
1555
- "default": "",
1556
- "description": {
1557
- "zh": "面板排列方向,仅初始化时生效",
1558
- "en": "Orientation, fixed at mount"
1559
- }
1560
- },
1561
- {
1562
- "name": "reorder",
1563
- "type": "boolean",
1564
- "default": "",
1565
- "description": {
1566
- "zh": "面板重排时是否播放位移动画",
1567
- "en": "Play FLIP animation when panels reorder"
1568
- }
1569
- },
1570
- {
1571
- "name": "transition",
1572
- "type": "PanelTransition",
1573
- "default": "",
1574
- "description": {
1575
- "zh": "重排动画的过渡配置(毫秒)",
1576
- "en": "Transition for reorder animations (milliseconds)"
1482
+ "zh": "拖拽结束后触发",
1483
+ "en": "Emitted after dragging ends"
1577
1484
  }
1578
1485
  }
1579
1486
  ],
1580
- "events": [],
1581
1487
  "slots": [{
1582
1488
  "name": "default",
1583
1489
  "description": {
@@ -18937,7 +18843,7 @@ const findByProp = (prop) => {
18937
18843
  const createServer = () => {
18938
18844
  const server = new McpServer({
18939
18845
  name: PKG_NAME,
18940
- version: "3.10.0"
18846
+ version: "4.0.0"
18941
18847
  });
18942
18848
  server.registerTool("list_components", {
18943
18849
  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,7 +64,7 @@
64
64
  "engines": {
65
65
  "node": ">=20"
66
66
  },
67
- "version": "3.10.0",
67
+ "version": "4.0.0",
68
68
  "scripts": {
69
69
  "gen": "node ./scripts/gen-component-data.ts",
70
70
  "build": "node ./scripts/build.ts",