@odigos/ui-kit 0.0.141 → 0.0.143
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/ui-components-29317e94.js +2191 -0
- package/lib/components/_v2/cards/section-card/index.d.ts +2 -0
- package/lib/components/_v2/checkbox-list/index.d.ts +5 -8
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/search/index.d.ts +2 -1
- package/lib/components/_v2/table/index.d.ts +2 -1
- package/lib/components/_v2/table/styled.d.ts +7 -3
- package/lib/components/_v2/table/table-columns/index.d.ts +2 -1
- package/lib/components/_v2/table/table-rows/index.d.ts +2 -1
- package/lib/components/_v2/table/types.d.ts +4 -0
- package/lib/components/_v2/toggle/index.d.ts +9 -0
- package/lib/components/_v2/toggle-list/index.d.ts +20 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/v2.js +8 -8
- package/lib/containers.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/index.d.ts +2 -0
- package/lib/theme/palletes/index.d.ts +140 -3
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +8 -4
- package/lib/types.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/ui-components-c3adf029.js +0 -2163
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode, type FC } from 'react';
|
|
2
|
+
import Theme from '@/theme';
|
|
2
3
|
import type { SVG } from '@/types';
|
|
3
4
|
import { type BadgeProps } from '../../badge';
|
|
4
5
|
import { type SearchProps } from '../../search';
|
|
@@ -14,6 +15,7 @@ export declare enum SectionCardActionType {
|
|
|
14
15
|
}
|
|
15
16
|
export interface SectionCardProps {
|
|
16
17
|
size?: SectionCardSize;
|
|
18
|
+
backgroundWeight?: keyof typeof Theme.palletes.baseTheme.v2.colors.silver;
|
|
17
19
|
icon: SVG;
|
|
18
20
|
title: string;
|
|
19
21
|
withCopyTitle?: boolean;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { type FC, SetStateAction, Dispatch } from 'react';
|
|
2
|
+
import { ListDirection } from '@/types';
|
|
2
3
|
import { CheckboxProps, CheckboxSize } from '../checkbox';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
VERTICAL = "vertical"
|
|
4
|
+
interface Option extends Pick<CheckboxProps, 'label'> {
|
|
5
|
+
id: string;
|
|
6
6
|
}
|
|
7
7
|
interface Values {
|
|
8
8
|
[key: string]: boolean;
|
|
9
9
|
}
|
|
10
|
-
interface Option extends Pick<CheckboxProps, 'label'> {
|
|
11
|
-
id: string;
|
|
12
|
-
}
|
|
13
10
|
export interface CheckboxListProps {
|
|
14
|
-
|
|
11
|
+
direction?: ListDirection;
|
|
12
|
+
title?: string;
|
|
15
13
|
size?: CheckboxSize;
|
|
16
14
|
disabled?: boolean;
|
|
17
|
-
direction?: CheckboxListDirection;
|
|
18
15
|
withSelectAll?: boolean;
|
|
19
16
|
options: Option[];
|
|
20
17
|
values: Values;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
1
|
+
import { type FC, CSSProperties } from 'react';
|
|
2
2
|
export interface SearchProps {
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
value: string;
|
|
5
5
|
onChange: (value: string) => void;
|
|
6
|
+
width?: CSSProperties['width'];
|
|
6
7
|
}
|
|
7
8
|
export declare const Search: FC<SearchProps>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { CSSProperties } from 'styled-components';
|
|
3
|
-
import type
|
|
3
|
+
import { type TableColumn, type TableRow, type TableRowAction, TableVariant } from './types';
|
|
4
4
|
export * from './types';
|
|
5
5
|
export interface TableProps {
|
|
6
|
+
variant: TableVariant;
|
|
6
7
|
maxHeight?: CSSProperties['maxHeight'];
|
|
7
8
|
isLoading?: boolean;
|
|
8
9
|
columns: TableColumn[];
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
2
|
+
import { type TableColumn, TableVariant } from './types';
|
|
3
3
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
4
|
$maxHeight: CSSProperties["maxHeight"];
|
|
5
5
|
}>> & string;
|
|
6
|
-
export declare const TableRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
6
|
+
export declare const TableRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
|
|
7
|
+
$variant: TableVariant;
|
|
8
|
+
}>> & string;
|
|
7
9
|
export declare const THead: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
8
10
|
export declare const Th: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {
|
|
11
|
+
$variant: TableVariant;
|
|
9
12
|
$minWidth?: TableColumn["minWidth"];
|
|
10
13
|
$isFirst: boolean;
|
|
11
14
|
$isLast: boolean;
|
|
@@ -13,6 +16,7 @@ export declare const Th: import("styled-components/dist/types").IStyledComponent
|
|
|
13
16
|
export declare const ThBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
17
|
export declare const TBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
15
18
|
export declare const Td: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {
|
|
19
|
+
$variant: TableVariant;
|
|
16
20
|
$withClick: boolean;
|
|
17
21
|
$hovered: boolean;
|
|
18
22
|
$selected: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { SortDirection } from '@/types';
|
|
3
|
-
import type
|
|
3
|
+
import { type TableColumn, TableVariant } from '../types';
|
|
4
4
|
interface TableColumnsProps {
|
|
5
|
+
variant: TableVariant;
|
|
5
6
|
columns: TableColumn[];
|
|
6
7
|
sortDirection: SortDirection;
|
|
7
8
|
sortByKey: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type FC, type CSSProperties } from 'react';
|
|
2
|
-
import type { TableColumn, TableRow, TableRowAction } from '../types';
|
|
2
|
+
import type { TableColumn, TableRow, TableRowAction, TableVariant } from '../types';
|
|
3
3
|
interface TableRowsProps {
|
|
4
|
+
variant: TableVariant;
|
|
4
5
|
columns: TableColumn[];
|
|
5
6
|
rows: TableRow[];
|
|
6
7
|
getRowActions: (row: TableRow) => TableRowAction[];
|
|
@@ -8,14 +8,23 @@ export declare enum ToggleSize {
|
|
|
8
8
|
S = "small",
|
|
9
9
|
L = "large"
|
|
10
10
|
}
|
|
11
|
+
export declare enum ToggleLabelAlign {
|
|
12
|
+
Left = "left",
|
|
13
|
+
Right = "right"
|
|
14
|
+
}
|
|
11
15
|
export interface ToggleProps {
|
|
12
16
|
variant?: ToggleVariant;
|
|
13
17
|
size?: ToggleSize;
|
|
18
|
+
label?: string;
|
|
19
|
+
labelAlign?: ToggleLabelAlign;
|
|
20
|
+
tooltip?: string;
|
|
14
21
|
value: boolean;
|
|
15
22
|
onChange: (value: boolean) => void;
|
|
16
23
|
disabled?: boolean;
|
|
17
24
|
withIcon?: boolean;
|
|
18
25
|
onIcon?: SVG;
|
|
19
26
|
offIcon?: SVG;
|
|
27
|
+
onBgColor?: string;
|
|
28
|
+
offBgColor?: string;
|
|
20
29
|
}
|
|
21
30
|
export declare const Toggle: FC<ToggleProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Dispatch, type SetStateAction, type FC } from 'react';
|
|
2
|
+
import { ListDirection } from '@/types';
|
|
3
|
+
import { type ToggleProps, ToggleSize } from '../toggle';
|
|
4
|
+
interface Option extends Omit<ToggleProps, 'size' | 'disabled' | 'value' | 'onChange'> {
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
interface Values {
|
|
8
|
+
[key: string]: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ToggleListProps {
|
|
11
|
+
direction?: ListDirection;
|
|
12
|
+
title?: string;
|
|
13
|
+
size?: ToggleSize;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
options: Option[];
|
|
16
|
+
values: Values;
|
|
17
|
+
setValues: Dispatch<SetStateAction<Values>>;
|
|
18
|
+
}
|
|
19
|
+
export declare const ToggleList: FC<ToggleListProps>;
|
|
20
|
+
export {};
|
package/lib/components/v2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as Badge,
|
|
1
|
+
export{B as Badge,e as Button,k as ButtonSize,d6 as ButtonTab,d7 as ButtonTabList,f as ButtonVariants,C as Checkbox,da as CheckboxList,d9 as CheckboxSize,v as CliCommand,t as DataCard,D as Drawer,db as DropData,dc as Header,I as IconButton,c8 as IconButtonSize,dd as Input,L as Loader,de as Modal,df as Navbar,dg as Note,di as Radio,dk as RadioGroup,dj as RadioGroupDirection,dh as RadioSize,S as Search,h as SectionCard,j as SectionCardActionType,d8 as SectionCardSize,y as Segment,z as StatusCard,l as Table,m as TableVariant,dl as Tag,A as TextCard,c as Toggle,dn as ToggleLabelAlign,dp as ToggleList,d as ToggleSize,dm as ToggleVariant,T as Typography,b as TypographySize,dq as TypographyVariants}from"../chunks/ui-components-29317e94.js";import"../icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"../chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{at as AutocompleteInput,
|
|
1
|
+
export{at as AutocompleteInput,aN as Badge,aQ as Button,ae as CancelWarning,r as CenterThis,M as Checkbox,w as Code,ak as ConditionDetails,al as DataCard,G as DataCardFieldTypes,bB as DataCardFields,cW as DataFinger,aT as DataTab,ad as DeleteWarning,bY as DescribeRow,au as Divider,a4 as DocsButton,ac as Drawer,cY as DrawerFooter,cX as DrawerHeader,be as Dropdown,cZ as ErrorBoundary,bn as ExtendArrow,s as FadeLoader,Q as FieldError,J as FieldLabel,F as FlexColumn,a as FlexRow,c_ as Header,bm as IconButton,c5 as IconGroup,aI as IconTitleBadge,aD as IconWrapped,bU as IconsNav,c$ as ImageControlled,U as Input,$ as InputList,Y as InputTable,aL as InteractiveTable,_ as KeyValueInputsList,aP as LoadingText,ao as Modal,aq as ModalBody,a5 as MonitorsCheckboxes,aF as MonitorsIcons,ap as NavigationButtons,N as NoDataFound,ar as NotificationNote,d5 as Overlay,P as PageContent,b9 as Popup,c9 as PopupForm,ce as ScrollX,aX as ScrollY,a3 as SectionTitle,a2 as Segment,ba as SelectionButton,a$ as SkeletonLoader,aw as Status,bA as Stepper,d0 as TabList,aG as TableContainer,aH as TableTitleWrap,aK as TableWrap,bK as Tag,a1 as Text,a6 as TextArea,Z as Toggle,cc as ToggleCodeComponent,ay as Tooltip,aM as TraceLoader,bb as VerticalScroll,d4 as WarningModal,d1 as getLinksFromText,d2 as getStrongsFromText,d3 as renderText}from"./chunks/ui-components-29317e94.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ai as ACTION_OPTIONS,ab as BUTTON_TEXTS,
|
|
1
|
+
export{ai as ACTION_OPTIONS,ab as BUTTON_TEXTS,bl as DEFAULT_DATA_STREAM_NAME,by as DESTINATION_CATEGORIES,bf as DISPLAY_LANGUAGES,E as DISPLAY_TITLES,as as FORM_ALERTS,bN as INSTRUMENTATION_RULE_OPTIONS,cP as LANGUAGE_OPTIONS,bg as MONITORS_OPTIONS,bh as STORAGE_KEYS,cQ as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-29317e94.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/containers/v2.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import e,{useState as
|
|
1
|
+
import e,{useState as t,useMemo as a,useCallback as l,useEffect as o}from"react";import i,{useTheme as n}from"styled-components";import{F as s,u as r,D as d,S as c,a as u,T as g,b as p,B as b,O as m,C as y,c as h,d as f,L as k,e as C,f as w,g as v,P as x,h as $,i as L,j as P,k as R,l as I,m as A,n as S,o as z,p as D,q as M,r as V,s as O,t as N,I as T,v as j,w as Y,x as F,y as H,N as U,z as W,A as E,W as q}from"../chunks/ui-components-29317e94.js";import{ConnectionsIcon as G,OdigosLogo as B,RefreshIcon as K,SettingsIcon as J,DeleteIcon as Q,VIcon as X,XIcon as Z,PodIcon as _,ChevronUpIcon as ee,ChevronDownIcon as te,TerminalIcon as ae,YamlIcon as le,CopyIcon as oe,VSquareIcon as ie,XSquareIcon as ne,PipelineCollectorIcon as se,DownloadIcon as re,GatewayIcon as de}from"../icons.js";import"zustand";import"javascript-time-ago";import"../chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";const ce="75vw",ue=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
border-radius: 16px;
|
|
5
5
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
6
6
|
overflow: hidden;
|
|
7
|
-
`,
|
|
7
|
+
`,ge=i.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
gap: 12px;
|
|
10
10
|
padding: 16px;
|
|
11
11
|
background-color: ${({theme:e})=>e.v2.colors.silver[900]};
|
|
12
12
|
position: sticky;
|
|
13
13
|
top: 0;
|
|
14
|
-
`,
|
|
14
|
+
`,pe=i.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
gap: 12px;
|
|
17
17
|
padding: 16px;
|
|
@@ -40,13 +40,13 @@ import e,{useState as a,useMemo as t,useCallback as l,useEffect as o}from"react"
|
|
|
40
40
|
&:hover {
|
|
41
41
|
background-color: ${({theme:e})=>e.v2.colors.silver[800]};
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,he=i.div`
|
|
44
44
|
display: flex;
|
|
45
45
|
align-items: center;
|
|
46
46
|
justify-content: flex-end;
|
|
47
47
|
gap: 16px;
|
|
48
48
|
padding: 0 24px;
|
|
49
|
-
`,
|
|
49
|
+
`,fe=({isOpen:l,onClose:o,connections:i,selectedConnectionIds:s,setSelectedConnectionIds:v,onApply:x})=>{const $=n(),[L,P]=t(""),R=a(()=>i.filter(e=>!L||e.name.toLowerCase().includes(L.toLowerCase())),[i,L]),I=s.length>0,A=e=>{v(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[S,z]=t(!1),[D,M]=t(void 0),{formData:V,handleFormChange:O,resetFormData:N}=r({automaticRollout:!0});return e.createElement(d,{isOpen:l,hideOverlay:!0,width:ce,header:{icon:G,title:"Cluster Configuration",onClose:o}},e.createElement(ue,null,e.createElement(ge,null,e.createElement(c,{width:"40%",value:L,onChange:P})),e.createElement(pe,null,e.createElement(be,{$width:"40%"},e.createElement(u,{$padding:"0 12px",$justifyContent:"space-between"},e.createElement(u,{$gap:8},e.createElement(g,{size:p.XS},"Clusters"),e.createElement(b,{label:i.length,status:m.Unknown})),e.createElement(u,{$gap:8},e.createElement(g,{size:p.XXXS,color:$.v2.colors.silver[200]},"Selected"),e.createElement(b,{label:`${s.length}/${i.length}`,status:m.Unknown}))),e.createElement(me,{$isFooterOpen:I,$borderRadius:"16px 0 0 16px"},R.map(t=>e.createElement(ye,{key:t.id,onClick:()=>A(t.id)},e.createElement(y,{value:s.includes(t.id),onChange:()=>A(t.id)}),e.createElement(g,{size:p.XS},t.name))))),e.createElement(be,{$width:"60%"},e.createElement(u,{$padding:"2px 12px"},e.createElement(g,{size:p.XS},"Configurations")),e.createElement(me,{$isFooterOpen:I,$borderRadius:"0 16px 16px 0"},e.createElement(u,{$gap:12},e.createElement(h,{size:f.S,label:"Automatic Rollout "+(V.automaticRollout?"Enabled":"Disabled"),tooltip:"Odigos automatically triggers a one-time rollout for workloads when instrumenting or uninstrumenting, ensuring that changes are applied without requiring manual intervention. When automatic rollout is enabled, Odigos will proactively restart workloads as needed to apply updated instrumentation. Users do not need to manually trigger rollouts after adding or removing sources. Any new pods created after enabling or disabling the agent (via automatic rollout, autoscaling, etc.) will still have the agent injected, regardless of this setting. When set to false, additional configurations related to automated rollouts or rollbacks take effect.",value:V.automaticRollout,onChange:e=>O("automaticRollout",e)})))))),I&&e.createElement(he,null,S?e.createElement(k,{label:"Applying configurations...",icon:B,withGradient:!0,typographyProps:{size:p.XXS}}):D?e.createElement(g,{size:p.XXS,color:$.v2.colors.red[500]},D):null,e.createElement("div",{style:{width:"150px"}},e.createElement(C,{variant:w.Secondary,label:"Cancel",fullWidth:!0,onClick:()=>{N(),v([])},disabled:S})),e.createElement("div",{style:{width:"150px"}},e.createElement(C,{variant:w.Primary,label:"Apply",fullWidth:!0,onClick:async()=>{z(!0);const{error:e}=await x(s,V);z(!1),e?M(e):o()},disabled:S}))))};var ke;!function(e){e.Id="id",e.Name="name",e.Type="type",e.Status="status",e.OdigosVersion="odigosVersion",e.ConnectedSince="connectedSince",e.LastActivity="lastActivity"}(ke||(ke={}));const Ce=[{key:ke.Name,label:"Name",sortable:!0},{key:ke.Type,label:"Type",sortable:!0,textAlign:"right"},{key:ke.Status,label:"Status",sortable:!0},{key:ke.OdigosVersion,label:"Odigos Version",sortable:!0},{key:ke.ConnectedSince,label:"Connected Since",sortable:!0},{key:ke.LastActivity,label:"Last Activity",sortable:!0}],we=({tableRowsMaxHeight:i,connections:n,getConnections:s,onClickConnection:r,deleteConnection:d,applyConfigurations:c})=>{const{formatTimeAgo:u}=v(),[g,p]=t(!1),[y,h]=t(n||[]),[f,k]=t(""),C=l(async()=>{try{p(!0),h(await s()??[])}catch(e){}finally{p(!1)}},[]);o(()=>{y.length||C()},[y.length,C]);const[z,D]=t([]),[M,V]=t(!1),O=a(()=>y.filter(e=>!f||e.name.toLowerCase().includes(f.toLowerCase())).map(t=>({onClick:()=>r(t.id),isSelected:z.includes(t.id),onSelect:()=>D(e=>[...e,t.id]),onDeselect:()=>D(e=>e.filter(e=>e!==t.id)),cells:[{key:ke.Id,rawValue:t.id},{key:ke.Name,rawValue:t.name},{key:ke.Type,rawValue:t.type},{key:ke.Status,rawValue:t.status,component:()=>(t=>{const a=t===S.Success?"Connection live":"Connection lost",l=t===S.Success?X:Z;return e.createElement(b,{status:t,label:a,leftIcon:l})})(t.status)},{key:ke.OdigosVersion,rawValue:t.odigosVersion},{key:ke.ConnectedSince,rawValue:t.connectedAt?u(t.connectedAt):"-"},{key:ke.LastActivity,rawValue:t.lastSeenAt?u(t.lastSeenAt):"-"}]})),[y,z,f]);return e.createElement(x,null,e.createElement($,{backgroundWeight:"1000",icon:G,title:"Connections",badge:{label:y.length.toString(),status:m.Unknown},search:{placeholder:"Search by cluster name",value:f,onChange:e=>k(e)},actions:[{id:L(),type:P.Button,buttonProps:{variant:w.Secondary,size:R.S,label:"",leftIcon:K,onClick:()=>C(),disabled:g}},{id:L(),type:P.Button,buttonProps:{variant:w.Primary,size:R.S,label:"Configurations",rightIcon:J,onClick:()=>V(!0)}}]},e.createElement(I,{variant:A.Pretty,maxHeight:i,isLoading:g,withCheckboxes:!0,columns:Ce,rows:O,rowActionsPushRightPosition:M?`calc(${ce} - 24px)`:void 0,getRowActions:({cells:e})=>[{id:L(),label:"",leftIcon:J,onClick:()=>{const t=e.find(e=>e.key===ke.Id)?.rawValue;t&&(D([t.toString()]),V(!0))},variant:w.Secondary,size:R.S},{id:L(),label:"",leftIcon:Q,disabled:e.find(e=>e.key===ke.Status)?.rawValue===S.Success,onClick:async()=>{const t=e.find(e=>e.key===ke.Id)?.rawValue;t&&(await d(t.toString()),C())},variant:w.Secondary,size:R.S}]}),e.createElement(fe,{isOpen:M,onClose:()=>{D([]),V(!1)},connections:y,selectedConnectionIds:z,setSelectedConnectionIds:D,onApply:c})))},ve=i.div`
|
|
50
50
|
display: flex;
|
|
51
51
|
align-items: center;
|
|
52
52
|
justify-content: space-between;
|
|
@@ -59,9 +59,9 @@ import e,{useState as a,useMemo as t,useCallback as l,useEffect as o}from"react"
|
|
|
59
59
|
background: ${({theme:e})=>e.v2.colors.silver[700]};
|
|
60
60
|
}
|
|
61
61
|
`,xe=i.div`
|
|
62
|
-
animation-name: ${
|
|
63
|
-
`,$e=({pod:l,getExtendedPodInfo:i,onClose:n})=>{const{formatTimeAgo:r}=
|
|
62
|
+
animation-name: ${z.animations.fade.in};
|
|
63
|
+
`,$e=({pod:l,getExtendedPodInfo:i,onClose:n})=>{const{formatTimeAgo:r}=v(),{clickCopy:c,isCopied:u}=D(),[p,b]=t(null),[m,y]=t(!1);o(()=>{l?i(l.namespace,l.name).then(e=>b(e??null)):(b(null),y(!1))},[l]);const h=a(()=>[{id:L(),title:"Node",label:p?.node??"-",withCopy:!0},{id:L(),title:"Status",badge:{status:M(p?.status),label:p?.status??"-"}}],[p]),f=a(()=>p?.containers?.map(e=>({id:L(),items:[{id:L(),title:"Container",label:e.name??"-"},{id:L(),title:"Status",badge:{status:M(e.status),label:e.status??"-"},label:e.startedAt?`(since ${r(e.startedAt)})`:""},{id:L(),title:"Image Version",label:e.image?.split(":")?.[1]??"-"},{id:L(),title:"Image Repository",label:e.image?.split(":")?.[0]??"-"},{id:L(),title:"Restarts",label:e.restarts.toString()},{id:L(),title:"State Reason",label:e.stateReason??"-"},{id:L(),title:"Resource Requests",label:`CPU ${e.resources.requests.cpu} • Memory ${e.resources.requests.memory}`},{id:L(),title:"Resource Limits",label:`CPU ${e.resources.limits.cpu} • Memory ${e.resources.limits.memory}`}]}))||[],[p]);return e.createElement(d,{isOpen:!!l,header:{icon:_,title:"Pod Information",onClose:n}},p?null:e.createElement(V,null,e.createElement(O,null)),p?e.createElement(e.Fragment,null,e.createElement($,{icon:_,title:p.name,withCopyTitle:!0},e.createElement(s,{$gap:24},e.createElement(N,{cellsPerRow:2,items:h}),f.length>0&&e.createElement(s,{$gap:12},e.createElement(ve,{onClick:()=>y(e=>!e)},e.createElement(g,null,"Containers Overview"),e.createElement(T,{icon:m?ee:te})),m&&f.map(({id:t,items:a})=>e.createElement(xe,{key:t},e.createElement(N,{cellsPerRow:2,items:a})))))),e.createElement($,{icon:ae,title:"Kubectl Commands"},e.createElement(s,{$gap:12},e.createElement(j,{value:`kubectl get pod ${p.name} -n ${p.namespace} -o yaml`}),e.createElement(j,{value:`kubectl describe pod ${p.name} -n ${p.namespace}`}),e.createElement(j,{value:`kubectl logs ${p.name} -n ${p.namespace}`}))),e.createElement($,{icon:le,title:"YAML",actions:[{id:L(),type:P.Button,buttonProps:{label:"",leftIcon:u?X:oe,onClick:()=>c(p.manifestYAML),disabled:u,size:R.S,variant:w.Secondary}}]},e.createElement("div",{style:{padding:"0 12px"}},e.createElement(Y,{code:p.manifestYAML,language:"yaml",theme:"duotoneDark"})))):null)};var Le;!function(e){e.PodName="podName",e.Ready="ready",e.Started="started",e.Status="status",e.Restarts="restarts",e.NodeName="nodeName",e.Age="age",e.DockerImage="dockerImage"}(Le||(Le={}));const Pe=[{key:Le.PodName,label:"Pod Name",sortable:!0},{key:Le.Ready,label:"Ready",sortable:!0,textAlign:"right"},{key:Le.Started,label:"Started",sortable:!0,textAlign:"right"},{key:Le.Status,label:"Status",sortable:!0},{key:Le.Restarts,label:"Restarts",sortable:!0,textAlign:"right"},{key:Le.NodeName,label:"Node Name",sortable:!0},{key:Le.Age,label:"Age",sortable:!0,textAlign:"right"},{key:Le.DockerImage,label:"Docker Image",sortable:!0,textAlign:"right"}],Re=({isLoading:l,tableRowsMaxHeight:o,pods:i,getExtendedPodInfo:s})=>{const r=n(),{formatTimeAgo:d}=v(),[c,u]=t(null),g=a(()=>{const t=t=>t?e.createElement(ie,{fill:F(r,S.Success,"500"),size:20}):e.createElement(ne,{fill:F(r,S.Error,"500"),size:20});return i.map(a=>({onClick:()=>u(a),cells:[{key:Le.PodName,rawValue:a.name},{key:Le.Ready,rawValue:a.ready,component:()=>t(a.ready)},{key:Le.Started,rawValue:a.started,component:()=>t(a.started)},{key:Le.Status,rawValue:a.status,component:()=>{return t=a.status,e.createElement(b,{status:M(t),label:t});var t}},{key:Le.Restarts,rawValue:a.restartsCount.toString()},{key:Le.NodeName,rawValue:a.nodeName},{key:Le.Age,rawValue:d(a.creationTimestamp)},{key:Le.DockerImage,rawValue:a.image}]}))},[i,r]);return e.createElement($,{icon:_,title:"Pods"},e.createElement(I,{variant:A.Data,maxHeight:o,isLoading:l,columns:Pe,rows:g}),e.createElement($e,{pod:c,getExtendedPodInfo:s,onClose:()=>u(null)}))};var Ie;!function(e){e.Gateway="gateway",e.Node="node"}(Ie||(Ie={}));const Ae=[{value:Ie.Gateway,label:"Gateway"},{value:Ie.Node,label:"Node Collector"}],Se=i.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: space-between;
|
|
67
|
-
`,
|
|
67
|
+
`,ze=({selectedTab:t,setSelectedTab:a,onClickDownloadDiagnose:l,onClickRefresh:o,isLoading:i})=>e.createElement(Se,null,e.createElement(u,{$gap:12},e.createElement(u,{$gap:8},e.createElement(se,{size:32}),e.createElement(g,{size:p.M,weight:500},"Pipeline Collectors")),e.createElement(H,{options:Ae,selected:t,setSelected:a})),e.createElement(u,{$gap:8},l&&e.createElement(C,{label:"Download Diagnose",leftIcon:re,size:R.S,variant:w.Text,onClick:l}),o&&e.createElement(C,{label:"Refresh",leftIcon:K,size:R.S,variant:w.Text,onClick:o,loading:i}))),De=({isOpen:t,onClose:a,title:l,yaml:o})=>{const{clickCopy:i,isCopied:n}=D();return e.createElement(d,{isOpen:t,header:{icon:de,title:l,onClose:a}},o?e.createElement($,{icon:le,title:"YAML",actions:[{id:L(),type:P.Button,buttonProps:{label:"",leftIcon:n?X:oe,onClick:()=>i(o),disabled:n,size:R.S,variant:w.Secondary}}]},e.createElement("div",{style:{padding:"0 12px"}},e.createElement(Y,{code:o,language:"yaml",theme:"duotoneDark"}))):e.createElement(U,{title:"No YAML found",subTitle:"The YAML for this resource is not available"}))};var Me;!function(e){e.ManifestYaml="manifest-yaml",e.ConfigMapYaml="configmap-yaml"}(Me||(Me={}));const Ve=({icon:a,title:l,badge:o,statusCard:i,textCards:n,manifestYaml:s,configMapYaml:r})=>{const[d,c]=t(null);return e.createElement($,{icon:a,title:l,badge:o,actions:[{id:L(),type:P.ButtonDropData,buttonProps:{variant:w.Secondary,size:R.S,label:"View YAML",onClick:e=>c(e)},dropDataItems:[{id:Me.ManifestYaml,label:l,icon:le},{id:Me.ConfigMapYaml,label:"ConfigMap",icon:le}]}]},e.createElement(u,{$gap:16},e.createElement(W,{...i}),n.map(t=>e.createElement(E,{key:t.title,...t}))),e.createElement(De,{isOpen:d===Me.ManifestYaml,onClose:()=>c(null),title:l,yaml:s}),e.createElement(De,{isOpen:d===Me.ConfigMapYaml,onClose:()=>c(null),title:"ConfigMap",yaml:r}))},Oe=e=>{switch(e){case q.Healthy:return"All desired replicas are updated, available, and ready";case q.Updating:return"Workload is progressing towards desired state (e.g., updating pods)";case q.Degraded:return"Progressing but with availability issues (e.g., not enough available replicas)";case q.Failed:return"Progress deadline exceeded or an unrecoverable error occurred";case q.Down:return"No available replicas";case q.Unknown:return"Status cannot be determined from current signals";default:return"Status unknown"}},Ne=({tableRowsMaxHeight:i,getGatewayInfo:n,getGatewayPods:s,getNodeCollectorInfo:r,getNodeCollectorPods:d,getExtendedPodInfo:c})=>{const{formatTimeAgo:u}=v(),[g,p]=t(!1),[b,y]=t(Ie.Gateway),[h,f]=t(null),[k,C]=t([]),[w,$]=t(null),[L,P]=t([]),R=l(async()=>{p(!0);try{switch(b){case Ie.Gateway:f(await n()??null),C(await s()??[]);break;case Ie.Node:$(await r()??null),P(await d()??[])}}catch(e){}p(!1)},[b]);o(()=>{R()},[R]);const I=a(()=>(e=>{switch(e){case Ie.Gateway:return"Deployment";case Ie.Node:return"DaemonSet";default:return"Pipeline Collectors"}})(b),[b]),A=a(()=>((e,t,a,l)=>{const o={status:m.Disabled,label:"No rollouts yet"};let i=!1,n=null;switch(e){case Ie.Gateway:i=t?.rolloutInProgress??!1,n=t?.lastRolloutAt??null;break;case Ie.Node:i=a?.rolloutInProgress??!1,n=a?.lastRolloutAt??null;break;default:return o}return i?{status:S.Info,label:"Rollout in progress",rightIcon:K,useSecondaryTone:!0}:n?{status:m.Disabled,label:`Last Rollout: ${l(n)}`}:o})(b,h,w,u),[h,w,b,u]),z=a(()=>((e,t,a,l)=>{let o=l?S.Info:m.Unknown,i=l?"Loading":q.Unknown,n=l?"Fetching data...":Oe(q.Unknown);switch(e){case Ie.Gateway:o=t?.status?M(t?.status):o,i=t?.status??i,n=t?.status?Oe(t.status):n;break;case Ie.Node:o=a?.status?M(a?.status):o,i=a?.status??i,n=a?.status?Oe(a.status):n}return{status:o,title:i,description:n}})(b,h,w,g),[h,w,b,g]),D=a(()=>((e,t,a,l)=>{switch(e){case Ie.Gateway:return[{title:"HPA Spec (Replicas)",cells:[{label:"Min.",value:t?.hpa?.min.toString()??"-",isLoading:l},{label:"Max.",value:t?.hpa?.max.toString()??"-",isLoading:l},{label:"Current",value:t?.hpa?.current.toString()??"-",isLoading:l},{label:"Desired",value:t?.hpa?.desired.toString()??"-",isLoading:l}]},{title:"Requests",cells:[{label:"CPU",value:t?.resources?.requests.cpu??"-",isLoading:l},{label:"Memory",value:t?.resources?.requests.memory??"-",isLoading:l}]},{title:"Limits",cells:[{label:"CPU",value:t?.resources?.limits.cpu??"-",isLoading:l},{label:"Memory",value:t?.resources?.limits.memory??"-",isLoading:l}]},{title:"Docker Image",cells:[{value:t?.imageVersion??"-",isLoading:l}]}];case Ie.Node:return[{title:"Nodes",cells:[{label:"Desired",value:a?.nodes?.desired.toString()??"-",isLoading:l},{label:"Ready",value:a?.nodes?.ready.toString()??"-",isLoading:l}]},{title:"Requests",cells:[{label:"CPU",value:a?.resources?.requests.cpu??"-",isLoading:l},{label:"Memory",value:a?.resources?.requests.memory??"-",isLoading:l}]},{title:"Limits",cells:[{label:"CPU",value:a?.resources?.limits.cpu??"-",isLoading:l},{label:"Memory",value:a?.resources?.limits.memory??"-",isLoading:l}]},{title:"Docker Image",cells:[{value:a?.imageVersion??"-",isLoading:l}]}];default:return[]}})(b,h,w,g),[h,w,b,g]),V=a(()=>(b===Ie.Gateway?h?.manifestYAML:w?.manifestYAML)??"",[h,w,b]),O=a(()=>(b===Ie.Gateway?h?.configMapYAML:w?.configMapYAML)??"",[h,w,b]),N=a(()=>b===Ie.Gateway?k:L,[k,L,b]);return e.createElement(x,null,e.createElement(ze,{isLoading:g,selectedTab:b,setSelectedTab:y,onClickDownloadDiagnose:void 0,onClickRefresh:R}),e.createElement(Ve,{icon:de,title:I,badge:A,statusCard:z,textCards:D,manifestYaml:V,configMapYaml:O}),e.createElement(Re,{isLoading:g,tableRowsMaxHeight:i,pods:N,getExtendedPodInfo:c}))};export{we as CentralConnections,Ne as PipelineCollectors};
|
package/lib/containers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as a,forwardRef as i,useRef as n,useImperativeHandle as o,useMemo as l,Fragment as r,useCallback as s,Children as c}from"react";import d,{css as u,useTheme as p}from"styled-components";import{E as m,G as h,H as g,K as y,J as v,M as b,Q as f,R as x,U as $,V as C,X as S,Y as k,Z as w,_ as T,$ as D,a0 as N,a1 as E,o as O,a2 as F,a3 as I,a4 as A,a5 as M,a6 as R,a7 as L,a8 as P,a9 as K,aa as j,ab as V,ac as q,ad as z,ae as H,af as B,n as W,ag as _,ah as U,ai as J,aj as G,ak as Y,al as X,am as Z,F as Q,an as ee,ao as te,ap as ae,aq as ie,ar as ne,as as oe,at as le,au as re,av as se,aw as ce,a as de,ax as ue,
|
|
1
|
+
import e,{useState as t,useEffect as a,forwardRef as i,useRef as n,useImperativeHandle as o,useMemo as l,Fragment as r,useCallback as s,Children as c}from"react";import d,{css as u,useTheme as p}from"styled-components";import{E as m,G as h,H as g,K as y,J as v,M as b,Q as f,R as x,U as $,V as C,X as S,Y as k,Z as w,_ as T,$ as D,a0 as N,a1 as E,o as O,a2 as F,a3 as I,a4 as A,a5 as M,a6 as R,a7 as L,a8 as P,a9 as K,aa as j,ab as V,ac as q,ad as z,ae as H,af as B,n as W,ag as _,ah as U,ai as J,aj as G,ak as Y,al as X,am as Z,F as Q,an as ee,ao as te,ap as ae,aq as ie,ar as ne,as as oe,at as le,au as re,av as se,aw as ce,a as de,ax as ue,ay as pe,az as me,aA as he,aB as ge,aC as ye,aD as ve,aE as be,aF as fe,aG as xe,aH as $e,aI as Ce,aJ as Se,aK as ke,aL as we,r as Te,N as De,aM as Ne,aN as Ee,aO as Oe,aP as Fe,aQ as Ie,aR as Ae,aS as Me,aT as Re,s as Le,aU as Pe,aV as Ke,aW as je,aX as Ve,aY as qe,aZ as ze,a_ as He,a$ as Be,b0 as We,b1 as _e,b2 as Ue,b3 as Je,b4 as Ge,b5 as Ye,b6 as Xe,b7 as Ze,b8 as Qe,b9 as et,ba as tt,bb as at,bc as it,bd as nt,be as ot,bf as lt,bg as rt,bh as st,bi as ct,bj as dt,bk as ut,bl as pt,bm as mt,bn as ht,bo as gt,bp as yt,bq as vt,br as bt,bs as ft,bt as xt,bu as $t,bv as Ct,bw as St,bx as kt,by as wt,bz as Tt,bA as Dt,bB as Nt,bC as Et,bD as Ot,bE as Ft,bF as It,bG as At,bH as Mt,bI as Rt,bJ as Lt,bK as Pt,bL as Kt,bM as jt,bN as Vt,bO as qt,bP as zt,g as Ht,bQ as Bt,bR as Wt,bS as _t,bT as Ut,bU as Jt,bV as Gt,bW as Yt,bX as Xt,bY as Zt,bZ as Qt,b_ as ea,b$ as ta,c0 as aa,c1 as ia,c2 as na,c3 as oa,c4 as la,c5 as ra,c6 as sa,c7 as ca,p as da,u as ua,c8 as pa,c9 as ma,ca as ha,cb as ga,cc as ya,cd as va,ce as ba}from"./chunks/ui-components-29317e94.js";import{VSquareIcon as fa,XSquareIcon as xa,EditIcon as $a,TrashIcon as Ca,OdigosLogoText as Sa,PlusIcon as ka,SearchIcon as wa,FilterIcon as Ta,DataStreamIcon as Da,VIcon as Na,OdigosLogo as Ea,ArrowIcon as Oa,RefreshLeftArrowIcon as Fa,NotificationIcon as Ia,UserIcon as Aa,ImageErrorIcon as Ma,OverviewIcon as Ra,InstrumentationRuleIcon as La,ActionIcon as Pa,SourceIcon as Ka,DestinationIcon as ja,SlackLogo as Va,KeyIcon as qa,TerminalIcon as za,ExclamationTriangleIcon as Ha,TraceViewIcon as Ba}from"./icons.js";import{MarkerType as Wa,useNodesState as _a,useEdgesState as Ua,applyNodeChanges as Ja}from"@xyflow/react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";const Ga=e=>{const{type:t,name:a,notes:i,signals:n,disabled:o,fields:{collectContainerAttributes:l,collectReplicaSetAttributes:r,collectWorkloadId:s,collectClusterId:c,labelsAttributes:d,annotationsAttributes:u,clusterAttributes:p,overwriteExistingValues:v,attributeNamesToDelete:b,renames:f,piiCategories:x,fallbackSamplingRatio:$,samplingPercentage:C,endpointsFilters:S,servicesNameFilters:k,attributeFilters:w}}=e,T=[{title:m.TYPE,value:t},{type:h.ActiveStatus,title:m.STATUS,value:String(!o)},{type:h.Monitors,title:m.SIGNALS_FOR_PROCESSING,value:n?.map(e=>e.toLowerCase()).join(", ")||""},{title:m.NAME,value:a||""},{title:m.NOTES,value:i||""},{type:h.Divider}];if(t===g.K8sAttributes&&(T.push({title:"Collect Container Attributes",value:String(l)}),T.push({title:"Collect ReplicaSet Attributes",value:String(r)}),T.push({title:"Collect Workload ID",value:String(s)}),T.push({title:"Collect Cluster ID",value:String(c)}),d?.length&&T.push({type:h.Divider}),d?.forEach(({labelKey:e,attributeKey:t,from:a},i)=>{let n="";n+=`Label Key: ${e}\n`,n+=`Attribute Key: ${t}\n`,n+=`From: ${a||y.Pod}\n`,T.push({title:"Label"+(d.length>1?` #${i+1}`:""),value:n})}),u?.length&&T.push({type:h.Divider}),u?.forEach(({annotationKey:e,attributeKey:t,from:a},i)=>{let n="";n+=`Annotation Key: ${e}\n`,n+=`Attribute Key: ${t}\n`,n+=`From: ${a||y.Pod}\n`,T.push({title:"Annotation"+(u.length>1?` #${i+1}`:""),value:n})})),t===g.AddClusterInfo){T.push({title:"Overwrite Existing Values",value:String(v||!1)});let e="";p?.forEach(({attributeName:t,attributeStringValue:a},i)=>{e+=`${t}: ${a}`,i<p.length-1&&(e+=", ")}),T.push({title:"Attributes",value:e})}if(t===g.DeleteAttributes){let e="";b?.forEach((t,a)=>{e+=t,a<b.length-1&&(e+=", ")}),T.push({title:"Attributes",value:e})}if(t===g.RenameAttributes){let e="";const t=Object.entries(f||{});t.forEach(([a,i],n)=>{e+=`${a}: ${i}`,n<t.length-1&&(e+=", ")}),T.push({title:"Attributes",value:e})}if(t===g.PiiMasking){let e="";x?.forEach((t,a)=>{e+=t,a<x.length-1&&(e+=", ")}),T.push({title:"Categories",value:e})}return t===g.ErrorSampler&&T.push({title:"Sampling Ratio",value:String($)}),t===g.ProbabilisticSampler&&T.push({title:"Sampling Percentage",value:String(C)}),t===g.LatencySampler&&S?.forEach(({serviceName:e,httpRoute:t,minimumLatencyThreshold:a,fallbackSamplingRatio:i},n)=>{let o="";o+=`Service Name: ${e}\n`,o+=`HTTP Route: ${t}\n`,o+=`Min. Latency: ${a}\n`,o+=`Fallback Sampling Ratio: ${i}`,T.push({title:"Endpoint"+(S.length>1?` #${n+1}`:""),value:o})}),t===g.ServiceNameSampler&&k?.forEach(({serviceName:e,samplingRatio:t,fallbackSamplingRatio:a},i)=>{let n="";n+=`Service Name: ${e}\n`,n+=`Sampling Ratio: ${t}\n`,n+=`Fallback Sampling Ratio: ${a}`,T.push({title:"Filter"+(k.length>1?` #${i+1}`:""),value:n})}),t===g.SpanAttributeSampler&&w?.forEach(({serviceName:e,attributeKey:t,fallbackSamplingRatio:a,condition:i},n)=>{let o="";o+=`Service Name: ${e}\n`,o+=`Attribute Key: ${t}\n`,o+=`Fallback Sampling Ratio: ${a}\n`;const l=Object.keys(i)[0];o+=`Condition: ${l}\n`,o+=`Operation: ${i[l]?.operation}\n`,o+=`Expected Value: ${i[l]?.expectedValue}`,"jsonCondition"===l&&(o+=`\nJSON Path: ${i[l].jsonPath}`),T.push({title:"Filter"+(w.length>1?` #${n+1}`:""),value:o})}),T},Ya=x.PiiCategories,Xa=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
4
|
gap: 32px;
|
package/lib/functions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bx as capitalizeFirstLetter,cy as cleanObjectEmptyStringsValues,bs as compareCondition,bz as deepClone,aC as filterActions,b5 as filterDestinations,b6 as filterDestinationsByStream,b3 as filterSources,b4 as filterSourcesByStream,cz as flattenObjectKeys,aW as formatBytes,cb as formatDuration,i as generateId,aj as getActionIcon,av as getConditionsBooleans,a_ as getContainersIcons,c6 as getContainersInstrumentedCount,aZ as getDestinationIcon,aJ as getEntityIcon,aU as getEntityId,aE as getEntityLabel,cA as getIdFromSseTarget,aY as getInstrumentationRuleIcon,cB as getMainContainerLanguage,bC as getMetricForEntity,cC as getMonitorIcon,cD as getPlatformIcon,cE as getPlatformLabel,bL as getProgrammingLanguageIcon,cd as getRecursiveValues,cF as getSseTargetFromId,x as getStatusColor,q as getStatusFromPodStatus,aA as getStatusIcon,bV as getStatusTypeFromOdigosHealth,cG as getValueForRange,bP as getWorkloadId,bw as getYamlFieldsForDestination,bW as hasUnhealthyInstances,X as isEmpty,cH as isLegalK8sLabel,c7 as isOverTime,b_ as isStringABoolean,cI as isTimeElapsed,cJ as isValidVersion,ax as mapConditions,br as mapDestinationFieldsForDisplay,aV as mapExportedSignals,cK as numbersOnly,b$ as parseBooleanFromString,cL as parseJsonStringToPrettyString,cM as removeEmptyValuesFromObject,bt as safeJsonParse,cN as safeJsonStringify,aO as sleep,bd as splitCamelString,cO as stringifyNonStringValues}from"./chunks/ui-components-29317e94.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ah as useActionFormData,
|
|
1
|
+
export{ah as useActionFormData,cS as useBodyScroll,b7 as useClickNode,bQ as useClickNotification,b0 as useConnection,b2 as useContainerSize,p as useCopy,bj as useDataStreamFormData,bv as useDestinationFormData,u as useGenericForm,cT as useInfiniteScroll,bM as useInstrumentationRuleFormData,aa as useKeyDown,bc as useOnClickOutside,b8 as usePopup,bi as useSessionStorage,c0 as useSourceFormData,c4 as useSourceSelectionFormData,g as useTimeAgo,bO as useTransition}from"./chunks/ui-components-29317e94.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{bo as AddButton,bX as CopyText,bT as EditButton,bS as Flow,cU as MapItemNode,cV as NoDataNode,bp as NoteBackToSummary,bZ as PodContainer,c1 as SourceContainer}from"./chunks/ui-components-29317e94.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cR as useActiveNodeStore,ca as useDarkMode,b1 as useDataStreamStore,a9 as useDrawerStore,ag as useEntityStore,aB as useFilterStore,aS as useInstrumentStore,an as useModalStore,a8 as useNotificationStore,a7 as usePendingStore,aR as useSelectedStore,bk as useSetupStore}from"./chunks/ui-components-29317e94.js";import"./icons.js";import"react";import"styled-components";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/theme/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as opacity from './opacity';
|
|
2
|
+
import * as palletes from './palletes';
|
|
2
3
|
import * as animations from './animations';
|
|
3
4
|
import { useTheme } from 'styled-components';
|
|
4
5
|
declare const Theme: {
|
|
@@ -7,6 +8,7 @@ declare const Theme: {
|
|
|
7
8
|
}>;
|
|
8
9
|
useTheme: typeof useTheme;
|
|
9
10
|
opacity: typeof opacity;
|
|
11
|
+
palletes: typeof palletes;
|
|
10
12
|
animations: typeof animations;
|
|
11
13
|
};
|
|
12
14
|
export default Theme;
|
|
@@ -1,6 +1,143 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
2
|
+
export declare const baseTheme: {
|
|
3
|
+
v2: {
|
|
4
|
+
text: {
|
|
5
|
+
size: {
|
|
6
|
+
xxxs: number;
|
|
7
|
+
xxs: number;
|
|
8
|
+
xs: number;
|
|
9
|
+
s: number;
|
|
10
|
+
m: number;
|
|
11
|
+
l: number;
|
|
12
|
+
xl: number;
|
|
13
|
+
xxl: number;
|
|
14
|
+
xxxl: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
colors: {
|
|
18
|
+
black: {
|
|
19
|
+
'500': string;
|
|
20
|
+
};
|
|
21
|
+
white: {
|
|
22
|
+
'500': string;
|
|
23
|
+
};
|
|
24
|
+
purple: {
|
|
25
|
+
'100': string;
|
|
26
|
+
'200': string;
|
|
27
|
+
'300': string;
|
|
28
|
+
'400': string;
|
|
29
|
+
'500': string;
|
|
30
|
+
'600': string;
|
|
31
|
+
'700': string;
|
|
32
|
+
'800': string;
|
|
33
|
+
'900': string;
|
|
34
|
+
};
|
|
35
|
+
green: {
|
|
36
|
+
'100': string;
|
|
37
|
+
'200': string;
|
|
38
|
+
'300': string;
|
|
39
|
+
'400': string;
|
|
40
|
+
'500': string;
|
|
41
|
+
'600': string;
|
|
42
|
+
'700': string;
|
|
43
|
+
'800': string;
|
|
44
|
+
'900': string;
|
|
45
|
+
};
|
|
46
|
+
grey: {
|
|
47
|
+
'25': string;
|
|
48
|
+
'50': string;
|
|
49
|
+
'100': string;
|
|
50
|
+
'150': string;
|
|
51
|
+
'200': string;
|
|
52
|
+
'300': string;
|
|
53
|
+
'400': string;
|
|
54
|
+
'500': string;
|
|
55
|
+
'600': string;
|
|
56
|
+
'700': string;
|
|
57
|
+
'800': string;
|
|
58
|
+
'900': string;
|
|
59
|
+
};
|
|
60
|
+
silver: {
|
|
61
|
+
'25': string;
|
|
62
|
+
'50': string;
|
|
63
|
+
'100': string;
|
|
64
|
+
'200': string;
|
|
65
|
+
'300': string;
|
|
66
|
+
'400': string;
|
|
67
|
+
'500': string;
|
|
68
|
+
'600': string;
|
|
69
|
+
'700': string;
|
|
70
|
+
'750': string;
|
|
71
|
+
'800': string;
|
|
72
|
+
'900': string;
|
|
73
|
+
'1000': string;
|
|
74
|
+
};
|
|
75
|
+
red: {
|
|
76
|
+
'100': string;
|
|
77
|
+
'200': string;
|
|
78
|
+
'300': string;
|
|
79
|
+
'400': string;
|
|
80
|
+
'500': string;
|
|
81
|
+
'600': string;
|
|
82
|
+
'700': string;
|
|
83
|
+
'800': string;
|
|
84
|
+
'900': string;
|
|
85
|
+
'1000': string;
|
|
86
|
+
};
|
|
87
|
+
blue: {
|
|
88
|
+
'100': string;
|
|
89
|
+
'200': string;
|
|
90
|
+
'300': string;
|
|
91
|
+
'400': string;
|
|
92
|
+
'500': string;
|
|
93
|
+
'600': string;
|
|
94
|
+
'700': string;
|
|
95
|
+
'800': string;
|
|
96
|
+
'900': string;
|
|
97
|
+
'1000': string;
|
|
98
|
+
};
|
|
99
|
+
yellow: {
|
|
100
|
+
'100': string;
|
|
101
|
+
'200': string;
|
|
102
|
+
'300': string;
|
|
103
|
+
'400': string;
|
|
104
|
+
'500': string;
|
|
105
|
+
'600': string;
|
|
106
|
+
'700': string;
|
|
107
|
+
'800': string;
|
|
108
|
+
'900': string;
|
|
109
|
+
'1000': string;
|
|
110
|
+
};
|
|
111
|
+
beige: {
|
|
112
|
+
'600': string;
|
|
113
|
+
};
|
|
114
|
+
pink: {
|
|
115
|
+
'600': string;
|
|
116
|
+
};
|
|
117
|
+
orange: {
|
|
118
|
+
'600': string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
colors: {
|
|
123
|
+
majestic_blue: string;
|
|
124
|
+
majestic_blue_soft: string;
|
|
125
|
+
orange_og: string;
|
|
126
|
+
orange_soft: string;
|
|
127
|
+
dark_red: string;
|
|
128
|
+
darker_red: string;
|
|
129
|
+
darkest_red: string;
|
|
130
|
+
darkest_red_hover: string;
|
|
131
|
+
dark_green: string;
|
|
132
|
+
};
|
|
133
|
+
text: {};
|
|
134
|
+
font_family: {
|
|
135
|
+
primary: string;
|
|
136
|
+
secondary: string;
|
|
137
|
+
code: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
export declare const darkModeTheme: DefaultTheme;
|
|
141
|
+
export declare const lightModeTheme: DefaultTheme;
|
|
4
142
|
export type Theme = typeof darkModeTheme | typeof lightModeTheme;
|
|
5
143
|
export declare const getTheme: (darkMode: boolean) => Theme;
|
|
6
|
-
export {};
|
package/lib/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{o as default}from"./chunks/ui-components-
|
|
1
|
+
export{o as default}from"./chunks/ui-components-29317e94.js";import"styled-components";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -26,6 +26,14 @@ export interface SVGProps {
|
|
|
26
26
|
strokeWidth?: number;
|
|
27
27
|
}
|
|
28
28
|
export type SVG = FC<SVGProps>;
|
|
29
|
+
export declare enum ListDirection {
|
|
30
|
+
Horizontal = "horizontal",
|
|
31
|
+
Vertical = "vertical"
|
|
32
|
+
}
|
|
33
|
+
export declare enum SortDirection {
|
|
34
|
+
Ascending = "ascending",
|
|
35
|
+
Descending = "descending"
|
|
36
|
+
}
|
|
29
37
|
export declare enum Tier {
|
|
30
38
|
Community = "community",
|
|
31
39
|
Cloud = "cloud",
|
|
@@ -116,10 +124,6 @@ export declare enum OtherStatusType {
|
|
|
116
124
|
Disabled = "disabled",
|
|
117
125
|
Unknown = "unknown"
|
|
118
126
|
}
|
|
119
|
-
export declare enum SortDirection {
|
|
120
|
-
Ascending = "asc",
|
|
121
|
-
Descending = "desc"
|
|
122
|
-
}
|
|
123
127
|
export interface Condition {
|
|
124
128
|
status: StatusType | OtherStatus;
|
|
125
129
|
type: string;
|