markdown-flow-ui 0.2.25-dev.2 → 0.2.25-dev.4

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.
@@ -55,11 +55,10 @@ export interface SlideProps extends React.ComponentProps<"section"> {
55
55
  onPlayerVisibilityChange?: (visible: boolean) => void;
56
56
  onMobileViewModeChange?: (viewMode: MobileViewMode) => void;
57
57
  onStepChange?: (element: Element | undefined, index: number) => void;
58
- /**
59
- * Requests navigation to a slide step from the consuming application.
60
- * The player still reports the resulting step through `onStepChange`.
61
- */
62
- requestedStepIndex?: number;
58
+ /** Emits a low-frequency checkpoint for the active logical audio item. */
59
+ onPlaybackCheckpoint?: (checkpoint: SlidePlaybackCheckpoint) => void;
60
+ /** Restores one logical audio item and continues its normal playback. */
61
+ playbackRestoreRequest?: SlidePlaybackRestoreRequest | null;
63
62
  /**
64
63
  * Enables keyboard shortcuts for existing player actions.
65
64
  *
@@ -83,5 +82,17 @@ export interface SlideProps extends React.ComponentProps<"section"> {
83
82
  enableMarkdownScaling?: boolean;
84
83
  disableLoadingOverlay?: boolean;
85
84
  }
85
+ export interface SlidePlaybackCheckpoint {
86
+ audioKey: string;
87
+ element: Element;
88
+ isComplete: boolean;
89
+ stepIndex: number;
90
+ timeMs: number;
91
+ }
92
+ export interface SlidePlaybackRestoreRequest {
93
+ audioKey: string;
94
+ id: number | string;
95
+ timeMs: number;
96
+ }
86
97
  declare const Slide: React.FC<SlideProps>;
87
98
  export default Slide;