@bendyline/squisq-react 2.11.23 → 2.11.24
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/{AudioController-DwMsPe38.d.ts → AudioController-DAwQyEM_.d.ts} +7 -0
- package/dist/{chunk-7J4YN7EK.js → chunk-245G4EEN.js} +78 -21
- package/dist/{chunk-AAZBM5PV.js → chunk-WGLW7T3F.js} +298 -192
- package/dist/hooks/index.d.ts +12 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/player/index.d.ts +2 -2
- package/dist/player/index.js +2 -2
- package/dist/{player-BONjpRpG.d.ts → player-BrLTAA_l.d.ts} +3 -1
- package/dist/squisq-player.full.global.js +425 -425
- package/dist/squisq-player.global.js +77 -77
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/package.json +1 -1
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
3
|
import { AudioTrack, ScheduledClip, Theme, MotionSpec, Doc, Block, MediaProvider, SurfaceScheme } from '@bendyline/squisq/schemas';
|
|
4
|
-
import { a as AudioController } from '../AudioController-
|
|
5
|
-
export { A as AudioActions, b as AudioState } from '../AudioController-
|
|
4
|
+
import { a as AudioController } from '../AudioController-DAwQyEM_.js';
|
|
5
|
+
export { A as AudioActions, b as AudioState } from '../AudioController-DAwQyEM_.js';
|
|
6
6
|
import { ViewportConfig, ViewportOrientation } from '@bendyline/squisq/doc';
|
|
7
7
|
import { ResourcePolicy } from '@bendyline/squisq/markdown';
|
|
8
8
|
|
|
@@ -22,6 +22,16 @@ import { ResourcePolicy } from '@bendyline/squisq/markdown';
|
|
|
22
22
|
* In `synthetic` mode there is no audio element to follow, so a caller that
|
|
23
23
|
* has no segments passes `syntheticDuration` — the document's own timeline
|
|
24
24
|
* length — and the same segment machinery drives a timer instead.
|
|
25
|
+
*
|
|
26
|
+
* Each segment is downloaded whole and attached as a blob URL, so a segment is
|
|
27
|
+
* only playable once its download finishes. A `play()` that arrives earlier (a
|
|
28
|
+
* listener pressing Play right away, or right after seeking into another
|
|
29
|
+
* segment) is recorded as intent and started by the load path on `canplay`.
|
|
30
|
+
* Playing the element immediately would either start an element with no
|
|
31
|
+
* source, whose pending play the attaching `load()` aborts, or start the
|
|
32
|
+
* previous segment. An `AbortError` from `play()` therefore means "superseded",
|
|
33
|
+
* never "unavailable". The next segment is downloaded shortly before the
|
|
34
|
+
* current one ends, so chapter boundaries do not stall on a fresh download.
|
|
25
35
|
*/
|
|
26
36
|
|
|
27
37
|
type AudioSyncMode = 'media' | 'synthetic';
|
package/dist/hooks/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SquisqRenderAPI, V as VideoPresentation$1, P as PipSize, a as PipShape, b as PipPosition } from './player-
|
|
2
|
-
export { B as BlockMarker, c as BlockRenderer, C as CaptionMode, d as CaptionOverlay, e as CaptionPosition, 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, w as PlaybackActions, x as PlaybackState, R as RenderAudioSegmentInfo, y as RenderBlockInfo, z as RenderCaptionInfo, A as RenderChapterInfo, E as RenderVideoFrameSelector, G as SlideNavActions, H as SocialCaptionOverlay, J as formatTime } from './player-
|
|
1
|
+
import { S as SquisqRenderAPI, V as VideoPresentation$1, P as PipSize, a as PipShape, b as PipPosition } from './player-BrLTAA_l.js';
|
|
2
|
+
export { B as BlockMarker, c as BlockRenderer, C as CaptionMode, d as CaptionOverlay, e as CaptionPosition, 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, w as PlaybackActions, x as PlaybackState, R as RenderAudioSegmentInfo, y as RenderBlockInfo, z as RenderCaptionInfo, A as RenderChapterInfo, E as RenderVideoFrameSelector, G as SlideNavActions, H as SocialCaptionOverlay, J as formatTime } from './player-BrLTAA_l.js';
|
|
3
3
|
import { Theme, VideoPresentation, VideoPipSize, VideoPipShape, VideoPipPosition, MotionSpec, Doc, ScheduledClip, MediaProvider } from '@bendyline/squisq/schemas';
|
|
4
4
|
import { DashboardStyleId, ViewportConfig, CoverSlideTemplate, CoverSlidePlayback } from '@bendyline/squisq/doc';
|
|
5
5
|
export { getAnimationStyle, getTransitionClass } from '@bendyline/squisq/doc';
|
|
@@ -14,7 +14,7 @@ export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, TextLayer, T
|
|
|
14
14
|
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from './TableLayer-CA18rzIJ.js';
|
|
15
15
|
export { MediaContext, MediaScheduleController, ModalDialogOptions, ResourcePolicyContext, UseDocPlaybackOptions, useAudioSync, useAutoSurface, useDocPlayback, useMediaProvider, useMediaSchedule, useMediaUrl, useModalDialog, useResourcePolicy, useViewportOrientation } from './hooks/index.js';
|
|
16
16
|
export { FenceRenderContext, FenceRenderer, FenceRendererMap } from '@bendyline/squisq/fence';
|
|
17
|
-
export { A as AudioActions, a as AudioController, b as AudioState } from './AudioController-
|
|
17
|
+
export { A as AudioActions, a as AudioController, b as AudioState } from './AudioController-DAwQyEM_.js';
|
|
18
18
|
export { JsonFormFenceAction, JsonFormFenceRendererOptions, JsonView, JsonViewProps, createJsonFormFenceRenderer } from './json-view/index.js';
|
|
19
19
|
import '@bendyline/squisq/markdown';
|
|
20
20
|
import '@bendyline/squisq/jsonForm';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
formatTime,
|
|
16
16
|
resolveDocPlayerAppearance,
|
|
17
17
|
useMediaClipDurations
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WGLW7T3F.js";
|
|
19
19
|
import {
|
|
20
20
|
PaginatedDocView
|
|
21
21
|
} from "./chunk-KORFPHSJ.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
useDocPlayback,
|
|
35
35
|
useMediaSchedule,
|
|
36
36
|
useViewportOrientation
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-245G4EEN.js";
|
|
38
38
|
import {
|
|
39
39
|
JsonView,
|
|
40
40
|
createJsonFormFenceRenderer
|
package/dist/player/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
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-BrLTAA_l.js';
|
|
2
2
|
export { a as CodeBlockCopyContext, C as CodeBlockCopyHandler } from '../MarkdownRenderer-C63CQ9Ca.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@bendyline/squisq/schemas';
|
|
5
5
|
import '@bendyline/squisq/doc';
|
|
6
6
|
import '@bendyline/squisq/fence';
|
|
7
|
-
import '../AudioController-
|
|
7
|
+
import '../AudioController-DAwQyEM_.js';
|
|
8
8
|
import '../TableLayer-CA18rzIJ.js';
|
|
9
9
|
import '@bendyline/squisq/markdown';
|
package/dist/player/index.js
CHANGED
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
MediaClipLayer,
|
|
13
13
|
SocialCaptionOverlay,
|
|
14
14
|
formatTime
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-WGLW7T3F.js";
|
|
16
16
|
import "../chunk-E7UE2PCJ.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-245G4EEN.js";
|
|
18
18
|
import "../chunk-TT6ENR6T.js";
|
|
19
19
|
import {
|
|
20
20
|
InlineAudioPlayer,
|
|
@@ -3,7 +3,7 @@ import { CSSProperties } from 'react';
|
|
|
3
3
|
import { Block, VideoPresentation as VideoPresentation$1, VideoPipSize, VideoPipShape, VideoPipPosition, Doc, MediaScheduleOptions, Theme, MotionSpec, SurfaceScheme, Transition, CaptionTrack, ViewportConfig as ViewportConfig$1, CustomTemplateDefinition, ScheduledClip } from '@bendyline/squisq/schemas';
|
|
4
4
|
import { ViewportConfig, DashboardStyleId, CoverSlideTemplate, CoverSlidePlayback, FlashcardFace, FlashcardSourceMode } from '@bendyline/squisq/doc';
|
|
5
5
|
import { FenceRendererMap } from '@bendyline/squisq/fence';
|
|
6
|
-
import { a as AudioController } from './AudioController-
|
|
6
|
+
import { a as AudioController } from './AudioController-DAwQyEM_.js';
|
|
7
7
|
import { C as CodeBlockCopyHandler } from './MarkdownRenderer-C63CQ9Ca.js';
|
|
8
8
|
import { a as TableLayerContentRenderer } from './TableLayer-CA18rzIJ.js';
|
|
9
9
|
|
|
@@ -97,6 +97,8 @@ interface SlideNavActions {
|
|
|
97
97
|
/** Playback state exposed to external control components */
|
|
98
98
|
interface PlaybackState {
|
|
99
99
|
isPlaying: boolean;
|
|
100
|
+
/** Playback was requested but audio has not started yet (see AudioState.isBuffering). */
|
|
101
|
+
isBuffering?: boolean;
|
|
100
102
|
currentTime: number;
|
|
101
103
|
totalDuration: number;
|
|
102
104
|
/** Whether the managed cover is the visual currently shown. */
|