@bendyline/squisq-video-react 2.2.9 → 2.2.11
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/README.md +6 -2
- package/dist/{chunk-NX34XGLL.js → chunk-F2XUI32B.js} +646 -98
- package/dist/{chunk-MEPETH5V.js → chunk-I4SXMCDF.js} +78 -3
- package/dist/{chunk-2XACUF6E.js → chunk-KJ5RKG67.js} +186 -84
- package/dist/{chunk-SO656KT7.js → chunk-KW5BBYKP.js} +48 -17
- package/dist/components/index.d.ts +12 -4
- package/dist/components/index.js +4 -4
- package/dist/encoder/index.d.ts +1 -1
- package/dist/encoder/index.js +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/{mainThreadEncoder-BgcFyYvO.d.ts → mainThreadEncoder-CiVsL1Bf.d.ts} +2 -0
- package/dist/{useVideoExport-DKpdXZ0o.d.ts → useVideoExport-CM5XiM6Z.d.ts} +3 -1
- package/dist/workers/encode.worker.js +1 -1
- package/package.json +4 -4
package/dist/hooks/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
resolveVideoExportCover,
|
|
4
4
|
useFrameCapture,
|
|
5
5
|
useVideoExport
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-F2XUI32B.js";
|
|
7
|
+
import "../chunk-KJ5RKG67.js";
|
|
8
|
+
import "../chunk-I4SXMCDF.js";
|
|
9
9
|
export {
|
|
10
10
|
DEFAULT_VIDEO_COVER_PRE_ROLL_SECONDS,
|
|
11
11
|
resolveVideoExportCover,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { VideoExportButton, VideoExportButtonProps, VideoExportModal, VideoExportModalProps, VideoExportPalette } from './components/index.js';
|
|
2
|
-
export { D as DEFAULT_VIDEO_COVER_PRE_ROLL_SECONDS, R as ResolvedVideoExportCover, U as UseVideoExportOptions, V as VideoAudioPolicy, a as VideoExportConfig, b as VideoExportFramePreview, c as VideoExportResult, d as VideoExportState, e as VideoOutputFormat, r as resolveVideoExportCover, u as useVideoExport } from './useVideoExport-
|
|
2
|
+
export { D as DEFAULT_VIDEO_COVER_PRE_ROLL_SECONDS, R as ResolvedVideoExportCover, U as UseVideoExportOptions, V as VideoAudioPolicy, a as VideoExportConfig, b as VideoExportFramePreview, c as VideoExportResult, d as VideoExportState, e as VideoOutputFormat, r as resolveVideoExportCover, u as useVideoExport } from './useVideoExport-CM5XiM6Z.js';
|
|
3
3
|
export { FrameCaptureHandle, FrameCaptureOptions, FrameCaptureRenderOptions, useFrameCapture } from './hooks/index.js';
|
|
4
|
-
export { E as EncoderConfig, a as EncoderFrameSource, M as MainThreadEncoder, c as createEncoder, s as supportsWebCodecs, b as supportsWebCodecsH264 } from './mainThreadEncoder-
|
|
4
|
+
export { E as EncoderConfig, a as EncoderFrameSource, M as MainThreadEncoder, c as createEncoder, s as supportsWebCodecs, b as supportsWebCodecsH264 } from './mainThreadEncoder-CiVsL1Bf.js';
|
|
5
5
|
export { FfmpegWasmLoadConfig } from '@bendyline/squisq-video';
|
|
6
6
|
export { supportsWebCodecsAac } from './encoder/index.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VideoExportButton,
|
|
3
3
|
VideoExportModal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KW5BBYKP.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_VIDEO_COVER_PRE_ROLL_SECONDS,
|
|
7
7
|
resolveVideoExportCover,
|
|
8
8
|
useFrameCapture,
|
|
9
9
|
useVideoExport
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F2XUI32B.js";
|
|
11
11
|
import {
|
|
12
12
|
createEncoder,
|
|
13
13
|
supportsWebCodecs,
|
|
14
14
|
supportsWebCodecsAac,
|
|
15
15
|
supportsWebCodecsH264
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-KJ5RKG67.js";
|
|
17
|
+
import "./chunk-I4SXMCDF.js";
|
|
18
18
|
export {
|
|
19
19
|
DEFAULT_VIDEO_COVER_PRE_ROLL_SECONDS,
|
|
20
20
|
VideoExportButton,
|
|
@@ -44,6 +44,8 @@ interface MainThreadEncoder {
|
|
|
44
44
|
addAudioChunk?(chunk: EncodedAudioChunk, meta?: EncodedAudioChunkMetadata): void;
|
|
45
45
|
/** Flush pending frames and finalize the MP4. Returns the MP4 ArrayBuffer. */
|
|
46
46
|
finalize(): Promise<ArrayBuffer>;
|
|
47
|
+
/** Finalize directly into a Blob, avoiding a second full-file allocation. */
|
|
48
|
+
finalizeBlob?(): Promise<Blob>;
|
|
47
49
|
/** Close the encoder without producing output (e.g., on cancel). */
|
|
48
50
|
close(): void;
|
|
49
51
|
}
|
|
@@ -2,7 +2,7 @@ import { MediaProvider, Theme, VideoPresentation, VideoPipSize, VideoPipShape, V
|
|
|
2
2
|
import { ResourcePolicy } from '@bendyline/squisq/markdown';
|
|
3
3
|
import { VideoQuality, VideoOrientation, FfmpegWasmLoadConfig } from '@bendyline/squisq-video';
|
|
4
4
|
import { CaptionMode } from '@bendyline/squisq-react';
|
|
5
|
-
import { a as EncoderFrameSource } from './mainThreadEncoder-
|
|
5
|
+
import { a as EncoderFrameSource } from './mainThreadEncoder-CiVsL1Bf.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* useVideoExport — Main orchestration hook for browser video export.
|
|
@@ -108,6 +108,8 @@ interface VideoExportResult {
|
|
|
108
108
|
backend: 'webcodecs' | 'ffmpeg-wasm' | null;
|
|
109
109
|
/** Blob download URL (populated when state === 'complete') */
|
|
110
110
|
downloadUrl: string | null;
|
|
111
|
+
/** Completed output Blob for host-provided save flows. */
|
|
112
|
+
outputBlob: Blob | null;
|
|
111
113
|
/** File size in bytes (populated when state === 'complete') */
|
|
112
114
|
fileSize: number;
|
|
113
115
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/squisq-video-react",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.11",
|
|
4
4
|
"description": "React components for browser-based MP4 and animated-GIF export of Squisq documents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bendyline",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@bendyline/squisq": "2.4.
|
|
69
|
-
"@bendyline/squisq-video": "2.2.
|
|
70
|
-
"@bendyline/squisq-react": "2.4.
|
|
68
|
+
"@bendyline/squisq": "2.4.4",
|
|
69
|
+
"@bendyline/squisq-video": "2.2.8",
|
|
70
|
+
"@bendyline/squisq-react": "2.4.7",
|
|
71
71
|
"@ffmpeg/core": "0.12.9",
|
|
72
72
|
"@ffmpeg/ffmpeg": "0.12.15",
|
|
73
73
|
"@ffmpeg/util": "0.12.2",
|