@bendyline/squisq-editor-react 2.11.3 → 2.11.5

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.
@@ -110,6 +110,12 @@ interface RecorderCameraLane {
110
110
  extension: string | null;
111
111
  }
112
112
  interface UseMediaRecorderOptions {
113
+ /**
114
+ * Combined byte threshold for automatically stopping every capture lane.
115
+ * Defaults to 90 MiB. Browser chunk delivery can be delayed, so the final
116
+ * blobs may exceed this threshold; all bytes are retained for recovery.
117
+ */
118
+ maxRecordingBytes?: number;
113
119
  /** Which capture pipeline to use (default: `'mic'`). */
114
120
  source?: RecorderSource;
115
121
  /**
@@ -171,6 +177,12 @@ interface UseMediaRecorderOptions {
171
177
  includeMicrophone?: boolean;
172
178
  }
173
179
  interface UseMediaRecorderResult {
180
+ /** Bytes received across all capture lanes, including the final flush. */
181
+ recordedBytes: number;
182
+ /** Effective byte threshold for this recorder. */
183
+ maxRecordingBytes: number;
184
+ /** Whether the recorder automatically stopped after reaching its byte threshold. */
185
+ limitReached: boolean;
174
186
  /** Current recorder state. */
175
187
  state: RecorderState;
176
188
  /** `MediaStream` acquired by `request()`; live during preview/recording and
@@ -492,6 +504,8 @@ interface UseNarrationRecorderOptions {
492
504
  audioRecorderOptions?: NarrationMediaRecorderOptions;
493
505
  /** MediaRecorder hints for the camera companion file. */
494
506
  cameraRecorderOptions?: NarrationMediaRecorderOptions;
507
+ /** Combined audio/camera soft stop threshold; defaults to 90 MiB. Final chunks are retained. */
508
+ maxRecordingBytes?: number;
495
509
  /** Fired when capture actually starts (View starts the prompter). */
496
510
  onRecordingStart?: () => void;
497
511
  onRecordingStop?: () => void;
@@ -499,6 +513,9 @@ interface UseNarrationRecorderOptions {
499
513
  interface NarrationRecorderController {
500
514
  state: NarrationRecorderState;
501
515
  error: Error | null;
516
+ recordedBytes: number;
517
+ maxRecordingBytes: number;
518
+ limitReached: boolean;
502
519
  withCamera: boolean;
503
520
  setWithCamera: (on: boolean) => void;
504
521
  /** Live camera stream for the self-view while recording. */
@@ -546,6 +563,8 @@ interface UseNarrationStageOptions {
546
563
  micConstraints?: MediaTrackConstraints;
547
564
  /** Constraints for the optional narration camera lane. */
548
565
  cameraConstraints?: MediaTrackConstraints;
566
+ /** Combined narration audio/camera soft stop threshold, in bytes. */
567
+ maxRecordingBytes?: number;
549
568
  /** MediaRecorder hints for the narration audio file. */
550
569
  audioRecorderOptions?: NarrationMediaRecorderOptions;
551
570
  /** MediaRecorder hints for the optional narration camera file. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq-editor-react",
3
- "version": "2.11.3",
3
+ "version": "2.11.5",
4
4
  "description": "React editor shell with raw/WYSIWYG/preview modes for Squisq documents",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -72,6 +72,10 @@
72
72
  "types": "./dist/proofing/index.d.ts",
73
73
  "import": "./dist/proofing/index.js"
74
74
  },
75
+ "./review": {
76
+ "types": "./dist/review/index.d.ts",
77
+ "import": "./dist/review/index.js"
78
+ },
75
79
  "./styles": {
76
80
  "types": "./dist/styles/index.d.ts",
77
81
  "default": "./dist/styles/index.css"
@@ -94,12 +98,12 @@
94
98
  }
95
99
  },
96
100
  "dependencies": {
97
- "@bendyline/squisq": "2.11.3",
101
+ "@bendyline/squisq": "2.11.5",
98
102
  "@bendyline/squisq-calc": "2.11.0",
99
- "@bendyline/squisq-formats": "2.6.3",
100
- "@bendyline/squisq-grid-react": "2.11.4",
101
- "@bendyline/squisq-react": "2.11.3",
102
- "@bendyline/squisq-video-react": "2.4.7",
103
+ "@bendyline/squisq-formats": "2.6.5",
104
+ "@bendyline/squisq-grid-react": "2.11.6",
105
+ "@bendyline/squisq-react": "2.11.5",
106
+ "@bendyline/squisq-video-react": "2.4.9",
103
107
  "@fortawesome/fontawesome-free": "7.2.0",
104
108
  "@tiptap/core": "2.27.2",
105
109
  "@tiptap/extension-heading": "2.27.2",