sera-ai 1.0.9 → 1.0.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/dist/index.d.mts CHANGED
@@ -7,6 +7,7 @@ interface AudioRecorderProps {
7
7
  patientId?: number;
8
8
  patientName?: string;
9
9
  patientHistory?: string;
10
+ selectedFormat?: "json" | "hl7" | "fhir";
10
11
  onTranscriptionUpdate?: (text: string, sessionId: string) => void;
11
12
  onTranscriptionComplete?: (text: string, classification: ClassificationInfoResponse, sessionId: string) => void;
12
13
  onSuccess?: (data: any) => void;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ interface AudioRecorderProps {
7
7
  patientId?: number;
8
8
  patientName?: string;
9
9
  patientHistory?: string;
10
+ selectedFormat?: "json" | "hl7" | "fhir";
10
11
  onTranscriptionUpdate?: (text: string, sessionId: string) => void;
11
12
  onTranscriptionComplete?: (text: string, classification: ClassificationInfoResponse, sessionId: string) => void;
12
13
  onSuccess?: (data: any) => void;
package/dist/index.js CHANGED
@@ -4366,6 +4366,7 @@ var AudioRecorder = ({
4366
4366
  patientId,
4367
4367
  patientName,
4368
4368
  patientHistory,
4369
+ selectedFormat = "json",
4369
4370
  onTranscriptionUpdate,
4370
4371
  onTranscriptionComplete,
4371
4372
  onSuccess,
@@ -4401,6 +4402,7 @@ var AudioRecorder = ({
4401
4402
  patientName,
4402
4403
  patientId,
4403
4404
  patientHistory,
4405
+ selectedFormat,
4404
4406
  onTranscriptionUpdate: (text, sessionId) => {
4405
4407
  console.log("onTranscriptionUpdate called with text:", text, "sessionId:", sessionId);
4406
4408
  if (text.length > 0) {
@@ -5043,22 +5045,6 @@ var AudioDictation = ({
5043
5045
  startDictating();
5044
5046
  }
5045
5047
  };
5046
- React3__namespace.useEffect(() => {
5047
- const handleKeyDown = (e) => {
5048
- if (e.code === "Space" && !e.repeat && !isProcessing) {
5049
- e.preventDefault();
5050
- if (isDictating) {
5051
- stopDictating();
5052
- } else {
5053
- startDictating();
5054
- }
5055
- }
5056
- };
5057
- document.addEventListener("keydown", handleKeyDown);
5058
- return () => {
5059
- document.removeEventListener("keydown", handleKeyDown);
5060
- };
5061
- }, [isDictating, isProcessing, startDictating, stopDictating]);
5062
5048
  const getButtonContent = () => {
5063
5049
  if (isProcessing) {
5064
5050
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "h-5 w-5 animate-spin" }) });