@smwb/ui-mcp-solid 2.6.1 → 2.7.0

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.
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "Markdown",
3
+ "description": "Markdown text (CommonMark + GFM: tables, task lists, strikethrough, autolinks) drawn as elements, never as HTML: raw HTML shows as text, unsafe link schemes never become links; code blocks and tables scroll inside themselves.",
4
+ "ssr": {
5
+ "safe": true,
6
+ "rendering": "universal"
7
+ },
8
+ "extends": [
9
+ "Omit<\n JSX.HTMLAttributes<HTMLDivElement>,\n \"children\" | \"innerHTML\" | \"textContent\" | \"innerText\"\n>"
10
+ ],
11
+ "inheritedAttributes": "Also accepts standard HTML attributes for the underlying element (see extends clause in TypeScript).",
12
+ "styles": {
13
+ "base": [
14
+ "@smwb/ui-styles/less/foundation.less",
15
+ "@smwb/ui-styles/less/theme.less"
16
+ ],
17
+ "entries": [
18
+ "@smwb/ui-styles/less/components/markdown/markdown.entry.less"
19
+ ],
20
+ "dependencies": [],
21
+ "importExample": "@import (less) \"node_modules/@smwb/ui-styles/less/foundation.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/theme.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/markdown/markdown.entry.less\";"
22
+ },
23
+ "props": {
24
+ "source": {
25
+ "type": "string",
26
+ "required": true,
27
+ "description": "The text: CommonMark with the GFM tables, task lists, strikethrough, autolinks and footnotes. It is drawn as\nelements, never as HTML: raw HTML in it shows as text, except that an HTML comment is dropped and a bare `<br>`\nbreaks the line. An empty or blank text draws an empty root."
28
+ },
29
+ "allowedProtocols": {
30
+ "type": "readonly string[] | undefined",
31
+ "required": false,
32
+ "description": "URL schemes a link or an image may use, lower case with the colon. By default `[\"http:\", \"https:\", \"mailto:\"]`.\nA relative address (`/path`, `#part`, `page.md`) is always allowed. `javascript:`, `vbscript:` and `data:` are\nnever allowed, even when listed.\n\nA relative address is not always on the same site: `//host/x`, `\\\\host` and `/\\host` lead to another host, and an\ninline image fetches its relative address from the page's own origin with the page's cookies. For untrusted text,\nreject such addresses with `urlTransform` or draw images as links (`images=\"link\"`)."
33
+ },
34
+ "urlTransform": {
35
+ "type": "((url: string, kind: MarkdownUrlKind) => string | null | undefined) | undefined",
36
+ "required": false,
37
+ "description": "Rewrites or rejects an address that passed the scheme check: return the address to use, or `null`, `undefined`\nor `\"\"` to reject it. What it returns is checked again. A rejected link draws its text, a rejected image its alt\ntext."
38
+ },
39
+ "linkTarget": {
40
+ "type": "string | null | undefined",
41
+ "required": false,
42
+ "description": "Where links open, as `Button`'s `target`: `\"_blank\"` unless given; `null` or `\"\"` leaves the attribute out."
43
+ },
44
+ "linkRel": {
45
+ "type": "string | undefined",
46
+ "required": false,
47
+ "description": "The `rel` of links, as `Button`'s `rel`: `\"noreferrer\"` for a link that opens elsewhere unless given; `\"\"` drops it."
48
+ },
49
+ "onLinkClick": {
50
+ "type": "((event: MouseEvent, href: string) => void) | undefined",
51
+ "required": false,
52
+ "description": "Called on a click on a link (an image drawn as a link too) with the `href` it carries. Call\n`event.preventDefault()` to open it your own way, e.g. through a desktop shell; otherwise the browser follows it."
53
+ },
54
+ "images": {
55
+ "type": "MarkdownImages | undefined",
56
+ "required": false,
57
+ "description": "`inline` (default) or `link`; see `MarkdownImages`."
58
+ },
59
+ "headingOffset": {
60
+ "type": "number | undefined",
61
+ "required": false,
62
+ "description": "Added to each heading level: with 2 a `#` heading is an `<h3>`. Levels stop at `<h6>`; the look follows the\nMarkdown level, not the tag. Default 0."
63
+ },
64
+ "breaks": {
65
+ "type": "boolean | undefined",
66
+ "required": false,
67
+ "description": "A single line break inside a paragraph draws `<br>`, as GitHub comments do. Default `false` (CommonMark: a space)."
68
+ },
69
+ "maxLength": {
70
+ "type": "number | undefined",
71
+ "required": false,
72
+ "description": "A longer text is not parsed: it shows as plain text with its line breaks; the root gets `data-plain`. Default\n100000. A text whose quotes, lists and inline elements nest 32 levels deep shows the same way."
73
+ },
74
+ "data-testid": {
75
+ "type": "string | undefined",
76
+ "required": false,
77
+ "description": "Test id of the root `<div>`; `markdown` unless given."
78
+ },
79
+ "ref": {
80
+ "type": "Ref<HTMLDivElement>",
81
+ "required": false,
82
+ "description": "Ref. Optional. Type: Ref<HTMLDivElement>."
83
+ }
84
+ }
85
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smwb/ui-mcp-solid",
3
- "version": "2.6.1",
3
+ "version": "2.7.0",
4
4
  "description": "Model Context Protocol server exposing the @smwb/ui-solid (SolidJS) component catalog and customization guide.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,8 +28,8 @@
28
28
  "zod": "^4.4.3"
29
29
  },
30
30
  "devDependencies": {
31
- "@smwb/ui-solid": "^2.6.1",
32
- "@smwb/ui-styles": "^2.7.0",
31
+ "@smwb/ui-solid": "^2.7.0",
32
+ "@smwb/ui-styles": "^2.8.0",
33
33
  "glob": "^13.0.6",
34
34
  "typescript": "^6.0.3",
35
35
  "vitest": "^2.1.9"