@odigos/ui-kit 0.0.8 → 0.0.10
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 +28 -0
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/data-card/index.d.ts +1 -0
- package/lib/components/data-tab/index.d.ts +2 -2
- package/lib/components/describe-row/index.d.ts +2 -2
- package/lib/components/divider/index.d.ts +2 -2
- package/lib/components/drawer/drawer-header/index.d.ts +1 -1
- package/lib/components/icon-group/index.d.ts +2 -2
- package/lib/components/icon-wrapped/index.d.ts +2 -2
- package/lib/components/interactive-table/index.d.ts +2 -2
- package/lib/components/interactive-table/row.d.ts +2 -2
- package/lib/components/notification-note/index.d.ts +2 -2
- package/lib/components/status/index.d.ts +2 -2
- package/lib/components/styled.d.ts +12 -0
- package/lib/components/warning-modal/index.d.ts +2 -2
- package/lib/components.js +5 -5
- package/lib/constants/strings/index.d.ts +1 -0
- package/lib/constants.js +1 -1
- package/lib/containers/data-flow/nodes/base-node.d.ts +2 -2
- package/lib/containers/data-flow/nodes/scroll-node.d.ts +2 -2
- package/lib/containers/destination-form/test-connection/index.d.ts +2 -2
- package/lib/containers.js +106 -115
- package/lib/functions/get-conditions-booleans/index.d.ts +2 -2
- package/lib/functions/get-containers-icons/index.d.ts +2 -2
- package/lib/functions/get-platform-icon/index.d.ts +1 -1
- package/lib/functions/get-platform-label/index.d.ts +1 -1
- package/lib/functions/get-programming-language-icon/index.d.ts +2 -2
- package/lib/functions/get-status-icon/index.d.ts +2 -2
- package/lib/functions.js +4 -4
- package/lib/hooks.js +2 -2
- package/lib/icons/common/image-error-icon/image-error-icon.stories.d.ts +8 -0
- package/lib/icons/common/image-error-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/overview/connections-icon/connections-icon.stories.d.ts +8 -0
- package/lib/icons/overview/connections-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/programming-languages/c-plus-plus-logo/c-plus-plus-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/c-plus-plus-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/c-sharp-logo/c-sharp-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/c-sharp-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/dotnet-logo/dotnet-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/dotnet-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/elixir-logo/elixir-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/elixir-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/go-logo/go-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/go-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/index.d.ts +17 -0
- package/lib/icons/programming-languages/java-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/java-logo/java-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/kafka-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/kafka-logo/kafka-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/mysql-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/mysql-logo/mysql-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/nginx-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/nginx-logo/nginx-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/nodejs-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/nodejs-logo/nodejs-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/php-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/php-logo/php-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/postgres-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/postgres-logo/postgres-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/python-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/python-logo/python-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/redis-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/redis-logo/redis-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/ruby-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/ruby-logo/ruby-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/rust-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/rust-logo/rust-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/swift-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/swift-logo/swift-logo.stories.d.ts +8 -0
- package/lib/icons.js +10 -3
- package/lib/{index-BulCzWQI.js → index-DB1gmCsH.js} +29 -31
- package/lib/{index-BJxaoI0G.js → index-D_Qn2U89.js} +8 -1
- package/lib/{index-Cu2uHOuh.js → index-DnmWFsTQ.js} +1 -0
- package/lib/{index-CKUgKtl0.js → index-Do8ODRlA.js} +60 -40
- package/lib/{index-CKD2OX24.js → index-eF2JXMVR.js} +11 -7
- package/lib/index-ixs381n-.js +466 -0
- package/lib/types/common/index.d.ts +3 -3
- package/lib/types/connection/index.d.ts +3 -3
- package/lib/types.js +9 -9
- package/lib/{useSourceSelectionFormData-BY6B70Kf.js → useSourceSelectionFormData-CxdOP9FT.js} +4 -4
- package/package.json +10 -10
- package/lib/index-DLKEpJJm.js +0 -53
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.10](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.9...ui-kit-v0.0.10) (2025-03-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* rename NOTIFICATION_TYPE ---> STATUS_TYPE ([#26](https://github.com/odigos-io/ui-kit/issues/26)) ([0f0c0e7](https://github.com/odigos-io/ui-kit/commit/0f0c0e7bd1cae951a6fd59729bfbacb51ac51f34))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* drawer update - typed name resets on form change ([#29](https://github.com/odigos-io/ui-kit/issues/29)) ([e94ec92](https://github.com/odigos-io/ui-kit/commit/e94ec92a8f388582b91d2e9cad0b6fda7ba4484f))
|
|
14
|
+
* tables - select all (with filters), and fetching loaders ([#30](https://github.com/odigos-io/ui-kit/issues/30)) ([40b1d82](https://github.com/odigos-io/ui-kit/commit/40b1d820018c98ee3c4c986e8db7132c0bfe8538))
|
|
15
|
+
|
|
16
|
+
## [0.0.9](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.8...ui-kit-v0.0.9) (2025-03-16)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* add icon for connections ([#23](https://github.com/odigos-io/ui-kit/issues/23)) ([6f28052](https://github.com/odigos-io/ui-kit/commit/6f2805265b6b9dfbaf482decff87fb613bc5c15d))
|
|
22
|
+
* use source logos from SVG imports, not URL fetched ([#22](https://github.com/odigos-io/ui-kit/issues/22)) ([c37b564](https://github.com/odigos-io/ui-kit/commit/c37b564810e8cfb38d1cbd7fa4b4a31979149218))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* click area in data-card with expand ([#19](https://github.com/odigos-io/ui-kit/issues/19)) ([a2c661f](https://github.com/odigos-io/ui-kit/commit/a2c661f0d7798328e949bbfd5fa175284a33bc69))
|
|
28
|
+
* controlled-image fallback icon ([#21](https://github.com/odigos-io/ui-kit/issues/21)) ([cb15639](https://github.com/odigos-io/ui-kit/commit/cb15639311588d358b17fc75bb803f222d7f1bc6))
|
|
29
|
+
* no-data for describe source pods ([#20](https://github.com/odigos-io/ui-kit/issues/20)) ([65aa7cb](https://github.com/odigos-io/ui-kit/commit/65aa7cb4f068868cefdf8e9af81cd2424c61b5dc))
|
|
30
|
+
|
|
3
31
|
## [0.0.8](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.7...ui-kit-v0.0.8) (2025-03-16)
|
|
4
32
|
|
|
5
33
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ReactNode, type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { STATUS_TYPE } from '@/types';
|
|
3
3
|
interface BadgeProps {
|
|
4
4
|
label: string | number | ReactNode;
|
|
5
5
|
filled?: boolean;
|
|
6
|
-
status?:
|
|
6
|
+
status?: STATUS_TYPE;
|
|
7
7
|
withIcon?: boolean;
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC, type ReactNode } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
|
-
import {
|
|
3
|
+
import { STATUS_TYPE, SIGNAL_TYPE } from '@/types';
|
|
4
4
|
interface DataTabProps {
|
|
5
5
|
title: string;
|
|
6
6
|
subTitle?: string;
|
|
@@ -9,7 +9,7 @@ interface DataTabProps {
|
|
|
9
9
|
iconSrc?: string;
|
|
10
10
|
iconSrcs?: string[];
|
|
11
11
|
hoverText?: string;
|
|
12
|
-
status?:
|
|
12
|
+
status?: STATUS_TYPE;
|
|
13
13
|
faded?: boolean;
|
|
14
14
|
monitors?: SIGNAL_TYPE[];
|
|
15
15
|
monitorsWithLabels?: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { STATUS_TYPE } from '@/types';
|
|
3
3
|
interface DescribeRowProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
subTitle?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
7
|
value?: {
|
|
8
8
|
text?: string;
|
|
9
|
-
status?:
|
|
9
|
+
status?: STATUS_TYPE | 'transitioning';
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
declare const DescribeRow: FC<DescribeRowProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { STATUS_TYPE } from '@/types';
|
|
3
3
|
interface DividerProps {
|
|
4
4
|
orientation?: 'horizontal' | 'vertical';
|
|
5
|
-
type?:
|
|
5
|
+
type?: STATUS_TYPE;
|
|
6
6
|
thickness?: number;
|
|
7
7
|
length?: string;
|
|
8
8
|
margin?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
|
-
import {
|
|
3
|
+
import { STATUS_TYPE } from '@/types';
|
|
4
4
|
interface IconGroupProps {
|
|
5
5
|
icons?: SVG[];
|
|
6
6
|
iconSrcs?: string[];
|
|
7
|
-
status?:
|
|
7
|
+
status?: STATUS_TYPE;
|
|
8
8
|
size?: number;
|
|
9
9
|
}
|
|
10
10
|
declare const IconGroup: FC<IconGroupProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { STATUS_TYPE, type SVG } from '@/types';
|
|
3
3
|
interface IconWrappedProps {
|
|
4
4
|
icon?: SVG;
|
|
5
5
|
src?: string;
|
|
6
6
|
alt?: string;
|
|
7
|
-
status?:
|
|
7
|
+
status?: STATUS_TYPE;
|
|
8
8
|
size?: number;
|
|
9
9
|
}
|
|
10
10
|
declare const IconWrapped: FC<IconWrappedProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode, type FC, CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { STATUS_TYPE, type SVG } from '@/types';
|
|
3
3
|
interface ColumnCell {
|
|
4
4
|
key: string;
|
|
5
5
|
title: string;
|
|
@@ -16,7 +16,7 @@ interface RowCell {
|
|
|
16
16
|
interface InteractiveTableProps {
|
|
17
17
|
columns: ColumnCell[];
|
|
18
18
|
rows: {
|
|
19
|
-
status?:
|
|
19
|
+
status?: STATUS_TYPE;
|
|
20
20
|
faded?: boolean;
|
|
21
21
|
cells: RowCell[];
|
|
22
22
|
}[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ColumnCell, RowCell } from '.';
|
|
3
|
-
import {
|
|
3
|
+
import { STATUS_TYPE } from '@/types';
|
|
4
4
|
interface RowProps {
|
|
5
5
|
index: number;
|
|
6
6
|
columns: ColumnCell[];
|
|
7
7
|
cells: RowCell[];
|
|
8
8
|
onClick?: () => void;
|
|
9
|
-
status?:
|
|
9
|
+
status?: STATUS_TYPE;
|
|
10
10
|
faded?: boolean;
|
|
11
11
|
}
|
|
12
12
|
declare const Row: FC<RowProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type CSSProperties, type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { STATUS_TYPE } from '@/types';
|
|
3
3
|
interface OnCloseParams {
|
|
4
4
|
asSeen: boolean;
|
|
5
5
|
}
|
|
6
6
|
interface NotificationNoteProps {
|
|
7
7
|
id?: string;
|
|
8
|
-
type:
|
|
8
|
+
type: STATUS_TYPE;
|
|
9
9
|
title?: string;
|
|
10
10
|
message?: string;
|
|
11
11
|
action?: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { STATUS_TYPE, OTHER_STATUS } from '@/types';
|
|
3
3
|
interface StatusProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
subtitle?: string;
|
|
6
6
|
size?: number;
|
|
7
7
|
family?: 'primary' | 'secondary';
|
|
8
|
-
status?:
|
|
8
|
+
status?: STATUS_TYPE | OTHER_STATUS.LOADING;
|
|
9
9
|
withIcon?: boolean;
|
|
10
10
|
withBorder?: boolean;
|
|
11
11
|
withBackground?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CSSProperties } from 'styled-components';
|
|
1
2
|
export declare const FlexRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
3
|
$gap?: number;
|
|
3
4
|
}>> & string;
|
|
@@ -11,3 +12,14 @@ export declare const Overlay: import("styled-components/dist/types").IStyledComp
|
|
|
11
12
|
export declare const ModalBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
13
|
$isNotModal?: boolean;
|
|
13
14
|
}>> & string;
|
|
15
|
+
export declare const TableContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$gap"> & {
|
|
16
|
+
$gap?: number;
|
|
17
|
+
}, {
|
|
18
|
+
$maxWidth: CSSProperties["maxWidth"];
|
|
19
|
+
}>> & string;
|
|
20
|
+
export declare const TableTitleWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$gap"> & {
|
|
21
|
+
$gap?: number;
|
|
22
|
+
}, never>> & string;
|
|
23
|
+
export declare const TableWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
24
|
+
$maxHeight: CSSProperties["maxHeight"];
|
|
25
|
+
}>> & string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { STATUS_TYPE } from '@/types';
|
|
3
3
|
import { type ButtonProps } from '../button';
|
|
4
4
|
interface ButtonParams {
|
|
5
5
|
text: string;
|
|
@@ -12,7 +12,7 @@ interface WarningModalProps {
|
|
|
12
12
|
title: string;
|
|
13
13
|
description: string;
|
|
14
14
|
note?: {
|
|
15
|
-
type:
|
|
15
|
+
type: STATUS_TYPE;
|
|
16
16
|
title: string;
|
|
17
17
|
message: string;
|
|
18
18
|
};
|
package/lib/components.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { B as Button } from './index-
|
|
2
|
-
export { A as AutocompleteInput, a as Badge, C as CancelWarning, a0 as CenterThis, b as Checkbox, c as Code, d as ConditionDetails, f as DATA_CARD_FIELD_TYPES, D as DataCard, e as DataCardFields, g as DataTab, h as DeleteWarning, i as Divider, j as DocsButton, k as Drawer, m as DrawerFooter, l as DrawerHeader, n as Dropdown, E as ExtendArrow, F as FadeLoader, o as FieldError, p as FieldLabel, $ as FlexColumn, _ as FlexRow, H as Header, I as IconButton, q as IconGroup, r as IconTitleBadge, s as IconWrapped, t as IconsNav, u as ImageControlled, v as Input, w as InputList, x as InputTable, y as InteractiveTable, K as KeyValueInputsList, M as Modal, a2 as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, a1 as Overlay, S as SectionTitle, O as Segment, P as SkeletonLoader, Q as Status, R as Stepper, U as Text, V as TextArea, W as Toggle, T as ToggleCodeComponent, X as Tooltip, Y as TraceLoader, Z as WarningModal } from './index-
|
|
1
|
+
import { B as Button } from './index-Do8ODRlA.js';
|
|
2
|
+
export { A as AutocompleteInput, a as Badge, C as CancelWarning, a0 as CenterThis, b as Checkbox, c as Code, d as ConditionDetails, f as DATA_CARD_FIELD_TYPES, D as DataCard, e as DataCardFields, g as DataTab, h as DeleteWarning, i as Divider, j as DocsButton, k as Drawer, m as DrawerFooter, l as DrawerHeader, n as Dropdown, E as ExtendArrow, F as FadeLoader, o as FieldError, p as FieldLabel, $ as FlexColumn, _ as FlexRow, H as Header, I as IconButton, q as IconGroup, r as IconTitleBadge, s as IconWrapped, t as IconsNav, u as ImageControlled, v as Input, w as InputList, x as InputTable, y as InteractiveTable, K as KeyValueInputsList, M as Modal, a2 as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, a1 as Overlay, S as SectionTitle, O as Segment, P as SkeletonLoader, Q as Status, R as Stepper, a3 as TableContainer, a4 as TableTitleWrap, a5 as TableWrap, U as Text, V as TextArea, W as Toggle, T as ToggleCodeComponent, X as Tooltip, Y as TraceLoader, Z as WarningModal } from './index-Do8ODRlA.js';
|
|
3
3
|
import React, { Component, createElement, createContext } from 'react';
|
|
4
4
|
import Theme from './theme.js';
|
|
5
5
|
import './types.js';
|
|
6
6
|
import './index-DIcomki-.js';
|
|
7
7
|
import 'styled-components';
|
|
8
|
-
import './index-
|
|
9
|
-
import './index-DLKEpJJm.js';
|
|
8
|
+
import './index-DB1gmCsH.js';
|
|
10
9
|
import './index-BGlk5VhF.js';
|
|
10
|
+
import './index-ixs381n-.js';
|
|
11
11
|
import './index-BZS1ijMm.js';
|
|
12
|
-
import './index-
|
|
12
|
+
import './index-D_Qn2U89.js';
|
|
13
13
|
import './index-CZe2VX28.js';
|
|
14
14
|
import './index-BumPE6cF.js';
|
|
15
15
|
import './useTransition-Dfxjcy-C.js';
|
package/lib/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-CZe2VX28.js';
|
|
2
|
-
export { D as DISPLAY_TITLES, F as FORM_ALERTS } from './index-
|
|
2
|
+
export { D as DISPLAY_TITLES, F as FORM_ALERTS } from './index-DnmWFsTQ.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import './index-BumPE6cF.js';
|
|
5
5
|
import './index-BGlk5VhF.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Node, type NodeProps } from '@xyflow/react';
|
|
3
|
-
import { type Action, type Destination, ENTITY_TYPES, type InstrumentationRule, NODE_TYPES,
|
|
3
|
+
import { type Action, type Destination, ENTITY_TYPES, type InstrumentationRule, NODE_TYPES, STATUS_TYPE, SIGNAL_TYPE, type Source, type SVG, type WorkloadId } from '@/types';
|
|
4
4
|
export interface BaseNodeProps extends NodeProps<Node<{
|
|
5
5
|
nodeWidth: number;
|
|
6
6
|
id: string | WorkloadId;
|
|
7
7
|
type: ENTITY_TYPES;
|
|
8
|
-
status?:
|
|
8
|
+
status?: STATUS_TYPE;
|
|
9
9
|
faded?: boolean;
|
|
10
10
|
title: string;
|
|
11
11
|
subTitle: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Node, NodeProps } from '@xyflow/react';
|
|
3
|
-
import { ENTITY_TYPES, NODE_TYPES,
|
|
3
|
+
import { ENTITY_TYPES, NODE_TYPES, STATUS_TYPE, type Source, type SVG, type WorkloadId } from '@/types';
|
|
4
4
|
export interface ScrollNodeProps extends NodeProps<Node<{
|
|
5
5
|
nodeWidth: number;
|
|
6
6
|
nodeHeight: number;
|
|
@@ -9,7 +9,7 @@ export interface ScrollNodeProps extends NodeProps<Node<{
|
|
|
9
9
|
framePadding: number;
|
|
10
10
|
id: WorkloadId;
|
|
11
11
|
type: ENTITY_TYPES;
|
|
12
|
-
status?:
|
|
12
|
+
status?: STATUS_TYPE;
|
|
13
13
|
title: string;
|
|
14
14
|
subTitle: string;
|
|
15
15
|
icon?: SVG;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type { DestinationFormData,
|
|
2
|
+
import type { DestinationFormData, STATUS_TYPE } from '@/types';
|
|
3
3
|
interface TestConnectionProps {
|
|
4
4
|
destination: DestinationFormData;
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
validateForm: () => boolean;
|
|
7
|
-
status?:
|
|
7
|
+
status?: STATUS_TYPE;
|
|
8
8
|
testConnection: (destination: DestinationFormData) => void;
|
|
9
9
|
testLoading: boolean;
|
|
10
10
|
testResult?: {
|