@odigos/ui-kit 0.0.9 → 0.0.11
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 +21 -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/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/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/styled.d.ts +12 -0
- package/lib/components/warning-modal/index.d.ts +2 -2
- package/lib/components.js +8 -8
- package/lib/constants/strings/index.d.ts +11 -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 +380 -385
- 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-m62aT4IR.js → index-B_fzHjxk.js} +111 -93
- package/lib/{index-g6Twdelv.js → index-BtuW12KL.js} +22 -22
- package/lib/{index-CZe2VX28.js → index-CJKFedQi.js} +31 -31
- package/lib/{index-Bc8gi9FH.js → index-CYn62h8x.js} +33 -33
- package/lib/{index-Cu2uHOuh.js → index-C_0J5P9M.js} +11 -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-BY6B70Kf.js → useSourceSelectionFormData-BnlRp8m3.js} +40 -40
- package/lib/{useTransition-Dfxjcy-C.js → useTransition-CFmm4scp.js} +23 -23
- package/package.json +10 -10
- package/lib/functions/derive-type-from-rule/index.d.ts +0 -2
|
@@ -17,91 +17,95 @@ export type SVG = FC<{
|
|
|
17
17
|
*/
|
|
18
18
|
onClick?: MouseEventHandler<SVGSVGElement>;
|
|
19
19
|
}>;
|
|
20
|
-
export declare enum
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
export declare enum Tier {
|
|
21
|
+
Community = "community",
|
|
22
|
+
Cloud = "cloud",
|
|
23
|
+
Onprem = "onprem"
|
|
24
24
|
}
|
|
25
|
-
export declare enum
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
export declare enum PlatformType {
|
|
26
|
+
K8s = "k8s",
|
|
27
|
+
Vm = "vm"
|
|
28
28
|
}
|
|
29
|
-
export declare enum
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
29
|
+
export declare enum ProgrammingLanguages {
|
|
30
|
+
Go = "go",
|
|
31
|
+
JavaScript = "javascript",
|
|
32
|
+
Python = "python",
|
|
33
|
+
Java = "java",
|
|
34
|
+
DotNet = "dotnet",
|
|
35
|
+
CSharp = "csharp",
|
|
36
|
+
CPlusPlus = "cplusplus",
|
|
37
|
+
Php = "php",
|
|
38
|
+
Ruby = "ruby",
|
|
39
|
+
Rust = "rust",
|
|
40
|
+
Swift = "swift",
|
|
41
|
+
Elixir = "elixir",
|
|
42
|
+
MySql = "mysql",
|
|
43
|
+
Nginx = "nginx",
|
|
44
|
+
Postgres = "postgres",
|
|
45
|
+
Redis = "redis",
|
|
46
|
+
Kafka = "kafka",
|
|
47
|
+
Ignored = "ignored",
|
|
48
|
+
Unknown = "unknown",// language detection completed but could not find a supported language
|
|
49
|
+
Processing = "processing",// language detection is not yet complotted, data is not available
|
|
50
|
+
NoContainers = "no containers",// language detection completed but no containers found or they are ignored
|
|
51
|
+
NoRunningPods = "no running pods"
|
|
52
52
|
}
|
|
53
|
-
export declare enum
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
export declare enum Crud {
|
|
54
|
+
Create = "Create",
|
|
55
|
+
Read = "Read",
|
|
56
|
+
Update = "Update",
|
|
57
|
+
Delete = "Delete"
|
|
58
58
|
}
|
|
59
|
-
export declare enum
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
export declare enum EntityTypes {
|
|
60
|
+
Source = "source",
|
|
61
|
+
Destination = "destination",
|
|
62
|
+
Action = "action",
|
|
63
|
+
InstrumentationRule = "instrumentation rule"
|
|
64
64
|
}
|
|
65
|
-
export declare enum
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
export declare enum FieldTypes {
|
|
66
|
+
Input = "input",
|
|
67
|
+
MultiInput = "multiInput",
|
|
68
|
+
MultiTabledInput = "multiTabledInput",// not used by dests, but is in form components
|
|
69
|
+
KeyValuePair = "keyValuePairs",
|
|
70
|
+
TextArea = "textarea",
|
|
71
|
+
Dropdown = "dropdown",
|
|
72
|
+
Checkbox = "checkbox",
|
|
73
|
+
Toggle = "toggle"
|
|
74
74
|
}
|
|
75
|
-
export declare enum
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
export declare enum CrdTypes {
|
|
76
|
+
OdigosConfig = "OdigosConfiguration",
|
|
77
|
+
CollectorsGroup = "CollectorsGroup",
|
|
78
|
+
Source = "Source",
|
|
79
|
+
InstrumentationConfig = "InstrumentationConfig",
|
|
80
|
+
InstrumentationInstance = "InstrumentationInstance",
|
|
81
|
+
Destination = "Destination",
|
|
82
|
+
InstrumentationRule = "InstrumentationRule",
|
|
83
|
+
Processor = "Processor",
|
|
84
|
+
AddClusterInfo = "AddClusterInfo",
|
|
85
|
+
DeleteAttributes = "DeleteAttribute",
|
|
86
|
+
RenameAttributes = "RenameAttribute",
|
|
87
|
+
PiiMasking = "PiiMasking",
|
|
88
|
+
ErrorSampler = "ErrorSampler",
|
|
89
|
+
LatencySampler = "LatencySampler",
|
|
90
|
+
ProbabilisticSampler = "ProbabilisticSampler"
|
|
91
91
|
}
|
|
92
|
-
export declare enum
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
export declare enum StatusType {
|
|
93
|
+
Warning = "warning",
|
|
94
|
+
Error = "error",
|
|
95
|
+
Success = "success",
|
|
96
|
+
Info = "info",
|
|
97
|
+
Default = "default"
|
|
98
98
|
}
|
|
99
|
-
export declare enum
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
export declare enum OtherStatus {
|
|
100
|
+
Loading = "loading",
|
|
101
|
+
Disabled = "disabled"
|
|
102
|
+
}
|
|
103
|
+
export declare enum SortDirection {
|
|
104
|
+
Ascending = "asc",
|
|
105
|
+
Descending = "desc"
|
|
102
106
|
}
|
|
103
107
|
export interface Condition {
|
|
104
|
-
status:
|
|
108
|
+
status: StatusType | OtherStatus;
|
|
105
109
|
type: string;
|
|
106
110
|
reason?: string | null;
|
|
107
111
|
message?: string | null;
|
|
@@ -109,7 +113,7 @@ export interface Condition {
|
|
|
109
113
|
}
|
|
110
114
|
export interface Notification {
|
|
111
115
|
id: string;
|
|
112
|
-
type:
|
|
116
|
+
type: StatusType;
|
|
113
117
|
title?: string;
|
|
114
118
|
message?: string;
|
|
115
119
|
crdType?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StatusType, PlatformType } from '../common';
|
|
2
2
|
export interface Connection {
|
|
3
3
|
id: string;
|
|
4
|
-
type?:
|
|
4
|
+
type?: PlatformType;
|
|
5
5
|
name?: string;
|
|
6
|
-
status:
|
|
6
|
+
status: StatusType;
|
|
7
7
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export declare enum NodeTypes {
|
|
2
|
+
Header = "header",
|
|
3
|
+
Add = "add",
|
|
4
|
+
Base = "base",
|
|
5
|
+
Edged = "edged",
|
|
6
|
+
Frame = "frame",
|
|
7
|
+
Scroll = "scroll",
|
|
8
|
+
Skeleton = "skeleton"
|
|
9
9
|
}
|
|
10
|
-
export declare enum
|
|
11
|
-
|
|
10
|
+
export declare enum EdgeTypes {
|
|
11
|
+
Labeled = "labeled"
|
|
12
12
|
}
|
|
13
|
-
export declare enum
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
export declare enum AddNodeTypes {
|
|
14
|
+
AddRule = "addRule",
|
|
15
|
+
AddSource = "addSource",
|
|
16
|
+
AddAction = "addAction",
|
|
17
|
+
AddDestination = "addDestination"
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Comparison } from '@/functions';
|
|
2
2
|
import type { DropdownProps } from '@/components';
|
|
3
|
-
import { type Condition,
|
|
3
|
+
import { type Condition, FieldTypes } from '../common';
|
|
4
4
|
export interface Destination {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
@@ -31,7 +31,7 @@ export interface Destination {
|
|
|
31
31
|
type YamlCompareArr = [string, Comparison, string] | ['true' | 'false'];
|
|
32
32
|
export interface DestinationYamlProperties {
|
|
33
33
|
name: string;
|
|
34
|
-
componentType:
|
|
34
|
+
componentType: FieldTypes;
|
|
35
35
|
componentProperties?: string;
|
|
36
36
|
displayName?: string;
|
|
37
37
|
secret?: boolean;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { SVG } from '../common';
|
|
2
2
|
import type { WorkloadId } from '../sources';
|
|
3
|
-
export declare enum
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export declare enum InstrumentationRuleType {
|
|
4
|
+
PayloadCollection = "PayloadCollection",
|
|
5
|
+
CodeAttributes = "CodeAttributes",
|
|
6
|
+
UnknownType = "UnknownType"
|
|
7
7
|
}
|
|
8
8
|
export interface InstrumentationRule {
|
|
9
9
|
ruleId: string;
|
|
10
10
|
ruleName: string;
|
|
11
|
-
type:
|
|
11
|
+
type: InstrumentationRuleType;
|
|
12
12
|
notes: string;
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
mutable: boolean;
|
|
@@ -34,36 +34,36 @@ interface MessagingPayloadCollection {
|
|
|
34
34
|
maxPayloadLength?: number | null;
|
|
35
35
|
dropPartialPayloads?: boolean | null;
|
|
36
36
|
}
|
|
37
|
-
export declare enum
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
export declare enum PayloadCollectionKeyTypes {
|
|
38
|
+
HttpRequest = "httpRequest",
|
|
39
|
+
HttpResponse = "httpResponse",
|
|
40
|
+
DbQuery = "dbQuery",
|
|
41
|
+
Messaging = "messaging"
|
|
42
42
|
}
|
|
43
43
|
export interface PayloadCollection {
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
44
|
+
[PayloadCollectionKeyTypes.HttpRequest]?: HttpPayloadCollection | null;
|
|
45
|
+
[PayloadCollectionKeyTypes.HttpResponse]?: HttpPayloadCollection | null;
|
|
46
|
+
[PayloadCollectionKeyTypes.DbQuery]?: DbQueryPayloadCollection | null;
|
|
47
|
+
[PayloadCollectionKeyTypes.Messaging]?: MessagingPayloadCollection | null;
|
|
48
48
|
}
|
|
49
|
-
export declare enum
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
export declare enum CodeAttributesKeyTypes {
|
|
50
|
+
Column = "column",
|
|
51
|
+
FilePath = "filePath",
|
|
52
|
+
Function = "function",
|
|
53
|
+
LineNumber = "lineNumber",
|
|
54
|
+
Namespace = "namespace",
|
|
55
|
+
StackTrace = "stacktrace"
|
|
56
56
|
}
|
|
57
57
|
export interface CodeAttributes {
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
63
|
-
[
|
|
58
|
+
[CodeAttributesKeyTypes.Column]?: boolean | null;
|
|
59
|
+
[CodeAttributesKeyTypes.FilePath]?: boolean | null;
|
|
60
|
+
[CodeAttributesKeyTypes.Function]?: boolean | null;
|
|
61
|
+
[CodeAttributesKeyTypes.LineNumber]?: boolean | null;
|
|
62
|
+
[CodeAttributesKeyTypes.Namespace]?: boolean | null;
|
|
63
|
+
[CodeAttributesKeyTypes.StackTrace]?: boolean | null;
|
|
64
64
|
}
|
|
65
65
|
export interface InstrumentationRuleOption {
|
|
66
|
-
type:
|
|
66
|
+
type: InstrumentationRuleType;
|
|
67
67
|
icon: SVG;
|
|
68
68
|
label: string;
|
|
69
69
|
description?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare enum SignalType {
|
|
2
|
+
Logs = "logs",
|
|
3
|
+
Metrics = "metrics",
|
|
4
|
+
Traces = "traces"
|
|
5
5
|
}
|
|
6
6
|
export interface MonitorsOption {
|
|
7
|
-
id:
|
|
7
|
+
id: SignalType;
|
|
8
8
|
value: string;
|
|
9
9
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { type Condition,
|
|
2
|
-
export declare enum
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type Condition, ProgrammingLanguages } from '../common';
|
|
2
|
+
export declare enum K8sResourceKind {
|
|
3
|
+
Deployment = "Deployment",
|
|
4
|
+
DaemonSet = "DaemonSet",
|
|
5
|
+
StatefulSet = "StatefulSet"
|
|
6
6
|
}
|
|
7
7
|
export interface WorkloadId {
|
|
8
8
|
namespace: string;
|
|
9
9
|
name: string;
|
|
10
|
-
kind:
|
|
10
|
+
kind: K8sResourceKind | '';
|
|
11
11
|
}
|
|
12
12
|
export interface Source extends WorkloadId {
|
|
13
13
|
selected: boolean;
|
|
@@ -15,7 +15,7 @@ export interface Source extends WorkloadId {
|
|
|
15
15
|
numberOfInstances?: number;
|
|
16
16
|
containers: {
|
|
17
17
|
containerName: string;
|
|
18
|
-
language:
|
|
18
|
+
language: ProgrammingLanguages;
|
|
19
19
|
runtimeVersion: string;
|
|
20
20
|
instrumented: boolean;
|
|
21
21
|
instrumentationMessage: string;
|