@zeniai/web-cockpit-ui 2.1.0-qa → 2.1.1-next

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.
Files changed (38) hide show
  1. package/dist/assets/{CreditAgentRoutes-CkJODKmc.js → CreditAgentRoutes-GDMhhLPk.js} +1 -1
  2. package/dist/assets/{Preview-Ca84XVh9.js → Preview-BuDB-_k_.js} +1 -1
  3. package/dist/assets/{ScreenRoutes-BqT5ne43.js → ScreenRoutes-PHdMTP4Z.js} +30 -30
  4. package/dist/assets/{SignInScreen-CDVPjE3Z.js → SignInScreen-BlagdE2O.js} +1 -1
  5. package/dist/assets/{analytics-CYpa3j1U.js → analytics-Dorr9qmX.js} +1 -1
  6. package/dist/assets/{analyticsHelper-DQiZH97E.js → analyticsHelper-D4P46Dq_.js} +1 -1
  7. package/dist/assets/{core-Cw0Y6iMV.js → core-BndU4mlm.js} +1 -1
  8. package/dist/assets/{dash.all.min-CqauePJe.js → dash.all.min-0owafsBG.js} +1 -1
  9. package/dist/assets/{empty-CRRK0y1F.js → empty-CNIEPJH8.js} +1 -1
  10. package/dist/assets/{empty-BlNQOpKa.js → empty-DpQseLMu.js} +1 -1
  11. package/dist/assets/{epic-IBKzvo0d.js → epic-LyXN3BwQ.js} +2 -2
  12. package/dist/assets/{index-B97Engpr.js → index-B7SviHiw.js} +2 -2
  13. package/dist/assets/{index-c1uoSa1E.js → index-BUxAeSbp.js} +1 -1
  14. package/dist/assets/{index-si9xJ4UE.js → index-CA3NOXUg.js} +1 -1
  15. package/dist/assets/{index-CvHzjF5_.js → index-CSCKW3hp.js} +1 -1
  16. package/dist/assets/{index-G2QNisel.js → index-CXU8tUsC.js} +290 -290
  17. package/dist/assets/{index-Db86Au6G.js → index-CdgBkzJR.js} +1 -1
  18. package/dist/assets/{index-BDO9EXo9.js → index-DCMFKtAF.js} +1 -1
  19. package/dist/assets/{lexical-DKf7ZtTK.js → lexical-BT0NGs8u.js} +1 -1
  20. package/dist/assets/{liveblocks-DsFAXd7Z.js → liveblocks-9d3XPdv3.js} +1 -1
  21. package/dist/assets/{lottie-DVWoadGl.js → lottie-Dwzr-d4F.js} +1 -1
  22. package/dist/assets/{mui-CoaIZ20z.js → mui-BWnRt4Dd.js} +1 -1
  23. package/dist/assets/{react-wXqhjO4W.js → react-BBxjg9NB.js} +1 -1
  24. package/dist/assets/{react-BoGX90IQ.js → react-BsaYW8kL.js} +2 -2
  25. package/dist/assets/{react-CJMdsVGK.js → react-ByZ6aiMZ.js} +1 -1
  26. package/dist/assets/{react-BdXJSttW.js → react-CGqKNqVf.js} +1 -1
  27. package/dist/assets/{react-er18rNe2.js → react-Ce5HbUUH.js} +1 -1
  28. package/dist/assets/{react-Pr0sxFR_.js → react-D24W8KUj.js} +1 -1
  29. package/dist/assets/{react-wXb3GrfN.js → react-DJPmic14.js} +1 -1
  30. package/dist/assets/{react-DZd40psX.js → react-DL0Musq_.js} +1 -1
  31. package/dist/assets/{recharts-Col-7wNk.js → recharts-A-L5bF0u.js} +1 -1
  32. package/dist/assets/{sentry-CXyBVE9y.js → sentry-ZjVqOkhi.js} +1 -1
  33. package/dist/assets/{url-CKFJbNfn.js → url-BlqBhmb6.js} +1 -1
  34. package/dist/assets/{url-DWjkdUYG.js → url-BtftyU88.js} +1 -1
  35. package/dist/assets/{utils-D5_-Zki3.js → utils-k7ynuHYQ.js} +1 -1
  36. package/dist/assets/{zeni-epic-state-BZs-UqDN.js → zeni-epic-state-iI9A6hny.js} +3 -3
  37. package/dist/index.html +1 -1
  38. package/package.json +3 -3
@@ -1 +1 @@
1
- import{j as l}from"./liveblocks-DsFAXd7Z.js";import{a as f,b as S,n as m}from"./sentry-CXyBVE9y.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-Cw0Y6iMV.js";import{z as d,y as C,d as v,b as E,r as U,V as z,c as p}from"./index-G2QNisel.js";import{K7 as T,K8 as x,K9 as L,Ka as D,bm as u}from"./zeni-epic-state-BZs-UqDN.js";import{f as A}from"./analyticsHelper-DQiZH97E.js";import"./recharts-Col-7wNk.js";import"./mui-CoaIZ20z.js";import"./analytics-CYpa3j1U.js";import"./lottie-DVWoadGl.js";import"./lexical-DKf7ZtTK.js";import"./utils-D5_-Zki3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="19d2441c-eec9-4263-a7d5-9c8c6b356f06",e._sentryDebugIdIdentifier="sentry-dbid-19d2441c-eec9-4263-a7d5-9c8c6b356f06")}catch{}})();function N(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function k(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{m({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(D({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>d.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const K=b(N,k)(z),P=S.memo(K);function q(){const e=I(),o=w(),i=d.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=h();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(d.saveSignedInUserWithSession(t,t.zeniSessionId),T(t.userId,t.zeniSessionId),e(x("Completed")),v.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return l.jsx(y,{to:a,state:{...c.state,origin:""}})}else return l.jsx(P,{navigate:o,location:c})}export{q as default};
1
+ import{j as d}from"./liveblocks-9d3XPdv3.js";import{a as S,b as f,n as m}from"./sentry-ZjVqOkhi.js";import{n as I,i as w,g,u as h,N as b,h as y}from"./core-BndU4mlm.js";import{z as l,y as C,d as v,b as E,r as U,W as z,c as p}from"./index-CXU8tUsC.js";import{K7 as T,K8 as x,K9 as L,Ka as D,bm as u}from"./zeni-epic-state-iI9A6hny.js";import{f as A}from"./analyticsHelper-D4P46Dq_.js";import"./recharts-A-L5bF0u.js";import"./mui-BWnRt4Dd.js";import"./analytics-Dorr9qmX.js";import"./lottie-Dwzr-d4F.js";import"./lexical-BT0NGs8u.js";import"./utils-k7ynuHYQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="d8c24254-7e67-4a61-bb34-210bc827c1a4",e._sentryDebugIdIdentifier="sentry-dbid-d8c24254-7e67-4a61-bb34-210bc827c1a4")}catch{}})();function N(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function k(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{m({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(D({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const K=y(N,k)(z),P=f.memo(K);function G(){const e=I(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),T(t.userId,t.zeniSessionId),e(x("Completed")),v.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:o,location:c})}export{G as default};