@odigos/ui-kit 0.0.227 → 0.0.229
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/CHANGELOG.md +19 -0
- package/lib/chunks/{index-B0b5lJH3.js → index-DJZLguZq.js} +1 -1
- package/lib/chunks/{index-C-Z4QHpA.js → index-hLSQkKAv.js} +1 -1
- package/lib/chunks/{ui-components-C7i9zbc-.js → ui-components-B4xHrszQ.js} +270 -263
- package/lib/components/_v2/cards/data-card/index.d.ts +2 -1
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/typography/index.d.ts +2 -2
- package/lib/components/_v2/typography-truncatable/index.d.ts +21 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-destination-drawer/helpers.d.ts +4 -3
- package/lib/containers/_v2/_drawers/add-destination-drawer/lists-column/index.d.ts +2 -3
- package/lib/containers/_v2/_drawers/edit-destination-drawer/helpers.d.ts +30 -3
- package/lib/containers/source-drawer/index.d.ts +1 -1
- package/lib/containers/source-drawer/profiling/index.d.ts +3 -9
- package/lib/containers/v2.js +29 -29
- package/lib/containers.js +3 -3
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/mock-data/profiling/index.d.ts +0 -2
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +6 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
package/lib/containers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useState as i,useEffect as o,Fragment as a,forwardRef as r,useRef as l,useImperativeHandle as s,useMemo as c,useCallback as d,useLayoutEffect as u,Children as p}from"react";import h,{css as m,useTheme as g}from"styled-components";import{af as f,cb as v,q as y,K as b,c as S,cc as x,cd as C,ce as w,cf as k,h as T,i as E,cg as $,ch as N,ci as D,cj as I,m as A,F as R,n as O,ck as M,cl as F,p as L,cm as P,ac as _,cn as z,co as K,cp as j,cq as V,cr as B,cs as W,bg as U,aJ as H,ct as q,cu as G,cv as Y,aD as J,aq as X,cw as Q,aH as Z,cx as ee,cy as te,cz as ne,aM as ie,cA as oe,as as ae,cB as re,cC as le,cD as se,cE as ce,cF as de,E as ue,aU as pe,cG as he,cH as me,cI as ge,cJ as fe,cK as ve,cL as ye,O as be,cM as Se,cN as xe,cO as Ce,cP as we,cQ as ke,cR as Te,cS as Ee,cT as $e,cU as Ne,cV as De,cW as Ie,cX as Ae,b as Re,cY as Oe,cZ as Me,c_ as Fe,c$ as Le,d0 as Pe,d1 as _e,d2 as ze,d3 as Ke,d4 as je,d5 as Ve,d6 as Be,d7 as We,H as Ue,d8 as He,aW as qe,al as Ge,d9 as Ye,aB as Je,aE as Xe,da as Qe,aP as Ze,db as et,dc as tt,aQ as nt,dd as it,de as ot,df as at,dg as rt,dh as lt,di as st,dj as ct,dk as dt,aS as ut,dl as pt,Z as ht,dm as mt,dn as gt,dp as ft,dq as vt,dr as yt,ds as bt,dt as St,du as xt,dv as Ct,aO as wt,x as kt,ap as Tt,G as Et,dw as $t,aR as Nt,dx as Dt,J as It,ai as At,ao as Rt,ak as Ot,dy as Mt,dz as Ft,dA as Lt,dB as Pt,P as _t,U as zt,V as Kt,R as jt,M as Vt,Q as Bt,W as Wt,dC as Ut,_ as Ht,aT as qt,dD as Gt,ar as Yt,aw as Jt,dE as Xt,dF as Qt,dG as Zt,bh as en,dH as tn,dI as nn,dJ as on,aI as an,dK as rn,dL as ln,au as sn,dM as cn,dN as dn,dO as un,bo as pn,bp as hn,s as mn,t as gn,o as fn,B as vn,a as yn,S as bn,bF as Sn,an as xn,aj as Cn,dP as wn,N as kn,Y as Tn,T as En,ax as $n,k as Nn,dQ as Dn,dR as In,dS as An,dT as Rn,dU as On,dV as Mn,g as Fn,dW as Ln,dX as Pn,dY as _n,dZ as zn,d_ as Kn,d$ as jn,e0 as Vn,e1 as Bn,e2 as Wn,bi as Un,u as Hn,aN as qn,ah as Gn,e3 as Yn,e4 as Jn,e5 as Xn,e6 as Qn,e7 as Zn,e8 as ei}from"./chunks/ui-components-
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useState as i,useEffect as o,Fragment as a,forwardRef as r,useRef as l,useImperativeHandle as s,useMemo as c,useCallback as d,useLayoutEffect as u,Children as p}from"react";import h,{css as m,useTheme as g}from"styled-components";import{af as f,cb as v,q as y,K as b,c as S,cc as x,cd as C,ce as w,cf as k,h as T,i as E,cg as $,ch as N,ci as D,cj as I,m as A,F as R,n as O,ck as M,cl as F,p as L,cm as P,ac as _,cn as z,co as K,cp as j,cq as V,cr as B,cs as W,bg as U,aJ as H,ct as q,cu as G,cv as Y,aD as J,aq as X,cw as Q,aH as Z,cx as ee,cy as te,cz as ne,aM as ie,cA as oe,as as ae,cB as re,cC as le,cD as se,cE as ce,cF as de,E as ue,aU as pe,cG as he,cH as me,cI as ge,cJ as fe,cK as ve,cL as ye,O as be,cM as Se,cN as xe,cO as Ce,cP as we,cQ as ke,cR as Te,cS as Ee,cT as $e,cU as Ne,cV as De,cW as Ie,cX as Ae,b as Re,cY as Oe,cZ as Me,c_ as Fe,c$ as Le,d0 as Pe,d1 as _e,d2 as ze,d3 as Ke,d4 as je,d5 as Ve,d6 as Be,d7 as We,H as Ue,d8 as He,aW as qe,al as Ge,d9 as Ye,aB as Je,aE as Xe,da as Qe,aP as Ze,db as et,dc as tt,aQ as nt,dd as it,de as ot,df as at,dg as rt,dh as lt,di as st,dj as ct,dk as dt,aS as ut,dl as pt,Z as ht,dm as mt,dn as gt,dp as ft,dq as vt,dr as yt,ds as bt,dt as St,du as xt,dv as Ct,aO as wt,x as kt,ap as Tt,G as Et,dw as $t,aR as Nt,dx as Dt,J as It,ai as At,ao as Rt,ak as Ot,dy as Mt,dz as Ft,dA as Lt,dB as Pt,P as _t,U as zt,V as Kt,R as jt,M as Vt,Q as Bt,W as Wt,dC as Ut,_ as Ht,aT as qt,dD as Gt,ar as Yt,aw as Jt,dE as Xt,dF as Qt,dG as Zt,bh as en,dH as tn,dI as nn,dJ as on,aI as an,dK as rn,dL as ln,au as sn,dM as cn,dN as dn,dO as un,bo as pn,bp as hn,s as mn,t as gn,o as fn,B as vn,a as yn,S as bn,bF as Sn,an as xn,aj as Cn,dP as wn,N as kn,Y as Tn,T as En,ax as $n,k as Nn,dQ as Dn,dR as In,dS as An,dT as Rn,dU as On,dV as Mn,g as Fn,dW as Ln,dX as Pn,dY as _n,dZ as zn,d_ as Kn,d$ as jn,e0 as Vn,e1 as Bn,e2 as Wn,bi as Un,u as Hn,aN as qn,ah as Gn,e3 as Yn,e4 as Jn,e5 as Xn,e6 as Qn,e7 as Zn,e8 as ei}from"./chunks/ui-components-B4xHrszQ.js";import{TrashIcon as ti,VSquareIcon as ni,XSquareIcon as ii,EditIcon as oi,OdigosLogoText as ai,PlusIcon as ri,RefreshIcon as li,SearchIcon as si,FilterIcon as ci,DataStreamIcon as di,VIcon as ui,OdigosLogo as pi,ArrowIcon as hi,RefreshLeftArrowIcon as mi,NotificationIcon as gi,UserIcon as fi,ImageErrorIcon as vi,ChevronDownIcon as yi,ChevronRightIcon as bi,OverviewIcon as Si,SourceIcon as xi,DestinationIcon as Ci,InstrumentationRuleIcon as wi,ActionIcon as ki,SlackLogo as Ti,CopyIcon as Ei,MinusIcon as $i,XIcon as Ni,ExpandIcon as Di,DotIcon as Ii,DownloadIcon as Ai,KeyIcon as Ri,TerminalIcon as Oi,ExclamationTriangleIcon as Mi,TraceViewIcon as Fi}from"./icons.js";import{MarkerType as Li,useNodesState as Pi,useEdgesState as _i}from"@xyflow/react";import{E as zi}from"./chunks/vendor-C150cdxb.js";import{Y as Ki}from"./chunks/index-DJZLguZq.js";import"zustand";import"javascript-time-ago";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";const ji=e=>{const{type:t,name:n,notes:i,signals:o,disabled:a,fields:{collectContainerAttributes:r,collectReplicaSetAttributes:l,collectWorkloadId:s,collectClusterId:c,labelsAttributes:d,annotationsAttributes:u,clusterAttributes:p,overwriteExistingValues:h,attributeNamesToDelete:m,renames:g,piiCategories:S,fallbackSamplingRatio:x,samplingPercentage:C,endpointsFilters:w,servicesNameFilters:k,attributeFilters:T,urlTemplatizationRulesGroups:E}}=e,$=[{title:f.TYPE,value:t},{type:v.ActiveStatus,title:f.STATUS,value:String(!a)},{type:v.Monitors,title:f.SIGNALS_FOR_PROCESSING,value:o?.join(", ")||""},{title:f.NAME,value:n||""},{title:f.NOTES,value:i||""},{type:v.Divider}];if(t===y.K8sAttributes&&($.push({title:"Collect Container Attributes",value:String(r)}),$.push({title:"Collect ReplicaSet Attributes",value:String(l)}),$.push({title:"Collect Workload ID",value:String(s)}),$.push({title:"Collect Cluster ID",value:String(c)}),d?.length&&$.push({type:v.Divider}),d?.forEach(({labelKey:e,attributeKey:t,from:n,fromSources:i},o)=>{let a="";a+=`Label Key: ${e}\n`,a+=`Attribute Key: ${t}\n`;a+=`From: ${i?.length?i.join(", "):n||b.Pod}\n`,$.push({title:"Label"+(d.length>1?` #${o+1}`:""),value:a})}),u?.length&&$.push({type:v.Divider}),u?.forEach(({annotationKey:e,attributeKey:t,from:n,fromSources:i},o)=>{let a="";a+=`Annotation Key: ${e}\n`,a+=`Attribute Key: ${t}\n`;a+=`From: ${i?.length?i.join(", "):n||b.Pod}\n`,$.push({title:"Annotation"+(u.length>1?` #${o+1}`:""),value:a})})),t===y.AddClusterInfo){$.push({title:"Overwrite Existing Values",value:String(h||!1)});let e="";p?.forEach(({attributeName:t,attributeStringValue:n},i)=>{e+=`${t}: ${n}`,i<p.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.DeleteAttributes){let e="";m?.forEach((t,n)=>{e+=t,n<m.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.RenameAttributes){let e="";const t=Object.entries(g||{});t.forEach(([n,i],o)=>{e+=`${n}: ${i}`,o<t.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.PiiMasking){let e="";S?.forEach((t,n)=>{e+=t,n<S.length-1&&(e+=", ")}),$.push({title:"Categories",value:e})}return t===y.ErrorSampler&&$.push({title:"Sampling Ratio",value:String(x)}),t===y.ProbabilisticSampler&&$.push({title:"Sampling Percentage",value:String(C)}),t===y.LatencySampler&&w?.forEach(({serviceName:e,httpRoute:t,minimumLatencyThreshold:n,fallbackSamplingRatio:i},o)=>{let a="";a+=`Service Name: ${e}\n`,a+=`HTTP Route: ${t}\n`,a+=`Min. Latency: ${n}\n`,a+=`Fallback Sampling Ratio: ${i}`,$.push({title:"Endpoint"+(w.length>1?` #${o+1}`:""),value:a})}),t===y.ServiceNameSampler&&k?.forEach(({serviceName:e,samplingRatio:t,fallbackSamplingRatio:n},i)=>{let o="";o+=`Service Name: ${e}\n`,o+=`Sampling Ratio: ${t}\n`,o+=`Fallback Sampling Ratio: ${n}`,$.push({title:"Filter"+(k.length>1?` #${i+1}`:""),value:o})}),t===y.SpanAttributeSampler&&T?.forEach(({serviceName:e,attributeKey:t,fallbackSamplingRatio:n,condition:i},o)=>{let a="";a+=`Service Name: ${e}\n`,a+=`Attribute Key: ${t}\n`,a+=`Fallback Sampling Ratio: ${n}\n`;const r=Object.keys(i)[0];a+=`Condition: ${r}\n`,a+=`Operation: ${i[r]?.operation}\n`,a+=`Expected Value: ${i[r]?.expectedValue}`,"jsonCondition"===r&&(a+=`\nJSON Path: ${i[r].jsonPath}`),$.push({title:"Filter"+(T.length>1?` #${o+1}`:""),value:a})}),t===y.URLTemplatization&&E?.forEach((e,t)=>{let n="";e.filterK8sNamespace&&(n+=`Namespace: ${e.filterK8sNamespace}\n`),e.workloadFilters?.length&&e.workloadFilters.forEach(e=>{const t=[e.kind,e.name].filter(Boolean).join("/");t&&(n+=`Workload: ${t}\n`)});const i=e.templatizationRules?.map(e=>e.template).filter(Boolean).join(", ");n+=`Templates: ${i}`,e.notes&&(n+=`\nNotes: ${e.notes}`),$.push({title:"Group"+(E.length>1?` #${t+1}`:""),value:n})}),$},Vi=S.PiiCategories,Bi=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
gap: 32px;
|
|
@@ -556,7 +556,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useState
|
|
|
556
556
|
flex-shrink: 0;
|
|
557
557
|
`,ls=h.div`
|
|
558
558
|
padding: 12px;
|
|
559
|
-
`;function ss(e){return e>=1073741824?`${(e/1073741824).toFixed(1)} GiB`:e>=1048576?`${(e/1048576).toFixed(1)} MiB`:e>=1024?`${(e/1024).toFixed(1)} KiB`:`${e} B`}const cs=({source:n,fetchProfilingSlots:r,enableProfiling:s,
|
|
559
|
+
`;function ss(e){return e>=1073741824?`${(e/1073741824).toFixed(1)} GiB`:e>=1048576?`${(e/1048576).toFixed(1)} MiB`:e>=1024?`${(e/1024).toFixed(1)} KiB`:`${e} B`}const cs=({source:n,fetchProfilingSlots:r,enableProfiling:s,fetchSourceProfiling:u,onFlameFullscreenChange:p})=>{const h=g(),m=c(()=>({namespace:n.namespace,kind:n.kind,name:n.name}),[n.namespace,n.kind,n.name]),[f,v]=i(!0),[y,b]=i(null),[S,x]=i(null),[C,w]=i(0),[k,T]=i(Zl.Both),[E,$]=i(""),N=l(null),D=d(async()=>{try{const e=[r()];f&&e.push(u(m));const[t,n]=await Promise.all(e);t&&b(t),n?.profileJson&&x(n.profileJson)}finally{w(e=>e+1)}},[r,u,m]);o(()=>{let e=!1;return(async()=>{await s(m),e||(await D(),e||(N.current=setInterval(D,3e3)))})(),()=>{e=!0,N.current&&clearInterval(N.current)}},[s,D,m]);const I=c(()=>function(e){if(!e?.trim())return null;try{const t=JSON.parse(e),n=t.flamebearer;return!n?.names?.length||!Array.isArray(n.levels)||"number"!=typeof n.numTicks||n.numTicks<=0?null:{flamebearer:n,units:t.metadata?.units}}catch{return null}}(S),[S]),A=c(()=>I?function(e){const t=new Map;for(let n=0;n<e.levels.length;n++){const i=e.levels[n];for(let n=0;n+3<i.length;n+=4){const o=i[n+1],a=i[n+2],r=Ll(e,i[n+3]);if(!r)continue;const l=t.get(r);(!l||o>l.total)&&t.set(r,{self:a,total:o})}}return[...t.entries()].map(([e,t])=>({name:e,self:t.self,total:t.total})).sort((e,t)=>t.self-e.self)}(I.flamebearer):[],[I]),R=c(()=>{const e=E.trim().toLowerCase();return e?A.filter(t=>t.name.toLowerCase().includes(e)):A},[A,E]),M=k===Zl.Table||k===Zl.Both,F=k===Zl.Flame||k===Zl.Both,L=M&&F;return C<2?t(Re,{$height:"70vh",children:t(Cn,{withSpinner:!0})}):e(es,{$gap:0,$width:"100%",children:[e(ts,{children:[t(be,{text:"Live CPU profile collected from the workload agent. Search symbols, switch between the table and flame graph, or download a JSON snapshot.",withIcon:!0,children:t(ns,{children:t(mn,{size:gn.S,weight:500,color:h.v2.colors.white[500],nowrap:!0,children:"CPU Profiling"})})}),e(O,{style:{flex:1,minWidth:200,gap:10,alignItems:"center",flexWrap:"wrap"},children:[t("div",{style:{flex:"1 1 220px",minWidth:180},children:t(wn,{value:E,onChange:$,placeholder:"Search by symbol name",width:"100%",idleBackgroundColor:h.v2.colors.silver[900],emphasizeBackgroundColor:h.v2.colors.silver[800]})}),t(bn,{size:xn.S,variant:Sn.Filled,options:[{value:Zl.Table,label:"Top table"},{value:Zl.Flame,label:"Flame graph"},{value:Zl.Both,label:"Both"}],selected:k,setSelected:T}),t(fn,f?{variant:yn.Secondary,size:vn.S,label:"Live",tooltip:"Odigos profiler works in-memory and doesn't store any data on disk, to keep minimum memory footprint we store only last 10 minutes of data on demand",leftIcon:e=>t(Ii,{...e,size:8,fill:h.v2.colors.green[500]})}:{variant:yn.Secondary,size:vn.S,label:"Paused",tooltip:"Odigos profiler is still collecting data, but the UI is not updating in real time",leftIcon:e=>t(Ii,{...e,size:8,fill:h.v2.colors.red[500]})})]})]}),t(is,{$gap:M&&F?16:0,children:I?e(a,{children:[M&&e(os,{$splitWithFlame:L,children:[t(rs,{$justifyContent:"flex-end",children:t(fn,{variant:yn.Secondary,size:vn.S,label:"Download snapshot",rightIcon:Ai,onClick:()=>{if(!S)return;const e=new Blob([S],{type:"application/json"}),t=URL.createObjectURL(e),i=document.createElement("a");i.href=t,i.download=`cpu-profile-${n.namespace}-${n.kind}-${n.name}.json`,i.click(),URL.revokeObjectURL(t)},disabled:!S})}),t(Gl,{rows:R,languages:n.detectedLanguages||n.containers?.map(e=>e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language??"")})]}),F&&e(as,{$splitWithTable:L,children:[e(rs,{$justifyContent:"space-between",children:[t(Tn,{label:I?`Total in view ${Pl(I.flamebearer.numTicks)}`:"No profile sample yet",backgroundColor:h.v2.colors.silver[750],textColor:h.v2.colors.silver[200],textSize:gn.XXS}),e(O,{$gap:12,children:[!f&&t(fn,{variant:yn.Secondary,size:vn.S,label:"Refresh",leftIcon:li,onClick:D}),t(En,{label:"Auto refresh",labelAlign:Nn.Left,size:$n.S,value:f,onChange:v})]})]}),t(Ql,{flamebearer:I.flamebearer,maxRowPx:24,searchQuery:E,minHostHeight:280,onFullscreenChange:p},k)]})]}):t(Re,{children:t(kn,{title:"No profile samples yet",subTitle:"Dynamically collecting profiling samples — keep this tab open while the agent sends OTLP profiles."})})}),y&&t(ls,{children:t(mn,{size:gn.XXXS,color:h.v2.colors.silver[300],children:`${y.activeKeys.length} / ${y.maxSlots} profiling slots · ${ss(y.totalBytesUsed)} / ${ss(y.maxTotalBytesBudget)} budget · TTL ${y.slotTtlSeconds}s`})})]})},ds=(e,t)=>{const{name:n,kind:i,namespace:o}=e,a=[{title:f.KIND,value:i},{title:f.NAME,value:n,tooltip:"Resource name"}];return t||(a.unshift({title:f.NAMESPACE,value:o}),a.push({type:v.Divider}),a.push({type:v.CopyText,value:`kubectl get ${i} ${n} -n ${o}`.toLowerCase()})),a},us=h.div`
|
|
560
560
|
display: flex;
|
|
561
561
|
flex-direction: column;
|
|
562
562
|
gap: 24px;
|
|
@@ -586,7 +586,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useState
|
|
|
586
586
|
display: flex;
|
|
587
587
|
flex-direction: column;
|
|
588
588
|
gap: 12px;
|
|
589
|
-
`;var Ds;!function(e){e.Workload="Workload",e.Pod="Pod"}(Ds||(Ds={}));const Is=({persistSources:a,updateSource:r,restartWorkloads:s,fetchSourceById:d,fetchSourceDescribe:u,fetchSourceLibraries:p,fetchPeerSources:h,restartPod:m,recoverFromRollback:g,
|
|
589
|
+
`;var Ds;!function(e){e.Workload="Workload",e.Pod="Pod"}(Ds||(Ds={}));const Is=({persistSources:a,updateSource:r,restartWorkloads:s,fetchSourceById:d,fetchSourceDescribe:u,fetchSourceLibraries:p,fetchPeerSources:h,restartPod:m,recoverFromRollback:g,profilingEnabled:v,fetchProfilingSlots:y,enableProfiling:b,fetchSourceProfiling:S})=>{const{isVm:x}=ae(),C=X(e=>e.sources),{selectedStreamName:w}=Ze(),{drawerType:k,drawerEntityId:T}=W(),E=c(()=>tt(C,w),[C,w]),$=l(null),N=k===J.Source,[D,I]=i(!1),[A,R]=i(!1),[O,M]=i(ws.Overview),[F,L]=i(null),[P,_]=i(!1);o(()=>{N&&T&&d(T).then(e=>L(e||null))},[N,T]);const{formData:z,handleFormChange:K,resetFormData:j,loadFormWithDrawerItem:V}=_n(),U=c(()=>{if(T)return F&&JSON.stringify(Zt(F))===JSON.stringify(Zt(T))?F:E?.find(e=>JSON.stringify(Zt(e))===JSON.stringify(Zt(T)))},[T,E,F]);o(()=>{N&&U?V(U):j()},[N,U]);const H=c(()=>{const e=U?.conditions?.find(({type:e})=>"RuntimeDetection"===e);return{description:e?.message,isLoading:e?.status===ve.Loading,containers:U?.containers||[]}},[U]),q=c(()=>!!U?.rollbackOccurred,[U?.rollbackOccurred]),G=c(()=>{const e=[{label:ws.Overview,onClick:()=>M(ws.Overview),selected:O===ws.Overview}];return x||(ks.includes(U?.kind)&&e.push({label:ws.Pods,onClick:()=>M(ws.Pods),selected:O===ws.Pods}),U?.containers?.some(e=>Es.includes(e.overrides?.runtimeInfo?.language??e.runtimeInfo?.language))&&e.push({label:ws.Libraries,onClick:()=>M(ws.Libraries),selected:O===ws.Libraries}),e.push({label:ws.PeerSources,onClick:()=>M(ws.PeerSources),selected:O===ws.PeerSources}),v&&y&&b&&S&&e.push({label:ws.Profiling,onClick:()=>M(ws.Profiling),selected:O===ws.Profiling})),e},[O,U,x,v,y,b,S]),Y=Ts.includes(U?.kind),[Q,Z]=i({openFor:null,workloadId:void 0,podNamespace:void 0,podName:void 0});if(!U)return null;return e(po,{ref:$,width:P?"95vw":O===ws.Profiling?"80vw":void 0,onClose:()=>{M(ws.Overview),L(null),_(!1)},title:U.otelServiceName||U.name,titleTooltip:"This attribute is used to identify the name of the service (service.name) that is generating telemetry data.",hideEditTitleFromEdit:!0,icons:jn(U.containers),isEdit:D,isFormDirty:A,onEdit:O===ws.Overview?e=>{I("boolean"!=typeof e||e)}:void 0,onSave:async()=>{const e=z.otelServiceName!==U.name?z.otelServiceName:"";K("otelServiceName",e),await r(T,{...z,otelServiceName:e}),L(null),R(!1),I(!1)},onDelete:O===ws.Overview?async()=>{const{namespace:e}=U;a({[e]:[{...U,selected:!1,currentStreamName:w}]},{}),L(null),R(!1),I(!1),$.current?.closeDrawer()}:void 0,onCancel:()=>{R(!1),I(!1),K("otelServiceName",U.otelServiceName||U.name||"")},isLastItem:1===E.length,tabs:G,headerActionButtons:x?[]:Y?[{"data-id":"rollout-restart",variant:"tertiary",onClick:()=>Z({openFor:Ds.Workload,workloadId:T}),children:e(n,{children:[t(mi,{}),t(B,{size:14,family:"secondary",decoration:"underline",children:"Restart"})]})}]:[],children:[O===ws.Overview?D?t($s,{children:t(ps,{formData:z,handleFormChange:(...e)=>{R(!0),K(...e),K("currentStreamName",w)}})}):e(Ns,{children:[t(hs,{workloadOdigosHealthStatus:U.workloadOdigosHealthStatus}),q&&t(de,{type:ue.Warning,message:f.ROLLBACK_OCCURRED_MESSAGE,action:{label:f.ROLLBACK_RECOVER,onClick:async()=>{await g(T);const e=await d(T);e&&L(e)}}}),t(te,{conditions:U.conditions||[]}),t(ne,{title:f.SOURCE_DETAILS,data:U?ds(U,x):[]}),t(ne,{title:x?f.DETECTED_PROCESSES:f.DETECTED_CONTAINERS,titleBadge:H.isLoading?ve.Loading:H.containers.length,description:H.description||(x?f.DETECTED_PROCESSES_DESCRIPTION:f.DETECTED_CONTAINERS_DESCRIPTION),children:H.containers.map(e=>t(Kn,{...e,callbackRuntimeOverride:e=>r(T,e)},`source-container-${e.containerName}`))}),U.manifestYAML&&t(Ki,{title:`${U.kind} YAML`,yaml:U.manifestYAML,defaultOpen:!U.instrumentationConfigYAML}),U.instrumentationConfigYAML&&t(Ki,{title:"Instrumentation Config YAML",yaml:U.instrumentationConfigYAML,defaultOpen:!U.manifestYAML})]}):O===ws.Pods?t(ms,{source:U,fetchSourceDescribe:u,onClickRestartPod:Y?(e,t)=>Z({openFor:Ds.Pod,podNamespace:e,podName:t}):void 0}):O===ws.Libraries?t(fs,{source:U,fetchSourceLibraries:p}):O===ws.PeerSources?t(Cs,{source:U,fetchPeerSources:h}):O===ws.Profiling&&v&&y&&b&&S?t(cs,{source:U,fetchProfilingSlots:y,enableProfiling:b,fetchSourceProfiling:S,onFlameFullscreenChange:_}):null,t(Xt,{isOpen:!!Q.openFor,title:`Rollout Restart ${Q.openFor}`,description:`Are you sure you want to rollout restart this ${Q.openFor?.toLowerCase()}?`,approveButton:{text:"Confirm",variant:ue.Warning,onClick:()=>{Q.openFor===Ds.Workload&&Q.workloadId?s([Q.workloadId]):Q.openFor===Ds.Pod&&Q.podNamespace&&Q.podName&&m(Q.podNamespace,Q.podName),Z({openFor:null})}},denyButton:{text:"Go Back",onClick:()=>{Z({openFor:null})}}})]})},As=h.div`
|
|
590
590
|
max-width: ${({$fullWidth:e})=>e?"unset":"420px"};
|
|
591
591
|
width: 100%;
|
|
592
592
|
`,Rs=r(({isModal:n,fetchNamespacesWithWorkloads:i,onClickSummary:o},a)=>{const r=g(),{isVm:l}=ae(),c=Vn({fetchNamespacesWithWorkloads:i}),{selectedSources:d,loading:u,selectedAllNamespaces:p,onSelectAllNamespaces:h,getApiSourcesPayload:m,getApiFutureAppsPayload:v,searchText:y,setSearchText:b,searchBy:S,setSearchBy:x,showSelectedOnly:C,setShowSelectedOnly:w,showRunningOnly:T,setShowRunningOnly:E}=c;s(a,()=>({getFormValues:()=>({apps:m(),futureApps:v()})}));const $=Object.values(d).reduce((e,t)=>e+t.filter(e=>e.selected).length,0);return t(ce,{$isNotModal:!n,children:e(R,{$gap:12,children:[e(R,{$gap:24,children:[o&&t(xt,{onClick:o}),t(z,{title:f.SELECT_SOURCES,badgeLabel:$,description:f.SELECT_SOURCES_DESCRIPTION}),e(O,{$justifyContent:"space-between",children:[t(As,{$fullWidth:l,children:t(k,{placeholder:S===J.Source?f.SEARCH_SOURCES:f.SEARCH_NAMESPACES,icon:si,value:y,onChange:e=>b(e.target.value.toLowerCase())})}),!l&&t(P,{options:[{label:f.SOURCE,value:J.Source,selectedBgColor:r.text.secondary,selectedTextColor:r.text.primary},{label:f.NAMESPACE,value:J.Namespace,selectedBgColor:r.text.secondary,selectedTextColor:r.text.primary}],selected:S,setSelected:x})]}),e(O,{$gap:36,children:[t(N,{title:f.SELECT_ALL,initialValue:p,onChange:h,disabled:u}),t(N,{title:f.ONLY_SELECTED,initialValue:C,onChange:w}),t(N,{title:f.ONLY_RUNNING_INSTANCES,initialValue:T,onChange:E})]})]}),t(A,{}),t(Dl,{isModal:n,...c})]})})});Rs.displayName=Rs.name;const Os=({fetchNamespacesWithWorkloads:e,persistSources:n})=>{const{currentModal:i,setCurrentModal:o}=re(),a=i===J.Source,r=()=>{o("")},s=async()=>{if(c.current){const{apps:e,futureApps:t}=c.current.getFormValues();n(e,t),r()}},c=l(null);return U({key:"Enter",active:a},s),a?t(se,{isOpen:a,onClose:r,header:{title:"Add Source"},actionComponent:t(me,{buttons:[{label:"DONE",variant:"primary",onClick:s}]}),children:t(Rs,{ref:c,isModal:!0,fetchNamespacesWithWorkloads:e})}):null},Ms=e=>{const t=[{key:"checkbox-and-icon",title:""},{key:"name",title:f.NAME,sortable:!0},{key:"kind",title:"Kind",sortable:!0}];return e||t.push({key:"namespace",title:f.NAMESPACE,sortable:!0}),t.push({key:"containers",title:f.DETECTED_CONTAINERS}),t.push({key:"conditions",title:"Conditions"}),t.push({key:"throughput",title:"Throughput",sortable:!0}),t},Fs=({metrics:n,maxHeight:i,maxWidth:o})=>{const a=g(),{isVm:r}=ae(),l=xe(),{selectedStreamName:s}=Ze(),u=X(e=>e.sources),p=X(e=>e.sourcesLoading),{setDrawerType:h,setDrawerEntityId:m}=W(),{selectedSources:v,setSelectedSources:y}=ze(),{progress:b}=Je(),S=c(()=>b[Xe.Instrumenting]||b[Xe.Uninstrumenting]?b[Xe.Instrumenting]?.percentage||b[Xe.Uninstrumenting]?.percentage||0:void 0,[b[Xe.Instrumenting],b[Xe.Uninstrumenting]]),x=c(()=>tt(u,s),[u,s]),w=c(()=>Co({instrumentationRules:[],sources:it(x,l),actions:[],destinations:[],searchText:l.searchText,selectedCategory:J.Source}).searchResults.find(({category:e})=>e===J.Source)?.entities||[],[x,l]),[k,T]=c(()=>{let e=0;return Object.values(v).forEach(t=>{e+=t.length}),[0!==e,e]},[v]),E=d(e=>{if(e){const e={};w.forEach(t=>{const{namespace:n}=t;e[n]?e[n].push(t):e[n]=[t]}),y(e)}else y({})},[w]),$=d(e=>{const{namespace:t,name:n,kind:i}=e,o={...v};o[t]||(o[t]=[]);const a=o[t].findIndex(e=>e.name===n&&e.kind===i);-1===a?o[t].push(e):o[t].splice(a,1),y(o)},[v]),N=c(()=>w.map(i=>{const o=Zt(i),r=Be(o),{hasErrors:l,hasWarnings:s,hasDisableds:c}=ge(i.conditions||[]),d=!!v[o.namespace]?.find(e=>e.namespace===o.namespace&&e.name===o.name&&e.kind===o.kind);return{status:l?ue.Error:s?ue.Warning:void 0,faded:c,onClick:()=>{h(J.Source),m(o)},cells:[{columnKey:"checkbox-and-icon",component:()=>e(O,{$gap:16,children:[t(C,{value:d,onChange:()=>$(i)}),t(Bn,{icons:Ye(i),id:r})]})},{columnKey:"name",value:ke(i,J.Source,{extended:!0})},{columnKey:"kind",value:i.kind,textColor:a.text.info},{columnKey:"namespace",value:i.namespace,textColor:a.text.info},{columnKey:"throughput",value:He(Pt(n,J.Source,o).throughput),textColor:a.text.info},{columnKey:"conditions",component:()=>t(So,{conditions:i.conditions||[],id:r})},{columnKey:"containers",component:()=>t("div",{style:{lineHeight:1},children:t(fe,{status:ue.Info,title:Wn(i.containers),withBorder:!0})})}]}}),[w,v,n,$]),{badge:D,badgeTooltip:I}=c(()=>w.length!==x.length?{badge:`${w.length}/${x.length}`,badgeTooltip:f.FILTERED_COUNT_TOOLTIP}:{badge:x.length,badgeTooltip:void 0},[w,x]);return e(Ee,{$maxWidth:o,children:[e($e,{children:[t(C,{partiallyChecked:k&&w?.length!==T,value:k&&w?.length===T,onChange:E,disabled:!w?.length}),t(Ne,{icon:De(J.Source),title:f.SOURCES,badge:D,badgeTooltip:I,loading:p||"number"==typeof S})]}),t(Ie,{$maxHeight:i,children:t(Ae,{columns:Ms(r),rows:N})}),"number"!=typeof S||N.length?N.length?null:t(Re,{style:{marginTop:"2rem"},children:t(Oe,{})}):e(Re,{style:{marginTop:"2rem",gap:"24px"},children:[t(Me,{width:420}),e(O,{$gap:16,children:[e(B,{color:a.text.info,children:[b[Xe.Instrumenting]?"Instrumenting":"Uninstrumenting"," workloads..."]}),t(Fe,{label:`${S}%`})]})]})]})},Ls=({expiresAt:t})=>{const n=g(),{formatTimeAgo:i}=en(),o=i(t),a=new Date(t).toDateString().split(" ").slice(1).join(" "),r=Un(t,0)?n.text.error:Un(t,6048e5)?n.text.warning:n.text.success;return e(B,{size:14,color:r,children:[o," (",a,")"]})},Ps=h.div`
|
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{bs as ActionFormContextProvider,br as DestinationFormContextProvider,fY as OdigosProvider,bt as RuleFormContextProvider,a0 as SamplingRuleFormType,a$ as SamplingRulesFormProvider,bq as SourceInstrumentFormContextProvider,fZ as StorybookProvider,bm as checkVersionSupport,r as useActionFormContext,y as useDestinationFormContext,as as useOdigos,X as useRuleFormContext,$ as useSamplingRulesFormContext,aC as useSourceInstrumentFormContext,f_ as useStorybook}from"./chunks/ui-components-
|
|
1
|
+
export{bs as ActionFormContextProvider,br as DestinationFormContextProvider,fY as OdigosProvider,bt as RuleFormContextProvider,a0 as SamplingRuleFormType,a$ as SamplingRulesFormProvider,bq as SourceInstrumentFormContextProvider,fZ as StorybookProvider,bm as checkVersionSupport,r as useActionFormContext,y as useDestinationFormContext,as as useOdigos,X as useRuleFormContext,$ as useSamplingRulesFormContext,aC as useSourceInstrumentFormContext,f_ as useStorybook}from"./chunks/ui-components-B4xHrszQ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{dx as capitalizeFirstLetter,fq as cleanObjectEmptyStringsValues,x as compareCondition,ao as deepClone,d6 as entityIdKey,cO as filterActions,de as filterDestinations,aQ as filterDestinationsByStream,dd as filterSources,dc as filterSourcesByStream,fr as flattenObjectKeys,d8 as formatBytes,e5 as formatDuration,g as generateId,aM as getActionIcon,cI as getConditionsBooleans,d$ as getContainersIcons,e2 as getContainersInstrumentedCount,fs as getDeepValue,al as getDestinationIcon,ft as getDetectedLanguageIcons,cV as getEntityIcon,aH as getEntityId,d5 as getEntityIdKey,cQ as getEntityLabel,fu as getIdFromSseTarget,aW as getInstrumentationRuleIcon,fv as getMainContainerLanguage,dB as getMetricForEntity,fw as getMonitorIcon,fx as getPlatformIcon,fy as getPlatformLabel,_ as getProgrammingLanguageIcon,e7 as getRecursiveValues,d9 as getSourceLanguageIcons,fz as getSseTargetFromId,fA as getStatusColor,by as getStatusFromPodStatus,cM as getStatusIcon,dQ as getStatusTypeFromOdigosHealth,fB as getValueForRange,dJ as getVirtualServiceIcon,dG as getWorkloadId,aR as getYamlFieldsForDestination,dR as hasUnhealthyInstances,i as isEmpty,fC as isLegalK8sLabel,bi as isOverTime,dW as isStringABoolean,fD as isTimeElapsed,fE as isValidVersion,cL as mapConditions,aO as mapDestinationFieldsForDisplay,H as mapExportedSignals,J as mapSupportedSignals,fF as numbersOnly,dX as parseBooleanFromString,fG as parseJsonStringToPrettyString,L as prepareDestinationFormData,fH as removeEmptyValuesFromObject,ap as safeJsonParse,fI as safeJsonStringify,fJ as setDeepValue,c$ as sleep,aS as splitCamelString,fK as stringifyNonStringValues,cC as trimVersion}from"./chunks/ui-components-
|
|
1
|
+
export{dx as capitalizeFirstLetter,fq as cleanObjectEmptyStringsValues,x as compareCondition,ao as deepClone,d6 as entityIdKey,cO as filterActions,de as filterDestinations,aQ as filterDestinationsByStream,dd as filterSources,dc as filterSourcesByStream,fr as flattenObjectKeys,d8 as formatBytes,e5 as formatDuration,g as generateId,aM as getActionIcon,cI as getConditionsBooleans,d$ as getContainersIcons,e2 as getContainersInstrumentedCount,fs as getDeepValue,al as getDestinationIcon,ft as getDetectedLanguageIcons,cV as getEntityIcon,aH as getEntityId,d5 as getEntityIdKey,cQ as getEntityLabel,fu as getIdFromSseTarget,aW as getInstrumentationRuleIcon,fv as getMainContainerLanguage,dB as getMetricForEntity,fw as getMonitorIcon,fx as getPlatformIcon,fy as getPlatformLabel,_ as getProgrammingLanguageIcon,e7 as getRecursiveValues,d9 as getSourceLanguageIcons,fz as getSseTargetFromId,fA as getStatusColor,by as getStatusFromPodStatus,cM as getStatusIcon,dQ as getStatusTypeFromOdigosHealth,fB as getValueForRange,dJ as getVirtualServiceIcon,dG as getWorkloadId,aR as getYamlFieldsForDestination,dR as hasUnhealthyInstances,i as isEmpty,fC as isLegalK8sLabel,bi as isOverTime,dW as isStringABoolean,fD as isTimeElapsed,fE as isValidVersion,cL as mapConditions,aO as mapDestinationFieldsForDisplay,H as mapExportedSignals,J as mapSupportedSignals,fF as numbersOnly,dX as parseBooleanFromString,fG as parseJsonStringToPrettyString,L as prepareDestinationFormData,fH as removeEmptyValuesFromObject,ap as safeJsonParse,fI as safeJsonStringify,fJ as setDeepValue,c$ as sleep,aS as splitCamelString,fK as stringifyNonStringValues,cC as trimVersion}from"./chunks/ui-components-B4xHrszQ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cw as useActionFormData,fX as useBodyScroll,df as useClickNode,dH as useClickNotification,db as useContainerSize,u as useCopy,dq as useDataStreamFormData,dw as useDestinationFormData,aN as useGenericForm,dD as useInstrumentationRuleFormData,bg as useKeyDown,dk as useOnClickOutside,dg as usePopup,ca as useScrollTo,dp as useSessionStorage,dY as useSourceFormData,e0 as useSourceSelectionFormData,bh as useTimeAgo}from"./chunks/ui-components-
|
|
1
|
+
export{cw as useActionFormData,fX as useBodyScroll,df as useClickNode,dH as useClickNotification,db as useContainerSize,u as useCopy,dq as useDataStreamFormData,dw as useDestinationFormData,aN as useGenericForm,dD as useInstrumentationRuleFormData,bg as useKeyDown,dk as useOnClickOutside,dg as usePopup,ca as useScrollTo,dp as useSessionStorage,dY as useSourceFormData,e0 as useSourceSelectionFormData,bh as useTimeAgo}from"./chunks/ui-components-B4xHrszQ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { ProfilingProps } from '@/containers/source-drawer/profiling';
|
|
2
2
|
type ProfilingSlots = Awaited<ReturnType<ProfilingProps['fetchProfilingSlots']>>;
|
|
3
3
|
type EnableProfilingResult = Awaited<ReturnType<ProfilingProps['enableProfiling']>>;
|
|
4
|
-
type ReleaseProfilingResult = Awaited<ReturnType<ProfilingProps['releaseProfiling']>>;
|
|
5
4
|
type SourceProfilingResult = Awaited<ReturnType<ProfilingProps['fetchSourceProfiling']>>;
|
|
6
5
|
export declare const MOCK_PROFILING_SLOTS: ProfilingSlots;
|
|
7
6
|
export declare const MOCK_ENABLE_PROFILING_RESULT: EnableProfilingResult;
|
|
8
|
-
export declare const MOCK_RELEASE_PROFILING_RESULT: ReleaseProfilingResult;
|
|
9
7
|
export declare const MOCK_SOURCE_PROFILING_RESULT: SourceProfilingResult;
|
|
10
8
|
export {};
|
package/lib/snippets/v2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as ActionType,bx as Actions,bG as ColoredSpan,eN as ColoredSpanVariant,bw as RichTitle}from"../chunks/ui-components-
|
|
1
|
+
export{A as ActionType,bx as Actions,bG as ColoredSpan,eN as ColoredSpanVariant,bw as RichTitle}from"../chunks/ui-components-B4xHrszQ.js";export{C as CancelModal,i as DURATION_OPTIONS,f as DeleteModal,e as DurationErrorsSection,D as DynamicField,N as NOISY_PERCENTAGE_OPTIONS,h as OdigosLogoTextByTier,O as OperationSection,a as PERCENTAGE_OPTIONS,d as PercentageSection,P as PresetWithCustomInput,R as RuleInfoSection,b as SamplingPreviewSection,S as SignalsCheckboxList,c as SourceScopeSection,U as UpgradeModal,g as WIDE_DRAWER_WIDTH,W as WideDrawer}from"../chunks/index-hLSQkKAv.js";export{Y as YamlSectionCard}from"../chunks/index-DJZLguZq.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cl as AddButton,dS as CopyText,dM as EditButton,dL as Flow,f$ as MapItemNode,g0 as NoDataNode,du as NoteBackToSummary,dU as PodContainer,d_ as SourceContainer}from"./chunks/ui-components-
|
|
1
|
+
export{cl as AddButton,dS as CopyText,dM as EditButton,dL as Flow,f$ as MapItemNode,g0 as NoDataNode,du as NoteBackToSummary,dU as PodContainer,d_ as SourceContainer}from"./chunks/ui-components-B4xHrszQ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{aE as ProgressKeys,dK as useActiveNodeStore,e4 as useDarkMode,aP as useDataStreamStore,cs as useDrawerStore,aq as useEntityStore,cN as useFilterStore,cB as useModalStore,aT as useNotificationStore,aB as useProgressStore,d2 as useSelectedStore,dr as useSetupStore}from"./chunks/ui-components-
|
|
1
|
+
export{aE as ProgressKeys,dK as useActiveNodeStore,e4 as useDarkMode,aP as useDataStreamStore,cs as useDrawerStore,aq as useEntityStore,cN as useFilterStore,cB as useModalStore,aT as useNotificationStore,aB as useProgressStore,d2 as useSelectedStore,dr as useSetupStore}from"./chunks/ui-components-B4xHrszQ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{fT as Provider,fU as animations,fV as opacity,fW as palettes}from"./chunks/ui-components-
|
|
1
|
+
export{fT as Provider,fU as animations,fV as opacity,fW as palettes}from"./chunks/ui-components-B4xHrszQ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -329,6 +329,9 @@ export interface EffectiveConfig {
|
|
|
329
329
|
keepPercentage?: number | null;
|
|
330
330
|
} | null;
|
|
331
331
|
} | null;
|
|
332
|
+
profiling?: {
|
|
333
|
+
enabled?: boolean | null;
|
|
334
|
+
} | null;
|
|
332
335
|
provenance?: ProvenanceEntry[] | null;
|
|
333
336
|
manifestYAML?: string | null;
|
|
334
337
|
}
|
|
@@ -500,6 +503,9 @@ export interface EffectiveConfigInput {
|
|
|
500
503
|
keepPercentage?: number | null;
|
|
501
504
|
} | null;
|
|
502
505
|
} | null;
|
|
506
|
+
profiling?: {
|
|
507
|
+
enabled?: boolean | null;
|
|
508
|
+
} | null;
|
|
503
509
|
manifestYAML?: string | null;
|
|
504
510
|
}
|
|
505
511
|
export type GetEffectiveConfigFunc = (id: string) => Promise<EffectiveConfig | undefined>;
|
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{f3 as ActionCategory,c as ActionKeyTypes,q as ActionType,f4 as AddNodeTypes,f5 as BooleanOperation,M as CodeAttributesKeyTypes,cA as Crud,V as CustomInstrumentationsKeyTypes,d4 as DesiredStateProgress,f6 as DestinationTypes,f7 as EdgeTypes,aD as EntityTypes,p as FieldTypes,R as GolangCustomProbe,P as HeadersCollectionKeyTypes,h as InputTypes,f8 as InstallationMethod,W as InstrumentationRuleType,f9 as IntrumentationStatus,U as JavaCustomProbe,fa as JsonOperation,K as K8sAttributesFrom,dZ as K8sResourceKind,fb as ListDirection,dI as NodeTypes,fc as NumberOperation,fd as OtelDistroName,dv as OtherEntityTypes,cK as OtherStatus,av as OtherStatusType,Q as PayloadCollectionKeyTypes,fe as PlatformType,ff as PodContainerLifecycleStatus,fg as PodContainerStatus,fh as PodPhase,fi as Profile,dO as ProgrammingLanguages,fj as SIGNAL_KEY_TO_TYPE,dy as SIGNAL_TYPE_TO_KEY,fk as SignalKey,G as SignalType,fl as SortDirection,E as StatusType,fm as StringOperation,aw as Tier,bA as WorkloadRolloutStatus}from"./chunks/ui-components-
|
|
1
|
+
export{f3 as ActionCategory,c as ActionKeyTypes,q as ActionType,f4 as AddNodeTypes,f5 as BooleanOperation,M as CodeAttributesKeyTypes,cA as Crud,V as CustomInstrumentationsKeyTypes,d4 as DesiredStateProgress,f6 as DestinationTypes,f7 as EdgeTypes,aD as EntityTypes,p as FieldTypes,R as GolangCustomProbe,P as HeadersCollectionKeyTypes,h as InputTypes,f8 as InstallationMethod,W as InstrumentationRuleType,f9 as IntrumentationStatus,U as JavaCustomProbe,fa as JsonOperation,K as K8sAttributesFrom,dZ as K8sResourceKind,fb as ListDirection,dI as NodeTypes,fc as NumberOperation,fd as OtelDistroName,dv as OtherEntityTypes,cK as OtherStatus,av as OtherStatusType,Q as PayloadCollectionKeyTypes,fe as PlatformType,ff as PodContainerLifecycleStatus,fg as PodContainerStatus,fh as PodPhase,fi as Profile,dO as ProgrammingLanguages,fj as SIGNAL_KEY_TO_TYPE,dy as SIGNAL_TYPE_TO_KEY,fk as SignalKey,G as SignalType,fl as SortDirection,E as StatusType,fm as StringOperation,aw as Tier,bA as WorkloadRolloutStatus}from"./chunks/ui-components-B4xHrszQ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/visuals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{fn as VISUAL_ODIGOS_LOGO_HEIGHT,fo as VISUAL_ODIGOS_LOGO_WIDTH,f2 as VisualGreenRings,fp as VisualOdigosLogo}from"./chunks/ui-components-
|
|
1
|
+
export{fn as VISUAL_ODIGOS_LOGO_HEIGHT,fo as VISUAL_ODIGOS_LOGO_WIDTH,f2 as VisualGreenRings,fp as VisualOdigosLogo}from"./chunks/ui-components-B4xHrszQ.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|