@odigos/ui-kit 0.0.10 → 0.0.11-1.patch-dev.361
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/.devcontainer/README.md +26 -0
- package/.devcontainer/devcontainer.json +21 -0
- package/CHANGELOG.md +849 -0
- package/README.md +3 -2
- package/VERSIONING.md +228 -0
- package/lib/chunks/ui-components-f51830d4.js +1605 -0
- package/lib/chunks/vendor-1dea551d.js +1 -0
- package/lib/components/auto-complete-input/index.d.ts +3 -0
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/code/index.d.ts +1 -1
- package/lib/components/data-card/data-card-fields/index.d.ts +19 -19
- package/lib/components/data-card/index.d.ts +8 -6
- package/lib/components/data-finger/index.d.ts +12 -0
- package/lib/components/data-tab/index.d.ts +25 -10
- 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 +3 -2
- package/lib/components/drawer/drawer-footer/index.d.ts +3 -0
- package/lib/components/drawer/drawer-header/index.d.ts +6 -4
- package/lib/components/drawer/index.d.ts +2 -2
- package/lib/components/dropdown/index.d.ts +6 -2
- package/lib/components/error-boundary/index.d.ts +1 -2
- package/lib/components/field-error/index.d.ts +1 -2
- package/lib/components/field-label/index.d.ts +2 -0
- package/lib/components/icon-button/index.d.ts +2 -0
- package/lib/components/icon-group/index.d.ts +3 -2
- package/lib/components/icon-wrapped/index.d.ts +2 -2
- package/lib/components/index.d.ts +56 -48
- package/lib/components/input/index.d.ts +2 -1
- package/lib/components/input-table/index.d.ts +4 -11
- package/lib/components/input-table/map-columns-to-fields/index.d.ts +15 -0
- package/lib/components/input-table/types.d.ts +15 -0
- package/lib/components/interactive-table/index.d.ts +9 -8
- package/lib/components/interactive-table/table-row.d.ts +13 -0
- package/lib/components/key-value-input-list/index.d.ts +4 -0
- 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 +3 -2
- package/lib/components/popup/index.d.ts +18 -0
- package/lib/components/popup-form/index.d.ts +18 -0
- package/lib/components/scroll-x/index.d.ts +10 -0
- package/lib/components/segment/index.d.ts +8 -6
- package/lib/{containers/data-flow-actions-menu → components}/selection-button/index.d.ts +3 -3
- package/lib/components/status/index.d.ts +8 -5
- package/lib/components/stepper/index.d.ts +2 -1
- package/lib/components/styled.d.ts +23 -4
- package/lib/components/tab-list/index.d.ts +17 -0
- package/lib/components/tag/index.d.ts +9 -0
- package/lib/components/text/index.d.ts +16 -3
- package/lib/components/toggle/index.d.ts +2 -1
- package/lib/components/warning-modal/index.d.ts +2 -2
- package/lib/components.js +1 -173
- package/lib/constants/destinations/index.d.ts +18 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/sources/index.d.ts +4 -0
- package/lib/constants/strings/index.d.ts +89 -0
- package/lib/constants.js +1 -13
- package/lib/containers/action-drawer/build-card.d.ts +1 -7
- package/lib/containers/action-drawer/index.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/add-cluster-info.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/delete-attributes.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/error-sampler.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/index.d.ts +3 -3
- package/lib/containers/action-form/custom-fields/k8s-attributes.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/latency-sampler.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/pii-masking.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/probabilistic-sampler.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/rename-attributes.d.ts +2 -2
- package/lib/containers/action-form/custom-fields/service-name-sampler.d.ts +5 -0
- package/lib/containers/action-form/custom-fields/span-attribute-sampler.d.ts +5 -0
- package/lib/containers/await-pipeline/index.d.ts +1 -2
- package/lib/containers/data-flow/helpers/build-action-nodes.d.ts +7 -1
- package/lib/containers/data-flow/helpers/build-destination-nodes.d.ts +7 -1
- package/lib/containers/data-flow/helpers/build-edges.d.ts +2 -2
- package/lib/containers/data-flow/helpers/build-rule-nodes.d.ts +7 -1
- package/lib/containers/data-flow/helpers/get-node-positions.d.ts +2 -2
- package/lib/containers/data-flow/index.d.ts +2 -2
- package/lib/containers/data-flow-actions-menu/add-entity/index.d.ts +2 -3
- package/lib/containers/data-flow-actions-menu/data-stream-select/index.d.ts +9 -0
- package/lib/containers/data-flow-actions-menu/filters/index.d.ts +2 -8
- package/lib/containers/data-flow-actions-menu/index.d.ts +5 -6
- package/lib/containers/data-flow-actions-menu/search/index.d.ts +3 -2
- package/lib/containers/data-flow-actions-menu/search/search-results/builder.d.ts +3 -3
- package/lib/containers/data-flow-actions-menu/search/search-results/index.d.ts +0 -1
- package/lib/containers/data-flow-actions-menu/styled.d.ts +5 -1
- package/lib/containers/data-stream-drawer/index.d.ts +10 -0
- package/lib/containers/data-stream-form/index.d.ts +9 -0
- package/lib/containers/data-stream-modal/index.d.ts +4 -0
- package/lib/containers/data-stream-selection-form/index.d.ts +13 -0
- package/lib/containers/destination-drawer/build-card.d.ts +1 -7
- package/lib/containers/destination-drawer/index.d.ts +2 -5
- package/lib/containers/destination-form/dynamic-fields/index.d.ts +2 -1
- package/lib/containers/destination-form/index.d.ts +2 -5
- package/lib/containers/destination-form/test-connection/index.d.ts +5 -10
- package/lib/containers/destination-modal/choose-destination/destinations-list/index.d.ts +3 -1
- package/lib/containers/destination-modal/choose-destination/index.d.ts +5 -5
- package/lib/containers/destination-modal/index.d.ts +5 -6
- package/lib/containers/destination-selection-form/destination-list/index.d.ts +8 -0
- package/lib/containers/destination-selection-form/index.d.ts +5 -9
- package/lib/containers/dropdowns/{connection-type-dropdown → condition-dropdown}/index.d.ts +5 -5
- package/lib/containers/dropdowns/error-dropdown/index.d.ts +2 -0
- package/lib/containers/dropdowns/index.d.ts +6 -7
- package/lib/containers/dropdowns/kind-dropdown/index.d.ts +2 -0
- package/lib/containers/dropdowns/language-dropdown/index.d.ts +2 -0
- package/lib/containers/dropdowns/namespace-dropdown/index.d.ts +2 -3
- package/lib/containers/index.d.ts +38 -33
- package/lib/containers/instrumentation-rule-drawer/build-card.d.ts +2 -8
- package/lib/containers/instrumentation-rule-form/custom-fields/custom-instrumentation.d.ts +5 -0
- package/lib/containers/instrumentation-rule-form/custom-fields/headers-collection.d.ts +5 -0
- package/lib/containers/instrumentation-rule-form/custom-fields/index.d.ts +2 -2
- package/lib/containers/instrumentation-rule-form/index.d.ts +1 -1
- package/lib/containers/multi-source-control/index.d.ts +2 -0
- package/lib/containers/notification-manager/index.d.ts +1 -2
- package/lib/containers/overview-drawer/index.d.ts +10 -4
- package/lib/containers/service-map/helpers/build-edges.d.ts +10 -0
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +11 -0
- package/lib/containers/service-map/helpers/generate-dag-positions.d.ts +5 -0
- package/lib/containers/service-map/helpers/generate-spiral-grid-position.d.ts +2 -0
- package/lib/containers/service-map/index.d.ts +8 -0
- package/lib/containers/setup-summary/index.d.ts +10 -0
- package/lib/containers/side-nav/index.d.ts +8 -8
- package/lib/containers/slack-invite/index.d.ts +1 -2
- package/lib/containers/source-drawer/build-card.d.ts +1 -6
- package/lib/containers/source-drawer/describe/index.d.ts +1 -1
- package/lib/containers/source-drawer/index.d.ts +7 -8
- package/lib/containers/source-drawer/libraries/index.d.ts +14 -0
- package/lib/containers/source-drawer/odigos-health/index.d.ts +6 -0
- package/lib/containers/source-modal/index.d.ts +3 -9
- package/lib/containers/source-selection-form/index.d.ts +4 -8
- package/lib/containers/source-selection-form/source-list/index.d.ts +8 -0
- package/lib/containers/system-overview/describe/index.d.ts +1 -1
- package/lib/containers/system-settings/index.d.ts +9 -0
- package/lib/containers/system-settings/settings/collector-gateway-settings.d.ts +4 -0
- package/lib/containers/system-settings/settings/collector-node-settings.d.ts +4 -0
- package/lib/containers/system-settings/settings/general-settings.d.ts +4 -0
- package/lib/containers/system-settings/settings/options.d.ts +5 -0
- package/lib/containers/system-settings/settings/rollback-settings.d.ts +4 -0
- package/lib/containers/system-settings/settings/styled.d.ts +8 -0
- package/lib/containers/system-settings/settings/types.d.ts +13 -0
- package/lib/containers/system-settings/settings/ui-settings.d.ts +4 -0
- package/lib/containers/table-cell-conditions/index.d.ts +1 -0
- package/lib/containers/toast-list/index.d.ts +1 -2
- package/lib/containers/toggle-dark-mode/index.d.ts +1 -2
- package/lib/containers/trace-view/build-spans.d.ts +2 -0
- package/lib/containers/trace-view/index.d.ts +9 -0
- package/lib/containers/trace-view/span/index.d.ts +38 -0
- package/lib/containers/trace-view/span-drawer/build-details-card.d.ts +3 -0
- package/lib/containers/trace-view/span-drawer/build-logs-card.d.ts +3 -0
- package/lib/containers/trace-view/span-drawer/build-process-card.d.ts +3 -0
- package/lib/containers/trace-view/span-drawer/build-tags-card.d.ts +3 -0
- package/lib/containers/trace-view/span-drawer/index.d.ts +9 -0
- package/lib/containers.js +289 -15709
- package/lib/functions/clean-object-empty-strings-values/index.d.ts +2 -1
- package/lib/functions/compare-condition/index.d.ts +3 -3
- package/lib/functions/filter-destinations-by-stream/index.d.ts +2 -0
- package/lib/functions/filter-sources-by-stream/index.d.ts +2 -0
- package/lib/functions/flatten-object-keys/index.d.ts +2 -1
- package/lib/functions/format-duration/index.d.ts +1 -0
- package/lib/functions/get-action-icon/index.d.ts +2 -2
- package/lib/functions/get-conditions-booleans/index.d.ts +6 -2
- package/lib/functions/get-destination-icon/index.d.ts +5 -1
- package/lib/functions/get-entity-icon/index.d.ts +2 -2
- package/lib/functions/get-entity-id/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-main-container-language/index.d.ts +2 -0
- 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-recursive-values/index.d.ts +4 -0
- package/lib/functions/get-sse-target-from-id/index.d.ts +2 -2
- package/lib/functions/get-status-icon/index.d.ts +3 -2
- package/lib/functions/get-status-type-from-odigos-health/index.d.ts +2 -0
- package/lib/functions/get-yaml-fields-for-destination/index.d.ts +2 -0
- package/lib/functions/has-unhealthy-instances/index.d.ts +2 -0
- package/lib/functions/index.d.ts +15 -1
- package/lib/functions/is-legal-k8s-label/index.d.ts +1 -0
- package/lib/functions/is-string-a-boolean/index.d.ts +1 -0
- package/lib/functions/is-valid-version/index.d.ts +1 -0
- package/lib/functions/map-destination-fields-for-display/index.d.ts +6 -0
- package/lib/functions/map-exported-signals/index.d.ts +2 -0
- package/lib/functions/numbers-only/index.d.ts +1 -0
- package/lib/functions/parse-boolean-from-string/index.d.ts +1 -0
- package/lib/functions/remove-empty-values-from-object/index.d.ts +2 -1
- package/lib/functions/safe-json-parse/index.d.ts +2 -1
- package/lib/functions/safe-json-stringify/index.d.ts +2 -1
- package/lib/functions/split-camel-string/index.d.ts +1 -1
- package/lib/functions/stringify-non-string-values/index.d.ts +2 -1
- package/lib/functions.js +1 -115
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/useActionFormData.d.ts +2 -2
- package/lib/hooks/useDataStreamFormData.d.ts +12 -0
- package/lib/hooks/useDestinationFormData.d.ts +1 -1
- package/lib/hooks/useGenericForm.d.ts +3 -1
- package/lib/hooks/useInstrumentationRuleFormData.d.ts +3 -6
- package/lib/hooks/usePopup.d.ts +17 -0
- package/lib/hooks/useSessionStorage.d.ts +5 -0
- package/lib/hooks/useSourceFormData.d.ts +2 -5
- package/lib/hooks/useSourceSelectionFormData.d.ts +19 -20
- package/lib/hooks.js +1 -13
- package/lib/icons/actions/index.d.ts +5 -5
- package/lib/icons/brand/index.d.ts +2 -2
- package/lib/icons/common/avatar-icon/index.d.ts +2 -0
- package/lib/icons/common/edited-icon/index.d.ts +2 -0
- package/lib/icons/common/gear-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +30 -20
- package/lib/icons/common/refresh-arrows-icon/index.d.ts +2 -0
- package/lib/icons/common/refresh-left-arrow-icon/index.d.ts +2 -0
- package/lib/icons/common/refresh-right-arrow-icon/index.d.ts +2 -0
- package/lib/icons/common/rotate-arrows-icon/index.d.ts +2 -0
- package/lib/icons/common/user-group-icon/index.d.ts +2 -0
- package/lib/icons/common/user-icon/index.d.ts +2 -0
- package/lib/icons/common/user-settings-icon/index.d.ts +2 -0
- package/lib/icons/compute-platform/index.d.ts +2 -2
- 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/app-dynamics-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-cloudwatch-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-s3-logo/index.d.ts +2 -0
- package/lib/icons/destinations/aws-xray-logo/index.d.ts +2 -0
- package/lib/icons/destinations/axiom-logo/index.d.ts +2 -0
- package/lib/icons/destinations/better-stack-logo/index.d.ts +2 -0
- package/lib/icons/destinations/blob-storage-logo/index.d.ts +2 -0
- package/lib/icons/destinations/bonree-logo/index.d.ts +2 -0
- package/lib/icons/destinations/causely-logo/index.d.ts +2 -0
- package/lib/icons/destinations/checkly-logo/index.d.ts +2 -0
- package/lib/icons/destinations/chronosphere-logo/index.d.ts +2 -0
- package/lib/icons/destinations/clickhouse-logo/index.d.ts +2 -0
- package/lib/icons/destinations/coralogix-logo/index.d.ts +2 -0
- package/lib/icons/destinations/dash0-logo/index.d.ts +2 -0
- package/lib/icons/destinations/datadog-logo/index.d.ts +2 -0
- package/lib/icons/destinations/dynatrace-logo/index.d.ts +2 -0
- package/lib/icons/destinations/elastic-apm-logo/index.d.ts +2 -0
- package/lib/icons/destinations/elastic-search-logo/index.d.ts +2 -0
- package/lib/icons/destinations/gigapipe-logo/index.d.ts +2 -0
- package/lib/icons/destinations/google-cloud-platform-logo/index.d.ts +2 -0
- package/lib/icons/destinations/google-cloud-storage-logo/index.d.ts +2 -0
- package/lib/icons/destinations/grafana-logo/index.d.ts +2 -0
- package/lib/icons/destinations/greptime-logo/index.d.ts +2 -0
- package/lib/icons/destinations/groundcover-logo/index.d.ts +2 -0
- package/lib/icons/destinations/honeycomb-logo/index.d.ts +2 -0
- package/lib/icons/destinations/hyperdx-logo/index.d.ts +2 -0
- package/lib/icons/destinations/index.d.ts +60 -0
- package/lib/icons/destinations/instana-logo/index.d.ts +2 -0
- package/lib/icons/destinations/jaeger-logo/index.d.ts +2 -0
- package/lib/icons/destinations/kloudmate-logo/index.d.ts +2 -0
- package/lib/icons/destinations/last9-logo/index.d.ts +2 -0
- package/lib/icons/destinations/lightstep-logo/index.d.ts +2 -0
- package/lib/icons/destinations/logzio-logo/index.d.ts +2 -0
- package/lib/icons/destinations/loki-logo/index.d.ts +2 -0
- package/lib/icons/destinations/lumigo-logo/index.d.ts +2 -0
- package/lib/icons/destinations/middleware-logo/index.d.ts +2 -0
- package/lib/icons/destinations/new-relic-logo/index.d.ts +2 -0
- package/lib/icons/destinations/observe-logo/index.d.ts +2 -0
- package/lib/icons/destinations/odigos-destination-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/open-telemetry-logo/index.d.ts +2 -0
- package/lib/icons/destinations/ops-verse-logo/index.d.ts +2 -0
- package/lib/icons/destinations/oracle-logo/index.d.ts +2 -0
- package/lib/icons/destinations/prometheus-logo/index.d.ts +2 -0
- package/lib/icons/destinations/qryn-logo/index.d.ts +2 -0
- package/lib/icons/destinations/quickwit-logo/index.d.ts +2 -0
- package/lib/icons/destinations/sentry-logo/index.d.ts +2 -0
- package/lib/icons/destinations/seq-logo/index.d.ts +2 -0
- package/lib/icons/destinations/signoz-logo/index.d.ts +2 -0
- package/lib/icons/destinations/splunk-logo/index.d.ts +2 -0
- package/lib/icons/destinations/sumo-logic-logo/index.d.ts +2 -0
- package/lib/icons/destinations/telemetry-hub-logo/index.d.ts +2 -0
- package/lib/icons/destinations/tempo-logo/index.d.ts +2 -0
- package/lib/icons/destinations/tingyun-logo/index.d.ts +2 -0
- package/lib/icons/destinations/traceloop-logo/index.d.ts +2 -0
- package/lib/icons/destinations/uptrace-logo/index.d.ts +2 -0
- package/lib/icons/destinations/victoria-metrics-logo/index.d.ts +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/instrumentation-rules/custom-instrumentation-icon/index.d.ts +2 -0
- package/lib/icons/instrumentation-rules/headers-collection-icon/index.d.ts +2 -0
- package/lib/icons/instrumentation-rules/index.d.ts +4 -2
- package/lib/icons/math/index.d.ts +4 -2
- package/lib/icons/math/minus-circled-icon/index.d.ts +2 -0
- package/lib/icons/math/plus-circled-icon/index.d.ts +2 -0
- package/lib/icons/monitors/index.d.ts +3 -3
- package/lib/icons/on-off/index.d.ts +6 -6
- package/lib/icons/overview/data-streams-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +10 -8
- package/lib/icons/overview/namespaces-icon/index.d.ts +2 -0
- package/lib/icons/programming-languages/index.d.ts +0 -1
- package/lib/icons/social/index.d.ts +1 -1
- package/lib/icons/status/index.d.ts +8 -8
- package/lib/icons.js +1 -82
- package/lib/mock-data/config/index.d.ts +2 -0
- package/lib/{data → mock-data}/destinations/index.d.ts +1 -1
- package/lib/{data → mock-data}/index.d.ts +4 -0
- package/lib/mock-data/instrumentation-instances/index.d.ts +2 -0
- package/lib/mock-data/service-map/index.d.ts +2 -0
- package/lib/{data → mock-data}/sources/index.d.ts +8 -4
- package/lib/mock-data/traces/index.d.ts +2 -0
- package/lib/snippets/add-button/index.d.ts +8 -0
- package/lib/snippets/copy-text/index.d.ts +7 -0
- package/lib/snippets/edit-button/index.d.ts +7 -0
- package/lib/snippets/index.d.ts +7 -0
- package/lib/snippets/note-back-to-summary/index.d.ts +6 -0
- package/lib/snippets/pod-container/index.d.ts +5 -0
- package/lib/snippets/react-flow/edges/labeled-edge.d.ts +10 -0
- package/lib/{containers/data-flow → snippets/react-flow}/flow.d.ts +2 -0
- package/lib/snippets/react-flow/index.d.ts +13 -0
- package/lib/snippets/react-flow/nodes/add-node.d.ts +11 -0
- package/lib/snippets/react-flow/nodes/base-node.d.ts +21 -0
- package/lib/snippets/react-flow/nodes/edged-node.d.ts +9 -0
- package/lib/snippets/react-flow/nodes/frame-node.d.ts +9 -0
- package/lib/{containers/data-flow → snippets/react-flow}/nodes/header-node.d.ts +5 -5
- package/lib/snippets/react-flow/nodes/map-item-node.d.ts +12 -0
- package/lib/snippets/react-flow/nodes/no-data-node.d.ts +9 -0
- package/lib/snippets/react-flow/nodes/scroll-node.d.ts +15 -0
- package/lib/snippets/react-flow/nodes/skeleton-node.d.ts +8 -0
- package/lib/snippets/source-container/index.d.ts +7 -0
- package/lib/snippets/source-container/override-runtime.d.ts +9 -0
- package/lib/snippets.js +1 -0
- package/lib/store/index.d.ts +2 -0
- package/lib/store/useActiveNodeStore.d.ts +11 -0
- package/lib/store/useDarkMode.d.ts +5 -3
- package/lib/store/useDataStreamStore.d.ts +16 -0
- package/lib/store/useDrawerStore.d.ts +2 -2
- package/lib/store/useEntityStore.d.ts +8 -6
- package/lib/store/useFilterStore.d.ts +5 -2
- package/lib/store/usePendingStore.d.ts +2 -2
- package/lib/store/useSetupStore.d.ts +20 -26
- package/lib/store.js +1 -4
- package/lib/theme/index.d.ts +2 -3
- package/lib/theme/palletes/index.d.ts +2 -105
- package/lib/theme.js +1 -240
- package/lib/types/actions/index.d.ts +154 -68
- package/lib/types/common/index.d.ts +91 -76
- package/lib/types/config/index.d.ts +80 -0
- package/lib/types/data-flow/index.d.ts +17 -15
- package/lib/types/data-streams/index.d.ts +3 -0
- package/lib/types/describe/index.d.ts +7 -3
- package/lib/types/destinations/index.d.ts +89 -9
- package/lib/types/index.d.ts +5 -1
- package/lib/types/instrumentation-instances/index.d.ts +7 -0
- package/lib/types/instrumentation-rules/index.d.ts +65 -36
- package/lib/types/namespaces/index.d.ts +14 -0
- package/lib/types/service-map/index.d.ts +10 -0
- package/lib/types/signals/index.d.ts +5 -5
- package/lib/types/sources/index.d.ts +42 -20
- package/lib/types/traces/index.d.ts +38 -0
- package/lib/types.js +1 -166
- package/package.json +50 -40
- package/lib/components/auto-complete-input/auto-complete-input.stories.d.ts +0 -9
- package/lib/components/badge/badge.stories.d.ts +0 -13
- package/lib/components/button/button.stories.d.ts +0 -9
- package/lib/components/cancel-warning/cancel-warning.stories.d.ts +0 -9
- package/lib/components/checkbox/checkbox.stories.d.ts +0 -9
- package/lib/components/code/code.stories.d.ts +0 -9
- package/lib/components/condition-details/condition-details.stories.d.ts +0 -14
- package/lib/components/data-card/data-card.stories.d.ts +0 -10
- package/lib/components/data-tab/data-tab.stories.d.ts +0 -9
- package/lib/components/delete-warning/delete-warning.stories.d.ts +0 -9
- package/lib/components/describe-row/describe-row.stories.d.ts +0 -9
- package/lib/components/divider/divider.stories.d.ts +0 -9
- package/lib/components/docs-button/docs-button.stories.d.ts +0 -9
- package/lib/components/drawer/drawer.stories.d.ts +0 -10
- package/lib/components/dropdown/dropdown.stories.d.ts +0 -10
- package/lib/components/error-boundary/error-boundary.stories.d.ts +0 -9
- package/lib/components/extend-arrow/extend-arrow.stories.d.ts +0 -9
- package/lib/components/fade-loader/fade-loader.stories.d.ts +0 -9
- package/lib/components/field-error/field-error.stories.d.ts +0 -9
- package/lib/components/field-label/field-label.stories.d.ts +0 -9
- package/lib/components/header/header.stories.d.ts +0 -9
- package/lib/components/icon-button/icon-button.stories.d.ts +0 -9
- package/lib/components/icon-group/icon-group.stories.d.ts +0 -14
- package/lib/components/icon-title-badge/icon-title-badge.stories.d.ts +0 -9
- package/lib/components/icon-wrapped/icon-wrapped.stories.d.ts +0 -10
- package/lib/components/icons-nav/icons-nav.stories.d.ts +0 -9
- package/lib/components/image-controlled/image-controlled.stories.d.ts +0 -9
- package/lib/components/input/input.stories.d.ts +0 -9
- package/lib/components/input-list/input-list.stories.d.ts +0 -9
- package/lib/components/input-table/input-table.stories.d.ts +0 -9
- package/lib/components/interactive-table/interactive-table.stories.d.ts +0 -12
- package/lib/components/interactive-table/row.d.ts +0 -13
- package/lib/components/key-value-input-list/key-value-input-list.stories.d.ts +0 -9
- package/lib/components/modal/modal.stories.d.ts +0 -9
- package/lib/components/monitors-checkboxes/monitors-checkboxes.stories.d.ts +0 -9
- package/lib/components/monitors-icons/monitors-icons.stories.d.ts +0 -9
- package/lib/components/navigation-buttons/navigation-buttons.stories.d.ts +0 -9
- package/lib/components/no-data-found/no-data-found.stories.d.ts +0 -9
- package/lib/components/notification-note/notification-note.stories.d.ts +0 -10
- package/lib/components/section-title/section-title.stories.d.ts +0 -9
- package/lib/components/segment/segment.stories.d.ts +0 -9
- package/lib/components/skeleton-loader/skeleton-loader.stories.d.ts +0 -9
- package/lib/components/status/status.stories.d.ts +0 -9
- package/lib/components/stepper/stepper.stories.d.ts +0 -9
- package/lib/components/text/text.stories.d.ts +0 -9
- package/lib/components/textarea/textarea.stories.d.ts +0 -9
- package/lib/components/toggle/toggle.stories.d.ts +0 -9
- package/lib/components/tooltip/tooltip.stories.d.ts +0 -9
- package/lib/components/trace-loader/trace-loader.stories.d.ts +0 -9
- package/lib/components/warning-modal/warning-modal.stories.d.ts +0 -9
- package/lib/containers/action-drawer/action-drawer.stories.d.ts +0 -9
- package/lib/containers/action-form/action-form.stories.d.ts +0 -9
- package/lib/containers/action-modal/action-modal.stories.d.ts +0 -9
- package/lib/containers/action-table/action-table.stories.d.ts +0 -9
- package/lib/containers/await-pipeline/await-pipeline.stories.d.ts +0 -9
- package/lib/containers/compute-platform-select/compute-platform-select.stories.d.ts +0 -9
- package/lib/containers/compute-platform-select/index.d.ts +0 -10
- package/lib/containers/compute-platforms/compute-platforms.stories.d.ts +0 -9
- package/lib/containers/compute-platforms/index.d.ts +0 -8
- package/lib/containers/compute-platforms-actions-menu/compute-platforms-actions-menu.stories.d.ts +0 -9
- package/lib/containers/compute-platforms-actions-menu/index.d.ts +0 -7
- package/lib/containers/data-flow/data-flow.stories.d.ts +0 -9
- package/lib/containers/data-flow/edges/labeled-edge.d.ts +0 -10
- package/lib/containers/data-flow/helpers/get-main-container-language.d.ts +0 -2
- package/lib/containers/data-flow/nodes/add-node.d.ts +0 -11
- package/lib/containers/data-flow/nodes/base-node.d.ts +0 -21
- package/lib/containers/data-flow/nodes/edged-node.d.ts +0 -9
- package/lib/containers/data-flow/nodes/frame-node.d.ts +0 -9
- package/lib/containers/data-flow/nodes/scroll-node.d.ts +0 -26
- package/lib/containers/data-flow/nodes/skeleton-node.d.ts +0 -8
- package/lib/containers/data-flow-actions-menu/data-flow.stories.d.ts +0 -11
- package/lib/containers/data-flow-actions-menu/search/recent-searches/index.d.ts +0 -2
- package/lib/containers/destination-drawer/destination-drawer.stories.d.ts +0 -9
- package/lib/containers/destination-form/destination-form.stories.d.ts +0 -9
- package/lib/containers/destination-modal/choose-destination/potential-destinations-list/index.d.ts +0 -8
- package/lib/containers/destination-modal/destination-modal.stories.d.ts +0 -9
- package/lib/containers/destination-selection-form/configured-list/index.d.ts +0 -5
- package/lib/containers/destination-selection-form/destination-selection-form.stories.d.ts +0 -9
- package/lib/containers/destination-table/destination-table.stories.d.ts +0 -9
- package/lib/containers/dropdowns/connection-status-dropdown/connection-status-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/connection-status-dropdown/index.d.ts +0 -15
- package/lib/containers/dropdowns/connection-type-dropdown/connection-type-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/error-dropdown/error-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/kind-dropdown/error-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/language-dropdown/language-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/monitor-dropdown/monitor-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/namespace-dropdown/namespace-dropdown.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-drawer/instrumentation-rule-drawer.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-form/instrumentation-rule-form.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-modal/instrumentation-rule-modal.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-table/instrumentation-rule-table.stories.d.ts +0 -9
- package/lib/containers/multi-source-control/multi-source-control.stories.d.ts +0 -9
- package/lib/containers/notification-manager/notification-manager.stories.d.ts +0 -9
- package/lib/containers/overview-drawer/overview-drawer.stories.d.ts +0 -9
- package/lib/containers/side-nav/side-nav.stories.d.ts +0 -9
- package/lib/containers/slack-invite/slack-invite.stories.d.ts +0 -9
- package/lib/containers/source-drawer/source-drawer.stories.d.ts +0 -9
- package/lib/containers/source-form/source-form.stories.d.ts +0 -9
- package/lib/containers/source-modal/source-modal.stories.d.ts +0 -9
- package/lib/containers/source-selection-form/fast/controls/index.d.ts +0 -7
- package/lib/containers/source-selection-form/fast/index.d.ts +0 -7
- package/lib/containers/source-selection-form/fast/list/index.d.ts +0 -10
- package/lib/containers/source-selection-form/simple/controls/index.d.ts +0 -11
- package/lib/containers/source-selection-form/simple/index.d.ts +0 -7
- package/lib/containers/source-selection-form/simple/list/index.d.ts +0 -9
- package/lib/containers/source-selection-form/source-selection-form.stories.d.ts +0 -9
- package/lib/containers/source-table/source-table.stories.d.ts +0 -9
- package/lib/containers/system-overview/system-overview.stories.d.ts +0 -9
- package/lib/containers/table-cell-conditions/table-cell-conditions.stories.d.ts +0 -9
- package/lib/containers/toast-list/toast-list.stories.d.ts +0 -9
- package/lib/containers/toggle-dark-mode/toggle-dark-mode.stories.d.ts +0 -9
- package/lib/functions/derive-type-from-rule/index.d.ts +0 -2
- package/lib/icons/actions/add-cluster-info-icon/add-cluster-info-icon.stories.d.ts +0 -8
- package/lib/icons/actions/delete-attribute-icon/delete-attribute-icon.stories.d.ts +0 -8
- package/lib/icons/actions/pii-masking-icon/pii-masking-icon.stories.d.ts +0 -8
- package/lib/icons/actions/rename-attribute-icon/rename-attribute-icon.stories.d.ts +0 -8
- package/lib/icons/actions/sampler-icon/sampler-icon.stories.d.ts +0 -8
- package/lib/icons/brand/odigos-logo/odigos-logo.stories.d.ts +0 -8
- package/lib/icons/brand/odigos-logo-text/odigos-logo-text.stories.d.ts +0 -8
- package/lib/icons/common/arrow-icon/arrow-icon.stories.d.ts +0 -8
- package/lib/icons/common/code-brackets-icon/code-brackets-icon.stories.d.ts +0 -8
- package/lib/icons/common/code-icon/code-icon.stories.d.ts +0 -8
- package/lib/icons/common/command-icon/command-icon.stories.d.ts +0 -8
- package/lib/icons/common/copy-icon/copy-icon.stories.d.ts +0 -8
- package/lib/icons/common/edit-icon/edit-icon.stories.d.ts +0 -8
- package/lib/icons/common/extend-arrow-icon/extend-arrow-icon.stories.d.ts +0 -8
- package/lib/icons/common/filter-icon/filter-icon.stories.d.ts +0 -8
- package/lib/icons/common/folder-icon/folder-icon.stories.d.ts +0 -8
- package/lib/icons/common/image-error-icon/image-error-icon.stories.d.ts +0 -8
- package/lib/icons/common/key-icon/key-icon.stories.d.ts +0 -8
- package/lib/icons/common/list-icon/list-icon.stories.d.ts +0 -8
- package/lib/icons/common/no-data-icon/no-data-icon.stories.d.ts +0 -8
- package/lib/icons/common/notebook-icon/notebook-icon.stories.d.ts +0 -8
- package/lib/icons/common/notification-icon/notification-icon.stories.d.ts +0 -8
- package/lib/icons/common/search-icon/search-icon.stories.d.ts +0 -8
- package/lib/icons/common/sort-arrows-icon/sort-arrows-icon.stories.d.ts +0 -8
- package/lib/icons/common/terminal-icon/terminal-icon.stories.d.ts +0 -8
- package/lib/icons/common/trash-icon/trash-icon.stories.d.ts +0 -8
- package/lib/icons/common/x-icon/x-icon.stories.d.ts +0 -8
- package/lib/icons/compute-platform/k8s-logo/k8s-logo.stories.d.ts +0 -8
- package/lib/icons/compute-platform/vm-logo/vm-logo.stories.d.ts +0 -8
- package/lib/icons/instrumentation-rules/code-attributes-icon/code-attributes-icon.stories.d.ts +0 -8
- package/lib/icons/instrumentation-rules/payload-collection-icon/payload-collection-icon.stories.d.ts +0 -8
- package/lib/icons/math/minus-icon/minus-icon.stories.d.ts +0 -8
- package/lib/icons/math/plus-icon/plus-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/logs-icon/logs-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/metrics-icon/metrics-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/traces-icon/traces-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/eye-closed-icon/eye-closed-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/eye-open-icon/eye-open-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/light-off-icon/light-off-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/light-on-icon/light-on-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/moon-icon/moon-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/sun-icon/sun-icon.stories.d.ts +0 -8
- package/lib/icons/overview/actions-icon/actions-icon.stories.d.ts +0 -8
- package/lib/icons/overview/connections-icon/connections-icon.stories.d.ts +0 -8
- package/lib/icons/overview/destinations-icon/destinations-icon.stories.d.ts +0 -8
- package/lib/icons/overview/overview-icon/overview-icon.stories.d.ts +0 -8
- package/lib/icons/overview/rules-icon/rules-icon.stories.d.ts +0 -8
- package/lib/icons/overview/service-map-icon/service-map-icon.stories.d.ts +0 -8
- package/lib/icons/overview/sources-icon/sources-icon.stories.d.ts +0 -8
- package/lib/icons/overview/trace-view-icon/trace-view-icon.stories.d.ts +0 -8
- package/lib/icons/programming-languages/c-plus-plus-logo/c-plus-plus-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/c-sharp-logo/c-sharp-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/dotnet-logo/dotnet-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/elixir-logo/elixir-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/go-logo/go-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/java-logo/java-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/kafka-logo/kafka-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/mysql-logo/mysql-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/nginx-logo/nginx-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/nodejs-logo/nodejs-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/php-logo/php-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/postgres-logo/postgres-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/python-logo/python-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/redis-logo/redis-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/ruby-logo/ruby-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/rust-logo/rust-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/swift-logo/swift-logo.stories.d.ts +0 -8
- package/lib/icons/social/slack-logo/slack-logo.stories.d.ts +0 -8
- package/lib/icons/status/check-circled-icon/check-circled-icon.stories.d.ts +0 -8
- package/lib/icons/status/check-icon/check-icon.stories.d.ts +0 -8
- package/lib/icons/status/cross-circled-icon/cross-circled-icon.stories.d.ts +0 -8
- package/lib/icons/status/cross-icon/cross-icon.stories.d.ts +0 -8
- package/lib/icons/status/error-round-icon/error-round-icon.stories.d.ts +0 -8
- package/lib/icons/status/error-triangle-icon/error-triangle-icon.stories.d.ts +0 -8
- package/lib/icons/status/info-icon/info-icon.stories.d.ts +0 -8
- package/lib/icons/status/warning-triangle-icon/warning-triangle-icon.stories.d.ts +0 -8
- package/lib/index-3KUV6Vlt.js +0 -89
- package/lib/index-BFct3S32.js +0 -22
- package/lib/index-BGlk5VhF.js +0 -69
- package/lib/index-BZS1ijMm.js +0 -30
- package/lib/index-BjJpYtF1.js +0 -42
- package/lib/index-BumPE6cF.js +0 -37
- package/lib/index-CZe2VX28.js +0 -128
- package/lib/index-DB1gmCsH.js +0 -202
- package/lib/index-DIcomki-.js +0 -671
- package/lib/index-D_Qn2U89.js +0 -138
- package/lib/index-DnmWFsTQ.js +0 -45
- package/lib/index-Do8ODRlA.js +0 -29597
- package/lib/index-eF2JXMVR.js +0 -196
- package/lib/index-ixs381n-.js +0 -466
- package/lib/types/connection/index.d.ts +0 -7
- package/lib/useSourceSelectionFormData-CxdOP9FT.js +0 -561
- package/lib/useTransition-Dfxjcy-C.js +0 -3493
- /package/lib/icons/{programming-languages → destinations}/kafka-logo/index.d.ts +0 -0
- /package/lib/{data → mock-data}/actions/index.d.ts +0 -0
- /package/lib/{data → mock-data}/describe/index.d.ts +0 -0
- /package/lib/{data → mock-data}/instrumentation-rules/index.d.ts +0 -0
- /package/lib/{data → mock-data}/namespaces/index.d.ts +0 -0
- /package/lib/{data → mock-data}/tokens/index.d.ts +0 -0
- /package/lib/{containers/data-flow/helpers → snippets/react-flow}/node-config.d.ts +0 -0
package/lib/index-BZS1ijMm.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Sometimes we need to allow "zero" values, and a simple "!val" check would result in false positives.
|
|
2
|
-
// This function is a strict check for empty values, permitting values like "0" and "false".
|
|
3
|
-
const isEmpty = (val) => {
|
|
4
|
-
if (Array.isArray(val)) {
|
|
5
|
-
return !val?.length;
|
|
6
|
-
}
|
|
7
|
-
else if (typeof val === 'object') {
|
|
8
|
-
return !Object.keys(val || {}).length;
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
return [undefined, null, ''].includes(val);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function safeJsonParse(val, fallback) {
|
|
16
|
-
if (!val)
|
|
17
|
-
return fallback;
|
|
18
|
-
if (typeof val === 'object')
|
|
19
|
-
return val;
|
|
20
|
-
try {
|
|
21
|
-
const parsed = JSON.parse(val);
|
|
22
|
-
return parsed;
|
|
23
|
-
}
|
|
24
|
-
catch (e) {
|
|
25
|
-
console.error('Error parsing JSON string:', e);
|
|
26
|
-
return fallback;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { isEmpty as i, safeJsonParse as s };
|
package/lib/index-BjJpYtF1.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Theme from './theme.js';
|
|
3
|
-
|
|
4
|
-
const VmLogo = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
5
|
-
const theme = Theme.useTheme();
|
|
6
|
-
const fill = f || theme.text.secondary;
|
|
7
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 14 14', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
8
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M7 7.00016V12.5418M7 7.00016L1.94814 4.30969M7 7.00016L12.0519 4.30969M7 12.5418C7.12674 12.5418 7.25347 12.5291 7.37812 12.5037C7.65987 12.4463 7.92489 12.2996 8.45492 12.0063L10.7951 10.7111C11.3251 10.4177 11.5901 10.2711 11.7829 10.0659C11.9534 9.8843 12.0822 9.6704 12.161 9.43804C12.25 9.17542 12.25 8.88207 12.25 8.29536V5.70497C12.25 5.11826 12.25 4.82491 12.161 4.56229C12.1315 4.47526 12.095 4.39081 12.0519 4.30969M7 12.5418C6.87326 12.5418 6.74653 12.5291 6.62188 12.5037C6.34013 12.4463 6.07511 12.2996 5.54508 12.0063L3.20492 10.7111C2.67489 10.4177 2.40987 10.2711 2.21713 10.0659C2.04659 9.8843 1.91777 9.6704 1.83901 9.43804C1.75 9.17542 1.75 8.88207 1.75 8.29536V5.70497C1.75 5.11826 1.75 4.82491 1.83901 4.56229C1.86851 4.47526 1.90503 4.39081 1.94814 4.30969M12.0519 4.30969C11.9799 4.17423 11.8895 4.04802 11.7829 3.93447C11.5901 3.72926 11.3251 3.58258 10.7951 3.28923L8.45492 1.99404C7.92489 1.70068 7.65987 1.554 7.37812 1.49659C7.12882 1.4458 6.87117 1.4458 6.62188 1.49659C6.34013 1.554 6.07511 1.70068 5.54508 1.99404L3.20492 3.28923C2.67489 3.58258 2.40987 3.72926 2.21713 3.93447C2.11047 4.04802 2.02013 4.17423 1.94814 4.30969' })));
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const ActionsIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
12
|
-
const theme = Theme.useTheme();
|
|
13
|
-
const fill = f || theme.text.secondary;
|
|
14
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
15
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M4.03577 5.58623L7.87311 2.57807C8.96507 1.72206 9.51105 1.29405 9.88484 1.33635C10.2084 1.37297 10.4931 1.58015 10.6428 1.88795C10.8158 2.24356 10.6404 2.94122 10.2895 4.33655L9.99556 5.50565C9.85509 6.06426 9.78486 6.34357 9.83323 6.58606C9.87578 6.79937 9.9806 6.99284 10.1327 7.13876C10.3056 7.30464 10.5677 7.37948 11.0919 7.52916L11.432 7.62628C12.4401 7.91412 12.9442 8.05804 13.1457 8.35103C13.3209 8.60578 13.3771 8.93198 13.2982 9.23643C13.2074 9.58657 12.7841 9.91181 11.9376 10.5623L8.16976 13.4575C7.08454 14.2914 6.54192 14.7083 6.16999 14.6636C5.84799 14.6248 5.56547 14.4171 5.41715 14.1101C5.24584 13.7555 5.41898 13.0669 5.76527 11.6898L6.02808 10.6446C6.16855 10.0859 6.23878 9.80664 6.19041 9.56415C6.14786 9.35085 6.04304 9.15737 5.89096 9.01146C5.71807 8.84557 5.45596 8.77073 4.93173 8.62105L4.55326 8.51299C3.55574 8.22817 3.05698 8.08576 2.8556 7.79472C2.68046 7.5416 2.62311 7.21724 2.6998 6.91357C2.78798 6.5644 3.20391 6.23834 4.03577 5.58623Z' })));
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const DestinationsIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
19
|
-
const theme = Theme.useTheme();
|
|
20
|
-
const fill = f || theme.text.secondary;
|
|
21
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
22
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M7.9999 14.0999C11.3688 14.0999 14.0999 11.3688 14.0999 7.9999C14.0999 4.63096 11.3688 1.8999 7.9999 1.8999C4.63096 1.8999 1.8999 4.63096 1.8999 7.9999C1.8999 11.3688 4.63096 14.0999 7.9999 14.0999Z' }),
|
|
23
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M7.99984 11.3332C9.84077 11.3332 11.3332 9.84077 11.3332 7.99984C11.3332 6.15889 9.84077 4.6665 7.99984 4.6665C6.15889 4.6665 4.6665 6.15889 4.6665 7.99984C4.6665 9.84077 6.15889 11.3332 7.99984 11.3332Z' }),
|
|
24
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M8.6665 7.99984C8.6665 8.36804 8.36804 8.6665 7.99984 8.6665C7.63164 8.6665 7.33317 8.36804 7.33317 7.99984C7.33317 7.63164 7.63164 7.33317 7.99984 7.33317C8.36804 7.33317 8.6665 7.63164 8.6665 7.99984Z' })));
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const RulesIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
28
|
-
const theme = Theme.useTheme();
|
|
29
|
-
const fill = f || theme.text.secondary;
|
|
30
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
31
|
-
React.createElement("path", { stroke: fill, strokeWidth: '1.2', strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M4.5 1.94059V1.94836M1.94111 4.49806V4.50583M1 7.99611V8.00389M1.94111 11.4942V11.5019M4.5 14.0516V14.0594M8 14.9922V15M11.5 14.0516V14.0594M14.0589 11.4942V11.5019M15 7.99611V8.00389M14.0589 4.49806V4.50583M11.5 1.94059V1.94836M8 1V1.00777' }),
|
|
32
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M8 8H8.01125M8 3.5L9.326 4.79876L11.182 4.81802L11.2012 6.674L12.5 8L11.2012 9.326L11.182 11.182L9.326 11.2012L8 12.5L6.674 11.2012L4.81802 11.182L4.79876 9.326L3.5 8L4.79876 6.674L4.81802 4.81802L6.674 4.79876L8 3.5Z' })));
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const SourcesIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
36
|
-
const theme = Theme.useTheme();
|
|
37
|
-
const fill = f || theme.text.secondary;
|
|
38
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
39
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M13.3332 3.8V8M13.3332 3.8C13.3332 4.79411 10.9454 5.6 7.99984 5.6C5.05432 5.6 2.6665 4.79411 2.6665 3.8M13.3332 3.8C13.3332 2.80589 10.9454 2 7.99984 2C5.05432 2 2.6665 2.80589 2.6665 3.8M13.3332 8V12.0875C13.3332 13.1437 10.9454 14 7.99984 14C5.05432 14 2.6665 13.1437 2.6665 12.0875V8M13.3332 8C13.3332 8.99413 10.9454 9.8 7.99984 9.8C5.05432 9.8 2.6665 8.99413 2.6665 8M2.6665 8V3.8M10.6665 7.33333H10.6732M10.6665 11.3333H10.6732' })));
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { ActionsIcon as A, DestinationsIcon as D, RulesIcon as R, SourcesIcon as S, VmLogo as V };
|
package/lib/index-BumPE6cF.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ACTION_TYPE, INSTRUMENTATION_RULE_TYPE } from './types.js';
|
|
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
|
-
import 'react';
|
|
4
|
-
import './index-DIcomki-.js';
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
|
|
7
|
-
const getActionIcon = (type) => {
|
|
8
|
-
const typeLowerCased = type?.toLowerCase();
|
|
9
|
-
const isSamplerCategory = typeLowerCased?.includes('sampler');
|
|
10
|
-
const isAttributesCategory = typeLowerCased === 'attributes';
|
|
11
|
-
if (isSamplerCategory)
|
|
12
|
-
return SamplerIcon;
|
|
13
|
-
if (isAttributesCategory)
|
|
14
|
-
return PiiMaskingIcon;
|
|
15
|
-
const LOGOS = {
|
|
16
|
-
[ACTION_TYPE.K8S_ATTRIBUTES]: K8sLogo,
|
|
17
|
-
[ACTION_TYPE.ADD_CLUSTER_INFO]: AddClusterInfoIcon,
|
|
18
|
-
[ACTION_TYPE.DELETE_ATTRIBUTES]: DeleteAttributeIcon,
|
|
19
|
-
[ACTION_TYPE.PII_MASKING]: PiiMaskingIcon,
|
|
20
|
-
[ACTION_TYPE.RENAME_ATTRIBUTES]: RenameAttributeIcon,
|
|
21
|
-
[ACTION_TYPE.ERROR_SAMPLER]: SamplerIcon,
|
|
22
|
-
[ACTION_TYPE.PROBABILISTIC_SAMPLER]: SamplerIcon,
|
|
23
|
-
[ACTION_TYPE.LATENCY_SAMPLER]: SamplerIcon,
|
|
24
|
-
};
|
|
25
|
-
return LOGOS[type];
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const getInstrumentationRuleIcon = (type) => {
|
|
29
|
-
const LOGOS = {
|
|
30
|
-
[INSTRUMENTATION_RULE_TYPE.PAYLOAD_COLLECTION]: PayloadCollectionIcon,
|
|
31
|
-
[INSTRUMENTATION_RULE_TYPE.CODE_ATTRIBUTES]: CodeAttributesIcon,
|
|
32
|
-
[INSTRUMENTATION_RULE_TYPE.UNKNOWN_TYPE]: OdigosLogo,
|
|
33
|
-
};
|
|
34
|
-
return LOGOS[type];
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export { getInstrumentationRuleIcon as a, getActionIcon as g };
|
package/lib/index-CZe2VX28.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { SIGNAL_TYPE, ACTION_TYPE, INSTRUMENTATION_RULE_TYPE } from './types.js';
|
|
2
|
-
import { g as getActionIcon, a as getInstrumentationRuleIcon } from './index-BumPE6cF.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './index-DIcomki-.js';
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
|
|
7
|
-
const ACTION_OPTIONS = [
|
|
8
|
-
{
|
|
9
|
-
label: 'Attributes',
|
|
10
|
-
icon: getActionIcon('attributes'),
|
|
11
|
-
items: [
|
|
12
|
-
{
|
|
13
|
-
type: ACTION_TYPE.K8S_ATTRIBUTES,
|
|
14
|
-
icon: getActionIcon(ACTION_TYPE.K8S_ATTRIBUTES),
|
|
15
|
-
label: 'Kubernetes Attributes',
|
|
16
|
-
description: 'Add dynamic k8s resource attributes to your data.',
|
|
17
|
-
allowedSignals: [SIGNAL_TYPE.TRACES, SIGNAL_TYPE.METRICS, SIGNAL_TYPE.LOGS],
|
|
18
|
-
docsEndpoint: '/pipeline/actions/attributes/k8sattributes',
|
|
19
|
-
docsDescription: 'This action adds kubernetes related resource attributes to spans, metrics data points and log records.',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
type: ACTION_TYPE.ADD_CLUSTER_INFO,
|
|
23
|
-
icon: getActionIcon(ACTION_TYPE.ADD_CLUSTER_INFO),
|
|
24
|
-
label: 'Add Cluster Info',
|
|
25
|
-
description: 'Add static cluster-scoped attributes to your data.',
|
|
26
|
-
allowedSignals: [SIGNAL_TYPE.TRACES, SIGNAL_TYPE.METRICS, SIGNAL_TYPE.LOGS],
|
|
27
|
-
docsEndpoint: '/pipeline/actions/attributes/addclusterinfo',
|
|
28
|
-
docsDescription: 'This action adds static resource attributes to spans, metrics data points and log records. It is useful to add cluster-wide attributes to all telemetry signals.',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
type: ACTION_TYPE.DELETE_ATTRIBUTES,
|
|
32
|
-
icon: getActionIcon(ACTION_TYPE.DELETE_ATTRIBUTES),
|
|
33
|
-
label: 'Delete Attribute',
|
|
34
|
-
description: 'Delete attributes from logs, metrics, and traces.',
|
|
35
|
-
allowedSignals: [SIGNAL_TYPE.TRACES, SIGNAL_TYPE.METRICS, SIGNAL_TYPE.LOGS],
|
|
36
|
-
docsEndpoint: '/pipeline/actions/attributes/deleteattribute',
|
|
37
|
-
docsDescription: 'This action will delete the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
type: ACTION_TYPE.RENAME_ATTRIBUTES,
|
|
41
|
-
icon: getActionIcon(ACTION_TYPE.RENAME_ATTRIBUTES),
|
|
42
|
-
label: 'Rename Attribute',
|
|
43
|
-
description: 'Rename attributes in logs, metrics, and traces.',
|
|
44
|
-
allowedSignals: [SIGNAL_TYPE.TRACES, SIGNAL_TYPE.METRICS, SIGNAL_TYPE.LOGS],
|
|
45
|
-
docsEndpoint: '/pipeline/actions/attributes/renameattribute',
|
|
46
|
-
docsDescription: 'This action will rename the specified attributes from all telemetry signals that are specified in the signals field, regardless of the source, or any other condition.',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
type: ACTION_TYPE.PII_MASKING,
|
|
50
|
-
icon: getActionIcon(ACTION_TYPE.PII_MASKING),
|
|
51
|
-
label: 'PII Masking',
|
|
52
|
-
description: 'Mask PII data in your traces.',
|
|
53
|
-
allowedSignals: [SIGNAL_TYPE.TRACES],
|
|
54
|
-
docsEndpoint: '/pipeline/actions/attributes/piimasking',
|
|
55
|
-
docsDescription: 'This action processes a list of PII categories to be masked from the traces.',
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: 'Samplers',
|
|
61
|
-
icon: getActionIcon('sampler'),
|
|
62
|
-
items: [
|
|
63
|
-
{
|
|
64
|
-
type: ACTION_TYPE.ERROR_SAMPLER,
|
|
65
|
-
icon: getActionIcon('sampler'),
|
|
66
|
-
label: 'Error Sampler',
|
|
67
|
-
description: 'Sample errors based on percentage.',
|
|
68
|
-
allowedSignals: [SIGNAL_TYPE.TRACES],
|
|
69
|
-
docsEndpoint: '/pipeline/actions/sampling/errorsampler',
|
|
70
|
-
docsDescription: 'This action is a Global Action that supports error sampling by filtering out non-error traces.',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
type: ACTION_TYPE.LATENCY_SAMPLER,
|
|
74
|
-
icon: getActionIcon('sampler'),
|
|
75
|
-
label: 'Latency Sampler',
|
|
76
|
-
description: 'Add latency to your traces.',
|
|
77
|
-
allowedSignals: [SIGNAL_TYPE.TRACES],
|
|
78
|
-
docsEndpoint: '/pipeline/actions/sampling/latencysampler',
|
|
79
|
-
docsDescription: 'This action is an Endpoint Action that samples traces based on their duration for a specific service and endpoint (HTTP route) filter.',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: ACTION_TYPE.PROBABILISTIC_SAMPLER,
|
|
83
|
-
icon: getActionIcon('sampler'),
|
|
84
|
-
label: 'Probabilistic Sampler',
|
|
85
|
-
description: 'Sample traces based on percentage.',
|
|
86
|
-
allowedSignals: [SIGNAL_TYPE.TRACES],
|
|
87
|
-
docsEndpoint: '/pipeline/actions/sampling/probabilisticsampler',
|
|
88
|
-
docsDescription: 'This action supports probabilistic sampling based on a configured sampling percentage applied to the TraceID.',
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
];
|
|
93
|
-
|
|
94
|
-
const INSTRUMENTATION_RULE_OPTIONS = [
|
|
95
|
-
{
|
|
96
|
-
type: INSTRUMENTATION_RULE_TYPE.PAYLOAD_COLLECTION,
|
|
97
|
-
icon: getInstrumentationRuleIcon(INSTRUMENTATION_RULE_TYPE.PAYLOAD_COLLECTION),
|
|
98
|
-
label: 'Payload Collection',
|
|
99
|
-
description: 'Collect span attributes containing payload data to traces.',
|
|
100
|
-
docsEndpoint: '/pipeline/rules/payloadcollection',
|
|
101
|
-
docsDescription: 'The “Payload Collection” Rule can be used to add span attributes containing payload data to traces.',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
type: INSTRUMENTATION_RULE_TYPE.CODE_ATTRIBUTES,
|
|
105
|
-
icon: getInstrumentationRuleIcon(INSTRUMENTATION_RULE_TYPE.CODE_ATTRIBUTES),
|
|
106
|
-
label: 'Code Attributes',
|
|
107
|
-
description: 'Collect code attributes containing payload data to traces.',
|
|
108
|
-
docsEndpoint: '/pipeline/rules/codeattributes',
|
|
109
|
-
docsDescription: 'The “Code Attributes” Rule can be used to add code attributes containing payload data to traces.',
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
|
|
113
|
-
const MONITORS_OPTIONS = [
|
|
114
|
-
{
|
|
115
|
-
id: SIGNAL_TYPE.LOGS,
|
|
116
|
-
value: 'Logs',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
id: SIGNAL_TYPE.METRICS,
|
|
120
|
-
value: 'Metrics',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: SIGNAL_TYPE.TRACES,
|
|
124
|
-
value: 'Traces',
|
|
125
|
-
},
|
|
126
|
-
];
|
|
127
|
-
|
|
128
|
-
export { ACTION_OPTIONS as A, INSTRUMENTATION_RULE_OPTIONS as I, MONITORS_OPTIONS as M };
|
package/lib/index-DB1gmCsH.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { PROGRAMMING_LANGUAGES, SIGNAL_TYPE, STATUS_TYPE } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import './index-DIcomki-.js';
|
|
4
|
-
import 'styled-components';
|
|
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-ixs381n-.js';
|
|
7
|
-
|
|
8
|
-
const capitalizeFirstLetter = (string) => {
|
|
9
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Recursively flattens a nested object into a single-level object where each key
|
|
14
|
-
* represents the path to its corresponding value in the original object. Keys for nested
|
|
15
|
-
* properties are concatenated using a dot (`.`) as a separator, while array elements
|
|
16
|
-
* include their index in square brackets (`[]`).
|
|
17
|
-
*
|
|
18
|
-
* @param {Record<string, any>} obj - The input object to be flattened.
|
|
19
|
-
* @param {string} [prefix=''] - The current prefix for the keys, used for recursion.
|
|
20
|
-
* @param {Record<string, any>} [result={}] - The accumulator object that stores the flattened result.
|
|
21
|
-
* @returns {Record<string, any>} A new object where all nested properties are flattened into
|
|
22
|
-
* a single level with their paths as keys.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* const input = {
|
|
26
|
-
* name: {
|
|
27
|
-
* name: 'Name',
|
|
28
|
-
* value: 'load-generator',
|
|
29
|
-
* status: null,
|
|
30
|
-
* explain: '...',
|
|
31
|
-
* },
|
|
32
|
-
* };
|
|
33
|
-
*
|
|
34
|
-
* const output = flattenObjectKeys(input);
|
|
35
|
-
* Output:
|
|
36
|
-
* {
|
|
37
|
-
* 'name.name': 'Name',
|
|
38
|
-
* 'name.value': 'load-generator',
|
|
39
|
-
* 'name.status': null,
|
|
40
|
-
* 'name.explain': '...',
|
|
41
|
-
* }
|
|
42
|
-
*/
|
|
43
|
-
const flattenObjectKeys = (obj, prefix = '', result = {}) => {
|
|
44
|
-
for (const key in obj) {
|
|
45
|
-
if (obj.hasOwnProperty(key)) {
|
|
46
|
-
const value = obj[key];
|
|
47
|
-
const newKey = prefix ? `${prefix}.${key}` : key;
|
|
48
|
-
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
|
|
49
|
-
// Recurse for nested objects
|
|
50
|
-
flattenObjectKeys(value, newKey, result);
|
|
51
|
-
}
|
|
52
|
-
else if (Array.isArray(value)) {
|
|
53
|
-
value.forEach((item, index) => {
|
|
54
|
-
const arrayKey = `${newKey}[${index}]`;
|
|
55
|
-
if (item !== null && typeof item === 'object') {
|
|
56
|
-
// Recurse for objects in arrays
|
|
57
|
-
flattenObjectKeys(item, arrayKey, result);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
// Assign primitive array values
|
|
61
|
-
result[arrayKey] = item;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
// Assign non-object, non-array values
|
|
67
|
-
result[newKey] = value;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
return result;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const getProgrammingLanguageIcon = (language) => {
|
|
75
|
-
const LOGOS = {
|
|
76
|
-
[PROGRAMMING_LANGUAGES.JAVA]: JavaLogo,
|
|
77
|
-
[PROGRAMMING_LANGUAGES.GO]: GoLogo,
|
|
78
|
-
[PROGRAMMING_LANGUAGES.JAVASCRIPT]: NodejsLogo,
|
|
79
|
-
[PROGRAMMING_LANGUAGES.PYTHON]: PythonLogo,
|
|
80
|
-
[PROGRAMMING_LANGUAGES.DOTNET]: DotnetLogo,
|
|
81
|
-
[PROGRAMMING_LANGUAGES.CSHARP]: CSharpLogo,
|
|
82
|
-
[PROGRAMMING_LANGUAGES.CPLUSPLUS]: CPlusPlusLogo,
|
|
83
|
-
[PROGRAMMING_LANGUAGES.PHP]: PhpLogo,
|
|
84
|
-
[PROGRAMMING_LANGUAGES.RUBY]: RubyLogo,
|
|
85
|
-
[PROGRAMMING_LANGUAGES.RUST]: RustLogo,
|
|
86
|
-
[PROGRAMMING_LANGUAGES.SWIFT]: SwiftLogo,
|
|
87
|
-
[PROGRAMMING_LANGUAGES.ELIXIR]: ElixirLogo,
|
|
88
|
-
[PROGRAMMING_LANGUAGES.MYSQL]: MysqlLogo,
|
|
89
|
-
[PROGRAMMING_LANGUAGES.NGINX]: NginxLogo,
|
|
90
|
-
[PROGRAMMING_LANGUAGES.POSTGRES]: PostgresLogo,
|
|
91
|
-
[PROGRAMMING_LANGUAGES.REDIS]: RedisLogo,
|
|
92
|
-
[PROGRAMMING_LANGUAGES.KAFKA]: KafkaLogo,
|
|
93
|
-
[PROGRAMMING_LANGUAGES.IGNORED]: OdigosLogo, // TODO: good icon
|
|
94
|
-
[PROGRAMMING_LANGUAGES.UNKNOWN]: OdigosLogo, // TODO: good icon
|
|
95
|
-
[PROGRAMMING_LANGUAGES.PROCESSING]: OdigosLogo, // TODO: good icon
|
|
96
|
-
[PROGRAMMING_LANGUAGES.NO_CONTAINERS]: OdigosLogo, // TODO: good icon
|
|
97
|
-
[PROGRAMMING_LANGUAGES.NO_RUNNING_PODS]: OdigosLogo, // TODO: good icon
|
|
98
|
-
};
|
|
99
|
-
return LOGOS[language];
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
const getMonitorIcon = (type) => {
|
|
103
|
-
const LOGOS = {
|
|
104
|
-
[SIGNAL_TYPE.LOGS]: LogsIcon,
|
|
105
|
-
[SIGNAL_TYPE.METRICS]: MetricsIcon,
|
|
106
|
-
[SIGNAL_TYPE.TRACES]: TracesIcon,
|
|
107
|
-
};
|
|
108
|
-
return LOGOS[type];
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
const getStatusIcon = (type, theme) => {
|
|
112
|
-
const LOGOS = {
|
|
113
|
-
[STATUS_TYPE.SUCCESS]: (props) => CheckCircledIcon({ fill: theme.text[type], ...props }),
|
|
114
|
-
[STATUS_TYPE.ERROR]: (props) => ErrorTriangleIcon({ fill: theme.text[type], ...props }),
|
|
115
|
-
[STATUS_TYPE.WARNING]: (props) => WarningTriangleIcon({ fill: theme.text[type], ...props }),
|
|
116
|
-
[STATUS_TYPE.INFO]: (props) => InfoIcon({ fill: theme.text[type], ...props }),
|
|
117
|
-
[STATUS_TYPE.DEFAULT]: (props) => OdigosLogo({ fill: theme.text[type], ...props }),
|
|
118
|
-
};
|
|
119
|
-
return LOGOS[type];
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
// Example: splitCamelString('LoremIpsumDolorSitAmet')
|
|
123
|
-
// > 'Lorem Ipsum Dolor Sit Amet'
|
|
124
|
-
const splitCamelString = (str) => {
|
|
125
|
-
if (!str)
|
|
126
|
-
return '';
|
|
127
|
-
return str.replace(/([a-z0-9])([A-Z])/g, '$1 $2');
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const mapConditions = (conditions) => {
|
|
131
|
-
return (conditions?.map(({ status, type, reason, message, lastTransitionTime }) => ({
|
|
132
|
-
status,
|
|
133
|
-
type: splitCamelString(type),
|
|
134
|
-
reason: !!reason ? splitCamelString(reason) : '',
|
|
135
|
-
message,
|
|
136
|
-
lastTransitionTime,
|
|
137
|
-
})) || []);
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const parseJsonStringToPrettyString = (value) => {
|
|
141
|
-
let str = '';
|
|
142
|
-
try {
|
|
143
|
-
const parsed = JSON.parse(value);
|
|
144
|
-
// Handle arrays
|
|
145
|
-
if (Array.isArray(parsed)) {
|
|
146
|
-
str = parsed
|
|
147
|
-
.map((item) => {
|
|
148
|
-
if (typeof item === 'object' && item !== null)
|
|
149
|
-
return `${item.key}: ${item.value}`;
|
|
150
|
-
else
|
|
151
|
-
return item;
|
|
152
|
-
})
|
|
153
|
-
.join(', ');
|
|
154
|
-
}
|
|
155
|
-
// Handle objects (non-array JSON objects)
|
|
156
|
-
else if (typeof parsed === 'object' && parsed !== null) {
|
|
157
|
-
str = Object.entries(parsed)
|
|
158
|
-
.map(([key, val]) => `${key}: ${val}`)
|
|
159
|
-
.join(', ');
|
|
160
|
-
}
|
|
161
|
-
// Should never reach this if it's a string (it will throw)
|
|
162
|
-
else {
|
|
163
|
-
str = value;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
catch (error) {
|
|
167
|
-
str = value;
|
|
168
|
-
}
|
|
169
|
-
return str;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
const removeEmptyValuesFromObject = (obj) => {
|
|
173
|
-
if (typeof obj !== 'object')
|
|
174
|
-
return obj;
|
|
175
|
-
const result = Array.isArray(obj) ? [] : {};
|
|
176
|
-
Object.keys(obj).forEach((key) => {
|
|
177
|
-
const value = obj[key];
|
|
178
|
-
if (Array.isArray(value)) {
|
|
179
|
-
// Remove empty arrays or recursively clean non-empty ones
|
|
180
|
-
const filteredArray = value.filter((item) => item !== null && item !== undefined && item !== '');
|
|
181
|
-
if (filteredArray.length > 0)
|
|
182
|
-
result[key] = filteredArray.map((item) => removeEmptyValuesFromObject(item));
|
|
183
|
-
}
|
|
184
|
-
else if (typeof value === 'object' && value !== null) {
|
|
185
|
-
// Recursively clean nested objects
|
|
186
|
-
const nestedObject = removeEmptyValuesFromObject(value);
|
|
187
|
-
if (Object.keys(nestedObject).length > 0)
|
|
188
|
-
result[key] = nestedObject;
|
|
189
|
-
}
|
|
190
|
-
else if (![undefined, null, ''].includes(value)) {
|
|
191
|
-
// Keep valid values
|
|
192
|
-
result[key] = value;
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
return result;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
const safeJsonStringify = (obj, indent = 2) => {
|
|
199
|
-
return JSON.stringify(obj || {}, null, indent);
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
export { getProgrammingLanguageIcon as a, getStatusIcon as b, capitalizeFirstLetter as c, splitCamelString as d, flattenObjectKeys as f, getMonitorIcon as g, mapConditions as m, parseJsonStringToPrettyString as p, removeEmptyValuesFromObject as r, safeJsonStringify as s };
|