@bendyline/squisq-react 2.12.1 → 2.12.3
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-AA6NGEP7.js → chunk-3H6QBEYX.js} +1 -1
- package/dist/{chunk-UNZSCTBU.js → chunk-CZVZ6AXP.js} +1 -1
- package/dist/{chunk-Z7OW6RGR.js → chunk-EY3DUCK7.js} +1 -1
- package/dist/{chunk-HCKL2AFN.js → chunk-JP2VHB5H.js} +82 -10
- package/dist/{chunk-3RVUSY4V.js → chunk-LWB4AM3W.js} +81 -5
- package/dist/{chunk-XSSIHHDY.js → chunk-M7DM4NOX.js} +20 -5
- package/dist/{chunk-NZMF2G7M.js → chunk-MTVOORBB.js} +33 -10
- package/dist/{chunk-XQSZ55EQ.js → chunk-O2ZISYT3.js} +1 -1
- package/dist/{chunk-2K74UJ4T.js → chunk-PVRZGR5J.js} +5 -4
- package/dist/{chunk-T7NVETOH.js → chunk-YVQ7KEYI.js} +149 -77
- package/dist/diagram-pictures/index.d.ts +8 -2
- package/dist/diagram-pictures/index.js +26 -6
- package/dist/hooks/index.d.ts +9 -1
- package/dist/hooks/index.js +2 -2
- package/dist/index.d.ts +64 -5
- package/dist/index.js +23 -11
- package/dist/json-view/index.js +4 -4
- package/dist/layers/index.d.ts +21 -3
- package/dist/layers/index.js +5 -3
- package/dist/markdown/index.js +3 -3
- package/dist/page/index.js +7 -7
- package/dist/player/index.d.ts +1 -1
- package/dist/player/index.js +8 -8
- package/dist/{player-Dnka50W4.d.ts → player-Q28R0dKx.d.ts} +8 -1
- package/dist/squisq-player.full.global.js +393 -392
- package/dist/squisq-player.global.js +78 -77
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/dist/styles/index.css +16 -0
- package/package.json +2 -2
package/dist/hooks/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
useDocPlayback,
|
|
7
7
|
useMediaSchedule,
|
|
8
8
|
useViewportOrientation
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-3H6QBEYX.js";
|
|
10
10
|
import {
|
|
11
11
|
useAutoSurface
|
|
12
12
|
} from "../chunk-TT6ENR6T.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
useMediaProvider,
|
|
17
17
|
useMediaUrl,
|
|
18
18
|
useResourcePolicy
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-JP2VHB5H.js";
|
|
20
20
|
export {
|
|
21
21
|
MediaContext,
|
|
22
22
|
ResourcePolicyContext,
|
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-Q28R0dKx.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-Q28R0dKx.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';
|
|
@@ -8,9 +8,9 @@ export { a as CodeBlockCopyContext, M as MarkdownRenderer, b as MarkdownRenderer
|
|
|
8
8
|
export { FenceRendererContext, MermaidDiagram, MermaidDiagramProps, VideoEmbedFrame, VideoEmbedFrameProps, useFenceRenderers } from './markdown/index.js';
|
|
9
9
|
export { CanvasSection, CanvasSectionProps, ImageDisplayMode, LinearDocView, LinearDocViewProps, PageSectionView, PageSectionViewProps, PageViewContext, PageViewContextValue, PaginatedDocPage, PaginatedDocView, PaginatedDocViewProps, usePageView } from './page/index.js';
|
|
10
10
|
import * as react from 'react';
|
|
11
|
-
import { RefObject } from 'react';
|
|
11
|
+
import { ReactNode, RefObject } from 'react';
|
|
12
12
|
import { AnimatedImageInfo } from '@bendyline/squisq/imageEdit';
|
|
13
|
-
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, TextLayer, TreeLayer, VideoLayer } from './layers/index.js';
|
|
13
|
+
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, SvgLayer, TextLayer, TreeLayer, VideoLayer } from './layers/index.js';
|
|
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';
|
|
@@ -175,6 +175,65 @@ interface DashboardViewProps {
|
|
|
175
175
|
}
|
|
176
176
|
declare function DashboardView({ doc, theme, viewport, layout, showTitle, style, documentTitle, basePath, animationsEnabled, muted, renderMode, onRenderAPIReady, className, }: DashboardViewProps): react.JSX.Element;
|
|
177
177
|
|
|
178
|
+
interface SvgIslandImageProps {
|
|
179
|
+
/** The fence body. */
|
|
180
|
+
source: string;
|
|
181
|
+
/** Rendered instead (with a short notice) when the source is not an island. */
|
|
182
|
+
fallback?: ReactNode;
|
|
183
|
+
/** Draw a still — no animation inside the island. Default: reduced motion. */
|
|
184
|
+
isStatic?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The color `currentColor` resolves to. Default: the computed text color
|
|
187
|
+
* where the picture renders.
|
|
188
|
+
*/
|
|
189
|
+
color?: string;
|
|
190
|
+
className?: string;
|
|
191
|
+
}
|
|
192
|
+
declare function SvgIslandImage({ source, fallback, isStatic, color, className, }: SvgIslandImageProps): react.JSX.Element;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* An attached SVG image (``) shown the way an SVG island is:
|
|
196
|
+
* its bytes run through core's sanitizer, and only core's re-serialization —
|
|
197
|
+
* sized from its viewBox, scripts and external references removed — reaches
|
|
198
|
+
* the page, as a `data:` URL.
|
|
199
|
+
*
|
|
200
|
+
* Only local sources are read: `blob:` and `data:` URLs (a media provider's
|
|
201
|
+
* output) and same-origin paths. A remote SVG keeps its own URL — an image of
|
|
202
|
+
* it already runs no script, and exports never carry remote images.
|
|
203
|
+
*/
|
|
204
|
+
/** Whether `url` can be read without a cross-origin request. */
|
|
205
|
+
declare function isLocalSvgUrl(url: string): boolean;
|
|
206
|
+
interface SanitizedSvgImageOptions {
|
|
207
|
+
/** Draw a still: no SMIL or CSS animation (frame capture). */
|
|
208
|
+
static?: boolean;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Core's sanitized `data:` URL for the SVG at a local `url`, or `''` when it
|
|
212
|
+
* cannot be read or is not a usable SVG. Never rejects. Results are cached by
|
|
213
|
+
* URL — a media provider mints a new blob URL when a file changes.
|
|
214
|
+
*/
|
|
215
|
+
declare function sanitizedSvgImageUrl(url: string, options?: SanitizedSvgImageOptions): Promise<string>;
|
|
216
|
+
/**
|
|
217
|
+
* For an SVG image at a local `url`: core's sanitized data URL of it, `null`
|
|
218
|
+
* when the file is not a usable SVG, `undefined` while it is being read.
|
|
219
|
+
* Any other `url` (not SVG, remote, empty) comes back as is.
|
|
220
|
+
*
|
|
221
|
+
* @param url - The resolved URL (a provider's blob/data URL, or a path).
|
|
222
|
+
* @param isSvg - Whether the image it names is SVG (see `isSvgImageSource`).
|
|
223
|
+
*/
|
|
224
|
+
declare function useSanitizedSvgImage(url: string, isSvg: boolean, options?: SanitizedSvgImageOptions): string | null | undefined;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Wait for the pictures an SVG `<image>` shows to decode.
|
|
228
|
+
*
|
|
229
|
+
* Capture readiness checks have always awaited HTML `<img>` elements; an SVG
|
|
230
|
+
* `<image>` — an SVG island on a slide, an image layer in contain/fill mode —
|
|
231
|
+
* has no `decode()` of its own. Decoding the same URL through a detached
|
|
232
|
+
* `Image` warms the cache the `<image>` paints from. Only `data:` and `blob:`
|
|
233
|
+
* URLs are decoded, so this never starts a network request.
|
|
234
|
+
*/
|
|
235
|
+
declare function decodeSvgImages(root: ParentNode): Promise<void>;
|
|
236
|
+
|
|
178
237
|
type AnimatedImageStatus = 'playing' | 'paused' | 'ended';
|
|
179
238
|
interface AnimatedImagePlayback {
|
|
180
239
|
/** Inspection result: null while pending, for sources that cannot animate,
|
|
@@ -266,4 +325,4 @@ declare function useBuildNavigation(block: Block | null | undefined, enabled: bo
|
|
|
266
325
|
showAll: () => void;
|
|
267
326
|
};
|
|
268
327
|
|
|
269
|
-
export { AnimatedImageControls, type AnimatedImageControlsProps, type AnimatedImagePlayback, type AnimatedImageStatus, CodeBlockCopyHandler, DashboardView, type DashboardViewProps, type DocPlayerAppearanceOverrides, type MountOptions, PipPosition, PipShape, PipSize, type ResolvedDocPlayerAppearance, type SquisqPlayerHandle, SquisqRenderAPI, VideoPresentation$1 as VideoPresentation, resolveDocPlayerAppearance, useAnimatedImage, useBuildNavigation, useMediaClipDurations };
|
|
328
|
+
export { AnimatedImageControls, type AnimatedImageControlsProps, type AnimatedImagePlayback, type AnimatedImageStatus, CodeBlockCopyHandler, DashboardView, type DashboardViewProps, type DocPlayerAppearanceOverrides, type MountOptions, PipPosition, PipShape, PipSize, type ResolvedDocPlayerAppearance, type SanitizedSvgImageOptions, type SquisqPlayerHandle, SquisqRenderAPI, SvgIslandImage, type SvgIslandImageProps, VideoPresentation$1 as VideoPresentation, decodeSvgImages, isLocalSvgUrl, resolveDocPlayerAppearance, sanitizedSvgImageUrl, useAnimatedImage, useBuildNavigation, useMediaClipDurations, useSanitizedSvgImage };
|
package/dist/index.js
CHANGED
|
@@ -12,21 +12,22 @@ import {
|
|
|
12
12
|
FlashcardView,
|
|
13
13
|
MediaClipLayer,
|
|
14
14
|
SocialCaptionOverlay,
|
|
15
|
+
decodeSvgImages,
|
|
15
16
|
formatTime,
|
|
16
17
|
resolveDocPlayerAppearance,
|
|
17
18
|
useBuildNavigation,
|
|
18
19
|
useMediaClipDurations
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MTVOORBB.js";
|
|
20
21
|
import {
|
|
21
22
|
PaginatedDocView
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CZVZ6AXP.js";
|
|
23
24
|
import {
|
|
24
25
|
CanvasSection,
|
|
25
26
|
LinearDocView,
|
|
26
27
|
PageSectionView,
|
|
27
28
|
PageViewContext,
|
|
28
29
|
usePageView
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-PVRZGR5J.js";
|
|
30
31
|
import {
|
|
31
32
|
useModalDialog
|
|
32
33
|
} from "./chunk-JP457U6N.js";
|
|
@@ -35,11 +36,11 @@ import {
|
|
|
35
36
|
useDocPlayback,
|
|
36
37
|
useMediaSchedule,
|
|
37
38
|
useViewportOrientation
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-3H6QBEYX.js";
|
|
39
40
|
import {
|
|
40
41
|
JsonView,
|
|
41
42
|
createJsonFormFenceRenderer
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-O2ZISYT3.js";
|
|
43
44
|
import {
|
|
44
45
|
useAutoSurface
|
|
45
46
|
} from "./chunk-TT6ENR6T.js";
|
|
@@ -49,36 +50,41 @@ import {
|
|
|
49
50
|
InlineAudioPlayer,
|
|
50
51
|
InlineVideoPlayer,
|
|
51
52
|
MarkdownRenderer,
|
|
53
|
+
SvgIslandImage,
|
|
52
54
|
VideoEmbedFrame,
|
|
53
55
|
useAnimatedImage,
|
|
54
56
|
useFenceRenderers
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YVQ7KEYI.js";
|
|
56
58
|
import {
|
|
57
59
|
BlockRenderer
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-M7DM4NOX.js";
|
|
59
61
|
import {
|
|
60
62
|
ImageLayer,
|
|
61
63
|
MapLayer,
|
|
62
64
|
MermaidLayer,
|
|
63
65
|
PathLayer,
|
|
64
66
|
ShapeLayer,
|
|
67
|
+
SvgLayer,
|
|
65
68
|
TableLayer,
|
|
66
69
|
TextLayer,
|
|
67
70
|
TreeLayer,
|
|
68
71
|
VideoLayer,
|
|
69
72
|
getAnimationStyle,
|
|
70
73
|
getTransitionClass
|
|
71
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-LWB4AM3W.js";
|
|
72
75
|
import {
|
|
73
76
|
MermaidDiagram
|
|
74
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-EY3DUCK7.js";
|
|
75
78
|
import {
|
|
76
79
|
MediaContext,
|
|
77
80
|
ResourcePolicyContext,
|
|
81
|
+
isLocalSvgUrl,
|
|
82
|
+
sanitizedSvgImageUrl,
|
|
78
83
|
useMediaProvider,
|
|
79
84
|
useMediaUrl,
|
|
80
|
-
useResourcePolicy
|
|
81
|
-
|
|
85
|
+
useResourcePolicy,
|
|
86
|
+
useSanitizedSvgImage
|
|
87
|
+
} from "./chunk-JP2VHB5H.js";
|
|
82
88
|
export {
|
|
83
89
|
AnimatedImageControls,
|
|
84
90
|
BlockRenderer,
|
|
@@ -113,16 +119,21 @@ export {
|
|
|
113
119
|
ResourcePolicyContext,
|
|
114
120
|
ShapeLayer,
|
|
115
121
|
SocialCaptionOverlay,
|
|
122
|
+
SvgIslandImage,
|
|
123
|
+
SvgLayer,
|
|
116
124
|
TableLayer,
|
|
117
125
|
TextLayer,
|
|
118
126
|
TreeLayer,
|
|
119
127
|
VideoEmbedFrame,
|
|
120
128
|
VideoLayer,
|
|
121
129
|
createJsonFormFenceRenderer,
|
|
130
|
+
decodeSvgImages,
|
|
122
131
|
formatTime,
|
|
123
132
|
getAnimationStyle,
|
|
124
133
|
getTransitionClass,
|
|
134
|
+
isLocalSvgUrl,
|
|
125
135
|
resolveDocPlayerAppearance,
|
|
136
|
+
sanitizedSvgImageUrl,
|
|
126
137
|
useAnimatedImage,
|
|
127
138
|
useAudioSync,
|
|
128
139
|
useAutoSurface,
|
|
@@ -136,5 +147,6 @@ export {
|
|
|
136
147
|
useModalDialog,
|
|
137
148
|
usePageView,
|
|
138
149
|
useResourcePolicy,
|
|
150
|
+
useSanitizedSvgImage,
|
|
139
151
|
useViewportOrientation
|
|
140
152
|
};
|
package/dist/json-view/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JsonView,
|
|
3
3
|
createJsonFormFenceRenderer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-O2ZISYT3.js";
|
|
5
5
|
import "../chunk-TT6ENR6T.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-YVQ7KEYI.js";
|
|
7
|
+
import "../chunk-EY3DUCK7.js";
|
|
8
|
+
import "../chunk-JP2VHB5H.js";
|
|
9
9
|
export {
|
|
10
10
|
JsonView,
|
|
11
11
|
createJsonFormFenceRenderer
|
package/dist/layers/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 } from '@bendyline/squisq/schemas';
|
|
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
3
|
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps } from '../TableLayer-CA18rzIJ.js';
|
|
4
4
|
|
|
5
5
|
interface ImageLayerProps {
|
|
@@ -15,8 +15,10 @@ interface ImageLayerProps {
|
|
|
15
15
|
blockTime: number;
|
|
16
16
|
/** Whether authored and responsive image motion should run. */
|
|
17
17
|
animationsEnabled?: boolean;
|
|
18
|
+
/** Draw an SVG image as a still (no animation inside it), for capture. */
|
|
19
|
+
isStatic?: boolean;
|
|
18
20
|
}
|
|
19
|
-
declare function ImageLayer({ layer, basePath, viewport, blockTime, animationsEnabled, }: ImageLayerProps): react.JSX.Element;
|
|
21
|
+
declare function ImageLayer({ layer, basePath, viewport, blockTime, animationsEnabled, isStatic, }: ImageLayerProps): react.JSX.Element;
|
|
20
22
|
|
|
21
23
|
interface TextLayerProps {
|
|
22
24
|
layer: TextLayer$1;
|
|
@@ -114,4 +116,20 @@ interface MermaidLayerProps {
|
|
|
114
116
|
/** Mermaid diagram hosted in HTML inside the slide SVG. */
|
|
115
117
|
declare function MermaidLayer({ layer, viewport, blockTime, theme }: MermaidLayerProps): react.JSX.Element;
|
|
116
118
|
|
|
117
|
-
|
|
119
|
+
interface SvgLayerProps {
|
|
120
|
+
layer: SvgLayer$1;
|
|
121
|
+
viewport: {
|
|
122
|
+
width: number;
|
|
123
|
+
height: number;
|
|
124
|
+
};
|
|
125
|
+
blockTime: number;
|
|
126
|
+
/**
|
|
127
|
+
* Draw a still: no SMIL or CSS animation inside the island. Set for frame
|
|
128
|
+
* capture (wall-clock animation would make frames nondeterministic),
|
|
129
|
+
* reduced motion, and disabled animations.
|
|
130
|
+
*/
|
|
131
|
+
isStatic?: boolean;
|
|
132
|
+
}
|
|
133
|
+
declare function SvgLayer({ layer, viewport, blockTime, isStatic }: SvgLayerProps): react.JSX.Element;
|
|
134
|
+
|
|
135
|
+
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, SvgLayer, TextLayer, TreeLayer, VideoLayer };
|
package/dist/layers/index.js
CHANGED
|
@@ -4,19 +4,21 @@ import {
|
|
|
4
4
|
MermaidLayer,
|
|
5
5
|
PathLayer,
|
|
6
6
|
ShapeLayer,
|
|
7
|
+
SvgLayer,
|
|
7
8
|
TableLayer,
|
|
8
9
|
TextLayer,
|
|
9
10
|
TreeLayer,
|
|
10
11
|
VideoLayer
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-LWB4AM3W.js";
|
|
13
|
+
import "../chunk-EY3DUCK7.js";
|
|
14
|
+
import "../chunk-JP2VHB5H.js";
|
|
14
15
|
export {
|
|
15
16
|
ImageLayer,
|
|
16
17
|
MapLayer,
|
|
17
18
|
MermaidLayer,
|
|
18
19
|
PathLayer,
|
|
19
20
|
ShapeLayer,
|
|
21
|
+
SvgLayer,
|
|
20
22
|
TableLayer,
|
|
21
23
|
TextLayer,
|
|
22
24
|
TreeLayer,
|
package/dist/markdown/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
MarkdownRenderer,
|
|
4
4
|
VideoEmbedFrame,
|
|
5
5
|
useFenceRenderers
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-YVQ7KEYI.js";
|
|
7
7
|
import {
|
|
8
8
|
MermaidDiagram
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-EY3DUCK7.js";
|
|
10
|
+
import "../chunk-JP2VHB5H.js";
|
|
11
11
|
export {
|
|
12
12
|
FenceRendererContext,
|
|
13
13
|
MarkdownRenderer,
|
package/dist/page/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PaginatedDocView
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-CZVZ6AXP.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-PVRZGR5J.js";
|
|
11
11
|
import "../chunk-TT6ENR6T.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-YVQ7KEYI.js";
|
|
13
|
+
import "../chunk-M7DM4NOX.js";
|
|
14
|
+
import "../chunk-LWB4AM3W.js";
|
|
15
|
+
import "../chunk-EY3DUCK7.js";
|
|
16
|
+
import "../chunk-JP2VHB5H.js";
|
|
17
17
|
export {
|
|
18
18
|
CanvasSection,
|
|
19
19
|
LinearDocView,
|
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-Q28R0dKx.js';
|
|
2
2
|
export { a as CodeBlockCopyContext, C as CodeBlockCopyHandler } from '../MarkdownRenderer-C63CQ9Ca.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@bendyline/squisq/schemas';
|
package/dist/player/index.js
CHANGED
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
MediaClipLayer,
|
|
13
13
|
SocialCaptionOverlay,
|
|
14
14
|
formatTime
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-MTVOORBB.js";
|
|
16
|
+
import "../chunk-PVRZGR5J.js";
|
|
17
|
+
import "../chunk-3H6QBEYX.js";
|
|
18
18
|
import "../chunk-TT6ENR6T.js";
|
|
19
19
|
import {
|
|
20
20
|
InlineAudioPlayer,
|
|
21
21
|
InlineVideoPlayer
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-YVQ7KEYI.js";
|
|
23
23
|
import {
|
|
24
24
|
BlockRenderer
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-M7DM4NOX.js";
|
|
26
|
+
import "../chunk-LWB4AM3W.js";
|
|
27
|
+
import "../chunk-EY3DUCK7.js";
|
|
28
|
+
import "../chunk-JP2VHB5H.js";
|
|
29
29
|
export {
|
|
30
30
|
BlockRenderer,
|
|
31
31
|
CaptionOverlay,
|
|
@@ -389,8 +389,15 @@ interface BlockRendererProps {
|
|
|
389
389
|
* `placeholder` poster with no remote thumbnail, for frame capture.
|
|
390
390
|
*/
|
|
391
391
|
videoEmbeds?: VideoEmbedMode;
|
|
392
|
+
/**
|
|
393
|
+
* Draw media that animates on its own wall clock — SVG islands' SMIL and
|
|
394
|
+
* CSS animation — as a still. Set for frame capture, where such motion
|
|
395
|
+
* would make frames nondeterministic. Reduced motion and
|
|
396
|
+
* `animationsEnabled={false}` imply it.
|
|
397
|
+
*/
|
|
398
|
+
staticMedia?: boolean;
|
|
392
399
|
}
|
|
393
|
-
declare function BlockRenderer({ block, buildPlayback, respectReducedMotion, blockTime, basePath, isEntering, isExiting, transition, viewport, isPlaying, muted, animationsEnabled, theme, tableContentRenderer, growTextToFit, videoEmbeds, }: BlockRendererProps): react.JSX.Element;
|
|
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;
|
|
394
401
|
|
|
395
402
|
interface CaptionOverlayProps {
|
|
396
403
|
/** Caption track with timestamped phrases */
|