@tracktor/shared-module 0.7.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(_,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(_=typeof globalThis<"u"?globalThis:_||self,E(_["@tracktor/shared-module"]={},_.React))})(this,function(_,E){"use strict";var Z={},Ie={get exports(){return Z},set exports(n){Z=n}},N={};/**
1
+ (function(R,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(R=typeof globalThis<"u"?globalThis:R||self,m(R["@tracktor/shared-module"]={},R.React))})(this,function(R,m){"use strict";var Z={exports:{}},W={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ue;function Le(){if(ue)return N;ue=1;var n=E,u=Symbol.for("react.element"),p=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(b,g,C){var R,w={},S=null,O=null;C!==void 0&&(S=""+C),g.key!==void 0&&(S=""+g.key),g.ref!==void 0&&(O=g.ref);for(R in g)h.call(g,R)&&!s.hasOwnProperty(R)&&(w[R]=g[R]);if(b&&b.defaultProps)for(R in g=b.defaultProps,g)w[R]===void 0&&(w[R]=g[R]);return{$$typeof:u,type:b,key:S,ref:O,props:w,_owner:c.current}}return N.Fragment=p,N.jsx=i,N.jsxs=i,N}var W={};/**
9
+ */var se;function Le(){if(se)return W;se=1;var n=m,o=Symbol.for("react.element"),d=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(E,l,w){var _,C={},S=null,O=null;w!==void 0&&(S=""+w),l.key!==void 0&&(S=""+l.key),l.ref!==void 0&&(O=l.ref);for(_ in l)v.call(l,_)&&!s.hasOwnProperty(_)&&(C[_]=l[_]);if(E&&E.defaultProps)for(_ in l=E.defaultProps,l)C[_]===void 0&&(C[_]=l[_]);return{$$typeof:o,type:E,key:S,ref:O,props:C,_owner:i.current}}return W.Fragment=d,W.jsx=u,W.jsxs=u,W}var N={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,14 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var se;function Me(){return se||(se=1,process.env.NODE_ENV!=="production"&&function(){var n=E,u=Symbol.for("react.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),b=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator,F="@@iterator";function G(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[F];return typeof r=="function"?r:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];le("error",e,t)}}function le(e,r,t){{var a=k.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(r+="%s",t=t.concat([d]));var v=t.map(function(l){return String(l)});v.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,v)}}var ce=!1,z=!1,Ke=!1,Xe=!1,Qe=!1,fe;fe=Symbol.for("react.module.reference");function Ze(e){return!!(typeof e=="string"||typeof e=="function"||e===h||e===s||Qe||e===c||e===C||e===R||Xe||e===O||ce||z||Ke||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===w||e.$$typeof===i||e.$$typeof===b||e.$$typeof===g||e.$$typeof===fe||e.getModuleId!==void 0))}function qe(e,r,t){var a=e.displayName;if(a)return a;var d=r.displayName||r.name||"";return d!==""?t+"("+d+")":t}function de(e){return e.displayName||"Context"}function A(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h:return"Fragment";case p:return"Portal";case s:return"Profiler";case c:return"StrictMode";case C:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return de(r)+".Consumer";case i:var t=e;return de(t._context)+".Provider";case g:return qe(e,e.render,"ForwardRef");case w:var a=e.displayName||null;return a!==null?a:A(e.type)||"Memo";case S:{var d=e,v=d._payload,l=d._init;try{return A(l(v))}catch{return null}}}return null}var I=Object.assign,V=0,ve,ge,pe,he,me,Ee,ye;function be(){}be.__reactDisabledLog=!0;function $e(){{if(V===0){ve=console.log,ge=console.info,pe=console.warn,he=console.error,me=console.group,Ee=console.groupCollapsed,ye=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function er(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:ve}),info:I({},e,{value:ge}),warn:I({},e,{value:pe}),error:I({},e,{value:he}),group:I({},e,{value:me}),groupCollapsed:I({},e,{value:Ee}),groupEnd:I({},e,{value:ye})})}V<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=k.ReactCurrentDispatcher,ee;function J(e,r,t){{if(ee===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);ee=a&&a[1]||""}return`
18
- `+ee+e}}var re=!1,H;{var rr=typeof WeakMap=="function"?WeakMap:Map;H=new rr}function Re(e,r){if(!e||re)return"";{var t=H.get(e);if(t!==void 0)return t}var a;re=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=$.current,$.current=null,$e();try{if(r){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(x){a=x}Reflect.construct(e,[],l)}else{try{l.call()}catch(x){a=x}e.call(l.prototype)}}else{try{throw Error()}catch(x){a=x}e()}}catch(x){if(x&&a&&typeof x.stack=="string"){for(var o=x.stack.split(`
17
+ */var ue;function Me(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var n=m,o=Symbol.for("react.element"),d=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),E=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator,F="@@iterator";function G(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[F];return typeof r=="function"?r:null}var k=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];le("error",e,t)}}function le(e,r,t){{var a=k.ReactDebugCurrentFrame,g=a.getStackAddendum();g!==""&&(r+="%s",t=t.concat([g]));var h=t.map(function(f){return String(f)});h.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,h)}}var fe=!1,z=!1,Ze=!1,qe=!1,$e=!1,de;de=Symbol.for("react.module.reference");function er(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===s||$e||e===i||e===w||e===_||qe||e===O||fe||z||Ze||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===C||e.$$typeof===u||e.$$typeof===E||e.$$typeof===l||e.$$typeof===de||e.getModuleId!==void 0))}function rr(e,r,t){var a=e.displayName;if(a)return a;var g=r.displayName||r.name||"";return g!==""?t+"("+g+")":t}function ve(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case d:return"Portal";case s:return"Profiler";case i:return"StrictMode";case w:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return ve(r)+".Consumer";case u:var t=e;return ve(t._context)+".Provider";case l:return rr(e,e.render,"ForwardRef");case C:var a=e.displayName||null;return a!==null?a:x(e.type)||"Memo";case S:{var g=e,h=g._payload,f=g._init;try{return x(f(h))}catch{return null}}}return null}var I=Object.assign,V=0,pe,ge,he,me,Ee,ye,be;function Re(){}Re.__reactDisabledLog=!0;function tr(){{if(V===0){pe=console.log,ge=console.info,he=console.warn,me=console.error,Ee=console.group,ye=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Re,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function nr(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:pe}),info:I({},e,{value:ge}),warn:I({},e,{value:he}),error:I({},e,{value:me}),group:I({},e,{value:Ee}),groupCollapsed:I({},e,{value:ye}),groupEnd:I({},e,{value:be})})}V<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $=k.ReactCurrentDispatcher,ee;function J(e,r,t){{if(ee===void 0)try{throw Error()}catch(g){var a=g.stack.trim().match(/\n( *(at )?)/);ee=a&&a[1]||""}return`
18
+ `+ee+e}}var re=!1,H;{var ar=typeof WeakMap=="function"?WeakMap:Map;H=new ar}function _e(e,r){if(!e||re)return"";{var t=H.get(e);if(t!==void 0)return t}var a;re=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=$.current,$.current=null,tr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(A){a=A}Reflect.construct(e,[],f)}else{try{f.call()}catch(A){a=A}e.call(f.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var c=A.stack.split(`
19
19
  `),T=a.stack.split(`
20
- `),m=o.length-1,y=T.length-1;m>=1&&y>=0&&o[m]!==T[y];)y--;for(;m>=1&&y>=0;m--,y--)if(o[m]!==T[y]){if(m!==1||y!==1)do if(m--,y--,y<0||o[m]!==T[y]){var P=`
21
- `+o[m].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,P),P}while(m>=1&&y>=0);break}}}finally{re=!1,$.current=v,er(),Error.prepareStackTrace=d}var M=e?e.displayName||e.name:"",Fe=M?J(M):"";return typeof e=="function"&&H.set(e,Fe),Fe}function tr(e,r,t){return Re(e,!1)}function nr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,nr(e));if(typeof e=="string")return J(e);switch(e){case C:return J("Suspense");case R:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return tr(e.render);case w:return K(e.type,r,t);case S:{var a=e,d=a._payload,v=a._init;try{return K(v(d),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,_e={},Te=k.ReactDebugCurrentFrame;function Q(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}function ar(e,r,t,a,d){{var v=Function.call.bind(X);for(var l in e)if(v(e,l)){var o=void 0;try{if(typeof e[l]!="function"){var T=Error((a||"React class")+": "+t+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}o=e[l](r,l,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m){o=m}o&&!(o instanceof Error)&&(Q(d),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,l,typeof o),Q(null)),o instanceof Error&&!(o.message in _e)&&(_e[o.message]=!0,Q(d),f("Failed %s type: %s",t,o.message),Q(null))}}}var or=Array.isArray;function te(e){return or(e)}function ir(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ur(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Ce(e){if(ur(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ir(e)),we(e)}var U=k.ReactCurrentOwner,sr={key:!0,ref:!0,__self:!0,__source:!0},Oe,Se,ne;ne={};function lr(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function cr(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function fr(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=A(U.current.type);ne[t]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(U.current.type),e.ref),ne[t]=!0)}}function dr(e,r){{var t=function(){Oe||(Oe=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function vr(e,r){{var t=function(){Se||(Se=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var gr=function(e,r,t,a,d,v,l){var o={$$typeof:u,type:e,key:r,ref:t,props:l,_owner:v};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function pr(e,r,t,a,d){{var v,l={},o=null,T=null;t!==void 0&&(Ce(t),o=""+t),cr(r)&&(Ce(r.key),o=""+r.key),lr(r)&&(T=r.ref,fr(r,d));for(v in r)X.call(r,v)&&!sr.hasOwnProperty(v)&&(l[v]=r[v]);if(e&&e.defaultProps){var m=e.defaultProps;for(v in m)l[v]===void 0&&(l[v]=m[v])}if(o||T){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&dr(l,y),T&&vr(l,y)}return gr(e,o,T,d,a,U.current,l)}}var ae=k.ReactCurrentOwner,Pe=k.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function je(){{if(ae.current){var e=A(ae.current.type);if(e)return`
20
+ `),y=c.length-1,b=T.length-1;y>=1&&b>=0&&c[y]!==T[b];)b--;for(;y>=1&&b>=0;y--,b--)if(c[y]!==T[b]){if(y!==1||b!==1)do if(y--,b--,b<0||c[y]!==T[b]){var j=`
21
+ `+c[y].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,j),j}while(y>=1&&b>=0);break}}}finally{re=!1,$.current=h,nr(),Error.prepareStackTrace=g}var M=e?e.displayName||e.name:"",Ie=M?J(M):"";return typeof e=="function"&&H.set(e,Ie),Ie}function or(e,r,t){return _e(e,!1)}function ir(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return _e(e,ir(e));if(typeof e=="string")return J(e);switch(e){case w:return J("Suspense");case _:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return or(e.render);case C:return K(e.type,r,t);case S:{var a=e,g=a._payload,h=a._init;try{return K(h(g),r,t)}catch{}}}return""}var X=Object.prototype.hasOwnProperty,we={},Te=k.ReactDebugCurrentFrame;function Q(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}function sr(e,r,t,a,g){{var h=Function.call.bind(X);for(var f in e)if(h(e,f)){var c=void 0;try{if(typeof e[f]!="function"){var T=Error((a||"React class")+": "+t+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}c=e[f](r,f,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){c=y}c&&!(c instanceof Error)&&(Q(g),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,f,typeof c),Q(null)),c instanceof Error&&!(c.message in we)&&(we[c.message]=!0,Q(g),p("Failed %s type: %s",t,c.message),Q(null))}}}var ur=Array.isArray;function te(e){return ur(e)}function cr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function lr(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Oe(e){if(lr(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cr(e)),Ce(e)}var U=k.ReactCurrentOwner,fr={key:!0,ref:!0,__self:!0,__source:!0},Se,je,ne;ne={};function dr(e){if(X.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function vr(e){if(X.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function pr(e,r){if(typeof e.ref=="string"&&U.current&&r&&U.current.stateNode!==r){var t=x(U.current.type);ne[t]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',x(U.current.type),e.ref),ne[t]=!0)}}function gr(e,r){{var t=function(){Se||(Se=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function hr(e,r){{var t=function(){je||(je=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var mr=function(e,r,t,a,g,h,f){var c={$$typeof:o,type:e,key:r,ref:t,props:f,_owner:h};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function Er(e,r,t,a,g){{var h,f={},c=null,T=null;t!==void 0&&(Oe(t),c=""+t),vr(r)&&(Oe(r.key),c=""+r.key),dr(r)&&(T=r.ref,pr(r,g));for(h in r)X.call(r,h)&&!fr.hasOwnProperty(h)&&(f[h]=r[h]);if(e&&e.defaultProps){var y=e.defaultProps;for(h in y)f[h]===void 0&&(f[h]=y[h])}if(c||T){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&gr(f,b),T&&hr(f,b)}return mr(e,c,T,g,a,U.current,f)}}var ae=k.ReactCurrentOwner,Pe=k.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var oe;oe=!1;function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function ke(){{if(ae.current){var e=x(ae.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function hr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function yr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var ke={};function mr(e){{var r=je();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+r+":"+t+"."}return""}}var xe={};function br(e){{var r=ke();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function Ae(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=mr(r);if(ke[t])return;ke[t]=!0;var a="";e&&e._owner&&e._owner!==ae.current&&(a=" It was passed a child from "+A(e._owner.type)+"."),L(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),L(null)}}function xe(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var a=e[t];ie(a)&&Ae(a,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var d=G(e);if(typeof d=="function"&&d!==e.entries)for(var v=d.call(e),l;!(l=v.next()).done;)ie(l.value)&&Ae(l.value,r)}}}function Er(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===g||r.$$typeof===w))t=r.propTypes;else return;if(t){var a=A(r);ar(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var d=A(r);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){L(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),L(null);break}}e.ref!==null&&(L(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}function De(e,r,t,a,d,v){{var l=Ze(e);if(!l){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=hr(d);T?o+=T:o+=je();var m;e===null?m="null":te(e)?m="array":e!==void 0&&e.$$typeof===u?(m="<"+(A(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):m=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m,o)}var y=pr(e,r,t,d,v);if(y==null)return y;if(l){var P=r.children;if(P!==void 0)if(a)if(te(P)){for(var M=0;M<P.length;M++)xe(P[M],e);Object.freeze&&Object.freeze(P)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xe(P,e)}return e===h?yr(y):Er(y),y}}function br(e,r,t){return De(e,r,t,!0)}function Rr(e,r,t){return De(e,r,t,!1)}var _r=Rr,Tr=br;W.Fragment=h,W.jsx=_r,W.jsxs=Tr}()),W}(function(n){process.env.NODE_ENV==="production"?n.exports=Le():n.exports=Me()})(Ie);const j=Z.jsx,Y=E.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),Ne=({axios:n,children:u,translate:p,useAuth:h,Outlet:c,Navigate:s,useLocation:i,useGoogleTagManager:b})=>{const g=E.useMemo(()=>({axios:n,Navigate:s,Outlet:c,translate:p,useAuth:h,useGoogleTagManager:b,useLocation:i}),[s,c,n,p,h,b,i]);return j(Y.Provider,{value:g,children:u})},B=n=>`RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,We=({Fallback:n,loginPath:u="/login",localStorageKey:p="user",redirect401Path:h="/login",...c})=>{var D,F,G,k;const{axios:s=c.axios,useLocation:i=c.useLocation,useAuth:b=c.useAuth,Outlet:g=c.Outlet,Navigate:C=c.Navigate}=E.useContext(Y);if(b===void 0)throw new Error(B("useAuth"));if(i===void 0)throw new Error(B("useLocation"));if(g===void 0)throw new Error(B("Outlet"));if(C===void 0)throw new Error(B("Navigate"));const[R,w]=E.useState(null),{isLogged:S}=b(),O=i();return E.useLayoutEffect(()=>{s==null||s.interceptors.response.use(f=>f,async f=>{var z;return typeof f=="object"&&f&&"response"in f&&f.response&&typeof f.response=="object"&&"status"in f.response&&f.response&&typeof f.response=="object"&&"status"in f.response&&((z=f==null?void 0:f.response)==null?void 0:z.status)===401&&(s.defaults.headers.common.Authorization=null,localStorage.removeItem(p),w(h)),Promise.reject(f)})},[s==null?void 0:s.defaults,s==null?void 0:s.interceptors.response,p,h]),S&&!R?j(E.Suspense,{fallback:n,children:(F=(D=O.state)==null?void 0:D.from)!=null&&F.state&&((k=(G=O.state)==null?void 0:G.from)==null?void 0:k.pathname)===u?j(C,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):j(g,{})}):j(C,{to:u,state:{from:O},replace:!0})},q=n=>`GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ye=({...n})=>{const{useLocation:u=n.useLocation,Outlet:p=n.Outlet,useGoogleTagManager:h=n.useGoogleTagManager}=E.useContext(Y);if(u===void 0)throw new Error(q("useLocation"));if(p===void 0)throw new Error(q("Outlet"));if(h===void 0)throw new Error(q("useGoogleTagManager"));const{pathname:c}=u(),{sendEvent:s}=h();return E.useEffect(()=>{s({event:"pageView",pathname:c})},[c,s]),j(p,{})},Ve=({axios:n,baseURL:u,userLocalStorageKey:p="user",postContentType:h="application/json"})=>(E.useLayoutEffect(()=>{if(!n.defaults)return;const c=localStorage.getItem(p),s=c?JSON.parse(c):null,i=s&&typeof s=="object"&&"tokenType"in s&&s.tokenType?s.tokenType:null,b=s&&typeof s=="object"&&"accessToken"in s&&s.accessToken?s.accessToken:null,g=c?`${i} ${b}`:null;n.defaults.baseURL=u,n.defaults.headers.post["Content-Type"]=h,g&&(n.defaults.headers.common.Authorization=g)},[n.defaults,n.defaults.baseURL,n.defaults.headers.common,n.defaults.headers.post,u,h,p]),null),Ue=({i18n:n,initReactI18next:u,resources:p,LanguageDetector:h})=>(n.use(h).use(u).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:p,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",c=>{document.documentElement.setAttribute("lang",c)}),null),Be=({dsn:n,sentry:u})=>(E.useLayoutEffect(()=>{u&&process.env.NODE_ENV!=="development"&&u.init({dsn:n,integrations:[new u.BrowserTracing],tracesSampleRate:1})},[n,u]),null),Ge=({IMaskMixin:n,...u})=>{const p=E.useMemo(()=>n(({TextField:h,...c})=>j(h,{...c})),[n]);return j(p,{...u})},ze=({mapbox:n,accessToken:u})=>(E.useLayoutEffect(()=>{n&&u&&(n.accessToken=u)},[u,n]),null),Je=({children:n,defaultOptions:u,QueryClient:p,QueryClientProvider:h})=>{const c=new p({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...u}}});return j(h,{client:c,children:n})},He=n=>{const{unknownErrorTranslationKey:u="error.unknownError"}=n||{},{translate:p=n==null?void 0:n.translate}=E.useContext(Y);return{printError:E.useCallback(c=>{var b,g,C,R,w,S,O,D,F;const s=p?p(u):"Unknown error",{response:i}=c||{};return c!=null&&c.reason?String(c.reason):(b=i==null?void 0:i.data)!=null&&b.reason?String(i.data.reason):(g=i==null?void 0:i.data)!=null&&g.message?String(i.data.message):(R=(C=i==null?void 0:i.data)==null?void 0:C.detail)!=null&&R.length&&Array.isArray((w=i==null?void 0:i.data)==null?void 0:w.detail)&&((O=(S=i==null?void 0:i.data)==null?void 0:S.detail[0])!=null&&O.msg)&&typeof((F=(D=i==null?void 0:i.data)==null?void 0:D.detail[0])==null?void 0:F.msg)=="string"?String(i.data.detail[0].msg):s},[p,u])}};_.AxiosConfig=Ve,_.GTMSendPageView=Ye,_.I18nConfig=Ue,_.InjectDependenciesContext=Y,_.InjectDependenciesProvider=Ne,_.MapBoxConfig=ze,_.MaskTextField=Ge,_.QueryClientConfigProvider=Je,_.RequireAuth=We,_.SentryConfig=Be,_.useResponseError=He,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+t+">.")}return r}}function Ae(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=br(r);if(xe[t])return;xe[t]=!0;var a="";e&&e._owner&&e._owner!==ae.current&&(a=" It was passed a child from "+x(e._owner.type)+"."),L(e),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),L(null)}}function De(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var a=e[t];ie(a)&&Ae(a,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var g=G(e);if(typeof g=="function"&&g!==e.entries)for(var h=g.call(e),f;!(f=h.next()).done;)ie(f.value)&&Ae(f.value,r)}}}function Rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===C))t=r.propTypes;else return;if(t){var a=x(r);sr(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!oe){oe=!0;var g=x(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _r(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){L(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),L(null);break}}e.ref!==null&&(L(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}function Fe(e,r,t,a,g,h){{var f=er(e);if(!f){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=yr(g);T?c+=T:c+=ke();var y;e===null?y="null":te(e)?y="array":e!==void 0&&e.$$typeof===o?(y="<"+(x(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,c)}var b=Er(e,r,t,g,h);if(b==null)return b;if(f){var j=r.children;if(j!==void 0)if(a)if(te(j)){for(var M=0;M<j.length;M++)De(j[M],e);Object.freeze&&Object.freeze(j)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else De(j,e)}return e===v?_r(b):Rr(b),b}}function wr(e,r,t){return Fe(e,r,t,!0)}function Tr(e,r,t){return Fe(e,r,t,!1)}var Cr=Tr,Or=wr;N.Fragment=v,N.jsx=Cr,N.jsxs=Or}()),N}process.env.NODE_ENV==="production"?Z.exports=Le():Z.exports=Me();var P=Z.exports;const Y=m.createContext({axios:void 0,children:void 0,Navigate:void 0,Outlet:void 0,translate:void 0,useAuth:void 0,useLocation:void 0}),We=({axios:n,children:o,translate:d,useAuth:v,Outlet:i,Navigate:s,useLocation:u,useGoogleTagManager:E})=>{const l=m.useMemo(()=>({axios:n,Navigate:s,Outlet:i,translate:d,useAuth:v,useGoogleTagManager:E,useLocation:u}),[s,i,n,d,v,E,u]);return P.jsx(Y.Provider,{value:l,children:o})},B=n=>`RequireAuth require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ne=({Fallback:n,loginPath:o="/login",localStorageKey:d="user",redirect401Path:v="/login",...i})=>{var D,F,G,k;const{axios:s=i.axios,useLocation:u=i.useLocation,useAuth:E=i.useAuth,Outlet:l=i.Outlet,Navigate:w=i.Navigate}=m.useContext(Y);if(E===void 0)throw new Error(B("useAuth"));if(u===void 0)throw new Error(B("useLocation"));if(l===void 0)throw new Error(B("Outlet"));if(w===void 0)throw new Error(B("Navigate"));const[_,C]=m.useState(null),{isLogged:S}=E(),O=u();return m.useLayoutEffect(()=>{s==null||s.interceptors.response.use(p=>p,async p=>{var z;return typeof p=="object"&&p&&"response"in p&&p.response&&typeof p.response=="object"&&"status"in p.response&&p.response&&typeof p.response=="object"&&"status"in p.response&&((z=p==null?void 0:p.response)==null?void 0:z.status)===401&&(s.defaults.headers.common.Authorization=null,localStorage.removeItem(d),C(v)),Promise.reject(p)})},[s==null?void 0:s.defaults,s==null?void 0:s.interceptors.response,d,v]),S&&!_?P.jsx(m.Suspense,{fallback:n,children:(F=(D=O.state)==null?void 0:D.from)!=null&&F.state&&((k=(G=O.state)==null?void 0:G.from)==null?void 0:k.pathname)===o?P.jsx(w,{to:O.state.from.state.from.pathname+O.state.from.state.from.search,replace:!0}):P.jsx(l,{})}):P.jsx(w,{to:o,state:{from:O},replace:!0})},q=n=>`GTMSendPageView require « ${n} » dependency. You can provide with InjectDependenciesProvider or directly in props.`,Ye=({...n})=>{const{useLocation:o=n.useLocation,Outlet:d=n.Outlet,useGoogleTagManager:v=n.useGoogleTagManager}=m.useContext(Y);if(o===void 0)throw new Error(q("useLocation"));if(d===void 0)throw new Error(q("Outlet"));if(v===void 0)throw new Error(q("useGoogleTagManager"));const{pathname:i}=o(),{sendEvent:s}=v();return m.useEffect(()=>{s({event:"pageView",pathname:i})},[i,s]),P.jsx(d,{})},Ve=({axios:n,baseURL:o,userLocalStorageKey:d="user",postContentType:v="application/json"})=>(m.useLayoutEffect(()=>{if(!n.defaults)return;const i=localStorage.getItem(d),s=i?JSON.parse(i):null,u=s&&typeof s=="object"&&"tokenType"in s&&s.tokenType?s.tokenType:null,E=s&&typeof s=="object"&&"accessToken"in s&&s.accessToken?s.accessToken:null,l=i?`${u} ${E}`:null;n.defaults.baseURL=o,n.defaults.headers.post["Content-Type"]=v,l&&(n.defaults.headers.common.Authorization=l)},[n.defaults,n.defaults.baseURL,n.defaults.headers.common,n.defaults.headers.post,o,v,d]),null),Ue=({i18n:n,initReactI18next:o,resources:d,LanguageDetector:v})=>(n.use(v).use(o).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:d,returnNull:!1}).then(()=>{document.documentElement.lang!==n.resolvedLanguage&&n.resolvedLanguage&&document.documentElement.setAttribute("lang",n.resolvedLanguage)}),n.on("languageChanged",i=>{document.documentElement.setAttribute("lang",i)}),null),Be=({dsn:n,sentry:o})=>(m.useLayoutEffect(()=>{o&&process.env.NODE_ENV!=="development"&&o.init({dsn:n,integrations:[new o.BrowserTracing],tracesSampleRate:1})},[n,o]),null),Ge=({IMaskMixin:n,...o})=>{const d=m.useMemo(()=>n(({TextField:v,...i})=>P.jsx(v,{...i})),[n]);return P.jsx(d,{...o})},ze=({mapbox:n,accessToken:o})=>(m.useLayoutEffect(()=>{n&&o&&(n.accessToken=o)},[o,n]),null),Je=({children:n,defaultOptions:o,QueryClient:d,QueryClientProvider:v})=>{const i=new d({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:3,...o}}});return P.jsx(v,{client:i,children:n})},He=n=>{const{unknownErrorTranslationKey:o="error.unknownError"}=n||{},{translate:d=n==null?void 0:n.translate}=m.useContext(Y);return{printError:m.useCallback(i=>{var E,l,w,_,C,S,O,D,F;const s=d?d(o):"Unknown error",{response:u}=i||{};return i!=null&&i.reason?String(i.reason):(E=u==null?void 0:u.data)!=null&&E.reason?String(u.data.reason):(l=u==null?void 0:u.data)!=null&&l.message?String(u.data.message):(_=(w=u==null?void 0:u.data)==null?void 0:w.detail)!=null&&_.length&&Array.isArray((C=u==null?void 0:u.data)==null?void 0:C.detail)&&((O=(S=u==null?void 0:u.data)==null?void 0:S.detail[0])!=null&&O.msg)&&typeof((F=(D=u==null?void 0:u.data)==null?void 0:D.detail[0])==null?void 0:F.msg)=="string"?String(u.data.detail[0].msg):s},[d,o])}},Ke=({data:n,fetchNextPage:o,isFetchingNextPage:d,isInitialLoading:v,isLoading:i,enabled:s=!0})=>{const u=m.useCallback(async l=>{d||!s||await o({pageParam:(l==null?void 0:l.pageParam)||l.visibleRowsCount})},[s,o,d]),E=m.useMemo(()=>{if(n)return n.pages.reduce((l,w)=>[...l,...w],[])},[n]);return{fetchNextPageOnRowsScrollEnd:u,isLoading:d||i,loadingVariant:v?"skeleton":"linear",rows:E}},ce=n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase(),Xe=n=>{const v=n.split("/").filter(i=>i.length>0).map(i=>i.replace(/\${([^}]*)}/g,"$1").split(/[_-]/).map(l=>ce(l)).join("")).join("");return v.charAt(0).toLowerCase()+v.slice(1)},Qe=(n,o,d)=>{const v=Xe(o),i=ce(d);return`${v}${i}`};R.AxiosConfig=Ve,R.GTMSendPageView=Ye,R.I18nConfig=Ue,R.InjectDependenciesContext=Y,R.InjectDependenciesProvider=We,R.MapBoxConfig=ze,R.MaskTextField=Ge,R.QueryClientConfigProvider=Je,R.RequireAuth=Ne,R.SentryConfig=Be,R.getOrvalOperationName=Qe,R.useInfiniteDataGrid=Ke,R.useResponseError=He,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "0.7.2",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",
7
- "main": "./dist/main.cjs",
7
+ "main": "./dist/main.umd.cjs",
8
8
  "module": "./dist/main.js",
9
9
  "files": [
10
10
  "dist"
@@ -12,7 +12,7 @@
12
12
  "exports": {
13
13
  ".": {
14
14
  "import": "./dist/main.js",
15
- "require": "./dist/main.cjs"
15
+ "require": "./dist/main.umd.cjs"
16
16
  }
17
17
  },
18
18
  "repository": {
@@ -36,20 +36,19 @@
36
36
  "react-dom": "^18.2.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@testing-library/jest-dom": "^5.16.5",
39
+ "@testing-library/jest-dom": "^5.17.0",
40
40
  "@testing-library/react": "^14.0.0",
41
- "@testing-library/react-hooks": "^8.0.1",
42
41
  "@testing-library/user-event": "^14.4.3",
43
- "@types/react": "^18.0.28",
44
- "@types/react-dom": "^18.0.11",
45
- "@vitejs/plugin-react": "^3.1.0",
46
- "eslint-config-react-tracktor": "^1.0.5",
42
+ "@types/react": "^18.2.18",
43
+ "@types/react-dom": "^18.2.7",
44
+ "@vitejs/plugin-react": "^4.0.4",
45
+ "eslint-config-react-tracktor": "^1.1.3",
47
46
  "husky": "^8.0.3",
48
- "jsdom": "^21.1.0",
47
+ "jsdom": "^21.1.2",
49
48
  "typescript": "^4.9.5",
50
- "vite": "^4.1.4",
51
- "vite-plugin-dts": "^2.1.0",
52
- "vitest": "^0.29.2"
49
+ "vite": "^4.4.8",
50
+ "vite-plugin-dts": "^3.5.0",
51
+ "vitest": "^0.34.1"
53
52
  },
54
53
  "peerDependencies": {
55
54
  "react": ">=18.0.0",