@odigos/ui-kit 0.0.223 → 0.0.224

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.
@@ -4,6 +4,7 @@ export interface NavbarProps {
4
4
  height: CSSProperties['height'];
5
5
  icons: {
6
6
  id: string;
7
+ label: string;
7
8
  icon: SVG;
8
9
  selected: boolean;
9
10
  onClick: () => void;
@@ -3,6 +3,7 @@ import type { SVG } from '@/types';
3
3
  import { type ButtonProps } from '../button';
4
4
  export interface NoDataProps {
5
5
  icon?: SVG;
6
+ hideIcon?: boolean;
6
7
  title?: string;
7
8
  subTitle?: string;
8
9
  button?: Omit<ButtonProps, 'variant'>;
@@ -1,5 +1,6 @@
1
1
  import { type FC, type CSSProperties } from 'react';
2
2
  import { HoverAction } from '../hover-actions';
3
+ import { type NoDataProps } from '../no-data';
3
4
  import { type TableColumn, type TableRow, TableVariant } from './types';
4
5
  export * from './types';
5
6
  export interface TableProps {
@@ -8,6 +9,7 @@ export interface TableProps {
8
9
  headerBackgroundColor?: CSSProperties['backgroundColor'];
9
10
  hideHeader?: boolean;
10
11
  isLoading?: boolean;
12
+ noDataProps?: NoDataProps;
11
13
  columns: TableColumn[];
12
14
  rows: TableRow[];
13
15
  getRowActions?: (row: TableRow) => (HoverAction | null)[];
@@ -1 +1 @@
1
- export{aE as Autocomplete,a0 as Badge,q as Button,B as ButtonSize,fu as ButtonTab,fv as ButtonTabList,a as ButtonVariants,d as Checkbox,fw as CheckboxList,aG as CheckboxSize,bY as CliCommand,bK as DataCard,br as Drawer,as as DropData,bJ as DropDataAlignX,bI as DropDataAlignY,bj as DropDown,j as FieldMessage,i as FieldTitle,fx as Header,e7 as HoverActions,be as IconButton,bf as IconButtonSize,I as Input,p as InputList,m as InputTable,bU as Island,bg as Loader,fy as Modal,fz as Navbar,N as NoData,P as Note,am as Radio,fA as RadioGroup,fB as RadioSize,e1 as Search,S as SectionCard,fC as SectionCardSize,x as Segment,ae as SegmentSize,cc as SegmentVariant,c0 as StatusCard,bV as Stepper,bS as Table,bT as TableVariant,fD as Tag,y as TextArea,c1 as TextCard,n as Toggle,o as ToggleLabelAlign,fE as ToggleList,aP as ToggleSize,fF as ToggleVariant,T as Typography,e as TypographySize,bn as TypographyVariants,cd as WarningModal}from"../chunks/ui-components-Bn9natqF.js";import"../icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{aE as Autocomplete,a0 as Badge,q as Button,B as ButtonSize,fu as ButtonTab,fv as ButtonTabList,a as ButtonVariants,d as Checkbox,fw as CheckboxList,aG as CheckboxSize,bY as CliCommand,bK as DataCard,br as Drawer,as as DropData,bJ as DropDataAlignX,bI as DropDataAlignY,bj as DropDown,j as FieldMessage,i as FieldTitle,fx as Header,e7 as HoverActions,be as IconButton,bf as IconButtonSize,I as Input,p as InputList,m as InputTable,bU as Island,bg as Loader,fy as Modal,fz as Navbar,N as NoData,P as Note,am as Radio,fA as RadioGroup,fB as RadioSize,e1 as Search,S as SectionCard,fC as SectionCardSize,x as Segment,ae as SegmentSize,cc as SegmentVariant,c0 as StatusCard,bV as Stepper,bS as Table,bT as TableVariant,fD as Tag,y as TextArea,c1 as TextCard,n as Toggle,o as ToggleLabelAlign,fE as ToggleList,aP as ToggleSize,fF as ToggleVariant,T as Typography,e as TypographySize,bn as TypographyVariants,cd as WarningModal}from"../chunks/ui-components-CI2PiWkX.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/components.js CHANGED
@@ -1 +1 @@
1
- export{cQ as AutocompleteInput,d8 as Badge,da as Button,cD as CancelWarning,b as CenterThis,cl as Checkbox,C as Code,cH as ConditionDetails,cI as DataCard,cj as DataCardFieldTypes,dO as DataCardFields,ff as DataFinger,dc as DataTab,cC as DeleteWarning,e5 as DescribeRow,D as Divider,cw as DocsButton,cB as Drawer,fg as DrawerFooter,fh as DrawerHeader,dy as Dropdown,fi as ErrorBoundary,dF as ExtendArrow,bX as FadeLoader,cm as FieldError,ck as FieldLabel,F as FlexColumn,c as FlexRow,fj as Header,cs as IconButton,ef as IconGroup,d2 as IconTitleBadge,cZ as IconWrapped,e0 as IconsNav,fk as ImageControlled,cn as Input,cr as InputList,co as InputTable,d5 as InteractiveTable,cq as KeyValueInputsList,fl as LoadingText,cN as Modal,cO as ModalBody,cx as MonitorsCheckboxes,c$ as MonitorsIcons,cR as NavigationButtons,d6 as NoDataFound,cP as NotificationNote,fm as Overlay,bx as Padding,bR as PageContent,dt as Popup,eh as PopupForm,em as ScrollX,dg as ScrollY,cv as SectionTitle,cu as Segment,dv as SelectionButton,dk as SkeletonLoader,cT as Status,dN as Stepper,fn as TabList,d0 as TableContainer,d1 as TableTitleWrap,d4 as TableWrap,dQ as Tag,cz as Text,cy as TextArea,cp as Toggle,ek as ToggleCodeComponent,V as Tooltip,d7 as TraceLoader,c3 as UpgradeRequiredWrapper,du as VerticalScroll,dT as WarningModal,fo as getLinksFromText,fp as getStrongsFromText,fq as renderText}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{cQ as AutocompleteInput,d8 as Badge,da as Button,cD as CancelWarning,b as CenterThis,cl as Checkbox,C as Code,cH as ConditionDetails,cI as DataCard,cj as DataCardFieldTypes,dO as DataCardFields,ff as DataFinger,dc as DataTab,cC as DeleteWarning,e5 as DescribeRow,D as Divider,cw as DocsButton,cB as Drawer,fg as DrawerFooter,fh as DrawerHeader,dy as Dropdown,fi as ErrorBoundary,dF as ExtendArrow,bX as FadeLoader,cm as FieldError,ck as FieldLabel,F as FlexColumn,c as FlexRow,fj as Header,cs as IconButton,ef as IconGroup,d2 as IconTitleBadge,cZ as IconWrapped,e0 as IconsNav,fk as ImageControlled,cn as Input,cr as InputList,co as InputTable,d5 as InteractiveTable,cq as KeyValueInputsList,fl as LoadingText,cN as Modal,cO as ModalBody,cx as MonitorsCheckboxes,c$ as MonitorsIcons,cR as NavigationButtons,d6 as NoDataFound,cP as NotificationNote,fm as Overlay,bx as Padding,bR as PageContent,dt as Popup,eh as PopupForm,em as ScrollX,dg as ScrollY,cv as SectionTitle,cu as Segment,dv as SelectionButton,dk as SkeletonLoader,cT as Status,dN as Stepper,fn as TabList,d0 as TableContainer,d1 as TableTitleWrap,d4 as TableWrap,dQ as Tag,cz as Text,cy as TextArea,cp as Toggle,ek as ToggleCodeComponent,V as Tooltip,d7 as TraceLoader,c3 as UpgradeRequiredWrapper,du as VerticalScroll,dT as WarningModal,fo as getLinksFromText,fp as getStrongsFromText,fq as renderText}from"./chunks/ui-components-CI2PiWkX.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/constants.js CHANGED
@@ -1 +1 @@
1
- export{bb as ACTION_ATTRIBUTE_OPTIONS,cG as ACTION_OPTIONS,bc as ACTION_SAMPLER_OPTIONS,f1 as ALL_SOURCES,bs as BTN_CANCEL,bt as BTN_CREATE_RULE,bN as BTN_DELETE_RULE,aQ as BTN_EDIT_AUTO_RULE,bM as BTN_EDIT_RULE,by as BTN_SAVE,bL as BTN_SAVE_RULE,bQ as BUTTON_TEXTS,bu as CATEGORY_DESCRIPTIONS,aV as CATEGORY_LABELS,bv as CATEGORY_TITLES,a5 as DEFAULT_CLUSTER_ID,a4 as DEFAULT_CLUSTER_NAME,dE as DEFAULT_DATA_STREAM_NAME,av as DESC_DROP_PERCENTAGE,aI as DESC_DURATION,aM as DESC_ERRORS,au as DESC_KEEP_PERCENTAGE,ai as DESC_OPERATION,aB as DESC_SOURCE_SCOPE,bh as DESTINATION_CATEGORIES,a1 as DISPLAY_LANGUAGES,bd as DISPLAY_TITLES,w as DOCS_BASE_URL,G as DestinationCategoryTypes,bD as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bE as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bB as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bC as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bz as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bA as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bO as EDIT_TITLES,aU as EMPTY_VALUE,c5 as FILTER_TYPE_ALL,O as FORM_ALERTS,bl as INSTRUMENTATION_RULE_OPTIONS,aL as LABEL_CUSTOM_DURATION,aA as LABEL_CUSTOM_PERCENTAGE,c4 as LABEL_DISABLED_RULE,aY as LABEL_DROP_ALL,ba as LABEL_DROP_AT_MOST,ax as LABEL_DROP_PERCENTAGE,ap as LABEL_HTTP_ROUTE,ar as LABEL_HTTP_ROUTE_PREFIX,at as LABEL_KAFKA_TOPIC,aZ as LABEL_KEEP_ALL,ay as LABEL_KEEP_AT_LEAST,az as LABEL_KEEP_AT_MOST,aw as LABEL_KEEP_PERCENTAGE,aK as LABEL_KEEP_TRACES_DURATION,aO as LABEL_KEEP_TRACES_ERRORS,aW as LABEL_METHOD,ah as LABEL_NOTE,aR as LABEL_NO_PREVIEW,a$ as LABEL_OPERATION_TYPE,b5 as LABEL_RULE_ENABLED,ac as LABEL_RULE_NAME,ad as LABEL_RULE_TYPE,aX as LABEL_SAMPLE,al as LABEL_SERVER_ADDRESS,ao as LABEL_TEMPLATED_PATH,aq as LABEL_TEMPLATED_PATH_PREFIX,f2 as LANGUAGE_OPTIONS,dz as MONITORS_OPTIONS,aD as NOTE_ENTIRE_CLUSTER,b1 as OPERATION_ALL,b0 as OPERATION_HTTP_CLIENT,a_ as OPERATION_HTTP_SERVER,b2 as OPERATION_KAFKA_CONSUMER,b3 as OPERATION_KAFKA_PRODUCER,f3 as OTEL_DISTRO_NAME_OPTIONS,af as PLACEHOLDER_NOTE,an as PLACEHOLDER_ROUTE,ab as PLACEHOLDER_RULE_NAME,aF as PLACEHOLDER_SEARCH_SOURCE,ak as PLACEHOLDER_SERVER_ADDRESS,b4 as SAMPLING_AUTO_RULE_TITLE,c9 as SAMPLING_BTN_CREATE_RULE,c7 as SAMPLING_BTN_DOCS,c8 as SAMPLING_BTN_REFRESH,b8 as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,cf as SAMPLING_DELETE_MODAL_APPROVE,ce as SAMPLING_DELETE_MODAL_CANCEL,cg as SAMPLING_DELETE_MODAL_DESCRIPTION,ch as SAMPLING_DELETE_MODAL_TITLE,bw as SAMPLING_DRAWER_WIDTH,c6 as SAMPLING_DUPLICATE_RULE_WARNING,b7 as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,ca as SAMPLING_PAGE_DESCRIPTION,cb as SAMPLING_PAGE_TITLE,b9 as SECTION_DROP_PERCENTAGE,aJ as SECTION_DURATION,aN as SECTION_ERRORS,b6 as SECTION_KEEP_PERCENTAGE,aj as SECTION_OPERATION,aS as SECTION_SAMPLING_PREVIEW,aC as SECTION_SOURCE_SCOPE,dA as STORAGE_KEYS,f4 as TOKEN_ABOUT_TO_EXPIRE,ag as TOOLTIP_NOTE,aT as UNNAMED_RULE}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{bb as ACTION_ATTRIBUTE_OPTIONS,cG as ACTION_OPTIONS,bc as ACTION_SAMPLER_OPTIONS,f1 as ALL_SOURCES,bs as BTN_CANCEL,bt as BTN_CREATE_RULE,bN as BTN_DELETE_RULE,aQ as BTN_EDIT_AUTO_RULE,bM as BTN_EDIT_RULE,by as BTN_SAVE,bL as BTN_SAVE_RULE,bQ as BUTTON_TEXTS,bu as CATEGORY_DESCRIPTIONS,aV as CATEGORY_LABELS,bv as CATEGORY_TITLES,a5 as DEFAULT_CLUSTER_ID,a4 as DEFAULT_CLUSTER_NAME,dE as DEFAULT_DATA_STREAM_NAME,av as DESC_DROP_PERCENTAGE,aI as DESC_DURATION,aM as DESC_ERRORS,au as DESC_KEEP_PERCENTAGE,ai as DESC_OPERATION,aB as DESC_SOURCE_SCOPE,bh as DESTINATION_CATEGORIES,a1 as DISPLAY_LANGUAGES,bd as DISPLAY_TITLES,w as DOCS_BASE_URL,G as DestinationCategoryTypes,bD as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bE as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bB as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bC as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bz as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bA as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bO as EDIT_TITLES,aU as EMPTY_VALUE,c5 as FILTER_TYPE_ALL,O as FORM_ALERTS,bl as INSTRUMENTATION_RULE_OPTIONS,aL as LABEL_CUSTOM_DURATION,aA as LABEL_CUSTOM_PERCENTAGE,c4 as LABEL_DISABLED_RULE,aY as LABEL_DROP_ALL,ba as LABEL_DROP_AT_MOST,ax as LABEL_DROP_PERCENTAGE,ap as LABEL_HTTP_ROUTE,ar as LABEL_HTTP_ROUTE_PREFIX,at as LABEL_KAFKA_TOPIC,aZ as LABEL_KEEP_ALL,ay as LABEL_KEEP_AT_LEAST,az as LABEL_KEEP_AT_MOST,aw as LABEL_KEEP_PERCENTAGE,aK as LABEL_KEEP_TRACES_DURATION,aO as LABEL_KEEP_TRACES_ERRORS,aW as LABEL_METHOD,ah as LABEL_NOTE,aR as LABEL_NO_PREVIEW,a$ as LABEL_OPERATION_TYPE,b5 as LABEL_RULE_ENABLED,ac as LABEL_RULE_NAME,ad as LABEL_RULE_TYPE,aX as LABEL_SAMPLE,al as LABEL_SERVER_ADDRESS,ao as LABEL_TEMPLATED_PATH,aq as LABEL_TEMPLATED_PATH_PREFIX,f2 as LANGUAGE_OPTIONS,dz as MONITORS_OPTIONS,aD as NOTE_ENTIRE_CLUSTER,b1 as OPERATION_ALL,b0 as OPERATION_HTTP_CLIENT,a_ as OPERATION_HTTP_SERVER,b2 as OPERATION_KAFKA_CONSUMER,b3 as OPERATION_KAFKA_PRODUCER,f3 as OTEL_DISTRO_NAME_OPTIONS,af as PLACEHOLDER_NOTE,an as PLACEHOLDER_ROUTE,ab as PLACEHOLDER_RULE_NAME,aF as PLACEHOLDER_SEARCH_SOURCE,ak as PLACEHOLDER_SERVER_ADDRESS,b4 as SAMPLING_AUTO_RULE_TITLE,c9 as SAMPLING_BTN_CREATE_RULE,c7 as SAMPLING_BTN_DOCS,c8 as SAMPLING_BTN_REFRESH,b8 as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,cf as SAMPLING_DELETE_MODAL_APPROVE,ce as SAMPLING_DELETE_MODAL_CANCEL,cg as SAMPLING_DELETE_MODAL_DESCRIPTION,ch as SAMPLING_DELETE_MODAL_TITLE,bw as SAMPLING_DRAWER_WIDTH,c6 as SAMPLING_DUPLICATE_RULE_WARNING,b7 as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,ca as SAMPLING_PAGE_DESCRIPTION,cb as SAMPLING_PAGE_TITLE,b9 as SECTION_DROP_PERCENTAGE,aJ as SECTION_DURATION,aN as SECTION_ERRORS,b6 as SECTION_KEEP_PERCENTAGE,aj as SECTION_OPERATION,aS as SECTION_SAMPLING_PREVIEW,aC as SECTION_SOURCE_SCOPE,dA as STORAGE_KEYS,f4 as TOKEN_ABOUT_TO_EXPIRE,ag as TOOLTIP_NOTE,aT as UNNAMED_RULE}from"./chunks/ui-components-CI2PiWkX.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";
@@ -7,6 +7,7 @@ export interface RulesTableProps {
7
7
  showTypeFilter: boolean;
8
8
  tableRowsMaxHeight: CSSProperties['maxHeight'];
9
9
  onRuleClick: (item: SamplingRuleItem) => void;
10
+ onCreateRule: () => void;
10
11
  onEditRule: (ruleId: string, samplingId: string) => void;
11
12
  onDeleteRule: (ruleId: string, samplingId: string) => void;
12
13
  }
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import{useEffect as n,Fragment as o,useState as l,useCallback as r,useContext as i,createContext as s,useMemo as c,useRef as d,Children as u}from"react";import p,{useTheme as m}from"styled-components";import{F as h,c as g,d as f,T as v,e as b,h as y,f as S,i as C,j as k,I as w,k as T,l as x,m as D,K as N,n as A,o as I,p as E,D as R,q as P,B as $,a as O,r as M,s as F,t as L,v as z,N as V,w as X,x as B,y as _,z as U,E as j,G as H,H as W,J as K,L as G,M as q,O as Y,P as J,Q,R as Z,U as ee,V as te,W as ae,X as ne,Y as oe,Z as le,_ as re,$ as ie,a0 as se,a1 as ce,a2 as de,a3 as ue,a4 as pe,a5 as me,a6 as he,a7 as ge,a8 as fe,a9 as ve,aa as be,S as ye,ab as Se,ac as Ce,ad as ke,ae as we,af as Te,ag as xe,ah as De,ai as Ne,aj as Ae,ak as Ie,al as Ee,am as Re,an as Pe,ao as $e,ap as Oe,aq as Me,ar as Fe,as as Le,at as ze,au as Ve,av as Xe,aw as Be,ax as _e,ay as Ue,az as je,aA as He,aB as We,aC as Ke,aD as Ge,aE as qe,aF as Ye,aG as Je,aH as Qe,aI as Ze,aJ as et,aK as tt,aL as at,aM as nt,aN as ot,aO as lt,aP as rt,aQ as it,aR as st,aS as ct,aT as dt,aU as ut,aV as pt,aW as mt,aX as ht,aY as gt,aZ as ft,a_ as vt,a$ as bt,b0 as yt,b1 as St,b2 as Ct,b3 as kt,b4 as wt,b5 as Tt,b6 as xt,b7 as Dt,b8 as Nt,b9 as At,ba as It,bb as Et,bc as Rt,b as Pt,bd as $t,be as Ot,bf as Mt,bg as Ft,bh as Lt,bi as zt,bj as Vt,bk as Xt,bl as Bt,bm as _t,bn as Ut,bo as jt,bp as Ht,bq as Wt,br as Kt,bs as Gt,bt as qt,bu as Yt,bv as Jt,bw as Qt,bx as Zt,by as ea,bz as ta,bA as aa,bB as na,bC as oa,bD as la,bE as ra,u as ia,bF as sa,bG as ca,bH as da,bI as ua,bJ as pa,bK as ma,g as ha,bL as ga,bM as fa,bN as va,bO as ba,bP as ya,A as Sa,bQ as Ca,bR as ka,bS as wa,bT as Ta,bU as xa,bV as Da,bW as Na,bX as Aa,bY as Ia,bZ as Ea,b_ as Ra,b$ as Pa,c0 as $a,c1 as Oa,c2 as Ma,c3 as Fa,c4 as La,c5 as za,c6 as Va,c7 as Xa,c8 as Ba,c9 as _a,ca as Ua,cb as ja,cc as Ha,cd as Wa,ce as Ka,cf as Ga,cg as qa,ch as Ya,ci as Ja}from"../chunks/ui-components-Bn9natqF.js";import{ChevronRightIcon as Qa,TrashIcon as Za,PlusIcon as en,BookIcon as tn,VSquareIcon as an,XSquareIcon as nn,DeleteIcon as on,EditIcon as ln,GoLogo as rn,JavaLogo as sn,XIcon as cn,ActionIcon as dn,DestinationIcon as un,ChevronUpIcon as pn,ChevronDownIcon as mn,VIcon as hn,InstrumentationRuleIcon as gn,SourceIcon as fn,SamplingIcon as vn,SettingsIcon as bn,ExclamationTriangleIcon as yn,ExclamationCircleIcon as Sn,KeyIcon as Cn,DiagnoseIcon as kn,DownloadIcon as wn,TerminalIcon as Tn,RefreshIcon as xn,ConnectionsIcon as Dn,OdigosLogo as Nn,ArrowRightIcon as An,PodIcon as In,ArrowDownSquareIcon as En,ArrowUpSquareIcon as Rn,PipelineCollectorIcon as Pn,GatewayIcon as $n,YamlIcon as On}from"../icons.js";import{SignalsCheckboxList as Mn,DynamicField as Fn,ColoredSpanVariant as Ln,ColoredSpan as zn,WideDrawer as Vn,WIDE_DRAWER_WIDTH as Xn,DeleteModal as Bn,OdigosLogoTextByTier as _n,UpgradeModal as Un}from"../snippets/v2.js";import{Y as jn}from"../chunks/index-DtYRiMjc.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 Hn=p.div`
1
+ import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import{useEffect as n,Fragment as o,useState as l,useCallback as r,useContext as i,createContext as s,useMemo as c,useRef as d,Children as u}from"react";import p,{useTheme as m}from"styled-components";import{F as h,c as g,d as f,T as v,e as b,h as y,f as S,i as C,j as k,I as w,k as T,l as x,m as D,K as N,n as A,o as I,p as E,D as R,q as P,B as $,a as O,r as M,s as F,t as L,v as z,N as V,w as X,x as B,y as _,z as U,E as j,G as H,H as W,J as K,L as G,M as q,O as Y,P as J,Q,R as Z,U as ee,V as te,W as ae,X as ne,Y as oe,Z as le,_ as re,$ as ie,a0 as se,a1 as ce,a2 as de,a3 as ue,a4 as pe,a5 as me,a6 as he,a7 as ge,a8 as fe,a9 as ve,aa as be,S as ye,ab as Se,ac as Ce,ad as ke,ae as we,af as Te,ag as xe,ah as De,ai as Ne,aj as Ae,ak as Ie,al as Ee,am as Re,an as Pe,ao as $e,ap as Oe,aq as Me,ar as Fe,as as Le,at as ze,au as Ve,av as Xe,aw as Be,ax as _e,ay as Ue,az as je,aA as He,aB as We,aC as Ke,aD as Ge,aE as qe,aF as Ye,aG as Je,aH as Qe,aI as Ze,aJ as et,aK as tt,aL as at,aM as nt,aN as ot,aO as lt,aP as rt,aQ as it,aR as st,aS as ct,aT as dt,aU as ut,aV as pt,aW as mt,aX as ht,aY as gt,aZ as ft,a_ as vt,a$ as bt,b0 as yt,b1 as St,b2 as Ct,b3 as kt,b4 as wt,b5 as Tt,b6 as xt,b7 as Dt,b8 as Nt,b9 as At,ba as It,bb as Et,bc as Rt,b as Pt,bd as $t,be as Ot,bf as Mt,bg as Ft,bh as Lt,bi as zt,bj as Vt,bk as Xt,bl as Bt,bm as _t,bn as Ut,bo as jt,bp as Ht,bq as Wt,br as Kt,bs as Gt,bt as qt,bu as Yt,bv as Jt,bw as Qt,bx as Zt,by as ea,bz as ta,bA as aa,bB as na,bC as oa,bD as la,bE as ra,u as ia,bF as sa,bG as ca,bH as da,bI as ua,bJ as pa,bK as ma,g as ha,bL as ga,bM as fa,bN as va,bO as ba,bP as ya,A as Sa,bQ as Ca,bR as ka,bS as wa,bT as Ta,bU as xa,bV as Da,bW as Na,bX as Aa,bY as Ia,bZ as Ea,b_ as Ra,b$ as Pa,c0 as $a,c1 as Oa,c2 as Ma,c3 as Fa,c4 as La,c5 as za,c6 as Va,c7 as Xa,c8 as Ba,c9 as _a,ca as Ua,cb as ja,cc as Ha,cd as Wa,ce as Ka,cf as Ga,cg as qa,ch as Ya,ci as Ja}from"../chunks/ui-components-CI2PiWkX.js";import{ChevronRightIcon as Qa,TrashIcon as Za,PlusIcon as en,BookIcon as tn,VSquareIcon as an,XSquareIcon as nn,DeleteIcon as on,EditIcon as ln,GoLogo as rn,JavaLogo as sn,XIcon as cn,ActionIcon as dn,DestinationIcon as un,ChevronUpIcon as pn,ChevronDownIcon as mn,VIcon as hn,InstrumentationRuleIcon as gn,SourceIcon as fn,SamplingIcon as vn,SettingsIcon as bn,ExclamationTriangleIcon as yn,ExclamationCircleIcon as Sn,KeyIcon as Cn,DiagnoseIcon as kn,DownloadIcon as wn,TerminalIcon as Tn,RefreshIcon as xn,ConnectionsIcon as Dn,OdigosLogo as Nn,ArrowRightIcon as An,PodIcon as In,ArrowDownSquareIcon as En,ArrowUpSquareIcon as Rn,PipelineCollectorIcon as Pn,GatewayIcon as $n,YamlIcon as On}from"../icons.js";import{SignalsCheckboxList as Mn,DynamicField as Fn,ColoredSpanVariant as Ln,ColoredSpan as zn,WideDrawer as Vn,WIDE_DRAWER_WIDTH as Xn,DeleteModal as Bn,OdigosLogoTextByTier as _n,UpgradeModal as Un}from"../snippets/v2.js";import{Y as jn}from"../chunks/index-Au62BabI.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 Hn=p.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: space-between;
@@ -340,7 +340,7 @@ import{jsxs as e,jsx as t,Fragment as a}from"react/jsx-runtime";import{useEffect
340
340
  gap: 6px;
341
341
  align-items: center;
342
342
  min-height: 22px;
343
- `;const Ns=[{key:"name",label:"Name",noSort:!0,noFilter:!0,flex:"0 0 156px",withTooltip:!0},{key:"summary",label:"Summary",noSort:!0,noFilter:!0},{key:"badges",label:"Type",noSort:!0,noFilter:!0,flex:"0 0 128px"}],As=[{value:"all",label:za},{value:"Relevance",label:"Relevance"},{value:"Duration",label:"Duration"},{value:"Error",label:"Error"}],Is=({title:a,items:n,isLoading:o,showTypeFilter:i,tableRowsMaxHeight:s,onRuleClick:d,onEditRule:u,onDeleteRule:p})=>{const h=m(),[g,f]=l(""),[y,S]=l("all"),C=c(()=>{let e=function(e,t,a){return a&&"all"!==t?e.filter(e=>e.typeBadge===t):e}(n,y,i);return e=function(e,t){if(!t.trim())return e;const a=t.toLowerCase();return e.filter(e=>{const t=e.name?.toLowerCase().includes(a),n=e.summary.map(e=>e.text).join("").toLowerCase();return t||n.includes(a)})}(e,g),e},[n,y,i,g]),k=c(()=>C.map(a=>{const n=a.typeBadge?function(e,t){const a=e.v2.colors;switch(t){case"Relevance":return{bg:a.blue[700],text:a.white[500]};case"Duration":return{bg:a.purple[700],text:a.white[500]};case"Error":return{bg:a.red[500],text:a.black[500]}}}(h,a.typeBadge):void 0;return{cells:[{key:"name",rawValue:a.name||"",component:()=>t(xs,{$disabled:a.disabled,children:a.name&&t(v,{size:b.XXS,color:h.v2.colors.white[500],nowrap:!0,children:a.name})})},{key:"summary",rawValue:a.summary.map(e=>e.text).join(""),component:()=>t(xs,{$disabled:a.disabled,children:t(Ts,{children:t(zn,{parts:a.summary})})})},{key:"badges",rawValue:a.typeBadge||"",component:()=>e(Ds,{children:[a.disabled&&t(se,{label:La,textSize:b.XXXS,backgroundColor:h.v2.colors.grey[700],textColor:h.v2.colors.grey[300]}),a.typeBadge&&n&&t(se,{label:a.typeBadge,textSize:b.XXXS,backgroundColor:n.bg,textColor:n.text})]})}],onClick:()=>d(a)}}),[C,h,d]),w=c(()=>{const e=e=>t(on,{...e,fill:h.v2.colors.red[500]});return e.displayName="RedDeleteIcon",e},[h]),T=r(e=>{const t=k.indexOf(e);if(t<0)return[];const a=C[t];return a?[{id:"edit","data-id":"sampling-rule-action-edit",label:fa,leftIcon:ln,onClick:()=>u(a.ruleId,a.samplingId)},{id:"delete","data-id":"sampling-rule-action-delete",label:"",leftIcon:w,onClick:()=>p(a.ruleId,a.samplingId)}]:[]},[k,C,u,p,w]);return t(ye,{fullHeight:!0,richTitle:{icon:vn,title:a,badge:{label:n.length,backgroundColor:h.v2.colors.silver[600],textColor:h.v2.colors.white[500]}},search:{"data-id":"sampling-search-rules",value:g,onChange:f,placeholder:"Search..",width:"500px",...i?{segment:{"data-id":"sampling-segment-type-filter",options:As,selected:y,setSelected:S}}:{}},children:t(wa,{variant:Ta.Pretty,hideHeader:!0,maxHeight:s,isLoading:o,columns:Ns,rows:k,getRowActions:T})})};function Es(e){if(!e.sourceScopes.length)return null;const t=[];for(const a of e.sourceScopes)if("source"===a.scopeType&&a.workloadName){const e={workloadName:a.workloadName};a.workloadKind&&(e.workloadKind=a.workloadKind),a.workloadNamespace&&(e.workloadNamespace=a.workloadNamespace),t.push(e)}else"namespace"===a.scopeType&&a.workloadNamespace?t.push({workloadNamespace:a.workloadNamespace}):"language"===a.scopeType&&a.workloadLanguage&&t.push({workloadLanguage:a.workloadLanguage});return t.length?t:null}function Rs(e){if("all"===e.percentageMode)return null;if("custom"===e.percentagePreset){const t=parseFloat(e.customPercentage);return isNaN(t)?null:t}return parseFloat(e.percentagePreset)}function Ps(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function $s(e){return"all"===e.operationType?null:"httpServer"===e.operationType?{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}:"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function Os(e){return"all"===e.operationType?null:"httpServer"===e.operationType?{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}:"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function Ms(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Es(e),operation:$s(e),percentageAtMost:Rs(e),notes:e.notes||null}}function Fs(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Es(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?Ps(e):null,operation:Os(e),percentageAtLeast:Rs(e),notes:e.notes||null}}function Ls(e){const t=Rs(e);return{name:e.name||null,disabled:e.disabled,sourceScopes:Es(e),operation:Os(e),percentageAtMost:t??0,notes:e.notes||null}}const zs=a=>{const{workloads:o,samplingRules:i,k8sHealthProbesConfig:s,loading:u,tableRowsMaxHeight:p,fetchSamplingRules:m,createNoisyOperationRule:f,updateNoisyOperationRule:v,createHighlyRelevantOperationRule:b,updateHighlyRelevantOperationRule:y,createCostReductionRule:S,updateCostReductionRule:C,deleteSamplingRule:k,updateK8sHealthProbesConfig:w}=a,T=c(()=>o.map(({id:e})=>({id:`${e.namespace}/${e.kind}/${e.name}`,label:`${e.namespace} / ${e.kind} / ${e.name}`})),[o]),x=c(()=>Array.from(new Set(o.map(({id:e})=>e.namespace))).sort().map(e=>({id:e,label:e})),[o]),[D,N]=l(Dl.Noisy),[A,I]=l(null),[E,R]=l(!1),[M,F]=l(!1),[L,z]=l(null),[V,X]=l(!1),[_,U]=l(!1),[j,H]=l(!1),W=c(()=>Hl(s),[s]),K=c(()=>function(e){for(const t of e){const e=t.highlyRelevantOperations.find(Wl);if(e)return{rule:e,samplingId:t.id}}return null}(i),[i]),G=c(()=>Kl(K?.rule??null),[K]),q=c(()=>function(e){for(const t of e){const e=t.costReductionRules.find(Gl);if(e)return{rule:e,samplingId:t.id}}return null}(i),[i]),Y=c(()=>ql(q?.rule??null),[q]),Z=d(A);Z.current=A,n(()=>{const e=Z.current;if(!e)return;const t=function(e,t){const a=Vl(e,t.samplingId,t.rule.ruleId,t.category);return a?{...a,summary:zl(a.category,a.rule)}:null}(i,e);t?I(t):(I(null),R(!1))},[i]);const ee=c(()=>{const e=new Set;return K&&e.add(K.rule.ruleId),q&&e.add(q.rule.ruleId),e},[K,q]),te=c(()=>function(e,t,a){const n=El[t],o=[];for(const l of e)switch(t){case Dl.Noisy:for(const e of l.noisyOperations)a?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:l.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Ol(e),category:n});break;case Dl.HighlyRelevant:for(const e of l.highlyRelevantOperations)a?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:l.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Ml(e),category:n,typeBadge:Ll(e)});break;case Dl.CostReduction:for(const e of l.costReductionRules)a?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:l.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Fl(e),category:n})}return o}(i,D,ee),[i,D,ee]),ae=r(()=>F(!0),[]),ne=r(()=>F(!1),[]),oe=r(e=>{const t=i[0]?.id??"default";switch(El[D]){case"noisy":f(t,Ms(e));break;case"highlyRelevant":b(t,Fs(e));break;case"costReduction":S(t,Ls(e))}F(!1)},[i,D,f,b,S]),le=r(e=>{const t=function(e,t){const a=Vl(e,t.samplingId,t.ruleId,t.category);return a?{...a,summary:t.summary}:null}(i,e);t&&(R(!1),I(t))},[i]),re=r(()=>{I(null),R(!1)},[]),ie=r((e,t)=>{const a=A;if(a&&a.rule.ruleId===e&&a.samplingId===t)R(!0),I({...a});else for(const a of i){if(a.id!==t)continue;const n=[...a.noisyOperations.map(e=>({category:"noisy",rule:e})),...a.highlyRelevantOperations.map(e=>({category:"highlyRelevant",rule:e})),...a.costReductionRules.map(e=>({category:"costReduction",rule:e}))].find(t=>t.rule.ruleId===e);if(n)return R(!0),void I({category:n.category,rule:n.rule,samplingId:t,summary:zl(n.category,n.rule)})}},[A,i]),se=r((e,t,a)=>{const n=A?.category;if(n){switch(n){case"noisy":v(a,t,Ms(e));break;case"highlyRelevant":y(a,t,Fs(e));break;case"costReduction":C(a,t,Ls(e))}R(!1)}},[A,v,y,C]),ce=r((e,t)=>{z({ruleId:e,samplingId:t})},[]),de=r(()=>{if(!L)return;const{ruleId:e,samplingId:t}=L;k(t,e,A?.category||El[D]),I(null),R(!1),z(null)},[L,A,D,k]),ue=r(()=>z(null),[]),pe=r((e,t)=>{w(e,t),X(!1)},[w]),me=r(e=>{const t=i[0]?.id??"default",a=K;a?y(a.samplingId,a.rule.ruleId,{name:a.rule.name,disabled:!e,error:!0,sourceScopes:[],operation:null,percentageAtLeast:null,notes:a.rule.notes}):e&&b(t,{name:"Auto - Keep All Error Traces",disabled:!1,error:!0,sourceScopes:[],operation:null,percentageAtLeast:null}),U(!1)},[i,K,b,y]),he=r((e,t)=>{const a=i[0]?.id??"default",n=q;n?C(n.samplingId,n.rule.ruleId,{name:n.rule.name,disabled:!e,sourceScopes:[],operation:null,percentageAtMost:t,notes:n.rule.notes}):e&&S(a,{name:"Auto - Drop Traces Cluster-Wide",disabled:!1,sourceScopes:[],operation:null,percentageAtMost:t}),H(!1)},[i,q,S,C]),ge=r(e=>{const t=El[D];let a=null;switch(t){case"noisy":{const n=Ms(e);a=jl(i,t,{sourceScopes:n.sourceScopes,operation:n.operation});break}case"highlyRelevant":{const n=Fs(e);a=jl(i,t,{sourceScopes:n.sourceScopes,operation:n.operation,error:n.error??!1,durationAtLeastMs:n.durationAtLeastMs});break}case"costReduction":{const n=Ls(e);a=jl(i,t,{sourceScopes:n.sourceScopes,operation:n.operation});break}}return a?{message:Va,ruleId:a}:null},[i,D]),fe=r(e=>{const t=A?.category,a=A?.rule.ruleId;if(!t)return null;let n=null;switch(t){case"noisy":{const o=Ms(e);n=jl(i,t,{sourceScopes:o.sourceScopes,operation:o.operation},a);break}case"highlyRelevant":{const o=Fs(e);n=jl(i,t,{sourceScopes:o.sourceScopes,operation:o.operation,error:o.error??!1,durationAtLeastMs:o.durationAtLeastMs},a);break}case"costReduction":{const o=Ls(e);n=jl(i,t,{sourceScopes:o.sourceScopes,operation:o.operation},a);break}}return n?{message:Va,ruleId:n}:null},[i,A]),ve=r(e=>{F(!1);for(const t of i){const a=[...t.noisyOperations.map(e=>({category:"noisy",rule:e})),...t.highlyRelevantOperations.map(e=>({category:"highlyRelevant",rule:e})),...t.costReductionRules.map(e=>({category:"costReduction",rule:e}))].find(t=>t.rule.ruleId===e);if(a)return R(!0),void I({category:a.category,rule:a.rule,samplingId:t.id,summary:zl(a.category,a.rule)})}},[i]),be=c(()=>{const e=[];return a.docsUrl&&e.push({id:ha(),type:Sa.Button,buttonProps:{"data-id":"sampling-btn-docs",label:Xa,leftIcon:tn,size:$.S,variant:O.Text,onClick:()=>window.open(a.docsUrl,"_blank")}}),e.push({id:ha(),type:Sa.Button,buttonProps:{"data-id":"sampling-btn-refresh",label:Ba,leftIcon:xn,size:$.S,variant:O.Text,onClick:m,loading:u}}),e.push({id:ha(),type:Sa.Button,buttonProps:{"data-id":"sampling-btn-create-rule",label:_a,rightIcon:en,size:$.S,variant:O.Primary,onClick:ae}}),e},[a.docsUrl,m,u,ae]);return e(ka,{children:[e(g,{$gap:12,$justifyContent:"space-between",children:[t(Ra,{icon:vn,title:ja,subTitle:Ua}),t(Pa,{actions:be})]}),e(h,{$gap:12,children:[t(B,{variant:Ha.Underline,options:Nl,selected:D,setSelected:N}),e(g,{$justifyContent:"space-between",children:[t(J,{status:Q.Default,message:Al[D]}),a.docsUrl&&t(P,{"data-id":"sampling-btn-docs-banner",label:"Docs",leftIcon:tn,size:$.S,variant:O.Text,onClick:()=>window.open(a.docsUrl,"_blank")})]}),D===Dl.Noisy&&t(xl,{title:wt,summary:W,onEdit:()=>X(!0)}),D===Dl.HighlyRelevant&&t(xl,{title:Dt,summary:G,onEdit:()=>U(!0)}),D===Dl.CostReduction&&t(xl,{title:Nt,summary:Y,onEdit:()=>H(!0)}),t(Is,{title:Il[D],items:te,isLoading:u,showTypeFilter:D===Dl.HighlyRelevant,tableRowsMaxHeight:p,onRuleClick:le,onEditRule:ie,onDeleteRule:ce})]}),t(_i,{data:A,defaultEditMode:E,onClose:re,onDelete:ce,onSaveEdit:se,sourceOptions:T,namespaceOptions:x,validateForm:fe,onNavigateToDuplicate:ve}),t(Si,{isOpen:M,category:El[D],onClose:ne,onSubmit:oe,sourceOptions:T,namespaceOptions:x,validateForm:ge,onNavigateToDuplicate:ve}),t(ki,{isOpen:V,enabled:s?.enabled??!1,keepPercentage:s?.keepPercentage??0,onClose:()=>X(!1),onSave:pe}),t(Ti,{isOpen:_,enabled:!!K&&!K.rule.disabled,onClose:()=>U(!1),onSave:me}),t(Di,{isOpen:j,enabled:!!q&&!q.rule.disabled,dropPercentage:q?.rule.percentageAtMost??25,onClose:()=>H(!1),onSave:he}),t(Wa,{title:Ya,description:qa,isOpen:!!L,onClose:ue,onApprove:de,approveLabel:Ga,denyLabel:Ka})]})},Vs=p.div`
343
+ `;const Ns=[{key:"name",label:"Name",noSort:!0,noFilter:!0,flex:"0 0 156px",withTooltip:!0},{key:"summary",label:"Summary",noSort:!0,noFilter:!0},{key:"badges",label:"Type",noSort:!0,noFilter:!0,flex:"0 0 128px"}],As=[{value:"all",label:za},{value:"Relevance",label:"Relevance"},{value:"Duration",label:"Duration"},{value:"Error",label:"Error"}],Is=({title:a,items:n,isLoading:o,showTypeFilter:i,tableRowsMaxHeight:s,onRuleClick:d,onCreateRule:u,onEditRule:p,onDeleteRule:h})=>{const g=m(),[f,y]=l(""),[S,C]=l("all"),k=c(()=>{let e=function(e,t,a){return a&&"all"!==t?e.filter(e=>e.typeBadge===t):e}(n,S,i);return e=function(e,t){if(!t.trim())return e;const a=t.toLowerCase();return e.filter(e=>{const t=e.name?.toLowerCase().includes(a),n=e.summary.map(e=>e.text).join("").toLowerCase();return t||n.includes(a)})}(e,f),e},[n,S,i,f]),w=c(()=>k.map(a=>{const n=a.typeBadge?function(e,t){const a=e.v2.colors;switch(t){case"Relevance":return{bg:a.blue[700],text:a.white[500]};case"Duration":return{bg:a.purple[700],text:a.white[500]};case"Error":return{bg:a.red[500],text:a.black[500]}}}(g,a.typeBadge):void 0;return{cells:[{key:"name",rawValue:a.name||"",component:()=>t(xs,{$disabled:a.disabled,children:a.name&&t(v,{size:b.XXS,color:g.v2.colors.white[500],nowrap:!0,children:a.name})})},{key:"summary",rawValue:a.summary.map(e=>e.text).join(""),component:()=>t(xs,{$disabled:a.disabled,children:t(Ts,{children:t(zn,{parts:a.summary})})})},{key:"badges",rawValue:a.typeBadge||"",component:()=>e(Ds,{children:[a.disabled&&t(se,{label:La,textSize:b.XXXS,backgroundColor:g.v2.colors.grey[700],textColor:g.v2.colors.grey[300]}),a.typeBadge&&n&&t(se,{label:a.typeBadge,textSize:b.XXXS,backgroundColor:n.bg,textColor:n.text})]})}],onClick:()=>d(a)}}),[k,g,d]),T=c(()=>{const e=e=>t(on,{...e,fill:g.v2.colors.red[500]});return e.displayName="RedDeleteIcon",e},[g]),x=r(e=>{const t=w.indexOf(e);if(t<0)return[];const a=k[t];return a?[{id:"edit","data-id":"sampling-rule-action-edit",label:fa,leftIcon:ln,onClick:()=>p(a.ruleId,a.samplingId)},{id:"delete","data-id":"sampling-rule-action-delete",label:"",leftIcon:T,onClick:()=>h(a.ruleId,a.samplingId)}]:[]},[w,k,p,h,T]);return t(ye,{fullHeight:!0,richTitle:{icon:vn,title:a,badge:{label:n.length,backgroundColor:g.v2.colors.silver[600],textColor:g.v2.colors.white[500]}},search:{"data-id":"sampling-search-rules",value:f,onChange:y,placeholder:"Search..",width:"500px",...i?{segment:{"data-id":"sampling-segment-type-filter",options:As,selected:S,setSelected:C}}:{}},children:t(wa,{variant:Ta.Pretty,hideHeader:!0,maxHeight:s,isLoading:o,noDataProps:{hideIcon:!0,title:"No Rules Exist",button:{label:"Create your first rule",onClick:u}},columns:Ns,rows:w,getRowActions:x})})};function Es(e){if(!e.sourceScopes.length)return null;const t=[];for(const a of e.sourceScopes)if("source"===a.scopeType&&a.workloadName){const e={workloadName:a.workloadName};a.workloadKind&&(e.workloadKind=a.workloadKind),a.workloadNamespace&&(e.workloadNamespace=a.workloadNamespace),t.push(e)}else"namespace"===a.scopeType&&a.workloadNamespace?t.push({workloadNamespace:a.workloadNamespace}):"language"===a.scopeType&&a.workloadLanguage&&t.push({workloadLanguage:a.workloadLanguage});return t.length?t:null}function Rs(e){if("all"===e.percentageMode)return null;if("custom"===e.percentagePreset){const t=parseFloat(e.customPercentage);return isNaN(t)?null:t}return parseFloat(e.percentagePreset)}function Ps(e){if("custom"===e.durationPreset){const t=parseFloat(e.customDurationMs);return isNaN(t)?null:t}return parseInt(e.durationPreset,10)}function $s(e){return"all"===e.operationType?null:"httpServer"===e.operationType?{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}:"httpClient"===e.operationType?{httpClient:{serverAddress:e.serverAddress||null,["route"===e.routeType?"templatedPath":"templatedPathPrefix"]:e.route||null,method:e.method||null}}:null}function Os(e){return"all"===e.operationType?null:"httpServer"===e.operationType?{httpServer:{[e.routeType]:e.route||null,method:e.method||null}}:"kafkaConsumer"===e.operationType?{kafkaConsumer:{kafkaTopic:e.kafkaTopic||null}}:"kafkaProducer"===e.operationType?{kafkaProducer:{kafkaTopic:e.kafkaTopic||null}}:null}function Ms(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Es(e),operation:$s(e),percentageAtMost:Rs(e),notes:e.notes||null}}function Fs(e){return{name:e.name||null,disabled:e.disabled,sourceScopes:Es(e),error:"Error"===e.ruleType,durationAtLeastMs:"Duration"===e.ruleType?Ps(e):null,operation:Os(e),percentageAtLeast:Rs(e),notes:e.notes||null}}function Ls(e){const t=Rs(e);return{name:e.name||null,disabled:e.disabled,sourceScopes:Es(e),operation:Os(e),percentageAtMost:t??0,notes:e.notes||null}}const zs=a=>{const{workloads:o,samplingRules:i,k8sHealthProbesConfig:s,loading:u,tableRowsMaxHeight:p,fetchSamplingRules:m,createNoisyOperationRule:f,updateNoisyOperationRule:v,createHighlyRelevantOperationRule:b,updateHighlyRelevantOperationRule:y,createCostReductionRule:S,updateCostReductionRule:C,deleteSamplingRule:k,updateK8sHealthProbesConfig:w}=a,T=c(()=>o.map(({id:e})=>({id:`${e.namespace}/${e.kind}/${e.name}`,label:`${e.namespace} / ${e.kind} / ${e.name}`})),[o]),x=c(()=>Array.from(new Set(o.map(({id:e})=>e.namespace))).sort().map(e=>({id:e,label:e})),[o]),[D,N]=l(Dl.Noisy),[A,I]=l(null),[E,R]=l(!1),[M,F]=l(!1),[L,z]=l(null),[V,X]=l(!1),[_,U]=l(!1),[j,H]=l(!1),W=c(()=>Hl(s),[s]),K=c(()=>function(e){for(const t of e){const e=t.highlyRelevantOperations.find(Wl);if(e)return{rule:e,samplingId:t.id}}return null}(i),[i]),G=c(()=>Kl(K?.rule??null),[K]),q=c(()=>function(e){for(const t of e){const e=t.costReductionRules.find(Gl);if(e)return{rule:e,samplingId:t.id}}return null}(i),[i]),Y=c(()=>ql(q?.rule??null),[q]),Z=d(A);Z.current=A,n(()=>{const e=Z.current;if(!e)return;const t=function(e,t){const a=Vl(e,t.samplingId,t.rule.ruleId,t.category);return a?{...a,summary:zl(a.category,a.rule)}:null}(i,e);t?I(t):(I(null),R(!1))},[i]);const ee=c(()=>{const e=new Set;return K&&e.add(K.rule.ruleId),q&&e.add(q.rule.ruleId),e},[K,q]),te=c(()=>function(e,t,a){const n=El[t],o=[];for(const l of e)switch(t){case Dl.Noisy:for(const e of l.noisyOperations)a?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:l.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Ol(e),category:n});break;case Dl.HighlyRelevant:for(const e of l.highlyRelevantOperations)a?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:l.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Ml(e),category:n,typeBadge:Ll(e)});break;case Dl.CostReduction:for(const e of l.costReductionRules)a?.has(e.ruleId)||o.push({ruleId:e.ruleId,samplingId:l.id,name:e.name??null,disabled:e.disabled,notes:e.notes??null,summary:Fl(e),category:n})}return o}(i,D,ee),[i,D,ee]),ae=r(()=>F(!0),[]),ne=r(()=>F(!1),[]),oe=r(e=>{const t=i[0]?.id??"default";switch(El[D]){case"noisy":f(t,Ms(e));break;case"highlyRelevant":b(t,Fs(e));break;case"costReduction":S(t,Ls(e))}F(!1)},[i,D,f,b,S]),le=r(e=>{const t=function(e,t){const a=Vl(e,t.samplingId,t.ruleId,t.category);return a?{...a,summary:t.summary}:null}(i,e);t&&(R(!1),I(t))},[i]),re=r(()=>{I(null),R(!1)},[]),ie=r((e,t)=>{const a=A;if(a&&a.rule.ruleId===e&&a.samplingId===t)R(!0),I({...a});else for(const a of i){if(a.id!==t)continue;const n=[...a.noisyOperations.map(e=>({category:"noisy",rule:e})),...a.highlyRelevantOperations.map(e=>({category:"highlyRelevant",rule:e})),...a.costReductionRules.map(e=>({category:"costReduction",rule:e}))].find(t=>t.rule.ruleId===e);if(n)return R(!0),void I({category:n.category,rule:n.rule,samplingId:t,summary:zl(n.category,n.rule)})}},[A,i]),se=r((e,t,a)=>{const n=A?.category;if(n){switch(n){case"noisy":v(a,t,Ms(e));break;case"highlyRelevant":y(a,t,Fs(e));break;case"costReduction":C(a,t,Ls(e))}R(!1)}},[A,v,y,C]),ce=r((e,t)=>{z({ruleId:e,samplingId:t})},[]),de=r(()=>{if(!L)return;const{ruleId:e,samplingId:t}=L;k(t,e,A?.category||El[D]),I(null),R(!1),z(null)},[L,A,D,k]),ue=r(()=>z(null),[]),pe=r((e,t)=>{w(e,t),X(!1)},[w]),me=r(e=>{const t=i[0]?.id??"default",a=K;a?y(a.samplingId,a.rule.ruleId,{name:a.rule.name,disabled:!e,error:!0,sourceScopes:[],operation:null,percentageAtLeast:null,notes:a.rule.notes}):e&&b(t,{name:"Auto - Keep All Error Traces",disabled:!1,error:!0,sourceScopes:[],operation:null,percentageAtLeast:null}),U(!1)},[i,K,b,y]),he=r((e,t)=>{const a=i[0]?.id??"default",n=q;n?C(n.samplingId,n.rule.ruleId,{name:n.rule.name,disabled:!e,sourceScopes:[],operation:null,percentageAtMost:t,notes:n.rule.notes}):e&&S(a,{name:"Auto - Drop Traces Cluster-Wide",disabled:!1,sourceScopes:[],operation:null,percentageAtMost:t}),H(!1)},[i,q,S,C]),ge=r(e=>{const t=El[D];let a=null;switch(t){case"noisy":{const n=Ms(e);a=jl(i,t,{sourceScopes:n.sourceScopes,operation:n.operation});break}case"highlyRelevant":{const n=Fs(e);a=jl(i,t,{sourceScopes:n.sourceScopes,operation:n.operation,error:n.error??!1,durationAtLeastMs:n.durationAtLeastMs});break}case"costReduction":{const n=Ls(e);a=jl(i,t,{sourceScopes:n.sourceScopes,operation:n.operation});break}}return a?{message:Va,ruleId:a}:null},[i,D]),fe=r(e=>{const t=A?.category,a=A?.rule.ruleId;if(!t)return null;let n=null;switch(t){case"noisy":{const o=Ms(e);n=jl(i,t,{sourceScopes:o.sourceScopes,operation:o.operation},a);break}case"highlyRelevant":{const o=Fs(e);n=jl(i,t,{sourceScopes:o.sourceScopes,operation:o.operation,error:o.error??!1,durationAtLeastMs:o.durationAtLeastMs},a);break}case"costReduction":{const o=Ls(e);n=jl(i,t,{sourceScopes:o.sourceScopes,operation:o.operation},a);break}}return n?{message:Va,ruleId:n}:null},[i,A]),ve=r(e=>{F(!1);for(const t of i){const a=[...t.noisyOperations.map(e=>({category:"noisy",rule:e})),...t.highlyRelevantOperations.map(e=>({category:"highlyRelevant",rule:e})),...t.costReductionRules.map(e=>({category:"costReduction",rule:e}))].find(t=>t.rule.ruleId===e);if(a)return R(!0),void I({category:a.category,rule:a.rule,samplingId:t.id,summary:zl(a.category,a.rule)})}},[i]),be=c(()=>{const e=[];return a.docsUrl&&e.push({id:ha(),type:Sa.Button,buttonProps:{"data-id":"sampling-btn-docs",label:Xa,leftIcon:tn,size:$.S,variant:O.Text,onClick:()=>window.open(a.docsUrl,"_blank")}}),e.push({id:ha(),type:Sa.Button,buttonProps:{"data-id":"sampling-btn-refresh",label:Ba,leftIcon:xn,size:$.S,variant:O.Text,onClick:m,loading:u}}),e.push({id:ha(),type:Sa.Button,buttonProps:{"data-id":"sampling-btn-create-rule",label:_a,rightIcon:en,size:$.S,variant:O.Primary,onClick:ae}}),e},[a.docsUrl,m,u,ae]);return e(ka,{children:[e(g,{$gap:12,$justifyContent:"space-between",children:[t(Ra,{icon:vn,title:ja,subTitle:Ua}),t(Pa,{actions:be})]}),e(h,{$gap:12,children:[t(B,{variant:Ha.Underline,options:Nl,selected:D,setSelected:N}),e(g,{$justifyContent:"space-between",children:[t(J,{status:Q.Default,message:Al[D]}),a.docsUrl&&t(P,{"data-id":"sampling-btn-docs-banner",label:"Docs",leftIcon:tn,size:$.S,variant:O.Text,onClick:()=>window.open(a.docsUrl,"_blank")})]}),D===Dl.Noisy&&t(xl,{title:wt,summary:W,onEdit:()=>X(!0)}),D===Dl.HighlyRelevant&&t(xl,{title:Dt,summary:G,onEdit:()=>U(!0)}),D===Dl.CostReduction&&t(xl,{title:Nt,summary:Y,onEdit:()=>H(!0)}),t(Is,{title:Il[D],items:te,isLoading:u,showTypeFilter:D===Dl.HighlyRelevant,tableRowsMaxHeight:p,onRuleClick:le,onCreateRule:ae,onEditRule:ie,onDeleteRule:ce})]}),t(_i,{data:A,defaultEditMode:E,onClose:re,onDelete:ce,onSaveEdit:se,sourceOptions:T,namespaceOptions:x,validateForm:fe,onNavigateToDuplicate:ve}),t(Si,{isOpen:M,category:El[D],onClose:ne,onSubmit:oe,sourceOptions:T,namespaceOptions:x,validateForm:ge,onNavigateToDuplicate:ve}),t(ki,{isOpen:V,enabled:s?.enabled??!1,keepPercentage:s?.keepPercentage??0,onClose:()=>X(!1),onSave:pe}),t(Ti,{isOpen:_,enabled:!!K&&!K.rule.disabled,onClose:()=>U(!1),onSave:me}),t(Di,{isOpen:j,enabled:!!q&&!q.rule.disabled,dropPercentage:q?.rule.percentageAtMost??25,onClose:()=>H(!1),onSave:he}),t(Wa,{title:Ya,description:qa,isOpen:!!L,onClose:ue,onApprove:de,approveLabel:Ga,denyLabel:Ka})]})},Vs=p.div`
344
344
  display: flex;
345
345
  align-items: center;
346
346
  justify-content: space-between;
package/lib/containers.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useState as i,useEffect as o,Fragment as a,forwardRef as r,useRef as l,useImperativeHandle as s,useMemo as c,useCallback as d,useLayoutEffect as u,Children as p}from"react";import h,{css as m,useTheme as g}from"styled-components";import{bd as f,cj as v,s as y,K as b,f as S,ck as x,cl as C,cm as w,cn as k,k as T,l as E,co as $,cp as N,cq as D,cr as A,D as I,F as R,c as O,cs as M,ct as F,r as L,cu as P,h as _,cv as z,cw as K,cx as j,cy as V,cz as B,cA as W,bF as U,bQ as H,cB as q,cC as G,cD as Y,aa as X,bk as J,cE as Q,cF as Z,cG as ee,cH as te,cI as ne,cJ as ie,cK as oe,a3 as ae,cL as re,cM as le,cN as se,cO as ce,cP as de,Q as ue,O as pe,cQ as he,cR as me,cS as ge,cT as fe,cU as ve,cV as ye,V as be,cW as Se,cX as xe,cY as Ce,cZ as we,c_ as ke,c$ as Te,d0 as Ee,d1 as $e,d2 as Ne,d3 as De,d4 as Ae,d5 as Ie,b as Re,d6 as Oe,d7 as Me,d8 as Fe,d9 as Le,bX as Pe,da as _e,db as ze,dc as Ke,dd as je,de as Ve,df as Be,dg as We,L as Ue,dh as He,di as qe,bi as Ge,dj as Ye,bp as Xe,bq as Je,dk as Qe,E as Ze,dl as et,dm as tt,dn as nt,dp as it,dq as ot,dr as at,ds as rt,dt as lt,du as st,dv as ct,dw as dt,dx as ut,dy as pt,a1 as ht,dz as mt,dA as gt,dB as ft,dC as vt,dD as yt,dE as bt,dF as St,dG as xt,dH as Ct,dI as wt,z as kt,M as Tt,J as Et,dJ as $t,dK as Nt,dL as Dt,H as At,G as It,v as Rt,bh as Ot,dM as Mt,dN as Ft,dO as Lt,dP as Pt,W as _t,Z as zt,_ as Kt,Y as jt,U as Vt,X as Bt,$ as Wt,dQ as Ut,a2 as Ht,dR as qt,dS as Gt,bl as Yt,a9 as Xt,dT as Jt,dU as Qt,dV as Zt,bG as en,dW as tn,dX as nn,dY as on,br as an,dZ as rn,d_ as ln,a6 as sn,d$ as cn,e0 as dn,aH as un,bS as pn,bT as hn,T as mn,e as gn,q as fn,B as vn,a as yn,x as bn,cc as Sn,ae as xn,bg as Cn,e1 as wn,N as kn,a0 as Tn,n as En,aP as $n,o as Nn,e2 as Dn,e3 as An,e4 as In,e5 as Rn,e6 as On,e7 as Mn,g as Fn,e8 as Ln,e9 as Pn,ea as _n,eb as zn,ec as Kn,ed as jn,ee as Vn,ef as Bn,eg as Wn,bH as Un,u as Hn,t as qn,bf as Gn,eh as Yn,ei as Xn,ej as Jn,ek as Qn,el as Zn,em as ei}from"./chunks/ui-components-Bn9natqF.js";import{TrashIcon as ti,VSquareIcon as ni,XSquareIcon as ii,EditIcon as oi,OdigosLogoText as ai,PlusIcon as ri,RefreshIcon as li,SearchIcon as si,FilterIcon as ci,DataStreamIcon as di,VIcon as ui,OdigosLogo as pi,ArrowIcon as hi,RefreshLeftArrowIcon as mi,NotificationIcon as gi,UserIcon as fi,ImageErrorIcon as vi,ChevronDownIcon as yi,ChevronRightIcon as bi,OverviewIcon as Si,SourceIcon as xi,DestinationIcon as Ci,InstrumentationRuleIcon as wi,ActionIcon as ki,SlackLogo as Ti,CopyIcon as Ei,MinusIcon as $i,XIcon as Ni,ExpandIcon as Di,DotIcon as Ai,DownloadIcon as Ii,KeyIcon as Ri,TerminalIcon as Oi,ExclamationTriangleIcon as Mi,TraceViewIcon as Fi}from"./icons.js";import{MarkerType as Li,useNodesState as Pi,useEdgesState as _i}from"@xyflow/react";import{E as zi}from"./chunks/vendor-C150cdxb.js";import{Y as Ki}from"./chunks/index-DtYRiMjc.js";import"zustand";import"javascript-time-ago";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";const ji=e=>{const{type:t,name:n,notes:i,signals:o,disabled:a,fields:{collectContainerAttributes:r,collectReplicaSetAttributes:l,collectWorkloadId:s,collectClusterId:c,labelsAttributes:d,annotationsAttributes:u,clusterAttributes:p,overwriteExistingValues:h,attributeNamesToDelete:m,renames:g,piiCategories:S,fallbackSamplingRatio:x,samplingPercentage:C,endpointsFilters:w,servicesNameFilters:k,attributeFilters:T,urlTemplatizationRulesGroups:E}}=e,$=[{title:f.TYPE,value:t},{type:v.ActiveStatus,title:f.STATUS,value:String(!a)},{type:v.Monitors,title:f.SIGNALS_FOR_PROCESSING,value:o?.join(", ")||""},{title:f.NAME,value:n||""},{title:f.NOTES,value:i||""},{type:v.Divider}];if(t===y.K8sAttributes&&($.push({title:"Collect Container Attributes",value:String(r)}),$.push({title:"Collect ReplicaSet Attributes",value:String(l)}),$.push({title:"Collect Workload ID",value:String(s)}),$.push({title:"Collect Cluster ID",value:String(c)}),d?.length&&$.push({type:v.Divider}),d?.forEach(({labelKey:e,attributeKey:t,from:n,fromSources:i},o)=>{let a="";a+=`Label Key: ${e}\n`,a+=`Attribute Key: ${t}\n`;a+=`From: ${i?.length?i.join(", "):n||b.Pod}\n`,$.push({title:"Label"+(d.length>1?` #${o+1}`:""),value:a})}),u?.length&&$.push({type:v.Divider}),u?.forEach(({annotationKey:e,attributeKey:t,from:n,fromSources:i},o)=>{let a="";a+=`Annotation Key: ${e}\n`,a+=`Attribute Key: ${t}\n`;a+=`From: ${i?.length?i.join(", "):n||b.Pod}\n`,$.push({title:"Annotation"+(u.length>1?` #${o+1}`:""),value:a})})),t===y.AddClusterInfo){$.push({title:"Overwrite Existing Values",value:String(h||!1)});let e="";p?.forEach(({attributeName:t,attributeStringValue:n},i)=>{e+=`${t}: ${n}`,i<p.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.DeleteAttributes){let e="";m?.forEach((t,n)=>{e+=t,n<m.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.RenameAttributes){let e="";const t=Object.entries(g||{});t.forEach(([n,i],o)=>{e+=`${n}: ${i}`,o<t.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.PiiMasking){let e="";S?.forEach((t,n)=>{e+=t,n<S.length-1&&(e+=", ")}),$.push({title:"Categories",value:e})}return t===y.ErrorSampler&&$.push({title:"Sampling Ratio",value:String(x)}),t===y.ProbabilisticSampler&&$.push({title:"Sampling Percentage",value:String(C)}),t===y.LatencySampler&&w?.forEach(({serviceName:e,httpRoute:t,minimumLatencyThreshold:n,fallbackSamplingRatio:i},o)=>{let a="";a+=`Service Name: ${e}\n`,a+=`HTTP Route: ${t}\n`,a+=`Min. Latency: ${n}\n`,a+=`Fallback Sampling Ratio: ${i}`,$.push({title:"Endpoint"+(w.length>1?` #${o+1}`:""),value:a})}),t===y.ServiceNameSampler&&k?.forEach(({serviceName:e,samplingRatio:t,fallbackSamplingRatio:n},i)=>{let o="";o+=`Service Name: ${e}\n`,o+=`Sampling Ratio: ${t}\n`,o+=`Fallback Sampling Ratio: ${n}`,$.push({title:"Filter"+(k.length>1?` #${i+1}`:""),value:o})}),t===y.SpanAttributeSampler&&T?.forEach(({serviceName:e,attributeKey:t,fallbackSamplingRatio:n,condition:i},o)=>{let a="";a+=`Service Name: ${e}\n`,a+=`Attribute Key: ${t}\n`,a+=`Fallback Sampling Ratio: ${n}\n`;const r=Object.keys(i)[0];a+=`Condition: ${r}\n`,a+=`Operation: ${i[r]?.operation}\n`,a+=`Expected Value: ${i[r]?.expectedValue}`,"jsonCondition"===r&&(a+=`\nJSON Path: ${i[r].jsonPath}`),$.push({title:"Filter"+(T.length>1?` #${o+1}`:""),value:a})}),t===y.URLTemplatization&&E?.forEach((e,t)=>{let n="";e.filterK8sNamespace&&(n+=`Namespace: ${e.filterK8sNamespace}\n`),e.workloadFilters?.length&&e.workloadFilters.forEach(e=>{const t=[e.kind,e.name].filter(Boolean).join("/");t&&(n+=`Workload: ${t}\n`)});const i=e.templatizationRules?.map(e=>e.template).filter(Boolean).join(", ");n+=`Templates: ${i}`,e.notes&&(n+=`\nNotes: ${e.notes}`),$.push({title:"Group"+(E.length>1?` #${t+1}`:""),value:n})}),$},Vi=S.PiiCategories,Bi=h.div`
1
+ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import{useState as i,useEffect as o,Fragment as a,forwardRef as r,useRef as l,useImperativeHandle as s,useMemo as c,useCallback as d,useLayoutEffect as u,Children as p}from"react";import h,{css as m,useTheme as g}from"styled-components";import{bd as f,cj as v,s as y,K as b,f as S,ck as x,cl as C,cm as w,cn as k,k as T,l as E,co as $,cp as N,cq as D,cr as A,D as I,F as R,c as O,cs as M,ct as F,r as L,cu as P,h as _,cv as z,cw as K,cx as j,cy as V,cz as B,cA as W,bF as U,bQ as H,cB as q,cC as G,cD as Y,aa as X,bk as J,cE as Q,cF as Z,cG as ee,cH as te,cI as ne,cJ as ie,cK as oe,a3 as ae,cL as re,cM as le,cN as se,cO as ce,cP as de,Q as ue,O as pe,cQ as he,cR as me,cS as ge,cT as fe,cU as ve,cV as ye,V as be,cW as Se,cX as xe,cY as Ce,cZ as we,c_ as ke,c$ as Te,d0 as Ee,d1 as $e,d2 as Ne,d3 as De,d4 as Ae,d5 as Ie,b as Re,d6 as Oe,d7 as Me,d8 as Fe,d9 as Le,bX as Pe,da as _e,db as ze,dc as Ke,dd as je,de as Ve,df as Be,dg as We,L as Ue,dh as He,di as qe,bi as Ge,dj as Ye,bp as Xe,bq as Je,dk as Qe,E as Ze,dl as et,dm as tt,dn as nt,dp as it,dq as ot,dr as at,ds as rt,dt as lt,du as st,dv as ct,dw as dt,dx as ut,dy as pt,a1 as ht,dz as mt,dA as gt,dB as ft,dC as vt,dD as yt,dE as bt,dF as St,dG as xt,dH as Ct,dI as wt,z as kt,M as Tt,J as Et,dJ as $t,dK as Nt,dL as Dt,H as At,G as It,v as Rt,bh as Ot,dM as Mt,dN as Ft,dO as Lt,dP as Pt,W as _t,Z as zt,_ as Kt,Y as jt,U as Vt,X as Bt,$ as Wt,dQ as Ut,a2 as Ht,dR as qt,dS as Gt,bl as Yt,a9 as Xt,dT as Jt,dU as Qt,dV as Zt,bG as en,dW as tn,dX as nn,dY as on,br as an,dZ as rn,d_ as ln,a6 as sn,d$ as cn,e0 as dn,aH as un,bS as pn,bT as hn,T as mn,e as gn,q as fn,B as vn,a as yn,x as bn,cc as Sn,ae as xn,bg as Cn,e1 as wn,N as kn,a0 as Tn,n as En,aP as $n,o as Nn,e2 as Dn,e3 as An,e4 as In,e5 as Rn,e6 as On,e7 as Mn,g as Fn,e8 as Ln,e9 as Pn,ea as _n,eb as zn,ec as Kn,ed as jn,ee as Vn,ef as Bn,eg as Wn,bH as Un,u as Hn,t as qn,bf as Gn,eh as Yn,ei as Xn,ej as Jn,ek as Qn,el as Zn,em as ei}from"./chunks/ui-components-CI2PiWkX.js";import{TrashIcon as ti,VSquareIcon as ni,XSquareIcon as ii,EditIcon as oi,OdigosLogoText as ai,PlusIcon as ri,RefreshIcon as li,SearchIcon as si,FilterIcon as ci,DataStreamIcon as di,VIcon as ui,OdigosLogo as pi,ArrowIcon as hi,RefreshLeftArrowIcon as mi,NotificationIcon as gi,UserIcon as fi,ImageErrorIcon as vi,ChevronDownIcon as yi,ChevronRightIcon as bi,OverviewIcon as Si,SourceIcon as xi,DestinationIcon as Ci,InstrumentationRuleIcon as wi,ActionIcon as ki,SlackLogo as Ti,CopyIcon as Ei,MinusIcon as $i,XIcon as Ni,ExpandIcon as Di,DotIcon as Ai,DownloadIcon as Ii,KeyIcon as Ri,TerminalIcon as Oi,ExclamationTriangleIcon as Mi,TraceViewIcon as Fi}from"./icons.js";import{MarkerType as Li,useNodesState as Pi,useEdgesState as _i}from"@xyflow/react";import{E as zi}from"./chunks/vendor-C150cdxb.js";import{Y as Ki}from"./chunks/index-Au62BabI.js";import"zustand";import"javascript-time-ago";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";const ji=e=>{const{type:t,name:n,notes:i,signals:o,disabled:a,fields:{collectContainerAttributes:r,collectReplicaSetAttributes:l,collectWorkloadId:s,collectClusterId:c,labelsAttributes:d,annotationsAttributes:u,clusterAttributes:p,overwriteExistingValues:h,attributeNamesToDelete:m,renames:g,piiCategories:S,fallbackSamplingRatio:x,samplingPercentage:C,endpointsFilters:w,servicesNameFilters:k,attributeFilters:T,urlTemplatizationRulesGroups:E}}=e,$=[{title:f.TYPE,value:t},{type:v.ActiveStatus,title:f.STATUS,value:String(!a)},{type:v.Monitors,title:f.SIGNALS_FOR_PROCESSING,value:o?.join(", ")||""},{title:f.NAME,value:n||""},{title:f.NOTES,value:i||""},{type:v.Divider}];if(t===y.K8sAttributes&&($.push({title:"Collect Container Attributes",value:String(r)}),$.push({title:"Collect ReplicaSet Attributes",value:String(l)}),$.push({title:"Collect Workload ID",value:String(s)}),$.push({title:"Collect Cluster ID",value:String(c)}),d?.length&&$.push({type:v.Divider}),d?.forEach(({labelKey:e,attributeKey:t,from:n,fromSources:i},o)=>{let a="";a+=`Label Key: ${e}\n`,a+=`Attribute Key: ${t}\n`;a+=`From: ${i?.length?i.join(", "):n||b.Pod}\n`,$.push({title:"Label"+(d.length>1?` #${o+1}`:""),value:a})}),u?.length&&$.push({type:v.Divider}),u?.forEach(({annotationKey:e,attributeKey:t,from:n,fromSources:i},o)=>{let a="";a+=`Annotation Key: ${e}\n`,a+=`Attribute Key: ${t}\n`;a+=`From: ${i?.length?i.join(", "):n||b.Pod}\n`,$.push({title:"Annotation"+(u.length>1?` #${o+1}`:""),value:a})})),t===y.AddClusterInfo){$.push({title:"Overwrite Existing Values",value:String(h||!1)});let e="";p?.forEach(({attributeName:t,attributeStringValue:n},i)=>{e+=`${t}: ${n}`,i<p.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.DeleteAttributes){let e="";m?.forEach((t,n)=>{e+=t,n<m.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.RenameAttributes){let e="";const t=Object.entries(g||{});t.forEach(([n,i],o)=>{e+=`${n}: ${i}`,o<t.length-1&&(e+=", ")}),$.push({title:"Attributes",value:e})}if(t===y.PiiMasking){let e="";S?.forEach((t,n)=>{e+=t,n<S.length-1&&(e+=", ")}),$.push({title:"Categories",value:e})}return t===y.ErrorSampler&&$.push({title:"Sampling Ratio",value:String(x)}),t===y.ProbabilisticSampler&&$.push({title:"Sampling Percentage",value:String(C)}),t===y.LatencySampler&&w?.forEach(({serviceName:e,httpRoute:t,minimumLatencyThreshold:n,fallbackSamplingRatio:i},o)=>{let a="";a+=`Service Name: ${e}\n`,a+=`HTTP Route: ${t}\n`,a+=`Min. Latency: ${n}\n`,a+=`Fallback Sampling Ratio: ${i}`,$.push({title:"Endpoint"+(w.length>1?` #${o+1}`:""),value:a})}),t===y.ServiceNameSampler&&k?.forEach(({serviceName:e,samplingRatio:t,fallbackSamplingRatio:n},i)=>{let o="";o+=`Service Name: ${e}\n`,o+=`Sampling Ratio: ${t}\n`,o+=`Fallback Sampling Ratio: ${n}`,$.push({title:"Filter"+(k.length>1?` #${i+1}`:""),value:o})}),t===y.SpanAttributeSampler&&T?.forEach(({serviceName:e,attributeKey:t,fallbackSamplingRatio:n,condition:i},o)=>{let a="";a+=`Service Name: ${e}\n`,a+=`Attribute Key: ${t}\n`,a+=`Fallback Sampling Ratio: ${n}\n`;const r=Object.keys(i)[0];a+=`Condition: ${r}\n`,a+=`Operation: ${i[r]?.operation}\n`,a+=`Expected Value: ${i[r]?.expectedValue}`,"jsonCondition"===r&&(a+=`\nJSON Path: ${i[r].jsonPath}`),$.push({title:"Filter"+(T.length>1?` #${o+1}`:""),value:a})}),t===y.URLTemplatization&&E?.forEach((e,t)=>{let n="";e.filterK8sNamespace&&(n+=`Namespace: ${e.filterK8sNamespace}\n`),e.workloadFilters?.length&&e.workloadFilters.forEach(e=>{const t=[e.kind,e.name].filter(Boolean).join("/");t&&(n+=`Workload: ${t}\n`)});const i=e.templatizationRules?.map(e=>e.template).filter(Boolean).join(", ");n+=`Templates: ${i}`,e.notes&&(n+=`\nNotes: ${e.notes}`),$.push({title:"Group"+(E.length>1?` #${t+1}`:""),value:n})}),$},Vi=S.PiiCategories,Bi=h.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  gap: 32px;
package/lib/contexts.js CHANGED
@@ -1 +1 @@
1
- export{f9 as OdigosProvider,fa as StorybookProvider,bP as checkVersionSupport,a3 as useOdigos,fb as useStorybook}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{f9 as OdigosProvider,fa as StorybookProvider,bP as checkVersionSupport,a3 as useOdigos,fb as useStorybook}from"./chunks/ui-components-CI2PiWkX.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{dL as capitalizeFirstLetter,eI as cleanObjectEmptyStringsValues,z as compareCondition,v as deepClone,df as entityIdKey,cY as filterActions,dq as filterDestinations,dn as filterDestinationsByStream,dp as filterSources,dm as filterSourcesByStream,eJ as flattenObjectKeys,dh as formatBytes,ej as formatDuration,g as generateId,cJ as getActionIcon,cS as getConditionsBooleans,ed as getContainersIcons,eg as getContainersInstrumentedCount,eK as getDeepValue,bi as getDestinationIcon,eL as getDetectedLanguageIcons,d3 as getEntityIcon,cF as getEntityId,de as getEntityIdKey,c_ as getEntityLabel,eM as getIdFromSseTarget,di as getInstrumentationRuleIcon,eN as getMainContainerLanguage,dP as getMetricForEntity,eO as getMonitorIcon,eP as getPlatformIcon,eQ as getPlatformLabel,a2 as getProgrammingLanguageIcon,el as getRecursiveValues,dj as getSourceLanguageIcons,eR as getSseTargetFromId,eS as getStatusColor,bW as getStatusFromPodStatus,cW as getStatusIcon,e2 as getStatusTypeFromOdigosHealth,eT as getValueForRange,dY as getVirtualServiceIcon,dV as getWorkloadId,dK as getYamlFieldsForDestination,e3 as hasUnhealthyInstances,l as isEmpty,eU as isLegalK8sLabel,bH as isOverTime,e8 as isStringABoolean,eV as isTimeElapsed,eW as isValidVersion,cV as mapConditions,dI as mapDestinationFieldsForDisplay,L as mapExportedSignals,H as mapSupportedSignals,eX as numbersOnly,e9 as parseBooleanFromString,eY as parseJsonStringToPrettyString,R as prepareDestinationFormData,eZ as removeEmptyValuesFromObject,M as safeJsonParse,e_ as safeJsonStringify,e$ as setDeepValue,d9 as sleep,dx as splitCamelString,f0 as stringifyNonStringValues,cM as trimVersion}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{dL as capitalizeFirstLetter,eI as cleanObjectEmptyStringsValues,z as compareCondition,v as deepClone,df as entityIdKey,cY as filterActions,dq as filterDestinations,dn as filterDestinationsByStream,dp as filterSources,dm as filterSourcesByStream,eJ as flattenObjectKeys,dh as formatBytes,ej as formatDuration,g as generateId,cJ as getActionIcon,cS as getConditionsBooleans,ed as getContainersIcons,eg as getContainersInstrumentedCount,eK as getDeepValue,bi as getDestinationIcon,eL as getDetectedLanguageIcons,d3 as getEntityIcon,cF as getEntityId,de as getEntityIdKey,c_ as getEntityLabel,eM as getIdFromSseTarget,di as getInstrumentationRuleIcon,eN as getMainContainerLanguage,dP as getMetricForEntity,eO as getMonitorIcon,eP as getPlatformIcon,eQ as getPlatformLabel,a2 as getProgrammingLanguageIcon,el as getRecursiveValues,dj as getSourceLanguageIcons,eR as getSseTargetFromId,eS as getStatusColor,bW as getStatusFromPodStatus,cW as getStatusIcon,e2 as getStatusTypeFromOdigosHealth,eT as getValueForRange,dY as getVirtualServiceIcon,dV as getWorkloadId,dK as getYamlFieldsForDestination,e3 as hasUnhealthyInstances,l as isEmpty,eU as isLegalK8sLabel,bH as isOverTime,e8 as isStringABoolean,eV as isTimeElapsed,eW as isValidVersion,cV as mapConditions,dI as mapDestinationFieldsForDisplay,L as mapExportedSignals,H as mapSupportedSignals,eX as numbersOnly,e9 as parseBooleanFromString,eY as parseJsonStringToPrettyString,R as prepareDestinationFormData,eZ as removeEmptyValuesFromObject,M as safeJsonParse,e_ as safeJsonStringify,e$ as setDeepValue,d9 as sleep,dx as splitCamelString,f0 as stringifyNonStringValues,cM as trimVersion}from"./chunks/ui-components-CI2PiWkX.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
package/lib/hooks.js CHANGED
@@ -1 +1 @@
1
- export{cE as useActionFormData,fc as useBodyScroll,dr as useClickNode,dW as useClickNotification,dl as useContainerSize,u as useCopy,dC as useDataStreamFormData,dJ as useDestinationFormData,t as useGenericForm,dS as useInstrumentationRuleFormData,bF as useKeyDown,dw as useOnClickOutside,ds as usePopup,ci as useScrollTo,dB as useSessionStorage,ea as useSourceFormData,ee as useSourceSelectionFormData,bG as useTimeAgo}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{cE as useActionFormData,fc as useBodyScroll,dr as useClickNode,dW as useClickNotification,dl as useContainerSize,u as useCopy,dC as useDataStreamFormData,dJ as useDestinationFormData,t as useGenericForm,dS as useInstrumentationRuleFormData,bF as useKeyDown,dw as useOnClickOutside,ds as usePopup,ci as useScrollTo,dB as useSessionStorage,ea as useSourceFormData,ee as useSourceSelectionFormData,bG as useTimeAgo}from"./chunks/ui-components-CI2PiWkX.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
@@ -1,22 +1,22 @@
1
- import{cd as e,r as a,n as r,o as s,d as i,bj as t,y as n,m as o,M as l,p as d,I as c,k as p,a3 as h,a9 as u,v as g,dz as v,F as m,i as b,c as f,j as x,en as y,dg as w,b as $,N as C,Q as M,a as L,br as S,bg as k,e as O,b_ as D,e1 as N}from"../chunks/ui-components-Bn9natqF.js";export{A as ActionType,b$ as Actions}from"../chunks/ui-components-Bn9natqF.js";import{jsx as I,Fragment as H,jsxs as T}from"react/jsx-runtime";import j from"styled-components";import{OdigosLogoTextEnterprise as q,OdigosLogoTextCommunity as z,ArrowLeftIcon as V,ArrowRightIcon as R,VSquareIcon as E}from"../icons.js";import{useState as F,useRef as P,useEffect as B,forwardRef as K,useImperativeHandle as X,useCallback as _,useMemo as G}from"react";export{Y as YamlSectionCard}from"../chunks/index-DtYRiMjc.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 J=({isOpen:a,onClose:r,onDeny:s,onApprove:i})=>I(e,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:a,onClose:r,onDeny:s,denyLabel:"Keep editing",onApprove:i,approveLabel:"Discard changes"});var U;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(U||(U={}));const Z=[U.Action,U.Endpoint,U.Scope,U.Duration],Q=j.span`
1
+ import{cd as e,r as a,n as r,o as s,d as i,bj as t,y as n,m as o,M as l,p as d,I as c,k as p,a3 as h,a9 as u,v as g,dz as v,F as m,i as b,c as f,j as x,en as y,dg as w,b as $,N as C,Q as M,a as L,br as S,bg as k,e as O,b_ as D,e1 as N}from"../chunks/ui-components-CI2PiWkX.js";export{A as ActionType,b$ as Actions}from"../chunks/ui-components-CI2PiWkX.js";import{jsx as I,Fragment as H,jsxs as T}from"react/jsx-runtime";import{Fragment as j,useState as q,useRef as z,useEffect as V,forwardRef as R,useImperativeHandle as F,useCallback as E,useMemo as P}from"react";import B from"styled-components";import{OdigosLogoTextEnterprise as K,OdigosLogoTextCommunity as X,ArrowLeftIcon as _,ArrowRightIcon as G,VSquareIcon as J}from"../icons.js";export{Y as YamlSectionCard}from"../chunks/index-Au62BabI.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 U=({isOpen:a,onClose:r,onDeny:s,onApprove:i})=>I(e,{title:"Discard changes?",description:"You have unsaved changes.\nIf you cancel now, your changes won't be saved.",isOpen:a,onClose:r,onDeny:s,denyLabel:"Keep editing",onApprove:i,approveLabel:"Discard changes"});var Z;!function(e){e.Default="default",e.Action="action",e.Endpoint="endpoint",e.Scope="scope",e.Duration="duration"}(Z||(Z={}));const Q=[Z.Action,Z.Endpoint,Z.Scope,Z.Duration],W=B.span`
2
2
  font-family: ${({theme:e,$isMono:a})=>a?e.font_family.secondary:e.font_family.primary};
3
3
  font-size: ${({theme:e})=>e.v2.text.size.xxs}px;
4
4
  line-height: 20px;
5
5
  color: ${({theme:e,$variant:a})=>{const r=e.v2.colors;switch(a){case"action":return r.green[400];case"endpoint":return r.purple[300];case"scope":return r.yellow[400];case"duration":return r.orange[600];default:return r.white[500]}}};
6
- `,W=({parts:e})=>I(H,{children:e.map((e,a)=>I(Q,{$variant:e.variant,$isMono:Z.includes(e.variant),children:e.text},a))}),ee=({isOpen:a,onClose:r,onDeny:s,onApprove:i,action:t="delete",target:n})=>{const o=t.charAt(0).toUpperCase()+t.substring(1),l=n?.endsWith("s")?"these":"this";return I(e,{title:`${o}${n?` ${n}`:""}?`,description:`Are you sure you want to ${t}${n?` ${l} ${n}`:""}?`,isOpen:a,onClose:r,onDeny:s,denyLabel:"Go back",onApprove:i,approveLabel:o})},ae=({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:M,dropdownOptions:L,dropdownNoSearch:S,dropdownNoCheckbox:k})=>{switch(e){case a.Input:return I(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:M},u);case a.MultiInput:return I(d,{name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,values:Array.isArray(y)?y:l(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:M},u);case a.KeyValuePair:return I(o,{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:l(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:M},u);case a.TextArea:return I(n,{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:M},u);case a.Dropdown:return I(t,{name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,withSearch:!S,options:L?.map(e=>({id:e.id||"",label:e.value||"",withCheckbox:!k}))||[],values:y?[String(y)]:[],setValues:e=>w(e[0]),errorMessage:$,warnMessage:C,helpMessage:M},u);case a.Checkbox:return I(i,{name:u,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:M},u);case a.Toggle:return I(r,{name:u,labelAlign:s.Right,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:M},u);default:return null}},re=({size:e=200})=>{const{tier:a}=h();return a===u.Onprem?I(q,{size:e}):I(z,{size:e})},se=(e,a)=>!a?.length||!!a?.find(a=>a===e),ie=({title:e="Signals",required:a,errorMessage:r,allowedSignals:s,selectedSignals:t,setSelectedSignals:n,disabled:o})=>{const[l,d]=F(1===t.length),c=P(JSON.stringify(t));B(()=>{const e=g(t);e.length||v.forEach(({id:a})=>{se(a,s)&&e.push(a)});const a=JSON.stringify(e);c.current!==a&&(c.current=a,n(e),d(1===e.length))},[s,t]);return T(m,{$gap:12,children:[I(b,{label:e,required:a}),I(f,{$gap:12,children:v.map(e=>{const a=se(e.id,s),r=((e,a)=>!!a?.find(a=>a===e))(e.id,t);return a?I(i,{label:e.value,disabled:o||!a||l&&r,value:r,onChange:a=>((e,a)=>{const r=e,s=a?[...t,r]:t.filter(e=>e!==r);n(s),d(1===s.length)})(e.id,a)},e.id):null})}),I(x,{errorMessage:r})]})},te=({minSupportedVersion:a,currentVersion:r})=>I(e,{isOpen:!0,onClose:()=>{},relativeToParent:!0,visual:()=>I(y,{scale:2.4,icon:()=>I("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",children:I("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: ${r}.`}),ne=j.div`
6
+ `,ee=({parts:e})=>I(H,{children:e.map((e,a)=>T(j,{children:[0!==a&&I(H,{children:" "}),I(W,{$variant:e.variant,$isMono:Q.includes(e.variant),children:e.text})]},`${e.variant}-${a}`))}),ae=({isOpen:a,onClose:r,onDeny:s,onApprove:i,action:t="delete",target:n})=>{const o=t.charAt(0).toUpperCase()+t.substring(1),l=n?.endsWith("s")?"these":"this";return I(e,{title:`${o}${n?` ${n}`:""}?`,description:`Are you sure you want to ${t}${n?` ${l} ${n}`:""}?`,isOpen:a,onClose:r,onDeny:s,denyLabel:"Go back",onApprove:i,approveLabel:o})},re=({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:M,dropdownOptions:L,dropdownNoSearch:S,dropdownNoCheckbox:k})=>{switch(e){case a.Input:return I(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:M},u);case a.MultiInput:return I(d,{name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,values:Array.isArray(y)?y:l(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:M},u);case a.KeyValuePair:return I(o,{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:l(y,[]),setValues:e=>w(e),errorMessage:$,warnMessage:C,helpMessage:M},u);case a.TextArea:return I(n,{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:M},u);case a.Dropdown:return I(t,{name:u,label:g,tooltip:v,badge:m,placeholder:b,required:f,disabled:x,withSearch:!S,options:L?.map(e=>({id:e.id||"",label:e.value||"",withCheckbox:!k}))||[],values:y?[String(y)]:[],setValues:e=>w(e[0]),errorMessage:$,warnMessage:C,helpMessage:M},u);case a.Checkbox:return I(i,{name:u,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:M},u);case a.Toggle:return I(r,{name:u,labelAlign:s.Right,label:g,tooltip:v,badge:m,value:!0===y||"true"===y,onChange:e=>w(e),disabled:x,errorMessage:$,warnMessage:C,helpMessage:M},u);default:return null}},se=({size:e=200})=>{const{tier:a}=h();return a===u.Onprem?I(K,{size:e}):I(X,{size:e})},ie=(e,a)=>!a?.length||!!a?.find(a=>a===e),te=({title:e="Signals",required:a,errorMessage:r,allowedSignals:s,selectedSignals:t,setSelectedSignals:n,disabled:o})=>{const[l,d]=q(1===t.length),c=z(JSON.stringify(t));V(()=>{const e=g(t);e.length||v.forEach(({id:a})=>{ie(a,s)&&e.push(a)});const a=JSON.stringify(e);c.current!==a&&(c.current=a,n(e),d(1===e.length))},[s,t]);return T(m,{$gap:12,children:[I(b,{label:e,required:a}),I(f,{$gap:12,children:v.map(e=>{const a=ie(e.id,s),r=((e,a)=>!!a?.find(a=>a===e))(e.id,t);return a?I(i,{label:e.value,disabled:o||!a||l&&r,value:r,onChange:a=>((e,a)=>{const r=e,s=a?[...t,r]:t.filter(e=>e!==r);n(s),d(1===s.length)})(e.id,a)},e.id):null})}),I(x,{errorMessage:r})]})},ne=({minSupportedVersion:a,currentVersion:r})=>I(e,{isOpen:!0,onClose:()=>{},relativeToParent:!0,visual:()=>I(y,{scale:2.4,icon:()=>I("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",children:I("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: ${r}.`}),oe=B.div`
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  justify-content: flex-end;
10
10
  width: ${({$width:e})=>e};
11
11
  gap: ${({$columnHasHeader:e})=>e?"0":"12px"};
12
- `,oe=j.div`
12
+ `,le=B.div`
13
13
  display: flex;
14
14
  align-items: center;
15
15
  min-height: 24px;
16
16
  padding: 12px;
17
17
  border-radius: 16px 16px 0 0;
18
18
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
19
- `,le=j.div`
19
+ `,de=B.div`
20
20
  display: flex;
21
21
  flex-direction: column;
22
22
  gap: ${({$gap:e})=>e}px;
@@ -27,27 +27,27 @@ import{cd as e,r as a,n as r,o as s,d as i,bj as t,y as n,m as o,M as l,p as d,I
27
27
  background-color: ${({theme:e})=>e.v2.colors.silver[900]};
28
28
  overflow-y: auto;
29
29
  overflow-x: hidden;
30
- `,de=({isLeft:e,isRight:a,heightOffset:r=0,width:s,header:i,list:t})=>T(ne,{$width:s,$columnHasHeader:!!i,children:[i&&I(oe,{children:i}),I(le,{$gap:8,$isLeft:e,$isRight:a,$heightOffset:r,$columnHasHeader:!!i,children:t.length?t.length>1?I(w,{gap:8,elements:t}):I(H,{children:t[0]}):I($,{$height:"100%",children:I(C,{})})})]}),ce="75vw",pe=j.div`
30
+ `,ce=({isLeft:e,isRight:a,heightOffset:r=0,width:s,header:i,list:t})=>T(oe,{$width:s,$columnHasHeader:!!i,children:[i&&I(le,{children:i}),I(de,{$gap:8,$isLeft:e,$isRight:a,$heightOffset:r,$columnHasHeader:!!i,children:t.length?t.length>1?I(w,{gap:8,elements:t}):I(H,{children:t[0]}):I($,{$height:"100%",children:I(C,{})})})]}),pe="75vw",he=B.div`
31
31
  display: flex;
32
32
  flex-direction: column;
33
33
  border-radius: 16px;
34
34
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
35
35
  overflow: hidden;
36
- `,he=j.div`
36
+ `,ue=B.div`
37
37
  display: flex;
38
38
  gap: 12px;
39
39
  padding: 16px 16px 0 16px;
40
40
  background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
41
41
  position: sticky;
42
42
  top: 0;
43
- `,ue=j.div`
43
+ `,ge=B.div`
44
44
  padding: 12px 12px 0 12px;
45
- `,ge=j.div`
45
+ `,ve=B.div`
46
46
  display: flex;
47
47
  gap: 12px;
48
48
  padding: 16px;
49
- `,ve=j.div`
49
+ `,me=B.div`
50
50
  padding: 5vh 10vw;
51
51
  border-radius: 12px;
52
52
  background-color: ${({theme:e})=>e.v2.colors.silver[800]};
53
- `,me=K(({isOpen:e,withOverlay:a,disableAnimation:r,onClose:s,onBack:i,onNext:t,nextIsSkip:n,onSave:o,disableSave:l,connectionIds:d,header:c,subHeader:p,leftColumn:h,rightColumn:u,search:g,filters:v,errorMessage:m,isFormDirty:b,hideDirtyNote:f,isFetching:x,progress:y},w)=>{const[C,A]=F(!1),[H,j]=F(!1),[q,z]=F(void 0);X(w,()=>({clearErrors:()=>z(void 0)}));const P=H,B=_(()=>{b&&!C?A(!0):(A(!1),s?.())},[b,C,s]),K=l||H||"boolean"==typeof b&&!b,Y=_(async()=>{j(!0);const e=await o();j(!1),e?.error?z(e.error):(d?.setValue([]),s?.())},[o,d,s]),U=!!g||!!d||!!v,Z=!!p,Q=(U?48:0)+(Z?50:0),W=G(()=>x?{status:M.Info,message:"Fetching Data..."}:H&&!y?{status:M.Info,message:"Saving Changes..."}:q||m?{status:M.Error,message:q||m}:"boolean"==typeof b&&b&&!f?{status:M.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||f?void 0:{status:M.Success,message:"The values reflect the current configuration of the selected cluster."},[x,H,y,q,m,b,f]),ee=G(()=>i?{label:"Back",leftIcon:V,variant:L.Secondary,onClick:i}:{label:"Cancel",variant:L.Secondary,onClick:B,disabled:P},[i,B,P]),ae=G(()=>t?n?{"data-id":"wide-drawer-skip",label:"Skip",rightIcon:R,variant:L.Secondary,onClick:t}:{"data-id":"wide-drawer-next",label:"Next",rightIcon:R,variant:L.Primary,onClick:t}:{"data-id":"wide-drawer-save",label:"Save",variant:L.Primary,onClick:Y,disabled:K},[t,n,Y,K]);return T(S,{width:ce,isOpen:e,disableAnimation:r,hideOverlay:!H&&!a,header:{...c,onClose:s?B:void 0,onCloseDisabled:P},footer:{note:W,actions:[ee,ae]},children:[H?I($,{$height:"calc(100vh - 136px)",children:I(ve,{children:I(k,{titleSize:O.S,subTitleSize:O.XXXS,withGradient:!0,withSpinner:!0,...y})})}):T(pe,{children:[U&&T(he,{children:[d&&I(D,{icon:E,title:"Selected Clusters",badge:{label:d.value.length}}),g&&I(N,{width:"100%",...g}),v]}),Z&&I(ue,{children:I(D,{icon:p.icon,title:p.title,subTitle:p.description,badge:p.badge})}),T(ge,{children:[I(de,{isLeft:!0,heightOffset:Q,...h}),I(de,{isRight:!0,heightOffset:Q,...u})]})]}),I(J,{isOpen:C,onClose:()=>A(!1),onApprove:B})]})});me.displayName=me.name;export{J as CancelModal,W as ColoredSpan,U as ColoredSpanVariant,ee as DeleteModal,ae as DynamicField,re as OdigosLogoTextByTier,D as RichTitle,ie as SignalsCheckboxList,te as UpgradeModal,ce as WIDE_DRAWER_WIDTH,me as WideDrawer};
53
+ `,be=R(({isOpen:e,withOverlay:a,disableAnimation:r,onClose:s,onBack:i,onNext:t,nextIsSkip:n,onSave:o,disableSave:l,connectionIds:d,header:c,subHeader:p,leftColumn:h,rightColumn:u,search:g,filters:v,errorMessage:m,isFormDirty:b,hideDirtyNote:f,isFetching:x,progress:y},w)=>{const[C,A]=q(!1),[H,j]=q(!1),[z,V]=q(void 0);F(w,()=>({clearErrors:()=>V(void 0)}));const R=H,B=E(()=>{b&&!C?A(!0):(A(!1),s?.())},[b,C,s]),K=l||H||"boolean"==typeof b&&!b,X=E(async()=>{j(!0);const e=await o();j(!1),e?.error?V(e.error):(d?.setValue([]),s?.())},[o,d,s]),Y=!!g||!!d||!!v,Z=!!p,Q=(Y?48:0)+(Z?50:0),W=P(()=>x?{status:M.Info,message:"Fetching Data..."}:H&&!y?{status:M.Info,message:"Saving Changes..."}:z||m?{status:M.Error,message:z||m}:"boolean"==typeof b&&b&&!f?{status:M.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||f?void 0:{status:M.Success,message:"The values reflect the current configuration of the selected cluster."},[x,H,y,z,m,b,f]),ee=P(()=>i?{label:"Back",leftIcon:_,variant:L.Secondary,onClick:i}:{label:"Cancel",variant:L.Secondary,onClick:B,disabled:R},[i,B,R]),ae=P(()=>t?n?{"data-id":"wide-drawer-skip",label:"Skip",rightIcon:G,variant:L.Secondary,onClick:t}:{"data-id":"wide-drawer-next",label:"Next",rightIcon:G,variant:L.Primary,onClick:t}:{"data-id":"wide-drawer-save",label:"Save",variant:L.Primary,onClick:X,disabled:K},[t,n,X,K]);return T(S,{width:pe,isOpen:e,disableAnimation:r,hideOverlay:!H&&!a,header:{...c,onClose:s?B:void 0,onCloseDisabled:R},footer:{note:W,actions:[ee,ae]},children:[H?I($,{$height:"calc(100vh - 136px)",children:I(me,{children:I(k,{titleSize:O.S,subTitleSize:O.XXXS,withGradient:!0,withSpinner:!0,...y})})}):T(he,{children:[Y&&T(ue,{children:[d&&I(D,{icon:J,title:"Selected Clusters",badge:{label:d.value.length}}),g&&I(N,{width:"100%",...g}),v]}),Z&&I(ge,{children:I(D,{icon:p.icon,title:p.title,subTitle:p.description,badge:p.badge})}),T(ve,{children:[I(ce,{isLeft:!0,heightOffset:Q,...h}),I(ce,{isRight:!0,heightOffset:Q,...u})]})]}),I(U,{isOpen:C,onClose:()=>A(!1),onApprove:B})]})});be.displayName=be.name;export{U as CancelModal,ee as ColoredSpan,Z as ColoredSpanVariant,ae as DeleteModal,re as DynamicField,se as OdigosLogoTextByTier,D as RichTitle,te as SignalsCheckboxList,ne as UpgradeModal,pe as WIDE_DRAWER_WIDTH,be as WideDrawer};
package/lib/snippets.js CHANGED
@@ -1 +1 @@
1
- export{ct as AddButton,e4 as CopyText,d$ as EditButton,d_ as Flow,fd as MapItemNode,fe as NoDataNode,dG as NoteBackToSummary,e6 as PodContainer,ec as SourceContainer}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{ct as AddButton,e4 as CopyText,d$ as EditButton,d_ as Flow,fd as MapItemNode,fe as NoDataNode,dG as NoteBackToSummary,e6 as PodContainer,ec as SourceContainer}from"./chunks/ui-components-CI2PiWkX.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{bq as ProgressKeys,dZ as useActiveNodeStore,ei as useDarkMode,E as useDataStreamStore,cA as useDrawerStore,bk as useEntityStore,cX as useFilterStore,cL as useModalStore,dR as useNotificationStore,bp as useProgressStore,db as useSelectedStore,dD as useSetupStore}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{bq as ProgressKeys,dZ as useActiveNodeStore,ei as useDarkMode,E as useDataStreamStore,cA as useDrawerStore,bk as useEntityStore,cX as useFilterStore,cL as useModalStore,dR as useNotificationStore,bp as useProgressStore,db as useSelectedStore,dD as useSetupStore}from"./chunks/ui-components-CI2PiWkX.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{f5 as Provider,f6 as animations,f7 as opacity,f8 as palettes}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{f5 as Provider,f6 as animations,f7 as opacity,f8 as palettes}from"./chunks/ui-components-CI2PiWkX.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/types.js CHANGED
@@ -1 +1 @@
1
- export{eo as ActionCategory,f as ActionKeyTypes,s as ActionType,ep as AddNodeTypes,eq as BooleanOperation,U as CodeAttributesKeyTypes,cK as Crud,_ as CustomInstrumentationsKeyTypes,dd as DesiredStateProgress,er as DestinationTypes,es as EdgeTypes,aa as EntityTypes,r as FieldTypes,Y as GolangCustomProbe,W as HeadersCollectionKeyTypes,k as InputTypes,et as InstallationMethod,$ as InstrumentationRuleType,eu as IntrumentationStatus,Z as JavaCustomProbe,ev as JsonOperation,K as K8sAttributesFrom,eb as K8sResourceKind,ew as ListDirection,dX as NodeTypes,ex as NumberOperation,ey as OtelDistroName,dH as OtherEntityTypes,cU as OtherStatus,bm as OtherStatusType,X as PayloadCollectionKeyTypes,ez as PlatformType,eA as PodContainerLifecycleStatus,eB as PodContainerStatus,eC as PodPhase,eD as Profile,aH as ProgrammingLanguages,eE as SIGNAL_KEY_TO_TYPE,dM as SIGNAL_TYPE_TO_KEY,eF as SignalKey,J as SignalType,eG as SortDirection,Q as StatusType,eH as StringOperation,a9 as Tier,c2 as WorkloadRolloutStatus}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{eo as ActionCategory,f as ActionKeyTypes,s as ActionType,ep as AddNodeTypes,eq as BooleanOperation,U as CodeAttributesKeyTypes,cK as Crud,_ as CustomInstrumentationsKeyTypes,dd as DesiredStateProgress,er as DestinationTypes,es as EdgeTypes,aa as EntityTypes,r as FieldTypes,Y as GolangCustomProbe,W as HeadersCollectionKeyTypes,k as InputTypes,et as InstallationMethod,$ as InstrumentationRuleType,eu as IntrumentationStatus,Z as JavaCustomProbe,ev as JsonOperation,K as K8sAttributesFrom,eb as K8sResourceKind,ew as ListDirection,dX as NodeTypes,ex as NumberOperation,ey as OtelDistroName,dH as OtherEntityTypes,cU as OtherStatus,bm as OtherStatusType,X as PayloadCollectionKeyTypes,ez as PlatformType,eA as PodContainerLifecycleStatus,eB as PodContainerStatus,eC as PodPhase,eD as Profile,aH as ProgrammingLanguages,eE as SIGNAL_KEY_TO_TYPE,dM as SIGNAL_TYPE_TO_KEY,eF as SignalKey,J as SignalType,eG as SortDirection,Q as StatusType,eH as StringOperation,a9 as Tier,c2 as WorkloadRolloutStatus}from"./chunks/ui-components-CI2PiWkX.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{fr as VISUAL_ODIGOS_LOGO_HEIGHT,fs as VISUAL_ODIGOS_LOGO_WIDTH,en as VisualGreenRings,ft as VisualOdigosLogo}from"./chunks/ui-components-Bn9natqF.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{fr as VISUAL_ODIGOS_LOGO_HEIGHT,fs as VISUAL_ODIGOS_LOGO_WIDTH,en as VisualGreenRings,ft as VisualOdigosLogo}from"./chunks/ui-components-CI2PiWkX.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.223",
3
+ "version": "0.0.224",
4
4
  "author": "Odigos",
5
5
  "license": "MIT",
6
6
  "repository": {