@odigos/ui-kit 0.0.211 → 0.0.213

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 (79) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/chunks/index-Bh2gKc3b.js +3 -0
  3. package/lib/chunks/ui-components-BliHHDta.js +2388 -0
  4. package/lib/chunks/vendor-C150cdxb.js +1 -0
  5. package/lib/components/_v2/badge/index.d.ts +2 -0
  6. package/lib/components/_v2/cards/section-card/index.d.ts +1 -0
  7. package/lib/components/_v2/checkbox/index.d.ts +5 -1
  8. package/lib/components/_v2/field-message/index.d.ts +1 -0
  9. package/lib/components/_v2/field-title/index.d.ts +2 -0
  10. package/lib/components/_v2/index.d.ts +1 -0
  11. package/lib/components/_v2/input/index.d.ts +4 -3
  12. package/lib/components/_v2/input-list/index.d.ts +5 -3
  13. package/lib/components/_v2/input-table/index.d.ts +5 -3
  14. package/lib/components/_v2/stepper/index.d.ts +11 -0
  15. package/lib/components/_v2/textarea/index.d.ts +4 -3
  16. package/lib/components/_v2/toggle/index.d.ts +5 -1
  17. package/lib/components/styled.d.ts +3 -6
  18. package/lib/components/tooltip/index.d.ts +1 -0
  19. package/lib/components/v2.js +1 -1
  20. package/lib/components.js +1 -1
  21. package/lib/constants/destinations/index.d.ts +5 -0
  22. package/lib/constants/strings/index.d.ts +12 -0
  23. package/lib/constants.js +1 -1
  24. package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +2 -2
  25. package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +4 -7
  26. package/lib/containers/_v2/_drawers/add-destination-drawer/helpers.d.ts +1 -9
  27. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +10 -5
  28. package/lib/containers/_v2/_drawers/add-destination-drawer/lists-column/index.d.ts +3 -5
  29. package/lib/containers/_v2/_drawers/add-destination-drawer/types.d.ts +1 -6
  30. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +3 -3
  31. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +7 -5
  32. package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/index.d.ts +2 -1
  33. package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/list/index.d.ts +1 -0
  34. package/lib/containers/_v2/_drawers/add-source-drawer/types.d.ts +3 -0
  35. package/lib/containers/_v2/_drawers/add-source-drawer/workloads-column/index.d.ts +2 -1
  36. package/lib/containers/_v2/_forms/add-action-form/context.d.ts +18 -0
  37. package/lib/containers/_v2/_forms/add-action-form/index.d.ts +2 -6
  38. package/lib/containers/_v2/_forms/add-destination-form/context.d.ts +36 -0
  39. package/lib/containers/_v2/_forms/add-destination-form/dynamic-fields/index.d.ts +1 -0
  40. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +4 -5
  41. package/lib/containers/_v2/_forms/add-rule-form/context.d.ts +18 -0
  42. package/lib/containers/_v2/_forms/add-rule-form/index.d.ts +2 -6
  43. package/lib/containers/_v2/_forms/add-source-form/context.d.ts +21 -0
  44. package/lib/containers/_v2/_forms/add-source-form/index.d.ts +1 -0
  45. package/lib/containers/_v2/_forms/index.d.ts +1 -0
  46. package/lib/containers/_v2/central-connections/index.d.ts +2 -1
  47. package/lib/containers/_v2/index.d.ts +1 -0
  48. package/lib/containers/_v2/onboarding/background/index.d.ts +7 -0
  49. package/lib/containers/_v2/onboarding/get-started/index.d.ts +5 -0
  50. package/lib/containers/_v2/onboarding/index.d.ts +14 -0
  51. package/lib/containers/_v2/onboarding/summary/index.d.ts +12 -0
  52. package/lib/containers/_v2/pipeline-collectors/general-info/yaml-drawer/index.d.ts +1 -1
  53. package/lib/containers/v2.js +91 -30
  54. package/lib/containers.js +131 -131
  55. package/lib/contexts.js +1 -1
  56. package/lib/functions/deep-values/index.d.ts +2 -0
  57. package/lib/functions/index.d.ts +1 -0
  58. package/lib/functions.js +1 -1
  59. package/lib/hooks/useGenericForm.d.ts +2 -0
  60. package/lib/hooks.js +1 -1
  61. package/lib/icons.js +1 -1
  62. package/lib/snippets/_v2/index.d.ts +1 -0
  63. package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +5 -0
  64. package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +1 -0
  65. package/lib/snippets/_v2/yaml-section-card/index.d.ts +1 -0
  66. package/lib/snippets.js +1 -1
  67. package/lib/store.js +1 -1
  68. package/lib/theme.js +1 -1
  69. package/lib/types/common/index.d.ts +307 -3
  70. package/lib/types/destinations/index.d.ts +9 -8
  71. package/lib/types/snapshot/index.d.ts +4 -4
  72. package/lib/types.js +1 -1
  73. package/lib/visuals.js +1 -1
  74. package/package.json +28 -28
  75. package/lib/chunks/index-BURQQLWb.js +0 -3
  76. package/lib/chunks/ui-components-B5U474B5.js +0 -2387
  77. package/lib/chunks/vendor-D99eCWta.js +0 -1
  78. package/lib/containers/_v2/_drawers/add-action-drawer/helpers.d.ts +0 -7
  79. package/lib/containers/_v2/_drawers/add-rule-drawer/helpers.d.ts +0 -7
@@ -5,6 +5,7 @@ export interface BadgeProps {
5
5
  label?: string | number;
6
6
  leftIcon?: SVG;
7
7
  rightIcon?: SVG;
8
+ tooltip?: string;
8
9
  status?: StatusType | OtherStatusType;
9
10
  useSecondaryTone?: boolean;
10
11
  invertColors?: boolean;
@@ -12,5 +13,6 @@ export interface BadgeProps {
12
13
  textColor?: CSSProperties['color'];
13
14
  backgroundColor?: CSSProperties['backgroundColor'];
14
15
  minWidth?: CSSProperties['minWidth'];
16
+ fullWidth?: boolean;
15
17
  }
16
18
  export declare const Badge: FC<BadgeProps>;
@@ -8,6 +8,7 @@ export declare enum SectionCardSize {
8
8
  }
9
9
  export interface SectionCardProps {
10
10
  size?: SectionCardSize;
11
+ fullHeight?: boolean;
11
12
  richTitle: RichTitleProps;
12
13
  search?: SearchProps;
13
14
  actions?: ActionsProps['actions'];
@@ -1,12 +1,16 @@
1
1
  import { type FC, Dispatch, SetStateAction } from 'react';
2
2
  import { ListDirection } from '@/types';
3
+ import { type BadgeProps } from '../badge';
4
+ import { type FieldMessageProps } from '../field-message';
3
5
  export declare enum CheckboxSize {
4
6
  S = "small",
5
7
  L = "large"
6
8
  }
7
- export interface CheckboxProps {
9
+ export interface CheckboxProps extends FieldMessageProps {
10
+ name?: string;
8
11
  label?: string;
9
12
  tooltip?: string;
13
+ badge?: BadgeProps;
10
14
  size?: CheckboxSize;
11
15
  disabled?: boolean;
12
16
  partiallyChecked?: boolean;
@@ -1,6 +1,7 @@
1
1
  import { type FC } from 'react';
2
2
  export interface FieldMessageProps {
3
3
  errorMessage?: string;
4
+ warnMessage?: string;
4
5
  helpMessage?: string;
5
6
  }
6
7
  export declare const FieldMessage: FC<FieldMessageProps>;
@@ -1,8 +1,10 @@
1
1
  import { type CSSProperties, type FC } from 'react';
2
+ import { type BadgeProps } from '../badge';
2
3
  export interface FieldTitleProps {
3
4
  label?: string;
4
5
  tooltip?: string;
5
6
  required?: boolean;
7
+ badge?: BadgeProps;
6
8
  width?: CSSProperties['width'];
7
9
  smallAndDark?: boolean;
8
10
  }
@@ -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';
@@ -1,14 +1,15 @@
1
1
  import { type InputHTMLAttributes, type FC, type CSSProperties } from 'react';
2
+ import { type BadgeProps } from '../badge';
2
3
  import { type SVG } from '@/types';
3
- export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'title'> {
4
+ import { type FieldMessageProps } from '../field-message';
5
+ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'title'>, FieldMessageProps {
4
6
  label?: string;
5
7
  required?: boolean;
6
8
  tooltip?: string;
9
+ badge?: BadgeProps;
7
10
  leftIcon?: SVG;
8
11
  rightIcon?: SVG;
9
12
  hasError?: boolean;
10
- errorMessage?: string;
11
- helpMessage?: string;
12
13
  maxWidth?: CSSProperties['maxWidth'];
13
14
  width?: CSSProperties['width'];
14
15
  small?: boolean;
@@ -1,13 +1,15 @@
1
1
  import { type FC } from 'react';
2
+ import { type BadgeProps } from '../badge';
3
+ import { type FieldMessageProps } from '../field-message';
2
4
  type Row = string;
3
- export interface InputListProps {
5
+ export interface InputListProps extends FieldMessageProps {
4
6
  values: Row[];
5
7
  setValues: (values: Row[]) => void;
8
+ name?: string;
6
9
  label?: string;
7
10
  tooltip?: string;
11
+ badge?: BadgeProps;
8
12
  required?: boolean;
9
- errorMessage?: string;
10
- helpMessage?: string;
11
13
  placeholder?: string;
12
14
  disabled?: boolean;
13
15
  }
@@ -1,16 +1,18 @@
1
1
  import { type FC } from 'react';
2
+ import { type BadgeProps } from '../badge';
2
3
  import type { Column, Row } from './types';
4
+ import { type FieldMessageProps } from '../field-message';
3
5
  export type { Column, Row } from './types';
4
- export interface InputTableProps {
6
+ export interface InputTableProps extends FieldMessageProps {
5
7
  columns: Column[];
6
8
  values: Row[];
7
9
  setValues: (values: Row[]) => void;
10
+ name?: string;
8
11
  label?: string;
9
12
  tooltip?: string;
13
+ badge?: BadgeProps;
10
14
  required?: boolean;
11
15
  disabled?: boolean;
12
- errorMessage?: string;
13
- helpMessage?: string;
14
16
  limitFieldsPerRow?: number;
15
17
  }
16
18
  export declare const InputTable: FC<InputTableProps>;
@@ -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,10 +1,11 @@
1
1
  import { type TextareaHTMLAttributes, type FC, type CSSProperties } from 'react';
2
- export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
2
+ import { type BadgeProps } from '../badge';
3
+ import { type FieldMessageProps } from '../field-message';
4
+ export interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, FieldMessageProps {
3
5
  label?: string;
4
6
  required?: boolean;
5
7
  tooltip?: string;
6
- errorMessage?: string;
7
- helpMessage?: string;
8
+ badge?: BadgeProps;
8
9
  maxWidth?: CSSProperties['maxWidth'];
9
10
  minHeight?: CSSProperties['minHeight'];
10
11
  }
@@ -1,5 +1,7 @@
1
1
  import { type CSSProperties, type SetStateAction, type FC, type Dispatch } from 'react';
2
+ import { type BadgeProps } from '../badge';
2
3
  import { ListDirection, type SVG } from '@/types';
4
+ import { type FieldMessageProps } from '../field-message';
3
5
  export declare enum ToggleVariant {
4
6
  Default = "default",
5
7
  SuccessError = "successError"
@@ -12,13 +14,15 @@ export declare enum ToggleLabelAlign {
12
14
  Left = "left",
13
15
  Right = "right"
14
16
  }
15
- export interface ToggleProps {
17
+ export interface ToggleProps extends FieldMessageProps {
16
18
  variant?: ToggleVariant;
17
19
  size?: ToggleSize;
20
+ name?: string;
18
21
  label?: string;
19
22
  labelAlign?: ToggleLabelAlign;
20
23
  labelColor?: CSSProperties['color'];
21
24
  tooltip?: string;
25
+ badge?: BadgeProps;
22
26
  value: boolean;
23
27
  onChange: (value: boolean) => void;
24
28
  disabled?: boolean;
@@ -1,7 +1,9 @@
1
1
  import { type HTMLAttributes, type RefAttributes } from 'react';
2
2
  import { type CSSProperties, type IStyledComponent } from 'styled-components';
3
3
  type DivProps<P = object> = P & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>;
4
- export declare const PageContent: IStyledComponent<'web', DivProps>;
4
+ export declare const PageContent: IStyledComponent<'web', DivProps<{
5
+ $heightOffset?: number;
6
+ }>>;
5
7
  export declare const UpgradeRequiredWrapper: IStyledComponent<'web', DivProps>;
6
8
  interface FlexRowProps {
7
9
  $gap?: number;
@@ -50,9 +52,4 @@ interface TableWrapProps {
50
52
  $maxHeight: CSSProperties['maxHeight'];
51
53
  }
52
54
  export declare const TableWrap: IStyledComponent<'web', DivProps<TableWrapProps>>;
53
- interface WhiteSpaceProps {
54
- $width?: CSSProperties['width'];
55
- $height?: CSSProperties['height'];
56
- }
57
- export declare const WhiteSpace: IStyledComponent<'web', DivProps<WhiteSpaceProps>>;
58
55
  export {};
@@ -6,6 +6,7 @@ interface TooltipProps extends PropsWithChildren {
6
6
  title?: string;
7
7
  text?: string;
8
8
  timestamp?: string | number | Date;
9
+ fullWidth?: boolean;
9
10
  }
10
11
  declare const Tooltip: FC<TooltipProps>;
11
12
  export { Tooltip, type TooltipProps };
@@ -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,cz 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-B5U474B5.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{a4 as Badge,B as Button,t as ButtonSize,d_ as ButtonTab,d$ as ButtonTabList,j as ButtonVariants,C as Checkbox,e0 as CheckboxList,e1 as CheckboxSize,aO as CliCommand,aC as DataCard,D as Drawer,az as DropData,aB as DropDataAlignX,aA as DropDataAlignY,H as DropDown,c as FieldMessage,a as FieldTitle,e2 as Header,cC as HoverActions,ag as IconButton,ah as IconButtonSize,I as Input,r as InputList,o as InputTable,aK as Island,L as Loader,e3 as Modal,e4 as Navbar,N as NoData,h as Note,e5 as Radio,e6 as RadioGroup,e7 as RadioSize,g as Search,ax as SectionCard,e8 as SectionCardSize,z as Segment,al as SegmentSize,aR as StatusCard,aL as Stepper,aI as Table,aJ as TableVariant,e9 as Tag,E as TextArea,aS as TextCard,p as Toggle,q as ToggleLabelAlign,ea as ToggleList,ao as ToggleSize,eb as ToggleVariant,k as Typography,f as TypographySize,ap as TypographyVariants,W as WarningModal}from"../chunks/ui-components-BliHHDta.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,cQ as Code,bf as ConditionDetails,bg as DataCard,aT as DataCardFieldTypes,cg as DataCardFields,dG as DataFinger,bM as DataTab,ba as DeleteWarning,cx 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,cI as IconGroup,bC as IconTitleBadge,bx as IconWrapped,ct 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,cK as PopupForm,cP 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,cN 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-B5U474B5.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,e as CenterThis,aX as Checkbox,cT as Code,bh as ConditionDetails,bi as DataCard,aV as DataCardFieldTypes,cj as DataCardFields,dL as DataFinger,bO as DataTab,bc as DeleteWarning,cA as DescribeRow,s as Divider,b6 as DocsButton,bb as Drawer,dM as DrawerFooter,dN as DrawerHeader,c4 as Dropdown,dO as ErrorBoundary,ca as ExtendArrow,aN as FadeLoader,aY as FieldError,aW as FieldLabel,F as FlexColumn,b as FlexRow,dP as Header,b2 as IconButton,cL as IconGroup,bE as IconTitleBadge,bz as IconWrapped,cw as IconsNav,dQ as ImageControlled,aZ as Input,b1 as InputList,a_ as InputTable,bH as InteractiveTable,b0 as KeyValueInputsList,dR as LoadingText,bn as Modal,bo as ModalBody,b7 as MonitorsCheckboxes,bB as MonitorsIcons,br as NavigationButtons,bI as NoDataFound,bp as NotificationNote,dS 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,dT 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,Z as Tooltip,bJ as TraceLoader,aU as UpgradeRequiredWrapper,c0 as VerticalScroll,co as WarningModal,dU as getLinksFromText,dV as getStrongsFromText,dW as renderText}from"./chunks/ui-components-BliHHDta.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,dt as LANGUAGE_OPTIONS,M as MONITORS_OPTIONS,du as OTEL_DISTRO_NAME_OPTIONS,c3 as STORAGE_KEYS,dv as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-B5U474B5.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{ad as ACTION_ATTRIBUTE_OPTIONS,bg as ACTION_OPTIONS,ae as ACTION_SAMPLER_OPTIONS,aG as BUTTON_TEXTS,a8 as DEFAULT_CLUSTER_ID,a7 as DEFAULT_CLUSTER_NAME,c9 as DEFAULT_DATA_STREAM_NAME,aj as DESTINATION_CATEGORIES,a5 as DISPLAY_LANGUAGES,af as DISPLAY_TITLES,y as DOCS_BASE_URL,ai as DestinationCategoryTypes,X as FORM_ALERTS,am as INSTRUMENTATION_RULE_OPTIONS,dy as LANGUAGE_OPTIONS,M as MONITORS_OPTIONS,dz as OTEL_DISTRO_NAME_OPTIONS,c5 as STORAGE_KEYS,dA as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-BliHHDta.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
- }
@@ -1,10 +1,10 @@
1
1
  import { type FC, type Dispatch, type SetStateAction } from 'react';
2
+ import type { CreateInstrumentationRuleFunc } from '@/types';
2
3
  import { type HeaderProps } from '@/components/_v2/drawer/header';
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,12 @@
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 } 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[]>>;
8
10
  persistSources: PersistSourcesFunc;
9
11
  }
10
12
  export declare const AddSourceDrawer: FC<AddSourceDrawerProps>;
@@ -9,6 +9,7 @@ export interface NamespacesColumnProps {
9
9
  selectedArea: SelectedArea;
10
10
  setSelectedArea: Dispatch<SetStateAction<SelectedArea>>;
11
11
  searchText: string;
12
+ searchBy: string;
12
13
  filters: Filters;
13
14
  }
14
- export declare const namespacesColumn: ({ isFetching, formData, handleSourceChange, handleSelectAll, selectedArea, setSelectedArea, searchText, filters, }: NamespacesColumnProps) => WideDrawerProps["leftColumn"];
15
+ export declare const namespacesColumn: ({ isFetching, formData, handleSourceChange, handleSelectAll, selectedArea, setSelectedArea, searchText, searchBy, filters, }: NamespacesColumnProps) => WideDrawerProps["leftColumn"];
@@ -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[];
@@ -12,6 +12,9 @@ export type HandleSelectAllFunc = (opts: {
12
12
  clusterId?: string;
13
13
  namespaceName?: string;
14
14
  boolean: boolean;
15
+ searchText?: string;
16
+ searchBy?: string;
17
+ filters?: Filters;
15
18
  }) => void;
16
19
  export type HandleSourceChangeFunc = (opts: {
17
20
  clusterId: string;
@@ -10,6 +10,7 @@ export interface WorkloadsColumnProps {
10
10
  setValue: Dispatch<SetStateAction<SelectedArea>>;
11
11
  };
12
12
  searchText: string;
13
+ searchBy: string;
13
14
  filters: Filters;
14
15
  }
15
- export declare const workloadsColumn: ({ formData, handleSourceChange, handleSelectAll, selectedArea, searchText, filters }: WorkloadsColumnProps) => WideDrawerProps["rightColumn"];
16
+ export declare const workloadsColumn: ({ formData, handleSourceChange, handleSelectAll, selectedArea, searchText, searchBy, filters }: WorkloadsColumnProps) => WideDrawerProps["rightColumn"];
@@ -0,0 +1,18 @@
1
+ import React, { type FC } from 'react';
2
+ import { type GenericFormResult } from '@/hooks';
3
+ import { type ActionFormData, type ActionOption } from '@/types';
4
+ interface AddActionFormContextType {
5
+ selectedOption: ActionOption | null;
6
+ onSelectOption: (option: ActionOption | null) => void;
7
+ genericForm?: GenericFormResult<ActionFormData>;
8
+ validateFormData: () => {
9
+ errorMessage?: string;
10
+ preparedFormData: ActionFormData;
11
+ };
12
+ errorMessage?: string;
13
+ }
14
+ export declare const AddActionFormContextProvider: FC<{
15
+ children: React.ReactNode;
16
+ }>;
17
+ export declare const useAddActionFormContext: () => AddActionFormContextType;
18
+ export {};
@@ -1,7 +1,3 @@
1
1
  import { type FC } from 'react';
2
- import type { GenericFormResult } from '@/hooks';
3
- import { type ActionFormData, type ActionOption } from '@/types';
4
- export interface AddActionFormProps extends GenericFormResult<ActionFormData> {
5
- option: ActionOption;
6
- }
7
- export declare const AddActionForm: FC<AddActionFormProps>;
2
+ export * from './context';
3
+ export declare const AddActionForm: FC;
@@ -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>;
@@ -0,0 +1,18 @@
1
+ import React, { type FC } from 'react';
2
+ import { type GenericFormResult } from '@/hooks';
3
+ import { type InstrumentationRuleFormData, type InstrumentationRuleOption } from '@/types';
4
+ interface AddRuleFormContextType {
5
+ selectedOption: InstrumentationRuleOption | null;
6
+ onSelectOption: (option: InstrumentationRuleOption | null) => void;
7
+ genericForm?: GenericFormResult<InstrumentationRuleFormData>;
8
+ validateFormData: () => {
9
+ errorMessage?: string;
10
+ preparedFormData: InstrumentationRuleFormData;
11
+ };
12
+ errorMessage?: string;
13
+ }
14
+ export declare const AddRuleFormContextProvider: FC<{
15
+ children: React.ReactNode;
16
+ }>;
17
+ export declare const useAddRuleFormContext: () => AddRuleFormContextType;
18
+ export {};
@@ -1,7 +1,3 @@
1
1
  import { type FC } from 'react';
2
- import type { GenericFormResult } from '@/hooks';
3
- import { type InstrumentationRuleFormData, type InstrumentationRuleOption } from '@/types';
4
- export interface AddRuleFormProps extends GenericFormResult<InstrumentationRuleFormData> {
5
- option: InstrumentationRuleOption;
6
- }
7
- export declare const AddRuleForm: FC<AddRuleFormProps>;
2
+ export * from './context';
3
+ export declare const AddRuleForm: FC;
@@ -0,0 +1,21 @@
1
+ import React, { type FC } from 'react';
2
+ import type { FormData, HandleSelectAllFunc, HandleSourceChangeFunc } from '../../_drawers/add-source-drawer/types';
3
+ import { type PersistSourceInput, type GetAllClusterSnapshots, type FetchNamespacesWithWorkloads } from '@/types';
4
+ interface AddSourceFormContextType {
5
+ isFetching: boolean;
6
+ formData: FormData;
7
+ handleSourceChange: HandleSourceChangeFunc;
8
+ handleSelectAll: HandleSelectAllFunc;
9
+ formDiff: PersistSourceInput;
10
+ isFormDirty: boolean;
11
+ }
12
+ export interface AddSourceFormContextProviderProps {
13
+ children: React.ReactNode;
14
+ selectedConnectionIds?: string[];
15
+ getAllClusterSnapshots?: GetAllClusterSnapshots;
16
+ fetchNamespacesWithWorkloads?: FetchNamespacesWithWorkloads;
17
+ initialInputs?: PersistSourceInput | null;
18
+ }
19
+ export declare const AddSourceFormContextProvider: FC<AddSourceFormContextProviderProps>;
20
+ export declare const useAddSourceFormContext: () => AddSourceFormContextType;
21
+ export {};
@@ -0,0 +1 @@
1
+ export * from './context';