Repository navigation
Release v2.10.0
Cue is the Showrunner guided-tour part: scripted, narrated walkthroughs with subtitles, a chapter list, a moving pointer and written chapters, plus a record of who has started which tour. It is extracted from Studio, where it grew up, so any Cratis application can offer tours.
Added
Cratis.Showrunner.Cue:AddCuewithCueOptions.Tours(the tour names the application accepts), theStartTourcommand that records the first start of a tour once per person, theStartedTour.ByMequery,IViewerToursfor reading the history on the server, andISignedInViewerto replace how a person is told apart (thesubclaim by default). The history is kept under a hashed event source with the person as compliance subject, so an erasure request finds it.@cratis/showrunner.cue: the generated proxies for that command and query.@cratis/showrunner.cue.react: the tour player.TourOverlayShellplays a script of sections, chapters and steps against one clock, with chapter list, subtitles, transport, pointer, callouts and an optional written chapter for each step;useCueToursanduseTourNudgeconnect a tour button to the backend so it points at a tour until the person has taken it.- A configurable voice-over.
CueProvidertakes aspeechconfiguration:createHttpSpeechconnects any text-to-speech service reached over HTTP (the address, availability address, request body, headers and cache size are the application's), and an application with its own pipeline provides aCueSpeechof its own. Without one the tours play silently with subtitles. - Every text of the tour's chrome is a label the application can replace, and the application can guard a tour's stage with its own error boundary. The styles use the
--cratis-*tokens, with--cue-viewport-topand--cue-z-indexto fit an application shell. - Documentation for Cue: how it works, adding it to an application, writing a tour, configuring the voice-over, remembering who has taken a tour, and the event reference.