@takazudo/zudo-doc 5.7.0 → 5.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.
- package/CHANGELOG.md +35 -0
- package/README.md +17 -0
- package/dist/config.d.ts +18 -0
- package/dist/config.js +1 -0
- package/dist/eject/index.js +9 -0
- package/dist/i18n-defaults/index.js +3 -0
- package/dist/plugins/codex-resources.d.ts +4 -0
- package/dist/plugins/codex-resources.js +31 -0
- package/dist/plugins/internal/claude-resources/generate.js +20 -291
- package/dist/plugins/internal/codex-resources/agents-md.d.ts +6 -0
- package/dist/plugins/internal/codex-resources/agents-md.js +70 -0
- package/dist/plugins/internal/codex-resources/agents.d.ts +7 -0
- package/dist/plugins/internal/codex-resources/agents.js +104 -0
- package/dist/plugins/internal/codex-resources/config.d.ts +6 -0
- package/dist/plugins/internal/codex-resources/config.js +111 -0
- package/dist/plugins/internal/codex-resources/generate.d.ts +20 -0
- package/dist/plugins/internal/codex-resources/generate.js +34 -0
- package/dist/plugins/internal/codex-resources/hooks.d.ts +6 -0
- package/dist/plugins/internal/codex-resources/hooks.js +174 -0
- package/dist/plugins/internal/codex-resources/index.d.ts +24 -0
- package/dist/plugins/internal/codex-resources/index.js +21 -0
- package/dist/plugins/internal/codex-resources/overview.d.ts +10 -0
- package/dist/plugins/internal/codex-resources/overview.js +33 -0
- package/dist/plugins/internal/codex-resources/rules.d.ts +6 -0
- package/dist/plugins/internal/codex-resources/rules.js +255 -0
- package/dist/plugins/internal/codex-resources/skills.d.ts +2 -0
- package/dist/plugins/internal/codex-resources/skills.js +84 -0
- package/dist/plugins/internal/codex-resources/utils.d.ts +14 -0
- package/dist/plugins/internal/codex-resources/utils.js +80 -0
- package/dist/plugins/internal/resource-docs-shared/fs.d.ts +3 -0
- package/dist/plugins/internal/resource-docs-shared/fs.js +19 -0
- package/dist/plugins/internal/resource-docs-shared/index.d.ts +7 -0
- package/dist/plugins/internal/resource-docs-shared/index.js +44 -0
- package/dist/plugins/internal/resource-docs-shared/links.d.ts +22 -0
- package/dist/plugins/internal/resource-docs-shared/links.js +44 -0
- package/dist/plugins/internal/resource-docs-shared/markdown-structure.d.ts +9 -0
- package/dist/plugins/internal/resource-docs-shared/markdown-structure.js +22 -0
- package/dist/plugins/internal/resource-docs-shared/mdx.d.ts +23 -0
- package/dist/plugins/internal/resource-docs-shared/mdx.js +63 -0
- package/dist/plugins/internal/resource-docs-shared/skills.d.ts +37 -0
- package/dist/plugins/internal/resource-docs-shared/skills.js +318 -0
- package/dist/plugins/internal/resource-docs-shared/walk.d.ts +20 -0
- package/dist/plugins/internal/resource-docs-shared/walk.js +41 -0
- package/dist/preset.d.ts +8 -0
- package/dist/preset.js +11 -0
- package/dist/safelist.css +1 -1
- package/dist/settings.d.ts +5 -0
- package/dist/transitions/nested-island-props-refresh.js +9 -3
- package/eject/header/gen-nav-overflow-script.mjs +771 -0
- package/eject/header/header.tsx +2 -0
- package/eject/header/nav-overflow-script.ts +11 -8
- package/package.json +9 -4
- /package/dist/plugins/internal/{claude-resources → resource-docs-shared}/escape-for-mdx.d.ts +0 -0
- /package/dist/plugins/internal/{claude-resources → resource-docs-shared}/escape-for-mdx.js +0 -0
package/eject/header/header.tsx
CHANGED
|
@@ -319,6 +319,8 @@ export function Header(props: HeaderProps): JSX.Element {
|
|
|
319
319
|
// island module): on BEFORE_SWAP_EVENT it copies the incoming
|
|
320
320
|
// document's data-props onto the live nested islands, and
|
|
321
321
|
// mountNewIslands re-reads the attribute at mount time (#3530)
|
|
322
|
+
// Host islands can opt out with data-zd-props-preserve on the live
|
|
323
|
+
// island or an ancestor inside this persisted root (#3555).
|
|
322
324
|
// - Header nav + aria-current: NAV_OVERFLOW_SCRIPT re-runs on
|
|
323
325
|
// AFTER_NAVIGATE_EVENT (frozen by zudolab/zudo-doc#3534 — the
|
|
324
326
|
// `addEventListener(${afterNavigateEventLiteral}, initNavOverflow)`
|
|
@@ -46,12 +46,15 @@
|
|
|
46
46
|
// `src/header/__tests__/nav-overflow-script.test.ts` proves the committed
|
|
47
47
|
// literal still matches a fresh regeneration.
|
|
48
48
|
//
|
|
49
|
-
// EJECTED COPIES (`zudo-doc eject header`): the
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
//
|
|
49
|
+
// EJECTED COPIES (`zudo-doc eject header`): the payload ships
|
|
50
|
+
// `./gen-nav-overflow-script.mjs`. After editing the local `./nav-active.ts`
|
|
51
|
+
// or `./nav-class-tokens.ts`, run:
|
|
52
|
+
//
|
|
53
|
+
// node ./src/components/zudo-doc/header/gen-nav-overflow-script.mjs
|
|
54
|
+
//
|
|
55
|
+
// The generator reads those two local customization inputs and the installed
|
|
56
|
+
// package's current-path/page-event inputs, then rewrites the local
|
|
57
|
+
// `./nav-overflow-generated-script.ts`. Commit that generated file with the
|
|
58
|
+
// edits. Do not edit its string literal by hand: regeneration preserves the
|
|
59
|
+
// frozen, consumer-bundler-independent bytes required for stable CSP hashes.
|
|
57
60
|
export { NAV_OVERFLOW_SCRIPT } from "./nav-overflow-generated-script.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-doc",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.9.0",
|
|
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",
|
|
@@ -179,6 +179,10 @@
|
|
|
179
179
|
"types": "./dist/plugins/claude-resources.d.ts",
|
|
180
180
|
"default": "./dist/plugins/claude-resources.js"
|
|
181
181
|
},
|
|
182
|
+
"./plugins/codex-resources": {
|
|
183
|
+
"types": "./dist/plugins/codex-resources.d.ts",
|
|
184
|
+
"default": "./dist/plugins/codex-resources.js"
|
|
185
|
+
},
|
|
182
186
|
"./plugins/routes": {
|
|
183
187
|
"types": "./dist/plugins/routes.d.ts",
|
|
184
188
|
"default": "./dist/plugins/routes.js"
|
|
@@ -617,7 +621,7 @@
|
|
|
617
621
|
"CHANGELOG.md"
|
|
618
622
|
],
|
|
619
623
|
"peerDependencies": {
|
|
620
|
-
"@takazudo/zdtp": "^0.4.
|
|
624
|
+
"@takazudo/zdtp": "^0.4.12",
|
|
621
625
|
"@takazudo/zfb": "^2.7.1",
|
|
622
626
|
"@takazudo/zfb-md-wasm": "^2.7.1",
|
|
623
627
|
"@takazudo/zfb-runtime": "^2.7.1",
|
|
@@ -646,11 +650,13 @@
|
|
|
646
650
|
},
|
|
647
651
|
"dependencies": {
|
|
648
652
|
"@inquirer/prompts": "^8.4.2",
|
|
653
|
+
"esbuild": ">=0.28.1",
|
|
649
654
|
"fs-extra": "^11.3.0",
|
|
650
655
|
"gray-matter": "^4.0.3",
|
|
651
656
|
"minimist": "^1.2.8",
|
|
652
657
|
"picocolors": "^1.1.1",
|
|
653
658
|
"pluralize": "^8.0.0",
|
|
659
|
+
"smol-toml": "^1.8.0",
|
|
654
660
|
"string-similarity": "^4.0.4",
|
|
655
661
|
"tsx": "^4.21.0"
|
|
656
662
|
},
|
|
@@ -663,7 +669,6 @@
|
|
|
663
669
|
"@types/node": "^25.3.5",
|
|
664
670
|
"@types/pluralize": "^0.0.33",
|
|
665
671
|
"@types/string-similarity": "^4.0.2",
|
|
666
|
-
"esbuild": ">=0.28.1",
|
|
667
672
|
"happy-dom": "^20.10.6",
|
|
668
673
|
"npm-run-all2": "^7.0.2",
|
|
669
674
|
"preact": "^10.29.1",
|
|
@@ -672,7 +677,7 @@
|
|
|
672
677
|
"typescript": "^5.0.0",
|
|
673
678
|
"vitest": "^4.1.0",
|
|
674
679
|
"zod": "^4.3.6",
|
|
675
|
-
"@takazudo/zudo-doc-history-server": "5.
|
|
680
|
+
"@takazudo/zudo-doc-history-server": "5.9.0"
|
|
676
681
|
},
|
|
677
682
|
"scripts": {
|
|
678
683
|
"gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",
|
/package/dist/plugins/internal/{claude-resources → resource-docs-shared}/escape-for-mdx.d.ts
RENAMED
|
File without changes
|
|
File without changes
|