@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/README.md
CHANGED
|
@@ -45,7 +45,10 @@ Both components also accept `colorScheme="light" | "dark"` so their portaled
|
|
|
45
45
|
modal can match the host application; the default remains `light`. Hosts with
|
|
46
46
|
their own theme tokens can pass `uiPalette?: Partial<VideoExportPalette>` to
|
|
47
47
|
override dialog surfaces, controls, status colors, and the shared primary color
|
|
48
|
-
used by the export action and progress bar.
|
|
48
|
+
used by the export action and progress bar. By default the completed action is
|
|
49
|
+
labelled **Save MP4/GIF to Downloads** and uses the browser download directory.
|
|
50
|
+
Hosts with a native or File System Access picker can provide `saveOutput` and
|
|
51
|
+
`saveActionLabel` to offer a **Save … as...** flow instead.
|
|
49
52
|
|
|
50
53
|
### Full Export Modal
|
|
51
54
|
|
|
@@ -91,7 +94,7 @@ The `VideoExportModal` lets users configure:
|
|
|
91
94
|
|
|
92
95
|
- **Format:** MP4 video or animated GIF
|
|
93
96
|
- **Quality:** draft, normal, or high
|
|
94
|
-
- **FPS:** 10, 15, 24, or 30
|
|
97
|
+
- **FPS:** 10, 15, 24, or 30; MP4 defaults to 30 fps and GIF to 10 fps
|
|
95
98
|
- **Orientation:** MP4 defaults to 1920x1080/1080x1920; GIF defaults to 960x540/540x960
|
|
96
99
|
- **Captions:** off, standard, or social
|
|
97
100
|
- **Animations & transitions:** enabled by default for MP4 and disabled by default for GIF
|
|
@@ -112,6 +115,7 @@ function CustomExport({ doc, images, audio }) {
|
|
|
112
115
|
elapsed,
|
|
113
116
|
estimatedRemaining,
|
|
114
117
|
downloadUrl,
|
|
118
|
+
outputBlob, // completed Blob for host-provided save flows
|
|
115
119
|
fileSize,
|
|
116
120
|
audioIncluded, // whether an audio track was muxed in
|
|
117
121
|
audioSkippedReason, // null when the doc had no audio; a string explains a shortfall
|