@uniweb/kit 0.13.0 → 0.13.2

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": "@uniweb/kit",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -44,8 +44,8 @@
44
44
  "shiki": "^3.0.0",
45
45
  "tailwind-merge": "^3.6.0",
46
46
  "temml": "^0.13.2",
47
- "@uniweb/core": "^0.10.2",
48
- "@uniweb/semantic-parser": "^1.2.3",
47
+ "@uniweb/core": "^0.11.1",
48
+ "@uniweb/semantic-parser": "^1.3.0",
49
49
  "@uniweb/scene": "^0.1.3"
50
50
  },
51
51
  "peerDependencies": {
@@ -256,6 +256,21 @@ export function SequenceElement({ element, block, components }) {
256
256
 
257
257
  switch (element.type) {
258
258
  case 'heading': {
259
+ // A `#>` label line (role: "pretitle") is not a document heading: no
260
+ // anchor id, no h-tag — it would pollute outlines and tables of
261
+ // contents. It renders as a paragraph the design targets via
262
+ // [data-role="pretitle"]; its hash count means nothing.
263
+ if (element.attrs?.role === 'pretitle') {
264
+ return (
265
+ <p data-role="pretitle">
266
+ {hasInlineMarkers(element.text) ? (
267
+ renderParagraphWithInsets(element.text, block, element)
268
+ ) : (
269
+ <SafeHtml value={element.text} as="span" />
270
+ )}
271
+ </p>
272
+ )
273
+ }
259
274
  const level = Math.min(element.level || 1, 6)
260
275
  const Tag = `h${level}`
261
276
  // The id is the anchor `useHeadings()` and every in-page nav link