@odigos/ui-kit 0.0.9 → 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 +862 -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 +7 -5
- 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 +33 -2
- 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 +90 -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 +285 -15711
- 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-Bc8gi9FH.js +0 -202
- package/lib/index-BjJpYtF1.js +0 -42
- package/lib/index-BumPE6cF.js +0 -37
- package/lib/index-CZe2VX28.js +0 -128
- package/lib/index-Cu2uHOuh.js +0 -44
- package/lib/index-DIcomki-.js +0 -671
- package/lib/index-D_Qn2U89.js +0 -138
- package/lib/index-g6Twdelv.js +0 -196
- package/lib/index-ixs381n-.js +0 -466
- package/lib/index-m62aT4IR.js +0 -29574
- package/lib/types/connection/index.d.ts +0 -7
- package/lib/useSourceSelectionFormData-BY6B70Kf.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-D_Qn2U89.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Theme from './theme.js';
|
|
3
|
-
|
|
4
|
-
const ArrowIcon = ({ 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 * (9 / 13.5), height: size, viewBox: '0 0 9 13.5', xmlns: 'http://www.w3.org/2000/svg', fill: fill, style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
8
|
-
React.createElement("path", { d: 'M0.616717 8.03169L0.616717 5.70699L16.1519 5.70699L16.1519 8.03169L0.616717 8.03169ZM8.11144 -2.81613L9.7262 -1.10502L1.45534 6.87054L9.7262 14.9097L8.17631 16.6208L-1.19268 7.5802L-1.19268 6.1921L8.11144 -2.81613Z' })));
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const CodeIcon = ({ 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: 'M11.334 12a18.802 18.802 0 0 0 3.231-3.66.62.62 0 0 0 0-.68A18.8 18.8 0 0 0 11.334 4m-6.665 8a18.803 18.803 0 0 1-3.231-3.66.62.62 0 0 1 0-.68A18.801 18.801 0 0 1 4.669 4m4.667-1.332L6.669 13.335' })));
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const CopyIcon = ({ 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: 'M11.2679 11.2679C11.425 11.2446 11.5649 11.213 11.6967 11.1702C12.7115 10.8405 13.5071 10.0449 13.8369 9.03006C14 8.52795 14 7.90752 14 6.66667C14 5.42581 14 4.80539 13.8369 4.30328C13.5071 3.28848 12.7115 2.49287 11.6967 2.16314C11.1946 2 10.5742 2 9.33333 2C8.09248 2 7.47205 2 6.96994 2.16314C5.95515 2.49287 5.15954 3.28848 4.82981 4.30328C4.787 4.43505 4.75542 4.57498 4.73212 4.73212M11.2679 11.2679C11.3333 10.8262 11.3333 10.2485 11.3333 9.33333C11.3333 8.09248 11.3333 7.47205 11.1702 6.96994C10.8405 5.95515 10.0449 5.15954 9.03006 4.82981C8.52795 4.66667 7.90752 4.66667 6.66667 4.66667C5.75147 4.66667 5.17377 4.66667 4.73212 4.73212M11.2679 11.2679C11.2446 11.425 11.213 11.5649 11.1702 11.6967C10.8405 12.7115 10.0449 13.5071 9.03006 13.8369C8.52795 14 7.90752 14 6.66667 14C5.42581 14 4.80539 14 4.30328 13.8369C3.28848 13.5071 2.49287 12.7115 2.16314 11.6967C2 11.1946 2 10.5742 2 9.33333C2 8.09248 2 7.47205 2.16314 6.96994C2.49287 5.95515 3.28848 5.15954 4.30328 4.82981C4.43505 4.787 4.57498 4.75542 4.73212 4.73212' })));
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const ExtendArrowIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
26
|
-
const theme = Theme.useTheme();
|
|
27
|
-
const fill = f || theme.text.secondary;
|
|
28
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
29
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M4 5.06934C4.53103 5.80028 5.15354 6.45498 5.85106 7.01644C5.93869 7.08697 6.06131 7.08697 6.14894 7.01644C6.84646 6.45498 7.46897 5.80028 8 5.06934' })));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const ImageErrorIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
33
|
-
const theme = Theme.useTheme();
|
|
34
|
-
const fill = f || theme.text.secondary;
|
|
35
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
36
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M17.2 21.0002L19.6 18.6002M19.6 18.6002L22 16.2002M19.6 18.6002L17.2 16.2002M19.6 18.6002L22 21.0002M22 12.1944V11C22 10.6449 22 10.3123 21.9989 10M13.1992 21H10C9.24401 21 8.59006 21 8.01712 20.9893M21.9989 10H21C19.607 10 18.9104 10 18.324 10.0603C12.9031 10.6176 8.61758 14.9031 8.06029 20.324C8.03963 20.5249 8.02605 20.7388 8.01712 20.9893M21.9989 10C21.9912 7.84993 21.9309 6.66397 21.455 5.73005C20.9757 4.78924 20.2108 4.02433 19.27 3.54497C18.2004 3 16.8003 3 14 3H10C7.19974 3 5.79961 3 4.73005 3.54497C3.78924 4.02433 3.02433 4.78924 2.54497 5.73005C2 6.79961 2 8.19974 2 11V13C2 15.8003 2 17.2004 2.54497 18.27C3.02433 19.2108 3.78924 19.9757 4.73005 20.455C5.51086 20.8529 6.46784 20.9603 8.01712 20.9893M7.5 9.5C6.94772 9.5 6.5 9.05228 6.5 8.5C6.5 7.94772 6.94772 7.5 7.5 7.5C8.05228 7.5 8.5 7.94772 8.5 8.5C8.5 9.05228 8.05228 9.5 7.5 9.5Z' })));
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const ListIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
40
|
-
const theme = Theme.useTheme();
|
|
41
|
-
const fill = f || theme.text.secondary;
|
|
42
|
-
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 },
|
|
43
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M2.667 6.001h10.666M2.666 9.335h10.667M2.667 12.668H8m-5.333-10h10.666' })));
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const NoDataIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
47
|
-
const theme = Theme.useTheme();
|
|
48
|
-
const fill = f || theme.text.secondary;
|
|
49
|
-
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 },
|
|
50
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M6.31647 10.9497L7.96639 9.29983M7.96639 9.29983L9.61631 7.64992M7.96639 9.29983L6.31647 7.64992M7.96639 9.29983L9.61631 10.9497M14.6666 8.26667V9.73333C14.6666 11.2268 14.6666 11.9735 14.3759 12.544C14.1203 13.0457 13.7123 13.4537 13.2106 13.7094C12.6401 14 11.8934 14 10.3999 14H5.59992C4.10645 14 3.35971 14 2.78928 13.7094C2.28751 13.4537 1.87956 13.0457 1.6239 12.544C1.33325 11.9735 1.33325 11.2268 1.33325 9.73333V6.26667C1.33325 4.77319 1.33325 4.02646 1.6239 3.45603C1.87956 2.95426 2.28751 2.54631 2.78928 2.29065C3.35971 2 4.10645 2 5.59992 2H5.81029C6.12336 2 6.2799 2 6.42199 2.04315C6.54778 2.08135 6.6648 2.14398 6.76636 2.22745C6.88108 2.32174 6.96791 2.45199 7.14157 2.71248L7.52493 3.28752C7.69859 3.54801 7.78542 3.67826 7.90014 3.77255C8.0017 3.85602 8.11873 3.91865 8.24452 3.95685C8.38661 4 8.54314 4 8.85621 4H10.3999C11.8934 4 12.6401 4 13.2106 4.29065C13.7123 4.54631 14.1203 4.95426 14.3759 5.45603C14.6666 6.02646 14.6666 6.77319 14.6666 8.26667Z' })));
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const NotebookIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
54
|
-
const theme = Theme.useTheme();
|
|
55
|
-
const fill = f || theme.text.secondary;
|
|
56
|
-
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 },
|
|
57
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M8.00016 3.37696V14.3327M8.00016 3.37696C10.0168 2.64365 12.6703 2.23608 14.6668 3.37696V13.7103C12.5356 12.7969 9.9581 13.4427 8.00016 14.3327M8.00016 3.37696C5.98356 2.64365 3.33004 2.23608 1.3335 3.37696V13.7103C3.46472 12.7969 6.04222 13.4427 8.00016 14.3327' })));
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const SearchIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
61
|
-
const theme = Theme.useTheme();
|
|
62
|
-
const fill = f || theme.text.secondary;
|
|
63
|
-
return (React.createElement("svg", { width: size * (14 / 15), height: size, viewBox: '0 0 14 15', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
64
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M12.25 13.165L10.2144 11.1294M10.2144 11.1294C11.1117 10.2322 11.6667 8.99258 11.6667 7.62337C11.6667 4.88496 9.44674 2.66504 6.70833 2.66504C3.96992 2.66504 1.75 4.88496 1.75 7.62337C1.75 10.3618 3.96992 12.5817 6.70833 12.5817C8.07754 12.5817 9.31712 12.0267 10.2144 11.1294Z' })));
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
const SortArrowsIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
68
|
-
const theme = Theme.useTheme();
|
|
69
|
-
const fill = f || theme.text.secondary;
|
|
70
|
-
return (React.createElement("svg", { width: size, height: size * (24 / 25), viewBox: '0 0 25 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
71
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M16.5 9C15.4379 7.53812 14.1929 6.22872 12.7979 5.1058C12.6226 4.96473 12.3774 4.96473 12.2021 5.1058C10.8071 6.22872 9.56206 7.53812 8.5 9M8.5 15C9.56206 16.4619 10.8071 17.7713 12.2021 18.8942C12.3774 19.0353 12.6226 19.0353 12.7979 18.8942C14.1929 17.7713 15.4379 16.4619 16.5 15' })));
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const TrashIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
75
|
-
const theme = Theme.useTheme();
|
|
76
|
-
const fill = f || theme.text.error;
|
|
77
|
-
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 },
|
|
78
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M10.6665 4.00065L9.92946 2.52655C9.56401 1.79567 8.81699 1.33398 7.99984 1.33398C7.18268 1.33398 6.43566 1.79567 6.07022 2.52655L5.33317 4.00065M2.6665 4.00065H13.3332M3.99984 4.00065H11.9998V10.0007C11.9998 11.2432 11.9998 11.8644 11.7968 12.3545C11.5262 13.0079 11.0071 13.527 10.3537 13.7977C9.8636 14.0007 9.24235 14.0007 7.99984 14.0007C6.75733 14.0007 6.13607 14.0007 5.64601 13.7977C4.99261 13.527 4.47348 13.0079 4.20283 12.3545C3.99984 11.8644 3.99984 11.2432 3.99984 10.0007V4.00065Z' })));
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
const XIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
82
|
-
const theme = Theme.useTheme();
|
|
83
|
-
const fill = f || theme.text.secondary;
|
|
84
|
-
return (React.createElement("svg", { width: size, height: size * (14 / 18), viewBox: '0 0 18 14', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
85
|
-
React.createElement("path", { fill: fill, d: 'M9.487 5.832v2.433h1.495V5.832H9.487ZM17.847 17.185l2.028-1.791L9.487 7.047l10.388-8.414L17.928-3.158 6.162 6.304v1.453l11.685 9.428Z' }),
|
|
86
|
-
React.createElement("path", { fill: fill, d: 'M8.513 5.832v2.433H7.018V5.832h1.495ZM0.153 17.185l-2.028-1.791L8.513 7.047l-10.388-8.414L0.072-3.158l11.766 9.462v1.453L0.153 17.185Z' })));
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
const MinusIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
90
|
-
const theme = Theme.useTheme();
|
|
91
|
-
const fill = f || theme.text.secondary;
|
|
92
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
93
|
-
React.createElement("path", { stroke: fill, strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M5 12H19' })));
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const PlusIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
97
|
-
const theme = Theme.useTheme();
|
|
98
|
-
const fill = f || theme.text.secondary;
|
|
99
|
-
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 },
|
|
100
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M7.99992 12.6663V7.99967M7.99992 7.99967V3.33301M7.99992 7.99967L3.33325 7.99967M7.99992 7.99967L12.6666 7.99967' })));
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
const EyeClosedIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
104
|
-
const theme = Theme.useTheme();
|
|
105
|
-
const fill = f || theme.text.secondary;
|
|
106
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
107
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M14.83 9.17999C14.2706 8.61995 13.5576 8.23846 12.7813 8.08386C12.0049 7.92926 11.2002 8.00851 10.4689 8.31152C9.73758 8.61453 9.11264 9.12769 8.67316 9.78607C8.23367 10.4444 7.99938 11.2184 8 12.01C7.99916 13.0663 8.41619 14.08 9.16004 14.83' }),
|
|
108
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M12 16.01C13.0609 16.01 14.0783 15.5886 14.8284 14.8384C15.5786 14.0883 16 13.0709 16 12.01' }),
|
|
109
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M17.61 6.39004L6.38 17.62C4.6208 15.9966 3.14099 14.0944 2 11.99C6.71 3.76002 12.44 1.89004 17.61 6.39004Z' }),
|
|
110
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M20.9994 3L17.6094 6.39' }),
|
|
111
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M6.38 17.62L3 21' }),
|
|
112
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M19.5695 8.42999C20.4801 9.55186 21.2931 10.7496 21.9995 12.01C17.9995 19.01 13.2695 21.4 8.76953 19.23' })));
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const EyeOpenIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
116
|
-
const theme = Theme.useTheme();
|
|
117
|
-
const fill = f || theme.text.secondary;
|
|
118
|
-
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
119
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M12 16.01C14.2091 16.01 16 14.2191 16 12.01C16 9.80087 14.2091 8.01001 12 8.01001C9.79086 8.01001 8 9.80087 8 12.01C8 14.2191 9.79086 16.01 12 16.01Z' }),
|
|
120
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M2 11.98C8.09 1.31996 15.91 1.32996 22 11.98' }),
|
|
121
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M22 12.01C15.91 22.67 8.09 22.66 2 12.01' })));
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
const CheckIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
125
|
-
const theme = Theme.useTheme();
|
|
126
|
-
const fill = f || theme.text.secondary;
|
|
127
|
-
return (React.createElement("svg", { width: size * (16 / 17), height: size, viewBox: '0 0 16 17', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
128
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M3.6665 9.24833L6.67773 12.7315L6.94495 12.2642C8.37771 9.75889 10.3605 7.61153 12.7439 5.98403L13.3332 5.58167' })));
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
const CrossIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
132
|
-
const theme = Theme.useTheme();
|
|
133
|
-
const fill = f || theme.text.secondary;
|
|
134
|
-
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 },
|
|
135
|
-
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M4 12L8 8M8 8L12 4M8 8L4 4M8 8L12 12' })));
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export { ArrowIcon as A, CodeIcon as C, ExtendArrowIcon as E, ImageErrorIcon as I, ListIcon as L, MinusIcon as M, NoDataIcon as N, PlusIcon as P, SearchIcon as S, TrashIcon as T, XIcon as X, CopyIcon as a, NotebookIcon as b, SortArrowsIcon as c, EyeClosedIcon as d, EyeOpenIcon as e, CheckIcon as f, CrossIcon as g };
|
package/lib/index-g6Twdelv.js
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { NOTIFICATION_TYPE, OTHER_STATUS, ENTITY_TYPES, PLATFORM_TYPE } from './types.js';
|
|
2
|
-
import { a as getProgrammingLanguageIcon } from './index-Bc8gi9FH.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './index-DIcomki-.js';
|
|
5
|
-
import 'styled-components';
|
|
6
|
-
import { R as RulesIcon, A as ActionsIcon, D as DestinationsIcon, S as SourcesIcon, V as VmLogo } from './index-BjJpYtF1.js';
|
|
7
|
-
import { O as OdigosLogo, K as K8sLogo } from './index-BGlk5VhF.js';
|
|
8
|
-
|
|
9
|
-
const compareCondition = (renderCondition, fields) => {
|
|
10
|
-
if (!renderCondition || !renderCondition.length)
|
|
11
|
-
return true;
|
|
12
|
-
if (renderCondition.length === 1)
|
|
13
|
-
return renderCondition[0] == 'true';
|
|
14
|
-
const [key, cond, val] = renderCondition;
|
|
15
|
-
const field = fields.find((field) => field.name === key);
|
|
16
|
-
if (!field) {
|
|
17
|
-
console.warn(`Field with name ${key} not found, condition will be skipped`);
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
switch (cond) {
|
|
21
|
-
case '===':
|
|
22
|
-
case '==':
|
|
23
|
-
return field.value === val;
|
|
24
|
-
case '!==':
|
|
25
|
-
case '!=':
|
|
26
|
-
return field.value !== val;
|
|
27
|
-
case '>':
|
|
28
|
-
return field.value > val;
|
|
29
|
-
case '<':
|
|
30
|
-
return field.value < val;
|
|
31
|
-
case '>=':
|
|
32
|
-
return field.value >= val;
|
|
33
|
-
case '<=':
|
|
34
|
-
return field.value <= val;
|
|
35
|
-
default:
|
|
36
|
-
console.warn(`Invalid condition ${cond}, condition will be skipped`);
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const filterActions = (actions, filters) => {
|
|
42
|
-
let filtered = [...actions];
|
|
43
|
-
if (!!filters.monitors?.length)
|
|
44
|
-
filtered = filtered.filter((action) => !!filters.monitors?.find((metric) => action.spec.signals.find((str) => str.toLowerCase() === metric.id)));
|
|
45
|
-
return filtered;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const filterDestinations = (destinations, filters) => {
|
|
49
|
-
let filtered = [...destinations];
|
|
50
|
-
if (!!filters.monitors?.length)
|
|
51
|
-
filtered = filtered.filter((dest) => !!filters.monitors?.find((metr) => dest.exportedSignals[metr.id]));
|
|
52
|
-
return filtered;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
const filterSources = (sources, filters) => {
|
|
56
|
-
let filtered = [...sources];
|
|
57
|
-
if (!!filters.namespaces?.length)
|
|
58
|
-
filtered = filtered.filter((source) => !!filters.namespaces?.find((ns) => ns.id === source.namespace));
|
|
59
|
-
if (!!filters.kinds?.length)
|
|
60
|
-
filtered = filtered.filter((source) => !!filters.kinds?.find((type) => type.id === source.kind));
|
|
61
|
-
if (!!filters.languages?.length)
|
|
62
|
-
filtered = filtered.filter((source) => !!filters.languages?.find((language) => !!source.containers?.find((cont) => cont.language === language.id)));
|
|
63
|
-
if (!!filters.onlyErrors)
|
|
64
|
-
filtered = filtered.filter((source) => !!source.conditions?.find((cond) => cond.status === NOTIFICATION_TYPE.ERROR));
|
|
65
|
-
if (!!filters.errors?.length)
|
|
66
|
-
filtered = filtered.filter((source) => !!filters.errors?.find((error) => !!source.conditions?.find((cond) => cond.message === error.id)));
|
|
67
|
-
return filtered;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const formatBytes = (bytes) => {
|
|
71
|
-
if (!bytes)
|
|
72
|
-
return '0 KB/s';
|
|
73
|
-
const sizes = ['Bytes/s', 'KB/s', 'MB/s', 'GB/s', 'TB/s'];
|
|
74
|
-
const i = Math.floor(Math.log(bytes) / Math.log(1024));
|
|
75
|
-
const value = bytes / Math.pow(1024, i);
|
|
76
|
-
return `${value.toFixed(i === 0 ? 0 : 1)} ${sizes[i]}`;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
const getConditionsBooleans = (conditions) => {
|
|
80
|
-
const hasErrors = !!conditions?.find(({ status }) => status === NOTIFICATION_TYPE.ERROR);
|
|
81
|
-
const hasWarnings = !!conditions?.find(({ status }) => status === NOTIFICATION_TYPE.WARNING);
|
|
82
|
-
const hasDisableds = !!conditions?.find(({ status }) => status === OTHER_STATUS.DISABLED);
|
|
83
|
-
const hasLoadings = !!conditions?.find(({ status }) => status === OTHER_STATUS.LOADING);
|
|
84
|
-
const priorotizedStatus = hasErrors ? NOTIFICATION_TYPE.ERROR : hasWarnings ? NOTIFICATION_TYPE.WARNING : hasDisableds ? NOTIFICATION_TYPE.INFO : undefined;
|
|
85
|
-
return {
|
|
86
|
-
hasErrors,
|
|
87
|
-
hasWarnings,
|
|
88
|
-
hasDisableds,
|
|
89
|
-
hasLoadings,
|
|
90
|
-
priorotizedStatus,
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const getContainersInstrumentedCount = (containers) => {
|
|
95
|
-
const instrumentedCount = containers?.reduce((prev, curr) => (curr.instrumented ? prev + 1 : prev), 0);
|
|
96
|
-
const totalCount = containers?.length || 0;
|
|
97
|
-
return `${instrumentedCount}/${totalCount} instrumented`;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const getContainersIcons = (containers) => {
|
|
101
|
-
const icons = containers?.map(({ language }) => getProgrammingLanguageIcon(language)) || [];
|
|
102
|
-
return icons;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
const getEntityIcon = (type) => {
|
|
106
|
-
const LOGOS = {
|
|
107
|
-
[ENTITY_TYPES.SOURCE]: SourcesIcon,
|
|
108
|
-
[ENTITY_TYPES.DESTINATION]: DestinationsIcon,
|
|
109
|
-
[ENTITY_TYPES.ACTION]: ActionsIcon,
|
|
110
|
-
[ENTITY_TYPES.INSTRUMENTATION_RULE]: RulesIcon,
|
|
111
|
-
};
|
|
112
|
-
return LOGOS[type];
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const getEntityLabel = (entity, entityType, options) => {
|
|
116
|
-
const { extended, prioritizeDisplayName } = options || {};
|
|
117
|
-
let type = '';
|
|
118
|
-
let name = '';
|
|
119
|
-
switch (entityType) {
|
|
120
|
-
case ENTITY_TYPES.INSTRUMENTATION_RULE:
|
|
121
|
-
const rule = entity;
|
|
122
|
-
type = rule.type;
|
|
123
|
-
name = rule.ruleName;
|
|
124
|
-
break;
|
|
125
|
-
case ENTITY_TYPES.SOURCE:
|
|
126
|
-
const source = entity;
|
|
127
|
-
type = source.name;
|
|
128
|
-
name = source.otelServiceName;
|
|
129
|
-
break;
|
|
130
|
-
case ENTITY_TYPES.ACTION:
|
|
131
|
-
const action = entity;
|
|
132
|
-
type = action.type;
|
|
133
|
-
name = action.spec.actionName;
|
|
134
|
-
break;
|
|
135
|
-
case ENTITY_TYPES.DESTINATION:
|
|
136
|
-
const destination = entity;
|
|
137
|
-
type = destination.destinationType.displayName;
|
|
138
|
-
name = destination.name;
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
|
-
if (extended)
|
|
142
|
-
return type + (name && name !== type ? ` (${name})` : '');
|
|
143
|
-
else if (prioritizeDisplayName)
|
|
144
|
-
return name || type;
|
|
145
|
-
else
|
|
146
|
-
return type;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
const getMetricForEntity = (metrics, entityType, entityId) => {
|
|
150
|
-
const metric = entityType === ENTITY_TYPES.SOURCE
|
|
151
|
-
? metrics?.sources.find((m) => m.kind === entityId.kind && m.name === entityId.name && m.namespace === entityId.namespace)
|
|
152
|
-
: metrics?.destinations.find((m) => m.id === entityId);
|
|
153
|
-
return metric || { throughput: 0 };
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const getPlatformIcon = (type) => {
|
|
157
|
-
if (!type)
|
|
158
|
-
return OdigosLogo;
|
|
159
|
-
const LOGOS = {
|
|
160
|
-
[PLATFORM_TYPE.K8S]: K8sLogo,
|
|
161
|
-
[PLATFORM_TYPE.VM]: VmLogo,
|
|
162
|
-
};
|
|
163
|
-
return LOGOS[type];
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
const getPlatformLabel = (type) => {
|
|
167
|
-
if (!type)
|
|
168
|
-
return 'Unknown';
|
|
169
|
-
const LABELS = {
|
|
170
|
-
[PLATFORM_TYPE.K8S]: 'Kubernetes Cluster',
|
|
171
|
-
[PLATFORM_TYPE.VM]: 'Virtual Machine',
|
|
172
|
-
};
|
|
173
|
-
return LABELS[type];
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
const getValueForRange = (current, matrix) => {
|
|
177
|
-
// CURRENT: represents the current value (such as window width)
|
|
178
|
-
// MATRIX: represents the ranges (index[0] == min, index[1] == max, index[2] == value to get)
|
|
179
|
-
// EXAMPLE:
|
|
180
|
-
// getValueForRange(width, [
|
|
181
|
-
// [0, 1000, 'small'], // ---> from 0 to 1000, return "small"
|
|
182
|
-
// [1000, null, 'big'], // ---> from 1000 to infinite, return "big"
|
|
183
|
-
// ])
|
|
184
|
-
const found = matrix.find(([min, max]) => current >= min && (max === null || current <= max));
|
|
185
|
-
return found?.[2] || null;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
const isOverTime = (originDate, difference = 0) => {
|
|
189
|
-
const now = new Date().getTime();
|
|
190
|
-
const compareWith = new Date(originDate).getTime();
|
|
191
|
-
return compareWith - now <= difference;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
const sleep = async (ms = 1000) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
195
|
-
|
|
196
|
-
export { filterDestinations as a, filterSources as b, compareCondition as c, formatBytes as d, getContainersInstrumentedCount as e, filterActions as f, getConditionsBooleans as g, getContainersIcons as h, getEntityIcon as i, getEntityLabel as j, getMetricForEntity as k, getPlatformIcon as l, getPlatformLabel as m, getValueForRange as n, isOverTime as o, sleep as s };
|