@odigos/ui-kit 0.0.225 → 0.0.227

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/chunks/index-B0b5lJH3.js +3 -0
  3. package/lib/chunks/index-C-Z4QHpA.js +149 -0
  4. package/lib/chunks/ui-components-C7i9zbc-.js +2652 -0
  5. package/lib/components/_v2/cards/data-card/index.d.ts +16 -3
  6. package/lib/components/_v2/charts/gauge-chart/index.d.ts +18 -0
  7. package/lib/components/_v2/charts/index.d.ts +1 -0
  8. package/lib/components/_v2/condition/index.d.ts +13 -0
  9. package/lib/components/_v2/conditions/index.d.ts +8 -0
  10. package/lib/components/_v2/drawer/header/index.d.ts +6 -1
  11. package/lib/components/_v2/drop-data/index.d.ts +1 -0
  12. package/lib/components/_v2/icon-button/index.d.ts +1 -0
  13. package/lib/components/_v2/index.d.ts +3 -0
  14. package/lib/components/_v2/tag/index.d.ts +2 -1
  15. package/lib/components/v2.js +1 -1
  16. package/lib/components.js +1 -1
  17. package/lib/constants.js +1 -1
  18. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +1 -1
  19. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +3 -1
  20. package/lib/containers/_v2/_drawers/edit-action-drawer/helpers.d.ts +12 -0
  21. package/lib/containers/_v2/_drawers/edit-action-drawer/index.d.ts +9 -0
  22. package/lib/containers/_v2/_drawers/edit-destination-drawer/helpers.d.ts +11 -0
  23. package/lib/containers/_v2/_drawers/edit-destination-drawer/index.d.ts +11 -0
  24. package/lib/containers/_v2/_drawers/edit-rule-drawer/helpers.d.ts +13 -0
  25. package/lib/containers/_v2/_drawers/edit-rule-drawer/index.d.ts +9 -0
  26. package/lib/containers/_v2/_drawers/index.d.ts +3 -0
  27. package/lib/containers/_v2/_forms/add-action-form/index.d.ts +0 -1
  28. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +8 -4
  29. package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +0 -1
  30. package/lib/containers/_v2/_forms/index.d.ts +0 -1
  31. package/lib/containers/_v2/onboarding/summary/index.d.ts +1 -1
  32. package/lib/containers/_v2/pipeline-collectors/enum.d.ts +4 -0
  33. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/get-general-badge.d.ts +1 -1
  34. package/lib/containers/_v2/pipeline-collectors/general-info/helpers/get-general-gauge-cards.d.ts +4 -0
  35. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/get-general-status-card.d.ts +1 -1
  36. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/get-general-text-cards.d.ts +1 -1
  37. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/get-general-title.d.ts +1 -1
  38. package/lib/containers/_v2/pipeline-collectors/{helpers → general-info/helpers}/index.d.ts +2 -1
  39. package/lib/containers/_v2/pipeline-collectors/general-info/index.d.ts +7 -6
  40. package/lib/containers/_v2/pipeline-collectors/index.d.ts +5 -0
  41. package/lib/containers/_v2/pipeline-collectors/toolbar/index.d.ts +1 -11
  42. package/lib/containers/source-drawer/profiling/flamebearer.d.ts +5 -0
  43. package/lib/containers/v2.js +43 -56
  44. package/lib/containers.js +45 -45
  45. package/lib/contexts/action-form-context.d.ts +19 -0
  46. package/lib/{containers/_v2/_forms/add-destination-form/context.d.ts → contexts/destination-form-context.d.ts} +5 -4
  47. package/lib/contexts/index.d.ts +4 -0
  48. package/lib/contexts/rule-form-context.d.ts +19 -0
  49. package/lib/contexts/source-instrument-form-context.d.ts +22 -0
  50. package/lib/contexts.js +1 -1
  51. package/lib/functions/get-status-color/index.d.ts +2 -2
  52. package/lib/functions/get-status-icon/index.d.ts +2 -2
  53. package/lib/functions.js +1 -1
  54. package/lib/hooks.js +1 -1
  55. package/lib/snippets/_v2/yaml-section-card/index.d.ts +2 -0
  56. package/lib/snippets/v2.js +1 -1
  57. package/lib/snippets.js +1 -1
  58. package/lib/store.js +1 -1
  59. package/lib/theme.js +1 -1
  60. package/lib/types/common/index.d.ts +36 -0
  61. package/lib/types.js +1 -1
  62. package/lib/visuals.js +1 -1
  63. package/package.json +1 -1
  64. package/lib/chunks/index-BMJ_MZzY.js +0 -149
  65. package/lib/chunks/index-Dlnglk_e.js +0 -3
  66. package/lib/chunks/ui-components-BqdkaDt2.js +0 -2543
  67. package/lib/components/_v2/cards/section-part-card/index.d.ts +0 -11
  68. package/lib/containers/_v2/_forms/add-action-form/context.d.ts +0 -18
  69. package/lib/containers/_v2/_forms/add-rule-form/context.d.ts +0 -18
  70. package/lib/containers/_v2/_forms/add-source-form/context.d.ts +0 -21
  71. package/lib/containers/_v2/_forms/add-source-form/index.d.ts +0 -1
@@ -1,13 +1,26 @@
1
- import { type FC } from 'react';
1
+ import { type ReactNode, type FC } from 'react';
2
2
  import { type BadgeProps } from '../../badge';
3
+ import { DefaultTheme } from 'styled-components';
4
+ import { type ActionsProps } from '@/snippets/_v2/actions';
5
+ import { type RichTitleProps } from '@/snippets/_v2/rich-title';
6
+ type BgTint = keyof DefaultTheme['v2']['colors']['silver'];
3
7
  export interface DataCardProps {
4
- cellsPerRow: number;
5
- items: {
8
+ bgTint?: BgTint;
9
+ fullHeight?: boolean;
10
+ moreSpacing?: boolean;
11
+ richTitle?: RichTitleProps;
12
+ withCollapse?: boolean;
13
+ collapseIsDefaultOpen?: boolean;
14
+ actions?: ActionsProps['actions'];
15
+ cellsPerRow?: number;
16
+ items?: {
6
17
  id: string;
7
18
  title: string;
8
19
  label?: string;
9
20
  withCopy?: boolean;
10
21
  badge?: BadgeProps;
11
22
  }[];
23
+ children?: ReactNode;
12
24
  }
13
25
  export declare const DataCard: FC<DataCardProps>;
26
+ export {};
@@ -0,0 +1,18 @@
1
+ import { type FC, type CSSProperties } from 'react';
2
+ export declare enum GaugeChartVariant {
3
+ CurrentOfMax = "currentOfMax",
4
+ GoodAgainstBad = "goodAgainstBad"
5
+ }
6
+ export interface GaugeChartProps {
7
+ variant?: GaugeChartVariant;
8
+ gaugeWidth?: CSSProperties['width'];
9
+ min?: number | string;
10
+ max: number | string;
11
+ current: number | string;
12
+ title?: string;
13
+ primaryLabel: string;
14
+ primaryColor?: string;
15
+ secondaryLabel: string;
16
+ secondaryColor?: string;
17
+ }
18
+ export declare const GaugeChart: FC<GaugeChartProps>;
@@ -0,0 +1 @@
1
+ export * from './gauge-chart';
@@ -0,0 +1,13 @@
1
+ import { type FC } from 'react';
2
+ import { OtherStatus, OtherStatusType, StatusType } from '@/types';
3
+ export interface ConditionProps {
4
+ status: StatusType | OtherStatus | OtherStatusType;
5
+ title: string;
6
+ subTitle?: string;
7
+ badgeLabel?: string;
8
+ loading?: boolean;
9
+ isExtended?: boolean;
10
+ toggleExtended?: () => void;
11
+ invertColors?: boolean;
12
+ }
13
+ export declare const Condition: FC<ConditionProps>;
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ import { type Condition as ConditionType } from '@/types';
3
+ export interface ConditionsProps {
4
+ conditions: ConditionType[];
5
+ title?: string;
6
+ subTitle?: string;
7
+ }
8
+ export declare const Conditions: FC<ConditionsProps>;
@@ -1,12 +1,17 @@
1
1
  import { type FC } from 'react';
2
2
  import type { SVG } from '@/types';
3
3
  import { type ToggleProps } from '../../toggle';
4
+ import { type DropDataProps } from '../../drop-data';
4
5
  export interface HeaderProps {
5
6
  icon?: SVG;
7
+ iconSrc?: string;
6
8
  title?: string;
7
9
  subTitle?: string;
8
10
  toggleProps?: ToggleProps;
9
- actions?: [];
11
+ actions?: (DropDataProps['items'][number] & {
12
+ active?: boolean;
13
+ onClick: () => void;
14
+ })[];
10
15
  onClose?: () => void;
11
16
  onCloseDisabled?: boolean;
12
17
  }
@@ -13,6 +13,7 @@ export declare enum DropDataAlignY {
13
13
  export interface DropDataOption {
14
14
  id: string;
15
15
  label: string;
16
+ color?: CSSProperties['color'];
16
17
  icon?: SVG;
17
18
  withCheckbox?: boolean;
18
19
  }
@@ -7,6 +7,7 @@ export declare enum IconButtonSize {
7
7
  L = 32
8
8
  }
9
9
  export interface IconButtonProps {
10
+ 'data-id'?: string;
10
11
  icon: SVG;
11
12
  size?: IconButtonSize;
12
13
  onClick?: MouseEventHandler;
@@ -3,8 +3,11 @@ export * from './badge';
3
3
  export * from './button';
4
4
  export * from './button-tab';
5
5
  export * from './cards';
6
+ export * from './charts';
6
7
  export * from './checkbox';
7
8
  export * from './cli-command';
9
+ export * from './condition';
10
+ export * from './conditions';
8
11
  export * from './drawer';
9
12
  export * from './drop-data';
10
13
  export * from './drop-down';
@@ -1,4 +1,4 @@
1
- import { type FC } from 'react';
1
+ import { CSSProperties, type FC } from 'react';
2
2
  import { type SVG } from '@/types';
3
3
  export interface TagProps {
4
4
  label: string;
@@ -6,5 +6,6 @@ export interface TagProps {
6
6
  rightIcon?: SVG;
7
7
  onClick?: () => void;
8
8
  disabled?: boolean;
9
+ flex?: CSSProperties['flex'];
9
10
  }
10
11
  export declare const Tag: FC<TagProps>;
@@ -1 +1 @@
1
- export{eR as Autocomplete,a0 as Badge,q as Button,B as ButtonSize,g3 as ButtonTab,g4 as ButtonTabList,a as ButtonVariants,d as Checkbox,g5 as CheckboxList,eT as CheckboxSize,bg as CliCommand,g6 as DEFAULT_TIME_UNITS,b6 as DataCard,aW as Drawer,b3 as DropData,b5 as DropDataAlignX,b4 as DropDataAlignY,av as DropDown,j as FieldMessage,i as FieldTitle,g7 as Header,dL as HoverActions,aq as IconButton,ar as IconButtonSize,I as Input,p as InputList,m as InputTable,bc as Island,as as Loader,g8 as Modal,g9 as Navbar,N as NoData,P as Note,eb as Radio,ga as RadioGroup,gb as RadioSize,dF as Search,S as SectionCard,gc as SectionCardSize,x as Segment,aw as SegmentSize,bN as SegmentVariant,bk as StatusCard,bd as Stepper,ba as Table,bb as TableVariant,gd as Tag,y as TextArea,bl as TextCard,d$ as TimeInput,n as Toggle,o as ToggleLabelAlign,ge as ToggleList,aA as ToggleSize,a$ as ToggleVariant,T as Typography,e as TypographySize,aB as TypographyVariants,bQ as WarningModal}from"../chunks/ui-components-BqdkaDt2.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{e$ as Autocomplete,Y as Badge,o as Button,B as ButtonSize,gd as ButtonTab,ge as ButtonTabList,a as ButtonVariants,e as Checkbox,gf as CheckboxList,f1 as CheckboxSize,bz as CliCommand,gg as Condition,aL as Conditions,gh as DEFAULT_TIME_UNITS,D as DataCard,aI as Drawer,bj as DropData,bl as DropDataAlignX,bk as DropDataAlignY,am as DropDown,f as FieldMessage,d as FieldTitle,bC as GaugeChart,gi as GaugeChartVariant,gj as Header,dV as HoverActions,ag as IconButton,ah as IconButtonSize,I as Input,l as InputList,j as InputTable,bu as Island,aj as Loader,gk as Modal,gl as Navbar,N as NoData,z as Note,el as Radio,gm as RadioGroup,gn as RadioSize,dP as Search,aa as SectionCard,go as SectionCardSize,S as Segment,an as SegmentSize,bF as SegmentVariant,bB as StatusCard,bv as Stepper,bo as Table,bp as TableVariant,aV as Tag,w as TextArea,bD as TextCard,e9 as TimeInput,T as Toggle,k as ToggleLabelAlign,gp as ToggleList,ax as ToggleSize,bf as ToggleVariant,s as Typography,t as TypographySize,ay as TypographyVariants,c5 as WarningModal}from"../chunks/ui-components-C7i9zbc-.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";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{cr as AutocompleteInput,cL as Badge,cN as Button,ce as CancelWarning,b as CenterThis,bY as Checkbox,C as Code,ci as ConditionDetails,cj as DataCard,bW as DataCardFieldTypes,dp as DataCardFields,fQ as DataFinger,cP as DataTab,cd as DeleteWarning,dJ as DescribeRow,D as Divider,c7 as DocsButton,cc as Drawer,fR as DrawerFooter,fS as DrawerHeader,d8 as Dropdown,fT as ErrorBoundary,df as ExtendArrow,bf as FadeLoader,bZ as FieldError,bX as FieldLabel,F as FlexColumn,c as FlexRow,fU as Header,c3 as IconButton,dT as IconGroup,cF as IconTitleBadge,cA as IconWrapped,dD as IconsNav,fV as ImageControlled,b_ as Input,c2 as InputList,b$ as InputTable,cI as InteractiveTable,c1 as KeyValueInputsList,fW as LoadingText,co as Modal,cp as ModalBody,c8 as MonitorsCheckboxes,cC as MonitorsIcons,cs as NavigationButtons,cJ as NoDataFound,cq as NotificationNote,fX as Overlay,aY as Padding,b9 as PageContent,d3 as Popup,dV as PopupForm,d_ as ScrollX,cT as ScrollY,c6 as SectionTitle,c5 as Segment,d5 as SelectionButton,cX as SkeletonLoader,cu as Status,dn as Stepper,fY as TabList,cD as TableContainer,cE as TableTitleWrap,cH as TableWrap,dr as Tag,ca as Text,c9 as TextArea,c0 as Toggle,dY as ToggleCodeComponent,V as Tooltip,cK as TraceLoader,bn as UpgradeRequiredWrapper,d4 as VerticalScroll,du as WarningModal,fZ as getLinksFromText,f_ as getStrongsFromText,f$ as renderText}from"./chunks/ui-components-BqdkaDt2.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{cG as AutocompleteInput,c_ as Badge,d1 as Button,cv as CancelWarning,b as CenterThis,cd as Checkbox,C as Code,cy as ConditionDetails,cz as DataCard,cb as DataCardFieldTypes,dA as DataCardFields,g1 as DataFinger,d3 as DataTab,cu as DeleteWarning,dT as DescribeRow,m as Divider,co as DocsButton,ct as Drawer,g2 as DrawerFooter,g3 as DrawerHeader,dl as Dropdown,g4 as ErrorBoundary,dt as ExtendArrow,d0 as FadeLoader,ce as FieldError,cc as FieldLabel,F as FlexColumn,n as FlexRow,g5 as Header,ck as IconButton,e1 as IconGroup,cU as IconTitleBadge,cP as IconWrapped,dN as IconsNav,g6 as ImageControlled,cf as Input,cj as InputList,cg as InputTable,cX as InteractiveTable,ci as KeyValueInputsList,g7 as LoadingText,cD as Modal,cE as ModalBody,cp as MonitorsCheckboxes,cR as MonitorsIcons,cH as NavigationButtons,cY as NoDataFound,cF as NotificationNote,g8 as Overlay,aK as Padding,bn as PageContent,dh as Popup,e3 as PopupForm,e8 as ScrollX,d7 as ScrollY,cn as SectionTitle,cm as Segment,dj as SelectionButton,da as SkeletonLoader,cJ as Status,dz as Stepper,g9 as TabList,cS as TableContainer,cT as TableTitleWrap,cW as TableWrap,dC as Tag,cr as Text,cq as TextArea,ch as Toggle,e6 as ToggleCodeComponent,O as Tooltip,cZ as TraceLoader,bE as UpgradeRequiredWrapper,di as VerticalScroll,dE as WarningModal,ga as getLinksFromText,gb as getStrongsFromText,gc as renderText}from"./chunks/ui-components-C7i9zbc-.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";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{an as ACTION_ATTRIBUTE_OPTIONS,ch as ACTION_OPTIONS,ao as ACTION_SAMPLER_OPTIONS,fy as ALL_SOURCES,aF as BTN_CANCEL,aN as BTN_CREATE_RULE,aI as BTN_DELETE_RULE,eE as BTN_EDIT_AUTO_RULE,aH as BTN_EDIT_RULE,aV as BTN_SAVE,aG as BTN_SAVE_RULE,b8 as BUTTON_TEXTS,aK as CATEGORY_DESCRIPTIONS,eC as CATEGORY_LABELS,aO as CATEGORY_TITLES,fz as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fA as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fB as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,a5 as DEFAULT_CLUSTER_ID,a4 as DEFAULT_CLUSTER_NAME,de as DEFAULT_DATA_STREAM_NAME,af as DESC_DROP_PERCENTAGE,e5 as DESC_DURATION,e4 as DESC_ERRORS,aj as DESC_KEEP_PERCENTAGE,e8 as DESC_OPERATION,eP as DESC_SOURCE_SCOPE,at as DESTINATION_CATEGORIES,a1 as DISPLAY_LANGUAGES,ap as DISPLAY_TITLES,w as DOCS_BASE_URL,G as DestinationCategoryTypes,aR as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,aS as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,aP as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,aQ as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,aT as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,aU as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,aL as EDIT_TITLES,el as EMPTY_VALUE,bq as FILTER_TYPE_ALL,O as FORM_ALERTS,ay as INSTRUMENTATION_RULE_OPTIONS,e6 as LABEL_CUSTOM_DURATION,am as LABEL_CUSTOM_PERCENTAGE,bp as LABEL_DISABLED_RULE,eu as LABEL_DROP_ALL,ae as LABEL_DROP_AT_MOST,er as LABEL_DROP_PERCENTAGE,ee as LABEL_HTTP_ROUTE,eg as LABEL_HTTP_ROUTE_PREFIX,ei as LABEL_KAFKA_TOPIC,ev as LABEL_KEEP_ALL,ai as LABEL_KEEP_AT_LEAST,es as LABEL_KEEP_AT_MOST,eq as LABEL_KEEP_PERCENTAGE,e3 as LABEL_KEEP_TRACES_DURATION,e1 as LABEL_KEEP_TRACES_ERRORS,eh as LABEL_METHOD,ey as LABEL_NOTE,eM as LABEL_NO_PREVIEW,ek as LABEL_OPERATION_TYPE,a_ as LABEL_RULE_DISABLED,aZ as LABEL_RULE_ENABLED,ew as LABEL_RULE_NAME,ex as LABEL_RULE_TYPE,et as LABEL_SAMPLE,ea as LABEL_SERVER_ADDRESS,ed as LABEL_TEMPLATED_PATH,ef as LABEL_TEMPLATED_PATH_PREFIX,fC as LANGUAGE_OPTIONS,d9 as MONITORS_OPTIONS,eO as NOTE_ENTIRE_CLUSTER,eQ as NOTE_SOURCE_SCOPE_LOGIC,fD as OPENTELEMETRY_EBPF_DISTRO_OPTION,en as OPERATION_ALL,em as OPERATION_HTTP_CLIENT,ej as OPERATION_HTTP_SERVER,eo as OPERATION_KAFKA_CONSUMER,ep as OPERATION_KAFKA_PRODUCER,fE as OTEL_DISTRO_NAME_OPTIONS,eA as PLACEHOLDER_NOTE,ec as PLACEHOLDER_ROUTE,ez as PLACEHOLDER_RULE_NAME,eS as PLACEHOLDER_SEARCH_SOURCE,e9 as PLACEHOLDER_SERVER_ADDRESS,al as SAMPLING_AUTO_RULE_TITLE,bJ as SAMPLING_BTN_CREATE_RULE,bH as SAMPLING_BTN_DOCS,bI as SAMPLING_BTN_REFRESH,ah as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,bS as SAMPLING_DELETE_MODAL_APPROVE,bR as SAMPLING_DELETE_MODAL_CANCEL,bT as SAMPLING_DELETE_MODAL_DESCRIPTION,bU as SAMPLING_DELETE_MODAL_TITLE,aX as SAMPLING_DRAWER_WIDTH,bG as SAMPLING_DUPLICATE_RULE_WARNING,ad as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,bK as SAMPLING_PAGE_DESCRIPTION,bL as SAMPLING_PAGE_TITLE,ag as SECTION_DROP_PERCENTAGE,e2 as SECTION_DURATION,e0 as SECTION_ERRORS,ak as SECTION_KEEP_PERCENTAGE,e7 as SECTION_OPERATION,eL as SECTION_SAMPLING_PREVIEW,eN as SECTION_SOURCE_SCOPE,da as STORAGE_KEYS,fF as TOKEN_ABOUT_TO_EXPIRE,eB as TOOLTIP_NOTE,aM as UNNAMED_RULE}from"./chunks/ui-components-BqdkaDt2.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{ad as ACTION_ATTRIBUTE_OPTIONS,cx as ACTION_OPTIONS,ae as ACTION_SAMPLER_OPTIONS,fL as ALL_SOURCES,aX as BTN_CANCEL,b3 as BTN_CREATE_RULE,a_ as BTN_DELETE_RULE,eO as BTN_EDIT_AUTO_RULE,aZ as BTN_EDIT_RULE,bb as BTN_SAVE,aY as BTN_SAVE_RULE,aJ as BUTTON_TEXTS,b0 as CATEGORY_DESCRIPTIONS,eM as CATEGORY_LABELS,b4 as CATEGORY_TITLES,fM as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fN as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fO as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aG as DEFAULT_CLUSTER_ID,aF as DEFAULT_CLUSTER_NAME,ds as DEFAULT_DATA_STREAM_NAME,a3 as DESC_DROP_PERCENTAGE,ef as DESC_DURATION,ee as DESC_ERRORS,a7 as DESC_KEEP_PERCENTAGE,ei as DESC_OPERATION,eZ as DESC_SOURCE_SCOPE,ak as DESTINATION_CATEGORIES,Z as DISPLAY_LANGUAGES,af as DISPLAY_TITLES,v as DOCS_BASE_URL,ai as DestinationCategoryTypes,b7 as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,b8 as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,b5 as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,b6 as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,b9 as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,ba as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,b1 as EDIT_TITLES,ev as EMPTY_VALUE,bI as FILTER_TYPE_ALL,aU as FORM_ALERTS,ar as INSTRUMENTATION_RULE_OPTIONS,eg as LABEL_CUSTOM_DURATION,ab as LABEL_CUSTOM_PERCENTAGE,bH as LABEL_DISABLED_RULE,eE as LABEL_DROP_ALL,a2 as LABEL_DROP_AT_MOST,eB as LABEL_DROP_PERCENTAGE,eo as LABEL_HTTP_ROUTE,eq as LABEL_HTTP_ROUTE_PREFIX,es as LABEL_KAFKA_TOPIC,eF as LABEL_KEEP_ALL,a6 as LABEL_KEEP_AT_LEAST,eC as LABEL_KEEP_AT_MOST,eA as LABEL_KEEP_PERCENTAGE,ed as LABEL_KEEP_TRACES_DURATION,eb as LABEL_KEEP_TRACES_ERRORS,er as LABEL_METHOD,eI as LABEL_NOTE,eW as LABEL_NO_PREVIEW,eu as LABEL_OPERATION_TYPE,be as LABEL_RULE_DISABLED,bd as LABEL_RULE_ENABLED,eG as LABEL_RULE_NAME,eH as LABEL_RULE_TYPE,eD as LABEL_SAMPLE,ek as LABEL_SERVER_ADDRESS,en as LABEL_TEMPLATED_PATH,ep as LABEL_TEMPLATED_PATH_PREFIX,fP as LANGUAGE_OPTIONS,dm as MONITORS_OPTIONS,eY as NOTE_ENTIRE_CLUSTER,e_ as NOTE_SOURCE_SCOPE_LOGIC,fQ as OPENTELEMETRY_EBPF_DISTRO_OPTION,ex as OPERATION_ALL,ew as OPERATION_HTTP_CLIENT,et as OPERATION_HTTP_SERVER,ey as OPERATION_KAFKA_CONSUMER,ez as OPERATION_KAFKA_PRODUCER,fR as OTEL_DISTRO_NAME_OPTIONS,eK as PLACEHOLDER_NOTE,em as PLACEHOLDER_ROUTE,eJ as PLACEHOLDER_RULE_NAME,f0 as PLACEHOLDER_SEARCH_SOURCE,ej as PLACEHOLDER_SERVER_ADDRESS,a9 as SAMPLING_AUTO_RULE_TITLE,b$ as SAMPLING_BTN_CREATE_RULE,bZ as SAMPLING_BTN_DOCS,b_ as SAMPLING_BTN_REFRESH,a5 as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,c7 as SAMPLING_DELETE_MODAL_APPROVE,c6 as SAMPLING_DELETE_MODAL_CANCEL,c8 as SAMPLING_DELETE_MODAL_DESCRIPTION,c9 as SAMPLING_DELETE_MODAL_TITLE,bc as SAMPLING_DRAWER_WIDTH,bY as SAMPLING_DUPLICATE_RULE_WARNING,a1 as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,c0 as SAMPLING_PAGE_DESCRIPTION,c1 as SAMPLING_PAGE_TITLE,a4 as SECTION_DROP_PERCENTAGE,ec as SECTION_DURATION,ea as SECTION_ERRORS,a8 as SECTION_KEEP_PERCENTAGE,eh as SECTION_OPERATION,eV as SECTION_SAMPLING_PREVIEW,eX as SECTION_SOURCE_SCOPE,dn as STORAGE_KEYS,fS as TOKEN_ABOUT_TO_EXPIRE,eL as TOOLTIP_NOTE,b2 as UNNAMED_RULE}from"./chunks/ui-components-C7i9zbc-.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";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,6 +1,6 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
2
  import type { HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type UnsavedDestination } from '../../_forms';
3
+ import { type UnsavedDestination } from '@/contexts';
4
4
  import type { CreateDestinationFunc, GetDestinationCategoriesFunc, GetPotentialDestinationsFunc, TestConnectionFunc, UpdateDestinationFunc } from '@/types';
5
5
  export interface AddDestinationDrawerProps {
6
6
  onClose?: HeaderProps['onClose'];
@@ -1,6 +1,6 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
2
  import { type HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type PersistSourceInput, type PersistSourcesFunc } from '@/types';
3
+ import { type FetchNamespacesWithWorkloads, type GetAllClusterSnapshots, type PersistSourceInput, type PersistSourcesFunc } from '@/types';
4
4
  export interface AddSourceDrawerProps {
5
5
  onClose?: HeaderProps['onClose'];
6
6
  onBack?: (input: PersistSourceInput) => void;
@@ -8,6 +8,8 @@ export interface AddSourceDrawerProps {
8
8
  selectedConnectionIds?: string[];
9
9
  setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
10
10
  persistSources: PersistSourcesFunc;
11
+ getAllClusterSnapshots?: GetAllClusterSnapshots;
12
+ fetchNamespacesWithWorkloads?: FetchNamespacesWithWorkloads;
11
13
  withOverlay?: boolean;
12
14
  disableAnimation?: boolean;
13
15
  }
@@ -0,0 +1,12 @@
1
+ import { type DataCardProps } from '@/components/_v2';
2
+ import { type Action, type ActionOption } from '@/types';
3
+ /**
4
+ * Build the items shown in the view-mode `DataCard` (Type, Status, Signals, Name, Notes).
5
+ */
6
+ export declare const buildDataCard: (action: Action, option: ActionOption) => DataCardProps["items"];
7
+ /**
8
+ * Build the items shown in the configuration `DataCard` (the action's type-specific fields).
9
+ * Mirrors the structured key/value rendering used by `edit-destination-drawer`.
10
+ * Replaces the per-type mapping in the legacy `build-card.ts`.
11
+ */
12
+ export declare const buildFieldsDataCard: (action: Action) => DataCardProps["items"];
@@ -0,0 +1,9 @@
1
+ import { type FC } from 'react';
2
+ import { type ActionFormData, type ActionType } from '@/types';
3
+ export interface EditActionDrawerProps {
4
+ onClose: () => void;
5
+ actionId: string;
6
+ updateAction: (id: string, payload: ActionFormData) => void | Promise<void>;
7
+ deleteAction: (id: string, actionType: ActionType) => void | Promise<void>;
8
+ }
9
+ export declare const EditActionDrawer: FC<EditActionDrawerProps>;
@@ -0,0 +1,11 @@
1
+ import { type DataCardProps } from '@/components/_v2';
2
+ import { type Destination, type DestinationYamlProperties } from '@/types';
3
+ /**
4
+ * Build the items shown in the view-mode `DataCard` (Type, Status, Monitors, Name).
5
+ */
6
+ export declare const buildDataCard: (destination: Destination) => DataCardProps["items"];
7
+ /**
8
+ * Build the items shown in the dynamic-fields `DataCard` (the destination's stored field values).
9
+ * Mirrors the legacy `build-card.ts` behaviour for visibility, secret masking and custom labels.
10
+ */
11
+ export declare const buildFieldsDataCard: (destination: Destination, yamlFields: DestinationYamlProperties[]) => DataCardProps["items"];
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ import { type GetDestinationCategoriesFunc, type TestConnectionFunc, type UpdateDestinationFunc } from '@/types';
3
+ export interface EditDestinationDrawerProps {
4
+ onClose: () => void;
5
+ destinationId: string;
6
+ getDestinationCategories: GetDestinationCategoriesFunc;
7
+ testConnection: TestConnectionFunc;
8
+ updateDestination: UpdateDestinationFunc;
9
+ deleteDestination: (id: string) => void | Promise<void>;
10
+ }
11
+ export declare const EditDestinationDrawer: FC<EditDestinationDrawerProps>;
@@ -0,0 +1,13 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type DataCardProps } from '@/components/_v2';
3
+ import { type InstrumentationRule, type InstrumentationRuleOption } from '@/types';
4
+ import { DefaultTheme } from 'styled-components/dist/types';
5
+ /**
6
+ * Build the items shown in the view-mode `DataCard` (Type, Status, Name, Managed by Profile, Notes).
7
+ */
8
+ export declare const buildDataCard: (rule: InstrumentationRule, option: InstrumentationRuleOption) => DataCardProps["items"];
9
+ /**
10
+ * Collect a flat list of human-readable strings that the rule is set to "collect".
11
+ * Replaces the per-type mapping in the legacy `build-card.ts`.
12
+ */
13
+ export declare const getCollectedItems: (rule: InstrumentationRule, theme: DefaultTheme) => ReactNode[];
@@ -0,0 +1,9 @@
1
+ import { type FC } from 'react';
2
+ import { type InstrumentationRuleFormData } from '@/types';
3
+ export interface EditRuleDrawerProps {
4
+ onClose: () => void;
5
+ ruleId: string;
6
+ updateInstrumentationRule: (ruleId: string, payload: InstrumentationRuleFormData) => void | Promise<void>;
7
+ deleteInstrumentationRule: (ruleId: string) => void | Promise<void>;
8
+ }
9
+ export declare const EditRuleDrawer: FC<EditRuleDrawerProps>;
@@ -2,6 +2,9 @@ export * from './add-action-drawer';
2
2
  export * from './add-destination-drawer';
3
3
  export * from './add-rule-drawer';
4
4
  export * from './add-source-drawer';
5
+ export * from './edit-action-drawer';
5
6
  export * from './edit-config-drawer';
7
+ export * from './edit-destination-drawer';
8
+ export * from './edit-rule-drawer';
6
9
  export * from './sampling-rule-drawer';
7
10
  export * from './system-drawer';
@@ -1,3 +1,2 @@
1
1
  import { type FC } from 'react';
2
- export * from './context';
3
2
  export declare const AddActionForm: FC;
@@ -1,7 +1,11 @@
1
- import { type FC } from 'react';
2
- import { type TestConnectionFunc } from '@/types';
3
- export * from './context';
1
+ import React from 'react';
2
+ import { type TestConnectionFunc, type TestConnectionResponse } from '@/types';
4
3
  export interface AddDestinationFormProps {
5
4
  testConnection: TestConnectionFunc;
5
+ isEdit?: boolean;
6
6
  }
7
- export declare const AddDestinationForm: FC<AddDestinationFormProps>;
7
+ export interface AddDestinationFormRef {
8
+ testConnection: () => Promise<TestConnectionResponse | undefined>;
9
+ testConnectionSupported: boolean;
10
+ }
11
+ export declare const AddDestinationForm: React.ForwardRefExoticComponent<AddDestinationFormProps & React.RefAttributes<AddDestinationFormRef>>;
@@ -1,3 +1,2 @@
1
1
  import { type FC } from 'react';
2
- export * from './context';
3
2
  export declare const AddRuleForm: FC;
@@ -1,5 +1,4 @@
1
1
  export * from './add-action-form';
2
2
  export * from './add-destination-form';
3
3
  export * from './add-rule-form';
4
- export * from './add-source-form';
5
4
  export * from './sampling-rule-form';
@@ -1,5 +1,5 @@
1
1
  import { type FC } from 'react';
2
- import { type UnsavedDestination } from '../../_forms';
2
+ import { type UnsavedDestination } from '@/contexts';
3
3
  import { type PersistSourceInput } from '@/types';
4
4
  export interface SummaryProps {
5
5
  setStep: (step: number) => void;
@@ -0,0 +1,4 @@
1
+ export declare enum Tabs {
2
+ Gateway = "gateway",
3
+ Node = "node"
4
+ }
@@ -1,4 +1,4 @@
1
- import { Tabs } from '../toolbar';
1
+ import { Tabs } from '../../enum';
2
2
  import { type FormatTimeAgo } from '@/hooks';
3
3
  import { type BadgeProps } from '@/components/_v2';
4
4
  import { type GatewayInfo, type NodeCollectoInfo } from '@/types';
@@ -0,0 +1,4 @@
1
+ import { Tabs } from '../../enum';
2
+ import { type GaugeChartProps } from '@/components/_v2';
3
+ import { type GatewayInfo, type NodeCollectoInfo } from '@/types';
4
+ export declare const getGeneralGaugeCards: (selectedTab: Tabs, gatewayInfo: GatewayInfo | null, nodeCollectorInfo: NodeCollectoInfo | null) => GaugeChartProps[];
@@ -1,4 +1,4 @@
1
- import { Tabs } from '../toolbar';
1
+ import { Tabs } from '../../enum';
2
2
  import { type StatusCardProps } from '@/components/_v2';
3
3
  import { type GatewayInfo, type NodeCollectoInfo } from '@/types';
4
4
  export declare const getGeneralStatusCard: (selectedTab: Tabs, gatewayInfo: GatewayInfo | null, nodeCollectorInfo: NodeCollectoInfo | null, isLoading: boolean) => StatusCardProps;
@@ -1,4 +1,4 @@
1
- import { Tabs } from '../toolbar';
1
+ import { Tabs } from '../../enum';
2
2
  import { type TextCardProps } from '@/components/_v2';
3
3
  import { type GatewayInfo, type NodeCollectoInfo } from '@/types';
4
4
  export declare const getGeneralTextCards: (selectedTab: Tabs, gatewayInfo: GatewayInfo | null, nodeCollectorInfo: NodeCollectoInfo | null, isLoading: boolean) => TextCardProps[];
@@ -1,2 +1,2 @@
1
- import { Tabs } from '../toolbar';
1
+ import { Tabs } from '../../enum';
2
2
  export declare const getGeneralTitle: (selectedTab: Tabs) => string;
@@ -1,4 +1,5 @@
1
- export * from './get-general-title';
2
1
  export * from './get-general-badge';
2
+ export * from './get-general-gauge-cards';
3
3
  export * from './get-general-status-card';
4
4
  export * from './get-general-text-cards';
5
+ export * from './get-general-title';
@@ -1,9 +1,10 @@
1
1
  import { type FC } from 'react';
2
- import { type SectionCardProps, type StatusCardProps, type TextCardProps } from '@/components/_v2';
3
- export interface GeneralInfoProps extends SectionCardProps {
4
- statusCard: StatusCardProps;
5
- textCards: TextCardProps[];
6
- manifestYaml: string;
7
- configMapYaml: string;
2
+ import { Tabs } from '../enum';
3
+ import { type GatewayInfo, type NodeCollectoInfo } from '@/types';
4
+ export interface GeneralInfoProps {
5
+ selectedTab: Tabs;
6
+ gatewayInfo: GatewayInfo | null;
7
+ nodeCollectorInfo: NodeCollectoInfo | null;
8
+ isLoading: boolean;
8
9
  }
9
10
  export declare const GeneralInfo: FC<GeneralInfoProps>;
@@ -1,4 +1,5 @@
1
1
  import { type FC, type CSSProperties } from 'react';
2
+ import { Tabs } from './enum';
2
3
  import { type GetExtendedPodInfo, type GetGatewayInfo, type GetGatewayPods, type GetNodeCollectorInfo, type GetNodeCollectorPods } from '@/types';
3
4
  export interface PipelineCollectorsProps {
4
5
  minSupportedVersion?: number;
@@ -9,4 +10,8 @@ export interface PipelineCollectorsProps {
9
10
  getNodeCollectorPods: GetNodeCollectorPods;
10
11
  getExtendedPodInfo: GetExtendedPodInfo;
11
12
  }
13
+ export declare const TABS: {
14
+ value: Tabs;
15
+ label: string;
16
+ }[];
12
17
  export declare const PipelineCollectors: FC<PipelineCollectorsProps>;
@@ -1,18 +1,8 @@
1
- import { type Dispatch, type SetStateAction, type FC } from 'react';
2
- export declare enum Tabs {
3
- Gateway = "gateway",
4
- Node = "node"
5
- }
1
+ import { type FC } from 'react';
6
2
  export interface ToolbarProps {
7
3
  disabled?: boolean;
8
4
  loading?: boolean;
9
- selectedTab: Tabs;
10
- setSelectedTab: Dispatch<SetStateAction<Tabs>>;
11
5
  onClickDownloadDiagnose?: () => void;
12
6
  onClickRefresh?: () => void;
13
7
  }
14
- export declare const TABS: {
15
- value: Tabs;
16
- label: string;
17
- }[];
18
8
  export declare const Toolbar: FC<ToolbarProps>;
@@ -29,6 +29,11 @@ export interface FlameRect {
29
29
  self: number;
30
30
  nameIndex: number;
31
31
  }
32
+ /**
33
+ * Expand Pyroscope / Grafana flamebearer **delta-encoded** x offsets per row to absolute offsets.
34
+ * Matches `TreeToFlamebearer` in Odigos (`frontend/services/profiles/flamegraph/flamebearer.go`):
35
+ * without this, `self > 0` leaves bogus gaps ("holes") under parent bars.
36
+ */
32
37
  export declare function flattenFlameRects(fb: Flamebearer): FlameRect[];
33
38
  /** Stable identity for a frame in the raw flamebearer (for zoom stack + hit-test). */
34
39
  export declare function flameRectKey(r: Pick<FlameRect, 'level' | 'offset' | 'size' | 'nameIndex'>): string;