@odigos/ui-kit 0.0.20 → 0.0.22

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 (35) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/lib/components.js +7 -14
  3. package/lib/constants.js +3 -3
  4. package/lib/containers.js +1021 -875
  5. package/lib/functions.js +12 -6
  6. package/lib/hooks.js +5 -5
  7. package/lib/icons/destinations/alauda-logo/index.d.ts +2 -0
  8. package/lib/icons/destinations/alibaba-cloud-logo/index.d.ts +2 -0
  9. package/lib/icons/destinations/bonree-logo/index.d.ts +2 -0
  10. package/lib/icons/destinations/checkly-logo/index.d.ts +2 -0
  11. package/lib/icons/destinations/greptime-logo/index.d.ts +2 -0
  12. package/lib/icons/destinations/index.d.ts +12 -0
  13. package/lib/icons/destinations/observe-logo/index.d.ts +2 -0
  14. package/lib/icons/destinations/one-uptime-logo/index.d.ts +2 -0
  15. package/lib/icons/destinations/open-observe-logo/index.d.ts +2 -0
  16. package/lib/icons/destinations/oracle-logo/index.d.ts +2 -0
  17. package/lib/icons/destinations/seq-logo/index.d.ts +2 -0
  18. package/lib/icons/destinations/telemetry-hub-logo/index.d.ts +2 -0
  19. package/lib/icons/destinations/tingyun-logo/index.d.ts +2 -0
  20. package/lib/icons.js +2 -2
  21. package/lib/{index-BoH4B5XC.js → index-3mlRUlHD.js} +656 -1396
  22. package/lib/{index-WSle42rz.js → index-BfUUVS8N.js} +1 -1
  23. package/lib/{index-DSzybApb.js → index-C48Fe7Pl.js} +15 -3
  24. package/lib/{index-CD_BQJCD.js → index-C7Y1tYdc.js} +1 -1
  25. package/lib/{index-DB8Djrsy.js → index-CksKgOxY.js} +161 -1
  26. package/lib/{index-BFRz3l_w.js → index-D3sp5Hx7.js} +2 -2
  27. package/lib/{index-BazfJyRh.js → index-DiTtXTRm.js} +6 -10
  28. package/lib/store.js +1 -1
  29. package/lib/theme/index.d.ts +3 -3
  30. package/lib/theme.js +1 -7
  31. package/lib/types/destinations/index.d.ts +12 -0
  32. package/lib/types.js +12 -0
  33. package/lib/{useSourceSelectionFormData-_2PggiXn.js → useSourceSelectionFormData-CrKof314.js} +3 -3
  34. package/lib/{useTransition-bXMKBfST.js → useTransition-D0ykOLrk.js} +2 -2
  35. package/package.json +26 -26
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-WSle42rz.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-DSzybApb.js';
3
- export { g as getActionIcon, a as getInstrumentationRuleIcon } from './index-CD_BQJCD.js';
4
- export { j as getEntityId, k as isTimeElapsed } from './index-BazfJyRh.js';
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-DB8Djrsy.js';
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-_2PggiXn.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-bXMKBfST.js';
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-BazfJyRh.js';
5
+ import './index-DiTtXTRm.js';
6
6
  import 'styled-components';
7
7
  import './index-BZS1ijMm.js';
8
- import './index-BFRz3l_w.js';
9
- import './index-CD_BQJCD.js';
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';
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const AlaudaLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const AlibabaCloudLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const BonreeLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const ChecklyLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const GreptimeLogo: SVG;
@@ -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';
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const ObserveLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const OneUptimeLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const OpenObserveLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const OracleLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const SeqLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const TelemetryHubLogo: SVG;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const TingyunLogo: SVG;
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 { y as ActionsIcon, A as AppDynamicsLogo, a as AwsCloudwatchLogo, b as AwsS3Logo, c as AwsXrayLogo, d as AxiomLogo, B as BetterStackLogo, e as BlobStorageLogo, C as CauselyLogo, f as ChronosphereLogo, g as ClickhouseLogo, h as CoralogixLogo, D as Dash0Logo, i as DatadogLogo, z as DestinationsIcon, j as DynatraceLogo, E as ElasticApmLogo, k as ElasticSearchLogo, G as GigapipeLogo, l as GoogleCloudPlatformLogo, m as GrafanaLogo, n as GroundcoverLogo, H as HoneycombLogo, o as HyperDxLogo, I as InstanaLogo, J as JaegerLogo, K as KloudmateLogo, L as Last9Logo, p as LightstepLogo, q as LogzioLogo, r as LokiLogo, s as LumigoLogo, M as MiddlewareLogo, F as NamespacesIcon, N as NewRelicLogo, O as OpenTelemetryLogo, t as OpsVerseLogo, P as PrometheusLogo, Q as QrynLogo, u as QuickwitLogo, R as RulesIcon, S as SignozLogo, W as SourcesIcon, v as SplunkLogo, w as SumoLogicLogo, T as TempoLogo, x as TraceloopLogo, U as UptraceLogo, V as VmLogo } from './index-DB8Djrsy.js';
8
- import './index-BazfJyRh.js';
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