Releases: socketry/presently
Releases · socketry/presently
v0.14.1
v0.14.0
v0.13.0
v0.12.0
v0.11.0
v0.10.0
- Replace internal
SlideChainwith an exportedSlideContextclass.SlideContextaccumulates elapsed time acrossafter()calls exactly asSlideChaindid, but also exposesfind(),setTimeout(), and aget elapsed()getter.Slide#after()now returns aSlideContext— existing slide scripts are unaffected. - Add
Slide#loop(callback, {delay})— runs a callback in a repeating loop until the slide changes. The callback receives a freshSlideContexteach iteration so it can schedule steps withafter(). The loop waits for all steps to complete (context.elapsed) plus an optional extradelaybefore starting the next iteration. All timeouts flow through the slide's existing trackedsetTimeout, so they are cancelled automatically on slide change.
v0.9.0
SlideBuilder#showandSlideBuilder#nextno longer overwriteview-transition-nameon elements that already have one set. This allows elements with explicit names (for morph transitions to other slides) to coexist with the build system — they still getvisibilityandviewTransitionClassmanaged, but keep their own name.
v0.8.0
v0.7.0
- Rework build effects to use direct CSS class animation rather than
view-transition-class.build-fade,build-fly-up, etc. are now regular@keyframesclasses applied to the revealed element, rather than view transition pseudo-element selectors. This decouples in-slide sequential animation from slide-level morph transitions. - Rename
SlideElements#buildtoSlideElements#showfor clarity —boxes.show(0)/boxes.show(3)more clearly describes the outcome from the audience's perspective. - Add
SlideElements#builder(options)— returns aSlideBuilderwith default options (group, effect) and a cached position, so callers can usenext()instead of tracking the step count manually. - Add
SlideBuilder#show(count, overrides)— set visibility state to an arbitrary position. Returns aPromisethat resolves when the reveal animation completes (or immediately when no effect is given). - Add
SlideBuilder#next(overrides)— reveal the next element with the builder's default effect, optionally overridden per call. O(1): only touches the single newly revealed element. Returns aPromise. - Add
SlideBuilder#play(interval, callback)— reveals all remaining elements in sequence withintervalmilliseconds between each. An optional callback is invoked after each reveal; returnfalseto stop playback early. Requires the builder to be created viaslide.find(...).builder()so timeouts are tracked and cancelled on slide change. - Add
SlideBuilder#finishedgetter — returnstruewhen all elements have been revealed. - Add
Slide#after(delay, callback)— schedules a callback after a delay in milliseconds and returns aSlideChain. Subsequent.after(delay, callback)calls on the chain fire relative to the previous step, making sequential reveal timing easy to read and adjust. - Add
Slide#setTimeout(callback, delay)— a tracked replacement for the globalsetTimeout. All timeouts registered this way are automatically cancelled when the slide changes, preventing stale callbacks from firing after navigation. The globalsetTimeoutin slide scripts is shadowed by this method automatically. - Add
Slide#cancelTimeouts()— cancels all pending timeouts registered by the slide's script. Called automatically by the presentation engine on every slide change.
v0.6.0
- Add
bake presently:slides:speakerstask to print a timing breakdown grouped by speaker. Each speaker's slides are listed in presentation order with individual and total durations, making it easy to balance talk time in multi-speaker presentations. Slides without aspeakerkey are grouped under(no speaker).