@bendyline/squisq-react 2.10.1 → 2.11.0
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-NNJLSQPW.js → chunk-VKXOZTYP.js} +2 -5
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/player/index.js +1 -1
- package/dist/squisq-player.full.global.js +342 -342
- package/dist/squisq-player.global.js +59 -59
- package/dist/standalone-source.js +1 -1
- package/package.json +2 -2
|
@@ -2904,10 +2904,7 @@ function DocPlayerContent({
|
|
|
2904
2904
|
const [isSlideshowPickerOpen, setIsSlideshowPickerOpen] = useState6(false);
|
|
2905
2905
|
const slideshowCoverInitKeyRef = useRef7("");
|
|
2906
2906
|
useEffect7(() => {
|
|
2907
|
-
|
|
2908
|
-
}, [doc]);
|
|
2909
|
-
useEffect7(() => {
|
|
2910
|
-
const initKey = `${isSlideshowMode}:${hasManagedCover}:${renderMode}`;
|
|
2907
|
+
const initKey = `${doc.articleId}:${isSlideshowMode}:${hasManagedCover}:${renderMode}`;
|
|
2911
2908
|
if (slideshowCoverInitKeyRef.current === initKey) return;
|
|
2912
2909
|
slideshowCoverInitKeyRef.current = initKey;
|
|
2913
2910
|
if (isSlideshowMode && hasManagedCover && !renderMode) {
|
|
@@ -2916,7 +2913,7 @@ function DocPlayerContent({
|
|
|
2916
2913
|
} else {
|
|
2917
2914
|
setSlideshowCoverVisible(false);
|
|
2918
2915
|
}
|
|
2919
|
-
}, [isSlideshowMode, hasManagedCover, renderMode, pause]);
|
|
2916
|
+
}, [doc.articleId, isSlideshowMode, hasManagedCover, renderMode, pause]);
|
|
2920
2917
|
const [coverForced, setCoverForced] = useState6(false);
|
|
2921
2918
|
const [coverGraceActive, setCoverGraceActive] = useState6(false);
|
|
2922
2919
|
const coverGraceTimer = useRef7();
|
package/dist/index.d.ts
CHANGED
|
@@ -43,11 +43,14 @@ import '@bendyline/squisq/jsonForm';
|
|
|
43
43
|
|
|
44
44
|
interface MountOptions {
|
|
45
45
|
/**
|
|
46
|
-
* Rendering mode: 'slideshow' (interactive, default), '
|
|
46
|
+
* Rendering mode: 'slideshow' (interactive, default), 'video' (timed
|
|
47
|
+
* auto-advance playback with scrubber — the movie mode), 'static'
|
|
47
48
|
* (scrollable page), 'dashboard' (one canvas of arranged blocks), or
|
|
48
49
|
* 'flashcards' (progressively revealed study deck).
|
|
49
50
|
*/
|
|
50
|
-
mode?: 'slideshow' | 'static' | 'dashboard' | 'flashcards';
|
|
51
|
+
mode?: 'slideshow' | 'video' | 'static' | 'dashboard' | 'flashcards';
|
|
52
|
+
/** Loop playback when the timeline ends (video mode only, default: false). */
|
|
53
|
+
loop?: boolean;
|
|
51
54
|
/** Dashboard-mode options (ignored by the other modes). */
|
|
52
55
|
dashboard?: {
|
|
53
56
|
/** Layout id or 'auto'. Overrides doc frontmatter. */
|
package/dist/index.js
CHANGED