@odigos/ui-kit 0.0.212 → 0.0.213
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 +14 -0
- package/lib/chunks/index-Bh2gKc3b.js +3 -0
- package/lib/chunks/ui-components-BliHHDta.js +2388 -0
- package/lib/components/_v2/badge/index.d.ts +2 -0
- package/lib/components/_v2/cards/section-card/index.d.ts +1 -0
- package/lib/components/_v2/checkbox/index.d.ts +5 -1
- package/lib/components/_v2/field-message/index.d.ts +1 -0
- package/lib/components/_v2/field-title/index.d.ts +2 -0
- package/lib/components/_v2/input/index.d.ts +4 -3
- package/lib/components/_v2/input-list/index.d.ts +5 -3
- package/lib/components/_v2/input-table/index.d.ts +5 -3
- package/lib/components/_v2/textarea/index.d.ts +4 -3
- package/lib/components/_v2/toggle/index.d.ts +5 -1
- package/lib/components/styled.d.ts +3 -6
- package/lib/components/tooltip/index.d.ts +1 -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-rule-drawer/index.d.ts +1 -1
- package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +1 -4
- package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/index.d.ts +2 -1
- package/lib/containers/_v2/_drawers/add-source-drawer/types.d.ts +3 -0
- package/lib/containers/_v2/_drawers/add-source-drawer/workloads-column/index.d.ts +2 -1
- package/lib/containers/_v2/_forms/add-action-form/context.d.ts +18 -0
- package/lib/containers/_v2/_forms/add-action-form/index.d.ts +2 -6
- package/lib/containers/_v2/_forms/add-rule-form/context.d.ts +18 -0
- package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +2 -6
- package/lib/containers/_v2/_forms/add-source-form/context.d.ts +21 -0
- package/lib/containers/_v2/_forms/add-source-form/index.d.ts +1 -0
- package/lib/containers/_v2/_forms/index.d.ts +1 -0
- package/lib/containers/v2.js +40 -40
- package/lib/containers.js +1 -1
- package/lib/contexts.js +1 -1
- package/lib/functions/deep-values/index.d.ts +2 -0
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/useGenericForm.d.ts +2 -0
- package/lib/hooks.js +1 -1
- package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +1 -0
- package/lib/snippets/_v2/yaml-section-card/index.d.ts +1 -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 +307 -3
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +10 -10
- package/lib/chunks/index-CTFaJvLO.js +0 -3
- package/lib/chunks/ui-components-DQ5eBxQh.js +0 -2387
- package/lib/containers/_v2/_drawers/add-action-drawer/helpers.d.ts +0 -7
- package/lib/containers/_v2/_drawers/add-rule-drawer/helpers.d.ts +0 -7
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{
|
|
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,aV as y,w as v,K as f,A as b,aW as S,aX as x,aY as C,aZ as E,m as N,n as k,a_ as w,a$ as T,b0 as $,b1 as D,s as A,F as I,b as O,b2 as R,b3 as M,v as L,b4 as F,l as _,b5 as P,b6 as K,b7 as j,b8 as V,b9 as z,ba as U,au as B,aG as W,bb as H,bc as q,bd as G,ac as J,ay as Y,be as X,bf as Q,bg as Z,bh as ee,bi as te,bj as ne,bk as ie,u as ae,bl as oe,bm as re,bn as se,bo as le,bp as ce,i as de,X as ue,bq as pe,br as me,bs as he,bt as ge,bu as ye,bv as ve,Z as fe,bw as be,bx as Se,by as xe,bz as Ce,bA as Ee,bB as Ne,bC as ke,bD as we,bE as Te,bF as $e,bG as De,bH as Ae,e as Ie,bI as Oe,bJ as Re,bK as Me,bL as Le,aN as Fe,bM as _e,bN as Pe,bO as Ke,bP as je,S as Ve,U as ze,bQ as Ue,bR as Be,ak as We,bS as He,ar as qe,as as Ge,bT as Je,O as Ye,bU as Xe,bV as Qe,bW as Ze,bX as et,bY as tt,bZ as nt,b_ as it,b$ as at,c0 as ot,c1 as rt,c2 as st,c3 as lt,c4 as ct,a5 as dt,M as ut,c5 as pt,c6 as mt,c7 as ht,c8 as gt,c9 as yt,ca as vt,cb as ft,cc as bt,cd as St,G as xt,J as Ct,Q as Et,ce as Nt,cf as kt,cg as wt,P as Tt,ai as $t,d as Dt,aj as At,ch as It,ci as Ot,cj as Rt,ck as Mt,_ as Lt,a1 as Ft,a2 as _t,a0 as Pt,Y as Kt,$ as jt,a3 as Vt,cl as zt,a6 as Ut,cm as Bt,cn as Wt,am as Ht,T as qt,co as Gt,cp as Jt,cq as Yt,av as Xt,cr as Qt,cs as Zt,D as en,ct as tn,cu as nn,a9 as an,cv as on,cw as rn,cx as sn,cy as ln,cz as cn,cA as dn,cB as un,cC as pn,aD as mn,cD as hn,cE as gn,cF as yn,cG as vn,cH as fn,cI as bn,cJ as Sn,cK as xn,cL as Cn,cM as En,aw as Nn,at as kn,x as wn,ah as Tn,cN as $n,cO as Dn,cP as An,cQ as In,cR as On,cS as Rn}from"./chunks/ui-components-BliHHDta.js";import{TrashIcon as Mn,VSquareIcon as Ln,XSquareIcon as Fn,EditIcon as _n,OdigosLogoText as Pn,PlusIcon as Kn,RefreshIcon as jn,SearchIcon as Vn,FilterIcon as zn,DataStreamIcon as Un,VIcon as Bn,OdigosLogo as Wn,ArrowIcon as Hn,RefreshLeftArrowIcon as qn,NotificationIcon as Gn,UserIcon as Jn,DestinationIcon as Yn,ImageErrorIcon as Xn,ChevronDownIcon as Qn,ChevronRightIcon as Zn,OverviewIcon as ei,SourceIcon as ti,InstrumentationRuleIcon as ni,ActionIcon as ii,SlackLogo as ai,KeyIcon as oi,TerminalIcon as ri,ExclamationTriangleIcon as si,TraceViewIcon as li}from"./icons.js";import{MarkerType as ci,useNodesState as di,useEdgesState as ui}from"@xyflow/react";import{E as pi}from"./chunks/vendor-C150cdxb.js";import{Y as mi}from"./chunks/index-Bh2gKc3b.js";import"zustand";import"javascript-time-ago";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";const hi=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:w}}=e,T=[{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&&(T.push({title:"Collect Container Attributes",value:String(r)}),T.push({title:"Collect ReplicaSet Attributes",value:String(s)}),T.push({title:"Collect Workload ID",value:String(l)}),T.push({title:"Collect Cluster ID",value:String(c)}),d?.length&&T.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`,T.push({title:"Label"+(d.length>1?` #${a+1}`:""),value:o})}),u?.length&&T.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`,T.push({title:"Annotation"+(u.length>1?` #${a+1}`:""),value:o})})),t===v.AddClusterInfo){T.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+=", ")}),T.push({title:"Attributes",value:e})}if(t===v.DeleteAttributes){let e="";h?.forEach((t,n)=>{e+=t,n<h.length-1&&(e+=", ")}),T.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+=", ")}),T.push({title:"Attributes",value:e})}if(t===v.PiiMasking){let e="";S?.forEach((t,n)=>{e+=t,n<S.length-1&&(e+=", ")}),T.push({title:"Categories",value:e})}return t===v.ErrorSampler&&T.push({title:"Sampling Ratio",value:String(x)}),t===v.ProbabilisticSampler&&T.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}`,T.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}`,T.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}`),T.push({title:"Filter"+(k.length>1?` #${a+1}`:""),value:o})}),t===v.URLTemplatization&&w?.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}`),T.push({title:"Group"+(w.length>1?` #${t+1}`:""),value:n})}),T},gi=b.PiiCategories,yi=p.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
gap: 32px;
|
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dF as OdigosProvider,dG as StorybookProvider,aE as checkVersionSupport,u as useOdigos,dH as useStorybook}from"./chunks/ui-components-BliHHDta.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/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './capitalize-first-letter';
|
|
|
2
2
|
export * from './clean-object-empty-strings-values';
|
|
3
3
|
export * from './compare-condition';
|
|
4
4
|
export * from './deep-clone';
|
|
5
|
+
export * from './deep-values';
|
|
5
6
|
export * from './filter-actions';
|
|
6
7
|
export * from './filter-destinations';
|
|
7
8
|
export * from './filter-destinations-by-stream';
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cg as capitalizeFirstLetter,dc as cleanObjectEmptyStringsValues,
|
|
1
|
+
export{cg as capitalizeFirstLetter,dc as cleanObjectEmptyStringsValues,G as compareCondition,d as deepClone,by as filterActions,bY as filterDestinations,bW as filterDestinationsByStream,bX as filterSources,bV as filterSourcesByStream,dd as flattenObjectKeys,bQ as formatBytes,cP as formatDuration,aD as generateId,bj as getActionIcon,bs as getConditionsBooleans,cJ as getContainersIcons,cM as getContainersInstrumentedCount,de as getDeepValue,ak as getDestinationIcon,df as getDetectedLanguageIcons,bF as getEntityIcon,bf as getEntityId,bA as getEntityLabel,dg as getIdFromSseTarget,bR as getInstrumentationRuleIcon,dh as getMainContainerLanguage,ck as getMetricForEntity,di as getMonitorIcon,dj as getPlatformIcon,dk as getPlatformLabel,a6 as getProgrammingLanguageIcon,cR as getRecursiveValues,bS as getSourceLanguageIcons,dl as getSseTargetFromId,dm as getStatusColor,aM as getStatusFromPodStatus,bw as getStatusIcon,cx as getStatusTypeFromOdigosHealth,dn as getValueForRange,cq as getWorkloadId,cf as getYamlFieldsForDestination,cy as hasUnhealthyInstances,n as isEmpty,dp as isLegalK8sLabel,aw as isOverTime,cD as isStringABoolean,dq as isTimeElapsed,dr as isValidVersion,bv as mapConditions,cd as mapDestinationFieldsForDisplay,U as mapExportedSignals,P as mapSupportedSignals,ds as numbersOnly,cE as parseBooleanFromString,dt as parseJsonStringToPrettyString,du as removeEmptyValuesFromObject,J as safeJsonParse,dv as safeJsonStringify,dw as setDeepValue,bL as sleep,c3 as splitCamelString,dx as stringifyNonStringValues,bm as trimVersion}from"./chunks/ui-components-BliHHDta.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";
|
|
@@ -4,8 +4,10 @@ export interface GenericFormResult<Form extends AnyObj> {
|
|
|
4
4
|
handleFormChange: (key?: keyof Form | string, val?: any, obj?: Form) => void;
|
|
5
5
|
formErrors: Partial<Record<keyof Form, string>>;
|
|
6
6
|
handleErrorChange: (key?: keyof Form | string, val?: string, obj?: Partial<Record<keyof Form, string>>) => void;
|
|
7
|
+
getFormDiff: (initial: Form, current: Form) => Partial<Form>;
|
|
7
8
|
areFormValuesEqual: (initial: Form, current: Form) => boolean;
|
|
8
9
|
isFormDirty: boolean;
|
|
9
10
|
resetFormData: (overrideForm?: Form) => void;
|
|
11
|
+
getNestedValue: (target: 'formData' | 'formErrors', path: keyof Form) => any;
|
|
10
12
|
}
|
|
11
13
|
export declare const useGenericForm: <Form extends AnyObj>(initialFormData: Form | undefined) => GenericFormResult<Form>;
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{be as useActionFormData,
|
|
1
|
+
export{be as useActionFormData,dI as useBodyScroll,bZ as useClickNode,cr as useClickNotification,bU as useContainerSize,at as useCopy,c7 as useDataStreamFormData,ce as useDestinationFormData,x as useGenericForm,cn as useInstrumentationRuleFormData,au as useKeyDown,c2 as useOnClickOutside,b_ as usePopup,c6 as useSessionStorage,cF as useSourceFormData,cK as useSourceSelectionFormData,av as useTimeAgo}from"./chunks/ui-components-BliHHDta.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/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b3 as AddButton,cz as CopyText,cv as EditButton,cu as Flow,
|
|
1
|
+
export{b3 as AddButton,cz as CopyText,cv as EditButton,cu as Flow,dJ as MapItemNode,dK as NoDataNode,cb as NoteBackToSummary,cB as PodContainer,cI as SourceContainer}from"./chunks/ui-components-BliHHDta.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/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{as as ProgressKeys,ct as useActiveNodeStore,cO as useDarkMode,
|
|
1
|
+
export{as as ProgressKeys,ct as useActiveNodeStore,cO as useDarkMode,O as useDataStreamStore,ba as useDrawerStore,ay as useEntityStore,bx as useFilterStore,bl as useModalStore,cm as useNotificationStore,ar as useProgressStore,bN as useSelectedStore,c8 as useSetupStore}from"./chunks/ui-components-BliHHDta.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/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dB as Provider,dC as animations,dD as opacity,dE as palettes}from"./chunks/ui-components-BliHHDta.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";
|
|
@@ -156,13 +156,317 @@ export interface Connection {
|
|
|
156
156
|
connectedAt?: number | null;
|
|
157
157
|
lastSeenAt?: number | null;
|
|
158
158
|
}
|
|
159
|
+
export interface ProvenanceEntry {
|
|
160
|
+
helmPath: string;
|
|
161
|
+
reconciledFrom: string;
|
|
162
|
+
}
|
|
159
163
|
export interface EffectiveConfig {
|
|
164
|
+
configVersion: number;
|
|
165
|
+
telemetryEnabled?: boolean | null;
|
|
166
|
+
openshiftEnabled?: boolean | null;
|
|
167
|
+
ignoredNamespaces?: string[] | null;
|
|
168
|
+
ignoredContainers?: string[] | null;
|
|
169
|
+
ignoreOdigosNamespace?: boolean | null;
|
|
170
|
+
psp?: boolean | null;
|
|
171
|
+
imagePrefix?: string | null;
|
|
172
|
+
skipWebhookIssuerCreation?: boolean | null;
|
|
173
|
+
collectorGateway?: {
|
|
174
|
+
minReplicas?: number | null;
|
|
175
|
+
maxReplicas?: number | null;
|
|
176
|
+
requestMemoryMiB?: number | null;
|
|
177
|
+
limitMemoryMiB?: number | null;
|
|
178
|
+
requestCPUm?: number | null;
|
|
179
|
+
limitCPUm?: number | null;
|
|
180
|
+
memoryLimiterLimitMiB?: number | null;
|
|
181
|
+
memoryLimiterSpikeLimitMiB?: number | null;
|
|
182
|
+
goMemLimitMiB?: number | null;
|
|
183
|
+
serviceGraphDisabled?: boolean | null;
|
|
184
|
+
clusterMetricsEnabled?: boolean | null;
|
|
185
|
+
httpsProxyAddress?: string | null;
|
|
186
|
+
nodeSelector?: string | null;
|
|
187
|
+
} | null;
|
|
188
|
+
collectorNode?: {
|
|
189
|
+
collectorOwnMetricsPort?: number | null;
|
|
190
|
+
requestMemoryMiB?: number | null;
|
|
191
|
+
limitMemoryMiB?: number | null;
|
|
192
|
+
requestCPUm?: number | null;
|
|
193
|
+
limitCPUm?: number | null;
|
|
194
|
+
memoryLimiterLimitMiB?: number | null;
|
|
195
|
+
memoryLimiterSpikeLimitMiB?: number | null;
|
|
196
|
+
goMemLimitMiB?: number | null;
|
|
197
|
+
k8sNodeLogsDirectory?: string | null;
|
|
198
|
+
enableDataCompression?: boolean | null;
|
|
199
|
+
otlpExporterConfiguration?: {
|
|
200
|
+
enableDataCompression?: boolean | null;
|
|
201
|
+
timeout?: string | null;
|
|
202
|
+
retryOnFailure?: {
|
|
203
|
+
enabled?: boolean | null;
|
|
204
|
+
initialInterval?: string | null;
|
|
205
|
+
maxInterval?: string | null;
|
|
206
|
+
maxElapsedTime?: string | null;
|
|
207
|
+
} | null;
|
|
208
|
+
} | null;
|
|
209
|
+
} | null;
|
|
210
|
+
profiles?: string[] | null;
|
|
211
|
+
allowConcurrentAgents?: {
|
|
212
|
+
enabled?: boolean | null;
|
|
213
|
+
} | null;
|
|
214
|
+
uiMode?: string | null;
|
|
215
|
+
uiPaginationLimit?: number | null;
|
|
216
|
+
uiRemoteUrl?: string | null;
|
|
217
|
+
centralBackendURL?: string | null;
|
|
218
|
+
clusterName?: string | null;
|
|
219
|
+
instrumentor?: {
|
|
220
|
+
mountMethod?: string | null;
|
|
221
|
+
agentEnvVarsInjectionMethod?: string | null;
|
|
222
|
+
checkDeviceHealthBeforeInjection?: boolean | null;
|
|
223
|
+
} | null;
|
|
224
|
+
customContainerRuntimeSocketPath?: string | null;
|
|
225
|
+
userInstrumentationEnvs?: {
|
|
226
|
+
languages?: string | null;
|
|
227
|
+
} | null;
|
|
228
|
+
nodeSelector?: string | null;
|
|
229
|
+
karpenter?: {
|
|
230
|
+
enabled?: boolean | null;
|
|
231
|
+
} | null;
|
|
232
|
+
rollout?: {
|
|
233
|
+
automaticRolloutDisabled?: boolean | null;
|
|
234
|
+
} | null;
|
|
235
|
+
autoRollback?: {
|
|
236
|
+
disabled?: boolean | null;
|
|
237
|
+
graceTime?: string | null;
|
|
238
|
+
stabilityWindowTime?: string | null;
|
|
239
|
+
} | null;
|
|
240
|
+
oidc?: {
|
|
241
|
+
tenantUrl?: string | null;
|
|
242
|
+
clientId?: string | null;
|
|
243
|
+
clientSecret?: string | null;
|
|
244
|
+
} | null;
|
|
245
|
+
odigletHealthProbeBindPort?: number | null;
|
|
246
|
+
goAutoOffsetsCron?: string | null;
|
|
247
|
+
goAutoOffsetsMode?: string | null;
|
|
248
|
+
clickhouseJsonTypeEnabled?: boolean | null;
|
|
249
|
+
resourceSizePreset?: string | null;
|
|
250
|
+
wasp?: {
|
|
251
|
+
enabled?: boolean | null;
|
|
252
|
+
} | null;
|
|
253
|
+
metricsSources?: {
|
|
254
|
+
spanMetrics?: {
|
|
255
|
+
disabled?: boolean | null;
|
|
256
|
+
interval?: string | null;
|
|
257
|
+
metricsExpiration?: string | null;
|
|
258
|
+
additionalDimensions?: string[] | null;
|
|
259
|
+
histogramDisabled?: boolean | null;
|
|
260
|
+
histogramBuckets?: string[] | null;
|
|
261
|
+
includedProcessInDimensions?: boolean | null;
|
|
262
|
+
excludedResourceAttributes?: string[] | null;
|
|
263
|
+
resourceMetricsKeyAttributes?: string[] | null;
|
|
264
|
+
} | null;
|
|
265
|
+
hostMetrics?: {
|
|
266
|
+
disabled?: boolean | null;
|
|
267
|
+
interval?: string | null;
|
|
268
|
+
} | null;
|
|
269
|
+
kubeletStats?: {
|
|
270
|
+
disabled?: boolean | null;
|
|
271
|
+
interval?: string | null;
|
|
272
|
+
} | null;
|
|
273
|
+
odigosOwnMetrics?: {
|
|
274
|
+
interval?: string | null;
|
|
275
|
+
} | null;
|
|
276
|
+
agentMetrics?: {
|
|
277
|
+
spanMetrics?: {
|
|
278
|
+
enabled?: boolean | null;
|
|
279
|
+
} | null;
|
|
280
|
+
runtimeMetrics?: {
|
|
281
|
+
java?: {
|
|
282
|
+
disabled?: boolean | null;
|
|
283
|
+
metrics?: {
|
|
284
|
+
name?: string | null;
|
|
285
|
+
disabled?: boolean | null;
|
|
286
|
+
}[] | null;
|
|
287
|
+
} | null;
|
|
288
|
+
} | null;
|
|
289
|
+
} | null;
|
|
290
|
+
} | null;
|
|
291
|
+
agentsInitContainerResources?: {
|
|
292
|
+
requestCPUm?: number | null;
|
|
293
|
+
limitCPUm?: number | null;
|
|
294
|
+
requestMemoryMiB?: number | null;
|
|
295
|
+
limitMemoryMiB?: number | null;
|
|
296
|
+
} | null;
|
|
297
|
+
traceIdSuffix?: string | null;
|
|
298
|
+
allowedTestConnectionHosts?: string[] | null;
|
|
299
|
+
odigosOwnTelemetryStore?: {
|
|
300
|
+
metricsStoreDisabled?: boolean | null;
|
|
301
|
+
} | null;
|
|
302
|
+
imagePullSecrets?: string[] | null;
|
|
303
|
+
componentLogLevels?: {
|
|
304
|
+
default?: string | null;
|
|
305
|
+
autoscaler?: string | null;
|
|
306
|
+
scheduler?: string | null;
|
|
307
|
+
instrumentor?: string | null;
|
|
308
|
+
odiglet?: string | null;
|
|
309
|
+
deviceplugin?: string | null;
|
|
310
|
+
ui?: string | null;
|
|
311
|
+
collector?: string | null;
|
|
312
|
+
} | null;
|
|
313
|
+
provenance?: ProvenanceEntry[] | null;
|
|
314
|
+
manifestYAML?: string | null;
|
|
315
|
+
}
|
|
316
|
+
export interface EffectiveConfigInput {
|
|
317
|
+
configVersion?: number;
|
|
318
|
+
telemetryEnabled?: boolean | null;
|
|
319
|
+
openshiftEnabled?: boolean | null;
|
|
320
|
+
ignoredNamespaces?: string[] | null;
|
|
321
|
+
ignoredContainers?: string[] | null;
|
|
322
|
+
ignoreOdigosNamespace?: boolean | null;
|
|
323
|
+
psp?: boolean | null;
|
|
324
|
+
imagePrefix?: string | null;
|
|
325
|
+
skipWebhookIssuerCreation?: boolean | null;
|
|
326
|
+
collectorGateway?: {
|
|
327
|
+
minReplicas?: number | null;
|
|
328
|
+
maxReplicas?: number | null;
|
|
329
|
+
requestMemoryMiB?: number | null;
|
|
330
|
+
limitMemoryMiB?: number | null;
|
|
331
|
+
requestCPUm?: number | null;
|
|
332
|
+
limitCPUm?: number | null;
|
|
333
|
+
memoryLimiterLimitMiB?: number | null;
|
|
334
|
+
memoryLimiterSpikeLimitMiB?: number | null;
|
|
335
|
+
goMemLimitMiB?: number | null;
|
|
336
|
+
serviceGraphDisabled?: boolean | null;
|
|
337
|
+
clusterMetricsEnabled?: boolean | null;
|
|
338
|
+
httpsProxyAddress?: string | null;
|
|
339
|
+
nodeSelector?: string | null;
|
|
340
|
+
} | null;
|
|
341
|
+
collectorNode?: {
|
|
342
|
+
collectorOwnMetricsPort?: number | null;
|
|
343
|
+
requestMemoryMiB?: number | null;
|
|
344
|
+
limitMemoryMiB?: number | null;
|
|
345
|
+
requestCPUm?: number | null;
|
|
346
|
+
limitCPUm?: number | null;
|
|
347
|
+
memoryLimiterLimitMiB?: number | null;
|
|
348
|
+
memoryLimiterSpikeLimitMiB?: number | null;
|
|
349
|
+
goMemLimitMiB?: number | null;
|
|
350
|
+
k8sNodeLogsDirectory?: string | null;
|
|
351
|
+
enableDataCompression?: boolean | null;
|
|
352
|
+
otlpExporterConfiguration?: {
|
|
353
|
+
enableDataCompression?: boolean | null;
|
|
354
|
+
timeout?: string | null;
|
|
355
|
+
retryOnFailure?: {
|
|
356
|
+
enabled?: boolean | null;
|
|
357
|
+
initialInterval?: string | null;
|
|
358
|
+
maxInterval?: string | null;
|
|
359
|
+
maxElapsedTime?: string | null;
|
|
360
|
+
} | null;
|
|
361
|
+
} | null;
|
|
362
|
+
} | null;
|
|
363
|
+
profiles?: string[] | null;
|
|
364
|
+
allowConcurrentAgents?: {
|
|
365
|
+
enabled?: boolean | null;
|
|
366
|
+
} | null;
|
|
367
|
+
uiMode?: string | null;
|
|
368
|
+
uiPaginationLimit?: number | null;
|
|
369
|
+
uiRemoteUrl?: string | null;
|
|
370
|
+
centralBackendURL?: string | null;
|
|
371
|
+
clusterName?: string | null;
|
|
372
|
+
instrumentor?: {
|
|
373
|
+
mountMethod?: string | null;
|
|
374
|
+
agentEnvVarsInjectionMethod?: string | null;
|
|
375
|
+
checkDeviceHealthBeforeInjection?: boolean | null;
|
|
376
|
+
} | null;
|
|
377
|
+
customContainerRuntimeSocketPath?: string | null;
|
|
378
|
+
userInstrumentationEnvs?: {
|
|
379
|
+
languages?: string | null;
|
|
380
|
+
} | null;
|
|
381
|
+
nodeSelector?: string | null;
|
|
382
|
+
karpenter?: {
|
|
383
|
+
enabled?: boolean | null;
|
|
384
|
+
} | null;
|
|
160
385
|
rollout?: {
|
|
161
|
-
automaticRolloutDisabled?: boolean;
|
|
162
|
-
};
|
|
386
|
+
automaticRolloutDisabled?: boolean | null;
|
|
387
|
+
} | null;
|
|
388
|
+
autoRollback?: {
|
|
389
|
+
disabled?: boolean | null;
|
|
390
|
+
graceTime?: string | null;
|
|
391
|
+
stabilityWindowTime?: string | null;
|
|
392
|
+
} | null;
|
|
393
|
+
oidc?: {
|
|
394
|
+
tenantUrl?: string | null;
|
|
395
|
+
clientId?: string | null;
|
|
396
|
+
clientSecret?: string | null;
|
|
397
|
+
} | null;
|
|
398
|
+
odigletHealthProbeBindPort?: number | null;
|
|
399
|
+
goAutoOffsetsCron?: string | null;
|
|
400
|
+
goAutoOffsetsMode?: string | null;
|
|
401
|
+
clickhouseJsonTypeEnabled?: boolean | null;
|
|
402
|
+
resourceSizePreset?: string | null;
|
|
403
|
+
wasp?: {
|
|
404
|
+
enabled?: boolean | null;
|
|
405
|
+
} | null;
|
|
406
|
+
metricsSources?: {
|
|
407
|
+
spanMetrics?: {
|
|
408
|
+
disabled?: boolean | null;
|
|
409
|
+
interval?: string | null;
|
|
410
|
+
metricsExpiration?: string | null;
|
|
411
|
+
additionalDimensions?: string[] | null;
|
|
412
|
+
histogramDisabled?: boolean | null;
|
|
413
|
+
histogramBuckets?: string[] | null;
|
|
414
|
+
includedProcessInDimensions?: boolean | null;
|
|
415
|
+
excludedResourceAttributes?: string[] | null;
|
|
416
|
+
resourceMetricsKeyAttributes?: string[] | null;
|
|
417
|
+
} | null;
|
|
418
|
+
hostMetrics?: {
|
|
419
|
+
disabled?: boolean | null;
|
|
420
|
+
interval?: string | null;
|
|
421
|
+
} | null;
|
|
422
|
+
kubeletStats?: {
|
|
423
|
+
disabled?: boolean | null;
|
|
424
|
+
interval?: string | null;
|
|
425
|
+
} | null;
|
|
426
|
+
odigosOwnMetrics?: {
|
|
427
|
+
interval?: string | null;
|
|
428
|
+
} | null;
|
|
429
|
+
agentMetrics?: {
|
|
430
|
+
spanMetrics?: {
|
|
431
|
+
enabled?: boolean | null;
|
|
432
|
+
} | null;
|
|
433
|
+
runtimeMetrics?: {
|
|
434
|
+
java?: {
|
|
435
|
+
disabled?: boolean | null;
|
|
436
|
+
metrics?: {
|
|
437
|
+
name?: string | null;
|
|
438
|
+
disabled?: boolean | null;
|
|
439
|
+
}[] | null;
|
|
440
|
+
} | null;
|
|
441
|
+
} | null;
|
|
442
|
+
} | null;
|
|
443
|
+
} | null;
|
|
444
|
+
agentsInitContainerResources?: {
|
|
445
|
+
requestCPUm?: number | null;
|
|
446
|
+
limitCPUm?: number | null;
|
|
447
|
+
requestMemoryMiB?: number | null;
|
|
448
|
+
limitMemoryMiB?: number | null;
|
|
449
|
+
} | null;
|
|
450
|
+
traceIdSuffix?: string | null;
|
|
451
|
+
allowedTestConnectionHosts?: string[] | null;
|
|
452
|
+
odigosOwnTelemetryStore?: {
|
|
453
|
+
metricsStoreDisabled?: boolean | null;
|
|
454
|
+
} | null;
|
|
455
|
+
imagePullSecrets?: string[] | null;
|
|
456
|
+
componentLogLevels?: {
|
|
457
|
+
default?: string | null;
|
|
458
|
+
autoscaler?: string | null;
|
|
459
|
+
scheduler?: string | null;
|
|
460
|
+
instrumentor?: string | null;
|
|
461
|
+
odiglet?: string | null;
|
|
462
|
+
deviceplugin?: string | null;
|
|
463
|
+
ui?: string | null;
|
|
464
|
+
collector?: string | null;
|
|
465
|
+
} | null;
|
|
466
|
+
manifestYAML?: string | null;
|
|
163
467
|
}
|
|
164
468
|
export type GetEffectiveConfigFunc = (id: string) => Promise<EffectiveConfig | undefined>;
|
|
165
|
-
export type ApplyConfigurationsFunc = (formData:
|
|
469
|
+
export type ApplyConfigurationsFunc = (formData: Partial<EffectiveConfigInput>, connectionIds: string[]) => Promise<{
|
|
166
470
|
error?: string;
|
|
167
471
|
} | undefined>;
|
|
168
472
|
export declare enum Profile {
|
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cU as ActionCategory,A as ActionKeyTypes,
|
|
1
|
+
export{cU as ActionCategory,A as ActionKeyTypes,w as ActionType,cV as AddNodeTypes,cW as BooleanOperation,Y as CodeAttributesKeyTypes,bk as Crud,a2 as CustomInstrumentationsKeyTypes,bP as DesiredStateProgress,cX as DestinationTypes,cY as EdgeTypes,ac as EntityTypes,v as FieldTypes,a0 as GolangCustomProbe,_ as HeadersCollectionKeyTypes,m as InputTypes,cZ as InstallationMethod,a3 as InstrumentationRuleType,c_ as IntrumentationStatus,a1 as JavaCustomProbe,c$ as JsonOperation,K as K8sAttributesFrom,cG as K8sResourceKind,d0 as ListDirection,cs as NodeTypes,d1 as NumberOperation,d2 as OtelDistroName,cc as OtherEntityTypes,bu as OtherStatus,an as OtherStatusType,$ as PayloadCollectionKeyTypes,d3 as PlatformType,d4 as PodContainerLifecycleStatus,d5 as PodContainerStatus,d6 as PodPhase,d7 as Profile,cH as ProgrammingLanguages,d8 as SIGNAL_KEY_TO_TYPE,ch as SIGNAL_TYPE_TO_KEY,d9 as SignalKey,Q as SignalType,da as SortDirection,i as StatusType,db as StringOperation,T as Tier,aT as WorkloadRolloutStatus}from"./chunks/ui-components-BliHHDta.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/visuals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dX as VISUAL_ODIGOS_LOGO_HEIGHT,dY as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,dZ as VisualOdigosLogo}from"./chunks/ui-components-BliHHDta.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odigos/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.213",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"styled-components": "6.3.12"
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@xyflow/react": "^12.10.
|
|
106
|
+
"@xyflow/react": "^12.10.2",
|
|
107
107
|
"elkjs": "^0.11.1",
|
|
108
108
|
"javascript-time-ago": "^2.6.4",
|
|
109
109
|
"lottie-react": "^2.4.1",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"react-dom": "19.2.4",
|
|
113
113
|
"react-error-boundary": "^6.1.1",
|
|
114
114
|
"styled-components": "6.3.12",
|
|
115
|
-
"virtua": "^0.
|
|
115
|
+
"virtua": "^0.49.0",
|
|
116
116
|
"zustand": "^5.0.12"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
@@ -126,24 +126,24 @@
|
|
|
126
126
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
127
127
|
"@rollup/plugin-terser": "^1.0.0",
|
|
128
128
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
129
|
-
"@storybook/addon-webpack5-compiler-babel": "^4.0.
|
|
130
|
-
"@storybook/react-webpack5": "10.3.
|
|
129
|
+
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
130
|
+
"@storybook/react-webpack5": "10.3.3",
|
|
131
131
|
"@types/node": "^25.5.0",
|
|
132
132
|
"@types/react": "^19.2.14",
|
|
133
133
|
"@types/react-dom": "^19.2.3",
|
|
134
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
135
|
-
"@typescript-eslint/parser": "^8.
|
|
134
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
135
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
136
136
|
"babel-loader": "^10.1.1",
|
|
137
137
|
"babel-plugin-styled-components": "^2.1.4",
|
|
138
138
|
"eslint": "^9.39.4",
|
|
139
139
|
"eslint-plugin-react": "^7.37.5",
|
|
140
|
-
"eslint-plugin-storybook": "10.3.
|
|
140
|
+
"eslint-plugin-storybook": "10.3.3",
|
|
141
141
|
"postcss": "^8.5.8",
|
|
142
|
-
"rollup": "^4.60.
|
|
142
|
+
"rollup": "^4.60.1",
|
|
143
143
|
"rollup-plugin-filesize": "^10.0.0",
|
|
144
144
|
"rollup-plugin-postcss": "^4.0.2",
|
|
145
145
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
146
|
-
"storybook": "10.3.
|
|
146
|
+
"storybook": "10.3.3",
|
|
147
147
|
"typescript": "^5.9.3"
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{at as a,h as n,j as r,aF as s,aD as c,ax as l,cT as d,o as p,N as m}from"./ui-components-DQ5eBxQh.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const j=i.div`
|
|
2
|
-
padding: 0 12px;
|
|
3
|
-
`,k=({title:i="YAML",yaml:k,defaultOpen:v})=>{const{clickCopy:x,isCopied:C}=a(),[S,T]=o(v??!1),Y=e(()=>k?[{id:c(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:C?u:f,onClick:()=>x(k||""),disabled:C}},{id:c(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:S?h:y,onClick:()=>T(t=>!t)}}]:[],[k,C,S]);return t(l,{richTitle:{icon:b,title:i},actions:Y,children:S&&t(j,{children:k?t(d,{code:k,language:"yaml",theme:"duotoneDark"}):t(p,{children:t(m,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{k as Y};
|