@bendyline/squisq-react 2.12.11 → 2.12.12
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/VideoLayer-sT0mrnNQ.d.ts +53 -0
- package/dist/{chunk-YLTG7BV5.js → chunk-4CMA33X3.js} +1 -1
- package/dist/{chunk-VX5XFSGI.js → chunk-BESMDAOC.js} +20 -9
- package/dist/{chunk-M44RDTSG.js → chunk-BFZAPNGC.js} +5 -2
- package/dist/{chunk-S73QOMOR.js → chunk-KT5524OQ.js} +6 -2
- package/dist/{chunk-WWVCJLRY.js → chunk-KTDEA4WA.js} +5 -4
- package/dist/{chunk-VT7JZORD.js → chunk-WIJP7FUN.js} +1 -1
- package/dist/diagram-pictures/index.js +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- package/dist/layers/index.d.ts +3 -21
- package/dist/layers/index.js +1 -1
- package/dist/page/index.js +4 -4
- package/dist/player/index.d.ts +2 -2
- package/dist/player/index.js +5 -5
- package/dist/{player-BdckuwwB.d.ts → player-C-k_8OaA.d.ts} +8 -2
- package/dist/squisq-player.full.global.js +372 -371
- package/dist/squisq-player.global.js +78 -77
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/package.json +2 -2
- package/dist/TableLayer-CA18rzIJ.d.ts +0 -31
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentType, ReactNode } from 'react';
|
|
3
|
+
import { Block, TableLayer as TableLayer$1, VideoLayer as VideoLayer$1 } from '@bendyline/squisq/schemas';
|
|
4
|
+
|
|
5
|
+
interface TableLayerContentRendererProps {
|
|
6
|
+
/** Owning block, including sourceBlockId for transformed projections. */
|
|
7
|
+
block: Block;
|
|
8
|
+
layer: TableLayer$1;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
/** Native themed table used while custom data is unavailable. */
|
|
12
|
+
fallback: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
type TableLayerContentRenderer = ComponentType<TableLayerContentRendererProps>;
|
|
15
|
+
interface TableLayerProps {
|
|
16
|
+
/** Owning block (custom renderers use its id to resolve sidecar data). */
|
|
17
|
+
block?: Block;
|
|
18
|
+
layer: TableLayer$1;
|
|
19
|
+
/** Viewport dimensions for percentage calculations */
|
|
20
|
+
viewport: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
};
|
|
24
|
+
/** Current time relative to block start (for animation) */
|
|
25
|
+
blockTime: number;
|
|
26
|
+
/** Optional host renderer for interactive table content. */
|
|
27
|
+
contentRenderer?: TableLayerContentRenderer;
|
|
28
|
+
}
|
|
29
|
+
declare function TableLayer({ block, layer, viewport, blockTime, contentRenderer, }: TableLayerProps): react.JSX.Element;
|
|
30
|
+
|
|
31
|
+
/** How a video clip plays: on the doc clock, or by the viewer's hand. */
|
|
32
|
+
type VideoClipMode = 'timed' | 'player';
|
|
33
|
+
interface VideoLayerProps {
|
|
34
|
+
layer: VideoLayer$1;
|
|
35
|
+
/** Base path for resolving relative video URLs */
|
|
36
|
+
basePath: string;
|
|
37
|
+
/** Viewport dimensions for percentage calculations */
|
|
38
|
+
viewport: {
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
};
|
|
42
|
+
/** Current time relative to block start (for playback sync) */
|
|
43
|
+
blockTime: number;
|
|
44
|
+
/** Whether the doc is currently playing */
|
|
45
|
+
isPlaying?: boolean;
|
|
46
|
+
/** Silence the video's own audio track. */
|
|
47
|
+
muted?: boolean;
|
|
48
|
+
/** How the clip plays (see the component docs). Default `timed`. */
|
|
49
|
+
mode?: VideoClipMode;
|
|
50
|
+
}
|
|
51
|
+
declare function VideoLayer({ layer, basePath, viewport, blockTime, isPlaying, muted, mode, }: VideoLayerProps): react.JSX.Element;
|
|
52
|
+
|
|
53
|
+
export { TableLayer as T, VideoLayer as V, type TableLayerContentRenderer as a, type TableLayerContentRendererProps as b, type VideoClipMode as c };
|
|
@@ -1678,11 +1678,13 @@ function VideoLayer({
|
|
|
1678
1678
|
viewport,
|
|
1679
1679
|
blockTime,
|
|
1680
1680
|
isPlaying,
|
|
1681
|
-
muted = false
|
|
1681
|
+
muted = false,
|
|
1682
|
+
mode = "timed"
|
|
1682
1683
|
}) {
|
|
1683
1684
|
const { content, position } = layer;
|
|
1684
1685
|
const videoRef = useRef2(null);
|
|
1685
1686
|
const hasStartedRef = useRef2(false);
|
|
1687
|
+
const isPlayer = mode === "player";
|
|
1686
1688
|
const startAt = content.startAt ?? 0;
|
|
1687
1689
|
const gated = blockTime < startAt;
|
|
1688
1690
|
const x = resolveValue(position.x, viewport.width);
|
|
@@ -1700,6 +1702,7 @@ function VideoLayer({
|
|
|
1700
1702
|
if (!video) return;
|
|
1701
1703
|
video.currentTime = content.clipStart;
|
|
1702
1704
|
hasStartedRef.current = true;
|
|
1705
|
+
if (isPlayer) return () => video.pause();
|
|
1703
1706
|
if (isPlaying) {
|
|
1704
1707
|
const playPromise = video.play();
|
|
1705
1708
|
if (playPromise) {
|
|
@@ -1718,10 +1721,10 @@ function VideoLayer({
|
|
|
1718
1721
|
video.removeEventListener("timeupdate", handleTimeUpdate);
|
|
1719
1722
|
video.pause();
|
|
1720
1723
|
};
|
|
1721
|
-
}, [src, content.clipStart, content.clipEnd]);
|
|
1724
|
+
}, [src, content.clipStart, content.clipEnd, isPlayer]);
|
|
1722
1725
|
useEffect2(() => {
|
|
1723
1726
|
const video = videoRef.current;
|
|
1724
|
-
if (!video || !hasStartedRef.current) return;
|
|
1727
|
+
if (!video || !hasStartedRef.current || isPlayer) return;
|
|
1725
1728
|
const targetTime = gated ? content.clipStart : Math.min(content.clipEnd, content.clipStart + Math.max(0, blockTime - startAt));
|
|
1726
1729
|
if (!isCaptureDrivenVideo(video) && Math.abs(video.currentTime - targetTime) > VIDEO_SYNC_DRIFT_SECONDS) {
|
|
1727
1730
|
video.currentTime = targetTime;
|
|
@@ -1743,7 +1746,7 @@ function VideoLayer({
|
|
|
1743
1746
|
} else if (!isCaptureDrivenVideo(video)) {
|
|
1744
1747
|
video.pause();
|
|
1745
1748
|
}
|
|
1746
|
-
}, [isPlaying, gated, blockTime, startAt, src, content.clipStart, content.clipEnd]);
|
|
1749
|
+
}, [isPlaying, gated, blockTime, startAt, src, content.clipStart, content.clipEnd, isPlayer]);
|
|
1747
1750
|
return /* @__PURE__ */ jsx7("g", { className: "block-layer block-layer--video", "data-layer-id": layer.id, children: /* @__PURE__ */ jsx7("foreignObject", { x: finalX, y: finalY, width, height, children: /* @__PURE__ */ jsx7(
|
|
1748
1751
|
"video",
|
|
1749
1752
|
{
|
|
@@ -1752,17 +1755,25 @@ function VideoLayer({
|
|
|
1752
1755
|
poster: posterSrc,
|
|
1753
1756
|
muted,
|
|
1754
1757
|
playsInline: true,
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1758
|
+
...isPlayer ? {
|
|
1759
|
+
controls: true,
|
|
1760
|
+
preload: "metadata",
|
|
1761
|
+
"aria-label": content.alt || void 0,
|
|
1762
|
+
// A drag on the seek bar scrubs the clip rather than swiping slides.
|
|
1763
|
+
"data-no-swipe": ""
|
|
1764
|
+
} : {
|
|
1765
|
+
preload: "auto",
|
|
1766
|
+
"data-clip-start": content.clipStart,
|
|
1767
|
+
"data-clip-end": content.clipEnd,
|
|
1768
|
+
"data-start-at": startAt
|
|
1769
|
+
},
|
|
1759
1770
|
style: {
|
|
1760
1771
|
width: `${width}px`,
|
|
1761
1772
|
height: `${height}px`,
|
|
1762
1773
|
objectFit: content.fit || "cover",
|
|
1763
1774
|
objectPosition: "center",
|
|
1764
1775
|
display: "block",
|
|
1765
|
-
pointerEvents: "none"
|
|
1776
|
+
pointerEvents: isPlayer ? void 0 : "none"
|
|
1766
1777
|
}
|
|
1767
1778
|
}
|
|
1768
1779
|
) }) });
|
|
@@ -562,7 +562,9 @@ import { useEffect as useEffect2, useMemo as useMemo3, useState as useState2 } f
|
|
|
562
562
|
import {
|
|
563
563
|
extractImages,
|
|
564
564
|
extractEmbeddedVideos,
|
|
565
|
-
flattenRenderableBlocks
|
|
565
|
+
flattenRenderableBlocks,
|
|
566
|
+
getBlockMediaLayoutPolicy,
|
|
567
|
+
resolveTemplateName
|
|
566
568
|
} from "@bendyline/squisq/doc";
|
|
567
569
|
import { isResourceUrlAllowed as isResourceUrlAllowed2 } from "@bendyline/squisq/markdown";
|
|
568
570
|
var EMPTY_RATIOS = {};
|
|
@@ -610,7 +612,8 @@ function useFeatureMediaAspectRatios(blocks, basePath, theme) {
|
|
|
610
612
|
const sourceKey = useMemo3(() => {
|
|
611
613
|
const sources = /* @__PURE__ */ new Map();
|
|
612
614
|
for (const block of flattenRenderableBlocks(blocks ?? [])) {
|
|
613
|
-
|
|
615
|
+
const nativeSlot = !!block.template && getBlockMediaLayoutPolicy(resolveTemplateName(block.template))?.ownership === "native-slot";
|
|
616
|
+
if (block.summaryLayout !== "feature" && !nativeSlot) continue;
|
|
614
617
|
for (const image of extractImages(block.contents))
|
|
615
618
|
sources.set(image.src, { kind: "image", source: image.src });
|
|
616
619
|
for (const video of extractEmbeddedVideos(block.contents))
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getAnchorOffset,
|
|
13
13
|
getTransitionClass,
|
|
14
14
|
resolveValue
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BESMDAOC.js";
|
|
16
16
|
|
|
17
17
|
// src/BlockRenderer.tsx
|
|
18
18
|
import { useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
@@ -270,6 +270,7 @@ function BlockRenderer({
|
|
|
270
270
|
tableContentRenderer,
|
|
271
271
|
growTextToFit = false,
|
|
272
272
|
videoEmbeds = "poster",
|
|
273
|
+
videoClips = "timed",
|
|
273
274
|
staticMedia = false
|
|
274
275
|
}) {
|
|
275
276
|
let transitionClass = "";
|
|
@@ -403,6 +404,7 @@ function BlockRenderer({
|
|
|
403
404
|
tableContentRenderer,
|
|
404
405
|
textScale,
|
|
405
406
|
videoEmbeds,
|
|
407
|
+
videoClips,
|
|
406
408
|
staticMedia: staticMedia || reducedMotion || !animationsEnabled
|
|
407
409
|
},
|
|
408
410
|
layer.id
|
|
@@ -424,6 +426,7 @@ function LayerRenderer({
|
|
|
424
426
|
tableContentRenderer,
|
|
425
427
|
textScale,
|
|
426
428
|
videoEmbeds,
|
|
429
|
+
videoClips,
|
|
427
430
|
staticMedia
|
|
428
431
|
}) {
|
|
429
432
|
const renderedLayer = animationsEnabled || !layer.animation ? layer : { ...layer, animation: void 0 };
|
|
@@ -473,7 +476,8 @@ function LayerRenderer({
|
|
|
473
476
|
viewport,
|
|
474
477
|
blockTime,
|
|
475
478
|
isPlaying,
|
|
476
|
-
muted
|
|
479
|
+
muted,
|
|
480
|
+
mode: videoClips
|
|
477
481
|
}
|
|
478
482
|
);
|
|
479
483
|
case "videoEmbed":
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LinearDocView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4CMA33X3.js";
|
|
4
4
|
import {
|
|
5
5
|
useAudioSync,
|
|
6
6
|
useDocPlayback,
|
|
7
7
|
useMediaSchedule,
|
|
8
8
|
useViewportOrientation
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BFZAPNGC.js";
|
|
10
10
|
import {
|
|
11
11
|
useAutoSurface
|
|
12
12
|
} from "./chunk-TT6ENR6T.js";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "./chunk-FLPGMUXM.js";
|
|
16
16
|
import {
|
|
17
17
|
BlockRenderer
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KT5524OQ.js";
|
|
19
19
|
import {
|
|
20
20
|
isCaptureDrivenVideo,
|
|
21
21
|
seekVideoToFrame
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BESMDAOC.js";
|
|
23
23
|
import {
|
|
24
24
|
useMediaProvider,
|
|
25
25
|
useMediaUrl,
|
|
@@ -4209,6 +4209,7 @@ function DocPlayerContent({
|
|
|
4209
4209
|
tableContentRenderer,
|
|
4210
4210
|
growTextToFit: isSlideshowMode,
|
|
4211
4211
|
videoEmbeds: renderMode ? "placeholder" : "player",
|
|
4212
|
+
videoClips: isSlideshowMode && !renderMode ? "player" : "timed",
|
|
4212
4213
|
staticMedia: renderMode
|
|
4213
4214
|
}
|
|
4214
4215
|
)
|
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-C-k_8OaA.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-C-k_8OaA.js';
|
|
3
3
|
import { Theme, VideoPresentation, VideoPipSize, VideoPipShape, VideoPipPosition, MotionSpec, Doc, ScheduledClip, MediaProvider, Block, BuildCursor } from '@bendyline/squisq/schemas';
|
|
4
4
|
import { DashboardStyleId, ViewportConfig, CoverSlideTemplate, CoverSlidePlayback } from '@bendyline/squisq/doc';
|
|
5
5
|
export { getAnimationStyle, getTransitionClass } from '@bendyline/squisq/doc';
|
|
@@ -10,8 +10,8 @@ export { CanvasSection, CanvasSectionProps, ImageDisplayMode, LinearDocView, Lin
|
|
|
10
10
|
import * as react from 'react';
|
|
11
11
|
import { ReactNode, RefObject } from 'react';
|
|
12
12
|
import { AnimatedImageInfo } from '@bendyline/squisq/imageEdit';
|
|
13
|
-
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, SvgLayer, TextLayer, TreeLayer
|
|
14
|
-
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from './
|
|
13
|
+
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, SvgLayer, TextLayer, TreeLayer } from './layers/index.js';
|
|
14
|
+
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps, V as VideoLayer } from './VideoLayer-sT0mrnNQ.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
17
|
export { A as AudioActions, a as AudioController, b as AudioState } from './AudioController-DAwQyEM_.js';
|
package/dist/index.js
CHANGED
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
resolveDocPlayerAppearance,
|
|
18
18
|
useBuildNavigation,
|
|
19
19
|
useMediaClipDurations
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KTDEA4WA.js";
|
|
21
21
|
import {
|
|
22
22
|
PaginatedDocView
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WIJP7FUN.js";
|
|
24
24
|
import {
|
|
25
25
|
CanvasSection,
|
|
26
26
|
LinearDocView,
|
|
27
27
|
PageSectionView,
|
|
28
28
|
PageViewContext,
|
|
29
29
|
usePageView
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4CMA33X3.js";
|
|
31
31
|
import {
|
|
32
32
|
useModalDialog
|
|
33
33
|
} from "./chunk-JP457U6N.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useDocPlayback,
|
|
37
37
|
useMediaSchedule,
|
|
38
38
|
useViewportOrientation
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-BFZAPNGC.js";
|
|
40
40
|
import {
|
|
41
41
|
JsonView,
|
|
42
42
|
createJsonFormFenceRenderer
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./chunk-FLPGMUXM.js";
|
|
58
58
|
import {
|
|
59
59
|
BlockRenderer
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-KT5524OQ.js";
|
|
61
61
|
import {
|
|
62
62
|
ImageLayer,
|
|
63
63
|
MapLayer,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
VideoLayer,
|
|
72
72
|
getAnimationStyle,
|
|
73
73
|
getTransitionClass
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-BESMDAOC.js";
|
|
75
75
|
import {
|
|
76
76
|
MermaidDiagram
|
|
77
77
|
} from "./chunk-BXPGK5VO.js";
|
package/dist/layers/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ImageLayer as ImageLayer$1, TextLayer as TextLayer$1, ShapeLayer as ShapeLayer$1, PathLayer as PathLayer$1,
|
|
3
|
-
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from '../
|
|
2
|
+
import { ImageLayer as ImageLayer$1, TextLayer as TextLayer$1, ShapeLayer as ShapeLayer$1, PathLayer as PathLayer$1, TreeLayer as TreeLayer$1, MapLayer as MapLayer$1, MermaidLayer as MermaidLayer$1, Theme, SvgLayer as SvgLayer$1 } from '@bendyline/squisq/schemas';
|
|
3
|
+
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps, V as VideoLayer } from '../VideoLayer-sT0mrnNQ.js';
|
|
4
4
|
|
|
5
5
|
interface ImageLayerProps {
|
|
6
6
|
layer: ImageLayer$1;
|
|
@@ -62,24 +62,6 @@ interface PathLayerProps {
|
|
|
62
62
|
}
|
|
63
63
|
declare function PathLayer({ layer, viewport, blockTime }: PathLayerProps): react.JSX.Element;
|
|
64
64
|
|
|
65
|
-
interface VideoLayerProps {
|
|
66
|
-
layer: VideoLayer$1;
|
|
67
|
-
/** Base path for resolving relative video URLs */
|
|
68
|
-
basePath: string;
|
|
69
|
-
/** Viewport dimensions for percentage calculations */
|
|
70
|
-
viewport: {
|
|
71
|
-
width: number;
|
|
72
|
-
height: number;
|
|
73
|
-
};
|
|
74
|
-
/** Current time relative to block start (for playback sync) */
|
|
75
|
-
blockTime: number;
|
|
76
|
-
/** Whether the doc is currently playing */
|
|
77
|
-
isPlaying?: boolean;
|
|
78
|
-
/** Silence the video's own audio track. */
|
|
79
|
-
muted?: boolean;
|
|
80
|
-
}
|
|
81
|
-
declare function VideoLayer({ layer, basePath, viewport, blockTime, isPlaying, muted, }: VideoLayerProps): react.JSX.Element;
|
|
82
|
-
|
|
83
65
|
interface TreeLayerProps {
|
|
84
66
|
layer: TreeLayer$1;
|
|
85
67
|
viewport: {
|
|
@@ -132,4 +114,4 @@ interface SvgLayerProps {
|
|
|
132
114
|
}
|
|
133
115
|
declare function SvgLayer({ layer, viewport, blockTime, isStatic }: SvgLayerProps): react.JSX.Element;
|
|
134
116
|
|
|
135
|
-
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, SvgLayer, TextLayer, TreeLayer
|
|
117
|
+
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, SvgLayer, TextLayer, TreeLayer };
|
package/dist/layers/index.js
CHANGED
package/dist/page/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PaginatedDocView
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-WIJP7FUN.js";
|
|
4
4
|
import {
|
|
5
5
|
CanvasSection,
|
|
6
6
|
LinearDocView,
|
|
7
7
|
PageSectionView,
|
|
8
8
|
PageViewContext,
|
|
9
9
|
usePageView
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-4CMA33X3.js";
|
|
11
11
|
import "../chunk-TT6ENR6T.js";
|
|
12
12
|
import "../chunk-FLPGMUXM.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-KT5524OQ.js";
|
|
14
|
+
import "../chunk-BESMDAOC.js";
|
|
15
15
|
import "../chunk-BXPGK5VO.js";
|
|
16
16
|
import "../chunk-P6MT4F3R.js";
|
|
17
17
|
export {
|
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-C-k_8OaA.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
7
|
import '../AudioController-DAwQyEM_.js';
|
|
8
|
-
import '../
|
|
8
|
+
import '../VideoLayer-sT0mrnNQ.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-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-KTDEA4WA.js";
|
|
16
|
+
import "../chunk-4CMA33X3.js";
|
|
17
|
+
import "../chunk-BFZAPNGC.js";
|
|
18
18
|
import "../chunk-TT6ENR6T.js";
|
|
19
19
|
import {
|
|
20
20
|
InlineAudioPlayer,
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
} from "../chunk-FLPGMUXM.js";
|
|
23
23
|
import {
|
|
24
24
|
BlockRenderer
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-KT5524OQ.js";
|
|
26
|
+
import "../chunk-BESMDAOC.js";
|
|
27
27
|
import "../chunk-BXPGK5VO.js";
|
|
28
28
|
import "../chunk-P6MT4F3R.js";
|
|
29
29
|
export {
|
|
@@ -5,7 +5,7 @@ import { ViewportConfig, DashboardStyleId, CoverSlideTemplate, CoverSlidePlaybac
|
|
|
5
5
|
import { FenceRendererMap } from '@bendyline/squisq/fence';
|
|
6
6
|
import { a as AudioController } from './AudioController-DAwQyEM_.js';
|
|
7
7
|
import { C as CodeBlockCopyHandler } from './MarkdownRenderer-C63CQ9Ca.js';
|
|
8
|
-
import { a as TableLayerContentRenderer } from './
|
|
8
|
+
import { a as TableLayerContentRenderer, c as VideoClipMode } from './VideoLayer-sT0mrnNQ.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Doc Player Control Types
|
|
@@ -389,6 +389,12 @@ interface BlockRendererProps {
|
|
|
389
389
|
* `placeholder` poster with no remote thumbnail, for frame capture.
|
|
390
390
|
*/
|
|
391
391
|
videoEmbeds?: VideoEmbedMode;
|
|
392
|
+
/**
|
|
393
|
+
* How video-file clips play: `timed` (default) on the doc clock, or as a
|
|
394
|
+
* `player` the viewer drives with native controls — for a slide stepped by
|
|
395
|
+
* hand, whose clock never runs.
|
|
396
|
+
*/
|
|
397
|
+
videoClips?: VideoClipMode;
|
|
392
398
|
/**
|
|
393
399
|
* Draw media that animates on its own wall clock — SVG islands' SMIL and
|
|
394
400
|
* CSS animation — as a still. Set for frame capture, where such motion
|
|
@@ -397,7 +403,7 @@ interface BlockRendererProps {
|
|
|
397
403
|
*/
|
|
398
404
|
staticMedia?: boolean;
|
|
399
405
|
}
|
|
400
|
-
declare function BlockRenderer({ block, buildPlayback, respectReducedMotion, blockTime, basePath, isEntering, isExiting, transition, viewport, isPlaying, muted, animationsEnabled, theme, tableContentRenderer, growTextToFit, videoEmbeds, staticMedia, }: BlockRendererProps): react.JSX.Element;
|
|
406
|
+
declare function BlockRenderer({ block, buildPlayback, respectReducedMotion, blockTime, basePath, isEntering, isExiting, transition, viewport, isPlaying, muted, animationsEnabled, theme, tableContentRenderer, growTextToFit, videoEmbeds, videoClips, staticMedia, }: BlockRendererProps): react.JSX.Element;
|
|
401
407
|
|
|
402
408
|
interface CaptionOverlayProps {
|
|
403
409
|
/** Caption track with timestamped phrases */
|