markdown-flow-ui 0.2.25-dev.1 → 0.2.25-dev.3
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/Slide.cjs +1 -1
- package/dist/components/Slide/Slide.cjs.map +1 -1
- package/dist/components/Slide/Slide.d.ts +17 -0
- package/dist/components/Slide/Slide.es.js +786 -738
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/index.d.ts +1 -1
- package/dist/components/Slide/utils/requestedStepNavigation.cjs +2 -0
- package/dist/components/Slide/utils/requestedStepNavigation.cjs.map +1 -0
- package/dist/components/Slide/utils/requestedStepNavigation.d.ts +9 -0
- package/dist/components/Slide/utils/requestedStepNavigation.es.js +18 -0
- package/dist/components/Slide/utils/requestedStepNavigation.es.js.map +1 -0
- package/dist/components/Slide/utils/requestedStepNavigation.test.d.ts +1 -0
- package/dist/components/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,16 @@ 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
|
+
}
|
|
25
35
|
export interface SlideProps extends React.ComponentProps<"section"> {
|
|
26
36
|
elementList?: Element[];
|
|
27
37
|
/** Locale used for built-in UI text when a more specific text prop is not provided. */
|
|
@@ -55,6 +65,13 @@ export interface SlideProps extends React.ComponentProps<"section"> {
|
|
|
55
65
|
onPlayerVisibilityChange?: (visible: boolean) => void;
|
|
56
66
|
onMobileViewModeChange?: (viewMode: MobileViewMode) => void;
|
|
57
67
|
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;
|
|
58
75
|
/**
|
|
59
76
|
* Requests navigation to a slide step from the consuming application.
|
|
60
77
|
* The player still reports the resulting step through `onStepChange`.
|