tts-react
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import type { TTSHookProps } from './hook.js'; | ||
@@ -46,5 +45,5 @@ import type { SvgProps } from './icons.js'; | ||
*/ | ||
declare const TextToSpeech: ({ size, lang, rate, voice, volume, children, position, onStart, onPause, onBoundary, onEnd, onError, onMuteToggled, onVolumeChange, onPitchChange, onRateChange, fetchAudioData, markColor, markBackgroundColor, autoPlay, allowMuting, align, markTextAsSpoken, useStopOverPause }: TTSProps) => JSX.Element; | ||
declare const TextToSpeech: ({ size, lang, rate, voice, volume, children, position, onStart, onPause, onBoundary, onEnd, onError, onMuteToggled, onVolumeChange, onPitchChange, onRateChange, fetchAudioData, markColor, markBackgroundColor, autoPlay, allowMuting, align, markTextAsSpoken, useStopOverPause }: TTSProps) => import("react/jsx-runtime").JSX.Element; | ||
export { Sizes } from './icons.js'; | ||
export { TextToSpeech, Positions }; | ||
export type { TTSProps }; |
@@ -15,4 +15,4 @@ import type { MouseEventHandler } from 'react'; | ||
}; | ||
declare const Control: ({ title, type, onClick, size, align, ...rest }: ControlProps) => JSX.Element; | ||
declare const Control: ({ title, type, onClick, size, align, ...rest }: ControlProps) => import("react/jsx-runtime").JSX.Element; | ||
export { Control, padding }; | ||
export type { ControlProps }; |
@@ -324,3 +324,3 @@ import { isPunctuation } from './utils.js'; | ||
if (this.#synthesizer instanceof HTMLAudioElement) { | ||
// eslint-disable-next-line @typescript-eslint/no-extra-semi | ||
// eslint-disable-next-line no-extra-semi | ||
; | ||
@@ -327,0 +327,0 @@ this.#synthesizer.preservesPitch = value; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
interface HighliterProps { | ||
@@ -8,3 +7,3 @@ text: string; | ||
} | ||
declare const Highlighter: ({ text, mark, color, backgroundColor }: HighliterProps) => JSX.Element; | ||
declare const Highlighter: ({ text, mark, color, backgroundColor }: HighliterProps) => import("react/jsx-runtime").JSX.Element; | ||
export { Highlighter }; |
{ | ||
"name": "tts-react", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "React hook and component for converting text to speech using the Web Speech API or Amazon Polly.", | ||
@@ -62,5 +62,5 @@ "type": "module", | ||
"peerDependencies": { | ||
"react": ">=17.0.0", | ||
"react-dom": ">=17.0.0" | ||
"react": "^17.0.0 || ^18.0.0", | ||
"react-dom": "^17.0.0 || ^18.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
223316
3463