@odigos/ui-kit 0.0.210 → 0.0.212

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 (56) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/lib/chunks/index-CTFaJvLO.js +3 -0
  3. package/lib/chunks/ui-components-DQ5eBxQh.js +2387 -0
  4. package/lib/chunks/vendor-C150cdxb.js +1 -0
  5. package/lib/components/_v2/index.d.ts +1 -0
  6. package/lib/components/_v2/stepper/index.d.ts +11 -0
  7. package/lib/components/v2.js +1 -1
  8. package/lib/components.js +1 -1
  9. package/lib/constants/destinations/index.d.ts +5 -0
  10. package/lib/constants/strings/index.d.ts +12 -0
  11. package/lib/constants.js +1 -1
  12. package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +2 -2
  13. package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +4 -7
  14. package/lib/containers/_v2/_drawers/add-destination-drawer/helpers.d.ts +1 -9
  15. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +10 -5
  16. package/lib/containers/_v2/_drawers/add-destination-drawer/lists-column/index.d.ts +3 -5
  17. package/lib/containers/_v2/_drawers/add-destination-drawer/types.d.ts +1 -6
  18. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +2 -2
  19. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +10 -5
  20. package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/list/index.d.ts +1 -0
  21. package/lib/containers/_v2/_forms/add-destination-form/context.d.ts +36 -0
  22. package/lib/containers/_v2/_forms/add-destination-form/dynamic-fields/index.d.ts +1 -0
  23. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +4 -5
  24. package/lib/containers/_v2/central-connections/index.d.ts +2 -1
  25. package/lib/containers/_v2/index.d.ts +1 -0
  26. package/lib/containers/_v2/onboarding/background/index.d.ts +7 -0
  27. package/lib/containers/_v2/onboarding/get-started/index.d.ts +5 -0
  28. package/lib/containers/_v2/onboarding/index.d.ts +14 -0
  29. package/lib/containers/_v2/onboarding/summary/index.d.ts +12 -0
  30. package/lib/containers/_v2/pipeline-collectors/general-info/yaml-drawer/index.d.ts +1 -1
  31. package/lib/containers/service-map/helpers/aggregate-service-map.d.ts +6 -0
  32. package/lib/containers/service-map/helpers/build-edges.d.ts +3 -3
  33. package/lib/containers/service-map/helpers/build-map-nodes.d.ts +4 -3
  34. package/lib/containers/service-map/service-map-drawer.d.ts +17 -0
  35. package/lib/containers/v2.js +91 -30
  36. package/lib/containers.js +152 -129
  37. package/lib/contexts.js +1 -1
  38. package/lib/functions.js +1 -1
  39. package/lib/hooks.js +1 -1
  40. package/lib/icons.js +1 -1
  41. package/lib/snippets/_v2/index.d.ts +1 -0
  42. package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +5 -0
  43. package/lib/snippets/react-flow/flow.d.ts +4 -1
  44. package/lib/snippets/react-flow/nodes/map-item-node.d.ts +3 -2
  45. package/lib/snippets.js +1 -1
  46. package/lib/store.js +1 -1
  47. package/lib/theme.js +1 -1
  48. package/lib/types/destinations/index.d.ts +9 -8
  49. package/lib/types/service-map/index.d.ts +22 -0
  50. package/lib/types/snapshot/index.d.ts +4 -4
  51. package/lib/types.js +1 -1
  52. package/lib/visuals.js +1 -1
  53. package/package.json +26 -26
  54. package/lib/chunks/index-C27kJv0Y.js +0 -3
  55. package/lib/chunks/ui-components-CxdeQcW1.js +0 -2389
  56. package/lib/chunks/vendor-D99eCWta.js +0 -1
@@ -24,6 +24,7 @@ export * from './note';
24
24
  export * from './radio';
25
25
  export * from './search';
26
26
  export * from './segment';
27
+ export * from './stepper';
27
28
  export * from './table';
28
29
  export * from './tag';
29
30
  export * from './textarea';
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ export interface StepperProps {
3
+ currentStep: number;
4
+ data: {
5
+ step: number;
6
+ label: string;
7
+ forceDoneBadge?: boolean;
8
+ }[];
9
+ gap?: number;
10
+ }
11
+ export declare const Stepper: FC<StepperProps>;
@@ -1 +1 @@
1
- export{_ as Badge,B as Button,h as ButtonSize,dW as ButtonTab,dX as ButtonTabList,j as ButtonVariants,C as Checkbox,dY as CheckboxList,dZ as CheckboxSize,aM as CliCommand,aB as DataCard,o as Drawer,ay as DropData,aA as DropDataAlignX,az as DropDataAlignY,y as DropDown,b as FieldMessage,a as FieldTitle,d_ as Header,cy as HoverActions,a7 as IconButton,a8 as IconButtonSize,I as Input,f as InputList,d as InputTable,aJ as Island,L as Loader,d$ as Modal,e0 as Navbar,N as NoData,r as Note,e1 as Radio,e2 as RadioGroup,e3 as RadioSize,q as Search,aw as SectionCard,e4 as SectionCardSize,v as Segment,ac as SegmentSize,aP as StatusCard,aH as Table,aI as TableVariant,e5 as Tag,w as TextArea,aQ as TextCard,T as Toggle,e as ToggleLabelAlign,e6 as ToggleList,ak as ToggleSize,e7 as ToggleVariant,t as Typography,p as TypographySize,al as TypographyVariants,W as WarningModal}from"../chunks/ui-components-CxdeQcW1.js";import"../icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{a3 as Badge,B as Button,h as ButtonSize,dZ as ButtonTab,d_ as ButtonTabList,j as ButtonVariants,C as Checkbox,d$ as CheckboxList,e0 as CheckboxSize,aO as CliCommand,aC as DataCard,p as Drawer,az as DropData,aB as DropDataAlignX,aA as DropDataAlignY,E as DropDown,b as FieldMessage,a as FieldTitle,e1 as Header,cC as HoverActions,aa as IconButton,ab as IconButtonSize,I as Input,f as InputList,d as InputTable,aK as Island,L as Loader,e2 as Modal,e3 as Navbar,N as NoData,s as Note,e4 as Radio,e5 as RadioGroup,e6 as RadioSize,r as Search,ax as SectionCard,e7 as SectionCardSize,x as Segment,af as SegmentSize,aR as StatusCard,aL as Stepper,aI as Table,aJ as TableVariant,e8 as Tag,y as TextArea,aS as TextCard,T as Toggle,e as ToggleLabelAlign,e9 as ToggleList,ak as ToggleSize,ea as ToggleVariant,v as Typography,q as TypographySize,al as TypographyVariants,W as WarningModal}from"../chunks/ui-components-DQ5eBxQh.js";import"../icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
package/lib/components.js CHANGED
@@ -1 +1 @@
1
- export{bo as AutocompleteInput,bI as Badge,bK as Button,bb as CancelWarning,n as CenterThis,aV as Checkbox,cP as Code,bf as ConditionDetails,bg as DataCard,aT as DataCardFieldTypes,cg as DataCardFields,dG as DataFinger,bM as DataTab,ba as DeleteWarning,cw as DescribeRow,D as Divider,b4 as DocsButton,b9 as Drawer,dH as DrawerFooter,dI as DrawerHeader,c2 as Dropdown,dJ as ErrorBoundary,c7 as ExtendArrow,aL as FadeLoader,aW as FieldError,aU as FieldLabel,F as FlexColumn,g as FlexRow,dK as Header,b0 as IconButton,cH as IconGroup,bC as IconTitleBadge,bx as IconWrapped,cs as IconsNav,dL as ImageControlled,aX as Input,a$ as InputList,aY as InputTable,bF as InteractiveTable,a_ as KeyValueInputsList,dM as LoadingText,bl as Modal,bm as ModalBody,b5 as MonitorsCheckboxes,bz as MonitorsIcons,bp as NavigationButtons,bG as NoDataFound,bn as NotificationNote,dN as Overlay,aG as PageContent,bZ as Popup,cJ as PopupForm,cO as ScrollX,S as ScrollY,b3 as SectionTitle,b2 as Segment,b$ as SelectionButton,bR as SkeletonLoader,br as Status,cf as Stepper,dO as TabList,bA as TableContainer,bB as TableTitleWrap,bE as TableWrap,ci as Tag,b7 as Text,b6 as TextArea,aZ as Toggle,cM as ToggleCodeComponent,O as Tooltip,bH as TraceLoader,aS as UpgradeRequiredWrapper,b_ as VerticalScroll,cl as WarningModal,dP as WhiteSpace,dQ as getLinksFromText,dR as getStrongsFromText,dS as renderText}from"./chunks/ui-components-CxdeQcW1.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{bq as AutocompleteInput,bK as Badge,bM as Button,bd as CancelWarning,o as CenterThis,aX as Checkbox,cT as Code,bh as ConditionDetails,bi as DataCard,aV as DataCardFieldTypes,cj as DataCardFields,dJ as DataFinger,bO as DataTab,bc as DeleteWarning,cA as DescribeRow,D as Divider,b6 as DocsButton,bb as Drawer,dK as DrawerFooter,dL as DrawerHeader,c4 as Dropdown,dM as ErrorBoundary,ca as ExtendArrow,aN as FadeLoader,aY as FieldError,aW as FieldLabel,F as FlexColumn,g as FlexRow,dN as Header,b2 as IconButton,cL as IconGroup,bE as IconTitleBadge,bz as IconWrapped,cw as IconsNav,dO as ImageControlled,aZ as Input,b1 as InputList,a_ as InputTable,bH as InteractiveTable,b0 as KeyValueInputsList,dP as LoadingText,bn as Modal,bo as ModalBody,b7 as MonitorsCheckboxes,bB as MonitorsIcons,br as NavigationButtons,bI as NoDataFound,bp as NotificationNote,dQ as Overlay,aH as PageContent,b$ as Popup,cN as PopupForm,cS as ScrollX,S as ScrollY,b5 as SectionTitle,b4 as Segment,c1 as SelectionButton,bT as SkeletonLoader,bt as Status,ci as Stepper,dR as TabList,bC as TableContainer,bD as TableTitleWrap,bG as TableWrap,cl as Tag,b9 as Text,b8 as TextArea,a$ as Toggle,cQ as ToggleCodeComponent,Y as Tooltip,bJ as TraceLoader,aU as UpgradeRequiredWrapper,c0 as VerticalScroll,co as WarningModal,dS as WhiteSpace,dT as getLinksFromText,dU as getStrongsFromText,dV as renderText}from"./chunks/ui-components-DQ5eBxQh.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,5 +1,6 @@
1
1
  export declare enum DestinationCategoryTypes {
2
2
  ALL = "all",
3
+ UNSAVED = "unsaved",
3
4
  EXISTS = "exists",
4
5
  DETECTED = "detected",
5
6
  SELF_HOSTED = "self-hosted",
@@ -10,6 +11,10 @@ export declare const DESTINATION_CATEGORIES: {
10
11
  TITLE: string;
11
12
  DESCRIPTION: string;
12
13
  };
14
+ unsaved: {
15
+ TITLE: string;
16
+ DESCRIPTION: string;
17
+ };
13
18
  exists: {
14
19
  TITLE: string;
15
20
  DESCRIPTION: string;
@@ -1,5 +1,7 @@
1
1
  export declare const DOCS_BASE_URL = "https://docs.odigos.io";
2
2
  export declare const DEFAULT_DATA_STREAM_NAME = "default";
3
+ export declare const DEFAULT_CLUSTER_ID = "this-cluster";
4
+ export declare const DEFAULT_CLUSTER_NAME = "This Cluster";
3
5
  export declare const STORAGE_KEYS: {
4
6
  SELECTED_DATA_STREAM: string;
5
7
  SELECTED_DATA_STREAM_WITH_PROXY: (proxyId: string) => string;
@@ -62,7 +64,16 @@ export declare const DISPLAY_TITLES: {
62
64
  TRY_SEARCH_OR_OTHER_NAMESPACE: string;
63
65
  PLEASE_MAKE_SURE_UNIGNORED_NAMESPACES: string;
64
66
  INSTALLATION: string;
67
+ SOURCES_SETUP: string;
68
+ DESTINATIONS_SETUP: string;
65
69
  SUMMARY: string;
70
+ REVIEW_SETUP: string;
71
+ NO_SOURCES_SELECTED: string;
72
+ ADD_SOURCE_PROMPT: string;
73
+ NO_DESTINATIONS_SELECTED: string;
74
+ ADD_DESTINATION_PROMPT: string;
75
+ GET_STARTED_WITH: string;
76
+ GET_STARTED_DESCRIPTION: string;
66
77
  TYPE: string;
67
78
  NOTES: string;
68
79
  STATUS: string;
@@ -133,6 +144,7 @@ export declare const DISPLAY_TITLES: {
133
144
  ADD_DESTINATION_DRAWER_DESCRIPTION: string;
134
145
  };
135
146
  export declare const BUTTON_TEXTS: {
147
+ GET_STARTED: string;
136
148
  ADD: string;
137
149
  ADD_NEW: string;
138
150
  NEW: string;
package/lib/constants.js CHANGED
@@ -1 +1 @@
1
- export{a2 as ACTION_ATTRIBUTE_OPTIONS,be as ACTION_OPTIONS,a3 as ACTION_SAMPLER_OPTIONS,aF as BUTTON_TEXTS,ap as DEFAULT_DATA_STREAM_NAME,aa as DESTINATION_CATEGORIES,$ as DISPLAY_LANGUAGES,a5 as DISPLAY_TITLES,u as DOCS_BASE_URL,a9 as DestinationCategoryTypes,a6 as FORM_ALERTS,ae as INSTRUMENTATION_RULE_OPTIONS,ds as LANGUAGE_OPTIONS,M as MONITORS_OPTIONS,dt as OTEL_DISTRO_NAME_OPTIONS,c3 as STORAGE_KEYS,du as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-CxdeQcW1.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
1
+ export{a7 as ACTION_ATTRIBUTE_OPTIONS,bg as ACTION_OPTIONS,a8 as ACTION_SAMPLER_OPTIONS,aG as BUTTON_TEXTS,aq as DEFAULT_CLUSTER_ID,ap as DEFAULT_CLUSTER_NAME,c9 as DEFAULT_DATA_STREAM_NAME,ad as DESTINATION_CATEGORIES,a4 as DISPLAY_LANGUAGES,a9 as DISPLAY_TITLES,w as DOCS_BASE_URL,ac as DestinationCategoryTypes,U as FORM_ALERTS,ag as INSTRUMENTATION_RULE_OPTIONS,dw as LANGUAGE_OPTIONS,M as MONITORS_OPTIONS,dx as OTEL_DISTRO_NAME_OPTIONS,c5 as STORAGE_KEYS,dy as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-DQ5eBxQh.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";
@@ -3,8 +3,8 @@ import { type HeaderProps } from '@/components/_v2/drawer/header';
3
3
  import { type CreateActionFunc } from '@/types';
4
4
  export interface AddActionDrawerProps {
5
5
  onClose: HeaderProps['onClose'];
6
- selectedConnectionIds: string[];
7
- setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
6
+ selectedConnectionIds?: string[];
7
+ setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
8
8
  createAction: CreateActionFunc;
9
9
  }
10
10
  export declare const AddActionDrawer: FC<AddActionDrawerProps>;
@@ -1,9 +1,6 @@
1
- import type { SelectedArea } from '../types';
2
- import type { GenericFormResult } from '@/hooks';
3
- import { WideDrawerProps } from '@/snippets/_v2';
4
- import type { DestinationFormData } from '@/types';
1
+ import type { WideDrawerProps } from '@/snippets/_v2';
2
+ import { AddDestinationFormProps } from '@/containers/_v2/_forms/add-destination-form';
5
3
  export interface FormColumnProps {
6
- selectedArea: SelectedArea | null;
7
- genericForm: GenericFormResult<DestinationFormData>;
4
+ testConnection: AddDestinationFormProps['testConnection'];
8
5
  }
9
- export declare const formColumn: ({ selectedArea, genericForm }: FormColumnProps) => WideDrawerProps["leftColumn"];
6
+ export declare const formColumn: ({ testConnection }: FormColumnProps) => WideDrawerProps["leftColumn"];
@@ -1,14 +1,6 @@
1
- import { SelectedArea } from './types';
2
- import { GenericFormResult } from '@/hooks';
3
- import { type DestinationDynamicField, type DestinationFormData, type DestinationOption, type DestinationYamlProperties, type GetDestinationCategoriesResult, type GetPotentialDestinationsResult } from '@/types';
1
+ import type { DestinationOption, GetDestinationCategoriesResult, GetPotentialDestinationsResult } from '@/types';
4
2
  export declare const getOptionsFromResults: (categoriesResult?: GetDestinationCategoriesResult, detectedResult?: GetPotentialDestinationsResult) => {
5
3
  detectedDestinations: DestinationOption[];
6
4
  selfHostedDestinations: DestinationOption[];
7
5
  managedDestinations: DestinationOption[];
8
6
  };
9
- export declare const buildDynamicFields: (fields: DestinationYamlProperties[]) => DestinationDynamicField[];
10
- export declare const INITIAL_FORM_DATA: (currentStreamName: string) => DestinationFormData;
11
- export declare const validateForm: (selectedArea: SelectedArea | null, genericForm: GenericFormResult<DestinationFormData>) => {
12
- isOk: boolean;
13
- preparedFormData: DestinationFormData;
14
- };
@@ -1,12 +1,17 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
- import { type HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type CreateDestinationFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc } from '@/types';
2
+ import type { HeaderProps } from '@/components/_v2/drawer/header';
3
+ import { type UnsavedDestination } from '../../_forms';
4
+ import type { CreateDestinationFunc, GetDestinationCategoriesFunc, GetPotentialDestinationsFunc, TestConnectionFunc } from '@/types';
4
5
  export interface AddDestinationDrawerProps {
5
- onClose: HeaderProps['onClose'];
6
- selectedConnectionIds: string[];
7
- setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
6
+ onClose?: HeaderProps['onClose'];
7
+ onBack?: (input: UnsavedDestination[]) => void;
8
+ onNext?: (input: UnsavedDestination[]) => void;
9
+ selectedConnectionIds?: string[];
10
+ setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
8
11
  getDestinationCategories: GetDestinationCategoriesFunc;
9
12
  getPotentialDestinations: GetPotentialDestinationsFunc;
13
+ initialInputs?: UnsavedDestination[] | null;
14
+ testConnection: TestConnectionFunc;
10
15
  createDestination: CreateDestinationFunc;
11
16
  }
12
17
  export declare const AddDestinationDrawer: FC<AddDestinationDrawerProps>;
@@ -1,13 +1,11 @@
1
+ import type { Filters } from '../types';
1
2
  import { WideDrawerProps } from '@/snippets/_v2';
2
- import type { DestinationOption } from '@/types';
3
- import type { Filters, SelectedArea } from '../types';
4
3
  import { DestinationCategoryTypes } from '@/constants';
4
+ import { type DestinationOption } from '@/types';
5
5
  export interface ListsColumnProps {
6
6
  isFetching: boolean;
7
7
  destinationsByCategory: Record<DestinationCategoryTypes, DestinationOption[]>;
8
8
  searchText: string;
9
9
  filters: Filters;
10
- selectedArea: SelectedArea | null;
11
- onSelect: (area: SelectedArea) => void;
12
10
  }
13
- export declare const listsColumn: ({ isFetching, destinationsByCategory, searchText, filters, selectedArea, onSelect }: ListsColumnProps) => WideDrawerProps["leftColumn"];
11
+ export declare const listsColumn: ({ isFetching, destinationsByCategory, searchText, filters }: ListsColumnProps) => WideDrawerProps["leftColumn"];
@@ -1,11 +1,6 @@
1
+ import type { SignalType } from '@/types';
1
2
  import { DestinationCategoryTypes } from '@/constants';
2
- import type { DestinationDynamicField, DestinationOption, SignalType } from '@/types';
3
3
  export interface Filters {
4
4
  categoryType: DestinationCategoryTypes | null;
5
5
  signalType: SignalType | null;
6
6
  }
7
- export interface SelectedArea {
8
- listType: DestinationCategoryTypes;
9
- option: DestinationOption;
10
- dynamicFields: DestinationDynamicField[];
11
- }
@@ -3,8 +3,8 @@ import { type HeaderProps } from '@/components/_v2/drawer/header';
3
3
  import { type CreateInstrumentationRuleFunc } from '@/types';
4
4
  export interface AddRuleDrawerProps {
5
5
  onClose: HeaderProps['onClose'];
6
- selectedConnectionIds: string[];
7
- setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
6
+ selectedConnectionIds?: string[];
7
+ setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
8
8
  createInstrumentationRule: CreateInstrumentationRuleFunc;
9
9
  }
10
10
  export declare const AddRuleDrawer: FC<AddRuleDrawerProps>;
@@ -1,10 +1,15 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
- import { type PersistSourcesFunc, GetAllClusterSnapshots } from '@/types';
2
+ import { type HeaderProps } from '@/components/_v2/drawer/header';
3
+ import { type PersistSourceInput, type PersistSourcesFunc, type GetAllClusterSnapshots, type FetchNamespacesWithWorkloads } from '@/types';
3
4
  export interface AddSourceDrawerProps {
4
- onClose: () => void;
5
- selectedConnectionIds: string[];
6
- setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
7
- getAllClusterSnapshots: GetAllClusterSnapshots;
5
+ onClose?: HeaderProps['onClose'];
6
+ onBack?: (input: PersistSourceInput) => void;
7
+ onNext?: (input: PersistSourceInput) => void;
8
+ selectedConnectionIds?: string[];
9
+ setSelectedConnectionIds?: Dispatch<SetStateAction<string[]>>;
10
+ getAllClusterSnapshots?: GetAllClusterSnapshots;
11
+ fetchNamespacesWithWorkloads?: FetchNamespacesWithWorkloads;
12
+ initialInputs?: PersistSourceInput | null;
8
13
  persistSources: PersistSourcesFunc;
9
14
  }
10
15
  export declare const AddSourceDrawer: FC<AddSourceDrawerProps>;
@@ -2,6 +2,7 @@ import { type Dispatch, type SetStateAction, type FC } from 'react';
2
2
  import type { VisibleNamespace } from '../../utils';
3
3
  import type { HandleSourceChangeFunc, SelectedArea } from '../../types';
4
4
  export interface ListProps {
5
+ withCollapse: boolean;
5
6
  clusterId: string;
6
7
  clusterName: string;
7
8
  namespaces: VisibleNamespace[];
@@ -0,0 +1,36 @@
1
+ import React, { type FC, Dispatch, SetStateAction } from 'react';
2
+ import { type GenericFormResult } from '@/hooks';
3
+ import { DestinationCategoryTypes } from '@/constants';
4
+ import { type DestinationDynamicField, type DestinationFormData, type DestinationOption, type TestConnectionResponse } from '@/types';
5
+ interface ActiveForm {
6
+ listType: DestinationCategoryTypes;
7
+ option: DestinationOption;
8
+ dynamicFields: DestinationDynamicField[];
9
+ errorMessage?: string;
10
+ unsavedIdx?: number;
11
+ }
12
+ export interface UnsavedDestination {
13
+ option: DestinationOption;
14
+ formData: DestinationFormData;
15
+ testResult?: TestConnectionResponse;
16
+ }
17
+ interface AddDestinationFormContextType {
18
+ activeForm: ActiveForm | null;
19
+ onChangeActiveForm: (payload: Omit<ActiveForm, 'dynamicFields'> | null) => void;
20
+ genericForm?: GenericFormResult<DestinationFormData>;
21
+ validateFormData: () => {
22
+ errorMessage?: string;
23
+ preparedFormData: DestinationFormData;
24
+ };
25
+ unsavedDestinations: UnsavedDestination[];
26
+ thisUnsavedDestination?: UnsavedDestination;
27
+ setUnsavedDestinations: Dispatch<SetStateAction<UnsavedDestination[]>>;
28
+ addUnsavedDestination: (payload: Omit<UnsavedDestination, 'option'>) => void;
29
+ updateUnsavedDestination: (idx: number, payload: Omit<UnsavedDestination, 'option'>) => void;
30
+ deleteUnsavedDestination: (idx: number) => void;
31
+ }
32
+ export declare const AddDestinationFormContextProvider: FC<{
33
+ children: React.ReactNode;
34
+ }>;
35
+ export declare const useAddDestinationFormContext: () => AddDestinationFormContextType;
36
+ export {};
@@ -4,5 +4,6 @@ import { DestinationDynamicField, DestinationFormData, SignalType } from '@/type
4
4
  export interface DynamicFieldsProps extends Pick<GenericFormResult<DestinationFormData>, 'formData' | 'handleFormChange' | 'formErrors'> {
5
5
  signals: SignalType[];
6
6
  fields: DestinationDynamicField[];
7
+ disabled?: boolean;
7
8
  }
8
9
  export declare const DynamicFields: FC<DynamicFieldsProps>;
@@ -1,8 +1,7 @@
1
1
  import { type FC } from 'react';
2
- import { GenericFormResult } from '@/hooks';
3
- import { type DestinationFormData, type DestinationOption, DestinationDynamicField } from '@/types';
4
- export interface AddDestinationFormProps extends GenericFormResult<DestinationFormData> {
5
- option: DestinationOption;
6
- dynamicFields: DestinationDynamicField[];
2
+ import { type TestConnectionFunc } from '@/types';
3
+ export * from './context';
4
+ export interface AddDestinationFormProps {
5
+ testConnection: TestConnectionFunc;
7
6
  }
8
7
  export declare const AddDestinationForm: FC<AddDestinationFormProps>;
@@ -1,5 +1,5 @@
1
1
  import { type FC, type CSSProperties } from 'react';
2
- import { type Connection, type GetEffectiveConfigFunc, type ApplyConfigurationsFunc, type GetAllClusterSnapshots, type PersistSourcesFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type CreateDestinationFunc, type CreateActionFunc, type CreateInstrumentationRuleFunc } from '@/types';
2
+ import { type Connection, type GetEffectiveConfigFunc, type ApplyConfigurationsFunc, type GetAllClusterSnapshots, type PersistSourcesFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type CreateDestinationFunc, type CreateActionFunc, type CreateInstrumentationRuleFunc, TestConnectionFunc } from '@/types';
3
3
  export interface CentralConnectionsProps {
4
4
  tableRowsMaxHeight: CSSProperties['maxHeight'];
5
5
  connections?: Connection[];
@@ -14,6 +14,7 @@ export interface CentralConnectionsProps {
14
14
  persistSources?: PersistSourcesFunc;
15
15
  getDestinationCategories?: GetDestinationCategoriesFunc;
16
16
  getPotentialDestinations?: GetPotentialDestinationsFunc;
17
+ testConnection?: TestConnectionFunc;
17
18
  createDestination?: CreateDestinationFunc;
18
19
  createAction?: CreateActionFunc;
19
20
  createInstrumentationRule?: CreateInstrumentationRuleFunc;
@@ -1,4 +1,5 @@
1
1
  export * from './_drawers';
2
2
  export * from './_forms';
3
3
  export * from './central-connections';
4
+ export * from './onboarding';
4
5
  export * from './pipeline-collectors';
@@ -0,0 +1,7 @@
1
+ import { CSSProperties, type ReactNode, type FC } from 'react';
2
+ export interface BackgroundProps {
3
+ paddingXAxis?: CSSProperties['padding'];
4
+ paddingYAxis?: CSSProperties['padding'];
5
+ children?: ReactNode;
6
+ }
7
+ export declare const Background: FC<BackgroundProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export interface GetStartedProps {
3
+ onStart: () => void;
4
+ }
5
+ export declare const GetStarted: FC<GetStartedProps>;
@@ -0,0 +1,14 @@
1
+ import { type CSSProperties, type FC } from 'react';
2
+ import { type FetchNamespacesWithWorkloads, type PersistSourcesFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type TestConnectionFunc, type CreateDestinationFunc } from '@/types';
3
+ export interface OnboardingProps {
4
+ pagePaddingXAxis?: CSSProperties['padding'];
5
+ pagePaddingYAxis?: CSSProperties['padding'];
6
+ fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
7
+ persistSources: PersistSourcesFunc;
8
+ getDestinationCategories: GetDestinationCategoriesFunc;
9
+ getPotentialDestinations: GetPotentialDestinationsFunc;
10
+ testConnection: TestConnectionFunc;
11
+ createDestination: CreateDestinationFunc;
12
+ onDone: () => void;
13
+ }
14
+ export declare const Onboarding: FC<OnboardingProps>;
@@ -0,0 +1,12 @@
1
+ import { type FC } from 'react';
2
+ import { type UnsavedDestination } from '../../_forms';
3
+ import { type PersistSourceInput } from '@/types';
4
+ export interface SummaryProps {
5
+ setStep: (step: number) => void;
6
+ onSave: () => Promise<{
7
+ error?: string;
8
+ } | undefined>;
9
+ sourcesPayload: PersistSourceInput | null;
10
+ destinationsPayload: UnsavedDestination[] | null;
11
+ }
12
+ export declare const Summary: FC<SummaryProps>;
@@ -1,5 +1,5 @@
1
1
  import { type FC } from 'react';
2
- import { DrawerProps } from '@/components/_v2';
2
+ import { type DrawerProps } from '@/components/_v2';
3
3
  import { type HeaderProps } from '@/components/_v2/drawer/header';
4
4
  export interface YamlDrawerProps {
5
5
  isOpen: DrawerProps['isOpen'];
@@ -0,0 +1,6 @@
1
+ import type { ServiceMapSources, AggregatedServiceMap } from '@/types';
2
+ export declare const stripLastDimension: (nodeId: string) => {
3
+ graphKey: string;
4
+ detail: string;
5
+ };
6
+ export declare const aggregateServiceMap: (raw: ServiceMapSources) => AggregatedServiceMap;
@@ -1,10 +1,10 @@
1
1
  import { DefaultTheme } from 'styled-components';
2
2
  import { type Edge, type Node } from '@xyflow/react';
3
- import { type ServiceMapSources } from '@/types';
3
+ import { type AggregatedServiceMap } from '@/types';
4
4
  interface Params {
5
5
  theme: DefaultTheme;
6
6
  nodes: Node[];
7
- serviceMap: ServiceMapSources;
7
+ aggregatedServiceMap: AggregatedServiceMap;
8
8
  }
9
- export declare const buildEdges: ({ theme, nodes, serviceMap }: Params) => Edge[];
9
+ export declare const buildEdges: ({ theme, nodes, aggregatedServiceMap }: Params) => Edge[];
10
10
  export {};
@@ -1,8 +1,9 @@
1
1
  import type { Node } from '@xyflow/react';
2
- import { type Source, type ServiceMapSources } from '@/types';
2
+ import { type Source, type AggregatedServiceMap } from '@/types';
3
+ export declare const toFlowNodeId: (graphKey: string) => string;
3
4
  interface Params {
4
5
  sources: Source[];
5
- serviceMap: ServiceMapSources;
6
+ aggregatedServiceMap: AggregatedServiceMap;
6
7
  }
7
- export declare const buildMapNodes: ({ sources, serviceMap }: Params) => Node[];
8
+ export declare const buildMapNodes: ({ sources, aggregatedServiceMap }: Params) => Node[];
8
9
  export {};
@@ -0,0 +1,17 @@
1
+ import { type FC } from 'react';
2
+ import type { AggregatedServiceMap } from '@/types';
3
+ export type DrawerState = {
4
+ type: 'node';
5
+ graphKey: string;
6
+ } | {
7
+ type: 'edge';
8
+ sourceKey: string;
9
+ targetKey: string;
10
+ } | null;
11
+ interface Props {
12
+ drawerState: DrawerState;
13
+ aggregatedData: AggregatedServiceMap;
14
+ onClose: () => void;
15
+ }
16
+ export declare const ServiceMapDrawer: FC<Props>;
17
+ export {};