@mapomodule/mcp 1.0.0-beta.3 → 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.3",
4
+ "version": "1.0.0-beta.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -163,6 +163,23 @@ export const RECIPES = [
163
163
  seeAlso: ["howto/i18n.md"],
164
164
  summary: "translatable descriptors, per-language models and the detail language switcher."
165
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
+ },
166
183
  {
167
184
  id: "media-manager",
168
185
  task: "Use the media manager and media fields",
@@ -307,11 +324,12 @@ export const RECIPES = [
307
324
  "whenAny",
308
325
  "matchesField",
309
326
  "depends on",
310
- "progressive disclosure"
327
+ "progressive disclosure",
328
+ "hidden"
311
329
  ],
312
330
  doc: "uikit/form/progressive-disclosure.md",
313
- seeAlso: ["howto/form-advanced.md"],
314
- 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."
315
333
  },
316
334
  {
317
335
  id: "form-draft",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapomodule/mcp",
3
- "version": "1.0.0-beta.3",
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,6 +23,7 @@ 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"],
@@ -34,6 +35,8 @@ describe("matchRecipes", () => {
34
35
  ["TS2307 cannot find module mapomodule/types", "imports"],
35
36
  ["connect claude code or copilot through mcp", "ai-assistant"],
36
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"],
37
40
  ])("maps %j to the %j recipe", (query, expectedId) => {
38
41
  expect(matchRecipes(query)[0]?.id).toBe(expectedId);
39
42
  });
@@ -197,6 +197,24 @@ export const RECIPES: Recipe[] = [
197
197
  summary:
198
198
  "translatable descriptors, per-language models and the detail language switcher.",
199
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
+ },
200
218
  {
201
219
  id: "media-manager",
202
220
  task: "Use the media manager and media fields",
@@ -349,11 +367,12 @@ export const RECIPES: Recipe[] = [
349
367
  "matchesField",
350
368
  "depends on",
351
369
  "progressive disclosure",
370
+ "hidden",
352
371
  ],
353
372
  doc: "uikit/form/progressive-disclosure.md",
354
- seeAlso: ["howto/form-advanced.md"],
373
+ seeAlso: ["howto/form-advanced.md", "uikit/form/index.md"],
355
374
  summary:
356
- "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.",
357
376
  },
358
377
  {
359
378
  id: "form-draft",