@bendyline/squisq-react 2.12.34 → 2.12.36
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-IPTOV4W7.js → chunk-2MUOWKDD.js} +225 -104
- package/dist/{chunk-ZZ5ZY5JD.js → chunk-4T52YEO6.js} +1 -1
- package/dist/{chunk-MLONAXXN.js → chunk-BTQ6MFGI.js} +2 -2
- package/dist/{chunk-ARBI4PTE.js → chunk-CNUP52LX.js} +5 -3
- package/dist/{chunk-EQCHV3QH.js → chunk-HLL7ENG5.js} +5 -2
- package/dist/{chunk-755MBX5E.js → chunk-PQFZGOAN.js} +15 -6
- package/dist/{chunk-TCBV3WXF.js → chunk-QT2EVNNF.js} +1 -1
- package/dist/{chunk-GIRDBU3E.js → chunk-V22O3WRT.js} +1 -1
- package/dist/diagram-pictures/index.js +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +9 -5
- package/dist/index.js +171 -8
- package/dist/json-view/index.js +2 -2
- package/dist/layers/index.js +1 -1
- package/dist/markdown/index.js +1 -1
- package/dist/page/index.js +5 -5
- package/dist/player/index.d.ts +1 -1
- package/dist/player/index.js +6 -6
- package/dist/{player-Wc6Nd4p5.d.ts → player-CcdlXneC.d.ts} +200 -75
- package/dist/squisq-player.full.global.js +509 -508
- package/dist/squisq-player.global.js +97 -96
- package/dist/standalone-player-full.js +1 -1
- package/dist/standalone-source.js +1 -1
- package/package.json +2 -2
|
@@ -650,6 +650,7 @@ import {
|
|
|
650
650
|
import {
|
|
651
651
|
expandDocBlocks,
|
|
652
652
|
flattenRenderableBlocks as flattenRenderableBlocks2,
|
|
653
|
+
isAccessoryBlock,
|
|
653
654
|
isTemplateBlock,
|
|
654
655
|
resolvePersistentLayers,
|
|
655
656
|
VIEWPORT_PRESETS
|
|
@@ -812,8 +813,10 @@ function useDocPlayback(script, currentTime, options = {}) {
|
|
|
812
813
|
if (!script?.blocks) {
|
|
813
814
|
return [];
|
|
814
815
|
}
|
|
815
|
-
const
|
|
816
|
-
|
|
816
|
+
const needsFlattening = script.blocks.some(
|
|
817
|
+
(b) => b.children && b.children.length > 0 || isAccessoryBlock(b)
|
|
818
|
+
);
|
|
819
|
+
const flatBlocks = needsFlattening ? flattenRenderableBlocks2(script.blocks) : script.blocks;
|
|
817
820
|
const hasTemplates = flatBlocks.some(isTemplateBlock);
|
|
818
821
|
const resolvedTheme = theme ?? DEFAULT_THEME;
|
|
819
822
|
const persistentLayers = resolvePersistentLayers(
|
|
@@ -544,6 +544,12 @@ function TextLayer(props) {
|
|
|
544
544
|
if (hasIconMarker(props.layer.content.text ?? "")) return /* @__PURE__ */ jsx4(IconTextLayer, { ...props });
|
|
545
545
|
return /* @__PURE__ */ jsx4(PlainTextLayer, { ...props });
|
|
546
546
|
}
|
|
547
|
+
function keptScale(layer, fitScale) {
|
|
548
|
+
return layer.content.style.keepSize ? 1 : fitScale;
|
|
549
|
+
}
|
|
550
|
+
function fitTarget(layer, kind) {
|
|
551
|
+
return layer.content.style.keepSize ? void 0 : kind;
|
|
552
|
+
}
|
|
547
553
|
function escapeHtml(value) {
|
|
548
554
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
549
555
|
}
|
|
@@ -552,7 +558,8 @@ function iconRunsToHtml(text) {
|
|
|
552
558
|
(run) => run.type === "icon" ? `<i class="${iconClass(run.family, run.name)}" aria-hidden="true"></i>` : escapeHtml(run.text).replace(/\n/g, "<br>")
|
|
553
559
|
).join("");
|
|
554
560
|
}
|
|
555
|
-
function IconTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
561
|
+
function IconTextLayer({ layer, viewport, blockTime, textScale: fitScale = 1 }) {
|
|
562
|
+
const textScale = keptScale(layer, fitScale);
|
|
556
563
|
const { content, position, animation } = layer;
|
|
557
564
|
const { text, style } = content;
|
|
558
565
|
const rawX = resolveValue(position.x, viewport.width);
|
|
@@ -606,7 +613,7 @@ function IconTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
|
606
613
|
"div",
|
|
607
614
|
{
|
|
608
615
|
...{ xmlns: "http://www.w3.org/1999/xhtml" },
|
|
609
|
-
"data-squisq-text-fit": "html",
|
|
616
|
+
"data-squisq-text-fit": fitTarget(layer, "html"),
|
|
610
617
|
"data-squisq-base-font-size": style.fontSize,
|
|
611
618
|
style: boxStyle,
|
|
612
619
|
children: /* @__PURE__ */ jsx4(
|
|
@@ -629,7 +636,8 @@ function IconTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
|
629
636
|
}
|
|
630
637
|
);
|
|
631
638
|
}
|
|
632
|
-
function PlainTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
639
|
+
function PlainTextLayer({ layer, viewport, blockTime, textScale: fitScale = 1 }) {
|
|
640
|
+
const textScale = keptScale(layer, fitScale);
|
|
633
641
|
const defsId = defsIdFor(useId2(), layer.id);
|
|
634
642
|
const { content, position, animation } = layer;
|
|
635
643
|
const { text, style } = content;
|
|
@@ -771,7 +779,7 @@ function PlainTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
|
771
779
|
/* @__PURE__ */ jsx4(
|
|
772
780
|
"g",
|
|
773
781
|
{
|
|
774
|
-
"data-squisq-text-fit": "svg",
|
|
782
|
+
"data-squisq-text-fit": fitTarget(layer, "svg"),
|
|
775
783
|
"data-squisq-fit-width": fitWidth,
|
|
776
784
|
"data-squisq-fit-height": fitHeight,
|
|
777
785
|
style: {
|
|
@@ -813,7 +821,8 @@ function PlainTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
|
813
821
|
}
|
|
814
822
|
);
|
|
815
823
|
}
|
|
816
|
-
function RichTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
824
|
+
function RichTextLayer({ layer, viewport, blockTime, textScale: fitScale = 1 }) {
|
|
825
|
+
const textScale = keptScale(layer, fitScale);
|
|
817
826
|
const { content, position, animation } = layer;
|
|
818
827
|
const { html, style } = content;
|
|
819
828
|
const rawX = resolveValue(position.x, viewport.width);
|
|
@@ -881,7 +890,7 @@ function RichTextLayer({ layer, viewport, blockTime, textScale = 1 }) {
|
|
|
881
890
|
"div",
|
|
882
891
|
{
|
|
883
892
|
...{ xmlns: "http://www.w3.org/1999/xhtml" },
|
|
884
|
-
"data-squisq-text-fit": "html",
|
|
893
|
+
"data-squisq-text-fit": fitTarget(layer, "html"),
|
|
885
894
|
"data-squisq-base-font-size": style.fontSize,
|
|
886
895
|
style: boxStyle,
|
|
887
896
|
onPointerDown: stopEmbeddedTableEvent,
|
package/dist/hooks/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { S as SquisqRenderAPI, V as VideoPresentation$1,
|
|
2
|
-
export { B as BlockMarker,
|
|
1
|
+
import { D as DocPlayerFlashcardOptions, S as SquisqRenderAPI, P as PlaybackControlsProps, V as VideoPresentation$1, a as PipSize, b as PipShape, c as PipPosition } from './player-CcdlXneC.js';
|
|
2
|
+
export { B as BlockMarker, d as BlockRenderer, C as CaptionMode, e as CaptionOverlay, f as CaptionPosition, g as CaptionStyle, h as ControlsLayout, i as DisplayMode, j as DocControlsBottom, k as DocControlsOverlay, l as DocControlsSidebar, m as DocControlsSlideshow, n as DocPlayer, o as DocPlayerProps, p as DocPlayerWithSidebar, q as DocProgressBar, F as FlashcardAnswerEvent, r as FlashcardCardRef, s as FlashcardCompleteEvent, t as FlashcardControls, u as FlashcardFaceView, v as FlashcardFaceViewProps, w as FlashcardRateEvent, x as FlashcardRating, y as FlashcardView, z as FlashcardViewProps, I as InlineAudioPlayer, A as InlineAudioPlayerProps, E as InlineVideoPlayer, G as InlineVideoPlayerProps, M as MediaClipLayer, H as MediaClipLayerProps, J as PlaybackActions, K as PlaybackState, R as RenderAudioSegmentInfo, L as RenderBlockInfo, N as RenderCaptionInfo, O as RenderChapterInfo, Q as RenderVideoFrameSelector, T as SlideNavActions, U as SlideshowControlsProps, W as SlideshowPickerItem, X as SocialCaptionOverlay, Y as formatTime } from './player-CcdlXneC.js';
|
|
3
3
|
import { Theme, VideoPresentation, VideoPipSize, VideoPipShape, VideoPipPosition, MotionSpec, Doc, MediaProvider, ScheduledClip, 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';
|
|
6
6
|
import { C as CodeBlockCopyHandler } from './MarkdownRenderer-C63CQ9Ca.js';
|
|
7
7
|
export { a as CodeBlockCopyContext, M as MarkdownRenderer, b as MarkdownRendererProps } from './MarkdownRenderer-C63CQ9Ca.js';
|
|
8
|
-
export { FenceRendererContext, MermaidDiagram, MermaidDiagramProps, VideoEmbedFrame, VideoEmbedFrameProps, useFenceRenderers } from './markdown/index.js';
|
|
9
|
-
export { CanvasSection, CanvasSectionProps, ImageDisplayMode, LinearDocView, LinearDocViewProps, PageSectionView, PageSectionViewProps, PageViewContext, PageViewContextValue, PaginatedDocPage, PaginatedDocView, PaginatedDocViewProps, usePageView } from './page/index.js';
|
|
10
8
|
import * as react from 'react';
|
|
11
9
|
import { ReactNode, RefObject, CSSProperties } from 'react';
|
|
10
|
+
export { FenceRendererContext, MermaidDiagram, MermaidDiagramProps, VideoEmbedFrame, VideoEmbedFrameProps, useFenceRenderers } from './markdown/index.js';
|
|
11
|
+
export { CanvasSection, CanvasSectionProps, ImageDisplayMode, LinearDocView, LinearDocViewProps, PageSectionView, PageSectionViewProps, PageViewContext, PageViewContextValue, PaginatedDocPage, PaginatedDocView, PaginatedDocViewProps, usePageView } from './page/index.js';
|
|
12
12
|
import { AnimatedImageInfo } from '@bendyline/squisq/imageEdit';
|
|
13
13
|
export { ImageLayer, MapLayer, MermaidLayer, PathLayer, ShapeLayer, SvgLayer, TextLayer, TreeLayer } from './layers/index.js';
|
|
14
14
|
export { T as TableLayer, a as TableLayerContentRenderer, b as TableLayerContentRendererProps, V as VideoLayer } from './VideoLayer-Bg3TRIOb.js';
|
|
@@ -55,6 +55,8 @@ interface MountOptions {
|
|
|
55
55
|
/** Loop playback when the timeline ends (video mode only, default: false). */
|
|
56
56
|
loop?: boolean;
|
|
57
57
|
/** Dashboard-mode options (ignored by the other modes). */
|
|
58
|
+
/** Flashcards mode: where the cards come from, which kinds, and answer callbacks. */
|
|
59
|
+
flashcards?: DocPlayerFlashcardOptions;
|
|
58
60
|
dashboard?: {
|
|
59
61
|
/** Layout id or 'auto'. Overrides doc frontmatter. */
|
|
60
62
|
layout?: string;
|
|
@@ -145,6 +147,8 @@ interface SquisqPlayerHandle {
|
|
|
145
147
|
unmount(): void;
|
|
146
148
|
}
|
|
147
149
|
|
|
150
|
+
declare function DocControlsCompact({ state, actions, blockMarkers, expandedBlocks, getBlockTitle, }: PlaybackControlsProps): react.JSX.Element;
|
|
151
|
+
|
|
148
152
|
/** Browser-only, lazy official Mermaid renderer shared by page and slide views. */
|
|
149
153
|
|
|
150
154
|
/**
|
|
@@ -414,4 +418,4 @@ declare function useBuildNavigation(block: Block | null | undefined, enabled: bo
|
|
|
414
418
|
showAll: () => void;
|
|
415
419
|
};
|
|
416
420
|
|
|
417
|
-
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, type VideoDurationProbeOptions, VideoPresentation$1 as VideoPresentation, applyMediaLevel, decodeSvgImages, isLocalSvgUrl, mediaCropStyle, probeVideoDurations, recipeLevelAt, resolveDocPlayerAppearance, resolveVideoDurations, sanitizedSvgImageUrl, useAnimatedImage, useBuildNavigation, useCutTimeMap, useMediaClipDurations, useSanitizedSvgImage, useSkipCuts, useVideoDurations, withMermaidLabelWrapping };
|
|
421
|
+
export { AnimatedImageControls, type AnimatedImageControlsProps, type AnimatedImagePlayback, type AnimatedImageStatus, CodeBlockCopyHandler, DashboardView, type DashboardViewProps, DocControlsCompact, type DocPlayerAppearanceOverrides, DocPlayerFlashcardOptions, type MountOptions, PipPosition, PipShape, PipSize, PlaybackControlsProps, type ResolvedDocPlayerAppearance, type SanitizedSvgImageOptions, type SquisqPlayerHandle, SquisqRenderAPI, SvgIslandImage, type SvgIslandImageProps, type VideoDurationProbeOptions, VideoPresentation$1 as VideoPresentation, applyMediaLevel, decodeSvgImages, isLocalSvgUrl, mediaCropStyle, probeVideoDurations, recipeLevelAt, resolveDocPlayerAppearance, resolveVideoDurations, sanitizedSvgImageUrl, useAnimatedImage, useBuildNavigation, useCutTimeMap, useMediaClipDurations, useSanitizedSvgImage, useSkipCuts, useVideoDurations, withMermaidLabelWrapping };
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
FlashcardFaceView,
|
|
12
12
|
FlashcardView,
|
|
13
13
|
MediaClipLayer,
|
|
14
|
+
PlayPauseIcon,
|
|
14
15
|
SocialCaptionOverlay,
|
|
15
16
|
decodeSvgImages,
|
|
16
17
|
formatTime,
|
|
@@ -20,17 +21,17 @@ import {
|
|
|
20
21
|
useBuildNavigation,
|
|
21
22
|
useMediaClipDurations,
|
|
22
23
|
useVideoDurations
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2MUOWKDD.js";
|
|
24
25
|
import {
|
|
25
26
|
PaginatedDocView
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-V22O3WRT.js";
|
|
27
28
|
import {
|
|
28
29
|
CanvasSection,
|
|
29
30
|
LinearDocView,
|
|
30
31
|
PageSectionView,
|
|
31
32
|
PageViewContext,
|
|
32
33
|
usePageView
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-BTQ6MFGI.js";
|
|
34
35
|
import {
|
|
35
36
|
useModalDialog
|
|
36
37
|
} from "./chunk-JP457U6N.js";
|
|
@@ -41,11 +42,11 @@ import {
|
|
|
41
42
|
useMediaSchedule,
|
|
42
43
|
useScreenWakeLock,
|
|
43
44
|
useViewportOrientation
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-HLL7ENG5.js";
|
|
45
46
|
import {
|
|
46
47
|
JsonView,
|
|
47
48
|
createJsonFormFenceRenderer
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-4T52YEO6.js";
|
|
49
50
|
import {
|
|
50
51
|
useAutoSurface
|
|
51
52
|
} from "./chunk-TT6ENR6T.js";
|
|
@@ -59,10 +60,10 @@ import {
|
|
|
59
60
|
VideoEmbedFrame,
|
|
60
61
|
useAnimatedImage,
|
|
61
62
|
useFenceRenderers
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-CNUP52LX.js";
|
|
63
64
|
import {
|
|
64
65
|
BlockRenderer
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-QT2EVNNF.js";
|
|
66
67
|
import {
|
|
67
68
|
ImageLayer,
|
|
68
69
|
MapLayer,
|
|
@@ -76,7 +77,7 @@ import {
|
|
|
76
77
|
VideoLayer,
|
|
77
78
|
getAnimationStyle,
|
|
78
79
|
getTransitionClass
|
|
79
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-PQFZGOAN.js";
|
|
80
81
|
import {
|
|
81
82
|
MermaidDiagram,
|
|
82
83
|
applyMediaLevel,
|
|
@@ -97,6 +98,167 @@ import {
|
|
|
97
98
|
useSanitizedSvgImage,
|
|
98
99
|
withMermaidLabelWrapping
|
|
99
100
|
} from "./chunk-ZKMBIWAA.js";
|
|
101
|
+
|
|
102
|
+
// src/DocControlsCompact.tsx
|
|
103
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
104
|
+
var CONTROL_SIZE = "var(--squisq-player-control-size, 22px)";
|
|
105
|
+
var BUTTON = {
|
|
106
|
+
display: "inline-flex",
|
|
107
|
+
alignItems: "center",
|
|
108
|
+
justifyContent: "center",
|
|
109
|
+
flex: "none",
|
|
110
|
+
minWidth: CONTROL_SIZE,
|
|
111
|
+
height: CONTROL_SIZE,
|
|
112
|
+
padding: "0 3px",
|
|
113
|
+
border: "none",
|
|
114
|
+
borderRadius: 4,
|
|
115
|
+
background: "var(--squisq-player-button-bg, none)",
|
|
116
|
+
color: "inherit",
|
|
117
|
+
font: "inherit",
|
|
118
|
+
cursor: "pointer"
|
|
119
|
+
};
|
|
120
|
+
var PLAY = {
|
|
121
|
+
...BUTTON,
|
|
122
|
+
width: CONTROL_SIZE,
|
|
123
|
+
padding: 0,
|
|
124
|
+
borderRadius: "50%",
|
|
125
|
+
background: "var(--squisq-player-accent, #5b9bd5)",
|
|
126
|
+
color: "var(--squisq-player-on-accent, #fff)"
|
|
127
|
+
};
|
|
128
|
+
function Readout({ className, text, widest }) {
|
|
129
|
+
return /* @__PURE__ */ jsxs(
|
|
130
|
+
"span",
|
|
131
|
+
{
|
|
132
|
+
className,
|
|
133
|
+
style: {
|
|
134
|
+
display: "inline-grid",
|
|
135
|
+
flex: "none",
|
|
136
|
+
justifyItems: "center",
|
|
137
|
+
fontVariantNumeric: "tabular-nums",
|
|
138
|
+
whiteSpace: "nowrap"
|
|
139
|
+
},
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ jsx("span", { style: { gridArea: "1 / 1" }, children: text }),
|
|
142
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", style: { gridArea: "1 / 1", visibility: "hidden" }, children: widest })
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function DocControlsCompact({
|
|
148
|
+
state,
|
|
149
|
+
actions,
|
|
150
|
+
blockMarkers,
|
|
151
|
+
expandedBlocks,
|
|
152
|
+
getBlockTitle
|
|
153
|
+
}) {
|
|
154
|
+
const total = formatTime(state.totalDuration);
|
|
155
|
+
const buffering = state.isPlaying && state.isBuffering;
|
|
156
|
+
const captionTitle = state.captionMode === "off" ? "Captions: Off (click for Standard)" : state.captionMode === "standard" ? "Captions: Standard (click for Social)" : "Captions: Social (click to turn off)";
|
|
157
|
+
return /* @__PURE__ */ jsxs(
|
|
158
|
+
"div",
|
|
159
|
+
{
|
|
160
|
+
className: "doc-controls-compact",
|
|
161
|
+
role: "group",
|
|
162
|
+
"aria-label": "Playback controls",
|
|
163
|
+
"data-testid": "playback-controls-compact",
|
|
164
|
+
style: {
|
|
165
|
+
display: "flex",
|
|
166
|
+
alignItems: "center",
|
|
167
|
+
gap: 6,
|
|
168
|
+
minWidth: 0,
|
|
169
|
+
minHeight: 24,
|
|
170
|
+
fontSize: 12
|
|
171
|
+
},
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ jsx(
|
|
174
|
+
"button",
|
|
175
|
+
{
|
|
176
|
+
type: "button",
|
|
177
|
+
className: "doc-controls-compact__button doc-controls-compact__play",
|
|
178
|
+
onClick: actions.toggle,
|
|
179
|
+
"aria-label": state.isPlaying ? "Pause" : "Play",
|
|
180
|
+
"aria-busy": buffering ? true : void 0,
|
|
181
|
+
title: buffering ? "Loading audio\u2026" : state.isPlaying ? "Pause" : "Play",
|
|
182
|
+
style: PLAY,
|
|
183
|
+
children: /* @__PURE__ */ jsx(PlayPauseIcon, { isPlaying: state.isPlaying, isBuffering: state.isBuffering, size: 14 })
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ jsx(
|
|
187
|
+
"button",
|
|
188
|
+
{
|
|
189
|
+
type: "button",
|
|
190
|
+
className: "doc-controls-compact__button",
|
|
191
|
+
onClick: actions.restart,
|
|
192
|
+
"aria-label": "Restart from beginning",
|
|
193
|
+
title: "Restart",
|
|
194
|
+
style: BUTTON,
|
|
195
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "15", height: "15", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" }) })
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ jsx(
|
|
199
|
+
Readout,
|
|
200
|
+
{
|
|
201
|
+
className: "doc-controls-compact__time",
|
|
202
|
+
text: `${formatTime(state.currentTime)} / ${total}`,
|
|
203
|
+
widest: `${total} / ${total}`
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ jsx("div", { style: { flex: "1 1 auto", minWidth: 48, display: "flex", padding: "0 6px" }, children: /* @__PURE__ */ jsx(
|
|
207
|
+
DocProgressBar,
|
|
208
|
+
{
|
|
209
|
+
variant: "inline",
|
|
210
|
+
state,
|
|
211
|
+
actions,
|
|
212
|
+
blockMarkers,
|
|
213
|
+
expandedBlocks,
|
|
214
|
+
getBlockTitle
|
|
215
|
+
}
|
|
216
|
+
) }),
|
|
217
|
+
/* @__PURE__ */ jsx(
|
|
218
|
+
Readout,
|
|
219
|
+
{
|
|
220
|
+
className: "doc-controls-compact__counter",
|
|
221
|
+
text: `${state.currentBlockIndex + 1}/${state.totalBlocks}`,
|
|
222
|
+
widest: `${state.totalBlocks}/${state.totalBlocks}`
|
|
223
|
+
}
|
|
224
|
+
),
|
|
225
|
+
state.hasCaptions && /* @__PURE__ */ jsxs(
|
|
226
|
+
"button",
|
|
227
|
+
{
|
|
228
|
+
type: "button",
|
|
229
|
+
className: "doc-controls-compact__button",
|
|
230
|
+
onClick: () => actions.cycleCaptionMode(),
|
|
231
|
+
"aria-label": "Cycle caption style",
|
|
232
|
+
"aria-pressed": state.captionMode !== "off",
|
|
233
|
+
title: captionTitle,
|
|
234
|
+
style: { ...BUTTON, opacity: state.captionMode === "off" ? 0.6 : 1 },
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "16", height: "16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M19 4H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-4a1 1 0 011-1h3a1 1 0 011 1v1zm7 0h-1.5v-.5h-2v3h2V13H18v1a1 1 0 01-1 1h-3a1 1 0 01-1-1v-4a1 1 0 011-1h3a1 1 0 011 1v1z" }) }),
|
|
237
|
+
state.captionMode !== "off" && /* @__PURE__ */ jsx("span", { style: { marginLeft: 2, fontSize: 10, letterSpacing: "0.04em" }, children: state.captionMode === "standard" ? "CC" : "SM" })
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
),
|
|
241
|
+
actions.toggleFullscreen && /* @__PURE__ */ jsx(
|
|
242
|
+
"button",
|
|
243
|
+
{
|
|
244
|
+
type: "button",
|
|
245
|
+
className: "doc-controls-compact__button",
|
|
246
|
+
onClick: actions.toggleFullscreen,
|
|
247
|
+
"aria-label": state.isFullscreen ? "Exit fullscreen" : "Enter fullscreen",
|
|
248
|
+
title: state.isFullscreen ? "Exit fullscreen (F)" : "Fullscreen (F)",
|
|
249
|
+
style: BUTTON,
|
|
250
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: "16", height: "16", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
251
|
+
"path",
|
|
252
|
+
{
|
|
253
|
+
d: state.isFullscreen ? "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" : "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"
|
|
254
|
+
}
|
|
255
|
+
) })
|
|
256
|
+
}
|
|
257
|
+
)
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
}
|
|
100
262
|
export {
|
|
101
263
|
AnimatedImageControls,
|
|
102
264
|
BlockRenderer,
|
|
@@ -104,6 +266,7 @@ export {
|
|
|
104
266
|
CaptionOverlay,
|
|
105
267
|
DashboardView,
|
|
106
268
|
DocControlsBottom,
|
|
269
|
+
DocControlsCompact,
|
|
107
270
|
DocControlsOverlay,
|
|
108
271
|
DocControlsSidebar,
|
|
109
272
|
DocControlsSlideshow,
|
package/dist/json-view/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JsonView,
|
|
3
3
|
createJsonFormFenceRenderer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4T52YEO6.js";
|
|
5
5
|
import "../chunk-TT6ENR6T.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-CNUP52LX.js";
|
|
7
7
|
import "../chunk-FXAKS6KU.js";
|
|
8
8
|
import "../chunk-ZKMBIWAA.js";
|
|
9
9
|
export {
|
package/dist/layers/index.js
CHANGED
package/dist/markdown/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-V22O3WRT.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-BTQ6MFGI.js";
|
|
11
11
|
import "../chunk-TT6ENR6T.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-CNUP52LX.js";
|
|
13
|
+
import "../chunk-QT2EVNNF.js";
|
|
14
|
+
import "../chunk-PQFZGOAN.js";
|
|
15
15
|
import "../chunk-FXAKS6KU.js";
|
|
16
16
|
import "../chunk-ZKMBIWAA.js";
|
|
17
17
|
export {
|
package/dist/player/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BlockMarker,
|
|
1
|
+
export { B as BlockMarker, d as BlockRenderer, C as CaptionMode, e as CaptionOverlay, g as CaptionStyle, h as ControlsLayout, i as DisplayMode, j as DocControlsBottom, k as DocControlsOverlay, l as DocControlsSidebar, m as DocControlsSlideshow, n as DocPlayer, o as DocPlayerProps, p as DocPlayerWithSidebar, q as DocProgressBar, F as FlashcardAnswerEvent, r as FlashcardCardRef, s as FlashcardCompleteEvent, u as FlashcardFaceView, v as FlashcardFaceViewProps, w as FlashcardRateEvent, y as FlashcardView, z as FlashcardViewProps, I as InlineAudioPlayer, A as InlineAudioPlayerProps, E as InlineVideoPlayer, G as InlineVideoPlayerProps, M as MediaClipLayer, H as MediaClipLayerProps, c as PipPosition, b as PipShape, a as PipSize, J as PlaybackActions, K as PlaybackState, R as RenderAudioSegmentInfo, L as RenderBlockInfo, N as RenderCaptionInfo, O as RenderChapterInfo, T as SlideNavActions, X as SocialCaptionOverlay, S as SquisqRenderAPI, V as VideoPresentation, Y as formatTime } from '../player-CcdlXneC.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,18 +12,18 @@ import {
|
|
|
12
12
|
MediaClipLayer,
|
|
13
13
|
SocialCaptionOverlay,
|
|
14
14
|
formatTime
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-2MUOWKDD.js";
|
|
16
|
+
import "../chunk-BTQ6MFGI.js";
|
|
17
|
+
import "../chunk-HLL7ENG5.js";
|
|
18
18
|
import "../chunk-TT6ENR6T.js";
|
|
19
19
|
import {
|
|
20
20
|
InlineAudioPlayer,
|
|
21
21
|
InlineVideoPlayer
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-CNUP52LX.js";
|
|
23
23
|
import {
|
|
24
24
|
BlockRenderer
|
|
25
|
-
} from "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
} from "../chunk-QT2EVNNF.js";
|
|
26
|
+
import "../chunk-PQFZGOAN.js";
|
|
27
27
|
import "../chunk-FXAKS6KU.js";
|
|
28
28
|
import "../chunk-ZKMBIWAA.js";
|
|
29
29
|
export {
|