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

react-toastify

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-toastify - npm Package Compare versions

Comparing version 8.1.1 to 8.2.0

9

dist/react-toastify.cjs.development.js

@@ -160,2 +160,3 @@ 'use strict';

node.addEventListener('animationend', onEntered);
node.addEventListener('animationcancel', onEntered);
}

@@ -170,2 +171,3 @@

node.removeEventListener('animationend', onEntered);
node.removeEventListener('animationcancel', onEntered);

@@ -1346,4 +1348,6 @@ if (animationStep.current === 0

/**
* @deprecated
* API will change in the next major release
*
* Track changes. The callback get the number of toast displayed
*
*/

@@ -1366,2 +1370,5 @@

/**
* @deprecated
* will be removed in the next major release
*
* Configure the ToastContainer when lazy mounted

@@ -1368,0 +1375,0 @@ * Prefer ToastContainer over this one

2

dist/react-toastify.cjs.production.min.js

@@ -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),o=e(require("clsx")),r=require("react-dom");function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)t.indexOf(n=a[o])>=0||(r[n]=e[n]);return r}function i(e){return"number"==typeof e&&!isNaN(e)}function c(e){return"boolean"==typeof e}function u(e){return"string"==typeof e}function l(e){return"function"==typeof e}function d(e){return u(e)||l(e)?e:null}function f(e){return 0===e||e}var p=!("undefined"==typeof window||!window.document||!window.document.createElement);function m(e){return t.isValidElement(e)||u(e)||l(e)||i(e)}var g={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},v={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function y(e,t,n){void 0===n&&(n=300);var o=e.scrollHeight,r=e.style;requestAnimationFrame((function(){r.minHeight="initial",r.height=o+"px",r.transition="all "+n+"ms",requestAnimationFrame((function(){r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)}))}))}function h(e){var o=e.enter,r=e.exit,a=e.appendPosition,s=void 0!==a&&a,i=e.collapse,c=void 0===i||i,u=e.collapseDuration,l=void 0===u?300:u;return function(e){var a=e.children,i=e.position,u=e.preventExitTransition,d=e.done,f=e.nodeRef,p=e.isIn,m=s?o+"--"+i:o,g=s?r+"--"+i:r,v=t.useRef(),h=t.useRef(0);function T(e){if(e.target===f.current){var t=f.current;t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",T),0===h.current&&(t.className=v.current)}}function E(){var e=f.current;e.removeEventListener("animationend",E),c?y(e,d,l):d()}return t.useLayoutEffect((function(){var e;v.current=(e=f.current).className,e.className+=" "+m,e.addEventListener("animationend",T)}),[]),t.useEffect((function(){p||(u?E():function(){h.current=1;var e=f.current;e.className+=" "+g,e.addEventListener("animationend",E)}())}),[p]),n.createElement(n.Fragment,null,a)}}var T={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.list.has(e)&&this.list.get(e).forEach((function(n){var r=setTimeout((function(){n.apply(void 0,o)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(r)}))}},E=["delay","staleId"];function b(e){var n=t.useReducer((function(e){return e+1}),0)[1],o=t.useState([]),r=o[0],a=o[1],p=t.useRef(null),g=t.useRef(new Map).current,v=function(e){return-1!==r.indexOf(e)},y=t.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:v,getToast:function(e){return g.get(e)}}).current;function h(e){var t=e.containerId;!y.props.limit||t&&y.containerId!==t||(y.count-=y.queue.length,y.queue=[])}function b(e){a((function(t){return f(e)?t.filter((function(t){return t!==e})):[]}))}function C(){var e=y.queue.shift();_(e.toastContent,e.toastProps,e.staleId)}function O(e,o){var r=o.delay,a=o.staleId,v=s(o,E);if(m(e)&&!function(e){return!p.current||y.props.enableMultiContainer&&e.containerId!==y.props.containerId||g.has(e.toastId)&&null==e.updateId}(v)){var h=v.toastId,T=v.updateId,O=v.data,I=y.props,L=function(){return b(h)},x=null==T;x&&y.count++;var N,R,P={toastId:h,updateId:T,isLoading:v.isLoading,theme:v.theme||I.theme,icon:null!=v.icon?v.icon:I.icon,isIn:!1,key:v.key||y.toastKey++,type:v.type,closeToast:L,closeButton:v.closeButton,rtl:I.rtl,position:v.position||I.position,transition:v.transition||I.transition,className:d(v.className||I.toastClassName),bodyClassName:d(v.bodyClassName||I.bodyClassName),style:v.style||I.toastStyle,bodyStyle:v.bodyStyle||I.bodyStyle,onClick:v.onClick||I.onClick,pauseOnHover:c(v.pauseOnHover)?v.pauseOnHover:I.pauseOnHover,pauseOnFocusLoss:c(v.pauseOnFocusLoss)?v.pauseOnFocusLoss:I.pauseOnFocusLoss,draggable:c(v.draggable)?v.draggable:I.draggable,draggablePercent:v.draggablePercent||I.draggablePercent,draggableDirection:v.draggableDirection||I.draggableDirection,closeOnClick:c(v.closeOnClick)?v.closeOnClick:I.closeOnClick,progressClassName:d(v.progressClassName||I.progressClassName),progressStyle:v.progressStyle||I.progressStyle,autoClose:!v.isLoading&&(N=v.autoClose,R=I.autoClose,!1===N||i(N)&&N>0?N:R),hideProgressBar:c(v.hideProgressBar)?v.hideProgressBar:I.hideProgressBar,progress:v.progress,role:v.role||I.role,deleteToast:function(){g.delete(h);var e=y.queue.length;if(y.count=f(h)?y.count-1:y.count-y.displayedToast,y.count<0&&(y.count=0),e>0){var t=f(h)?1:y.props.limit;if(1===e||1===t)y.displayedToast++,C();else{var o=t>e?e:t;y.displayedToast=o;for(var r=0;r<o;r++)C()}}else n()}};l(v.onOpen)&&(P.onOpen=v.onOpen),l(v.onClose)&&(P.onClose=v.onClose),P.closeButton=I.closeButton,!1===v.closeButton||m(v.closeButton)?P.closeButton=v.closeButton:!0===v.closeButton&&(P.closeButton=!m(I.closeButton)||I.closeButton);var w=e;t.isValidElement(e)&&!u(e.type)?w=t.cloneElement(e,{closeToast:L,toastProps:P,data:O}):l(e)&&(w=e({closeToast:L,toastProps:P,data:O})),I.limit&&I.limit>0&&y.count>I.limit&&x?y.queue.push({toastContent:w,toastProps:P,staleId:a}):i(r)&&r>0?setTimeout((function(){_(w,P,a)}),r):_(w,P,a)}}function _(e,t,n){var o=t.toastId;n&&g.delete(n),g.set(o,{content:e,props:t}),a((function(e){return[].concat(e,[o]).filter((function(e){return e!==n}))}))}return t.useEffect((function(){return y.containerId=e.containerId,T.cancelEmit(3).on(0,O).on(1,(function(e){return p.current&&b(e)})).on(5,h).emit(2,y),function(){return T.emit(3,y)}}),[]),t.useEffect((function(){y.isToastActive=v,y.displayedToast=r.length,T.emit(4,r.length,e.containerId)}),[r]),t.useEffect((function(){y.props=e})),{getToastToRender:function(t){var n=new Map,o=Array.from(g.values());return e.newestOnTop&&o.reverse(),o.forEach((function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(function(e){return t(e[0],e[1])}))},containerRef:p,isToastActive:v}}function C(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function O(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function _(e){var n=t.useState(!1),o=n[0],r=n[1],a=t.useState(!1),s=a[0],i=a[1],c=t.useRef(null),u=t.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,d=t.useRef(e),f=e.autoClose,p=e.pauseOnHover,m=e.closeToast,g=e.onClick,v=e.closeOnClick;function y(t){if(e.draggable){u.didMove=!1,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),document.addEventListener("touchmove",b),document.addEventListener("touchend",_);var n=c.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.x=C(t.nativeEvent),u.y=O(t.nativeEvent),"x"===e.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(){if(u.boundingRect){var t=u.boundingRect;e.pauseOnHover&&u.x>=t.left&&u.x<=t.right&&u.y>=t.top&&u.y<=t.bottom?E():T()}}function T(){r(!0)}function E(){r(!1)}function b(t){var n=c.current;u.canDrag&&n&&(u.didMove=!0,o&&E(),u.x=C(t),u.y=O(t),u.delta="x"===e.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),n.style.transform="translate"+e.draggableDirection+"("+u.delta+"px)",n.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function _(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",_);var t=c.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}t.useEffect((function(){d.current=e})),t.useEffect((function(){return c.current&&c.current.addEventListener("d",T,{once:!0}),l(e.onOpen)&&e.onOpen(t.isValidElement(e.children)&&e.children.props),function(){var e=d.current;l(e.onClose)&&e.onClose(t.isValidElement(e.children)&&e.children.props)}}),[]),t.useEffect((function(){return e.pauseOnFocusLoss&&(document.hasFocus()||E(),window.addEventListener("focus",T),window.addEventListener("blur",E)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",T),window.removeEventListener("blur",E))}}),[e.pauseOnFocusLoss]);var I={onMouseDown:y,onTouchStart:y,onMouseUp:h,onTouchEnd:h};return f&&p&&(I.onMouseEnter=E,I.onMouseLeave=T),v&&(I.onClick=function(e){g&&g(e),u.canCloseOnClick&&m()}),{playToast:T,pauseToast:E,isRunning:o,preventExitTransition:s,toastRef:c,eventHandlers:I}}function I(e){var n=e.closeToast,o=e.ariaLabel;return t.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+e.theme,type:"button",onClick:function(e){e.stopPropagation(),n(e)},"aria-label":void 0===o?"close":o},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function L(e){var n,r,s=e.closeToast,i=e.type,c=e.hide,u=e.className,d=e.controlledProgress,f=e.progress,p=e.rtl,m=e.isIn,g=e.theme,v=a({},e.style,{animationDuration:e.delay+"ms",animationPlayState:e.isRunning?"running":"paused",opacity:c?0:1});d&&(v.transform="scaleX("+f+")");var y=o("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+g,"Toastify__progress-bar--"+i,((n={})["Toastify__progress-bar--rtl"]=p,n)),h=l(u)?u({rtl:p,type:i,defaultClassName:y}):o(y,u),T=((r={})[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]=d&&f<1?null:function(){m&&s()},r);return t.createElement("div",Object.assign({role:"progressbar","aria-hidden":c?"true":"false","aria-label":"notification timer",className:h,style:v},T))}L.defaultProps={type:v.DEFAULT,hide:!1};var x=["theme","type"],N=function(e){var n=e.theme,o=e.type,r=s(e,x);return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":"var(--toastify-icon-color-"+o+")"},r))},R={info:function(e){return t.createElement(N,Object.assign({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(N,Object.assign({},e),t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(N,Object.assign({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(N,Object.assign({},e),t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}},P=function(e){var n,r,a=_(e),s=a.isRunning,i=a.preventExitTransition,c=a.toastRef,d=a.eventHandlers,f=e.closeButton,p=e.children,m=e.autoClose,g=e.onClick,v=e.type,y=e.hideProgressBar,h=e.closeToast,T=e.transition,E=e.position,b=e.className,C=e.style,O=e.bodyClassName,I=e.bodyStyle,x=e.progressClassName,N=e.progressStyle,P=e.updateId,w=e.role,B=e.progress,k=e.rtl,M=e.toastId,D=e.deleteToast,A=e.isIn,S=e.isLoading,F=e.icon,z=e.theme,j=o("Toastify__toast","Toastify__toast-theme--"+z,"Toastify__toast--"+v,((n={})["Toastify__toast--rtl"]=k,n)),H=l(b)?b({rtl:k,position:E,type:v,defaultClassName:j}):o(j,b),q=!!B,U=R[v],Q={theme:z,type:v},V=U&&U(Q);return!1===F?V=void 0:l(F)?V=F(Q):t.isValidElement(F)?V=t.cloneElement(F,Q):u(F)?V=F:S&&(V=R.spinner()),t.createElement(T,{isIn:A,done:D,position:E,preventExitTransition:i,nodeRef:c},t.createElement("div",Object.assign({id:M,onClick:g,className:H},d,{style:C,ref:c}),t.createElement("div",Object.assign({},A&&{role:w},{className:l(O)?O({type:v}):o("Toastify__toast-body",O),style:I}),V&&t.createElement("div",{className:o("Toastify__toast-icon",(r={},r["Toastify--animate-icon Toastify__zoom-enter"]=!S,r))},V),t.createElement("div",null,p)),function(e){if(e){var n={closeToast:h,type:v,theme:z};return l(e)?e(n):t.isValidElement(e)?t.cloneElement(e,n):void 0}}(f),(m||q)&&t.createElement(L,Object.assign({},P&&!q?{key:"pb-"+P}:{},{rtl:k,theme:z,delay:m,isRunning:s,isIn:A,closeToast:h,hide:y,type:v,style:N,className:x,controlledProgress:q,progress:B}))))},w=h({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),B=h({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),k=h({enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"}),M=h({enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"}),D=function(e){var n=b(e),r=n.isToastActive,s=e.className,i=e.style,c=e.rtl;function u(e){var t,n=o("Toastify__toast-container","Toastify__toast-container--"+e,((t={})["Toastify__toast-container--rtl"]=c,t));return l(s)?s({position:e,rtl:c,defaultClassName:n}):o(n,d(s))}return t.createElement("div",{ref:n.containerRef,className:"Toastify",id:e.containerId},(0,n.getToastToRender)((function(e,n){var o=n.length?a({},i):a({},i,{pointerEvents:"none"});return t.createElement("div",{className:u(e),style:o,key:"container-"+e},n.map((function(e){var n=e.content,o=e.props;return t.createElement(P,Object.assign({},o,{isIn:r(o.toastId),key:"toast-"+o.key,closeButton:!0===o.closeButton?I:o.closeButton}),n)})))})))};D.defaultProps={position:g.TOP_RIGHT,transition:w,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:I,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var A,S,F,z=new Map,j=[],H=!1;function q(){return Math.random().toString(36).substring(2,9)}function U(e){return e&&(u(e.toastId)||i(e.toastId))?e.toastId:q()}function Q(e,n){return z.size>0?T.emit(0,e,n):(j.push({content:e,options:n}),H&&p&&(H=!1,S=document.createElement("div"),document.body.appendChild(S),r.render(t.createElement(D,Object.assign({},F)),S))),n.toastId}function V(e,t){return a({},t,{type:t&&t.type||e,toastId:U(t)})}function G(e){return function(t,n){return Q(t,V(e,n))}}function W(e,t){return Q(e,V(v.DEFAULT,t))}W.loading=function(e,t){return Q(e,V(v.DEFAULT,a({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},W.promise=function(e,t,n){var o,r=t.pending,s=t.error,i=t.success;r&&(o=u(r)?W.loading(r,n):W.loading(r.render,a({},n,r)));var c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=function(e,t,r){if(null!=t){var s=a({type:e},c,n,{data:r}),i=u(t)?{render:t}:t;return o?W.update(o,a({},s,i)):W(i.render,a({},s,i)),r}W.dismiss(o)},f=l(e)?e():e;return f.then((function(e){return d("success",i,e)})).catch((function(e){return d("error",s,e)})),f},W.success=G(v.SUCCESS),W.info=G(v.INFO),W.error=G(v.ERROR),W.warn=W.warning=G(v.WARNING),W.dark=function(e,t){return Q(e,V(v.DEFAULT,a({theme:"dark"},t)))},W.dismiss=function(e){return T.emit(1,e)},W.clearWaitingQueue=function(e){return void 0===e&&(e={}),T.emit(5,e)},W.isActive=function(e){var t=!1;return z.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},W.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=z.get(t.containerId||A);return n?n.getToast(e):null}(e,t);if(n){var o=n.content,r=a({},n.props,t,{toastId:t.toastId||e,updateId:q()});r.toastId!==e&&(r.staleId=e);var s=r.render||o;delete r.render,Q(s,r)}}),0)},W.done=function(e){W.update(e,{progress:1})},W.onChange=function(e){return l(e)&&T.on(4,e),function(){l(e)&&T.off(4,e)}},W.configure=function(e){void 0===e&&(e={}),H=!0,F=e},W.POSITION=g,W.TYPE=v,T.on(2,(function(e){z.set(A=e.containerId||e,e),j.forEach((function(e){T.emit(0,e.content,e.options)})),j=[]})).on(3,(function(e){z.delete(e.containerId||e),0===z.size&&T.off(0).off(1).off(5),p&&S&&document.body.removeChild(S)})),exports.Bounce=w,exports.Flip=M,exports.Icons=R,exports.Slide=B,exports.ToastContainer=D,exports.Zoom=k,exports.collapseToast=y,exports.cssTransition=h,exports.toast=W,exports.useToast=_,exports.useToastContainer=b;
"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),o=e(require("clsx")),r=require("react-dom");function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)t.indexOf(n=a[o])>=0||(r[n]=e[n]);return r}function i(e){return"number"==typeof e&&!isNaN(e)}function c(e){return"boolean"==typeof e}function u(e){return"string"==typeof e}function l(e){return"function"==typeof e}function d(e){return u(e)||l(e)?e:null}function f(e){return 0===e||e}var p=!("undefined"==typeof window||!window.document||!window.document.createElement);function m(e){return t.isValidElement(e)||u(e)||l(e)||i(e)}var g={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},v={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function y(e,t,n){void 0===n&&(n=300);var o=e.scrollHeight,r=e.style;requestAnimationFrame((function(){r.minHeight="initial",r.height=o+"px",r.transition="all "+n+"ms",requestAnimationFrame((function(){r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)}))}))}function h(e){var o=e.enter,r=e.exit,a=e.appendPosition,s=void 0!==a&&a,i=e.collapse,c=void 0===i||i,u=e.collapseDuration,l=void 0===u?300:u;return function(e){var a=e.children,i=e.position,u=e.preventExitTransition,d=e.done,f=e.nodeRef,p=e.isIn,m=s?o+"--"+i:o,g=s?r+"--"+i:r,v=t.useRef(),h=t.useRef(0);function T(e){if(e.target===f.current){var t=f.current;t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",T),t.removeEventListener("animationcancel",T),0===h.current&&(t.className=v.current)}}function E(){var e=f.current;e.removeEventListener("animationend",E),c?y(e,d,l):d()}return t.useLayoutEffect((function(){var e;v.current=(e=f.current).className,e.className+=" "+m,e.addEventListener("animationend",T),e.addEventListener("animationcancel",T)}),[]),t.useEffect((function(){p||(u?E():function(){h.current=1;var e=f.current;e.className+=" "+g,e.addEventListener("animationend",E)}())}),[p]),n.createElement(n.Fragment,null,a)}}var T={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.list.has(e)&&this.list.get(e).forEach((function(n){var r=setTimeout((function(){n.apply(void 0,o)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(r)}))}},E=["delay","staleId"];function b(e){var n=t.useReducer((function(e){return e+1}),0)[1],o=t.useState([]),r=o[0],a=o[1],p=t.useRef(null),g=t.useRef(new Map).current,v=function(e){return-1!==r.indexOf(e)},y=t.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:v,getToast:function(e){return g.get(e)}}).current;function h(e){var t=e.containerId;!y.props.limit||t&&y.containerId!==t||(y.count-=y.queue.length,y.queue=[])}function b(e){a((function(t){return f(e)?t.filter((function(t){return t!==e})):[]}))}function C(){var e=y.queue.shift();_(e.toastContent,e.toastProps,e.staleId)}function O(e,o){var r=o.delay,a=o.staleId,v=s(o,E);if(m(e)&&!function(e){return!p.current||y.props.enableMultiContainer&&e.containerId!==y.props.containerId||g.has(e.toastId)&&null==e.updateId}(v)){var h=v.toastId,T=v.updateId,O=v.data,I=y.props,L=function(){return b(h)},x=null==T;x&&y.count++;var N,R,P={toastId:h,updateId:T,isLoading:v.isLoading,theme:v.theme||I.theme,icon:null!=v.icon?v.icon:I.icon,isIn:!1,key:v.key||y.toastKey++,type:v.type,closeToast:L,closeButton:v.closeButton,rtl:I.rtl,position:v.position||I.position,transition:v.transition||I.transition,className:d(v.className||I.toastClassName),bodyClassName:d(v.bodyClassName||I.bodyClassName),style:v.style||I.toastStyle,bodyStyle:v.bodyStyle||I.bodyStyle,onClick:v.onClick||I.onClick,pauseOnHover:c(v.pauseOnHover)?v.pauseOnHover:I.pauseOnHover,pauseOnFocusLoss:c(v.pauseOnFocusLoss)?v.pauseOnFocusLoss:I.pauseOnFocusLoss,draggable:c(v.draggable)?v.draggable:I.draggable,draggablePercent:v.draggablePercent||I.draggablePercent,draggableDirection:v.draggableDirection||I.draggableDirection,closeOnClick:c(v.closeOnClick)?v.closeOnClick:I.closeOnClick,progressClassName:d(v.progressClassName||I.progressClassName),progressStyle:v.progressStyle||I.progressStyle,autoClose:!v.isLoading&&(N=v.autoClose,R=I.autoClose,!1===N||i(N)&&N>0?N:R),hideProgressBar:c(v.hideProgressBar)?v.hideProgressBar:I.hideProgressBar,progress:v.progress,role:v.role||I.role,deleteToast:function(){g.delete(h);var e=y.queue.length;if(y.count=f(h)?y.count-1:y.count-y.displayedToast,y.count<0&&(y.count=0),e>0){var t=f(h)?1:y.props.limit;if(1===e||1===t)y.displayedToast++,C();else{var o=t>e?e:t;y.displayedToast=o;for(var r=0;r<o;r++)C()}}else n()}};l(v.onOpen)&&(P.onOpen=v.onOpen),l(v.onClose)&&(P.onClose=v.onClose),P.closeButton=I.closeButton,!1===v.closeButton||m(v.closeButton)?P.closeButton=v.closeButton:!0===v.closeButton&&(P.closeButton=!m(I.closeButton)||I.closeButton);var w=e;t.isValidElement(e)&&!u(e.type)?w=t.cloneElement(e,{closeToast:L,toastProps:P,data:O}):l(e)&&(w=e({closeToast:L,toastProps:P,data:O})),I.limit&&I.limit>0&&y.count>I.limit&&x?y.queue.push({toastContent:w,toastProps:P,staleId:a}):i(r)&&r>0?setTimeout((function(){_(w,P,a)}),r):_(w,P,a)}}function _(e,t,n){var o=t.toastId;n&&g.delete(n),g.set(o,{content:e,props:t}),a((function(e){return[].concat(e,[o]).filter((function(e){return e!==n}))}))}return t.useEffect((function(){return y.containerId=e.containerId,T.cancelEmit(3).on(0,O).on(1,(function(e){return p.current&&b(e)})).on(5,h).emit(2,y),function(){return T.emit(3,y)}}),[]),t.useEffect((function(){y.isToastActive=v,y.displayedToast=r.length,T.emit(4,r.length,e.containerId)}),[r]),t.useEffect((function(){y.props=e})),{getToastToRender:function(t){var n=new Map,o=Array.from(g.values());return e.newestOnTop&&o.reverse(),o.forEach((function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(function(e){return t(e[0],e[1])}))},containerRef:p,isToastActive:v}}function C(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function O(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function _(e){var n=t.useState(!1),o=n[0],r=n[1],a=t.useState(!1),s=a[0],i=a[1],c=t.useRef(null),u=t.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,d=t.useRef(e),f=e.autoClose,p=e.pauseOnHover,m=e.closeToast,g=e.onClick,v=e.closeOnClick;function y(t){if(e.draggable){u.didMove=!1,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),document.addEventListener("touchmove",b),document.addEventListener("touchend",_);var n=c.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.x=C(t.nativeEvent),u.y=O(t.nativeEvent),"x"===e.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(){if(u.boundingRect){var t=u.boundingRect;e.pauseOnHover&&u.x>=t.left&&u.x<=t.right&&u.y>=t.top&&u.y<=t.bottom?E():T()}}function T(){r(!0)}function E(){r(!1)}function b(t){var n=c.current;u.canDrag&&n&&(u.didMove=!0,o&&E(),u.x=C(t),u.y=O(t),u.delta="x"===e.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),n.style.transform="translate"+e.draggableDirection+"("+u.delta+"px)",n.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function _(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",_);var t=c.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}t.useEffect((function(){d.current=e})),t.useEffect((function(){return c.current&&c.current.addEventListener("d",T,{once:!0}),l(e.onOpen)&&e.onOpen(t.isValidElement(e.children)&&e.children.props),function(){var e=d.current;l(e.onClose)&&e.onClose(t.isValidElement(e.children)&&e.children.props)}}),[]),t.useEffect((function(){return e.pauseOnFocusLoss&&(document.hasFocus()||E(),window.addEventListener("focus",T),window.addEventListener("blur",E)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",T),window.removeEventListener("blur",E))}}),[e.pauseOnFocusLoss]);var I={onMouseDown:y,onTouchStart:y,onMouseUp:h,onTouchEnd:h};return f&&p&&(I.onMouseEnter=E,I.onMouseLeave=T),v&&(I.onClick=function(e){g&&g(e),u.canCloseOnClick&&m()}),{playToast:T,pauseToast:E,isRunning:o,preventExitTransition:s,toastRef:c,eventHandlers:I}}function I(e){var n=e.closeToast,o=e.ariaLabel;return t.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+e.theme,type:"button",onClick:function(e){e.stopPropagation(),n(e)},"aria-label":void 0===o?"close":o},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function L(e){var n,r,s=e.closeToast,i=e.type,c=e.hide,u=e.className,d=e.controlledProgress,f=e.progress,p=e.rtl,m=e.isIn,g=e.theme,v=a({},e.style,{animationDuration:e.delay+"ms",animationPlayState:e.isRunning?"running":"paused",opacity:c?0:1});d&&(v.transform="scaleX("+f+")");var y=o("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+g,"Toastify__progress-bar--"+i,((n={})["Toastify__progress-bar--rtl"]=p,n)),h=l(u)?u({rtl:p,type:i,defaultClassName:y}):o(y,u),T=((r={})[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]=d&&f<1?null:function(){m&&s()},r);return t.createElement("div",Object.assign({role:"progressbar","aria-hidden":c?"true":"false","aria-label":"notification timer",className:h,style:v},T))}L.defaultProps={type:v.DEFAULT,hide:!1};var x=["theme","type"],N=function(e){var n=e.theme,o=e.type,r=s(e,x);return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":"var(--toastify-icon-color-"+o+")"},r))},R={info:function(e){return t.createElement(N,Object.assign({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(N,Object.assign({},e),t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(N,Object.assign({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(N,Object.assign({},e),t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}},P=function(e){var n,r,a=_(e),s=a.isRunning,i=a.preventExitTransition,c=a.toastRef,d=a.eventHandlers,f=e.closeButton,p=e.children,m=e.autoClose,g=e.onClick,v=e.type,y=e.hideProgressBar,h=e.closeToast,T=e.transition,E=e.position,b=e.className,C=e.style,O=e.bodyClassName,I=e.bodyStyle,x=e.progressClassName,N=e.progressStyle,P=e.updateId,w=e.role,B=e.progress,k=e.rtl,M=e.toastId,D=e.deleteToast,A=e.isIn,S=e.isLoading,F=e.icon,z=e.theme,j=o("Toastify__toast","Toastify__toast-theme--"+z,"Toastify__toast--"+v,((n={})["Toastify__toast--rtl"]=k,n)),H=l(b)?b({rtl:k,position:E,type:v,defaultClassName:j}):o(j,b),q=!!B,U=R[v],Q={theme:z,type:v},V=U&&U(Q);return!1===F?V=void 0:l(F)?V=F(Q):t.isValidElement(F)?V=t.cloneElement(F,Q):u(F)?V=F:S&&(V=R.spinner()),t.createElement(T,{isIn:A,done:D,position:E,preventExitTransition:i,nodeRef:c},t.createElement("div",Object.assign({id:M,onClick:g,className:H},d,{style:C,ref:c}),t.createElement("div",Object.assign({},A&&{role:w},{className:l(O)?O({type:v}):o("Toastify__toast-body",O),style:I}),V&&t.createElement("div",{className:o("Toastify__toast-icon",(r={},r["Toastify--animate-icon Toastify__zoom-enter"]=!S,r))},V),t.createElement("div",null,p)),function(e){if(e){var n={closeToast:h,type:v,theme:z};return l(e)?e(n):t.isValidElement(e)?t.cloneElement(e,n):void 0}}(f),(m||q)&&t.createElement(L,Object.assign({},P&&!q?{key:"pb-"+P}:{},{rtl:k,theme:z,delay:m,isRunning:s,isIn:A,closeToast:h,hide:y,type:v,style:N,className:x,controlledProgress:q,progress:B}))))},w=h({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),B=h({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),k=h({enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"}),M=h({enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"}),D=function(e){var n=b(e),r=n.isToastActive,s=e.className,i=e.style,c=e.rtl;function u(e){var t,n=o("Toastify__toast-container","Toastify__toast-container--"+e,((t={})["Toastify__toast-container--rtl"]=c,t));return l(s)?s({position:e,rtl:c,defaultClassName:n}):o(n,d(s))}return t.createElement("div",{ref:n.containerRef,className:"Toastify",id:e.containerId},(0,n.getToastToRender)((function(e,n){var o=n.length?a({},i):a({},i,{pointerEvents:"none"});return t.createElement("div",{className:u(e),style:o,key:"container-"+e},n.map((function(e){var n=e.content,o=e.props;return t.createElement(P,Object.assign({},o,{isIn:r(o.toastId),key:"toast-"+o.key,closeButton:!0===o.closeButton?I:o.closeButton}),n)})))})))};D.defaultProps={position:g.TOP_RIGHT,transition:w,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:I,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var A,S,F,z=new Map,j=[],H=!1;function q(){return Math.random().toString(36).substring(2,9)}function U(e){return e&&(u(e.toastId)||i(e.toastId))?e.toastId:q()}function Q(e,n){return z.size>0?T.emit(0,e,n):(j.push({content:e,options:n}),H&&p&&(H=!1,S=document.createElement("div"),document.body.appendChild(S),r.render(t.createElement(D,Object.assign({},F)),S))),n.toastId}function V(e,t){return a({},t,{type:t&&t.type||e,toastId:U(t)})}function G(e){return function(t,n){return Q(t,V(e,n))}}function W(e,t){return Q(e,V(v.DEFAULT,t))}W.loading=function(e,t){return Q(e,V(v.DEFAULT,a({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},W.promise=function(e,t,n){var o,r=t.pending,s=t.error,i=t.success;r&&(o=u(r)?W.loading(r,n):W.loading(r.render,a({},n,r)));var c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=function(e,t,r){if(null!=t){var s=a({type:e},c,n,{data:r}),i=u(t)?{render:t}:t;return o?W.update(o,a({},s,i)):W(i.render,a({},s,i)),r}W.dismiss(o)},f=l(e)?e():e;return f.then((function(e){return d("success",i,e)})).catch((function(e){return d("error",s,e)})),f},W.success=G(v.SUCCESS),W.info=G(v.INFO),W.error=G(v.ERROR),W.warn=W.warning=G(v.WARNING),W.dark=function(e,t){return Q(e,V(v.DEFAULT,a({theme:"dark"},t)))},W.dismiss=function(e){return T.emit(1,e)},W.clearWaitingQueue=function(e){return void 0===e&&(e={}),T.emit(5,e)},W.isActive=function(e){var t=!1;return z.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},W.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=z.get(t.containerId||A);return n?n.getToast(e):null}(e,t);if(n){var o=n.content,r=a({},n.props,t,{toastId:t.toastId||e,updateId:q()});r.toastId!==e&&(r.staleId=e);var s=r.render||o;delete r.render,Q(s,r)}}),0)},W.done=function(e){W.update(e,{progress:1})},W.onChange=function(e){return l(e)&&T.on(4,e),function(){l(e)&&T.off(4,e)}},W.configure=function(e){void 0===e&&(e={}),H=!0,F=e},W.POSITION=g,W.TYPE=v,T.on(2,(function(e){z.set(A=e.containerId||e,e),j.forEach((function(e){T.emit(0,e.content,e.options)})),j=[]})).on(3,(function(e){z.delete(e.containerId||e),0===z.size&&T.off(0).off(1).off(5),p&&S&&document.body.removeChild(S)})),exports.Bounce=w,exports.Flip=M,exports.Icons=R,exports.Slide=B,exports.ToastContainer=D,exports.Zoom=k,exports.collapseToast=y,exports.cssTransition=h,exports.toast=W,exports.useToast=_,exports.useToastContainer=b;
//# sourceMappingURL=react-toastify.cjs.production.min.js.map

@@ -153,2 +153,3 @@ import React__default, { isValidElement, useRef, useLayoutEffect, useEffect, useReducer, useState, cloneElement, createElement } from 'react';

node.addEventListener('animationend', onEntered);
node.addEventListener('animationcancel', onEntered);
}

@@ -163,2 +164,3 @@

node.removeEventListener('animationend', onEntered);
node.removeEventListener('animationcancel', onEntered);

@@ -1339,4 +1341,6 @@ if (animationStep.current === 0

/**
* @deprecated
* API will change in the next major release
*
* Track changes. The callback get the number of toast displayed
*
*/

@@ -1359,2 +1363,5 @@

/**
* @deprecated
* will be removed in the next major release
*
* Configure the ToastContainer when lazy mounted

@@ -1361,0 +1368,0 @@ * Prefer ToastContainer over this one

{
"version": "8.1.1",
"version": "8.2.0",
"license": "MIT",

@@ -80,3 +80,3 @@ "main": "dist/index.js",

"husky": "^4.2.0",
"postcss": "^7.0.27",
"postcss": "^8.2.13",
"postcss-cli": "^7.1.0",

@@ -83,0 +83,0 @@ "react": "^17.0.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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