anentrypoint-design 0.0.337 → 0.0.338

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anentrypoint-design",
3
- "version": "0.0.337",
3
+ "version": "0.0.338",
4
4
  "description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
5
5
  "type": "module",
6
6
  "main": "./dist/247420.js",
@@ -107,13 +107,20 @@ export function Row({ code, rank, title, sub, meta, active, state = 'default', o
107
107
  const railWord = rail === 'flame' ? 'error' : rail === 'purple' ? 'subagent' : null;
108
108
  // `detail` renders as a sibling block AFTER the title/meta children (its own
109
109
  // line via flex-basis:100% in .ds-row-detail), not inside the title span.
110
+ // The same `highlight` search term that marks matches in the collapsed
111
+ // title previously stopped applying the moment a row expanded - the
112
+ // expanded body (often the ONLY place a match beyond the 220-char title
113
+ // window is actually visible) rendered as plain unmarked text.
114
+ const detailNode = (highlight && typeof detail === 'string')
115
+ ? h('span', {}, ...[].concat(highlightTitle(detail, highlight)))
116
+ : detail;
110
117
  return h(isLink ? 'a' : 'div', props,
111
118
  railWord ? h('span', { class: 'sr-only' }, railWord) : null,
112
119
  leading != null ? leading : (codeVal != null ? h('span', { class: 'code' }, codeVal) : null),
113
120
  h('span', { class: 'title', title: typeof title === 'string' ? title : undefined }, titleNode, sub ? h('span', { class: 'sub', title: typeof sub === 'string' ? sub : undefined }, sub) : null),
114
121
  trailing != null ? trailing : (meta != null ? h('span', { class: 'meta' }, meta) : null),
115
122
  actionRow,
116
- detail != null ? h('pre', { class: 'ds-row-detail' }, detail) : null);
123
+ detail != null ? h('pre', { class: 'ds-row-detail' }, detailNode) : null);
117
124
  }
118
125
 
119
126
  export function RowLink({ code, title, sub, meta, href = '#', key, target }) {