@mapomodule/mcp 1.0.0-beta.2 → 1.0.0-beta.4

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapomodule/mcp",
3
3
  "configKey": "mapoMcp",
4
- "version": "1.0.0-beta.2",
4
+ "version": "1.0.0-beta.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -102,6 +102,23 @@ export const RECIPES = [
102
102
  seeAlso: ["uikit/form/index.md"],
103
103
  summary: "Every built-in field type, the component behind it and its attrs."
104
104
  },
105
+ {
106
+ id: "block-editor",
107
+ task: "Build a block editor with a block picker (repeater with templates)",
108
+ keywords: [
109
+ "block editor",
110
+ "block picker",
111
+ "repeater templates",
112
+ "page builder",
113
+ "RepeaterTemplate",
114
+ "picker",
115
+ "content blocks"
116
+ ],
117
+ doc: "howto/form-advanced.md",
118
+ heading: "Describe blocks and choose them in a picker",
119
+ seeAlso: ["uikit/form/api.md", "uikit/form/add-fields.md"],
120
+ summary: "attrs.templates with label, icon, image and category, and attrs.picker (select or modal)."
121
+ },
105
122
  {
106
123
  id: "custom-field",
107
124
  task: "Create and register a custom field type",
@@ -146,6 +163,23 @@ export const RECIPES = [
146
163
  seeAlso: ["howto/i18n.md"],
147
164
  summary: "translatable descriptors, per-language models and the detail language switcher."
148
165
  },
166
+ {
167
+ id: "content-languages",
168
+ task: "Limit the content languages to a subset",
169
+ keywords: [
170
+ "contentLanguages",
171
+ "content languages",
172
+ "single language",
173
+ "italian",
174
+ "hide language tabs",
175
+ "lang_info",
176
+ "forceLanguages"
177
+ ],
178
+ doc: "uikit/form/i18n.md",
179
+ heading: "How to: limit the content languages",
180
+ seeAlso: ["uikit/detail.md", "uikit/menu-manager.md", "uikit/media.md"],
181
+ summary: "mapo.uikit.contentLanguages narrows the languages of MapoDetail, the menu manager and the media editor; one left means no switch."
182
+ },
149
183
  {
150
184
  id: "media-manager",
151
185
  task: "Use the media manager and media fields",
@@ -290,11 +324,12 @@ export const RECIPES = [
290
324
  "whenAny",
291
325
  "matchesField",
292
326
  "depends on",
293
- "progressive disclosure"
327
+ "progressive disclosure",
328
+ "hidden"
294
329
  ],
295
330
  doc: "uikit/form/progressive-disclosure.md",
296
- seeAlso: ["howto/form-advanced.md"],
297
- summary: "visible and show predicates built with the when/matchesField matcher helpers."
331
+ seeAlso: ["howto/form-advanced.md", "uikit/form/index.md"],
332
+ summary: "visible and show predicates built with the when/matchesField matcher helpers; a group card, sub-tab or tab with no field to show leaves the layout."
298
333
  },
299
334
  {
300
335
  id: "form-draft",
@@ -358,11 +393,13 @@ export const RECIPES = [
358
393
  "icon",
359
394
  "label",
360
395
  "sidebarFooter",
396
+ "sidebarOrder",
397
+ "reorder menu",
361
398
  "route meta"
362
399
  ],
363
400
  doc: "uikit/sidebar.md",
364
401
  seeAlso: ["howto/first-admin-page.md"],
365
- summary: "Route metadata (label, icon, parent, sidebarFooter) builds the sidebar tree, with no menu config."
402
+ summary: "Route metadata builds the sidebar tree without menu config; use sidebarOrder to sort sibling entries."
366
403
  },
367
404
  {
368
405
  id: "login-page",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapomodule/mcp",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "Mapo MCP server: grounded docs, component and field APIs, live app introspection and scaffolding for AI assistants",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,15 +23,20 @@ describe("matchRecipes", () => {
23
23
  ["protect the dashboard route with permissions", "auth-permissions"],
24
24
  ["how do the packages fit together", "concepts"],
25
25
  ["show a field only when another field is checked", "conditional-fields"],
26
+ ["a hidden field leaves an empty gap in the form", "conditional-fields"],
26
27
  ["autosave a draft while the user edits", "form-draft"],
27
28
  ["generate the fields from a json schema", "schema-to-form"],
28
29
  ["put a hint below one form field with a slot", "form-slots"],
29
30
  ["edit a repeater item fullscreen", "focus-mode"],
31
+ ["let editors choose a content block from a block picker", "block-editor"],
30
32
  ["add my page to the sidebar with an icon", "sidebar-navigation"],
33
+ ["how to reorder sidebar/menu entries", "sidebar-navigation"],
31
34
  ["change the branding of the login page", "login-page"],
32
35
  ["TS2307 cannot find module mapomodule/types", "imports"],
33
36
  ["connect claude code or copilot through mcp", "ai-assistant"],
34
37
  ["set up the camomilla session cookie", "camomilla"],
38
+ ["limit the content languages to italian", "content-languages"],
39
+ ["hide the language tabs on a single language site", "content-languages"],
35
40
  ])("maps %j to the %j recipe", (query, expectedId) => {
36
41
  expect(matchRecipes(query)[0]?.id).toBe(expectedId);
37
42
  });
@@ -132,6 +132,24 @@ export const RECIPES: Recipe[] = [
132
132
  summary:
133
133
  "Every built-in field type, the component behind it and its attrs.",
134
134
  },
135
+ {
136
+ id: "block-editor",
137
+ task: "Build a block editor with a block picker (repeater with templates)",
138
+ keywords: [
139
+ "block editor",
140
+ "block picker",
141
+ "repeater templates",
142
+ "page builder",
143
+ "RepeaterTemplate",
144
+ "picker",
145
+ "content blocks",
146
+ ],
147
+ doc: "howto/form-advanced.md",
148
+ heading: "Describe blocks and choose them in a picker",
149
+ seeAlso: ["uikit/form/api.md", "uikit/form/add-fields.md"],
150
+ summary:
151
+ "attrs.templates with label, icon, image and category, and attrs.picker (select or modal).",
152
+ },
135
153
  {
136
154
  id: "custom-field",
137
155
  task: "Create and register a custom field type",
@@ -179,6 +197,24 @@ export const RECIPES: Recipe[] = [
179
197
  summary:
180
198
  "translatable descriptors, per-language models and the detail language switcher.",
181
199
  },
200
+ {
201
+ id: "content-languages",
202
+ task: "Limit the content languages to a subset",
203
+ keywords: [
204
+ "contentLanguages",
205
+ "content languages",
206
+ "single language",
207
+ "italian",
208
+ "hide language tabs",
209
+ "lang_info",
210
+ "forceLanguages",
211
+ ],
212
+ doc: "uikit/form/i18n.md",
213
+ heading: "How to: limit the content languages",
214
+ seeAlso: ["uikit/detail.md", "uikit/menu-manager.md", "uikit/media.md"],
215
+ summary:
216
+ "mapo.uikit.contentLanguages narrows the languages of MapoDetail, the menu manager and the media editor; one left means no switch.",
217
+ },
182
218
  {
183
219
  id: "media-manager",
184
220
  task: "Use the media manager and media fields",
@@ -331,11 +367,12 @@ export const RECIPES: Recipe[] = [
331
367
  "matchesField",
332
368
  "depends on",
333
369
  "progressive disclosure",
370
+ "hidden",
334
371
  ],
335
372
  doc: "uikit/form/progressive-disclosure.md",
336
- seeAlso: ["howto/form-advanced.md"],
373
+ seeAlso: ["howto/form-advanced.md", "uikit/form/index.md"],
337
374
  summary:
338
- "visible and show predicates built with the when/matchesField matcher helpers.",
375
+ "visible and show predicates built with the when/matchesField matcher helpers; a group card, sub-tab or tab with no field to show leaves the layout.",
339
376
  },
340
377
  {
341
378
  id: "form-draft",
@@ -403,12 +440,14 @@ export const RECIPES: Recipe[] = [
403
440
  "icon",
404
441
  "label",
405
442
  "sidebarFooter",
443
+ "sidebarOrder",
444
+ "reorder menu",
406
445
  "route meta",
407
446
  ],
408
447
  doc: "uikit/sidebar.md",
409
448
  seeAlso: ["howto/first-admin-page.md"],
410
449
  summary:
411
- "Route metadata (label, icon, parent, sidebarFooter) builds the sidebar tree, with no menu config.",
450
+ "Route metadata builds the sidebar tree without menu config; use sidebarOrder to sort sibling entries.",
412
451
  },
413
452
  {
414
453
  id: "login-page",