@takazudo/zudo-doc 5.28.2 → 6.0.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 +22 -0
- package/README.md +49 -16
- package/bin/gen-z-index.mjs +18 -18
- package/dist/agent-docs/identity.d.ts +4 -0
- package/dist/agent-docs/identity.js +24 -0
- package/dist/agent-docs/index.d.ts +5 -0
- package/dist/agent-docs/index.js +5 -0
- package/dist/agent-docs/limits.d.ts +11 -0
- package/dist/agent-docs/limits.js +24 -0
- package/dist/agent-docs/search.d.ts +14 -0
- package/dist/agent-docs/search.js +82 -0
- package/dist/agent-docs/tokenize.d.ts +2 -0
- package/dist/agent-docs/tokenize.js +22 -0
- package/dist/agent-docs/types.d.ts +68 -0
- package/dist/agent-docs/types.js +0 -0
- package/dist/ai-chat-modal/index.d.ts +1 -4
- package/dist/ai-chat-modal/index.js +183 -123
- package/dist/asset-components/asset-card.d.ts +1 -2
- package/dist/asset-components/asset-card.js +12 -12
- package/dist/asset-components/asset-code.d.ts +1 -2
- package/dist/asset-components/asset-code.js +10 -10
- package/dist/asset-components/shared.d.ts +3 -4
- package/dist/asset-components/shared.js +4 -4
- package/dist/asset-index-page/body.d.ts +5 -6
- package/dist/asset-index-page/body.js +6 -6
- package/dist/asset-index-page/index.d.ts +1 -2
- package/dist/asset-index-page/index.js +1 -1
- package/dist/asset-page/body.d.ts +5 -9
- package/dist/asset-page/body.js +3 -3
- package/dist/asset-page/components.d.ts +16 -17
- package/dist/asset-page/components.js +10 -9
- package/dist/asset-page/index.d.ts +1 -2
- package/dist/asset-page/index.js +1 -1
- package/dist/auto-logo/index.d.ts +1 -2
- package/dist/auto-logo/index.js +2 -2
- package/dist/body-foot-util/body-foot-util-area.d.ts +3 -4
- package/dist/body-foot-util/body-foot-util-area.js +1 -2
- package/dist/body-foot-util/edit-link.d.ts +2 -3
- package/dist/body-foot-util/edit-link.js +1 -2
- package/dist/breadcrumb/breadcrumb.d.ts +6 -6
- package/dist/breadcrumb/breadcrumb.js +3 -4
- package/dist/category-nav/index.d.ts +1 -2
- package/dist/category-nav/index.js +11 -5
- package/dist/category-tree-nav/index.d.ts +1 -2
- package/dist/category-tree-nav/index.js +3 -3
- package/dist/chrome/derive.d.ts +18 -27
- package/dist/chrome/derive.js +47 -29
- package/dist/chrome/index.d.ts +5 -5
- package/dist/chrome/index.js +1 -1
- package/dist/chrome/island-data.d.ts +4 -0
- package/dist/chrome/island-data.js +52 -0
- package/dist/chrome/primary-slots.d.ts +2 -3
- package/dist/chrome-bindings.d.ts +28 -22
- package/dist/code-group/index.d.ts +3 -4
- package/dist/code-group/index.js +3 -7
- package/dist/code-syntax/code-block-enhancer.d.ts +1 -2
- package/dist/code-syntax/code-block-enhancer.js +2 -2
- package/dist/code-syntax/mermaid-init.d.ts +1 -2
- package/dist/code-syntax/mermaid-init.js +5 -2
- package/dist/code-syntax/tabs-init-script.js +1 -1
- package/dist/code-syntax/tabs-init.d.ts +1 -2
- package/dist/code-syntax/tabs-init.js +2 -2
- package/dist/code-syntax/tabs.d.ts +6 -6
- package/dist/code-syntax/tabs.js +8 -8
- package/dist/compiled.css +2933 -2943
- package/dist/config-assertions/index.d.ts +13 -0
- package/dist/config-assertions/index.js +14 -0
- package/dist/config.d.ts +36 -17
- package/dist/config.js +23 -95
- package/dist/content/content-blockquote.d.ts +2 -3
- package/dist/content/content-blockquote.js +3 -3
- package/dist/content/content-code.d.ts +3 -4
- package/dist/content/content-code.js +5 -5
- package/dist/content/content-link.d.ts +3 -4
- package/dist/content/content-link.js +10 -10
- package/dist/content/content-ol.d.ts +2 -3
- package/dist/content/content-ol.js +5 -4
- package/dist/content/content-paragraph.d.ts +2 -3
- package/dist/content/content-paragraph.js +1 -1
- package/dist/content/content-strong.d.ts +2 -3
- package/dist/content/content-strong.js +3 -3
- package/dist/content/content-table.d.ts +2 -3
- package/dist/content/content-table.js +4 -4
- package/dist/content/content-ul.d.ts +2 -3
- package/dist/content/content-ul.js +4 -4
- package/dist/content/heading-h2.d.ts +2 -3
- package/dist/content/heading-h2.js +4 -4
- package/dist/content/heading-h3.d.ts +2 -3
- package/dist/content/heading-h3.js +4 -4
- package/dist/content/heading-h4.d.ts +2 -3
- package/dist/content/heading-h4.js +4 -4
- package/dist/content-admonition/index.d.ts +3 -4
- package/dist/content-admonition/index.js +2 -2
- package/dist/content.css +35 -33
- package/dist/design-token-panel-bootstrap-controller.d.ts +178 -0
- package/dist/design-token-panel-bootstrap-controller.js +359 -0
- package/dist/design-token-panel-bootstrap-island.d.ts +5 -0
- package/dist/design-token-panel-bootstrap-island.js +19 -0
- package/dist/design-token-panel-bootstrap.d.ts +5 -195
- package/dist/design-token-panel-bootstrap.js +3 -288
- package/dist/desktop-sidebar-toggle-island/index.d.ts +2 -7
- package/dist/desktop-sidebar-toggle-island/index.js +2 -58
- package/dist/desktop-sidebar-toggle-island/island.d.ts +4 -0
- package/dist/desktop-sidebar-toggle-island/island.js +43 -0
- package/dist/desktop-sidebar-toggle-island/storage.d.ts +4 -0
- package/dist/desktop-sidebar-toggle-island/storage.js +29 -0
- package/dist/desktop-toc-toggle-island/index.d.ts +2 -7
- package/dist/desktop-toc-toggle-island/index.js +2 -58
- package/dist/desktop-toc-toggle-island/island.d.ts +4 -0
- package/dist/desktop-toc-toggle-island/island.js +43 -0
- package/dist/desktop-toc-toggle-island/storage.d.ts +4 -0
- package/dist/desktop-toc-toggle-island/storage.js +29 -0
- package/dist/details/details.d.ts +3 -4
- package/dist/details/details.js +1 -1
- package/dist/doc-body-end/index.d.ts +1 -2
- package/dist/doc-body-end/index.js +1 -1
- package/dist/doc-body-end-islands/design-token-panel-island.d.ts +2 -2
- package/dist/doc-body-end-islands/design-token-panel-island.js +3 -7
- package/dist/doc-body-end-islands/index.d.ts +4 -21
- package/dist/doc-body-end-islands/index.js +5 -3
- package/dist/doc-body-end-islands/theme-pack-switcher-island.d.ts +3 -13
- package/dist/doc-body-end-islands/theme-pack-switcher-island.js +11 -13
- package/dist/doc-content-header/index.d.ts +1 -2
- package/dist/doc-content-header/index.js +1 -1
- package/dist/doc-history/index.d.ts +1 -1
- package/dist/doc-history/index.js +166 -141
- package/dist/doc-history-area/index.d.ts +6 -4
- package/dist/doc-history-area/index.js +17 -16
- package/dist/doc-metainfo-area/index.d.ts +2 -3
- package/dist/doc-metainfo-area/index.js +1 -1
- package/dist/doc-page-renderer/index.d.ts +13 -7
- package/dist/doc-page-renderer/index.js +10 -1
- package/dist/doc-page-shell/index.d.ts +20 -7
- package/dist/doc-page-shell/index.js +17 -6
- package/dist/doc-pager/index.d.ts +1 -2
- package/dist/doc-pager/index.js +3 -3
- package/dist/doc-tags-area/index.d.ts +2 -3
- package/dist/doc-tags-area/index.js +1 -1
- package/dist/doclayout/doc-layout-with-defaults.d.ts +9 -9
- package/dist/doclayout/doc-layout-with-defaults.js +5 -15
- package/dist/doclayout/doc-layout.d.ts +26 -27
- package/dist/doclayout/doc-layout.js +23 -14
- package/dist/docs-schema/index.d.ts +4 -0
- package/dist/docs-schema/index.js +1 -0
- package/dist/extract-headings/index.js +43 -12
- package/dist/factory-context/index.d.ts +22 -19
- package/dist/features.css +70 -8
- package/dist/find-in-page/find-bar.d.ts +4 -2
- package/dist/find-in-page/find-bar.js +58 -69
- package/dist/find-in-page/index.d.ts +2 -8
- package/dist/find-in-page/index.js +33 -30
- package/dist/footer/footer.d.ts +3 -4
- package/dist/footer/footer.js +3 -3
- package/dist/footer-with-defaults/index.d.ts +2 -3
- package/dist/footer-with-defaults/index.js +1 -1
- package/dist/frontmatter-preview-defaults/index.js +1 -0
- package/dist/head/doc-head.d.ts +1 -1
- package/dist/head/doc-head.js +24 -32
- package/dist/head/og-tags.d.ts +1 -1
- package/dist/head/og-tags.js +8 -7
- package/dist/head/twitter-card.d.ts +1 -1
- package/dist/head/twitter-card.js +1 -1
- package/dist/head-with-defaults/index.d.ts +7 -2
- package/dist/head-with-defaults/index.js +46 -32
- package/dist/header/header.d.ts +8 -8
- package/dist/header/header.js +9 -11
- package/dist/header/types.d.ts +7 -7
- package/dist/header-with-defaults/index.d.ts +1 -2
- package/dist/header-with-defaults/index.js +18 -8
- package/dist/home-intro/index.d.ts +2 -5
- package/dist/home-intro/index.js +7 -5
- package/dist/home-intro/prepare.js +4 -3
- package/dist/home-page/index.d.ts +3 -3
- package/dist/home-page/index.js +19 -17
- package/dist/html-preview-wrapper/highlighted-code.d.ts +3 -4
- package/dist/html-preview-wrapper/highlighted-code.js +19 -17
- package/dist/html-preview-wrapper/html-preview-wrapper.d.ts +4 -25
- package/dist/html-preview-wrapper/html-preview-wrapper.js +2 -87
- package/dist/html-preview-wrapper/html-preview.d.ts +3 -10
- package/dist/html-preview-wrapper/html-preview.js +13 -37
- package/dist/html-preview-wrapper/index.d.ts +2 -1
- package/dist/html-preview-wrapper/index.js +1 -1
- package/dist/html-preview-wrapper/preview-base.d.ts +3 -5
- package/dist/html-preview-wrapper/preview-base.js +56 -59
- package/dist/html-preview-wrapper/wrapper.d.ts +20 -0
- package/dist/html-preview-wrapper/wrapper.js +37 -0
- package/dist/hydration-pending.d.ts +3 -5
- package/dist/hydration-pending.js +7 -5
- package/dist/i18n-version/language-switcher.d.ts +5 -32
- package/dist/i18n-version/language-switcher.js +5 -106
- package/dist/i18n-version/switcher-generated-scripts.d.ts +2 -0
- package/dist/i18n-version/switcher-generated-scripts.js +107 -0
- package/dist/i18n-version/switcher-url-state.d.ts +76 -0
- package/dist/i18n-version/switcher-url-state.js +103 -0
- package/dist/i18n-version/version-banner.d.ts +2 -3
- package/dist/i18n-version/version-banner.js +1 -1
- package/dist/i18n-version/version-switcher.d.ts +5 -50
- package/dist/i18n-version/version-switcher.js +5 -157
- package/dist/icons/index.d.ts +18 -19
- package/dist/icons/index.js +17 -33
- package/dist/image-enlarge/index.d.ts +1 -10
- package/dist/image-enlarge/index.js +80 -55
- package/dist/image-enlarge/public.d.ts +2 -0
- package/dist/image-enlarge/public.js +6 -0
- package/dist/image-enlarge/ssr-fallback.d.ts +2 -0
- package/dist/image-enlarge/ssr-fallback.js +8 -0
- package/dist/index.d.ts +11 -4
- package/dist/inline-version-switcher/index.d.ts +1 -2
- package/dist/inline-version-switcher/index.js +1 -1
- package/dist/island-types/index.d.ts +2 -2
- package/dist/island-types/index.js +1 -5
- package/dist/math-block/index.d.ts +4 -7
- package/dist/math-block/index.js +5 -5
- package/dist/mcp/handler.d.ts +8 -0
- package/dist/mcp/handler.js +129 -0
- package/dist/mcp/index.d.ts +4 -0
- package/dist/mcp/index.js +7 -0
- package/dist/mcp/loader.d.ts +19 -0
- package/dist/mcp/loader.js +202 -0
- package/dist/mdx-components/index.js +40 -108
- package/dist/mermaid-enlarge/index.d.ts +1 -8
- package/dist/mermaid-enlarge/index.js +174 -158
- package/dist/mermaid-enlarge/public.d.ts +2 -0
- package/dist/mermaid-enlarge/public.js +6 -0
- package/dist/mermaid-enlarge/ssr-fallback.d.ts +2 -0
- package/dist/mermaid-enlarge/ssr-fallback.js +8 -0
- package/dist/metainfo/doc-metainfo.d.ts +2 -3
- package/dist/metainfo/doc-metainfo.js +1 -4
- package/dist/metainfo/doc-tags.d.ts +2 -3
- package/dist/metainfo/doc-tags.js +1 -1
- package/dist/metainfo/frontmatter-preview.d.ts +3 -4
- package/dist/metainfo/frontmatter-preview.js +1 -1
- package/dist/nav-data-prep/index.js +6 -4
- package/dist/nav-indexing/category-nav.d.ts +2 -3
- package/dist/nav-indexing/category-nav.js +1 -2
- package/dist/nav-indexing/category-tree-nav.d.ts +2 -3
- package/dist/nav-indexing/category-tree-nav.js +1 -1
- package/dist/nav-indexing/doc-card-grid.d.ts +2 -3
- package/dist/nav-indexing/doc-card-grid.js +1 -2
- package/dist/nav-indexing/docs-sitemap.d.ts +2 -3
- package/dist/nav-indexing/docs-sitemap.js +2 -2
- package/dist/nav-indexing/index.d.ts +1 -1
- package/dist/nav-indexing/nav-card-grid.d.ts +2 -3
- package/dist/nav-indexing/nav-card-grid.js +1 -2
- package/dist/nav-indexing/note-tray-index-parts/card-list.d.ts +1 -2
- package/dist/nav-indexing/note-tray-index-parts/card-list.js +4 -4
- package/dist/nav-indexing/note-tray-index-parts/date-line.d.ts +2 -3
- package/dist/nav-indexing/note-tray-index-parts/date-line.js +1 -1
- package/dist/nav-indexing/note-tray-index-parts/index-list.d.ts +1 -2
- package/dist/nav-indexing/note-tray-index-parts/index-list.js +2 -2
- package/dist/nav-indexing/note-tray-index-parts/timeline.d.ts +1 -2
- package/dist/nav-indexing/note-tray-index-parts/timeline.js +2 -2
- package/dist/nav-indexing/note-tray-index.d.ts +1 -2
- package/dist/nav-indexing/note-tray-index.js +1 -1
- package/dist/nav-indexing/site-tree-nav-demo.d.ts +2 -3
- package/dist/nav-indexing/site-tree-nav-demo.js +2 -2
- package/dist/nav-indexing/tag-nav.d.ts +1 -2
- package/dist/nav-indexing/tag-nav.js +1 -1
- package/dist/nav-indexing/types.d.ts +2 -2
- package/dist/nav-indexing/versions-page-content.d.ts +2 -3
- package/dist/nav-indexing/versions-page-content.js +8 -8
- package/dist/note-tray-index/index.d.ts +1 -2
- package/dist/note-tray-index/index.js +1 -1
- package/dist/page-loading/page-loading-overlay.d.ts +1 -2
- package/dist/page-loading/page-loading-overlay.js +3 -5
- package/dist/plugins/agent-export.d.ts +3 -0
- package/dist/plugins/agent-export.js +34 -0
- package/dist/plugins/internal/agent-export/chunk.d.ts +5 -0
- package/dist/plugins/internal/agent-export/chunk.js +90 -0
- package/dist/plugins/internal/agent-export/index.d.ts +24 -0
- package/dist/plugins/internal/agent-export/index.js +123 -0
- package/dist/plugins/internal/agent-export/normalize.d.ts +5 -0
- package/dist/plugins/internal/agent-export/normalize.js +73 -0
- package/dist/plugins/internal/llms-txt/dev-middleware.d.ts +6 -0
- package/dist/plugins/internal/llms-txt/dev-middleware.js +8 -3
- package/dist/plugins/internal/llms-txt/emit.js +23 -6
- package/dist/plugins/internal/llms-txt/generate.d.ts +7 -1
- package/dist/plugins/internal/llms-txt/generate.js +9 -2
- package/dist/plugins/internal/llms-txt/load.d.ts +2 -0
- package/dist/plugins/internal/llms-txt/load.js +20 -4
- package/dist/plugins/internal/llms-txt/types.d.ts +10 -0
- package/dist/plugins/routes.js +4 -0
- package/dist/preset.d.ts +19 -9
- package/dist/preset.js +20 -1
- package/dist/route-context-payload/index.js +1 -1
- package/dist/routes/404.d.ts +2 -3
- package/dist/routes/404.js +1 -1
- package/dist/routes/_chrome.d.ts +5 -5
- package/dist/routes/_chrome.js +7 -2
- package/dist/routes/_context.d.ts +4 -4
- package/dist/routes/_design-token-panel-bootstrap.d.ts +1 -4
- package/dist/routes/_design-token-panel-bootstrap.js +9 -1
- package/dist/routes/docs-slug.d.ts +2 -3
- package/dist/routes/docs-tags-index.d.ts +2 -3
- package/dist/routes/docs-tags-index.js +1 -1
- package/dist/routes/docs-tags-tag.d.ts +2 -3
- package/dist/routes/docs-tags-tag.js +1 -1
- package/dist/routes/docs-versions.d.ts +2 -3
- package/dist/routes/docs-versions.js +1 -1
- package/dist/routes/files-path.d.ts +2 -3
- package/dist/routes/files-path.js +1 -1
- package/dist/routes/index.d.ts +2 -3
- package/dist/routes/index.js +1 -1
- package/dist/routes/locale-docs-slug.d.ts +2 -3
- package/dist/routes/locale-docs-tags-index.d.ts +2 -3
- package/dist/routes/locale-docs-tags-index.js +1 -1
- package/dist/routes/locale-docs-tags-tag.d.ts +2 -3
- package/dist/routes/locale-docs-tags-tag.js +1 -1
- package/dist/routes/locale-docs-versions.d.ts +2 -3
- package/dist/routes/locale-docs-versions.js +1 -1
- package/dist/routes/locale-files-path.d.ts +2 -3
- package/dist/routes/locale-files-path.js +1 -1
- package/dist/routes/locale-index.d.ts +2 -3
- package/dist/routes/locale-index.js +1 -1
- package/dist/routes/mcp.d.ts +5 -0
- package/dist/routes/mcp.js +25 -0
- package/dist/routes/v-docs-slug.d.ts +2 -3
- package/dist/routes/v-locale-docs-slug.d.ts +2 -3
- package/dist/search-widget/index.d.ts +1 -2
- package/dist/search-widget/index.js +4 -7
- package/dist/search-widget-script/generated-script.js +12 -5
- package/dist/settings-defaults.d.ts +2 -0
- package/dist/settings-defaults.js +93 -0
- package/dist/settings.d.ts +8 -2
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/sidebar/sidebar.d.ts +12 -44
- package/dist/sidebar/sidebar.js +4 -3
- package/dist/sidebar/types.d.ts +14 -0
- package/dist/sidebar-prepaint/index.d.ts +1 -2
- package/dist/sidebar-prepaint/index.js +4 -6
- package/dist/sidebar-resizer/sidebar-resizer-init.d.ts +2 -3
- package/dist/sidebar-resizer/sidebar-resizer-init.js +3 -3
- package/dist/sidebar-toggle-island/index.d.ts +8 -11
- package/dist/sidebar-toggle-island/index.js +75 -62
- package/dist/sidebar-tree/build-tree.js +5 -6
- package/dist/sidebar-tree/types.d.ts +2 -0
- package/dist/sidebar-tree-island/index.d.ts +4 -19
- package/dist/sidebar-tree-island/index.js +782 -436
- package/dist/sidebar-tree-island/scope-state.d.ts +38 -0
- package/dist/sidebar-tree-island/scope-state.js +151 -0
- package/dist/sidebar-tree-island/sidebar-scroll-preserve.js +6 -2
- package/dist/sidebar-utils/index.d.ts +17 -19
- package/dist/sidebar-utils/index.js +100 -3
- package/dist/sidebar-utils/scope.d.ts +11 -0
- package/dist/sidebar-utils/scope.js +67 -0
- package/dist/sidebar-with-defaults/index.d.ts +1 -2
- package/dist/sidebar-with-defaults/index.js +19 -18
- package/dist/site-schema/nav-tree.js +15 -15
- package/dist/site-schema/types.d.ts +1 -0
- package/dist/site-tree-nav/index.d.ts +2 -3
- package/dist/site-tree-nav/index.js +11 -12
- package/dist/site-tree-nav/normalize-island-props.d.ts +16 -0
- package/dist/site-tree-nav/normalize-island-props.js +122 -0
- package/dist/site-tree-nav-island/index.d.ts +3 -3
- package/dist/site-tree-nav-island/index.js +243 -144
- package/dist/smart-break/index.d.ts +3 -4
- package/dist/smart-break/index.js +1 -1
- package/dist/tab-item/tab-item.d.ts +3 -4
- package/dist/tab-item/tab-item.js +1 -1
- package/dist/tag-pages/index.d.ts +3 -3
- package/dist/tag-pages/index.js +10 -10
- package/dist/theme/color-scheme-provider.d.ts +3 -3
- package/dist/theme/color-scheme-provider.js +3 -3
- package/dist/theme/theme-pack-provider.d.ts +1 -1
- package/dist/theme/theme-pack-provider.js +3 -3
- package/dist/theme/theme-toggle.d.ts +2 -3
- package/dist/theme/theme-toggle.js +1 -1
- package/dist/theme-pack-dialog/index.d.ts +1 -1
- package/dist/theme-pack-dialog/index.js +69 -75
- package/dist/theme-pack-dialog/theme-pack-card.d.ts +3 -4
- package/dist/theme-pack-dialog/theme-pack-card.js +19 -17
- package/dist/theme-pack-switcher/index.d.ts +4 -5
- package/dist/theme-pack-switcher/index.js +52 -49
- package/dist/theme-toggle/index.d.ts +1 -1
- package/dist/theme-toggle/index.js +154 -167
- package/dist/theme.css +47 -121
- package/dist/toc/mobile-toc.d.ts +3 -5
- package/dist/toc/mobile-toc.js +29 -27
- package/dist/toc/toc.d.ts +3 -4
- package/dist/toc/toc.js +18 -18
- package/dist/toc/use-active-heading.d.ts +5 -4
- package/dist/toc/use-active-heading.js +36 -30
- package/dist/toc-prepaint/index.d.ts +1 -2
- package/dist/toc-prepaint/index.js +4 -6
- package/dist/transitions/nested-island-props-refresh.d.ts +3 -16
- package/dist/transitions/nested-island-props-refresh.js +133 -151
- package/dist/transitions/page-events.d.ts +8 -13
- package/dist/tree-nav-shared/index.d.ts +4 -5
- package/dist/tree-nav-shared/index.js +6 -7
- package/dist/use-modal-dialog/index.d.ts +9 -63
- package/dist/use-modal-dialog/index.js +41 -59
- package/dist/versions-page/index.d.ts +3 -3
- package/dist/versions-page/index.js +5 -5
- package/dist/wind/index.d.ts +5 -0
- package/dist/wind/index.js +169 -0
- package/dist/wind.json +498 -0
- package/dist/z-index-defaults/index.d.ts +4 -4
- package/dist/zdtp-loader.d.ts +7 -0
- package/dist/zdtp-loader.js +8 -0
- package/eject/asset-components/asset-card.tsx +14 -16
- package/eject/asset-components/asset-code.tsx +10 -12
- package/eject/asset-components/shared.tsx +5 -7
- package/eject/breadcrumb/breadcrumb.tsx +15 -16
- package/eject/code-group/index.tsx +4 -10
- package/eject/content-admonition/index.tsx +5 -6
- package/eject/desktop-sidebar-toggle-island/index.ts +4 -0
- package/eject/desktop-sidebar-toggle-island/island.tsx +50 -0
- package/eject/desktop-sidebar-toggle-island/storage.ts +27 -0
- package/eject/details/details.tsx +3 -5
- package/eject/doc-history/index.tsx +193 -179
- package/eject/doc-pager/index.tsx +3 -4
- package/eject/footer/footer.tsx +7 -9
- package/eject/header/header.tsx +42 -54
- package/eject/header/nav-overflow-script.ts +1 -1
- package/eject/header/types.ts +12 -13
- package/eject/image-enlarge/index.tsx +84 -69
- package/eject/image-enlarge/public.ts +2 -0
- package/eject/image-enlarge/ssr-fallback.tsx +7 -0
- package/eject/page-loading/page-loading-overlay.tsx +8 -15
- package/eject/sidebar/index.ts +1 -0
- package/eject/sidebar/sidebar.tsx +16 -97
- package/eject/sidebar/types.ts +15 -0
- package/eject/sidebar-toggle-island/index.tsx +103 -102
- package/eject/sidebar-tree-island/index.tsx +827 -615
- package/eject/sidebar-tree-island/scope-state.ts +154 -0
- package/eject/sidebar-tree-island/sidebar-scroll-preserve.ts +8 -2
- package/eject/site-tree-nav-island/index.tsx +349 -222
- package/eject/tab-item/tab-item.tsx +2 -4
- package/eject/theme-toggle/hydration-pending.ts +6 -10
- package/eject/theme-toggle/index.tsx +133 -173
- package/eject/toc/mobile-toc.tsx +27 -31
- package/eject/toc/toc.tsx +21 -24
- package/eject/toc/use-active-heading.ts +43 -38
- package/package.json +40 -22
- package/routes-src/404.tsx +2 -3
- package/routes-src/_chrome.tsx +7 -2
- package/routes-src/_design-token-panel-bootstrap.tsx +1 -63
- package/routes-src/docs-slug.tsx +2 -3
- package/routes-src/docs-tags-index.tsx +2 -3
- package/routes-src/docs-tags-tag.tsx +2 -3
- package/routes-src/docs-versions.tsx +2 -3
- package/routes-src/files-path.tsx +2 -4
- package/routes-src/index.tsx +2 -3
- package/routes-src/locale-docs-slug.tsx +2 -3
- package/routes-src/locale-docs-tags-index.tsx +2 -3
- package/routes-src/locale-docs-tags-tag.tsx +2 -3
- package/routes-src/locale-docs-versions.tsx +2 -3
- package/routes-src/locale-files-path.tsx +2 -4
- package/routes-src/locale-index.tsx +2 -3
- package/routes-src/mcp.tsx +25 -0
- package/routes-src/v-docs-slug.tsx +2 -3
- package/routes-src/v-locale-docs-slug.tsx +2 -3
- package/tsconfig.base.json +1 -1
- package/dist/safelist.css +0 -2
- package/dist/theme-no-reset.css +0 -379
- package/eject/desktop-sidebar-toggle-island/index.tsx +0 -110
package/dist/routes/_chrome.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { DocNavNode } from "../site-schema/types.js";
|
|
2
|
-
export declare const composeMetaTitle: (title: string) => string, HeadWithDefaults: (props: import("../head-with-defaults/index.js").HeadWithDefaultsProps) => import("
|
|
2
|
+
export declare const composeMetaTitle: (title: string) => string, HeadWithDefaults: (props: import("../head-with-defaults/index.js").HeadWithDefaultsProps) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, HeaderWithDefaults: (props: import("../header-with-defaults/index.js").HeaderWithDefaultsProps) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, FooterWithDefaults: (props: {
|
|
3
3
|
lang?: string;
|
|
4
|
-
}) => import("
|
|
4
|
+
}) => import("@takazudo/zfb").Child, SidebarWithDefaults: (props: import("../sidebar-with-defaults/index.js").SidebarWithDefaultsProps) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, renderDocPage: (props: import("../doc-page-props/index.js").DocPageBaseProps, opts: import("../doc-page-renderer/index.js").RenderDocPageOptions) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, VersionsPageView: (props: import("../versions-page/index.js").VersionsPageViewProps) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, collectTagMapForLocale: (locale: string) => Map<string, import("../tag-pages/index.js").TagInfo>, TagDetailPageView: (props: {
|
|
5
5
|
locale: string;
|
|
6
6
|
tag: string;
|
|
7
7
|
tagInfo: import("../tag-pages/index.js").TagInfo;
|
|
8
|
-
}) => import("
|
|
8
|
+
}) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, TagsIndexPageView: (props: {
|
|
9
9
|
locale: string;
|
|
10
|
-
children?: import("
|
|
11
|
-
}) => import("
|
|
10
|
+
children?: import("@takazudo/zfb").Child;
|
|
11
|
+
}) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, SiteTreeNavWrapper: import("../index.js").FactoryComponent, BodyEndIslands: (props: import("../doc-body-end-islands/index.js").BodyEndIslandsProps) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, HomePageView: (props: import("../home-page/index.js").HomePageViewProps) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, AssetPageView: (props: import("../asset-page/index.js").AssetPageViewProps) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element, AssetIndexPageView: (props: import("../asset-index-page/index.js").AssetIndexPageViewProps) => import("@takazudo/zfb/zudo-react/jsx-runtime").JSX.Element;
|
|
12
12
|
export { buildDocRouteEntries } from "./_context.js";
|
|
13
13
|
export type { DocNavNode };
|
package/dist/routes/_chrome.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { Fragment, jsx } from "@takazudo/zfb/zudo-react/jsx-runtime";
|
|
2
|
+
import { Island } from "@takazudo/zfb";
|
|
1
3
|
import { routeCtx } from "./_context.js";
|
|
2
4
|
import { createChrome } from "../chrome/index.js";
|
|
3
|
-
import { DocHistory } from "../doc-history/index.js";
|
|
5
|
+
import { DocHistoryBoundary as DocHistory } from "../doc-history-area/index.js";
|
|
4
6
|
import { defineChromeBindings } from "@takazudo/zudo-doc/chrome-bindings";
|
|
5
7
|
import { chromeBindings } from "virtual:zudo-doc-chrome-bindings";
|
|
6
8
|
import { ConfiguredDesignTokenPanelBootstrap } from "./_design-token-panel-bootstrap.js";
|
|
9
|
+
function ConfiguredDesignTokenPanelBoundary() {
|
|
10
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Island, { when: "load", children: /* @__PURE__ */ jsx(ConfiguredDesignTokenPanelBootstrap, {}) }) });
|
|
11
|
+
}
|
|
7
12
|
const chrome = createChrome(routeCtx, {
|
|
8
13
|
...defineChromeBindings({
|
|
9
|
-
DesignTokenPanelBootstrap:
|
|
14
|
+
DesignTokenPanelBootstrap: ConfiguredDesignTokenPanelBoundary
|
|
10
15
|
}),
|
|
11
16
|
...chromeBindings,
|
|
12
17
|
...defineChromeBindings({ DocHistory })
|
|
@@ -6,7 +6,7 @@ import { type RouteContextPayload } from "../route-context/index.js";
|
|
|
6
6
|
export type { RouteContextPayload, TagInfo } from "../route-context/index.js";
|
|
7
7
|
/** The serializable route-context payload (from the virtual module). */
|
|
8
8
|
export declare const ctx: RouteContextPayload;
|
|
9
|
-
declare const routeCtx: import("../
|
|
9
|
+
declare const routeCtx: import("../index.js").RouteContext<Settings>;
|
|
10
10
|
export { routeCtx };
|
|
11
11
|
export declare const settings: Settings;
|
|
12
12
|
/** Host color-scheme palette map. `null` when not supplied — `_chrome.tsx`
|
|
@@ -16,7 +16,7 @@ export declare const colorSchemes: Record<string, ColorScheme> | null;
|
|
|
16
16
|
* plugin did not thread one (ADR `docs/adr/theme-packs.md`, Decision 2). */
|
|
17
17
|
export declare const themePackRegistry: ThemePackRegistry | null;
|
|
18
18
|
export declare const assetManifest: AssetManifest | null;
|
|
19
|
-
export declare const i18n: import("../
|
|
19
|
+
export declare const i18n: import("../index.js").FactoryI18n, defaultLocale: string, locales: readonly string[], getLocaleConfig: (locale: string) => import("../settings.js").LocaleConfig | undefined, getLocaleLabel: (locale: string) => string, t: (key: string, locale?: string) => string, urlHelpers: import("../url-helpers/index.js").UrlHelpers, withBase: (path: string) => string, stripBase: (path: string) => string, docsUrl: (slug: string, lang?: string) => string, versionedDocsUrl: (slug: string, versionSlug: string, lang?: string) => string, navHref: (path: string, lang: string | undefined, currentVersion: string | undefined, versioned?: boolean) => string, isDefaultLocaleOnlyPath: (path: string) => boolean, absoluteUrl: (pageUrl: string) => string | undefined, isExternal: (href: string) => boolean, resolveHref: (href: string) => string, buildLocaleLinks: (currentPath: string, currentLang: string) => import("../url-helpers/index.js").LocaleLink[], getCategoryOrder: () => string[], getNavSectionForSlug: (slug: string) => string | undefined, getNavSubtree: (tree: import("./_chrome.js").DocNavNode[], categoryMatch?: string) => import("./_chrome.js").DocNavNode[], extractHeadings: (body: string) => import("../extract-headings/index.js").HeadingItem[], resolveTagBound: (raw: string) => import("../tag-helpers/index.js").ResolvedTag, collectTags: (entries: ReadonlyArray<{
|
|
20
20
|
slug: string;
|
|
21
21
|
data: {
|
|
22
22
|
slug?: string;
|
|
@@ -26,6 +26,6 @@ export declare const i18n: import("../factory-context/index.js").FactoryI18n, de
|
|
|
26
26
|
};
|
|
27
27
|
}>, slugFn: (entrySlug: string, data: {
|
|
28
28
|
slug?: string;
|
|
29
|
-
}) => string) => Map<string, import("./_context.js").TagInfo>, resolveNavSource: (lang: string, currentVersion: string | undefined, options?: import("../nav-source-docs/index.js").NavSourceOptions) => import("../nav-source-docs/index.js").NavSourceDocs, resolveVersionedLocaleSource: (versionSlug: string, versionDocsDir: string | undefined, lang: string, localeDir: string | undefined, options?: import("../nav-source-docs/index.js").NavSourceOptions) => import("../nav-source-docs/index.js").NavSourceDocs, loadNavSourceDocs: (lang: string, currentVersion: string | undefined) => import("../nav-source-docs/index.js").NavSourceDocs, buildDocRouteEntries: (args: import("../site-schema/doc-route-entries.js").BuildDocRouteEntriesArgs<import("../doc-page-props/index.js").DocPageEntry>) => import("../site-schema/doc-route-entries.js").DocRouteEntry<import("../doc-page-props/index.js").DocPageEntry>[], enumerateDocsRoutes: (locale: string) => string[], enumerateTagsRoutes: (locale: string) => string[], enumerateVersionedRoutes: (version: import("../route-enumerators/index.js").VersionConfigForEnum, locale: string) => string[], enumerateAllRoutes: () => Map<string, string>, buildNavTree: (docs: import("../doc-page-props/index.js").DocPageEntry[], locale: string, categoryMeta: Map<string, import("../sidebar-tree/types.js").CategoryMeta> | undefined, buildHref: import("../
|
|
30
|
-
buildHref?: import("../
|
|
29
|
+
}) => string) => Map<string, import("./_context.js").TagInfo>, resolveNavSource: (lang: string, currentVersion: string | undefined, options?: import("../nav-source-docs/index.js").NavSourceOptions) => import("../nav-source-docs/index.js").NavSourceDocs, resolveVersionedLocaleSource: (versionSlug: string, versionDocsDir: string | undefined, lang: string, localeDir: string | undefined, options?: import("../nav-source-docs/index.js").NavSourceOptions) => import("../nav-source-docs/index.js").NavSourceDocs, loadNavSourceDocs: (lang: string, currentVersion: string | undefined) => import("../nav-source-docs/index.js").NavSourceDocs, buildDocRouteEntries: (args: import("../site-schema/doc-route-entries.js").BuildDocRouteEntriesArgs<import("../doc-page-props/index.js").DocPageEntry>) => import("../site-schema/doc-route-entries.js").DocRouteEntry<import("../doc-page-props/index.js").DocPageEntry>[], enumerateDocsRoutes: (locale: string) => string[], enumerateTagsRoutes: (locale: string) => string[], enumerateVersionedRoutes: (version: import("../route-enumerators/index.js").VersionConfigForEnum, locale: string) => string[], enumerateAllRoutes: () => Map<string, string>, buildNavTree: (docs: import("../doc-page-props/index.js").DocPageEntry[], locale: string, categoryMeta: Map<string, import("../sidebar-tree/types.js").CategoryMeta> | undefined, buildHref: import("../index.js").RouteHrefBuilder, options?: {
|
|
30
|
+
buildHref?: import("../index.js").RouteHrefBuilder;
|
|
31
31
|
}) => import("./_chrome.js").DocNavNode[], groupSatelliteNodes: (tree: import("./_chrome.js").DocNavNode[], prefixes: string[]) => import("./_chrome.js").DocNavNode[], findNode: (nodes: import("./_chrome.js").DocNavNode[], slug: string) => import("./_chrome.js").DocNavNode | undefined, firstRoutedHref: (node: import("./_chrome.js").DocNavNode) => string | undefined, collectAutoIndexNodes: (nodes: import("./_chrome.js").DocNavNode[]) => import("./_chrome.js").DocNavNode[], isNavVisible: (doc: import("../doc-page-props/index.js").DocPageEntry) => boolean, stableDocs: (collectionName: string) => import("../doc-page-props/index.js").DocPageEntry[], toRouteSlug: (entrySlug: string) => string, toSlugParams: (routeSlug: string) => string[];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/** @jsxRuntime automatic */
|
|
2
|
-
/** @jsxImportSource preact */
|
|
3
|
-
import type { JSX } from "preact";
|
|
4
1
|
/**
|
|
5
2
|
* The design-token-panel island injected routes mount instead of the package
|
|
6
3
|
* default: identical behavior, except the mode-scoped `PanelConfig` builder is
|
|
@@ -12,7 +9,7 @@ import type { JSX } from "preact";
|
|
|
12
9
|
* effect of `bootstrapDesignTokenPanel`), matching the package default's
|
|
13
10
|
* non-`ssrFallback` `Island({ when: "load" })` shape.
|
|
14
11
|
*/
|
|
15
|
-
export declare function ConfiguredDesignTokenPanelBootstrap():
|
|
12
|
+
export declare function ConfiguredDesignTokenPanelBootstrap(): null;
|
|
16
13
|
export declare namespace ConfiguredDesignTokenPanelBootstrap {
|
|
17
14
|
var displayName: string;
|
|
18
15
|
}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { getScope } from "@takazudo/zfb/zudo-react";
|
|
2
3
|
import { runDesignTokenPanelBootstrapOnce } from "../design-token-panel-bootstrap.js";
|
|
3
4
|
import { buildDesignTokenPanelConfig } from "virtual:zudo-doc-design-token-panel-config";
|
|
4
5
|
function ConfiguredDesignTokenPanelBootstrap() {
|
|
5
|
-
|
|
6
|
+
const scope = getScope();
|
|
7
|
+
scope.onActivate(() => {
|
|
8
|
+
runDesignTokenPanelBootstrapOnce(
|
|
9
|
+
buildDesignTokenPanelConfig,
|
|
10
|
+
"configured",
|
|
11
|
+
scope.abortSignal
|
|
12
|
+
);
|
|
13
|
+
});
|
|
6
14
|
return null;
|
|
7
15
|
}
|
|
8
16
|
ConfiguredDesignTokenPanelBootstrap.displayName = "ConfiguredDesignTokenPanelBootstrap";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
import type { DocPageEntryProps, DocPageAutoIndexProps } from "../doc-page-props/index.js";
|
|
5
4
|
export declare const frontmatter: {
|
|
6
5
|
title: string;
|
|
@@ -17,5 +16,5 @@ type PageArgs = DocPageProps & {
|
|
|
17
16
|
slug: string[];
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
|
-
export default function DocsPage(props: PageArgs):
|
|
19
|
+
export default function DocsPage(props: PageArgs): Child;
|
|
21
20
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
export declare const frontmatter: {
|
|
5
4
|
title: string;
|
|
6
5
|
};
|
|
7
|
-
export default function DocsTagsIndexPage():
|
|
6
|
+
export default function DocsTagsIndexPage(): Child;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
import type { TagInfo } from "../tag-pages/index.js";
|
|
5
4
|
export declare const frontmatter: {
|
|
6
5
|
title: string;
|
|
@@ -19,5 +18,5 @@ interface PageProps {
|
|
|
19
18
|
};
|
|
20
19
|
tagInfo: TagInfo;
|
|
21
20
|
}
|
|
22
|
-
export default function DocTagPage({ params, tagInfo }: PageProps):
|
|
21
|
+
export default function DocTagPage({ params, tagInfo }: PageProps): Child;
|
|
23
22
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
export declare const frontmatter: {
|
|
5
4
|
title: string;
|
|
6
5
|
};
|
|
7
|
-
export default function VersionsPage():
|
|
6
|
+
export default function VersionsPage(): Child;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
import type { AssetIndexEntry } from "../route-context-payload/types.js";
|
|
5
4
|
export declare const frontmatter: {
|
|
6
5
|
title: string;
|
|
@@ -18,5 +17,5 @@ export declare function paths(): Array<{
|
|
|
18
17
|
};
|
|
19
18
|
props: FilesPathProps;
|
|
20
19
|
}>;
|
|
21
|
-
export default function FilesPathPage(props: FilesPathProps):
|
|
20
|
+
export default function FilesPathPage(props: FilesPathProps): Child;
|
|
22
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx } from "
|
|
1
|
+
import { jsx } from "@takazudo/zfb/zudo-react/jsx-runtime";
|
|
2
2
|
import recordsValue from "virtual:zudo-doc-asset-bodies";
|
|
3
3
|
import { assetManifest, settings } from "./_context.js";
|
|
4
4
|
import { AssetIndexPageView, AssetPageView } from "./_chrome.js";
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
export declare const frontmatter: {
|
|
5
4
|
title: string;
|
|
6
5
|
};
|
|
7
|
-
export default function IndexPage():
|
|
6
|
+
export default function IndexPage(): Child;
|
package/dist/routes/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx } from "
|
|
1
|
+
import { jsx } from "@takazudo/zfb/zudo-react/jsx-runtime";
|
|
2
2
|
import { defaultLocale, routeCtx, settings } from "./_context.js";
|
|
3
3
|
import { prepareHomeData } from "../home-page/prepare-home-data.js";
|
|
4
4
|
import { HomePageView } from "./_chrome.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
import type { DocPageEntryProps, DocPageAutoIndexProps } from "../doc-page-props/index.js";
|
|
5
4
|
export declare const frontmatter: {
|
|
6
5
|
title: string;
|
|
@@ -23,5 +22,5 @@ type PageArgs = DocPageProps & {
|
|
|
23
22
|
slug: string[];
|
|
24
23
|
};
|
|
25
24
|
};
|
|
26
|
-
export default function LocaleDocsPage(props: PageArgs):
|
|
25
|
+
export default function LocaleDocsPage(props: PageArgs): Child;
|
|
27
26
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
export declare const frontmatter: {
|
|
5
4
|
title: string;
|
|
6
5
|
};
|
|
@@ -14,5 +13,5 @@ interface PageProps {
|
|
|
14
13
|
locale: string;
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
|
-
export default function LocaleTagsIndexPage({ params }: PageProps):
|
|
16
|
+
export default function LocaleTagsIndexPage({ params }: PageProps): Child;
|
|
18
17
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
import type { TagInfo } from "../tag-pages/index.js";
|
|
5
4
|
export declare const frontmatter: {
|
|
6
5
|
title: string;
|
|
@@ -21,5 +20,5 @@ interface PageProps {
|
|
|
21
20
|
};
|
|
22
21
|
tagInfo: TagInfo;
|
|
23
22
|
}
|
|
24
|
-
export default function LocaleDocTagPage({ params, tagInfo }: PageProps):
|
|
23
|
+
export default function LocaleDocTagPage({ params, tagInfo }: PageProps): Child;
|
|
25
24
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
export declare const frontmatter: {
|
|
5
4
|
title: string;
|
|
6
5
|
};
|
|
@@ -14,5 +13,5 @@ interface PageProps {
|
|
|
14
13
|
locale: string;
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
|
-
export default function LocaleVersionsPage({ params }: PageProps):
|
|
16
|
+
export default function LocaleVersionsPage({ params }: PageProps): Child;
|
|
18
17
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
import type { AssetIndexEntry } from "../route-context-payload/types.js";
|
|
5
4
|
export declare const frontmatter: {
|
|
6
5
|
title: string;
|
|
@@ -25,5 +24,5 @@ type PageArgs = LocaleFilesPathProps & {
|
|
|
25
24
|
path: string[];
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
|
-
export default function LocaleFilesPathPage(props: PageArgs):
|
|
27
|
+
export default function LocaleFilesPathPage(props: PageArgs): Child;
|
|
29
28
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
export declare const frontmatter: {
|
|
5
4
|
title: string;
|
|
6
5
|
};
|
|
@@ -20,5 +19,5 @@ interface PageArgs {
|
|
|
20
19
|
locale: string;
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
|
-
export default function LocaleIndexPage({ params }: PageArgs):
|
|
22
|
+
export default function LocaleIndexPage({ params }: PageArgs): Child;
|
|
24
23
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx } from "
|
|
1
|
+
import { jsx } from "@takazudo/zfb/zudo-react/jsx-runtime";
|
|
2
2
|
import { settings, routeCtx } from "./_context.js";
|
|
3
3
|
import { prepareHomeData } from "../home-page/prepare-home-data.js";
|
|
4
4
|
import { HomePageView } from "./_chrome.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getCloudflareContext } from "@takazudo/zfb-adapter-cloudflare";
|
|
2
|
+
import { createMcpHandler } from "../mcp/index.js";
|
|
3
|
+
import { settings } from "./_context.js";
|
|
4
|
+
const frontmatter = { title: "MCP" };
|
|
5
|
+
const prerender = false;
|
|
6
|
+
const handlers = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
function McpRoute() {
|
|
8
|
+
const { env, request } = getCloudflareContext();
|
|
9
|
+
if (!env.ASSETS) return Promise.resolve(new Response(JSON.stringify({ error: "ASSETS binding unavailable." }), { status: 503, headers: { "content-type": "application/json", "cache-control": "no-store" } }));
|
|
10
|
+
let handler = handlers.get(env.ASSETS);
|
|
11
|
+
if (!handler) {
|
|
12
|
+
handler = createMcpHandler({
|
|
13
|
+
base: settings.base ?? "/",
|
|
14
|
+
siteUrl: settings.siteUrl,
|
|
15
|
+
read: (path) => env.ASSETS.fetch(new Request(new URL(path, "https://assets.local")))
|
|
16
|
+
});
|
|
17
|
+
handlers.set(env.ASSETS, handler);
|
|
18
|
+
}
|
|
19
|
+
return handler(request);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
McpRoute as default,
|
|
23
|
+
frontmatter,
|
|
24
|
+
prerender
|
|
25
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
import type { VersionConfig } from "../settings.js";
|
|
5
4
|
import type { DocPageEntryProps, DocPageAutoIndexProps } from "../doc-page-props/index.js";
|
|
6
5
|
export declare const frontmatter: {
|
|
@@ -23,5 +22,5 @@ type PageArgs = DocPageProps & {
|
|
|
23
22
|
slug: string[];
|
|
24
23
|
};
|
|
25
24
|
};
|
|
26
|
-
export default function VersionedDocsPage(props: PageArgs):
|
|
25
|
+
export default function VersionedDocsPage(props: PageArgs): Child;
|
|
27
26
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { Child } from "@takazudo/zfb/zudo-react";
|
|
4
3
|
import type { VersionConfig } from "../settings.js";
|
|
5
4
|
import type { DocPageEntryProps, DocPageAutoIndexProps } from "../doc-page-props/index.js";
|
|
6
5
|
export declare const frontmatter: {
|
|
@@ -27,5 +26,5 @@ type PageArgs = DocPageProps & {
|
|
|
27
26
|
slug: string[];
|
|
28
27
|
};
|
|
29
28
|
};
|
|
30
|
-
export default function VersionedLocaleDocsPage(props: PageArgs):
|
|
29
|
+
export default function VersionedLocaleDocsPage(props: PageArgs): Child;
|
|
31
30
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime automatic */
|
|
2
|
-
|
|
3
|
-
import type { JSX } from "preact";
|
|
2
|
+
import type { JSX } from "@takazudo/zfb/zudo-react/jsx-runtime";
|
|
4
3
|
export interface SearchWidgetProps {
|
|
5
4
|
/** Locale-aware placeholder: "Type to search..." / 「検索したい単語を入力」 */
|
|
6
5
|
placeholderText: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "
|
|
1
|
+
import { Fragment, jsx, jsxs } from "@takazudo/zfb/zudo-react/jsx-runtime";
|
|
2
2
|
import { SEARCH_WIDGET_SCRIPT } from "../search-widget-script/index.js";
|
|
3
3
|
function SearchWidget(props) {
|
|
4
4
|
const {
|
|
@@ -26,12 +26,11 @@ function SearchWidget(props) {
|
|
|
26
26
|
{
|
|
27
27
|
"data-open-search": true,
|
|
28
28
|
type: "button",
|
|
29
|
-
class: "flex h-[40px] w-[40px] shrink-0 items-center justify-center text-muted transition-colors hover:text-fg focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",
|
|
29
|
+
class: "flex h-[40px] w-[40px] shrink-0 items-center justify-center text-muted transition-colors duration-0 hover:text-fg focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",
|
|
30
30
|
"aria-label": searchLabel,
|
|
31
31
|
children: /* @__PURE__ */ jsxs(
|
|
32
32
|
"svg",
|
|
33
33
|
{
|
|
34
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
35
34
|
width: "22",
|
|
36
35
|
height: "22",
|
|
37
36
|
viewBox: "0 0 24 24",
|
|
@@ -60,7 +59,6 @@ function SearchWidget(props) {
|
|
|
60
59
|
/* @__PURE__ */ jsxs(
|
|
61
60
|
"svg",
|
|
62
61
|
{
|
|
63
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
64
62
|
width: "16",
|
|
65
63
|
height: "16",
|
|
66
64
|
viewBox: "0 0 24 24",
|
|
@@ -85,7 +83,7 @@ function SearchWidget(props) {
|
|
|
85
83
|
placeholder: placeholderText,
|
|
86
84
|
class: "w-full bg-transparent text-body text-fg outline-none placeholder:text-muted",
|
|
87
85
|
autocomplete: "off",
|
|
88
|
-
spellcheck: false
|
|
86
|
+
spellcheck: "false"
|
|
89
87
|
}
|
|
90
88
|
),
|
|
91
89
|
/* @__PURE__ */ jsx(
|
|
@@ -106,7 +104,6 @@ function SearchWidget(props) {
|
|
|
106
104
|
children: /* @__PURE__ */ jsxs(
|
|
107
105
|
"svg",
|
|
108
106
|
{
|
|
109
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
110
107
|
width: "20",
|
|
111
108
|
height: "20",
|
|
112
109
|
viewBox: "0 0 24 24",
|
|
@@ -161,7 +158,7 @@ function SearchWidget(props) {
|
|
|
161
158
|
]
|
|
162
159
|
}
|
|
163
160
|
),
|
|
164
|
-
/* @__PURE__ */ jsx("script", {
|
|
161
|
+
/* @__PURE__ */ jsx("script", { rawHtml: SEARCH_WIDGET_SCRIPT })
|
|
165
162
|
] });
|
|
166
163
|
}
|
|
167
164
|
export {
|
|
@@ -133,6 +133,7 @@ function buildSearchWidgetScript() {
|
|
|
133
133
|
// without re-querying the DOM (the placeholder node is replaced once
|
|
134
134
|
// search results are rendered).
|
|
135
135
|
this._placeholderHtml = "";
|
|
136
|
+
this._placeholderHtmlCaptured = false;
|
|
136
137
|
// Held so we can remove the document-level after-navigate listener
|
|
137
138
|
// in disconnectedCallback. zudolab/zudo-doc#1523 \u2014 under Strategy B
|
|
138
139
|
// SPA navigation a non-persisted <site-search> element would leak
|
|
@@ -152,18 +153,24 @@ function buildSearchWidgetScript() {
|
|
|
152
153
|
this._searchUnavailable = this.dataset.searchUnavailable || "Search unavailable";
|
|
153
154
|
this._loadingIndex = this.dataset.loadingIndex || "Loading search index\\u2026";
|
|
154
155
|
this._noResults = this.dataset.noResults || "No results found.";
|
|
155
|
-
// Snapshot the placeholder HTML before any search renders overwrite it.
|
|
156
|
-
this._placeholderHtml = this._results ? this._results.innerHTML : "";
|
|
157
|
-
|
|
158
156
|
// Platform keyboard-shortcut label \u2014 injected into [data-kbd-shortcut]
|
|
159
157
|
var nav = navigator;
|
|
160
|
-
var isMac = /Mac|iPhone|iPad|iPod
|
|
158
|
+
var isMac = /Mac|iPhone|iPad|iPod/i.test(
|
|
161
159
|
(nav.userAgentData && nav.userAgentData.platform) || nav.userAgent
|
|
162
160
|
);
|
|
163
161
|
this._shortcut = isMac ? "\\u2318K" : "Ctrl+K";
|
|
164
162
|
var kbdEl = this.querySelector("[data-kbd-shortcut]");
|
|
165
163
|
if (kbdEl) kbdEl.textContent = this._shortcut;
|
|
166
164
|
|
|
165
|
+
// Snapshot the placeholder after its platform shortcut is populated so
|
|
166
|
+
// every empty-query restore keeps the same label shown on first open. Keep
|
|
167
|
+
// that first snapshot across SPA disconnect/reconnects, which can happen
|
|
168
|
+
// while the results container contains rendered results.
|
|
169
|
+
if (!this._placeholderHtmlCaptured && this._results) {
|
|
170
|
+
this._placeholderHtml = this._results.innerHTML;
|
|
171
|
+
this._placeholderHtmlCaptured = true;
|
|
172
|
+
}
|
|
173
|
+
|
|
167
174
|
// Wire open/close handlers
|
|
168
175
|
var self = this;
|
|
169
176
|
if (this._openBtn) {
|
|
@@ -447,7 +454,7 @@ function buildSearchWidgetScript() {
|
|
|
447
454
|
if (text) {
|
|
448
455
|
var excerpt = document.createElement("p");
|
|
449
456
|
excerpt.className =
|
|
450
|
-
"mt-vsp-2xs text-caption text-muted leading-relaxed group-hover:underline group-focus-visible:underline decoration
|
|
457
|
+
"mt-vsp-2xs text-caption text-muted leading-relaxed group-hover:underline group-focus-visible:underline zd-search-excerpt-decoration";
|
|
451
458
|
var truncated = truncate(text, this._currentQuery, 200);
|
|
452
459
|
excerpt.innerHTML = highlightTerms(truncated, terms);
|
|
453
460
|
link.appendChild(excerpt);
|