@odigos/ui-kit 0.0.19 → 0.0.21
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 +19 -0
- package/lib/components.js +7 -7
- package/lib/constants.js +3 -3
- package/lib/containers.js +679 -778
- package/lib/functions.js +12 -6
- package/lib/hooks.js +5 -5
- package/lib/icons/destinations/alauda-logo/index.d.ts +2 -0
- package/lib/icons/destinations/alibaba-cloud-logo/index.d.ts +2 -0
- package/lib/icons/destinations/bonree-logo/index.d.ts +2 -0
- package/lib/icons/destinations/checkly-logo/index.d.ts +2 -0
- package/lib/icons/destinations/greptime-logo/index.d.ts +2 -0
- package/lib/icons/destinations/index.d.ts +12 -0
- package/lib/icons/destinations/observe-logo/index.d.ts +2 -0
- package/lib/icons/destinations/one-uptime-logo/index.d.ts +2 -0
- package/lib/icons/destinations/open-observe-logo/index.d.ts +2 -0
- package/lib/icons/destinations/oracle-logo/index.d.ts +2 -0
- package/lib/icons/destinations/seq-logo/index.d.ts +2 -0
- package/lib/icons/destinations/telemetry-hub-logo/index.d.ts +2 -0
- package/lib/icons/destinations/tingyun-logo/index.d.ts +2 -0
- package/lib/icons.js +2 -2
- package/lib/{index-WSle42rz.js → index-BfUUVS8N.js} +1 -1
- package/lib/{index-DSzybApb.js → index-C48Fe7Pl.js} +15 -3
- package/lib/{index-CD_BQJCD.js → index-C7Y1tYdc.js} +1 -1
- package/lib/{index-DB8Djrsy.js → index-CksKgOxY.js} +161 -1
- package/lib/{index-BFRz3l_w.js → index-D3sp5Hx7.js} +2 -2
- package/lib/{index-CvuVOtkr.js → index-Dboulcny.js} +5 -5
- package/lib/{index-BazfJyRh.js → index-DiTtXTRm.js} +6 -10
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/destinations/index.d.ts +12 -0
- package/lib/types.js +12 -0
- package/lib/{useSourceSelectionFormData-_2PggiXn.js → useSourceSelectionFormData-CrKof314.js} +3 -3
- package/lib/{useTransition-bXMKBfST.js → useTransition-D0ykOLrk.js} +2 -2
- package/package.json +19 -19
package/lib/functions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as capitalizeFirstLetter, f as flattenObjectKeys, g as getMonitorIcon, a as getProgrammingLanguageIcon, b as getStatusIcon, m as mapConditions, p as parseJsonStringToPrettyString, r as removeEmptyValuesFromObject, s as safeJsonStringify, d as splitCamelString } from './index-
|
|
2
|
-
export { c as compareCondition, f as filterActions, a as filterDestinations, b as filterSources, d as formatBytes, g as getConditionsBooleans, h as getContainersIcons, e as getContainersInstrumentedCount, i as getDestinationIcon, j as getEntityIcon, k as getEntityLabel, l as getMetricForEntity, m as getPlatformIcon, n as getPlatformLabel, o as getValueForRange, p as getWorkloadId, q as isOverTime, s as sleep } from './index-
|
|
3
|
-
export { g as getActionIcon, a as getInstrumentationRuleIcon } from './index-
|
|
4
|
-
export {
|
|
1
|
+
export { c as capitalizeFirstLetter, f as flattenObjectKeys, g as getMonitorIcon, a as getProgrammingLanguageIcon, b as getStatusIcon, m as mapConditions, p as parseJsonStringToPrettyString, r as removeEmptyValuesFromObject, s as safeJsonStringify, d as splitCamelString } from './index-BfUUVS8N.js';
|
|
2
|
+
export { c as compareCondition, f as filterActions, a as filterDestinations, b as filterSources, d as formatBytes, g as getConditionsBooleans, h as getContainersIcons, e as getContainersInstrumentedCount, i as getDestinationIcon, j as getEntityIcon, k as getEntityLabel, l as getMetricForEntity, m as getPlatformIcon, n as getPlatformLabel, o as getValueForRange, p as getWorkloadId, q as isOverTime, s as sleep } from './index-C48Fe7Pl.js';
|
|
3
|
+
export { g as getActionIcon, a as getInstrumentationRuleIcon } from './index-C7Y1tYdc.js';
|
|
4
|
+
export { k as getEntityId } from './index-DiTtXTRm.js';
|
|
5
5
|
export { g as getIdFromSseTarget } from './index-7-KCQK-x.js';
|
|
6
6
|
import { EntityTypes } from './types.js';
|
|
7
7
|
export { i as isEmpty, s as safeJsonParse } from './index-BZS1ijMm.js';
|
|
@@ -10,7 +10,7 @@ import 'styled-components';
|
|
|
10
10
|
import './index-DGel4E-Z.js';
|
|
11
11
|
import './theme.js';
|
|
12
12
|
import './index-BsH_egEe.js';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-CksKgOxY.js';
|
|
14
14
|
|
|
15
15
|
const cleanObjectEmptyStringsValues = (obj) => {
|
|
16
16
|
const cleanArray = (arr) => arr.filter((item) => {
|
|
@@ -77,6 +77,12 @@ const getSseTargetFromId = (id, type) => {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
const isTimeElapsed = (originDate, difference = 0) => {
|
|
81
|
+
const now = new Date().getTime();
|
|
82
|
+
const compareWith = new Date(originDate).getTime();
|
|
83
|
+
return now - compareWith >= difference;
|
|
84
|
+
};
|
|
85
|
+
|
|
80
86
|
const stringifyNonStringValues = (obj) => {
|
|
81
87
|
return Object.entries(obj).reduce((acc, [key, value]) => {
|
|
82
88
|
// Check if the value is already a string
|
|
@@ -91,4 +97,4 @@ const stringifyNonStringValues = (obj) => {
|
|
|
91
97
|
}, {});
|
|
92
98
|
};
|
|
93
99
|
|
|
94
|
-
export { cleanObjectEmptyStringsValues, deepClone, getSseTargetFromId, stringifyNonStringValues };
|
|
100
|
+
export { cleanObjectEmptyStringsValues, deepClone, getSseTargetFromId, isTimeElapsed, stringifyNonStringValues };
|
package/lib/hooks.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { u as useActionFormData, a as useClickNode, b as useClickNotification, c as useDestinationFormData, d as useSourceFormData, e as useSourceSelectionFormData } from './useSourceSelectionFormData-
|
|
2
|
-
export { u as useContainerSize, a as useCopy, b as useGenericForm, c as useInstrumentationRuleFormData, d as useKeyDown, e as useOnClickOutside, f as useTimeAgo, g as useTransition } from './useTransition-
|
|
1
|
+
export { u as useActionFormData, a as useClickNode, b as useClickNotification, c as useDestinationFormData, d as useSourceFormData, e as useSourceSelectionFormData } from './useSourceSelectionFormData-CrKof314.js';
|
|
2
|
+
export { u as useContainerSize, a as useCopy, b as useGenericForm, c as useInstrumentationRuleFormData, d as useKeyDown, e as useOnClickOutside, f as useTimeAgo, g as useTransition } from './useTransition-D0ykOLrk.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-DiTtXTRm.js';
|
|
6
6
|
import 'styled-components';
|
|
7
7
|
import './index-BZS1ijMm.js';
|
|
8
|
-
import './index-
|
|
9
|
-
import './index-
|
|
8
|
+
import './index-D3sp5Hx7.js';
|
|
9
|
+
import './index-C7Y1tYdc.js';
|
|
10
10
|
import './index-DGel4E-Z.js';
|
|
11
11
|
import './theme.js';
|
|
12
12
|
import './index-C_0J5P9M.js';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './alauda-logo/index';
|
|
2
|
+
export * from './alibaba-cloud-logo/index';
|
|
1
3
|
export * from './app-dynamics-logo/index';
|
|
2
4
|
export * from './aws-cloudwatch-logo/index';
|
|
3
5
|
export * from './aws-s3-logo/index';
|
|
@@ -5,7 +7,9 @@ export * from './aws-xray-logo/index';
|
|
|
5
7
|
export * from './axiom-logo/index';
|
|
6
8
|
export * from './better-stack-logo/index';
|
|
7
9
|
export * from './blob-storage-logo/index';
|
|
10
|
+
export * from './bonree-logo/index';
|
|
8
11
|
export * from './causely-logo/index';
|
|
12
|
+
export * from './checkly-logo/index';
|
|
9
13
|
export * from './chronosphere-logo/index';
|
|
10
14
|
export * from './clickhouse-logo/index';
|
|
11
15
|
export * from './coralogix-logo/index';
|
|
@@ -18,6 +22,7 @@ export * from './gigapipe-logo/index';
|
|
|
18
22
|
export * from './google-cloud-platform-logo/index';
|
|
19
23
|
export * from './google-cloud-storage-logo/index';
|
|
20
24
|
export * from './grafana-logo/index';
|
|
25
|
+
export * from './greptime-logo/index';
|
|
21
26
|
export * from './groundcover-logo/index';
|
|
22
27
|
export * from './honeycomb-logo/index';
|
|
23
28
|
export * from './hyperdx-logo/index';
|
|
@@ -32,15 +37,22 @@ export * from './loki-logo/index';
|
|
|
32
37
|
export * from './lumigo-logo/index';
|
|
33
38
|
export * from './middleware-logo/index';
|
|
34
39
|
export * from './new-relic-logo/index';
|
|
40
|
+
export * from './observe-logo/index';
|
|
41
|
+
export * from './one-uptime-logo/index';
|
|
42
|
+
export * from './open-observe-logo/index';
|
|
35
43
|
export * from './open-telemetry-logo/index';
|
|
36
44
|
export * from './ops-verse-logo/index';
|
|
45
|
+
export * from './oracle-logo/index';
|
|
37
46
|
export * from './prometheus-logo/index';
|
|
38
47
|
export * from './qryn-logo/index';
|
|
39
48
|
export * from './quickwit-logo/index';
|
|
40
49
|
export * from './sentry-logo/index';
|
|
50
|
+
export * from './seq-logo/index';
|
|
41
51
|
export * from './signoz-logo/index';
|
|
42
52
|
export * from './splunk-logo/index';
|
|
43
53
|
export * from './sumo-logic-logo/index';
|
|
54
|
+
export * from './telemetry-hub-logo/index';
|
|
44
55
|
export * from './tempo-logo/index';
|
|
56
|
+
export * from './tingyun-logo/index';
|
|
45
57
|
export * from './traceloop-logo/index';
|
|
46
58
|
export * from './uptrace-logo/index';
|
package/lib/icons.js
CHANGED
|
@@ -4,8 +4,8 @@ export { C as CrossCircledIcon, E as EditIcon, F as FilterIcon, K as KeyIcon, N
|
|
|
4
4
|
export { A as ArrowIcon, f as CheckIcon, C as CodeIcon, a as CopyIcon, g as CrossIcon, E as ExtendArrowIcon, d as EyeClosedIcon, e as EyeOpenIcon, L as ListIcon, M as MinusIcon, N as NoDataIcon, b as NotebookIcon, P as PlusIcon, S as SearchIcon, c as SortArrowsIcon, T as TrashIcon, X as XIcon } from './index-BJxaoI0G.js';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import Theme from './theme.js';
|
|
7
|
-
export {
|
|
8
|
-
import './index-
|
|
7
|
+
export { a2 as ActionsIcon, A as AlaudaLogo, a as AlibabaCloudLogo, b as AppDynamicsLogo, c as AwsCloudwatchLogo, d as AwsS3Logo, e as AwsXrayLogo, f as AxiomLogo, B as BetterStackLogo, g as BlobStorageLogo, h as BonreeLogo, C as CauselyLogo, i as ChecklyLogo, j as ChronosphereLogo, k as ClickhouseLogo, l as CoralogixLogo, D as Dash0Logo, m as DatadogLogo, a3 as DestinationsIcon, n as DynatraceLogo, E as ElasticApmLogo, o as ElasticSearchLogo, G as GigapipeLogo, p as GoogleCloudPlatformLogo, q as GrafanaLogo, r as GreptimeLogo, s as GroundcoverLogo, H as HoneycombLogo, t as HyperDxLogo, I as InstanaLogo, J as JaegerLogo, K as KloudmateLogo, L as Last9Logo, u as LightstepLogo, v as LogzioLogo, w as LokiLogo, x as LumigoLogo, M as MiddlewareLogo, a4 as NamespacesIcon, N as NewRelicLogo, O as ObserveLogo, y as OneUptimeLogo, z as OpenObserveLogo, F as OpenTelemetryLogo, P as OpsVerseLogo, Q as OracleLogo, R as PrometheusLogo, S as QrynLogo, T as QuickwitLogo, a5 as RulesIcon, U as SeqLogo, W as SignozLogo, a6 as SourcesIcon, X as SplunkLogo, Y as SumoLogicLogo, Z as TelemetryHubLogo, _ as TempoLogo, $ as TingyunLogo, a0 as TraceloopLogo, a1 as UptraceLogo, V as VmLogo } from './index-CksKgOxY.js';
|
|
8
|
+
import './index-DiTtXTRm.js';
|
|
9
9
|
import './types.js';
|
|
10
10
|
import 'styled-components';
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProgrammingLanguages, SignalType, StatusType } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-DiTtXTRm.js';
|
|
4
4
|
import 'styled-components';
|
|
5
5
|
import { I as ImageErrorIcon } from './index-DGel4E-Z.js';
|
|
6
6
|
import { K as KafkaLogo, R as RedisLogo, P as PostgresLogo, N as NginxLogo, M as MysqlLogo, E as ElixirLogo, S as SwiftLogo, a as RustLogo, b as RubyLogo, c as PhpLogo, C as CPlusPlusLogo, d as CSharpLogo, D as DotnetLogo, e as PythonLogo, f as NodejsLogo, G as GoLogo, J as JavaLogo, T as TracesIcon, g as MetricsIcon, L as LogsIcon, O as OdigosLogo, I as InfoIcon, W as WarningTriangleIcon, h as ErrorTriangleIcon, i as CheckCircledIcon } from './index-BsH_egEe.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StatusType, OtherStatus, DestinationTypes, EntityTypes, PlatformType } from './types.js';
|
|
2
|
-
import { a as getProgrammingLanguageIcon } from './index-
|
|
2
|
+
import { a as getProgrammingLanguageIcon } from './index-BfUUVS8N.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-DiTtXTRm.js';
|
|
5
5
|
import 'styled-components';
|
|
6
|
-
import {
|
|
6
|
+
import { e as AwsXrayLogo, a1 as UptraceLogo, a0 as TraceloopLogo, $ as TingyunLogo, _ as TempoLogo, Z as TelemetryHubLogo, Y as SumoLogicLogo, X as SplunkLogo, W as SignozLogo, U as SeqLogo, d as AwsS3Logo, T as QuickwitLogo, G as GigapipeLogo, S as QrynLogo, R as PrometheusLogo, F as OpenTelemetryLogo, Q as OracleLogo, P as OpsVerseLogo, z as OpenObserveLogo, y as OneUptimeLogo, O as ObserveLogo, N as NewRelicLogo, M as MiddlewareLogo, x as LumigoLogo, w as LokiLogo, v as LogzioLogo, u as LightstepLogo, L as Last9Logo, K as KloudmateLogo, J as JaegerLogo, I as InstanaLogo, t as HyperDxLogo, H as HoneycombLogo, s as GroundcoverLogo, r as GreptimeLogo, q as GrafanaLogo, p as GoogleCloudPlatformLogo, o as ElasticSearchLogo, E as ElasticApmLogo, n as DynatraceLogo, m as DatadogLogo, D as Dash0Logo, l as CoralogixLogo, c as AwsCloudwatchLogo, k as ClickhouseLogo, j as ChronosphereLogo, i as ChecklyLogo, C as CauselyLogo, h as BonreeLogo, B as BetterStackLogo, g as BlobStorageLogo, f as AxiomLogo, b as AppDynamicsLogo, a as AlibabaCloudLogo, A as AlaudaLogo, a5 as RulesIcon, a2 as ActionsIcon, a3 as DestinationsIcon, a6 as SourcesIcon, a4 as NamespacesIcon, V as VmLogo } from './index-CksKgOxY.js';
|
|
7
7
|
import { K as KafkaLogo, O as OdigosLogo } from './index-BsH_egEe.js';
|
|
8
8
|
import { K as K8sLogo } from './index-DGel4E-Z.js';
|
|
9
9
|
|
|
@@ -105,11 +105,15 @@ const getContainersIcons = (containers) => {
|
|
|
105
105
|
|
|
106
106
|
const getDestinationIcon = (type, forceFromUrl) => {
|
|
107
107
|
const LOGOS = {
|
|
108
|
+
[DestinationTypes.Alauda]: AlaudaLogo,
|
|
109
|
+
[DestinationTypes.AlibabaCloud]: AlibabaCloudLogo,
|
|
108
110
|
[DestinationTypes.AppDynamics]: AppDynamicsLogo,
|
|
109
111
|
[DestinationTypes.Axiom]: AxiomLogo,
|
|
110
112
|
[DestinationTypes.AzureBlob]: BlobStorageLogo,
|
|
111
113
|
[DestinationTypes.BetterStack]: BetterStackLogo,
|
|
114
|
+
[DestinationTypes.Bonree]: BonreeLogo,
|
|
112
115
|
[DestinationTypes.Causely]: CauselyLogo,
|
|
116
|
+
[DestinationTypes.Checkly]: ChecklyLogo,
|
|
113
117
|
[DestinationTypes.Chronosphere]: ChronosphereLogo,
|
|
114
118
|
[DestinationTypes.ClickHouse]: ClickhouseLogo,
|
|
115
119
|
[DestinationTypes.CloudWatch]: AwsCloudwatchLogo,
|
|
@@ -123,6 +127,7 @@ const getDestinationIcon = (type, forceFromUrl) => {
|
|
|
123
127
|
[DestinationTypes.GrafanaCloudLoki]: GrafanaLogo,
|
|
124
128
|
[DestinationTypes.GrafanaCloudPrometheus]: GrafanaLogo,
|
|
125
129
|
[DestinationTypes.GrafanaCloudTempo]: GrafanaLogo,
|
|
130
|
+
[DestinationTypes.Greptime]: GreptimeLogo,
|
|
126
131
|
[DestinationTypes.Groundcover]: GroundcoverLogo,
|
|
127
132
|
[DestinationTypes.Honeycomb]: HoneycombLogo,
|
|
128
133
|
[DestinationTypes.HyperDX]: HyperDxLogo,
|
|
@@ -137,7 +142,11 @@ const getDestinationIcon = (type, forceFromUrl) => {
|
|
|
137
142
|
[DestinationTypes.Lumigo]: LumigoLogo,
|
|
138
143
|
[DestinationTypes.Middleware]: MiddlewareLogo,
|
|
139
144
|
[DestinationTypes.NewRelic]: NewRelicLogo,
|
|
145
|
+
[DestinationTypes.Observe]: ObserveLogo,
|
|
146
|
+
[DestinationTypes.OneUptime]: OneUptimeLogo,
|
|
147
|
+
[DestinationTypes.OpenObserve]: OpenObserveLogo,
|
|
140
148
|
[DestinationTypes.Opsverse]: OpsVerseLogo,
|
|
149
|
+
[DestinationTypes.Oracle]: OracleLogo,
|
|
141
150
|
[DestinationTypes.OTLP]: OpenTelemetryLogo,
|
|
142
151
|
[DestinationTypes.OTLPHttp]: OpenTelemetryLogo,
|
|
143
152
|
[DestinationTypes.Prometheus]: PrometheusLogo,
|
|
@@ -145,10 +154,13 @@ const getDestinationIcon = (type, forceFromUrl) => {
|
|
|
145
154
|
[DestinationTypes.QrynOss]: GigapipeLogo,
|
|
146
155
|
[DestinationTypes.Quickwit]: QuickwitLogo,
|
|
147
156
|
[DestinationTypes.S3]: AwsS3Logo,
|
|
157
|
+
[DestinationTypes.Seq]: SeqLogo,
|
|
148
158
|
[DestinationTypes.Signoz]: SignozLogo,
|
|
149
159
|
[DestinationTypes.Splunk]: SplunkLogo,
|
|
150
160
|
[DestinationTypes.SumoLogic]: SumoLogicLogo,
|
|
161
|
+
[DestinationTypes.TelemetryHub]: TelemetryHubLogo,
|
|
151
162
|
[DestinationTypes.Tempo]: TempoLogo,
|
|
163
|
+
[DestinationTypes.Tingyun]: TingyunLogo,
|
|
152
164
|
[DestinationTypes.Traceloop]: TraceloopLogo,
|
|
153
165
|
[DestinationTypes.Uptrace]: UptraceLogo,
|
|
154
166
|
[DestinationTypes.XRay]: AwsXrayLogo,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionType, InstrumentationRuleType } from './types.js';
|
|
2
2
|
import { S as SamplerIcon, P as PiiMaskingIcon, R as RenameAttributeIcon, D as DeleteAttributeIcon, A as AddClusterInfoIcon, K as K8sLogo, I as ImageErrorIcon, C as CodeAttributesIcon, a as PayloadCollectionIcon } from './index-DGel4E-Z.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-DiTtXTRm.js';
|
|
5
5
|
import 'styled-components';
|
|
6
6
|
|
|
7
7
|
const getActionIcon = (type) => {
|