@zeniai/web-cockpit-ui 2.2.56-qa → 2.2.57-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.
- package/dist/assets/CreditAgentRoutes-CRJRrR1m.js +4 -0
- package/dist/assets/{Preview-DxnZ0G_9.js → Preview-ACZgJoij.js} +1 -1
- package/dist/assets/{ScreenRoutes-gcBsvljo.js → ScreenRoutes-C69wGDKd.js} +64 -64
- package/dist/assets/SignInScreen-DdcDOrK7.js +1 -0
- package/dist/assets/{analytics-D6nPZhvU.js → analytics-qqOishY6.js} +1 -1
- package/dist/assets/{analyticsHelper-CSjZdvwl.js → analyticsHelper-W9ZZSWHD.js} +1 -1
- package/dist/assets/{core-Dwew_eJI.js → core-C-Wzyz4Q.js} +1 -1
- package/dist/assets/{dash.all.min-DEQx_M4d.js → dash.all.min-BOAlq3qp.js} +1 -1
- package/dist/assets/{empty-C9URe1wE.js → empty-eYeAMjcN.js} +1 -1
- package/dist/assets/{empty-CWKS44_T.js → empty-kIcRL-yV.js} +1 -1
- package/dist/assets/epic-DcCp049o.js +2 -0
- package/dist/assets/{index-BflI8SLg.js → index-1nHpboi2.js} +20550 -20529
- package/dist/assets/{index-Bd7ri422.css → index-DcGIrthm.css} +1 -1
- package/dist/assets/{index-urN9o0mh.js → index-DjD4wvLB.js} +1 -1
- package/dist/assets/{index-Bitr7r5a.js → index-Dk_GJRhf.js} +1 -1
- package/dist/assets/{index-DG96zgnQ.js → index-DokhfY24.js} +1 -1
- package/dist/assets/{index-BgQY9QEb.js → index-Ds_lG88B.js} +1 -1
- package/dist/assets/{index-BQ1xq9Ax.js → index-rvwGWif4.js} +2 -2
- package/dist/assets/{index-DPOaVmXP.js → index-yQmhDiAA.js} +1 -1
- package/dist/assets/{lexical-CKIF0fv8.js → lexical-DAAg_FBR.js} +1 -1
- package/dist/assets/{liveblocks-bdH_HyD4.js → liveblocks-CMfXK7R0.js} +1 -1
- package/dist/assets/{lottie-ODFW7XpP.js → lottie-GndnZ8Jp.js} +1 -1
- package/dist/assets/mui-CoiNz-0e.js +9 -0
- package/dist/assets/{react-BVou-Xve.js → react-B1Bt7DJ9.js} +1 -1
- package/dist/assets/{react-dvrCYrIU.js → react-BGCFrwbL.js} +1 -1
- package/dist/assets/{react-K8PNfPlF.js → react-BUDKItN3.js} +1 -1
- package/dist/assets/{react-NOoqN2L8.js → react-ClHgTl_b.js} +1 -1
- package/dist/assets/{react-B58oz63_.js → react-CyenoY9p.js} +2 -2
- package/dist/assets/{react-BrwPLcTD.js → react-DQvJ5WvP.js} +1 -1
- package/dist/assets/{react-5k8YSArH.js → react-DzQrGi3P.js} +1 -1
- package/dist/assets/{react-DxYnPaL4.js → react-GD-Izqsx.js} +1 -1
- package/dist/assets/recharts-BUycorhK.js +65 -0
- package/dist/assets/{sentry-Dwm-tWfG.js → sentry-D1Yxbg-4.js} +1 -1
- package/dist/assets/{url-DV3lGv0k.js → url-CHoxSYJN.js} +1 -1
- package/dist/assets/{url-DwJCVbv4.js → url-CuIPR3N2.js} +1 -1
- package/dist/assets/{utils-ByTJL3Oq.js → utils-CLEIuGKG.js} +1 -1
- package/dist/assets/zeni-epic-state-B20MGO2_.js +13 -0
- package/dist/index.html +1 -1
- package/package.json +41 -4
- package/dist/assets/CreditAgentRoutes-1qwE4Jid.js +0 -4
- package/dist/assets/SignInScreen-IwRxJ8Ya.js +0 -1
- package/dist/assets/epic-DbBUeNum.js +0 -2
- package/dist/assets/mui-Dpk20_cL.js +0 -138
- package/dist/assets/recharts-Cy2son-o.js +0 -65
- package/dist/assets/zeni-epic-state-BAX-zerj.js +0 -14
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-1nHpboi2.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-D1Yxbg-4.js"><link rel="modulepreload" crossorigin href="/assets/core-C-Wzyz4Q.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-B20MGO2_.js"><link rel="modulepreload" crossorigin href="/assets/recharts-BUycorhK.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-CMfXK7R0.js"><link rel="modulepreload" crossorigin href="/assets/mui-CoiNz-0e.js"><link rel="modulepreload" crossorigin href="/assets/analytics-qqOishY6.js"><link rel="modulepreload" crossorigin href="/assets/lottie-GndnZ8Jp.js"><link rel="modulepreload" crossorigin href="/assets/lexical-DAAg_FBR.js"><link rel="modulepreload" crossorigin href="/assets/utils-CLEIuGKG.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.2.
|
|
3
|
+
"version": "2.2.57-next",
|
|
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.0.98",
|
|
29
|
+
"@zeniai/client-epic-state": "5.2.73",
|
|
30
|
+
"@zeniai/web-components": "4.4.14",
|
|
31
31
|
"color": "3.1.3",
|
|
32
32
|
"crypto-js": "4.2.0",
|
|
33
33
|
"intuit-oauth-ts": "^0.0.4",
|
|
@@ -45,6 +45,43 @@
|
|
|
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
|
+
},
|
|
48
85
|
"keywords": [
|
|
49
86
|
"zeni web cockpit ui"
|
|
50
87
|
],
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-bdH_HyD4.js";import{u as P,P as R}from"./ScreenRoutes-gcBsvljo.js";import{a as f}from"./sentry-Dwm-tWfG.js";import{i as v,n as U,g as m,h as T,k as C,l as I,N as j}from"./core-Dwew_eJI.js";import{Sc as N,Sd as k,lx as E,Se as M,mn as L,mq as $,mc as _,Sf as O,Sg as q,mk as B,mg as F}from"./zeni-epic-state-BAX-zerj.js";import{z as V,P as G,G as J,n as Z,S as H,R as K,w as Q,a as W,g as X,b as Y}from"./index-BflI8SLg.js";import{n as ee}from"./mui-Dpk20_cL.js";import"./recharts-Cy2son-o.js";import"./analyticsHelper-CSjZdvwl.js";import"./utils-ByTJL3Oq.js";import"./empty-C9URe1wE.js";import"./index-urN9o0mh.js";import"./url-DV3lGv0k.js";import"./index-Bitr7r5a.js";import"./analytics-D6nPZhvU.js";import"./lottie-ODFW7XpP.js";import"./lexical-CKIF0fv8.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]="687ca5f2-e651-45e4-a2c9-dc4b7e4f42a0",a._sentryDebugIdIdentifier="sentry-dbid-687ca5f2-e651-45e4-a2c9-dc4b7e4f42a0")}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(F())},onSaveMacro:n=>{a(B(n))},onResetSaveMacro:()=>{a(q())},onUIStateChange:n=>{a(O(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=T(te,ne)(H),oe=ee.div`
|
|
2
|
-
padding: ${Z.sp5};
|
|
3
|
-
text-align: center;
|
|
4
|
-
`;function re(){const a=v(),t=U(),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(_())},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 z=encodeURIComponent(JSON.stringify(e)),D=`${G}/tableDownload?query=${z}`;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 x=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:J.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:w,cardProfilesData:x})}function we(){const{isAllowed:a,isLoading:t}=P();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(R,{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 d}from"./liveblocks-bdH_HyD4.js";import{a as S,R as f,n as m}from"./sentry-Dwm-tWfG.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-Dwew_eJI.js";import{z as l,G as C,a as v,q as E,L as T,e as p}from"./index-BflI8SLg.js";import{S8 as U,S9 as L,Sa as x,Sb as z,bm as u}from"./zeni-epic-state-BAX-zerj.js";import{f as D}from"./analyticsHelper-CSjZdvwl.js";import{u as A}from"./mui-Dpk20_cL.js";import"./recharts-Cy2son-o.js";import"./analytics-D6nPZhvU.js";import"./lottie-ODFW7XpP.js";import"./lexical-CKIF0fv8.js";import"./utils-ByTJL3Oq.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]="45806c19-c8a3-442c-876a-de7431d25810",e._sentryDebugIdIdentifier="sentry-dbid-45806c19-c8a3-442c-876a-de7431d25810")}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(z({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(x())}}}const P=b(N,k)(T),_=f.memo(P);function W(){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=A().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),U(t.userId,t.zeniSessionId),e(L("Completed")),C.updateAppLocaleID("en"),D(t,s),setTimeout(()=>{v.trackLogin(E.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(y,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{W as default};
|