sera-ai 1.0.17 → 1.0.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.
package/dist/index.d.mts CHANGED
@@ -13,6 +13,7 @@ interface AudioRecorderProps {
13
13
  onSuccess?: (data: any) => void;
14
14
  onError?: (error: string) => void;
15
15
  className?: string;
16
+ visualizerClassName?: string;
16
17
  style?: React.CSSProperties;
17
18
  }
18
19
  interface APIResponse<T = any> {
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ interface AudioRecorderProps {
13
13
  onSuccess?: (data: any) => void;
14
14
  onError?: (error: string) => void;
15
15
  className?: string;
16
+ visualizerClassName?: string;
16
17
  style?: React.CSSProperties;
17
18
  }
18
19
  interface APIResponse<T = any> {
package/dist/index.js CHANGED
@@ -3872,8 +3872,9 @@ function createParticle(isIdle, x, y, intensity = 1) {
3872
3872
  function AudioVisualizerImproved({
3873
3873
  mediaStream,
3874
3874
  isRecording,
3875
- forceLight = true
3875
+ forceLight = true,
3876
3876
  // Default to light theme for login page
3877
+ className
3877
3878
  }) {
3878
3879
  const canvasRef = React3__namespace.useRef(null);
3879
3880
  const animationFrameRef = React3__namespace.useRef(0);
@@ -4241,7 +4242,7 @@ function AudioVisualizerImproved({
4241
4242
  }
4242
4243
  };
4243
4244
  }, [mediaStream, isRecording, isDarkMode]);
4244
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full flex justify-center items-center overflow-visible", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 w-full", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full aspect-square max-w-lg mx-auto relative", children: [
4245
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `w-full flex justify-center items-center overflow-visible ${className || ""}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 w-full h-full", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full h-full mx-auto relative", children: [
4245
4246
  /* @__PURE__ */ jsxRuntime.jsx(
4246
4247
  "div",
4247
4248
  {
@@ -4386,6 +4387,7 @@ var AudioRecorder = ({
4386
4387
  onSuccess,
4387
4388
  onError,
4388
4389
  className = "",
4390
+ visualizerClassName = "",
4389
4391
  style
4390
4392
  }) => {
4391
4393
  React3__namespace.useEffect(() => {
@@ -4552,12 +4554,13 @@ var AudioRecorder = ({
4552
4554
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block text-xs text-blue-600 dark:text-blue-400 mt-1", children: "Please wait while we process your recording" })
4553
4555
  ] })
4554
4556
  ] }),
4555
- isRecording && !isPaused && mediaStreamRef.current && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full max-w-lg mx-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
4557
+ isRecording && !isPaused && mediaStreamRef.current && /* @__PURE__ */ jsxRuntime.jsx("div", { className: `w-full ${visualizerClassName || "max-w-lg"} mx-auto`, children: /* @__PURE__ */ jsxRuntime.jsx(
4556
4558
  AudioVisualizerImproved,
4557
4559
  {
4558
4560
  mediaStream: mediaStreamRef.current,
4559
4561
  isRecording: isRecording && !isPaused,
4560
- forceLight: false
4562
+ forceLight: false,
4563
+ className: visualizerClassName
4561
4564
  }
4562
4565
  ) }),
4563
4566
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: isProcessing ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center space-x-2 bg-teal-600 hover:bg-teal-700 text-white py-2 px-4 rounded-full", children: [