@odigos/ui-kit 0.0.231 → 0.0.232

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 (69) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/lib/chunks/index-Bbukn13F.js +77 -0
  3. package/lib/chunks/{index-tFZXUKvO.js → index-Cw4LkdaE.js} +1 -1
  4. package/lib/chunks/index-D7sjsMOG.js +145 -0
  5. package/lib/chunks/{ui-components-CvK0mvVN.js → ui-components-of0mjGMv.js} +438 -426
  6. package/lib/components/_v2/cards/section-card/index.d.ts +11 -0
  7. package/lib/components/_v2/drop-down/index.d.ts +1 -1
  8. package/lib/components/_v2/search/index.d.ts +2 -0
  9. package/lib/components/_v2/segment/index.d.ts +1 -0
  10. package/lib/components/_v2/typography/index.d.ts +20 -1
  11. package/lib/components/_v2/warning-modal/index.d.ts +5 -5
  12. package/lib/components/v2.js +1 -1
  13. package/lib/components.js +1 -1
  14. package/lib/constants/strings/index.d.ts +6 -0
  15. package/lib/constants.js +1 -1
  16. package/lib/containers/_v2/_forms/data-stream-form/index.d.ts +6 -0
  17. package/lib/containers/_v2/_forms/data-stream-form/merge-warning.d.ts +11 -0
  18. package/lib/containers/_v2/_forms/index.d.ts +1 -0
  19. package/lib/containers/_v2/_modals/add-data-stream-modal/index.d.ts +8 -0
  20. package/lib/containers/_v2/_modals/edit-data-stream-modal/index.d.ts +8 -0
  21. package/lib/containers/_v2/_modals/index.d.ts +2 -0
  22. package/lib/containers/_v2/index.d.ts +2 -0
  23. package/lib/containers/_v2/overview/columns/column/empty-add.d.ts +7 -0
  24. package/lib/containers/_v2/overview/columns/column/head.d.ts +14 -0
  25. package/lib/containers/_v2/overview/columns/column/index.d.ts +12 -0
  26. package/lib/containers/_v2/overview/columns/column/list-item.d.ts +17 -0
  27. package/lib/containers/_v2/overview/columns/column/namespace-divider.d.ts +7 -0
  28. package/lib/containers/_v2/overview/columns/column/source-visual-state.d.ts +9 -0
  29. package/lib/containers/_v2/overview/columns/index.d.ts +11 -0
  30. package/lib/containers/_v2/overview/data-stream-select/index.d.ts +12 -0
  31. package/lib/containers/_v2/overview/drawers/index.d.ts +31 -0
  32. package/lib/containers/_v2/overview/filters/index.d.ts +2 -0
  33. package/lib/containers/_v2/overview/index.d.ts +14 -0
  34. package/lib/containers/_v2/overview/multi-source-control/index.d.ts +7 -0
  35. package/lib/containers/_v2/overview/search/builder.d.ts +25 -0
  36. package/lib/containers/_v2/overview/search/index.d.ts +7 -0
  37. package/lib/containers/source-drawer/index.d.ts +2 -2
  38. package/lib/containers/v2.js +334 -33
  39. package/lib/containers.js +122 -198
  40. package/lib/contexts/data-stream-form-context.d.ts +60 -0
  41. package/lib/contexts/index.d.ts +1 -0
  42. package/lib/contexts.js +1 -1
  43. package/lib/functions.js +1 -1
  44. package/lib/hooks/useOnClickOutside.d.ts +1 -0
  45. package/lib/hooks.js +1 -1
  46. package/lib/icons/common/index.d.ts +1 -0
  47. package/lib/icons/common/star-icon/index.d.ts +2 -0
  48. package/lib/icons.js +1 -1
  49. package/lib/mock-data/index.d.ts +1 -0
  50. package/lib/mock-data/sources/index.d.ts +1 -0
  51. package/lib/snippets/_v2/cancel-modal/index.d.ts +4 -1
  52. package/lib/snippets/_v2/delete-modal/index.d.ts +3 -1
  53. package/lib/snippets/_v2/rich-title/index.d.ts +1 -0
  54. package/lib/snippets/v2.js +1 -1
  55. package/lib/snippets.js +1 -1
  56. package/lib/store.js +1 -1
  57. package/lib/theme/palettes/index.d.ts +10 -0
  58. package/lib/theme.js +1 -1
  59. package/lib/types/actions/index.d.ts +2 -0
  60. package/lib/types/config/index.d.ts +2 -0
  61. package/lib/types/destinations/index.d.ts +1 -0
  62. package/lib/types/instrumentation-rules/index.d.ts +2 -0
  63. package/lib/types/sources/index.d.ts +44 -0
  64. package/lib/types.js +1 -1
  65. package/lib/visuals/index.d.ts +1 -0
  66. package/lib/visuals/visual-purple-rings/index.d.ts +7 -0
  67. package/lib/visuals.js +1 -1
  68. package/package.json +11 -11
  69. package/lib/chunks/index-DAOWyONO.js +0 -145
@@ -10,8 +10,19 @@ export interface SectionCardProps {
10
10
  id?: string;
11
11
  size?: SectionCardSize;
12
12
  fullHeight?: boolean;
13
+ /**
14
+ * Static title rendered via `<RichTitle />`. Use `customTitle` instead when the
15
+ * title needs interactivity (e.g. a dropdown trigger). When both are passed,
16
+ * `customTitle` wins.
17
+ */
13
18
  richTitle?: RichTitleProps;
19
+ /** Custom node rendered in the title slot. Overrides `richTitle` when provided. */
20
+ customTitle?: ReactNode;
14
21
  search?: SearchProps;
22
+ /** Custom node rendered in the search slot. Overrides `search` when provided (e.g. a Search with custom popup). */
23
+ customSearch?: ReactNode;
24
+ /** Optional filters node rendered next to the search (e.g. a popover with filter controls). */
25
+ filters?: ReactNode;
15
26
  actions?: ActionsProps['actions'];
16
27
  children?: ReactNode;
17
28
  }
@@ -2,7 +2,7 @@ import { type FC } from 'react';
2
2
  import { type InputProps } from '../input';
3
3
  import { type DropDataProps, type DropDataOption } from '../drop-data';
4
4
  export interface DropDownProps extends Omit<InputProps, 'rightIcon' | 'value' | 'onChange' | 'onClick'>, Pick<DropDataProps, 'withMultiSelect' | 'withSearch'> {
5
- options: Pick<DropDataOption, 'id' | 'label'>[];
5
+ options: DropDataOption[];
6
6
  values: string[];
7
7
  setValues: (values: string[]) => void;
8
8
  }
@@ -4,6 +4,8 @@ export interface SearchProps {
4
4
  'data-id'?: string;
5
5
  value: string;
6
6
  onChange: (value: string) => void;
7
+ onFocus?: () => void;
8
+ onBlur?: () => void;
7
9
  placeholder?: string;
8
10
  width?: CSSProperties['width'];
9
11
  segment?: Pick<SegmentProps, 'data-id' | 'options' | 'selected' | 'setSelected'>;
@@ -14,6 +14,7 @@ interface Option<T> {
14
14
  icon?: SVG;
15
15
  tooltip?: string;
16
16
  selectedBgColor?: CSSProperties['backgroundColor'];
17
+ selectedBorderColor?: CSSProperties['borderColor'];
17
18
  disabled?: boolean;
18
19
  }
19
20
  export interface SegmentProps<T = any> {
@@ -20,10 +20,29 @@ export declare enum TypographySize {
20
20
  XXL = "xxl",
21
21
  XXXL = "xxxl"
22
22
  }
23
+ /**
24
+ * Semantic color variants that resolve to design-system tokens at render time.
25
+ * Prefer these over passing raw theme colors so consumers don't need `useTheme()`
26
+ * just to color text.
27
+ */
28
+ export declare enum TypographyColor {
29
+ Primary = "primary",
30
+ Secondary = "secondary",
31
+ Tertiary = "tertiary",
32
+ Disable = "disable",
33
+ Error = "error",
34
+ Mandatory = "mandatory",
35
+ Link = "link",
36
+ Success = "success"
37
+ }
23
38
  export interface TypographyProps {
24
39
  children: React.ReactNode;
25
40
  variant?: TypographyVariants;
26
- color?: CSSProperties['color'];
41
+ /**
42
+ * Either a `TypographyColor` semantic variant (resolved from the theme) or any
43
+ * raw CSS color string for ad-hoc overrides.
44
+ */
45
+ color?: TypographyColor | CSSProperties['color'];
27
46
  size?: TypographySize;
28
47
  weight?: CSSProperties['fontWeight'];
29
48
  opacity?: CSSProperties['opacity'];
@@ -1,13 +1,13 @@
1
- import { type FC } from 'react';
1
+ import React, { type FC } from 'react';
2
2
  import { type ModalProps } from '../modal';
3
+ import { type ButtonProps } from '../button';
3
4
  export interface WarningModalProps extends Omit<ModalProps, 'onBack' | 'onClose' | 'children'> {
4
5
  visual?: FC;
5
6
  title: string;
6
7
  description: string;
7
8
  onClose: () => void;
8
- onDeny?: () => void;
9
- denyLabel?: string;
10
- onApprove?: () => void;
11
- approveLabel?: string;
9
+ denyButton?: ButtonProps;
10
+ approveButton?: ButtonProps;
11
+ children?: React.ReactNode;
12
12
  }
13
13
  export declare const WarningModal: FC<WarningModalProps>;
@@ -1 +1 @@
1
- export{f2 as Autocomplete,Y as Badge,o as Button,B as ButtonSize,gj as ButtonTab,gk as ButtonTabList,a as ButtonVariants,e as Checkbox,gl as CheckboxList,f4 as CheckboxSize,bv as CliCommand,gm as Condition,aK as Conditions,gn as DEFAULT_TIME_UNITS,D as DataCard,aH as Drawer,bf as DropData,bh as DropDataAlignX,bg as DropDataAlignY,ah as DropDown,f as FieldMessage,d as FieldTitle,by as GaugeChart,go as GaugeChartVariant,gp as Header,dW as HoverActions,ai as IconButton,aj as IconButtonSize,I as Input,l as InputList,j as InputTable,bq as Island,ak as Loader,gq as Modal,gr as Navbar,N as NoData,z as Note,el as Radio,gs as RadioGroup,gt as RadioSize,dQ as Search,aa as SectionCard,gu as SectionCardSize,S as Segment,a9 as SegmentSize,bB as SegmentVariant,bx as StatusCard,br as Stepper,bk as Table,bl as TableVariant,aU as Tag,w as TextArea,bz as TextCard,e9 as TimeInput,T as Toggle,k as ToggleLabelAlign,gv as ToggleList,aw as ToggleSize,gw as ToggleVariant,gx as TruncatableTypography,s as Typography,t as TypographySize,ax as TypographyVariants,c5 as WarningModal}from"../chunks/ui-components-CvK0mvVN.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
+ export{f7 as Autocomplete,x as Badge,m as Button,B as ButtonSize,gp as ButtonTab,gq as ButtonTabList,a as ButtonVariants,ag as Checkbox,gr as CheckboxList,c8 as CheckboxSize,cu as CliCommand,gs as Condition,bm as Conditions,gt as DEFAULT_TIME_UNITS,D as DataCard,bk as Drawer,bQ as DropData,bS as DropDataAlignX,bR as DropDataAlignY,b0 as DropDown,ah as FieldMessage,af as FieldTitle,cx as GaugeChart,gu as GaugeChartVariant,gv as Header,_ as HoverActions,b1 as IconButton,b2 as IconButtonSize,ai as Input,an as InputList,al as InputTable,bZ as Island,L as Loader,gw as Modal,gx as Navbar,N as NoData,av as Note,eq as Radio,gy as RadioGroup,gz as RadioSize,w as Search,aW as SectionCard,gA as SectionCardSize,S as Segment,s as SegmentSize,r as SegmentVariant,cw as StatusCard,b_ as Stepper,t as Table,v as TableVariant,bu as Tag,as as TextArea,cy as TextCard,ee as TimeInput,j as Toggle,l as ToggleLabelAlign,gB as ToggleList,k as ToggleSize,gC as ToggleVariant,ca as TruncatableTypography,n as Typography,o as TypographyColor,p as TypographySize,bb as TypographyVariants,aL as WarningModal}from"../chunks/ui-components-of0mjGMv.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{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,g7 as DataFinger,d3 as DataTab,cu as DeleteWarning,dU as DescribeRow,m as Divider,co as DocsButton,ct as Drawer,g8 as DrawerFooter,g9 as DrawerHeader,dl as Dropdown,ga as ErrorBoundary,dt as ExtendArrow,d0 as FadeLoader,ce as FieldError,cc as FieldLabel,F as FlexColumn,n as FlexRow,gb as Header,ck as IconButton,e1 as IconGroup,cU as IconTitleBadge,cP as IconWrapped,dO as IconsNav,gc as ImageControlled,cf as Input,cj as InputList,cg as InputTable,cX as InteractiveTable,ci as KeyValueInputsList,gd as LoadingText,cD as Modal,cE as ModalBody,cp as MonitorsCheckboxes,cR as MonitorsIcons,cH as NavigationButtons,cY as NoDataFound,cF as NotificationNote,ge as Overlay,aJ as Padding,bj 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,gf 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,bA as UpgradeRequiredWrapper,di as VerticalScroll,dE as WarningModal,gg as getLinksFromText,gh as getStrongsFromText,gi as renderText}from"./chunks/ui-components-CvK0mvVN.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
+ export{dt as AutocompleteInput,dE as Badge,dG as Button,i as CancelWarning,b as CenterThis,d9 as Checkbox,C as Code,aa as ConditionDetails,Z as DataCard,G as DataCardFieldTypes,dV as DataCardFields,gd as DataFinger,dH as DataTab,h as DeleteWarning,X as DescribeRow,W as Divider,dj as DocsButton,f as Drawer,ge as DrawerFooter,gf as DrawerHeader,dM as Dropdown,gg as ErrorBoundary,dO as ExtendArrow,M as FadeLoader,da as FieldError,d8 as FieldLabel,y as FlexColumn,F as FlexRow,gh as Header,df as IconButton,e6 as IconGroup,dA as IconTitleBadge,dw as IconWrapped,e4 as IconsNav,gi as ImageControlled,I as Input,de as InputList,db as InputTable,dC as InteractiveTable,dd as KeyValueInputsList,gj as LoadingText,dr as Modal,ds as ModalBody,dk as MonitorsCheckboxes,dx as MonitorsIcons,du as NavigationButtons,Q as NoDataFound,a0 as NotificationNote,gk as Overlay,bl as Padding,bU as PageContent,dJ as Popup,e8 as PopupForm,ed as ScrollX,ce as ScrollY,di as SectionTitle,dh as Segment,dL as SelectionButton,cf as SkeletonLoader,J as Status,dU as Stepper,gl as TabList,dy as TableContainer,dz as TableTitleWrap,dB as TableWrap,dX as Tag,T as Text,dl as TextArea,dc as Toggle,eb as ToggleCodeComponent,q as Tooltip,dD as TraceLoader,cz as UpgradeRequiredWrapper,dK as VerticalScroll,ac as WarningModal,gm as getLinksFromText,gn as getStrongsFromText,go as renderText}from"./chunks/ui-components-of0mjGMv.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";
@@ -34,7 +34,9 @@ export declare const DISPLAY_TITLES: {
34
34
  NAME_YOUR_STREAM_PLACEHOLDER: string;
35
35
  STREAM_DESCRIPTION: string;
36
36
  STREAM_CONFIRM: string;
37
+ RENAME_STREAM: (name: string) => string;
37
38
  DATA_STREAM_EXISTS_WARNING: (curr: string, next: string) => string;
39
+ DATA_STREAM_MERGE_WARNING: (editingName: string | undefined, existingName: string) => string;
38
40
  ACTION: string;
39
41
  ACTIONS: string;
40
42
  ADD_ACTION: string;
@@ -108,6 +110,10 @@ export declare const DISPLAY_TITLES: {
108
110
  TO_COLLECT_OTEL_DATA: string;
109
111
  TO_MONITOR_OTEL_DATA: string;
110
112
  TO_MODIFY_OTEL_DATA: string;
113
+ NO_DATA_INSTRUMENTATION_RULES: string;
114
+ NO_DATA_SOURCES: string;
115
+ NO_DATA_ACTIONS: string;
116
+ NO_DATA_DESTINATIONS: string;
111
117
  QUICK_BACK_TO_SUMMARY: string;
112
118
  GO_TO_SUMMARY: string;
113
119
  FUTURE_APPS_TITLE: string;
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{ad as ACTION_ATTRIBUTE_OPTIONS,cx as ACTION_OPTIONS,ae as ACTION_SAMPLER_OPTIONS,fO as ALL_SOURCES,aW as BTN_CANCEL,bG as BTN_CREATE_FIRST_RULE,b2 as BTN_CREATE_RULE,aZ as BTN_DELETE_RULE,eR as BTN_EDIT_AUTO_RULE,aY as BTN_EDIT_RULE,ba as BTN_SAVE,aX as BTN_SAVE_RULE,aI as BUTTON_TEXTS,a$ as CATEGORY_DESCRIPTIONS,eO as CATEGORY_LABELS,b3 as CATEGORY_TITLES,fP as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fQ as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fR as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aF as DEFAULT_CLUSTER_ID,aE as DEFAULT_CLUSTER_NAME,ds as DEFAULT_DATA_STREAM_NAME,a3 as DESC_DROP_PERCENTAGE,ef as DESC_DURATION,ee as DESC_ERRORS,eA as DESC_KEEP_PERCENTAGE,ei as DESC_OPERATION,eP as DESC_RULE_TYPE,f0 as DESC_SOURCE_SCOPE,al as DESTINATION_CATEGORIES,Z as DISPLAY_LANGUAGES,af as DISPLAY_TITLES,v as DOCS_BASE_URL,ag as DestinationCategoryTypes,b6 as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,b7 as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,b4 as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,b5 as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,b8 as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,b9 as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,b0 as EDIT_TITLES,ev as EMPTY_VALUE,bE as FILTER_TYPE_ALL,aT as FORM_ALERTS,aq as INSTRUMENTATION_RULE_OPTIONS,eg as LABEL_CUSTOM_DURATION,ab as LABEL_CUSTOM_PERCENTAGE,a8 as LABEL_DISABLED,bD as LABEL_DISABLED_RULE,eG as LABEL_DROP_ALL,a2 as LABEL_DROP_AT_MOST,eC as LABEL_DROP_PERCENTAGE,a7 as LABEL_ENABLED,eo as LABEL_HTTP_ROUTE,eq as LABEL_HTTP_ROUTE_PREFIX,es as LABEL_KAFKA_TOPIC,eH as LABEL_KEEP_ALL,eD as LABEL_KEEP_AT_LEAST,eE as LABEL_KEEP_AT_MOST,eB as LABEL_KEEP_PERCENTAGE,ed as LABEL_KEEP_TRACES_DURATION,eb as LABEL_KEEP_TRACES_ERRORS,er as LABEL_METHOD,eK as LABEL_NOTE,eZ as LABEL_NO_PREVIEW,eu as LABEL_OPERATION_TYPE,fS as LABEL_RULE_DISABLED,fT as LABEL_RULE_ENABLED,eI as LABEL_RULE_NAME,eJ as LABEL_RULE_TYPE,eF as LABEL_SAMPLE,ek as LABEL_SERVER_ADDRESS,en as LABEL_TEMPLATED_PATH,ep as LABEL_TEMPLATED_PATH_PREFIX,fU as LANGUAGE_OPTIONS,dm as MONITORS_OPTIONS,e$ as NOTE_ENTIRE_CLUSTER,f1 as NOTE_SOURCE_SCOPE_LOGIC,fV 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,fW as OTEL_DISTRO_NAME_OPTIONS,eM as PLACEHOLDER_NOTE,em as PLACEHOLDER_ROUTE,eL as PLACEHOLDER_RULE_NAME,f3 as PLACEHOLDER_SEARCH_SOURCE,ej as PLACEHOLDER_SERVER_ADDRESS,a6 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,bb 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,fX as SECTION_KEEP_PERCENTAGE,eh as SECTION_OPERATION,eY as SECTION_SAMPLING_PREVIEW,e_ as SECTION_SOURCE_SCOPE,dn as STORAGE_KEYS,bF as TITLE_NO_RESULTS,bH as TITLE_NO_RULES,fY as TOKEN_ABOUT_TO_EXPIRE,eN as TOOLTIP_NOTE,b1 as UNNAMED_RULE,bI as getNoResultsSubTitle}from"./chunks/ui-components-CvK0mvVN.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
+ export{aZ as ACTION_ATTRIBUTE_OPTIONS,dn as ACTION_OPTIONS,a_ as ACTION_SAMPLER_OPTIONS,fT as ALL_SOURCES,bw as BTN_CANCEL,cE as BTN_CREATE_FIRST_RULE,bE as BTN_CREATE_RULE,bz as BTN_DELETE_RULE,eW as BTN_EDIT_AUTO_RULE,by as BTN_EDIT_RULE,bM as BTN_SAVE,bx as BTN_SAVE_RULE,e as BUTTON_TEXTS,bB as CATEGORY_DESCRIPTIONS,eT as CATEGORY_LABELS,bF as CATEGORY_TITLES,fU as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fV as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fW as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,bi as DEFAULT_CLUSTER_ID,bh as DEFAULT_CLUSTER_NAME,cq as DEFAULT_DATA_STREAM_NAME,aQ as DESC_DROP_PERCENTAGE,ek as DESC_DURATION,ej as DESC_ERRORS,eF as DESC_KEEP_PERCENTAGE,en as DESC_OPERATION,eU as DESC_RULE_TYPE,f5 as DESC_SOURCE_SCOPE,b3 as DESTINATION_CATEGORIES,aI as DISPLAY_LANGUAGES,z as DISPLAY_TITLES,ar as DOCS_BASE_URL,a$ as DestinationCategoryTypes,bI as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bJ as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bG as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bH as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bK as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bL as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bC as EDIT_TITLES,eA as EMPTY_VALUE,cC as FILTER_TYPE_ALL,bt as FORM_ALERTS,b6 as INSTRUMENTATION_RULE_OPTIONS,el as LABEL_CUSTOM_DURATION,aX as LABEL_CUSTOM_PERCENTAGE,aV as LABEL_DISABLED,cB as LABEL_DISABLED_RULE,eL as LABEL_DROP_ALL,aP as LABEL_DROP_AT_MOST,eH as LABEL_DROP_PERCENTAGE,aU as LABEL_ENABLED,et as LABEL_HTTP_ROUTE,ev as LABEL_HTTP_ROUTE_PREFIX,ex as LABEL_KAFKA_TOPIC,eM as LABEL_KEEP_ALL,eI as LABEL_KEEP_AT_LEAST,eJ as LABEL_KEEP_AT_MOST,eG as LABEL_KEEP_PERCENTAGE,ei as LABEL_KEEP_TRACES_DURATION,eg as LABEL_KEEP_TRACES_ERRORS,ew as LABEL_METHOD,eP as LABEL_NOTE,f2 as LABEL_NO_PREVIEW,ez as LABEL_OPERATION_TYPE,fX as LABEL_RULE_DISABLED,fY as LABEL_RULE_ENABLED,eN as LABEL_RULE_NAME,eO as LABEL_RULE_TYPE,eK as LABEL_SAMPLE,ep as LABEL_SERVER_ADDRESS,es as LABEL_TEMPLATED_PATH,eu as LABEL_TEMPLATED_PATH_PREFIX,fZ as LANGUAGE_OPTIONS,c2 as MONITORS_OPTIONS,f4 as NOTE_ENTIRE_CLUSTER,f6 as NOTE_SOURCE_SCOPE_LOGIC,f_ as OPENTELEMETRY_EBPF_DISTRO_OPTION,eC as OPERATION_ALL,eB as OPERATION_HTTP_CLIENT,ey as OPERATION_HTTP_SERVER,eD as OPERATION_KAFKA_CONSUMER,eE as OPERATION_KAFKA_PRODUCER,f$ as OTEL_DISTRO_NAME_OPTIONS,eR as PLACEHOLDER_NOTE,er as PLACEHOLDER_ROUTE,eQ as PLACEHOLDER_RULE_NAME,f8 as PLACEHOLDER_SEARCH_SOURCE,eo as PLACEHOLDER_SERVER_ADDRESS,aT as SAMPLING_AUTO_RULE_TITLE,cZ as SAMPLING_BTN_CREATE_RULE,cX as SAMPLING_BTN_DOCS,cY as SAMPLING_BTN_REFRESH,aS as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,d3 as SAMPLING_DELETE_MODAL_APPROVE,d4 as SAMPLING_DELETE_MODAL_CANCEL,d5 as SAMPLING_DELETE_MODAL_DESCRIPTION,d6 as SAMPLING_DELETE_MODAL_TITLE,bN as SAMPLING_DRAWER_WIDTH,cW as SAMPLING_DUPLICATE_RULE_WARNING,aO as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,c_ as SAMPLING_PAGE_DESCRIPTION,c$ as SAMPLING_PAGE_TITLE,aR as SECTION_DROP_PERCENTAGE,eh as SECTION_DURATION,ef as SECTION_ERRORS,g0 as SECTION_KEEP_PERCENTAGE,em as SECTION_OPERATION,f1 as SECTION_SAMPLING_PREVIEW,f3 as SECTION_SOURCE_SCOPE,c0 as STORAGE_KEYS,cD as TITLE_NO_RESULTS,cF as TITLE_NO_RULES,g1 as TOKEN_ABOUT_TO_EXPIRE,eS as TOOLTIP_NOTE,bD as UNNAMED_RULE,cG as getNoResultsSubTitle}from"./chunks/ui-components-of0mjGMv.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";
@@ -0,0 +1,6 @@
1
+ import { type FC } from 'react';
2
+ export * from './merge-warning';
3
+ export interface DataStreamFormProps {
4
+ autoFocus?: boolean;
5
+ }
6
+ export declare const DataStreamForm: FC<DataStreamFormProps>;
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ /**
3
+ * Confirmation prompt shown when the user tries to save a Data Stream form whose
4
+ * name collides with another existing stream. Driven entirely by
5
+ * `DataStreamFormContext` (read `pendingMerge`, dispatch `confirmMerge` / `cancelMerge`)
6
+ * so consumers just need to drop this component anywhere within the provider scope.
7
+ *
8
+ * Pair with `requestSubmit(onConfirmed)` instead of calling the API directly so the
9
+ * gate fires before the actual mutation.
10
+ */
11
+ export declare const DataStreamMergeWarning: FC;
@@ -1,4 +1,5 @@
1
1
  export * from './add-action-form';
2
2
  export * from './add-destination-form';
3
3
  export * from './add-rule-form';
4
+ export * from './data-stream-form';
4
5
  export * from './sampling-rule-form';
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ import { type DataStream } from '@/types';
3
+ export interface AddDataStreamModalProps {
4
+ onClose: () => void;
5
+ /** When omitted, the modal just adds the new stream to the local store and selects it. */
6
+ createDataStream?: (dataStream: DataStream) => void | Promise<void>;
7
+ }
8
+ export declare const AddDataStreamModal: FC<AddDataStreamModalProps>;
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ import { type DataStream } from '@/types';
3
+ export interface EditDataStreamModalProps {
4
+ onClose: () => void;
5
+ dataStreamName: string;
6
+ updateDataStream: (dataStreamName: string, dataStream: DataStream) => void | Promise<void>;
7
+ }
8
+ export declare const EditDataStreamModal: FC<EditDataStreamModalProps>;
@@ -0,0 +1,2 @@
1
+ export * from './add-data-stream-modal';
2
+ export * from './edit-data-stream-modal';
@@ -1,7 +1,9 @@
1
1
  export * from './_drawers';
2
2
  export * from './_forms';
3
+ export * from './_modals';
3
4
  export * from './central-connections';
4
5
  export * from './onboarding';
6
+ export * from './overview';
5
7
  export * from './pipeline-collectors';
6
8
  export * from './sampling-rules';
7
9
  export * from './settings';
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ import { EntityTypes } from '@/types';
3
+ export interface EmptyAddProps {
4
+ entityType: EntityTypes;
5
+ description: string;
6
+ }
7
+ export declare const EmptyAdd: FC<EmptyAddProps>;
@@ -0,0 +1,14 @@
1
+ import { type FC } from 'react';
2
+ import { EntityTypes } from '@/types';
3
+ export interface HeadProps {
4
+ entityType: EntityTypes;
5
+ badge: string | number;
6
+ badgeTooltip?: string;
7
+ isLoading?: boolean;
8
+ refetch: () => void;
9
+ partiallySelected?: boolean;
10
+ allSelected?: boolean;
11
+ onSelectAll?: (bool: boolean) => void;
12
+ progressPercent?: number;
13
+ }
14
+ export declare const Head: FC<HeadProps>;
@@ -0,0 +1,12 @@
1
+ import { type FC } from 'react';
2
+ import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Source, type Metrics } from '@/types';
3
+ export interface ColumnProps {
4
+ entityType: EntityTypes;
5
+ entities: Source[] | Destination[] | Action[] | InstrumentationRule[];
6
+ unfilteredCount: number;
7
+ metrics?: Metrics;
8
+ loading: boolean;
9
+ maxHeight: number;
10
+ refetch: () => void;
11
+ }
12
+ export declare const Column: FC<ColumnProps>;
@@ -0,0 +1,17 @@
1
+ import { type FC } from 'react';
2
+ import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Source, StatusType, type SVG, type WorkloadId } from '@/types';
3
+ export interface ListItemProps {
4
+ entityId: string | WorkloadId;
5
+ entityType: EntityTypes;
6
+ title: string;
7
+ status?: StatusType;
8
+ faded?: boolean;
9
+ tooltip?: string;
10
+ throughput?: string;
11
+ icon?: SVG;
12
+ icons?: SVG[];
13
+ iconSrc?: string;
14
+ isActive?: boolean;
15
+ raw: Source | Destination | Action | InstrumentationRule;
16
+ }
17
+ export declare const ListItem: FC<ListItemProps>;
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ interface NamespaceProps {
3
+ namespace: string;
4
+ }
5
+ export declare const StickyNamespaceHeader: FC<NamespaceProps>;
6
+ export declare const NamespaceDividerRow: FC<NamespaceProps>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { type Source, StatusType } from '@/types';
2
+ interface SourceVisualState {
3
+ status?: StatusType;
4
+ faded: boolean;
5
+ tooltip?: string;
6
+ displaySource: Source;
7
+ }
8
+ export declare function getSourceVisualState(source: Source): SourceVisualState;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { type CSSProperties, type FC } from 'react';
2
+ import { type Metrics } from '@/types';
3
+ export interface ColumnsProps {
4
+ height?: CSSProperties['height'];
5
+ metrics: Metrics;
6
+ refetchSources: () => void;
7
+ refetchDestinations: () => void;
8
+ refetchActions: () => void;
9
+ refetchInstrumentationRules: () => void;
10
+ }
11
+ export declare const Columns: FC<ColumnsProps>;
@@ -0,0 +1,12 @@
1
+ import { type FC } from 'react';
2
+ import { type DataStream } from '@/types';
3
+ export interface DataStreamSelectProps {
4
+ updateDataStream: (dataStreamName: string, dataStream: DataStream) => void | Promise<void>;
5
+ deleteDataStream: (dataStreamName: string) => void | Promise<void>;
6
+ /**
7
+ * Optional. When omitted, "create" just appends to the local data-streams store
8
+ * and selects the new stream. Provide this when there's a remote create mutation.
9
+ */
10
+ createDataStream?: (dataStream: DataStream) => void | Promise<void>;
11
+ }
12
+ export declare const DataStreamSelect: FC<DataStreamSelectProps>;
@@ -0,0 +1,31 @@
1
+ import { type FC } from 'react';
2
+ import { type CreateActionFunc, type CreateDestinationFunc, type CreateInstrumentationRuleFunc, type DeleteActionFunc, type DeleteDestinationFunc, type DeleteInstrumentationRuleFunc, type EffectiveConfig, type EnableProfilingFunc, type FetchNamespacesWithWorkloads, type FetchPeerSourcesFunc, type FetchProfilingSlotsFunc, type FetchSourceByIdFunc, type FetchSourceDescribeFunc, type FetchSourceLibrariesFunc, type FetchSourceProfilingFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type PersistSourcesFunc, type RecoverFromRollbackFunc, type RestartPodFunc, type RestartWorkloadsFunc, type TestConnectionFunc, type UpdateActionFunc, type UpdateDestinationFunc, type UpdateInstrumentationRuleFunc, type UpdateSourceFunc } from '@/types';
3
+ export interface DrawersProps {
4
+ effectiveConfig: EffectiveConfig;
5
+ fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
6
+ persistSources: PersistSourcesFunc;
7
+ restartWorkloads: RestartWorkloadsFunc;
8
+ restartPod: RestartPodFunc;
9
+ recoverFromRollback: RecoverFromRollbackFunc;
10
+ updateSource: UpdateSourceFunc;
11
+ fetchSourceById: FetchSourceByIdFunc;
12
+ fetchSourceDescribe: FetchSourceDescribeFunc;
13
+ fetchSourceLibraries: FetchSourceLibrariesFunc;
14
+ fetchPeerSources: FetchPeerSourcesFunc;
15
+ enableProfiling: EnableProfilingFunc;
16
+ fetchProfilingSlots: FetchProfilingSlotsFunc;
17
+ fetchSourceProfiling: FetchSourceProfilingFunc;
18
+ getDestinationCategories: GetDestinationCategoriesFunc;
19
+ getPotentialDestinations: GetPotentialDestinationsFunc;
20
+ testConnection: TestConnectionFunc;
21
+ createDestination: CreateDestinationFunc;
22
+ updateDestination: UpdateDestinationFunc;
23
+ deleteDestination: DeleteDestinationFunc;
24
+ createInstrumentationRule: CreateInstrumentationRuleFunc;
25
+ updateInstrumentationRule: UpdateInstrumentationRuleFunc;
26
+ deleteInstrumentationRule: DeleteInstrumentationRuleFunc;
27
+ createAction: CreateActionFunc;
28
+ updateAction: UpdateActionFunc;
29
+ deleteAction: DeleteActionFunc;
30
+ }
31
+ export declare const Drawers: FC<DrawersProps>;
@@ -0,0 +1,2 @@
1
+ import { type FC } from 'react';
2
+ export declare const Filters: FC;
@@ -0,0 +1,14 @@
1
+ import { type FC } from 'react';
2
+ import { type ColumnsProps } from './columns';
3
+ import { type DrawersProps } from './drawers';
4
+ import { CSSProperties } from 'styled-components';
5
+ import { type DataStreamSelectProps } from './data-stream-select';
6
+ export interface OverviewProps extends DrawersProps, DataStreamSelectProps {
7
+ columnsMaxHeight: CSSProperties['maxHeight'];
8
+ metrics: ColumnsProps['metrics'];
9
+ refetchSources: ColumnsProps['refetchSources'];
10
+ refetchDestinations: ColumnsProps['refetchDestinations'];
11
+ refetchActions: ColumnsProps['refetchActions'];
12
+ refetchInstrumentationRules: ColumnsProps['refetchInstrumentationRules'];
13
+ }
14
+ export declare const Overview: FC<OverviewProps>;
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ import { type PersistSourcesFunc, type RestartWorkloadsFunc } from '@/types';
3
+ export interface MultiSourceControlProps {
4
+ restartWorkloads: RestartWorkloadsFunc;
5
+ persistSources: PersistSourcesFunc;
6
+ }
7
+ export declare const MultiSourceControl: FC<MultiSourceControlProps>;
@@ -0,0 +1,25 @@
1
+ import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Source } from '@/types';
2
+ export type Category = 'all' | EntityTypes;
3
+ interface Params {
4
+ searchText: string;
5
+ selectedCategory: Category;
6
+ sources: Source[];
7
+ destinations: Destination[];
8
+ actions: Action[];
9
+ instrumentationRules: InstrumentationRule[];
10
+ }
11
+ export declare const buildSearchResults: ({ instrumentationRules, sources, actions, destinations, searchText, selectedCategory }: Params) => {
12
+ categories: {
13
+ category: Category;
14
+ label: string;
15
+ count: number;
16
+ entities: InstrumentationRule[] | Source[] | Action[] | Destination[];
17
+ }[];
18
+ searchResults: {
19
+ entities: Action[] | Destination[] | Source[] | InstrumentationRule[];
20
+ category: Category;
21
+ label: string;
22
+ count: number;
23
+ }[];
24
+ };
25
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ export interface OverviewSearchProps {
3
+ width?: string;
4
+ /** When true, the results popup is suppressed (e.g. when the parent already renders results inline). */
5
+ preventPopup?: boolean;
6
+ }
7
+ export declare const OverviewSearch: FC<OverviewSearchProps>;
@@ -3,9 +3,9 @@ import { type ProfilingProps } from './profiling';
3
3
  import { type DescribeProps } from './describe';
4
4
  import { type LibrariesProps } from './libraries';
5
5
  import { type PeerSourcesProps } from './peers';
6
- import { type PersistSources, type SourceFormData, type WorkloadId, type Source } from '@/types';
6
+ import { type PersistSourcesFunc, type SourceFormData, type WorkloadId, type Source } from '@/types';
7
7
  interface SourceDrawerProps {
8
- persistSources: PersistSources;
8
+ persistSources: PersistSourcesFunc;
9
9
  updateSource: (sourceId: WorkloadId, payload: SourceFormData) => Promise<void>;
10
10
  restartWorkloads: (sourceIds: WorkloadId[]) => Promise<void>;
11
11
  restartPod: (namespace: string, name: string) => Promise<void>;