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

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.4",
4
+ "version": "1.0.0-beta.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -102,6 +102,30 @@ 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, text alignment, links, 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
+ "text align",
121
+ "alignment",
122
+ "insert link"
123
+ ],
124
+ doc: "uikit/form/add-fields.md",
125
+ heading: "WYSIWYG editor",
126
+ seeAlso: ["uikit/form/api.md"],
127
+ summary: "type: 'editor' with attrs.extensions (Tiptap v2), attrs.source (an HTML source view whose value is sanitized and normalized; on by default, app-wide through the module option editor.source), attrs.textAlign (left/centre/right buttons; off by default, app-wide through editor.textAlign) and attrs.toolbar (buttons for the extensions' commands). The toolbar has a Link button and the content is styled without a typography plugin."
128
+ },
105
129
  {
106
130
  id: "block-editor",
107
131
  task: "Build a block editor with a block picker (repeater with templates)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapomodule/mcp",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.6",
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",
@@ -37,6 +37,11 @@ describe("matchRecipes", () => {
37
37
  ["set up the camomilla session cookie", "camomilla"],
38
38
  ["limit the content languages to italian", "content-languages"],
39
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"],
40
45
  ])("maps %j to the %j recipe", (query, expectedId) => {
41
46
  expect(matchRecipes(query)[0]?.id).toBe(expectedId);
42
47
  });
@@ -132,6 +132,31 @@ 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, text alignment, links, 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
+ "text align",
151
+ "alignment",
152
+ "insert link",
153
+ ],
154
+ doc: "uikit/form/add-fields.md",
155
+ heading: "WYSIWYG editor",
156
+ seeAlso: ["uikit/form/api.md"],
157
+ summary:
158
+ "type: 'editor' with attrs.extensions (Tiptap v2), attrs.source (an HTML source view whose value is sanitized and normalized; on by default, app-wide through the module option editor.source), attrs.textAlign (left/centre/right buttons; off by default, app-wide through editor.textAlign) and attrs.toolbar (buttons for the extensions' commands). The toolbar has a Link button and the content is styled without a typography plugin.",
159
+ },
135
160
  {
136
161
  id: "block-editor",
137
162
  task: "Build a block editor with a block picker (repeater with templates)",