Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-say

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-say - npm Package Compare versions

Comparing version 1.1.2-master.fd0600e to 1.2.0

lib/createContext.js

16

CHANGELOG.md

@@ -8,4 +8,18 @@ # Changelog

## [Unreleased]
- Add babel-runtime dependency
## [1.2.0] - 2019-05-28
### Changed
- Added babel-runtime dependency
- Bumped dependencies by `npm audit` in [PR #9](https://github.com/compulim/react-say/pull/9)
- `@babel/core@7.4.5` and related packages
- `jest@24.8.0`
- `lerna@3.14.1`
- `memoize-one@5.0.4`
- `react-scripts@3.0.1`
- `rimraf@2.6.3`
### Fixed
- Fix [#8](https://github.com/compulim/react-say/issues/8) by removing workaround for Chrome bug, in [PR #7](https://github.com/compulim/react-say/pull/7)
- The workaround caused unnecessary kill-and-retry if the speech synthesizer legitimately took more than a second to signal `start` event
## [1.1.1] - 2018-10-31

@@ -12,0 +26,0 @@ ### Changed

306

lib/Composer.js

@@ -1,215 +0,53 @@

'use strict';
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = require('babel-runtime/helpers/inherits');
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _inherits3 = _interopRequireDefault(_inherits2);
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
var _propTypes = _interopRequireDefault(require("prop-types"));
var _regenerator = require('babel-runtime/regenerator');
var _react = _interopRequireDefault(require("react"));
var _regenerator2 = _interopRequireDefault(_regenerator);
var _Context = _interopRequireDefault(require("./Context"));
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _createContext = _interopRequireDefault(require("./createContext"));
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
var Composer =
/*#__PURE__*/
function (_React$Component) {
(0, _inherits2["default"])(Composer, _React$Component);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _memoizeOne = require('memoize-one');
var _memoizeOne2 = _interopRequireDefault(_memoizeOne);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _Context = require('./Context');
var _Context2 = _interopRequireDefault(_Context);
var _Utterance = require('./Utterance');
var _Utterance2 = _interopRequireDefault(_Utterance);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var SpeechContext = function () {
function SpeechContext(ponyfill) {
(0, _classCallCheck3.default)(this, SpeechContext);
this.queueWithCurrent = [];
this.cancel = this.cancel.bind(this);
this.cancelAll = this.cancelAll.bind(this);
this.speak = this.speak.bind(this);
this.setPonyfill(ponyfill);
}
(0, _createClass3.default)(SpeechContext, [{
key: 'setPonyfill',
value: function setPonyfill(_ref) {
var speechSynthesis = _ref.speechSynthesis,
SpeechSynthesisUtterance = _ref.SpeechSynthesisUtterance;
this.ponyfill = { speechSynthesis: speechSynthesis, SpeechSynthesisUtterance: SpeechSynthesisUtterance };
}
}, {
key: 'cancel',
value: function () {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(id) {
var index;
return _regenerator2.default.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
index = this.queueWithCurrent.findIndex(function (utterance) {
return utterance.id === id;
});
if (!~index) {
_context.next = 3;
break;
}
return _context.abrupt('return', this.queueWithCurrent[index].cancel());
case 3:
case 'end':
return _context.stop();
}
}
}, _callee, this);
}));
function cancel(_x) {
return _ref2.apply(this, arguments);
}
return cancel;
}()
}, {
key: 'cancelAll',
value: function () {
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
return _regenerator2.default.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
case 'end':
return _context2.stop();
}
}
}, _callee2, this);
}));
function cancelAll() {
return _ref3.apply(this, arguments);
}
return cancelAll;
}()
}, {
key: 'speak',
value: function speak(utteranceLike) {
// console.debug(`QUEUED: ${ utteranceLike.text }`);
if (utteranceLike.id && this.queueWithCurrent.find(function (_ref4) {
var id = _ref4.id;
return id === utteranceLike.id;
})) {
// Do not queue duplicated speak with same unique ID
// console.debug('NOT QUEUEING DUPE');
return;
}
var utterance = new _Utterance2.default(utteranceLike);
this.queueWithCurrent = [].concat((0, _toConsumableArray3.default)(this.queueWithCurrent), [utterance]);
if (this.queueWithCurrent.length === 1) {
this._next();
}
return utterance.deferred.promise;
}
}, {
key: '_next',
value: function _next() {
var _this = this;
var utterance = this.queueWithCurrent[0];
if (!utterance) {
return;
}
var id = utterance.id;
var promise = utterance.speak(this.ponyfill);
promise.then(function () {
_this.queueWithCurrent = _this.queueWithCurrent.filter(function (utterance) {
return utterance.id !== id;
});
_this._next();
}, function () {
// TODO: If the error is due to Safari restriction on user touch
// The next loop on the next audio will also fail because it was not queued with a user touch
_this.queueWithCurrent = _this.queueWithCurrent.filter(function (utterance) {
return utterance.id !== id;
});
_this._next();
});
}
}]);
return SpeechContext;
}();
var Composer = function (_React$Component) {
(0, _inherits3.default)(Composer, _React$Component);
function Composer(props) {
(0, _classCallCheck3.default)(this, Composer);
var _this;
var _this2 = (0, _possibleConstructorReturn3.default)(this, (Composer.__proto__ || (0, _getPrototypeOf2.default)(Composer)).call(this, props));
_this2.handleVoicesChanged = _this2.handleVoicesChanged.bind(_this2);
(0, _classCallCheck2["default"])(this, Composer);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(Composer).call(this, props));
_this.handleVoicesChanged = _this.handleVoicesChanged.bind((0, _assertThisInitialized2["default"])(_this));
var voices = [];
if (props.speechSynthesis) {
props.speechSynthesis.addEventListener && props.speechSynthesis.addEventListener('voiceschanged', _this2.handleVoicesChanged);
props.speechSynthesis.addEventListener && props.speechSynthesis.addEventListener('voiceschanged', _this.handleVoicesChanged);
voices = props.speechSynthesis.getVoices();
}
_this2.mergeContext = (0, _memoizeOne2.default)(function (_ref5, voices) {
var cancel = _ref5.cancel,
speak = _ref5.speak;
_this.mergeContext = (0, _memoizeOne["default"])(function (_ref, voices) {
var cancel = _ref.cancel,
speak = _ref.speak;
return {

@@ -221,5 +59,4 @@ cancel: cancel,

});
_this2.state = {
context: new SpeechContext({
_this.state = {
context: (0, _createContext["default"])({
speechSynthesis: props.speechSynthesis,

@@ -230,10 +67,9 @@ SpeechSynthesisUtterance: props.speechSynthesisUtterance

};
return _this2;
return _this;
}
(0, _createClass3.default)(Composer, [{
key: 'componentWillReceiveProps',
(0, _createClass2["default"])(Composer, [{
key: "componentWillReceiveProps",
value: function componentWillReceiveProps(nextProps) {
var props = this.props;
var changed = ['speechSynthesis', 'speechSynthesisUtterance'].some(function (name) {

@@ -244,4 +80,8 @@ return nextProps[name] !== props[name];

if (changed) {
if (props.speechSynthesis) {
props.speechSynthesis.removeEventListener && props.speechSynthesis.removeEventListener('voiceschanged', this.handleVoicesChanged);
var speechSynthesis = props.speechSynthesis;
var nextSpeechSynthesis = nextProps.speechSynthesis;
var nextVoices = [];
if (speechSynthesis && speechSynthesis.removeEventListener) {
speechSynthesis.removeEventListener('voiceschanged', this.handleVoicesChanged);
}

@@ -254,11 +94,11 @@

var nextVoices = [];
if (nextProps.speechSynthesis) {
nextProps.speechSynthesis.addEventListener && nextProps.speechSynthesis.addEventListener('voiceschanged', this.handleVoicesChanged);
nextVoices = nextProps.speechSynthesis.getVoices() || [];
if (nextSpeechSynthesis) {
nextSpeechSynthesis.addEventListener && nextSpeechSynthesis.addEventListener('voiceschanged', this.handleVoicesChanged);
nextVoices = nextSpeechSynthesis.getVoices() || [];
}
this.setState(function () {
return { voices: nextVoices };
return {
voices: nextVoices
};
});

@@ -268,22 +108,21 @@ }

}, {
key: 'componentWillUnmount',
key: "componentWillUnmount",
value: function componentWillUnmount() {
var speechSynthesis = this.props.speechSynthesis;
speechSynthesis && speechSynthesis.removeEventListener && speechSynthesis.removeEventListener('voiceschanged', this.handleVoicesChanged);
}
}, {
key: 'handleVoicesChanged',
value: function handleVoicesChanged(_ref6) {
var target = _ref6.target;
key: "handleVoicesChanged",
value: function handleVoicesChanged(_ref2) {
var target = _ref2.target;
this.setState(function () {
return { voices: target.getVoices() };
return {
voices: target.getVoices()
};
});
}
}, {
key: 'render',
key: "render",
value: function render() {
var _this3 = this;
var _this2 = this;

@@ -293,29 +132,15 @@ var props = this.props,

var children = props.children;
return _react2.default.createElement(
_Context2.default.Consumer,
null,
function (context) {
return context ? typeof children === 'function' ? children(context) : children : _react2.default.createElement(
_Context2.default.Provider,
{ value: _this3.mergeContext(state.context, state.voices) },
typeof children === 'function' ? _react2.default.createElement(
_Context2.default.Consumer,
null,
function (context) {
return children(context);
}
) : children
);
}
);
return _react["default"].createElement(_Context["default"].Consumer, null, function (context) {
return context ? typeof children === 'function' ? children(context) : children : _react["default"].createElement(_Context["default"].Provider, {
value: _this2.mergeContext(state.context, state.voices)
}, typeof children === 'function' ? _react["default"].createElement(_Context["default"].Consumer, null, function (context) {
return children(context);
}) : children);
});
}
}]);
return Composer;
}(_react2.default.Component);
}(_react["default"].Component);
exports.default = Composer;
exports["default"] = Composer;
Composer.defaultProps = {

@@ -325,7 +150,6 @@ speechSynthesis: window.speechSynthesis || window.webkitSpeechSynthesis,

};
Composer.propTypes = {
speechSynthesis: _propTypes2.default.any,
speechSynthesisUtterance: _propTypes2.default.any
speechSynthesis: _propTypes["default"].any,
speechSynthesisUtterance: _propTypes["default"].any
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db21wb3Nlci5qcyJdLCJuYW1lcyI6WyJTcGVlY2hDb250ZXh0IiwicG9ueWZpbGwiLCJxdWV1ZVdpdGhDdXJyZW50IiwiY2FuY2VsIiwiYmluZCIsImNhbmNlbEFsbCIsInNwZWFrIiwic2V0UG9ueWZpbGwiLCJzcGVlY2hTeW50aGVzaXMiLCJTcGVlY2hTeW50aGVzaXNVdHRlcmFuY2UiLCJpZCIsImluZGV4IiwiZmluZEluZGV4IiwidXR0ZXJhbmNlIiwidXR0ZXJhbmNlTGlrZSIsImZpbmQiLCJVdHRlcmFuY2UiLCJsZW5ndGgiLCJfbmV4dCIsImRlZmVycmVkIiwicHJvbWlzZSIsInRoZW4iLCJmaWx0ZXIiLCJDb21wb3NlciIsInByb3BzIiwiaGFuZGxlVm9pY2VzQ2hhbmdlZCIsInZvaWNlcyIsImFkZEV2ZW50TGlzdGVuZXIiLCJnZXRWb2ljZXMiLCJtZXJnZUNvbnRleHQiLCJzdGF0ZSIsImNvbnRleHQiLCJzcGVlY2hTeW50aGVzaXNVdHRlcmFuY2UiLCJuZXh0UHJvcHMiLCJjaGFuZ2VkIiwic29tZSIsIm5hbWUiLCJyZW1vdmVFdmVudExpc3Rlbm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aXMuc2V0U3RhdGUoKCkgPT4gKHsgdm9pY2VzOiB0YXJnZXQuZ2V0Vm9pY2VzKCkgfSkpO1xuICB9XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgcHJvcHMsIHN0YXRlIH0gPSB0aGlzO1xuICAgIGNvbnN0IHsgY2hpbGRyZW4gfSA9IHByb3BzO1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxDb250ZXh0LkNvbnN1bWVyPlxuICAgICAgICB7IGNvbnRleHQgPT4gY29udGV4dCA/XG4gICAgICAgICAgICB0eXBlb2YgY2hpbGRyZW4gPT09ICdmdW5jdGlvbicgPyBjaGlsZHJlbihjb250ZXh0KSA6IGNoaWxkcmVuXG4gICAgICAgICAgOlxuICAgICAgICAgICAgPENvbnRleHQuUHJvdmlkZXIgdmFsdWU9eyB0aGlzLm1lcmdlQ29udGV4dChzdGF0ZS5jb250ZXh0LCBzdGF0ZS52b2ljZXMpIH0+XG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICB0eXBlb2YgY2hpbGRyZW4gPT09ICdmdW5jdGlvbicgP1xuICAgICAgICAgICAgICAgICAgPENvbnRleHQuQ29uc3VtZXI+XG4gICAgICAgICAgICAgICAgICAgIHsgY29udGV4dCA9PiBjaGlsZHJlbihjb250ZXh0KSB9XG4gICAgICAgICAgICAgICAgICA8L0NvbnRleHQuQ29uc3VtZXI+XG4gICAgICAgICAgICAgICAgOlxuICAgICAgICAgICAgICAgICAgY2hpbGRyZW5cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgPC9Db250ZXh0LlByb3ZpZGVyPlxuICAgICAgICB9XG4gICAgICA8L0NvbnRleHQuQ29uc3VtZXI+XG4gICAgKTtcbiAgfVxufVxuXG5Db21wb3Nlci5kZWZhdWx0UHJvcHMgPSB7XG4gIHNwZWVjaFN5bnRoZXNpczogd2luZG93LnNwZWVjaFN5bnRoZXNpcyB8fCB3aW5kb3cud2Via2l0U3BlZWNoU3ludGhlc2lz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gICAgICAgICAgICA8Q29udGV4dC5Db25zdW1lcj5cbiAgICAgICAgICAgICAgICAgICAgeyBjb250ZXh0ID0+IGNoaWxkcmVuKGNvbnRleHQpIH1cbiAgICAgICAgICAgICAgICAgIDwvQ29udGV4dC5Db25zdW1lcj5cbiAgICAgICAgICAgICAgICA6XG4gICAgICAgICAgICAgICAgICBjaGlsZHJlblxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICA8L0NvbnRleHQuUHJvdmlkZXI+XG4gICAgICAgIH1cbiAgICAgIDwvQ29udGV4dC5Db25zdW1lcj5cbiAgICApO1xuICB9XG59XG5cbkNvbXBvc2VyLmRlZmF1bHRQcm9wcyA9IHtcbiAgc3BlZWNoU3ludGhlc2lzOiB3aW5kb3cuc3BlZWNoU3ludGhlc2lzIHx8IHdpbmRvdy53ZWJraXRTcGVlY2hTeW50aGVzaXMsXG4gIHNwZWVjaFN5bnRoZXNpc1V0dGVyYW5jZTogd2luZG93LlNwZWVjaFN5bnRoZXNpc1V0dGVyYW5jZSB8fCB3aW5kb3cud2Via2l0U3BlZWNoU3ludGhlc2lzVXR0ZXJhbmNlXG59O1xuXG5Db21wb3Nlci5wcm9wVHlwZXMgPSB7XG4gIHNwZWVjaFN5bnRoZXNpczogUHJvcFR5cGVzLmFueSxcbiAgc3BlZWNoU3ludGhlc2lzVXR0ZXJhbmNlOiBQcm9wVHlwZXMuYW55XG59O1xuIl19

@@ -1,16 +0,16 @@

'use strict';
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = require('react');
var _react = _interopRequireDefault(require("react"));
var _react2 = _interopRequireDefault(_react);
var Context = _react["default"].createContext();
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Context = _react2.default.createContext();
exports.default = Context;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db250ZXh0LmpzIl0sIm5hbWVzIjpbIkNvbnRleHQiLCJSZWFjdCIsImNyZWF0ZUNvbnRleHQiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBOzs7Ozs7QUFFQSxJQUFNQSxVQUFVQyxnQkFBTUMsYUFBTixFQUFoQjs7a0JBRWVGLE8iLCJmaWxlIjoiQ29udGV4dC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5cbmNvbnN0IENvbnRleHQgPSBSZWFjdC5jcmVhdGVDb250ZXh0KCk7XG5cbmV4cG9ydCBkZWZhdWx0IENvbnRleHRcbiJdfQ==
var _default = Context;
exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Db250ZXh0LmpzIl0sIm5hbWVzIjpbIkNvbnRleHQiLCJSZWFjdCIsImNyZWF0ZUNvbnRleHQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBOztBQUVBLElBQU1BLE9BQU8sR0FBR0Msa0JBQU1DLGFBQU4sRUFBaEI7O2VBRWVGLE8iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuXG5jb25zdCBDb250ZXh0ID0gUmVhY3QuY3JlYXRlQ29udGV4dCgpO1xuXG5leHBvcnQgZGVmYXVsdCBDb250ZXh0XG4iXX0=

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -6,16 +6,7 @@ Object.defineProperty(exports, "__esModule", {

});
exports["default"] = createDeferred;
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
exports.default = createDeferred;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function createDeferred() {
var reject = void 0,
resolve = void 0;
var promise = new _promise2.default(function (promiseResolve, promiseReject) {
var reject, resolve;
var promise = new Promise(function (promiseResolve, promiseReject) {
reject = promiseReject;

@@ -29,4 +20,8 @@ resolve = promiseResolve;

return { promise: promise, reject: reject, resolve: resolve };
return {
promise: promise,
reject: reject,
resolve: resolve
};
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVEZWZlcnJlZC5qcyJdLCJuYW1lcyI6WyJjcmVhdGVEZWZlcnJlZCIsInJlamVjdCIsInJlc29sdmUiLCJwcm9taXNlIiwicHJvbWlzZVJlc29sdmUiLCJwcm9taXNlUmVqZWN0IiwiRXJyb3IiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7a0JBQXdCQSxjOzs7O0FBQVQsU0FBU0EsY0FBVCxHQUEwQjtBQUN2QyxNQUFJQyxlQUFKO0FBQUEsTUFBWUMsZ0JBQVo7O0FBRUEsTUFBTUMsVUFBVSxzQkFBWSxVQUFDQyxjQUFELEVBQWlCQyxhQUFqQixFQUFtQztBQUM3REosYUFBU0ksYUFBVDtBQUNBSCxjQUFVRSxjQUFWO0FBQ0QsR0FIZSxDQUFoQjs7QUFLQSxNQUFJLENBQUNILE1BQUQsSUFBVyxDQUFDQyxPQUFoQixFQUF5QjtBQUN2QixVQUFNLElBQUlJLEtBQUosQ0FBVSxrRUFBVixDQUFOO0FBQ0Q7O0FBRUQsU0FBTyxFQUFFSCxnQkFBRixFQUFXRixjQUFYLEVBQW1CQyxnQkFBbkIsRUFBUDtBQUNEIiwiZmlsZSI6ImNyZWF0ZURlZmVycmVkLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gY3JlYXRlRGVmZXJyZWQoKSB7XG4gIGxldCByZWplY3QsIHJlc29sdmU7XG5cbiAgY29uc3QgcHJvbWlzZSA9IG5ldyBQcm9taXNlKChwcm9taXNlUmVzb2x2ZSwgcHJvbWlzZVJlamVjdCkgPT4ge1xuICAgIHJlamVjdCA9IHByb21pc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QW5CLEdBQVA7QUFDRCIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGNyZWF0ZURlZmVycmVkKCkge1xuICBsZXQgcmVqZWN0LCByZXNvbHZlO1xuXG4gIGNvbnN0IHByb21pc2UgPSBuZXcgUHJvbWlzZSgocHJvbWlzZVJlc29sdmUsIHByb21pc2VSZWplY3QpID0+IHtcbiAgICByZWplY3QgPSBwcm9taXNlUmVqZWN0O1xuICAgIHJlc29sdmUgPSBwcm9taXNlUmVzb2x2ZTtcbiAgfSk7XG5cbiAgaWYgKCFyZWplY3QgfHwgIXJlc29sdmUpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoJ1Byb21pc2UgaXMgbm90IGEgRVMtY29tcGxpYW50IGFuZCBkbyBub3QgcnVuIGV4ZWN0b3IgaW1tZWRpYXRlbHknKTtcbiAgfVxuXG4gIHJldHVybiB7IHByb21pc2UsIHJlamVjdCwgcmVzb2x2ZSB9O1xufVxuIl19

@@ -6,6 +6,6 @@ "use strict";

});
exports["default"] = _default;
exports.default = function (speechSynthesis) {
return speechSynthesis.getVoices();
// return speechSynthesis.getVoices().map(({
function _default(speechSynthesis) {
return speechSynthesis.getVoices(); // return speechSynthesis.getVoices().map(({
// 'default': def,

@@ -23,3 +23,3 @@ // lang,

// }));
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9nZXRTZXJpYWxpemFibGVWb2ljZXMuanMiXSwibmFtZXMiOlsic3BlZWNoU3ludGhlc2lzIiwiZ2V0Vm9pY2VzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7a0JBQWUsVUFBVUEsZUFBVixFQUEyQjtBQUN4QyxTQUFPQSxnQkFBZ0JDLFNBQWhCLEVBQVA7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0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gIC8vIHJldHVybiBzcGVlY2hTeW50aGVzaXMuZ2V0Vm9pY2VzKCkubWFwKCh7XG4gIC8vICAgJ2RlZmF1bHQnOiBkZWYsXG4gIC8vICAgbGFuZyxcbiAgLy8gICBsb2NhbFNlcnZpY2UsXG4gIC8vICAgbmFtZSxcbiAgLy8gICB2b2ljZVVSSVxuICAvLyB9KSA9PiAoe1xuICAvLyAgICdkZWZhdWx0JzogZGVmLFxuICAvLyAgIGxhbmcsXG4gIC8vICAgbG9jYWxTZXJ2aWNlLFxuICAvLyAgIG5hbWUsXG4gIC8vICAgdm9pY2VVUklcbiAgLy8gfSkpO1xufVxuIl19

@@ -1,35 +0,46 @@

'use strict';
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SayPrimitive = exports.SayButton = exports.Context = exports.Composer = undefined;
Object.defineProperty(exports, "Composer", {
enumerable: true,
get: function get() {
return _Composer["default"];
}
});
Object.defineProperty(exports, "Context", {
enumerable: true,
get: function get() {
return _Context["default"];
}
});
Object.defineProperty(exports, "SayButton", {
enumerable: true,
get: function get() {
return _SayButton["default"];
}
});
Object.defineProperty(exports, "SayPrimitive", {
enumerable: true,
get: function get() {
return _SayPrimitive["default"];
}
});
exports["default"] = void 0;
var _Say = require('./Say');
var _Say = _interopRequireDefault(require("./Say"));
var _Say2 = _interopRequireDefault(_Say);
var _Composer = _interopRequireDefault(require("./Composer"));
var _Composer = require('./Composer');
var _Context = _interopRequireDefault(require("./Context"));
var _Composer2 = _interopRequireDefault(_Composer);
var _SayButton = _interopRequireDefault(require("./SayButton"));
var _Context = require('./Context');
var _SayPrimitive = _interopRequireDefault(require("./SayPrimitive"));
var _Context2 = _interopRequireDefault(_Context);
var _SayButton = require('./SayButton');
var _SayButton2 = _interopRequireDefault(_SayButton);
var _SayPrimitive = require('./SayPrimitive');
var _SayPrimitive2 = _interopRequireDefault(_SayPrimitive);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _Say2.default;
exports.Composer = _Composer2.default;
exports.Context = _Context2.default;
exports.SayButton = _SayButton2.default;
exports.SayPrimitive = _SayPrimitive2.default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJTYXkiLCJDb21wb3NlciIsIkNvbnRleHQiLCJTYXlCdXR0b24iLCJTYXlQcmltaXRpdmUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7a0JBRWVBLGE7UUFHYkMsUSxHQUFBQSxrQjtRQUNBQyxPLEdBQUFBLGlCO1FBQ0FDLFMsR0FBQUEsbUI7UUFDQUMsWSxHQUFBQSxzQiIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBTYXkgZnJvbSAnLi9TYXknO1xuaW1wb3J0IENvbXBvc2VyIGZyb20gJy4vQ29tcG9zZXInO1xuaW1wb3J0IENvbnRleHQgZnJvbSAnLi9Db250ZXh0JztcbmltcG9ydCBTYXlCdXR0b24gZnJvbSAnLi9TYXlCdXR0b24nO1xuaW1wb3J0IFNheVByaW1pdGl2ZSBmcm9tICcuL1NheVByaW1pdGl2ZSc7XG5cbmV4cG9ydCBkZWZhdWx0IFNheVxuXG5leHBvcnQge1xuICBDb21wb3NlcixcbiAgQ29udGV4dCxcbiAgU2F5QnV0dG9uLFxuICBTYXlQcmltaXRpdmVcbn1cbiJdfQ==
var _default = _Say["default"];
exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJTYXkiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztBQUNBOztBQUNBOztBQUNBOztBQUNBOztlQUVlQSxlIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFNheSBmcm9tICcuL1NheSc7XG5pbXBvcnQgQ29tcG9zZXIgZnJvbSAnLi9Db21wb3Nlcic7XG5pbXBvcnQgQ29udGV4dCBmcm9tICcuL0NvbnRleHQnO1xuaW1wb3J0IFNheUJ1dHRvbiBmcm9tICcuL1NheUJ1dHRvbic7XG5pbXBvcnQgU2F5UHJpbWl0aXZlIGZyb20gJy4vU2F5UHJpbWl0aXZlJztcblxuZXhwb3J0IGRlZmF1bHQgU2F5XG5cbmV4cG9ydCB7XG4gIENvbXBvc2VyLFxuICBDb250ZXh0LFxuICBTYXlCdXR0b24sXG4gIFNheVByaW1pdGl2ZVxufVxuIl19

@@ -1,34 +0,34 @@

'use strict';
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = _default;
var _regenerator = require('babel-runtime/regenerator');
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _sleep = _interopRequireDefault(require("./sleep"));
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
function _default(_x, _x2, _x3) {
return _ref.apply(this, arguments);
}
var _sleep = require('./sleep');
var _sleep2 = _interopRequireDefault(_sleep);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function () {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(fn, numRetries, interval) {
function _ref() {
_ref = (0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee(fn, numRetries, interval) {
var lastError, times;
return _regenerator2.default.wrap(function _callee$(_context) {
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
lastError = void 0;
times = 0;
case 2:
case 1:
if (!(times < numRetries)) {
_context.next = 18;
_context.next = 17;
break;

@@ -38,43 +38,39 @@ }

if (!times) {
_context.next = 6;
_context.next = 5;
break;
}
_context.next = 6;
return (0, _sleep2.default)(interval);
_context.next = 5;
return (0, _sleep["default"])(interval);
case 6:
_context.prev = 6;
_context.next = 9;
case 5:
_context.prev = 5;
_context.next = 8;
return fn();
case 9:
return _context.abrupt('return', _context.sent);
case 8:
return _context.abrupt("return", _context.sent);
case 12:
_context.prev = 12;
_context.t0 = _context['catch'](6);
case 11:
_context.prev = 11;
_context.t0 = _context["catch"](5);
lastError = _context.t0;
case 15:
case 14:
times++;
_context.next = 2;
_context.next = 1;
break;
case 18:
case 17:
throw lastError;
case 19:
case 'end':
case 18:
case "end":
return _context.stop();
}
}
}, _callee, this, [[6, 12]]);
}, _callee, null, [[5, 11]]);
}));
return function (_x, _x2, _x3) {
return _ref.apply(this, arguments);
};
}();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXRyeS5qcyJdLCJuYW1lcyI6WyJmbiIsIm51bVJldHJpZXMiLCJpbnRlcnZhbCIsImxhc3RFcnJvciIsInRpbWVzIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFBOzs7Ozs7O3NGQUVlLGlCQUFnQkEsRUFBaEIsRUFBb0JDLFVBQXBCLEVBQWdDQyxRQUFoQztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDVEMscUJBRFM7QUFHSkMsaUJBSEksR0FHSSxDQUhKOztBQUFBO0FBQUEsa0JBR09BLFFBQVFILFVBSGY7QUFBQTtBQUFBO0FBQUE7O0FBQUEsaUJBSVBHLEtBSk87QUFBQTtBQUFBO0FBQUE7O0FBQU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QUFBO0FBQUE7QUFBQTtBQUFBO0FBR0pDLFlBQUFBLEtBSEksR0FHSSxDQUhKOztBQUFBO0FBQUEsa0JBR09BLEtBQUssR0FBR0YsVUFIZjtBQUFBO0FBQUE7QUFBQTs7QUFBQSxpQkFJUEUsS0FKTztBQUFBO0FBQUE7QUFBQTs7QUFBQTtBQUFBLG1CQUtILHVCQUFNRCxRQUFOLENBTEc7O0FBQUE7QUFBQTtBQUFBO0FBQUEsbUJBU0lGLEVBQUUsRUFUTjs7QUFBQTtBQUFBOztBQUFBO0FBQUE7QUFBQTtBQVdUSSxZQUFBQSxTQUFTLGNBQVQ7O0FBWFM7QUFHMkJELFlBQUFBLEtBQUssRUFIaEM7QUFBQTtBQUFBOztBQUFBO0FBQUEsa0JBZVBDLFNBZk87O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsRyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzbGVlcCBmcm9tICcuL3NsZWVwJztcblxuZXhwb3J0IGRlZmF1bHQgYXN5bmMgZnVuY3Rpb24gKGZuLCBudW1SZXRyaWVzLCBpbnRlcnZhbCkge1xuICBsZXQgbGFzdEVycm9yO1xuXG4gIGZvciAobGV0IHRpbWVzID0gMDsgdGltZXMgPCBudW1SZXRyaWVzOyB0aW1lcysrKSB7XG4gICAgaWYgKHRpbWVzKSB7XG4gICAgICBhd2FpdCBzbGVlcChpbnRlcnZhbCk7XG4gICAgfVxuXG4gICAgdHJ5IHtcbiAgICAgIHJldHVybiBhd2FpdCBmbigpO1xuICAgIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgICBsYXN0RXJyb3IgPSBlcnJvcjtcbiAgICB9XG4gIH1cblxuICB0aHJvdyBsYXN0RXJyb3I7XG59XG4iXX0=

@@ -1,49 +0,34 @@

'use strict';
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _propTypes = require('prop-types');
var _propTypes = _interopRequireDefault(require("prop-types"));
var _propTypes2 = _interopRequireDefault(_propTypes);
var _react = _interopRequireDefault(require("react"));
var _react = require('react');
var _Composer = _interopRequireDefault(require("./Composer"));
var _react2 = _interopRequireDefault(_react);
var _SayPrimitive = _interopRequireDefault(require("./SayPrimitive"));
var _Composer = require('./Composer');
var _Composer2 = _interopRequireDefault(_Composer);
var _SayPrimitive = require('./SayPrimitive');
var _SayPrimitive2 = _interopRequireDefault(_SayPrimitive);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Say = function Say(props) {
return _react2.default.createElement(
_Composer2.default,
{
speechSynthesis: props.speechSynthesis,
speechSynthesisUtterance: props.speechSynthesisUtterance
},
_react2.default.createElement(
_SayPrimitive2.default,
{
lang: props.lang,
onBoundary: props.onBoundary,
onEnd: props.onEnd,
onError: props.onError,
onStart: props.onStart,
pitch: props.pitch,
rate: props.rate,
speak: props.speak,
voice: props.voice,
volume: props.volume
},
props.children
)
);
return _react["default"].createElement(_Composer["default"], {
speechSynthesis: props.speechSynthesis,
speechSynthesisUtterance: props.speechSynthesisUtterance
}, _react["default"].createElement(_SayPrimitive["default"], {
lang: props.lang,
onBoundary: props.onBoundary,
onEnd: props.onEnd,
onError: props.onError,
onStart: props.onStart,
pitch: props.pitch,
rate: props.rate,
speak: props.speak,
voice: props.voice,
volume: props.volume
}, props.children));
};

@@ -55,19 +40,18 @@

};
Say.propTypes = {
lang: _propTypes2.default.string,
onBoundary: _propTypes2.default.func,
onEnd: _propTypes2.default.func,
onError: _propTypes2.default.func,
onStart: _propTypes2.default.func,
pitch: _propTypes2.default.number,
rate: _propTypes2.default.number,
speechSynthesis: _propTypes2.default.any,
speechSynthesisUtterance: _propTypes2.default.any,
speak: _propTypes2.default.string,
voice: _propTypes2.default.oneOfType([_propTypes2.default.any, _propTypes2.default.func]),
volume: _propTypes2.default.number
lang: _propTypes["default"].string,
onBoundary: _propTypes["default"].func,
onEnd: _propTypes["default"].func,
onError: _propTypes["default"].func,
onStart: _propTypes["default"].func,
pitch: _propTypes["default"].number,
rate: _propTypes["default"].number,
speechSynthesis: _propTypes["default"].any,
speechSynthesisUtterance: _propTypes["default"].any,
speak: _propTypes["default"].string,
voice: _propTypes["default"].oneOfType([_propTypes["default"].any, _propTypes["default"].func]),
volume: _propTypes["default"].number
};
exports.default = Say;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TYXkuanMiXSwibmFtZXMiOlsiU2F5IiwicHJvcHMiLCJzcGVlY2hTeW50aGVzaXMiLCJzcGVlY2hTeW50aGVzaXNVdHRlcmFuY2UiLCJsYW5nIiwib25Cb3VuZGFyeSIsIm9uRW5kIiwib25FcnJvciIsIm9uU3RhcnQiLCJwaXRjaCIsInJhdGUiLCJzcGVhayIsInZvaWNlIiwidm9sdW1lIiwiY2hpbGRyZW4iLCJkZWZhdWx0UHJvcHMiLCJ3aW5kb3ciLCJ3ZWJraXRTcGVlY2hTeW50aGVzaXMiLCJTcGVlY2hTeW50aGVzaXNVdHRlcmFuY2UiLCJ3ZWJraXRTcGVlY2hTeW50aGVzaXNVdHRlcmFuY2UiLCJwcm9wVHlwZXMiLCJQcm9wVHlwZXMiLCJzdHJpbmciLCJmdW5jIiwibnVtYmVyIiwiYW55Iiwib25lT2ZUeXBlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBRUE7Ozs7QUFDQTs7Ozs7O0FBRUEsSUFBTUEsTUFBTSxTQUFOQSxHQUFNO0FBQUEsU0FDVjtBQUFDLHNCQUFEO0FBQUE7QUFDRSx1QkFBa0JDLE1BQU1DLGVBRDFCO0FBRUUsZ0NBQTJCRCxNQUFNRTtBQUZuQztBQUlFO0FBQUMsNEJBQUQ7QUFBQTtBQUNFLGNBQU9GLE1BQU1HLElBRGY7QUFFRSxvQkFBYUgsTUFBTUksVUFGckI7QUFHRSxlQU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y5TcGVlY2hTeW50aGVzaXNVdHRlcmFuY2UgfHwgd2luZG93LndlYmtpdFNwZWVjaFN5bnRoZXNpc1V0dGVyYW5jZVxufTtcblxuU2F5LnByb3BUeXBlcyA9IHtcbiAgbGFuZzogUHJvcFR5cGVzLnN0cmluZyxcbiAgb25Cb3VuZGFyeTogUHJvcFR5cGVzLmZ1bmMsXG4gIG9uRW5kOiBQcm9wVHlwZXMuZnVuYyxcbiAgb25FcnJvcjogUHJvcFR5cGVzLmZ1bmMsXG4gIG9uU3RhcnQ6IFByb3BUeXBlcy5mdW5jLFxuICBwaXRjaDogUHJvcFR5cGVzLm51bWJlcixcbiAgcmF0ZTogUHJvcFR5cGVzLm51bWJlcixcbiAgc3BlZWNoU3ludGhlc2lzOiBQcm9wVHlwZXMuYW55LFxuICBzcGVlY2hTeW50aGVzaXNVdHRlcmFuY2U6IFByb3BUeXBlcy5hbnksXG4gIHNwZWFrOiBQcm9wVHlwZXMuc3RyaW5nLFxuICB2b2ljZTogUHJvcFR5cGVzLm9uZU9mVHlwZShbUHJvcFR5cGVzLmFueSwgUHJvcFR5cGVzLmZ1bmNdKSxcbiAgdm9sdW1lOiBQcm9wVHlwZXMubnVtYmVyXG59O1xuXG5leHBvcnQgZGVmYXVsdCBTYXlcbiJdfQ==
var _default = Say;
exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TYXkuanMiXSwibmFtZXMiOlsiU2F5IiwicHJvcHMiLCJzcGVlY2hTeW50aGVzaXMiLCJzcGVlY2hTeW50aGVzaXNVdHRlcmFuY2UiLCJsYW5nIiwib25Cb3VuZGFyeSIsIm9uRW5kIiwib25FcnJvciIsIm9uU3RhcnQiLCJwaXRjaCIsInJhdGUiLCJzcGVhayIsInZvaWNlIiwidm9sdW1lIiwiY2hpbGRyZW4iLCJkZWZhdWx0UHJvcHMiLCJ3aW5kb3ciLCJ3ZWJraXRTcGV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yYW5jZVxufTtcblxuU2F5LnByb3BUeXBlcyA9IHtcbiAgbGFuZzogUHJvcFR5cGVzLnN0cmluZyxcbiAgb25Cb3VuZGFyeTogUHJvcFR5cGVzLmZ1bmMsXG4gIG9uRW5kOiBQcm9wVHlwZXMuZnVuYyxcbiAgb25FcnJvcjogUHJvcFR5cGVzLmZ1bmMsXG4gIG9uU3RhcnQ6IFByb3BUeXBlcy5mdW5jLFxuICBwaXRjaDogUHJvcFR5cGVzLm51bWJlcixcbiAgcmF0ZTogUHJvcFR5cGVzLm51bWJlcixcbiAgc3BlZWNoU3ludGhlc2lzOiBQcm9wVHlwZXMuYW55LFxuICBzcGVlY2hTeW50aGVzaXNVdHRlcmFuY2U6IFByb3BUeXBlcy5hbnksXG4gIHNwZWFrOiBQcm9wVHlwZXMuc3RyaW5nLFxuICB2b2ljZTogUHJvcFR5cGVzLm9uZU9mVHlwZShbUHJvcFR5cGVzLmFueSwgUHJvcFR5cGVzLmZ1bmNdKSxcbiAgdm9sdW1lOiBQcm9wVHlwZXMubnVtYmVyXG59O1xuXG5leHBvcnQgZGVmYXVsdCBTYXlcbiJdfQ==

@@ -1,63 +0,45 @@

'use strict';
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _extends3 = _interopRequireDefault(_extends2);
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _regenerator = require('babel-runtime/regenerator');
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _regenerator2 = _interopRequireDefault(_regenerator);
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _propTypes = _interopRequireDefault(require("prop-types"));
var _createClass2 = require('babel-runtime/helpers/createClass');
var _react = _interopRequireDefault(require("react"));
var _createClass3 = _interopRequireDefault(_createClass2);
var _Composer = _interopRequireDefault(require("./Composer"));
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var SayButton =
/*#__PURE__*/
function (_React$Component) {
(0, _inherits2["default"])(SayButton, _React$Component);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _Composer = require('./Composer');
var _Composer2 = _interopRequireDefault(_Composer);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var SayButton = function (_React$Component) {
(0, _inherits3.default)(SayButton, _React$Component);
function SayButton(props) {
(0, _classCallCheck3.default)(this, SayButton);
var _this;
var _this = (0, _possibleConstructorReturn3.default)(this, (SayButton.__proto__ || (0, _getPrototypeOf2.default)(SayButton)).call(this, props));
_this.handleClick = _this.handleClick.bind(_this);
(0, _classCallCheck2["default"])(this, SayButton);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(SayButton).call(this, props));
_this.handleClick = _this.handleClick.bind((0, _assertThisInitialized2["default"])(_this));
_this.state = {

@@ -70,4 +52,4 @@ busy: false,

(0, _createClass3.default)(SayButton, [{
key: 'componentWillUnmount',
(0, _createClass2["default"])(SayButton, [{
key: "componentWillUnmount",
value: function componentWillUnmount() {

@@ -77,3 +59,3 @@ this.props.context.cancel(this.state.id);

}, {
key: 'handleClick',
key: "handleClick",
value: function handleClick() {

@@ -84,10 +66,13 @@ var _this2 = this;

state = this.state;
props.onClick && props.onClick(event);
this.setState(function () {
return { busy: true };
}, (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
return _regenerator2.default.wrap(function _callee$(_context) {
return {
busy: true
};
},
/*#__PURE__*/
(0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee() {
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) {

@@ -112,3 +97,2 @@ switch (_context.prev = _context.next) {

case 2:
_this2.setState(function () {

@@ -121,58 +105,50 @@ return {

case 3:
case 'end':
case "end":
return _context.stop();
}
}
}, _callee, _this2);
}, _callee);
})));
}
}, {
key: 'render',
key: "render",
value: function render() {
var _props = this.props,
children = _props.children,
disabled = _props.disabled,
var _this$props = this.props,
children = _this$props.children,
disabled = _this$props.disabled,
busy = this.state.busy;
return _react2.default.createElement(
'button',
{
disabled: typeof disabled === 'boolean' ? disabled : busy,
onClick: this.handleClick
},
children
);
return _react["default"].createElement("button", {
disabled: typeof disabled === 'boolean' ? disabled : busy,
onClick: this.handleClick
}, children);
}
}]);
return SayButton;
}(_react2.default.Component);
}(_react["default"].Component);
var SayButtonWithContext = function SayButtonWithContext(props) {
return _react2.default.createElement(
_Composer2.default,
{
speechSynthesis: props.speechSynthesis,
speechSynthesisUtterance: props.speechSynthesisUtterance
},
function (context) {
return _react2.default.createElement(SayButton, (0, _extends3.default)({ context: context }, props));
}
);
return _react["default"].createElement(_Composer["default"], {
speechSynthesis: props.speechSynthesis,
speechSynthesisUtterance: props.speechSynthesisUtterance
}, function (context) {
return _react["default"].createElement(SayButton, (0, _extends2["default"])({
context: context
}, props));
});
};
SayButtonWithContext.propTypes = {
lang: _propTypes2.default.string,
onBoundary: _propTypes2.default.func,
onEnd: _propTypes2.default.func,
onError: _propTypes2.default.func,
onStart: _propTypes2.default.func,
pitch: _propTypes2.default.number,
rate: _propTypes2.default.number,
speak: _propTypes2.default.string,
voice: _propTypes2.default.oneOfType([_propTypes2.default.any, _propTypes2.default.func]),
volume: _propTypes2.default.number
lang: _propTypes["default"].string,
onBoundary: _propTypes["default"].func,
onEnd: _propTypes["default"].func,
onError: _propTypes["default"].func,
onStart: _propTypes["default"].func,
pitch: _propTypes["default"].number,
rate: _propTypes["default"].number,
speak: _propTypes["default"].string,
voice: _propTypes["default"].oneOfType([_propTypes["default"].any, _propTypes["default"].func]),
volume: _propTypes["default"].number
};
exports.default = SayButtonWithContext;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TYXlCdXR0b24uanMiXSwibmFtZXMiOlsiU2F5QnV0dG9uIiwicHJvcHMiLCJoYW5kbGVDbGljayIsImJpbmQiLCJzdGF0ZSIsImJ1c3kiLCJpZCIsIkRhdGUiLCJub3ciLCJNYXRoIiwicmFuZG9tIiwiY29udGV4dCIsImNhbmNlbCIsIm9uQ2xpY2siLCJldmVudCIsInNldFN0YXRlIiwic3BlYWsiLCJsYW5nIiwib25Cb3VuZGFyeSIsIm9uRW5kIiwib25FcnJvciIsIm9uU3RhcnQiLCJwaXRjaCIsInJhdGUiLCJ0ZXh0Iiwidm9pY2UiLCJ2b2x1bWUiLCJjaGlsZHJlbiIsImRpc2FibGVkIiwiUmVhY3QiLCJDb21wb25lbnQiLCJTYXlCdXR0b25XaXRoQ29udGV4dCIsInNwZWVjaFN5bnRoZXNpcyIsInNwZWVjaFN5bnRoZXNpc1V0dGVyYW5jZSIs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07XG5cbmV4cG9ydCBkZWZhdWx0IFNheUJ1dHRvbldpdGhDb250ZXh0XG4iXX0=
var _default = SayButtonWithContext;
exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TYXlCdXR0b24uanMiXSwibmFtZXMiOlsiU2F5QnV0dG9uIiwicHJvcHMiLCJoYW5kbGVDbGljayIsImJpbmQiLCJzdGF0ZSIsImJ1c3kiLCJpZCIsIkRhdGUiLCJub3ciLCJNYXRoIiwicmFuZG9tIiwiY29udGV4dCIsImNhbmNlbCIsIm9uQ2xpY2siLCJldmVudCIsInNldFN0YXRlIiwic3BlYWsiLCJsYW5nIiwib25Cb3VuZGFyeSIsIm9uRW5kIiwib25FcnJvciIsIm9uU3RhcnQiLCJwaXRjaCIsInJhdGUiLCJ0ZXh0Iiwidm9pY2UiLCJ2b2x1bWUiLCJjaGlsZHJlbiIsImRpc2FibGVkIiwiUmVhY3QiLCJDb21wb25lbnQiLCJTYXlCdXR0b25XaXRoQ29udGV4dCIsInNwZWVjaFN5bnRoZXNpcyIsInNwZWVjaFN5bnRoZXNpc1V0dGVyYW5jZSIsInByb3BUeXBlcyIsIlByb3BUeXBlcyIsInN0cmluZyIsImZ1bmMiLCJudW1iZXIiLCJvbmVPZlR5cGUiLCJhbnkiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztBQUNBOztBQUVBOztJQUVNQSxTOzs7OztBQUNKLHFCQUFZQyxLQUFaLEVBQW1CO0FBQUE7O0FBQUE7QUFDakIscUhBQU1BLEtBQU47QUFFQSxVQUFLQyxXQUFMLEdBQW1CLE1BQUtBLFdBQUwsQ0FBaUJDLElBQWpCLGdEQUFuQjtBQUVBLFVBQUtDLEtBQUwsR0FBYTtBQUNYQyxNQUFBQSxJQUFJLEVBQUUsS0FESztBQUVYQyxNQUFBQSxFQUFFLEVB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5nLFxuICB2b2ljZTogUHJvcFR5cGVzLm9uZU9mVHlwZShbUHJvcFR5cGVzLmFueSwgUHJvcFR5cGVzLmZ1bmNdKSxcbiAgdm9sdW1lOiBQcm9wVHlwZXMubnVtYmVyXG59O1xuXG5leHBvcnQgZGVmYXVsdCBTYXlCdXR0b25XaXRoQ29udGV4dFxuIl19

@@ -1,77 +0,60 @@

'use strict';
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _extends3 = _interopRequireDefault(_extends2);
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _regenerator = require('babel-runtime/regenerator');
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _regenerator2 = _interopRequireDefault(_regenerator);
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _propTypes = _interopRequireDefault(require("prop-types"));
var _createClass2 = require('babel-runtime/helpers/createClass');
var _react = _interopRequireDefault(require("react"));
var _createClass3 = _interopRequireDefault(_createClass2);
var _Context = _interopRequireDefault(require("./Context"));
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var SayPrimitive =
/*#__PURE__*/
function (_React$Component) {
(0, _inherits2["default"])(SayPrimitive, _React$Component);
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _Context = require('./Context');
var _Context2 = _interopRequireDefault(_Context);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var SayPrimitive = function (_React$Component) {
(0, _inherits3.default)(SayPrimitive, _React$Component);
function SayPrimitive(props) {
(0, _classCallCheck3.default)(this, SayPrimitive);
var _this;
var _this = (0, _possibleConstructorReturn3.default)(this, (SayPrimitive.__proto__ || (0, _getPrototypeOf2.default)(SayPrimitive)).call(this, props));
_this.handleBoundary = _this.handleBoundary.bind(_this);
_this.handleEnd = _this.handleEnd.bind(_this);
_this.handleError = _this.handleError.bind(_this);
_this.handleStart = _this.handleStart.bind(_this);
_this.state = { id: Date.now() + Math.random() };
(0, _classCallCheck2["default"])(this, SayPrimitive);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(SayPrimitive).call(this, props));
_this.handleBoundary = _this.handleBoundary.bind((0, _assertThisInitialized2["default"])(_this));
_this.handleEnd = _this.handleEnd.bind((0, _assertThisInitialized2["default"])(_this));
_this.handleError = _this.handleError.bind((0, _assertThisInitialized2["default"])(_this));
_this.handleStart = _this.handleStart.bind((0, _assertThisInitialized2["default"])(_this));
_this.state = {
id: Date.now() + Math.random()
};
return _this;
}
(0, _createClass3.default)(SayPrimitive, [{
key: 'componentWillUnmount',
(0, _createClass2["default"])(SayPrimitive, [{
key: "componentWillUnmount",
value: function componentWillUnmount() {
// TODO: Should dequeue self on unmount
this.unmounted = true;
this.props.context.cancel(this.state.id).catch(function (err) {
this.props.context.cancel(this.state.id)["catch"](function (err) {
return 0;

@@ -81,3 +64,3 @@ });

}, {
key: 'handleBoundary',
key: "handleBoundary",
value: function handleBoundary(event) {

@@ -87,3 +70,3 @@ !this.unmounted && this.props.onBoundary && this.props.onBoundary(event);

}, {
key: 'handleEnd',
key: "handleEnd",
value: function handleEnd(event) {

@@ -93,3 +76,3 @@ !this.unmounted && this.props.onEnd && this.props.onEnd(event);

}, {
key: 'handleError',
key: "handleError",
value: function handleError(event) {

@@ -99,3 +82,3 @@ !this.unmounted && this.props.onError && this.props.onError(event);

}, {
key: 'handleStart',
key: "handleStart",
value: function handleStart(event) {

@@ -105,3 +88,3 @@ !this.unmounted && this.props.onStart && this.props.onStart(event);

}, {
key: 'shouldComponentUpdate',
key: "shouldComponentUpdate",
value: function shouldComponentUpdate(nextProps) {

@@ -111,17 +94,17 @@ return nextProps.speak !== this.props.speak;

}, {
key: 'render',
key: "render",
value: function render() {
var _this2 = this;
(0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
var _props, context, lang, pitch, rate, text, voice, volume, id;
(0, _asyncToGenerator2["default"])(
/*#__PURE__*/
_regenerator["default"].mark(function _callee() {
var _this2$props, context, lang, pitch, rate, text, voice, volume, id;
return _regenerator2.default.wrap(function _callee$(_context) {
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_props = _this2.props, context = _props.context, lang = _props.lang, pitch = _props.pitch, rate = _props.rate, text = _props.speak, voice = _props.voice, volume = _props.volume;
_this2$props = _this2.props, context = _this2$props.context, lang = _this2$props.lang, pitch = _this2$props.pitch, rate = _this2$props.rate, text = _this2$props.speak, voice = _this2$props.voice, volume = _this2$props.volume;
id = _this2.state.id;
context.speak({

@@ -142,11 +125,10 @@ id: id,

case 3:
case 'end':
case "end":
return _context.stop();
}
}
}, _callee, _this2);
}))().catch(function (err) {
}, _callee);
}))()["catch"](function (err) {
return console.error(err);
});
return false;

@@ -156,34 +138,26 @@ }

return SayPrimitive;
}(_react2.default.Component);
}(_react["default"].Component);
var SayPrimitiveWithContext = function SayPrimitiveWithContext(props) {
return _react2.default.createElement(
_Context2.default.Consumer,
null,
function (context) {
return _react2.default.createElement(
SayPrimitive,
(0, _extends3.default)({
context: context
}, props),
props.children
);
}
);
return _react["default"].createElement(_Context["default"].Consumer, null, function (context) {
return _react["default"].createElement(SayPrimitive, (0, _extends2["default"])({
context: context
}, props), props.children);
});
};
SayPrimitiveWithContext.propTypes = {
lang: _propTypes2.default.string,
pitch: _propTypes2.default.number,
rate: _propTypes2.default.number,
onBoundary: _propTypes2.default.func,
onEnd: _propTypes2.default.func,
onError: _propTypes2.default.func,
onStart: _propTypes2.default.func,
speak: _propTypes2.default.string,
voice: _propTypes2.default.oneOfType([_propTypes2.default.any, _propTypes2.default.func]),
volume: _propTypes2.default.number
lang: _propTypes["default"].string,
pitch: _propTypes["default"].number,
rate: _propTypes["default"].number,
onBoundary: _propTypes["default"].func,
onEnd: _propTypes["default"].func,
onError: _propTypes["default"].func,
onStart: _propTypes["default"].func,
speak: _propTypes["default"].string,
voice: _propTypes["default"].oneOfType([_propTypes["default"].any, _propTypes["default"].func]),
volume: _propTypes["default"].number
};
exports.default = SayPrimitiveWithContext;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TYXlQcmltaXRpdmUuanMiXSwibmFtZXMiOlsiU2F5UHJpbWl0aXZlIiwicHJvcHMiLCJoYW5kbGVCb3VuZGFyeSIsImJpbmQiLCJoYW5kbGVFbmQiLCJoYW5kbGVFcnJvciIsImhhbmRsZVN0YXJ0Iiwic3RhdGUiLCJpZCIsIkRhdGUiLCJub3ciLCJNYXRoIiwicmFuZG9tIiwidW5tb3VudGVkIiwiY29udGV4dCIsImNhbmNl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R5cGVzLmZ1bmMsXG4gIHNwZWFrOiBQcm9wVHlwZXMuc3RyaW5nLFxuICB2b2ljZTogUHJvcFR5cGVzLm9uZU9mVHlwZShbUHJvcFR5cGVzLmFueSwgUHJvcFR5cGVzLmZ1bmNdKSxcbiAgdm9sdW1lOiBQcm9wVHlwZXMubnVtYmVyXG59O1xuXG5leHBvcnQgZGVmYXVsdCBTYXlQcmltaXRpdmVXaXRoQ29udGV4dFxuIl19
var _default = SayPrimitiveWithContext;
exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9TYXlQcmltaXRpdmUuanMiXSwibmFtZXMiOlsiU2F5UHJpbWl0aXZlIiwicHJvcHMiLCJoYW5kbGVCb3VuZGFyeSIsImJpbmQiLCJoYW5kbGVFbmQiLCJoYW5kbGVFcnJvciIsImhhbmRsZVN0YXJ0Iiwic3RhdGUiLCJpZCIsIkRhdGUiLCJub3ciLCJNYXRoIiwicmFuZG9tIiwidW5tb3VudGVkIiwiY29udGV4dCIsImNhbmNlbCIsImVyciIsImV2ZW50Iiwib25Cb3VuZGFyeSIsIm9uRW5kIiwib25FcnJvciIsIm9uU3RhcnQiLCJuZXh0UHJvcHMiLCJzcGVhayIsImxhbmciLCJwaXRjaCIsInJhdGUiLCJ0ZXh0Iiwidm9pY2UiLCJ2b2x1bWUiLCJjb25zb2xlIiwiZXJyb3IiLCJSZWFjdCIsIkNvbXBvbmVudCIsIlNheVByaW1pdGl2ZVdpdGhDb250ZXh0IiwiY2hpbGRyZW4iLCJwcm9wVHlwZXMiLCJQcm9wVHlwZXMiLCJzdHJpbmciLCJudW1iZXIiLCJmdW5jIiwib25lT2ZUeXBlIiwiYW55Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFFQTs7SUFFTUEsWTs7Ozs7QUFDSix3QkFBWUM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GFydDogUHJvcFR5cGVzLmZ1bmMsXG4gIHNwZWFrOiBQcm9wVHlwZXMuc3RyaW5nLFxuICB2b2ljZTogUHJvcFR5cGVzLm9uZU9mVHlwZShbUHJvcFR5cGVzLmFueSwgUHJvcFR5cGVzLmZ1bmNdKSxcbiAgdm9sdW1lOiBQcm9wVHlwZXMubnVtYmVyXG59O1xuXG5leHBvcnQgZGVmYXVsdCBTYXlQcmltaXRpdmVXaXRoQ29udGV4dFxuIl19

@@ -6,16 +6,10 @@ "use strict";

});
exports["default"] = _default;
var _promise = require("babel-runtime/core-js/promise");
var _promise2 = _interopRequireDefault(_promise);
exports.default = function () {
function _default() {
var ms = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1000;
return new _promise2.default(function (resolve) {
return new Promise(function (resolve) {
return setTimeout(resolve, ms);
});
};
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zbGVlcC5qcyJdLCJuYW1lcyI6WyJtcyIsInNldFRpbWVvdXQiLCJyZXNvbHZlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O2tCQUFlLFlBQXFCO0FBQUEsTUFBWEEsRUFBVyx1RUFBTixJQUFNOztBQUNsQyxTQUFPLHNCQUFZO0FBQUEsV0FBV0MsV0FBV0MsT0FBWCxFQUFvQkYsRUFBcEIsQ0FBWDtBQUFBLEdBQVosQ0FBUDtBQUNELEMiLCJmaWxlIjoic2xlZXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbiAobXMgPSAxMDAwKSB7XG4gIHJldHVybiBuZXcgUHJvbWlzZShyZXNvbHZlID0+IHNldFRpbWVvdXQocmVzb2x2ZSwgbXMpKTtcbn1cbiJdfQ==
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zbGVlcC5qcyJdLCJuYW1lcyI6WyJtcyIsIlByb21pc2UiLCJyZXNvbHZlIiwic2V0VGltZW91dCJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFlLG9CQUFxQjtBQUFBLE1BQVhBLEVBQVcsdUVBQU4sSUFBTTtBQUNsQyxTQUFPLElBQUlDLE9BQUosQ0FBWSxVQUFBQyxPQUFPO0FBQUEsV0FBSUMsVUFBVSxDQUFDRCxPQUFELEVBQVVGLEVBQVYsQ0FBZDtBQUFBLEdBQW5CLENBQVA7QUFDRCIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIChtcyA9IDEwMDApIHtcbiAgcmV0dXJuIG5ldyBQcm9taXNlKHJlc29sdmUgPT4gc2V0VGltZW91dChyZXNvbHZlLCBtcykpO1xufVxuIl19

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -6,9 +6,6 @@ Object.defineProperty(exports, "__esModule", {

});
exports["default"] = _default;
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
exports.default = function (ms) {
return new _promise2.default(function (_, reject) {
function _default(ms) {
return new Promise(function (_, reject) {
return setTimeout(function () {

@@ -18,5 +15,3 @@ return reject(new Error('timed out'));

});
};
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy90aW1lb3V0LmpzIl0sIm5hbWVzIjpbIm1zIiwiXyIsInJlamVjdCIsInNldFRpbWVvdXQiLCJFcnJvciJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztrQkFBZSxVQUFVQSxFQUFWLEVBQWM7QUFDM0IsU0FBTyxzQkFBWSxVQUFDQyxDQUFELEVBQUlDLE1BQUo7QUFBQSxXQUFlQyxXQUFXO0FBQUEsYUFBTUQsT0FBTyxJQUFJRSxLQUFKLENBQVUsV0FBVixDQUFQLENBQU47QUFBQSxLQUFYLEVBQWlESixFQUFqRCxDQUFmO0FBQUEsR0FBWixDQUFQO0FBQ0QsQyIsImZpbGUiOiJ0aW1lb3V0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gKG1zKSB7XG4gIHJldHVybiBuZXcgUHJvbWlzZSgoXywgcmVqZWN0KSA9PiBzZXRUaW1lb3V0KCgpID0+IHJlamVjdChuZXcgRXJyb3IoJ3RpbWVkIG91dCcpKSwgbXMpKTtcbn1cbiJdfQ==
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy90aW1lb3V0LmpzIl0sIm5hbWVzIjpbIm1zIiwiUHJvbWlzZSIsIl8iLCJyZWplY3QiLCJzZXRUaW1lb3V0IiwiRXJyb3IiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBZSxrQkFBVUEsRUFBVixFQUFjO0FBQzNCLFNBQU8sSUFBSUMsT0FBSixDQUFZLFVBQUNDLENBQUQsRUFBSUMsTUFBSjtBQUFBLFdBQWVDLFVBQVUsQ0FBQztBQUFBLGFBQU1ELE1BQU0sQ0FBQyxJQUFJRSxLQUFKLENBQVUsV0FBVixDQUFELENBQVo7QUFBQSxLQUFELEVBQXVDTCxFQUF2QyxDQUF6QjtBQUFBLEdBQVosQ0FBUDtBQUNEIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gKG1zKSB7XG4gIHJldHVybiBuZXcgUHJvbWlzZSgoXywgcmVqZWN0KSA9PiBzZXRUaW1lb3V0KCgpID0+IHJlamVjdChuZXcgRXJyb3IoJ3RpbWVkIG91dCcpKSwgbXMpKTtcbn1cbiJdfQ==
{
"name": "react-say",
"version": "1.1.2-master.fd0600e",
"version": "1.2.0",
"description": "A React component that synthesis text into speech using Web Speech API",

@@ -37,7 +37,7 @@ "keywords": [

"dependencies": {
"babel-runtime": "^6.26.0",
"@babel/runtime": "^7.4.5",
"classnames": "^2.2.6",
"event-as-promise": "^1.0.3",
"glamor": "^2.20.40",
"memoize-one": "^4.0.0"
"memoize-one": "^5.0.4"
},

@@ -48,4 +48,4 @@ "peerDependencies": {

"devDependencies": {
"lerna": "^2.11.0"
"lerna": "^3.14.1"
}
}
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