markdown-flow-ui 0.2.25-dev.3 → 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.
@@ -22,16 +22,6 @@ export type SlideFullscreenHeader = {
22
22
  backAriaLabel?: string;
23
23
  onBack?: () => void;
24
24
  };
25
- export interface SlidePlaybackPosition {
26
- audioKey: string;
27
- element?: Element;
28
- timeMs: number;
29
- }
30
- export interface SlidePlaybackResumeRequest {
31
- audioKey: string;
32
- id: number | string;
33
- timeMs: number;
34
- }
35
25
  export interface SlideProps extends React.ComponentProps<"section"> {
36
26
  elementList?: Element[];
37
27
  /** Locale used for built-in UI text when a more specific text prop is not provided. */
@@ -65,18 +55,10 @@ export interface SlideProps extends React.ComponentProps<"section"> {
65
55
  onPlayerVisibilityChange?: (visible: boolean) => void;
66
56
  onMobileViewModeChange?: (viewMode: MobileViewMode) => void;
67
57
  onStepChange?: (element: Element | undefined, index: number) => void;
68
- /** Reports the active logical audio item and its absolute playback time. */
69
- onPlaybackPositionChange?: (position: SlidePlaybackPosition) => void;
70
- /**
71
- * Requests playback restoration for a logical audio item. The request is
72
- * applied without autoplay and may wait for a streaming segment to arrive.
73
- */
74
- playbackResumeRequest?: SlidePlaybackResumeRequest | null;
75
- /**
76
- * Requests navigation to a slide step from the consuming application.
77
- * The player still reports the resulting step through `onStepChange`.
78
- */
79
- 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;
80
62
  /**
81
63
  * Enables keyboard shortcuts for existing player actions.
82
64
  *
@@ -100,5 +82,17 @@ export interface SlideProps extends React.ComponentProps<"section"> {
100
82
  enableMarkdownScaling?: boolean;
101
83
  disableLoadingOverlay?: boolean;
102
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
+ }
103
97
  declare const Slide: React.FC<SlideProps>;
104
98
  export default Slide;