@odigos/ui-kit 0.0.214 → 0.0.216
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-3rwrQKyF.js +3 -0
- package/lib/chunks/ui-components-DvThY8Em.js +2422 -0
- package/lib/components/_v2/autocomplete/index.d.ts +13 -0
- package/lib/components/_v2/drawer/index.d.ts +1 -0
- package/lib/components/_v2/drop-data/index.d.ts +4 -0
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/segment/index.d.ts +8 -1
- 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-action-drawer/index.d.ts +1 -0
- package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +4 -1
- package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +1 -0
- package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +2 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/constants.d.ts +26 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/converters.d.ts +5 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/form-helpers.d.ts +5 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/index.d.ts +6 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/duration-errors.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/operation.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/percentage.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/rule-info.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/sampling-preview.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/source-scope.d.ts +10 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/types.d.ts +54 -0
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/constants.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/index.d.ts +4 -0
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/types.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/constants.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/index.d.ts +4 -0
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/types.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/constants.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/index.d.ts +4 -0
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/types.d.ts +6 -0
- package/lib/containers/_v2/_drawers/index.d.ts +5 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/constants.d.ts +19 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/footer.d.ts +21 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/index.d.ts +23 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/reverse-converters.d.ts +3 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/duration-errors.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/operation-details.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/percentage.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/rule-info.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/sampling-preview.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/source-scopes.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/styled.d.ts +4 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/types.d.ts +1 -0
- package/lib/containers/_v2/_forms/add-destination-form/context.d.ts +3 -3
- package/lib/containers/_v2/auto-rule-card/constants.d.ts +1 -0
- package/lib/containers/_v2/auto-rule-card/helpers.d.ts +19 -0
- package/lib/containers/_v2/auto-rule-card/index.d.ts +5 -0
- package/lib/containers/_v2/auto-rule-card/types.d.ts +6 -0
- package/lib/containers/_v2/central-connections/index.d.ts +2 -1
- package/lib/containers/_v2/index.d.ts +3 -0
- package/lib/containers/_v2/onboarding/index.d.ts +2 -1
- package/lib/containers/_v2/onboarding/summary/index.d.ts +1 -0
- package/lib/containers/_v2/sampling-rules-list/constants.d.ts +23 -0
- package/lib/containers/_v2/sampling-rules-list/helpers.d.ts +30 -0
- package/lib/containers/_v2/sampling-rules-list/index.d.ts +6 -0
- package/lib/containers/_v2/sampling-rules-list/rule-row.d.ts +12 -0
- package/lib/containers/_v2/sampling-rules-list/summary-span.d.ts +10 -0
- package/lib/containers/_v2/sampling-rules-list/toolbar.d.ts +13 -0
- package/lib/containers/_v2/sampling-rules-list/types.d.ts +47 -0
- package/lib/containers/v2.js +446 -35
- package/lib/containers.js +2 -2
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/destinations/aws-api-gateway-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-bedrock-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-dynamodb-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-ec2-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-eventbridge-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-kinesis-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-lambda-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-secrets-manager-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-sns-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-sqs-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-step-functions-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-sts-logo/index.d.ts +2 -0
- package/lib/icons/destinations/index.d.ts +12 -0
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/overview/sampling-icon/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/_v2/wide-drawer/index.d.ts +2 -0
- 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 +2 -1
- package/lib/types/destinations/index.d.ts +3 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/sampling.d.ts +103 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-CIjqAfew.js +0 -3
- package/lib/chunks/ui-components-Cu9XlyM0.js +0 -2391
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 a,Fragment as o,forwardRef as r,useRef as s,useImperativeHandle as l,useMemo as c,useCallback as d,Children as u}from"react";import p,{css as m,useTheme as h}from"styled-components";import{af as g,
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useState as i,useEffect as a,Fragment as o,forwardRef as r,useRef as s,useImperativeHandle as l,useMemo as c,useCallback as d,Children as u}from"react";import p,{css as m,useTheme as h}from"styled-components";import{af as g,a_ as y,w as v,K as f,A as b,a$ as S,b0 as x,b1 as C,b2 as E,m as N,n as k,b3 as T,b4 as w,b5 as $,b6 as D,s as A,F as I,b as O,b7 as R,b8 as L,v as M,b9 as F,l as _,ba as P,bb as K,bc as j,bd as V,be as z,bf as U,aA as B,aK as W,bg as H,bh as q,bi as G,ac as J,am as Y,bj as X,bk as Q,bl as Z,bm as ee,bn as te,bo as ne,bp as ie,u as ae,bq as oe,br as re,bs as se,bt as le,bu as ce,i as de,X as ue,bv as pe,bw as me,bx as he,by as ge,bz as ye,bA as ve,Z as fe,bB as be,bC as Se,bD as xe,bE as Ce,bF as Ee,bG as Ne,bH as ke,bI as Te,bJ as we,bK as $e,bL as De,bM as Ae,e as Ie,bN as Oe,bO as Re,bP as Le,bQ as Me,aR as Fe,bR as _e,bS as Pe,bT as Ke,bU as je,S as Ve,U as ze,bV as Ue,bW as Be,ak as We,bX as He,as as qe,at as Ge,bY as Je,O as Ye,bZ as Xe,b_ as Qe,b$ as Ze,c0 as et,c1 as tt,c2 as nt,c3 as it,c4 as at,c5 as ot,c6 as rt,c7 as st,c8 as lt,c9 as ct,a5 as dt,M as ut,ca as pt,cb as mt,cc as ht,cd as gt,ce as yt,cf as vt,cg as ft,ch as bt,ci as St,G as xt,J as Ct,Q as Et,cj as Nt,ck as kt,cl as Tt,P as wt,ai as $t,d as Dt,aj as At,cm as It,cn as Ot,co as Rt,cp as Lt,_ as Mt,a1 as Ft,a2 as _t,a0 as Pt,Y as Kt,$ as jt,a3 as Vt,cq as zt,a6 as Ut,cr as Bt,cs as Wt,an as Ht,T as qt,ct as Gt,cu as Jt,cv as Yt,aB as Xt,cw as Qt,cx as Zt,cy as en,D as tn,cz as nn,cA as an,a9 as on,cB as rn,cC as sn,cD as ln,cE as cn,cF as dn,cG as un,cH as pn,aZ as mn,aH as hn,cI as gn,cJ as yn,cK as vn,cL as fn,aw as bn,cM as Sn,cN as xn,cO as Cn,cP as En,cQ as Nn,aC as kn,az as Tn,x as wn,ah as $n,cR as Dn,cS as An,cT as In,cU as On,cV as Rn,cW as Ln}from"./chunks/ui-components-DvThY8Em.js";import{TrashIcon as Mn,VSquareIcon as Fn,XSquareIcon as _n,EditIcon as Pn,OdigosLogoText as Kn,PlusIcon as jn,RefreshIcon as Vn,SearchIcon as zn,FilterIcon as Un,DataStreamIcon as Bn,VIcon as Wn,OdigosLogo as Hn,ArrowIcon as qn,RefreshLeftArrowIcon as Gn,NotificationIcon as Jn,UserIcon as Yn,ImageErrorIcon as Xn,ChevronDownIcon as Qn,ChevronRightIcon as Zn,OverviewIcon as ei,SourceIcon as ti,DestinationIcon as ni,InstrumentationRuleIcon as ii,ActionIcon as ai,SlackLogo as oi,KeyIcon as ri,TerminalIcon as si,ExclamationTriangleIcon as li,TraceViewIcon as ci}from"./icons.js";import{MarkerType as di,useNodesState as ui,useEdgesState as pi}from"@xyflow/react";import{E as mi}from"./chunks/vendor-C150cdxb.js";import{Y as hi}from"./chunks/index-3rwrQKyF.js";import"zustand";import"javascript-time-ago";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";const gi=e=>{const{type:t,name:n,notes:i,signals:a,disabled:o,fields:{collectContainerAttributes:r,collectReplicaSetAttributes:s,collectWorkloadId:l,collectClusterId:c,labelsAttributes:d,annotationsAttributes:u,clusterAttributes:p,overwriteExistingValues:m,attributeNamesToDelete:h,renames:b,piiCategories:S,fallbackSamplingRatio:x,samplingPercentage:C,endpointsFilters:E,servicesNameFilters:N,attributeFilters:k,urlTemplatizationRulesGroups:T}}=e,w=[{title:g.TYPE,value:t},{type:y.ActiveStatus,title:g.STATUS,value:String(!o)},{type:y.Monitors,title:g.SIGNALS_FOR_PROCESSING,value:a?.join(", ")||""},{title:g.NAME,value:n||""},{title:g.NOTES,value:i||""},{type:y.Divider}];if(t===v.K8sAttributes&&(w.push({title:"Collect Container Attributes",value:String(r)}),w.push({title:"Collect ReplicaSet Attributes",value:String(s)}),w.push({title:"Collect Workload ID",value:String(l)}),w.push({title:"Collect Cluster ID",value:String(c)}),d?.length&&w.push({type:y.Divider}),d?.forEach(({labelKey:e,attributeKey:t,from:n,fromSources:i},a)=>{let o="";o+=`Label Key: ${e}\n`,o+=`Attribute Key: ${t}\n`;o+=`From: ${i?.length?i.join(", "):n||f.Pod}\n`,w.push({title:"Label"+(d.length>1?` #${a+1}`:""),value:o})}),u?.length&&w.push({type:y.Divider}),u?.forEach(({annotationKey:e,attributeKey:t,from:n,fromSources:i},a)=>{let o="";o+=`Annotation Key: ${e}\n`,o+=`Attribute Key: ${t}\n`;o+=`From: ${i?.length?i.join(", "):n||f.Pod}\n`,w.push({title:"Annotation"+(u.length>1?` #${a+1}`:""),value:o})})),t===v.AddClusterInfo){w.push({title:"Overwrite Existing Values",value:String(m||!1)});let e="";p?.forEach(({attributeName:t,attributeStringValue:n},i)=>{e+=`${t}: ${n}`,i<p.length-1&&(e+=", ")}),w.push({title:"Attributes",value:e})}if(t===v.DeleteAttributes){let e="";h?.forEach((t,n)=>{e+=t,n<h.length-1&&(e+=", ")}),w.push({title:"Attributes",value:e})}if(t===v.RenameAttributes){let e="";const t=Object.entries(b||{});t.forEach(([n,i],a)=>{e+=`${n}: ${i}`,a<t.length-1&&(e+=", ")}),w.push({title:"Attributes",value:e})}if(t===v.PiiMasking){let e="";S?.forEach((t,n)=>{e+=t,n<S.length-1&&(e+=", ")}),w.push({title:"Categories",value:e})}return t===v.ErrorSampler&&w.push({title:"Sampling Ratio",value:String(x)}),t===v.ProbabilisticSampler&&w.push({title:"Sampling Percentage",value:String(C)}),t===v.LatencySampler&&E?.forEach(({serviceName:e,httpRoute:t,minimumLatencyThreshold:n,fallbackSamplingRatio:i},a)=>{let o="";o+=`Service Name: ${e}\n`,o+=`HTTP Route: ${t}\n`,o+=`Min. Latency: ${n}\n`,o+=`Fallback Sampling Ratio: ${i}`,w.push({title:"Endpoint"+(E.length>1?` #${a+1}`:""),value:o})}),t===v.ServiceNameSampler&&N?.forEach(({serviceName:e,samplingRatio:t,fallbackSamplingRatio:n},i)=>{let a="";a+=`Service Name: ${e}\n`,a+=`Sampling Ratio: ${t}\n`,a+=`Fallback Sampling Ratio: ${n}`,w.push({title:"Filter"+(N.length>1?` #${i+1}`:""),value:a})}),t===v.SpanAttributeSampler&&k?.forEach(({serviceName:e,attributeKey:t,fallbackSamplingRatio:n,condition:i},a)=>{let o="";o+=`Service Name: ${e}\n`,o+=`Attribute Key: ${t}\n`,o+=`Fallback Sampling Ratio: ${n}\n`;const r=Object.keys(i)[0];o+=`Condition: ${r}\n`,o+=`Operation: ${i[r]?.operation}\n`,o+=`Expected Value: ${i[r]?.expectedValue}`,"jsonCondition"===r&&(o+=`\nJSON Path: ${i[r].jsonPath}`),w.push({title:"Filter"+(k.length>1?` #${a+1}`:""),value:o})}),t===v.URLTemplatization&&T?.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}`),w.push({title:"Group"+(T.length>1?` #${t+1}`:""),value:n})}),w},yi=b.PiiCategories,vi=p.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
gap: 32px;
|
|
@@ -159,7 +159,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useState
|
|
|
159
159
|
justify-content: center;
|
|
160
160
|
|
|
161
161
|
pointer-events: none;
|
|
162
|
-
`,Ea={[J.Source]:{subTitle:(e,t)=>t?e.kind:`${e.namespace} • ${e.kind}`,icons:e=>({icons:He(e),icon:$e(J.Source)}),withMetrics:!0},[J.Destination]:{subTitle:e=>e.destinationType.displayName,icons:e=>We(e.destinationType.type),withMetrics:!0,withMonitors:!0,withActive:!0},[J.Action]:{subTitle:e=>e.type,icons:e=>({icon:ne(e.type)}),withMonitors:!0,withActive:!0},[J.InstrumentationRule]:{subTitle:e=>e.type,icons:e=>({icon:Be(e.type)}),withActive:!0},[J.Namespace]:{subTitle:()=>"",icons:()=>({icon:$e(J.Namespace)})}};function Na(e,t,n,i){const a=Q(e);if(!a)return null;const o=Ea[t],r=t===J.Source,s=o.withMonitors?t===J.Destination?ze(e.exportedSignals):e.signals:void 0,l=o.withMetrics?i?.[`${t.toLowerCase()}s`]?.find(e=>JSON.stringify(Q(e))===JSON.stringify(a)):void 0,c=o.withActive?!e.disabled:void 0;let d,u,p=!1,m=e;if(r){const t=function(e){const t=e.workloadOdigosHealthStatus?.status;switch(t){case je.Failure:return{status:de.Error,faded:!1,tooltip:e.workloadOdigosHealthStatus?.message??void 0,displaySource:e};case je.Notice:return{status:de.Warning,faded:!1,tooltip:e.workloadOdigosHealthStatus?.message??void 0,displaySource:e};case je.Pending:case je.Waiting:return{status:void 0,faded:!1,displaySource:pa(e)};case je.Unsupported:case je.Disabled:return{status:void 0,faded:!0,displaySource:e};default:return{status:void 0,faded:!1,displaySource:ma(e)}}}(e);d=t.status,p=t.faded,u=t.tooltip,m=t.displaySource}else{const{priorotizedStatus:t,hasDisableds:n}=he(e.conditions||[]);d=t,p=n}return{entityId:a,namespace:r?e.namespace:void 0,title:Ee(e,t,{extended:r,prioritizeDisplayName:!r}),subTitle:o.subTitle(e,n),status:d,faded:p,tooltip:u,label:o.withMetrics?Ue(l?.throughput):void 0,...o.icons(e),monitors:s,isActive:c,raw:m}}const ka=({height:n,entityType:o,entities:r,metrics:s})=>{const{isVm:l}=ae(),u=o===J.Source,[p,m]=i(""),h=c(()=>r.map(e=>Na(e,o,l,s)).filter(Boolean),[r,o,s,l]),{elements:g,indexToNamespace:y,multipleNs:v}=c(()=>{const e=[],n=[],i=new Set(h.map(e=>e.namespace).filter(Boolean)).size>1;i&&(n.push(""),e.push(t("div",{style:{height:28}},"ns-spacer")));let a="";for(const i of h)u&&i.namespace&&i.namespace!==a&&(""!==a&&(n.push(i.namespace),e.push(t(Sa,{namespace:i.namespace},`ns-divider-${i.namespace}`))),a=i.namespace),n.push(i.namespace||""),e.push(t(ua,{entityType:o,entityId:i.entityId,raw:i.raw,title:i.title,subTitle:i.subTitle,faded:i.faded,status:i.status,tooltip:i.tooltip,label:i.label,icons:i.icons,icon:i.icon,iconSrc:i.iconSrc,monitors:i.monitors,isActive:i.isActive},JSON.stringify(i.entityId)));return{elements:e,indexToNamespace:n,multipleNs:i}},[h,o,u]);a(()=>{if(u&&y.length&&!p){const e=y.find(Boolean);e&&m(e)}},[u,y]);const f=d(e=>{if(!y.length)return;const t=y[Math.min(e,y.length-1)];t&&t!==p&&m(t)},[y,p]);return e(xa,{$height:n,children:[v&&p&&t(ba,{namespace:p}),t(Ve,{gap:8,elements:g,onTopIndexChange:v?f:void 0}),t(Ca,{$hide:!0})]})},Ta=p.div`
|
|
162
|
+
`,Ea={[J.Source]:{subTitle:(e,t)=>t?e.kind:`${e.namespace} • ${e.kind}`,icons:e=>({icons:He(e),icon:$e(J.Source)}),withMetrics:!0},[J.Destination]:{subTitle:e=>e.destinationType.displayName,icons:e=>We(e.destinationType.type),withMetrics:!0,withMonitors:!0,withActive:!0},[J.Action]:{subTitle:e=>e.type,icons:e=>({icon:ne(e.type)}),withMonitors:!0,withActive:!0},[J.InstrumentationRule]:{subTitle:e=>e.type,icons:e=>({icon:Be(e.type)}),withActive:!0},[J.Namespace]:{subTitle:()=>"",icons:()=>({icon:$e(J.Namespace)})},[J.SamplingRule]:{subTitle:()=>"",icons:()=>({icon:$e(J.SamplingRule)})}};function Na(e,t,n,i){const a=Q(e);if(!a)return null;const o=Ea[t],r=t===J.Source,s=o.withMonitors?t===J.Destination?ze(e.exportedSignals):e.signals:void 0,l=o.withMetrics?i?.[`${t.toLowerCase()}s`]?.find(e=>JSON.stringify(Q(e))===JSON.stringify(a)):void 0,c=o.withActive?!e.disabled:void 0;let d,u,p=!1,m=e;if(r){const t=function(e){const t=e.workloadOdigosHealthStatus?.status;switch(t){case je.Failure:return{status:de.Error,faded:!1,tooltip:e.workloadOdigosHealthStatus?.message??void 0,displaySource:e};case je.Notice:return{status:de.Warning,faded:!1,tooltip:e.workloadOdigosHealthStatus?.message??void 0,displaySource:e};case je.Pending:case je.Waiting:return{status:void 0,faded:!1,displaySource:pa(e)};case je.Unsupported:case je.Disabled:return{status:void 0,faded:!0,displaySource:e};default:return{status:void 0,faded:!1,displaySource:ma(e)}}}(e);d=t.status,p=t.faded,u=t.tooltip,m=t.displaySource}else{const{priorotizedStatus:t,hasDisableds:n}=he(e.conditions||[]);d=t,p=n}return{entityId:a,namespace:r?e.namespace:void 0,title:Ee(e,t,{extended:r,prioritizeDisplayName:!r}),subTitle:o.subTitle(e,n),status:d,faded:p,tooltip:u,label:o.withMetrics?Ue(l?.throughput):void 0,...o.icons(e),monitors:s,isActive:c,raw:m}}const ka=({height:n,entityType:o,entities:r,metrics:s})=>{const{isVm:l}=ae(),u=o===J.Source,[p,m]=i(""),h=c(()=>r.map(e=>Na(e,o,l,s)).filter(Boolean),[r,o,s,l]),{elements:g,indexToNamespace:y,multipleNs:v}=c(()=>{const e=[],n=[],i=new Set(h.map(e=>e.namespace).filter(Boolean)).size>1;i&&(n.push(""),e.push(t("div",{style:{height:28}},"ns-spacer")));let a="";for(const i of h)u&&i.namespace&&i.namespace!==a&&(""!==a&&(n.push(i.namespace),e.push(t(Sa,{namespace:i.namespace},`ns-divider-${i.namespace}`))),a=i.namespace),n.push(i.namespace||""),e.push(t(ua,{entityType:o,entityId:i.entityId,raw:i.raw,title:i.title,subTitle:i.subTitle,faded:i.faded,status:i.status,tooltip:i.tooltip,label:i.label,icons:i.icons,icon:i.icon,iconSrc:i.iconSrc,monitors:i.monitors,isActive:i.isActive},JSON.stringify(i.entityId)));return{elements:e,indexToNamespace:n,multipleNs:i}},[h,o,u]);a(()=>{if(u&&y.length&&!p){const e=y.find(Boolean);e&&m(e)}},[u,y]);const f=d(e=>{if(!y.length)return;const t=y[Math.min(e,y.length-1)];t&&t!==p&&m(t)},[y,p]);return e(xa,{$height:n,children:[v&&p&&t(ba,{namespace:p}),t(Ve,{gap:8,elements:g,onTopIndexChange:v?f:void 0}),t(Ca,{$hide:!0})]})},Ta=p.div`
|
|
163
163
|
width: ${({$isVm:e})=>e?"45vw":"22vw"};
|
|
164
164
|
display: flex;
|
|
165
165
|
flex-direction: column;
|
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dJ as OdigosProvider,dK as StorybookProvider,aI as checkVersionSupport,u as useOdigos,dL as useStorybook}from"./chunks/ui-components-DvThY8Em.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";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{
|
|
1
|
+
export{cl as capitalizeFirstLetter,dg as cleanObjectEmptyStringsValues,G as compareCondition,d as deepClone,bD as filterActions,c1 as filterDestinations,b$ as filterDestinationsByStream,c0 as filterSources,b_ as filterSourcesByStream,dh as flattenObjectKeys,bV as formatBytes,cT as formatDuration,aH as generateId,bo as getActionIcon,bx as getConditionsBooleans,cN as getContainersIcons,cQ as getContainersInstrumentedCount,di as getDeepValue,ak as getDestinationIcon,dj as getDetectedLanguageIcons,bK as getEntityIcon,bk as getEntityId,bF as getEntityLabel,dk as getIdFromSseTarget,bW as getInstrumentationRuleIcon,dl as getMainContainerLanguage,cp as getMetricForEntity,dm as getMonitorIcon,dn as getPlatformIcon,dp as getPlatformLabel,a6 as getProgrammingLanguageIcon,cV as getRecursiveValues,bX as getSourceLanguageIcons,dq as getSseTargetFromId,dr as getStatusColor,aQ as getStatusFromPodStatus,bB as getStatusIcon,cD as getStatusTypeFromOdigosHealth,ds as getValueForRange,cy as getVirtualServiceIcon,cv as getWorkloadId,ck as getYamlFieldsForDestination,cE as hasUnhealthyInstances,n as isEmpty,dt as isLegalK8sLabel,aC as isOverTime,cI as isStringABoolean,du as isTimeElapsed,dv as isValidVersion,bA as mapConditions,ci as mapDestinationFieldsForDisplay,U as mapExportedSignals,P as mapSupportedSignals,dw as numbersOnly,cJ as parseBooleanFromString,dx as parseJsonStringToPrettyString,dy as removeEmptyValuesFromObject,J as safeJsonParse,dz as safeJsonStringify,dA as setDeepValue,bQ as sleep,c8 as splitCamelString,dB as stringifyNonStringValues,br as trimVersion}from"./chunks/ui-components-DvThY8Em.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";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{
|
|
1
|
+
export{bj as useActionFormData,dM as useBodyScroll,c2 as useClickNode,cw as useClickNotification,bZ as useContainerSize,az as useCopy,cc as useDataStreamFormData,cj as useDestinationFormData,x as useGenericForm,cs as useInstrumentationRuleFormData,aA as useKeyDown,c7 as useOnClickOutside,c3 as usePopup,cb as useSessionStorage,cK as useSourceFormData,cO as useSourceSelectionFormData,aB as useTimeAgo}from"./chunks/ui-components-DvThY8Em.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";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,8 +1,20 @@
|
|
|
1
1
|
export * from './alauda-logo';
|
|
2
2
|
export * from './alibaba-cloud-logo';
|
|
3
3
|
export * from './app-dynamics-logo';
|
|
4
|
+
export * from './aws-api-gateway-logo';
|
|
5
|
+
export * from './aws-bedrock-logo';
|
|
4
6
|
export * from './aws-cloudwatch-logo';
|
|
7
|
+
export * from './aws-dynamodb-logo';
|
|
8
|
+
export * from './aws-ec2-logo';
|
|
9
|
+
export * from './aws-eventbridge-logo';
|
|
10
|
+
export * from './aws-kinesis-logo';
|
|
11
|
+
export * from './aws-lambda-logo';
|
|
5
12
|
export * from './aws-s3-logo';
|
|
13
|
+
export * from './aws-secrets-manager-logo';
|
|
14
|
+
export * from './aws-sns-logo';
|
|
15
|
+
export * from './aws-sqs-logo';
|
|
16
|
+
export * from './aws-step-functions-logo';
|
|
17
|
+
export * from './aws-sts-logo';
|
|
6
18
|
export * from './aws-xray-logo';
|
|
7
19
|
export * from './axiom-logo';
|
|
8
20
|
export * from './azure-blob-logo';
|