bestax-mcp 1.8.0 → 1.9.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.
@@ -2961,7 +2961,8 @@
2961
2961
  "tag": "img",
2962
2962
  "attributesOn": "element",
2963
2963
  "childProps": ["src", "alt"],
2964
- "modifiers": { "is-rounded": { "writes": [{ "prop": "isRounded" }] } }
2964
+ "modifiers": { "is-rounded": { "writes": [{ "prop": "isRounded" }] } },
2965
+ "elseWraps": true
2965
2966
  },
2966
2967
  "writes": null,
2967
2968
  "countsChildren": null,
@@ -177,9 +177,13 @@ go straight inside `Breadcrumb`, and `<figure className="image is-64x64"><img sr
177
177
  one, so the `<ul>` carries nothing and the `.breadcrumb` needs an `aria-label` of its own.
178
178
  - `Image` renders its `<img>` from `src` and `alt`, so the `<img>` carries nothing else, and
179
179
  `is-rounded` on it becomes `isRounded`. The `.image` keeps its own attributes. A ratio
180
- (`is-4by3`) stays a class, since `size` would add `has-ratio` as well.
180
+ (`is-4by3`) stays a class, since `size` would add `has-ratio` as well. Around anything else (an
181
+ `<img>` with more attributes, an `<iframe>`), `Image` renders its children as given, so the
182
+ `.image` converts around them and they stay as written, as long as they're HTML elements written
183
+ out. An empty `.image` stays markup, since `Image` would render an `<img>` of its own, and so does
184
+ one around an expression (`{src && <img />}`), which can come out empty.
181
185
 
182
- Anything else keeps both as markup, with a `children:<Target>`, `attr` or `defaults:<Target>`
186
+ For `SelectBase` and `Breadcrumb`, anything else keeps both as markup, with a `children:<Target>`, `attr` or `defaults:<Target>`
183
187
  TODO.
184
188
 
185
189
  ## Children a component renders from a count
@@ -12,8 +12,8 @@ attribute, never one of your own classes.
12
12
  The element spreads props (`<div className="box" {...rest}>`). A spread can carry anything,
13
13
  and bestax reads some names as its own props: a spread `className` merges with the component's
14
14
  classes, where on the plain element it replaced them. Convert by hand once you know what the
15
- spread carries, or leave it. A spread on the `<select>` inside a `.select`, or the `<img>` inside
16
- an `.image`, counts too, since what it carries becomes the component's.
15
+ spread carries, or leave it. A spread on the `<select>` inside a `.select` counts too, since what it
16
+ carries becomes `SelectBase`'s.
17
17
 
18
18
  ### `ref:<Target>`
19
19
 
@@ -45,8 +45,8 @@ rejects. Keep the element as markup. `attr:children` is too: the codemod reads a
45
45
  children from the JSX inside it, so children passed as an attribute are content it can't see.
46
46
  Move them inside the element, then re-run.
47
47
 
48
- On a `.select`, a `.breadcrumb` or an `.image` it's about the element inside, which the component
49
- renders itself. `SelectBase` gives its `<select>` every attribute it's given and no class but
48
+ On a `.select` or a `.breadcrumb` it's about the element inside, which the component renders
49
+ itself. `SelectBase` gives its `<select>` every attribute it's given and no class but
50
50
  `is-hovered` or `is-focused`, so an attribute on the `.select` (an `attr` TODO) would move onto
51
51
  the `<select>`, and another class on the `<select>` (`attr:className`) would be lost, as would
52
52
  the `class=""` an empty `className` renders. Move the
@@ -54,8 +54,7 @@ attribute onto the `<select>` if that's where you want it, then re-run. A `multi
54
54
  converts only inside a `.select.is-multiple`, with `multiple` written bare, and its `size` only
55
55
  beside it, as a number written out (`size={4}`): `SelectBase` writes it back only when it holds a
56
56
  number, which the codemod can't tell of an expression. `Breadcrumb` renders its `<ul>` bare, so an attribute or class on the `<ul>` keeps
57
- both as markup. `Image` renders its `<img>` from `src` and `alt`, with no class but `is-rounded`, so
58
- any other attribute or class on the `<img>` (`loading`, `width`, a `key`) keeps both as markup.
57
+ both as markup.
59
58
 
60
59
  ### `defaults:<Target>`
61
60
 
@@ -108,8 +107,12 @@ renders the wrapper bare.
108
107
 
109
108
  On a `.select`, a `.breadcrumb` or an `.image` it's the same shape from the other side. `SelectBase`
110
109
  renders the `<select>` inside `.select` itself, `Breadcrumb` the `<ul>` inside `.breadcrumb` and
111
- `Image` the `<img>` inside `.image`, so each converts only around that one element, with nothing
112
- else beside it.
110
+ `Image` the `<img>` inside `.image`. So `SelectBase` and `Breadcrumb` convert only around that one
111
+ element, with nothing else beside it. `Image` renders anything else it's given as it is, so an
112
+ `.image` converts around HTML elements written out either way. It gets this TODO when it's empty,
113
+ or when what's inside is an expression or text, since `Image` renders an `<img>` of its own when
114
+ its children come out empty. Keep it as markup, or write the `Image` by hand if the expression
115
+ never is.
113
116
 
114
117
  On a `.skeleton-lines`, `Skeleton` renders the children itself: `lines` bare, empty `<div>`s. So
115
118
  the element converts only when its children are just that, and a class, an attribute, text or a
@@ -178,8 +181,8 @@ turning each condition into the prop:
178
181
 
179
182
  The classes in a computed `className` still count for every other rule: a `clsx('box')` on a
180
183
  `<span>` gets `tag:Box`, and a `clsx('dropdown', …)` gets `family:dropdown`. A computed
181
- `className` on the `<select>` inside a `.select`, the `<ul>` inside a `.breadcrumb` or the `<img>`
182
- inside an `.image` gets this TODO too.
184
+ `className` on the `<select>` inside a `.select`, or the `<ul>` inside a `.breadcrumb`, gets this
185
+ TODO too.
183
186
 
184
187
  ## A family it leaves as markup: `family:<class>`
185
188
 
package/data/skills.json CHANGED
@@ -103,7 +103,7 @@
103
103
  {
104
104
  "id": "bulma-classes-component-map",
105
105
  "file": "references/bulma-classes/component-map.md",
106
- "bytes": 15655
106
+ "bytes": 16084
107
107
  },
108
108
  {
109
109
  "id": "bulma-classes-prop-map",
@@ -113,7 +113,7 @@
113
113
  {
114
114
  "id": "bulma-classes-unmappables",
115
115
  "file": "references/bulma-classes/unmappables.md",
116
- "bytes": 17159
116
+ "bytes": 17279
117
117
  },
118
118
  {
119
119
  "id": "css-migration",
@@ -81,6 +81,11 @@ export interface Absorbs {
81
81
  * props and writes back on the child.
82
82
  */
83
83
  childProps?: string[];
84
+ /**
85
+ * When the child can't be absorbed, the component renders the element's
86
+ * children as given, so the element converts around them instead.
87
+ */
88
+ elseWraps?: boolean;
84
89
  /** The child's classes, as the component's props. */
85
90
  modifiers?: Record<string, Modifier>;
86
91
  /** A bare child attribute one of the element's modifiers writes. */
@@ -1 +1 @@
1
- {"version":3,"file":"bulma-classes.d.ts","sourceRoot":"","sources":["../src/bulma-classes.ts"],"names":[],"mappings":"AAAA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A8FnD"}
@@ -403,7 +403,14 @@ function absorbsText(target, absorbs) {
403
403
  : taken[0];
404
404
  return (` It renders the ${child} inside it itself, from its own ${names} ` +
405
405
  `props: write the ${child}'s ${names} on \`${target}\` in its place, ` +
406
- `which converts only around ${aChild} with no other attribute.${on}`);
406
+ `which converts that way only around ${aChild} with no other ` +
407
+ `attribute.${on}` +
408
+ (absorbs.elseWraps
409
+ ? ` Around other HTML elements written out it renders them as given, ` +
410
+ `in place of its own ${child}, so put them inside \`${target}\` as ` +
411
+ `they are; around an expression, which can come out empty, it ` +
412
+ `would render its own.`
413
+ : ''));
407
414
  }
408
415
  return (` It renders the ${child} inside it itself, and puts the attributes it ` +
409
416
  `is given on that ${child}: write the ${child}'s attributes and children ` +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "MCP server for @allxsmith/bestax-bulma — component props, examples, CSS variables and agent skills, served offline from a version-pinned index",
5
5
  "type": "module",
6
6
  "bin": {