@odigos/ui-kit 0.0.239 → 0.0.240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/lib/chunks/helpers-D-6cJlOn.js +19 -0
- package/lib/chunks/index-RUJS9Blu.js +147 -0
- package/lib/chunks/source-instrument-form-context-CEgbaSRi.js +1 -0
- package/lib/chunks/ui-components-B0BVzW_z.js +1570 -0
- package/lib/chunks/{vendor-C150cdxb.js → vendor-Be0cOokr.js} +1 -1
- package/lib/components/_v2/button/index.d.ts +1 -1
- package/lib/components/_v2/condition/index.d.ts +1 -0
- package/lib/components/_v2/drop-data/index.d.ts +2 -2
- package/lib/components/_v2/input-table/types.d.ts +2 -0
- package/lib/components/index.d.ts +0 -22
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/sources/index.d.ts +5 -5
- package/lib/constants/strings/index.d.ts +3 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-source-drawer/strings.d.ts +54 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +3 -3
- package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +3 -3
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/health-card.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +3 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/main-card.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +5 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +1 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/statuses-card.d.ts +3 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +3 -1
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/profiling/index.d.ts +2 -2
- package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -2
- package/lib/containers/_v2/overview/columns/column/list-item.d.ts +2 -2
- package/lib/containers/_v2/overview/columns/column/source-visual-state.d.ts +3 -3
- package/lib/containers/_v2/overview/drawers/index.d.ts +1 -1
- package/lib/containers/_v2/overview/search/builder.d.ts +4 -4
- package/lib/containers/index.d.ts +0 -3
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -2
- package/lib/containers/v2.js +162 -122
- package/lib/containers.js +19 -49
- package/lib/contexts/source-edit-form-context.d.ts +2 -2
- package/lib/contexts.js +1 -1
- package/lib/functions/filter-sources/index.d.ts +2 -2
- package/lib/functions/filter-sources-by-stream/index.d.ts +2 -2
- package/lib/functions/get-conditions-booleans/index.d.ts +5 -3
- package/lib/functions/get-containers-counts/index.d.ts +2 -2
- package/lib/functions/get-containers-icons/index.d.ts +5 -5
- package/lib/functions/get-entity-id/index.d.ts +8 -4
- package/lib/functions/get-main-container-language/index.d.ts +2 -2
- package/lib/functions/get-workload-id/index.d.ts +2 -2
- package/lib/functions/is-pod-injected-with-agent/index.d.ts +1 -0
- package/lib/functions/map-desired-status-to-condition-status/index.d.ts +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +0 -1
- package/lib/hooks/useActionFormData.d.ts +1 -1
- package/lib/hooks/useSourceFormData.d.ts +2 -2
- package/lib/hooks/useTimeAgo.d.ts +11 -0
- package/lib/hooks.js +1 -1
- package/lib/mock-data/index.d.ts +0 -1
- package/lib/mock-data/sources/index.d.ts +4 -7
- package/lib/snippets/_v2/delete-modal/index.d.ts +3 -0
- package/lib/snippets/_v2/dynamic-field/index.d.ts +2 -3
- package/lib/snippets/index.d.ts +0 -4
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +49 -1
- package/lib/store/useEntityStore.d.ts +2 -2
- package/lib/store/useFilterStore.d.ts +8 -14
- package/lib/store/useSelectedStore.d.ts +2 -2
- package/lib/store/useSetupStore.d.ts +10 -15
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/destinations/index.d.ts +3 -3
- package/lib/types/namespaces/index.d.ts +3 -3
- package/lib/types/sources/index.d.ts +3 -44
- package/lib/types/workload/index.d.ts +16 -51
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-B5PgIL40.js +0 -3
- package/lib/chunks/index-Dy4pkeq6.js +0 -145
- package/lib/chunks/index-uXyrp4Xe.js +0 -41
- package/lib/chunks/ui-components-BPdnIOmj.js +0 -2248
- package/lib/components/badge/index.d.ts +0 -11
- package/lib/components/button/index.d.ts +0 -6
- package/lib/components/cancel-warning/index.d.ts +0 -10
- package/lib/components/checkbox/index.d.ts +0 -15
- package/lib/components/condition-details/index.d.ts +0 -10
- package/lib/components/data-card/data-card-fields/index.d.ts +0 -23
- package/lib/components/data-card/index.d.ts +0 -17
- package/lib/components/data-tab/index.d.ts +0 -43
- package/lib/components/delete-warning/index.d.ts +0 -13
- package/lib/components/describe-row/index.d.ts +0 -13
- package/lib/components/drawer/drawer-footer/index.d.ts +0 -16
- package/lib/components/drawer/drawer-header/index.d.ts +0 -24
- package/lib/components/drawer/index.d.ts +0 -15
- package/lib/components/dropdown/index.d.ts +0 -25
- package/lib/components/extend-arrow/index.d.ts +0 -8
- package/lib/components/field-error/index.d.ts +0 -4
- package/lib/components/field-label/index.d.ts +0 -11
- package/lib/components/input/index.d.ts +0 -15
- package/lib/components/modal/index.d.ts +0 -14
- package/lib/components/monitors-icons/index.d.ts +0 -11
- package/lib/components/no-data-found/index.d.ts +0 -6
- package/lib/components/popup-form/index.d.ts +0 -18
- package/lib/components/status/index.d.ts +0 -17
- package/lib/components/tab-list/index.d.ts +0 -18
- package/lib/components/warning-modal/index.d.ts +0 -24
- package/lib/containers/overview-drawer/index.d.ts +0 -27
- package/lib/containers/source-drawer/build-card.d.ts +0 -3
- package/lib/containers/source-drawer/describe/index.d.ts +0 -13
- package/lib/containers/source-drawer/index.d.ts +0 -23
- package/lib/containers/source-drawer/libraries/index.d.ts +0 -12
- package/lib/containers/source-drawer/odigos-health/index.d.ts +0 -5
- package/lib/containers/source-drawer/peers/index.d.ts +0 -12
- package/lib/containers/source-form/index.d.ts +0 -8
- package/lib/hooks/useSourceSelectionFormData.d.ts +0 -32
- package/lib/mock-data/workload/index.d.ts +0 -2
- package/lib/snippets/add-button/index.d.ts +0 -9
- package/lib/snippets/copy-text/index.d.ts +0 -7
- package/lib/snippets/pod-container/index.d.ts +0 -5
- package/lib/snippets/source-container/index.d.ts +0 -6
- package/lib/snippets/source-container/override-runtime.d.ts +0 -10
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type FC } from 'react';
|
|
2
|
-
import { StatusType } from '@/types';
|
|
3
|
-
interface BadgeProps {
|
|
4
|
-
label: string | number | ReactNode;
|
|
5
|
-
filled?: boolean;
|
|
6
|
-
status?: StatusType;
|
|
7
|
-
withIcon?: boolean;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Badge: FC<BadgeProps>;
|
|
11
|
-
export { Badge, type BadgeProps };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ButtonHTMLAttributes, FC } from 'react';
|
|
2
|
-
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
variant?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'warning';
|
|
4
|
-
}
|
|
5
|
-
declare const Button: FC<ButtonProps>;
|
|
6
|
-
export { Button, type ButtonProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface CancelWarningProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
noOverlay?: boolean;
|
|
5
|
-
name?: string;
|
|
6
|
-
onApprove: () => void;
|
|
7
|
-
onDeny: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const CancelWarning: React.FC<CancelWarningProps>;
|
|
10
|
-
export { CancelWarning, type CancelWarningProps };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type CSSProperties, type FC } from 'react';
|
|
2
|
-
interface CheckboxProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
titleColor?: CSSProperties['color'];
|
|
5
|
-
tooltip?: string;
|
|
6
|
-
value?: boolean;
|
|
7
|
-
partiallyChecked?: boolean;
|
|
8
|
-
onChange?: (value: boolean) => void;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
errorMessage?: string;
|
|
12
|
-
allowPropagation?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const Checkbox: FC<CheckboxProps>;
|
|
15
|
-
export { Checkbox, type CheckboxProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type Condition } from '@/types';
|
|
3
|
-
interface ConditionDetailsProps {
|
|
4
|
-
conditions: Condition[];
|
|
5
|
-
headerLabelError?: string;
|
|
6
|
-
headerLabelWarning?: string;
|
|
7
|
-
headerLabelSuccess?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const ConditionDetails: FC<ConditionDetailsProps>;
|
|
10
|
-
export { ConditionDetails, type ConditionDetailsProps };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { AnyObj, SVG } from '@/types';
|
|
3
|
-
declare enum DataCardFieldTypes {
|
|
4
|
-
Code = "code",
|
|
5
|
-
Badge = "badge",
|
|
6
|
-
Loader = "loader",
|
|
7
|
-
Divider = "divider",
|
|
8
|
-
Monitors = "monitors",
|
|
9
|
-
CopyText = "copy-text",
|
|
10
|
-
ActiveStatus = "active-status"
|
|
11
|
-
}
|
|
12
|
-
interface DataCardField {
|
|
13
|
-
type?: DataCardFieldTypes;
|
|
14
|
-
title?: string;
|
|
15
|
-
titleIcon?: SVG;
|
|
16
|
-
tooltip?: string;
|
|
17
|
-
value?: string | AnyObj;
|
|
18
|
-
}
|
|
19
|
-
interface DataCardFieldsProps {
|
|
20
|
-
data?: DataCardField[];
|
|
21
|
-
}
|
|
22
|
-
declare const DataCardFields: FC<DataCardFieldsProps>;
|
|
23
|
-
export { DataCardFields, type DataCardFieldsProps, DataCardFieldTypes, type DataCardField };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type FC, type PropsWithChildren } from 'react';
|
|
2
|
-
import { OtherStatus, type SVG } from '@/types';
|
|
3
|
-
import { DataCardFields, type DataCardFieldsProps, DataCardFieldTypes } from './data-card-fields';
|
|
4
|
-
interface DataCardProps extends PropsWithChildren {
|
|
5
|
-
title?: string;
|
|
6
|
-
titleBadge?: string | number | OtherStatus.Loading;
|
|
7
|
-
titleIcon?: SVG;
|
|
8
|
-
description?: string;
|
|
9
|
-
action?: ReactNode | ((props: {
|
|
10
|
-
hovered: boolean;
|
|
11
|
-
}) => ReactNode);
|
|
12
|
-
withExtend?: boolean;
|
|
13
|
-
initialExtended?: boolean;
|
|
14
|
-
data?: DataCardFieldsProps['data'];
|
|
15
|
-
}
|
|
16
|
-
declare const DataCard: FC<DataCardProps>;
|
|
17
|
-
export { DataCard, type DataCardProps, DataCardFields, type DataCardFieldsProps, DataCardFieldTypes };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { type CSSProperties, type FC, type ReactNode } from 'react';
|
|
2
|
-
import type { SVG } from '@/types';
|
|
3
|
-
import { StatusType, SignalType } from '@/types';
|
|
4
|
-
interface IconProps {
|
|
5
|
-
icon?: SVG;
|
|
6
|
-
icons?: SVG[];
|
|
7
|
-
iconSrc?: string;
|
|
8
|
-
iconSrcs?: string[];
|
|
9
|
-
}
|
|
10
|
-
interface VisualProps {
|
|
11
|
-
status?: StatusType;
|
|
12
|
-
faded?: boolean;
|
|
13
|
-
bgColor?: CSSProperties['backgroundColor'];
|
|
14
|
-
bgColorHover?: CSSProperties['backgroundColor'];
|
|
15
|
-
monitors?: SignalType[];
|
|
16
|
-
monitorsWithLabels?: boolean;
|
|
17
|
-
componentsUnderTitles?: ReactNode[];
|
|
18
|
-
}
|
|
19
|
-
interface CheckboxProps {
|
|
20
|
-
withCheckbox?: boolean;
|
|
21
|
-
isCheckboxDisabled?: boolean;
|
|
22
|
-
isChecked?: boolean;
|
|
23
|
-
isLoading?: boolean;
|
|
24
|
-
onCheckboxChange?: (value: boolean) => void;
|
|
25
|
-
}
|
|
26
|
-
interface ExtendableProps {
|
|
27
|
-
withExtend?: boolean;
|
|
28
|
-
isExtended?: boolean;
|
|
29
|
-
renderExtended?: () => ReactNode;
|
|
30
|
-
}
|
|
31
|
-
interface DataTabProps {
|
|
32
|
-
title: string;
|
|
33
|
-
subTitle?: string;
|
|
34
|
-
hoverText?: string;
|
|
35
|
-
onClick?: () => void;
|
|
36
|
-
renderActions?: () => ReactNode;
|
|
37
|
-
iconProps?: IconProps;
|
|
38
|
-
visualProps?: VisualProps;
|
|
39
|
-
checkboxProps?: CheckboxProps;
|
|
40
|
-
extendableProps?: ExtendableProps;
|
|
41
|
-
}
|
|
42
|
-
declare const DataTab: FC<DataTabProps>;
|
|
43
|
-
export { DataTab, type DataTabProps };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EntityTypes } from '@/types';
|
|
3
|
-
interface DeleteWarningProps {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
noOverlay?: boolean;
|
|
6
|
-
name?: string;
|
|
7
|
-
type?: EntityTypes;
|
|
8
|
-
isLastItem?: boolean;
|
|
9
|
-
onApprove: () => void;
|
|
10
|
-
onDeny: () => void;
|
|
11
|
-
}
|
|
12
|
-
declare const DeleteWarning: React.FC<DeleteWarningProps>;
|
|
13
|
-
export { DeleteWarning, type DeleteWarningProps };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { StatusType } from '@/types';
|
|
3
|
-
interface DescribeRowProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
subTitle?: string;
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
value?: {
|
|
8
|
-
text?: string;
|
|
9
|
-
status?: StatusType | 'transitioning';
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
declare const DescribeRow: FC<DescribeRowProps>;
|
|
13
|
-
export { DescribeRow, type DescribeRowProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type ButtonProps } from '../../button';
|
|
3
|
-
interface DrawerFooterProps {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
leftButtons?: (ButtonProps & {
|
|
6
|
-
'data-id': string;
|
|
7
|
-
})[];
|
|
8
|
-
centerButtons?: (ButtonProps & {
|
|
9
|
-
'data-id': string;
|
|
10
|
-
})[];
|
|
11
|
-
rightButtons?: (ButtonProps & {
|
|
12
|
-
'data-id': string;
|
|
13
|
-
})[];
|
|
14
|
-
}
|
|
15
|
-
declare const DrawerFooter: FC<DrawerFooterProps>;
|
|
16
|
-
export { DrawerFooter, type DrawerFooterProps };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, type FC, type ReactNode } from 'react';
|
|
2
|
-
import type { SVG } from '@/types';
|
|
3
|
-
import { type ButtonProps } from '@/components/button';
|
|
4
|
-
interface DrawerHeaderProps {
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
width?: CSSProperties['width'];
|
|
7
|
-
icons?: SVG[];
|
|
8
|
-
iconSrcs?: string[];
|
|
9
|
-
title?: string;
|
|
10
|
-
titleTooltip?: string;
|
|
11
|
-
replaceTitleWith?: ReactNode | (() => ReactNode);
|
|
12
|
-
actions?: ReactNode;
|
|
13
|
-
actionButtons?: (ButtonProps & {
|
|
14
|
-
'data-id': string;
|
|
15
|
-
})[];
|
|
16
|
-
tabs?: {
|
|
17
|
-
label: string;
|
|
18
|
-
icon?: SVG;
|
|
19
|
-
onClick: () => void;
|
|
20
|
-
selected?: boolean;
|
|
21
|
-
}[];
|
|
22
|
-
}
|
|
23
|
-
declare const DrawerHeader: FC<DrawerHeaderProps>;
|
|
24
|
-
export { DrawerHeader, type DrawerHeaderProps };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type FC, CSSProperties } from 'react';
|
|
2
|
-
import { DrawerHeader, DrawerHeaderProps } from './drawer-header';
|
|
3
|
-
import { DrawerFooter, DrawerFooterProps } from './drawer-footer';
|
|
4
|
-
interface DrawerProps {
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
closeOnEscape?: boolean;
|
|
8
|
-
position?: 'right' | 'left';
|
|
9
|
-
width?: CSSProperties['width'];
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
header: Omit<DrawerHeaderProps, 'onClose'>;
|
|
12
|
-
footer: DrawerFooterProps;
|
|
13
|
-
}
|
|
14
|
-
declare const Drawer: FC<DrawerProps>;
|
|
15
|
-
export { Drawer, type DrawerProps, DrawerHeader, type DrawerHeaderProps, DrawerFooter, type DrawerFooterProps };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { SVG, StatusType } from '@/types';
|
|
3
|
-
interface DropdownOption<T = string> {
|
|
4
|
-
id?: T | null;
|
|
5
|
-
value?: string | null;
|
|
6
|
-
icon?: SVG | null;
|
|
7
|
-
}
|
|
8
|
-
interface DropdownProps {
|
|
9
|
-
title?: string;
|
|
10
|
-
tooltip?: string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
options: DropdownOption[];
|
|
13
|
-
value?: DropdownOption | DropdownOption[];
|
|
14
|
-
onSelect?: (option: DropdownOption) => void;
|
|
15
|
-
onDeselect?: (option: DropdownOption) => void;
|
|
16
|
-
isMulti?: boolean;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
required?: boolean;
|
|
19
|
-
showSearch?: boolean;
|
|
20
|
-
errorMessage?: string;
|
|
21
|
-
hasError?: boolean;
|
|
22
|
-
status?: StatusType;
|
|
23
|
-
}
|
|
24
|
-
declare const Dropdown: FC<DropdownProps>;
|
|
25
|
-
export { Dropdown, type DropdownProps, type DropdownOption };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type FC, type CSSProperties } from 'react';
|
|
2
|
-
import { StatusType } from '@/types';
|
|
3
|
-
interface FieldLabelProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
style?: CSSProperties;
|
|
8
|
-
status?: StatusType;
|
|
9
|
-
}
|
|
10
|
-
declare const FieldLabel: FC<FieldLabelProps>;
|
|
11
|
-
export { FieldLabel, type FieldLabelProps };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type FC, type InputHTMLAttributes } from 'react';
|
|
2
|
-
import { StatusType, type SVG } from '@/types';
|
|
3
|
-
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
-
title?: string;
|
|
5
|
-
icon?: SVG;
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
buttonLabel?: string;
|
|
8
|
-
onButtonClick?: () => void;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
hasError?: boolean;
|
|
11
|
-
errorMessage?: string;
|
|
12
|
-
status?: StatusType;
|
|
13
|
-
}
|
|
14
|
-
declare const Input: FC<InputProps>;
|
|
15
|
-
export { Input, type InputProps };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type FC } from 'react';
|
|
2
|
-
interface ModalProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
noOverlay?: boolean;
|
|
6
|
-
header?: {
|
|
7
|
-
title: string;
|
|
8
|
-
};
|
|
9
|
-
actionComponent?: ReactNode;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
closeOnEscape?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const Modal: FC<ModalProps>;
|
|
14
|
-
export { Modal, type ModalProps };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { SignalType } from '@/types';
|
|
3
|
-
interface MonitorsIconsProps {
|
|
4
|
-
monitors?: SignalType[];
|
|
5
|
-
withTooltips?: boolean;
|
|
6
|
-
withLabels?: boolean;
|
|
7
|
-
size?: number;
|
|
8
|
-
color?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const MonitorsIcons: FC<MonitorsIconsProps>;
|
|
11
|
-
export { MonitorsIcons, type MonitorsIconsProps };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type FC, type ReactNode } from 'react';
|
|
2
|
-
interface PopupFormProps {
|
|
3
|
-
clientX?: number;
|
|
4
|
-
flipX?: boolean;
|
|
5
|
-
clientY?: number;
|
|
6
|
-
flipY?: boolean;
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
onSave: () => void;
|
|
10
|
-
withDelete?: boolean;
|
|
11
|
-
onDelete?: () => void;
|
|
12
|
-
title?: string;
|
|
13
|
-
titleTooltip?: string;
|
|
14
|
-
warning?: string;
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
declare const PopupForm: FC<PopupFormProps>;
|
|
18
|
-
export { PopupForm, type PopupFormProps };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, type FC } from 'react';
|
|
2
|
-
import { StatusType, OtherStatus, type SVG } from '@/types';
|
|
3
|
-
interface StatusProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
subtitle?: string;
|
|
6
|
-
status?: StatusType | OtherStatus;
|
|
7
|
-
forceIcon?: SVG;
|
|
8
|
-
withIcon?: boolean;
|
|
9
|
-
withBorder?: boolean;
|
|
10
|
-
withBackground?: boolean;
|
|
11
|
-
width?: CSSProperties['width'];
|
|
12
|
-
size?: number;
|
|
13
|
-
family?: 'primary' | 'secondary';
|
|
14
|
-
nowrap?: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare const Status: FC<StatusProps>;
|
|
17
|
-
export { Status, type StatusProps };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, type FC, RefAttributes } from 'react';
|
|
2
|
-
import type { SVG } from '@/types';
|
|
3
|
-
import { type IStyledComponent } from 'styled-components';
|
|
4
|
-
interface Tab {
|
|
5
|
-
label: string;
|
|
6
|
-
icon?: SVG;
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
selected?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface TabListProps {
|
|
11
|
-
tabs?: Tab[];
|
|
12
|
-
hideBorder?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const Tab: IStyledComponent<'web', {
|
|
15
|
-
$selected?: boolean;
|
|
16
|
-
} & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
|
|
17
|
-
declare const TabList: FC<TabListProps>;
|
|
18
|
-
export { TabList, type TabListProps, type Tab };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { StatusType } from '@/types';
|
|
3
|
-
import { type ButtonProps } from '../button';
|
|
4
|
-
interface ButtonParams {
|
|
5
|
-
text: string;
|
|
6
|
-
variant?: ButtonProps['variant'];
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
}
|
|
9
|
-
interface WarningModalProps {
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
noOverlay?: boolean;
|
|
12
|
-
title: string;
|
|
13
|
-
description: string;
|
|
14
|
-
note?: {
|
|
15
|
-
type: StatusType;
|
|
16
|
-
title: string;
|
|
17
|
-
message: string;
|
|
18
|
-
};
|
|
19
|
-
approveButton: ButtonParams;
|
|
20
|
-
denyButton: ButtonParams;
|
|
21
|
-
closeOnEscape?: boolean;
|
|
22
|
-
}
|
|
23
|
-
declare const WarningModal: FC<WarningModalProps>;
|
|
24
|
-
export { WarningModal, type WarningModalProps };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type SVG } from '@/types';
|
|
3
|
-
import { type DrawerProps } from '@/components';
|
|
4
|
-
interface OverviewDrawerProps extends PropsWithChildren {
|
|
5
|
-
/** Number → pixels (with internal +64 padding compensation). String → raw CSS value passed through as-is (e.g. `"95vw"`). */
|
|
6
|
-
width?: number | string;
|
|
7
|
-
title: string;
|
|
8
|
-
titleTooltip?: string;
|
|
9
|
-
hideEditTitleFromEdit?: boolean;
|
|
10
|
-
icons?: SVG[];
|
|
11
|
-
iconSrcs?: string[];
|
|
12
|
-
isEdit?: boolean;
|
|
13
|
-
isFormDirty?: boolean;
|
|
14
|
-
isLastItem?: boolean;
|
|
15
|
-
onClose?: () => void;
|
|
16
|
-
onEdit?: (bool?: boolean) => void;
|
|
17
|
-
onSave?: (newTitle: string) => void;
|
|
18
|
-
onDelete?: () => void;
|
|
19
|
-
onCancel?: () => void;
|
|
20
|
-
tabs?: DrawerProps['header']['tabs'];
|
|
21
|
-
headerActionButtons?: DrawerProps['header']['actionButtons'];
|
|
22
|
-
}
|
|
23
|
-
interface OverviewDrawerRef {
|
|
24
|
-
closeDrawer: () => void;
|
|
25
|
-
}
|
|
26
|
-
declare const OverviewDrawer: React.ForwardRefExoticComponent<OverviewDrawerProps & React.RefAttributes<OverviewDrawerRef>>;
|
|
27
|
-
export { OverviewDrawer, type OverviewDrawerProps, type OverviewDrawerRef };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type DescribeSource, type Source, type WorkloadId } from '@/types';
|
|
3
|
-
interface DescribeProps {
|
|
4
|
-
source: Source;
|
|
5
|
-
fetchSourceDescribe: (req: WorkloadId) => Promise<{
|
|
6
|
-
data?: {
|
|
7
|
-
describeSource: DescribeSource;
|
|
8
|
-
};
|
|
9
|
-
}>;
|
|
10
|
-
onClickRestartPod?: (namespace: string, name: string) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const Describe: FC<DescribeProps>;
|
|
13
|
-
export { Describe, type DescribeProps };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type DescribeProps } from './describe';
|
|
3
|
-
import { type LibrariesProps } from './libraries';
|
|
4
|
-
import { type ProfilingProps } from '../_v2/_drawers/edit-source-drawer/profiling';
|
|
5
|
-
import { type PeerSourcesProps } from './peers';
|
|
6
|
-
import { type PersistSourcesFunc, type SourceFormData, type WorkloadId, type Source } from '@/types';
|
|
7
|
-
interface SourceDrawerProps {
|
|
8
|
-
persistSources: PersistSourcesFunc;
|
|
9
|
-
updateSource: (sourceId: WorkloadId, payload: SourceFormData) => Promise<void>;
|
|
10
|
-
restartWorkloads: (sourceIds: WorkloadId[]) => Promise<void>;
|
|
11
|
-
restartPod: (namespace: string, name: string) => Promise<void>;
|
|
12
|
-
recoverFromRollback: (sourceId: WorkloadId) => Promise<void>;
|
|
13
|
-
fetchSourceById: (id: WorkloadId, bypassPaginationLoader?: boolean) => Promise<Source | undefined>;
|
|
14
|
-
fetchSourceDescribe: DescribeProps['fetchSourceDescribe'];
|
|
15
|
-
fetchSourceLibraries: LibrariesProps['fetchSourceLibraries'];
|
|
16
|
-
fetchPeerSources: PeerSourcesProps['fetchPeerSources'];
|
|
17
|
-
profilingEnabled?: boolean;
|
|
18
|
-
fetchProfilingSlots?: ProfilingProps['fetchProfilingSlots'];
|
|
19
|
-
enableProfiling?: ProfilingProps['enableProfiling'];
|
|
20
|
-
fetchSourceProfiling?: ProfilingProps['fetchSourceProfiling'];
|
|
21
|
-
}
|
|
22
|
-
declare const SourceDrawer: FC<SourceDrawerProps>;
|
|
23
|
-
export { SourceDrawer, type SourceDrawerProps };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { type InstrumentationInstanceComponent, type Source, type WorkloadId } from '@/types';
|
|
3
|
-
interface LibrariesProps {
|
|
4
|
-
source: Source;
|
|
5
|
-
fetchSourceLibraries: (req: WorkloadId) => Promise<{
|
|
6
|
-
data?: {
|
|
7
|
-
instrumentationInstanceComponents: InstrumentationInstanceComponent[];
|
|
8
|
-
};
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
declare const Libraries: FC<LibrariesProps>;
|
|
12
|
-
export { Libraries, type LibrariesProps };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { PeerSources, Source } from '@/types';
|
|
3
|
-
export interface PeerSourcesProps {
|
|
4
|
-
source: Source;
|
|
5
|
-
fetchPeerSources: (serviceName: string) => Promise<{
|
|
6
|
-
data?: {
|
|
7
|
-
peerSources: PeerSources;
|
|
8
|
-
};
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
declare const PeerSourcesTab: FC<PeerSourcesProps>;
|
|
12
|
-
export { PeerSourcesTab, type PeerSourcesProps as PeerSourcesTabProps };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { SourceFormData } from '@/types';
|
|
3
|
-
interface SourceFormProps {
|
|
4
|
-
formData: SourceFormData;
|
|
5
|
-
handleFormChange: (key: keyof SourceFormData, val: any) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const SourceForm: FC<SourceFormProps>;
|
|
8
|
-
export { SourceForm, type SourceFormProps };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
-
import { EntityTypes, type FetchNamespacesWithWorkloads } from '@/types';
|
|
3
|
-
import { type AvailableSource, type AvailableSourcesByNamespace, type NamespaceSelectionFormData, type SourceSelectionFormData } from '@/store';
|
|
4
|
-
export type NamespaceName = string;
|
|
5
|
-
interface UseSourceFormDataParams {
|
|
6
|
-
fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
|
|
7
|
-
}
|
|
8
|
-
export interface UseSourceSelectionFormData {
|
|
9
|
-
loading: boolean;
|
|
10
|
-
availableSources: AvailableSourcesByNamespace;
|
|
11
|
-
filteredNamespacesAndSources: AvailableSourcesByNamespace;
|
|
12
|
-
getApiSourcesPayload: () => SourceSelectionFormData;
|
|
13
|
-
getApiFutureAppsPayload: () => NamespaceSelectionFormData;
|
|
14
|
-
selectedNamespace: string;
|
|
15
|
-
onSelectNamespace: (namespace: NamespaceName, selectAll?: boolean) => void;
|
|
16
|
-
selectedAllNamespaces: boolean;
|
|
17
|
-
onSelectAllNamespaces: (selected: boolean) => void;
|
|
18
|
-
selectedSources: SourceSelectionFormData;
|
|
19
|
-
onSelectSource: (source: AvailableSource, namespace?: NamespaceName) => void;
|
|
20
|
-
selectedFutureApps: NamespaceSelectionFormData;
|
|
21
|
-
onSelectFutureApps: (bool: boolean, namespace?: NamespaceName) => void;
|
|
22
|
-
searchText: string;
|
|
23
|
-
setSearchText: Dispatch<SetStateAction<string>>;
|
|
24
|
-
searchBy: EntityTypes;
|
|
25
|
-
setSearchBy: Dispatch<SetStateAction<EntityTypes>>;
|
|
26
|
-
showSelectedOnly: boolean;
|
|
27
|
-
setShowSelectedOnly: Dispatch<SetStateAction<boolean>>;
|
|
28
|
-
showRunningOnly: boolean;
|
|
29
|
-
setShowRunningOnly: Dispatch<SetStateAction<boolean>>;
|
|
30
|
-
}
|
|
31
|
-
export declare const useSourceSelectionFormData: (params: UseSourceFormDataParams) => UseSourceSelectionFormData;
|
|
32
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { type TextProps } from '@/components/text';
|
|
3
|
-
import { type ButtonProps } from '@/components/button';
|
|
4
|
-
interface AddButtonProps extends ButtonProps {
|
|
5
|
-
label?: string;
|
|
6
|
-
textProps?: TextProps;
|
|
7
|
-
}
|
|
8
|
-
declare const AddButton: FC<AddButtonProps>;
|
|
9
|
-
export { AddButton, type AddButtonProps };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { SourceContainer as SourceContainerType, SourceFormData } from '@/types';
|
|
3
|
-
export interface SourceContainerProps extends SourceContainerType {
|
|
4
|
-
callbackRuntimeOverride?: (payload: Pick<SourceFormData, 'containerName' | 'language' | 'version' | 'otelDistroName'>) => Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
export declare const SourceContainer: FC<SourceContainerProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import { SourceFormData } from '@/types';
|
|
3
|
-
interface OverrideRuntimeProps {
|
|
4
|
-
defaultLanguage?: SourceFormData['language'];
|
|
5
|
-
defaultVersion?: SourceFormData['version'];
|
|
6
|
-
defaultOtelDistroName?: SourceFormData['otelDistroName'];
|
|
7
|
-
handleSave: (payload: Pick<SourceFormData, 'language' | 'version' | 'otelDistroName'>) => Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
declare const OverrideRuntime: FC<OverrideRuntimeProps>;
|
|
10
|
-
export { OverrideRuntime, type OverrideRuntimeProps };
|