@odigos/ui-kit 0.0.10 → 0.0.12
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/components/badge/index.d.ts +2 -2
- package/lib/components/data-card/data-card-fields/index.d.ts +14 -14
- package/lib/components/data-card/index.d.ts +2 -2
- package/lib/components/data-tab/index.d.ts +3 -3
- package/lib/components/delete-warning/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/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 +9 -8
- package/lib/components/interactive-table/table-row.d.ts +13 -0
- package/lib/components/monitors-checkboxes/index.d.ts +4 -4
- package/lib/components/monitors-icons/index.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/stepper/index.d.ts +1 -1
- package/lib/components/warning-modal/index.d.ts +2 -2
- package/lib/components.js +8 -8
- package/lib/constants/strings/index.d.ts +10 -10
- package/lib/constants.js +4 -4
- package/lib/containers/action-drawer/build-card.d.ts +2 -2
- package/lib/containers/action-drawer/index.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/index.d.ts +2 -2
- package/lib/containers/data-flow/edges/labeled-edge.d.ts +2 -2
- package/lib/containers/data-flow/helpers/get-main-container-language.d.ts +2 -2
- package/lib/containers/data-flow/helpers/get-node-positions.d.ts +2 -2
- package/lib/containers/data-flow/nodes/add-node.d.ts +3 -3
- package/lib/containers/data-flow/nodes/base-node.d.ts +5 -5
- package/lib/containers/data-flow/nodes/edged-node.d.ts +2 -2
- package/lib/containers/data-flow/nodes/frame-node.d.ts +2 -2
- package/lib/containers/data-flow/nodes/header-node.d.ts +2 -2
- package/lib/containers/data-flow/nodes/scroll-node.d.ts +5 -5
- package/lib/containers/data-flow/nodes/skeleton-node.d.ts +2 -2
- package/lib/containers/data-flow-actions-menu/index.d.ts +2 -2
- package/lib/containers/data-flow-actions-menu/search/search-results/builder.d.ts +2 -2
- package/lib/containers/destination-drawer/build-card.d.ts +2 -2
- package/lib/containers/destination-form/test-connection/index.d.ts +2 -2
- package/lib/containers/instrumentation-rule-drawer/build-card.d.ts +2 -2
- package/lib/containers/instrumentation-rule-form/custom-fields/index.d.ts +2 -2
- package/lib/containers/side-nav/index.d.ts +8 -8
- package/lib/containers/source-drawer/build-card.d.ts +1 -1
- package/lib/containers.js +373 -366
- package/lib/data/sources/index.d.ts +3 -3
- package/lib/functions/get-action-icon/index.d.ts +2 -2
- package/lib/functions/get-conditions-booleans/index.d.ts +2 -2
- package/lib/functions/get-entity-icon/index.d.ts +2 -2
- package/lib/functions/get-entity-label/index.d.ts +2 -2
- package/lib/functions/get-id-from-sse-target/index.d.ts +2 -2
- package/lib/functions/get-instrumentation-rule-icon/index.d.ts +2 -2
- package/lib/functions/get-metric-for-entity/index.d.ts +2 -2
- package/lib/functions/get-monitor-icon/index.d.ts +2 -2
- package/lib/functions/get-platform-icon/index.d.ts +2 -2
- package/lib/functions/get-platform-label/index.d.ts +2 -2
- package/lib/functions/get-programming-language-icon/index.d.ts +2 -2
- package/lib/functions/get-sse-target-from-id/index.d.ts +2 -2
- package/lib/functions/get-status-icon/index.d.ts +2 -2
- package/lib/functions/index.d.ts +0 -1
- package/lib/functions.js +9 -20
- package/lib/hooks.js +7 -7
- package/lib/icons.js +2 -2
- package/lib/{index-BFct3S32.js → index-7-KCQK-x.js} +2 -2
- package/lib/{index-ixs381n-.js → index-9ObpINp4.js} +4 -4
- package/lib/{index-Do8ODRlA.js → index-B5wdZoej.js} +106 -111
- package/lib/{index-eF2JXMVR.js → index-BtuW12KL.js} +22 -22
- package/lib/{index-CZe2VX28.js → index-CJKFedQi.js} +31 -31
- package/lib/{index-DB1gmCsH.js → index-CYn62h8x.js} +33 -33
- package/lib/{index-DnmWFsTQ.js → index-C_0J5P9M.js} +10 -10
- package/lib/{index-DIcomki-.js → index-DYEcdkUF.js} +19 -19
- package/lib/{index-BumPE6cF.js → index-Db_ZDrEr.js} +13 -13
- package/lib/store/useDrawerStore.d.ts +2 -2
- package/lib/store/useEntityStore.d.ts +5 -5
- package/lib/store/usePendingStore.d.ts +2 -2
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/actions/index.d.ts +14 -14
- package/lib/types/common/index.d.ts +80 -76
- package/lib/types/connection/index.d.ts +3 -3
- package/lib/types/data-flow/index.d.ts +15 -15
- package/lib/types/destinations/index.d.ts +2 -2
- package/lib/types/instrumentation-rules/index.d.ts +28 -28
- package/lib/types/signals/index.d.ts +5 -5
- package/lib/types/sources/index.d.ts +7 -7
- package/lib/types.js +164 -159
- package/lib/{useSourceSelectionFormData-CxdOP9FT.js → useSourceSelectionFormData-BnlRp8m3.js} +40 -40
- package/lib/{useTransition-Dfxjcy-C.js → useTransition-CFmm4scp.js} +23 -23
- package/package.json +1 -1
- package/lib/components/interactive-table/row.d.ts +0 -13
- package/lib/functions/derive-type-from-rule/index.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.12](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.11...ui-kit-v0.0.12) (2025-03-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* table row click ([#34](https://github.com/odigos-io/ui-kit/issues/34)) ([5e78a3f](https://github.com/odigos-io/ui-kit/commit/5e78a3f516f294dae83729ebd52bf37bbfa3dd61))
|
|
9
|
+
|
|
10
|
+
## [0.0.11](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.10...ui-kit-v0.0.11) (2025-03-20)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* kill deriveTypeFromRule function ([#33](https://github.com/odigos-io/ui-kit/issues/33)) ([3933bdc](https://github.com/odigos-io/ui-kit/commit/3933bdcc2b0bbe25a93d1297186964f3b6df674b))
|
|
16
|
+
* refactor enums ([#31](https://github.com/odigos-io/ui-kit/issues/31)) ([62f58b8](https://github.com/odigos-io/ui-kit/commit/62f58b864c1ae79e675b13d20f806a11e37617ea))
|
|
17
|
+
|
|
3
18
|
## [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
19
|
|
|
5
20
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ReactNode, type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StatusType } from '@/types';
|
|
3
3
|
interface BadgeProps {
|
|
4
4
|
label: string | number | ReactNode;
|
|
5
5
|
filled?: boolean;
|
|
6
|
-
status?:
|
|
6
|
+
status?: StatusType;
|
|
7
7
|
withIcon?: boolean;
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
declare enum
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
declare enum DataCardFieldTypes {
|
|
3
|
+
Code = "code",
|
|
4
|
+
Table = "table",
|
|
5
|
+
Badge = "badge",
|
|
6
|
+
Loader = "loader",
|
|
7
|
+
Divider = "divider",
|
|
8
|
+
Monitors = "monitors",
|
|
9
|
+
CopyText = "copy-text",
|
|
10
|
+
DescribeRow = "describe-row",
|
|
11
|
+
ActiveStatus = "active-status",
|
|
12
|
+
PodContainer = "pod-container",
|
|
13
|
+
SourceContainer = "source-container"
|
|
14
14
|
}
|
|
15
15
|
interface DataCardFieldsProps {
|
|
16
16
|
data: {
|
|
17
|
-
type?:
|
|
17
|
+
type?: DataCardFieldTypes;
|
|
18
18
|
title?: string;
|
|
19
19
|
tooltip?: string;
|
|
20
20
|
value?: string | Record<string, any>;
|
|
21
21
|
}[];
|
|
22
22
|
}
|
|
23
23
|
declare const DataCardFields: FC<DataCardFieldsProps>;
|
|
24
|
-
export { DataCardFields, type DataCardFieldsProps,
|
|
24
|
+
export { DataCardFields, type DataCardFieldsProps, DataCardFieldTypes };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode, type FC } from 'react';
|
|
2
|
-
import { DataCardFields, type DataCardFieldsProps,
|
|
2
|
+
import { DataCardFields, type DataCardFieldsProps, DataCardFieldTypes } from './data-card-fields';
|
|
3
3
|
interface DataCardProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
titleBadge?: string | number;
|
|
@@ -10,4 +10,4 @@ interface DataCardProps {
|
|
|
10
10
|
data: DataCardFieldsProps['data'];
|
|
11
11
|
}
|
|
12
12
|
declare const DataCard: FC<DataCardProps>;
|
|
13
|
-
export { DataCard, type DataCardProps, DataCardFields, type DataCardFieldsProps,
|
|
13
|
+
export { DataCard, type DataCardProps, DataCardFields, type DataCardFieldsProps, DataCardFieldTypes };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC, type ReactNode } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
|
-
import {
|
|
3
|
+
import { StatusType, SignalType } from '@/types';
|
|
4
4
|
interface DataTabProps {
|
|
5
5
|
title: string;
|
|
6
6
|
subTitle?: string;
|
|
@@ -9,9 +9,9 @@ interface DataTabProps {
|
|
|
9
9
|
iconSrc?: string;
|
|
10
10
|
iconSrcs?: string[];
|
|
11
11
|
hoverText?: string;
|
|
12
|
-
status?:
|
|
12
|
+
status?: StatusType;
|
|
13
13
|
faded?: boolean;
|
|
14
|
-
monitors?:
|
|
14
|
+
monitors?: SignalType[];
|
|
15
15
|
monitorsWithLabels?: boolean;
|
|
16
16
|
isActive?: boolean;
|
|
17
17
|
withCheckbox?: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { EntityTypes } from '@/types';
|
|
3
3
|
interface DeleteWarningProps {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
noOverlay?: boolean;
|
|
6
6
|
name?: string;
|
|
7
|
-
type?:
|
|
7
|
+
type?: EntityTypes;
|
|
8
8
|
isLastItem?: boolean;
|
|
9
9
|
onApprove: () => void;
|
|
10
10
|
onDeny: () => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StatusType } 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?: StatusType | '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 { StatusType } from '@/types';
|
|
3
3
|
interface DividerProps {
|
|
4
4
|
orientation?: 'horizontal' | 'vertical';
|
|
5
|
-
type?:
|
|
5
|
+
type?: StatusType;
|
|
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 { StatusType } from '@/types';
|
|
4
4
|
interface IconGroupProps {
|
|
5
5
|
icons?: SVG[];
|
|
6
6
|
iconSrcs?: string[];
|
|
7
|
-
status?:
|
|
7
|
+
status?: StatusType;
|
|
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 { StatusType, type SVG } from '@/types';
|
|
3
3
|
interface IconWrappedProps {
|
|
4
4
|
icon?: SVG;
|
|
5
5
|
src?: string;
|
|
6
6
|
alt?: string;
|
|
7
|
-
status?:
|
|
7
|
+
status?: StatusType;
|
|
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 { StatusType, type SVG } from '@/types';
|
|
3
3
|
interface ColumnCell {
|
|
4
4
|
key: string;
|
|
5
5
|
title: string;
|
|
@@ -13,14 +13,15 @@ interface RowCell {
|
|
|
13
13
|
textColor?: CSSProperties['color'];
|
|
14
14
|
withTooltip?: boolean;
|
|
15
15
|
}
|
|
16
|
+
interface Row {
|
|
17
|
+
status?: StatusType;
|
|
18
|
+
faded?: boolean;
|
|
19
|
+
onClick?: () => void;
|
|
20
|
+
cells: RowCell[];
|
|
21
|
+
}
|
|
16
22
|
interface InteractiveTableProps {
|
|
17
23
|
columns: ColumnCell[];
|
|
18
|
-
rows:
|
|
19
|
-
status?: STATUS_TYPE;
|
|
20
|
-
faded?: boolean;
|
|
21
|
-
cells: RowCell[];
|
|
22
|
-
}[];
|
|
23
|
-
onRowClick?: (index: number) => void;
|
|
24
|
+
rows: Row[];
|
|
24
25
|
}
|
|
25
26
|
declare const InteractiveTable: FC<InteractiveTableProps>;
|
|
26
|
-
export { InteractiveTable, type InteractiveTableProps, type ColumnCell, type RowCell };
|
|
27
|
+
export { InteractiveTable, type InteractiveTableProps, type ColumnCell, type RowCell, type Row };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { StatusType } from '@/types';
|
|
3
|
+
import { ColumnCell, RowCell } from '.';
|
|
4
|
+
interface TableRowProps {
|
|
5
|
+
index: number;
|
|
6
|
+
columns: ColumnCell[];
|
|
7
|
+
cells: RowCell[];
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
status?: StatusType;
|
|
10
|
+
faded?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const TableRow: FC<TableRowProps>;
|
|
13
|
+
export { TableRow, type TableRowProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SignalType } from '@/types';
|
|
3
3
|
interface MonitorsCheckboxesProps {
|
|
4
4
|
isVertical?: boolean;
|
|
5
5
|
title?: string;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
errorMessage?: string;
|
|
8
|
-
allowedSignals?:
|
|
9
|
-
selectedSignals:
|
|
10
|
-
setSelectedSignals: (value:
|
|
8
|
+
allowedSignals?: SignalType[];
|
|
9
|
+
selectedSignals: SignalType[];
|
|
10
|
+
setSelectedSignals: (value: SignalType[]) => void;
|
|
11
11
|
}
|
|
12
12
|
declare const MonitorsCheckboxes: FC<MonitorsCheckboxesProps>;
|
|
13
13
|
export { MonitorsCheckboxes, type MonitorsCheckboxesProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SignalType } from '@/types';
|
|
3
3
|
interface MonitorsIconsProps {
|
|
4
|
-
monitors?:
|
|
4
|
+
monitors?: SignalType[];
|
|
5
5
|
withTooltips?: boolean;
|
|
6
6
|
withLabels?: boolean;
|
|
7
7
|
size?: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type CSSProperties, type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StatusType } from '@/types';
|
|
3
3
|
interface OnCloseParams {
|
|
4
4
|
asSeen: boolean;
|
|
5
5
|
}
|
|
6
6
|
interface NotificationNoteProps {
|
|
7
7
|
id?: string;
|
|
8
|
-
type:
|
|
8
|
+
type: StatusType;
|
|
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 { StatusType, OtherStatus } 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?: StatusType | OtherStatus.Loading;
|
|
9
9
|
withIcon?: boolean;
|
|
10
10
|
withBorder?: boolean;
|
|
11
11
|
withBackground?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { StatusType } 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: StatusType;
|
|
16
16
|
title: string;
|
|
17
17
|
message: string;
|
|
18
18
|
};
|
package/lib/components.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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,
|
|
1
|
+
import { B as Button } from './index-B5wdZoej.js';
|
|
2
|
+
export { A as AutocompleteInput, a as Badge, C as CancelWarning, a0 as CenterThis, b as Checkbox, c as Code, d as ConditionDetails, D as DataCard, f as DataCardFieldTypes, 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-B5wdZoej.js';
|
|
3
3
|
import React, { Component, createElement, createContext } from 'react';
|
|
4
4
|
import Theme from './theme.js';
|
|
5
5
|
import './types.js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-DYEcdkUF.js';
|
|
7
7
|
import 'styled-components';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-CYn62h8x.js';
|
|
9
9
|
import './index-BGlk5VhF.js';
|
|
10
|
-
import './index-
|
|
10
|
+
import './index-9ObpINp4.js';
|
|
11
11
|
import './index-BZS1ijMm.js';
|
|
12
12
|
import './index-D_Qn2U89.js';
|
|
13
|
-
import './index-
|
|
14
|
-
import './index-
|
|
15
|
-
import './useTransition-
|
|
13
|
+
import './index-CJKFedQi.js';
|
|
14
|
+
import './index-Db_ZDrEr.js';
|
|
15
|
+
import './useTransition-CFmm4scp.js';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import 'babel-runtime/helpers/extends';
|
|
18
18
|
import 'babel-runtime/core-js/object/get-prototype-of';
|
|
@@ -9,27 +9,27 @@ export declare const FORM_ALERTS: {
|
|
|
9
9
|
READONLY_WARNING: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const DISPLAY_TITLES: {
|
|
12
|
-
|
|
12
|
+
Namespace: string;
|
|
13
13
|
NAME: string;
|
|
14
14
|
KIND: string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
Action: string;
|
|
16
|
+
Actions: string;
|
|
17
17
|
ACTION_DETAILS: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
InstrumentationRule: string;
|
|
19
|
+
InstrumentationRules: string;
|
|
20
20
|
INSTRUMENTATION_RULE_DETAILS: string;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
Destination: string;
|
|
22
|
+
Destinations: string;
|
|
23
23
|
DESTINATION_DETAILS: string;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
Source: string;
|
|
25
|
+
Sources: string;
|
|
26
26
|
SOURCE_DETAILS: string;
|
|
27
27
|
TYPE: string;
|
|
28
28
|
NOTES: string;
|
|
29
29
|
STATUS: string;
|
|
30
30
|
READONLY: string;
|
|
31
31
|
LANGUAGE: string;
|
|
32
|
-
|
|
32
|
+
Monitors: string;
|
|
33
33
|
SIGNALS_FOR_PROCESSING: string;
|
|
34
34
|
MANAGED_BY_PROFILE: string;
|
|
35
35
|
API_TOKEN: string;
|
package/lib/constants.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-
|
|
2
|
-
export { D as DISPLAY_TITLES, F as FORM_ALERTS } from './index-
|
|
1
|
+
export { A as ACTION_OPTIONS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-CJKFedQi.js';
|
|
2
|
+
export { D as DISPLAY_TITLES, F as FORM_ALERTS } from './index-C_0J5P9M.js';
|
|
3
3
|
import './types.js';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-Db_ZDrEr.js';
|
|
5
5
|
import './index-BGlk5VhF.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import './theme.js';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-DYEcdkUF.js';
|
|
9
9
|
import 'styled-components';
|
|
10
10
|
|
|
11
11
|
const TOKEN_ABOUT_TO_EXPIRE = 604800000; // 7 days in milliseconds
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Action } from '@/types';
|
|
2
|
-
import {
|
|
2
|
+
import { DataCardFieldTypes } from '@/components';
|
|
3
3
|
declare const buildCard: (action: Action) => {
|
|
4
|
-
type?:
|
|
4
|
+
type?: DataCardFieldTypes;
|
|
5
5
|
title?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
7
|
value?: string | Record<string, any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ActionType, type ActionFormData } from '@/types';
|
|
3
3
|
interface ActionDrawerProps {
|
|
4
4
|
updateAction: (id: string, action: ActionFormData) => void;
|
|
5
|
-
deleteAction: (id: string, actionType:
|
|
5
|
+
deleteAction: (id: string, actionType: ActionType) => void;
|
|
6
6
|
}
|
|
7
7
|
declare const ActionDrawer: FC<ActionDrawerProps>;
|
|
8
8
|
export { ActionDrawer, type ActionDrawerProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ActionType, type ActionFormData, type CustomFieldProps } from '@/types';
|
|
3
3
|
interface CustomFieldsProps extends CustomFieldProps<ActionFormData> {
|
|
4
|
-
actionType?:
|
|
4
|
+
actionType?: ActionType;
|
|
5
5
|
}
|
|
6
6
|
declare const CustomFields: React.FC<CustomFieldsProps>;
|
|
7
7
|
export { CustomFields, type CustomFieldsProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { EdgeTypes } from '@/types';
|
|
3
3
|
import { type EdgeProps, type Edge } from '@xyflow/react';
|
|
4
4
|
export interface LabeledEdgeProps extends EdgeProps<Edge<{
|
|
5
5
|
label: string;
|
|
6
6
|
isMultiTarget?: boolean;
|
|
7
7
|
isError?: boolean;
|
|
8
|
-
},
|
|
8
|
+
}, EdgeTypes.Labeled>> {
|
|
9
9
|
}
|
|
10
10
|
export declare const LabeledEdge: FC<LabeledEdgeProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getMainContainerLanguage: (source: Source) =>
|
|
1
|
+
import { ProgrammingLanguages, type Source } from '@/types';
|
|
2
|
+
export declare const getMainContainerLanguage: (source: Source) => ProgrammingLanguages;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityTypes } from '@/types';
|
|
2
2
|
interface Params {
|
|
3
3
|
containerWidth: number;
|
|
4
4
|
}
|
|
5
|
-
export type NodePositions = Record<
|
|
5
|
+
export type NodePositions = Record<EntityTypes, {
|
|
6
6
|
x: number;
|
|
7
7
|
y: (idx?: number) => number;
|
|
8
8
|
}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AddNodeTypes, NodeTypes } from '@/types';
|
|
3
3
|
import { type Node, type NodeProps } from '@xyflow/react';
|
|
4
4
|
export interface AddNodeProps extends NodeProps<Node<{
|
|
5
5
|
nodeWidth: number;
|
|
6
|
-
type:
|
|
6
|
+
type: AddNodeTypes;
|
|
7
7
|
title: string;
|
|
8
8
|
subTitle: string;
|
|
9
|
-
},
|
|
9
|
+
}, NodeTypes.Add>> {
|
|
10
10
|
}
|
|
11
11
|
export declare const AddNode: React.FC<AddNodeProps>;
|
|
@@ -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,
|
|
3
|
+
import { type Action, type Destination, EntityTypes, type InstrumentationRule, NodeTypes, StatusType, SignalType, 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
|
-
type:
|
|
8
|
-
status?:
|
|
7
|
+
type: EntityTypes;
|
|
8
|
+
status?: StatusType;
|
|
9
9
|
faded?: boolean;
|
|
10
10
|
title: string;
|
|
11
11
|
subTitle: string;
|
|
@@ -13,9 +13,9 @@ export interface BaseNodeProps extends NodeProps<Node<{
|
|
|
13
13
|
icons?: SVG[];
|
|
14
14
|
iconSrc?: string;
|
|
15
15
|
iconSrcs?: string[];
|
|
16
|
-
monitors?:
|
|
16
|
+
monitors?: SignalType[];
|
|
17
17
|
isActive?: boolean;
|
|
18
18
|
raw: Source | Destination | Action | InstrumentationRule;
|
|
19
|
-
},
|
|
19
|
+
}, NodeTypes.Base>> {
|
|
20
20
|
}
|
|
21
21
|
export declare const BaseNode: React.FC<BaseNodeProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NodeTypes } from '@/types';
|
|
3
3
|
import { type Node, type NodeProps } from '@xyflow/react';
|
|
4
4
|
export interface EdgedNodeProps extends NodeProps<Node<{
|
|
5
5
|
nodeWidth: number;
|
|
6
6
|
nodeHeight: number;
|
|
7
|
-
},
|
|
7
|
+
}, NodeTypes.Edged>> {
|
|
8
8
|
}
|
|
9
9
|
export declare const EdgedNode: React.FC<EdgedNodeProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NodeTypes } from '@/types';
|
|
3
3
|
import { type Node, type NodeProps } from '@xyflow/react';
|
|
4
4
|
export interface FrameNodeProps extends NodeProps<Node<{
|
|
5
5
|
nodeWidth: number;
|
|
6
6
|
nodeHeight: number;
|
|
7
|
-
},
|
|
7
|
+
}, NodeTypes.Frame>> {
|
|
8
8
|
}
|
|
9
9
|
export declare const FrameNode: React.FC<FrameNodeProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Node, NodeProps } from '@xyflow/react';
|
|
3
|
-
import {
|
|
3
|
+
import { NodeTypes, type Source, type SVG } from '@/types';
|
|
4
4
|
export interface HeaderNodeProps extends NodeProps<Node<{
|
|
5
5
|
nodeWidth: number;
|
|
6
6
|
icon: SVG;
|
|
@@ -9,6 +9,6 @@ export interface HeaderNodeProps extends NodeProps<Node<{
|
|
|
9
9
|
badgeTooltip?: string;
|
|
10
10
|
isFetching?: boolean;
|
|
11
11
|
sources?: Source[];
|
|
12
|
-
},
|
|
12
|
+
}, NodeTypes.Header>> {
|
|
13
13
|
}
|
|
14
14
|
export declare const HeaderNode: React.FC<HeaderNodeProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Node, NodeProps } from '@xyflow/react';
|
|
3
|
-
import {
|
|
3
|
+
import { EntityTypes, NodeTypes, StatusType, type Source, type SVG, type WorkloadId } from '@/types';
|
|
4
4
|
export interface ScrollNodeProps extends NodeProps<Node<{
|
|
5
5
|
nodeWidth: number;
|
|
6
6
|
nodeHeight: number;
|
|
@@ -8,19 +8,19 @@ export interface ScrollNodeProps extends NodeProps<Node<{
|
|
|
8
8
|
nodeWidth: number;
|
|
9
9
|
framePadding: number;
|
|
10
10
|
id: WorkloadId;
|
|
11
|
-
type:
|
|
12
|
-
status?:
|
|
11
|
+
type: EntityTypes;
|
|
12
|
+
status?: StatusType;
|
|
13
13
|
title: string;
|
|
14
14
|
subTitle: string;
|
|
15
15
|
icon?: SVG;
|
|
16
16
|
iconSrc?: string;
|
|
17
17
|
raw: Source;
|
|
18
|
-
},
|
|
18
|
+
}, NodeTypes.Base>>[];
|
|
19
19
|
onScroll: (params: {
|
|
20
20
|
clientHeight: number;
|
|
21
21
|
scrollHeight: number;
|
|
22
22
|
scrollTop: number;
|
|
23
23
|
}) => void;
|
|
24
|
-
},
|
|
24
|
+
}, NodeTypes.Scroll>> {
|
|
25
25
|
}
|
|
26
26
|
export declare const ScrollNode: React.FC<ScrollNodeProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NodeTypes } from '@/types';
|
|
3
3
|
import { type Node, type NodeProps } from '@xyflow/react';
|
|
4
4
|
export interface SkeletonNodeProps extends NodeProps<Node<{
|
|
5
5
|
nodeWidth: number;
|
|
6
|
-
},
|
|
6
|
+
}, NodeTypes.Skeleton>> {
|
|
7
7
|
}
|
|
8
8
|
export declare const SkeletonNode: React.FC<SkeletonNodeProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { EntityTypes } from '@/types';
|
|
3
3
|
interface DataFlowActionsMenuProps {
|
|
4
4
|
namespaces: {
|
|
5
5
|
name: string;
|
|
6
6
|
}[];
|
|
7
|
-
addEntity?:
|
|
7
|
+
addEntity?: EntityTypes;
|
|
8
8
|
}
|
|
9
9
|
declare const DataFlowActionsMenu: React.FC<DataFlowActionsMenuProps>;
|
|
10
10
|
export { DataFlowActionsMenu, type DataFlowActionsMenuProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Action, type Destination,
|
|
2
|
-
export type Category = 'all' |
|
|
1
|
+
import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Source } from '@/types';
|
|
2
|
+
export type Category = 'all' | EntityTypes;
|
|
3
3
|
interface Params {
|
|
4
4
|
searchText: string;
|
|
5
5
|
selectedCategory: Category;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataCardFieldTypes } from '@/components';
|
|
2
2
|
import { type Destination, type DestinationYamlProperties } from '@/types';
|
|
3
3
|
declare const buildCard: (destination: Destination, yamlFields: DestinationYamlProperties[]) => {
|
|
4
|
-
type?:
|
|
4
|
+
type?: DataCardFieldTypes;
|
|
5
5
|
title?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
7
|
value?: string | Record<string, any>;
|