@bendyline/squisq-video-react 2.5.5 → 2.5.6

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.
@@ -166,6 +166,7 @@ function VideoExportModal({
166
166
  uiPalette,
167
167
  saveOutput,
168
168
  saveActionLabel,
169
+ saveOptions,
169
170
  onClose
170
171
  }) {
171
172
  const overlayRef = useRef(null);
@@ -649,6 +650,7 @@ function VideoExportModal({
649
650
  "Video only",
650
651
  audioSkippedReason ? ` \u2014 ${audioSkippedReason}` : ""
651
652
  ] }),
653
+ saveOptions && /* @__PURE__ */ jsx("fieldset", { disabled: saving, style: { border: 0, padding: 0, margin: "12px 0 0" }, children: saveOptions }),
652
654
  /* @__PURE__ */ jsxs("div", { style: footerStyle, children: [
653
655
  /* @__PURE__ */ jsx("button", { style: themedSecondaryButtonStyle, onClick: handleClose, children: "Close" }),
654
656
  /* @__PURE__ */ jsx(
@@ -1,4 +1,5 @@
1
1
  import * as react from 'react';
2
+ import { ReactNode } from 'react';
2
3
  import { Doc, MediaProvider } from '@bendyline/squisq/schemas';
3
4
  import { e as MediaEditRenderManager } from '../mediaEditRenderManager-W_o6RRhT.js';
4
5
  import { b as VideoExportConfig, f as VideoOutputFormat } from '../useVideoExport-DsNDpjmO.js';
@@ -47,6 +48,8 @@ interface VideoExportModalProps {
47
48
  saveOutput?: (blob: Blob, filename: string) => boolean | void | Promise<boolean | void>;
48
49
  /** Host-aware label for the completed export action. */
49
50
  saveActionLabel?: (format: VideoOutputFormat) => string;
51
+ /** Host controls above the completed export’s Save button; disabled during saving. */
52
+ saveOptions?: ReactNode;
50
53
  /** Called when the modal should close */
51
54
  onClose: () => void;
52
55
  }
@@ -66,7 +69,7 @@ interface VideoExportPalette {
66
69
  success: string;
67
70
  danger: string;
68
71
  }
69
- declare function VideoExportModal({ doc, playerScript, mediaProvider, images, audio, mediaEditRenders, defaultConfig, colorScheme, uiPalette, saveOutput, saveActionLabel, onClose, }: VideoExportModalProps): react.JSX.Element;
72
+ declare function VideoExportModal({ doc, playerScript, mediaProvider, images, audio, mediaEditRenders, defaultConfig, colorScheme, uiPalette, saveOutput, saveActionLabel, saveOptions, onClose, }: VideoExportModalProps): react.JSX.Element;
70
73
 
71
74
  interface VideoExportButtonProps {
72
75
  /** The document to export */
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  VideoExportButton,
3
3
  VideoExportModal
4
- } from "../chunk-7XM7QOF3.js";
4
+ } from "../chunk-2MBRKTDE.js";
5
5
  import {
6
6
  CoverImageExportModal,
7
7
  coverImageFilename,
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  VideoExportButton,
3
3
  VideoExportModal
4
- } from "./chunk-7XM7QOF3.js";
4
+ } from "./chunk-2MBRKTDE.js";
5
5
  import {
6
6
  CoverImageExportModal,
7
7
  coverImageFilename,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq-video-react",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "React components for browser-based MP4 and animated-GIF export of Squisq documents",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",