@bendyline/squisq-editor-react 2.11.16 → 2.11.18

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.
Files changed (30) hide show
  1. package/dist/{chunk-ZDWZRVAY.js → chunk-2XXBDECJ.js} +1 -1
  2. package/dist/{chunk-DNB32SU2.js → chunk-45NQUR62.js} +1105 -130
  3. package/dist/{chunk-34FRFDQ6.js → chunk-CGENKHWY.js} +58 -102
  4. package/dist/chunk-DNEVUOBZ.js +14 -0
  5. package/dist/chunk-DNJ6HOES.js +93 -0
  6. package/dist/{chunk-EN5BYZOE.js → chunk-DPAMJV6A.js} +3 -2
  7. package/dist/{chunk-5TYCTE33.js → chunk-GIXXD2O3.js} +2189 -1834
  8. package/dist/{chunk-ENDRPV6T.js → chunk-H7YTL6SL.js} +1 -1
  9. package/dist/chunk-LRZJD5YD.js +107 -0
  10. package/dist/{chunk-4D7QMRTZ.js → chunk-U6NVT3BY.js} +466 -540
  11. package/dist/{chunk-WDQFWD7Z.js → chunk-UBFNLWCN.js} +2 -2
  12. package/dist/{chunk-27WOOJXR.js → chunk-WKZLBGPX.js} +1 -1
  13. package/dist/dictationSession-PN3OT5LJ.js +521 -0
  14. package/dist/index.d.ts +36 -21
  15. package/dist/index.js +54 -22
  16. package/dist/json-editor/index.js +3 -3
  17. package/dist/recorder/index.d.ts +2 -2
  18. package/dist/recorder/index.js +17 -13
  19. package/dist/{recorder-C6ArYQBa.d.ts → recorder-CRsw0eC7.d.ts} +6 -5
  20. package/dist/review/index.js +3 -2
  21. package/dist/shell/index.d.ts +2 -1
  22. package/dist/shell/index.js +10 -7
  23. package/dist/{shell-X0EoQbbN.d.ts → shell-Cb0P_ln8.d.ts} +170 -5
  24. package/dist/speech/index.d.ts +126 -0
  25. package/dist/speech/index.js +10 -0
  26. package/dist/styles/index.css +162 -29
  27. package/dist/teleprompter/index.d.ts +13 -5
  28. package/dist/teleprompter/index.js +3 -2
  29. package/dist/{useNarrationStage-DopDr_P5.d.ts → useNarrationStage-vKtk6H-V.d.ts} +7 -1
  30. package/package.json +10 -6
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TeleprompterView
3
- } from "../chunk-ENDRPV6T.js";
3
+ } from "../chunk-H7YTL6SL.js";
4
4
  import {
5
5
  DEFAULT_TELEPROMPTER_PREFS,
6
6
  EYE_LINE_FRACTION,
@@ -31,7 +31,8 @@ import {
31
31
  useNarrationStage,
32
32
  useTeleprompter,
33
33
  vadConfigForSensitivity
34
- } from "../chunk-34FRFDQ6.js";
34
+ } from "../chunk-CGENKHWY.js";
35
+ import "../chunk-DNJ6HOES.js";
35
36
  export {
36
37
  DEFAULT_TELEPROMPTER_PREFS,
37
38
  EYE_LINE_FRACTION,
@@ -285,6 +285,8 @@ interface MicAnalysisHandle {
285
285
  sampleRate: number | null;
286
286
  /** Known audio inputs (labels appear after the first grant). */
287
287
  devices: MediaDeviceInfo[];
288
+ /** The host owns stream/device selection; analysis must never stop its tracks. */
289
+ sourceManaged?: boolean;
288
290
  /**
289
291
  * Start (or restart) capture. Resolves with the live stream — callers
290
292
  * that need it immediately must use the return value, not the `stream`
@@ -296,7 +298,7 @@ interface MicAnalysisHandle {
296
298
  /** Subscribe to PCM hops; returns an unsubscribe. */
297
299
  subscribeHop: (listener: PcmHopListener) => () => void;
298
300
  }
299
- declare function useMicAnalysis(constraints?: MediaTrackConstraints): MicAnalysisHandle;
301
+ declare function useMicAnalysis(constraints?: MediaTrackConstraints, externalStream?: MediaStream | null): MicAnalysisHandle;
300
302
 
301
303
  /**
302
304
  * Shared types for the Narrate (teleprompter) display mode.
@@ -393,6 +395,8 @@ declare function vadConfigForSensitivity(sensitivity: number): Partial<VadConfig
393
395
  declare function useTeleprompter(opts: {
394
396
  doc: Doc | null;
395
397
  micConstraints?: MediaTrackConstraints;
398
+ /** Borrow capture audio instead of opening another microphone; null waits for capture. */
399
+ analysisStream?: MediaStream | null;
396
400
  }): TeleprompterController;
397
401
 
398
402
  /**
@@ -570,6 +574,8 @@ interface UseNarrationStageOptions {
570
574
  getAudioBasename?: () => string | undefined;
571
575
  /** Microphone constraints shared by voice analysis and audio recording. */
572
576
  micConstraints?: MediaTrackConstraints;
577
+ /** Optional borrowed capture stream for a prompter-only stage; null means no stream yet. */
578
+ analysisStream?: MediaStream | null;
573
579
  /** Constraints for the optional narration camera lane. */
574
580
  cameraConstraints?: MediaTrackConstraints;
575
581
  /** Combined narration audio/camera soft stop threshold, in bytes. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq-editor-react",
3
- "version": "2.11.16",
3
+ "version": "2.11.18",
4
4
  "description": "React editor shell with raw/WYSIWYG/preview modes for Squisq documents",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -76,6 +76,10 @@
76
76
  "types": "./dist/review/index.d.ts",
77
77
  "import": "./dist/review/index.js"
78
78
  },
79
+ "./speech": {
80
+ "types": "./dist/speech/index.d.ts",
81
+ "import": "./dist/speech/index.js"
82
+ },
79
83
  "./styles": {
80
84
  "types": "./dist/styles/index.d.ts",
81
85
  "default": "./dist/styles/index.css"
@@ -98,12 +102,12 @@
98
102
  }
99
103
  },
100
104
  "dependencies": {
101
- "@bendyline/squisq": "2.11.13",
105
+ "@bendyline/squisq": "2.11.15",
102
106
  "@bendyline/squisq-calc": "2.11.1",
103
- "@bendyline/squisq-formats": "2.6.13",
104
- "@bendyline/squisq-grid-react": "2.11.14",
105
- "@bendyline/squisq-react": "2.11.15",
106
- "@bendyline/squisq-video-react": "2.4.19",
107
+ "@bendyline/squisq-formats": "2.6.15",
108
+ "@bendyline/squisq-grid-react": "2.11.16",
109
+ "@bendyline/squisq-react": "2.11.17",
110
+ "@bendyline/squisq-video-react": "2.4.21",
107
111
  "@fortawesome/fontawesome-free": "7.2.0",
108
112
  "@tiptap/core": "2.27.3",
109
113
  "@tiptap/extension-heading": "2.27.3",