sera-ai 1.0.10 → 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.js +0 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5045,22 +5045,6 @@ var AudioDictation = ({
|
|
|
5045
5045
|
startDictating();
|
|
5046
5046
|
}
|
|
5047
5047
|
};
|
|
5048
|
-
React3__namespace.useEffect(() => {
|
|
5049
|
-
const handleKeyDown = (e) => {
|
|
5050
|
-
if (e.code === "Space" && !e.repeat && !isProcessing) {
|
|
5051
|
-
e.preventDefault();
|
|
5052
|
-
if (isDictating) {
|
|
5053
|
-
stopDictating();
|
|
5054
|
-
} else {
|
|
5055
|
-
startDictating();
|
|
5056
|
-
}
|
|
5057
|
-
}
|
|
5058
|
-
};
|
|
5059
|
-
document.addEventListener("keydown", handleKeyDown);
|
|
5060
|
-
return () => {
|
|
5061
|
-
document.removeEventListener("keydown", handleKeyDown);
|
|
5062
|
-
};
|
|
5063
|
-
}, [isDictating, isProcessing, startDictating, stopDictating]);
|
|
5064
5048
|
const getButtonContent = () => {
|
|
5065
5049
|
if (isProcessing) {
|
|
5066
5050
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "h-5 w-5 animate-spin" }) });
|