@bendyline/squisq-react 2.12.11 → 2.12.13
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-M44RDTSG.js → chunk-BFZAPNGC.js} +5 -2
- package/dist/{chunk-S73QOMOR.js → chunk-FFCQT2UN.js} +6 -2
- package/dist/{chunk-WWVCJLRY.js → chunk-KHWLCMZY.js} +5 -4
- package/dist/{chunk-VT7JZORD.js → chunk-KL4ORZBF.js} +1 -1
- package/dist/{chunk-YLTG7BV5.js → chunk-QVPEJ6YE.js} +1 -1
- package/dist/{chunk-VX5XFSGI.js → chunk-TGITCMIQ.js} +24 -10
- 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 +379 -376
- package/dist/squisq-player.global.js +80 -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 };
|
|
@@ -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-TGITCMIQ.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-QVPEJ6YE.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-FFCQT2UN.js";
|
|
19
19
|
import {
|
|
20
20
|
isCaptureDrivenVideo,
|
|
21
21
|
seekVideoToFrame
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TGITCMIQ.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
|
)
|
|
@@ -613,7 +613,10 @@ function PlainTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
|
613
613
|
style: textStyles,
|
|
614
614
|
filter: filterId ? `url(#${filterId})` : void 0,
|
|
615
615
|
transform: fitTransform,
|
|
616
|
-
children: lines.map((line, i) => /* @__PURE__ */
|
|
616
|
+
children: lines.map((line, i) => /* @__PURE__ */ jsxs2("tspan", { x, dy: i === 0 ? firstLineDy + baselineShiftPx : lineHeightPx, children: [
|
|
617
|
+
renderLine(line),
|
|
618
|
+
i < lines.length - 1 && /* @__PURE__ */ jsx3("tspan", { style: { fontSize: 0 }, children: " " })
|
|
619
|
+
] }, i))
|
|
617
620
|
}
|
|
618
621
|
)
|
|
619
622
|
}
|
|
@@ -1678,11 +1681,13 @@ function VideoLayer({
|
|
|
1678
1681
|
viewport,
|
|
1679
1682
|
blockTime,
|
|
1680
1683
|
isPlaying,
|
|
1681
|
-
muted = false
|
|
1684
|
+
muted = false,
|
|
1685
|
+
mode = "timed"
|
|
1682
1686
|
}) {
|
|
1683
1687
|
const { content, position } = layer;
|
|
1684
1688
|
const videoRef = useRef2(null);
|
|
1685
1689
|
const hasStartedRef = useRef2(false);
|
|
1690
|
+
const isPlayer = mode === "player";
|
|
1686
1691
|
const startAt = content.startAt ?? 0;
|
|
1687
1692
|
const gated = blockTime < startAt;
|
|
1688
1693
|
const x = resolveValue(position.x, viewport.width);
|
|
@@ -1700,6 +1705,7 @@ function VideoLayer({
|
|
|
1700
1705
|
if (!video) return;
|
|
1701
1706
|
video.currentTime = content.clipStart;
|
|
1702
1707
|
hasStartedRef.current = true;
|
|
1708
|
+
if (isPlayer) return () => video.pause();
|
|
1703
1709
|
if (isPlaying) {
|
|
1704
1710
|
const playPromise = video.play();
|
|
1705
1711
|
if (playPromise) {
|
|
@@ -1718,10 +1724,10 @@ function VideoLayer({
|
|
|
1718
1724
|
video.removeEventListener("timeupdate", handleTimeUpdate);
|
|
1719
1725
|
video.pause();
|
|
1720
1726
|
};
|
|
1721
|
-
}, [src, content.clipStart, content.clipEnd]);
|
|
1727
|
+
}, [src, content.clipStart, content.clipEnd, isPlayer]);
|
|
1722
1728
|
useEffect2(() => {
|
|
1723
1729
|
const video = videoRef.current;
|
|
1724
|
-
if (!video || !hasStartedRef.current) return;
|
|
1730
|
+
if (!video || !hasStartedRef.current || isPlayer) return;
|
|
1725
1731
|
const targetTime = gated ? content.clipStart : Math.min(content.clipEnd, content.clipStart + Math.max(0, blockTime - startAt));
|
|
1726
1732
|
if (!isCaptureDrivenVideo(video) && Math.abs(video.currentTime - targetTime) > VIDEO_SYNC_DRIFT_SECONDS) {
|
|
1727
1733
|
video.currentTime = targetTime;
|
|
@@ -1743,7 +1749,7 @@ function VideoLayer({
|
|
|
1743
1749
|
} else if (!isCaptureDrivenVideo(video)) {
|
|
1744
1750
|
video.pause();
|
|
1745
1751
|
}
|
|
1746
|
-
}, [isPlaying, gated, blockTime, startAt, src, content.clipStart, content.clipEnd]);
|
|
1752
|
+
}, [isPlaying, gated, blockTime, startAt, src, content.clipStart, content.clipEnd, isPlayer]);
|
|
1747
1753
|
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
1754
|
"video",
|
|
1749
1755
|
{
|
|
@@ -1752,17 +1758,25 @@ function VideoLayer({
|
|
|
1752
1758
|
poster: posterSrc,
|
|
1753
1759
|
muted,
|
|
1754
1760
|
playsInline: true,
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1761
|
+
...isPlayer ? {
|
|
1762
|
+
controls: true,
|
|
1763
|
+
preload: "metadata",
|
|
1764
|
+
"aria-label": content.alt || void 0,
|
|
1765
|
+
// A drag on the seek bar scrubs the clip rather than swiping slides.
|
|
1766
|
+
"data-no-swipe": ""
|
|
1767
|
+
} : {
|
|
1768
|
+
preload: "auto",
|
|
1769
|
+
"data-clip-start": content.clipStart,
|
|
1770
|
+
"data-clip-end": content.clipEnd,
|
|
1771
|
+
"data-start-at": startAt
|
|
1772
|
+
},
|
|
1759
1773
|
style: {
|
|
1760
1774
|
width: `${width}px`,
|
|
1761
1775
|
height: `${height}px`,
|
|
1762
1776
|
objectFit: content.fit || "cover",
|
|
1763
1777
|
objectPosition: "center",
|
|
1764
1778
|
display: "block",
|
|
1765
|
-
pointerEvents: "none"
|
|
1779
|
+
pointerEvents: isPlayer ? void 0 : "none"
|
|
1766
1780
|
}
|
|
1767
1781
|
}
|
|
1768
1782
|
) }) });
|
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-KHWLCMZY.js";
|
|
21
21
|
import {
|
|
22
22
|
PaginatedDocView
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KL4ORZBF.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-QVPEJ6YE.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-FFCQT2UN.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-TGITCMIQ.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-KL4ORZBF.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-QVPEJ6YE.js";
|
|
11
11
|
import "../chunk-TT6ENR6T.js";
|
|
12
12
|
import "../chunk-FLPGMUXM.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-FFCQT2UN.js";
|
|
14
|
+
import "../chunk-TGITCMIQ.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-KHWLCMZY.js";
|
|
16
|
+
import "../chunk-QVPEJ6YE.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-FFCQT2UN.js";
|
|
26
|
+
import "../chunk-TGITCMIQ.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 */
|