@bendyline/squisq-react 2.11.7 → 2.11.8

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.
@@ -2,7 +2,7 @@ import {
2
2
  FenceRendererContext,
3
3
  MarkdownRenderer,
4
4
  useFenceRenderers
5
- } from "../chunk-ZY5N3JPM.js";
5
+ } from "../chunk-6PUMLLJH.js";
6
6
  import {
7
7
  MermaidDiagram
8
8
  } from "../chunk-WLUZTUNZ.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  PaginatedDocView
3
- } from "../chunk-7QA6EW6Y.js";
3
+ } from "../chunk-SESRQ7XH.js";
4
4
  import {
5
5
  CanvasSection,
6
6
  LinearDocView,
7
7
  PageSectionView,
8
8
  PageViewContext,
9
9
  usePageView
10
- } from "../chunk-5UGIE2QO.js";
11
- import "../chunk-XSOMFBH2.js";
10
+ } from "../chunk-LDXH4FOY.js";
11
+ import "../chunk-W6MKRWL6.js";
12
12
  import "../chunk-TT6ENR6T.js";
13
- import "../chunk-ZY5N3JPM.js";
13
+ import "../chunk-6PUMLLJH.js";
14
14
  import "../chunk-WLUZTUNZ.js";
15
15
  import "../chunk-LR3AIGDD.js";
16
16
  export {
@@ -1,4 +1,4 @@
1
- export { B as BlockMarker, c as BlockRenderer, C as CaptionMode, d as CaptionOverlay, f as CaptionStyle, g as ControlsLayout, D as DisplayMode, h as DocControlsBottom, i as DocControlsOverlay, j as DocControlsSidebar, k as DocControlsSlideshow, l as DocPlayer, m as DocPlayerProps, n as DocPlayerWithSidebar, o as DocProgressBar, F as FlashcardFaceView, p as FlashcardFaceViewProps, q as FlashcardView, r as FlashcardViewProps, I as InlineAudioPlayer, s as InlineAudioPlayerProps, t as InlineVideoPlayer, u as InlineVideoPlayerProps, M as MediaClipLayer, v as MediaClipLayerProps, b as PipPosition, a as PipShape, P as PipSize, w as PlaybackActions, x as PlaybackState, R as RenderAudioSegmentInfo, y as RenderBlockInfo, z as RenderCaptionInfo, A as RenderChapterInfo, E as SlideNavActions, G as SocialCaptionOverlay, S as SquisqRenderAPI, V as VideoPresentation, H as formatTime } from '../player-BlD8zREs.js';
1
+ export { B as BlockMarker, c as BlockRenderer, C as CaptionMode, d as CaptionOverlay, f as CaptionStyle, g as ControlsLayout, D as DisplayMode, h as DocControlsBottom, i as DocControlsOverlay, j as DocControlsSidebar, k as DocControlsSlideshow, l as DocPlayer, m as DocPlayerProps, n as DocPlayerWithSidebar, o as DocProgressBar, F as FlashcardFaceView, p as FlashcardFaceViewProps, q as FlashcardView, r as FlashcardViewProps, I as InlineAudioPlayer, s as InlineAudioPlayerProps, t as InlineVideoPlayer, u as InlineVideoPlayerProps, M as MediaClipLayer, v as MediaClipLayerProps, b as PipPosition, a as PipShape, P as PipSize, w as PlaybackActions, x as PlaybackState, R as RenderAudioSegmentInfo, y as RenderBlockInfo, z as RenderCaptionInfo, A as RenderChapterInfo, G as SlideNavActions, H as SocialCaptionOverlay, S as SquisqRenderAPI, V as VideoPresentation, J as formatTime } from '../player-5j10MhBq.js';
2
2
  export { a as CodeBlockCopyContext, C as CodeBlockCopyHandler } from '../MarkdownRenderer-CC9dOc6b.js';
3
3
  import 'react/jsx-runtime';
4
4
  import '@bendyline/squisq/schemas';
@@ -12,17 +12,17 @@ import {
12
12
  MediaClipLayer,
13
13
  SocialCaptionOverlay,
14
14
  formatTime
15
- } from "../chunk-KGWT454C.js";
15
+ } from "../chunk-Z64OLGMD.js";
16
16
  import {
17
17
  BlockRenderer
18
- } from "../chunk-5UGIE2QO.js";
19
- import "../chunk-XSOMFBH2.js";
18
+ } from "../chunk-LDXH4FOY.js";
19
+ import "../chunk-W6MKRWL6.js";
20
20
  import "../chunk-MVJQL2W2.js";
21
21
  import "../chunk-TT6ENR6T.js";
22
22
  import {
23
23
  InlineAudioPlayer,
24
24
  InlineVideoPlayer
25
- } from "../chunk-ZY5N3JPM.js";
25
+ } from "../chunk-6PUMLLJH.js";
26
26
  import "../chunk-WLUZTUNZ.js";
27
27
  import "../chunk-LR3AIGDD.js";
28
28
  export {
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Block, VideoPresentation as VideoPresentation$1, VideoPipSize, VideoPipShape, VideoPipPosition, Doc, Theme, SurfaceScheme, Transition, CaptionTrack, ViewportConfig as ViewportConfig$1, CustomTemplateDefinition, ScheduledClip } from '@bendyline/squisq/schemas';
2
+ import { Block, VideoPresentation as VideoPresentation$1, VideoPipSize, VideoPipShape, VideoPipPosition, Doc, MediaScheduleOptions, Theme, SurfaceScheme, Transition, CaptionTrack, ViewportConfig as ViewportConfig$1, CustomTemplateDefinition, ScheduledClip } from '@bendyline/squisq/schemas';
3
3
  import { ViewportConfig, DashboardStyleId, CoverSlideTemplate, CoverSlidePlayback, FlashcardFace, FlashcardSourceMode } from '@bendyline/squisq/doc';
4
4
  import { FenceRendererMap } from '@bendyline/squisq/fence';
5
5
  import { a as AudioController } from './AudioController-DwMsPe38.js';
@@ -193,6 +193,16 @@ interface SquisqRenderAPI {
193
193
  hideCover: () => Promise<void>;
194
194
  hasCoverBlock: () => boolean;
195
195
  }
196
+ /**
197
+ * Render-mode hook that supplies a `<video>` element's pixels for a media
198
+ * time without moving the element itself.
199
+ *
200
+ * Resolve `true` once the frame at `targetTime` is ready to draw, or `false`
201
+ * to let the player seek the element (the default behavior). A capture host
202
+ * that decodes sources directly uses this to advance faster than realtime:
203
+ * an element can only reach its next frame by seeking or playing.
204
+ */
205
+ type RenderVideoFrameSelector = (video: HTMLVideoElement, targetTime: number) => Promise<boolean>;
196
206
  /** Format time in seconds to MM:SS string */
197
207
  declare function formatTime(seconds: number): string;
198
208
 
@@ -209,6 +219,18 @@ interface DocPlayerProps {
209
219
  animationsEnabled?: boolean;
210
220
  /** Receives the instance-scoped render API, and `null` on cleanup. */
211
221
  onRenderAPIReady?: (api: SquisqRenderAPI | null) => void;
222
+ /**
223
+ * Render mode only: supplies video frames for `seekTo` instead of seeking
224
+ * the `<video>` elements. Videos it declines are seeked as usual.
225
+ */
226
+ renderVideoFrameSelector?: RenderVideoFrameSelector;
227
+ /**
228
+ * Processed-audio lookup for media-edit recipes (`fx`): returns the render
229
+ * path an edited clip should play instead of its own audio, or undefined
230
+ * while none exists (the clip then plays its original audio). Forwarded to
231
+ * `resolveMediaSchedule`; see docs/media-edits.md.
232
+ */
233
+ processedAudio?: MediaScheduleOptions['processedAudio'];
212
234
  autoPlay?: boolean;
213
235
  /** Restart Video-mode playback automatically when the timeline ends. */
214
236
  loop?: boolean;
@@ -543,4 +565,4 @@ interface MediaClipLayerProps {
543
565
  }
544
566
  declare function MediaClipLayer({ schedule, currentTime, isPlaying, basePath, renderMode, muted, presentation, pipSize, pipShape, pipPosition, pipOrientation, pipFrameStyle, honorClipPresentation, }: MediaClipLayerProps): react_jsx_runtime.JSX.Element | null;
545
567
 
546
- export { type RenderChapterInfo as A, type BlockMarker as B, type CaptionMode as C, type DisplayMode as D, type SlideNavActions as E, FlashcardFaceView as F, SocialCaptionOverlay as G, formatTime as H, InlineAudioPlayer as I, MediaClipLayer as M, type PipSize as P, type RenderAudioSegmentInfo as R, type SquisqRenderAPI as S, type VideoPresentation as V, type PipShape as a, type PipPosition as b, BlockRenderer as c, CaptionOverlay as d, type CaptionPosition as e, type CaptionStyle as f, type ControlsLayout as g, DocControlsBottom as h, DocControlsOverlay as i, DocControlsSidebar as j, DocControlsSlideshow as k, DocPlayer as l, type DocPlayerProps as m, DocPlayerWithSidebar as n, DocProgressBar as o, type FlashcardFaceViewProps as p, FlashcardView as q, type FlashcardViewProps as r, type InlineAudioPlayerProps as s, InlineVideoPlayer as t, type InlineVideoPlayerProps as u, type MediaClipLayerProps as v, type PlaybackActions as w, type PlaybackState as x, type RenderBlockInfo as y, type RenderCaptionInfo as z };
568
+ export { type RenderChapterInfo as A, type BlockMarker as B, type CaptionMode as C, type DisplayMode as D, type RenderVideoFrameSelector as E, FlashcardFaceView as F, type SlideNavActions as G, SocialCaptionOverlay as H, InlineAudioPlayer as I, formatTime as J, MediaClipLayer as M, type PipSize as P, type RenderAudioSegmentInfo as R, type SquisqRenderAPI as S, type VideoPresentation as V, type PipShape as a, type PipPosition as b, BlockRenderer as c, CaptionOverlay as d, type CaptionPosition as e, type CaptionStyle as f, type ControlsLayout as g, DocControlsBottom as h, DocControlsOverlay as i, DocControlsSidebar as j, DocControlsSlideshow as k, DocPlayer as l, type DocPlayerProps as m, DocPlayerWithSidebar as n, DocProgressBar as o, type FlashcardFaceViewProps as p, FlashcardView as q, type FlashcardViewProps as r, type InlineAudioPlayerProps as s, InlineVideoPlayer as t, type InlineVideoPlayerProps as u, type MediaClipLayerProps as v, type PlaybackActions as w, type PlaybackState as x, type RenderBlockInfo as y, type RenderCaptionInfo as z };