@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.
Files changed (90) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/lib/components/badge/index.d.ts +2 -2
  3. package/lib/components/data-card/data-card-fields/index.d.ts +14 -14
  4. package/lib/components/data-card/index.d.ts +2 -2
  5. package/lib/components/data-tab/index.d.ts +3 -3
  6. package/lib/components/delete-warning/index.d.ts +2 -2
  7. package/lib/components/describe-row/index.d.ts +2 -2
  8. package/lib/components/divider/index.d.ts +2 -2
  9. package/lib/components/drawer/drawer-header/index.d.ts +1 -1
  10. package/lib/components/icon-group/index.d.ts +2 -2
  11. package/lib/components/icon-wrapped/index.d.ts +2 -2
  12. package/lib/components/interactive-table/index.d.ts +2 -2
  13. package/lib/components/interactive-table/row.d.ts +2 -2
  14. package/lib/components/monitors-checkboxes/index.d.ts +4 -4
  15. package/lib/components/monitors-icons/index.d.ts +2 -2
  16. package/lib/components/notification-note/index.d.ts +2 -2
  17. package/lib/components/status/index.d.ts +2 -2
  18. package/lib/components/stepper/index.d.ts +1 -1
  19. package/lib/components/styled.d.ts +12 -0
  20. package/lib/components/warning-modal/index.d.ts +2 -2
  21. package/lib/components.js +8 -8
  22. package/lib/constants/strings/index.d.ts +11 -10
  23. package/lib/constants.js +4 -4
  24. package/lib/containers/action-drawer/build-card.d.ts +2 -2
  25. package/lib/containers/action-drawer/index.d.ts +2 -2
  26. package/lib/containers/action-form/custom-fields/index.d.ts +2 -2
  27. package/lib/containers/data-flow/edges/labeled-edge.d.ts +2 -2
  28. package/lib/containers/data-flow/helpers/get-main-container-language.d.ts +2 -2
  29. package/lib/containers/data-flow/helpers/get-node-positions.d.ts +2 -2
  30. package/lib/containers/data-flow/nodes/add-node.d.ts +3 -3
  31. package/lib/containers/data-flow/nodes/base-node.d.ts +5 -5
  32. package/lib/containers/data-flow/nodes/edged-node.d.ts +2 -2
  33. package/lib/containers/data-flow/nodes/frame-node.d.ts +2 -2
  34. package/lib/containers/data-flow/nodes/header-node.d.ts +2 -2
  35. package/lib/containers/data-flow/nodes/scroll-node.d.ts +5 -5
  36. package/lib/containers/data-flow/nodes/skeleton-node.d.ts +2 -2
  37. package/lib/containers/data-flow-actions-menu/index.d.ts +2 -2
  38. package/lib/containers/data-flow-actions-menu/search/search-results/builder.d.ts +2 -2
  39. package/lib/containers/destination-drawer/build-card.d.ts +2 -2
  40. package/lib/containers/destination-form/test-connection/index.d.ts +2 -2
  41. package/lib/containers/instrumentation-rule-drawer/build-card.d.ts +2 -2
  42. package/lib/containers/instrumentation-rule-form/custom-fields/index.d.ts +2 -2
  43. package/lib/containers/side-nav/index.d.ts +8 -8
  44. package/lib/containers/source-drawer/build-card.d.ts +1 -1
  45. package/lib/containers.js +380 -385
  46. package/lib/data/sources/index.d.ts +3 -3
  47. package/lib/functions/get-action-icon/index.d.ts +2 -2
  48. package/lib/functions/get-conditions-booleans/index.d.ts +2 -2
  49. package/lib/functions/get-entity-icon/index.d.ts +2 -2
  50. package/lib/functions/get-entity-label/index.d.ts +2 -2
  51. package/lib/functions/get-id-from-sse-target/index.d.ts +2 -2
  52. package/lib/functions/get-instrumentation-rule-icon/index.d.ts +2 -2
  53. package/lib/functions/get-metric-for-entity/index.d.ts +2 -2
  54. package/lib/functions/get-monitor-icon/index.d.ts +2 -2
  55. package/lib/functions/get-platform-icon/index.d.ts +2 -2
  56. package/lib/functions/get-platform-label/index.d.ts +2 -2
  57. package/lib/functions/get-programming-language-icon/index.d.ts +2 -2
  58. package/lib/functions/get-sse-target-from-id/index.d.ts +2 -2
  59. package/lib/functions/get-status-icon/index.d.ts +2 -2
  60. package/lib/functions/index.d.ts +0 -1
  61. package/lib/functions.js +9 -20
  62. package/lib/hooks.js +7 -7
  63. package/lib/icons.js +2 -2
  64. package/lib/{index-BFct3S32.js → index-7-KCQK-x.js} +2 -2
  65. package/lib/{index-ixs381n-.js → index-9ObpINp4.js} +4 -4
  66. package/lib/{index-m62aT4IR.js → index-B_fzHjxk.js} +111 -93
  67. package/lib/{index-g6Twdelv.js → index-BtuW12KL.js} +22 -22
  68. package/lib/{index-CZe2VX28.js → index-CJKFedQi.js} +31 -31
  69. package/lib/{index-Bc8gi9FH.js → index-CYn62h8x.js} +33 -33
  70. package/lib/{index-Cu2uHOuh.js → index-C_0J5P9M.js} +11 -10
  71. package/lib/{index-DIcomki-.js → index-DYEcdkUF.js} +19 -19
  72. package/lib/{index-BumPE6cF.js → index-Db_ZDrEr.js} +13 -13
  73. package/lib/store/useDrawerStore.d.ts +2 -2
  74. package/lib/store/useEntityStore.d.ts +5 -5
  75. package/lib/store/usePendingStore.d.ts +2 -2
  76. package/lib/store.js +1 -1
  77. package/lib/theme.js +1 -1
  78. package/lib/types/actions/index.d.ts +14 -14
  79. package/lib/types/common/index.d.ts +80 -76
  80. package/lib/types/connection/index.d.ts +3 -3
  81. package/lib/types/data-flow/index.d.ts +15 -15
  82. package/lib/types/destinations/index.d.ts +2 -2
  83. package/lib/types/instrumentation-rules/index.d.ts +28 -28
  84. package/lib/types/signals/index.d.ts +5 -5
  85. package/lib/types/sources/index.d.ts +7 -7
  86. package/lib/types.js +164 -159
  87. package/lib/{useSourceSelectionFormData-BY6B70Kf.js → useSourceSelectionFormData-BnlRp8m3.js} +40 -40
  88. package/lib/{useTransition-Dfxjcy-C.js → useTransition-CFmm4scp.js} +23 -23
  89. package/package.json +10 -10
  90. 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 TIER {
21
- COMMUNITY = "community",
22
- CLOUD = "cloud",
23
- ONPREM = "onprem"
20
+ export declare enum Tier {
21
+ Community = "community",
22
+ Cloud = "cloud",
23
+ Onprem = "onprem"
24
24
  }
25
- export declare enum PLATFORM_TYPE {
26
- K8S = "k8s",
27
- VM = "vm"
25
+ export declare enum PlatformType {
26
+ K8s = "k8s",
27
+ Vm = "vm"
28
28
  }
29
- export declare enum PROGRAMMING_LANGUAGES {
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
- NO_CONTAINERS = "no containers",// language detection completed but no containers found or they are ignored
51
- NO_RUNNING_PODS = "no running pods"
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 CRUD {
54
- CREATE = "Create",
55
- READ = "Read",
56
- UPDATE = "Update",
57
- DELETE = "Delete"
53
+ export declare enum Crud {
54
+ Create = "Create",
55
+ Read = "Read",
56
+ Update = "Update",
57
+ Delete = "Delete"
58
58
  }
59
- export declare enum ENTITY_TYPES {
60
- SOURCE = "source",
61
- DESTINATION = "destination",
62
- ACTION = "action",
63
- INSTRUMENTATION_RULE = "rule"
59
+ export declare enum EntityTypes {
60
+ Source = "source",
61
+ Destination = "destination",
62
+ Action = "action",
63
+ InstrumentationRule = "instrumentation rule"
64
64
  }
65
- export declare enum FIELD_TYPES {
66
- INPUT = "input",
67
- MULTI_INPUT = "multiInput",
68
- MULTI_TABLED_INPUT = "multiTabledInput",// not used by dests, but is in form components
69
- KEY_VALUE_PAIR = "keyValuePairs",
70
- TEXTAREA = "textarea",
71
- DROPDOWN = "dropdown",
72
- CHECKBOX = "checkbox",
73
- TOGGLE = "toggle"
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 CRD_TYPES {
76
- ODIGOS_CONFIGURATION = "OdigosConfiguration",
77
- COLLECTORS_GROUP = "CollectorsGroup",
78
- SOURCE = "Source",
79
- INSTRUMENTATION_CONFIG = "InstrumentationConfig",
80
- INSTRUMENTATION_INSTANCE = "InstrumentationInstance",
81
- DESTINATION = "Destination",
82
- INSTRUMENTATION_RULE = "InstrumentationRule",
83
- PROCESSOR = "Processor",
84
- ADD_CLUSTER_INFO = "AddClusterInfo",
85
- DELETE_ATTTRIBUTE = "DeleteAttribute",
86
- RENAME_ATTRIBUTE = "RenameAttribute",
87
- PII_MASKING = "PiiMasking",
88
- ERROR_SAMPLER = "ErrorSampler",
89
- LATENCY_SAMPLER = "LatencySampler",
90
- PROBABILISTIC_SAMPLER = "ProbabilisticSampler"
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 NOTIFICATION_TYPE {
93
- WARNING = "warning",
94
- ERROR = "error",
95
- SUCCESS = "success",
96
- INFO = "info",
97
- DEFAULT = "default"
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 OTHER_STATUS {
100
- LOADING = "loading",
101
- DISABLED = "disabled"
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: NOTIFICATION_TYPE | OTHER_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: NOTIFICATION_TYPE;
116
+ type: StatusType;
113
117
  title?: string;
114
118
  message?: string;
115
119
  crdType?: string;
@@ -1,7 +1,7 @@
1
- import { NOTIFICATION_TYPE, PLATFORM_TYPE } from '../common';
1
+ import { StatusType, PlatformType } from '../common';
2
2
  export interface Connection {
3
3
  id: string;
4
- type?: PLATFORM_TYPE;
4
+ type?: PlatformType;
5
5
  name?: string;
6
- status: NOTIFICATION_TYPE;
6
+ status: StatusType;
7
7
  }
@@ -1,18 +1,18 @@
1
- export declare enum NODE_TYPES {
2
- HEADER = "header",
3
- ADD = "add",
4
- BASE = "base",
5
- EDGED = "edged",
6
- FRAME = "frame",
7
- SCROLL = "scroll",
8
- SKELETON = "skeleton"
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 EDGE_TYPES {
11
- LABELED = "labeled"
10
+ export declare enum EdgeTypes {
11
+ Labeled = "labeled"
12
12
  }
13
- export declare enum ADD_NODE_TYPES {
14
- ADD_RULE = "addRule",
15
- ADD_SOURCE = "addSource",
16
- ADD_ACTION = "addAction",
17
- ADD_DESTINATION = "addDestination"
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, FIELD_TYPES } from '../common';
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: FIELD_TYPES;
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 INSTRUMENTATION_RULE_TYPE {
4
- PAYLOAD_COLLECTION = "PayloadCollection",
5
- CODE_ATTRIBUTES = "CodeAttributes",
6
- UNKNOWN_TYPE = "UnknownType"
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: INSTRUMENTATION_RULE_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 PAYLOAD_COLLECTION_KEY_TYPES {
38
- HTTP_REQUEST = "httpRequest",
39
- HTTP_RESPONSE = "httpResponse",
40
- DB_QUERY = "dbQuery",
41
- MESSAGING = "messaging"
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
- [PAYLOAD_COLLECTION_KEY_TYPES.HTTP_REQUEST]?: HttpPayloadCollection | null;
45
- [PAYLOAD_COLLECTION_KEY_TYPES.HTTP_RESPONSE]?: HttpPayloadCollection | null;
46
- [PAYLOAD_COLLECTION_KEY_TYPES.DB_QUERY]?: DbQueryPayloadCollection | null;
47
- [PAYLOAD_COLLECTION_KEY_TYPES.MESSAGING]?: MessagingPayloadCollection | null;
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 CODE_ATTRIBUTES_KEY_TYPES {
50
- COLUMN = "column",
51
- FILE_PATH = "filePath",
52
- FUNCTION = "function",
53
- LINE_NUMBER = "lineNumber",
54
- NAMESPACE = "namespace",
55
- STACKTRACE = "stacktrace"
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
- [CODE_ATTRIBUTES_KEY_TYPES.COLUMN]?: boolean | null;
59
- [CODE_ATTRIBUTES_KEY_TYPES.FILE_PATH]?: boolean | null;
60
- [CODE_ATTRIBUTES_KEY_TYPES.FUNCTION]?: boolean | null;
61
- [CODE_ATTRIBUTES_KEY_TYPES.LINE_NUMBER]?: boolean | null;
62
- [CODE_ATTRIBUTES_KEY_TYPES.NAMESPACE]?: boolean | null;
63
- [CODE_ATTRIBUTES_KEY_TYPES.STACKTRACE]?: boolean | null;
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: INSTRUMENTATION_RULE_TYPE;
66
+ type: InstrumentationRuleType;
67
67
  icon: SVG;
68
68
  label: string;
69
69
  description?: string;
@@ -1,9 +1,9 @@
1
- export declare enum SIGNAL_TYPE {
2
- LOGS = "logs",
3
- METRICS = "metrics",
4
- TRACES = "traces"
1
+ export declare enum SignalType {
2
+ Logs = "logs",
3
+ Metrics = "metrics",
4
+ Traces = "traces"
5
5
  }
6
6
  export interface MonitorsOption {
7
- id: SIGNAL_TYPE;
7
+ id: SignalType;
8
8
  value: string;
9
9
  }
@@ -1,13 +1,13 @@
1
- import { type Condition, PROGRAMMING_LANGUAGES } from '../common';
2
- export declare enum K8S_RESOURCE_KIND {
3
- DEPLOYMENT = "Deployment",
4
- DAEMON_SET = "DaemonSet",
5
- STATEFUL_SET = "StatefulSet"
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: K8S_RESOURCE_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: PROGRAMMING_LANGUAGES;
18
+ language: ProgrammingLanguages;
19
19
  runtimeVersion: string;
20
20
  instrumented: boolean;
21
21
  instrumentationMessage: string;