@bendyline/squisq-react 2.11.11 → 2.11.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/{chunk-X4I6Y3OP.js → chunk-7T26IKW2.js} +1 -1
- package/dist/{chunk-CLP3VWJ2.js → chunk-P3FJ3YKS.js} +6 -4
- package/dist/{chunk-HERX7GUP.js → chunk-QWUQNB4E.js} +32 -9
- package/dist/{chunk-3SKOLZUA.js → chunk-U2FIZWAL.js} +11 -1
- package/dist/{chunk-W6MKRWL6.js → chunk-WHVSQ42V.js} +193 -116
- package/dist/hooks/index.d.ts +6 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.js +5 -5
- package/dist/layers/index.js +1 -1
- package/dist/page/index.js +3 -3
- package/dist/player/index.d.ts +1 -1
- package/dist/player/index.js +4 -4
- package/dist/{player-DOdWRK4X.d.ts → player-BCPc3Tv3.d.ts} +7 -1
- package/dist/squisq-player.full.global.js +441 -441
- package/dist/squisq-player.global.js +71 -71
- package/dist/standalone-source.js +1 -1
- package/dist/styles/index.css +216 -0
- package/package.json +2 -2
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { RefObject } from 'react';
|
|
3
|
-
import { AudioTrack, ScheduledClip, Theme, Doc, Block, MediaProvider, SurfaceScheme } from '@bendyline/squisq/schemas';
|
|
3
|
+
import { AudioTrack, ScheduledClip, Theme, MotionSpec, Doc, Block, MediaProvider, SurfaceScheme } from '@bendyline/squisq/schemas';
|
|
4
4
|
import { a as AudioController } from '../AudioController-DwMsPe38.js';
|
|
5
5
|
export { A as AudioActions, b as AudioState } from '../AudioController-DwMsPe38.js';
|
|
6
6
|
import { ViewportConfig, ViewportOrientation } from '@bendyline/squisq/doc';
|
|
@@ -135,6 +135,11 @@ interface UseDocPlaybackOptions {
|
|
|
135
135
|
* jumps crossfade from what the viewer actually saw.
|
|
136
136
|
*/
|
|
137
137
|
deterministicTransitions?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Motion profile override. Omitted → the doc's own `motion` / frontmatter
|
|
140
|
+
* `squisq-motion`, then the theme's `renderStyle.motionProfile`, then `calm`.
|
|
141
|
+
*/
|
|
142
|
+
motion?: MotionSpec | null;
|
|
138
143
|
}
|
|
139
144
|
declare function useDocPlayback(script: Doc | null, currentTime: number, options?: UseDocPlaybackOptions): PlaybackState & PlaybackActions;
|
|
140
145
|
|
package/dist/hooks/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
import { Theme, VideoPresentation, VideoPipSize, VideoPipShape, VideoPipPosition, Doc, ScheduledClip, MediaProvider } from '@bendyline/squisq/schemas';
|
|
1
|
+
import { S as SquisqRenderAPI, V as VideoPresentation$1, P as PipSize, a as PipShape, b as PipPosition } from './player-BCPc3Tv3.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-BCPc3Tv3.js';
|
|
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';
|
|
6
6
|
import { C as CodeBlockCopyHandler } from './MarkdownRenderer-CC9dOc6b.js';
|
|
@@ -112,6 +112,11 @@ interface MountOptions {
|
|
|
112
112
|
height: number;
|
|
113
113
|
name?: string;
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Motion profile override (`calm` | `documentary` | `vibrant`, or a spec
|
|
117
|
+
* with overrides). Omitted → the doc's own setting, then the theme's.
|
|
118
|
+
*/
|
|
119
|
+
motion?: MotionSpec | null;
|
|
115
120
|
/**
|
|
116
121
|
* Whether to render slide transitions and per-layer animations (default: true).
|
|
117
122
|
* Timed media continues to play when disabled.
|
package/dist/index.js
CHANGED
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
formatTime,
|
|
16
16
|
resolveDocPlayerAppearance,
|
|
17
17
|
useMediaClipDurations
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QWUQNB4E.js";
|
|
19
19
|
import {
|
|
20
20
|
PaginatedDocView
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7T26IKW2.js";
|
|
22
22
|
import {
|
|
23
23
|
BlockRenderer,
|
|
24
24
|
CanvasSection,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
PageSectionView,
|
|
27
27
|
PageViewContext,
|
|
28
28
|
usePageView
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-P3FJ3YKS.js";
|
|
30
30
|
import {
|
|
31
31
|
ImageLayer,
|
|
32
32
|
MapLayer,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
VideoLayer,
|
|
40
40
|
getAnimationStyle,
|
|
41
41
|
getTransitionClass
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WHVSQ42V.js";
|
|
43
43
|
import {
|
|
44
44
|
useModalDialog
|
|
45
45
|
} from "./chunk-65POMKHR.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
useDocPlayback,
|
|
49
49
|
useMediaSchedule,
|
|
50
50
|
useViewportOrientation
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-U2FIZWAL.js";
|
|
52
52
|
import {
|
|
53
53
|
JsonView,
|
|
54
54
|
createJsonFormFenceRenderer
|
package/dist/layers/index.js
CHANGED
package/dist/page/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PaginatedDocView
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7T26IKW2.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-P3FJ3YKS.js";
|
|
11
|
+
import "../chunk-WHVSQ42V.js";
|
|
12
12
|
import "../chunk-TT6ENR6T.js";
|
|
13
13
|
import "../chunk-6PUMLLJH.js";
|
|
14
14
|
import "../chunk-WLUZTUNZ.js";
|
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, 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-BCPc3Tv3.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,12 +12,12 @@ import {
|
|
|
12
12
|
MediaClipLayer,
|
|
13
13
|
SocialCaptionOverlay,
|
|
14
14
|
formatTime
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-QWUQNB4E.js";
|
|
16
16
|
import {
|
|
17
17
|
BlockRenderer
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-P3FJ3YKS.js";
|
|
19
|
+
import "../chunk-WHVSQ42V.js";
|
|
20
|
+
import "../chunk-U2FIZWAL.js";
|
|
21
21
|
import "../chunk-TT6ENR6T.js";
|
|
22
22
|
import {
|
|
23
23
|
InlineAudioPlayer,
|
|
@@ -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, MediaScheduleOptions, 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, MotionSpec, 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';
|
|
@@ -260,6 +260,12 @@ interface DocPlayerProps {
|
|
|
260
260
|
onBlockMarkers?: (markers: BlockMarker[]) => void;
|
|
261
261
|
forceViewport?: ViewportConfig;
|
|
262
262
|
theme?: Theme;
|
|
263
|
+
/**
|
|
264
|
+
* Motion profile override (`calm` | `documentary` | `vibrant`, or a spec
|
|
265
|
+
* with overrides). Omitted → the doc's `motion` / frontmatter
|
|
266
|
+
* `squisq-motion`, then the theme's `renderStyle.motionProfile`, then `calm`.
|
|
267
|
+
*/
|
|
268
|
+
motion?: MotionSpec | null;
|
|
263
269
|
surface?: SurfaceScheme | 'auto';
|
|
264
270
|
/** Video, slideshow, page, dashboard, or flashcards rendition. */
|
|
265
271
|
displayMode?: DisplayMode;
|