@mapomodule/mcp 1.0.0-beta.3 → 1.0.0-beta.5

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.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -102,6 +102,27 @@ 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: "rich-text-editor",
107
+ // No "editor" here: the word already points at the menu and block editors.
108
+ task: "Customize a rich text (WYSIWYG) field: Tiptap extensions, HTML source view, toolbar buttons",
109
+ keywords: [
110
+ "wysiwyg",
111
+ "rich text",
112
+ "tiptap",
113
+ "extensions",
114
+ "html source",
115
+ "source view",
116
+ "edit html",
117
+ "toolbar button",
118
+ "insert table",
119
+ "table"
120
+ ],
121
+ doc: "uikit/form/add-fields.md",
122
+ heading: "WYSIWYG editor",
123
+ seeAlso: ["uikit/form/api.md"],
124
+ summary: "type: 'editor' with attrs.extensions (Tiptap v2), attrs.source (an HTML source view whose value is sanitized and normalized) and attrs.toolbar (buttons for the extensions' commands)."
125
+ },
105
126
  {
106
127
  id: "block-editor",
107
128
  task: "Build a block editor with a block picker (repeater with templates)",
@@ -163,6 +184,23 @@ export const RECIPES = [
163
184
  seeAlso: ["howto/i18n.md"],
164
185
  summary: "translatable descriptors, per-language models and the detail language switcher."
165
186
  },
187
+ {
188
+ id: "content-languages",
189
+ task: "Limit the content languages to a subset",
190
+ keywords: [
191
+ "contentLanguages",
192
+ "content languages",
193
+ "single language",
194
+ "italian",
195
+ "hide language tabs",
196
+ "lang_info",
197
+ "forceLanguages"
198
+ ],
199
+ doc: "uikit/form/i18n.md",
200
+ heading: "How to: limit the content languages",
201
+ seeAlso: ["uikit/detail.md", "uikit/menu-manager.md", "uikit/media.md"],
202
+ summary: "mapo.uikit.contentLanguages narrows the languages of MapoDetail, the menu manager and the media editor; one left means no switch."
203
+ },
166
204
  {
167
205
  id: "media-manager",
168
206
  task: "Use the media manager and media fields",
@@ -307,11 +345,12 @@ export const RECIPES = [
307
345
  "whenAny",
308
346
  "matchesField",
309
347
  "depends on",
310
- "progressive disclosure"
348
+ "progressive disclosure",
349
+ "hidden"
311
350
  ],
312
351
  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."
352
+ seeAlso: ["howto/form-advanced.md", "uikit/form/index.md"],
353
+ 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
354
  },
316
355
  {
317
356
  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.5",
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,13 @@ 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"],
40
+ [
41
+ "let editors see and edit the html source of the editor",
42
+ "rich-text-editor",
43
+ ],
44
+ ["add an insert table button to the wysiwyg toolbar", "rich-text-editor"],
37
45
  ])("maps %j to the %j recipe", (query, expectedId) => {
38
46
  expect(matchRecipes(query)[0]?.id).toBe(expectedId);
39
47
  });
@@ -132,6 +132,28 @@ 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: "rich-text-editor",
137
+ // No "editor" here: the word already points at the menu and block editors.
138
+ task: "Customize a rich text (WYSIWYG) field: Tiptap extensions, HTML source view, toolbar buttons",
139
+ keywords: [
140
+ "wysiwyg",
141
+ "rich text",
142
+ "tiptap",
143
+ "extensions",
144
+ "html source",
145
+ "source view",
146
+ "edit html",
147
+ "toolbar button",
148
+ "insert table",
149
+ "table",
150
+ ],
151
+ doc: "uikit/form/add-fields.md",
152
+ heading: "WYSIWYG editor",
153
+ seeAlso: ["uikit/form/api.md"],
154
+ summary:
155
+ "type: 'editor' with attrs.extensions (Tiptap v2), attrs.source (an HTML source view whose value is sanitized and normalized) and attrs.toolbar (buttons for the extensions' commands).",
156
+ },
135
157
  {
136
158
  id: "block-editor",
137
159
  task: "Build a block editor with a block picker (repeater with templates)",
@@ -197,6 +219,24 @@ export const RECIPES: Recipe[] = [
197
219
  summary:
198
220
  "translatable descriptors, per-language models and the detail language switcher.",
199
221
  },
222
+ {
223
+ id: "content-languages",
224
+ task: "Limit the content languages to a subset",
225
+ keywords: [
226
+ "contentLanguages",
227
+ "content languages",
228
+ "single language",
229
+ "italian",
230
+ "hide language tabs",
231
+ "lang_info",
232
+ "forceLanguages",
233
+ ],
234
+ doc: "uikit/form/i18n.md",
235
+ heading: "How to: limit the content languages",
236
+ seeAlso: ["uikit/detail.md", "uikit/menu-manager.md", "uikit/media.md"],
237
+ summary:
238
+ "mapo.uikit.contentLanguages narrows the languages of MapoDetail, the menu manager and the media editor; one left means no switch.",
239
+ },
200
240
  {
201
241
  id: "media-manager",
202
242
  task: "Use the media manager and media fields",
@@ -349,11 +389,12 @@ export const RECIPES: Recipe[] = [
349
389
  "matchesField",
350
390
  "depends on",
351
391
  "progressive disclosure",
392
+ "hidden",
352
393
  ],
353
394
  doc: "uikit/form/progressive-disclosure.md",
354
- seeAlso: ["howto/form-advanced.md"],
395
+ seeAlso: ["howto/form-advanced.md", "uikit/form/index.md"],
355
396
  summary:
356
- "visible and show predicates built with the when/matchesField matcher helpers.",
397
+ "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
398
  },
358
399
  {
359
400
  id: "form-draft",