bestax-mcp 1.18.42 → 1.18.44
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/data/bulma-classes.json +1 -1
- package/data/catalog.json +1 -1
- package/data/components/Message.json +1 -1
- package/data/components/Slider.json +1 -1
- package/data/skills/bestax-migrate/references/bulma-classes/unmappables.md +2 -1
- package/data/skills/bestax-migrate/references/rbx/prop-map.md +4 -1
- package/data/skills/bestax-migrate/references/rbx/unmappables.md +2 -2
- package/data/skills/bestax-migrate/references/react-bulma-components/component-map.md +1 -1
- package/data/skills/bestax-migrate/references/react-bulma-components/prop-map.md +3 -1
- package/data/skills/bestax-migrate/references/react-bulma-components/unmappables.md +9 -4
- package/data/skills.json +5 -5
- package/package.json +2 -2
package/data/bulma-classes.json
CHANGED
|
@@ -3961,7 +3961,7 @@
|
|
|
3961
3961
|
"textColor": null,
|
|
3962
3962
|
"bgColor": null,
|
|
3963
3963
|
"part": false,
|
|
3964
|
-
"why": "bestax `Message`
|
|
3964
|
+
"why": "bestax `Message` writes a `data-testid` of its own over the one it's given, and wraps children other than its own parts in `.message-body`",
|
|
3965
3965
|
"modifiers": {},
|
|
3966
3966
|
"omits": {},
|
|
3967
3967
|
"wrapsChildren": null,
|
package/data/catalog.json
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"name": "children",
|
|
121
121
|
"type": "React.ReactNode",
|
|
122
122
|
"default": null,
|
|
123
|
-
"description": "Body content for the message.",
|
|
123
|
+
"description": "Body content for the message, wrapped in a `.message-body`. Children that include a `Message.Header` or `Message.Body` aren't wrapped: they render as the article's own children, after the header `title` and `onClose` make.",
|
|
124
124
|
"required": false,
|
|
125
125
|
"inherited": false,
|
|
126
126
|
"deprecated": false
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"code": "function example() {\n return (\n <Field\n horizontal\n label=\"Volume\"\n labelProps={{ htmlFor: 'volume-field-control' }}\n >\n <Field.Body>\n <Field>\n <Control iconLeftName=\"volume-up\">\n <Slider\n id=\"volume-field-control\"\n defaultValue={50}\n color=\"primary\"\n />\n </Control>\n </Field>\n </Field.Body>\n </Field>\n );\n}"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
"accessibility": "- Uses native `<input type=\"range\">` element\n- The `label` prop, or the label of a `Field` the slider sits in, names its input.\n- In range mode the label starts each thumb's name, so `<Slider range label=\"Price range\" />` announces \"Price range Minimum value\" and \"Price range Maximum value\". Each thumb points `aria-labelledby` at the label and at a hidden span holding its own text, because an `aria-label` would outrank the label. The label's `for` still lands on the low thumb, so clicking the label focuses it.\n- `ariaLabel` wins over the label. In range mode each entry is that thumb's whole name, with no label in front, and an empty entry counts as unset.\n- An `aria-label` or `aria-labelledby` you pass straight to a range Slider names the whole Slider, so it takes the label's place at the start of both thumbs' names: `<Slider range aria-label=\"Budget\" />` announces \"Budget Minimum value\" and \"Budget Maximum value\". An `ariaLabel` entry still wins for its own thumb. To keep a label out of the thumbs' names altogether, pass `aria-labelledby={undefined}`, and they stay \"Minimum value\" and \"Maximum value\".\n- A `Field` label you wire by hand with `labelProps={{ htmlFor }}`, as in a horizontal form, gets no generated id, so give it one of your own there as well, as in `labelProps={{ htmlFor: 'price', id: 'price-label' }}`, and it starts both thumbs' names the same way. Without that `id` it reaches a range Slider only through its `for`, which the thumbs' default `aria-label` outranks, so they stay \"Minimum value\" and \"Maximum value\".\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- Fully keyboard accessible with arrow keys\n- Focus states clearly visible\n- On a right-to-left page the native range mirrors, and the fill, the tick marks and the value bubble follow it, so a value of 25 fills from the right. A vertical slider still fills from the bottom.\n- In forced colors (Windows' contrast themes) the value bubble takes the page's own background, and every side of its arrow would be painted, drawing it as a square. bestax's styles outline the bubble in the system's text color there, and keep the arrow a triangle in that color, pointing at the thumb whichever side the bubble sits on.",
|
|
61
|
+
"accessibility": "- Uses native `<input type=\"range\">` element\n- The `label` prop, or the label of a `Field` the slider sits in, names its input.\n- In range mode the label starts each thumb's name, so `<Slider range label=\"Price range\" />` announces \"Price range Minimum value\" and \"Price range Maximum value\". Each thumb points `aria-labelledby` at the label and at a hidden span holding its own text, because an `aria-label` would outrank the label. The label's `for` still lands on the low thumb, so clicking the label focuses it.\n- `ariaLabel` wins over the label. In range mode each entry is that thumb's whole name, with no label in front, and an empty entry counts as unset.\n- An `aria-label` or `aria-labelledby` you pass straight to a range Slider names the whole Slider, so it takes the label's place at the start of both thumbs' names: `<Slider range aria-label=\"Budget\" />` announces \"Budget Minimum value\" and \"Budget Maximum value\". An `ariaLabel` entry still wins for its own thumb. To keep a label out of the thumbs' names altogether, pass `aria-labelledby={undefined}`, and they stay \"Minimum value\" and \"Maximum value\".\n- A `Field` label you wire by hand with `labelProps={{ htmlFor }}`, as in a horizontal form, gets no generated id, so give it one of your own there as well, as in `labelProps={{ htmlFor: 'price', id: 'price-label' }}`, and it starts both thumbs' names the same way. Without that `id` it reaches a range Slider only through its `for`, which the thumbs' default `aria-label` outranks, so they stay \"Minimum value\" and \"Maximum value\".\n- In forced colors (Windows' contrast themes) the track and its fill would disappear, since they're painted as a gradient. bestax's styles paint the fill in the system's highlight color and the rest of the track in its text color there, both in the color for disabled text while the slider is disabled, so the track shows how far it's filled.\n- Has `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` attributes\n- Fully keyboard accessible with arrow keys\n- Focus states clearly visible\n- On a right-to-left page the native range mirrors, and the fill, the tick marks and the value bubble follow it, so a value of 25 fills from the right. A vertical slider still fills from the bottom.\n- In forced colors (Windows' contrast themes) the value bubble takes the page's own background, and every side of its arrow would be painted, drawing it as a square. bestax's styles outline the bubble in the system's text color there, and keep the arrow a triangle in that color, pointing at the thumb whichever side the bubble sits on.",
|
|
62
62
|
"related": ["Numberinput", "Progress"],
|
|
63
63
|
"storybook": "https://bestax.io/storybook/?path=/story/form-slider",
|
|
64
64
|
"summary": "The `Slider` component provides a range slider input for selecting values within a range.",
|
|
@@ -425,7 +425,8 @@ in the browser:
|
|
|
425
425
|
inside its `<li>` with no class but `is-active`, and puts its `className` on the `<li>`, so the
|
|
426
426
|
class has nowhere to go. On an `<a>` inside a `.menu-list` it adds nothing, so drop it and
|
|
427
427
|
re-run, and the item can convert. On any other tag, keep the markup.
|
|
428
|
-
- **`family:message`**: `Message`
|
|
428
|
+
- **`family:message`**: `Message` writes a `data-testid` of its own over the one it's given, and
|
|
429
|
+
wraps children other than `Message.Header` and `Message.Body` in a `.message-body`.
|
|
429
430
|
- **`family:panel-icon`**: `Panel.Icon` renders through `Icon`, which always writes an
|
|
430
431
|
`aria-label`, so write `<Panel.Icon>` by hand with the `<i>` inside. The rest of a panel converts,
|
|
431
432
|
a `<label>` or `<div>` `.panel-block` included, as `Panel.Block` with `as` and its contents as
|
|
@@ -86,7 +86,10 @@ rbx has three shapes; all three flatten to bestax's per-viewport props.
|
|
|
86
86
|
rbx's `forwardRefAs` puts `as` on **every** component. bestax declares it on a smaller set, and
|
|
87
87
|
several of those narrow it to specific tags (`Footer` is `'footer' | 'div'`, `Control` is
|
|
88
88
|
`'div' | 'p'`). The codemod passes `as` through only where bestax really accepts it, and TODOs it
|
|
89
|
-
everywhere else
|
|
89
|
+
everywhere else. A component it writes as plain markup takes its element from a literal `as`, and
|
|
90
|
+
keeps rbx's default with a `prop:as` TODO where it can't read the value.
|
|
91
|
+
|
|
92
|
+
The components that accept it:
|
|
90
93
|
|
|
91
94
|
| bestax component | `as` accepts |
|
|
92
95
|
| ---------------------------- | --------------------------------------------------------------------------------------- |
|
|
@@ -81,8 +81,8 @@ The same rule fires a second way: several bestax components accept `as` but narr
|
|
|
81
81
|
tags Bulma's markup allows there, so a literal outside that union (`<Control as="span">`,
|
|
82
82
|
`<Media as="section">`) is dropped and named. The TODO lists the tags that component renders.
|
|
83
83
|
|
|
84
|
-
A dynamic `as` on a
|
|
85
|
-
|
|
84
|
+
A dynamic `as` on a component that becomes plain markup is flagged too: the plain element is the
|
|
85
|
+
one rbx rendered by default.
|
|
86
86
|
|
|
87
87
|
## `prop:href` — a link needs the anchor
|
|
88
88
|
|
|
@@ -45,7 +45,7 @@ codemod converts it; **Flagged** = it leaves a `TODO(bestax-migrate)` comment (s
|
|
|
45
45
|
|
|
46
46
|
| RBC | bestax |
|
|
47
47
|
| ----------------------------------------------------------- | ------------------------------------------------------------------------ |
|
|
48
|
-
| `Breadcrumb.Item` | plain `<li><a href=…>` (`active` → `is-active`)
|
|
48
|
+
| `Breadcrumb.Item` | plain `<li><a href=…>` (`active` → `is-active`), or the `renderAs` tag |
|
|
49
49
|
| `Button.Group` | `Buttons` (`align="right"`→`isRight`); unknown or dynamic `size` flagged |
|
|
50
50
|
| `Card.Header` / `.Title` / `.Icon` | `Card.Header` / `.Header.Title` / `.Header.Icon` |
|
|
51
51
|
| `Card.Image` | `Card.Image` wrapping an inner `<Image>` |
|
|
@@ -34,7 +34,9 @@ this automatically for literal values; dynamic values get TODOs.
|
|
|
34
34
|
`renderAs` becomes `as` on the components bestax declares one on: `Button`, `Title` and
|
|
35
35
|
`SubTitle` (from `Heading`), `Image`, `Form.Control`, `Footer`, `Level`, `Level.Item`, `Media` and its
|
|
36
36
|
`Item`s, `Menu.Item`, `Navbar.Item`, `Navbar.Link`, `Dropdown.Item`, `Container`, `Hero`,
|
|
37
|
-
`Hero.Header`, `Hero.Footer`, `Panel` and `Panel.Block`.
|
|
37
|
+
`Hero.Header`, `Hero.Footer`, `Panel` and `Panel.Block`. Where a component becomes plain markup,
|
|
38
|
+
a literal `renderAs` names the element written, and one the codemod can't read leaves RBC's default
|
|
39
|
+
with a `prop:renderAs` TODO. Everywhere else it is flagged.
|
|
38
40
|
|
|
39
41
|
bestax gives an element the attributes of the tag `as` names, and several components narrow
|
|
40
42
|
`as` to the tags Bulma's markup allows there (`Footer` is `'footer' | 'div'`, `Control` is
|
|
@@ -74,11 +74,16 @@ Or keep the element and give the class a rule of your own. Bulma 0.9's was:
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
## `prop:renderAs
|
|
77
|
+
## `prop:renderAs` — an element the codemod can't read
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
Where a component becomes plain markup, a literal `renderAs` names the element written. One the
|
|
80
|
+
codemod can't read leaves the element RBC rendered by default, with this TODO, so render the tag
|
|
81
|
+
you meant yourself.
|
|
82
|
+
|
|
83
|
+
## `prop:size`, `prop:weight` on a `heading` label
|
|
84
|
+
|
|
85
|
+
A `size` or `weight` the codemod can't read stays off the label's plain element, with a TODO. Add
|
|
86
|
+
the classes RBC wrote for them by hand:
|
|
82
87
|
|
|
83
88
|
```jsx
|
|
84
89
|
<Heading heading size={size} weight={weight}>Tweets</Heading>
|
package/data/skills.json
CHANGED
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
{
|
|
114
114
|
"id": "bulma-classes-unmappables",
|
|
115
115
|
"file": "references/bulma-classes/unmappables.md",
|
|
116
|
-
"bytes":
|
|
116
|
+
"bytes": 68225
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"id": "css-migration",
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
{
|
|
129
129
|
"id": "rbx-prop-map",
|
|
130
130
|
"file": "references/rbx/prop-map.md",
|
|
131
|
-
"bytes":
|
|
131
|
+
"bytes": 16399
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"id": "rbx-unmappables",
|
|
135
135
|
"file": "references/rbx/unmappables.md",
|
|
136
|
-
"bytes":
|
|
136
|
+
"bytes": 16759
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"id": "react-bulma-components-component-map",
|
|
@@ -143,12 +143,12 @@
|
|
|
143
143
|
{
|
|
144
144
|
"id": "react-bulma-components-prop-map",
|
|
145
145
|
"file": "references/react-bulma-components/prop-map.md",
|
|
146
|
-
"bytes":
|
|
146
|
+
"bytes": 8545
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"id": "react-bulma-components-unmappables",
|
|
150
150
|
"file": "references/react-bulma-components/unmappables.md",
|
|
151
|
-
"bytes":
|
|
151
|
+
"bytes": 15443
|
|
152
152
|
}
|
|
153
153
|
],
|
|
154
154
|
"examples": []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bestax-mcp",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.44",
|
|
4
4
|
"mcpName": "io.github.allxsmith/bestax-mcp",
|
|
5
5
|
"description": "MCP server for @allxsmith/bestax-bulma — component props, examples, CSS variables and agent skills, served offline from a version-pinned index",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
44
44
|
"zod": "^4.6.7",
|
|
45
|
-
"@allxsmith/bestax-bulma": "^5.67.
|
|
45
|
+
"@allxsmith/bestax-bulma": "^5.67.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|