@odigos/ui-kit 0.0.238 → 0.0.240

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 (169) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/lib/chunks/helpers-D-6cJlOn.js +19 -0
  3. package/lib/chunks/index-RUJS9Blu.js +147 -0
  4. package/lib/chunks/source-instrument-form-context-CEgbaSRi.js +1 -0
  5. package/lib/chunks/ui-components-B0BVzW_z.js +1570 -0
  6. package/lib/chunks/{vendor-C150cdxb.js → vendor-Be0cOokr.js} +1 -1
  7. package/lib/components/_v2/button/index.d.ts +1 -1
  8. package/lib/components/_v2/cards/data-card/index.d.ts +6 -1
  9. package/lib/components/_v2/condition/index.d.ts +1 -0
  10. package/lib/components/_v2/drawer/header/index.d.ts +2 -0
  11. package/lib/components/_v2/drawer/index.d.ts +1 -1
  12. package/lib/components/_v2/drop-data/index.d.ts +3 -4
  13. package/lib/components/_v2/icon-group/index.d.ts +10 -0
  14. package/lib/components/_v2/index.d.ts +1 -0
  15. package/lib/components/_v2/input-table/types.d.ts +2 -0
  16. package/lib/components/_v2/tag/index.d.ts +10 -0
  17. package/lib/components/_v2/typography/index.d.ts +2 -0
  18. package/lib/components/index.d.ts +0 -22
  19. package/lib/components/v2.js +1 -1
  20. package/lib/components.js +1 -1
  21. package/lib/constants/sources/index.d.ts +10 -5
  22. package/lib/constants/strings/index.d.ts +92 -0
  23. package/lib/constants.js +1 -1
  24. package/lib/containers/_v2/_drawers/add-source-drawer/strings.d.ts +54 -0
  25. package/lib/containers/_v2/_drawers/edit-source-drawer/common/index.d.ts +1 -0
  26. package/lib/containers/_v2/_drawers/edit-source-drawer/common/pods-header.d.ts +8 -0
  27. package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +12 -0
  28. package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +19 -0
  29. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/distro-override.d.ts +11 -0
  30. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +7 -0
  31. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/popup-form.d.ts +15 -0
  32. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/runtime-override.d.ts +10 -0
  33. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/health-card.d.ts +6 -0
  34. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +11 -0
  35. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/main-card.d.ts +6 -0
  36. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/index.d.ts +6 -0
  37. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/container-row.d.ts +9 -0
  38. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +19 -0
  39. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/index.d.ts +12 -0
  40. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/pod-row.d.ts +8 -0
  41. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +11 -0
  42. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/row-header.d.ts +13 -0
  43. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/types.d.ts +18 -0
  44. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/statuses-card.d.ts +9 -0
  45. package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +11 -0
  46. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/index.d.ts +7 -0
  47. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +5 -0
  48. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/debug-commands.d.ts +6 -0
  49. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/index.d.ts +7 -0
  50. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/pod-card.d.ts +8 -0
  51. package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/index.d.ts +2 -2
  52. package/lib/containers/_v2/_drawers/index.d.ts +1 -0
  53. package/lib/containers/_v2/_forms/edit-source-form/index.d.ts +2 -0
  54. package/lib/containers/_v2/_forms/index.d.ts +1 -0
  55. package/lib/containers/_v2/_modals/index.d.ts +1 -0
  56. package/lib/containers/_v2/_modals/onboarding-done/background.d.ts +5 -0
  57. package/lib/containers/_v2/_modals/onboarding-done/index.d.ts +3 -0
  58. package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -2
  59. package/lib/containers/_v2/overview/columns/column/list-item.d.ts +2 -2
  60. package/lib/containers/_v2/overview/columns/column/source-visual-state.d.ts +3 -3
  61. package/lib/containers/_v2/overview/drawers/index.d.ts +2 -4
  62. package/lib/containers/_v2/overview/search/builder.d.ts +4 -4
  63. package/lib/containers/index.d.ts +0 -3
  64. package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -2
  65. package/lib/containers/v2.js +269 -124
  66. package/lib/containers.js +19 -19
  67. package/lib/contexts/action-form-context.d.ts +0 -1
  68. package/lib/contexts/destination-form-context.d.ts +0 -1
  69. package/lib/contexts/index.d.ts +1 -0
  70. package/lib/contexts/rule-form-context.d.ts +0 -1
  71. package/lib/contexts/source-edit-form-context.d.ts +17 -0
  72. package/lib/contexts.js +1 -1
  73. package/lib/functions/filter-sources/index.d.ts +2 -2
  74. package/lib/functions/filter-sources-by-stream/index.d.ts +2 -2
  75. package/lib/functions/get-conditions-booleans/index.d.ts +5 -3
  76. package/lib/functions/get-containers-counts/index.d.ts +2 -2
  77. package/lib/functions/get-containers-icons/index.d.ts +5 -3
  78. package/lib/functions/get-entity-id/index.d.ts +8 -4
  79. package/lib/functions/get-main-container-language/index.d.ts +2 -2
  80. package/lib/functions/get-virtual-service-icon/index.d.ts +1 -1
  81. package/lib/functions/get-workload-id/index.d.ts +2 -2
  82. package/lib/functions/index.d.ts +2 -0
  83. package/lib/functions/is-pod-injected-with-agent/index.d.ts +4 -0
  84. package/lib/functions/map-desired-status-to-condition-status/index.d.ts +2 -0
  85. package/lib/functions.js +1 -1
  86. package/lib/hooks/index.d.ts +0 -1
  87. package/lib/hooks/useActionFormData.d.ts +1 -1
  88. package/lib/hooks/useSourceFormData.d.ts +2 -2
  89. package/lib/hooks/useTimeAgo.d.ts +11 -0
  90. package/lib/hooks.js +1 -1
  91. package/lib/icons/brand/index.d.ts +3 -0
  92. package/lib/icons/brand/odigos-logo-text-colored-central/index.d.ts +2 -0
  93. package/lib/icons/brand/odigos-logo-text-colored-community/index.d.ts +2 -0
  94. package/lib/icons/brand/odigos-logo-text-colored-enterprise/index.d.ts +2 -0
  95. package/lib/icons.js +1 -1
  96. package/lib/mock-data/index.d.ts +0 -1
  97. package/lib/mock-data/profiling/index.d.ts +1 -1
  98. package/lib/mock-data/service-map/index.d.ts +1 -1
  99. package/lib/mock-data/sources/index.d.ts +4 -7
  100. package/lib/snippets/_v2/delete-modal/index.d.ts +3 -0
  101. package/lib/snippets/_v2/dynamic-field/index.d.ts +2 -3
  102. package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +2 -0
  103. package/lib/snippets/_v2/rich-title/index.d.ts +5 -0
  104. package/lib/snippets/_v2/wide-drawer/index.d.ts +7 -1
  105. package/lib/snippets/index.d.ts +0 -4
  106. package/lib/snippets/v2.js +1 -1
  107. package/lib/snippets.js +49 -1
  108. package/lib/store/useEntityStore.d.ts +2 -2
  109. package/lib/store/useFilterStore.d.ts +8 -14
  110. package/lib/store/useSelectedStore.d.ts +2 -2
  111. package/lib/store/useSetupStore.d.ts +10 -15
  112. package/lib/store.js +1 -1
  113. package/lib/theme.js +1 -1
  114. package/lib/types/common/index.d.ts +28 -0
  115. package/lib/types/destinations/index.d.ts +3 -3
  116. package/lib/types/namespaces/index.d.ts +3 -3
  117. package/lib/types/service-map/index.d.ts +2 -2
  118. package/lib/types/sources/index.d.ts +4 -41
  119. package/lib/types/workload/index.d.ts +145 -3
  120. package/lib/types.js +1 -1
  121. package/lib/visuals.js +1 -1
  122. package/package.json +1 -1
  123. package/lib/chunks/index-CCaTS6aq.js +0 -145
  124. package/lib/chunks/index-ChkHWnzu.js +0 -77
  125. package/lib/chunks/index-D6SlbWIi.js +0 -3
  126. package/lib/chunks/ui-components-rpRyPe3l.js +0 -2235
  127. package/lib/components/badge/index.d.ts +0 -11
  128. package/lib/components/button/index.d.ts +0 -6
  129. package/lib/components/cancel-warning/index.d.ts +0 -10
  130. package/lib/components/checkbox/index.d.ts +0 -15
  131. package/lib/components/condition-details/index.d.ts +0 -10
  132. package/lib/components/data-card/data-card-fields/index.d.ts +0 -23
  133. package/lib/components/data-card/index.d.ts +0 -17
  134. package/lib/components/data-tab/index.d.ts +0 -43
  135. package/lib/components/delete-warning/index.d.ts +0 -13
  136. package/lib/components/describe-row/index.d.ts +0 -13
  137. package/lib/components/drawer/drawer-footer/index.d.ts +0 -16
  138. package/lib/components/drawer/drawer-header/index.d.ts +0 -24
  139. package/lib/components/drawer/index.d.ts +0 -15
  140. package/lib/components/dropdown/index.d.ts +0 -25
  141. package/lib/components/extend-arrow/index.d.ts +0 -8
  142. package/lib/components/field-error/index.d.ts +0 -4
  143. package/lib/components/field-label/index.d.ts +0 -11
  144. package/lib/components/input/index.d.ts +0 -15
  145. package/lib/components/modal/index.d.ts +0 -14
  146. package/lib/components/monitors-icons/index.d.ts +0 -11
  147. package/lib/components/no-data-found/index.d.ts +0 -6
  148. package/lib/components/popup-form/index.d.ts +0 -18
  149. package/lib/components/status/index.d.ts +0 -17
  150. package/lib/components/tab-list/index.d.ts +0 -18
  151. package/lib/components/warning-modal/index.d.ts +0 -24
  152. package/lib/containers/overview-drawer/index.d.ts +0 -27
  153. package/lib/containers/source-drawer/build-card.d.ts +0 -3
  154. package/lib/containers/source-drawer/describe/index.d.ts +0 -13
  155. package/lib/containers/source-drawer/index.d.ts +0 -23
  156. package/lib/containers/source-drawer/libraries/index.d.ts +0 -12
  157. package/lib/containers/source-drawer/odigos-health/index.d.ts +0 -5
  158. package/lib/containers/source-drawer/peers/index.d.ts +0 -12
  159. package/lib/containers/source-form/index.d.ts +0 -8
  160. package/lib/hooks/useSourceSelectionFormData.d.ts +0 -32
  161. package/lib/mock-data/workload/index.d.ts +0 -2
  162. package/lib/snippets/add-button/index.d.ts +0 -9
  163. package/lib/snippets/copy-text/index.d.ts +0 -7
  164. package/lib/snippets/pod-container/index.d.ts +0 -5
  165. package/lib/snippets/source-container/index.d.ts +0 -7
  166. package/lib/snippets/source-container/override-runtime.d.ts +0 -10
  167. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flame-graph-canvas.d.ts +0 -0
  168. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flamebearer.d.ts +0 -0
  169. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/symbol-table.d.ts +0 -0
@@ -10,7 +10,7 @@ export declare enum ButtonSize {
10
10
  M = "medium",
11
11
  L = "large"
12
12
  }
13
- export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
13
+ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onClick'> {
14
14
  'data-id'?: string;
15
15
  label?: string;
16
16
  tooltip?: string;
@@ -1,6 +1,7 @@
1
1
  import { type ReactNode, type FC, type CSSProperties } from 'react';
2
2
  import { type BadgeProps } from '../../badge';
3
3
  import { DefaultTheme } from 'styled-components';
4
+ import { type DropDataProps } from '../../drop-data';
4
5
  import { type ActionsProps } from '@/snippets/_v2/actions';
5
6
  import { type RichTitleProps } from '@/snippets/_v2/rich-title';
6
7
  type BgTint = keyof DefaultTheme['v2']['colors']['silver'];
@@ -12,13 +13,17 @@ export interface DataCardProps {
12
13
  richTitle?: RichTitleProps;
13
14
  withCollapse?: boolean;
14
15
  collapseIsDefaultOpen?: boolean;
15
- actions?: ActionsProps['actions'];
16
16
  badges?: (BadgeProps & {
17
17
  key: string;
18
18
  })[];
19
+ actions?: ActionsProps['actions'];
20
+ dropDataActions?: (DropDataProps['items'][number] & {
21
+ onClick: () => void;
22
+ })[];
19
23
  cellsPerRow?: number;
20
24
  items?: {
21
25
  id: string;
26
+ spacer?: boolean;
22
27
  /** Optional. When omitted/empty the small grey title row is not rendered. */
23
28
  title?: string;
24
29
  titleTooltip?: string;
@@ -19,6 +19,7 @@ export interface ConditionProps {
19
19
  hideIcon?: boolean;
20
20
  hideBackground?: boolean;
21
21
  width?: CSSProperties['width'];
22
+ slim?: boolean;
22
23
  }
23
24
  export declare const Condition: FC<ConditionProps>;
24
25
  export {};
@@ -1,11 +1,13 @@
1
1
  import { type FC } from 'react';
2
2
  import type { SVG } from '@/types';
3
+ import { type BadgeProps } from '../../badge';
3
4
  import { type ToggleProps } from '../../toggle';
4
5
  import { type DropDataProps } from '../../drop-data';
5
6
  export interface HeaderProps {
6
7
  icon?: SVG;
7
8
  iconSrc?: string;
8
9
  title?: string;
10
+ titleBadges?: BadgeProps[];
9
11
  subTitle?: string;
10
12
  toggleProps?: ToggleProps;
11
13
  actions?: (DropDataProps['items'][number] & {
@@ -1,5 +1,5 @@
1
1
  import { type CSSProperties, type ReactNode, type FC } from 'react';
2
- import { HeaderProps } from './header';
2
+ import { type HeaderProps } from './header';
3
3
  import { type FooterProps } from './footer';
4
4
  export interface DrawerProps {
5
5
  isOpen: boolean;
@@ -1,7 +1,6 @@
1
1
  import { type FC, type CSSProperties, type ReactNode, type MouseEvent } from 'react';
2
2
  import type { SVG } from '@/types';
3
3
  import { type ButtonProps } from '../button';
4
- import { type IconButtonProps } from '../icon-button';
5
4
  export declare enum DropDataAlignX {
6
5
  Left = "left",
7
6
  Right = "right"
@@ -10,8 +9,8 @@ export declare enum DropDataAlignY {
10
9
  Top = "top",
11
10
  Bottom = "bottom"
12
11
  }
13
- export interface DropDataOption {
14
- id: string;
12
+ export interface DropDataOption<T = string> {
13
+ id: T;
15
14
  label: string;
16
15
  color?: CSSProperties['color'];
17
16
  icon?: SVG;
@@ -32,7 +31,7 @@ export interface DropDataProps {
32
31
  fullWidth?: boolean;
33
32
  maxHeight?: CSSProperties['maxHeight'];
34
33
  buttonProps?: Omit<ButtonProps, 'fullWidth'>;
35
- iconButtonProps?: IconButtonProps;
34
+ iconButtonProps?: Omit<ButtonProps, 'variant' | 'size'>;
36
35
  isLoading?: boolean;
37
36
  emptyMessage?: string;
38
37
  children?: ReactNode | ((props: {
@@ -0,0 +1,10 @@
1
+ import { type FC } from 'react';
2
+ import type { SVG } from '@/types';
3
+ export interface IconGroupProps {
4
+ icons?: SVG[];
5
+ icon?: SVG;
6
+ iconSrc?: string;
7
+ smallIconSize?: number;
8
+ largeIconSize?: number;
9
+ }
10
+ export declare const IconGroup: FC<IconGroupProps>;
@@ -16,6 +16,7 @@ export * from './field-title';
16
16
  export * from './header';
17
17
  export * from './hover-actions';
18
18
  export * from './icon-button';
19
+ export * from './icon-group';
19
20
  export * from './input';
20
21
  export * from './input-list';
21
22
  export * from './input-table';
@@ -9,6 +9,8 @@ export interface Column {
9
9
  tooltip?: string;
10
10
  placeholder?: string;
11
11
  inputType?: InputTypes;
12
+ min?: number;
13
+ max?: number;
12
14
  componentType?: 'input' | 'dropdown' | 'multi-dropdown';
13
15
  options?: DropDataOption[];
14
16
  renderCondition?: (row: Row) => boolean;
@@ -1,6 +1,16 @@
1
1
  import { CSSProperties, type FC } from 'react';
2
2
  import { type SVG } from '@/types';
3
+ export declare enum TagVariants {
4
+ Default = "default",
5
+ Purple = "purple",
6
+ Yellow = "yellow",
7
+ Blue = "blue",
8
+ Pink = "pink",
9
+ Green = "green",
10
+ Loader = "loader"
11
+ }
3
12
  export interface TagProps {
13
+ variant?: TagVariants;
4
14
  label: string;
5
15
  leftIcon?: SVG;
6
16
  rightIcon?: SVG;
@@ -1,4 +1,5 @@
1
1
  import React, { type CSSProperties } from 'react';
2
+ import { type DefaultTheme } from 'styled-components';
2
3
  export declare enum TypographyVariants {
3
4
  H1 = "h1",
4
5
  H2 = "h2",
@@ -35,6 +36,7 @@ export declare enum TypographyColor {
35
36
  Link = "link",
36
37
  Success = "success"
37
38
  }
39
+ export declare const resolveTypographyColor: (theme: DefaultTheme, color?: TypographyProps["color"]) => string | undefined;
38
40
  export interface TypographyProps {
39
41
  children: React.ReactNode;
40
42
  variant?: TypographyVariants;
@@ -1,39 +1,17 @@
1
- export * from './badge';
2
- export * from './button';
3
- export * from './cancel-warning';
4
- export * from './checkbox';
5
1
  export * from './code';
6
- export * from './condition-details';
7
- export * from './data-card';
8
- export * from './data-tab';
9
- export * from './delete-warning';
10
- export * from './describe-row';
11
2
  export * from './divider';
12
- export * from './drawer';
13
- export * from './dropdown';
14
3
  export * from './error-boundary';
15
- export * from './extend-arrow';
16
4
  export * from './fade-loader';
17
- export * from './field-error';
18
- export * from './field-label';
19
5
  export * from './icon-button';
20
6
  export * from './icon-group';
21
7
  export * from './icon-wrapped';
22
8
  export * from './image-controlled';
23
- export * from './input';
24
9
  export * from './loading-text';
25
- export * from './modal';
26
- export * from './monitors-icons';
27
- export * from './no-data-found';
28
10
  export * from './notification-note';
29
11
  export * from './popup';
30
- export * from './popup-form';
31
12
  export * from './scroll-x';
32
13
  export * from './scroll-y';
33
14
  export * from './skeleton-loader';
34
- export * from './status';
35
- export * from './tab-list';
36
15
  export * from './text';
37
16
  export * from './tooltip';
38
- export * from './warning-modal';
39
17
  export * from './styled';
@@ -1 +1 @@
1
- export{fr as Autocomplete,aj as Badge,a6 as Button,B as ButtonSize,hi as ButtonTab,hj as ButtonTabList,a as ButtonVariants,aw as Checkbox,hk as CheckboxList,dD as CheckboxSize,dW as CliCommand,hl as Condition,bB as Conditions,hm as DEFAULT_TIME_UNITS,D as DataCard,r as Drawer,c1 as DropData,c3 as DropDataAlignX,c2 as DropDataAlignY,bg as DropDown,ax as FieldMessage,av as FieldTitle,dZ as GaugeChart,hn as GaugeChartVariant,ho as Header,$ as HoverActions,bh as IconButton,bi as IconButtonSize,ay as Input,aD as InputList,aB as InputTable,ds as Island,ah as Loader,dk as Modal,hp as Navbar,N as NoData,aL as Note,cP as Radio,hq as RadioGroup,cQ as RadioSize,ai as Search,ba as SectionCard,hr as SectionCardSize,ab as Segment,ad as SegmentSize,ac as SegmentVariant,dY as StatusCard,dt as Stepper,af as Table,ag as TableVariant,bI as Tag,aI as TextArea,d_ as TextCard,ex as TimeInput,a3 as Toggle,a5 as ToggleLabelAlign,hs as ToggleList,a4 as ToggleSize,ht as ToggleVariant,dF as TruncatableTypography,a7 as Typography,a8 as TypographyColor,a9 as TypographySize,br as TypographyVariants,a$ as WarningModal}from"../chunks/ui-components-rpRyPe3l.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"virtua";
1
+ export{eB as Autocomplete,am as Badge,a9 as Button,aa as ButtonSize,ga as ButtonTab,gb as ButtonTabList,ab as ButtonVariants,a0 as Checkbox,gc as CheckboxList,dd as CheckboxSize,b2 as CliCommand,b1 as Condition,aS as Conditions,gd as DEFAULT_TIME_UNITS,aR as DataCard,o as Drawer,bL as DropData,bN as DropDataAlignX,bM as DropDataAlignY,aB as DropDown,a1 as FieldMessage,$ as FieldTitle,dv as GaugeChart,ge as GaugeChartVariant,gf as Header,gg as HoverActions,aC as IconButton,aD as IconButtonSize,bc as IconGroup,a2 as Input,a8 as InputList,a4 as InputTable,d3 as Island,aE as Loader,bQ as Modal,gh as Navbar,N as NoData,ag as Note,cy as Radio,gi as RadioGroup,cz as RadioSize,b8 as Search,ay as SectionCard,gj as SectionCardSize,ad as Segment,dy as SegmentSize,bn as SegmentVariant,du as StatusCard,d4 as Stepper,bp as Table,bq as TableVariant,aY as Tag,b6 as TagVariants,ae as TextArea,dw as TextCard,dQ as TimeInput,a6 as Toggle,a7 as ToggleLabelAlign,gk as ToggleList,aI as ToggleSize,gl as ToggleVariant,df as TruncatableTypography,b as Typography,ai as TypographyColor,c as TypographySize,aJ as TypographyVariants,ap as WarningModal,gm as resolveTypographyColor}from"../chunks/ui-components-B0BVzW_z.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
package/lib/components.js CHANGED
@@ -1 +1 @@
1
- export{gP as Badge,gQ as Button,K as CancelWarning,b as CenterThis,gR as Checkbox,C as Code,aq as ConditionDetails,_ as DataCard,M as DataCardFieldTypes,gS as DataCardFields,gT as DataTab,J as DeleteWarning,Y as DescribeRow,s as Divider,H as Drawer,gU as DrawerFooter,gV as DrawerHeader,gW as Dropdown,gX as ErrorBoundary,gY as ExtendArrow,V as FadeLoader,gZ as FieldError,g_ as FieldLabel,F as FlexColumn,j as FlexRow,I as IconButton,g$ as IconGroup,h0 as IconWrapped,h1 as ImageControlled,L as Input,h2 as LoadingText,h3 as Modal,h4 as ModalBody,h5 as MonitorsIcons,e as NoDataFound,x as NotificationNote,h6 as Overlay,bA as Padding,dm as PageContent,P as Popup,h7 as PopupForm,h8 as ScrollX,dI as ScrollY,dJ as SkeletonLoader,Q as Status,h9 as TabList,ha as TableContainer,hb as TableTitleWrap,hc as TableWrap,T as Text,hd as ToggleCodeComponent,aa as Tooltip,d$ as UpgradeRequiredWrapper,he as VerticalScroll,as as WarningModal,hf as getLinksFromText,hg as getStrongsFromText,hh as renderText}from"./chunks/ui-components-rpRyPe3l.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"virtua";
1
+ export{aA as CenterThis,eE as Code,p as Divider,fW as ErrorBoundary,fX as FadeLoader,F as FlexColumn,h as FlexRow,I as IconButton,eF as IconGroup,fY as IconWrapped,fZ as ImageControlled,f_ as LoadingText,f$ as ModalBody,s as NotificationNote,g0 as Overlay,aQ as Padding,d2 as PageContent,a as Popup,g1 as ScrollX,b9 as ScrollY,dh as SkeletonLoader,g2 as TableContainer,g3 as TableTitleWrap,g4 as TableWrap,e as Text,g5 as ToggleCodeComponent,ak as Tooltip,dx as UpgradeRequiredWrapper,g6 as VerticalScroll,g7 as getLinksFromText,g8 as getStrongsFromText,g9 as renderText}from"./chunks/ui-components-B0BVzW_z.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
@@ -1,9 +1,14 @@
1
- import type { DropdownOption } from '@/components';
1
+ import { type DropDataOption } from '@/components/_v2';
2
2
  import { OtelDistroName, ProgrammingLanguages } from '@/types';
3
+ /** OpenTelemetry / K8s identifying-attribute names emitted by the agent. */
4
+ export declare const PROCESS_ATTRIBUTE_NAMES: {
5
+ PID: string;
6
+ VPID: string;
7
+ };
3
8
  export declare const DISPLAY_LANGUAGES: Record<ProgrammingLanguages, string>;
4
- export declare const LANGUAGE_OPTIONS: DropdownOption<ProgrammingLanguages>[];
5
- export declare const OPENTELEMETRY_EBPF_DISTRO_OPTION: DropdownOption<OtelDistroName>;
9
+ export declare const LANGUAGE_OPTIONS: DropDataOption<ProgrammingLanguages>[];
10
+ export declare const OPENTELEMETRY_EBPF_DISTRO_OPTION: DropDataOption<OtelDistroName>;
6
11
  export declare const OTEL_DISTRO_NAME_OPTIONS: Record<ProgrammingLanguages, {
7
- community: DropdownOption<OtelDistroName>[];
8
- enterprise: DropdownOption<OtelDistroName>[];
12
+ community: DropDataOption<OtelDistroName>[];
13
+ enterprise: DropDataOption<OtelDistroName>[];
9
14
  }>;
@@ -96,11 +96,77 @@ export declare const DISPLAY_TITLES: {
96
96
  API_TOKENS: string;
97
97
  DESCRIBE_ODIGOS: string;
98
98
  DESCRIBE_SOURCE: string;
99
+ OVERVIEW: string;
100
+ LIBRARIES: string;
101
+ STANDARD_LIBRARY: string;
102
+ STANDARD: string;
103
+ PEER_SOURCES: string;
104
+ PROFILING: string;
105
+ INBOUND: string;
106
+ OUTBOUND: string;
107
+ INBOUND_DESCRIPTION: (serviceName: string) => string;
108
+ OUTBOUND_DESCRIPTION: (serviceName: string) => string;
109
+ NO_INBOUND_CONNECTIONS: string;
110
+ NO_OUTBOUND_CONNECTIONS: string;
111
+ COULD_NOT_FETCH_PEER_SOURCES: string;
112
+ VIRTUAL: string;
113
+ VIRTUAL_TOOLTIP: string;
114
+ NO_RESULTS: string;
115
+ NO_RESULTS_FOR_FILTER: (filter: string) => string;
116
+ POD: string;
117
+ PODS: string;
118
+ PODS_HEALTHY: string;
119
+ PODS_NOT_HEALTHY: string;
120
+ NO_RUNNING_PODS: string;
121
+ AGENT_INJECTED: string;
122
+ AGENT_NOT_INJECTED: string;
123
+ KUBERNETES_HEALTHY: string;
124
+ ODIGOS_HEALTHY: string;
125
+ HEALTHY: string;
126
+ UNHEALTHY: string;
127
+ NOT_HEALTHY: string;
128
+ NODE: string;
129
+ START_TIME: string;
130
+ NOT_RUNNING: string;
131
+ RESTARTS: string;
132
+ LATEST_REVISION: string;
133
+ OLD_REVISION: string;
134
+ READY: string;
135
+ NOT_READY: string;
136
+ STARTED: string;
137
+ NOT_STARTED: string;
138
+ CRASHLOOP: string;
139
+ NO_CRASHLOOP: string;
140
+ CRASHLOOP_BACKOFF: string;
141
+ CANNOT_POOL_IMAGE: string;
142
+ DEVICE_NAME: string;
143
+ INSTRUMENTED: string;
144
+ UNINSTRUMENTED: string;
145
+ INSTRUMENTED_WITH_DISTRO: (otelDistroName: string) => string;
146
+ DEBUG_COMMANDS: string;
147
+ GET_POD: string;
148
+ GET_POD_YAML: string;
149
+ GET_POD_JSON: string;
150
+ GET_POD_DESCRIBE: string;
151
+ GET_POD_LOGS: string;
152
+ CONTAINER: string;
153
+ CONTAINERS: string;
99
154
  DETECTED_CONTAINERS: string;
100
155
  DETECTED_CONTAINERS_DESCRIPTION: string;
156
+ NO_CONTAINERS_DETECTED: string;
101
157
  DETECTED_PROCESSES: string;
102
158
  DETECTED_PROCESSES_DESCRIPTION: string;
159
+ NO_PROCESSES_DETECTED: string;
103
160
  CONTAINER_NAME: string;
161
+ PROCESS: string;
162
+ PROCESSES: string;
163
+ PROCESS_FALLBACK_NAME: string;
164
+ OPEN_IN_POD_TAB: string;
165
+ ALL_CONTAINERS_HEALTHY: (count: number) => string;
166
+ ALL_PROCESSES_HEALTHY: (count: number) => string;
167
+ PID: (pid: string) => string;
168
+ IDENTIFYING_ATTRIBUTES: string;
169
+ INSTRUMENTATION_LIBRARIES: string;
104
170
  FILTERED_COUNT_TOOLTIP: string;
105
171
  SEARCH_NAMESPACES: string;
106
172
  SEARCH_SOURCES: string;
@@ -122,6 +188,12 @@ export declare const DISPLAY_TITLES: {
122
188
  OVERIDDEN: string;
123
189
  OVERRIDE_RUNTIME_DETAILS: string;
124
190
  OVERRIDE_RUNTIME_WARNING: string;
191
+ OVERRIDE_OTEL_DISTRO_NAME: string;
192
+ OVERRIDE_OTEL_DISTRO_NAME_WARNING: string;
193
+ OTEL_DISTRO_NAME: string;
194
+ WAITING_FOR_RUNTIME_DETECTION: string;
195
+ DETECTING_RUNTIME_INFO: string;
196
+ NO_AVAILABLE_AGENT: string;
125
197
  ACTIVE: string;
126
198
  INACTIVE: string;
127
199
  ENABLED: string;
@@ -130,7 +202,21 @@ export declare const DISPLAY_TITLES: {
130
202
  ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC: string;
131
203
  JAVA_CUSTOM_PROBES: string;
132
204
  GOLANG_CUSTOM_PROBES: string;
205
+ ROLLOUT: string;
206
+ ROLLOUT_RESTART: string;
207
+ ROLLOUT_NOT_REQUIRED: string;
208
+ ROLLOUT_NOT_REQUIRED_MESSAGE: string;
209
+ ROLLOUT_FAILED: string;
210
+ ROLLOUT_PREVIOUS_ONGOING: string;
211
+ ROLLOUT_PREVIOUS_ONGOING_MESSAGE: string;
212
+ ROLLOUT_AUTO_DISABLED: string;
213
+ ROLLOUT_AUTO_DISABLED_MESSAGE: string;
214
+ ROLLOUT_FINISHED: string;
215
+ ROLLOUT_FINISHED_MESSAGE: string;
216
+ ROLLBACK: string;
217
+ ROLLBACK_OCCURRED: string;
133
218
  ROLLBACK_OCCURRED_MESSAGE: string;
219
+ ROLLBACK_SUCCESS: string;
134
220
  ROLLBACK_RECOVER: string;
135
221
  FETCHING_NAMESPACES: string;
136
222
  FETCHING_NAMESPACES_SUBTITLE: string;
@@ -148,6 +234,9 @@ export declare const DISPLAY_TITLES: {
148
234
  CREATING_DESTINATION: string;
149
235
  CREATING_DESTINATION_SUBTITLE: string;
150
236
  ADD_DESTINATION_DRAWER_DESCRIPTION: string;
237
+ THROUGHPUT_LAST_10_SECONDS: string;
238
+ DELETE_POD_TO_RESTART: string;
239
+ RESTART_POD_DESCRIPTION: string;
151
240
  };
152
241
  export declare const BUTTON_TEXTS: {
153
242
  GET_STARTED: string;
@@ -159,6 +248,9 @@ export declare const BUTTON_TEXTS: {
159
248
  UPDATE: string;
160
249
  EDIT: string;
161
250
  DELETE: string;
251
+ RESTART: string;
252
+ RESTART_POD: string;
253
+ REFRESH: string;
162
254
  CANCEL: string;
163
255
  DONE: string;
164
256
  SAVE: string;
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{bd as ACTION_ATTRIBUTE_OPTIONS,gl as ACTION_OPTIONS,be as ACTION_SAMPLER_OPTIONS,gm as ALL_SOURCES,bK as BTN_CANCEL,e3 as BTN_CREATE_FIRST_RULE,bS as BTN_CREATE_RULE,bN as BTN_DELETE_RULE,fc as BTN_EDIT_AUTO_RULE,bM as BTN_EDIT_RULE,b_ as BTN_SAVE,bL as BTN_SAVE_RULE,G as BUTTON_TEXTS,bP as CATEGORY_DESCRIPTIONS,f9 as CATEGORY_LABELS,bT as CATEGORY_TITLES,gn as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,go as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,gp as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,by as DEFAULT_CLUSTER_ID,bx as DEFAULT_CLUSTER_NAME,dS as DEFAULT_DATA_STREAM_NAME,eD as DESC_DURATION,eC as DESC_ERRORS,eG as DESC_OPERATION,gq as DESC_PERCENTAGE_HIGHLY_RELEVANT,b6 as DESC_PERCENTAGE_NOISY,fa as DESC_RULE_TYPE,fp as DESC_SOURCE_SCOPE,bj as DESTINATION_CATEGORIES,aY as DISPLAY_LANGUAGES,n as DISPLAY_TITLES,aH as DOCS_BASE_URL,bf as DestinationCategoryTypes,bW as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bX as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bU as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bV as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bY as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bZ as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bQ as EDIT_TITLES,eS as EMPTY_VALUE,e1 as FILTER_TYPE_ALL,bH as FORM_ALERTS,bm as INSTRUMENTATION_RULE_OPTIONS,eE as LABEL_CUSTOM_DURATION,bb as LABEL_CUSTOM_PERCENTAGE,b9 as LABEL_DISABLED,e0 as LABEL_DISABLED_RULE,f1 as LABEL_DROP_ALL,b3 as LABEL_DROP_AT_MOST,b8 as LABEL_ENABLED,eL as LABEL_HTTP_ROUTE,eN as LABEL_HTTP_ROUTE_PREFIX,eP as LABEL_KAFKA_TOPIC,f2 as LABEL_KEEP_ALL,eZ as LABEL_KEEP_AT_LEAST,e_ as LABEL_KEEP_AT_MOST,eY as LABEL_KEEP_PERCENTAGE,eB as LABEL_KEEP_TRACES_DURATION,ez as LABEL_KEEP_TRACES_ERRORS,eO as LABEL_METHOD,f5 as LABEL_NOTE,fh as LABEL_NO_PREVIEW,eR as LABEL_OPERATION_TYPE,gr as LABEL_RULE_DISABLED,gs as LABEL_RULE_ENABLED,f3 as LABEL_RULE_NAME,f4 as LABEL_RULE_TYPE,e$ as LABEL_SAMPLE,eI as LABEL_SERVER_ADDRESS,eK as LABEL_TEMPLATED_PATH,eM as LABEL_TEMPLATED_PATH_PREFIX,gt as LANGUAGE_OPTIONS,dx as MONITORS_OPTIONS,fn as NOTE_ENTIRE_CLUSTER,fq as NOTE_SOURCE_SCOPE_LOGIC,gu as OPENTELEMETRY_EBPF_DISTRO_OPTION,eU as OPERATION_ALL,eT as OPERATION_HTTP_CLIENT,eQ as OPERATION_HTTP_SERVER,eV as OPERATION_KAFKA_CONSUMER,eW as OPERATION_KAFKA_PRODUCER,gv as OTEL_DISTRO_NAME_OPTIONS,eX as PERCENTAGE_SECTION_DESCRIPTIONS,f7 as PLACEHOLDER_NOTE,eJ as PLACEHOLDER_ROUTE,f6 as PLACEHOLDER_RULE_NAME,fs as PLACEHOLDER_SEARCH_SOURCE,eH as PLACEHOLDER_SERVER_ADDRESS,b7 as SAMPLING_AUTO_RULE_TITLE,em as SAMPLING_BTN_CREATE_RULE,ek as SAMPLING_BTN_DOCS,el as SAMPLING_BTN_REFRESH,b5 as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,es as SAMPLING_DELETE_MODAL_APPROVE,et as SAMPLING_DELETE_MODAL_CANCEL,eu as SAMPLING_DELETE_MODAL_DESCRIPTION,ev as SAMPLING_DELETE_MODAL_TITLE,b$ as SAMPLING_DRAWER_WIDTH,ej as SAMPLING_DUPLICATE_RULE_WARNING,b2 as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cS as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cT as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cU as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cV as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cW as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cX as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cY as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cZ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,c_ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,c$ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,d1 as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,d0 as SAMPLING_ONBOARDING_ADVANCED_TITLE,dj as SAMPLING_ONBOARDING_AMBIENT_LABEL,cm as SAMPLING_ONBOARDING_BTN_GO_TO,c6 as SAMPLING_ONBOARDING_BTN_NEXT,cR as SAMPLING_ONBOARDING_BTN_READ_MORE,cx as SAMPLING_ONBOARDING_BTN_SKIP,cy as SAMPLING_ONBOARDING_BTN_START,d2 as SAMPLING_ONBOARDING_COMMON_BANNER,di as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,d6 as SAMPLING_ONBOARDING_DROP_DESCRIPTION,d5 as SAMPLING_ONBOARDING_DROP_SUBTITLE,d4 as SAMPLING_ONBOARDING_DROP_TITLE,d9 as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,d8 as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,dc as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,db as SAMPLING_ONBOARDING_KEEP_SUBTITLE,da as SAMPLING_ONBOARDING_KEEP_TITLE,dd as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,de as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,df as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,dg as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,dh as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,ce as SAMPLING_ONBOARDING_NOISY_BANNER,ca as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,cd as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,cb as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,cc as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,c9 as SAMPLING_ONBOARDING_NOISY_SUBTITLE,c8 as SAMPLING_ONBOARDING_NOISY_TITLE,d7 as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,c4 as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cM as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cN as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cO as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cJ as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cH as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cI as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,cK as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cL as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cE as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,cC as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cD as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,cF as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,cG as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,cB as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cA as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,cz as SAMPLING_ONBOARDING_STRATEGY_TITLE,cj as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,ck as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,cl as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,ci as SAMPLING_ONBOARDING_SUCCESS_INTRO,ch as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,cg as SAMPLING_ONBOARDING_SUCCESS_TITLE,cw as SAMPLING_ONBOARDING_WELCOME_BANNER,cp as SAMPLING_ONBOARDING_WELCOME_INTRO,cq as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,cr as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,cs as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,ct as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cu as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,cv as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,co as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,cn as SAMPLING_ONBOARDING_WELCOME_TITLE,en as SAMPLING_PAGE_DESCRIPTION,eo as SAMPLING_PAGE_TITLE,eA as SECTION_DURATION,ey as SECTION_ERRORS,b4 as SECTION_KEEP_PERCENTAGE,eF as SECTION_OPERATION,fg as SECTION_SAMPLING_PREVIEW,fm as SECTION_SOURCE_SCOPE,dv as STORAGE_KEYS,e2 as TITLE_NO_RESULTS,e4 as TITLE_NO_RULES,gw as TOKEN_ABOUT_TO_EXPIRE,f8 as TOOLTIP_NOTE,fo as UNKNOWN_SOURCE_LABEL,bR as UNNAMED_RULE,e5 as getNoResultsSubTitle}from"./chunks/ui-components-rpRyPe3l.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"virtua";
1
+ export{A as ACTION_ATTRIBUTE_OPTIONS,fA as ACTION_OPTIONS,x as ACTION_SAMPLER_OPTIONS,fB as ALL_SOURCES,bs as BTN_CANCEL,dC as BTN_CREATE_FIRST_RULE,bz as BTN_CREATE_RULE,bv as BTN_DELETE_RULE,et as BTN_EDIT_AUTO_RULE,bu as BTN_EDIT_RULE,bH as BTN_SAVE,bt as BTN_SAVE_RULE,aP as BUTTON_TEXTS,bw as CATEGORY_DESCRIPTIONS,er as CATEGORY_LABELS,bA as CATEGORY_TITLES,fC as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fD as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fE as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aN as DEFAULT_CLUSTER_ID,aM as DEFAULT_CLUSTER_NAME,dp as DEFAULT_DATA_STREAM_NAME,dW as DESC_DURATION,dV as DESC_ERRORS,dZ as DESC_OPERATION,fF as DESC_PERCENTAGE_HIGHLY_RELEVANT,au as DESC_PERCENTAGE_NOISY,es as DESC_RULE_TYPE,ez as DESC_SOURCE_SCOPE,aF as DESTINATION_CATEGORIES,an as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,ac as DOCS_BASE_URL,K 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,bF as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bG as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bx as EDIT_TITLES,e9 as EMPTY_VALUE,dA as FILTER_TYPE_ALL,B as FORM_ALERTS,U as INSTRUMENTATION_RULE_OPTIONS,dX as LABEL_CUSTOM_DURATION,az as LABEL_CUSTOM_PERCENTAGE,ax as LABEL_DISABLED,dz as LABEL_DISABLED_RULE,ej as LABEL_DROP_ALL,ar as LABEL_DROP_AT_MOST,aw as LABEL_ENABLED,e2 as LABEL_HTTP_ROUTE,e4 as LABEL_HTTP_ROUTE_PREFIX,e6 as LABEL_KAFKA_TOPIC,ek as LABEL_KEEP_ALL,eg as LABEL_KEEP_AT_LEAST,eh as LABEL_KEEP_AT_MOST,ef as LABEL_KEEP_PERCENTAGE,dU as LABEL_KEEP_TRACES_DURATION,dS as LABEL_KEEP_TRACES_ERRORS,e5 as LABEL_METHOD,en as LABEL_NOTE,ev as LABEL_NO_PREVIEW,e8 as LABEL_OPERATION_TYPE,fG as LABEL_RULE_DISABLED,fH as LABEL_RULE_ENABLED,el as LABEL_RULE_NAME,em as LABEL_RULE_TYPE,ei as LABEL_SAMPLE,d$ as LABEL_SERVER_ADDRESS,e1 as LABEL_TEMPLATED_PATH,e3 as LABEL_TEMPLATED_PATH_PREFIX,bk as LANGUAGE_OPTIONS,d8 as MONITORS_OPTIONS,ex as NOTE_ENTIRE_CLUSTER,eA as NOTE_SOURCE_SCOPE_LOGIC,fI as OPENTELEMETRY_EBPF_DISTRO_OPTION,eb as OPERATION_ALL,ea as OPERATION_HTTP_CLIENT,e7 as OPERATION_HTTP_SERVER,ec as OPERATION_KAFKA_CONSUMER,ed as OPERATION_KAFKA_PRODUCER,bj as OTEL_DISTRO_NAME_OPTIONS,ee as PERCENTAGE_SECTION_DESCRIPTIONS,ep as PLACEHOLDER_NOTE,e0 as PLACEHOLDER_ROUTE,eo as PLACEHOLDER_RULE_NAME,eC as PLACEHOLDER_SEARCH_SOURCE,d_ as PLACEHOLDER_SERVER_ADDRESS,b3 as PROCESS_ATTRIBUTE_NAMES,av as SAMPLING_AUTO_RULE_TITLE,dI as SAMPLING_BTN_CREATE_RULE,dG as SAMPLING_BTN_DOCS,dH as SAMPLING_BTN_REFRESH,at as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dL as SAMPLING_DELETE_MODAL_APPROVE,dM as SAMPLING_DELETE_MODAL_CANCEL,dN as SAMPLING_DELETE_MODAL_DESCRIPTION,dO as SAMPLING_DELETE_MODAL_TITLE,bI as SAMPLING_DRAWER_WIDTH,dF as SAMPLING_DUPLICATE_RULE_WARNING,aq as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cB as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cC as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cE as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cF as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cG as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cK as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cM as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cL as SAMPLING_ONBOARDING_ADVANCED_TITLE,d1 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c5 as SAMPLING_ONBOARDING_BTN_GO_TO,bS as SAMPLING_ONBOARDING_BTN_NEXT,cA as SAMPLING_ONBOARDING_BTN_READ_MORE,cg as SAMPLING_ONBOARDING_BTN_SKIP,ch as SAMPLING_ONBOARDING_BTN_START,cN as SAMPLING_ONBOARDING_COMMON_BANNER,d0 as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cQ as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cP as SAMPLING_ONBOARDING_DROP_SUBTITLE,cO as SAMPLING_ONBOARDING_DROP_TITLE,cT as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cS as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cW as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cV as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cU as SAMPLING_ONBOARDING_KEEP_TITLE,cX as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,cY as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,c$ as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,bZ as SAMPLING_ONBOARDING_NOISY_BANNER,bV as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,bY as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,bW as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,bX as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bU as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bT as SAMPLING_ONBOARDING_NOISY_TITLE,cR as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bR as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cv as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cw as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cx as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cs as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cq as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cr as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,ct as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cu as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cn as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,cl as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cm as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,cp as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,ck as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cj as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,ci as SAMPLING_ONBOARDING_STRATEGY_TITLE,c2 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c3 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c4 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c1 as SAMPLING_ONBOARDING_SUCCESS_INTRO,c0 as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,b$ as SAMPLING_ONBOARDING_SUCCESS_TITLE,cf as SAMPLING_ONBOARDING_WELCOME_BANNER,c8 as SAMPLING_ONBOARDING_WELCOME_INTRO,c9 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,ca as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,cb as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cc as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,ce as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,c7 as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,c6 as SAMPLING_ONBOARDING_WELCOME_TITLE,dJ as SAMPLING_PAGE_DESCRIPTION,dK as SAMPLING_PAGE_TITLE,dT as SECTION_DURATION,dR as SECTION_ERRORS,as as SECTION_KEEP_PERCENTAGE,dY as SECTION_OPERATION,eu as SECTION_SAMPLING_PREVIEW,ew as SECTION_SOURCE_SCOPE,d7 as STORAGE_KEYS,dB as TITLE_NO_RESULTS,dD as TITLE_NO_RULES,fJ as TOKEN_ABOUT_TO_EXPIRE,eq as TOOLTIP_NOTE,ey as UNKNOWN_SOURCE_LABEL,by as UNNAMED_RULE,dE as getNoResultsSubTitle}from"./chunks/ui-components-B0BVzW_z.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
@@ -0,0 +1,54 @@
1
+ import { EntityTypes } from '@/types';
2
+ /**
3
+ * Copy used by the Add Source drawer, with K8s/VM variants.
4
+ *
5
+ * The drawer is a generic two-column "group → item" picker:
6
+ * - K8s: namespaces (groups) → workloads (items)
7
+ * - VM: kinds (groups) → sources (items)
8
+ *
9
+ * Components call `getAddSourceDrawerLabels(isVm)` once and read fields off
10
+ * the returned object instead of branching on `isVm` inline. Keeps copy
11
+ * centralized and makes adding a third platform (or wiring i18n) a one-file
12
+ * change.
13
+ */
14
+ export interface AddSourceDrawerLabels {
15
+ groupSegmentLabel: string;
16
+ itemSegmentLabel: string;
17
+ searchPlaceholder: (by: EntityTypes) => string | undefined;
18
+ groupColumnHeader: string;
19
+ fetchingGroups: {
20
+ title: string;
21
+ subTitle: string;
22
+ };
23
+ noGroups: {
24
+ title: string;
25
+ subTitle: string;
26
+ };
27
+ noGroupMatchedFilter: (text: string) => string;
28
+ itemColumnHeader: string;
29
+ selectGroupPrompt: {
30
+ title: string;
31
+ subTitle: string;
32
+ };
33
+ noItemsInGroupSubTitle: string;
34
+ }
35
+ export declare const getAddSourceDrawerLabels: (isVm: boolean) => AddSourceDrawerLabels;
36
+ /**
37
+ * Copy that is shared between K8s and VM (and between both columns of the drawer).
38
+ * Centralized here so identical strings don't drift apart across files.
39
+ *
40
+ * Fields tagged "K8s-only" are referenced from code paths that only render on K8s
41
+ * (`!isVm` guards or enterprise-tier locks). They're kept here for centralization,
42
+ * not because VM has its own variant.
43
+ */
44
+ export declare const ADD_SOURCE_DRAWER_COPY: {
45
+ noMatchesTitle: string;
46
+ noSourcesTitle: string;
47
+ noSourcesMatchedFilter: (text: string) => string;
48
+ selectAll: (isAll: boolean) => string;
49
+ showOnly: string;
50
+ selectedLabel: string;
51
+ autoToggleLabel: string;
52
+ autoToggleTooltip: string;
53
+ enterpriseOnlyBadge: string;
54
+ };
@@ -0,0 +1 @@
1
+ export * from './pods-header';
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ import { type DesiredConditionStatus, type K8sWorkloadPod } from '@/types';
3
+ export interface PodsHeaderProps {
4
+ podsHealthStatus?: DesiredConditionStatus | null;
5
+ pods?: K8sWorkloadPod[] | null;
6
+ noPadding?: boolean;
7
+ }
8
+ export declare const PodsHeader: FC<PodsHeaderProps>;
@@ -0,0 +1,12 @@
1
+ import { type DataCardProps } from '@/components/_v2';
2
+ import { type Workload } from '@/types';
3
+ /**
4
+ * Build the items shown in the view-mode `Source Details` `DataCard`.
5
+ * In VM mode the namespace is hidden and the kubectl command is omitted (handled separately).
6
+ */
7
+ export declare const buildDataCard: (source: Workload, isVm: boolean) => DataCardProps["items"];
8
+ /**
9
+ * Build the kubectl command that targets this source. Returns `null` for VM sources
10
+ * (they don't have a workload to address with kubectl).
11
+ */
12
+ export declare const buildKubectlCommand: (source: Workload, isVm: boolean) => string | null;
@@ -0,0 +1,19 @@
1
+ import { type FC } from 'react';
2
+ import { type ProfilingProps } from './profiling';
3
+ import { type UpdateSourceFunc, type PersistSourcesFunc, type WorkloadId, type RestartPodFunc, type RestartWorkloadsFunc, type RecoverFromRollbackFunc, type FetchPeerSourcesFunc, type FetchSourceByIdFunc, type EffectiveConfig } from '@/types';
4
+ export interface EditSourceDrawerProps {
5
+ onClose: () => void;
6
+ effectiveConfig?: EffectiveConfig;
7
+ sourceId: WorkloadId;
8
+ fetchSourceById: FetchSourceByIdFunc;
9
+ persistSources: PersistSourcesFunc;
10
+ updateSource: UpdateSourceFunc;
11
+ restartWorkloads: RestartWorkloadsFunc;
12
+ restartPod: RestartPodFunc;
13
+ recoverFromRollback: RecoverFromRollbackFunc;
14
+ fetchPeerSources: FetchPeerSourcesFunc;
15
+ enableProfiling: ProfilingProps['enableProfiling'];
16
+ fetchProfilingSlots: ProfilingProps['fetchProfilingSlots'];
17
+ fetchSourceProfiling: ProfilingProps['fetchSourceProfiling'];
18
+ }
19
+ export declare const EditSourceDrawer: FC<EditSourceDrawerProps>;
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ import { type SourceFormData, ProgrammingLanguages } from '@/types';
3
+ type FormValues = Pick<SourceFormData, 'otelDistroName'>;
4
+ export interface DistroOverrideProps {
5
+ language: ProgrammingLanguages | null;
6
+ overridden: boolean;
7
+ onOverride: (payload: FormValues) => Promise<void>;
8
+ defaultValues: FormValues;
9
+ }
10
+ export declare const DistroOverride: FC<DistroOverrideProps>;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ import { type SourceFormData, type Workload } from '@/types';
3
+ export interface ContainersCardProps {
4
+ source: Workload;
5
+ onOverride: (payload: Pick<SourceFormData, 'containerName' | 'language' | 'version' | 'otelDistroName'>) => Promise<void>;
6
+ }
7
+ export declare const ContainersCard: FC<ContainersCardProps>;
@@ -0,0 +1,15 @@
1
+ import React, { type FC, type CSSProperties } from 'react';
2
+ interface PopupFormProps {
3
+ width: CSSProperties['width'];
4
+ onClose: () => void;
5
+ onSave: () => void;
6
+ onDelete: () => void;
7
+ title: string;
8
+ warning: string;
9
+ children: React.ReactNode;
10
+ }
11
+ export declare const Relative: FC<{
12
+ children: React.ReactNode;
13
+ }>;
14
+ export declare const PopupForm: FC<PopupFormProps>;
15
+ export {};
@@ -0,0 +1,10 @@
1
+ import { type FC } from 'react';
2
+ import { type SourceFormData } from '@/types';
3
+ type FormValues = Pick<SourceFormData, 'language' | 'version'>;
4
+ export interface RuntimeOverrideProps {
5
+ overridden: boolean;
6
+ onOverride: (payload: FormValues) => Promise<void>;
7
+ defaultValues: FormValues;
8
+ }
9
+ export declare const RuntimeOverride: FC<RuntimeOverrideProps>;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ import { type FC } from 'react';
2
+ import { type Workload } from '@/types';
3
+ export interface HealthCardProps {
4
+ source: Workload;
5
+ }
6
+ export declare const HealthCard: FC<HealthCardProps>;
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ import type { EffectiveConfig, Workload } from '@/types';
3
+ import { type ContainersCardProps } from './containers-card';
4
+ export interface OverviewProps {
5
+ effectiveConfig?: EffectiveConfig;
6
+ source: Workload;
7
+ onClickRollout: () => void;
8
+ onClickRollback: () => void;
9
+ onOverride: ContainersCardProps['onOverride'];
10
+ }
11
+ export declare const Overview: FC<OverviewProps>;
@@ -0,0 +1,6 @@
1
+ import { type FC } from 'react';
2
+ import type { Workload } from '@/types';
3
+ export interface MainCardProps {
4
+ source: Workload;
5
+ }
6
+ export declare const MainCard: FC<MainCardProps>;
@@ -0,0 +1,6 @@
1
+ import { type FC } from 'react';
2
+ import type { Workload } from '@/types';
3
+ export interface PodsCardProps {
4
+ source: Workload;
5
+ }
6
+ export declare const PodsCard: FC<PodsCardProps>;
@@ -0,0 +1,9 @@
1
+ import { type FC } from 'react';
2
+ import type { OnJumpToProcess } from './types';
3
+ import { type K8sWorkloadPod, type K8sWorkloadPodContainer } from '@/types';
4
+ export interface ContainerRowProps {
5
+ pod: K8sWorkloadPod;
6
+ container: K8sWorkloadPodContainer;
7
+ onJumpToProcess?: OnJumpToProcess;
8
+ }
9
+ export declare const ContainerRow: FC<ContainerRowProps>;
@@ -0,0 +1,19 @@
1
+ import { StatusType, type K8sWorkloadPodContainerProcess, OtherStatus, OtherStatusType } from '@/types';
2
+ /** Inner horizontal padding of the silver/800 (pod) and silver/750 (container) background cards. */
3
+ export declare const SECTION_PADDING: {
4
+ pod: number;
5
+ container: number;
6
+ };
7
+ /**
8
+ * Left padding of each row header, relative to its parent section. These add to the
9
+ * `SECTION_PADDING` of any ancestors to produce the figma's stair-step indentation.
10
+ */
11
+ export declare const ROW_PADDING_LEFT: {
12
+ pod: number;
13
+ container: number;
14
+ process: number;
15
+ };
16
+ export declare const getProcessPid: (process: Pick<K8sWorkloadPodContainerProcess, "identifyingAttributes"> & {
17
+ overrideProcessNum?: number;
18
+ }) => string | null;
19
+ export declare const getHealthBadgeLabel: (status: StatusType | OtherStatus | OtherStatusType, reasonEnum?: string | null) => string;