thecore-auth 0.0.199 → 0.0.201
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/thecore-auth.cjs.js
CHANGED
|
@@ -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"),x=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 wr;function zc(){return wr||(wr=1,process.env.NODE_ENV==="production"?Wn.exports=Fc():Wn.exports=$c()),Wn.exports}var h=zc();const la=p.createContext(),Uc=({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},Hc="0.0.
|
|
31
|
+
Check the top-level render call using <`+g+">."),O}var T=p,M=Symbol.for("react.transitional.element"),x=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 wr;function zc(){return wr||(wr=1,process.env.NODE_ENV==="production"?Wn.exports=Fc():Wn.exports=$c()),Wn.exports}var h=zc();const la=p.createContext(),Uc=({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},Hc="0.0.201",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 Wc(){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(),Gc=({children:e})=>{const t=Wc(),[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
|
{
|
package/dist/thecore-auth.esm.js
CHANGED
|
@@ -459,7 +459,7 @@ const wa = Nt(), v0 = ({ 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.
|
|
462
|
+
}, Xc = "0.0.201", 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
|
] }) });
|