bestax-mcp 1.18.47 → 1.18.48
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 +2 -2
- package/data/catalog.json +1 -1
- package/data/components/Modal.json +1 -1
- package/data/skills/bestax-migrate/references/bulma-classes/unmappables.md +4 -4
- package/data/skills/bestax-optimize/references/modular-build.md +4 -3
- package/data/skills/bestax-theming/references/css-variables.md +24 -0
- package/data/skills.json +3 -3
- 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` writes
|
|
3964
|
+
"why": "bestax `Message` writes `data-testid=\"message\"` when it's given none, and wraps children other than its own parts in `.message-body`",
|
|
3965
3965
|
"modifiers": {},
|
|
3966
3966
|
"omits": {},
|
|
3967
3967
|
"wrapsChildren": null,
|
|
@@ -4048,7 +4048,7 @@
|
|
|
4048
4048
|
"textColor": null,
|
|
4049
4049
|
"bgColor": null,
|
|
4050
4050
|
"part": false,
|
|
4051
|
-
"why": "bestax `Modal` writes
|
|
4051
|
+
"why": "bestax `Modal` writes `data-testid=\"modal\"` when it's given none, and adds dialog attributes and focus handling, so rebuild the root with it by hand; its parts convert on their own",
|
|
4052
4052
|
"modifiers": {},
|
|
4053
4053
|
"omits": {},
|
|
4054
4054
|
"wrapsChildren": null,
|
package/data/catalog.json
CHANGED
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"name": "lockScroll",
|
|
172
172
|
"type": "boolean",
|
|
173
173
|
"default": "true",
|
|
174
|
-
"description": "Lock page scroll while the modal is active, padding the page by the room its scrollbar took so the content stays put.
|
|
174
|
+
"description": "Lock page scroll while the modal is active, padding the page by the room its scrollbar took so the content stays put. A `fixed` Navbar, the toast and notification stacks and an Affix stay put too. The padding doesn't reach an element of your own fixed to the window's edge, which moves by the scrollbar's width unless it adds `var(--bulma-scroll-lock-offset-right, 0px)` to its `right` (the `-left` one to its `left`), which the lock sets on `<html>` while it's on. Ref-counted and shared with `Dialog`, `Sidebar` and `Loading`, so whichever overlay closes first does not unlock the page underneath one that is still open.",
|
|
175
175
|
"required": false,
|
|
176
176
|
"inherited": false,
|
|
177
177
|
"deprecated": false
|
|
@@ -408,8 +408,8 @@ in the browser:
|
|
|
408
408
|
|
|
409
409
|
- **`family:radio`**, **`family:checkboxes`**, **`family:radios`**: bestax renders its own
|
|
410
410
|
styled radio markup, and its own `.field` and `.control` around a group, not Bulma's.
|
|
411
|
-
- **`family:modal`**: `Modal` writes
|
|
412
|
-
focus handling, so the `.modal` root stays markup while its background, content and card parts
|
|
411
|
+
- **`family:modal`**: `Modal` writes `data-testid="modal"` when it's given none and adds dialog
|
|
412
|
+
attributes and focus handling, so the `.modal` root stays markup while its background, content and card parts
|
|
413
413
|
convert on their own. Rebuild the root with `Modal` around them, drive it with its open prop,
|
|
414
414
|
and pass `onClose`, which Escape and `Modal.Close` call. The converted `Modal.Background`
|
|
415
415
|
doesn't call it on its own: give it `onClick={onClose}` for the background to close the modal.
|
|
@@ -425,8 +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` writes
|
|
429
|
-
|
|
428
|
+
- **`family:message`**: `Message` writes `data-testid="message"` when it's given none, and wraps
|
|
429
|
+
children other than `Message.Header` and `Message.Body` in a `.message-body`.
|
|
430
430
|
- **`family:panel-icon`**: `Panel.Icon` renders through `Icon`, which always writes an
|
|
431
431
|
`aria-label`, so write `<Panel.Icon>` by hand with the `<i>` inside. The rest of a panel converts,
|
|
432
432
|
a `<label>` or `<div>` `.panel-block` included, as `Panel.Block` with `as` and its contents as
|
|
@@ -137,9 +137,10 @@ Notes:
|
|
|
137
137
|
```
|
|
138
138
|
|
|
139
139
|
- The `navbar` partial **extends** stock Bulma navbar (it keeps the burger's bars in
|
|
140
|
-
ButtonText in forced colors, where Chromium paints them in the page's Canvas color
|
|
141
|
-
|
|
142
|
-
so a build with one
|
|
140
|
+
ButtonText in forced colors, where Chromium paints them in the page's Canvas color, and keeps a
|
|
141
|
+
`fixed` navbar in place while an overlay locks the page's scrolling), so an app using `Navbar`
|
|
142
|
+
needs both, in either order. `AppFrame.Burger` renders `Navbar.Burger`, so a build with one
|
|
143
|
+
wants this partial too:
|
|
143
144
|
|
|
144
145
|
```scss
|
|
145
146
|
@use 'bulma/sass/components/navbar';
|
|
@@ -1118,6 +1118,30 @@ are `Checkbox`'s, themed through `--bulma-checkbox-*`.
|
|
|
1118
1118
|
`--bulma-tree-view-line-height`, `--bulma-tree-view-toggle-color`,
|
|
1119
1119
|
`--bulma-tree-view-toggle-duration`, `--bulma-tree-view-toggle-size`
|
|
1120
1120
|
|
|
1121
|
+
## The scroll lock's offsets: read them, don't set them
|
|
1122
|
+
|
|
1123
|
+
An overlay that locks the page's scrolling, such as a Modal, a Sidebar with its overlay or a
|
|
1124
|
+
full-page Loading, takes the page's scrollbar away and pads `<html>` by the room it took, so the
|
|
1125
|
+
page doesn't shift. An element fixed to the window is placed against the window, which grows by
|
|
1126
|
+
that room, so the padding doesn't reach it. While the lock is on, it sets the room it padded on
|
|
1127
|
+
`<html>` as `--bulma-scroll-lock-offset-right`, or `--bulma-scroll-lock-offset-left` where the
|
|
1128
|
+
scrollbar was on the left. A `fixed` Navbar, the toast and notification stacks and an Affix add
|
|
1129
|
+
them to their offsets, so they stay put. A fixed element of the app's own does the same, with a
|
|
1130
|
+
`0px` fallback for when no lock is on:
|
|
1131
|
+
|
|
1132
|
+
```css
|
|
1133
|
+
.chat-launcher {
|
|
1134
|
+
position: fixed;
|
|
1135
|
+
bottom: 1rem;
|
|
1136
|
+
right: calc(1rem + var(--bulma-scroll-lock-offset-right, 0px));
|
|
1137
|
+
}
|
|
1138
|
+
```
|
|
1139
|
+
|
|
1140
|
+
The sides are physical, left and right, whatever the text's direction: an element fixed to the
|
|
1141
|
+
window's right edge reads the `-right` one on a right-to-left page too. Neither is set while no
|
|
1142
|
+
lock is on, or where the scrollbar takes no room, so the fallback applies. The lock writes them and
|
|
1143
|
+
removes them when the last overlay closes, so don't set them in a theme.
|
|
1144
|
+
|
|
1121
1145
|
## Dark mode (`Theme colorMode`)
|
|
1122
1146
|
|
|
1123
1147
|
Drive the light/dark scheme with the `Theme` component's **`colorMode`** prop —
|
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": 68235
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"id": "css-migration",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
{
|
|
163
163
|
"id": "modular-build",
|
|
164
164
|
"file": "references/modular-build.md",
|
|
165
|
-
"bytes":
|
|
165
|
+
"bytes": 20405
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
168
|
"examples": []
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
{
|
|
177
177
|
"id": "css-variables",
|
|
178
178
|
"file": "references/css-variables.md",
|
|
179
|
-
"bytes":
|
|
179
|
+
"bytes": 74918
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"id": "themeable-components",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bestax-mcp",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.48",
|
|
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.11"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|