@zeniai/web-cockpit-ui 2.1.77-dev → 2.1.78-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-BFN6CAhC.js +4 -0
- package/dist/assets/{Preview-6eLgeZjI.js → Preview-Td9qM2wx.js} +1 -1
- package/dist/assets/{ScreenRoutes-DPJmwh13.js → ScreenRoutes-DabK3F7g.js} +3 -3
- package/dist/assets/SignInScreen-CXE2kYQL.js +1 -0
- package/dist/assets/{analytics-CP95jSRU.js → analytics-C_-qejgN.js} +1 -1
- package/dist/assets/{analyticsHelper-GJmtgQEX.js → analyticsHelper-T4doEqdk.js} +1 -1
- package/dist/assets/{core-CdZB-Jsr.js → core-BW_74aN1.js} +1 -1
- package/dist/assets/{dash.all.min-D2pFtW5w.js → dash.all.min-DrWFsMM2.js} +1 -1
- package/dist/assets/{empty-VsWJ6neu.js → empty-BMavSJIz.js} +1 -1
- package/dist/assets/{empty-DuCSM-de.js → empty-BcVdxt6I.js} +1 -1
- package/dist/assets/{epic-VbFjcBzB.js → epic-D9sR1Y-J.js} +1 -1
- package/dist/assets/{index-BLFB1evg.js → index-B5-uqMby.js} +155 -155
- package/dist/assets/{index-BDdOE2r1.js → index-BIycl6na.js} +1 -1
- package/dist/assets/{index-CvLZI34z.js → index-BdcRf5-d.js} +1 -1
- package/dist/assets/{index-DAJB4TKb.js → index-BiFVUlLV.js} +1 -1
- package/dist/assets/{index-FyZyslgo.js → index-CNAlqwEj.js} +1 -1
- package/dist/assets/{index-CuKwJFnx.js → index-DE6czSnz.js} +1 -1
- package/dist/assets/{index-DPfCk9Xr.js → index-sac3iNDB.js} +2 -2
- package/dist/assets/{lexical-ChC9WHGP.js → lexical-DuLCBqgO.js} +1 -1
- package/dist/assets/{liveblocks-DwUMd49x.js → liveblocks-Cbwtp1hp.js} +1 -1
- package/dist/assets/{lottie-Ox29xdAh.js → lottie-e8aii1R7.js} +1 -1
- package/dist/assets/{mui-CdoXYRgR.js → mui-CjPoi9k6.js} +1 -1
- package/dist/assets/{react-Po80r2jl.js → react-BbGX7gyO.js} +1 -1
- package/dist/assets/{react-BBPzhZpH.js → react-Bj_lMYlH.js} +1 -1
- package/dist/assets/{react-AFgjOJ7a.js → react-CT4b7XUW.js} +1 -1
- package/dist/assets/{react-BXA_jDaV.js → react-CdDPq4Qz.js} +1 -1
- package/dist/assets/{react-ClM9BAsd.js → react-DIKSPaRL.js} +2 -2
- package/dist/assets/{react-CPAzvIZH.js → react-DKtKi1AV.js} +1 -1
- package/dist/assets/{react-CxZaUrlO.js → react-SVEQcNve.js} +1 -1
- package/dist/assets/{react-GENfDXlz.js → react-eFSZhpMn.js} +1 -1
- package/dist/assets/{recharts-BbumInef.js → recharts-bTFSJDip.js} +1 -1
- package/dist/assets/{sentry-CJwcJ2Ay.js → sentry-Xa7cNUIM.js} +1 -1
- package/dist/assets/{url-DuyVLVo6.js → url-CU2b71cx.js} +1 -1
- package/dist/assets/{url-DgIs3RFy.js → url-CyaQh4_m.js} +1 -1
- package/dist/assets/{utils-Cs1Y17wZ.js → utils-DRSkSWUK.js} +1 -1
- package/dist/assets/{zeni-epic-state-C4_jymKG.js → zeni-epic-state-BDJJs-GC.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +6 -20
- package/dist/assets/CreditAgentRoutes-BMVd5FGm.js +0 -4
- package/dist/assets/SignInScreen-xnRMqNIl.js +0 -1
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-B5-uqMby.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-Xa7cNUIM.js"><link rel="modulepreload" crossorigin href="/assets/core-BW_74aN1.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BDJJs-GC.js"><link rel="modulepreload" crossorigin href="/assets/recharts-bTFSJDip.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-Cbwtp1hp.js"><link rel="modulepreload" crossorigin href="/assets/mui-CjPoi9k6.js"><link rel="modulepreload" crossorigin href="/assets/analytics-C_-qejgN.js"><link rel="modulepreload" crossorigin href="/assets/lottie-e8aii1R7.js"><link rel="modulepreload" crossorigin href="/assets/lexical-DuLCBqgO.js"><link rel="modulepreload" crossorigin href="/assets/utils-DRSkSWUK.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.78-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.25",
|
|
28
|
+
"@zeniai/client-analytics": "2.0.75",
|
|
29
|
+
"@zeniai/client-epic-state": "5.2.0",
|
|
30
|
+
"@zeniai/web-components": "4.3.26",
|
|
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,7 @@
|
|
|
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
|
-
"find-unused-exports": "ts-unused-exports ./tsconfig.json",
|
|
147
|
+
"find-unused-code": "knip",
|
|
162
148
|
"circular-dependency": "madge --circular --extensions ts,tsx ./src"
|
|
163
149
|
}
|
|
164
150
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-DwUMd49x.js";import{u as D,P as v}from"./ScreenRoutes-DPJmwh13.js";import{a as u}from"./sentry-CJwcJ2Ay.js";import{i as U,n as j,g as m,h as R,k as C,l as I,N as T}from"./core-CdZB-Jsr.js";import{Ph as k,Pi as N,kF as E,Pj as M,lv as L,ly as $,lk as _,Pk as F,Pl as O,ls as q,lo as B}from"./zeni-epic-state-C4_jymKG.js";import{z as V,$ as J,F as Z,n as G,a0 as H,D as K,a as Q,b as W,g as X,h as Y}from"./index-BLFB1evg.js";import{n as ee}from"./mui-CdoXYRgR.js";import"./recharts-BbumInef.js";import"./analyticsHelper-GJmtgQEX.js";import"./utils-Cs1Y17wZ.js";import"./empty-DuCSM-de.js";import"./index-FyZyslgo.js";import"./url-DgIs3RFy.js";import"./index-DAJB4TKb.js";import"./analytics-CP95jSRU.js";import"./lottie-Ox29xdAh.js";import"./lexical-ChC9WHGP.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]="04c03747-2bed-4c96-9d96-d16020e63a8e",a._sentryDebugIdIdentifier="sentry-dbid-04c03747-2bed-4c96-9d96-d16020e63a8e")}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(B())},onSaveMacro:n=>{a(q(n))},onResetSaveMacro:()=>{a(O())},onUIStateChange:n=>{a(F(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=R(te,ne)(H),oe=ee.div`
|
|
2
|
-
padding: ${G.sp5};
|
|
3
|
-
text-align: center;
|
|
4
|
-
`;function re(){const a=U(),t=j(),n=m(k),g=m(N),[c,h]=u.useState(new Set),p=u.useRef(new Set),y=m(e=>e.tenantState.currentTenantId),b=m(e=>e.companyViewState.zeniUsers.fetchState);u.useEffect(()=>{b==="Not-Started"&&t(E())},[t,b]);const d=V.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,P=u.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=y??"";if(!o||!r||!i)return;const z=encodeURIComponent(JSON.stringify(e)),x=`${J}/tableDownload?query=${z}`;fetch(x,{headers:{"zeni-user-id":o,"zeni-session-id":r,"zeni-tenant-id":i}}).then(async l=>{if(!l.ok){const f=await l.text();throw new Error(`Download failed: ${l.status} ${f}`)}return l.blob()}).then(l=>{const f=URL.createObjectURL(l),S=document.createElement("a");S.href=f,S.download=`${e.file_name}.xlsx`,S.click(),URL.revokeObjectURL(f)}).catch(()=>{})}}),[t,A,d,y,n.rows]);u.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 w=u.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:P,cardProfilesData:w})}function Pe(){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(T,{to:"/management",replace:!0})})})}export{Pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-DwUMd49x.js";import{a as u,R as S,n as I}from"./sentry-CJwcJ2Ay.js";import{n as m,i as w,g,u as h,N as y,h as b}from"./core-CdZB-Jsr.js";import{z as d,E,F as C,b as v,q as T,T as U,e as f}from"./index-BLFB1evg.js";import{Pd as P,Pe as x,Pf as L,Pg as z,bn as p}from"./zeni-epic-state-C4_jymKG.js";import{f as D}from"./analyticsHelper-GJmtgQEX.js";import"./recharts-BbumInef.js";import"./mui-CdoXYRgR.js";import"./analytics-CP95jSRU.js";import"./lottie-Ox29xdAh.js";import"./lexical-ChC9WHGP.js";import"./utils-Cs1Y17wZ.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]="a61dbcaf-5918-42fe-a5a1-787c8f488cde",e._sentryDebugIdIdentifier="sentry-dbid-a61dbcaf-5918-42fe-a5a1-787c8f488cde")}catch{}})();function A(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:f.googleClientId,microsoftClientId:f.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function N(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(z({authCode:n,oauthProvider:t,appType:"web",redirectUri:p(s),sourceUri:p(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(A,N)(U),O=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=h();if(u.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(d.saveSignedInUserWithSession(t,t.zeniSessionId),P(t.userId,t.zeniSessionId),e(x("Completed")),C.updateAppLocaleID("en"),D(t,s),setTimeout(()=>{v.trackLogin(T.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(O,{navigate:o,location:c})}export{G as default};
|