@odigos/ui-kit 0.0.15 → 0.0.16
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 +10 -0
- package/lib/components/data-tab/index.d.ts +18 -6
- package/lib/components/icon-group/index.d.ts +1 -0
- package/lib/components.js +8 -8
- package/lib/constants.js +3 -3
- package/lib/containers/data-flow-actions-menu/filters/index.d.ts +0 -3
- package/lib/containers/data-flow-actions-menu/index.d.ts +0 -3
- package/lib/containers/dropdowns/namespace-dropdown/index.d.ts +0 -3
- package/lib/containers/source-modal/index.d.ts +1 -3
- package/lib/containers/source-selection-form/fast/list/index.d.ts +0 -1
- package/lib/containers/source-selection-form/index.d.ts +1 -3
- package/lib/containers/source-selection-form/simple/controls/index.d.ts +0 -2
- package/lib/containers/source-selection-form/simple/list/index.d.ts +0 -1
- package/lib/containers/table-cell-conditions/index.d.ts +1 -0
- package/lib/containers.js +109 -48
- package/lib/data/destinations/index.d.ts +1 -1
- package/lib/functions/get-destination-icon/index.d.ts +5 -1
- package/lib/functions.js +7 -17
- package/lib/hooks/useSourceSelectionFormData.d.ts +1 -2
- package/lib/hooks.js +5 -5
- package/lib/icons/destinations/app-dynamics-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-cloudwatch-logo/aws-cloudwatch-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/aws-cloudwatch-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-s3-logo/aws-s3-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/aws-s3-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-xray-logo/aws-xray-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/aws-xray-logo/index.d.ts +2 -0
- package/lib/icons/destinations/axiom-logo/axiom-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/axiom-logo/index.d.ts +2 -0
- package/lib/icons/destinations/better-stack-logo/better-stack-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/better-stack-logo/index.d.ts +2 -0
- package/lib/icons/destinations/blob-storage-logo/blob-storage-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/blob-storage-logo/index.d.ts +2 -0
- package/lib/icons/destinations/causely-logo/causely-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/causely-logo/index.d.ts +2 -0
- package/lib/icons/destinations/chronosphere-logo/chronosphere-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/chronosphere-logo/index.d.ts +2 -0
- package/lib/icons/destinations/clickhouse-logo/clickhouse-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/clickhouse-logo/index.d.ts +2 -0
- package/lib/icons/destinations/coralogix-logo/coralogix-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/coralogix-logo/index.d.ts +2 -0
- package/lib/icons/destinations/dash0-logo/dash0-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/dash0-logo/index.d.ts +2 -0
- package/lib/icons/destinations/datadog-logo/datadog-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/datadog-logo/index.d.ts +2 -0
- package/lib/icons/destinations/dynatrace-logo/dynatrace-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/dynatrace-logo/index.d.ts +2 -0
- package/lib/icons/destinations/elastic-apm-logo/elastic-apm-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/elastic-apm-logo/index.d.ts +2 -0
- package/lib/icons/destinations/elastic-search-logo/elastic-search-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/elastic-search-logo/index.d.ts +2 -0
- package/lib/icons/destinations/gigapipe-logo/gigapipe-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/gigapipe-logo/index.d.ts +2 -0
- package/lib/icons/destinations/google-cloud-platform-logo/google-cloud-platform-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/google-cloud-platform-logo/index.d.ts +2 -0
- package/lib/icons/destinations/google-cloud-storage-logo/google-cloud-storage-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/google-cloud-storage-logo/index.d.ts +2 -0
- package/lib/icons/destinations/grafana-logo/grafana-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/grafana-logo/index.d.ts +2 -0
- package/lib/icons/destinations/groundcover-logo/groundcover-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/groundcover-logo/index.d.ts +2 -0
- package/lib/icons/destinations/honeycomb-logo/honeycomb-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/honeycomb-logo/index.d.ts +2 -0
- package/lib/icons/destinations/hyperdx-logo/hyperdx-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/hyperdx-logo/index.d.ts +2 -0
- package/lib/icons/destinations/index.d.ts +46 -0
- package/lib/icons/destinations/instana-logo/index.d.ts +2 -0
- package/lib/icons/destinations/instana-logo/instana-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/jaeger-logo/index.d.ts +2 -0
- package/lib/icons/destinations/jaeger-logo/jaeger-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/kafka-logo/kafka-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/kloudmate-logo/index.d.ts +2 -0
- package/lib/icons/destinations/kloudmate-logo/kloudmate-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/last9-logo/index.d.ts +2 -0
- package/lib/icons/destinations/last9-logo/last9-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/lightstep-logo/index.d.ts +2 -0
- package/lib/icons/destinations/lightstep-logo/lightstep-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/logzio-logo/index.d.ts +2 -0
- package/lib/icons/destinations/logzio-logo/logzio-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/loki-logo/index.d.ts +2 -0
- package/lib/icons/destinations/loki-logo/loki-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/lumigo-logo/index.d.ts +2 -0
- package/lib/icons/destinations/lumigo-logo/lumigo-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/middleware-logo/index.d.ts +2 -0
- package/lib/icons/destinations/middleware-logo/middleware-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/new-relic-logo/index.d.ts +2 -0
- package/lib/icons/destinations/new-relic-logo/new-relic-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/open-telemetry-logo/index.d.ts +2 -0
- package/lib/icons/destinations/open-telemetry-logo/open-telemetry-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/ops-verse-logo/index.d.ts +2 -0
- package/lib/icons/destinations/ops-verse-logo/ops-verse-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/prometheus-logo/index.d.ts +2 -0
- package/lib/icons/destinations/prometheus-logo/prometheus-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/qryn-logo/index.d.ts +2 -0
- package/lib/icons/destinations/qryn-logo/qryn-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/quickwit-logo/index.d.ts +2 -0
- package/lib/icons/destinations/quickwit-logo/quickwit-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/sentry-logo/index.d.ts +2 -0
- package/lib/icons/destinations/sentry-logo/sentry-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/signoz-logo/index.d.ts +2 -0
- package/lib/icons/destinations/signoz-logo/signoz-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/splunk-logo/index.d.ts +2 -0
- package/lib/icons/destinations/splunk-logo/splunk-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/sumo-logic-logo/index.d.ts +2 -0
- package/lib/icons/destinations/sumo-logic-logo/sumo-logic-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/tempo-logo/index.d.ts +2 -0
- package/lib/icons/destinations/tempo-logo/tempo-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/traceloop-logo/index.d.ts +2 -0
- package/lib/icons/destinations/traceloop-logo/traceloop-logo.stories.d.ts +8 -0
- package/lib/icons/destinations/uptrace-logo/index.d.ts +2 -0
- package/lib/icons/destinations/uptrace-logo/uptrace-logo.stories.d.ts +8 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/overview/namespaces-icon/index.d.ts +2 -0
- package/lib/icons/overview/namespaces-icon/namespaces-icon.stories.d.ts +8 -0
- package/lib/icons/programming-languages/index.d.ts +0 -1
- package/lib/icons.js +29 -5
- package/lib/{index-CYn62h8x.js → index-CKtl8KxE.js} +2 -2
- package/lib/{index-Db_ZDrEr.js → index-CLOUNx6Z.js} +1 -1
- package/lib/{index-zMKRaKMY.js → index-D6cZdmUs.js} +40 -32
- package/lib/index-DB8Djrsy.js +487 -0
- package/lib/{index-3KUV6Vlt.js → index-DH2zLaey.js} +5 -2
- package/lib/{index-BtuW12KL.js → index-DiEc-llU.js} +68 -5
- package/lib/{index-DYEcdkUF.js → index-IvGLauAo.js} +49 -37
- package/lib/{index-CJKFedQi.js → index-lL1o2K_5.js} +2 -2
- package/lib/store/useEntityStore.d.ts +4 -2
- package/lib/store/useSetupStore.d.ts +2 -3
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/destinations/index.d.ts +50 -3
- package/lib/types.js +53 -1
- package/lib/{useSourceSelectionFormData-BnlRp8m3.js → useSourceSelectionFormData-R_uK7F7W.js} +6 -4
- package/lib/{useTransition-CFmm4scp.js → useTransition-hWYVBuSi.js} +2 -2
- package/package.json +12 -12
- package/lib/index-BjJpYtF1.js +0 -42
- package/lib/containers/data-flow-actions-menu/{data-flow.stories.d.ts → data-flow-actions-menu.stories.d.ts} +0 -0
- package/lib/icons/{programming-languages/kafka-logo/kafka-logo.stories.d.ts → destinations/app-dynamics-logo/app-dynamics-logo.stories.d.ts} +0 -0
- package/lib/icons/{programming-languages → destinations}/kafka-logo/index.d.ts +0 -0
- package/lib/{index-9ObpINp4.js → index-DM8CZWtL.js} +5 -5
package/lib/icons/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export * from './trace-view-icon/index';
|
|
|
4
4
|
export * from './connections-icon/index';
|
|
5
5
|
export * from './actions-icon/index';
|
|
6
6
|
export * from './destinations-icon/index';
|
|
7
|
+
export * from './namespaces-icon/index';
|
|
7
8
|
export * from './rules-icon/index';
|
|
8
9
|
export * from './sources-icon/index';
|
package/lib/icons.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as AddClusterInfoIcon, C as CodeAttributesIcon, D as DeleteAttributeIcon, K as K8sLogo, O as OdigosLogo, a as PayloadCollectionIcon, P as PiiMaskingIcon, R as RenameAttributeIcon, S as SamplerIcon } from './index-BGlk5VhF.js';
|
|
2
|
-
export { C as CrossCircledIcon, E as EditIcon, F as FilterIcon, a as FolderIcon, K as KeyIcon, N as NotificationIcon, O as OdigosLogoText, b as OverviewIcon, S as SlackLogo, T as TerminalIcon } from './index-
|
|
2
|
+
export { C as CrossCircledIcon, E as EditIcon, F as FilterIcon, a as FolderIcon, K as KeyIcon, N as NotificationIcon, O as OdigosLogoText, b as OverviewIcon, S as SlackLogo, T as TerminalIcon } from './index-DH2zLaey.js';
|
|
3
3
|
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, I as ImageErrorIcon, 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-D_Qn2U89.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Theme from './theme.js';
|
|
6
|
-
export {
|
|
7
|
-
export { C as CPlusPlusLogo, d as CSharpLogo, i as CheckCircledIcon, D as DotnetLogo, E as ElixirLogo, h as ErrorTriangleIcon, G as GoLogo, I as InfoIcon, J as JavaLogo, K as KafkaLogo, L as LogsIcon, g as MetricsIcon, M as MysqlLogo, N as NginxLogo, f as NodejsLogo, c as PhpLogo, P as PostgresLogo, e as PythonLogo, R as RedisLogo, b as RubyLogo, a as RustLogo, S as SwiftLogo, T as TracesIcon, W as WarningTriangleIcon } from './index-
|
|
8
|
-
import './index-
|
|
6
|
+
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';
|
|
7
|
+
export { C as CPlusPlusLogo, d as CSharpLogo, i as CheckCircledIcon, D as DotnetLogo, E as ElixirLogo, h as ErrorTriangleIcon, G as GoLogo, I as InfoIcon, J as JavaLogo, K as KafkaLogo, L as LogsIcon, g as MetricsIcon, M as MysqlLogo, N as NginxLogo, f as NodejsLogo, c as PhpLogo, P as PostgresLogo, e as PythonLogo, R as RedisLogo, b as RubyLogo, a as RustLogo, S as SwiftLogo, T as TracesIcon, W as WarningTriangleIcon } from './index-DM8CZWtL.js';
|
|
8
|
+
import './index-IvGLauAo.js';
|
|
9
9
|
import './types.js';
|
|
10
10
|
import 'styled-components';
|
|
11
11
|
|
|
@@ -23,6 +23,30 @@ const CommandIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
23
23
|
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M9.83333 14.6667H7.16667C5.69391 14.6667 4.5 15.8606 4.5 17.3333C4.5 18.8061 5.69391 20 7.16667 20C8.63943 20 9.83333 18.8061 9.83333 17.3333V14.6667ZM9.83333 14.6667H15.1667M9.83333 14.6667V9.33333M15.1667 14.6667H17.8333C19.3061 14.6667 20.5 15.8606 20.5 17.3333C20.5 18.8061 19.3061 20 17.8333 20C16.3606 20 15.1667 18.8061 15.1667 17.3333V14.6667ZM15.1667 14.6667V9.33333M15.1667 9.33333V6.66667C15.1667 5.19391 16.3606 4 17.8333 4C19.3061 4 20.5 5.19391 20.5 6.66667C20.5 8.13943 19.3061 9.33333 17.8333 9.33333H15.1667ZM15.1667 9.33333H9.83333M9.83333 9.33333H7.16667C5.69391 9.33333 4.5 8.13943 4.5 6.66667C4.5 5.19391 5.69391 4 7.16667 4C8.63943 4 9.83333 5.19391 9.83333 6.66667V9.33333Z' })));
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
+
const GoogleCloudStorageLogo = ({ size = 16, fill, rotate = 0, onClick }) => {
|
|
27
|
+
return (React.createElement("svg", { width: size, height: size * (65 / 81), viewBox: '0 0 81 65', xmlns: 'http://www.w3.org/2000/svg', fill: '#ffffff', fillRule: 'evenodd', stroke: '#000000', strokeLinecap: 'round', strokeLinejoin: 'round', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
28
|
+
React.createElement("defs", null,
|
|
29
|
+
React.createElement("path", { id: 'gcs-1', d: 'M52 14c0-3.324 2.676-6 6-6h0c3.324 0 6 2.676 6 6h0c0 3.324-2.676 6-6 6h0c-3.324 0-6-2.676-6-6z' })),
|
|
30
|
+
React.createElement("g", { stroke: 'none', fillRule: 'nonzero' },
|
|
31
|
+
React.createElement("path", { d: 'M0 0h80v28H0z', fill: fill || '#aecbfa' }),
|
|
32
|
+
React.createElement("path", { d: 'M72 0h8v28h-8z', fill: fill || '#669df6' }),
|
|
33
|
+
React.createElement("path", { d: 'M80 0h-8v28l8-28z', fill: fill || '#4285f4' }),
|
|
34
|
+
React.createElement("path", { d: 'M0 0h8v28H0z', fill: fill || '#669df6' }),
|
|
35
|
+
React.createElement("path", { d: 'M16 12h24v4H16z' }),
|
|
36
|
+
React.createElement("use", { xlinkHref: '#C' }),
|
|
37
|
+
React.createElement("path", { d: 'M0 36h80v28H0z', fill: fill || '#aecbfa' }),
|
|
38
|
+
React.createElement("path", { d: 'M72 36h8v28h-8z', fill: fill || '#669df6' }),
|
|
39
|
+
React.createElement("path", { d: 'M80 36h-8v28l8-28z', fill: fill || '#4285f4' }),
|
|
40
|
+
React.createElement("path", { d: 'M0 36h8v28H0z', fill: fill || '#669df6' }),
|
|
41
|
+
React.createElement("path", { d: 'M16 48h24v4H16z' }),
|
|
42
|
+
React.createElement("use", { xlinkHref: '#gcs-1', y: '36' }))));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const SentryLogo = ({ size = 16, fill, rotate = 0, onClick }) => {
|
|
46
|
+
return (React.createElement("svg", { width: size, height: size * (227 / 256), viewBox: '0 0 256 227', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
47
|
+
React.createElement("path", { fill: fill || '#362D59', d: 'M148.367708,12.4025287 C144.036807,5.21480737 136.258026,0.820118864 127.866362,0.820118864 C119.474697,0.820118864 111.695916,5.21480737 107.365016,12.4025287 L73.6403017,70.165071 C126.066153,96.3390588 160.689085,148.341727 164.615024,206.806542 L140.93597,206.806542 C137.017513,156.694333 106.874845,112.396698 61.6982677,90.3588968 L30.4849684,144.32869 C55.8497707,155.704426 73.6778379,179.211206 77.7918243,206.704035 L23.4120041,206.704035 C22.1018479,206.611361 20.9266153,205.864669 20.2861278,204.71799 C19.6456403,203.571311 19.6261529,202.179068 20.2342955,201.014912 L35.3027847,175.388229 C30.1976229,171.128798 24.3630321,167.829476 18.0816541,165.65009 L3.16692493,191.276772 C0.0305635285,196.656417 -0.818661742,203.068719 0.809210488,209.079324 C2.43708272,215.08993 6.40620885,220.197261 11.8287436,223.258872 C15.3657216,225.251729 19.3523095,226.310116 23.4120041,226.334074 L97.8831433,226.334074 C100.696274,191.620878 85.1423372,157.966047 56.8804514,137.614499 L68.7199787,117.113153 C104.398813,141.618242 124.473737,183.151896 121.510945,226.334074 L184.603837,226.334074 C187.593899,160.904124 155.557278,98.8221906 100.497065,63.3483734 L124.432386,22.3456815 C125.542508,20.4856859 127.944329,19.8680747 129.81399,20.9618406 C132.530418,22.4481882 233.807067,199.169791 235.703442,201.219925 C236.383476,202.439289 236.358897,203.929352 235.639016,205.125624 C234.919136,206.321896 233.614065,207.041397 232.218213,207.011555 L207.821611,207.011555 C208.129131,213.537817 208.129131,220.046994 207.821611,226.539592 L232.32072,226.539592 C238.604421,226.580218 244.643414,224.105731 249.091568,219.667205 C253.539722,215.228679 256.027289,209.195062 256,202.911286 C256.002825,198.802186 254.905596,194.767215 252.822066,191.225519 L148.367708,12.4025287 Z' })));
|
|
48
|
+
};
|
|
49
|
+
|
|
26
50
|
const LightOffIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
27
51
|
const theme = Theme.useTheme();
|
|
28
52
|
const fill = f || theme.text.secondary;
|
|
@@ -79,4 +103,4 @@ const ErrorRoundIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
79
103
|
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M7 8.33673V6.00339M7 10.3055V10.3061M12.25 7.97266C12.25 10.8722 9.89949 13.2227 7 13.2227C4.1005 13.2227 1.75 10.8721 1.75 7.97265C1.75 5.07316 4.10051 2.72266 7 2.72266C9.8995 2.72266 12.25 5.07316 12.25 7.97266Z' })));
|
|
80
104
|
};
|
|
81
105
|
|
|
82
|
-
export { CodeBracketsIcon, CommandIcon, ConnectionsIcon, ErrorRoundIcon, LightOffIcon, LightOnIcon, MoonIcon, ServiceMapIcon, SunIcon, TraceViewIcon };
|
|
106
|
+
export { CodeBracketsIcon, CommandIcon, ConnectionsIcon, ErrorRoundIcon, GoogleCloudStorageLogo, LightOffIcon, LightOnIcon, MoonIcon, SentryLogo, ServiceMapIcon, SunIcon, TraceViewIcon };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ProgrammingLanguages, SignalType, StatusType } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-IvGLauAo.js';
|
|
4
4
|
import 'styled-components';
|
|
5
5
|
import { O as OdigosLogo } from './index-BGlk5VhF.js';
|
|
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, I as InfoIcon, W as WarningTriangleIcon, h as ErrorTriangleIcon, i as CheckCircledIcon } from './index-
|
|
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, I as InfoIcon, W as WarningTriangleIcon, h as ErrorTriangleIcon, i as CheckCircledIcon } from './index-DM8CZWtL.js';
|
|
7
7
|
|
|
8
8
|
const capitalizeFirstLetter = (string) => {
|
|
9
9
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
@@ -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, O as OdigosLogo, C as CodeAttributesIcon, a as PayloadCollectionIcon } from './index-BGlk5VhF.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-IvGLauAo.js';
|
|
5
5
|
import 'styled-components';
|
|
6
6
|
|
|
7
7
|
const getActionIcon = (type) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useState, useRef, forwardRef, useEffect, createElement, useCallback, useMemo, Fragment } from 'react';
|
|
2
2
|
import { StatusType, OtherStatus, SortDirection, ProgrammingLanguages, EntityTypes } from './types.js';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-IvGLauAo.js';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import Theme from './theme.js';
|
|
6
|
-
import { b as getStatusIcon, r as removeEmptyValuesFromObject, s as safeJsonStringify, f as flattenObjectKeys, m as mapConditions, c as capitalizeFirstLetter, g as getMonitorIcon, p as parseJsonStringToPrettyString, a as getProgrammingLanguageIcon, d as splitCamelString } from './index-
|
|
6
|
+
import { b as getStatusIcon, r as removeEmptyValuesFromObject, s as safeJsonStringify, f as flattenObjectKeys, m as mapConditions, c as capitalizeFirstLetter, g as getMonitorIcon, p as parseJsonStringToPrettyString, a as getProgrammingLanguageIcon, d as splitCamelString } from './index-CKtl8KxE.js';
|
|
7
7
|
import { s as safeJsonParse, i as isEmpty } from './index-BZS1ijMm.js';
|
|
8
8
|
import { M as MinusIcon, f as CheckIcon, L as ListIcon, C as CodeIcon, E as ExtendArrowIcon, I as ImageErrorIcon, c as SortArrowsIcon, a as CopyIcon, b as NotebookIcon, X as XIcon, d as EyeClosedIcon, e as EyeOpenIcon, N as NoDataIcon, g as CrossIcon, S as SearchIcon, T as TrashIcon, P as PlusIcon, A as ArrowIcon } from './index-D_Qn2U89.js';
|
|
9
|
-
import { M as MONITORS_OPTIONS } from './index-
|
|
10
|
-
import { u as useContainerSize, a as useCopy, g as useTransition, d as useKeyDown, e as useOnClickOutside } from './useTransition-
|
|
9
|
+
import { M as MONITORS_OPTIONS } from './index-lL1o2K_5.js';
|
|
10
|
+
import { u as useContainerSize, a as useCopy, g as useTransition, d as useKeyDown, e as useOnClickOutside } from './useTransition-hWYVBuSi.js';
|
|
11
11
|
import ReactDOM from 'react-dom';
|
|
12
12
|
import require$$0 from 'babel-runtime/helpers/extends';
|
|
13
13
|
import require$$1$1 from 'babel-runtime/core-js/object/get-prototype-of';
|
|
@@ -16,7 +16,7 @@ import require$$3 from 'babel-runtime/helpers/createClass';
|
|
|
16
16
|
import require$$4 from 'babel-runtime/helpers/possibleConstructorReturn';
|
|
17
17
|
import require$$5 from 'babel-runtime/helpers/inherits';
|
|
18
18
|
import require$$1 from 'object-assign';
|
|
19
|
-
import { I as InfoIcon } from './index-
|
|
19
|
+
import { I as InfoIcon } from './index-DM8CZWtL.js';
|
|
20
20
|
|
|
21
21
|
const TextWrapper$2 = styled.div `
|
|
22
22
|
color: ${({ $color, theme }) => $color || theme.text.secondary};
|
|
@@ -3725,20 +3725,20 @@ const formatLineForPrettyMode = (line) => {
|
|
|
3725
3725
|
const getComponentsFromPropertyString = (propertyString, theme) => {
|
|
3726
3726
|
const [text, ...rest] = propertyString.split('@');
|
|
3727
3727
|
const components = rest
|
|
3728
|
-
?.map((c) => {
|
|
3728
|
+
?.map((c, i) => {
|
|
3729
3729
|
if (!c.includes('='))
|
|
3730
3730
|
return null;
|
|
3731
3731
|
const [type, value] = c.split('=');
|
|
3732
3732
|
switch (type) {
|
|
3733
3733
|
case 'tooltip':
|
|
3734
|
-
return React.createElement(Tooltip, { key:
|
|
3734
|
+
return React.createElement(Tooltip, { key: `${type}-${value}-${i}`, withIcon: true, text: value });
|
|
3735
3735
|
case 'status':
|
|
3736
3736
|
if (value === 'none')
|
|
3737
|
-
return React.createElement("div", { key:
|
|
3737
|
+
return React.createElement("div", { key: `${type}-${value}-${i}`, style: { width: 16, height: 16 } });
|
|
3738
3738
|
let Icon = getStatusIcon(value, theme);
|
|
3739
3739
|
if (!Icon)
|
|
3740
3740
|
Icon = getStatusIcon(StatusType.Warning, theme);
|
|
3741
|
-
return React.createElement(Icon, { key:
|
|
3741
|
+
return React.createElement(Icon, { key: `${type}-${value}-${i}` });
|
|
3742
3742
|
default:
|
|
3743
3743
|
console.warn('unexpected component type!', type);
|
|
3744
3744
|
return null;
|
|
@@ -3749,11 +3749,11 @@ const getComponentsFromPropertyString = (propertyString, theme) => {
|
|
|
3749
3749
|
};
|
|
3750
3750
|
const PrettyJsonCode = ({ darkMode, str }) => {
|
|
3751
3751
|
const theme = Theme.useTheme();
|
|
3752
|
-
const renderEmptyRows = (count
|
|
3752
|
+
const renderEmptyRows = (count, idx) => {
|
|
3753
3753
|
const rows = new Array(count).fill((props) => (React.createElement(TableRow$1, { ...props },
|
|
3754
3754
|
React.createElement(TableData, null),
|
|
3755
3755
|
React.createElement(TableData, null))));
|
|
3756
|
-
return (React.createElement(Fragment, null, rows.map((R, i) => (React.createElement(R, { key:
|
|
3756
|
+
return (React.createElement(Fragment, null, rows.map((R, i) => (React.createElement(R, { key: `empty-row-${idx}-${i}`, style: i === 0 ? { borderBottom: `1px solid ${theme.colors.border}` } : {} })))));
|
|
3757
3757
|
};
|
|
3758
3758
|
return (React.createElement(Highlight2, { theme: darkMode ? themes_exports.palenight : themes_exports.vsLight, language: 'json', code: str }, ({ getLineProps, getTokenProps, tokens }) => (React.createElement(Table$1, null,
|
|
3759
3759
|
React.createElement(TableBody$1, null, tokens.map((line, i) => {
|
|
@@ -3761,7 +3761,7 @@ const PrettyJsonCode = ({ darkMode, str }) => {
|
|
|
3761
3761
|
const lineProps = getLineProps({ line: formattedLine });
|
|
3762
3762
|
if (formattedLine.length === 1 && formattedLine[0].types[0] === 'property') {
|
|
3763
3763
|
return (React.createElement(Fragment, { key: `line-${i}` },
|
|
3764
|
-
renderEmptyRows(),
|
|
3764
|
+
renderEmptyRows(2, i),
|
|
3765
3765
|
React.createElement(TableRow$1, { ...lineProps },
|
|
3766
3766
|
React.createElement(TableData, null,
|
|
3767
3767
|
React.createElement(Title$c, null, formattedLine[0].content)),
|
|
@@ -4140,11 +4140,11 @@ const IconWrapper$3 = styled.div `
|
|
|
4140
4140
|
height: ${({ $size }) => $size}px;
|
|
4141
4141
|
border-radius: 100%;
|
|
4142
4142
|
`;
|
|
4143
|
-
const IconGroup = ({ icons = [], iconSrcs = [], status, size = 36 }) => {
|
|
4143
|
+
const IconGroup = ({ icons = [], iconSrcs = [], status, size = 36, id }) => {
|
|
4144
4144
|
const theme = Theme.useTheme();
|
|
4145
4145
|
const imgSize = icons.length === 1 || iconSrcs.length === 1 ? size - 16 : size / 3;
|
|
4146
4146
|
if (iconSrcs.length > 0) {
|
|
4147
|
-
return React.createElement(IconGroup, { icons: iconSrcs.map((src) => (() => React.createElement(ImageControlled, { src: src, size: imgSize }))), status: status, size: size });
|
|
4147
|
+
return React.createElement(IconGroup, { icons: iconSrcs.map((src) => (() => React.createElement(ImageControlled, { src: src, size: imgSize }))), status: status, size: size, id: id });
|
|
4148
4148
|
}
|
|
4149
4149
|
if (icons.length === 1) {
|
|
4150
4150
|
return React.createElement(IconWrapped, { icon: icons[0], status: status, size: size });
|
|
@@ -4167,7 +4167,7 @@ const IconGroup = ({ icons = [], iconSrcs = [], status, size = 36 }) => {
|
|
|
4167
4167
|
return (React.createElement(Container$n, { "$status": status, "$size": size }, icons.map((Icon, idx) => {
|
|
4168
4168
|
if (idx > 2)
|
|
4169
4169
|
return null;
|
|
4170
|
-
return (React.createElement(IconWrapper$3, { key:
|
|
4170
|
+
return (React.createElement(IconWrapper$3, { key: `icon-${id}-${idx}`, "$size": imgSize * 1.5, "$top": getTopPosition(idx), "$left": getLeftPosition(idx), "$zIndex": idx + 1 }, idx === 2 && icons.length > 3 ? (React.createElement(Text, { family: 'secondary', color: theme.text.dark_grey, size: imgSize * 0.8 },
|
|
4171
4171
|
"+",
|
|
4172
4172
|
icons.length - 2)) : (React.createElement(Icon, { size: imgSize }))));
|
|
4173
4173
|
})));
|
|
@@ -4298,7 +4298,7 @@ const ActionsWrapper = styled.div `
|
|
|
4298
4298
|
const HoverText = styled(Text) `
|
|
4299
4299
|
margin-right: 16px;
|
|
4300
4300
|
`;
|
|
4301
|
-
const DataTab = ({ title, subTitle, icon, icons, iconSrc, iconSrcs
|
|
4301
|
+
const DataTab = ({ title, subTitle, hoverText, onClick, renderActions, iconProps: { icon, icons, iconSrc, iconSrcs } = {}, visualProps: { status, faded, bgColor, bgColorHover, isActive, monitors, monitorsWithLabels } = {}, checkboxProps: { withCheckbox, isCheckboxDisabled, isChecked, onCheckboxChange } = {}, extendableProps: { withExtend, isExtended, renderExtended } = {}, ...props }) => {
|
|
4302
4302
|
const [extend, setExtend] = useState(isExtended || false);
|
|
4303
4303
|
const [maxWidth, setMaxWidth] = useState(0);
|
|
4304
4304
|
const [isTitleOverflowed, setIsTitleOverflowed] = useState(false);
|
|
@@ -4342,7 +4342,7 @@ const DataTab = ({ title, subTitle, icon, icons, iconSrc, iconSrcs, hoverText, s
|
|
|
4342
4342
|
React.createElement(FlexRow, { "$gap": 8 },
|
|
4343
4343
|
React.createElement(FlexRow, { "$gap": 16 },
|
|
4344
4344
|
withCheckbox && React.createElement(Checkbox, { value: isChecked, onChange: onCheckboxChange, disabled: isCheckboxDisabled }),
|
|
4345
|
-
!!icons?.length || !!iconSrcs?.length ? (React.createElement(IconGroup, { icons: icons, iconSrcs: iconSrcs, status: status })) : !!icon || !!iconSrc ? (React.createElement(IconWrapped, { icon: icon, src: iconSrc, status: status })) : null),
|
|
4345
|
+
!!icons?.length || !!iconSrcs?.length ? (React.createElement(IconGroup, { icons: icons, iconSrcs: iconSrcs, status: status, id: `${title}-${subTitle}` })) : !!icon || !!iconSrc ? (React.createElement(IconWrapped, { icon: icon, src: iconSrc, status: status })) : null),
|
|
4346
4346
|
React.createElement(FlexColumn, { "$gap": 4 },
|
|
4347
4347
|
React.createElement(Tooltip, { text: isTitleOverflowed ? title : undefined, withIcon: false },
|
|
4348
4348
|
React.createElement(Title$b, { ref: titleRef, "$maxWidth": maxWidth }, title)),
|
|
@@ -4446,7 +4446,7 @@ const TableRow = ({ index, columns, cells, onClick, status, faded }) => {
|
|
|
4446
4446
|
if (!rowCell)
|
|
4447
4447
|
return null;
|
|
4448
4448
|
const { value, textColor, withTooltip, icon, component: Component } = rowCell;
|
|
4449
|
-
return (React.createElement(Td, { key:
|
|
4449
|
+
return (React.createElement(Td, { key: `table-row-${key}-${value}-${index}-${i}`, "$isFirst": i === 0 },
|
|
4450
4450
|
!!icon ? (React.createElement(IconWrapped, { icon: icon })) : !!Component ? (React.createElement(Component, null)) : (React.createElement(Tooltip, { text: withTooltip && !!value ? String(value) : '' },
|
|
4451
4451
|
React.createElement(RowText, { "$color": textColor }, !isEmpty(value) ? value : '-'))),
|
|
4452
4452
|
i === 0 && React.createElement(RowBackground, { "$height": containerHeight, "$width": containerWidth, "$top": containerHeight * index, "$hovered": isHovered, "$status": status })));
|
|
@@ -4659,13 +4659,16 @@ const renderValue = (type, value) => {
|
|
|
4659
4659
|
});
|
|
4660
4660
|
return (React.createElement(DataTab, { title: containerName, subTitle: `${processes.length} Instrumented Processes`, renderActions: () => {
|
|
4661
4661
|
return React.createElement(Status, { status: StatusType.Info, title: 'Instrumentation Device', subtitle: !actualDevice.subTitle || actualDevice.subTitle === '[]' ? 'none' : actualDevice.subTitle, withBorder: true });
|
|
4662
|
-
},
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4662
|
+
}, extendableProps: {
|
|
4663
|
+
isExtended: !!processes.length,
|
|
4664
|
+
renderExtended: () => {
|
|
4665
|
+
return (React.createElement(FlexColStretched, { "$gap": 24 }, processes.map((process, idx) => (React.createElement(FlexColStretched, { key: `process-${idx}`, "$gap": 8 },
|
|
4666
|
+
React.createElement(DescribeRow, { title: `Instrumented Process #${idx + 1}`, subTitle: process.message || '', value: {
|
|
4667
|
+
text: process.health === StatusType.Success ? 'healthy' : 'unhealthy',
|
|
4668
|
+
status: process.health,
|
|
4669
|
+
} }),
|
|
4670
|
+
process.identifyingAttributes.map(({ name, value }) => (React.createElement(DescribeRow, { key: `describe-${name}-${value}`, title: name, subTitle: '', value: { text: value, status: undefined } }))))))));
|
|
4671
|
+
},
|
|
4669
4672
|
} }));
|
|
4670
4673
|
}
|
|
4671
4674
|
case DataCardFieldTypes.SourceContainer: {
|
|
@@ -4678,12 +4681,17 @@ const renderValue = (type, value) => {
|
|
|
4678
4681
|
otelDistroName: '',
|
|
4679
4682
|
});
|
|
4680
4683
|
const awaitingInstrumentation = !instrumented && !instrumentationMessage;
|
|
4681
|
-
return (React.createElement(DataTab, { title: containerName, subTitle: `${language === ProgrammingLanguages.JavaScript ? 'Node.js' : capitalizeFirstLetter(language)}` + (!!runtimeVersion ? ` • Runtime Version: ${runtimeVersion}` : ''),
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4684
|
+
return (React.createElement(DataTab, { title: containerName, subTitle: `${language === ProgrammingLanguages.JavaScript ? 'Node.js' : capitalizeFirstLetter(language)}` + (!!runtimeVersion ? ` • Runtime Version: ${runtimeVersion}` : ''), iconProps: {
|
|
4685
|
+
icon: getProgrammingLanguageIcon(language),
|
|
4686
|
+
}, extendableProps: {
|
|
4687
|
+
isExtended: !!instrumentationMessage,
|
|
4688
|
+
renderExtended: () => {
|
|
4689
|
+
if (!!instrumentationMessage) {
|
|
4690
|
+
return (React.createElement(AlignCenter, null,
|
|
4691
|
+
React.createElement(Status, { status: StatusType.Info, title: splitCamelString(instrumentationMessage) })));
|
|
4692
|
+
}
|
|
4693
|
+
return null;
|
|
4694
|
+
},
|
|
4687
4695
|
}, renderActions: () => {
|
|
4688
4696
|
return (React.createElement(Status, { status: instrumented ? StatusType.Success : awaitingInstrumentation ? StatusType.Warning : StatusType.Error, title: instrumented ? 'Instrumented' : awaitingInstrumentation ? 'Instrumenting...' : 'Uninstrumented', subtitle: otelDistroName, withIcon: true, withBorder: true }));
|
|
4689
4697
|
} }));
|
|
@@ -6002,7 +6010,7 @@ const Segment = ({ options = [], selected, setSelected }) => {
|
|
|
6002
6010
|
return (React.createElement(Container$6, null,
|
|
6003
6011
|
options.map(({ icon: Icon, label, value, selectedBgColor }, idx) => {
|
|
6004
6012
|
const isSelected = selected === value;
|
|
6005
|
-
return (React.createElement(Button, { key:
|
|
6013
|
+
return (React.createElement(Button, { key: `segment-${label || idx}-${value}`, ref: isSelected ? selectedRef : undefined, "$isFirstItem": idx === 0, "$isLastItem": idx === options.length - 1, onClick: () => {
|
|
6006
6014
|
setSelected(value);
|
|
6007
6015
|
setBgColor(selectedBgColor || '');
|
|
6008
6016
|
} },
|