markdown-flow-ui 0.2.25-dev.3 → 0.2.25
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/dist/components/Slide/Player.cjs +1 -1
- package/dist/components/Slide/Player.cjs.map +1 -1
- package/dist/components/Slide/Player.d.ts +17 -1
- package/dist/components/Slide/Player.es.js +727 -623
- package/dist/components/Slide/Player.es.js.map +1 -1
- package/dist/components/Slide/Slide.cjs +1 -1
- package/dist/components/Slide/Slide.cjs.map +1 -1
- package/dist/components/Slide/Slide.d.ts +16 -22
- package/dist/components/Slide/Slide.es.js +668 -677
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/index.d.ts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/Slide/utils/requestedStepNavigation.cjs +0 -2
- package/dist/components/Slide/utils/requestedStepNavigation.cjs.map +0 -1
- package/dist/components/Slide/utils/requestedStepNavigation.d.ts +0 -9
- package/dist/components/Slide/utils/requestedStepNavigation.es.js +0 -18
- package/dist/components/Slide/utils/requestedStepNavigation.es.js.map +0 -1
- package/dist/components/Slide/utils/requestedStepNavigation.test.d.ts +0 -1
|
@@ -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
|
-
/**
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
|
|
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;
|