@zeniai/web-cockpit-ui 2.1.86-dev → 2.1.87-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-Cwwanl2A.js +4 -0
- package/dist/assets/{Preview-CxrVuV-8.js → Preview-WEosenpu.js} +1 -1
- package/dist/assets/{ScreenRoutes-Y3skv7Ot.js → ScreenRoutes-CA-oRSTe.js} +41 -41
- package/dist/assets/SignInScreen-Cc-ZmT2y.js +1 -0
- package/dist/assets/{analytics-uNu76d06.js → analytics-Uqpj01Y9.js} +1 -1
- package/dist/assets/{analyticsHelper-Dp6GltpC.js → analyticsHelper-Dbz9xP5M.js} +1 -1
- package/dist/assets/{core-BEVTODUP.js → core-BvdOTrdU.js} +1 -1
- package/dist/assets/{dash.all.min-C31TNyc8.js → dash.all.min-C2XZGWMr.js} +1 -1
- package/dist/assets/{empty-DcuJ8A78.js → empty-BD3v7hai.js} +1 -1
- package/dist/assets/{empty-Cbbl4oDf.js → empty-DAqhdpOw.js} +1 -1
- package/dist/assets/epic-BkivGQ9s.js +2 -0
- package/dist/assets/{index-CI2JImx2.js → index-BOUWc3F_.js} +1 -1
- package/dist/assets/{index-DF7Uy5Cv.js → index-BeKE85Uf.js} +1 -1
- package/dist/assets/{index-B8XvUm28.js → index-CHJARHDN.js} +1 -1
- package/dist/assets/{index-DhIj5yXz.js → index-CoTZkYcY.js} +1 -1
- package/dist/assets/{index-BZo7nzUY.js → index-DncLWHPi.js} +32267 -32068
- package/dist/assets/{index-DAHXoToS.js → index-Hkz8gtVf.js} +1 -1
- package/dist/assets/{index-PSxZ3mW2.js → index-xvyAu3Iz.js} +2 -2
- package/dist/assets/{lexical-BU8BWNhf.js → lexical-B5HHJacY.js} +1 -1
- package/dist/assets/{liveblocks-B0jvrYAQ.js → liveblocks-BKAokQgL.js} +1 -1
- package/dist/assets/{lottie-DWJajBaT.js → lottie-D0D8eR1a.js} +1 -1
- package/dist/assets/{mui-BcdxMqTx.js → mui-KktnCpC4.js} +1 -1
- package/dist/assets/{react-DoEQFb_Q.js → react-1VsS_0qy.js} +2 -2
- package/dist/assets/{react-DnZBYLJp.js → react-75k7nYCj.js} +1 -1
- package/dist/assets/{react-BuUiulo4.js → react-B-lGOrq2.js} +1 -1
- package/dist/assets/{react-0qGAyoEu.js → react-BTAAdpA3.js} +1 -1
- package/dist/assets/{react-BI3izMOc.js → react-CuuEWX1M.js} +1 -1
- package/dist/assets/{react-DcaeW70i.js → react-Dbh4lHBc.js} +1 -1
- package/dist/assets/{react-DP4VeL5B.js → react-ZjDpTDA8.js} +1 -1
- package/dist/assets/{react-Cxfqcrye.js → react-vz-fPhJG.js} +1 -1
- package/dist/assets/{recharts-B1p_4yzo.js → recharts-_9h6ntrt.js} +1 -1
- package/dist/assets/{sentry-Di6CJKc4.js → sentry-C_ZgKpmQ.js} +1 -1
- package/dist/assets/{url-G41ER1sZ.js → url-Bhpz9EA0.js} +1 -1
- package/dist/assets/{url-D_ItoLAi.js → url-D4P8o2Zm.js} +1 -1
- package/dist/assets/{utils-e6hTVceB.js → utils-BtOlxAfK.js} +1 -1
- package/dist/assets/{zeni-epic-state-BJnhH8T3.js → zeni-epic-state-BFzBi6HJ.js} +8 -8
- package/dist/index.html +1 -1
- package/package.json +8 -21
- package/dist/assets/CreditAgentRoutes-CQ6nvR_j.js +0 -4
- package/dist/assets/SignInScreen-BVAEBH0K.js +0 -1
- package/dist/assets/epic-BIcq-9vS.js +0 -2
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-DncLWHPi.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-C_ZgKpmQ.js"><link rel="modulepreload" crossorigin href="/assets/core-BvdOTrdU.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BFzBi6HJ.js"><link rel="modulepreload" crossorigin href="/assets/recharts-_9h6ntrt.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-BKAokQgL.js"><link rel="modulepreload" crossorigin href="/assets/mui-KktnCpC4.js"><link rel="modulepreload" crossorigin href="/assets/analytics-Uqpj01Y9.js"><link rel="modulepreload" crossorigin href="/assets/lottie-D0D8eR1a.js"><link rel="modulepreload" crossorigin href="/assets/lexical-B5HHJacY.js"><link rel="modulepreload" crossorigin href="/assets/utils-BtOlxAfK.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.87-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -25,12 +25,10 @@
|
|
|
25
25
|
"@mui/material": "^7.3.5",
|
|
26
26
|
"@sentry/core": "^9.42.1",
|
|
27
27
|
"@sentry/react": "^9.42.1",
|
|
28
|
-
"@
|
|
29
|
-
"@zeniai/client-
|
|
30
|
-
"@zeniai/
|
|
31
|
-
"@zeniai/web-components": "4.3.35",
|
|
28
|
+
"@zeniai/client-analytics": "2.0.80",
|
|
29
|
+
"@zeniai/client-epic-state": "5.2.10",
|
|
30
|
+
"@zeniai/web-components": "4.3.36",
|
|
32
31
|
"color": "3.1.3",
|
|
33
|
-
"cross-fetch": "^4.0.0",
|
|
34
32
|
"crypto-js": "4.2.0",
|
|
35
33
|
"intuit-oauth-ts": "^0.0.4",
|
|
36
34
|
"lexical": "^0.9.1",
|
|
@@ -48,8 +46,6 @@
|
|
|
48
46
|
"vite-plugin-optimize-css-modules": "^1.2.0"
|
|
49
47
|
},
|
|
50
48
|
"devDependencies": {
|
|
51
|
-
"@babel/plugin-transform-runtime": "^7.22.7",
|
|
52
|
-
"@eslint/eslintrc": "^3.3.1",
|
|
53
49
|
"@eslint/js": "^9.39.2",
|
|
54
50
|
"@juggle/resize-observer": "^3.4.0",
|
|
55
51
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
@@ -57,7 +53,6 @@
|
|
|
57
53
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
58
54
|
"@types/color": "3.0.2",
|
|
59
55
|
"@types/crypto-js": "^4.1.0",
|
|
60
|
-
"@types/eslint": "^8.2.1",
|
|
61
56
|
"@types/lodash-es": "^4.17.12",
|
|
62
57
|
"@types/mixpanel-browser": "^2.36.0",
|
|
63
58
|
"@types/node": "^20.19.0",
|
|
@@ -74,27 +69,19 @@
|
|
|
74
69
|
"eslint-config-prettier": "^10.0.2",
|
|
75
70
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
76
71
|
"eslint-plugin-react": "^7.37.4",
|
|
77
|
-
"events": "^3.3.0",
|
|
78
72
|
"globals": "^16.0.0",
|
|
79
73
|
"jsdom": "^27.4.0",
|
|
74
|
+
"knip": "^6.21.0",
|
|
80
75
|
"madge": "^8.0.0",
|
|
81
|
-
"node-jq": "^6.0.1",
|
|
82
76
|
"prettier": "^3.5.3",
|
|
83
|
-
"prettier-plugin-import-sort": "^0.0.7",
|
|
84
77
|
"semver": "^7.5.2",
|
|
85
|
-
"ts-prune": "^0.10.3",
|
|
86
|
-
"ts-unused-exports": "^11.0.1",
|
|
87
78
|
"typescript": "^5.7.3",
|
|
88
|
-
"util": "^0.12.5",
|
|
89
79
|
"vite": "^7.3.2",
|
|
90
80
|
"vite-plugin-node-polyfills": "^0.24.0",
|
|
91
81
|
"vite-plugin-svgr": "^4.5.0",
|
|
92
82
|
"vite-tsconfig-paths": "^5.1.4",
|
|
93
83
|
"vitest": "^4.1.5"
|
|
94
84
|
},
|
|
95
|
-
"eslintConfig": {
|
|
96
|
-
"extends": "react-app"
|
|
97
|
-
},
|
|
98
85
|
"keywords": [
|
|
99
86
|
"zeni web cockpit ui"
|
|
100
87
|
],
|
|
@@ -157,8 +144,8 @@
|
|
|
157
144
|
"test": "pnpm lint-modified-files && vitest run",
|
|
158
145
|
"analyze": "ANALYZE=true NODE_OPTIONS=--max-old-space-size=16384 vite build --mode development",
|
|
159
146
|
"update-slack-group-topic": "chmod +x ./scripts/update_slack_group_topic.sh && ./scripts/update_slack_group_topic.sh",
|
|
160
|
-
"find-
|
|
161
|
-
"
|
|
162
|
-
"circular-dependency": "
|
|
147
|
+
"find-unused-code": "knip",
|
|
148
|
+
"circular-dependency": "madge --circular --extensions ts,tsx ./src",
|
|
149
|
+
"circular-dependency-modified-files": "chmod +x ./scripts/circular-dependency-modified-files.sh && ./scripts/circular-dependency-modified-files.sh"
|
|
163
150
|
}
|
|
164
151
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-B0jvrYAQ.js";import{u as D,P as v}from"./ScreenRoutes-Y3skv7Ot.js";import{a as f}from"./sentry-Di6CJKc4.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-BEVTODUP.js";import{Po as N,Pp as k,kB as E,Pq as M,lr as L,lu as $,lg as _,Pr as q,Ps as B,lo as O,lk as F}from"./zeni-epic-state-BJnhH8T3.js";import{z as V,$ as J,e as Z,f as G,a0 as H,D as K,a as Q,b as W,g as X,h as Y}from"./index-BZo7nzUY.js";import{n as ee}from"./mui-BcdxMqTx.js";import"./recharts-B1p_4yzo.js";import"./analyticsHelper-Dp6GltpC.js";import"./utils-e6hTVceB.js";import"./empty-DcuJ8A78.js";import"./index-DhIj5yXz.js";import"./url-G41ER1sZ.js";import"./index-CI2JImx2.js";import"./analytics-uNu76d06.js";import"./lottie-DWJajBaT.js";import"./lexical-BU8BWNhf.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]="36dd4faa-f2e8-470e-91c1-2ba4da2e70df",a._sentryDebugIdIdentifier="sentry-dbid-36dd4faa-f2e8-470e-91c1-2ba4da2e70df")}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(O(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(q(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=T(te,ne)(H),oe=ee.div`
|
|
2
|
-
padding: ${G.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),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=V.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,z=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 w=encodeURIComponent(JSON.stringify(e)),x=`${J}/tableDownload?query=${w}`;fetch(x,{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),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 r=n.rows.find(i=>i.tenantId===o);r!=null&&r.isAnalyzing?p.current.add(o):r!=null&&!r.isAnalyzing&&p.current.has(o)&&(e.add(o),p.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 P=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:Z.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:z,cardProfilesData:P})}function ze(){const{isAllowed:a,isLoading:t}=D();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(v,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(j,{to:"/management",replace:!0})})})}export{ze as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-B0jvrYAQ.js";import{a as S,R as f,n as m}from"./sentry-Di6CJKc4.js";import{n as I,i as w,g as d,u as h,N as y,h as b}from"./core-BEVTODUP.js";import{z as g,E,e as C,b as v,t as P,T,d as p}from"./index-BZo7nzUY.js";import{Pk as U,Pl as z,Pm as x,Pn as L,bn as u}from"./zeni-epic-state-BJnhH8T3.js";import{f as D}from"./analyticsHelper-Dp6GltpC.js";import"./recharts-B1p_4yzo.js";import"./mui-BcdxMqTx.js";import"./analytics-uNu76d06.js";import"./lottie-DWJajBaT.js";import"./lexical-BU8BWNhf.js";import"./utils-e6hTVceB.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]="6376d665-5d7d-4593-b574-a02d032e4c68",e._sentryDebugIdIdentifier="sentry-dbid-6376d665-5d7d-4593-b574-a02d032e4c68")}catch{}})();function k(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 A(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(L({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>g.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(x())}}}const N=b(k,A)(T),_=f.memo(N);function G(){const e=I(),o=w(),i=g.getSignedInUser(),r=d(a=>a.tenantState.fetchState),n=d(a=>a.tenantState.signInState),t=d(a=>a.tenantState.loggedInUser),s=E().mode,c=h();if(S.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(g.saveSignedInUserWithSession(t,t.zeniSessionId),U(t.userId,t.zeniSessionId),e(z("Completed")),C.updateAppLocaleID("en"),D(t,s),setTimeout(()=>{v.trackLogin(P.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(_,{navigate:o,location:c})}export{G as default};
|