@zeniai/web-cockpit-ui 2.0.35-dev → 2.0.37-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/{Preview-CAmOkbjw.js → Preview-BgIk7yLu.js} +1 -1
- package/dist/assets/{ScreenRoutes-yvbp_Lbz.js → ScreenRoutes-6yDZGf2h.js} +69 -70
- package/dist/assets/SignInScreen-D5TVEilp.js +1 -0
- package/dist/assets/{analytics-BfH6x-bh.js → analytics-cwjP4Bou.js} +1 -1
- package/dist/assets/{analyticsHelper-DpKWIfA_.js → analyticsHelper-jtw74pIY.js} +1 -1
- package/dist/assets/{core-BMXdW52V.js → core-DSRGnsuN.js} +1 -1
- package/dist/assets/{dash.all.min-BNMSYYE9.js → dash.all.min-C_-wAuJd.js} +1 -1
- package/dist/assets/{index-BcCMwDMT.js → empty-CXYoV6Bj.js} +1 -1
- package/dist/assets/{empty-CMgD5T-3.js → empty-HFaPDeHn.js} +1 -1
- package/dist/assets/{epic-0u3weRPq.js → epic-CTyB5Dj-.js} +2 -2
- package/dist/assets/index-7QOvkk33.js +1 -0
- package/dist/assets/index-BERBAf7V.js +1 -0
- package/dist/assets/{index-OG0h_gMR.js → index-CjA52rF1.js} +1 -1
- package/dist/assets/{index-CY8CEYeK.js → index-D5AujO_g.js} +1 -1
- package/dist/assets/{index-D9Zhqjkb.js → index-DKEW-Ru3.js} +2 -2
- package/dist/assets/index-DLITyZ-5.js +1 -0
- package/dist/assets/{index-BIPrynO9.js → index-DNVGRlbp.js} +8284 -8284
- package/dist/assets/{lexical-Cj6VOpGX.js → lexical-zDu6lgQZ.js} +1 -1
- package/dist/assets/{liveblocks-BQqAIDc5.js → liveblocks-CTqzt75Z.js} +1 -1
- package/dist/assets/{lottie-qwRZdbTy.js → lottie-BS5f0GhF.js} +1 -1
- package/dist/assets/{mui-BQBCqqWF.js → mui-D2XoZszz.js} +1 -1
- package/dist/assets/{react-DZq71Z0g.js → react-BJ5SS4L0.js} +1 -1
- package/dist/assets/{react-C83wXUqV.js → react-BUzbt_Qo.js} +2 -2
- package/dist/assets/{react-Cu6ubvAK.js → react-BlSMUZRS.js} +3 -3
- package/dist/assets/{react-BFtEL_0u.js → react-BnNmm0vD.js} +1 -1
- package/dist/assets/{react-C8sJgD0w.js → react-CRDQ8EK1.js} +1 -1
- package/dist/assets/{react-jnSxQgdS.js → react-CWF4iW13.js} +1 -1
- package/dist/assets/{react-hF-9mrjI.js → react-CWf0NBhH.js} +1 -1
- package/dist/assets/{react-BfNEEjJ_.js → react-i00eeHLI.js} +1 -1
- package/dist/assets/{recharts-BZRqFQc_.js → recharts-Dgdt7a-L.js} +1 -1
- package/dist/assets/{sentry-B9T9CHF5.js → sentry-C6CbnDK5.js} +1 -1
- package/dist/assets/{url-BMK-Vtzl.js → url-D3HF9rU-.js} +1 -1
- package/dist/assets/url-RNtw1rmI.js +1 -0
- package/dist/assets/{utils-Fih0Jz-h.js → utils-CxleEPDM.js} +1 -1
- package/dist/assets/{zeni-epic-state-DSTkpZye.js → zeni-epic-state-D_IWj6oD.js} +5 -5
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-CZ-C1wzQ.js +0 -4
- package/dist/assets/SignInScreen-DIqNMUI1.js +0 -1
- package/dist/assets/empty-CURC4K9t.js +0 -1
- package/dist/assets/index-DSJ2w1jZ.js +0 -1
- package/dist/assets/index-sjMkGJDk.js +0 -1
- package/dist/assets/url-BEGh4GqD.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-DNVGRlbp.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-C6CbnDK5.js"><link rel="modulepreload" crossorigin href="/assets/core-DSRGnsuN.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-D_IWj6oD.js"><link rel="modulepreload" crossorigin href="/assets/recharts-Dgdt7a-L.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-CTqzt75Z.js"><link rel="modulepreload" crossorigin href="/assets/mui-D2XoZszz.js"><link rel="modulepreload" crossorigin href="/assets/analytics-cwjP4Bou.js"><link rel="modulepreload" crossorigin href="/assets/lottie-BS5f0GhF.js"><link rel="modulepreload" crossorigin href="/assets/lexical-zDu6lgQZ.js"><link rel="modulepreload" crossorigin href="/assets/utils-CxleEPDM.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.37-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.0.
|
|
29
|
+
"@zeniai/client-analytics": "2.0.12",
|
|
30
|
+
"@zeniai/client-epic-state": "5.0.45",
|
|
31
|
+
"@zeniai/web-components": "4.0.86",
|
|
32
32
|
"color": "3.1.3",
|
|
33
33
|
"cross-fetch": "^4.0.0",
|
|
34
34
|
"crypto-js": "4.2.0",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as i}from"./liveblocks-BQqAIDc5.js";import{z as w,T as P,D as j,o as v,W as E,Q as N,c as R,g as T,h as k,y as M,f as L}from"./index-BIPrynO9.js";import{a as f}from"./sentry-B9T9CHF5.js";import{i as _,n as $,g as S,h as H,k as I,l as C,N as O}from"./core-BMXdW52V.js";import{HM as B,HN as F,jH as Q,HO as V,kb as q,ke as J,j_ as W,HP as Z,HQ as G,k8 as K,k4 as X}from"./zeni-epic-state-DSTkpZye.js";import{n as Y}from"./mui-BQBCqqWF.js";import{P as ee}from"./ScreenRoutes-yvbp_Lbz.js";import"./recharts-BZRqFQc_.js";import"./analytics-BfH6x-bh.js";import"./lottie-qwRZdbTy.js";import"./lexical-Cj6VOpGX.js";import"./utils-Fih0Jz-h.js";import"./analyticsHelper-DpKWIfA_.js";import"./empty-CMgD5T-3.js";import"./index-OG0h_gMR.js";import"./url-BMK-Vtzl.js";import"./index-DSJ2w1jZ.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]="c17258e8-5262-497e-991a-661c28dd3fa7",a._sentryDebugIdIdentifier="sentry-dbid-c17258e8-5262-497e-991a-661c28dd3fa7")}catch{}})();function te(a,t){return{headerData:{selectedTabOption:N("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 u=k(n),r=T(n);R.trackCockpitTabClicked(r),t.navigate(`../../${u}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(X())},onSaveMacro:n=>{a(K(n))},onResetSaveMacro:()=>{a(G())},onUIStateChange:n=>{a(Z(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=H(te,ne)(E),oe=Y.div`
|
|
2
|
-
padding: ${v.sp5};
|
|
3
|
-
text-align: center;
|
|
4
|
-
`;function se(){const a=_(),t=$(),n=S(B),u=S(F),[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(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,U=f.useMemo(()=>({onFetch:()=>{t(W())},onUpdateProfile:(e,o,s)=>{const c=s.updatedByName??A;t(J({tenantId:o,tenantEmailDomain:e,update:{...s,updatedByName:c}}))},onAnalyse:e=>{m(o=>new Set(o).add(e)),t(q(e))},onDownloadReport:()=>{const e=V(n.rows),o=d?.userId??"",s=d?.zeniSessionId??"",c=y??"";if(!o||!s||!c)return;const D=encodeURIComponent(JSON.stringify(e)),x=`${P}/tableDownload?query=${D}`;fetch(x,{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,A,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 z=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(oe,{children:j.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):i.jsx(ae,{macroCombined:u,navigate:a,cardProfilesActions:U,cardProfilesData:z})}function we(){const{useDynamicConfig:a}=M(),{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(I,{children:i.jsx(C,{path:"/*",element:i.jsx(ee,{element:i.jsx(se,{})})})}):i.jsx(I,{children:i.jsx(C,{path:"/*",element:i.jsx(O,{to:"/management",replace:!0})})})}export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as l}from"./liveblocks-BQqAIDc5.js";import{a as f,b as S,n as m}from"./sentry-B9T9CHF5.js";import{n as I,i as w,g,u as h,N as y,h as b}from"./core-BMXdW52V.js";import{z as d,m as C,D as E,c as v,q as U,R as L,e as p}from"./index-BIPrynO9.js";import{HI as T,HJ as x,HK as D,HL as z,bk as u}from"./zeni-epic-state-DSTkpZye.js";import{f as k}from"./analyticsHelper-DpKWIfA_.js";import"./recharts-BZRqFQc_.js";import"./mui-BQBCqqWF.js";import"./analytics-BfH6x-bh.js";import"./lottie-qwRZdbTy.js";import"./lexical-Cj6VOpGX.js";import"./utils-Fih0Jz-h.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]="413da0f0-8ae8-4031-a597-ed5e7c6d6e94",e._sentryDebugIdIdentifier="sentry-dbid-413da0f0-8ae8-4031-a597-ed5e7c6d6e94")}catch{}})();function A(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 N(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:()=>d.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(D())}}}const P=b(A,N)(L),_=S.memo(P);function W(){const e=I(),o=w(),i=d.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(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(d.saveSignedInUserWithSession(t,t.zeniSessionId),T(t.userId,t.zeniSessionId),e(x("Completed")),E.updateAppLocaleID("en"),k(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 l.jsx(y,{to:a,state:{...c.state,origin:""}})}else return l.jsx(_,{navigate:o,location:c})}export{W as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as f}from"./sentry-B9T9CHF5.js";import{r as d}from"./empty-CMgD5T-3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2a045c95-8ab1-4b16-9794-0386d0ae02b8",e._sentryDebugIdIdentifier="sentry-dbid-2a045c95-8ab1-4b16-9794-0386d0ae02b8")}catch{}})();function i(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var s=d();const b=f(s),p=i({__proto__:null,default:b},[s]);export{p as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./sentry-B9T9CHF5.js";import{a as l}from"./index-OG0h_gMR.js";import{r as p}from"./url-BMK-Vtzl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="60d6a6ba-6da2-4ab6-858a-c3b74ff13ed8",e._sentryDebugIdIdentifier="sentry-dbid-60d6a6ba-6da2-4ab6-858a-c3b74ff13ed8")}catch{}})();var f={exports:{}},u;function h(){return u||(u=1,function(e){var r=l(),s=p(),o=e.exports;for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);o.request=function(t,i){return t=d(t),r.request.call(this,t,i)},o.get=function(t,i){return t=d(t),r.get.call(this,t,i)};function d(t){if(typeof t=="string"&&(t=s.parse(t)),t.protocol||(t.protocol="https:"),t.protocol!=="https:")throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}}(f)),f.exports}export{h as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as i}from"./sentry-B9T9CHF5.js";import{r as a}from"./index-DSJ2w1jZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="95d707c2-4166-4cae-a9e9-fe5e4305c4ab",e._sentryDebugIdIdentifier="sentry-dbid-95d707c2-4166-4cae-a9e9-fe5e4305c4ab")}catch{}})();function d(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var f=a();const c=i(f),y=d({__proto__:null,default:c},[f]);export{y as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as d}from"./sentry-B9T9CHF5.js";import{r as a}from"./url-BMK-Vtzl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e5a273e1-f894-4555-9edb-c62295a4d6b3",e._sentryDebugIdIdentifier="sentry-dbid-e5a273e1-f894-4555-9edb-c62295a4d6b3")}catch{}})();function i(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const f=Object.getOwnPropertyDescriptor(t,o);f&&Object.defineProperty(e,o,f.get?f:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var s=a();const l=d(s),c=i({__proto__:null,default:l},[s]);export{c as u};
|