Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/surface-fullscreen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"sideshow": minor
---

Add fullscreen for surfaces. Every sandboxed surface (html, markdown, code, diff, terminal, mermaid) now has an expand button that opens it over the viewer, with a control for real browser fullscreen — in place, so a deck keeps its slide and a widget keeps its state. An html surface's own `requestFullscreen()` / `exitFullscreen()` now work too: the sandboxed frame routes the standard Fullscreen API through the viewer (user gesture required), and the fullscreen element is marked `[data-sideshow-fullscreen]`. The `slides` kit gains a fullscreen button.
5 changes: 4 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ consciously, not as a side effect):
`/s/:id` calls these and wraps the result in `renderSandboxedPart`.
- `server/surfacePage.ts` — sandboxed documents for surface markup. `renderHtmlPage`
wraps an html surface (CDN-allowlist CSP + the postMessage bridge: resize,
sendPrompt, openLink) and injects any opted-in kits (`kits.ts`).
sendPrompt, openLink, fullscreen) and injects any opted-in kits (`kits.ts`).
The frames have no fullscreen permission; the bridge routes the standard
Fullscreen API to the viewer, which expands the surface's shell in place
(`Card.tsx`) and only on a user gesture.
`renderSandboxedPart` wraps a server-rendered rich body (markdown/code/diff/
terminal — see `richRender.ts`) under a tighter CSP (no `connect-src`, no CDN).
`renderMermaidPage` is the one exception: mermaid needs a DOM, so it can't be
Expand Down
Loading
Loading