New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-text-to-speech

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-text-to-speech - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

2

dist/index.d.ts

@@ -32,3 +32,3 @@ import React, { DetailedHTMLProps, HTMLAttributes, ReactNode } from "react";

export type { IconProps } from "./icons.js";
export default function Speech({ text, id, pitch, rate, volume, lang, voiceURI, startBtn, pauseBtn, stopBtn, useStopOverPause, highlightText, highlightProps, onError, props, children, }: SpeechProps): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
export default function Speech({ text, id, pitch, rate, volume, lang, voiceURI, startBtn, pauseBtn, stopBtn, useStopOverPause, highlightText, highlightProps, onError, props, children, }: SpeechProps): React.JSX.Element;
export declare function HighlightedText({ id, children, ...props }: DivProps): React.JSX.Element;

@@ -130,5 +130,6 @@ var __rest = (this && this.__rest) || function (s, e) {

}, [highlightText]);
return typeof children === "function" ? (children({ speechStatus, start, pause, stop })) : (React.createElement("div", Object.assign({ style: { display: "flex", columnGap: "1rem" } }, props),
speechStatus !== "started" ? (React.createElement("span", { role: "button", onClick: start }, startBtn)) : useStop === false ? (React.createElement("span", { role: "button", onClick: pause }, pauseBtn)) : (React.createElement("span", { role: "button", onClick: stop }, stopBtn)),
useStop === false && stopBtn && (React.createElement("span", { role: "button", onClick: stop }, stopBtn)),
return (React.createElement(React.Fragment, null,
typeof children === "function" ? (children({ speechStatus, start, pause, stop })) : (React.createElement("div", Object.assign({ style: { display: "flex", columnGap: "1rem" } }, props),
speechStatus !== "started" ? (React.createElement("span", { role: "button", onClick: start }, startBtn)) : useStop === false ? (React.createElement("span", { role: "button", onClick: pause }, pauseBtn)) : (React.createElement("span", { role: "button", onClick: stop }, stopBtn)),
useStop === false && stopBtn && (React.createElement("span", { role: "button", onClick: stop }, stopBtn)))),
highlightContainer && createPortal(highlightedText(text), highlightContainer)));

@@ -135,0 +136,0 @@ }

{
"name": "react-text-to-speech",
"version": "0.8.1",
"version": "0.8.2",
"description": "An easy to use react component for the Web Speech API.",

@@ -5,0 +5,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc