@cratis/showrunner.cue.react 0.0.0-stage → 2.10.1
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/.storybook/main.ts +11 -0
- package/.storybook/preview.tsx +21 -0
- package/Configuration/CueConfiguration.ts +27 -0
- package/Configuration/CueProvider.tsx +64 -0
- package/Configuration/CueStageBoundary.tsx +37 -0
- package/Configuration/index.ts +6 -0
- package/Icons.tsx +36 -0
- package/Labels/CueLabels.ts +39 -0
- package/Labels/defaultCueLabels.ts +23 -0
- package/Labels/index.ts +6 -0
- package/Labels/resolveLabels.ts +12 -0
- package/Markdown/CueMarkdown.tsx +31 -0
- package/Markdown/index.ts +5 -0
- package/Markdown/safeUrl.ts +29 -0
- package/README.md +54 -2
- package/Speech/CueSpeech.ts +27 -0
- package/Speech/CueSpeechConfiguration.ts +21 -0
- package/Speech/HttpSpeechOptions.ts +37 -0
- package/Speech/createHttpSpeech.ts +135 -0
- package/Speech/index.ts +7 -0
- package/Speech/silentSpeech.ts +15 -0
- package/Speech/speechClips.ts +66 -0
- package/TourAnchor.tsx +162 -0
- package/TourAnchorSpace.ts +15 -0
- package/TourCallout.ts +22 -0
- package/TourCalloutBubble.tsx +38 -0
- package/TourCamera.ts +17 -0
- package/TourChapter.ts +24 -0
- package/TourChapterList.tsx +65 -0
- package/TourGesture.ts +30 -0
- package/TourOverlayShell.tsx +102 -0
- package/TourPointer.tsx +83 -0
- package/TourSection.ts +24 -0
- package/TourSelfPacedPanel.tsx +26 -0
- package/TourStep.ts +40 -0
- package/TourSubtitles.tsx +22 -0
- package/TourTimelineBar.tsx +127 -0
- package/Tours/index.ts +5 -0
- package/Tours/useCueTours.ts +63 -0
- package/Tours/useTourNudge.ts +37 -0
- package/cursorSvg.ts +12 -0
- package/dist/cjs/Configuration/CueConfiguration.d.ts +11 -0
- package/dist/cjs/Configuration/CueConfiguration.d.ts.map +1 -0
- package/dist/cjs/Configuration/CueProvider.d.ts +19 -0
- package/dist/cjs/Configuration/CueProvider.d.ts.map +1 -0
- package/dist/cjs/Configuration/CueProvider.js +44 -0
- package/dist/cjs/Configuration/CueProvider.js.map +1 -0
- package/dist/cjs/Configuration/CueStageBoundary.d.ts +14 -0
- package/dist/cjs/Configuration/CueStageBoundary.d.ts.map +1 -0
- package/dist/cjs/Configuration/CueStageBoundary.js +45 -0
- package/dist/cjs/Configuration/CueStageBoundary.js.map +1 -0
- package/dist/cjs/Configuration/index.d.ts +4 -0
- package/dist/cjs/Configuration/index.d.ts.map +1 -0
- package/dist/cjs/Examples/AppShell.d.ts +5 -0
- package/dist/cjs/Examples/AppShell.d.ts.map +1 -0
- package/dist/cjs/Examples/LocalizedCue.d.ts +5 -0
- package/dist/cjs/Examples/LocalizedCue.d.ts.map +1 -0
- package/dist/cjs/Examples/OrderDeskTour.d.ts +2 -0
- package/dist/cjs/Examples/OrderDeskTour.d.ts.map +1 -0
- package/dist/cjs/Examples/OwnStageGuard.d.ts +5 -0
- package/dist/cjs/Examples/OwnStageGuard.d.ts.map +1 -0
- package/dist/cjs/Examples/OwnVoice.d.ts +3 -0
- package/dist/cjs/Examples/OwnVoice.d.ts.map +1 -0
- package/dist/cjs/Icons.d.ts +19 -0
- package/dist/cjs/Icons.d.ts.map +1 -0
- package/dist/cjs/Icons.js +33 -0
- package/dist/cjs/Icons.js.map +1 -0
- package/dist/cjs/Labels/CueLabels.d.ts +18 -0
- package/dist/cjs/Labels/CueLabels.d.ts.map +1 -0
- package/dist/cjs/Labels/defaultCueLabels.d.ts +3 -0
- package/dist/cjs/Labels/defaultCueLabels.d.ts.map +1 -0
- package/dist/cjs/Labels/defaultCueLabels.js +24 -0
- package/dist/cjs/Labels/defaultCueLabels.js.map +1 -0
- package/dist/cjs/Labels/index.d.ts +4 -0
- package/dist/cjs/Labels/index.d.ts.map +1 -0
- package/dist/cjs/Labels/resolveLabels.d.ts +3 -0
- package/dist/cjs/Labels/resolveLabels.d.ts.map +1 -0
- package/dist/cjs/Labels/resolveLabels.js +17 -0
- package/dist/cjs/Labels/resolveLabels.js.map +1 -0
- package/dist/cjs/Markdown/CueMarkdown.d.ts +6 -0
- package/dist/cjs/Markdown/CueMarkdown.d.ts.map +1 -0
- package/dist/cjs/Markdown/CueMarkdown.js +34 -0
- package/dist/cjs/Markdown/CueMarkdown.js.map +1 -0
- package/dist/cjs/Markdown/index.d.ts +3 -0
- package/dist/cjs/Markdown/index.d.ts.map +1 -0
- package/dist/cjs/Markdown/safeUrl.d.ts +2 -0
- package/dist/cjs/Markdown/safeUrl.d.ts.map +1 -0
- package/dist/cjs/Markdown/safeUrl.js +34 -0
- package/dist/cjs/Markdown/safeUrl.js.map +1 -0
- package/dist/cjs/Speech/CueSpeech.d.ts +10 -0
- package/dist/cjs/Speech/CueSpeech.d.ts.map +1 -0
- package/dist/cjs/Speech/CueSpeechConfiguration.d.ts +6 -0
- package/dist/cjs/Speech/CueSpeechConfiguration.d.ts.map +1 -0
- package/dist/cjs/Speech/HttpSpeechOptions.d.ts +10 -0
- package/dist/cjs/Speech/HttpSpeechOptions.d.ts.map +1 -0
- package/dist/cjs/Speech/createHttpSpeech.d.ts +4 -0
- package/dist/cjs/Speech/createHttpSpeech.d.ts.map +1 -0
- package/dist/cjs/Speech/createHttpSpeech.js +140 -0
- package/dist/cjs/Speech/createHttpSpeech.js.map +1 -0
- package/dist/cjs/Speech/index.d.ts +5 -0
- package/dist/cjs/Speech/index.d.ts.map +1 -0
- package/dist/cjs/Speech/silentSpeech.d.ts +3 -0
- package/dist/cjs/Speech/silentSpeech.d.ts.map +1 -0
- package/dist/cjs/Speech/silentSpeech.js +16 -0
- package/dist/cjs/Speech/silentSpeech.js.map +1 -0
- package/dist/cjs/Speech/speechClips.d.ts +7 -0
- package/dist/cjs/Speech/speechClips.d.ts.map +1 -0
- package/dist/cjs/Speech/speechClips.js +60 -0
- package/dist/cjs/Speech/speechClips.js.map +1 -0
- package/dist/cjs/TourAnchor.d.ts +14 -0
- package/dist/cjs/TourAnchor.d.ts.map +1 -0
- package/dist/cjs/TourAnchor.js +150 -0
- package/dist/cjs/TourAnchor.js.map +1 -0
- package/dist/cjs/TourAnchorSpace.d.ts +2 -0
- package/dist/cjs/TourAnchorSpace.d.ts.map +1 -0
- package/dist/cjs/TourCallout.d.ts +8 -0
- package/dist/cjs/TourCallout.d.ts.map +1 -0
- package/dist/cjs/TourCalloutBubble.d.ts +9 -0
- package/dist/cjs/TourCalloutBubble.d.ts.map +1 -0
- package/dist/cjs/TourCalloutBubble.js +27 -0
- package/dist/cjs/TourCalloutBubble.js.map +1 -0
- package/dist/cjs/TourCamera.d.ts +6 -0
- package/dist/cjs/TourCamera.d.ts.map +1 -0
- package/dist/cjs/TourChapter.d.ts +8 -0
- package/dist/cjs/TourChapter.d.ts.map +1 -0
- package/dist/cjs/TourChapterList.d.ts +10 -0
- package/dist/cjs/TourChapterList.d.ts.map +1 -0
- package/dist/cjs/TourChapterList.js +68 -0
- package/dist/cjs/TourChapterList.js.map +1 -0
- package/dist/cjs/TourChapterList.stories.d.ts +21 -0
- package/dist/cjs/TourChapterList.stories.d.ts.map +1 -0
- package/dist/cjs/TourGesture.d.ts +12 -0
- package/dist/cjs/TourGesture.d.ts.map +1 -0
- package/dist/cjs/TourOverlayShell.d.ts +13 -0
- package/dist/cjs/TourOverlayShell.d.ts.map +1 -0
- package/dist/cjs/TourOverlayShell.js +77 -0
- package/dist/cjs/TourOverlayShell.js.map +1 -0
- package/dist/cjs/TourPointer.d.ts +9 -0
- package/dist/cjs/TourPointer.d.ts.map +1 -0
- package/dist/cjs/TourPointer.js +74 -0
- package/dist/cjs/TourPointer.js.map +1 -0
- package/dist/cjs/TourSection.d.ts +8 -0
- package/dist/cjs/TourSection.d.ts.map +1 -0
- package/dist/cjs/TourSelfPacedPanel.d.ts +6 -0
- package/dist/cjs/TourSelfPacedPanel.d.ts.map +1 -0
- package/dist/cjs/TourSelfPacedPanel.js +27 -0
- package/dist/cjs/TourSelfPacedPanel.js.map +1 -0
- package/dist/cjs/TourSelfPacedPanel.stories.d.ts +21 -0
- package/dist/cjs/TourSelfPacedPanel.stories.d.ts.map +1 -0
- package/dist/cjs/TourStep.d.ts +12 -0
- package/dist/cjs/TourStep.d.ts.map +1 -0
- package/dist/cjs/TourSubtitles.d.ts +5 -0
- package/dist/cjs/TourSubtitles.d.ts.map +1 -0
- package/dist/cjs/TourSubtitles.js +24 -0
- package/dist/cjs/TourSubtitles.js.map +1 -0
- package/dist/cjs/TourTimelineBar.d.ts +10 -0
- package/dist/cjs/TourTimelineBar.d.ts.map +1 -0
- package/dist/cjs/TourTimelineBar.js +134 -0
- package/dist/cjs/TourTimelineBar.js.map +1 -0
- package/dist/cjs/TourTimelineBar.stories.d.ts +24 -0
- package/dist/cjs/TourTimelineBar.stories.d.ts.map +1 -0
- package/dist/cjs/Tours/index.d.ts +3 -0
- package/dist/cjs/Tours/index.d.ts.map +1 -0
- package/dist/cjs/Tours/useCueTours.d.ts +7 -0
- package/dist/cjs/Tours/useCueTours.d.ts.map +1 -0
- package/dist/cjs/Tours/useCueTours.js +46 -0
- package/dist/cjs/Tours/useCueTours.js.map +1 -0
- package/dist/cjs/Tours/useTourNudge.d.ts +6 -0
- package/dist/cjs/Tours/useTourNudge.d.ts.map +1 -0
- package/dist/cjs/Tours/useTourNudge.js +28 -0
- package/dist/cjs/Tours/useTourNudge.js.map +1 -0
- package/dist/cjs/cursorSvg.d.ts +2 -0
- package/dist/cjs/cursorSvg.d.ts.map +1 -0
- package/dist/cjs/cursorSvg.js +15 -0
- package/dist/cjs/cursorSvg.js.map +1 -0
- package/dist/cjs/index.d.ts +41 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +72 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/tourClock.d.ts +19 -0
- package/dist/cjs/tourClock.d.ts.map +1 -0
- package/dist/cjs/tourClock.js +107 -0
- package/dist/cjs/tourClock.js.map +1 -0
- package/dist/cjs/tourGeometry.d.ts +18 -0
- package/dist/cjs/tourGeometry.d.ts.map +1 -0
- package/dist/cjs/tourGeometry.js +86 -0
- package/dist/cjs/tourGeometry.js.map +1 -0
- package/dist/cjs/tourSelfPaced.d.ts +12 -0
- package/dist/cjs/tourSelfPaced.d.ts.map +1 -0
- package/dist/cjs/tourSelfPaced.js +69 -0
- package/dist/cjs/tourSelfPaced.js.map +1 -0
- package/dist/cjs/tourTimeline.d.ts +40 -0
- package/dist/cjs/tourTimeline.d.ts.map +1 -0
- package/dist/cjs/tourTimeline.js +168 -0
- package/dist/cjs/tourTimeline.js.map +1 -0
- package/dist/cjs/useTourPlayback.d.ts +25 -0
- package/dist/cjs/useTourPlayback.d.ts.map +1 -0
- package/dist/cjs/useTourPlayback.js +245 -0
- package/dist/cjs/useTourPlayback.js.map +1 -0
- package/dist/esm/Configuration/CueConfiguration.d.ts +11 -0
- package/dist/esm/Configuration/CueConfiguration.d.ts.map +1 -0
- package/dist/esm/Configuration/CueConfiguration.js +2 -0
- package/dist/esm/Configuration/CueConfiguration.js.map +1 -0
- package/dist/esm/Configuration/CueProvider.d.ts +19 -0
- package/dist/esm/Configuration/CueProvider.d.ts.map +1 -0
- package/dist/esm/Configuration/CueProvider.js +41 -0
- package/dist/esm/Configuration/CueProvider.js.map +1 -0
- package/dist/esm/Configuration/CueStageBoundary.d.ts +14 -0
- package/dist/esm/Configuration/CueStageBoundary.d.ts.map +1 -0
- package/dist/esm/Configuration/CueStageBoundary.js +43 -0
- package/dist/esm/Configuration/CueStageBoundary.js.map +1 -0
- package/dist/esm/Configuration/index.d.ts +4 -0
- package/dist/esm/Configuration/index.d.ts.map +1 -0
- package/dist/esm/Configuration/index.js +4 -0
- package/dist/esm/Configuration/index.js.map +1 -0
- package/dist/esm/Examples/AppShell.d.ts +5 -0
- package/dist/esm/Examples/AppShell.d.ts.map +1 -0
- package/dist/esm/Examples/AppShell.js +10 -0
- package/dist/esm/Examples/AppShell.js.map +1 -0
- package/dist/esm/Examples/LocalizedCue.d.ts +5 -0
- package/dist/esm/Examples/LocalizedCue.d.ts.map +1 -0
- package/dist/esm/Examples/LocalizedCue.js +11 -0
- package/dist/esm/Examples/LocalizedCue.js.map +1 -0
- package/dist/esm/Examples/OrderDeskTour.d.ts +2 -0
- package/dist/esm/Examples/OrderDeskTour.d.ts.map +1 -0
- package/dist/esm/Examples/OrderDeskTour.js +33 -0
- package/dist/esm/Examples/OrderDeskTour.js.map +1 -0
- package/dist/esm/Examples/OwnStageGuard.d.ts +5 -0
- package/dist/esm/Examples/OwnStageGuard.d.ts.map +1 -0
- package/dist/esm/Examples/OwnStageGuard.js +17 -0
- package/dist/esm/Examples/OwnStageGuard.js.map +1 -0
- package/dist/esm/Examples/OwnVoice.d.ts +3 -0
- package/dist/esm/Examples/OwnVoice.d.ts.map +1 -0
- package/dist/esm/Examples/OwnVoice.js +35 -0
- package/dist/esm/Examples/OwnVoice.js.map +1 -0
- package/dist/esm/Icons.d.ts +19 -0
- package/dist/esm/Icons.d.ts.map +1 -0
- package/dist/esm/Icons.js +31 -0
- package/dist/esm/Icons.js.map +1 -0
- package/dist/esm/Labels/CueLabels.d.ts +18 -0
- package/dist/esm/Labels/CueLabels.d.ts.map +1 -0
- package/dist/esm/Labels/CueLabels.js +2 -0
- package/dist/esm/Labels/CueLabels.js.map +1 -0
- package/dist/esm/Labels/defaultCueLabels.d.ts +3 -0
- package/dist/esm/Labels/defaultCueLabels.d.ts.map +1 -0
- package/dist/esm/Labels/defaultCueLabels.js +22 -0
- package/dist/esm/Labels/defaultCueLabels.js.map +1 -0
- package/dist/esm/Labels/index.d.ts +4 -0
- package/dist/esm/Labels/index.d.ts.map +1 -0
- package/dist/esm/Labels/index.js +4 -0
- package/dist/esm/Labels/index.js.map +1 -0
- package/dist/esm/Labels/resolveLabels.d.ts +3 -0
- package/dist/esm/Labels/resolveLabels.d.ts.map +1 -0
- package/dist/esm/Labels/resolveLabels.js +15 -0
- package/dist/esm/Labels/resolveLabels.js.map +1 -0
- package/dist/esm/Markdown/CueMarkdown.d.ts +6 -0
- package/dist/esm/Markdown/CueMarkdown.d.ts.map +1 -0
- package/dist/esm/Markdown/CueMarkdown.js +32 -0
- package/dist/esm/Markdown/CueMarkdown.js.map +1 -0
- package/dist/esm/Markdown/index.d.ts +3 -0
- package/dist/esm/Markdown/index.d.ts.map +1 -0
- package/dist/esm/Markdown/index.js +3 -0
- package/dist/esm/Markdown/index.js.map +1 -0
- package/dist/esm/Markdown/safeUrl.d.ts +2 -0
- package/dist/esm/Markdown/safeUrl.d.ts.map +1 -0
- package/dist/esm/Markdown/safeUrl.js +32 -0
- package/dist/esm/Markdown/safeUrl.js.map +1 -0
- package/dist/esm/Speech/CueSpeech.d.ts +10 -0
- package/dist/esm/Speech/CueSpeech.d.ts.map +1 -0
- package/dist/esm/Speech/CueSpeech.js +2 -0
- package/dist/esm/Speech/CueSpeech.js.map +1 -0
- package/dist/esm/Speech/CueSpeechConfiguration.d.ts +6 -0
- package/dist/esm/Speech/CueSpeechConfiguration.d.ts.map +1 -0
- package/dist/esm/Speech/CueSpeechConfiguration.js +2 -0
- package/dist/esm/Speech/CueSpeechConfiguration.js.map +1 -0
- package/dist/esm/Speech/HttpSpeechOptions.d.ts +10 -0
- package/dist/esm/Speech/HttpSpeechOptions.d.ts.map +1 -0
- package/dist/esm/Speech/HttpSpeechOptions.js +2 -0
- package/dist/esm/Speech/HttpSpeechOptions.js.map +1 -0
- package/dist/esm/Speech/createHttpSpeech.d.ts +4 -0
- package/dist/esm/Speech/createHttpSpeech.d.ts.map +1 -0
- package/dist/esm/Speech/createHttpSpeech.js +138 -0
- package/dist/esm/Speech/createHttpSpeech.js.map +1 -0
- package/dist/esm/Speech/index.d.ts +5 -0
- package/dist/esm/Speech/index.d.ts.map +1 -0
- package/dist/esm/Speech/index.js +5 -0
- package/dist/esm/Speech/index.js.map +1 -0
- package/dist/esm/Speech/silentSpeech.d.ts +3 -0
- package/dist/esm/Speech/silentSpeech.d.ts.map +1 -0
- package/dist/esm/Speech/silentSpeech.js +14 -0
- package/dist/esm/Speech/silentSpeech.js.map +1 -0
- package/dist/esm/Speech/speechClips.d.ts +7 -0
- package/dist/esm/Speech/speechClips.d.ts.map +1 -0
- package/dist/esm/Speech/speechClips.js +58 -0
- package/dist/esm/Speech/speechClips.js.map +1 -0
- package/dist/esm/TourAnchor.d.ts +14 -0
- package/dist/esm/TourAnchor.d.ts.map +1 -0
- package/dist/esm/TourAnchor.js +148 -0
- package/dist/esm/TourAnchor.js.map +1 -0
- package/dist/esm/TourAnchorSpace.d.ts +2 -0
- package/dist/esm/TourAnchorSpace.d.ts.map +1 -0
- package/dist/esm/TourAnchorSpace.js +2 -0
- package/dist/esm/TourAnchorSpace.js.map +1 -0
- package/dist/esm/TourCallout.d.ts +8 -0
- package/dist/esm/TourCallout.d.ts.map +1 -0
- package/dist/esm/TourCallout.js +2 -0
- package/dist/esm/TourCallout.js.map +1 -0
- package/dist/esm/TourCalloutBubble.d.ts +9 -0
- package/dist/esm/TourCalloutBubble.d.ts.map +1 -0
- package/dist/esm/TourCalloutBubble.js +25 -0
- package/dist/esm/TourCalloutBubble.js.map +1 -0
- package/dist/esm/TourCamera.d.ts +6 -0
- package/dist/esm/TourCamera.d.ts.map +1 -0
- package/dist/esm/TourCamera.js +2 -0
- package/dist/esm/TourCamera.js.map +1 -0
- package/dist/esm/TourChapter.d.ts +8 -0
- package/dist/esm/TourChapter.d.ts.map +1 -0
- package/dist/esm/TourChapter.js +2 -0
- package/dist/esm/TourChapter.js.map +1 -0
- package/dist/esm/TourChapterList.d.ts +10 -0
- package/dist/esm/TourChapterList.d.ts.map +1 -0
- package/dist/esm/TourChapterList.js +66 -0
- package/dist/esm/TourChapterList.js.map +1 -0
- package/dist/esm/TourChapterList.stories.d.ts +21 -0
- package/dist/esm/TourChapterList.stories.d.ts.map +1 -0
- package/dist/esm/TourChapterList.stories.js +53 -0
- package/dist/esm/TourChapterList.stories.js.map +1 -0
- package/dist/esm/TourGesture.d.ts +12 -0
- package/dist/esm/TourGesture.d.ts.map +1 -0
- package/dist/esm/TourGesture.js +2 -0
- package/dist/esm/TourGesture.js.map +1 -0
- package/dist/esm/TourOverlayShell.d.ts +13 -0
- package/dist/esm/TourOverlayShell.d.ts.map +1 -0
- package/dist/esm/TourOverlayShell.js +75 -0
- package/dist/esm/TourOverlayShell.js.map +1 -0
- package/dist/esm/TourPointer.d.ts +9 -0
- package/dist/esm/TourPointer.d.ts.map +1 -0
- package/dist/esm/TourPointer.js +72 -0
- package/dist/esm/TourPointer.js.map +1 -0
- package/dist/esm/TourSection.d.ts +8 -0
- package/dist/esm/TourSection.d.ts.map +1 -0
- package/dist/esm/TourSection.js +2 -0
- package/dist/esm/TourSection.js.map +1 -0
- package/dist/esm/TourSelfPacedPanel.d.ts +6 -0
- package/dist/esm/TourSelfPacedPanel.d.ts.map +1 -0
- package/dist/esm/TourSelfPacedPanel.js +25 -0
- package/dist/esm/TourSelfPacedPanel.js.map +1 -0
- package/dist/esm/TourSelfPacedPanel.stories.d.ts +21 -0
- package/dist/esm/TourSelfPacedPanel.stories.d.ts.map +1 -0
- package/dist/esm/TourSelfPacedPanel.stories.js +41 -0
- package/dist/esm/TourSelfPacedPanel.stories.js.map +1 -0
- package/dist/esm/TourStep.d.ts +12 -0
- package/dist/esm/TourStep.d.ts.map +1 -0
- package/dist/esm/TourStep.js +2 -0
- package/dist/esm/TourStep.js.map +1 -0
- package/dist/esm/TourSubtitles.d.ts +5 -0
- package/dist/esm/TourSubtitles.d.ts.map +1 -0
- package/dist/esm/TourSubtitles.js +22 -0
- package/dist/esm/TourSubtitles.js.map +1 -0
- package/dist/esm/TourTimelineBar.d.ts +10 -0
- package/dist/esm/TourTimelineBar.d.ts.map +1 -0
- package/dist/esm/TourTimelineBar.js +132 -0
- package/dist/esm/TourTimelineBar.js.map +1 -0
- package/dist/esm/TourTimelineBar.stories.d.ts +24 -0
- package/dist/esm/TourTimelineBar.stories.d.ts.map +1 -0
- package/dist/esm/TourTimelineBar.stories.js +62 -0
- package/dist/esm/TourTimelineBar.stories.js.map +1 -0
- package/dist/esm/Tours/index.d.ts +3 -0
- package/dist/esm/Tours/index.d.ts.map +1 -0
- package/dist/esm/Tours/index.js +3 -0
- package/dist/esm/Tours/index.js.map +1 -0
- package/dist/esm/Tours/useCueTours.d.ts +7 -0
- package/dist/esm/Tours/useCueTours.d.ts.map +1 -0
- package/dist/esm/Tours/useCueTours.js +44 -0
- package/dist/esm/Tours/useCueTours.js.map +1 -0
- package/dist/esm/Tours/useTourNudge.d.ts +6 -0
- package/dist/esm/Tours/useTourNudge.d.ts.map +1 -0
- package/dist/esm/Tours/useTourNudge.js +26 -0
- package/dist/esm/Tours/useTourNudge.js.map +1 -0
- package/dist/esm/cursorSvg.d.ts +2 -0
- package/dist/esm/cursorSvg.d.ts.map +1 -0
- package/dist/esm/cursorSvg.js +13 -0
- package/dist/esm/cursorSvg.js.map +1 -0
- package/dist/esm/index.d.ts +41 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +24 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/tourClock.d.ts +19 -0
- package/dist/esm/tourClock.d.ts.map +1 -0
- package/dist/esm/tourClock.js +103 -0
- package/dist/esm/tourClock.js.map +1 -0
- package/dist/esm/tourGeometry.d.ts +18 -0
- package/dist/esm/tourGeometry.d.ts.map +1 -0
- package/dist/esm/tourGeometry.js +80 -0
- package/dist/esm/tourGeometry.js.map +1 -0
- package/dist/esm/tourSelfPaced.d.ts +12 -0
- package/dist/esm/tourSelfPaced.d.ts.map +1 -0
- package/dist/esm/tourSelfPaced.js +64 -0
- package/dist/esm/tourSelfPaced.js.map +1 -0
- package/dist/esm/tourTimeline.d.ts +40 -0
- package/dist/esm/tourTimeline.d.ts.map +1 -0
- package/dist/esm/tourTimeline.js +154 -0
- package/dist/esm/tourTimeline.js.map +1 -0
- package/dist/esm/useTourPlayback.d.ts +25 -0
- package/dist/esm/useTourPlayback.d.ts.map +1 -0
- package/dist/esm/useTourPlayback.js +243 -0
- package/dist/esm/useTourPlayback.js.map +1 -0
- package/index.ts +68 -0
- package/package.json +93 -4
- package/styles.css +485 -0
- package/tourClock.ts +125 -0
- package/tourGeometry.ts +95 -0
- package/tourSelfPaced.ts +93 -0
- package/tourTimeline.ts +237 -0
- package/useTourPlayback.ts +291 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TourCallout } from './TourCallout.js';
|
|
2
|
+
import type { TourCamera } from './TourCamera.js';
|
|
3
|
+
import type { TourGesture } from './TourGesture.js';
|
|
4
|
+
export interface TourStep {
|
|
5
|
+
narration: string;
|
|
6
|
+
stage: number;
|
|
7
|
+
camera?: TourCamera;
|
|
8
|
+
gesture?: TourGesture;
|
|
9
|
+
callout?: TourCallout;
|
|
10
|
+
durationMs?: number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=TourStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourStep.d.ts","sourceRoot":"","sources":["../../TourStep.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAUpD,MAAM,WAAW,QAAQ;IAErB,SAAS,EAAE,MAAM,CAAC;IAMlB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,CAAC,EAAE,UAAU,CAAC;IAGpB,OAAO,CAAC,EAAE,WAAW,CAAC;IAGtB,OAAO,CAAC,EAAE,WAAW,CAAC;IAMtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourStep.js","sourceRoot":"","sources":["../../TourStep.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourSubtitles.d.ts","sourceRoot":"","sources":["../../TourSubtitles.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,kBAAkB;IAE/B,SAAS,EAAE,MAAM,CAAC;CACrB;AAMD,eAAO,MAAM,aAAa,GAAI,eAAe,kBAAkB,uCAQ9D,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* Shows what the voice-over is saying, so the tour works with the sound off, on a muted tab, or for anyone
|
|
7
|
+
* who would rather read it.
|
|
8
|
+
*/ const TourSubtitles = ({ narration })=>{
|
|
9
|
+
if (narration.length === 0) return null;
|
|
10
|
+
return /*#__PURE__*/ jsx("div", {
|
|
11
|
+
className: "cue-subtitles",
|
|
12
|
+
role: "status",
|
|
13
|
+
"aria-live": "polite",
|
|
14
|
+
children: /*#__PURE__*/ jsx("p", {
|
|
15
|
+
className: "cue-subtitles__line",
|
|
16
|
+
children: narration
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { TourSubtitles };
|
|
22
|
+
//# sourceMappingURL=TourSubtitles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourSubtitles.js","sources":["../../TourSubtitles.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n\nexport interface TourSubtitlesProps {\n /** The line being narrated right now. */\n narration: string;\n}\n\n/**\n * Shows what the voice-over is saying, so the tour works with the sound off, on a muted tab, or for anyone\n * who would rather read it.\n */\nexport const TourSubtitles = ({ narration }: TourSubtitlesProps) => {\n if (narration.length === 0) return null;\n\n return (\n <div className='cue-subtitles' role='status' aria-live='polite'>\n <p className='cue-subtitles__line'>{narration}</p>\n </div>\n );\n};\n"],"names":["TourSubtitles","narration","length","_jsx","div","className","role","aria-live","p"],"mappings":";;AAAA;AACA;AAQA;;;AAGC,IACM,MAAMA,aAAAA,GAAgB,CAAC,EAAEC,SAAS,EAAsB,GAAA;AAC3D,IAAA,IAAIA,SAAAA,CAAUC,MAAM,KAAK,CAAA,EAAG,OAAO,IAAA;AAEnC,IAAA,qBACIC,GAAA,CAACC,KAAAA,EAAAA;QAAIC,SAAAA,EAAU,eAAA;QAAgBC,IAAAA,EAAK,QAAA;QAASC,WAAAA,EAAU,QAAA;AACnD,QAAA,QAAA,gBAAAJ,GAAA,CAACK,GAAAA,EAAAA;YAAEH,SAAAA,EAAU,qBAAA;AAAuBJ,YAAAA,QAAAA,EAAAA;;;AAGhD;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TourPlayback } from './useTourPlayback.js';
|
|
3
|
+
export interface TourTimelineBarProps {
|
|
4
|
+
playback: TourPlayback;
|
|
5
|
+
onStop?: () => void;
|
|
6
|
+
isSelfPaced?: boolean;
|
|
7
|
+
onToggleSelfPaced?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const TourTimelineBar: ({ playback, onStop, isSelfPaced, onToggleSelfPaced }: TourTimelineBarProps) => React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=TourTimelineBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourTimelineBar.d.ts","sourceRoot":"","sources":["../../TourTimelineBar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGzD,MAAM,WAAW,oBAAoB;IAEjC,QAAQ,EAAE,YAAY,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAMpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AASD,eAAO,MAAM,eAAe,GAAI,sDAA8D,oBAAoB,sBA6FjH,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import 'react';
|
|
3
|
+
import { useCueConfiguration } from './Configuration/CueProvider.js';
|
|
4
|
+
import { CueIcon } from './Icons.js';
|
|
5
|
+
import { formatTourTime } from './tourTimeline.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The tour's transport: play and pause, where it has got to, chapter skipping, and the two switches for how
|
|
9
|
+
* the narration is delivered. When the voice-over has failed, the audio switch carries a quiet warning and
|
|
10
|
+
* pressing it retries — the tour itself never stops for a lost voice. A tour that also has written chapters
|
|
11
|
+
* carries one more switch, into self-paced reading — the transport then stops being a media player: only
|
|
12
|
+
* chapter skipping and the reading switch stay live.
|
|
13
|
+
*/ const TourTimelineBar = ({ playback, onStop, isSelfPaced = false, onToggleSelfPaced })=>{
|
|
14
|
+
const { labels: tourStrings, unlockAudio: unlockAudioPlayback } = useCueConfiguration();
|
|
15
|
+
const progress = playback.timeline.durationMs > 0 ? playback.timeMs / playback.timeline.durationMs * 100 : 0;
|
|
16
|
+
const handleScrub = (event)=>playback.seekTo(Number(event.target.value));
|
|
17
|
+
// Browsers only allow programmatic audio on media activated by a real user gesture, and narration keeps
|
|
18
|
+
// starting long after any click — so the gestures that lead to narration unlock playback on the way.
|
|
19
|
+
const handlePlayClick = ()=>{
|
|
20
|
+
unlockAudioPlayback();
|
|
21
|
+
playback.togglePlay();
|
|
22
|
+
};
|
|
23
|
+
const handleAudioClick = ()=>{
|
|
24
|
+
unlockAudioPlayback();
|
|
25
|
+
playback.toggleAudio();
|
|
26
|
+
};
|
|
27
|
+
const audioTitle = playback.hasNarrationFailed ? tourStrings.narrationFailed : !playback.isSpeechAvailable ? tourStrings.narrationUnavailable : playback.isAudioEnabled ? tourStrings.muteNarration : tourStrings.unmuteNarration;
|
|
28
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
29
|
+
className: `cue-transport${isSelfPaced ? ' cue-transport--self-paced' : ''}`,
|
|
30
|
+
children: [
|
|
31
|
+
/*#__PURE__*/ jsx("button", {
|
|
32
|
+
type: "button",
|
|
33
|
+
className: "cue-transport__button",
|
|
34
|
+
title: tourStrings.previousChapter,
|
|
35
|
+
onClick: playback.goToPreviousChapter,
|
|
36
|
+
children: /*#__PURE__*/ jsx(CueIcon, {
|
|
37
|
+
name: "previous"
|
|
38
|
+
})
|
|
39
|
+
}),
|
|
40
|
+
/*#__PURE__*/ jsx("button", {
|
|
41
|
+
type: "button",
|
|
42
|
+
className: "cue-transport__button cue-transport__button--primary",
|
|
43
|
+
title: playback.isPlaying ? tourStrings.pause : tourStrings.play,
|
|
44
|
+
disabled: isSelfPaced,
|
|
45
|
+
onClick: handlePlayClick,
|
|
46
|
+
children: /*#__PURE__*/ jsx(CueIcon, {
|
|
47
|
+
name: playback.isPlaying ? 'pause' : 'play'
|
|
48
|
+
})
|
|
49
|
+
}),
|
|
50
|
+
/*#__PURE__*/ jsx("button", {
|
|
51
|
+
type: "button",
|
|
52
|
+
className: "cue-transport__button",
|
|
53
|
+
title: tourStrings.nextChapter,
|
|
54
|
+
onClick: playback.goToNextChapter,
|
|
55
|
+
children: /*#__PURE__*/ jsx(CueIcon, {
|
|
56
|
+
name: "next"
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
/*#__PURE__*/ jsx("span", {
|
|
60
|
+
className: "cue-transport__time",
|
|
61
|
+
children: formatTourTime(playback.timeMs)
|
|
62
|
+
}),
|
|
63
|
+
/*#__PURE__*/ jsxs("div", {
|
|
64
|
+
className: "cue-transport__track",
|
|
65
|
+
children: [
|
|
66
|
+
/*#__PURE__*/ jsx("div", {
|
|
67
|
+
className: "cue-transport__elapsed",
|
|
68
|
+
style: {
|
|
69
|
+
width: `${progress}%`
|
|
70
|
+
}
|
|
71
|
+
}),
|
|
72
|
+
/*#__PURE__*/ jsx("input", {
|
|
73
|
+
type: "range",
|
|
74
|
+
className: "cue-transport__scrubber",
|
|
75
|
+
"aria-label": tourStrings.progress,
|
|
76
|
+
min: 0,
|
|
77
|
+
max: playback.timeline.durationMs,
|
|
78
|
+
step: 100,
|
|
79
|
+
value: playback.timeMs,
|
|
80
|
+
disabled: isSelfPaced,
|
|
81
|
+
onChange: handleScrub
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}),
|
|
85
|
+
/*#__PURE__*/ jsx("span", {
|
|
86
|
+
className: "cue-transport__time",
|
|
87
|
+
children: formatTourTime(playback.timeline.durationMs)
|
|
88
|
+
}),
|
|
89
|
+
/*#__PURE__*/ jsx("button", {
|
|
90
|
+
type: "button",
|
|
91
|
+
className: `cue-transport__button${playback.isAudioEnabled && playback.isSpeechAvailable ? '' : ' cue-transport__button--off'}${playback.hasNarrationFailed ? ' cue-transport__button--warning' : ''}`,
|
|
92
|
+
title: audioTitle,
|
|
93
|
+
disabled: !playback.isSpeechAvailable || isSelfPaced,
|
|
94
|
+
onClick: handleAudioClick,
|
|
95
|
+
children: /*#__PURE__*/ jsx(CueIcon, {
|
|
96
|
+
name: playback.isAudioEnabled && playback.isSpeechAvailable ? 'volumeOn' : 'volumeOff'
|
|
97
|
+
})
|
|
98
|
+
}),
|
|
99
|
+
/*#__PURE__*/ jsx("button", {
|
|
100
|
+
type: "button",
|
|
101
|
+
className: `cue-transport__button${playback.areSubtitlesEnabled ? '' : ' cue-transport__button--off'}`,
|
|
102
|
+
title: playback.areSubtitlesEnabled ? tourStrings.hideSubtitles : tourStrings.showSubtitles,
|
|
103
|
+
disabled: isSelfPaced,
|
|
104
|
+
onClick: playback.toggleSubtitles,
|
|
105
|
+
children: /*#__PURE__*/ jsx(CueIcon, {
|
|
106
|
+
name: "subtitles"
|
|
107
|
+
})
|
|
108
|
+
}),
|
|
109
|
+
onToggleSelfPaced && /*#__PURE__*/ jsx("button", {
|
|
110
|
+
type: "button",
|
|
111
|
+
className: `cue-transport__button${isSelfPaced ? ' cue-transport__button--active' : ''}`,
|
|
112
|
+
title: isSelfPaced ? tourStrings.resumeNarrated : tourStrings.readSelfPaced,
|
|
113
|
+
onClick: onToggleSelfPaced,
|
|
114
|
+
children: /*#__PURE__*/ jsx(CueIcon, {
|
|
115
|
+
name: "book"
|
|
116
|
+
})
|
|
117
|
+
}),
|
|
118
|
+
onStop && /*#__PURE__*/ jsx("button", {
|
|
119
|
+
type: "button",
|
|
120
|
+
className: "cue-transport__button",
|
|
121
|
+
title: tourStrings.close,
|
|
122
|
+
onClick: onStop,
|
|
123
|
+
children: /*#__PURE__*/ jsx(CueIcon, {
|
|
124
|
+
name: "close"
|
|
125
|
+
})
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export { TourTimelineBar };
|
|
132
|
+
//# sourceMappingURL=TourTimelineBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourTimelineBar.js","sources":["../../TourTimelineBar.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport React from 'react';\nimport { useCueConfiguration } from './Configuration/CueProvider.js';\nimport { CueIcon } from './Icons.js';\nimport type { TourPlayback } from './useTourPlayback.js';\nimport { formatTourTime } from './tourTimeline.js';\n\nexport interface TourTimelineBarProps {\n /** The tour's playback state and controls. */\n playback: TourPlayback;\n\n /** Stops the tour and hands the surface back. Omitted, no stop button is shown. */\n onStop?: () => void;\n\n /**\n * Whether the tour is being read self-paced. The media playback controls — play, scrubbing, narration\n * and subtitles — dim, while chapter skipping stays live as the way to move through the tour.\n */\n isSelfPaced?: boolean;\n\n /** Switches between narrated playback and self-paced reading. Omitted, no switch is shown. */\n onToggleSelfPaced?: () => void;\n}\n\n/**\n * The tour's transport: play and pause, where it has got to, chapter skipping, and the two switches for how\n * the narration is delivered. When the voice-over has failed, the audio switch carries a quiet warning and\n * pressing it retries — the tour itself never stops for a lost voice. A tour that also has written chapters\n * carries one more switch, into self-paced reading — the transport then stops being a media player: only\n * chapter skipping and the reading switch stay live.\n */\nexport const TourTimelineBar = ({ playback, onStop, isSelfPaced = false, onToggleSelfPaced }: TourTimelineBarProps) => {\n const { labels: tourStrings, unlockAudio: unlockAudioPlayback } = useCueConfiguration();\n const progress = playback.timeline.durationMs > 0\n ? (playback.timeMs / playback.timeline.durationMs) * 100\n : 0;\n\n const handleScrub = (event: React.ChangeEvent<HTMLInputElement>) =>\n playback.seekTo(Number(event.target.value));\n\n // Browsers only allow programmatic audio on media activated by a real user gesture, and narration keeps\n // starting long after any click — so the gestures that lead to narration unlock playback on the way.\n const handlePlayClick = () => {\n unlockAudioPlayback();\n playback.togglePlay();\n };\n\n const handleAudioClick = () => {\n unlockAudioPlayback();\n playback.toggleAudio();\n };\n\n const audioTitle = playback.hasNarrationFailed\n ? tourStrings.narrationFailed\n : !playback.isSpeechAvailable\n ? tourStrings.narrationUnavailable\n : playback.isAudioEnabled ? tourStrings.muteNarration : tourStrings.unmuteNarration;\n\n return (\n <div className={`cue-transport${isSelfPaced ? ' cue-transport--self-paced' : ''}`}>\n <button type='button' className='cue-transport__button' title={tourStrings.previousChapter} onClick={playback.goToPreviousChapter}>\n <CueIcon name='previous' />\n </button>\n <button\n type='button'\n className='cue-transport__button cue-transport__button--primary'\n title={playback.isPlaying ? tourStrings.pause : tourStrings.play}\n disabled={isSelfPaced}\n onClick={handlePlayClick}>\n <CueIcon name={playback.isPlaying ? 'pause' : 'play'} />\n </button>\n <button type='button' className='cue-transport__button' title={tourStrings.nextChapter} onClick={playback.goToNextChapter}>\n <CueIcon name='next' />\n </button>\n\n <span className='cue-transport__time'>{formatTourTime(playback.timeMs)}</span>\n <div className='cue-transport__track'>\n <div className='cue-transport__elapsed' style={{ width: `${progress}%` }} />\n <input\n type='range'\n className='cue-transport__scrubber'\n aria-label={tourStrings.progress}\n min={0}\n max={playback.timeline.durationMs}\n step={100}\n value={playback.timeMs}\n disabled={isSelfPaced}\n onChange={handleScrub}\n />\n </div>\n <span className='cue-transport__time'>{formatTourTime(playback.timeline.durationMs)}</span>\n\n <button\n type='button'\n className={`cue-transport__button${playback.isAudioEnabled && playback.isSpeechAvailable ? '' : ' cue-transport__button--off'}${playback.hasNarrationFailed ? ' cue-transport__button--warning' : ''}`}\n title={audioTitle}\n disabled={!playback.isSpeechAvailable || isSelfPaced}\n onClick={handleAudioClick}>\n <CueIcon name={playback.isAudioEnabled && playback.isSpeechAvailable ? 'volumeOn' : 'volumeOff'} />\n </button>\n <button\n type='button'\n className={`cue-transport__button${playback.areSubtitlesEnabled ? '' : ' cue-transport__button--off'}`}\n title={playback.areSubtitlesEnabled ? tourStrings.hideSubtitles : tourStrings.showSubtitles}\n disabled={isSelfPaced}\n onClick={playback.toggleSubtitles}>\n <CueIcon name='subtitles' />\n </button>\n {onToggleSelfPaced && (\n <button\n type='button'\n className={`cue-transport__button${isSelfPaced ? ' cue-transport__button--active' : ''}`}\n title={isSelfPaced ? tourStrings.resumeNarrated : tourStrings.readSelfPaced}\n onClick={onToggleSelfPaced}>\n <CueIcon name='book' />\n </button>\n )}\n {onStop && (\n <button type='button' className='cue-transport__button' title={tourStrings.close} onClick={onStop}>\n <CueIcon name='close' />\n </button>\n )}\n </div>\n );\n};\n"],"names":["TourTimelineBar","playback","onStop","isSelfPaced","onToggleSelfPaced","labels","tourStrings","unlockAudio","unlockAudioPlayback","useCueConfiguration","progress","timeline","durationMs","timeMs","handleScrub","event","seekTo","Number","target","value","handlePlayClick","togglePlay","handleAudioClick","toggleAudio","audioTitle","hasNarrationFailed","narrationFailed","isSpeechAvailable","narrationUnavailable","isAudioEnabled","muteNarration","unmuteNarration","_jsxs","div","className","_jsx","button","type","title","previousChapter","onClick","goToPreviousChapter","CueIcon","name","isPlaying","pause","play","disabled","nextChapter","goToNextChapter","span","formatTourTime","style","width","input","aria-label","min","max","step","onChange","areSubtitlesEnabled","hideSubtitles","showSubtitles","toggleSubtitles","resumeNarrated","readSelfPaced","close"],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ playback, onStop, isSelfPaced, onToggleSelfPaced }: import("./TourTimelineBar.js").TourTimelineBarProps) => import("react").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
tags: string[];
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Playground: Story;
|
|
18
|
+
export declare const Paused: Story;
|
|
19
|
+
export declare const Silenced: Story;
|
|
20
|
+
export declare const WithoutSpeech: Story;
|
|
21
|
+
export declare const NarrationFailed: Story;
|
|
22
|
+
export declare const WithSelfPacedSwitch: Story;
|
|
23
|
+
export declare const SelfPaced: Story;
|
|
24
|
+
//# sourceMappingURL=TourTimelineBar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourTimelineBar.stories.d.ts","sourceRoot":"","sources":["../../TourTimelineBar.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAgCvD,QAAA,MAAM,IAAI;;;;;;;;;;;;CAY8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAGF,eAAO,MAAM,MAAM,EAAE,KAEpB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,KAE7B,CAAC;AAGF,eAAO,MAAM,mBAAmB,EAAE,KAEjC,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { fn } from 'storybook/test';
|
|
2
|
+
import { sampleTour } from './given/sampleTour.js';
|
|
3
|
+
import { TourTimelineBar } from './TourTimelineBar.js';
|
|
4
|
+
import { buildTourTimeline } from './tourTimeline.js';
|
|
5
|
+
const timeline = buildTourTimeline(sampleTour);
|
|
6
|
+
const playbackWith = (overrides) => ({
|
|
7
|
+
timeline,
|
|
8
|
+
timeMs: timeline.durationMs / 3,
|
|
9
|
+
isPlaying: true,
|
|
10
|
+
isAudioEnabled: true,
|
|
11
|
+
areSubtitlesEnabled: true,
|
|
12
|
+
isSpeechAvailable: true,
|
|
13
|
+
hasNarrationFailed: false,
|
|
14
|
+
step: timeline.steps[0]?.step,
|
|
15
|
+
chapterIndex: 1,
|
|
16
|
+
sectionIndex: 0,
|
|
17
|
+
togglePlay: fn(),
|
|
18
|
+
pause: fn(),
|
|
19
|
+
seekTo: fn(),
|
|
20
|
+
goToChapter: fn(),
|
|
21
|
+
goToPreviousChapter: fn(),
|
|
22
|
+
goToNextChapter: fn(),
|
|
23
|
+
toggleAudio: fn(),
|
|
24
|
+
toggleSubtitles: fn(),
|
|
25
|
+
...overrides,
|
|
26
|
+
});
|
|
27
|
+
const meta = {
|
|
28
|
+
title: 'Cue/TourTimelineBar',
|
|
29
|
+
component: TourTimelineBar,
|
|
30
|
+
parameters: {
|
|
31
|
+
layout: 'fullscreen',
|
|
32
|
+
docs: {
|
|
33
|
+
description: {
|
|
34
|
+
component: 'The guided tour\'s transport: play and pause, progress, chapter skipping, and the voice-over and subtitle switches.',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
tags: ['autodocs'],
|
|
39
|
+
};
|
|
40
|
+
export default meta;
|
|
41
|
+
export const Playground = {
|
|
42
|
+
args: { playback: playbackWith({}) },
|
|
43
|
+
};
|
|
44
|
+
export const Paused = {
|
|
45
|
+
args: { playback: playbackWith({ isPlaying: false }) },
|
|
46
|
+
};
|
|
47
|
+
export const Silenced = {
|
|
48
|
+
args: { playback: playbackWith({ isAudioEnabled: false, areSubtitlesEnabled: false }) },
|
|
49
|
+
};
|
|
50
|
+
export const WithoutSpeech = {
|
|
51
|
+
args: { playback: playbackWith({ isSpeechAvailable: false }) },
|
|
52
|
+
};
|
|
53
|
+
export const NarrationFailed = {
|
|
54
|
+
args: { playback: playbackWith({ isAudioEnabled: false, hasNarrationFailed: true }) },
|
|
55
|
+
};
|
|
56
|
+
export const WithSelfPacedSwitch = {
|
|
57
|
+
args: { playback: playbackWith({}), onToggleSelfPaced: fn() },
|
|
58
|
+
};
|
|
59
|
+
export const SelfPaced = {
|
|
60
|
+
args: { playback: playbackWith({ isPlaying: false }), isSelfPaced: true, onToggleSelfPaced: fn() },
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=TourTimelineBar.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourTimelineBar.stories.js","sourceRoot":"","sources":["../../TourTimelineBar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;AAE/C,MAAM,YAAY,GAAG,CAAC,SAAgC,EAAgB,EAAE,CAAC,CAAC;IACtE,QAAQ;IACR,MAAM,EAAE,QAAQ,CAAC,UAAU,GAAG,CAAC;IAC/B,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,IAAI;IACpB,mBAAmB,EAAE,IAAI;IACzB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,KAAK;IACzB,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI;IAC7B,YAAY,EAAE,CAAC;IACf,YAAY,EAAE,CAAC;IACf,UAAU,EAAE,EAAE,EAAE;IAChB,KAAK,EAAE,EAAE,EAAE;IACX,MAAM,EAAE,EAAE,EAAE;IACZ,WAAW,EAAE,EAAE,EAAE;IACjB,mBAAmB,EAAE,EAAE,EAAE;IACzB,eAAe,EAAE,EAAE,EAAE;IACrB,WAAW,EAAE,EAAE,EAAE;IACjB,eAAe,EAAE,EAAE,EAAE;IACrB,GAAG,SAAS;CACf,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG;IACT,KAAK,EAAE,qBAAqB;IAC5B,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE;QACR,MAAM,EAAE,YAAY;QACpB,IAAI,EAAE;YACF,WAAW,EAAE;gBACT,SAAS,EAAE,qHAAqH;aACnI;SACJ;KACJ;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;CACkB,CAAC;AAEzC,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,UAAU,GAAU;IAC7B,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE;CACvC,CAAC;AAGF,MAAM,CAAC,MAAM,MAAM,GAAU;IACzB,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE;CACzD,CAAC;AAGF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC3B,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,EAAE;CAC1F,CAAC;AAGF,MAAM,CAAC,MAAM,aAAa,GAAU;IAChC,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,EAAE;CACjE,CAAC;AAGF,MAAM,CAAC,MAAM,eAAe,GAAU;IAClC,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,EAAE;CACxF,CAAC;AAGF,MAAM,CAAC,MAAM,mBAAmB,GAAU;IACtC,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,iBAAiB,EAAE,EAAE,EAAE,EAAE;CAChE,CAAC;AAGF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC5B,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,EAAE;CACrG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Tours/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../Tours/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCueTours.d.ts","sourceRoot":"","sources":["../../../Tours/useCueTours.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,QAAQ;IAMrB,QAAQ,EAAE,OAAO,CAAC;IAOlB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAQlC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C;AAOD,eAAO,MAAM,WAAW,QAAO,QAwB9B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ByMe, StartTour } from '@cratis/showrunner.cue';
|
|
2
|
+
import { useState, useMemo, useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
5
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
6
|
+
/**
|
|
7
|
+
* Knows which guided tours the signed-in person has started, and records the next one. Must be used inside Arc's
|
|
8
|
+
* context, like every generated query.
|
|
9
|
+
* @returns The {@link CueTours}.
|
|
10
|
+
*/ const useCueTours = ()=>{
|
|
11
|
+
const [result] = ByMe.use();
|
|
12
|
+
const [recorded, setRecorded] = useState(()=>new Set());
|
|
13
|
+
const started = useMemo(()=>new Set([
|
|
14
|
+
...(result.data ?? []).map((tour)=>tour.id),
|
|
15
|
+
...recorded
|
|
16
|
+
]), [
|
|
17
|
+
result.data,
|
|
18
|
+
recorded
|
|
19
|
+
]);
|
|
20
|
+
const hasStarted = useCallback((tour)=>started.has(tour), [
|
|
21
|
+
started
|
|
22
|
+
]);
|
|
23
|
+
const recordStart = useCallback(async (tour)=>{
|
|
24
|
+
if (started.has(tour)) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
// The answer is held here the moment the tour starts: what the query returns follows the event log and may not
|
|
28
|
+
// have caught up yet.
|
|
29
|
+
setRecorded((current)=>new Set(current).add(tour));
|
|
30
|
+
const command = new StartTour();
|
|
31
|
+
command.tour = tour;
|
|
32
|
+
await command.execute();
|
|
33
|
+
}, [
|
|
34
|
+
started
|
|
35
|
+
]);
|
|
36
|
+
return {
|
|
37
|
+
isLoaded: result.isReady,
|
|
38
|
+
hasStarted,
|
|
39
|
+
recordStart
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { useCueTours };
|
|
44
|
+
//# sourceMappingURL=useCueTours.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCueTours.js","sources":["../../../Tours/useCueTours.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { StartTour, StartedTour, ByMe } from '@cratis/showrunner.cue';\nimport { useCallback, useMemo, useState } from 'react';\n\n/**\n * What {@link useCueTours} gives a component.\n */\nexport interface CueTours {\n /**\n * Whether what the signed-in person has started has arrived. Until it has, {@link hasStarted} knows nothing, so a\n * surface that points at a tour should wait: pointing and then taking the pointer away again is worse than a\n * beat of nothing.\n */\n isLoaded: boolean;\n\n /**\n * Gets whether the person has started a tour, on this device or any other.\n * @param tour The name of the tour.\n * @returns True when they have; false when they have not, or when it has not arrived yet.\n */\n hasStarted(tour: string): boolean;\n\n /**\n * Records that the person started a tour. It counts at once on this device and is recorded for every other; starting\n * a tour again changes nothing.\n * @param tour The name of the tour.\n * @returns Resolves when it has been recorded.\n */\n recordStart(tour: string): Promise<void>;\n}\n\n/**\n * Knows which guided tours the signed-in person has started, and records the next one. Must be used inside Arc's\n * context, like every generated query.\n * @returns The {@link CueTours}.\n */\nexport const useCueTours = (): CueTours => {\n const [result] = ByMe.use();\n const [recorded, setRecorded] = useState<ReadonlySet<string>>(() => new Set());\n\n const started = useMemo(\n () => new Set([...(result.data ?? []).map((tour: StartedTour) => tour.id), ...recorded]),\n [result.data, recorded]);\n\n const hasStarted = useCallback((tour: string) => started.has(tour), [started]);\n\n const recordStart = useCallback(async (tour: string) => {\n if (started.has(tour)) {\n return;\n }\n\n // The answer is held here the moment the tour starts: what the query returns follows the event log and may not\n // have caught up yet.\n setRecorded(current => new Set(current).add(tour));\n const command = new StartTour();\n command.tour = tour;\n await command.execute();\n }, [started]);\n\n return { isLoaded: result.isReady, hasStarted, recordStart };\n};\n"],"names":["useCueTours","result","ByMe","use","recorded","setRecorded","useState","Set","started","useMemo","data","map","tour","id","hasStarted","useCallback","has","recordStart","current","add","command","StartTour","execute","isLoaded","isReady"],"mappings":";;;AAAA;AACA;AAgCA;;;;UAKaA,WAAAA,GAAc,IAAA;AACvB,IAAA,MAAM,CAACC,MAAAA,CAAO,GAAGC,IAAAA,CAAKC,GAAG,EAAA;AACzB,IAAA,MAAM,CAACC,QAAAA,EAAUC,WAAAA,CAAY,GAAGC,QAAAA,CAA8B,IAAM,IAAIC,GAAAA,EAAAA,CAAAA;AAExE,IAAA,MAAMC,OAAAA,GAAUC,OAAAA,CACZ,IAAM,IAAIF,GAAAA,CAAI;AAAI,YAAA,GAACN,CAAAA,MAAAA,CAAOS,IAAI,IAAI,EAAC,EAAGC,GAAG,CAAC,CAACC,IAAAA,GAAsBA,IAAAA,CAAKC,EAAE,CAAA;AAAMT,YAAAA,GAAAA;SAAS,CAAA,EACvF;AAACH,QAAAA,MAAAA,CAAOS,IAAI;AAAEN,QAAAA;AAAS,KAAA,CAAA;AAE3B,IAAA,MAAMU,aAAaC,WAAAA,CAAY,CAACH,OAAiBJ,OAAAA,CAAQQ,GAAG,CAACJ,IAAAA,CAAAA,EAAO;AAACJ,QAAAA;AAAQ,KAAA,CAAA;IAE7E,MAAMS,WAAAA,GAAcF,YAAY,OAAOH,IAAAA,GAAAA;QACnC,IAAIJ,OAAAA,CAAQQ,GAAG,CAACJ,IAAAA,CAAAA,EAAO;AACnB,YAAA;AACJ,QAAA;;;AAIAP,QAAAA,WAAAA,CAAYa,CAAAA,OAAAA,GAAW,IAAIX,GAAAA,CAAIW,OAAAA,CAAAA,CAASC,GAAG,CAACP,IAAAA,CAAAA,CAAAA;AAC5C,QAAA,MAAMQ,UAAU,IAAIC,SAAAA,EAAAA;AACpBD,QAAAA,OAAAA,CAAQR,IAAI,GAAGA,IAAAA;AACf,QAAA,MAAMQ,QAAQE,OAAO,EAAA;IACzB,CAAA,EAAG;AAACd,QAAAA;AAAQ,KAAA,CAAA;IAEZ,OAAO;AAAEe,QAAAA,QAAAA,EAAUtB,OAAOuB,OAAO;AAAEV,QAAAA,UAAAA;AAAYG,QAAAA;AAAY,KAAA;AAC/D;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTourNudge.d.ts","sourceRoot":"","sources":["../../../Tours/useTourNudge.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,SAAS;IAEtB,YAAY,EAAE,OAAO,CAAC;IAMtB,WAAW,IAAI,IAAI,CAAC;CACvB;AAaD,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,sBAAoB,KAAG,SAMjE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useCueTours } from './useCueTours.js';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* Drives one surface's start-here pointer from what the signed-in person has already done: it points at a tour they have
|
|
7
|
+
* never started, and stops once they have, on every device. Must be used inside Arc's context.
|
|
8
|
+
* @param tour The name of the tour the surface offers.
|
|
9
|
+
* @param isSuppressed Whether the surface's own signals say the pointer must not show, such as the person having already
|
|
10
|
+
* done the work the tour teaches. Defaults to false.
|
|
11
|
+
* @returns The {@link TourNudge} for the surface's button.
|
|
12
|
+
* @remarks
|
|
13
|
+
* What the person started has to arrive before the pointer is shown: pointing and then taking the pointer away again is
|
|
14
|
+
* worse than a beat of nothing.
|
|
15
|
+
*/ const useTourNudge = (tour, isSuppressed = false)=>{
|
|
16
|
+
const { isLoaded, hasStarted, recordStart } = useCueTours();
|
|
17
|
+
return {
|
|
18
|
+
isNudgeShown: !isSuppressed && isLoaded && !hasStarted(tour),
|
|
19
|
+
recordStart: ()=>{
|
|
20
|
+
void recordStart(tour);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { useTourNudge };
|
|
26
|
+
//# sourceMappingURL=useTourNudge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTourNudge.js","sources":["../../../Tours/useTourNudge.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { useCueTours } from './useCueTours.js';\n\n/**\n * What a tour's button gets back from {@link useTourNudge}: whether to point at the tour, and what to do when it starts.\n */\nexport interface TourNudge {\n /** Whether the start-here pointer should be shown right now. */\n isNudgeShown: boolean;\n\n /**\n * Records that the person started the tour. The pointer goes away at once on this device and is recorded for every\n * other; call it when the tour starts.\n */\n recordStart(): void;\n}\n\n/**\n * Drives one surface's start-here pointer from what the signed-in person has already done: it points at a tour they have\n * never started, and stops once they have, on every device. Must be used inside Arc's context.\n * @param tour The name of the tour the surface offers.\n * @param isSuppressed Whether the surface's own signals say the pointer must not show, such as the person having already\n * done the work the tour teaches. Defaults to false.\n * @returns The {@link TourNudge} for the surface's button.\n * @remarks\n * What the person started has to arrive before the pointer is shown: pointing and then taking the pointer away again is\n * worse than a beat of nothing.\n */\nexport const useTourNudge = (tour: string, isSuppressed = false): TourNudge => {\n const { isLoaded, hasStarted, recordStart } = useCueTours();\n return {\n isNudgeShown: !isSuppressed && isLoaded && !hasStarted(tour),\n recordStart: () => { void recordStart(tour); }\n };\n};\n"],"names":["useTourNudge","tour","isSuppressed","isLoaded","hasStarted","recordStart","useCueTours","isNudgeShown"],"mappings":";;AAAA;AACA;AAkBA;;;;;;;;;;AAUC,IACM,MAAMA,YAAAA,GAAe,CAACC,IAAAA,EAAcC,eAAe,KAAK,GAAA;AAC3D,IAAA,MAAM,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,WAAW,EAAE,GAAGC,WAAAA,EAAAA;IAC9C,OAAO;AACHC,QAAAA,YAAAA,EAAc,CAACL,YAAAA,IAAgBC,QAAAA,IAAY,CAACC,UAAAA,CAAWH,IAAAA,CAAAA;QACvDI,WAAAA,EAAa,IAAA;AAAQ,YAAA,KAAKA,WAAAA,CAAYJ,IAAAA,CAAAA;AAAO,QAAA;AACjD,KAAA;AACJ;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const cursorSvg = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 24\" width=\"20\" height=\"24\">\n <path\n d=\"M 1.5 1 L 1.5 17.2 L 5.4 13.5 L 8.2 19.9 L 11.1 18.6 L 8.4 12.4 L 13.8 12.4 Z\"\n fill=\"#ffffff\"\n stroke=\"#000000\"\n stroke-width=\"1.4\"\n stroke-linejoin=\"round\" />\n</svg>";
|
|
2
|
+
//# sourceMappingURL=cursorSvg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursorSvg.d.ts","sourceRoot":"","sources":["../../cursorSvg.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,0UAOf,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/** The pointer the tour moves around: a plain arrow, white with a dark outline so it shows on any surface. */ const cursorSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 24" width="20" height="24">
|
|
4
|
+
<path
|
|
5
|
+
d="M 1.5 1 L 1.5 17.2 L 5.4 13.5 L 8.2 19.9 L 11.1 18.6 L 8.4 12.4 L 13.8 12.4 Z"
|
|
6
|
+
fill="#ffffff"
|
|
7
|
+
stroke="#000000"
|
|
8
|
+
stroke-width="1.4"
|
|
9
|
+
stroke-linejoin="round" />
|
|
10
|
+
</svg>`;
|
|
11
|
+
|
|
12
|
+
export { cursorSvg };
|
|
13
|
+
//# sourceMappingURL=cursorSvg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursorSvg.js","sources":["../../cursorSvg.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/** The pointer the tour moves around: a plain arrow, white with a dark outline so it shows on any surface. */\nexport const cursorSvg = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 24\" width=\"20\" height=\"24\">\n <path\n d=\"M 1.5 1 L 1.5 17.2 L 5.4 13.5 L 8.2 19.9 L 11.1 18.6 L 8.4 12.4 L 13.8 12.4 Z\"\n fill=\"#ffffff\"\n stroke=\"#000000\"\n stroke-width=\"1.4\"\n stroke-linejoin=\"round\" />\n</svg>`;\n"],"names":["cursorSvg"],"mappings":"AAAA;AACA;AAEA,+GACO,MAAMA,SAAAA,GAAY,CAAC;;;;;;;AAOpB,MAAA;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type { TourAnchorSpace } from './TourAnchorSpace.js';
|
|
2
|
+
export type { TourCallout } from './TourCallout.js';
|
|
3
|
+
export type { TourCamera } from './TourCamera.js';
|
|
4
|
+
export type { TourChapter } from './TourChapter.js';
|
|
5
|
+
export type { TourGesture } from './TourGesture.js';
|
|
6
|
+
export type { TourSection } from './TourSection.js';
|
|
7
|
+
export type { TourStep } from './TourStep.js';
|
|
8
|
+
export { TourAnchor } from './TourAnchor.js';
|
|
9
|
+
export type { TourAnchorProps } from './TourAnchor.js';
|
|
10
|
+
export { TourCalloutBubble } from './TourCalloutBubble.js';
|
|
11
|
+
export type { TourCalloutBubbleProps } from './TourCalloutBubble.js';
|
|
12
|
+
export { TourChapterList } from './TourChapterList.js';
|
|
13
|
+
export type { TourChapterListProps } from './TourChapterList.js';
|
|
14
|
+
export { TourOverlayShell } from './TourOverlayShell.js';
|
|
15
|
+
export type { TourOverlayShellProps } from './TourOverlayShell.js';
|
|
16
|
+
export { TourPointer } from './TourPointer.js';
|
|
17
|
+
export type { TourPointerProps } from './TourPointer.js';
|
|
18
|
+
export { TourSelfPacedPanel } from './TourSelfPacedPanel.js';
|
|
19
|
+
export type { TourSelfPacedPanelProps } from './TourSelfPacedPanel.js';
|
|
20
|
+
export { TourSubtitles } from './TourSubtitles.js';
|
|
21
|
+
export type { TourSubtitlesProps } from './TourSubtitles.js';
|
|
22
|
+
export { TourTimelineBar } from './TourTimelineBar.js';
|
|
23
|
+
export type { TourTimelineBarProps } from './TourTimelineBar.js';
|
|
24
|
+
export { useTourPlayback } from './useTourPlayback.js';
|
|
25
|
+
export type { TourPlayback } from './useTourPlayback.js';
|
|
26
|
+
export { NARRATION_ADVANCE_BEAT_MS, NARRATION_HOLD_LIMIT_MS, advanceTourClock } from './tourClock.js';
|
|
27
|
+
export type { TourClockAdvance, TourClockNarration } from './tourClock.js';
|
|
28
|
+
export { hasSelfPacedContent, resolveTourMedia, selfPacedMarkdownFor, selfPacedViewFor } from './tourSelfPaced.js';
|
|
29
|
+
export type { TourSelfPacedContent, TourSelfPacedView } from './tourSelfPaced.js';
|
|
30
|
+
export { RESTART_CHAPTER_WINDOW_MS, buildTourTimeline, chapterIndexAtTime, chapterStartMs, formatTourTime, narrationDurationMs, nextChapterTargetMs, previousChapterTargetMs, sectionIndexAtTime, stepDurationMs, stepIndexAtTime, } from './tourTimeline.js';
|
|
31
|
+
export type { TimedTourChapter, TimedTourSection, TimedTourStep, TourTimeline } from './tourTimeline.js';
|
|
32
|
+
export { CHROME_INSETS, projectEditorPointToScreen, projectToScreen, projectToolbarPointToScreen, unobstructedCenter, } from './tourGeometry.js';
|
|
33
|
+
export type { BoardTransform, ScreenPoint } from './tourGeometry.js';
|
|
34
|
+
export * from './Configuration/index.js';
|
|
35
|
+
export * from './Labels/index.js';
|
|
36
|
+
export * from './Markdown/index.js';
|
|
37
|
+
export * from './Speech/index.js';
|
|
38
|
+
export * from './Tours/index.js';
|
|
39
|
+
export { CueIcon } from './Icons.js';
|
|
40
|
+
export type { CueIconName, CueIconProps } from './Icons.js';
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,YAAY,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACtG,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACnH,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAElF,OAAO,EACH,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,cAAc,EACd,eAAe,GAClB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEzG,OAAO,EACH,aAAa,EACb,0BAA0B,EAC1B,eAAe,EACf,2BAA2B,EAC3B,kBAAkB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErE,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { TourAnchor } from './TourAnchor.js';
|
|
2
|
+
export { TourCalloutBubble } from './TourCalloutBubble.js';
|
|
3
|
+
export { TourChapterList } from './TourChapterList.js';
|
|
4
|
+
export { TourOverlayShell } from './TourOverlayShell.js';
|
|
5
|
+
export { TourPointer } from './TourPointer.js';
|
|
6
|
+
export { TourSelfPacedPanel } from './TourSelfPacedPanel.js';
|
|
7
|
+
export { TourSubtitles } from './TourSubtitles.js';
|
|
8
|
+
export { TourTimelineBar } from './TourTimelineBar.js';
|
|
9
|
+
export { useTourPlayback } from './useTourPlayback.js';
|
|
10
|
+
export { NARRATION_ADVANCE_BEAT_MS, NARRATION_HOLD_LIMIT_MS, advanceTourClock } from './tourClock.js';
|
|
11
|
+
export { hasSelfPacedContent, resolveTourMedia, selfPacedMarkdownFor, selfPacedViewFor } from './tourSelfPaced.js';
|
|
12
|
+
export { RESTART_CHAPTER_WINDOW_MS, buildTourTimeline, chapterIndexAtTime, chapterStartMs, formatTourTime, narrationDurationMs, nextChapterTargetMs, previousChapterTargetMs, sectionIndexAtTime, stepDurationMs, stepIndexAtTime } from './tourTimeline.js';
|
|
13
|
+
export { CHROME_INSETS, projectEditorPointToScreen, projectToScreen, projectToolbarPointToScreen, unobstructedCenter } from './tourGeometry.js';
|
|
14
|
+
export { CueProvider, useCueConfiguration } from './Configuration/CueProvider.js';
|
|
15
|
+
export { CueStageBoundary } from './Configuration/CueStageBoundary.js';
|
|
16
|
+
export { defaultCueLabels } from './Labels/defaultCueLabels.js';
|
|
17
|
+
export { resolveLabels } from './Labels/resolveLabels.js';
|
|
18
|
+
export { CueMarkdown } from './Markdown/CueMarkdown.js';
|
|
19
|
+
export { safeUrl } from './Markdown/safeUrl.js';
|
|
20
|
+
export { createHttpSpeech } from './Speech/createHttpSpeech.js';
|
|
21
|
+
export { useCueTours } from './Tours/useCueTours.js';
|
|
22
|
+
export { useTourNudge } from './Tours/useTourNudge.js';
|
|
23
|
+
export { CueIcon } from './Icons.js';
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type TourTimeline } from './tourTimeline.js';
|
|
2
|
+
export declare const NARRATION_ADVANCE_BEAT_MS = 700;
|
|
3
|
+
export declare const NARRATION_HOLD_LIMIT_MS = 15000;
|
|
4
|
+
export interface TourClockNarration {
|
|
5
|
+
pendingStepIndex: number | null;
|
|
6
|
+
finished: {
|
|
7
|
+
stepIndex: number;
|
|
8
|
+
finishedAt: number;
|
|
9
|
+
} | null;
|
|
10
|
+
holdStartedAt: number | null;
|
|
11
|
+
}
|
|
12
|
+
export interface TourClockAdvance {
|
|
13
|
+
timeMs: number;
|
|
14
|
+
isPlaying: boolean;
|
|
15
|
+
holdStartedAt: number | null;
|
|
16
|
+
finishedConsumed: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function advanceTourClock(timeline: TourTimeline, currentMs: number, elapsedMs: number, now: number, narration: TourClockNarration): TourClockAdvance;
|
|
19
|
+
//# sourceMappingURL=tourClock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tourClock.d.ts","sourceRoot":"","sources":["../../tourClock.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,KAAK,YAAY,EAAmB,MAAM,mBAAmB,CAAC;AAQxF,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAQ7C,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAG7C,MAAM,WAAW,kBAAkB;IAE/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGhC,QAAQ,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAG3D,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAGD,MAAM,WAAW,gBAAgB;IAE7B,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,OAAO,CAAC;IAGnB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAkBD,wBAAgB,gBAAgB,CAC5B,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAuDnD"}
|