react-voice-to-speech 1.0.1 → 1.0.3
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.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -430,7 +430,7 @@ var useDetectVoiceSupport = () => {
|
|
|
430
430
|
};
|
|
431
431
|
|
|
432
432
|
// src/BasicVoiceToSpeechButton.tsx
|
|
433
|
-
var BasicVoiceToSpeechButton = ({
|
|
433
|
+
var BasicVoiceToSpeechButton = ({ language = "en", onDataReady, className, id, style, children, labels }) => {
|
|
434
434
|
const [isOpen, setIsOpen] = _react.useState.call(void 0, false);
|
|
435
435
|
const isSupported = useDetectVoiceSupport();
|
|
436
436
|
const handleData = (data) => {
|
|
@@ -460,7 +460,7 @@ var BasicVoiceToSpeechButton = ({ lang = "en", onDataReady, className, id, style
|
|
|
460
460
|
), isOpen && /* @__PURE__ */ _react2.default.createElement(
|
|
461
461
|
OverlayVoiceToSpeech,
|
|
462
462
|
{
|
|
463
|
-
language
|
|
463
|
+
language,
|
|
464
464
|
labels,
|
|
465
465
|
onDataReady: handleData,
|
|
466
466
|
onClose: () => setIsOpen(false)
|
package/dist/index.d.cts
CHANGED
|
@@ -36,7 +36,7 @@ interface OverlayProps {
|
|
|
36
36
|
declare const OverlayVoiceToSpeechWithPunctuation: React.FC<OverlayProps>;
|
|
37
37
|
|
|
38
38
|
interface VoiceSearchButtonProps {
|
|
39
|
-
|
|
39
|
+
language?: string;
|
|
40
40
|
onDataReady: (data: VoiceResult) => void;
|
|
41
41
|
className?: string;
|
|
42
42
|
id?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ interface OverlayProps {
|
|
|
36
36
|
declare const OverlayVoiceToSpeechWithPunctuation: React.FC<OverlayProps>;
|
|
37
37
|
|
|
38
38
|
interface VoiceSearchButtonProps {
|
|
39
|
-
|
|
39
|
+
language?: string;
|
|
40
40
|
onDataReady: (data: VoiceResult) => void;
|
|
41
41
|
className?: string;
|
|
42
42
|
id?: string;
|
package/dist/index.js
CHANGED
|
@@ -430,7 +430,7 @@ var useDetectVoiceSupport = () => {
|
|
|
430
430
|
};
|
|
431
431
|
|
|
432
432
|
// src/BasicVoiceToSpeechButton.tsx
|
|
433
|
-
var BasicVoiceToSpeechButton = ({
|
|
433
|
+
var BasicVoiceToSpeechButton = ({ language = "en", onDataReady, className, id, style, children, labels }) => {
|
|
434
434
|
const [isOpen, setIsOpen] = useState4(false);
|
|
435
435
|
const isSupported = useDetectVoiceSupport();
|
|
436
436
|
const handleData = (data) => {
|
|
@@ -460,7 +460,7 @@ var BasicVoiceToSpeechButton = ({ lang = "en", onDataReady, className, id, style
|
|
|
460
460
|
), isOpen && /* @__PURE__ */ React3.createElement(
|
|
461
461
|
OverlayVoiceToSpeech,
|
|
462
462
|
{
|
|
463
|
-
language
|
|
463
|
+
language,
|
|
464
464
|
labels,
|
|
465
465
|
onDataReady: handleData,
|
|
466
466
|
onClose: () => setIsOpen(false)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-voice-to-speech",
|
|
3
3
|
"description": "A lightweight, customizable React component and hook for voice-to-text recognition using the Web Speech API. Includes a built-in recording overlay.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css"
|