@odigos/ui-kit 0.0.250 → 0.0.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/docs/api-context.md +687 -0
  3. package/lib/chunks/connections-scope-CneIqjeg.js +1 -0
  4. package/lib/chunks/flow-CQi_KYfs.js +49 -0
  5. package/lib/chunks/{helpers-TT5Y1hFq.js → helpers-K1tnyqhm.js} +1 -1
  6. package/lib/chunks/{index-Cgdz0gvj.js → index-Dv0RvKAp.js} +8 -8
  7. package/lib/chunks/source-instrument-form-context-C79I_5cH.js +1 -0
  8. package/lib/chunks/{ui-components-B2A1-SuV.js → ui-components-BKrLf2tx.js} +226 -226
  9. package/lib/chunks/use-odigos-api-CDHW7ekQ.js +5 -0
  10. package/lib/chunks/vendor-BFqT13Me.js +1 -0
  11. package/lib/components/v2.js +1 -1
  12. package/lib/components.js +1 -1
  13. package/lib/constants.js +1 -1
  14. package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +0 -2
  15. package/lib/containers/_v2/_drawers/add-destination-drawer/form-column/index.d.ts +1 -5
  16. package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +0 -6
  17. package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +0 -2
  18. package/lib/containers/_v2/_drawers/add-source-drawer/index.d.ts +1 -4
  19. package/lib/containers/_v2/_drawers/edit-action-drawer/index.d.ts +0 -3
  20. package/lib/containers/_v2/_drawers/edit-config-drawer/index.d.ts +1 -3
  21. package/lib/containers/_v2/_drawers/edit-destination-drawer/index.d.ts +0 -5
  22. package/lib/containers/_v2/_drawers/edit-rule-drawer/index.d.ts +0 -3
  23. package/lib/containers/_v2/_drawers/edit-source-drawer/debug/index.d.ts +1 -2
  24. package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +1 -14
  25. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +1 -2
  26. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +0 -2
  27. package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +1 -6
  28. package/lib/containers/_v2/_drawers/edit-source-drawer/profiling/index.d.ts +1 -15
  29. package/lib/containers/_v2/_drawers/system-drawer/describe/index.d.ts +1 -8
  30. package/lib/containers/_v2/_drawers/system-drawer/diagnose/index.d.ts +1 -4
  31. package/lib/containers/_v2/_drawers/system-drawer/index.d.ts +1 -4
  32. package/lib/containers/_v2/_drawers/system-drawer/tokens/index.d.ts +1 -2
  33. package/lib/containers/_v2/_forms/add-destination-form/index.d.ts +1 -2
  34. package/lib/containers/_v2/_modals/add-data-stream-modal/index.d.ts +0 -3
  35. package/lib/containers/_v2/_modals/edit-data-stream-modal/index.d.ts +0 -2
  36. package/lib/containers/_v2/_modals/sampling-onboarding-modal/types.d.ts +1 -4
  37. package/lib/containers/_v2/central-connections/index.d.ts +1 -12
  38. package/lib/containers/_v2/onboarding/index.d.ts +0 -8
  39. package/lib/containers/_v2/overview/columns/column/head.d.ts +1 -1
  40. package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -1
  41. package/lib/containers/_v2/overview/columns/index.d.ts +1 -8
  42. package/lib/containers/_v2/overview/data-stream-select/index.d.ts +1 -10
  43. package/lib/containers/_v2/overview/drawers/index.d.ts +1 -30
  44. package/lib/containers/_v2/overview/index.d.ts +2 -8
  45. package/lib/containers/_v2/overview/multi-source-control/index.d.ts +1 -5
  46. package/lib/containers/_v2/pipeline-collectors/index.d.ts +0 -7
  47. package/lib/containers/_v2/pipeline-collectors/pods-info/index.d.ts +1 -2
  48. package/lib/containers/_v2/pipeline-collectors/pods-info/pod-drawer/index.d.ts +1 -2
  49. package/lib/containers/_v2/sampling-rules/types.d.ts +2 -16
  50. package/lib/containers/_v2/settings/index.d.ts +0 -9
  51. package/lib/containers/service-map/index.d.ts +4 -2
  52. package/lib/containers/v2.js +189 -189
  53. package/lib/containers.js +7 -7
  54. package/lib/contexts/index.d.ts +1 -0
  55. package/lib/contexts/odigos-api/capabilities.d.ts +38 -0
  56. package/lib/contexts/odigos-api/client.d.ts +22 -0
  57. package/lib/contexts/odigos-api/connections-scope.d.ts +18 -0
  58. package/lib/contexts/odigos-api/hooks/use-actions-api.d.ts +26 -0
  59. package/lib/contexts/odigos-api/hooks/use-collectors-api.d.ts +25 -0
  60. package/lib/contexts/odigos-api/hooks/use-config-api.d.ts +24 -0
  61. package/lib/contexts/odigos-api/hooks/use-data-streams-api.d.ts +26 -0
  62. package/lib/contexts/odigos-api/hooks/use-describe-api.d.ts +33 -0
  63. package/lib/contexts/odigos-api/hooks/use-destinations-api.d.ts +50 -0
  64. package/lib/contexts/odigos-api/hooks/use-instrumentation-rules-api.d.ts +35 -0
  65. package/lib/contexts/odigos-api/hooks/use-k8s-manifest-api.d.ts +14 -0
  66. package/lib/contexts/odigos-api/hooks/use-metrics-api.d.ts +13 -0
  67. package/lib/contexts/odigos-api/hooks/use-namespace-api.d.ts +30 -0
  68. package/lib/contexts/odigos-api/hooks/use-profiling-api.d.ts +17 -0
  69. package/lib/contexts/odigos-api/hooks/use-sampling-api.d.ts +39 -0
  70. package/lib/contexts/odigos-api/hooks/use-service-map-api.d.ts +13 -0
  71. package/lib/contexts/odigos-api/hooks/use-snapshots-api.d.ts +13 -0
  72. package/lib/contexts/odigos-api/hooks/use-sources-api.d.ts +75 -0
  73. package/lib/contexts/odigos-api/hooks/use-tokens-api.d.ts +12 -0
  74. package/lib/contexts/odigos-api/index.d.ts +37 -0
  75. package/lib/contexts/odigos-api/internal/notify.d.ts +49 -0
  76. package/lib/contexts/odigos-api/internal/source-payloads.d.ts +53 -0
  77. package/lib/contexts/odigos-api/platform-helpers.d.ts +98 -0
  78. package/lib/contexts/odigos-api/provider.d.ts +28 -0
  79. package/lib/contexts/odigos-api/runner.d.ts +32 -0
  80. package/lib/contexts/odigos-api/types.d.ts +831 -0
  81. package/lib/contexts/odigos-api/use-api-for-connections.d.ts +43 -0
  82. package/lib/contexts/odigos-api/use-api-query.d.ts +130 -0
  83. package/lib/contexts/odigos-api/use-odigos-api.d.ts +103 -0
  84. package/lib/contexts/odigos-api.js +1 -0
  85. package/lib/contexts.js +1 -1
  86. package/lib/functions.js +1 -1
  87. package/lib/hooks.js +1 -1
  88. package/lib/snippets/v2.js +1 -1
  89. package/lib/snippets.js +1 -49
  90. package/lib/store/index.d.ts +0 -1
  91. package/lib/store.js +1 -1
  92. package/lib/theme.js +1 -1
  93. package/lib/types/actions/index.d.ts +0 -5
  94. package/lib/types/common/index.d.ts +29 -4
  95. package/lib/types/destinations/index.d.ts +0 -10
  96. package/lib/types/index.d.ts +0 -1
  97. package/lib/types/instrumentation-rules/index.d.ts +0 -5
  98. package/lib/types/namespaces/index.d.ts +0 -5
  99. package/lib/types/pipeline-collectors/index.d.ts +0 -5
  100. package/lib/types/snapshot/index.d.ts +0 -2
  101. package/lib/types/sources/index.d.ts +0 -30
  102. package/lib/types/tokens/index.d.ts +0 -6
  103. package/lib/types/workload/index.d.ts +0 -7
  104. package/lib/types.js +1 -1
  105. package/lib/visuals.js +1 -1
  106. package/package.json +10 -1
  107. package/lib/chunks/source-instrument-form-context-BGxM25wP.js +0 -1
  108. package/lib/chunks/vendor-IfqYyoNb.js +0 -1
  109. package/lib/mock-data/actions/index.d.ts +0 -2
  110. package/lib/mock-data/config/index.d.ts +0 -3
  111. package/lib/mock-data/connections/index.d.ts +0 -2
  112. package/lib/mock-data/describe/index.d.ts +0 -3
  113. package/lib/mock-data/destinations/index.d.ts +0 -4
  114. package/lib/mock-data/index.d.ts +0 -15
  115. package/lib/mock-data/instrumentation-instances/index.d.ts +0 -2
  116. package/lib/mock-data/instrumentation-rules/index.d.ts +0 -2
  117. package/lib/mock-data/namespaces/index.d.ts +0 -2
  118. package/lib/mock-data/pipeline-collectors/index.d.ts +0 -6
  119. package/lib/mock-data/profiling/index.d.ts +0 -8
  120. package/lib/mock-data/service-map/index.d.ts +0 -4
  121. package/lib/mock-data/snapshot/index.d.ts +0 -5
  122. package/lib/mock-data/sources/index.d.ts +0 -4
  123. package/lib/mock-data/sources/sampling.d.ts +0 -7
  124. package/lib/mock-data/sources/yamls.d.ts +0 -22
  125. package/lib/mock-data/tokens/index.d.ts +0 -2
  126. package/lib/mock-data/traces/index.d.ts +0 -2
  127. package/lib/store/useEntityStore.d.ts +0 -24
  128. package/lib/types/k8s-manifest/index.d.ts +0 -2
@@ -1,14 +1,7 @@
1
1
  import { type FC } from 'react';
2
2
  import { Tabs } from './enum';
3
- import { type GetExtendedPodInfo, type GetGatewayInfo, type GetGatewayPods, type GetNodeCollectorInfo, type GetNodeCollectorPods, type EffectiveConfig } from '@/types';
4
3
  export interface PipelineCollectorsProps {
5
4
  minSupportedVersion?: number;
6
- effectiveConfig?: Pick<EffectiveConfig, 'odigosOwnTelemetryStore'> | null;
7
- getGatewayInfo: GetGatewayInfo;
8
- getGatewayPods: GetGatewayPods;
9
- getNodeCollectorInfo: GetNodeCollectorInfo;
10
- getNodeCollectorPods: GetNodeCollectorPods;
11
- getExtendedPodInfo: GetExtendedPodInfo;
12
5
  }
13
6
  export declare const TABS: {
14
7
  value: Tabs;
@@ -1,9 +1,8 @@
1
1
  import { type FC } from 'react';
2
- import { type GetExtendedPodInfo, type PodInfo } from '@/types';
2
+ import { type PodInfo } from '@/types';
3
3
  export interface PodsInfoProps {
4
4
  isLoading?: boolean;
5
5
  pods: PodInfo[];
6
- getExtendedPodInfo: GetExtendedPodInfo;
7
6
  withSpanDropRate: boolean;
8
7
  }
9
8
  export declare const PodsInfo: FC<PodsInfoProps>;
@@ -1,9 +1,8 @@
1
1
  import { type FC } from 'react';
2
+ import { type PodInfo } from '@/types';
2
3
  import { type HeaderProps } from '@/components/_v2/drawer/header';
3
- import { type GetExtendedPodInfo, type PodInfo } from '@/types';
4
4
  export interface PodDrawerProps {
5
5
  pod: PodInfo | null;
6
- getExtendedPodInfo: GetExtendedPodInfo;
7
6
  onClose: HeaderProps['onClose'];
8
7
  }
9
8
  export declare const PodDrawer: FC<PodDrawerProps>;
@@ -1,4 +1,4 @@
1
- import type { CostReductionRuleInput, HighlyRelevantOperationRuleInput, NoisyOperationRuleInput, SamplingRules, WorkloadId, SamplingRuleCategory, SamplingRuleItem, SamplingRulesK8sHealthConfig } from '@/types';
1
+ import type { SamplingRuleItem } from '@/types';
2
2
  export interface SamplingRulesListProps {
3
3
  title: string;
4
4
  titleTooltip?: string;
@@ -10,20 +10,6 @@ export interface SamplingRulesListProps {
10
10
  onDeleteRule: (ruleId: string, samplingId: string) => void;
11
11
  }
12
12
  export interface SamplingRulesProps {
13
- workloads: {
14
- id: WorkloadId;
15
- }[];
16
- samplingRules: SamplingRules[];
17
- k8sHealthProbesConfig: SamplingRulesK8sHealthConfig | null;
18
- loading: boolean;
19
- fetchSamplingRules: () => void;
20
- createNoisyOperationRule: (samplingId: string, rule: NoisyOperationRuleInput) => Promise<void> | void;
21
- updateNoisyOperationRule: (samplingId: string, ruleId: string, rule: NoisyOperationRuleInput) => Promise<void> | void;
22
- createHighlyRelevantOperationRule: (samplingId: string, rule: HighlyRelevantOperationRuleInput) => Promise<void> | void;
23
- updateHighlyRelevantOperationRule: (samplingId: string, ruleId: string, rule: HighlyRelevantOperationRuleInput) => Promise<void> | void;
24
- createCostReductionRule: (samplingId: string, rule: CostReductionRuleInput) => Promise<void> | void;
25
- updateCostReductionRule: (samplingId: string, ruleId: string, rule: CostReductionRuleInput) => Promise<void> | void;
26
- deleteSamplingRule: (samplingId: string, ruleId: string, category: SamplingRuleCategory) => Promise<void> | void;
27
- updateK8sHealthProbesConfig: (enabled: boolean, keepPercentage: number) => Promise<void> | void;
13
+ /** Optional documentation URL surfaced in the toolbar. */
28
14
  docsUrl?: string;
29
15
  }
@@ -1,14 +1,5 @@
1
1
  import { type FC } from 'react';
2
- import { type ConfigYaml, type EffectiveConfig, type LocalUiConfigInput } from '@/types';
3
2
  export interface SettingsProps {
4
3
  minSupportedVersion?: number;
5
- configYamls: ConfigYaml[];
6
- configYamlsLoading: boolean;
7
- effectiveConfig: EffectiveConfig | null;
8
- effectiveConfigLoading: boolean;
9
- refetch?: () => Promise<unknown>;
10
- factoryReset?: () => Promise<unknown>;
11
- onSave: (config: LocalUiConfigInput) => Promise<void>;
12
- saveLoading: boolean;
13
4
  }
14
5
  export declare const Settings: FC<SettingsProps>;
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
2
  import { type ServiceMapSources } from '@/types';
3
3
  interface ServiceMapProps {
4
- serviceMap: ServiceMapSources;
5
- onRefresh?: () => void;
4
+ /** Optional override; when omitted the container polls via `useApiQuery('GET_SERVICE_MAP')`. */
5
+ serviceMap?: ServiceMapSources;
6
+ /** Polling cadence in ms. Defaults to 15s. */
7
+ pollIntervalMs?: number;
6
8
  }
7
9
  declare const ServiceMap: React.FC<ServiceMapProps>;
8
10
  export { ServiceMap, type ServiceMapProps };