bestax-mcp 1.18.64 → 1.18.65

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/catalog.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 2,
3
3
  "generatedFrom": {
4
4
  "package": "@allxsmith/bestax-bulma",
5
- "version": "5.73.3"
5
+ "version": "5.73.4"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -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- 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- A mark's label defaults to the scheme's weak text color (`--bulma-slider-tick-label-color` is `var(--bulma-text-weak)`), at full opacity, so it follows the light and dark schemes. The tick line's own opacity, `--bulma-slider-tick-opacity`, applies to the line alone.\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.",
@@ -255,7 +255,7 @@
255
255
  "name": "marks",
256
256
  "type": "{ value: number; label?: React.ReactNode }[]",
257
257
  "default": null,
258
- "description": "Custom labeled marks along the track. Each mark has `{ value: number; label?: ReactNode }`.",
258
+ "description": "Custom labeled marks along the track. Each mark has `{ value: number; label?: ReactNode }`. A mark's label sits inside its tick, so `--bulma-slider-tick-opacity` dims the label along with the tick's line, whatever `--bulma-slider-tick-label-color` is.",
259
259
  "required": false,
260
260
  "inherited": true,
261
261
  "deprecated": false
@@ -530,7 +530,7 @@
530
530
  {
531
531
  "css": "--bulma-slider-tick-label-color",
532
532
  "sass": "$slider-tick-label-color",
533
- "default": "var(--bulma-text-weak)",
533
+ "default": "var(--bulma-text-light)",
534
534
  "scope": "root"
535
535
  },
536
536
  {
@@ -46,7 +46,7 @@
46
46
  "code": "<Steps value={1}>\n <Steps.Step label=\"Account\" />\n <Steps.Step label=\"Profile\" />\n <Steps.Step label=\"Complete\" />\n</Steps>"
47
47
  }
48
48
  ],
49
- "accessibility": "- The active step has `aria-current=\"step\"`, on its list item, or on its button when it's clickable\n- A clickable step stays a list item and puts its marker and label in a `<button type=\"button\">` inside it, so the list keeps its list items and assistive technology can count them. The button takes Tab, Enter and Space, and the focus ring goes around the whole step, which is what you can click\n- The list has `role=\"list\"`. That's the role a `<ul>` already has, set again for Safari, whose WebKit stops exposing a `<ul>` as a list once its markers are hidden, as they are here, unless the role is written out\n- Use descriptive labels for each step\n- A completed step's marker shows a check mark in place of its number\n- A completed step, and a step not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. The words sit in the step's list item, after the step, and a clickable step's button also takes them as its description (`aria-describedby`). The button's accessible name stays the step's marker and label. A `Step` used on its own, outside `Steps`, says no words\n- In forced colors (Windows' contrast themes), the lines and a completed step's fill are drawn in the theme's text color, and the current step's marker gets an outline, so completed, current and upcoming steps still look different without color\n- Steps with no `color` are drawn in Bulma's `text-weak`, and a `color` draws the current and completed steps in its `-on-scheme` variant, the one Bulma adjusts for text on the scheme's background, with a completed step's mark in the page's color. A step's number clears WCAG's 4.5:1, and its marker 3:1, against Bulma's page background in light and dark mode. When a `Theme` changes a color's hue, saturation or lightness, set that color's on-scheme lightness with it, as [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses) shows\n- On a colored `Notification` or `Hero`, the labels take the surface's text color, which Bulma picks to read on it, as the surface's other text does. Steps with no `color` take it for their markers, numbers and lines too, and fill their markers with the surface's background. A `color` you set is kept on the markers and lines, so on a colored surface set one only if it stands out from the surface's color. Steps on a Box, a Card, a Message or a Modal inside the surface keep the page's look, since those are surfaces of their own, and steps in a Notification inside a Hero follow the Notification",
49
+ "accessibility": "- The active step has `aria-current=\"step\"`, on its list item, or on its button when it's clickable\n- A clickable step stays a list item and puts its marker and label in a `<button type=\"button\">` inside it, so the list keeps its list items and assistive technology can count them. The button takes Tab, Enter and Space, and the focus ring goes around the whole step, which is what you can click\n- The list has `role=\"list\"`. That's the role a `<ul>` already has, set again for Safari, whose WebKit stops exposing a `<ul>` as a list once its markers are hidden, as they are here, unless the role is written out\n- Use descriptive labels for each step\n- A completed step's marker shows a check mark in place of its number\n- A completed step, and a step not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. The words sit in the step's list item, after the step, and a clickable step's button also takes them as its description (`aria-describedby`). The button's accessible name stays the step's marker and label. A `Step` used on its own, outside `Steps`, says no words\n- In forced colors (Windows' contrast themes), the lines and a completed step's fill are drawn in the theme's text color, and the current step's marker gets an outline, so completed, current and upcoming steps still look different without color\n- Steps take Bulma's colors. On the page, a step with no `color`, and a step not reached yet, is drawn in `grey-light`, and a `color` draws the current and completed steps in that color, with a completed step's mark in the color's invert. On a light page, `grey-light` and some of the colors fall short of the 3:1 that WCAG asks of a graphic, and of the 4.5:1 a step's number needs. On a dark page, so does a current step's number in some colors. For more, set `--bulma-steps-default-color` to a color such as `var(--bulma-text-weak)` on a class you pass through `className`, with the steps' class in the selector (`.steps.my-steps`, `.bestax-steps.my-steps` under the prefixed flavor) so it wins whatever order the stylesheets load in. It wins over a colored `Notification`'s or `Hero`'s text color too, so leave it off steps you put on one. And pick a `color` that reads on your page\n- On a colored `Notification` or `Hero`, the labels take the surface's text color, which Bulma picks to read on it, as the surface's other text does. Steps with no `color` take it for their markers, numbers and lines too, and fill their markers with the surface's background. A `color` you set is kept on the markers and lines, so on a colored surface set one only if it stands out from the surface's color. Steps on a Box, a Card, a Message or a Modal inside the surface keep the page's look, since those are surfaces of their own, and steps in a Notification inside a Hero follow the Notification",
50
50
  "related": ["Progress", "Timeline"],
51
51
  "storybook": "https://bestax.io/storybook/?path=/story/components-steps",
52
52
  "summary": "The `Steps` component provides a multi-step progress indicator for wizard flows, checkout processes, or any multi-step workflow. Each step is a list item. The current one has `aria-current=\"step\"`, and a completed one, and one not reached yet, ends in a visually hidden \"completed\" or \"upcoming\", in the language `completedLabel` and `upcomingLabel` set. A clickable step's button takes those words as its description, so its accessible name stays its marker and its label.",
@@ -90,7 +90,7 @@
90
90
  "name": "color",
91
91
  "type": "'primary' | 'link' | 'info' | 'success' | 'warning' | 'danger'",
92
92
  "default": null,
93
- "description": "Color variant. The current and completed steps take the color's `-on-scheme` variant, the shade Bulma adjusts to read on the page in either scheme, so a pale color such as `warning` is drawn darker on a light page. On a colored `Notification` or `Hero`, leave it off: the markers then take the surface's text color, as the labels do either way, while a color you set is kept even where it doesn't stand out from the surface's.",
93
+ "description": "Color variant. The current and completed steps take the color, and a completed step's mark takes its invert. On a colored `Notification` or `Hero`, leave it off: the markers then take the surface's text color, as the labels do either way, while a color you set is kept even where it doesn't stand out from the surface's.",
94
94
  "required": false,
95
95
  "inherited": false,
96
96
  "deprecated": false
@@ -389,7 +389,7 @@
389
389
  {
390
390
  "css": "--bulma-steps-default-color",
391
391
  "sass": "$steps-default-color",
392
- "default": "var(--bulma-text-weak)",
392
+ "default": "var(--bulma-grey-light)",
393
393
  "scope": "root"
394
394
  },
395
395
  {
@@ -58,7 +58,7 @@
58
58
  "code": "<LocaleProvider locale=\"ar\" dir=\"rtl\">\n <TreeSelect\n label=\"المجلد\"\n defaultValue=\"invoices\"\n clearable\n data={[\n {\n value: 'docs',\n label: 'المستندات',\n children: [{ value: 'invoices', label: 'الفواتير' }],\n },\n { value: 'photos', label: 'الصور' },\n ]}\n />\n</LocaleProvider>"
59
59
  }
60
60
  ],
61
- "accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' is: `role=\"combobox\"`\n with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the panel is open,\n named by its `label`. It's read-only, and in `'single'` its value is the picked item's label.\n In the checkbox modes it's described by the tags.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked item, its branch open, or onto the search box when\n `searchable`, or else onto the first item. It holds focus while it's open, as the date\n pickers' panel does: Tab and Shift+Tab move between the search box and the tree, and wrap.\n Escape and Alt+Up close it and put focus back on the field, and so does a pick in `'single'`.\n A press outside closes it and leaves focus where the press put it.\n- **The tree** is TreeView's, with the same name as the panel: real focus with one tab stop, the\n arrow keys, Home, End, `*` and type-ahead, Right and Left swapped on a right-to-left page,\n `aria-level`, `aria-posinset` and `aria-setsize` on every item, `aria-selected` in `'single'`,\n `aria-checked` in the checkbox modes (`\"mixed\"` only in `'checkbox'`), and disabled items\n reachable and `aria-disabled`. Space joins a type-ahead search under way when an item starts\n with what's been typed and a space, so \"new y\" reaches \"New York\", and otherwise picks or\n checks. See [`TreeView`](https://bestax.io/docs/api/components/treeview#accessibility).\n- **The search box** is named \"Search\", or `labels.search`. When nothing matches, `empty` is said\n once through a polite status region, not again on every key.\n- **Each tag's button** is a `Delete` named \"Remove\" and the item's label, or `ariaCloseLabel`\n described by the tag's label.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **The chevron** marks the field as a picker, so its colors follow the scheme:\n `--bulma-tree-select-chevron-color` defaults to `var(--bulma-text-weak)`, and\n `--bulma-tree-select-chevron-hover-color` to the stronger `var(--bulma-text)`.\n- **Forced colors:** the field, the panel and the tree keep their edges in system colors, and the\n chevron is text.",
61
+ "accessibility": "- **The field is a combobox that opens a dialog,** as the date pickers' is: `role=\"combobox\"`\n with `aria-haspopup=\"dialog\"`, `aria-expanded`, and `aria-controls` while the panel is open,\n named by its `label`. It's read-only, and in `'single'` its value is the picked item's label.\n In the checkbox modes it's described by the tags.\n- **Keys on the field:** a click, Enter, Space, Down or Alt+Down opens the panel, and with\n `searchable` a printable key opens it with that key in the search box.\n- **The panel** is a non-modal `dialog`, named by the label or `labels.choose`. Focus moves into\n it as it opens: onto the picked item, its branch open, or onto the search box when\n `searchable`, or else onto the first item. It holds focus while it's open, as the date\n pickers' panel does: Tab and Shift+Tab move between the search box and the tree, and wrap.\n Escape and Alt+Up close it and put focus back on the field, and so does a pick in `'single'`.\n A press outside closes it and leaves focus where the press put it.\n- **The tree** is TreeView's, with the same name as the panel: real focus with one tab stop, the\n arrow keys, Home, End, `*` and type-ahead, Right and Left swapped on a right-to-left page,\n `aria-level`, `aria-posinset` and `aria-setsize` on every item, `aria-selected` in `'single'`,\n `aria-checked` in the checkbox modes (`\"mixed\"` only in `'checkbox'`), and disabled items\n reachable and `aria-disabled`. Space joins a type-ahead search under way when an item starts\n with what's been typed and a space, so \"new y\" reaches \"New York\", and otherwise picks or\n checks. See [`TreeView`](https://bestax.io/docs/api/components/treeview#accessibility).\n- **The search box** is named \"Search\", or `labels.search`. When nothing matches, `empty` is said\n once through a polite status region, not again on every key.\n- **Each tag's button** is a `Delete` named \"Remove\" and the item's label, or `ariaCloseLabel`\n described by the tag's label.\n- **`required`** makes the field `aria-required`. A read-only field is left out of the browser's\n own check, so a hidden field over it carries `required`. When the browser stops a submit, it\n focuses that one and shows its message, which every browser takes down as it loses focus. So\n focus stays there, reading as the field and drawn on it, with no on-screen keyboard. A press\n goes where it lands, and the next key, other than a modifier on its own, goes to the field and\n does what it would there.\n- **Forced colors:** the field, the panel and the tree keep their edges in system colors, and the\n chevron is text.",
62
62
  "related": ["Combobox", "DateInput", "Select", "TreeView", "useBulmaClasses"],
63
63
  "storybook": "https://bestax.io/storybook/?path=/story/form-treeselect--default",
64
64
  "summary": "The `TreeSelect` component is a form field whose options are a tree, such as categories, places or teams: it opens a panel holding a real `TreeView`, picks one item or checks a branch at a time, and searches labels. The field is a read-only `role=\"combobox\"` that opens a dialog, wired as DateInput's is, so focus moves into the tree for real and the tree keeps TreeView's keys, type-ahead and spoken output. The tree is given as `data`, so the field and the tags can name what's picked while the panel is shut, and on the server. `selectionMode` picks the kind. `'single'` picks one item and closes. With `'checkbox'`, a check reaches every enabled item under it, closed or hidden by a search, and `checkedStrategy` decides what the value holds: the leaves, the topmost checked items or every one. With `'checkbox-independent'`, each box is its own item's, so a parent means itself alone (Mantine's and Ant Design's `checkStrictly`). The value shows as tags under the field. A value no node has is kept and shown as it is, with a warning in development, so a value under a branch that hasn't loaded survives until it does.",
@@ -577,13 +577,13 @@
577
577
  {
578
578
  "css": "--bulma-tree-select-chevron-color",
579
579
  "sass": "$tree-select-chevron-color",
580
- "default": "var(--bulma-text-weak)",
580
+ "default": "var(--bulma-text-light)",
581
581
  "scope": "root-and-element"
582
582
  },
583
583
  {
584
584
  "css": "--bulma-tree-select-chevron-hover-color",
585
585
  "sass": "$tree-select-chevron-hover-color",
586
- "default": "var(--bulma-text)",
586
+ "default": "var(--bulma-text-weak)",
587
587
  "scope": "root-and-element"
588
588
  },
589
589
  {
@@ -103,10 +103,10 @@ was given. A trio set at runtime leaves them as they were, so when a new color r
103
103
  darker than the built one, which a change of hue or saturation can do as well as a change of
104
104
  lightness, set them too:
105
105
 
106
- | Variable | What reads it |
107
- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
108
- | `--bulma-<c>-invert-l` | the label on a solid `<c>` surface: `Button`, `Tag` and `Notification` with `color="<c>"`, a colored `Hero` or `Navbar`, … |
109
- | `--bulma-<c>-on-scheme-l` | `<c>` text on the page: `textColor="<c>" colorShade="on-scheme"`, `textColor="<c>"` where it's lighter than the trio's, a colored `Message`'s body, a field's colored help text, `Steps`' and `Timeline`'s colored markers, … |
106
+ | Variable | What reads it |
107
+ | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
108
+ | `--bulma-<c>-invert-l` | the label on a solid `<c>` surface: `Button`, `Tag` and `Notification` with `color="<c>"`, a colored `Hero` or `Navbar`, a colored `Steps`' completed mark, … |
109
+ | `--bulma-<c>-on-scheme-l` | `<c>` text on the page: `textColor="<c>" colorShade="on-scheme"`, `textColor="<c>"` where it's lighter than the trio's, a colored `Message`'s body, a field's colored help text, `Timeline`'s colored markers, … |
110
110
 
111
111
  For `link`, the on-scheme lightness is also every link on the page (`--bulma-link-text`), so a new
112
112
  link color that reads lighter than Bulma's own leaves the page's links pale.
@@ -1069,6 +1069,9 @@ whatever these say.
1069
1069
 
1070
1070
  ### Slider
1071
1071
 
1072
+ A mark's label sits inside its tick, so `--bulma-slider-tick-opacity` dims the label along with the
1073
+ tick's line, whatever `--bulma-slider-tick-label-color` you set.
1074
+
1072
1075
  `--bulma-slider-disabled-opacity`, `--bulma-slider-fill-color`,
1073
1076
  `--bulma-slider-output-background`, `--bulma-slider-output-color`,
1074
1077
  `--bulma-slider-output-font-size`, `--bulma-slider-output-font-weight`, `--bulma-slider-radius`,
@@ -1277,10 +1280,9 @@ in, such as 31 over a navbar, for beacons on targets inside one.
1277
1280
 
1278
1281
  Declared on the root, `.tree-select`, and on a portaled panel, `.tree-select-panel`, which sits
1279
1282
  outside it. They draw the chevron and the clear button on the field, set the panel's height and
1280
- space the search box over the tree. The chevron's defaults start from root tokens
1281
- (`control-height`, `text-weak`, `text` on hover, `link` while focused), since Bulma registers its
1282
- input variables on the field and its Control. Its colors follow the scheme rather than Bulma's
1283
- input icon color, `text-light`, a fixed light gray that the light scheme's white all but hides. The panel is the picker popover, above, and the tree in it is a
1283
+ space the search box over the tree. The chevron's defaults are the tokens Bulma's input icon variables
1284
+ start from (`control-height`, `text-light`, `text-weak`, `link`), since Bulma registers those on
1285
+ the field and its Control. The panel is the picker popover, above, and the tree in it is a
1284
1286
  `TreeView`, below, so `--bulma-picker-popover-*` and `--bulma-tree-view-*` theme them here too.
1285
1287
  The panel is at least as wide as the field, in place through the picker popover's own rule and
1286
1288
  portaled through the field's width set inline.
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,SAAS,EAEV,MAAM,yCAAyC,CAAC;AA0PjD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,YAAY,CAChC,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,SAAS,CAAC,CAm+BpB"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,SAAS,EAEV,MAAM,yCAAyC,CAAC;AA2PjD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,YAAY,CAChC,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,SAAS,CAAC,CA4+BpB"}
package/dist/server.js CHANGED
@@ -25,7 +25,7 @@ import { z } from 'zod';
25
25
  import { classTokens, lookupClasses, renderLookup } from './bulma-classes.js';
26
26
  import { documentedExport, dotPath, loadBulmaClasses, loadCatalog, loadComponent, loadServerVersion, loadSkills, loadSkillFile, resolveName, } from './data.js';
27
27
  import { documentedLine, errorResult, HELPER_PROPS_PAGE, partLists, renderCatalog, renderComponent, renderCssVarsAnswer, renderExamples, renderHelperApi, renderPart, renderSkills, referenceOf, referencePointer, table, textResult, throughLine, } from './format.js';
28
- import { GROUP_NAMES, renderHelperDefault, renderHelperGroup, resolveGroup, } from './helper-props.js';
28
+ import { GROUP_NAMES, reflowTables, renderHelperDefault, renderHelperGroup, resolveGroup, } from './helper-props.js';
29
29
  import { callsExport, searchAll, skillSections, suggest, usesExport, } from './search.js';
30
30
  import { missingInstallNote, resolveVersions, versionNote, } from './version.js';
31
31
  const ALL_KINDS = [
@@ -270,6 +270,22 @@ export async function createServer(options = {}) {
270
270
  `and not hand-written Bulma classes); ` +
271
271
  `\`get_skill({ name: "bestax-custom-component" })\` has the spine every reusable ` +
272
272
  `component needs. \`list_skills\` has all seven.`;
273
+ // A section of a skill, from its heading to the next, with its tables
274
+ // reflowed, since no model reads their column padding. Null when the skill or
275
+ // the heading is missing, which costs the caller its preamble and nothing else.
276
+ const skillSection = async (skill, heading) => {
277
+ try {
278
+ const md = await loadSkillFile(skill);
279
+ const start = md.indexOf(heading);
280
+ if (start < 0)
281
+ return null;
282
+ const end = md.indexOf('\n## ', start + 1);
283
+ return reflowTables(md.slice(start, end < 0 ? undefined : end).trimEnd());
284
+ }
285
+ catch {
286
+ return null;
287
+ }
288
+ };
273
289
  // The three components that lose to a core-Bulma near-miss, for the unfiltered
274
290
  // list_components answer only.
275
291
  //
@@ -291,22 +307,12 @@ export async function createServer(options = {}) {
291
307
  // paragraph is skipped — how our eval went is not something a builder needs in context.
292
308
  const nearMissRule = async () => {
293
309
  const heading = '## Three components core Bulma will talk you out of';
294
- try {
295
- const md = await loadSkillFile('bestax-layout-scaffold');
296
- const start = md.indexOf(heading);
297
- if (start < 0)
298
- return '';
299
- const end = md.indexOf('\n## ', start + 1);
300
- const section = md.slice(start, end < 0 ? undefined : end).trimEnd();
301
- // Keep the heading and everything from the table onward; drop the prose between them.
302
- const table = section.indexOf('\n| ');
303
- if (table < 0)
304
- return '';
305
- return `\n\n${heading}\n${section.slice(table)}`;
306
- }
307
- catch {
310
+ const section = await skillSection('bestax-layout-scaffold', heading);
311
+ // Keep the heading and everything from the table onward; drop the prose between them.
312
+ const table = section?.indexOf('\n| ') ?? -1;
313
+ if (!section || table < 0)
308
314
  return '';
309
- }
315
+ return `\n\n${heading}\n${section.slice(table)}`;
310
316
  };
311
317
  // The single highest-leverage thing this server says, prepended to every
312
318
  // get_helper_props answer.
@@ -321,26 +327,21 @@ export async function createServer(options = {}) {
321
327
  //
322
328
  // Sourced from the skill rather than copied, so the two cannot drift. Failure is
323
329
  // non-fatal: a missing or restructured skill costs the preamble, never the reference.
330
+ //
331
+ // Its table goes without the column padding, as the reference after it has:
332
+ // every call carried it, and it left no room under 10k for the version warning
333
+ // after the answer.
324
334
  const inlineStyleRule = async () => {
325
- const heading = '## Inline style → helper prop mapping';
326
- try {
327
- const md = await loadSkillFile('bestax-layout-scaffold');
328
- const start = md.indexOf(heading);
329
- if (start < 0)
330
- return '';
331
- const end = md.indexOf('\n## ', start + 1);
332
- const section = md.slice(start, end < 0 ? undefined : end).trimEnd();
333
- return (`**Do not write inline \`style={{ … }}\`, and do not hand-write Bulma ` +
334
- `\`className\`s** (\`lookup_bulma_classes\` translates one you had in ` +
335
- `mind). Spacing, colour, typography, flex and visibility are ` +
336
- `props on every component. Translate the declaration you were about to ` +
337
- `inline using the table below; if nothing matches (\`maxWidth\`, a ` +
338
- `one-off gradient), add a named class to the project stylesheet and pass ` +
339
- `it via \`className\` — still never inline \`style\`.\n\n${section}\n\n---\n\n`);
340
- }
341
- catch {
335
+ const section = await skillSection('bestax-layout-scaffold', '## Inline style → helper prop mapping');
336
+ if (!section)
342
337
  return '';
343
- }
338
+ return (`**Do not write inline \`style={{ … }}\`, and do not hand-write Bulma ` +
339
+ `\`className\`s** (\`lookup_bulma_classes\` translates one you had in ` +
340
+ `mind). Spacing, colour, typography, flex and visibility are ` +
341
+ `props on every component. Translate the declaration you were about to ` +
342
+ `inline using the table below; if nothing matches (\`maxWidth\`, a ` +
343
+ `one-off gradient), add a named class to the project stylesheet and pass ` +
344
+ `it via \`className\` — still never inline \`style\`.\n\n${section}\n\n---\n\n`);
344
345
  };
345
346
  const notFound = async (name) => {
346
347
  const names = catalog.components.map(c => c.name);
@@ -725,9 +726,9 @@ export async function createServer(options = {}) {
725
726
  return textResult(rule + renderHelperDefault(doc), note());
726
727
  const resolved = resolveGroup(group);
727
728
  if (!resolved) {
728
- // No rule preamble here: this answered nothing, and 3,832 characters of
729
- // prohibition on top of a 124-character "try again" was 97% overhead. An error,
730
- // as list_components marks an unknown category.
729
+ // No rule preamble here: this answered nothing, and the prohibition on top
730
+ // of a one-line "try again" was nearly all overhead. An error, as
731
+ // list_components marks an unknown category.
731
732
  return errorResult(`No helper-prop group matches "${group}". Groups: ` +
732
733
  `${GROUP_NAMES.join(', ')}. Call get_helper_props with no argument ` +
733
734
  `for every prop at once.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.64",
3
+ "version": "1.18.65",
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.73.3"
45
+ "@allxsmith/bestax-bulma": "^5.73.4"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",