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

@untemps/react-vocal

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@untemps/react-vocal - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [1.5.0](https://github.com/untemps/react-vocal/compare/v1.4.1...v1.5.0) (2020-12-21)
### Features
* Expose the isListening flag in the function as children ([#30](https://github.com/untemps/react-vocal/issues/30)) ([436df67](https://github.com/untemps/react-vocal/commit/436df67a5e516fa08c6edf3c2cf425f9eb3621e1))
## [1.4.1](https://github.com/untemps/react-vocal/compare/v1.4.0...v1.4.1) (2020-10-22)

@@ -2,0 +9,0 @@

4

dist/index.es.js

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

import e,{useRef as t,useEffect as n,useCallback as r,useState as o,isValidElement as i,cloneElement as a}from"react";import c from"prop-types";function u(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,c,"next",e)}function c(e){d(i,r,o,a,c,"throw",e)}a(void 0)}))}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=function(){var e=y(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=y(regeneratorRuntime.mark((function e(n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.permissions){e.next=4;break}r(new DOMException("Permissions not supported","NOT_FOUND_ERR")),e.next=16;break;case 4:return e.prev=4,e.next=7,navigator.permissions.query({name:t});case 7:o=e.sent,i=function e(t){o.removeEventListener("change",e),S(t.target.state,n,r)},o.addEventListener("change",i),S(o.state,n,r),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(4),r(e.t0);case 16:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(e,t,n){switch(e){case"denied":n(new DOMException("Permission denied","NOT_ALLOWED_ERR"));break;default:t(e)}},_=function(){var e=y(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=y(regeneratorRuntime.mark((function e(r,o){var i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.mediaDevices){e.next=4;break}o(new DOMException("MediaDevices not supported","NOT_FOUND_ERR")),e.next=24;break;case 4:return e.prev=4,e.t0=Promise,e.next=8,w(t);case 8:return e.t1=e.sent,e.next=11,navigator.mediaDevices.getUserMedia(n);case 11:return e.t2=e.sent,e.t3=[e.t1,e.t2],e.next=15,e.t0.all.call(e.t0,e.t3);case 15:i=e.sent,a=b(i,2),c=a[1],r(c),e.next=24;break;case 21:e.prev=21,e.t4=e.catch(4),o(e.t4);case 24:case"end":return e.stop()}}),e,null,[[4,21]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),E=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"_instance",null),f(this,"_listeners",null);var r=e._resolveSpeechRecognition()||{};this._instance=new r,this._listeners={},Object.entries(h(h({},e.defaultOptions),t||{})).forEach((function(t){var r=v(t,2),o=r[0],i=r[1];"grammars"!==o||i||(i=new(e._resolveSpeechGrammarList()||{}));n._instance[o]=i}))}var t,n;return l(e,null,[{key:"isSupported",get:function(){return!!e._resolveSpeechRecognition()},set:function(e){throw new Error("You cannot set isSupported directly.")}}]),l(e,[{key:"start",value:(t=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._instance){e.next=14;break}return e.prev=1,e.next=4,_("microphone",{audio:!0});case 4:if(e.sent){e.next=7;break}throw new Error("Unable to retrieve the stream from media device");case 7:this._instance.start(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),(t=this._listeners.error)&&t(e.t0);case 14:return e.abrupt("return",this);case 15:case"end":return e.stop()}}),e,this,[[1,10]])})),n=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(e){u(i,r,o,a,c,"next",e)}function c(e){u(i,r,o,a,c,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})},{key:"stop",value:function(){return this._instance&&this._instance.stop(),this}},{key:"abort",value:function(){return this._instance&&this._instance.abort(),this}},{key:"addEventListener",value:function(t,n){var r=this;if(this._instance&&this._includesEventType(t)){this._listeners[t]&&this.removeEventListener(t);var o=function(o){var i=[];t===e.eventTypes.RESULT&&o.results&&o.results.length>0&&i.push(o.results[0][0].transcript),n&&n.apply(r,[].concat(i,[o]))};this._instance.addEventListener(t,o),this._listeners[t]=o}return this}},{key:"removeEventListener",value:function(e){var t=this._listeners[e];return this._instance.removeEventListener(e,t),delete this._listeners[e],this}},{key:"cleanup",value:function(){var e=this;return this.stop(),Object.keys(this._listeners).forEach((function(t){return e.removeEventListener(t)})),this._instance=null,this}},{key:"_includesEventType",value:function(t){return!!Object.values(e.eventTypes).find((function(e){return e===t}))}},{key:"instance",get:function(){return this._instance},set:function(e){throw new Error("You cannot set instance directly.")}}],[{key:"_resolveSpeechRecognition",value:function(){return window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition}},{key:"_resolveSpeechGrammarList",value:function(){return window.SpeechGrammarList||window.webkitSpeechGrammarList||window.mozSpeechGrammarList||window.msSpeechGrammarList}}]),e}();f(E,"defaultOptions",{grammars:null,lang:"en-US",continuous:!1,interimResults:!1,maxAlternatives:1,serviceURI:null}),f(E,"eventTypes",{AUDIO_END:"audioend",AUDIO_START:"audiostart",END:"end",ERROR:"error",NO_MATCH:"nomatch",RESULT:"result",SOUND_END:"soundend",SOUND_START:"soundstart",SPEECH_END:"speechend",SPEECH_START:"speechstart",START:"start"});var O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=t(null);n((function(){if(E.isSupported)return a.current=i||new E({lang:e,grammars:o}),function(){a.current.abort(),a.current.cleanup()}}),[e,o,i]);var c=r((function(){a.current&&a.current.start()}),[]),u=r((function(){a.current&&a.current.stop()}),[]),s=r((function(){a.current&&a.current.abort()}),[]),l=r((function(e,t){a.current&&a.current.addEventListener(e,t)}),[]),f=r((function(e,t){a.current&&a.current.removeEventListener(e,t)}),[]),p=r((function(){a.current&&a.current.cleanup()}),[]);return[a,{start:c,stop:u,abort:s,subscribe:l,unsubscribe:f,clean:p}]},R=function(t){var n=t.color,r=t.activeColor,o=t.isActive;return e.createElement("svg",{"data-testid":"__icon-root__",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24"},e.createElement("g",null,e.createElement("path",{"data-testid":"__icon-path__",fill:n,d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),o&&e.createElement("circle",{"data-testid":"__icon-active__",fill:r,cx:"16",cy:"4",r:"4"})))};R.propTypes={color:c.string,activeColor:c.string,isActive:c.bool},R.defaultProps={color:"black",activeColor:"red",isActive:!1};var k=function(c){var u=c.children,s=c.lang,l=c.grammars,f=c.timeout,p=c.ariaLabel,m=c.style,d=c.className,y=c.outlineStyle,b=c.onStart,g=c.onEnd,w=c.onSpeechStart,S=c.onSpeechEnd,_=c.onResult,k=c.onError,x=c.onNoMatch,j=c.__rsInstance,T=t(null),A=v(o(!1),2),L=A[0],P=A[1],D=v(O(s,l,j),2)[1],N=D.start,U=D.stop,C=D.subscribe,M=D.unsubscribe,I=function e(t){H(),B(),M("start",V),M("end",e),M("speechstart",W),M("speechend",J),M("result",K),M("error",Q),M("nomatch",X),g&&g(t)},G=v(function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t(-1),a=r((function(){clearTimeout(i.current),i.current=-1}),[]),c=r((function(){a(),i.current=setTimeout(e,o)}),[e,o,a]);return n((function(){return a}),[a]),[c,a]}(I,f),2),z=G[0],H=G[1],F=function(){try{P(!0),C("start",V),C("end",I),C("speechstart",W),C("speechend",J),C("result",K),C("error",Q),C("nomatch",X),N()}catch(e){Q(e)}},B=function(){try{P(!1),U()}catch(e){k&&k(e)}},Y=function(){F()},$=function(){!d&&y&&(T.current.style.outline=y)},q=function(){!d&&y&&(T.current.style.outline="none")},V=function(e){z(),b&&b(e)},W=function(e){H(),w&&w(e)},J=function(e){z(),S&&S(e)},K=function(e,t){H(),B(),_&&_(e,t)},Q=function(e){B(),k&&k(e)},X=function(e){H(),B(),x&&x(e)};return function(t){return E.isSupported?"function"==typeof t?t(F,B):i(t)?a(t,h({},!L&&{onClick:Y})):e.createElement("button",{"data-testid":"__vocal-root__",ref:T,role:"button","aria-label":p,style:d?null:h({width:24,height:24,background:"none",border:"none",padding:0,cursor:L?"default":"pointer"},m),className:d,onFocus:$,onBlur:q,onClick:Y},e.createElement(R,{isActive:L,iconColor:"#aaa"})):null}(u)};k.propTypes={lang:c.string,grammars:c.object,timeout:c.number,ariaLabel:c.string,style:c.object,className:c.string,outlineStyle:c.string,onStart:c.func,onEnd:c.func,onSpeechStart:c.func,onSpeechEnd:c.func,onResult:c.func,onError:c.func,onNoMatch:c.func},k.defaultProps={lang:"en-US",grammars:null,timeout:3e3,ariaLabel:"start recognition",style:null,className:null,outlineStyle:"2px solid",onStart:null,onEnd:null,onSpeechStart:null,onSpeechEnd:null,onResult:null,onError:null,onNoMatch:null};var x=E.isSupported;export default k;export{x as isSupported,O as useVocal};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZXMuanMiLCJzb3VyY2VzIjpbIi4uL25vZGVfbW9kdWxlcy9AdW50ZW1wcy91c2VyLXBlcm1pc3Npb25zLXV0aWxzL2Rpc3QvaW5kZXguZXMuanMiLCIuLi9zcmMvY29yZS9TcGVlY2hSZWNvZ25pdGlvbldyYXBwZXIuanMiLCIuLi9zcmMvdXRpbHMvaXNGdW5jLmpzIiwiLi4vc3JjL2hvb2tzL3VzZVZvY2FsLmpzIiwiLi4vc3JjL2NvbXBvbmVudHMvSWNvbi5qcyIsIi4uL3NyYy9jb21wb25lbnRzL1ZvY2FsLmpzIiwiLi4vc3JjL2hvb2tzL3VzZVRpbWVvdXQuanMiLCIuL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yxFQUNHLFFBRUFqQixNQUFPLEdBQ1BDLE9BQVEsR0FDUm9ELFdBQVksT0FDWkMsT0FBUSxPQUNSQyxRQUFTLEVBQ1RDLE9BQVM1QixFQUEwQixVQUFaLFdBQ3BCWixHQUdQQyxVQUFXQSxFQUNYd0MsUUFBU1osRUFDVGEsT0FBUVgsRUFDUkksUUFBU1AsR0FFVDlDLGdCQUFDSixHQUFLRyxTQUFVK0IsRUFBYStCLFVBQVUsVUFnQmpDLEtBR0RDLENBQWdCL0MsSUFHeEJELEVBQU1MLFVBQVksQ0FFakJ4QyxLQUFNeUMsRUFBVUMsT0FFaEIzQyxTQUFVMEMsRUFBVXFELE9BRXBCL0MsUUFBU04sRUFBVXNELE9BRW5CL0MsVUFBV1AsRUFBVUMsT0FFckJPLE1BQU9SLEVBQVVxRCxPQUVqQjVDLFVBQVdULEVBQVVDLE9BRXJCUyxhQUFjVixFQUFVQyxPQUV4QlUsUUFBU1gsRUFBVXVELEtBRW5CM0MsTUFBT1osRUFBVXVELEtBRWpCMUMsY0FBZWIsRUFBVXVELEtBRXpCekMsWUFBYWQsRUFBVXVELEtBRXZCeEMsU0FBVWYsRUFBVXVELEtBRXBCdkMsUUFBU2hCLEVBQVV1RCxLQUVuQnRDLFVBQVdqQixFQUFVdUQsTUFHdEJuRCxFQUFNRCxhQUFlLENBQ3BCNUMsS0FBTSxRQUNORCxTQUFVLEtBQ1ZnRCxRQUFTLElBQ1RDLFVBQVcsb0JBQ1hDLE1BQU8sS0FDUEMsVUFBVyxLQUNYQyxhQUFjLFlBQ2RDLFFBQVMsS0FDVEMsTUFBTyxLQUNQQyxjQUFlLEtBQ2ZDLFlBQWEsS0FDYkMsU0FBVSxLQUNWQyxRQUFTLEtBQ1RDLFVBQVcsVUU3TkN0QyxFQUFjakUsRUFBeUJpRSJ9
import e,{useRef as t,useEffect as n,useCallback as r,useState as o,isValidElement as i,cloneElement as a}from"react";import c from"prop-types";function u(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,c,"next",e)}function c(e){d(i,r,o,a,c,"throw",e)}a(void 0)}))}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=function(){var e=y(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=y(regeneratorRuntime.mark((function e(n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.permissions){e.next=4;break}r(new DOMException("Permissions not supported","NOT_FOUND_ERR")),e.next=16;break;case 4:return e.prev=4,e.next=7,navigator.permissions.query({name:t});case 7:o=e.sent,i=function e(t){o.removeEventListener("change",e),S(t.target.state,n,r)},o.addEventListener("change",i),S(o.state,n,r),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(4),r(e.t0);case 16:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(e,t,n){switch(e){case"denied":n(new DOMException("Permission denied","NOT_ALLOWED_ERR"));break;default:t(e)}},_=function(){var e=y(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=y(regeneratorRuntime.mark((function e(r,o){var i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.mediaDevices){e.next=4;break}o(new DOMException("MediaDevices not supported","NOT_FOUND_ERR")),e.next=24;break;case 4:return e.prev=4,e.t0=Promise,e.next=8,w(t);case 8:return e.t1=e.sent,e.next=11,navigator.mediaDevices.getUserMedia(n);case 11:return e.t2=e.sent,e.t3=[e.t1,e.t2],e.next=15,e.t0.all.call(e.t0,e.t3);case 15:i=e.sent,a=b(i,2),c=a[1],r(c),e.next=24;break;case 21:e.prev=21,e.t4=e.catch(4),o(e.t4);case 24:case"end":return e.stop()}}),e,null,[[4,21]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),E=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"_instance",null),f(this,"_listeners",null);var r=e._resolveSpeechRecognition()||{};this._instance=new r,this._listeners={},Object.entries(h(h({},e.defaultOptions),t||{})).forEach((function(t){var r=v(t,2),o=r[0],i=r[1];"grammars"!==o||i||(i=new(e._resolveSpeechGrammarList()||{}));n._instance[o]=i}))}var t,n;return l(e,null,[{key:"isSupported",get:function(){return!!e._resolveSpeechRecognition()},set:function(e){throw new Error("You cannot set isSupported directly.")}}]),l(e,[{key:"start",value:(t=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._instance){e.next=14;break}return e.prev=1,e.next=4,_("microphone",{audio:!0});case 4:if(e.sent){e.next=7;break}throw new Error("Unable to retrieve the stream from media device");case 7:this._instance.start(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),(t=this._listeners.error)&&t(e.t0);case 14:return e.abrupt("return",this);case 15:case"end":return e.stop()}}),e,this,[[1,10]])})),n=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(e){u(i,r,o,a,c,"next",e)}function c(e){u(i,r,o,a,c,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})},{key:"stop",value:function(){return this._instance&&this._instance.stop(),this}},{key:"abort",value:function(){return this._instance&&this._instance.abort(),this}},{key:"addEventListener",value:function(t,n){var r=this;if(this._instance&&this._includesEventType(t)){this._listeners[t]&&this.removeEventListener(t);var o=function(o){var i=[];t===e.eventTypes.RESULT&&o.results&&o.results.length>0&&i.push(o.results[0][0].transcript),n&&n.apply(r,[].concat(i,[o]))};this._instance.addEventListener(t,o),this._listeners[t]=o}return this}},{key:"removeEventListener",value:function(e){var t=this._listeners[e];return this._instance.removeEventListener(e,t),delete this._listeners[e],this}},{key:"cleanup",value:function(){var e=this;return this.stop(),Object.keys(this._listeners).forEach((function(t){return e.removeEventListener(t)})),this._instance=null,this}},{key:"_includesEventType",value:function(t){return!!Object.values(e.eventTypes).find((function(e){return e===t}))}},{key:"instance",get:function(){return this._instance},set:function(e){throw new Error("You cannot set instance directly.")}}],[{key:"_resolveSpeechRecognition",value:function(){return window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition}},{key:"_resolveSpeechGrammarList",value:function(){return window.SpeechGrammarList||window.webkitSpeechGrammarList||window.mozSpeechGrammarList||window.msSpeechGrammarList}}]),e}();f(E,"defaultOptions",{grammars:null,lang:"en-US",continuous:!1,interimResults:!1,maxAlternatives:1,serviceURI:null}),f(E,"eventTypes",{AUDIO_END:"audioend",AUDIO_START:"audiostart",END:"end",ERROR:"error",NO_MATCH:"nomatch",RESULT:"result",SOUND_END:"soundend",SOUND_START:"soundstart",SPEECH_END:"speechend",SPEECH_START:"speechstart",START:"start"});var O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US",o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=t(null);n((function(){if(E.isSupported)return a.current=i||new E({lang:e,grammars:o}),function(){a.current.abort(),a.current.cleanup()}}),[e,o,i]);var c=r((function(){a.current&&a.current.start()}),[]),u=r((function(){a.current&&a.current.stop()}),[]),s=r((function(){a.current&&a.current.abort()}),[]),l=r((function(e,t){a.current&&a.current.addEventListener(e,t)}),[]),f=r((function(e,t){a.current&&a.current.removeEventListener(e,t)}),[]),p=r((function(){a.current&&a.current.cleanup()}),[]);return[a,{start:c,stop:u,abort:s,subscribe:l,unsubscribe:f,clean:p}]},R=function(t){var n=t.color,r=t.activeColor,o=t.isActive;return e.createElement("svg",{"data-testid":"__icon-root__",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24"},e.createElement("g",null,e.createElement("path",{"data-testid":"__icon-path__",fill:n,d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),o&&e.createElement("circle",{"data-testid":"__icon-active__",fill:r,cx:"16",cy:"4",r:"4"})))};R.propTypes={color:c.string,activeColor:c.string,isActive:c.bool},R.defaultProps={color:"black",activeColor:"red",isActive:!1};var k=function(c){var u=c.children,s=c.lang,l=c.grammars,f=c.timeout,p=c.ariaLabel,m=c.style,d=c.className,y=c.outlineStyle,b=c.onStart,g=c.onEnd,w=c.onSpeechStart,S=c.onSpeechEnd,_=c.onResult,k=c.onError,x=c.onNoMatch,j=c.__rsInstance,T=t(null),A=v(o(!1),2),L=A[0],P=A[1],D=v(O(s,l,j),2)[1],N=D.start,U=D.stop,C=D.subscribe,M=D.unsubscribe,I=function e(t){H(),B(),M("start",V),M("end",e),M("speechstart",W),M("speechend",J),M("result",K),M("error",Q),M("nomatch",X),g&&g(t)},G=v(function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t(-1),a=r((function(){clearTimeout(i.current),i.current=-1}),[]),c=r((function(){a(),i.current=setTimeout(e,o)}),[e,o,a]);return n((function(){return a}),[a]),[c,a]}(I,f),2),z=G[0],H=G[1],F=function(){try{P(!0),C("start",V),C("end",I),C("speechstart",W),C("speechend",J),C("result",K),C("error",Q),C("nomatch",X),N()}catch(e){Q(e)}},B=function(){try{P(!1),U()}catch(e){k&&k(e)}},Y=function(){F()},$=function(){!d&&y&&(T.current.style.outline=y)},q=function(){!d&&y&&(T.current.style.outline="none")},V=function(e){z(),b&&b(e)},W=function(e){H(),w&&w(e)},J=function(e){z(),S&&S(e)},K=function(e,t){H(),B(),_&&_(e,t)},Q=function(e){B(),k&&k(e)},X=function(e){H(),B(),x&&x(e)};return function(t){return E.isSupported?"function"==typeof t?t(F,B,L):i(t)?a(t,h({},!L&&{onClick:Y})):e.createElement("button",{"data-testid":"__vocal-root__",ref:T,role:"button","aria-label":p,style:d?null:h({width:24,height:24,background:"none",border:"none",padding:0,cursor:L?"default":"pointer"},m),className:d,onFocus:$,onBlur:q,onClick:Y},e.createElement(R,{isActive:L,iconColor:"#aaa"})):null}(u)};k.propTypes={lang:c.string,grammars:c.object,timeout:c.number,ariaLabel:c.string,style:c.object,className:c.string,outlineStyle:c.string,onStart:c.func,onEnd:c.func,onSpeechStart:c.func,onSpeechEnd:c.func,onResult:c.func,onError:c.func,onNoMatch:c.func},k.defaultProps={lang:"en-US",grammars:null,timeout:3e3,ariaLabel:"start recognition",style:null,className:null,outlineStyle:"2px solid",onStart:null,onEnd:null,onSpeechStart:null,onSpeechEnd:null,onResult:null,onError:null,onNoMatch:null};var x=E.isSupported;export default k;export{x as isSupported,O as useVocal};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZXMuanMiLCJzb3VyY2VzIjpbIi4uL25vZGVfbW9kdWxlcy9AdW50ZW1wcy91c2VyLXBlcm1pc3Npb25zLXV0aWxzL2Rpc3QvaW5kZXguZXMuanMiLCIuLi9zcmMvY29yZS9TcGVlY2hSZWNvZ25pdGlvbldyYXBwZXIuanMiLCIuLi9zcmMvdXRpbHMvaXNGdW5jLmpzIiwiLi4vc3JjL2hvb2tzL3VzZVZvY2FsLmpzIiwiLi4vc3JjL2NvbXBvbmVudHMvSWNvbi5qcyIsIi4uL3NyYy9jb21wb25lbnRzL1ZvY2FsLmpzIiwiLi4vc3JjL2hvb2tzL3VzZVRpbWVvdXQuanMiLCIuLi9zcmMvaW5kZXguanMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gZShlLHIsdCxuLGEsaSxvKXt0cnl7dmFyIHU9ZVtpXShvKSxjPXUudmFsdWV9Y2F0Y2goZSl7cmV0dXJuIHZvaWQgdChlKX11LmRvbmU/cihjKTpQcm9taXNlLnJlc29sdmUoYykudGhlbihuLGEpfWZ1bmN0aW9uIHIocil7cmV0dXJuIGZ1bmN0aW9uKCl7dmFyIHQ9dGhpcyxuPWFyZ3VtZW50cztyZXR1cm4gbmV3IFByb21pc2UoKGZ1bmN0aW9uKGEsaSl7dmFyIG89ci5hcHBseSh0LG4pO2Z1bmN0aW9uIHUocil7ZShvLGEsaSx1LGMsXCJuZXh0XCIscil9ZnVuY3Rpb24gYyhyKXtlKG8sYSxpLHUsYyxcInRocm93XCIscil9dSh2b2lkIDApfSkpfX1mdW5jdGlvbiB0KGUscil7cmV0dXJuIGZ1bmN0aW9uKGUpe2lmKEFycmF5LmlzQXJyYXkoZSkpcmV0dXJuIGV9KGUpfH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BRWpCNUMsVUFBV1QsRUFBVUMsT0FFckJTLGFBQWNWLEVBQVVDLE9BRXhCVSxRQUFTWCxFQUFVdUQsS0FFbkIzQyxNQUFPWixFQUFVdUQsS0FFakIxQyxjQUFlYixFQUFVdUQsS0FFekJ6QyxZQUFhZCxFQUFVdUQsS0FFdkJ4QyxTQUFVZixFQUFVdUQsS0FFcEJ2QyxRQUFTaEIsRUFBVXVELEtBRW5CdEMsVUFBV2pCLEVBQVV1RCxNQUd0Qm5ELEVBQU1ELGFBQWUsQ0FDcEI1QyxLQUFNLFFBQ05ELFNBQVUsS0FDVmdELFFBQVMsSUFDVEMsVUFBVyxvQkFDWEMsTUFBTyxLQUNQQyxVQUFXLEtBQ1hDLGFBQWMsWUFDZEMsUUFBUyxLQUNUQyxNQUFPLEtBQ1BDLGNBQWUsS0FDZkMsWUFBYSxLQUNiQyxTQUFVLEtBQ1ZDLFFBQVMsS0FDVEMsVUFBVyxVRTdOQ3RDLEVBQWNqRSxFQUF5QmlFIn0=

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

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),n=e(t),r=e(require("prop-types"));function o(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,c,"next",e)}function c(e){p(i,r,o,a,c,"throw",e)}a(void 0)}))}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=function(){var e=v(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=v(regeneratorRuntime.mark((function e(n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.permissions){e.next=4;break}r(new DOMException("Permissions not supported","NOT_FOUND_ERR")),e.next=16;break;case 4:return e.prev=4,e.next=7,navigator.permissions.query({name:t});case 7:o=e.sent,i=function e(t){o.removeEventListener("change",e),b(t.target.state,n,r)},o.addEventListener("change",i),b(o.state,n,r),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(4),r(e.t0);case 16:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(e,t,n){switch(e){case"denied":n(new DOMException("Permission denied","NOT_ALLOWED_ERR"));break;default:t(e)}},y=function(){var e=v(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=v(regeneratorRuntime.mark((function e(r,o){var i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.mediaDevices){e.next=4;break}o(new DOMException("MediaDevices not supported","NOT_FOUND_ERR")),e.next=24;break;case 4:return e.prev=4,e.t0=Promise,e.next=8,m(t);case 8:return e.t1=e.sent,e.next=11,navigator.mediaDevices.getUserMedia(n);case 11:return e.t2=e.sent,e.t3=[e.t1,e.t2],e.next=15,e.t0.all.call(e.t0,e.t3);case 15:i=e.sent,a=h(i,2),c=a[1],r(c),e.next=24;break;case 21:e.prev=21,e.t4=e.catch(4),o(e.t4);case 24:case"end":return e.stop()}}),e,null,[[4,21]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),g=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"_instance",null),c(this,"_listeners",null);var r=e._resolveSpeechRecognition()||{};this._instance=new r,this._listeners={},Object.entries(s(s({},e.defaultOptions),t||{})).forEach((function(t){var r=l(t,2),o=r[0],i=r[1];"grammars"!==o||i||(i=new(e._resolveSpeechGrammarList()||{}));n._instance[o]=i}))}var t,n;return a(e,null,[{key:"isSupported",get:function(){return!!e._resolveSpeechRecognition()},set:function(e){throw new Error("You cannot set isSupported directly.")}}]),a(e,[{key:"start",value:(t=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._instance){e.next=14;break}return e.prev=1,e.next=4,y("microphone",{audio:!0});case 4:if(e.sent){e.next=7;break}throw new Error("Unable to retrieve the stream from media device");case 7:this._instance.start(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),(t=this._listeners.error)&&t(e.t0);case 14:return e.abrupt("return",this);case 15:case"end":return e.stop()}}),e,this,[[1,10]])})),n=function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function c(e){o(a,r,i,c,u,"next",e)}function u(e){o(a,r,i,c,u,"throw",e)}c(void 0)}))},function(){return n.apply(this,arguments)})},{key:"stop",value:function(){return this._instance&&this._instance.stop(),this}},{key:"abort",value:function(){return this._instance&&this._instance.abort(),this}},{key:"addEventListener",value:function(t,n){var r=this;if(this._instance&&this._includesEventType(t)){this._listeners[t]&&this.removeEventListener(t);var o=function(o){var i=[];t===e.eventTypes.RESULT&&o.results&&o.results.length>0&&i.push(o.results[0][0].transcript),n&&n.apply(r,[].concat(i,[o]))};this._instance.addEventListener(t,o),this._listeners[t]=o}return this}},{key:"removeEventListener",value:function(e){var t=this._listeners[e];return this._instance.removeEventListener(e,t),delete this._listeners[e],this}},{key:"cleanup",value:function(){var e=this;return this.stop(),Object.keys(this._listeners).forEach((function(t){return e.removeEventListener(t)})),this._instance=null,this}},{key:"_includesEventType",value:function(t){return!!Object.values(e.eventTypes).find((function(e){return e===t}))}},{key:"instance",get:function(){return this._instance},set:function(e){throw new Error("You cannot set instance directly.")}}],[{key:"_resolveSpeechRecognition",value:function(){return window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition}},{key:"_resolveSpeechGrammarList",value:function(){return window.SpeechGrammarList||window.webkitSpeechGrammarList||window.mozSpeechGrammarList||window.msSpeechGrammarList}}]),e}();c(g,"defaultOptions",{grammars:null,lang:"en-US",continuous:!1,interimResults:!1,maxAlternatives:1,serviceURI:null}),c(g,"eventTypes",{AUDIO_END:"audioend",AUDIO_START:"audiostart",END:"end",ERROR:"error",NO_MATCH:"nomatch",RESULT:"result",SOUND_END:"soundend",SOUND_START:"soundstart",SPEECH_END:"speechend",SPEECH_START:"speechstart",START:"start"});var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=t.useRef(null);t.useEffect((function(){if(g.isSupported)return o.current=r||new g({lang:e,grammars:n}),function(){o.current.abort(),o.current.cleanup()}}),[e,n,r]);var i=t.useCallback((function(){o.current&&o.current.start()}),[]),a=t.useCallback((function(){o.current&&o.current.stop()}),[]),c=t.useCallback((function(){o.current&&o.current.abort()}),[]),u=t.useCallback((function(e,t){o.current&&o.current.addEventListener(e,t)}),[]),s=t.useCallback((function(e,t){o.current&&o.current.removeEventListener(e,t)}),[]),l=t.useCallback((function(){o.current&&o.current.cleanup()}),[]);return[o,{start:i,stop:a,abort:c,subscribe:u,unsubscribe:s,clean:l}]},S=function(e){var t=e.color,r=e.activeColor,o=e.isActive;return n.createElement("svg",{"data-testid":"__icon-root__",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24"},n.createElement("g",null,n.createElement("path",{"data-testid":"__icon-path__",fill:t,d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),o&&n.createElement("circle",{"data-testid":"__icon-active__",fill:r,cx:"16",cy:"4",r:"4"})))};S.propTypes={color:r.string,activeColor:r.string,isActive:r.bool},S.defaultProps={color:"black",activeColor:"red",isActive:!1};var _=function(e){var r=e.children,o=e.lang,i=e.grammars,a=e.timeout,c=e.ariaLabel,u=e.style,f=e.className,p=e.outlineStyle,v=e.onStart,h=e.onEnd,d=e.onSpeechStart,m=e.onSpeechEnd,b=e.onResult,y=e.onError,_=e.onNoMatch,E=e.__rsInstance,O=t.useRef(null),k=l(t.useState(!1),2),R=k[0],x=k[1],j=l(w(o,i,E),2)[1],T=j.start,A=j.stop,L=j.subscribe,P=j.unsubscribe,D=function e(t){U(),I(),P("start",q),P("end",e),P("speechstart",F),P("speechend",V),P("result",B),P("error",Y),P("nomatch",$),h&&h(t)},C=l(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.useRef(-1),o=t.useCallback((function(){clearTimeout(r.current),r.current=-1}),[]),i=t.useCallback((function(){o(),r.current=setTimeout(e,n)}),[e,n,o]);return t.useEffect((function(){return o}),[o]),[i,o]}(D,a),2),N=C[0],U=C[1],M=function(){try{x(!0),L("start",q),L("end",D),L("speechstart",F),L("speechend",V),L("result",B),L("error",Y),L("nomatch",$),T()}catch(e){Y(e)}},I=function(){try{x(!1),A()}catch(e){y&&y(e)}},G=function(){M()},z=function(){!f&&p&&(O.current.style.outline=p)},H=function(){!f&&p&&(O.current.style.outline="none")},q=function(e){N(),v&&v(e)},F=function(e){U(),d&&d(e)},V=function(e){N(),m&&m(e)},B=function(e,t){U(),I(),b&&b(e,t)},Y=function(e){I(),y&&y(e)},$=function(e){U(),I(),_&&_(e)};return function(e){return g.isSupported?"function"==typeof e?e(M,I):t.isValidElement(e)?t.cloneElement(e,s({},!R&&{onClick:G})):n.createElement("button",{"data-testid":"__vocal-root__",ref:O,role:"button","aria-label":c,style:f?null:s({width:24,height:24,background:"none",border:"none",padding:0,cursor:R?"default":"pointer"},u),className:f,onFocus:z,onBlur:H,onClick:G},n.createElement(S,{isActive:R,iconColor:"#aaa"})):null}(r)};_.propTypes={lang:r.string,grammars:r.object,timeout:r.number,ariaLabel:r.string,style:r.object,className:r.string,outlineStyle:r.string,onStart:r.func,onEnd:r.func,onSpeechStart:r.func,onSpeechEnd:r.func,onResult:r.func,onError:r.func,onNoMatch:r.func},_.defaultProps={lang:"en-US",grammars:null,timeout:3e3,ariaLabel:"start recognition",style:null,className:null,outlineStyle:"2px solid",onStart:null,onEnd:null,onSpeechStart:null,onSpeechEnd:null,onResult:null,onError:null,onNoMatch:null};var E=g.isSupported;exports.default=_,exports.isSupported=E,exports.useVocal=w;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbIi4uL25vZGVfbW9kdWxlcy9AdW50ZW1wcy91c2VyLXBlcm1pc3Npb25zLXV0aWxzL2Rpc3QvaW5kZXguZXMuanMiLCIuLi9zcmMvY29yZS9TcGVlY2hSZWNvZ25pdGlvbldyYXBwZXIu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1BQU8sS0FDUEMsY0FBZSxLQUNmQyxZQUFhLEtBQ2JDLFNBQVUsS0FDVkMsUUFBUyxLQUNUQyxVQUFXLFVFN05DdEMsRUFBY2pFLEVBQXlCaUUifQ==
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),n=e(t),r=e(require("prop-types"));function o(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,c,"next",e)}function c(e){p(i,r,o,a,c,"throw",e)}a(void 0)}))}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=function(){var e=v(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=v(regeneratorRuntime.mark((function e(n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.permissions){e.next=4;break}r(new DOMException("Permissions not supported","NOT_FOUND_ERR")),e.next=16;break;case 4:return e.prev=4,e.next=7,navigator.permissions.query({name:t});case 7:o=e.sent,i=function e(t){o.removeEventListener("change",e),b(t.target.state,n,r)},o.addEventListener("change",i),b(o.state,n,r),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(4),r(e.t0);case 16:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(e,t,n){switch(e){case"denied":n(new DOMException("Permission denied","NOT_ALLOWED_ERR"));break;default:t(e)}},y=function(){var e=v(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=v(regeneratorRuntime.mark((function e(r,o){var i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.mediaDevices){e.next=4;break}o(new DOMException("MediaDevices not supported","NOT_FOUND_ERR")),e.next=24;break;case 4:return e.prev=4,e.t0=Promise,e.next=8,m(t);case 8:return e.t1=e.sent,e.next=11,navigator.mediaDevices.getUserMedia(n);case 11:return e.t2=e.sent,e.t3=[e.t1,e.t2],e.next=15,e.t0.all.call(e.t0,e.t3);case 15:i=e.sent,a=h(i,2),c=a[1],r(c),e.next=24;break;case 21:e.prev=21,e.t4=e.catch(4),o(e.t4);case 24:case"end":return e.stop()}}),e,null,[[4,21]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),g=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"_instance",null),c(this,"_listeners",null);var r=e._resolveSpeechRecognition()||{};this._instance=new r,this._listeners={},Object.entries(s(s({},e.defaultOptions),t||{})).forEach((function(t){var r=l(t,2),o=r[0],i=r[1];"grammars"!==o||i||(i=new(e._resolveSpeechGrammarList()||{}));n._instance[o]=i}))}var t,n;return a(e,null,[{key:"isSupported",get:function(){return!!e._resolveSpeechRecognition()},set:function(e){throw new Error("You cannot set isSupported directly.")}}]),a(e,[{key:"start",value:(t=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._instance){e.next=14;break}return e.prev=1,e.next=4,y("microphone",{audio:!0});case 4:if(e.sent){e.next=7;break}throw new Error("Unable to retrieve the stream from media device");case 7:this._instance.start(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),(t=this._listeners.error)&&t(e.t0);case 14:return e.abrupt("return",this);case 15:case"end":return e.stop()}}),e,this,[[1,10]])})),n=function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function c(e){o(a,r,i,c,u,"next",e)}function u(e){o(a,r,i,c,u,"throw",e)}c(void 0)}))},function(){return n.apply(this,arguments)})},{key:"stop",value:function(){return this._instance&&this._instance.stop(),this}},{key:"abort",value:function(){return this._instance&&this._instance.abort(),this}},{key:"addEventListener",value:function(t,n){var r=this;if(this._instance&&this._includesEventType(t)){this._listeners[t]&&this.removeEventListener(t);var o=function(o){var i=[];t===e.eventTypes.RESULT&&o.results&&o.results.length>0&&i.push(o.results[0][0].transcript),n&&n.apply(r,[].concat(i,[o]))};this._instance.addEventListener(t,o),this._listeners[t]=o}return this}},{key:"removeEventListener",value:function(e){var t=this._listeners[e];return this._instance.removeEventListener(e,t),delete this._listeners[e],this}},{key:"cleanup",value:function(){var e=this;return this.stop(),Object.keys(this._listeners).forEach((function(t){return e.removeEventListener(t)})),this._instance=null,this}},{key:"_includesEventType",value:function(t){return!!Object.values(e.eventTypes).find((function(e){return e===t}))}},{key:"instance",get:function(){return this._instance},set:function(e){throw new Error("You cannot set instance directly.")}}],[{key:"_resolveSpeechRecognition",value:function(){return window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition}},{key:"_resolveSpeechGrammarList",value:function(){return window.SpeechGrammarList||window.webkitSpeechGrammarList||window.mozSpeechGrammarList||window.msSpeechGrammarList}}]),e}();c(g,"defaultOptions",{grammars:null,lang:"en-US",continuous:!1,interimResults:!1,maxAlternatives:1,serviceURI:null}),c(g,"eventTypes",{AUDIO_END:"audioend",AUDIO_START:"audiostart",END:"end",ERROR:"error",NO_MATCH:"nomatch",RESULT:"result",SOUND_END:"soundend",SOUND_START:"soundstart",SPEECH_END:"speechend",SPEECH_START:"speechstart",START:"start"});var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=t.useRef(null);t.useEffect((function(){if(g.isSupported)return o.current=r||new g({lang:e,grammars:n}),function(){o.current.abort(),o.current.cleanup()}}),[e,n,r]);var i=t.useCallback((function(){o.current&&o.current.start()}),[]),a=t.useCallback((function(){o.current&&o.current.stop()}),[]),c=t.useCallback((function(){o.current&&o.current.abort()}),[]),u=t.useCallback((function(e,t){o.current&&o.current.addEventListener(e,t)}),[]),s=t.useCallback((function(e,t){o.current&&o.current.removeEventListener(e,t)}),[]),l=t.useCallback((function(){o.current&&o.current.cleanup()}),[]);return[o,{start:i,stop:a,abort:c,subscribe:u,unsubscribe:s,clean:l}]},S=function(e){var t=e.color,r=e.activeColor,o=e.isActive;return n.createElement("svg",{"data-testid":"__icon-root__",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24"},n.createElement("g",null,n.createElement("path",{"data-testid":"__icon-path__",fill:t,d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),o&&n.createElement("circle",{"data-testid":"__icon-active__",fill:r,cx:"16",cy:"4",r:"4"})))};S.propTypes={color:r.string,activeColor:r.string,isActive:r.bool},S.defaultProps={color:"black",activeColor:"red",isActive:!1};var _=function(e){var r=e.children,o=e.lang,i=e.grammars,a=e.timeout,c=e.ariaLabel,u=e.style,f=e.className,p=e.outlineStyle,v=e.onStart,h=e.onEnd,d=e.onSpeechStart,m=e.onSpeechEnd,b=e.onResult,y=e.onError,_=e.onNoMatch,E=e.__rsInstance,O=t.useRef(null),k=l(t.useState(!1),2),R=k[0],x=k[1],j=l(w(o,i,E),2)[1],T=j.start,A=j.stop,L=j.subscribe,P=j.unsubscribe,D=function e(t){U(),I(),P("start",q),P("end",e),P("speechstart",F),P("speechend",V),P("result",B),P("error",Y),P("nomatch",$),h&&h(t)},C=l(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.useRef(-1),o=t.useCallback((function(){clearTimeout(r.current),r.current=-1}),[]),i=t.useCallback((function(){o(),r.current=setTimeout(e,n)}),[e,n,o]);return t.useEffect((function(){return o}),[o]),[i,o]}(D,a),2),N=C[0],U=C[1],M=function(){try{x(!0),L("start",q),L("end",D),L("speechstart",F),L("speechend",V),L("result",B),L("error",Y),L("nomatch",$),T()}catch(e){Y(e)}},I=function(){try{x(!1),A()}catch(e){y&&y(e)}},G=function(){M()},z=function(){!f&&p&&(O.current.style.outline=p)},H=function(){!f&&p&&(O.current.style.outline="none")},q=function(e){N(),v&&v(e)},F=function(e){U(),d&&d(e)},V=function(e){N(),m&&m(e)},B=function(e,t){U(),I(),b&&b(e,t)},Y=function(e){I(),y&&y(e)},$=function(e){U(),I(),_&&_(e)};return function(e){return g.isSupported?"function"==typeof e?e(M,I,R):t.isValidElement(e)?t.cloneElement(e,s({},!R&&{onClick:G})):n.createElement("button",{"data-testid":"__vocal-root__",ref:O,role:"button","aria-label":c,style:f?null:s({width:24,height:24,background:"none",border:"none",padding:0,cursor:R?"default":"pointer"},u),className:f,onFocus:z,onBlur:H,onClick:G},n.createElement(S,{isActive:R,iconColor:"#aaa"})):null}(r)};_.propTypes={lang:r.string,grammars:r.object,timeout:r.number,ariaLabel:r.string,style:r.object,className:r.string,outlineStyle:r.string,onStart:r.func,onEnd:r.func,onSpeechStart:r.func,onSpeechEnd:r.func,onResult:r.func,onError:r.func,onNoMatch:r.func},_.defaultProps={lang:"en-US",grammars:null,timeout:3e3,ariaLabel:"start recognition",style:null,className:null,outlineStyle:"2px solid",onStart:null,onEnd:null,onSpeechStart:null,onSpeechEnd:null,onResult:null,onError:null,onNoMatch:null};var E=g.isSupported;exports.default=_,exports.isSupported=E,exports.useVocal=w;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbIi4uL25vZGVfbW9kdWxlcy9AdW50ZW1wcy91c2VyLXBlcm1pc3Npb25zLXV0aWxzL2Rpc3QvaW5kZXguZXMuanMiLCIuLi9zcmMvY29yZS9TcGVlY2hSZWNvZ25pdGlvbldyYXBwZXIuanMiLCIuLi9zcmMvdXRpbHMvaXNGdW5jLmpzIiwiLi4vc3JjL2hvb2tzL3VzZVZvY2FsLmpzIiwiLi4vc3JjL2NvbXBvbmVudHMvSWNvbi5qcyIsIi4uL3NyYy9jb21wb25lbnRzL1ZvY2FsLmpzIiwiLi4vc3JjL2hvb2tzL3VzZVRpbWVvdXQuanMiLCIuLi9zcmMvaW5kZXguanMiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gZShlLHIsdCxuLGEsaSxvKXt0cnl7dmFyIHU9ZVtpXShvKSxjPXUudmFsdWV9Y2F0Y2goZSl7cmV0dXJuIHZvaWQgdChlKX11LmRvbmU/cihjKTpQcm9taXNlLnJlc29sdmUoYykudGhlbihuLGEpfWZ1bmN0aW9uIHIocil7cmV0dXJuIGZ1bmN0aW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HQUdQQyxVQUFXQSxFQUNYd0MsUUFBU1osRUFDVGEsT0FBUVgsRUFDUkksUUFBU1AsR0FFVDlDLGdCQUFDSixHQUFLRyxTQUFVK0IsRUFBYStCLFVBQVUsVUFnQmpDLEtBR0RDLENBQWdCL0MsSUFHeEJELEVBQU1MLFVBQVksQ0FFakJ4QyxLQUFNeUMsRUFBVUMsT0FFaEIzQyxTQUFVMEMsRUFBVXFELE9BRXBCL0MsUUFBU04sRUFBVXNELE9BRW5CL0MsVUFBV1AsRUFBVUMsT0FFckJPLE1BQU9SLEVBQVVxRCxPQUVqQjVDLFVBQVdULEVBQVVDLE9BRXJCUyxhQUFjVixFQUFVQyxPQUV4QlUsUUFBU1gsRUFBVXVELEtBRW5CM0MsTUFBT1osRUFBVXVELEtBRWpCMUMsY0FBZWIsRUFBVXVELEtBRXpCekMsWUFBYWQsRUFBVXVELEtBRXZCeEMsU0FBVWYsRUFBVXVELEtBRXBCdkMsUUFBU2hCLEVBQVV1RCxLQUVuQnRDLFVBQVdqQixFQUFVdUQsTUFHdEJuRCxFQUFNRCxhQUFlLENBQ3BCNUMsS0FBTSxRQUNORCxTQUFVLEtBQ1ZnRCxRQUFTLElBQ1RDLFVBQVcsb0JBQ1hDLE1BQU8sS0FDUEMsVUFBVyxLQUNYQyxhQUFjLFlBQ2RDLFFBQVMsS0FDVEMsTUFBTyxLQUNQQyxjQUFlLEtBQ2ZDLFlBQWEsS0FDYkMsU0FBVSxLQUNWQyxRQUFTLEtBQ1RDLFVBQVcsVUU3TkN0QyxFQUFjakUsRUFBeUJpRSJ9

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","prop-types"],t):t((e=e||self)["react-vocal"]={},e.React,e.PropTypes)}(this,(function(e,t,n){"use strict";var r="default"in t?t.default:t;function o(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,c,"next",e)}function c(e){p(i,r,o,a,c,"throw",e)}a(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var m=function(){var e=h(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=h(regeneratorRuntime.mark((function e(n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.permissions){e.next=4;break}r(new DOMException("Permissions not supported","NOT_FOUND_ERR")),e.next=16;break;case 4:return e.prev=4,e.next=7,navigator.permissions.query({name:t});case 7:o=e.sent,i=function e(t){o.removeEventListener("change",e),y(t.target.state,n,r)},o.addEventListener("change",i),y(o.state,n,r),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(4),r(e.t0);case 16:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(e,t,n){switch(e){case"denied":n(new DOMException("Permission denied","NOT_ALLOWED_ERR"));break;default:t(e)}},b=function(){var e=h(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=h(regeneratorRuntime.mark((function e(r,o){var i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.mediaDevices){e.next=4;break}o(new DOMException("MediaDevices not supported","NOT_FOUND_ERR")),e.next=24;break;case 4:return e.prev=4,e.t0=Promise,e.next=8,m(t);case 8:return e.t1=e.sent,e.next=11,navigator.mediaDevices.getUserMedia(n);case 11:return e.t2=e.sent,e.t3=[e.t1,e.t2],e.next=15,e.t0.all.call(e.t0,e.t3);case 15:i=e.sent,a=v(i,2),c=a[1],r(c),e.next=24;break;case 21:e.prev=21,e.t4=e.catch(4),o(e.t4);case 24:case"end":return e.stop()}}),e,null,[[4,21]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),g=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"_instance",null),c(this,"_listeners",null);var r=e._resolveSpeechRecognition()||{};this._instance=new r,this._listeners={},Object.entries(s(s({},e.defaultOptions),t||{})).forEach((function(t){var r=l(t,2),o=r[0],i=r[1];"grammars"!==o||i||(i=new(e._resolveSpeechGrammarList()||{}));n._instance[o]=i}))}var t,n;return a(e,null,[{key:"isSupported",get:function(){return!!e._resolveSpeechRecognition()},set:function(e){throw new Error("You cannot set isSupported directly.")}}]),a(e,[{key:"start",value:(t=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._instance){e.next=14;break}return e.prev=1,e.next=4,b("microphone",{audio:!0});case 4:if(e.sent){e.next=7;break}throw new Error("Unable to retrieve the stream from media device");case 7:this._instance.start(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),(t=this._listeners.error)&&t(e.t0);case 14:return e.abrupt("return",this);case 15:case"end":return e.stop()}}),e,this,[[1,10]])})),n=function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function c(e){o(a,r,i,c,u,"next",e)}function u(e){o(a,r,i,c,u,"throw",e)}c(void 0)}))},function(){return n.apply(this,arguments)})},{key:"stop",value:function(){return this._instance&&this._instance.stop(),this}},{key:"abort",value:function(){return this._instance&&this._instance.abort(),this}},{key:"addEventListener",value:function(t,n){var r=this;if(this._instance&&this._includesEventType(t)){this._listeners[t]&&this.removeEventListener(t);var o=function(o){var i=[];t===e.eventTypes.RESULT&&o.results&&o.results.length>0&&i.push(o.results[0][0].transcript),n&&n.apply(r,[].concat(i,[o]))};this._instance.addEventListener(t,o),this._listeners[t]=o}return this}},{key:"removeEventListener",value:function(e){var t=this._listeners[e];return this._instance.removeEventListener(e,t),delete this._listeners[e],this}},{key:"cleanup",value:function(){var e=this;return this.stop(),Object.keys(this._listeners).forEach((function(t){return e.removeEventListener(t)})),this._instance=null,this}},{key:"_includesEventType",value:function(t){return!!Object.values(e.eventTypes).find((function(e){return e===t}))}},{key:"instance",get:function(){return this._instance},set:function(e){throw new Error("You cannot set instance directly.")}}],[{key:"_resolveSpeechRecognition",value:function(){return window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition}},{key:"_resolveSpeechGrammarList",value:function(){return window.SpeechGrammarList||window.webkitSpeechGrammarList||window.mozSpeechGrammarList||window.msSpeechGrammarList}}]),e}();c(g,"defaultOptions",{grammars:null,lang:"en-US",continuous:!1,interimResults:!1,maxAlternatives:1,serviceURI:null}),c(g,"eventTypes",{AUDIO_END:"audioend",AUDIO_START:"audiostart",END:"end",ERROR:"error",NO_MATCH:"nomatch",RESULT:"result",SOUND_END:"soundend",SOUND_START:"soundstart",SPEECH_END:"speechend",SPEECH_START:"speechstart",START:"start"});var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=t.useRef(null);t.useEffect((function(){if(g.isSupported)return o.current=r||new g({lang:e,grammars:n}),function(){o.current.abort(),o.current.cleanup()}}),[e,n,r]);var i=t.useCallback((function(){o.current&&o.current.start()}),[]),a=t.useCallback((function(){o.current&&o.current.stop()}),[]),c=t.useCallback((function(){o.current&&o.current.abort()}),[]),u=t.useCallback((function(e,t){o.current&&o.current.addEventListener(e,t)}),[]),s=t.useCallback((function(e,t){o.current&&o.current.removeEventListener(e,t)}),[]),l=t.useCallback((function(){o.current&&o.current.cleanup()}),[]);return[o,{start:i,stop:a,abort:c,subscribe:u,unsubscribe:s,clean:l}]},S=function(e){var t=e.color,n=e.activeColor,o=e.isActive;return r.createElement("svg",{"data-testid":"__icon-root__",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{"data-testid":"__icon-path__",fill:t,d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),o&&r.createElement("circle",{"data-testid":"__icon-active__",fill:n,cx:"16",cy:"4",r:"4"})))};S.propTypes={color:n.string,activeColor:n.string,isActive:n.bool},S.defaultProps={color:"black",activeColor:"red",isActive:!1};var _=function(e){var n=e.children,o=e.lang,i=e.grammars,a=e.timeout,c=e.ariaLabel,u=e.style,f=e.className,p=e.outlineStyle,h=e.onStart,v=e.onEnd,d=e.onSpeechStart,m=e.onSpeechEnd,y=e.onResult,b=e.onError,_=e.onNoMatch,E=e.__rsInstance,O=t.useRef(null),k=l(t.useState(!1),2),R=k[0],x=k[1],j=l(w(o,i,E),2)[1],T=j.start,P=j.stop,A=j.subscribe,L=j.unsubscribe,D=function e(t){U(),I(),L("start",q),L("end",e),L("speechstart",F),L("speechend",V),L("result",B),L("error",Y),L("nomatch",$),v&&v(t)},C=l(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.useRef(-1),o=t.useCallback((function(){clearTimeout(r.current),r.current=-1}),[]),i=t.useCallback((function(){o(),r.current=setTimeout(e,n)}),[e,n,o]);return t.useEffect((function(){return o}),[o]),[i,o]}(D,a),2),N=C[0],U=C[1],M=function(){try{x(!0),A("start",q),A("end",D),A("speechstart",F),A("speechend",V),A("result",B),A("error",Y),A("nomatch",$),T()}catch(e){Y(e)}},I=function(){try{x(!1),P()}catch(e){b&&b(e)}},G=function(){M()},z=function(){!f&&p&&(O.current.style.outline=p)},H=function(){!f&&p&&(O.current.style.outline="none")},q=function(e){N(),h&&h(e)},F=function(e){U(),d&&d(e)},V=function(e){N(),m&&m(e)},B=function(e,t){U(),I(),y&&y(e,t)},Y=function(e){I(),b&&b(e)},$=function(e){U(),I(),_&&_(e)};return function(e){return g.isSupported?"function"==typeof e?e(M,I):t.isValidElement(e)?t.cloneElement(e,s({},!R&&{onClick:G})):r.createElement("button",{"data-testid":"__vocal-root__",ref:O,role:"button","aria-label":c,style:f?null:s({width:24,height:24,background:"none",border:"none",padding:0,cursor:R?"default":"pointer"},u),className:f,onFocus:z,onBlur:H,onClick:G},r.createElement(S,{isActive:R,iconColor:"#aaa"})):null}(n)};_.propTypes={lang:n.string,grammars:n.object,timeout:n.number,ariaLabel:n.string,style:n.object,className:n.string,outlineStyle:n.string,onStart:n.func,onEnd:n.func,onSpeechStart:n.func,onSpeechEnd:n.func,onResult:n.func,onError:n.func,onNoMatch:n.func},_.defaultProps={lang:"en-US",grammars:null,timeout:3e3,ariaLabel:"start recognition",style:null,className:null,outlineStyle:"2px solid",onStart:null,onEnd:null,onSpeechStart:null,onSpeechEnd:null,onResult:null,onError:null,onNoMatch:null};var E=g.isSupported;e.default=_,e.isSupported=E,e.useVocal=w,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgudW1kLmpzIiwic291cmNlcyI6WyIuLi9ub2RlX21vZHVsZXMvQHVudGVtcHMvdXNlci1wZXJtaXNzaW9ucy11dGlscy9kaXN0L2luZGV4LmVzLmpzIiwiLi4vc3JjL2NvcmUvU3BlZWNoUmVjb2duaXRpb25XcmFwcGVyLmpzIiwiLi4vc3JjL2hvb2tzL3VzZVZvY2FsLmpzIiwiLi4vc3JjL2NvbXBvbmVudHMvSWNvbi5qcyIsIi4uL3NyYy9jb21wb25lbnRzL1ZvY2FsLmpzIiwiLi4vc3JjL2hvb2tzL3VzZVRpbWVvdXQuanMiLCIuLi9zcmMvdXRpbHMvaXNGdW5jLmpzIiwiLi4vc3JjL2luZGV4LmpzIl0sInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIGUoZSxyLHQsbixhLGksbyl7dHJ5e3ZhciB1PWVbaV0obyksYz11LnZhbHVlfWNhdGNoKGUpe3JldHVybiB2b2lkIHQoZSl9dS5kb25lP3IoYyk6UHJvbWlzZS5yZXNvbHZlKGMpLnRoZW4obixhKX1mdW5jdGlvbiByKHIpe3JldHVybiBmdW5jdGlvbigpe3ZhciB0PXRoaXMsbj1hcmd1bWVudHM7cmV0dXJuIG5ldyBQcm9taXNlKChmdW5jdGlvbihhLGkpe3ZhciBvPXIuYXBwbHkodCxuKTtmdW5jdGlvbiB1KHIpe2UobyxhLGksdSxjLFwibmV4dFwiLHIpfWZ1bmN0aW9uIGMocil7ZShvLGEsaSx1LGMsXCJ0aHJvd1wiLHIp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FVcUQsT0FFakI1QyxVQUFXVCxFQUFVQyxPQUVyQlMsYUFBY1YsRUFBVUMsT0FFeEJVLFFBQVNYLEVBQVV1RCxLQUVuQjNDLE1BQU9aLEVBQVV1RCxLQUVqQjFDLGNBQWViLEVBQVV1RCxLQUV6QnpDLFlBQWFkLEVBQVV1RCxLQUV2QnhDLFNBQVVmLEVBQVV1RCxLQUVwQnZDLFFBQVNoQixFQUFVdUQsS0FFbkJ0QyxVQUFXakIsRUFBVXVELE1BR3RCbkQsRUFBTUQsYUFBZSxDQUNwQjVDLEtBQU0sUUFDTkQsU0FBVSxLQUNWZ0QsUUFBUyxJQUNUQyxVQUFXLG9CQUNYQyxNQUFPLEtBQ1BDLFVBQVcsS0FDWEMsYUFBYyxZQUNkQyxRQUFTLEtBQ1RDLE1BQU8sS0FDUEMsY0FBZSxLQUNmQyxZQUFhLEtBQ2JDLFNBQVUsS0FDVkMsUUFBUyxLQUNUQyxVQUFXLFVHN05DdEMsRUFBY2pFLEVBQXlCaUUifQ==
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","prop-types"],t):t((e=e||self)["react-vocal"]={},e.React,e.PropTypes)}(this,(function(e,t,n){"use strict";var r="default"in t?t.default:t;function o(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,c,"next",e)}function c(e){p(i,r,o,a,c,"throw",e)}a(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var m=function(){var e=h(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=h(regeneratorRuntime.mark((function e(n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.permissions){e.next=4;break}r(new DOMException("Permissions not supported","NOT_FOUND_ERR")),e.next=16;break;case 4:return e.prev=4,e.next=7,navigator.permissions.query({name:t});case 7:o=e.sent,i=function e(t){o.removeEventListener("change",e),y(t.target.state,n,r)},o.addEventListener("change",i),y(o.state,n,r),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(4),r(e.t0);case 16:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),y=function(e,t,n){switch(e){case"denied":n(new DOMException("Permission denied","NOT_ALLOWED_ERR"));break;default:t(e)}},b=function(){var e=h(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=h(regeneratorRuntime.mark((function e(r,o){var i,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.mediaDevices){e.next=4;break}o(new DOMException("MediaDevices not supported","NOT_FOUND_ERR")),e.next=24;break;case 4:return e.prev=4,e.t0=Promise,e.next=8,m(t);case 8:return e.t1=e.sent,e.next=11,navigator.mediaDevices.getUserMedia(n);case 11:return e.t2=e.sent,e.t3=[e.t1,e.t2],e.next=15,e.t0.all.call(e.t0,e.t3);case 15:i=e.sent,a=v(i,2),c=a[1],r(c),e.next=24;break;case 21:e.prev=21,e.t4=e.catch(4),o(e.t4);case 24:case"end":return e.stop()}}),e,null,[[4,21]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),g=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"_instance",null),c(this,"_listeners",null);var r=e._resolveSpeechRecognition()||{};this._instance=new r,this._listeners={},Object.entries(s(s({},e.defaultOptions),t||{})).forEach((function(t){var r=l(t,2),o=r[0],i=r[1];"grammars"!==o||i||(i=new(e._resolveSpeechGrammarList()||{}));n._instance[o]=i}))}var t,n;return a(e,null,[{key:"isSupported",get:function(){return!!e._resolveSpeechRecognition()},set:function(e){throw new Error("You cannot set isSupported directly.")}}]),a(e,[{key:"start",value:(t=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._instance){e.next=14;break}return e.prev=1,e.next=4,b("microphone",{audio:!0});case 4:if(e.sent){e.next=7;break}throw new Error("Unable to retrieve the stream from media device");case 7:this._instance.start(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),(t=this._listeners.error)&&t(e.t0);case 14:return e.abrupt("return",this);case 15:case"end":return e.stop()}}),e,this,[[1,10]])})),n=function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function c(e){o(a,r,i,c,u,"next",e)}function u(e){o(a,r,i,c,u,"throw",e)}c(void 0)}))},function(){return n.apply(this,arguments)})},{key:"stop",value:function(){return this._instance&&this._instance.stop(),this}},{key:"abort",value:function(){return this._instance&&this._instance.abort(),this}},{key:"addEventListener",value:function(t,n){var r=this;if(this._instance&&this._includesEventType(t)){this._listeners[t]&&this.removeEventListener(t);var o=function(o){var i=[];t===e.eventTypes.RESULT&&o.results&&o.results.length>0&&i.push(o.results[0][0].transcript),n&&n.apply(r,[].concat(i,[o]))};this._instance.addEventListener(t,o),this._listeners[t]=o}return this}},{key:"removeEventListener",value:function(e){var t=this._listeners[e];return this._instance.removeEventListener(e,t),delete this._listeners[e],this}},{key:"cleanup",value:function(){var e=this;return this.stop(),Object.keys(this._listeners).forEach((function(t){return e.removeEventListener(t)})),this._instance=null,this}},{key:"_includesEventType",value:function(t){return!!Object.values(e.eventTypes).find((function(e){return e===t}))}},{key:"instance",get:function(){return this._instance},set:function(e){throw new Error("You cannot set instance directly.")}}],[{key:"_resolveSpeechRecognition",value:function(){return window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition}},{key:"_resolveSpeechGrammarList",value:function(){return window.SpeechGrammarList||window.webkitSpeechGrammarList||window.mozSpeechGrammarList||window.msSpeechGrammarList}}]),e}();c(g,"defaultOptions",{grammars:null,lang:"en-US",continuous:!1,interimResults:!1,maxAlternatives:1,serviceURI:null}),c(g,"eventTypes",{AUDIO_END:"audioend",AUDIO_START:"audiostart",END:"end",ERROR:"error",NO_MATCH:"nomatch",RESULT:"result",SOUND_END:"soundend",SOUND_START:"soundstart",SPEECH_END:"speechend",SPEECH_START:"speechstart",START:"start"});var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=t.useRef(null);t.useEffect((function(){if(g.isSupported)return o.current=r||new g({lang:e,grammars:n}),function(){o.current.abort(),o.current.cleanup()}}),[e,n,r]);var i=t.useCallback((function(){o.current&&o.current.start()}),[]),a=t.useCallback((function(){o.current&&o.current.stop()}),[]),c=t.useCallback((function(){o.current&&o.current.abort()}),[]),u=t.useCallback((function(e,t){o.current&&o.current.addEventListener(e,t)}),[]),s=t.useCallback((function(e,t){o.current&&o.current.removeEventListener(e,t)}),[]),l=t.useCallback((function(){o.current&&o.current.cleanup()}),[]);return[o,{start:i,stop:a,abort:c,subscribe:u,unsubscribe:s,clean:l}]},S=function(e){var t=e.color,n=e.activeColor,o=e.isActive;return r.createElement("svg",{"data-testid":"__icon-root__",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 24 24"},r.createElement("g",null,r.createElement("path",{"data-testid":"__icon-path__",fill:t,d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),o&&r.createElement("circle",{"data-testid":"__icon-active__",fill:n,cx:"16",cy:"4",r:"4"})))};S.propTypes={color:n.string,activeColor:n.string,isActive:n.bool},S.defaultProps={color:"black",activeColor:"red",isActive:!1};var _=function(e){var n=e.children,o=e.lang,i=e.grammars,a=e.timeout,c=e.ariaLabel,u=e.style,f=e.className,p=e.outlineStyle,h=e.onStart,v=e.onEnd,d=e.onSpeechStart,m=e.onSpeechEnd,y=e.onResult,b=e.onError,_=e.onNoMatch,E=e.__rsInstance,O=t.useRef(null),k=l(t.useState(!1),2),R=k[0],x=k[1],j=l(w(o,i,E),2)[1],T=j.start,P=j.stop,A=j.subscribe,L=j.unsubscribe,D=function e(t){U(),I(),L("start",q),L("end",e),L("speechstart",F),L("speechend",V),L("result",B),L("error",Y),L("nomatch",$),v&&v(t)},C=l(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.useRef(-1),o=t.useCallback((function(){clearTimeout(r.current),r.current=-1}),[]),i=t.useCallback((function(){o(),r.current=setTimeout(e,n)}),[e,n,o]);return t.useEffect((function(){return o}),[o]),[i,o]}(D,a),2),N=C[0],U=C[1],M=function(){try{x(!0),A("start",q),A("end",D),A("speechstart",F),A("speechend",V),A("result",B),A("error",Y),A("nomatch",$),T()}catch(e){Y(e)}},I=function(){try{x(!1),P()}catch(e){b&&b(e)}},G=function(){M()},z=function(){!f&&p&&(O.current.style.outline=p)},H=function(){!f&&p&&(O.current.style.outline="none")},q=function(e){N(),h&&h(e)},F=function(e){U(),d&&d(e)},V=function(e){N(),m&&m(e)},B=function(e,t){U(),I(),y&&y(e,t)},Y=function(e){I(),b&&b(e)},$=function(e){U(),I(),_&&_(e)};return function(e){return g.isSupported?"function"==typeof e?e(M,I,R):t.isValidElement(e)?t.cloneElement(e,s({},!R&&{onClick:G})):r.createElement("button",{"data-testid":"__vocal-root__",ref:O,role:"button","aria-label":c,style:f?null:s({width:24,height:24,background:"none",border:"none",padding:0,cursor:R?"default":"pointer"},u),className:f,onFocus:z,onBlur:H,onClick:G},r.createElement(S,{isActive:R,iconColor:"#aaa"})):null}(n)};_.propTypes={lang:n.string,grammars:n.object,timeout:n.number,ariaLabel:n.string,style:n.object,className:n.string,outlineStyle:n.string,onStart:n.func,onEnd:n.func,onSpeechStart:n.func,onSpeechEnd:n.func,onResult:n.func,onError:n.func,onNoMatch:n.func},_.defaultProps={lang:"en-US",grammars:null,timeout:3e3,ariaLabel:"start recognition",style:null,className:null,outlineStyle:"2px solid",onStart:null,onEnd:null,onSpeechStart:null,onSpeechEnd:null,onResult:null,onError:null,onNoMatch:null};var E=g.isSupported;e.default=_,e.isSupported=E,e.useVocal=w,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgudW1kLmpzIiwic291cmNlcyI6WyIuLi9ub2RlX21vZHVsZXMvQHVudGV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RCxhQUFlLENBQ3BCNUMsS0FBTSxRQUNORCxTQUFVLEtBQ1ZnRCxRQUFTLElBQ1RDLFVBQVcsb0JBQ1hDLE1BQU8sS0FDUEMsVUFBVyxLQUNYQyxhQUFjLFlBQ2RDLFFBQVMsS0FDVEMsTUFBTyxLQUNQQyxjQUFlLEtBQ2ZDLFlBQWEsS0FDYkMsU0FBVSxLQUNWQyxRQUFTLEtBQ1RDLFVBQVcsVUc3TkN0QyxFQUFjakUsRUFBeUJpRSJ9
{
"name": "@untemps/react-vocal",
"version": "1.4.1",
"version": "1.5.0",
"author": "Vincent Le Badezet <v.lebadezet@untemps.net>",

@@ -5,0 +5,0 @@ "repository": "git@github.com:untemps/react-vocal.git",

@@ -16,11 +16,16 @@ <p align="center">

:red_circle:&nbsp;&nbsp;<big><a href="https://untemps.github.io/react-vocal" target="_blank" rel="noopener">LIVE DEMO</a></big>&nbsp;:red_circle:
:red_circle:&nbsp;&nbsp;<big><a href="https://untemps.github.io/react-vocal" target="_blank" rel="noopener">LIVE
DEMO</a></big>&nbsp;:red_circle:
## Disclaimer
The [Web Speech API](https://developer.mozilla.org/fr/docs/Web/API/Web_Speech_API) is only supported by few browsers so far (see [caniuse](https://caniuse.com/#search=SpeechRecognition)). If the API is not available, the `Vocal` component won't display anything.
The [Web Speech API](https://developer.mozilla.org/fr/docs/Web/API/Web_Speech_API) is only supported by few browsers so
far (see [caniuse](https://caniuse.com/#search=SpeechRecognition)). If the API is not available, the `Vocal` component
won't display anything.
This component intends to catch a speech result as soon as possible. This can be a good fit for vocal commands or search field filling. For now on it does not support continuous speech (see [Roadmap](#roadmap) below).
This component intends to catch a speech result as soon as possible. This can be a good fit for vocal commands or search
field filling. For now on it does not support continuous speech (see [Roadmap](#roadmap) below).
That means either a result is caught and returned or timeout is reached and the recognition is discarded.
The `stop` function returned by children-as-function mechanism allows to prematurely discard the recognition before timeout elapses.
The `stop` function returned by children-as-function mechanism allows to prematurely discard the recognition before
timeout elapses.

@@ -43,24 +48,24 @@ ## Installation

const App = () => {
const [result, setResult] = useState('')
const _onVocalStart = () => {
setResult('')
}
const _onVocalResult = (result) => {
setResult(result)
}
return (
<div className="App">
<span style={{ position: 'relative' }}>
<Vocal
onStart={_onVocalStart}
onResult={_onVocalResult}
style={{ width: 16, position: 'absolute', right: 10, top: -2 }}
/>
<input defaultValue={result} style={{ width: 300, height: 40 }} />
</span>
</div>
)
const [result, setResult] = useState('')
const _onVocalStart = () => {
setResult('')
}
const _onVocalResult = (result) => {
setResult(result)
}
return (
<div className="App">
<span style={{position: 'relative'}}>
<Vocal
onStart={_onVocalStart}
onResult={_onVocalResult}
style={{width: 16, position: 'absolute', right: 10, top: -2}}
/>
<input defaultValue={result} style={{width: 300, height: 40}}/>
</span>
</div>
)
}

@@ -74,7 +79,8 @@ ```

- Idle
![Idle state](assets/icon-idle.png)
![Idle state](assets/icon-idle.png)
- Listening
![Listening state](assets/icon-listening.png)
![Listening state](assets/icon-listening.png)
But you can provide your own component.
But you can provide your own component.
- With a simple React element:

@@ -86,11 +92,13 @@

const App = () => {
return (
<Vocal>
<button>Start</button>
</Vocal>
)
return (
<Vocal>
<button>Start</button>
</Vocal>
)
}
```
In this case, a `onClick` handler is automatically attached to the component to start a recognition session.
Only the first direct descendant of Vocal will receive the `onClick` handler. If you want to use a more complex hierarchy, use the function syntax below.
Only the first direct descendant of Vocal will receive the `onClick` handler. If you want to use a more complex
hierarchy, use the function syntax below.

@@ -102,16 +110,36 @@ - With a function that returns a React element:

const Play = () => <div style={{
width: 0,
height: 0,
marginLeft: 1,
borderStyle: 'solid',
borderWidth: '4px 0 4px 8px',
borderColor: 'transparent transparent transparent black'
}}/>
const Stop = () => <div style={{
width: 8,
height: 8,
backgroundColor: 'black'
}}/>
const App = () => {
return (
<Vocal>{(start, stop) => (
<div>
<button onClick={start}>Start</button>
<button onClick={stop}>Stop</button>
</div>
)}</Vocal>
)
return (
<Vocal>{(start, stop, isStarted) => (
<button style={{padding: 5}} onClick={isStarted ? stop : start}>
{isStarted ? <Stop/> : <Play/>}
</button>
)}</Vocal>
)
}
```
`start` allows to start a recognition session. `stop` stops it.
The following parameters are passed to the function:
| Arguments | Type | Description |
| ------------- | ----------------- | ------------------------------------------------------------------------------------------------------------ |
| start | func | The function used to start the recognition |
| stop | func | The function used to stop the recognition |
| isStarted | bool | A flag that indicates whether the recognition is started or not |
#### API

@@ -139,51 +167,51 @@

```javascript
import React, { useState } from 'react'
import { useVocal } from '@untemps/react-vocal'
import React, {useState} from 'react'
import {useVocal} from '@untemps/react-vocal'
import Icon from './Icon'
const App = () => {
const [isListening, setIsListening] = useState(false)
const [result, setResult] = useState('')
const [, {start, subscribe}] = useVocal('fr_FR')
const _onButtonClick = () => {
setIsListening(true)
subscribe('speechstart', _onVocalStart)
subscribe('result', _onVocalResult)
subscribe('error', _onVocalError)
start()
}
const _onVocalStart = () => {
setResult('')
}
const [isListening, setIsListening] = useState(false)
const [result, setResult] = useState('')
const _onVocalResult = (result) => {
setIsListening(false)
setResult(result)
}
const [, {start, subscribe}] = useVocal('fr_FR')
const _onVocalError = (e) => {
console.error(e)
}
const _onButtonClick = () => {
setIsListening(true)
return (
<div>
<span style={{ position: 'relative' }}>
<div
role="button"
aria-label="Vocal"
tabIndex={0}
style={{ width: 16, position: 'absolute', right: 10, top: 2 }}
onClick={_onButtonClick}
>
<Icon color={isListening ? 'red': 'blue'} />
</div>
<input defaultValue={result} style={{ width: 300, height: 40 }} />
</span>
</div>
)
subscribe('speechstart', _onVocalStart)
subscribe('result', _onVocalResult)
subscribe('error', _onVocalError)
start()
}
const _onVocalStart = () => {
setResult('')
}
const _onVocalResult = (result) => {
setIsListening(false)
setResult(result)
}
const _onVocalError = (e) => {
console.error(e)
}
return (
<div>
<span style={{position: 'relative'}}>
<div
role="button"
aria-label="Vocal"
tabIndex={0}
style={{width: 16, position: 'absolute', right: 10, top: 2}}
onClick={_onButtonClick}
>
<Icon color={isListening ? 'red' : 'blue'}/>
</div>
<input defaultValue={result} style={{width: 300, height: 40}}/>
</span>
</div>
)
}

@@ -227,7 +255,7 @@ ```

const App = () => {
return isSupported ? (
<Vocal />
) : (
<p>Your browser does not support Web Speech API</p>
)
return isSupported ? (
<Vocal/>
) : (
<p>Your browser does not support Web Speech API</p>
)
}

@@ -254,3 +282,4 @@ ```

The process to grant microphone access permissions is automatically managed by the hook (internally used by the `Vocal` component).
The process to grant microphone access permissions is automatically managed by the hook (internally used by the `Vocal`
component).

@@ -268,6 +297,8 @@ ## Development

Contributions are warmly welcomed:
- Fork the repository
- Create a feature branch (preferred name convention: `[feature type]_[imperative verb]-[description of the feature]`)
- Develop the feature AND write the tests (or write the tests AND develop the feature)
- Commit your changes using [Angular Git Commit Guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines)
- Commit your changes
using [Angular Git Commit Guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines)
- Submit a Pull Request

@@ -274,0 +305,0 @@

@@ -166,3 +166,3 @@ import React, { cloneElement, isValidElement, useRef, useState } from 'react'

if (isFunc(children)) {
return children(startRecognition, stopRecognition)
return children(startRecognition, stopRecognition, isListening)
} else if (isValidElement(children)) {

@@ -169,0 +169,0 @@ return cloneElement(children, {

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