@bendyline/squisq-react 2.11.7 → 2.11.9
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/README.md +19 -18
- package/dist/{chunk-ZY5N3JPM.js → chunk-6PUMLLJH.js} +281 -68
- package/dist/{chunk-ITQ4K5N6.js → chunk-KDTKUE53.js} +1 -1
- package/dist/{chunk-5UGIE2QO.js → chunk-LDXH4FOY.js} +2 -2
- package/dist/{chunk-7QA6EW6Y.js → chunk-SESRQ7XH.js} +1 -1
- package/dist/{chunk-XSOMFBH2.js → chunk-W6MKRWL6.js} +250 -2
- package/dist/{chunk-KGWT454C.js → chunk-Y2ANJRT3.js} +155 -266
- package/dist/index.d.ts +36 -4
- package/dist/index.js +10 -6
- package/dist/json-view/index.js +2 -2
- package/dist/layers/index.js +1 -1
- package/dist/markdown/index.js +1 -1
- package/dist/page/index.js +4 -4
- package/dist/player/index.d.ts +1 -1
- package/dist/player/index.js +4 -4
- package/dist/{player-BlD8zREs.d.ts → player-5j10MhBq.d.ts} +24 -2
- package/dist/squisq-player.full.global.js +437 -437
- package/dist/squisq-player.global.js +66 -66
- package/dist/standalone-source.js +1 -1
- package/dist/styles/index.css +30 -0
- package/package.json +2 -2
package/dist/json-view/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JsonView,
|
|
3
3
|
createJsonFormFenceRenderer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KDTKUE53.js";
|
|
5
5
|
import "../chunk-TT6ENR6T.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-6PUMLLJH.js";
|
|
7
7
|
import "../chunk-WLUZTUNZ.js";
|
|
8
8
|
import "../chunk-LR3AIGDD.js";
|
|
9
9
|
export {
|
package/dist/layers/index.js
CHANGED
package/dist/markdown/index.js
CHANGED
package/dist/page/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PaginatedDocView
|
|
3
|
-
} from "../chunk-
|
|
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-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-LDXH4FOY.js";
|
|
11
|
+
import "../chunk-W6MKRWL6.js";
|
|
12
12
|
import "../chunk-TT6ENR6T.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-6PUMLLJH.js";
|
|
14
14
|
import "../chunk-WLUZTUNZ.js";
|
|
15
15
|
import "../chunk-LR3AIGDD.js";
|
|
16
16
|
export {
|
package/dist/player/index.d.ts
CHANGED
|
@@ -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,
|
|
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';
|
package/dist/player/index.js
CHANGED
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
MediaClipLayer,
|
|
13
13
|
SocialCaptionOverlay,
|
|
14
14
|
formatTime
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-Y2ANJRT3.js";
|
|
16
16
|
import {
|
|
17
17
|
BlockRenderer
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
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-
|
|
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
|
|
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 };
|