@zeniai/web-cockpit-ui 2.2.58-qa → 2.2.59-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-Dg7CtUog.js +4 -0
- package/dist/assets/{Preview-Bna_gOtI.js → Preview-BMPSWCIX.js} +1 -1
- package/dist/assets/{ScreenRoutes-yWLA1GjU.js → ScreenRoutes-BxRXMCQz.js} +74 -74
- package/dist/assets/SignInScreen-DWGpNLZo.js +1 -0
- package/dist/assets/{analytics-RySvwSeq.js → analytics-BLCKHvBT.js} +1 -1
- package/dist/assets/{analyticsHelper-CutGWXMe.js → analyticsHelper-NcAJCyj1.js} +1 -1
- package/dist/assets/{core-DU_H4wBa.js → core-Ce0Br8y9.js} +1 -1
- package/dist/assets/{dash.all.min-DkB9BhJt.js → dash.all.min-ngagFLon.js} +1 -1
- package/dist/assets/{empty-BHcQ4AW5.js → empty-DD57yx3R.js} +1 -1
- package/dist/assets/{empty-BoNNpNhU.js → empty-zNbLReOG.js} +1 -1
- package/dist/assets/epic-Bo27bVTH.js +2 -0
- package/dist/assets/{index-QWikaEQ5.js → index-B2SbPDDw.js} +1 -1
- package/dist/assets/{index-DcGIrthm.css → index-Bd7ri422.css} +1 -1
- package/dist/assets/{index-Dh3hszAl.js → index-CA49T_6s.js} +1 -1
- package/dist/assets/{index-C8HQtPk3.js → index-CjziOX7M.js} +1 -1
- package/dist/assets/{index-BTmq_k8A.js → index-DpNtAyGC.js} +1 -1
- package/dist/assets/{index-BnunmyBx.js → index-XUoMlK8z.js} +1 -1
- package/dist/assets/{index-DdW2_ovL.js → index-lxtC3N9x.js} +2 -2
- package/dist/assets/{index-BX8mBeJ9.js → index-r9DtpPi4.js} +20529 -20550
- package/dist/assets/{lexical-CzXtLOBY.js → lexical-CtYsbG1o.js} +1 -1
- package/dist/assets/{liveblocks-D5SUK1Wg.js → liveblocks-B4ECdvIx.js} +1 -1
- package/dist/assets/{lottie-Bxg9q373.js → lottie-BCz33Q7J.js} +1 -1
- package/dist/assets/mui-D6oelT7N.js +138 -0
- package/dist/assets/{react-BeMvcO72.js → react-B9X-zeA_.js} +2 -2
- package/dist/assets/{react-WvsHg02u.js → react-Bsh3KzYw.js} +1 -1
- package/dist/assets/{react-VukB1XQV.js → react-Buums4TY.js} +1 -1
- package/dist/assets/{react-B6FFWE-J.js → react-C5QlDSjK.js} +1 -1
- package/dist/assets/{react-BIUGlSLP.js → react-C9CB1lxN.js} +1 -1
- package/dist/assets/{react-BddzTUtS.js → react-CuowE827.js} +1 -1
- package/dist/assets/{react-CMaVLpQ0.js → react-DpFr5e2b.js} +1 -1
- package/dist/assets/{react-CFY8UOQ9.js → react-giVMsweN.js} +1 -1
- package/dist/assets/recharts-CrAH8YiM.js +65 -0
- package/dist/assets/{sentry-DN6W81ct.js → sentry-BGWzJSzn.js} +1 -1
- package/dist/assets/{url-Bc2CLjft.js → url-mZ9aNsPR.js} +1 -1
- package/dist/assets/{url-HpIHXuqg.js → url-nyJMD0Rt.js} +1 -1
- package/dist/assets/{utils-BjxCtmeD.js → utils-BC-pDTNj.js} +2 -2
- package/dist/assets/zeni-epic-state-BJss3pMn.js +14 -0
- package/dist/index.html +1 -1
- package/package.json +4 -41
- package/dist/assets/CreditAgentRoutes-C5PjThW5.js +0 -4
- package/dist/assets/SignInScreen-rT_33Na9.js +0 -1
- package/dist/assets/epic-B9G1VytO.js +0 -2
- package/dist/assets/mui-C_NFbU6N.js +0 -9
- package/dist/assets/recharts-DIkfVrTi.js +0 -65
- package/dist/assets/zeni-epic-state-Cc34ZGVn.js +0 -13
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-r9DtpPi4.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-BGWzJSzn.js"><link rel="modulepreload" crossorigin href="/assets/core-Ce0Br8y9.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BJss3pMn.js"><link rel="modulepreload" crossorigin href="/assets/recharts-CrAH8YiM.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-B4ECdvIx.js"><link rel="modulepreload" crossorigin href="/assets/mui-D6oelT7N.js"><link rel="modulepreload" crossorigin href="/assets/analytics-BLCKHvBT.js"><link rel="modulepreload" crossorigin href="/assets/lottie-BCz33Q7J.js"><link rel="modulepreload" crossorigin href="/assets/lexical-CtYsbG1o.js"><link rel="modulepreload" crossorigin href="/assets/utils-BC-pDTNj.js"><link rel="stylesheet" crossorigin href="/assets/index-Bd7ri422.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.2.
|
|
3
|
+
"version": "2.2.59-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@mui/material": "^7.3.5",
|
|
26
26
|
"@sentry/core": "^9.42.1",
|
|
27
27
|
"@sentry/react": "^9.42.1",
|
|
28
|
-
"@zeniai/client-analytics": "2.
|
|
29
|
-
"@zeniai/client-epic-state": "5.2.
|
|
30
|
-
"@zeniai/web-components": "4.4.
|
|
28
|
+
"@zeniai/client-analytics": "2.1.1",
|
|
29
|
+
"@zeniai/client-epic-state": "5.2.77",
|
|
30
|
+
"@zeniai/web-components": "4.4.18",
|
|
31
31
|
"color": "3.1.3",
|
|
32
32
|
"crypto-js": "4.2.0",
|
|
33
33
|
"intuit-oauth-ts": "^0.0.4",
|
|
@@ -45,43 +45,6 @@
|
|
|
45
45
|
"vite-plugin-minify": "^2.1.0",
|
|
46
46
|
"vite-plugin-optimize-css-modules": "^1.2.0"
|
|
47
47
|
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@eslint/js": "^9.39.2",
|
|
50
|
-
"@juggle/resize-observer": "^3.4.0",
|
|
51
|
-
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
52
|
-
"@sentry/vite-plugin": "^2.21.2",
|
|
53
|
-
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
54
|
-
"@types/color": "3.0.2",
|
|
55
|
-
"@types/crypto-js": "^4.1.0",
|
|
56
|
-
"@types/lodash-es": "^4.17.12",
|
|
57
|
-
"@types/mixpanel-browser": "^2.36.0",
|
|
58
|
-
"@types/node": "^20.19.0",
|
|
59
|
-
"@types/react": "^18.3.11",
|
|
60
|
-
"@types/react-dom": "^18.3.1",
|
|
61
|
-
"@types/react-redux": "^7.1.24",
|
|
62
|
-
"@types/react-window": "1.8.8",
|
|
63
|
-
"@types/url-parse": "^1.4.11",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
65
|
-
"@typescript-eslint/parser": "^8.26.0",
|
|
66
|
-
"@vitejs/plugin-react-swc": "^4.2.0",
|
|
67
|
-
"dotenv": "^16.6.1",
|
|
68
|
-
"eslint": "^9.39.2",
|
|
69
|
-
"eslint-config-prettier": "^10.0.2",
|
|
70
|
-
"eslint-plugin-perfectionist": "^4.15.0",
|
|
71
|
-
"eslint-plugin-react": "^7.37.4",
|
|
72
|
-
"globals": "^16.0.0",
|
|
73
|
-
"jsdom": "^27.4.0",
|
|
74
|
-
"knip": "^6.21.0",
|
|
75
|
-
"madge": "^8.0.0",
|
|
76
|
-
"prettier": "^3.5.3",
|
|
77
|
-
"semver": "^7.5.2",
|
|
78
|
-
"typescript": "^5.7.3",
|
|
79
|
-
"vite": "^7.3.2",
|
|
80
|
-
"vite-plugin-node-polyfills": "^0.24.0",
|
|
81
|
-
"vite-plugin-svgr": "^4.5.0",
|
|
82
|
-
"vite-tsconfig-paths": "^5.1.4",
|
|
83
|
-
"vitest": "^4.1.11"
|
|
84
|
-
},
|
|
85
48
|
"keywords": [
|
|
86
49
|
"zeni web cockpit ui"
|
|
87
50
|
],
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-D5SUK1Wg.js";import{u as v,P}from"./ScreenRoutes-yWLA1GjU.js";import{a as f}from"./sentry-DN6W81ct.js";import{i as U,n as R,g as m,h as T,k as C,l as I,N as j}from"./core-DU_H4wBa.js";import{S2 as N,S3 as k,lu as E,S4 as M,mk as L,mn as $,m9 as O,S5 as _,S6 as B,mh as F,md as q}from"./zeni-epic-state-Cc34ZGVn.js";import{z as V,Z,G,n as J,a0 as H,c as K,w as Q,a as W,g as X,b as Y}from"./index-BX8mBeJ9.js";import{n as ee}from"./mui-C_NFbU6N.js";import"./recharts-DIkfVrTi.js";import"./analyticsHelper-CutGWXMe.js";import"./utils-BjxCtmeD.js";import"./empty-BoNNpNhU.js";import"./index-C8HQtPk3.js";import"./url-Bc2CLjft.js";import"./index-Dh3hszAl.js";import"./analytics-RySvwSeq.js";import"./lottie-Bxg9q373.js";import"./lexical-CzXtLOBY.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]="5eb88240-a3d7-487a-9b7b-6c8f440ba3c8",a._sentryDebugIdIdentifier="sentry-dbid-5eb88240-a3d7-487a-9b7b-6c8f440ba3c8")}catch{}})();function te(a,t){return{headerData:{allTabOptions:K,selectedTabOption:Q("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=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(_(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=T(te,ne)(H),oe=ee.div`
|
|
2
|
-
padding: ${J.sp5};
|
|
3
|
-
text-align: center;
|
|
4
|
-
`;function re(){const a=U(),t=R(),n=m(N),g=m(k),[c,h]=f.useState(new Set),S=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=V.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,w=f.useMemo(()=>({onFetch:()=>{t(O())},onUpdateProfile:(e,o,r)=>{const i=r.updatedByName??A;t($({tenantId:o,tenantEmailDomain:e,update:{...r,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${Z}/tableDownload?query=${x}`;fetch(D,{headers:{"zeni-user-id":o,"zeni-session-id":r,"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),p=document.createElement("a");p.href=u,p.download=`${e.file_name}.xlsx`,p.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 r=n.rows.find(i=>i.tenantId===o);r!=null&&r.isAnalyzing?S.current.add(o):r!=null&&!r.isAnalyzing&&S.current.has(o)&&(e.add(o),S.current.delete(o))}e.size>0&&h(o=>{const r=new Set(o);for(const i of e)r.delete(i);return r})},[n.rows,c]);const z=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?s.jsx(oe,{children:G.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:w,cardProfilesData:z})}function we(){const{isAllowed:a,isLoading:t}=v();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(P,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(j,{to:"/management",replace:!0})})})}export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-D5SUK1Wg.js";import{a as S,R as f,n as m}from"./sentry-DN6W81ct.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-DU_H4wBa.js";import{z as d,E,G as C,a as v,y as U,Y as T,e as p}from"./index-BX8mBeJ9.js";import{R_ as x,R$ as L,S0 as z,S1 as D,bm as u}from"./zeni-epic-state-Cc34ZGVn.js";import{f as A}from"./analyticsHelper-CutGWXMe.js";import"./recharts-DIkfVrTi.js";import"./mui-C_NFbU6N.js";import"./analytics-RySvwSeq.js";import"./lottie-Bxg9q373.js";import"./lexical-CzXtLOBY.js";import"./utils-BjxCtmeD.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]="491de8b1-aaba-4004-ac6d-41e5d1c67a0e",e._sentryDebugIdIdentifier="sentry-dbid-491de8b1-aaba-4004-ac6d-41e5d1c67a0e")}catch{}})();function N(e){const o=e.tenantState.fetchState,a=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:a,showEmailLogin:!1}}function _(e,o){const{location:a,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(a.state!=null?a.state.origin:"")}))},getSignedInUser:()=>d.getSignedInUser(),onSignedInCallback:()=>{const n=a.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(z())}}}const j=b(N,_)(T),k=f.memo(j);function Y(){const e=I(),o=w(),a=d.getSignedInUser(),r=g(i=>i.tenantState.fetchState),n=g(i=>i.tenantState.signInState),t=g(i=>i.tenantState.loggedInUser),s=E().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(d.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(L("Completed")),C.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{v.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||a!=null){const i=c.state?.origin??"/";return l.jsx(y,{to:i,state:{...c.state,origin:""}})}else return l.jsx(k,{navigate:o,location:c})}export{Y as default};
|