@zeniai/web-cockpit-ui 2.1.95-qa → 2.1.96-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-BCd1sRlZ.js +4 -0
- package/dist/assets/{Preview-DtkiSAbX.js → Preview-Gjh4NfgT.js} +1 -1
- package/dist/assets/{ScreenRoutes-C3Fnp6wc.js → ScreenRoutes-DMsmUIjZ.js} +4 -4
- package/dist/assets/SignInScreen-C_FCGmRD.js +1 -0
- package/dist/assets/{analytics-CcLB9_Vj.js → analytics-D7j095ZS.js} +1 -1
- package/dist/assets/analyticsHelper-B4DVTwSk.js +1 -0
- package/dist/assets/{core-Bl9BnB30.js → core-uqPaTl-7.js} +1 -1
- package/dist/assets/{dash.all.min-BtgfMeTQ.js → dash.all.min-Bk1VJiI-.js} +1 -1
- package/dist/assets/{empty-B7fTrwqG.js → empty-RWmT1YE3.js} +1 -1
- package/dist/assets/{empty-TF8E-plp.js → empty-dl2qNZPD.js} +1 -1
- package/dist/assets/{epic-DWIR0W0U.js → epic-Cf5NwOgB.js} +1 -1
- package/dist/assets/{index-DvZr26Ys.js → index-BUgazaEA.js} +1 -1
- package/dist/assets/{index-D1AcXnh0.js → index-C-VCj50l.js} +2 -2
- package/dist/assets/{index-BNtt6nz7.js → index-CdOLIncA.js} +1 -1
- package/dist/assets/{index-oPkSm1_I.js → index-DCCbN3Z7.js} +1 -1
- package/dist/assets/{index-Ut1WovAG.js → index-DpvnZpst.js} +1 -1
- package/dist/assets/{index-DsAckLPW.js → index-jSvq2uGF.js} +1 -1
- package/dist/assets/{index-Bbr_QlP5.js → index-ybnTvKkc.js} +26210 -26143
- package/dist/assets/{lexical-Btm7au_7.js → lexical-BLCWz5IB.js} +1 -1
- package/dist/assets/{liveblocks-ruhPlRgH.js → liveblocks-Blq364Xj.js} +1 -1
- package/dist/assets/{lottie-BDuJRr8q.js → lottie-B3dBWWWm.js} +1 -1
- package/dist/assets/{mui-B0uSMsuV.js → mui-cgqCM9_J.js} +1 -1
- package/dist/assets/{react-dEcrXB5H.js → react-4p6sEArJ.js} +2 -2
- package/dist/assets/{react-9mF8Hlr1.js → react-B3Rmd2Hv.js} +1 -1
- package/dist/assets/{react-CveG8dcT.js → react-BFYdhSkl.js} +1 -1
- package/dist/assets/{react-Cz4v-CaS.js → react-BqiwBxRg.js} +1 -1
- package/dist/assets/{react-Dzq8d2xb.js → react-C8UlkYMb.js} +1 -1
- package/dist/assets/{react-DcQRvVYt.js → react-CHPjBHQQ.js} +1 -1
- package/dist/assets/{react-CDj8vTUp.js → react-C_NyV4sD.js} +1 -1
- package/dist/assets/{react-B5e2_6kE.js → react-CodMdweT.js} +1 -1
- package/dist/assets/{recharts-BVXGz_Pg.js → recharts-CUVf4YhP.js} +1 -1
- package/dist/assets/{sentry-CZNY_XXd.js → sentry-CY4t6mQh.js} +1 -1
- package/dist/assets/{url-Djf5X53U.js → url-Dr_5VzUI.js} +1 -1
- package/dist/assets/{url-3tTCewRE.js → url-och1BiuO.js} +1 -1
- package/dist/assets/{utils-BmzxTZV6.js → utils-5_ARbW8v.js} +1 -1
- package/dist/assets/{zeni-epic-state-CSx5suD3.js → zeni-epic-state-D6lF1rx5.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-BSHDC36v.js +0 -4
- package/dist/assets/SignInScreen-BFcIqRlJ.js +0 -1
- package/dist/assets/analyticsHelper-BH6Tt3Wx.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-ybnTvKkc.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-CY4t6mQh.js"><link rel="modulepreload" crossorigin href="/assets/core-uqPaTl-7.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-D6lF1rx5.js"><link rel="modulepreload" crossorigin href="/assets/recharts-CUVf4YhP.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-Blq364Xj.js"><link rel="modulepreload" crossorigin href="/assets/mui-cgqCM9_J.js"><link rel="modulepreload" crossorigin href="/assets/analytics-D7j095ZS.js"><link rel="modulepreload" crossorigin href="/assets/lottie-B3dBWWWm.js"><link rel="modulepreload" crossorigin href="/assets/lexical-BLCWz5IB.js"><link rel="modulepreload" crossorigin href="/assets/utils-5_ARbW8v.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.96-dev",
|
|
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.0.
|
|
29
|
-
"@zeniai/client-epic-state": "5.2.
|
|
30
|
-
"@zeniai/web-components": "4.3.
|
|
28
|
+
"@zeniai/client-analytics": "2.0.85",
|
|
29
|
+
"@zeniai/client-epic-state": "5.2.20",
|
|
30
|
+
"@zeniai/web-components": "4.3.46",
|
|
31
31
|
"color": "3.1.3",
|
|
32
32
|
"crypto-js": "4.2.0",
|
|
33
33
|
"intuit-oauth-ts": "^0.0.4",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as s}from"./liveblocks-ruhPlRgH.js";import{u as P,P as v}from"./ScreenRoutes-C3Fnp6wc.js";import{a as u}from"./sentry-CZNY_XXd.js";import{i as T,n as U,g as m,h as R,k as C,l as I,N as j}from"./core-Bl9BnB30.js";import{Qz as N,QA as k,l0 as E,QB as M,lS as L,lV as _,lH as $,QC as Q,QD as B,lP as F,lL as O}from"./zeni-epic-state-CSx5suD3.js";import{z as q,_ as J,m as V,q as H,a0 as Z,J as G,d as K,e as W,g as X,h as Y}from"./index-Bbr_QlP5.js";import{n as ee}from"./mui-B0uSMsuV.js";import"./recharts-BVXGz_Pg.js";import"./analyticsHelper-BH6Tt3Wx.js";import"./utils-BmzxTZV6.js";import"./empty-B7fTrwqG.js";import"./index-oPkSm1_I.js";import"./url-Djf5X53U.js";import"./index-DsAckLPW.js";import"./analytics-CcLB9_Vj.js";import"./lottie-BDuJRr8q.js";import"./lexical-Btm7au_7.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]="73cc5b99-de60-493c-940e-973db4eb6947",a._sentryDebugIdIdentifier="sentry-dbid-73cc5b99-de60-493c-940e-973db4eb6947")}catch{}})();function te(a,t){return{headerData:{allTabOptions:G,selectedTabOption:K("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(O())},onSaveMacro:n=>{a(F(n))},onResetSaveMacro:()=>{a(B())},onUIStateChange:n=>{a(Q(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=R(te,ne)(Z),oe=ee.div`
|
|
2
|
-
padding: ${H.sp5};
|
|
3
|
-
text-align: center;
|
|
4
|
-
`;function re(){const a=T(),t=U(),n=m(N),g=m(k),[c,h]=u.useState(new Set),p=u.useRef(new Set),b=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);u.useEffect(()=>{y==="Not-Started"&&t(E())},[t,y]);const d=q.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,z=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=b??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${J}/tableDownload?query=${x}`;fetch(D,{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,b,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:V.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:z,cardProfilesData:w})}function ze(){const{isAllowed:a,isLoading:t}=P();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 d}from"./liveblocks-ruhPlRgH.js";import{a as f,R as S,n as m}from"./sentry-CZNY_XXd.js";import{n as I,i as w,g,u as b,N as h,h as y}from"./core-Bl9BnB30.js";import{z as l,E as C,m as E,e as v,C as U,Z as x,i as p}from"./index-Bbr_QlP5.js";import{Qv as T,Qw as L,Qx as z,Qy as D,bm as u}from"./zeni-epic-state-CSx5suD3.js";import{f as A}from"./analyticsHelper-BH6Tt3Wx.js";import"./recharts-BVXGz_Pg.js";import"./mui-B0uSMsuV.js";import"./analytics-CcLB9_Vj.js";import"./lottie-BDuJRr8q.js";import"./lexical-Btm7au_7.js";import"./utils-BmzxTZV6.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]="5205f67b-3178-4eb2-9d16-a17cbec7bb57",e._sentryDebugIdIdentifier="sentry-dbid-5205f67b-3178-4eb2-9d16-a17cbec7bb57")}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(D({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(z())}}}const P=y(N,k)(x),_=S.memo(P);function q(){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=C().mode,c=b();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),T(t.userId,t.zeniSessionId),e(L("Completed")),E.updateAppLocaleID("en"),A(t,s),setTimeout(()=>{v.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(h,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as d}from"./index-Bbr_QlP5.js";import"./sentry-CZNY_XXd.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="ea662f9d-46df-4728-bd52-288e8248e83c",e._sentryDebugIdIdentifier="sentry-dbid-ea662f9d-46df-4728-bd52-288e8248e83c")}catch{}})();const t=(e,i,a,n)=>{d.identify(e.userId,{tenant_id:a?.tenantId,tenant_email_domain:a?.tenantEmailDomain,company_id:a?.companyId,company_name:a?.companyName,user_role:a?.userRole,$email:e.userEmail,user_email_domain:e.userEmailDomain,$first_name:e.firstName,$last_name:e.lastName,company_ids:void 0,company_names:void 0,user_roles:void 0,app_type:"web",appearance:i})};export{t as f};
|