@bendyline/squisq-react 2.12.10 → 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.
@@ -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 };
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-FLPGMUXM.js";
9
9
  import {
10
10
  BlockRenderer
11
- } from "./chunk-WACTP75S.js";
11
+ } from "./chunk-KT5524OQ.js";
12
12
  import {
13
13
  svgDataImageSrc,
14
14
  useMediaUrl
@@ -613,10 +613,7 @@ 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__ */ jsxs2("tspan", { x, dy: i === 0 ? firstLineDy + baselineShiftPx : lineHeightPx, children: [
617
- renderLine(line),
618
- " "
619
- ] }, i))
616
+ children: lines.map((line, i) => /* @__PURE__ */ jsx3("tspan", { x, dy: i === 0 ? firstLineDy + baselineShiftPx : lineHeightPx, children: renderLine(line) }, i))
620
617
  }
621
618
  )
622
619
  }
@@ -856,7 +853,11 @@ function ShapeLayer({ layer, viewport, blockTime }) {
856
853
  const animStyle = getAnimationStyle(animation, blockTime);
857
854
  const fill = content.fill || "none";
858
855
  const isCSSGradient = typeof fill === "string" && fill.includes("gradient(");
859
- if (content.shape === "rect" && isCSSGradient && !content.gradient) {
856
+ const backdropFilter = content.shape === "rect" ? [
857
+ content.backdropBlur ? `blur(${content.backdropBlur}px)` : "",
858
+ content.backdropContrast !== void 0 ? `contrast(${content.backdropContrast})` : ""
859
+ ].filter(Boolean).join(" ") : "";
860
+ if (content.shape === "rect" && (isCSSGradient && !content.gradient || backdropFilter)) {
860
861
  return (
861
862
  // Shape layers are visual primitives. In particular, theme top-layers
862
863
  // can cover the whole slide; they must not shield interactive table,
@@ -876,6 +877,7 @@ function ShapeLayer({ layer, viewport, blockTime }) {
876
877
  height: `${paintHeight}px`,
877
878
  background: fill,
878
879
  borderRadius: content.borderRadius ? `${content.borderRadius}px` : void 0,
880
+ ...backdropFilter ? { backdropFilter, WebkitBackdropFilter: backdropFilter } : {},
879
881
  pointerEvents: "none"
880
882
  }
881
883
  }
@@ -1676,11 +1678,13 @@ function VideoLayer({
1676
1678
  viewport,
1677
1679
  blockTime,
1678
1680
  isPlaying,
1679
- muted = false
1681
+ muted = false,
1682
+ mode = "timed"
1680
1683
  }) {
1681
1684
  const { content, position } = layer;
1682
1685
  const videoRef = useRef2(null);
1683
1686
  const hasStartedRef = useRef2(false);
1687
+ const isPlayer = mode === "player";
1684
1688
  const startAt = content.startAt ?? 0;
1685
1689
  const gated = blockTime < startAt;
1686
1690
  const x = resolveValue(position.x, viewport.width);
@@ -1698,6 +1702,7 @@ function VideoLayer({
1698
1702
  if (!video) return;
1699
1703
  video.currentTime = content.clipStart;
1700
1704
  hasStartedRef.current = true;
1705
+ if (isPlayer) return () => video.pause();
1701
1706
  if (isPlaying) {
1702
1707
  const playPromise = video.play();
1703
1708
  if (playPromise) {
@@ -1716,10 +1721,10 @@ function VideoLayer({
1716
1721
  video.removeEventListener("timeupdate", handleTimeUpdate);
1717
1722
  video.pause();
1718
1723
  };
1719
- }, [src, content.clipStart, content.clipEnd]);
1724
+ }, [src, content.clipStart, content.clipEnd, isPlayer]);
1720
1725
  useEffect2(() => {
1721
1726
  const video = videoRef.current;
1722
- if (!video || !hasStartedRef.current) return;
1727
+ if (!video || !hasStartedRef.current || isPlayer) return;
1723
1728
  const targetTime = gated ? content.clipStart : Math.min(content.clipEnd, content.clipStart + Math.max(0, blockTime - startAt));
1724
1729
  if (!isCaptureDrivenVideo(video) && Math.abs(video.currentTime - targetTime) > VIDEO_SYNC_DRIFT_SECONDS) {
1725
1730
  video.currentTime = targetTime;
@@ -1741,7 +1746,7 @@ function VideoLayer({
1741
1746
  } else if (!isCaptureDrivenVideo(video)) {
1742
1747
  video.pause();
1743
1748
  }
1744
- }, [isPlaying, gated, blockTime, startAt, src, content.clipStart, content.clipEnd]);
1749
+ }, [isPlaying, gated, blockTime, startAt, src, content.clipStart, content.clipEnd, isPlayer]);
1745
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(
1746
1751
  "video",
1747
1752
  {
@@ -1750,17 +1755,25 @@ function VideoLayer({
1750
1755
  poster: posterSrc,
1751
1756
  muted,
1752
1757
  playsInline: true,
1753
- preload: "auto",
1754
- "data-clip-start": content.clipStart,
1755
- "data-clip-end": content.clipEnd,
1756
- "data-start-at": startAt,
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
+ },
1757
1770
  style: {
1758
1771
  width: `${width}px`,
1759
1772
  height: `${height}px`,
1760
1773
  objectFit: content.fit || "cover",
1761
1774
  objectPosition: "center",
1762
1775
  display: "block",
1763
- pointerEvents: "none"
1776
+ pointerEvents: isPlayer ? void 0 : "none"
1764
1777
  }
1765
1778
  }
1766
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
- if (block.summaryLayout !== "feature") continue;
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-DN6JZRJI.js";
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-6BKIY72Q.js";
3
+ } from "./chunk-4CMA33X3.js";
4
4
  import {
5
5
  useAudioSync,
6
6
  useDocPlayback,
7
7
  useMediaSchedule,
8
8
  useViewportOrientation
9
- } from "./chunk-M44RDTSG.js";
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-WACTP75S.js";
18
+ } from "./chunk-KT5524OQ.js";
19
19
  import {
20
20
  isCaptureDrivenVideo,
21
21
  seekVideoToFrame
22
- } from "./chunk-DN6JZRJI.js";
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
  )
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LinearDocView
3
- } from "./chunk-6BKIY72Q.js";
3
+ } from "./chunk-4CMA33X3.js";
4
4
 
5
5
  // src/PaginatedDocView.tsx
6
6
  import {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlockRenderer
3
- } from "../chunk-WACTP75S.js";
4
- import "../chunk-DN6JZRJI.js";
3
+ } from "../chunk-KT5524OQ.js";
4
+ import "../chunk-BESMDAOC.js";
5
5
  import "../chunk-BXPGK5VO.js";
6
6
  import {
7
7
  renderMermaidSvgForExport
@@ -6,7 +6,7 @@ import {
6
6
  useDocPlayback,
7
7
  useMediaSchedule,
8
8
  useViewportOrientation
9
- } from "../chunk-M44RDTSG.js";
9
+ } from "../chunk-BFZAPNGC.js";
10
10
  import {
11
11
  useAutoSurface
12
12
  } from "../chunk-TT6ENR6T.js";
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-BdckuwwB.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-BdckuwwB.js';
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, VideoLayer } from './layers/index.js';
14
- export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from './TableLayer-CA18rzIJ.js';
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-4JZJEJNO.js";
20
+ } from "./chunk-KTDEA4WA.js";
21
21
  import {
22
22
  PaginatedDocView
23
- } from "./chunk-R7PHQNC7.js";
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-6BKIY72Q.js";
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-M44RDTSG.js";
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-WACTP75S.js";
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-DN6JZRJI.js";
74
+ } from "./chunk-BESMDAOC.js";
75
75
  import {
76
76
  MermaidDiagram
77
77
  } from "./chunk-BXPGK5VO.js";
@@ -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, VideoLayer as VideoLayer$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 } from '../TableLayer-CA18rzIJ.js';
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, VideoLayer };
117
+ export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, SvgLayer, TextLayer, TreeLayer };
@@ -9,7 +9,7 @@ import {
9
9
  TextLayer,
10
10
  TreeLayer,
11
11
  VideoLayer
12
- } from "../chunk-DN6JZRJI.js";
12
+ } from "../chunk-BESMDAOC.js";
13
13
  import "../chunk-BXPGK5VO.js";
14
14
  import "../chunk-P6MT4F3R.js";
15
15
  export {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  PaginatedDocView
3
- } from "../chunk-R7PHQNC7.js";
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-6BKIY72Q.js";
10
+ } from "../chunk-4CMA33X3.js";
11
11
  import "../chunk-TT6ENR6T.js";
12
12
  import "../chunk-FLPGMUXM.js";
13
- import "../chunk-WACTP75S.js";
14
- import "../chunk-DN6JZRJI.js";
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 {
@@ -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-BdckuwwB.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-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 '../TableLayer-CA18rzIJ.js';
8
+ import '../VideoLayer-sT0mrnNQ.js';
9
9
  import '@bendyline/squisq/markdown';
@@ -12,9 +12,9 @@ import {
12
12
  MediaClipLayer,
13
13
  SocialCaptionOverlay,
14
14
  formatTime
15
- } from "../chunk-4JZJEJNO.js";
16
- import "../chunk-6BKIY72Q.js";
17
- import "../chunk-M44RDTSG.js";
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-WACTP75S.js";
26
- import "../chunk-DN6JZRJI.js";
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 './TableLayer-CA18rzIJ.js';
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 */