@shwfed/config 2.3.6 → 2.3.8
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 +93005 -0
- package/dist/module.json +1 -1
- package/dist/runtime/components/config/schema.js +1 -0
- package/dist/runtime/components/config/utils/resolve.js +1 -1
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.js +1 -0
- package/package.json +9 -3
package/dist/module.json
CHANGED
|
@@ -4,6 +4,7 @@ import { blockRef } from "./utils/resolve.js";
|
|
|
4
4
|
const KIND = "shwfed.component.page";
|
|
5
5
|
export function PageConfig(configure) {
|
|
6
6
|
const Block = blockRef(configure).annotations({
|
|
7
|
+
identifier: "PageBlock",
|
|
7
8
|
description: "\u9875\u9762\u5757\uFF0C\u7531 `type` \u5B57\u6BB5\u533A\u5206\u7C7B\u578B"
|
|
8
9
|
});
|
|
9
10
|
const PageSlot = Slot(Block, configure);
|
|
@@ -43,7 +43,7 @@ function getOrBuildUnion(configure) {
|
|
|
43
43
|
throw new Error("[shwfed-config] BlockRef resolved before union built \u2014 circular factory init");
|
|
44
44
|
}
|
|
45
45
|
return entry.union;
|
|
46
|
-
});
|
|
46
|
+
}).annotations({ identifier: "PageBlock" });
|
|
47
47
|
unionCache.set(configure, entry);
|
|
48
48
|
registerBlockRef(configure, entry.blockRef);
|
|
49
49
|
entry.members = BLOCKS.map((b) => b.schema(configure, entry.blockRef));
|
|
@@ -69,6 +69,7 @@ export function schema(configure) {
|
|
|
69
69
|
description: "\u914D\u7F6E\u540E\u6BCF\u4E2A\u5217\u8868\u9879\u53EF\u6298\u53E0\uFF0C\u6298\u53E0\u65F6\u5C55\u793A\u6B64\u5904\u6587\u672C\u6E32\u67D3\u7684\u884C\u5185 Markdown \u4F5C\u4E3A\u6458\u8981\u3002\u652F\u6301 `{{ \u8868\u8FBE\u5F0F }}` \u63D2\u503C\uFF0C\u8868\u8FBE\u5F0F\u4E3A CEL\uFF0C\u53EF\u8BBF\u95EE `item`\uFF08\u5F53\u524D\u9879\uFF09\u3001`index`\uFF08\u5E8F\u53F7\uFF0C\u4ECE 0 \u5F00\u59CB\uFF09\u4E0E `form`"
|
|
70
70
|
})),
|
|
71
71
|
unit: Unit.annotations({
|
|
72
|
+
identifier: "FormFieldListUnit",
|
|
72
73
|
title: "\u5217\u8868\u9879\u914D\u7F6E",
|
|
73
74
|
description: "\u5355\u4E2A\u5217\u8868\u9879\u7684\u5B57\u6BB5\u4E0E\u5E03\u5C40\uFF1B\u6BCF\u4E2A\u5217\u8868\u9879\u90FD\u6309\u6B64\u7ED3\u6784\u6E32\u67D3\u4E00\u4EFD"
|
|
74
75
|
})
|
package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.js
CHANGED
|
@@ -31,6 +31,7 @@ export function schema(configure) {
|
|
|
31
31
|
description: "\u8868\u683C\u6570\u636E\u5728\u8868\u5355\u72B6\u6001\u4E2D\u7684 `dot-prop` \u8DEF\u5F84\uFF0C\u4F8B\u5982 `rows`\uFF1B\u8868\u683C\u4ECE `form.<binding>` \u8BFB\u53D6\u884C\u6570\u636E\uFF0C\u672C\u5730\u589E\u5220\u6539\u5B9E\u65F6\u5199\u56DE\u540C\u4E00\u8DEF\u5F84\uFF1B\u7559\u7A7A\u65F6\u8868\u683C\u65E0\u6570\u636E\uFF0C\u884C\u7F16\u8F91\u4E0D\u6301\u4E45\u5316"
|
|
32
32
|
})),
|
|
33
33
|
table: Table.annotations({
|
|
34
|
+
identifier: "FormFieldTableConfig",
|
|
34
35
|
title: "\u8868\u683C\u914D\u7F6E",
|
|
35
36
|
description: "\u5185\u5D4C\u8868\u683C\u7684\u5B8C\u6574\u914D\u7F6E\uFF1B\u6570\u636E\u6E90\u81EA\u52A8\u7ED1\u5B9A\u5230 `form.<binding>`\uFF0C\u65E0\u9700\u5355\u72EC\u914D\u7F6E"
|
|
36
37
|
})
|
package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.js
CHANGED
|
@@ -28,6 +28,7 @@ export function schema(configure) {
|
|
|
28
28
|
description: "\u6302\u8F7D\u65F6\u662F\u5426\u9ED8\u8BA4\u6298\u53E0\uFF1B\u7528\u6237\u70B9\u51FB\u5C55\u5F00/\u6536\u8D77\u540E\u5373\u65F6\u751F\u6548\uFF0C**\u4E0D**\u6301\u4E45\u5316\uFF08\u5378\u8F7D\u5373\u4E22\u5F03\uFF09"
|
|
29
29
|
})),
|
|
30
30
|
unit: Unit.annotations({
|
|
31
|
+
identifier: "FormFieldCollapsibleUnit",
|
|
31
32
|
title: "\u533A\u57DF\u5185\u5BB9",
|
|
32
33
|
description: "\u6298\u53E0\u533A\u57DF\u5185\u7684\u5B57\u6BB5\u4E0E\u5E03\u5C40\uFF1B\u8FD9\u4E9B\u5B57\u6BB5\u5728\u8868\u5355\u72B6\u6001\u4E2D\u4FDD\u6301\u6241\u5E73\uFF0C\u4E0D\u4F1A\u56E0\u4E3A\u5206\u7EC4\u800C\u5F15\u5165\u65B0\u7684\u72B6\u6001\u5C42\u7EA7"
|
|
33
34
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shwfed/config",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8",
|
|
4
4
|
"description": "Configurable UI for SHWFED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"main": "./dist/module.mjs",
|
|
16
|
+
"bin": {
|
|
17
|
+
"config": "./dist/mcp.mjs"
|
|
18
|
+
},
|
|
16
19
|
"typesVersions": {
|
|
17
20
|
"*": {
|
|
18
21
|
".": [
|
|
@@ -28,7 +31,7 @@
|
|
|
28
31
|
],
|
|
29
32
|
"scripts": {
|
|
30
33
|
"prepare": "husky && nuxt prepare",
|
|
31
|
-
"prepack": "nuxt-module-build build",
|
|
34
|
+
"prepack": "nuxt-module-build build && vite build --config vite.mcp.config.ts && chmod +x dist/mcp.mjs",
|
|
32
35
|
"dev": "npm run dev:prepare && nuxt dev playground",
|
|
33
36
|
"dev:build": "nuxt build playground",
|
|
34
37
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
|
|
@@ -45,6 +48,7 @@
|
|
|
45
48
|
"@iconify/vue": "^5.0.1",
|
|
46
49
|
"@internationalized/date": "^3.12.1",
|
|
47
50
|
"@intlify/unplugin-vue-i18n": "^11.1.2",
|
|
51
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
48
52
|
"@nuxt/kit": "^4.4.5",
|
|
49
53
|
"@tailwindcss/typography": "^0.5.19",
|
|
50
54
|
"@tailwindcss/vite": "^4.3.0",
|
|
@@ -66,7 +70,8 @@
|
|
|
66
70
|
"tailwindcss": "^4.3.0",
|
|
67
71
|
"vaul-vue": "^0.4.1",
|
|
68
72
|
"vue-i18n": "^11.4.2",
|
|
69
|
-
"vue-sonner": "^2.0.0"
|
|
73
|
+
"vue-sonner": "^2.0.0",
|
|
74
|
+
"zod": "^4.4.3"
|
|
70
75
|
},
|
|
71
76
|
"devDependencies": {
|
|
72
77
|
"@commitlint/cli": "^21.0.0",
|
|
@@ -87,6 +92,7 @@
|
|
|
87
92
|
"lint-staged": "^17.0.4",
|
|
88
93
|
"nuxt": "^4.4.5",
|
|
89
94
|
"typescript": "~6.0.3",
|
|
95
|
+
"vite": "^7",
|
|
90
96
|
"vitest": "^4.1.6",
|
|
91
97
|
"vue": "^3.5.34",
|
|
92
98
|
"vue-router": "^5.0.7",
|