@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.
- package/CHANGELOG.md +15 -0
- package/lib/chunks/index-CTFaJvLO.js +3 -0
- package/lib/chunks/ui-components-DQ5eBxQh.js +2387 -0
- package/lib/chunks/vendor-C150cdxb.js +1 -0
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/stepper/index.d.ts +11 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/destinations/index.d.ts +5 -0
- package/lib/constants/strings/index.d.ts +12 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +4 -7
- package/lib/containers/_v2/_drawers/add-destination-drawer/helpers.d.ts +1 -9
- package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +10 -5
- package/lib/containers/_v2/_drawers/add-destination-drawer/lists-column/index.d.ts +3 -5
- package/lib/containers/_v2/_drawers/add-destination-drawer/types.d.ts +1 -6
- package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +10 -5
- package/lib/containers/_v2/_drawers/add-source-drawer/namespaces-column/list/index.d.ts +1 -0
- package/lib/containers/_v2/_forms/add-destination-form/context.d.ts +36 -0
- package/lib/containers/_v2/_forms/add-destination-form/dynamic-fields/index.d.ts +1 -0
- package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +4 -5
- package/lib/containers/_v2/central-connections/index.d.ts +2 -1
- package/lib/containers/_v2/index.d.ts +1 -0
- package/lib/containers/_v2/onboarding/background/index.d.ts +7 -0
- package/lib/containers/_v2/onboarding/get-started/index.d.ts +5 -0
- package/lib/containers/_v2/onboarding/index.d.ts +14 -0
- package/lib/containers/_v2/onboarding/summary/index.d.ts +12 -0
- package/lib/containers/_v2/pipeline-collectors/general-info/yaml-drawer/index.d.ts +1 -1
- package/lib/containers/service-map/helpers/aggregate-service-map.d.ts +6 -0
- package/lib/containers/service-map/helpers/build-edges.d.ts +3 -3
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +4 -3
- package/lib/containers/service-map/service-map-drawer.d.ts +17 -0
- package/lib/containers/v2.js +91 -30
- package/lib/containers.js +152 -129
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons.js +1 -1
- package/lib/snippets/_v2/index.d.ts +1 -0
- package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +5 -0
- package/lib/snippets/react-flow/flow.d.ts +4 -1
- package/lib/snippets/react-flow/nodes/map-item-node.d.ts +3 -2
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/destinations/index.d.ts +9 -8
- package/lib/types/service-map/index.d.ts +22 -0
- package/lib/types/snapshot/index.d.ts +4 -4
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +26 -26
- package/lib/chunks/index-C27kJv0Y.js +0 -3
- package/lib/chunks/ui-components-CxdeQcW1.js +0 -2389
- package/lib/chunks/vendor-D99eCWta.js +0 -1
package/lib/components/v2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
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{
|
|
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{
|
|
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
|
|
7
|
-
setSelectedConnectionIds
|
|
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 {
|
|
2
|
-
import
|
|
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
|
-
|
|
7
|
-
genericForm: GenericFormResult<DestinationFormData>;
|
|
4
|
+
testConnection: AddDestinationFormProps['testConnection'];
|
|
8
5
|
}
|
|
9
|
-
export declare const formColumn: ({
|
|
6
|
+
export declare const formColumn: ({ testConnection }: FormColumnProps) => WideDrawerProps["leftColumn"];
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
3
|
-
import { type
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
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
|
|
7
|
-
setSelectedConnectionIds
|
|
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
|
|
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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 {
|
|
3
|
-
|
|
4
|
-
export interface AddDestinationFormProps
|
|
5
|
-
|
|
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;
|
|
@@ -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,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
|
|
3
|
+
import { type AggregatedServiceMap } from '@/types';
|
|
4
4
|
interface Params {
|
|
5
5
|
theme: DefaultTheme;
|
|
6
6
|
nodes: Node[];
|
|
7
|
-
|
|
7
|
+
aggregatedServiceMap: AggregatedServiceMap;
|
|
8
8
|
}
|
|
9
|
-
export declare const buildEdges: ({ theme, nodes,
|
|
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
|
|
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
|
-
|
|
6
|
+
aggregatedServiceMap: AggregatedServiceMap;
|
|
6
7
|
}
|
|
7
|
-
export declare const buildMapNodes: ({ sources,
|
|
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 {};
|