@takazudo/zudo-doc 5.22.0 → 5.22.1

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/CHANGELOG.md CHANGED
@@ -8,6 +8,16 @@ The format is based on Keep a Changelog, and release notes are generated from th
8
8
 
9
9
  No unreleased changes.
10
10
 
11
+ ## [5.22.1] - 2026-09-13
12
+
13
+ ### Bug Fixes
14
+
15
+ - Prevented long, unbroken home-sitemap labels—including depth-0 flex items—from causing horizontal page overflow at larger font sizes. (fd9ca5d2, 4215ba9b)
16
+
17
+ ### Other Changes
18
+
19
+ - Expanded the optional `@takazudo/zdtp` peer range to support 0.8.x without requiring configuration or storage migrations. (f744769a)
20
+
11
21
  ## [5.22.0] - 2026-09-11
12
22
 
13
23
  ### Features
@@ -164,7 +164,7 @@ function CategoryNode({
164
164
  {
165
165
  type: "button",
166
166
  onClick: toggle,
167
- className: "flex-1 py-vsp-xs text-left hover:text-accent hover:underline focus:underline",
167
+ className: "flex-1 min-w-0 break-words py-vsp-xs text-left hover:text-accent hover:underline focus:underline",
168
168
  children: node.label
169
169
  }
170
170
  ),
@@ -269,7 +269,7 @@ function NoteTrayRow({
269
269
  children: item.rank === void 0 ? "" : String(item.rank).padStart(width, "0")
270
270
  }
271
271
  ),
272
- /* @__PURE__ */ jsx("span", { className: "min-w-0", children: /* @__PURE__ */ jsx("span", { children: item.label }) })
272
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 break-words", children: /* @__PURE__ */ jsx("span", { children: item.label }) })
273
273
  ]
274
274
  }
275
275
  );
@@ -289,11 +289,11 @@ function LeafNode({
289
289
  "a",
290
290
  {
291
291
  href: node.href,
292
- className: isRoot ? "flex items-start gap-hsp-xs py-[calc(var(--spacing-vsp-xs)+0.15rem)] pr-hsp-sm text-small font-semibold text-fg hover:text-accent hover:underline focus:underline" : `block py-vsp-2xs pr-hsp-sm ${isLast ? "pb-vsp-xs" : ""} text-small text-fg hover:text-accent hover:underline focus:underline`,
292
+ className: isRoot ? "flex items-start gap-hsp-xs py-[calc(var(--spacing-vsp-xs)+0.15rem)] pr-hsp-sm text-small font-semibold text-fg break-words hover:text-accent hover:underline focus:underline" : `block py-vsp-2xs pr-hsp-sm ${isLast ? "pb-vsp-xs" : ""} text-small text-fg break-words hover:text-accent hover:underline focus:underline`,
293
293
  style: { paddingLeft },
294
294
  children: [
295
295
  isRoot && /* @__PURE__ */ jsx("span", { className: "flex h-[1lh] items-center", children: /* @__PURE__ */ jsx(CategoryLinkIcon, { className: "w-[18px] 2xl:w-[24px]" }) }),
296
- node.label
296
+ isRoot ? /* @__PURE__ */ jsx("span", { className: "min-w-0", children: node.label }) : node.label
297
297
  ]
298
298
  }
299
299
  )
@@ -210,7 +210,7 @@ function CategoryNode({
210
210
  <button
211
211
  type="button"
212
212
  onClick={toggle}
213
- className="flex-1 py-vsp-xs text-left hover:text-accent hover:underline focus:underline"
213
+ className="flex-1 min-w-0 break-words py-vsp-xs text-left hover:text-accent hover:underline focus:underline"
214
214
  >
215
215
  {node.label}
216
216
  </button>
@@ -356,7 +356,7 @@ function NoteTrayRow({
356
356
  {item.rank === undefined ? "" : String(item.rank).padStart(width, "0")}
357
357
  </span>
358
358
  )}
359
- <span className="min-w-0">
359
+ <span className="min-w-0 break-words">
360
360
  <span>{item.label}</span>
361
361
  </span>
362
362
  </a>
@@ -387,8 +387,8 @@ function LeafNode({
387
387
  <a
388
388
  href={node.href}
389
389
  className={isRoot
390
- ? "flex items-start gap-hsp-xs py-[calc(var(--spacing-vsp-xs)+0.15rem)] pr-hsp-sm text-small font-semibold text-fg hover:text-accent hover:underline focus:underline"
391
- : `block py-vsp-2xs pr-hsp-sm ${isLast ? "pb-vsp-xs" : ""} text-small text-fg hover:text-accent hover:underline focus:underline`
390
+ ? "flex items-start gap-hsp-xs py-[calc(var(--spacing-vsp-xs)+0.15rem)] pr-hsp-sm text-small font-semibold text-fg break-words hover:text-accent hover:underline focus:underline"
391
+ : `block py-vsp-2xs pr-hsp-sm ${isLast ? "pb-vsp-xs" : ""} text-small text-fg break-words hover:text-accent hover:underline focus:underline`
392
392
  }
393
393
  style={{ paddingLeft }}
394
394
  >
@@ -397,7 +397,7 @@ function LeafNode({
397
397
  <CategoryLinkIcon className="w-[18px] 2xl:w-[24px]" />
398
398
  </span>
399
399
  )}
400
- {node.label}
400
+ {isRoot ? <span className="min-w-0">{node.label}</span> : node.label}
401
401
  </a>
402
402
  </div>
403
403
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-doc",
3
- "version": "5.22.0",
3
+ "version": "5.22.1",
4
4
  "type": "module",
5
5
  "description": "zudo-doc framework primitives layer that sits on top of zfb's engine — sidebar, theme, TOC, breadcrumb, layouts, head injection, View Transitions, SSR-skip wrappers (per ADR-003).",
6
6
  "license": "MIT",
@@ -680,7 +680,7 @@
680
680
  "CHANGELOG.md"
681
681
  ],
682
682
  "peerDependencies": {
683
- "@takazudo/zdtp": "^0.5.2 || ^0.6.0 || ^0.7.0",
683
+ "@takazudo/zdtp": "^0.5.2 || ^0.6.0 || ^0.7.0 || ^0.8.0",
684
684
  "@takazudo/zfb": "^2.16.0",
685
685
  "@takazudo/zfb-md-wasm": "^2.16.0",
686
686
  "@takazudo/zfb-runtime": "^2.16.0",
@@ -734,7 +734,7 @@
734
734
  "typescript": "^5.0.0",
735
735
  "vitest": "^4.1.0",
736
736
  "zod": "^4.3.6",
737
- "@takazudo/zudo-doc-history-server": "5.22.0"
737
+ "@takazudo/zudo-doc-history-server": "5.22.1"
738
738
  },
739
739
  "scripts": {
740
740
  "gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",