@zeniai/web-cockpit-ui 2.1.24-qa → 2.1.25-dev
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/assets/CreditAgentRoutes-DCEqkbP3.js +4 -0
- package/dist/assets/{Preview-fdOCM8pI.js → Preview-l-YNNTfe.js} +1 -1
- package/dist/assets/{ScreenRoutes-Dxzap3kT.js → ScreenRoutes-C8NQCfat.js} +65 -65
- package/dist/assets/SignInScreen-DZpfpkvi.js +1 -0
- package/dist/assets/{analytics-cF9vsVE6.js → analytics-BKKnoe9v.js} +1 -1
- package/dist/assets/{analyticsHelper-RU0Hd7D_.js → analyticsHelper-CR4Kcrpe.js} +1 -1
- package/dist/assets/{core-Cw1yuiX5.js → core-B8yM-a3I.js} +1 -1
- package/dist/assets/{dash.all.min-BeTswrxh.js → dash.all.min-CcJ79Ii3.js} +1 -1
- package/dist/assets/{empty-Cqj0IL-P.js → empty-Bt9zcLFB.js} +1 -1
- package/dist/assets/{empty-Cf_UaBBV.js → empty-KBOV5st3.js} +1 -1
- package/dist/assets/epic-DLoGYW3i.js +2 -0
- package/dist/assets/{index-C7Sx4C96.js → index-6BVex5Y5.js} +1 -1
- package/dist/assets/{index-B9jPQwSi.js → index-BZR7LESy.js} +10013 -10838
- package/dist/assets/{index-DAQKBzBG.js → index-BaOHPO6-.js} +1 -1
- package/dist/assets/{index-DKRg22Sn.js → index-BjbQC7rk.js} +1 -1
- package/dist/assets/{index-DM2KJMvg.js → index-CRPpHtvj.js} +1 -1
- package/dist/assets/{index-CePGsY91.js → index-CnxOo-gg.js} +1 -1
- package/dist/assets/{index-T6sL0mkT.js → index-DQx59sRE.js} +2 -2
- package/dist/assets/index-DcGIrthm.css +1 -0
- package/dist/assets/{lexical-CcCdpURS.js → lexical-VWyRQHrp.js} +1 -1
- package/dist/assets/liveblocks-DSIQKZKW.js +59 -0
- package/dist/assets/{lottie-Cbbk4dn5.js → lottie-DkKIGfGz.js} +1 -1
- package/dist/assets/{mui-BXu8LgeK.js → mui-CoMFoc_7.js} +1 -1
- package/dist/assets/{react-DAfSfktL.js → react-BBqZQnID.js} +1 -1
- package/dist/assets/{react-CjDhz93a.js → react-Bp902q8Y.js} +1 -1
- package/dist/assets/{react-5WMbFZwS.js → react-BvS9dCGv.js} +1 -1
- package/dist/assets/{react-XhY8OjAR.js → react-CILNlWQk.js} +1 -1
- package/dist/assets/{react-DK062qhg.js → react-CvKpIpd_.js} +1 -1
- package/dist/assets/{react-BKRhUOEt.js → react-DXmk1laB.js} +2 -2
- package/dist/assets/{react-DpKC_OsU.js → react-qzdVTL09.js} +1 -1
- package/dist/assets/{react-DVT-sKZH.js → react-yY1OKJku.js} +1 -1
- package/dist/assets/{recharts-DU6GYwaM.js → recharts-BdsKV7VX.js} +1 -1
- package/dist/assets/{sentry-b4QdPnV1.js → sentry-LloEE0qc.js} +1 -1
- package/dist/assets/{url-Dkj5n2jh.js → url-BQ7S0ImG.js} +1 -1
- package/dist/assets/{url-Di7Xg8S3.js → url-CT86oRm_.js} +1 -1
- package/dist/assets/{utils-B99CtaZi.js → utils-CQI03c-m.js} +1 -1
- package/dist/assets/{zeni-epic-state-X3dL-kq4.js → zeni-epic-state-XyiIYchy.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +6 -6
- package/dist/assets/CreditAgentRoutes-D7_HQgOw.js +0 -4
- package/dist/assets/SignInScreen-C5xe5Y15.js +0 -1
- package/dist/assets/epic-Cz7yBnY1.js +0 -2
- package/dist/assets/index-B9p5bBUx.css +0 -1
- package/dist/assets/liveblocks-BHLGTX81.js +0 -54
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zeni - Modern Finance Team For Startups</title><script type="module" crossorigin src="/assets/index-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zeni - Modern Finance Team For Startups</title><script type="module" crossorigin src="/assets/index-BZR7LESy.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-LloEE0qc.js"><link rel="modulepreload" crossorigin href="/assets/core-B8yM-a3I.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-XyiIYchy.js"><link rel="modulepreload" crossorigin href="/assets/recharts-BdsKV7VX.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-DSIQKZKW.js"><link rel="modulepreload" crossorigin href="/assets/mui-CoMFoc_7.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BKKnoe9v.js"><link rel="modulepreload" crossorigin href="/assets/lottie-DkKIGfGz.js"><link rel="modulepreload" crossorigin href="/assets/lexical-VWyRQHrp.js"><link rel="modulepreload" crossorigin href="/assets/utils-CQI03c-m.js"><link rel="stylesheet" crossorigin href="/assets/index-DcGIrthm.css"></head><body><div id="root"></div></body></html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/web-cockpit-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.25-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"@lexical/selection": "^0.9.1",
|
|
21
21
|
"@lexical/table": "^0.9.1",
|
|
22
22
|
"@lexical/utils": "^0.9.1",
|
|
23
|
-
"@liveblocks/react": "^
|
|
24
|
-
"@liveblocks/react-ui": "^
|
|
23
|
+
"@liveblocks/react": "^3.22.0",
|
|
24
|
+
"@liveblocks/react-ui": "^3.22.0",
|
|
25
25
|
"@mui/material": "^7.3.5",
|
|
26
26
|
"@sentry/core": "^9.42.1",
|
|
27
27
|
"@sentry/react": "^9.42.1",
|
|
28
28
|
"@types/crypto-js": "^4.1.0",
|
|
29
|
-
"@zeniai/client-analytics": "2.0.
|
|
30
|
-
"@zeniai/client-epic-state": "5.1.
|
|
31
|
-
"@zeniai/web-components": "4.2.
|
|
29
|
+
"@zeniai/client-analytics": "2.0.45",
|
|
30
|
+
"@zeniai/client-epic-state": "5.1.51",
|
|
31
|
+
"@zeniai/web-components": "4.2.59",
|
|
32
32
|
"color": "3.1.3",
|
|
33
33
|
"cross-fetch": "^4.0.0",
|
|
34
34
|
"crypto-js": "4.2.0",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./liveblocks-BHLGTX81.js";import{u as k,P as v}from"./ScreenRoutes-Dxzap3kT.js";import{a as f}from"./sentry-b4QdPnV1.js";import{i as P,n as T,g as m,h as U,k as C,l as I,N as j}from"./core-Cw1yuiX5.js";import{KB as R,KC as N,kk as E,KD as M,l2 as L,l5 as $,kT as _,KE as K,KF as B,k$ as F,kX as O}from"./zeni-epic-state-X3dL-kq4.js";import{z as X,_ as q,i as V,j as J,a0 as Z,s as G,X as H,a as Q,g as W,h as Y}from"./index-B9jPQwSi.js";import{n as ee}from"./mui-BXu8LgeK.js";import"./recharts-DU6GYwaM.js";import"./analyticsHelper-RU0Hd7D_.js";import"./utils-B99CtaZi.js";import"./empty-Cqj0IL-P.js";import"./index-DAQKBzBG.js";import"./url-Di7Xg8S3.js";import"./index-C7Sx4C96.js";import"./analytics-cF9vsVE6.js";import"./lottie-Cbbk4dn5.js";import"./lexical-CcCdpURS.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="b5ebf758-35dd-4b0e-8aac-71cfea4e859a",a._sentryDebugIdIdentifier="sentry-dbid-b5ebf758-35dd-4b0e-8aac-71cfea4e859a")}catch{}})();function te(a,t){return{headerData:{allTabOptions:G,selectedTabOption:H("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=W(n);Q.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(O())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(K(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=U(te,ne)(Z),oe=ee.div`
|
|
2
|
-
padding: ${J.sp5};
|
|
3
|
-
text-align: center;
|
|
4
|
-
`;function se(){const a=P(),t=T(),n=m(R),g=m(N),[c,h]=f.useState(new Set),p=f.useRef(new Set),b=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{y==="Not-Started"&&t(E())},[t,y]);const d=X.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,z=f.useMemo(()=>({onFetch:()=>{t(_())},onUpdateProfile:(e,o,s)=>{const i=s.updatedByName??A;t($({tenantId:o,tenantEmailDomain:e,update:{...s,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",s=d?.zeniSessionId??"",i=b??"";if(!o||!s||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${q}/tableDownload?query=${x}`;fetch(D,{headers:{"zeni-user-id":o,"zeni-session-id":s,"zeni-tenant-id":i}}).then(async l=>{if(!l.ok){const u=await l.text();throw new Error(`Download failed: ${l.status} ${u}`)}return l.blob()}).then(l=>{const u=URL.createObjectURL(l),S=document.createElement("a");S.href=u,S.download=`${e.file_name}.xlsx`,S.click(),URL.revokeObjectURL(u)}).catch(()=>{})}}),[t,A,d,b,n.rows]);f.useEffect(()=>{if(c.size===0)return;const e=new Set;for(const o of c){const s=n.rows.find(i=>i.tenantId===o);s!=null&&s.isAnalyzing?p.current.add(o):s!=null&&!s.isAnalyzing&&p.current.has(o)&&(e.add(o),p.current.delete(o))}e.size>0&&h(o=>{const s=new Set(o);for(const i of e)s.delete(i);return s})},[n.rows,c]);const w=f.useMemo(()=>({fetchState:n.fetchStatus.fetchState,rows:n.rows.map(e=>e.isAnalyzing||e.tenantId!=null&&c.has(e.tenantId)?{...e,isAnalyzing:!0}:e),uiState:n.uiState}),[n,c]);return d==null?r.jsx(oe,{children:V.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):r.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:z,cardProfilesData:w})}function ze(){const{isAllowed:a,isLoading:t}=k();return t?null:a?r.jsx(C,{children:r.jsx(I,{path:"/*",element:r.jsx(v,{element:r.jsx(se,{})})})}):r.jsx(C,{children:r.jsx(I,{path:"/*",element:r.jsx(j,{to:"/management",replace:!0})})})}export{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-BHLGTX81.js";import{a as f,b as S,n as I}from"./sentry-b4QdPnV1.js";import{n as m,i as w,g,u as b,N as h,h as y}from"./core-Cw1yuiX5.js";import{z as d,E,i as C,a as v,x,Z as U,d as p}from"./index-B9jPQwSi.js";import{Kx as z,Ky as T,Kz as L,KA as A,bm as u}from"./zeni-epic-state-X3dL-kq4.js";import{f as D}from"./analyticsHelper-RU0Hd7D_.js";import"./recharts-DU6GYwaM.js";import"./mui-BXu8LgeK.js";import"./analytics-cF9vsVE6.js";import"./lottie-Cbbk4dn5.js";import"./lexical-CcCdpURS.js";import"./utils-B99CtaZi.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]="9c1f0c1e-97c6-4cd5-a9ab-b9cdb5bab782",e._sentryDebugIdIdentifier="sentry-dbid-9c1f0c1e-97c6-4cd5-a9ab-b9cdb5bab782")}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)=>{I({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(A({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=y(N,k)(U),P=S.memo(K);function G(){const e=m(),o=w(),i=d.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=E().mode,c=b();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(d.saveSignedInUserWithSession(t,t.zeniSessionId),z(t.userId,t.zeniSessionId),e(T("Completed")),C.updateAppLocaleID("en"),D(t,s),setTimeout(()=>{v.trackLogin(x.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return l.jsx(h,{to:a,state:{...c.state,origin:""}})}else return l.jsx(P,{navigate:o,location:c})}export{G as default};
|