@takazudo/zudo-doc 5.19.0 → 5.20.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 +30 -0
- package/dist/asset-page/index.d.ts +3 -1
- package/dist/asset-page/index.js +5 -4
- package/dist/breadcrumb/breadcrumb.js +21 -14
- package/dist/chrome/derive.d.ts +23 -1
- package/dist/chrome/derive.js +17 -2
- package/dist/chrome-bindings.d.ts +6 -1
- package/dist/compiled.css +23 -0
- package/dist/config.d.ts +13 -1
- package/dist/config.js +1 -0
- package/dist/date-format-resolve/index.d.ts +10 -0
- package/dist/date-format-resolve/index.js +22 -0
- package/dist/doc-content-header/index.js +4 -2
- package/dist/doc-history/index.d.ts +17 -1
- package/dist/doc-history/index.js +19 -13
- package/dist/doc-history-area/index.d.ts +3 -1
- package/dist/doc-history-area/index.js +7 -2
- package/dist/doc-metainfo-area/index.js +4 -2
- package/dist/doc-pager/index.js +4 -2
- package/dist/docs-schema/index.d.ts +1 -1
- package/dist/eject/index.js +1 -1
- package/dist/factory-context/index.d.ts +3 -6
- package/dist/format-date/index.d.ts +15 -6
- package/dist/format-date/index.js +79 -15
- package/dist/header-with-defaults/index.js +5 -1
- package/dist/home-page/index.js +9 -7
- package/dist/nav-indexing/note-tray-index-parts/card-list.js +18 -5
- package/dist/nav-indexing/note-tray-index-parts/date-line.d.ts +3 -1
- package/dist/nav-indexing/note-tray-index-parts/date-line.js +4 -3
- package/dist/nav-indexing/note-tray-index-parts/index-list.js +9 -1
- package/dist/nav-indexing/note-tray-index-parts/timeline.js +2 -2
- package/dist/nav-indexing/note-tray-index.d.ts +9 -0
- package/dist/note-tray-index/index.d.ts +9 -0
- package/dist/note-tray-index/index.js +3 -1
- package/dist/note-tray-model/index.d.ts +13 -3
- package/dist/note-tray-model/index.js +9 -2
- package/dist/plugins/internal/claude-resources/generate.js +3 -2
- package/dist/plugins/internal/codex-resources/overview.js +3 -2
- package/dist/plugins/internal/resource-docs-shared/fs.d.ts +1 -1
- package/dist/plugins/internal/resource-docs-shared/fs.js +3 -2
- package/dist/routes/_context.d.ts +1 -4
- package/dist/safelist.css +1 -1
- package/dist/settings.d.ts +37 -0
- package/dist/sidebar-toggle-island/index.d.ts +16 -1
- package/dist/sidebar-toggle-island/index.js +6 -2
- package/dist/sidebar-tree-island/index.d.ts +15 -1
- package/dist/sidebar-tree-island/index.js +19 -8
- package/dist/sidebar-with-defaults/index.js +5 -2
- package/dist/site-tree-nav/index.d.ts +13 -0
- package/dist/site-tree-nav/index.js +6 -2
- package/dist/site-tree-nav-island/index.d.ts +9 -1
- package/dist/site-tree-nav-island/index.js +19 -3
- package/dist/theme-no-reset.css +379 -0
- package/dist/theme-packs/academia/pack.css +12 -2
- package/dist/theme-packs/blueprint/pack.css +7 -1
- package/dist/theme-packs/broadsheet/pack.css +7 -1
- package/dist/theme-packs/brutalist/pack.css +21 -3
- package/dist/theme-packs/drift/pack.css +5 -1
- package/dist/theme-packs/foundry/pack.css +13 -2
- package/dist/theme-packs/hearth/pack.css +7 -1
- package/dist/theme-packs/ledger/pack.css +12 -2
- package/dist/theme-packs/observatory/pack.css +5 -1
- package/dist/theme-packs/riso/pack.css +9 -6
- package/dist/theme-packs/sakura/pack.css +6 -2
- package/dist/theme-packs/sumi/pack.css +7 -1
- package/dist/theme-packs/swissgrid/pack.css +7 -1
- package/dist/theme-packs/tidepool/pack.css +8 -1
- package/dist/theme-packs/washi/pack.css +5 -2
- package/dist/theme.css +60 -0
- package/eject/breadcrumb/breadcrumb.tsx +8 -3
- package/eject/doc-history/index.tsx +41 -16
- package/eject/doc-pager/index.tsx +12 -2
- package/eject/sidebar-toggle-island/index.tsx +19 -0
- package/eject/sidebar-tree-island/index.tsx +40 -4
- package/eject/site-tree-nav-island/index.tsx +31 -5
- package/package.json +10 -9
package/dist/safelist.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* generated by gen-safelist.mjs — do not edit by hand */
|
|
2
|
-
@source inline("-domtweaker-enabled -elpath-enabled -left-[calc(var(--spacing-icon-lg)/2)] -link -mb-px -ml-hsp-sm -mt-px -noscript -open -state -state-v2 -state-v3 -state-v4 -translate-x-full 2xl:w-[24px] [&::-webkit-details-marker]:hidden [&_a]:pointer-events-auto [&_a]:text-accent [&_a]:underline [&_li]:mb-0 [&_nav]:mb-0 [asset-viewer] [data-admonition] [data-kbd-shortcut] [data-switcher-launcher] [doc-history-meta] [doc-history] [doc-layout] [llms-txt] [zudo-doc] a a2 abbr about above absent absolute accent accent- accent:accent- access across activated active actual actually added admonition admonition- admonition-body admonition-title admonition/callout after after-breadcrumb after-content after-navigate after-sidebar after-title against agent agents ai-chat ai-chat-md ai-chat-trigger alert align-top all allow allow-same-origin allow-scripts allowed alone already already-executed already-multiline already-picked also always an anchor and and/or animate-pulse animate-spin announce ansehen antialiased any anywhere anzeigen app appear application/json application/octet-stream application/pdf application/sql application/toml application/x-httpd-php application/xml application/yaml applied applies apply applying approach approval are area arg argument aria-atomic aria-busy aria-controls aria-current aria-disabled aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-orientation aria-pressed aria-selected aria-valuemax aria-valuemin aria-valuenow arm arms around arrows article as asc ascii aside aspect-[1200/630] aspect-square asset asset- asset-components assets assets/client assistant async at at-rule attach attribute attributes auf authored auto auto-logo-mask autogenerated availability available avc1 avif avis avoid await away b back backdrop:bg-bg/30 backdrop:bg-bg/80 backdrop:bg-overlay/60 backdrop:z-modal-backdrop background background-color backtick backticks baked band banner bar bare base base- base64 base:base- based bash batch be bearbeiten because becomes been before below best best-effort between bg bg-[#fff] bg-accent bg-bg bg-chat-assistant-bg bg-chat-user-bg bg-code-bg bg-fg bg-info/10 bg-info/5 bg-muted bg-overlay/30 bg-surface bg-surface/50 bg-transparent bg-warning/10 bg-warning/5 bi big bigint bin binaries bind binding blank blanks block blockquote blocks blur bodies body body-end-components body-end-scripts bold boolean bootstrap border border-accent border-b border-b-2 border-b-[5px] border-bg/30 border-collapse border-danger border-dashed border-fg border-image border-info/30 border-l border-l-0 border-l-[3px] border-left-width border-muted border-none border-r border-r-0 border-radius border-solid border-t border-t-[2px] border-t-[3px] border-transparent border-warning/30 border-width border-y both bottom-hsp-lg bottom-vsp-xl boundaries box box-border br brackets brand breadcrumb:end breadcrumb:start break-words brief brown browser browser-tab browsers browses btn budget bug build builder built built-in bundler but button buttons by bypassed byte-identical bytes c cache cached calendar-valid call callable called caller calls can cancellation candidate cannot canonical canvas caption captured captures card card-grid cards carry case-insensitive cases cat-nav- catalog catch categories category caught caution center center/contain ch chains change changed changelog changelogs changes characters check checker child children choose chrome chrome-font ci circle cite cjs class class-less class-mode claude claude-agents claude-commands claude-md claude-resources claude-skills cleaned cleanly clear clearing click client client-router client-side clip clobber clobbering close closed closes closing closure code code-block-sr-announce code-group code-group-panel codex codex-agents codex-agents-md codex-config codex-hooks codex-resources codex-rules codex-skills col col-resize col-span-full col-start-1 colgroup collapse collapses collapsible collision color color-scheme color-scheme-changed color-scheme-provider color-tweak colorization colors column comma command commands commas comment commercial commercial-font-denylist commit compare complete component component:github-link component:language-switcher component:search component:theme-toggle component:version-switcher composes composition compute computed concrete conf config configuration configurations configure configured conflicting conflicts confuse connect const construction consumer consumes contain container containers containing contains content content-admonition content-layer content-link content-type content-wrapper:end content-wrapper:start contents context contract control controller controls converts cookie-blocking copied copy copy-url core corners correct correctly corrupt could count covered covers cpp crashes created cross-component crumb- cs csharp css css-presence csv ctx cur current current-path/index.ts current-route currently cursor cursor-not-allowed cursor-pointer custom cycle d danger dark dash data data-active data-admonition data-asset-details-hidden data-auto-logo data-base data-close-search data-current-locale data-default-locale data-doc-date data-doc-description data-doc-metainfo data-doc-pager data-doc-unavailable-versions data-find-active data-find-match data-footer data-group-id data-header data-header-logo data-header-nav data-header-right data-kbd-shortcut data-lang data-language-menu data-language-switcher data-language-toggle data-loading-index data-mermaid-enlarge-ready data-mermaid-rendered data-mermaid-src data-nav-active data-nav-category data-nav-item data-nav-item-dropdown data-nav-more data-nav-more-menu data-nav-more-toggle data-no-results data-note-tray-group data-note-tray-row data-open-search data-pan-active data-processed data-props data-result-count-template data-search-count data-search-count-narrow data-search-dialog data-search-input data-search-placeholder data-search-results data-search-unavailable data-sidebar-hidden data-sidebar-resizer data-site-nav data-switcher-card data-switcher-launcher data-tab-btn data-tab-default data-tab-label data-tab-value data-tabs data-taglist-group data-testid data-theme data-theme-pack data-theme-pack-switcher data-theme/style data-toc-hidden data-trailing-slash data-unavailable-label data-variant data-version-banner data-version-latest data-version-menu data-version-rewire data-version-slug data-version-switcher data-version-toggle data-version-trigger-label data-zd-asset-action data-zd-asset-actions data-zd-asset-details data-zd-asset-details-chevron data-zd-asset-details-list data-zd-asset-details-toggle data-zd-asset-index-action data-zd-asset-index-empty data-zd-asset-index-page data-zd-asset-page data-zd-asset-tree data-zd-copy-url data-zd-html-preview-reservation data-zd-label-collapse data-zd-label-expand data-zd-mobile-sidebar data-zd-mobile-toc data-zd-nav-section data-zd-nosidebar data-zd-pending data-zd-props-preserve data-zd-sidebar-open-key data-zd-theme-pack-css data-zd-theme-pack-css-loading data-zd-theme-pack-loading data-zd-toc data-zd-wide data-zfb-island data-zfb-island-remount data-zfb-reload data-zfb-transition-persist date dated dd decimal decision declaration declare declared declares decoration decoration-muted deepest deepest-match default default-transition-duration defaults deferral deferred del delegated delete deliberately delimiter dependency depends depth der desc description design design-token design-token-panel design-token-trigger desktop desktop-sidebar desktop-sidebar-toggle desktop-sidebar-toggle-island desktop-toc-toggle destroys destructive detach detached details determine deterministic dev dfn diagram diagrams dialog did die dieser diff diff-line-added diff-line-content diff-line-empty diff-line-num diff-line-removed diff-row differ different dir directly directories directory disabled disabled:cursor-default disabled:opacity-50 disabled:pointer-events-none disc display display:none dist distance distinct div dl do doc doc-card- doc-content-band doc-history doc-history-generate doc-history-panel doc-history-trigger doc-page doc-pager doc-prose doc-title docblock docs docs- docs-v- document document-level documentation documented documents does dog dot double-registration download draft drag drawer drift drifts drop dropdown dropdown-parent dropdowns dt duplicate duration duration-150 duration-200 during dynamically e e2e each eager earlier early ease-in-out edge editing einer either eject ejectable ejectables ejected el element elements els else em embedded emit emitting empty empty/undefined en enable enabled end enhanced enhancement enlarged entire entities entries entry entrypoint env equal error escape escaped escapes even event eventually every everything-enabled exactly example exceeds excerpt excludes exclusively existing exists exit expand expected explicit export extends extra f factories failed fall fallback fallbacks falling falls false family fast favicon feature fg field fields fieldset figcaption figure file files fill fills finally find find-match find-match-active fire fires first first-paint first:mt-0 fit fix fixed fixed-width fixtures flag flash flat flex flex-1 flex-col flex-wrap flip flipping flips flow flush-left focus focus-visible:bg-accent/10 focus-visible:border-accent focus-visible:decoration-accent focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 focus-visible:text-accent focus-visible:underline focus-within:border-accent focus-within:z-local-1 focus:border-accent focus:outline-none focus:text-accent focus:underline folder folders follows font font-bold font-face-parity font-family font-file-missing font-medium font-mono font-sans font-scale font-semibold font-size font-weight font-weight-bold font-weight-medium font-weight-normal font-weight-semibold font/woff2 fonts footer footer- for form format former found four-link fox fragment frame free freeze fresh from frontmatter frontmatter-preview frozen frozen-script fs-extra ftyp full fully function further g gains gap-[0.3em] gap-[clamp(1.5rem,3vw,4rem)] gap-hsp-2xs gap-hsp-lg gap-hsp-md gap-hsp-sm gap-hsp-xl gap-hsp-xs gap-vsp-2xs gap-vsp-3xs gap-vsp-lg gap-vsp-md gap-vsp-xs gap-x-hsp-2xs gap-x-hsp-lg gap-x-hsp-md gap-x-hsp-sm gap-x-hsp-xs gap-y-vsp-2xs gap-y-vsp-3xs gap-y-vsp-lg gap-y-vsp-md gap-y-vsp-xs gaps gate geladen2026 generate generated generation genuine geometry get getting-started gif git github github-dark github-link give go got grab gradient granular graph grid grid-cols-1 grid-cols-2 grid-cols-[auto_1fr] grid-rows-[auto_auto] grid-rows-subgrid group group-focus-visible:decoration-accent group-focus-visible:text-accent group-focus-visible:text-accent-hover group-focus-visible:text-fg group-focus-visible:underline group-focus-within:block group-hover:bg-fg group-hover:block group-hover:decoration-accent group-hover:text-accent group-hover:text-accent-hover group-hover:text-bg group-hover:text-fg group-hover:underline group-open:rotate-90 grouped grouping guard guards gz h h-[0.5rem] h-[0.625rem] h-[0.875rem] h-[1.125rem] h-[1.25rem] h-[1.575rem] h-[10rem] h-[14px] h-[1em] h-[1lh] h-[2.5rem] h-[2rem] h-[3.5rem] h-[3rem] h-[70vh] h-[90vh] h-[calc(100%-3rem)] h-[calc(100vh-3.5rem)] h-dvh h-full h-icon-lg h-icon-md h-icon-sm h-icon-xs h1 h1s h2 h22013h4 h2s h3 h4 h5 h6 half hand-copied hand-editable handle handled handler handlers happens hard-loaded hardcoded has hash-link have head head-links head-scripts header header- header-call:end header-call:start header-right heading heading-h2 heading-h3 heading-h4 heading-rule headings height here hex hi-root hidden hide hierarchical highlight highlighting history home hook hooks hooks-json horizontal host hover:bg-[color-mix(in_srgb,var(--color-surface)_80%,var(--color-fg)_20%)] hover:bg-accent-hover hover:bg-accent/10 hover:bg-danger/10 hover:bg-surface hover:border-accent hover:border-accent-hover hover:border-fg hover:decoration-accent hover:text-accent hover:text-accent-hover hover:text-fg hover:underline hover:z-local-1 hpp hr href hrefs hsp hsp-2xl hsp-2xs hsp-lg hsp-md hsp-sm hsp-xl hsp-xs html i i18n/theme. i2 i3 i4 ico icon icon-lg icon-md icon-sm icon-xs identical idle idx if iframe ignoring image image-enlarge image-overlay-inset image/avif image/gif image/jpeg image/png image/webp image/x-icon img implementation import important important-allowlist imports in inactive includes including incomplete independently index index2026 indirectly info inherit inherited ini initial initialised injected inline inline-block inline-flex inner input input-clear ins inserted-after-color-mode inserted-after-color-scheme inserted-after-site-name inserted-first insertion inset-0 inside inside-only inspect install installation installed instance instanceof instead instructions intended intent intentionally intercept interface internal interpolation into invalid invalidated inverse inversion invocation invoke is is-checker island island-root iso2 iso3 iso4 iso5 iso6 isom ispe issues it italic item item- items items-baseline items-center items-end items-start iteration its itself ja java javascript jpeg jpg js json jsx jumps just justification justify-between justify-center justify-end justify-start katex kbd keep keeping keeps kept key keyboard keyboard-shortcut keydown keys keystroke keyword keywords khroma known-token-names kopieren kotlin kt label landing lands language-menu language-switcher language-toggle larger last:border-b-0 last:pb-0 later latest launch layout lazy leading leading-none leading-normal leading-relaxed leading-snug leading-tight leaf leaf- leak leaves leaving left left-0 left:calc legend legitimate length lets letter-spacing lg lg:block lg:border lg:border-fg lg:border-solid lg:flex lg:flex-col lg:flex-row lg:gap-hsp-xl lg:grid-cols-3 lg:grid-cols-[repeat(auto-fit,minmax(12rem,1fr))] lg:h-[90vh] lg:hidden lg:justify-start lg:m-auto lg:max-h-[90vh] lg:max-w-[52.5rem] lg:ml-[var(--zd-sidebar-w)] lg:pr-hsp-sm lg:pt-vsp-2xl lg:px-hsp-2xl lg:py-vsp-2xl lg:text-left lg:w-[90vw] lg:w-[clamp(16rem,25%,22rem)] li li2 library license lifecycle light light/dark like likely line line-height line/statement lines linger link link- links list list-disc list-none listener lists literal literally literals live lives llms llms-txt load loaded loader loading local local-1 local-2 local-3 locale locales log logo long longer longest-match look loses lostpointercapture lower luminance m m-0 m-auto m10 m14 m16 m21 m6 machinery main major make malformed malformed-markup malicious managed manifest manual manually maps mark markdown marks match matches matching math math-display math-inline max max-h-[85vh] max-h-[90vh] max-h-full max-h-none max-w-[16rem] max-w-[64rem] max-w-[85%] max-w-[85vw] max-w-[90vw] max-w-[calc(100vw-2rem)] max-w-[calc(100vw-var(--spacing-hsp-xl))] max-w-[clamp(50rem,75vw,90rem)] max-w-full max-w-none max-w-sm max-width maximum may mb-0 mb-vsp-2xs mb-vsp-lg mb-vsp-md mb-vsp-sm mb-vsp-xl mb-vsp-xs md mdx means measured measurement measures measuring mechanism menu mermaid message messages meta meta-knob meta-schema metadata migration min-h-0 min-h-[20rem] min-h-[44px] min-h-[60vh] min-h-[calc(100vh-3.5rem)] min-h-screen min-w-0 min-w-[10rem] min-w-[3rem] min-w-[44px] min-w-[8rem] minifier minor mirror mirroring mirrors missing mit mjs ml-[calc(var(--spacing-hsp-xl)+1px)] ml-auto ml-hsp-2xl ml-hsp-lg ml-hsp-md ml-hsp-sm ml-hsp-xl mobile mod modal modal-backdrop mode model modify module moment monospace month more most mount mounted mouseenter mouseleave mov move mp4 mp41 mp42 mr-[calc(var(--spacing-hsp-xl)+1px)] mr-hsp-sm ms mt-0 mt-vsp-2xl mt-vsp-2xs mt-vsp-3xs mt-vsp-lg mt-vsp-md mt-vsp-sm mt-vsp-xl mt-vsp-xs multi-changelog multiple must mutates mutation mutations muted mvhd mx-auto my-vsp-lg my-vsp-md n name named names native natural nav nav-active nav-card- nav/doc navigating navigation navigations near needed needs neither nested neutral never new newly-swapped next nicht no no-color-scheme no-data-theme-selector no-enlarge no-op no-repeat no-underline noch node node:buffer node:fs node:fs/promises node:module node:path node:url node:util nodes nofollow noindex non-draggable non-empty non-index non-light-dark non-literal non-null non-persisted none noopener noreferrer normal noscript not notable note note-tray notes now null number numeric object object-contain observe observer occurred of off offered offsets ofl-required og:description og:image og:image:alt og:image:height og:image:width og:title og:type og:url oklch ol old older omit omitting on once one only onto opacity-60 open open/close option or order original other others otherwise out outgoing outline-none over overflow overflow-auto overflow-hidden overflow-x-auto overflow-y-auto overflow-y:auto overlaps override overrides overscroll-contain overwrite own owned p p-0 p-hsp-2xs p-hsp-lg p-hsp-md p-hsp-sm p-hsp-xl pack pack-scoped package package-default package-injected package-owned packages packs padding page page-loading page-loading-overlay page-loading-spinner page-navigate-end page-title page-wide pages pages/. paint paint-and-read palette pan panel panels paren-balance-aware parent parse parsed parser parses part pass passed passes patch path paths pattern payload payload-budget pb-[50vh] pb-vsp-2xs pb-vsp-lg pb-vsp-md pb-vsp-xl pb-vsp-xs pdf peer peer-focus-visible:border-accent peer-focus-visible:text-accent peer-hover:border-accent peer-hover:text-accent pending per per-block per-link per-package per-release permanently persisted persistence php pi pick picked picks picocolors pins pipelines pl-[1.25rem] pl-hsp-lg pl-hsp-md pl-hsp-sm pl-hsp-xl place place-items-center placeholder placeholder:text-muted plain plural plus png png16 png32 pnpm point pointer pointer-events-none pointercancel pointerdown pointermove pointerup policy polite polygon polyline popover populates port position position:fixed pr-hsp-lg pr-hsp-md pr-hsp-sm pr-hsp-xl pr-hsp-xs pre pre-lowercased preact preact/compat preact/hooks preact/jsx-runtime preconnect preference prefix preload pres present preserving preview preview-swatch-color previews2026 previously primary print prior private produce produced produces producing production profiles project project-owned project-root-relative properties property props prose provided proxy pt-[0.15rem] pt-[2px] pt-vsp-3xs pt-vsp-md pt-vsp-sm pt-vsp-xl pt-vsp-xs ptag- public purely puts px px-hsp-2xl px-hsp-2xs px-hsp-lg px-hsp-md px-hsp-sm px-hsp-xl px-hsp-xs py py-0 py-[2px] py-[4px] py-[calc(var(--spacing-vsp-xs)+0.15rem)] py-hsp-2xs py-hsp-3xs py-hsp-sm py-hsp-xs py-vsp-2xs py-vsp-3xs py-vsp-lg py-vsp-md py-vsp-sm py-vsp-xl py-vsp-xs python q qt query question quick r radius radius-full radius-lg rail ramp range rar rather raw rb re-encode/decode re-exports re-init re-initialized re-querying re-render re-renders re-run re-running re-runs re-selects re-syncs reach reached reaches read reader reader-facing reading readings reads/rewrites real real-value received receives recorded recovers rect redefine redistribution ref- reference referenced references refetch refresh refreshes refusing regardless regenerate regenerates regex registry reinit reinits rejected rel relative release released releases reload relying rem remapped remembered remove remove/rename removed removing rename render rendered renderer renderers renders reorder repaint repair repeated repeating replace replaced replacement replaces repopulate report repository republished requested require required requires reserved resize resize-x resolve resolved resolves responded response restore restores restyle result result-click results results-area retry return returns rev-parse reveal revision revisions rewire rewrite rewrites right right- right-0 right-hsp-lg ring-2 ring-accent risking ro robots role roles root rotate-180 rotate-90 round round-trip rounded rounded-[0.75rem] rounded-bl-[0.25rem] rounded-bl-[1rem] rounded-bl-lg rounded-br-[0.25rem] rounded-br-[1rem] rounded-full rounded-lg rounded-md rounded-t-[1rem] rounds route routed router routes routes-src routes/sitemap.xml row row-span-2 row-start-1 row-start-2 rs ruby rule rules run running runs runtime rust s safe safely safer same same-locale samp sans sans-serif scale scanned scanning scheme scoped scoping score scored script script- script-eval script-evaluation script-injection scripts scroll scrollbar scrolled scrollend scrolling scss seam search search-index section section- see seed segment segments sehen select select-none selection-bg selection-fg selector self self-contained self-hosted self-start self-stretch semantic semibold semver sentinel separator serialised serialize server server-rendered session set sets setting settles setup sh shadow shadow-[0_1px_3px_color-mix(in_srgb,var(--color-fg)_8%,transparent)] shadow-lg shadow-md shadowed shape share shared sharing shell ship shipped ships short shortcut should show shown shrink-0 sidebar sidebar- sidebar-toggle-island sidebar-tree-island sidebar-w sidecar signal silently similarity simple since single single-line single-object-literal singular site site-search site-tree-nav-island sitemap- sites size size-icon-lg skill skills skipped skipping skips slash slot slug slug-dir-parity slugs sm:block sm:border sm:border-muted sm:col-start-2 sm:flex sm:flex-row sm:gap-x-hsp-xl sm:grid sm:grid-cols-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:grid-cols-subgrid sm:h-auto sm:hidden sm:items-center sm:justify-between sm:max-h-[80vh] sm:max-w-[52rem] sm:mr-0 sm:mx-auto sm:my-[10vh] sm:rounded-lg sm:row-span-2 sm:row-start-1 small smol-toml smooth snapping snapshot snapshots so soft soft-nav solid some somehow sort source sources space-y-vsp-2xs space-y-vsp-lg space-y-vsp-sm spacing spacing-0 spacing-px span spans spec specifiers specify spelling splitter spread spurious sql square sr-only src stable stack stale standalone start state state- state:state- statement status stay staying sticky still stock stop stops stored straddles stray strict string strings strip stripe strips stroke-linecap stroke-linejoin stroke-width strong stronger stub-rendered style style-attribute styled styles stylesheet sub subagents subsequent substitute substitution subtracting success successful summary sup supply supported surface surfaces survives svg swap swapped swaps swift switcher switching symlink synchronous synchronously syntactically syntax t tab tab-item tab-panel tabindex table tablist tabpanel tabs tabs-container tabs-content tabs-nav tabular-nums tag tag- tag-item- tagged tags tags:audit take tar tbody td temp-element template temporary temporary-element terminal terms test-results tested text text-accent text-bg text-body text-caption text-center text-chat-assistant-text text-chat-user-text text-code-fg text-danger text-decoration text-display text-fg text-fg/60 text-heading text-info text-left text-micro text-muted text-muted/50 text-right text-scale-2xl text-scale-2xs text-scale-lg text-scale-md text-scale-sm text-scale-xl text-scale-xs text-small text-title text-warning text/css text/csv text/html text/javascript text/jsx text/markdown text/mdx text/plain text/tab-separated-values text/tsx text/typescript text/x-c text/x-csharp text/x-go text/x-java-source text/x-kotlin text/x-python text/x-ruby text/x-rust text/x-scss text/x-shellscript text/x-swift textarea tfoot tgz th than that the thead their them theme theme-color theme-pack theme-pack-changed theme-packs theme-packs/index.json theme-toggle theme/token then there these they this those though three threw through throw throws tighten time timeline tip title tkhd to toast toc toggle toggle- toggle-ai-chat toggle-design-token-panel toggles toggling token tokens tolerates toml too toolbar tooltip top top-0 top-[3.5rem] top-full top-hsp-2xs top-level total touches tr tracked tracking-wide tracking-wider trade-off trailing transferred transition transition-[background,color,border-color] transition-[left,color] transition-[right,color] transition-colors transition-transform translate-x-0 translated translations transparent tray treats tree tree-child- tree-item- tree-top- trigger trigger:ai-chat trigger:design-token-panel triggers true truncate truncated try ts tsv tsx turn twitter:card twitter:creator twitter:description twitter:image twitter:site twitter:title two txt type typeface typeof typescript typography u ul umschalten unable unavailable unbalanced unchanged und undefined under underline underlines understand unit-tested unknown unlike unlisted unmaintained unmatchable unobserve unreadable unrelated unreleased unresolvable unresolved unset unsupported unterminated until unusable unwrapped up up-to-date update updated uppercase use used useful user uses using usual utf-8 utf8 utilities utility v v2 val value value-reader values var variable variant verbatim version version- version-menu version-switcher versions vertical via video video/mp4 video/quicktime video/webm viewer viewing viewport viewports virtual:zudo-doc-asset-bodies virtual:zudo-doc-chrome-bindings virtual:zudo-doc-design-token-panel-config virtual:zudo-doc-route-context visibility visible vocabulary void von vsp vsp-2xl vsp-2xs vsp-3xs vsp-lg vsp-md vsp-sm vsp-xl vsp-xs w w-1/2 w-[0.5rem] w-[0.625rem] w-[0.875rem] w-[1.125rem] w-[1.575rem] w-[1.5rem] w-[1.75rem] w-[12rem] w-[14px] w-[16px] w-[16rem] w-[18px] w-[1em] w-[2.5rem] w-[280px] w-[2rem] w-[320px] w-[360px] w-[6.5rem] w-[90vw] w-[calc(100vw-2rem)] w-[var(--zd-sidebar-w)] w-dvw w-full w-icon-lg w-icon-md w-icon-sm w-icon-xs walk walks want warn warning was watching way wbr wbr- we webm webp website weight went were what when where whereas whether which while whitespace-nowrap whitespace-pre whole whose wide wide-gamut wider-than-scrollbar width will window wins wird wired with without word wordmark working works worktrees would wrap wrapped wrapper wrappers wrapping wraps writing written wrong wrote wurde x xl:flex xl:hidden xml y-scrollbar yaml year yet yielded yields yml you your z-dropdown z-local-1 z-modal z-modal-backdrop z-popover z-sidebar z-toolbar zd-asset-code zd-asset-details-rail zd-asset-details-toggle zd-asset-filebar zd-asset-media-grid zd-asset-media-rail zd-asset-page zd-asset-pdf zd-asset-stage zd-content zd-desktop-sidebar-toggle zd-desktop-toc-toggle zd-doc-content-band zd-enlarge-btn zd-enlarge-dialog zd-enlarge-dialog-close zd-enlargeable zd-html-preview-code zd-mermaid-dialog zd-mermaid-enlargeable zd-mermaid-tool-btn zd-mermaid-toolbar zd-mermaid-transform zd-mermaid-viewport zd-sidebar-content-wrapper zd-sidebar-open zd-theme-pack-dialog-title zd-toc-col zdtp zfb zfb:after-swap zfb:before-preparation zfb:before-swap zip zod zoom zudo-design-token-panel zudo-design-tokens/v3 zudo-doc zudo-doc-asset-details-visible zudo-doc-code-wrap zudo-doc-design-token-panel-modal zudo-doc-design-tokens zudo-doc-sidebar-visible zudo-doc-sidebar-width zudo-doc-theme zudo-doc-theme-pack zudo-doc-toc-visible zudo-doc-tweak zum");
|
|
2
|
+
@source inline("-domtweaker-enabled -elpath-enabled -left-[calc(var(--spacing-icon-lg)/2)] -link -mb-px -ml-hsp-sm -mt-px -noscript -open -state -state-v2 -state-v3 -state-v4 -translate-x-full 2xl:w-[24px] [&::-webkit-details-marker]:hidden [&_a]:pointer-events-auto [&_a]:text-accent [&_a]:underline [&_li]:mb-0 [&_nav]:mb-0 [asset-viewer] [data-admonition] [data-kbd-shortcut] [data-switcher-launcher] [doc-history-meta] [doc-history] [doc-layout] [llms-txt] [zudo-doc] a a2 abbr about above absent absolute accent accent- accent:accent- access across activated active actual actually add added admonition admonition- admonition-body admonition-title admonition/callout after after-breadcrumb after-content after-navigate after-sidebar after-title against agent agents ai-chat ai-chat-md ai-chat-trigger alert align-top all allow allow-same-origin allow-scripts allowed alone already already-executed already-multiline already-picked also always an anchor and and/or animate-pulse animate-spin announce ansehen antialiased any anywhere anzeigen app appear application/json application/octet-stream application/pdf application/sql application/toml application/x-httpd-php application/xml application/yaml applied applies apply applying approach approval are area arg argument aria-atomic aria-busy aria-controls aria-current aria-disabled aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-orientation aria-pressed aria-selected aria-valuemax aria-valuemin aria-valuenow arm arms around arrows article as asc ascii aside aspect-[1200/630] aspect-square asset asset- asset-components assets assets/client assistant async at at-rule attach attribute attributes auf authored auto auto-logo-mask autogenerated availability available avc1 avif avis avoid await away b back backdrop:bg-bg/30 backdrop:bg-bg/80 backdrop:bg-overlay/60 backdrop:z-modal-backdrop background background-color backtick backticks baked band banner bar bare base base- base64 base:base- based bash batch be bearbeiten because becomes been before below best best-effort between bg bg-[#fff] bg-accent bg-bg bg-chat-assistant-bg bg-chat-user-bg bg-code-bg bg-fg bg-info/10 bg-info/5 bg-muted bg-overlay/30 bg-surface bg-surface/50 bg-transparent bg-warning/10 bg-warning/5 bi big bigint bin binaries bind binding blank blanks block blockquote blocks blur bodies body body-end-components body-end-scripts bold boolean bootstrap border border-accent border-b border-b-2 border-b-[5px] border-bg/30 border-collapse border-danger border-dashed border-fg border-image border-info/30 border-l border-l-0 border-l-[3px] border-left-width border-muted border-none border-r border-r-0 border-radius border-solid border-t border-t-[2px] border-t-[3px] border-transparent border-warning/30 border-width border-y both bottom-hsp-lg bottom-vsp-xl boundaries box box-border br brackets brand breadcrumb:end breadcrumb:start break-words brief brown browser browser-tab browsers browses btn budget bug build builder built built-in bundler but button buttons by bypassed byte-identical bytes c cache cached calendar-valid call callable called caller calls can cancellation candidate cannot canonical canvas caption captured captures card card-grid cards carry case-insensitive cases cat-nav- catalog catch categories category caught caution center center/contain ch chains change changed changelog changelogs changes characters check checker child children choose chrome chrome-font ci circle cite cjs class class-less class-mode claude claude-agents claude-commands claude-md claude-resources claude-skills cleaned cleanly clear clearing click client client-router client-side clip clobber clobbering close closed closes closing closure code code-block-sr-announce code-group code-group-panel codex codex-agents codex-agents-md codex-config codex-hooks codex-resources codex-rules codex-skills col col-resize col-span-full col-start-1 colgroup collapse collapses collapsible collision color color-scheme color-scheme-changed color-scheme-provider color-tweak colorization colors column comma command commands commas comment commercial commercial-font-denylist commit compare complete component component:github-link component:language-switcher component:search component:theme-toggle component:version-switcher composes composition compute computed concrete conf config configuration configurations configure configured conflicting conflicts confuse connect const construction consumer consumes contain container containers containing contains content content-admonition content-layer content-link content-type content-wrapper:end content-wrapper:start contents context contract control controller controls converts cookie-blocking copied copy copy-url core corners correct correctly corrupt could count covered covers cpp crashes created cross-component crumb- cs csharp css css-presence csv ctx cur current current-path/index.ts current-route currently cursor cursor-not-allowed cursor-pointer custom cycle d danger dark dash data data-active data-admonition data-asset-details-hidden data-auto-logo data-base data-close-search data-current-locale data-default-locale data-doc-date data-doc-description data-doc-metainfo data-doc-pager data-doc-unavailable-versions data-find-active data-find-match data-footer data-group-id data-header data-header-logo data-header-nav data-header-right data-kbd-shortcut data-lang data-language-menu data-language-switcher data-language-toggle data-loading-index data-mermaid-enlarge-ready data-mermaid-rendered data-mermaid-src data-nav-active data-nav-category data-nav-item data-nav-item-dropdown data-nav-more data-nav-more-menu data-nav-more-toggle data-no-results data-note-tray-group data-note-tray-row data-open-search data-pan-active data-processed data-props data-result-count-template data-search-count data-search-count-narrow data-search-dialog data-search-input data-search-placeholder data-search-results data-search-unavailable data-sidebar-hidden data-sidebar-resizer data-site-nav data-switcher-card data-switcher-launcher data-tab-btn data-tab-default data-tab-label data-tab-value data-tabs data-taglist-group data-testid data-theme data-theme-pack data-theme-pack-switcher data-theme/style data-toc-hidden data-trailing-slash data-unavailable-label data-variant data-version-banner data-version-latest data-version-menu data-version-rewire data-version-slug data-version-switcher data-version-toggle data-version-trigger-label data-zd-asset-action data-zd-asset-actions data-zd-asset-details data-zd-asset-details-chevron data-zd-asset-details-list data-zd-asset-details-toggle data-zd-asset-index-action data-zd-asset-index-empty data-zd-asset-index-page data-zd-asset-page data-zd-asset-tree data-zd-copy-url data-zd-html-preview-reservation data-zd-label-collapse data-zd-label-expand data-zd-mobile-sidebar data-zd-mobile-toc data-zd-nav-section data-zd-nosidebar data-zd-pending data-zd-props-preserve data-zd-sidebar-open-key data-zd-theme-pack-css data-zd-theme-pack-css-loading data-zd-theme-pack-loading data-zd-toc data-zd-wide data-zfb-island data-zfb-island-remount data-zfb-reload data-zfb-transition-persist date dated dd decimal decision declaration declare declared declares decoration decoration-muted deepest deepest-match default default-transition-duration defaults deferral deferred del delegated delete deliberately delimiter dependency depends depth der desc description design design-token design-token-panel design-token-trigger desktop desktop-sidebar desktop-sidebar-toggle desktop-sidebar-toggle-island desktop-toc-toggle destroys destructive detach detached details determine deterministic dev dfn diagram diagrams dialog did die dieser diff diff-line-added diff-line-content diff-line-empty diff-line-num diff-line-removed diff-row differ different dir directly directories directory disabled disabled:cursor-default disabled:opacity-50 disabled:pointer-events-none disc display display:none dist distance distinct div dl do doc doc-card- doc-content-band doc-history doc-history-generate doc-history-panel doc-history-trigger doc-page doc-pager doc-prose doc-title docblock docs docs- docs-v- document document-level documentation documented documents does dog dot double-registration download draft drag drawer drift drifts drop dropdown dropdown-parent dropdowns dt duplicate duration duration-150 duration-200 during dynamically e e2e each eager earlier early ease-in-out edge editing einer either eject ejectable ejectables ejected el element elements els else em embedded emit emitting empty empty/undefined en enable enabled end enhanced enhancement enlarged entire entities entries entry entrypoint env equal error escape escaped escapes even event eventually every everything-enabled exactly example exceeds excerpt excludes exclusively existing exists exit expand expected explicit export extends extra f factories failed fall fallback fallbacks falling falls false family fast favicon feature fg field fields fieldset figcaption figure file files fill fills finally find find-match find-match-active fire fires first first-paint first:mt-0 fit fix fixed fixed-width fixtures flag flash flat flex flex-1 flex-col flex-wrap flip flipping flips flow flush-left focus focus-visible:bg-accent/10 focus-visible:border-accent focus-visible:decoration-accent focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 focus-visible:text-accent focus-visible:underline focus-within:border-accent focus-within:z-local-1 focus:border-accent focus:outline-none focus:text-accent focus:underline folder folders follows font font-bold font-face-parity font-family font-file-missing font-medium font-mono font-sans font-scale font-semibold font-size font-weight font-weight-bold font-weight-medium font-weight-normal font-weight-semibold font/woff2 fonts footer footer- for form format former found four-link fox fragment frame free freeze fresh from frontmatter frontmatter-preview frozen frozen-script fs-extra ftyp full fully function further g gains gap-[0.3em] gap-[clamp(1.5rem,3vw,4rem)] gap-hsp-2xs gap-hsp-lg gap-hsp-md gap-hsp-sm gap-hsp-xl gap-hsp-xs gap-vsp-2xs gap-vsp-3xs gap-vsp-lg gap-vsp-md gap-vsp-xs gap-x-hsp-2xs gap-x-hsp-lg gap-x-hsp-md gap-x-hsp-sm gap-x-hsp-xs gap-y-vsp-2xs gap-y-vsp-3xs gap-y-vsp-lg gap-y-vsp-md gap-y-vsp-xs gaps gate geladen2026 generate generated generation genuine geometry get getting-started gif git github github-dark github-link give go got grab gradient granular graph grid grid-cols-1 grid-cols-2 grid-cols-[auto_1fr] grid-rows-[auto_auto] grid-rows-subgrid group group-focus-visible:decoration-accent group-focus-visible:text-accent group-focus-visible:text-accent-hover group-focus-visible:text-fg group-focus-visible:underline group-focus-within:block group-hover:bg-fg group-hover:block group-hover:decoration-accent group-hover:text-accent group-hover:text-accent-hover group-hover:text-bg group-hover:text-fg group-hover:underline group-open:rotate-90 grouped grouping guard guards gz h h-[0.5rem] h-[0.625rem] h-[0.875rem] h-[1.125rem] h-[1.25rem] h-[1.575rem] h-[10rem] h-[14px] h-[1em] h-[1lh] h-[2.5rem] h-[2rem] h-[3.5rem] h-[3rem] h-[70vh] h-[90vh] h-[calc(100%-3rem)] h-[calc(100vh-3.5rem)] h-dvh h-full h-icon-lg h-icon-md h-icon-sm h-icon-xs h1 h1s h2 h22013h4 h2s h3 h4 h5 h6 half hand-copied hand-editable handle handled handler handlers happens hard-loaded hardcoded has hash-link have head head-links head-scripts header header- header-call:end header-call:start header-right heading heading-h2 heading-h3 heading-h4 heading-rule headings height here hex hi-root hidden hide hierarchical highlight highlighting history home hook hooks hooks-json horizontal host hover:bg-[color-mix(in_srgb,var(--color-surface)_80%,var(--color-fg)_20%)] hover:bg-accent-hover hover:bg-accent/10 hover:bg-danger/10 hover:bg-surface hover:border-accent hover:border-accent-hover hover:border-fg hover:decoration-accent hover:text-accent hover:text-accent-hover hover:text-fg hover:underline hover:z-local-1 hpp hr href hrefs hsp hsp-2xl hsp-2xs hsp-lg hsp-md hsp-sm hsp-xl hsp-xs html i i18n/theme. i2 i3 i4 ico icon icon-lg icon-md icon-sm icon-xs identical idle idx if iframe ignoring image image-enlarge image-overlay-inset image/avif image/gif image/jpeg image/png image/webp image/x-icon img implementation import important important-allowlist imports in inactive includes including incomplete independently index index2026 indirectly info inherit inherited ini initial initialised injected inline inline-block inline-flex inner input input-clear ins inserted-after-color-mode inserted-after-color-scheme inserted-after-site-name inserted-first insertion inset-0 inside inside-only inspect install installation installed instance instanceof instead instructions intended intent intentionally intercept interface internal interpolation into invalid invalidated inverse inversion invocation invoke is is-checker island island-root iso2 iso3 iso4 iso5 iso6 isom ispe issues it italic item item- items items-baseline items-center items-end items-start iteration its itself ja java javascript jpeg jpg js json jsx jumps just justification justify-between justify-center justify-end justify-start katex kbd keep keeping keeps kept key keyboard keyboard-shortcut keydown keys keystroke keyword keywords khroma known-token-names kopieren kotlin kt label landing lands language-menu language-switcher language-toggle larger last:border-b-0 last:pb-0 later latest launch layout lazy leading leading-none leading-normal leading-relaxed leading-snug leading-tight leaf leaf- leak leaves leaving left left-0 left:calc legend legitimate length lets letter-spacing lg lg:block lg:border lg:border-fg lg:border-solid lg:flex lg:flex-col lg:flex-row lg:gap-hsp-xl lg:grid-cols-3 lg:grid-cols-[repeat(auto-fit,minmax(12rem,1fr))] lg:h-[90vh] lg:hidden lg:justify-start lg:m-auto lg:max-h-[90vh] lg:max-w-[52.5rem] lg:ml-[var(--zd-sidebar-w)] lg:pr-hsp-sm lg:pt-vsp-2xl lg:px-hsp-2xl lg:py-vsp-2xl lg:text-left lg:w-[90vw] lg:w-[clamp(16rem,25%,22rem)] li li2 library license lifecycle light light/dark like likely line line-height line/statement lines linger link link- links list list-disc list-none listener lists literal literally literals live lives llms llms-txt load loaded loader loading local local-1 local-2 local-3 locale locales log logo long longer longest-match look loses lostpointercapture lower luminance m m-0 m-auto m10 m14 m16 m21 m6 machinery main major make malformed malformed-markup malicious managed manifest manual manually maps mark markdown marks match matches matching math math-display math-inline max max-h-[85vh] max-h-[90vh] max-h-full max-h-none max-w-[16rem] max-w-[64rem] max-w-[85%] max-w-[85vw] max-w-[90vw] max-w-[calc(100vw-2rem)] max-w-[calc(100vw-var(--spacing-hsp-xl))] max-w-[clamp(50rem,75vw,90rem)] max-w-full max-w-none max-w-sm max-width maximum may mb-0 mb-vsp-2xs mb-vsp-lg mb-vsp-md mb-vsp-sm mb-vsp-xl mb-vsp-xs md mdx means measured measurement measures measuring mechanism menu mermaid message messages meta meta-knob meta-schema metadata migration min-h-0 min-h-[20rem] min-h-[44px] min-h-[60vh] min-h-[calc(100vh-3.5rem)] min-h-screen min-w-0 min-w-[10rem] min-w-[3rem] min-w-[44px] min-w-[8rem] minifier minor mirror mirroring mirrors missing mit mjs ml-[calc(var(--spacing-hsp-xl)+1px)] ml-auto ml-hsp-2xl ml-hsp-lg ml-hsp-md ml-hsp-sm ml-hsp-xl mobile mod modal modal-backdrop mode model modify module moment monospace month more most mount mounted mouseenter mouseleave mov move mp4 mp41 mp42 mr-[calc(var(--spacing-hsp-xl)+1px)] mr-hsp-sm ms mt-0 mt-vsp-2xl mt-vsp-2xs mt-vsp-3xs mt-vsp-lg mt-vsp-md mt-vsp-sm mt-vsp-xl mt-vsp-xs multi-changelog multiple must mutates mutation mutations muted mvhd mx-auto my-vsp-lg my-vsp-md n name named names native natural nav nav-active nav-card- nav/doc navigating navigation navigations near needed needs neither nested neutral never new newly-swapped next nicht no no-color-scheme no-data-theme-selector no-enlarge no-op no-repeat no-underline noch node node:buffer node:fs node:fs/promises node:module node:path node:url node:util nodes nofollow noindex non-draggable non-empty non-index non-light-dark non-literal non-null non-persisted none noopener noreferrer normal noscript not notable note note-tray notes now null number numeric object object-contain observe observer occurred of off offered offsets ofl-required og:description og:image og:image:alt og:image:height og:image:width og:title og:type og:url oklch ol old older omit omitting on once one only onto opacity-60 open open/close option or order original other others otherwise out outgoing outline-none over overflow overflow-auto overflow-hidden overflow-x-auto overflow-y-auto overflow-y:auto overlaps override overrides overscroll-contain overwrite own owned p p-0 p-hsp-2xs p-hsp-lg p-hsp-md p-hsp-sm p-hsp-xl pack pack-scoped package package-default package-injected package-owned packages packs padding page page-loading page-loading-overlay page-loading-spinner page-navigate-end page-title page-wide pages pages/. paint paint-and-read palette pan panel panels paren-balance-aware parent parse parsed parser parses part pass passed passes patch path paths pattern payload payload-budget pb-[50vh] pb-vsp-2xs pb-vsp-lg pb-vsp-md pb-vsp-xl pb-vsp-xs pdf peer peer-focus-visible:border-accent peer-focus-visible:text-accent peer-hover:border-accent peer-hover:text-accent pending per per-block per-link per-package per-release permanently persisted persistence php pi pick picked picks picocolors pins pipelines pl-[1.25rem] pl-hsp-lg pl-hsp-md pl-hsp-sm pl-hsp-xl place place-items-center placeholder placeholder:text-muted plain plural plus png png16 png32 pnpm point pointer pointer-events-none pointercancel pointerdown pointermove pointerup policy polite polygon polyline popover populates port position position:fixed pr-hsp-lg pr-hsp-md pr-hsp-sm pr-hsp-xl pr-hsp-xs pre pre-lowercased preact preact/compat preact/hooks preact/jsx-runtime preconnect preference prefix preload pres present preserving preview preview-swatch-color previews2026 previously primary print prior private produce produced produces producing production profiles project project-owned project-root-relative properties property props prose provided proxy pt-[0.15rem] pt-[2px] pt-vsp-3xs pt-vsp-md pt-vsp-sm pt-vsp-xl pt-vsp-xs ptag- public purely puts px px-hsp-2xl px-hsp-2xs px-hsp-lg px-hsp-md px-hsp-sm px-hsp-xl px-hsp-xs py py-0 py-[2px] py-[4px] py-[calc(var(--spacing-vsp-xs)+0.15rem)] py-hsp-2xs py-hsp-3xs py-hsp-sm py-hsp-xs py-vsp-2xs py-vsp-3xs py-vsp-lg py-vsp-md py-vsp-sm py-vsp-xl py-vsp-xs python q qt query question quick r radius radius-full radius-lg rail ramp range rar rather raw rb re-encode/decode re-exports re-init re-initialized re-querying re-render re-renders re-run re-running re-runs re-selects re-syncs reach reached reaches read reader reader-facing reading readings reads/rewrites real real-value received receives recorded recovers rect redefine redistribution ref- reference referenced references refetch refresh refreshes refusing regardless regenerate regenerates regex registry reinit reinits rejected rel relative release released releases reload relying rem remapped remembered remove remove/rename removed removing rename render rendered renderer renderers renders reorder repaint repair repeated repeating replace replaced replacement replaces repopulate report repository republished requested require required requires reserved resize resize-x resolve resolved resolves responded response restore restores restyle result result-click results results-area retry return returns rev-parse reveal revision revisions rewire rewrite rewrites right right- right-0 right-hsp-lg ring-2 ring-accent risking ro robots role roles root rotate-180 rotate-90 round round-trip rounded rounded-[0.75rem] rounded-bl-[0.25rem] rounded-bl-[1rem] rounded-bl-lg rounded-br-[0.25rem] rounded-br-[1rem] rounded-full rounded-lg rounded-md rounded-t-[1rem] rounds route routed router routes routes-src routes/sitemap.xml row row-span-2 row-start-1 row-start-2 rs ruby rule rules run running runs runtime rust s safe safely safer same same-locale samp sans sans-serif scale scanned scanning scheme scoped scoping score scored script script- script-eval script-evaluation script-injection scripts scroll scrollbar scrolled scrollend scrolling scss seam search search-index section section- see seed segment segments sehen select select-none selection-bg selection-fg selector self self-contained self-hosted self-start self-stretch semantic semibold semver sentinel separator serialised serialize server server-rendered session set sets setting settles setup sh shadow shadow-[0_1px_3px_color-mix(in_srgb,var(--color-fg)_8%,transparent)] shadow-lg shadow-md shadowed shape share shared sharing shell ship shipped ships short shortcut should show shown shrink-0 sidebar sidebar- sidebar-toggle-island sidebar-tree-island sidebar-w sidecar signal silently similarity simple since single single-line single-object-literal singular site site-search site-tree-nav-island sitemap- sites size size-icon-lg skill skills skipped skipping skips slash slot slug slug-dir-parity slugs sm:block sm:border sm:border-muted sm:col-start-2 sm:flex sm:flex-row sm:gap-x-hsp-xl sm:grid sm:grid-cols-2 sm:grid-cols-[minmax(0,1fr)_auto] sm:grid-cols-subgrid sm:h-auto sm:hidden sm:items-center sm:justify-between sm:max-h-[80vh] sm:max-w-[52rem] sm:mr-0 sm:mx-auto sm:my-[10vh] sm:rounded-lg sm:row-span-2 sm:row-start-1 small smol-toml smooth snapping snapshot snapshots so soft soft-nav solid some somehow sort source sources space-y-vsp-2xs space-y-vsp-lg space-y-vsp-sm spacing spacing-0 spacing-px span spans spec specifiers specify spelling splitter spread spurious sql square sr-only src stable stack stale standalone start state state- state:state- statement status stay staying sticky still stock stop stops stored straddles stray strict string strings strip stripe strips stroke-linecap stroke-linejoin stroke-width strong stronger stub-rendered style style-attribute styled styles stylesheet sub subagents subsequent substitute substitution subtracting success successful summary sup supply supported surface surfaces survives svg swap swapped swaps swift switcher switching symlink synchronous synchronously syntactically syntax t tab tab-item tab-panel tabindex table tablist tabpanel tabs tabs-container tabs-content tabs-nav tabular-nums tag tag- tag-item- tagged tags tags:audit take tar tbody td temp-element template temporary temporary-element terminal terms test-results tested text text-accent text-bg text-body text-caption text-center text-chat-assistant-text text-chat-user-text text-code-fg text-danger text-decoration text-display text-fg text-fg/60 text-heading text-info text-left text-micro text-muted text-muted/50 text-right text-scale-2xl text-scale-2xs text-scale-lg text-scale-md text-scale-sm text-scale-xl text-scale-xs text-small text-title text-warning text/css text/csv text/html text/javascript text/jsx text/markdown text/mdx text/plain text/tab-separated-values text/tsx text/typescript text/x-c text/x-csharp text/x-go text/x-java-source text/x-kotlin text/x-python text/x-ruby text/x-rust text/x-scss text/x-shellscript text/x-swift textarea tfoot tgz th than that the thead their them theme theme-color theme-pack theme-pack-changed theme-packs theme-packs/index.json theme-toggle theme/token then there these they this those though three threw through throw throws tighten time timeline tip title tkhd to toast toc toggle toggle- toggle-ai-chat toggle-design-token-panel toggles toggling token tokens tolerates toml too toolbar tooltip top top-0 top-[3.5rem] top-full top-hsp-2xs top-level total touches tr tracked tracking-wide tracking-wider trade-off trailing transferred transition transition-[background,color,border-color] transition-[left,color] transition-[right,color] transition-colors transition-transform translate-x-0 translated translations transparent tray treats tree tree-child- tree-item- tree-top- trigger trigger:ai-chat trigger:design-token-panel triggers true truncate truncated try ts tsv tsx turn twitter:card twitter:creator twitter:description twitter:image twitter:site twitter:title two txt type typeface typeof typescript typography u ul umschalten unable unavailable unbalanced unchanged und undefined under underline underlines understand unit-tested unknown unlike unlisted unmaintained unmatchable unobserve unreadable unrelated unreleased unresolvable unresolved unset unsupported unterminated until unusable unwrapped up up-to-date update updated uppercase use used useful user uses using usual utf-8 utf8 utilities utility v v2 val value value-reader values var variable variant verbatim version version- version-menu version-switcher versions vertical via video video/mp4 video/quicktime video/webm viewer viewing viewport viewports virtual:zudo-doc-asset-bodies virtual:zudo-doc-chrome-bindings virtual:zudo-doc-design-token-panel-config virtual:zudo-doc-route-context visibility visible vocabulary void von vsp vsp-2xl vsp-2xs vsp-3xs vsp-lg vsp-md vsp-sm vsp-xl vsp-xs w w-1/2 w-[0.5rem] w-[0.625rem] w-[0.875rem] w-[1.125rem] w-[1.575rem] w-[1.5rem] w-[1.75rem] w-[12rem] w-[14px] w-[16px] w-[16rem] w-[18px] w-[1em] w-[2.5rem] w-[280px] w-[2rem] w-[320px] w-[360px] w-[6.5rem] w-[90vw] w-[calc(100vw-2rem)] w-[var(--zd-sidebar-w)] w-dvw w-full w-icon-lg w-icon-md w-icon-sm w-icon-xs walk walks want warn warning was watching way wbr wbr- we webm webp website weight went were what when where whereas whether which while whitespace-nowrap whitespace-pre whole whose wide wide-gamut wider-than-scrollbar width will window wins wird wired with without word wordmark working works worktrees would wrap wrapped wrapper wrappers wrapping wraps writing written wrong wrote wurde x xl:flex xl:hidden xml y-scrollbar yaml year yet yielded yields yml you your z-dropdown z-local-1 z-modal z-modal-backdrop z-popover z-sidebar z-toolbar zd-asset-code zd-asset-details-rail zd-asset-details-toggle zd-asset-filebar zd-asset-media-grid zd-asset-media-rail zd-asset-page zd-asset-pdf zd-asset-stage zd-content zd-desktop-sidebar-toggle zd-desktop-toc-toggle zd-doc-content-band zd-enlarge-btn zd-enlarge-dialog zd-enlarge-dialog-close zd-enlargeable zd-html-preview-code zd-mermaid-dialog zd-mermaid-enlargeable zd-mermaid-tool-btn zd-mermaid-toolbar zd-mermaid-transform zd-mermaid-viewport zd-sidebar-content-wrapper zd-sidebar-open zd-theme-pack-dialog-title zd-toc-col zdtp zfb zfb:after-swap zfb:before-preparation zfb:before-swap zip zod zoom zudo-design-token-panel zudo-design-tokens/v3 zudo-doc zudo-doc-asset-details-visible zudo-doc-code-wrap zudo-doc-design-token-panel-modal zudo-doc-design-tokens zudo-doc-sidebar-visible zudo-doc-sidebar-width zudo-doc-theme zudo-doc-theme-pack zudo-doc-toc-visible zudo-doc-tweak zum");
|
package/dist/settings.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DateFormatPattern } from "./format-date/index.js";
|
|
1
2
|
/**
|
|
2
3
|
* Tag governance enforcement level.
|
|
3
4
|
*
|
|
@@ -67,6 +68,12 @@ export interface ColorModeConfig {
|
|
|
67
68
|
export interface LocaleConfig {
|
|
68
69
|
label: string;
|
|
69
70
|
dir: string;
|
|
71
|
+
/**
|
|
72
|
+
* Optional home-page hero description for this locale. When omitted, the
|
|
73
|
+
* home page falls back to `settings.siteDescription`; an empty string is
|
|
74
|
+
* intentional and renders a blank description.
|
|
75
|
+
*/
|
|
76
|
+
description?: string;
|
|
70
77
|
}
|
|
71
78
|
export interface FooterLinkItem {
|
|
72
79
|
label: string;
|
|
@@ -163,6 +170,28 @@ export interface HomeConfig {
|
|
|
163
170
|
wide?: boolean;
|
|
164
171
|
}
|
|
165
172
|
export type TagPlacement = "after-title" | "before-pager";
|
|
173
|
+
/** Per-role date-format patterns. Each key independently opts into a pattern. */
|
|
174
|
+
export interface DateFormatRoles {
|
|
175
|
+
full?: DateFormatPattern;
|
|
176
|
+
monthDay?: DateFormatPattern;
|
|
177
|
+
year?: DateFormatPattern;
|
|
178
|
+
yearMonth?: DateFormatPattern;
|
|
179
|
+
numericMonthDay?: DateFormatPattern;
|
|
180
|
+
}
|
|
181
|
+
export interface DateFormatConfig extends DateFormatRoles {
|
|
182
|
+
/** Per-locale overrides. Each locale's roles merge over the top-level roles. */
|
|
183
|
+
locales?: Record<string, DateFormatRoles>;
|
|
184
|
+
}
|
|
185
|
+
/** A bare pattern sets the `full` role only; a `DateFormatConfig` sets roles individually. */
|
|
186
|
+
export type DateFormatSetting = DateFormatPattern | DateFormatConfig;
|
|
187
|
+
/**
|
|
188
|
+
* Every role resolved to a concrete pattern for ONE locale — the shape the
|
|
189
|
+
* chrome threads into renderers and islands as the optional `dateFormats`
|
|
190
|
+
* prop. Produced by `resolveDateFormats` at SSR time; islands never see the
|
|
191
|
+
* raw `DateFormatSetting`, because the per-locale layering is not re-run in
|
|
192
|
+
* the browser (see `chrome/derive`'s `deriveDateFormats`).
|
|
193
|
+
*/
|
|
194
|
+
export type ResolvedDateFormats = Required<DateFormatRoles>;
|
|
166
195
|
export interface VersionConfig {
|
|
167
196
|
/** Version identifier, used in URL path (e.g., "1.0", "v1") */
|
|
168
197
|
slug: string;
|
|
@@ -322,6 +351,14 @@ export interface Settings {
|
|
|
322
351
|
* compiling unchanged; defaults to `"getting-started"` when omitted.
|
|
323
352
|
*/
|
|
324
353
|
entryDocSlug?: string;
|
|
354
|
+
/**
|
|
355
|
+
* Date-format override — a bare pattern setting the `full` role only, or a
|
|
356
|
+
* `DateFormatConfig` setting roles (and per-locale overrides) individually.
|
|
357
|
+
* Optional (recently-added field) so existing complete `Settings` literals
|
|
358
|
+
* built outside `zudoDoc()` keep compiling unchanged; defaults to `"locale"`
|
|
359
|
+
* (today's `Intl` behaviour) when omitted.
|
|
360
|
+
*/
|
|
361
|
+
dateFormat?: DateFormatSetting;
|
|
325
362
|
defaultLocale: string;
|
|
326
363
|
locales: Record<string, LocaleConfig>;
|
|
327
364
|
mermaid: boolean;
|
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
import type { SidebarNavNode, SidebarRootMenuItem, SidebarLocaleLink } from "../sidebar/types.js";
|
|
2
|
+
import type { ResolvedDateFormats } from "../settings.js";
|
|
2
3
|
export interface SidebarToggleProps {
|
|
3
4
|
nodes: SidebarNavNode[];
|
|
4
5
|
currentSlug?: string;
|
|
5
6
|
rootMenuItems?: SidebarRootMenuItem[];
|
|
6
7
|
backToMenuLabel?: string;
|
|
8
|
+
/** Display locale forwarded to the hosted SidebarTree. */
|
|
9
|
+
locale?: string;
|
|
7
10
|
localeLinks?: SidebarLocaleLink[];
|
|
8
11
|
themeDefaultMode?: "light" | "dark";
|
|
12
|
+
/**
|
|
13
|
+
* Forwarded verbatim to the hosted `<SidebarTree>`. This island is the one
|
|
14
|
+
* nested under the persisted `<header>`, so on a same-locale soft navigation
|
|
15
|
+
* its serialized `data-props` is lifted from the previous page and refreshed
|
|
16
|
+
* wholesale by `nested-island-props-refresh` — which carries the resolved
|
|
17
|
+
* patterns along with `nodes`, at no extra cost, because that helper copies
|
|
18
|
+
* the blob rather than enumerating prop names (#4075). The patterns cannot
|
|
19
|
+
* actually differ across such a swap (the persist key is `header-${lang}`,
|
|
20
|
+
* so a locale change is never a persisted swap); what matters is that they
|
|
21
|
+
* are not LOST from the lifted island.
|
|
22
|
+
*/
|
|
23
|
+
dateFormats?: ResolvedDateFormats;
|
|
9
24
|
}
|
|
10
|
-
export declare function SidebarToggle({ nodes, currentSlug, rootMenuItems, backToMenuLabel, localeLinks, themeDefaultMode, }: SidebarToggleProps): import("preact").JSX.Element;
|
|
25
|
+
export declare function SidebarToggle({ nodes, currentSlug, rootMenuItems, backToMenuLabel, locale, localeLinks, themeDefaultMode, dateFormats, }: SidebarToggleProps): import("preact").JSX.Element;
|
|
11
26
|
export declare namespace SidebarToggle {
|
|
12
27
|
var displayName: string;
|
|
13
28
|
}
|
|
@@ -10,8 +10,10 @@ function SidebarToggle({
|
|
|
10
10
|
currentSlug,
|
|
11
11
|
rootMenuItems,
|
|
12
12
|
backToMenuLabel,
|
|
13
|
+
locale,
|
|
13
14
|
localeLinks,
|
|
14
|
-
themeDefaultMode
|
|
15
|
+
themeDefaultMode,
|
|
16
|
+
dateFormats
|
|
15
17
|
}) {
|
|
16
18
|
const [open, setOpen] = useState(false);
|
|
17
19
|
useEffect(() => {
|
|
@@ -110,8 +112,10 @@ function SidebarToggle({
|
|
|
110
112
|
currentSlug,
|
|
111
113
|
rootMenuItems,
|
|
112
114
|
backToMenuLabel,
|
|
115
|
+
locale,
|
|
113
116
|
localeLinks,
|
|
114
|
-
themeDefaultMode
|
|
117
|
+
themeDefaultMode,
|
|
118
|
+
dateFormats
|
|
115
119
|
}
|
|
116
120
|
) })
|
|
117
121
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SidebarNavNode, SidebarRootMenuItem, SidebarLocaleLink } from "../sidebar/types.js";
|
|
2
|
+
import type { ResolvedDateFormats } from "../settings.js";
|
|
2
3
|
export interface SidebarTreeProps {
|
|
3
4
|
nodes: SidebarNavNode[];
|
|
4
5
|
currentSlug?: string;
|
|
@@ -11,10 +12,23 @@ export interface SidebarTreeProps {
|
|
|
11
12
|
currentPath?: string;
|
|
12
13
|
rootMenuItems?: SidebarRootMenuItem[];
|
|
13
14
|
backToMenuLabel?: string;
|
|
15
|
+
/** Display locale; falls back to the active locale link, then English. */
|
|
16
|
+
locale?: string;
|
|
14
17
|
localeLinks?: SidebarLocaleLink[];
|
|
15
18
|
themeDefaultMode?: "light" | "dark";
|
|
19
|
+
/**
|
|
20
|
+
* Per-role date patterns already resolved for this page's locale, serialized
|
|
21
|
+
* into the island's `data-props` by the SSR wrappers (`sidebar-with-defaults`
|
|
22
|
+
* for the desktop sidebar, `header-with-defaults` -> `SidebarToggle` for the
|
|
23
|
+
* mobile drawer). Optional and absent-safe: omitted means every role behaves
|
|
24
|
+
* as `"locale"` — today's `Intl` output (#4075).
|
|
25
|
+
*
|
|
26
|
+
* The patterns are resolved against the real page locale at SSR,
|
|
27
|
+
* so they stay correct on a single-locale site where `localeLinks` is empty.
|
|
28
|
+
*/
|
|
29
|
+
dateFormats?: ResolvedDateFormats;
|
|
16
30
|
}
|
|
17
|
-
export declare function SidebarTree({ nodes, currentSlug, currentPath, rootMenuItems, backToMenuLabel, localeLinks, themeDefaultMode }: SidebarTreeProps): import("preact").JSX.Element;
|
|
31
|
+
export declare function SidebarTree({ nodes, currentSlug, currentPath, rootMenuItems, backToMenuLabel, locale: localeProp, localeLinks, themeDefaultMode, dateFormats }: SidebarTreeProps): import("preact").JSX.Element;
|
|
18
32
|
export declare namespace SidebarTree {
|
|
19
33
|
var displayName: string;
|
|
20
34
|
}
|
|
@@ -12,6 +12,7 @@ import { findActiveSlug, normalizePath } from "../sidebar-active-slug/index.js";
|
|
|
12
12
|
import { CURRENT_PATH_DATASET_KEY, readCurrentPath } from "../current-path/index.js";
|
|
13
13
|
import { ensureSidebarScrollPreserve } from "./sidebar-scroll-preserve.js";
|
|
14
14
|
import {
|
|
15
|
+
formatYearLabel,
|
|
15
16
|
formatYearMonthLabel,
|
|
16
17
|
getNoteTrayItems,
|
|
17
18
|
groupItems,
|
|
@@ -122,7 +123,7 @@ function SidebarFooter({ links, themeDefaultMode }) {
|
|
|
122
123
|
] })
|
|
123
124
|
);
|
|
124
125
|
}
|
|
125
|
-
function SidebarTree({ nodes, currentSlug, currentPath, rootMenuItems, backToMenuLabel, localeLinks, themeDefaultMode }) {
|
|
126
|
+
function SidebarTree({ nodes, currentSlug, currentPath, rootMenuItems, backToMenuLabel, locale: localeProp, localeLinks, themeDefaultMode, dateFormats }) {
|
|
126
127
|
const activeSlug = useActiveSlug(nodes, currentSlug, currentPath);
|
|
127
128
|
const [query, setQuery] = useState("");
|
|
128
129
|
const [showingRootMenu, setShowingRootMenu] = useState(false);
|
|
@@ -157,7 +158,7 @@ function SidebarTree({ nodes, currentSlug, currentPath, rootMenuItems, backToMen
|
|
|
157
158
|
);
|
|
158
159
|
const noteTrayRoot = nodes.length === 1 && nodes[0]?.shape === "note-tray" ? nodes[0] : void 0;
|
|
159
160
|
const filteredNoteTrayRoot = noteTrayRoot ? filteredNodes.find((node) => node.slug === noteTrayRoot.slug) : void 0;
|
|
160
|
-
const locale = localeLinks?.find((link) => link.active)?.code ?? "en";
|
|
161
|
+
const locale = localeProp ?? localeLinks?.find((link) => link.active)?.code ?? "en";
|
|
161
162
|
if (showingRootMenu && rootMenuItems) {
|
|
162
163
|
return /* @__PURE__ */ jsxs("nav", { children: [
|
|
163
164
|
/* @__PURE__ */ jsxs(
|
|
@@ -217,7 +218,8 @@ function SidebarTree({ nodes, currentSlug, currentPath, rootMenuItems, backToMen
|
|
|
217
218
|
itemCount: getNoteTrayItems(noteTrayRoot).length,
|
|
218
219
|
currentSlug: activeSlug,
|
|
219
220
|
forceOpen: !!query,
|
|
220
|
-
locale
|
|
221
|
+
locale,
|
|
222
|
+
dateFormats
|
|
221
223
|
}
|
|
222
224
|
) : /* @__PURE__ */ jsx(
|
|
223
225
|
NodeList,
|
|
@@ -237,7 +239,8 @@ function TrayList({
|
|
|
237
239
|
itemCount,
|
|
238
240
|
currentSlug,
|
|
239
241
|
forceOpen,
|
|
240
|
-
locale
|
|
242
|
+
locale,
|
|
243
|
+
dateFormats
|
|
241
244
|
}) {
|
|
242
245
|
const items = getNoteTrayItems(tray);
|
|
243
246
|
const sidebarStyle = tray.noteTraySidebar ?? "index";
|
|
@@ -250,7 +253,9 @@ function TrayList({
|
|
|
250
253
|
item,
|
|
251
254
|
currentSlug,
|
|
252
255
|
rankDigits: width,
|
|
253
|
-
isLast: index === items.length - 1
|
|
256
|
+
isLast: index === items.length - 1,
|
|
257
|
+
locale,
|
|
258
|
+
dateFormats
|
|
254
259
|
},
|
|
255
260
|
item.slug
|
|
256
261
|
)) : groupItems(items, sidebarStyle, tray.sortOrder ?? "asc").map((group, index, groups) => /* @__PURE__ */ jsx(
|
|
@@ -260,6 +265,7 @@ function TrayList({
|
|
|
260
265
|
group,
|
|
261
266
|
grouping: sidebarStyle,
|
|
262
267
|
locale,
|
|
268
|
+
dateFormats,
|
|
263
269
|
currentSlug,
|
|
264
270
|
forceOpen,
|
|
265
271
|
isLast: index === groups.length - 1
|
|
@@ -274,12 +280,14 @@ function TrayItem({
|
|
|
274
280
|
rankDigits,
|
|
275
281
|
isLast,
|
|
276
282
|
showDate = false,
|
|
277
|
-
depth = 1
|
|
283
|
+
depth = 1,
|
|
284
|
+
locale,
|
|
285
|
+
dateFormats
|
|
278
286
|
}) {
|
|
279
287
|
if (!item.href) return null;
|
|
280
288
|
const isActive = item.slug === currentSlug;
|
|
281
289
|
const labelHtml = smartBreakToHtml(item.label);
|
|
282
|
-
const shortDate = item.date ? formatMonthDay(item.date) : void 0;
|
|
290
|
+
const shortDate = item.date ? formatMonthDay(item.date, dateFormats?.numericMonthDay, locale) : void 0;
|
|
283
291
|
return /* @__PURE__ */ jsx("div", { className: isLast ? "pb-vsp-md" : "", children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
284
292
|
/* @__PURE__ */ jsx(ConnectorLines, { depth, isLast, topPad: "var(--spacing-vsp-2xs)" }),
|
|
285
293
|
/* @__PURE__ */ jsxs(
|
|
@@ -307,6 +315,7 @@ function TrayGroupNode({
|
|
|
307
315
|
group,
|
|
308
316
|
grouping,
|
|
309
317
|
locale,
|
|
318
|
+
dateFormats,
|
|
310
319
|
currentSlug,
|
|
311
320
|
forceOpen,
|
|
312
321
|
isLast
|
|
@@ -314,7 +323,7 @@ function TrayGroupNode({
|
|
|
314
323
|
const containsCurrent = group.items.some((item) => item.slug === currentSlug);
|
|
315
324
|
const [open, setOpen] = useState(containsCurrent);
|
|
316
325
|
const storageKey = noteTrayGroupStorageKey(traySlug, group.key);
|
|
317
|
-
const label = grouping === "year" ? group.key : formatYearMonthLabel(group.key, locale);
|
|
326
|
+
const label = grouping === "year" ? formatYearLabel(group.key, locale, dateFormats?.year) : formatYearMonthLabel(group.key, locale, dateFormats?.yearMonth);
|
|
318
327
|
useEffect(() => {
|
|
319
328
|
const stored = getOpenSet();
|
|
320
329
|
if (stored.has(storageKey) && !open) setOpen(true);
|
|
@@ -381,6 +390,8 @@ function TrayGroupNode({
|
|
|
381
390
|
currentSlug,
|
|
382
391
|
isLast: index === group.items.length - 1,
|
|
383
392
|
showDate: true,
|
|
393
|
+
locale,
|
|
394
|
+
dateFormats,
|
|
384
395
|
depth: GROUPED_TRAY_ITEM_DEPTH
|
|
385
396
|
},
|
|
386
397
|
item.slug
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { Island } from "@takazudo/zfb";
|
|
3
3
|
import { SidebarTree } from "../sidebar-tree-island/index.js";
|
|
4
|
-
import { deriveNavDataPrep } from "../chrome/derive.js";
|
|
4
|
+
import { deriveDateFormats, deriveNavDataPrep } from "../chrome/derive.js";
|
|
5
5
|
import { assertChromeContext } from "../chrome/assert-chrome-context.js";
|
|
6
6
|
function createSidebarWithDefaults(ctx) {
|
|
7
7
|
assertChromeContext(ctx, "createSidebarWithDefaults");
|
|
@@ -9,6 +9,7 @@ function createSidebarWithDefaults(ctx) {
|
|
|
9
9
|
const localeCount = ctx.locales.length;
|
|
10
10
|
const t = ctx.t;
|
|
11
11
|
const { buildRootMenuItems, buildLocaleLinksForNav, buildSidebarNodes, getThemeDefaultMode } = deriveNavDataPrep(ctx);
|
|
12
|
+
const dateFormatsFor = deriveDateFormats(ctx);
|
|
12
13
|
function SidebarWithDefaults(props) {
|
|
13
14
|
const {
|
|
14
15
|
currentSlug,
|
|
@@ -30,8 +31,10 @@ function createSidebarWithDefaults(ctx) {
|
|
|
30
31
|
currentSlug,
|
|
31
32
|
rootMenuItems,
|
|
32
33
|
backToMenuLabel,
|
|
34
|
+
locale: lang,
|
|
33
35
|
localeLinks,
|
|
34
|
-
themeDefaultMode: getThemeDefaultMode()
|
|
36
|
+
themeDefaultMode: getThemeDefaultMode(),
|
|
37
|
+
dateFormats: dateFormatsFor(lang)
|
|
35
38
|
}
|
|
36
39
|
)
|
|
37
40
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/** @jsxImportSource preact */
|
|
3
3
|
import type { JSX } from "preact";
|
|
4
4
|
import type { SidebarNavNode } from "../sidebar/types.js";
|
|
5
|
+
import type { DateFormatSetting } from "../settings.js";
|
|
5
6
|
/**
|
|
6
7
|
* Minimal nav source needed by the site-tree-nav factory.
|
|
7
8
|
* Typed `unknown[]` for navDocs so the factory does not import the host's
|
|
@@ -82,6 +83,18 @@ export interface SiteTreeNavDeps {
|
|
|
82
83
|
* package chrome passes `settings.siteTreeNavIgnore`.
|
|
83
84
|
*/
|
|
84
85
|
categoryIgnore?: string[];
|
|
86
|
+
/**
|
|
87
|
+
* The raw `dateFormat` setting (`ctx.settings.dateFormat`). Resolved to
|
|
88
|
+
* per-role patterns for the render locale and forwarded to the island as
|
|
89
|
+
* `dateFormats` — the island cannot read settings itself, and only zfb's
|
|
90
|
+
* `<Island>` `data-props` crosses the SSR -> hydrate boundary (#4075).
|
|
91
|
+
*
|
|
92
|
+
* Optional, like `versionedDocsUrl`/`categoryIgnore` above: `./site-tree-nav`
|
|
93
|
+
* is a frozen-1.0 public subpath, so a caller that hand-constructs
|
|
94
|
+
* `SiteTreeNavDeps` must keep compiling. Omitted means every role resolves
|
|
95
|
+
* to `"locale"` — today's behaviour.
|
|
96
|
+
*/
|
|
97
|
+
dateFormat?: DateFormatSetting;
|
|
85
98
|
}
|
|
86
99
|
/**
|
|
87
100
|
* Create the `SiteTreeNavWrapper` component bound to the host's nav source
|
|
@@ -2,6 +2,7 @@ import { jsx } from "preact/jsx-runtime";
|
|
|
2
2
|
import { Island } from "@takazudo/zfb";
|
|
3
3
|
import { SiteTreeNav } from "../site-tree-nav-island/index.js";
|
|
4
4
|
import { remapVersionedHrefs } from "../nav-data-prep/index.js";
|
|
5
|
+
import { resolveDateFormats } from "../date-format-resolve/index.js";
|
|
5
6
|
function createSiteTreeNavWrapper(deps) {
|
|
6
7
|
const {
|
|
7
8
|
defaultLocale,
|
|
@@ -10,7 +11,8 @@ function createSiteTreeNavWrapper(deps) {
|
|
|
10
11
|
groupSatelliteNodes,
|
|
11
12
|
getCategoryOrder,
|
|
12
13
|
versionedDocsUrl,
|
|
13
|
-
categoryIgnore
|
|
14
|
+
categoryIgnore,
|
|
15
|
+
dateFormat
|
|
14
16
|
} = deps;
|
|
15
17
|
function SiteTreeNavWrapper({
|
|
16
18
|
lang = defaultLocale,
|
|
@@ -44,7 +46,9 @@ function createSiteTreeNavWrapper(deps) {
|
|
|
44
46
|
tree,
|
|
45
47
|
categoryOrder,
|
|
46
48
|
categoryIgnore,
|
|
47
|
-
ariaLabel
|
|
49
|
+
ariaLabel,
|
|
50
|
+
locale,
|
|
51
|
+
dateFormats: resolveDateFormats(dateFormat, locale)
|
|
48
52
|
}
|
|
49
53
|
)
|
|
50
54
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SidebarNavNode } from "../sidebar/types.js";
|
|
2
|
+
import type { ResolvedDateFormats } from "../settings.js";
|
|
2
3
|
export interface SiteTreeNavProps {
|
|
3
4
|
tree: SidebarNavNode[];
|
|
4
5
|
ariaLabel?: string;
|
|
@@ -8,10 +9,17 @@ export interface SiteTreeNavProps {
|
|
|
8
9
|
initiallyCollapsedCategorySlugs?: string[];
|
|
9
10
|
/** Locale used by dated note-tray rows. */
|
|
10
11
|
locale?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Per-role date patterns already resolved for this page's locale, serialized
|
|
14
|
+
* into the island's `data-props` by the SSR wrapper (`site-tree-nav`,
|
|
15
|
+
* `home-page`). Optional and absent-safe: an omitted value means every role
|
|
16
|
+
* behaves as `"locale"` — today's `Intl` output (#4075).
|
|
17
|
+
*/
|
|
18
|
+
dateFormats?: ResolvedDateFormats;
|
|
11
19
|
/** @deprecated — no longer rendered (created date only). */
|
|
12
20
|
updatedLabel?: string;
|
|
13
21
|
}
|
|
14
|
-
export declare function SiteTreeNav({ tree, ariaLabel, categoryOrder, categoryIgnore, initiallyCollapsedCategorySlugs, locale, updatedLabel, }: SiteTreeNavProps): import("preact").JSX.Element;
|
|
22
|
+
export declare function SiteTreeNav({ tree, ariaLabel, categoryOrder, categoryIgnore, initiallyCollapsedCategorySlugs, locale, dateFormats, updatedLabel, }: SiteTreeNavProps): import("preact").JSX.Element;
|
|
15
23
|
export declare namespace SiteTreeNav {
|
|
16
24
|
var displayName: string;
|
|
17
25
|
}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import { ChevronRight } from "../icons/index.js";
|
|
11
11
|
import {
|
|
12
12
|
formatDate,
|
|
13
|
+
formatYearLabel,
|
|
13
14
|
formatYearMonthLabel,
|
|
14
15
|
getNoteTrayItems,
|
|
15
16
|
groupItems,
|
|
@@ -44,6 +45,7 @@ function SiteTreeNav({
|
|
|
44
45
|
categoryIgnore,
|
|
45
46
|
initiallyCollapsedCategorySlugs,
|
|
46
47
|
locale = "en",
|
|
48
|
+
dateFormats,
|
|
47
49
|
updatedLabel = "Updated"
|
|
48
50
|
}) {
|
|
49
51
|
let processedTree = tree;
|
|
@@ -76,6 +78,7 @@ function SiteTreeNav({
|
|
|
76
78
|
isLast: true,
|
|
77
79
|
initiallyCollapsed: initiallyCollapsed.has(node.slug),
|
|
78
80
|
locale,
|
|
81
|
+
dateFormats,
|
|
79
82
|
updatedLabel
|
|
80
83
|
}
|
|
81
84
|
) : /* @__PURE__ */ jsx(LeafNode, { node, depth: 0, isLast: true }) }, node.slug);
|
|
@@ -112,6 +115,7 @@ function CategoryNode({
|
|
|
112
115
|
isLast,
|
|
113
116
|
initiallyCollapsed = false,
|
|
114
117
|
locale = "en",
|
|
118
|
+
dateFormats,
|
|
115
119
|
updatedLabel = "Updated"
|
|
116
120
|
}) {
|
|
117
121
|
const [open, setOpen] = useState(() => initialCategoryOpenState(initiallyCollapsed));
|
|
@@ -179,12 +183,21 @@ function CategoryNode({
|
|
|
179
183
|
}
|
|
180
184
|
)
|
|
181
185
|
] }),
|
|
182
|
-
open && /* @__PURE__ */ jsx("div", { children: node.shape === "note-tray" && depth === 0 ? /* @__PURE__ */ jsx(
|
|
186
|
+
open && /* @__PURE__ */ jsx("div", { children: node.shape === "note-tray" && depth === 0 ? /* @__PURE__ */ jsx(
|
|
187
|
+
NoteTrayNodeList,
|
|
188
|
+
{
|
|
189
|
+
node,
|
|
190
|
+
locale,
|
|
191
|
+
dateFormats,
|
|
192
|
+
updatedLabel
|
|
193
|
+
}
|
|
194
|
+
) : /* @__PURE__ */ jsx(NodeList, { nodes: node.children, depth: depth + 1 }) })
|
|
183
195
|
] });
|
|
184
196
|
}
|
|
185
197
|
function NoteTrayNodeList({
|
|
186
198
|
node,
|
|
187
199
|
locale,
|
|
200
|
+
dateFormats,
|
|
188
201
|
updatedLabel
|
|
189
202
|
}) {
|
|
190
203
|
const items = getNoteTrayItems(node);
|
|
@@ -193,12 +206,13 @@ function NoteTrayNodeList({
|
|
|
193
206
|
const grouping = showDate && node.noteTraySidebar !== "index" ? node.noteTraySidebar : void 0;
|
|
194
207
|
if (grouping === "year" || grouping === "month") {
|
|
195
208
|
return /* @__PURE__ */ jsx("div", { className: "pl-hsp-md pr-hsp-sm", children: groupItems(items, grouping, node.sortOrder ?? "asc").map((group) => /* @__PURE__ */ jsxs("div", { "data-note-tray-group": group.key, children: [
|
|
196
|
-
/* @__PURE__ */ jsx("div", { className: "pt-vsp-sm pb-vsp-2xs text-micro tracking-wide uppercase text-muted", children: grouping === "year" ? group.key : formatYearMonthLabel(group.key, locale) }),
|
|
209
|
+
/* @__PURE__ */ jsx("div", { className: "pt-vsp-sm pb-vsp-2xs text-micro tracking-wide uppercase text-muted", children: grouping === "year" ? formatYearLabel(group.key, locale, dateFormats?.year) : formatYearMonthLabel(group.key, locale, dateFormats?.yearMonth) }),
|
|
197
210
|
group.items.map((item) => /* @__PURE__ */ jsx(
|
|
198
211
|
NoteTrayRow,
|
|
199
212
|
{
|
|
200
213
|
item,
|
|
201
214
|
locale,
|
|
215
|
+
dateFormats,
|
|
202
216
|
updatedLabel,
|
|
203
217
|
rankWidth: width,
|
|
204
218
|
showDate,
|
|
@@ -213,6 +227,7 @@ function NoteTrayNodeList({
|
|
|
213
227
|
{
|
|
214
228
|
item,
|
|
215
229
|
locale,
|
|
230
|
+
dateFormats,
|
|
216
231
|
updatedLabel,
|
|
217
232
|
rankWidth: width,
|
|
218
233
|
showDate,
|
|
@@ -224,13 +239,14 @@ function NoteTrayNodeList({
|
|
|
224
239
|
function NoteTrayRow({
|
|
225
240
|
item,
|
|
226
241
|
locale,
|
|
242
|
+
dateFormats,
|
|
227
243
|
updatedLabel,
|
|
228
244
|
rankWidth: width,
|
|
229
245
|
showDate,
|
|
230
246
|
groupedDate
|
|
231
247
|
}) {
|
|
232
248
|
if (!item.href) return null;
|
|
233
|
-
const dateLabel = showDate && item.date ? groupedDate ? formatMonthDay(item.date) : formatDate(item.date, locale) : void 0;
|
|
249
|
+
const dateLabel = showDate && item.date ? groupedDate ? formatMonthDay(item.date, dateFormats?.numericMonthDay, locale) : formatDate(item.date, locale, dateFormats?.full) : void 0;
|
|
234
250
|
return /* @__PURE__ */ jsxs(
|
|
235
251
|
"a",
|
|
236
252
|
{
|