@zeniai/web-cockpit-ui 2.1.85-dev → 2.1.86-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-CQ6nvR_j.js +4 -0
- package/dist/assets/{Preview-DwmmQie2.js → Preview-CxrVuV-8.js} +1 -1
- package/dist/assets/{ScreenRoutes-CVTUhTzi.js → ScreenRoutes-Y3skv7Ot.js} +41 -41
- package/dist/assets/SignInScreen-BVAEBH0K.js +1 -0
- package/dist/assets/{analytics-D_rxXpC8.js → analytics-uNu76d06.js} +1 -1
- package/dist/assets/{analyticsHelper-QkldhEJh.js → analyticsHelper-Dp6GltpC.js} +1 -1
- package/dist/assets/{core-B5lxTB18.js → core-BEVTODUP.js} +1 -1
- package/dist/assets/{dash.all.min-FuXZcGuC.js → dash.all.min-C31TNyc8.js} +1 -1
- package/dist/assets/{empty-BAfjRBOW.js → empty-Cbbl4oDf.js} +1 -1
- package/dist/assets/{empty-DjVh230I.js → empty-DcuJ8A78.js} +1 -1
- package/dist/assets/epic-BIcq-9vS.js +2 -0
- package/dist/assets/{index-B_1gqLvT.js → index-B8XvUm28.js} +1 -1
- package/dist/assets/{index-BVX7Paho.js → index-BZo7nzUY.js} +31684 -31883
- package/dist/assets/{index-DrH8gx9P.js → index-CI2JImx2.js} +1 -1
- package/dist/assets/{index-9ImZDj9u.js → index-DAHXoToS.js} +1 -1
- package/dist/assets/{index-BOdYj0hR.js → index-DF7Uy5Cv.js} +1 -1
- package/dist/assets/{index-uT-uJGqW.js → index-DhIj5yXz.js} +1 -1
- package/dist/assets/{index-DofMNFo7.js → index-PSxZ3mW2.js} +2 -2
- package/dist/assets/{lexical-CIrl5_25.js → lexical-BU8BWNhf.js} +1 -1
- package/dist/assets/{liveblocks-616HfeVO.js → liveblocks-B0jvrYAQ.js} +1 -1
- package/dist/assets/{lottie-B9CIsRey.js → lottie-DWJajBaT.js} +1 -1
- package/dist/assets/{mui-C_tWhNid.js → mui-BcdxMqTx.js} +1 -1
- package/dist/assets/{react-BHfdYj_q.js → react-0qGAyoEu.js} +1 -1
- package/dist/assets/{react-CZ15AAPD.js → react-BI3izMOc.js} +1 -1
- package/dist/assets/{react-DHGjR2bS.js → react-BuUiulo4.js} +1 -1
- package/dist/assets/{react-ev4iwCEU.js → react-Cxfqcrye.js} +1 -1
- package/dist/assets/{react-CnKYZ5zZ.js → react-DP4VeL5B.js} +1 -1
- package/dist/assets/{react-CYGGiUoP.js → react-DcaeW70i.js} +1 -1
- package/dist/assets/{react-C4rnRtSC.js → react-DnZBYLJp.js} +1 -1
- package/dist/assets/{react-BtntQDZ7.js → react-DoEQFb_Q.js} +2 -2
- package/dist/assets/{recharts-kUgrDs-8.js → recharts-B1p_4yzo.js} +1 -1
- package/dist/assets/{sentry-CkTOwWbC.js → sentry-Di6CJKc4.js} +1 -1
- package/dist/assets/{url-g12hUIgR.js → url-D_ItoLAi.js} +1 -1
- package/dist/assets/url-G41ER1sZ.js +6 -0
- package/dist/assets/{utils-BlVqaD8r.js → utils-e6hTVceB.js} +2 -2
- package/dist/assets/{zeni-epic-state-CLqy7eng.js → zeni-epic-state-BJnhH8T3.js} +8 -8
- package/dist/index.html +1 -1
- package/package.json +21 -8
- package/dist/assets/CreditAgentRoutes-pv6Qg-v2.js +0 -4
- package/dist/assets/SignInScreen-DHm3xtK0.js +0 -1
- package/dist/assets/epic-qpEahqro.js +0 -2
- package/dist/assets/url-CICmpbKD.js +0 -3
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-BZo7nzUY.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-Di6CJKc4.js"><link rel="modulepreload" crossorigin href="/assets/core-BEVTODUP.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-BJnhH8T3.js"><link rel="modulepreload" crossorigin href="/assets/recharts-B1p_4yzo.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-B0jvrYAQ.js"><link rel="modulepreload" crossorigin href="/assets/mui-BcdxMqTx.js"><link rel="modulepreload" crossorigin href="/assets/analytics-uNu76d06.js"><link rel="modulepreload" crossorigin href="/assets/lottie-DWJajBaT.js"><link rel="modulepreload" crossorigin href="/assets/lexical-BU8BWNhf.js"><link rel="modulepreload" crossorigin href="/assets/utils-e6hTVceB.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.86-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -25,10 +25,12 @@
|
|
|
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/
|
|
28
|
+
"@types/crypto-js": "^4.1.0",
|
|
29
|
+
"@zeniai/client-analytics": "2.0.70",
|
|
30
|
+
"@zeniai/client-epic-state": "5.2.9",
|
|
31
|
+
"@zeniai/web-components": "4.3.35",
|
|
31
32
|
"color": "3.1.3",
|
|
33
|
+
"cross-fetch": "^4.0.0",
|
|
32
34
|
"crypto-js": "4.2.0",
|
|
33
35
|
"intuit-oauth-ts": "^0.0.4",
|
|
34
36
|
"lexical": "^0.9.1",
|
|
@@ -46,6 +48,8 @@
|
|
|
46
48
|
"vite-plugin-optimize-css-modules": "^1.2.0"
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
51
|
+
"@babel/plugin-transform-runtime": "^7.22.7",
|
|
52
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
49
53
|
"@eslint/js": "^9.39.2",
|
|
50
54
|
"@juggle/resize-observer": "^3.4.0",
|
|
51
55
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
@@ -53,6 +57,7 @@
|
|
|
53
57
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
54
58
|
"@types/color": "3.0.2",
|
|
55
59
|
"@types/crypto-js": "^4.1.0",
|
|
60
|
+
"@types/eslint": "^8.2.1",
|
|
56
61
|
"@types/lodash-es": "^4.17.12",
|
|
57
62
|
"@types/mixpanel-browser": "^2.36.0",
|
|
58
63
|
"@types/node": "^20.19.0",
|
|
@@ -69,19 +74,27 @@
|
|
|
69
74
|
"eslint-config-prettier": "^10.0.2",
|
|
70
75
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
71
76
|
"eslint-plugin-react": "^7.37.4",
|
|
77
|
+
"events": "^3.3.0",
|
|
72
78
|
"globals": "^16.0.0",
|
|
73
79
|
"jsdom": "^27.4.0",
|
|
74
|
-
"knip": "^6.21.0",
|
|
75
80
|
"madge": "^8.0.0",
|
|
81
|
+
"node-jq": "^6.0.1",
|
|
76
82
|
"prettier": "^3.5.3",
|
|
83
|
+
"prettier-plugin-import-sort": "^0.0.7",
|
|
77
84
|
"semver": "^7.5.2",
|
|
85
|
+
"ts-prune": "^0.10.3",
|
|
86
|
+
"ts-unused-exports": "^11.0.1",
|
|
78
87
|
"typescript": "^5.7.3",
|
|
88
|
+
"util": "^0.12.5",
|
|
79
89
|
"vite": "^7.3.2",
|
|
80
90
|
"vite-plugin-node-polyfills": "^0.24.0",
|
|
81
91
|
"vite-plugin-svgr": "^4.5.0",
|
|
82
92
|
"vite-tsconfig-paths": "^5.1.4",
|
|
83
93
|
"vitest": "^4.1.5"
|
|
84
94
|
},
|
|
95
|
+
"eslintConfig": {
|
|
96
|
+
"extends": "react-app"
|
|
97
|
+
},
|
|
85
98
|
"keywords": [
|
|
86
99
|
"zeni web cockpit ui"
|
|
87
100
|
],
|
|
@@ -144,8 +157,8 @@
|
|
|
144
157
|
"test": "pnpm lint-modified-files && vitest run",
|
|
145
158
|
"analyze": "ANALYZE=true NODE_OPTIONS=--max-old-space-size=16384 vite build --mode development",
|
|
146
159
|
"update-slack-group-topic": "chmod +x ./scripts/update_slack_group_topic.sh && ./scripts/update_slack_group_topic.sh",
|
|
147
|
-
"find-
|
|
148
|
-
"
|
|
149
|
-
"circular-dependency
|
|
160
|
+
"find-dead-code": "bash ./scripts/run-find-dead-code.sh",
|
|
161
|
+
"find-unused-exports": "ts-unused-exports ./tsconfig.json",
|
|
162
|
+
"circular-dependency": "madge --circular --extensions ts,tsx ./src"
|
|
150
163
|
}
|
|
151
164
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-616HfeVO.js";import{u as x,P as R}from"./ScreenRoutes-CVTUhTzi.js";import{a as f}from"./sentry-CkTOwWbC.js";import{i as v,n as U,g as m,h as N,k as C,l as I,N as T}from"./core-B5lxTB18.js";import{PN as j,PO as k,kY as E,PP as M,lO as L,lR as $,lD as O,PQ as _,PR as F,lL as q,lH as B}from"./zeni-epic-state-CLqy7eng.js";import{z as V,$ as H,F as J,e as Q,a0 as Y,D as Z,a as G,b as K,g as W,h as X}from"./index-BVX7Paho.js";import{n as ee}from"./mui-C_tWhNid.js";import"./recharts-kUgrDs-8.js";import"./analyticsHelper-QkldhEJh.js";import"./utils-BlVqaD8r.js";import"./empty-DjVh230I.js";import"./index-uT-uJGqW.js";import"./url-CICmpbKD.js";import"qs";import"./index-DrH8gx9P.js";import"./analytics-D_rxXpC8.js";import"./lottie-B9CIsRey.js";import"./lexical-CIrl5_25.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]="ad4ff01d-d520-4afe-94be-24c1ab4fb78c",a._sentryDebugIdIdentifier="sentry-dbid-ad4ff01d-d520-4afe-94be-24c1ab4fb78c")}catch{}})();function te(a,t){return{headerData:{allTabOptions:Z,selectedTabOption:G("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=X(n),c=W(n);K.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(B())},onSaveMacro:n=>{a(q(n))},onResetSaveMacro:()=>{a(F())},onUIStateChange:n=>{a(_(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=N(te,ne)(Y),oe=ee.div`
|
|
2
|
-
padding: ${Q.sp5};
|
|
3
|
-
text-align: center;
|
|
4
|
-
`;function re(){const a=v(),t=U(),n=m(j),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,P=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 z=encodeURIComponent(JSON.stringify(e)),D=`${H}/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),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 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?s.jsx(oe,{children:J.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:P,cardProfilesData:w})}function we(){const{isAllowed:a,isLoading:t}=x();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(T,{to:"/management",replace:!0})})})}export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-616HfeVO.js";import{a as f,R as S,n as m}from"./sentry-CkTOwWbC.js";import{n as I,i as w,g as d,u as h,N as y,h as b}from"./core-B5lxTB18.js";import{z as g,E,F as C,b as v,k as T,T as U,d as p}from"./index-BVX7Paho.js";import{PJ as L,PK as P,PL as x,PM as z,bm as u}from"./zeni-epic-state-CLqy7eng.js";import{f as D}from"./analyticsHelper-QkldhEJh.js";import"./recharts-kUgrDs-8.js";import"./mui-C_tWhNid.js";import"./analytics-D_rxXpC8.js";import"./lottie-B9CIsRey.js";import"./lexical-CIrl5_25.js";import"./utils-BlVqaD8r.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]="5627c153-f0d3-4a4d-a0dd-7db36e1e0a9d",e._sentryDebugIdIdentifier="sentry-dbid-5627c153-f0d3-4a4d-a0dd-7db36e1e0a9d")}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:()=>g.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(x())}}}const A=b(N,k)(U),_=S.memo(A);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(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(g.saveSignedInUserWithSession(t,t.zeniSessionId),L(t.userId,t.zeniSessionId),e(P("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(_,{navigate:o,location:c})}export{G as default};
|