@zeniai/web-cockpit-ui 2.0.44-dev → 2.0.45-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-Bki2f5B2.js +4 -0
- package/dist/assets/{Preview-BQo3CyS_.js → Preview-Bk-aFcWe.js} +1 -1
- package/dist/assets/{ScreenRoutes-BgwkIdAu.js → ScreenRoutes-CT9g3ZOP.js} +3 -3
- package/dist/assets/SignInScreen-Dsy3lL9e.js +1 -0
- package/dist/assets/{analytics-CNiqXd4K.js → analytics-CEAHrjZl.js} +1 -1
- package/dist/assets/{analyticsHelper-DznU5kTs.js → analyticsHelper-1hizpDel.js} +1 -1
- package/dist/assets/{core-DKgScItP.js → core-Iit6Uhob.js} +1 -1
- package/dist/assets/{dash.all.min-CYa0p3rw.js → dash.all.min-BarCD-9i.js} +1 -1
- package/dist/assets/{empty-NCff90b1.js → empty-CjZW5Ohr.js} +1 -1
- package/dist/assets/{empty-CD8pH1Sz.js → empty-nPKoyIgu.js} +1 -1
- package/dist/assets/epic-CM3OIpgn.js +2 -0
- package/dist/assets/{index-Bbw_5hMZ.js → index-8wI6OcQZ.js} +1 -1
- package/dist/assets/{index-pCsJcxD1.js → index-C-JcyCw3.js} +1 -1
- package/dist/assets/{index-D73H7aei.js → index-C3KobBON.js} +9612 -9859
- package/dist/assets/{index-C_3BdDN9.js → index-DmgZ4OR9.js} +1 -1
- package/dist/assets/{index-BlDoTt4Z.js → index-DpKAEPgF.js} +1 -1
- package/dist/assets/{index-BZDIfWOU.js → index-TYebxh5y.js} +2 -2
- package/dist/assets/{index-BlvXWI4v.js → index-jukrFVc_.js} +1 -1
- package/dist/assets/{lexical-CQpB_x8R.js → lexical-CatTYP1r.js} +1 -1
- package/dist/assets/{liveblocks-CW_7tUCi.js → liveblocks-BINEA9mc.js} +1 -1
- package/dist/assets/{lottie-m2kKfV4U.js → lottie-Di5QyJEM.js} +1 -1
- package/dist/assets/{mui-BwuPEJfx.js → mui-DFeLPpC7.js} +1 -1
- package/dist/assets/{react-BdLbUci0.js → react-BcGMPlNo.js} +1 -1
- package/dist/assets/{react-CHPqz5by.js → react-C0wVXHIl.js} +2 -2
- package/dist/assets/{react-KDrxtde3.js → react-CAboeeHl.js} +1 -1
- package/dist/assets/{react-Bi_WzKC_.js → react-CJP-XLu5.js} +1 -1
- package/dist/assets/{react-EyY2lwyV.js → react-Cs6RpZZi.js} +1 -1
- package/dist/assets/{react-B1Hy4U0E.js → react-DHsMGHrD.js} +1 -1
- package/dist/assets/{react-DVxt2hJB.js → react-mi0qbeU0.js} +1 -1
- package/dist/assets/{react-BjRqbSTa.js → react-vqCmR2gk.js} +1 -1
- package/dist/assets/{recharts-BlvW-DcS.js → recharts-MiBJ1TiS.js} +1 -1
- package/dist/assets/{sentry-C-aMUNqx.js → sentry-Bv2_e78V.js} +1 -1
- package/dist/assets/{url-B_3PMz4d.js → url-BAP3VvPo.js} +1 -1
- package/dist/assets/{url-CoNyhcSF.js → url-BryqhEFC.js} +1 -1
- package/dist/assets/{utils-dxP1HWg1.js → utils-DDjSC5Uf.js} +1 -1
- package/dist/assets/{zeni-epic-state-BUtcxLyD.js → zeni-epic-state-DUYSHQKP.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +4 -5
- package/dist/assets/CreditAgentRoutes-zLT462V-.js +0 -4
- package/dist/assets/SignInScreen-Ce2brwQF.js +0 -1
- package/dist/assets/epic-B8hXJ_-c.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-C3KobBON.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-Bv2_e78V.js"><link rel="modulepreload" crossorigin href="/assets/core-Iit6Uhob.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-DUYSHQKP.js"><link rel="modulepreload" crossorigin href="/assets/recharts-MiBJ1TiS.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-BINEA9mc.js"><link rel="modulepreload" crossorigin href="/assets/mui-DFeLPpC7.js"><link rel="modulepreload" crossorigin href="/assets/analytics-CEAHrjZl.js"><link rel="modulepreload" crossorigin href="/assets/lottie-Di5QyJEM.js"><link rel="modulepreload" crossorigin href="/assets/lexical-CatTYP1r.js"><link rel="modulepreload" crossorigin href="/assets/utils-DDjSC5Uf.js"><link rel="stylesheet" crossorigin href="/assets/index-y98xvd7i.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.0.
|
|
3
|
+
"version": "2.0.45-dev",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/**/*"
|
|
6
6
|
],
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@sentry/core": "^9.42.1",
|
|
27
27
|
"@sentry/react": "^9.42.1",
|
|
28
28
|
"@types/crypto-js": "^4.1.0",
|
|
29
|
-
"@zeniai/client-analytics": "2.0.
|
|
30
|
-
"@zeniai/client-epic-state": "5.0.
|
|
31
|
-
"@zeniai/web-components": "4.1.
|
|
29
|
+
"@zeniai/client-analytics": "2.0.15",
|
|
30
|
+
"@zeniai/client-epic-state": "5.0.56",
|
|
31
|
+
"@zeniai/web-components": "4.1.13",
|
|
32
32
|
"color": "3.1.3",
|
|
33
33
|
"cross-fetch": "^4.0.0",
|
|
34
34
|
"crypto-js": "4.2.0",
|
|
@@ -146,7 +146,6 @@
|
|
|
146
146
|
"raise-pr-automation": "chmod +x ./scripts/raise_pr_automation.sh && ./scripts/raise_pr_automation.sh",
|
|
147
147
|
"publish-dev-qa": "chmod +x ./scripts/publish_dev_qa.sh && ./scripts/publish_dev_qa.sh",
|
|
148
148
|
"publish-next-prod": "chmod +x ./scripts/publish_next_prod.sh && ./scripts/publish_next_prod.sh",
|
|
149
|
-
"publish-all-envs": "chmod +x ./scripts/publish_all_envs.sh && ./scripts/publish_all_envs.sh",
|
|
150
149
|
"format-watch": "(git diff --name-only --diff-filter=ACM && git ls-files --others --exclude-standard) | grep -E '\\.(ts|tsx)$' | xargs prettier --write",
|
|
151
150
|
"test": "vitest run",
|
|
152
151
|
"analyze": "ANALYZE=true NODE_OPTIONS=--max-old-space-size=16384 vite build --mode development",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-CW_7tUCi.js";import{z as w,$ as v,D as j,o as E,a0 as P,F as k,Q as R,c as T,g as N,d as M,v as $,x as L}from"./index-D73H7aei.js";import{a as f}from"./sentry-C-aMUNqx.js";import{i as _,n as F,g as S,h as O,k as A,l as C,N as B}from"./core-DKgScItP.js";import{H$ as V,I0 as q,jM as Q,I1 as H,kg as J,kj as Z,k3 as G,I2 as K,I3 as W,kd as X,k9 as Y}from"./zeni-epic-state-BUtcxLyD.js";import{n as ee}from"./mui-BwuPEJfx.js";import{P as te}from"./ScreenRoutes-BgwkIdAu.js";import"./recharts-BlvW-DcS.js";import"./analytics-CNiqXd4K.js";import"./lottie-m2kKfV4U.js";import"./lexical-CQpB_x8R.js";import"./utils-dxP1HWg1.js";import"./analyticsHelper-DznU5kTs.js";import"./empty-NCff90b1.js";import"./index-C_3BdDN9.js";import"./url-B_3PMz4d.js";import"./index-BlDoTt4Z.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]="3e227ca6-7b7f-4a82-8a9d-2633141e145d",a._sentryDebugIdIdentifier="sentry-dbid-3e227ca6-7b7f-4a82-8a9d-2633141e145d")}catch{}})();function ne(a,t){return{headerData:{allTabOptions:k,selectedTabOption:R("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ae(a,t){return{headerActions:{onTabChange:n=>{const u=M(n),r=N(n);T.trackCockpitTabClicked(r),t.navigate(`../../${u}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(Y())},onSaveMacro:n=>{a(X(n))},onResetSaveMacro:()=>{a(W())},onUIStateChange:n=>{a(K(n))},cardProfilesActions:t.cardProfilesActions}}}const oe=O(ne,ae)(P),se=ee.div`
|
|
2
|
-
padding: ${E.sp5};
|
|
3
|
-
text-align: center;
|
|
4
|
-
`;function re(){const a=_(),t=F(),n=S(V),u=S(q),[r,m]=f.useState(new Set),g=f.useRef(new Set),y=S(e=>e.tenantState.currentTenantId),b=S(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{b==="Not-Started"&&t(Q())},[t,b]);const d=w.getSignedInUser(),I=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,x=f.useMemo(()=>({onFetch:()=>{t(G())},onUpdateProfile:(e,o,s)=>{const c=s.updatedByName??I;t(Z({tenantId:o,tenantEmailDomain:e,update:{...s,updatedByName:c}}))},onAnalyse:e=>{m(o=>new Set(o).add(e)),t(J(e))},onDownloadReport:()=>{const e=H(n.rows),o=d?.userId??"",s=d?.zeniSessionId??"",c=y??"";if(!o||!s||!c)return;const z=encodeURIComponent(JSON.stringify(e)),D=`${v}/tableDownload?query=${z}`;fetch(D,{headers:{"zeni-user-id":o,"zeni-session-id":s,"zeni-tenant-id":c}}).then(async l=>{if(!l.ok){const p=await l.text();throw new Error(`Download failed: ${l.status} ${p}`)}return l.blob()}).then(l=>{const p=URL.createObjectURL(l),h=document.createElement("a");h.href=p,h.download=`${e.file_name}.xlsx`,h.click(),URL.revokeObjectURL(p)}).catch(()=>{})}}),[t,I,d,y,n.rows]);f.useEffect(()=>{if(r.size===0)return;const e=new Set;for(const o of r){const s=n.rows.find(c=>c.tenantId===o);s!=null&&s.isAnalyzing?g.current.add(o):s!=null&&!s.isAnalyzing&&g.current.has(o)&&(e.add(o),g.current.delete(o))}e.size>0&&m(o=>{const s=new Set(o);for(const c of e)s.delete(c);return s})},[n.rows,r]);const U=f.useMemo(()=>({fetchState:n.fetchStatus.fetchState,rows:n.rows.map(e=>e.isAnalyzing||e.tenantId!=null&&r.has(e.tenantId)?{...e,isAnalyzing:!0}:e),uiState:n.uiState}),[n,r]);return d==null?i.jsx(se,{children:j.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):i.jsx(oe,{macroCombined:u,navigate:a,cardProfilesActions:x,cardProfilesData:U})}function xe(){const{useDynamicConfig:a}=$(),{configValue:t,isDynamicConfigLoading:n}=a(L.creditAgentEnablement);if(n)return null;const r=w.getSignedInUser()?.userEmail,m=Array.isArray(t?.allowedUserEmails)?t.allowedUserEmails:[];return r!=null&&m.includes(r)?i.jsx(A,{children:i.jsx(C,{path:"/*",element:i.jsx(te,{element:i.jsx(re,{})})})}):i.jsx(A,{children:i.jsx(C,{path:"/*",element:i.jsx(B,{to:"/management",replace:!0})})})}export{xe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as d}from"./liveblocks-CW_7tUCi.js";import{a as u,b as S,n as I}from"./sentry-C-aMUNqx.js";import{n as m,i as w,g,u as h,N as b,h as y}from"./core-DKgScItP.js";import{z as l,h as C,D as v,c as E,s as U,_ as T,f}from"./index-D73H7aei.js";import{HX as x,HY as D,HZ as L,H_ as z,bk as p}from"./zeni-epic-state-BUtcxLyD.js";import{f as _}from"./analyticsHelper-DznU5kTs.js";import"./recharts-BlvW-DcS.js";import"./mui-BwuPEJfx.js";import"./analytics-CNiqXd4K.js";import"./lottie-m2kKfV4U.js";import"./lexical-CQpB_x8R.js";import"./utils-dxP1HWg1.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]="bffca8f5-9225-4039-bb06-a3dea2d81e5c",e._sentryDebugIdIdentifier="sentry-dbid-bffca8f5-9225-4039-bb06-a3dea2d81e5c")}catch{}})();function k(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 A(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:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(L())}}}const N=y(k,A)(T),P=S.memo(N);function X(){const e=m(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=h();if(u.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(D("Completed")),v.updateAppLocaleID("en"),_(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:o,location:c})}export{X as default};
|