@odigos/ui-kit 0.0.216 → 0.0.218
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-BPGpDZxy.js +3 -0
- package/lib/chunks/{ui-components-DvThY8Em.js → ui-components-CzlBPbLD.js} +364 -327
- package/lib/components/_v2/button/index.d.ts +1 -0
- package/lib/components/_v2/search/index.d.ts +4 -0
- package/lib/components/tooltip/index.d.ts +5 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/index.d.ts +1 -1
- package/lib/containers/_v2/settings/index.d.ts +13 -0
- package/lib/containers/source-drawer/index.d.ts +5 -0
- package/lib/containers/source-drawer/profiling/flame-graph-canvas.d.ts +10 -0
- package/lib/containers/source-drawer/profiling/flamebearer.d.ts +70 -0
- package/lib/containers/source-drawer/profiling/index.d.ts +34 -0
- package/lib/containers/v2.js +102 -156
- package/lib/containers.js +214 -120
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/usePopup.d.ts +17 -1
- package/lib/hooks.js +1 -1
- package/lib/mock-data/config/index.d.ts +3 -0
- package/lib/mock-data/index.d.ts +1 -0
- package/lib/mock-data/profiling/index.d.ts +10 -0
- package/lib/mock-data/service-map/index.d.ts +3 -1
- package/lib/snippets/_v2/dynamic-field/index.d.ts +19 -0
- package/lib/snippets/_v2/index.d.ts +1 -0
- package/lib/snippets/v2.js +55 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/config/index.d.ts +78 -0
- package/lib/types/destinations/index.d.ts +2 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +10 -5
- package/lib/chunks/index-3rwrQKyF.js +0 -3
package/lib/contexts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dK as OdigosProvider,dL as StorybookProvider,aE as checkVersionSupport,a2 as useOdigos,dM as useStorybook}from"./chunks/ui-components-CzlBPbLD.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{ck as capitalizeFirstLetter,dh as cleanObjectEmptyStringsValues,z as compareCondition,v as deepClone,bA as filterActions,b$ as filterDestinations,bZ as filterDestinationsByStream,b_ as filterSources,bY as filterSourcesByStream,di as flattenObjectKeys,bT as formatBytes,cT as formatDuration,g as generateId,bl as getActionIcon,bu as getConditionsBooleans,cN as getContainersIcons,cQ as getContainersInstrumentedCount,dj as getDeepValue,ah as getDestinationIcon,dk as getDetectedLanguageIcons,bH as getEntityIcon,bh as getEntityId,bC as getEntityLabel,dl as getIdFromSseTarget,bU as getInstrumentationRuleIcon,dm as getMainContainerLanguage,co as getMetricForEntity,dn as getMonitorIcon,dp as getPlatformIcon,dq as getPlatformLabel,a1 as getProgrammingLanguageIcon,cV as getRecursiveValues,bV as getSourceLanguageIcons,dr as getSseTargetFromId,ds as getStatusColor,aL as getStatusFromPodStatus,by as getStatusIcon,cD as getStatusTypeFromOdigosHealth,dt as getValueForRange,cx as getVirtualServiceIcon,cu as getWorkloadId,cj as getYamlFieldsForDestination,cE as hasUnhealthyInstances,l as isEmpty,du as isLegalK8sLabel,aA as isOverTime,cI as isStringABoolean,dv as isTimeElapsed,dw as isValidVersion,bx as mapConditions,ch as mapDestinationFieldsForDisplay,L as mapExportedSignals,H as mapSupportedSignals,dx as numbersOnly,cJ as parseBooleanFromString,dy as parseJsonStringToPrettyString,dz as removeEmptyValuesFromObject,M as safeJsonParse,dA as safeJsonStringify,dB as setDeepValue,bN as sleep,c6 as splitCamelString,dC as stringifyNonStringValues,bo as trimVersion}from"./chunks/ui-components-CzlBPbLD.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/usePopup.d.ts
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
|
+
type PopupPositionMode = 'viewport' | 'local';
|
|
1
2
|
interface UsePopupProps {
|
|
2
3
|
defaultClientHeight?: number;
|
|
3
4
|
defaultClientwidth?: number;
|
|
4
5
|
onClickOutside?: () => void;
|
|
6
|
+
/**
|
|
7
|
+
* `viewport`: `clientX` / `clientY` are `MouseEvent`-style viewport coordinates. Flip/clamp vs the
|
|
8
|
+
* window; updates `arrowPlacement`. Use with `Popup asPortal` + `position: fixed` on the popup.
|
|
9
|
+
*
|
|
10
|
+
* `local`: coordinates are already relative to the popup’s offset parent (e.g. magic `0, 50` under
|
|
11
|
+
* a `position: relative` wrapper). No viewport flip or arrow updates — pass-through to `top`/`left`.
|
|
12
|
+
*/
|
|
13
|
+
positionMode?: PopupPositionMode;
|
|
5
14
|
}
|
|
6
15
|
interface Position {
|
|
7
16
|
top: number;
|
|
8
17
|
left: number;
|
|
9
18
|
}
|
|
10
|
-
|
|
19
|
+
/** Arrow on the tooltip shell; matches flip rules in handlePosition (viewport thirds for horizontal). */
|
|
20
|
+
export interface PopupArrowPlacement {
|
|
21
|
+
edge: 'top' | 'bottom';
|
|
22
|
+
align: 'left' | 'center' | 'right';
|
|
23
|
+
}
|
|
24
|
+
declare const usePopup: ({ defaultClientHeight, defaultClientwidth, onClickOutside, positionMode }?: UsePopupProps) => {
|
|
11
25
|
popupRef: import("react").RefObject<HTMLDivElement | null>;
|
|
12
26
|
popupOpen: boolean;
|
|
13
27
|
setPopupOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
14
28
|
popupPosition: Position;
|
|
29
|
+
arrowPlacement: PopupArrowPlacement;
|
|
15
30
|
handlePosition: (clientX: number, clientY: number) => void;
|
|
16
31
|
};
|
|
17
32
|
export { usePopup };
|
|
33
|
+
export type { PopupPositionMode };
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bg as useActionFormData,dN as useBodyScroll,c0 as useClickNode,cv as useClickNotification,bX as useContainerSize,u as useCopy,cb as useDataStreamFormData,ci as useDestinationFormData,t as useGenericForm,cr as useInstrumentationRuleFormData,ay as useKeyDown,c5 as useOnClickOutside,c1 as usePopup,ca as useSessionStorage,cK as useSourceFormData,cO as useSourceSelectionFormData,az as useTimeAgo}from"./chunks/ui-components-CzlBPbLD.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/mock-data/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './instrumentation-instances';
|
|
|
6
6
|
export * from './instrumentation-rules';
|
|
7
7
|
export * from './namespaces';
|
|
8
8
|
export * from './pipeline-collectors';
|
|
9
|
+
export * from './profiling';
|
|
9
10
|
export * from './service-map';
|
|
10
11
|
export * from './snapshot';
|
|
11
12
|
export * from './sources';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ProfilingProps } from '@/containers/source-drawer/profiling';
|
|
2
|
+
type ProfilingSlots = Awaited<ReturnType<ProfilingProps['fetchProfilingSlots']>>;
|
|
3
|
+
type EnableProfilingResult = Awaited<ReturnType<ProfilingProps['enableProfiling']>>;
|
|
4
|
+
type ReleaseProfilingResult = Awaited<ReturnType<ProfilingProps['releaseProfiling']>>;
|
|
5
|
+
type SourceProfilingResult = Awaited<ReturnType<ProfilingProps['fetchSourceProfiling']>>;
|
|
6
|
+
export declare const MOCK_PROFILING_SLOTS: ProfilingSlots;
|
|
7
|
+
export declare const MOCK_ENABLE_PROFILING_RESULT: EnableProfilingResult;
|
|
8
|
+
export declare const MOCK_RELEASE_PROFILING_RESULT: ReleaseProfilingResult;
|
|
9
|
+
export declare const MOCK_SOURCE_PROFILING_RESULT: SourceProfilingResult;
|
|
10
|
+
export {};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import type { ServiceMapSources } from '@/types';
|
|
1
|
+
import type { PeerSources, ServiceMapSources } from '@/types';
|
|
2
|
+
/** Peer graph for the default SourceDrawer story (`inventory` workload). */
|
|
3
|
+
export declare const MOCK_PEER_SOURCES: PeerSources;
|
|
2
4
|
export declare const MOCK_SERVICE_MAP: ServiceMapSources;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { DropdownProps } from '@/components';
|
|
3
|
+
import { FieldTypes, InputTypes } from '@/types';
|
|
4
|
+
import { type FieldMessageProps, type BadgeProps } from '@/components/_v2';
|
|
5
|
+
export interface DynamicFieldProps extends FieldMessageProps {
|
|
6
|
+
componentType: FieldTypes;
|
|
7
|
+
inputType?: InputTypes;
|
|
8
|
+
name: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
badge?: BadgeProps;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
value: any;
|
|
16
|
+
setValue: (value: any) => void;
|
|
17
|
+
dropdownOptions?: DropdownProps['options'];
|
|
18
|
+
}
|
|
19
|
+
export declare const DynamicField: FC<DynamicFieldProps>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import{cX as e,r as a,n as i,o as r,d as t,ai as s,y as l,m as n,M as o,p as d,I as c,k as p,a2 as h,a8 as u,v as g,c8 as v,F as m,i as b,c as f,j as x,cY as y,bS as w,b as $,N as C,ax as S,af as L,e as M,aP as k,aV as O,P as D,Q as H,q as N,a as T}from"../chunks/ui-components-CzlBPbLD.js";export{A as ActionType,aQ as Actions}from"../chunks/ui-components-CzlBPbLD.js";import{jsx as j,jsxs as q,Fragment as I}from"react/jsx-runtime";import{OdigosLogoTextEnterprise as V,OdigosLogoTextCommunity as W,VSquareIcon as z,OdigosLogo as X,ArrowLeftIcon as P,ArrowRightIcon as R}from"../icons.js";import{useState as F,useRef as G,useEffect as B,forwardRef as E,useImperativeHandle as K}from"react";import J from"styled-components";export{Y as YamlSectionCard}from"../chunks/index-BPGpDZxy.js";import"zustand";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";const Q=({isOpen:a,onClose:i,onDeny:r,onApprove:t})=>j(e,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:a,onClose:i,onDeny:r,denyLabel:"Keep editing",onApprove:t,approveLabel:"Discard changes"}),U=({isOpen:a,onClose:i,onDeny:r,onApprove:t,action:s="delete",target:l})=>{const n=s.charAt(0).toUpperCase()+s.substring(1),o=l?.endsWith("s")?"these":"this";return j(e,{title:`${n}${l?` ${l}`:""}?`,description:`Are you sure you want to ${s}${l?` ${o} ${l}`:""}?`,isOpen:a,onClose:i,onDeny:r,denyLabel:"Go back",onApprove:t,approveLabel:n})},Z=({componentType:e,inputType:h,name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,value:y,setValue:w,errorMessage:$,warnMessage:C,helpMessage:S,dropdownOptions:L})=>{switch(e){case a.Input:return j(c,{name:u,type:h,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,value:y??"",onChange:e=>{const a=e.target.value;w(h===p.Number?""===a?null:Number(a):a)},errorMessage:$,warnMessage:C,helpMessage:S},u);case a.MultiInput:return j(d,{name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,values:Array.isArray(y)?y:o(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:S},u);case a.KeyValuePair:return j(n,{name:u,label:g,tooltip:v,badge:m,required:f,disabled:x,limitFieldsPerRow:2,columns:[{keyName:"key",label:"Key"},{keyName:"value",label:"Value"}],values:Array.isArray(y)?y:o(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:S},u);case a.TextArea:return j(l,{name:u,label:g,tooltip:v,badge:m,required:f,disabled:x,placeholder:b,value:y??"",onChange:e=>w(e.target.value),errorMessage:$,warnMessage:C,helpMessage:S},u);case a.Dropdown:return j(s,{name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,withSearch:!0,options:L?.map(e=>({id:e.id||"",label:e.value||""}))||[],values:y?[String(y)]:[],setValues:e=>w(e[0]),errorMessage:$,warnMessage:C,helpMessage:S},u);case a.Checkbox:return j(t,{name:u,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:S},u);case a.Toggle:return j(i,{name:u,labelAlign:r.Right,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:S},u);default:return null}},_=({size:e=200})=>{const{tier:a}=h();return a===u.Onprem?j(V,{size:e}):j(W,{size:e})},ee=(e,a)=>!a?.length||!!a?.find(a=>a===e),ae=({title:e="Signals",required:a,errorMessage:i,allowedSignals:r,selectedSignals:s,setSelectedSignals:l,disabled:n})=>{const[o,d]=F(1===s.length),c=G(JSON.stringify(s));B(()=>{const e=g(s);e.length||v.forEach(({id:a})=>{ee(a,r)&&e.push(a)});const a=JSON.stringify(e);c.current!==a&&(c.current=a,l(e),d(1===e.length))},[r,s]);return q(m,{$gap:12,children:[j(b,{label:e,required:a}),j(f,{$gap:12,children:v.map(e=>{const a=ee(e.id,r),i=((e,a)=>!!a?.find(a=>a===e))(e.id,s);return a?j(t,{label:e.value,disabled:n||!a||o&&i,value:i,onChange:a=>((e,a)=>{const i=e,r=a?[...s,i]:s.filter(e=>e!==i);l(r),d(1===r.length)})(e.id,a)},e.id):null})}),j(x,{errorMessage:i})]})},ie=({minSupportedVersion:a,currentVersion:i})=>j(e,{isOpen:!0,onClose:()=>{},relativeToParent:!0,visual:()=>j(y,{scale:2.4,icon:()=>j("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",children:j("path",{fill:"#151618",d:"M9.4844 0.730003C9.99694 -0.243259 11.4076 -0.24341 11.92 0.730003L11.9685 0.831353L14.3039 6.22012L20.153 6.77755C21.3553 6.89211 21.841 8.38683 20.9358 9.18621L16.5314 13.0731L17.8091 18.8079C18.0716 19.9868 16.8005 20.9109 15.7605 20.2969L10.7017 17.3093L5.64282 20.2969C4.60289 20.9104 3.33173 19.9866 3.59427 18.8079L4.87192 13.0741L0.468608 9.18621C-0.43662 8.38693 0.0482932 6.8924 1.25029 6.77755L7.09837 6.22012L9.43588 0.831353L9.4844 0.730003ZM8.55284 7.02876C8.35287 7.48992 7.9179 7.80589 7.41751 7.85357L2.03952 8.36571L6.09027 11.941C6.46691 12.2737 6.63296 12.7852 6.5237 13.2758L5.34956 18.5459L10.0008 15.8009L10.1669 15.7179C10.5087 15.574 10.8945 15.5741 11.2364 15.7179L11.4036 15.8009L16.0538 18.5459L14.8807 13.2758C14.7714 12.7851 14.9374 12.2737 15.3141 11.941L19.3627 8.36571L13.9858 7.85357C13.4855 7.80587 13.0505 7.4899 12.8505 7.02876L10.7017 2.07342L8.55284 7.02876Z"})})}),title:"Upgrade Required",description:`To use this feature, please upgrade to Odigos v${a} or later.\nCurrent version: ${i}.`}),re=J.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: flex-end;
|
|
5
|
+
width: ${({$width:e})=>e};
|
|
6
|
+
gap: ${({$columnHasHeader:e})=>e?"0":"12px"};
|
|
7
|
+
`,te=J.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
min-height: 24px;
|
|
11
|
+
padding: 12px;
|
|
12
|
+
border-radius: 16px 16px 0 0;
|
|
13
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
14
|
+
`,se=J.div`
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: ${({$gap:e})=>e}px;
|
|
18
|
+
padding: 12px 12px 0 12px;
|
|
19
|
+
width: calc(100% - 24px);
|
|
20
|
+
height: ${({$heightOffset:e,$columnHasHeader:a})=>`calc(100vh - 180px - ${e}px ${a?"- 48px":""})`};
|
|
21
|
+
border-radius: ${({$columnHasHeader:e,$isLeft:a,$isRight:i})=>e?a?"0 0 0 16px":i?"0 16px 0 0":"0":a?"16px 0 0 16px":i?"0 16px 16px 0":"16px"};
|
|
22
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
overflow-x: hidden;
|
|
25
|
+
`,le=({isLeft:e,isRight:a,heightOffset:i=0,width:r,header:t,list:s})=>q(re,{$width:r,$columnHasHeader:!!t,children:[t&&j(te,{children:t}),j(se,{$gap:8,$isLeft:e,$isRight:a,$heightOffset:i,$columnHasHeader:!!t,children:s.length?s.length>1?j(w,{gap:8,elements:s}):j(I,{children:s[0]}):j($,{$height:"100%",children:j(C,{})})})]}),ne="75vw",oe=J.div`
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
border-radius: 16px;
|
|
29
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
`,de=J.div`
|
|
32
|
+
display: flex;
|
|
33
|
+
gap: 12px;
|
|
34
|
+
padding: 16px 16px 0 16px;
|
|
35
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
36
|
+
position: sticky;
|
|
37
|
+
top: 0;
|
|
38
|
+
`,ce=J.div`
|
|
39
|
+
padding: 12px 12px 0 12px;
|
|
40
|
+
`,pe=J.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: 12px;
|
|
43
|
+
padding: 16px;
|
|
44
|
+
`,he=J.div`
|
|
45
|
+
padding: 5vh 10vw;
|
|
46
|
+
border-radius: 12px;
|
|
47
|
+
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
48
|
+
`,ue=J.div`
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: flex-end;
|
|
52
|
+
gap: 16px;
|
|
53
|
+
padding: 0 12px;
|
|
54
|
+
margin-top: auto;
|
|
55
|
+
`,ge=E(({isOpen:e,withOverlay:a,disableAnimation:i,onClose:r,onBack:t,onNext:s,nextIsSkip:l,onSave:n,disableSave:o,connectionIds:d,header:c,subHeader:p,leftColumn:h,rightColumn:u,search:g,filters:v,errorMessage:m,isFormDirty:b,hideDirtyNote:x,isFetching:y,progress:w},C)=>{const[A,I]=F(!1),[V,W]=F(!1),[G,Y]=F(void 0);K(C,()=>({clearErrors:()=>Y(void 0)}));const B=V,E=()=>{b&&!A?I(!0):(I(!1),r?.())},J=o||V||"boolean"==typeof b&&!b,U=!!g||!!d||!!v,Z=!!p,_=(U?48:0)+(Z?50:0);return q(S,{width:ne,isOpen:e,disableAnimation:i,hideOverlay:!V&&!a,header:{...c,onClose:r?E:void 0,onCloseDisabled:B},children:[V?j($,{$height:"calc(100vh - 136px)",children:j(he,{children:j(L,{titleSize:M.S,subTitleSize:M.XXXS,withGradient:!0,withSpinner:!0,...w})})}):q(oe,{children:[U&&q(de,{children:[d&&j(k,{icon:z,title:"Selected Clusters",badge:{label:d.value.length}}),g&&j(O,{width:"100%",...g}),v]}),Z&&j(ce,{children:j(k,{icon:p.icon,title:p.title,subTitle:p.description,badge:p.badge})}),q(pe,{children:[j(le,{isLeft:!0,heightOffset:_,...h}),j(le,{isRight:!0,heightOffset:_,...u})]})]}),q(ue,{children:[y?j(L,{icon:X,title:"Fetching Data...",titleSize:M.XXS,withGradient:!0}):V?w?null:j(L,{icon:X,title:"Saving Changes...",titleSize:M.XXS,withGradient:!0}):G||m?j(D,{fullWidth:!0,status:H.Error,message:G||m}):"boolean"==typeof b&&b&&!x?j(D,{fullWidth:!0,status:H.Info,message:'The values don\'t reflect the current configurations of the selected clusters.\n"Save" will override the current configurations.'}):"boolean"!=typeof b||b||x?null:j(D,{fullWidth:!0,status:H.Success,message:"The values reflect the current configuration of the selected cluster."}),q(f,{$gap:8,children:[j("div",t?{style:{width:"150px"},children:j(N,{"data-id":"wide-drawer-back",fullWidth:!0,variant:T.Secondary,label:"Back",leftIcon:P,onClick:t})}:{style:{width:"150px"},children:j(N,{"data-id":"wide-drawer-cancel",fullWidth:!0,variant:T.Secondary,label:"Cancel",onClick:E,disabled:B})}),j("div",s?{style:{width:"150px"},children:j(N,l?{"data-id":"wide-drawer-skip",fullWidth:!0,variant:T.Secondary,label:"Skip",rightIcon:R,onClick:s}:{"data-id":"wide-drawer-next",fullWidth:!0,variant:T.Primary,label:"Next",rightIcon:R,onClick:s})}:{style:{width:"150px"},children:j(N,{"data-id":"wide-drawer-save",fullWidth:!0,variant:T.Primary,label:"Save",onClick:async()=>{W(!0);const e=await n();W(!1),e?.error?Y(e.error):(d?.setValue([]),r?.())},disabled:J})})]})]}),j(Q,{isOpen:A,onClose:()=>I(!1),onApprove:E})]})});ge.displayName=ge.name;export{Q as CancelModal,U as DeleteModal,Z as DynamicField,_ as OdigosLogoTextByTier,k as RichTitle,ae as SignalsCheckboxList,ie as UpgradeModal,ne as WIDE_DRAWER_WIDTH,ge as WideDrawer};
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{b5 as AddButton,cF as CopyText,cA as EditButton,cz as Flow,dO as MapItemNode,dP as NoDataNode,cf as NoteBackToSummary,cH as PodContainer,cM as SourceContainer}from"./chunks/ui-components-CzlBPbLD.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{
|
|
1
|
+
export{ar as ProgressKeys,cy as useActiveNodeStore,cS as useDarkMode,E as useDataStreamStore,bc as useDrawerStore,ak as useEntityStore,bz as useFilterStore,bn as useModalStore,cq as useNotificationStore,aq as useProgressStore,bP as useSelectedStore,cc as useSetupStore}from"./chunks/ui-components-CzlBPbLD.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{dG as Provider,dH as animations,dI as opacity,dJ as palettes}from"./chunks/ui-components-CzlBPbLD.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";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { FieldTypes } from '../common';
|
|
2
|
+
export interface ConfigYamlField {
|
|
3
|
+
displayName: string;
|
|
4
|
+
componentType: FieldTypes;
|
|
5
|
+
isHelmOnly: boolean;
|
|
6
|
+
description: string;
|
|
7
|
+
helmValuePath: string;
|
|
8
|
+
docsLink?: string | null;
|
|
9
|
+
componentProps?: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface ConfigYaml {
|
|
12
|
+
name: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
fields: ConfigYamlField[];
|
|
15
|
+
}
|
|
16
|
+
export interface LocalUiConfigRolloutInput {
|
|
17
|
+
automaticRolloutDisabled?: boolean;
|
|
18
|
+
maxConcurrentRollouts?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface LocalUiConfigAutoRollbackInput {
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
graceTime?: string;
|
|
23
|
+
stabilityWindowTime?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface LocalUiConfigInstrumentorInput {
|
|
26
|
+
agentEnvVarsInjectionMethod?: string;
|
|
27
|
+
checkDeviceHealthBeforeInjection?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface LocalUiConfigAllowConcurrentAgentsInput {
|
|
30
|
+
enabled?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface LocalUiConfigWaspInput {
|
|
33
|
+
enabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface LocalUiConfigSpanSamplingAttributesInput {
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
samplingCategoryDisabled?: boolean;
|
|
38
|
+
traceDecidingRuleDisabled?: boolean;
|
|
39
|
+
spanDecisionAttributesDisabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface LocalUiConfigSamplingInput {
|
|
42
|
+
dryRun?: boolean;
|
|
43
|
+
spanSamplingAttributes?: LocalUiConfigSpanSamplingAttributesInput;
|
|
44
|
+
tailSampling?: {
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
traceAggregationWaitDuration?: string;
|
|
47
|
+
};
|
|
48
|
+
k8sHealthProbesSampling?: {
|
|
49
|
+
enabled?: boolean;
|
|
50
|
+
keepPercentage?: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface LocalUiConfigComponentLogLevelsInput {
|
|
54
|
+
default?: string;
|
|
55
|
+
autoscaler?: string;
|
|
56
|
+
scheduler?: string;
|
|
57
|
+
instrumentor?: string;
|
|
58
|
+
odiglet?: string;
|
|
59
|
+
deviceplugin?: string;
|
|
60
|
+
ui?: string;
|
|
61
|
+
collector?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface LocalUiConfigInput {
|
|
64
|
+
telemetryEnabled?: boolean;
|
|
65
|
+
ignoredNamespaces?: string[];
|
|
66
|
+
ignoredContainers?: string[];
|
|
67
|
+
ignoreOdigosNamespace?: boolean;
|
|
68
|
+
clusterName?: string;
|
|
69
|
+
instrumentor?: LocalUiConfigInstrumentorInput;
|
|
70
|
+
allowConcurrentAgents?: LocalUiConfigAllowConcurrentAgentsInput;
|
|
71
|
+
wasp?: LocalUiConfigWaspInput;
|
|
72
|
+
rollout?: LocalUiConfigRolloutInput;
|
|
73
|
+
autoRollback?: LocalUiConfigAutoRollbackInput;
|
|
74
|
+
goAutoOffsetsCron?: string;
|
|
75
|
+
goAutoOffsetsMode?: string;
|
|
76
|
+
sampling?: LocalUiConfigSamplingInput;
|
|
77
|
+
componentLogLevels?: LocalUiConfigComponentLogLevelsInput;
|
|
78
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DropdownProps } from '@/components';
|
|
2
|
-
import { type Condition, FieldTypes, SVG } from '../common';
|
|
2
|
+
import { type Condition, FieldTypes, SVG, InputTypes } from '../common';
|
|
3
3
|
export declare enum DestinationTypes {
|
|
4
4
|
Alauda = "alauda",
|
|
5
5
|
AlibabaCloud = "alibabacloud",
|
|
@@ -137,7 +137,7 @@ export interface DestinationDynamicField {
|
|
|
137
137
|
title: DestinationYamlProperties['displayName'];
|
|
138
138
|
value: DestinationYamlProperties['initialValue'];
|
|
139
139
|
renderCondition?: DestinationYamlProperties['renderCondition'];
|
|
140
|
-
type?:
|
|
140
|
+
type?: InputTypes;
|
|
141
141
|
required?: boolean;
|
|
142
142
|
tooltip?: string;
|
|
143
143
|
placeholder?: string;
|
package/lib/types/index.d.ts
CHANGED
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cZ as ActionCategory,f as ActionKeyTypes,s as ActionType,c_ as AddNodeTypes,c$ as BooleanOperation,R as CodeAttributesKeyTypes,bm as Crud,Z as CustomInstrumentationsKeyTypes,bR as DesiredStateProgress,d0 as DestinationTypes,d1 as EdgeTypes,a9 as EntityTypes,r as FieldTypes,X as GolangCustomProbe,V as HeadersCollectionKeyTypes,k as InputTypes,d2 as InstallationMethod,_ as InstrumentationRuleType,d3 as IntrumentationStatus,Y as JavaCustomProbe,d4 as JsonOperation,K as K8sAttributesFrom,cL as K8sResourceKind,d5 as ListDirection,cw as NodeTypes,d6 as NumberOperation,d7 as OtelDistroName,cg as OtherEntityTypes,bw as OtherStatus,am as OtherStatusType,W as PayloadCollectionKeyTypes,d8 as PlatformType,d9 as PodContainerLifecycleStatus,da as PodContainerStatus,db as PodPhase,dc as Profile,au as ProgrammingLanguages,dd as SIGNAL_KEY_TO_TYPE,cl as SIGNAL_TYPE_TO_KEY,de as SignalKey,J as SignalType,df as SortDirection,Q as StatusType,dg as StringOperation,a8 as Tier,aT as WorkloadRolloutStatus}from"./chunks/ui-components-CzlBPbLD.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{e0 as VISUAL_ODIGOS_LOGO_HEIGHT,e1 as VISUAL_ODIGOS_LOGO_WIDTH,cY as VisualGreenRings,e2 as VisualOdigosLogo}from"./chunks/ui-components-CzlBPbLD.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.218",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,6 +36,11 @@
|
|
|
36
36
|
"import": "./lib/containers/v2.js",
|
|
37
37
|
"require": "./lib/containers/v2.js"
|
|
38
38
|
},
|
|
39
|
+
"./snippets/v2": {
|
|
40
|
+
"types": "./lib/snippets/_v2/index.d.ts",
|
|
41
|
+
"import": "./lib/snippets/v2.js",
|
|
42
|
+
"require": "./lib/snippets/v2.js"
|
|
43
|
+
},
|
|
39
44
|
"./components": {
|
|
40
45
|
"types": "./lib/components/index.d.ts",
|
|
41
46
|
"import": "./lib/components.js",
|
|
@@ -127,8 +132,8 @@
|
|
|
127
132
|
"@rollup/plugin-terser": "^1.0.0",
|
|
128
133
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
129
134
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
130
|
-
"@storybook/react-webpack5": "10.3.
|
|
131
|
-
"@types/node": "^25.5.
|
|
135
|
+
"@storybook/react-webpack5": "10.3.4",
|
|
136
|
+
"@types/node": "^25.5.2",
|
|
132
137
|
"@types/react": "^19.2.14",
|
|
133
138
|
"@types/react-dom": "^19.2.3",
|
|
134
139
|
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
@@ -137,13 +142,13 @@
|
|
|
137
142
|
"babel-plugin-styled-components": "^2.1.4",
|
|
138
143
|
"eslint": "^9.39.4",
|
|
139
144
|
"eslint-plugin-react": "^7.37.5",
|
|
140
|
-
"eslint-plugin-storybook": "10.3.
|
|
145
|
+
"eslint-plugin-storybook": "10.3.4",
|
|
141
146
|
"postcss": "^8.5.8",
|
|
142
147
|
"rollup": "^4.60.1",
|
|
143
148
|
"rollup-plugin-filesize": "^10.0.0",
|
|
144
149
|
"rollup-plugin-postcss": "^4.0.2",
|
|
145
150
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
146
|
-
"storybook": "10.3.
|
|
151
|
+
"storybook": "10.3.4",
|
|
147
152
|
"typescript": "^5.9.3"
|
|
148
153
|
}
|
|
149
154
|
}
|
|
@@ -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{az as a,t as n,j as r,aJ as s,aH as l,aD as c,cX as d,e as p,N as m}from"./ui-components-DvThY8Em.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const g=i.div`
|
|
2
|
-
padding: 0 12px;
|
|
3
|
-
`,j=({title:i="YAML",yaml:j,defaultOpen:k,fullHeight:v})=>{const{clickCopy:C,isCopied:S}=a(),[Y,x]=o(k??!1),z=e(()=>j?[{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:S?u:f,onClick:()=>C(j||""),disabled:S}},{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:Y?h:y,onClick:()=>x(t=>!t)}}]:[],[j,S,Y]);return t(c,{richTitle:{icon:b,title:i},actions:z,fullHeight:v,children:Y&&t(g,{children:j?t(d,{code:j,language:"yaml",theme:"duotoneDark"}):t(p,{children:t(m,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{j as Y};
|