0.3.1
A header button that opens the preview token panel on every engine route, plus an engine-route marker and a tabs-only apply-proxy option.
Released: 2026-09-21
The preview token panel is now reachable from the doc header, not just from the workbench button and the / dashboard. The engine injects that trigger itself, so adopting hosts get it without wiring anything.
Features
withZudoSg()appends a preview-token-panel trigger to the doc header's right side, revealed only on engine routes. Gated by the newheaderTokenTriggeroption, which defaults totrue.Export
HEADER_TOKEN_TRIGGER_ITEMso a host that renders its own zudo-doc header can list the trigger alongside its own items.Emit a
data-sg-engine-routemarker frombodyEndon every chrome-rendered engine route, and on the preview iframe document's ownhtmltag, so client code can detect "this page can use the preview token panel" after each navigation.ZdtpApplyProxyOptionsnow acceptstabsModuleon its own:routingFileandwriteRootbecame optional together, so a host can wire the panel's tabs without opting into the dev-only Apply endpoint. Supplying exactly one of the pair still fails at both the type level and at runtime.