thecore-auth 0.0.184 → 0.0.185

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.
@@ -28,7 +28,7 @@ React keys must be passed directly to JSX without using spread:
28
28
 
29
29
  Check the render method of \``+D+"`."),O||(g=e(g))&&(O=`
30
30
 
31
- Check the top-level render call using <`+g+">."),O}var T=p,M=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),q=Symbol.iterator,G=Symbol.for("react.client.reference"),se=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,pe=Object.assign,Nt=Symbol.for("react.client.reference"),qe=Array.isArray,Ye=0,re,ee,W,oe,Y,Pe,Ke;i.__reactDisabledLog=!0;var Xe,Ze,dt=!1,Bt=new(typeof WeakMap=="function"?WeakMap:Map),$n=Symbol.for("react.client.reference"),Je,ft={},ht={},_e={};mn.Fragment=R,mn.jsx=function(g,O,D,H,le){return y(g,O,D,!1,H,le)},mn.jsxs=function(g,O,D,H,le){return y(g,O,D,!0,H,le)}}()),mn}var xr;function $c(){return xr||(xr=1,process.env.NODE_ENV==="production"?Wn.exports=_c():Wn.exports=Fc()),Wn.exports}var h=$c();const la=p.createContext(),zc=({children:e,defaultComponent:t})=>{const[n,i]=p.useState(!1),[s,o]=p.useState({}),[r,a]=p.useState(t),c={isLoading:n,setIsLoading:i,loadingProps:s,setLoadingProps:o,loadingComponent:r,setLoadingComponent:a,showLoadingFor:(u=2e3,d={})=>{o(d),i(!0),setTimeout(()=>{i(!1)},u)}};return h.jsx(la.Provider,{value:c,children:e})},It=()=>{const e=p.useContext(la);if(e===void 0)throw new Error("Non puoi settare il loading");return e},Uc="0.0.184",ca=({errorMessage:e,errorShow:t})=>h.jsx("section",{className:t?"":"hidden",children:h.jsxs("div",{className:"container mx-auto",children:[h.jsx("h1",{className:"text-center text-8xl my-12",children:"Errore"}),h.jsx("pre",{className:"text-xl",children:e})]})});function Hc(){const[e,t]=p.useState(document.visibilityState),[n,i]=p.useState(document.hasFocus()),[s,o]=p.useState(!1),[r,a]=p.useState(!1),l=()=>{t(document.visibilityState)},c=()=>i(!0),u=()=>i(!1),d=y=>{o(y.persisted),a(!1)},f=()=>{a(!0)};p.useEffect(()=>(document.addEventListener("visibilitychange",l),window.addEventListener("focus",c),window.addEventListener("blur",u),window.addEventListener("pageshow",d),window.addEventListener("pagehide",f),()=>{document.removeEventListener("visibilitychange",l),window.removeEventListener("focus",c),window.removeEventListener("blur",u),window.removeEventListener("pageshow",d),window.removeEventListener("pagehide",f)}),[]);const m=p.useMemo(()=>e==="visible"&&n,[e,n]);return{visibilityState:e,isVisible:e==="visible",isHidden:e==="hidden",hasFocus:n,isActive:m,isFromBFCache:s,isPageHidden:r}}const ua=p.createContext(),Wc=({children:e})=>{const t=Hc(),[n,i]=p.useState({}),[s,o]=p.useState(!1),r=p.useRef(!1),a=`Creare un file config.json in public per il corretto funzionamento
31
+ Check the top-level render call using <`+g+">."),O}var T=p,M=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),q=Symbol.iterator,G=Symbol.for("react.client.reference"),se=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,pe=Object.assign,Nt=Symbol.for("react.client.reference"),qe=Array.isArray,Ye=0,re,ee,W,oe,Y,Pe,Ke;i.__reactDisabledLog=!0;var Xe,Ze,dt=!1,Bt=new(typeof WeakMap=="function"?WeakMap:Map),$n=Symbol.for("react.client.reference"),Je,ft={},ht={},_e={};mn.Fragment=R,mn.jsx=function(g,O,D,H,le){return y(g,O,D,!1,H,le)},mn.jsxs=function(g,O,D,H,le){return y(g,O,D,!0,H,le)}}()),mn}var xr;function $c(){return xr||(xr=1,process.env.NODE_ENV==="production"?Wn.exports=_c():Wn.exports=Fc()),Wn.exports}var h=$c();const la=p.createContext(),zc=({children:e,defaultComponent:t})=>{const[n,i]=p.useState(!1),[s,o]=p.useState({}),[r,a]=p.useState(t),c={isLoading:n,setIsLoading:i,loadingProps:s,setLoadingProps:o,loadingComponent:r,setLoadingComponent:a,showLoadingFor:(u=2e3,d={})=>{o(d),i(!0),setTimeout(()=>{i(!1)},u)}};return h.jsx(la.Provider,{value:c,children:e})},It=()=>{const e=p.useContext(la);if(e===void 0)throw new Error("Non puoi settare il loading");return e},Uc="0.0.185",ca=({errorMessage:e,errorShow:t})=>h.jsx("section",{className:t?"":"hidden",children:h.jsxs("div",{className:"container mx-auto",children:[h.jsx("h1",{className:"text-center text-8xl my-12",children:"Errore"}),h.jsx("pre",{className:"text-xl",children:e})]})});function Hc(){const[e,t]=p.useState(document.visibilityState),[n,i]=p.useState(document.hasFocus()),[s,o]=p.useState(!1),[r,a]=p.useState(!1),l=()=>{t(document.visibilityState)},c=()=>i(!0),u=()=>i(!1),d=y=>{o(y.persisted),a(!1)},f=()=>{a(!0)};p.useEffect(()=>(document.addEventListener("visibilitychange",l),window.addEventListener("focus",c),window.addEventListener("blur",u),window.addEventListener("pageshow",d),window.addEventListener("pagehide",f),()=>{document.removeEventListener("visibilitychange",l),window.removeEventListener("focus",c),window.removeEventListener("blur",u),window.removeEventListener("pageshow",d),window.removeEventListener("pagehide",f)}),[]);const m=p.useMemo(()=>e==="visible"&&n,[e,n]);return{visibilityState:e,isVisible:e==="visible",isHidden:e==="hidden",hasFocus:n,isActive:m,isFromBFCache:s,isPageHidden:r}}const ua=p.createContext(),Wc=({children:e})=>{const t=Hc(),[n,i]=p.useState({}),[s,o]=p.useState(!1),r=p.useRef(!1),a=`Creare un file config.json in public per il corretto funzionamento
32
32
  Esempio di config.json:
33
33
 
34
34
  {
@@ -459,7 +459,7 @@ const wa = Nt(), y0 = ({ children: t, defaultComponent: e }) => {
459
459
  const t = ct(wa);
460
460
  if (t === void 0) throw new Error("Non puoi settare il loading");
461
461
  return t;
462
- }, Xc = "0.0.184", Zc = ({ errorMessage: t, errorShow: e }) => /* @__PURE__ */ h.jsx("section", { className: e ? "" : "hidden", children: /* @__PURE__ */ h.jsxs("div", { className: "container mx-auto", children: [
462
+ }, Xc = "0.0.185", Zc = ({ errorMessage: t, errorShow: e }) => /* @__PURE__ */ h.jsx("section", { className: e ? "" : "hidden", children: /* @__PURE__ */ h.jsxs("div", { className: "container mx-auto", children: [
463
463
  /* @__PURE__ */ h.jsx("h1", { className: "text-center text-8xl my-12", children: "Errore" }),
464
464
  /* @__PURE__ */ h.jsx("pre", { className: "text-xl", children: t })
465
465
  ] }) });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thecore-auth",
3
3
  "private": false,
4
- "version": "0.0.184",
4
+ "version": "0.0.185",
5
5
  "type": "module",
6
6
  "main": "dist/thecore-auth.cjs.js",
7
7
  "style": "dist/thecore-auth.css",