@odigos/ui-kit 0.0.238 → 0.0.240

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 (169) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/lib/chunks/helpers-D-6cJlOn.js +19 -0
  3. package/lib/chunks/index-RUJS9Blu.js +147 -0
  4. package/lib/chunks/source-instrument-form-context-CEgbaSRi.js +1 -0
  5. package/lib/chunks/ui-components-B0BVzW_z.js +1570 -0
  6. package/lib/chunks/{vendor-C150cdxb.js → vendor-Be0cOokr.js} +1 -1
  7. package/lib/components/_v2/button/index.d.ts +1 -1
  8. package/lib/components/_v2/cards/data-card/index.d.ts +6 -1
  9. package/lib/components/_v2/condition/index.d.ts +1 -0
  10. package/lib/components/_v2/drawer/header/index.d.ts +2 -0
  11. package/lib/components/_v2/drawer/index.d.ts +1 -1
  12. package/lib/components/_v2/drop-data/index.d.ts +3 -4
  13. package/lib/components/_v2/icon-group/index.d.ts +10 -0
  14. package/lib/components/_v2/index.d.ts +1 -0
  15. package/lib/components/_v2/input-table/types.d.ts +2 -0
  16. package/lib/components/_v2/tag/index.d.ts +10 -0
  17. package/lib/components/_v2/typography/index.d.ts +2 -0
  18. package/lib/components/index.d.ts +0 -22
  19. package/lib/components/v2.js +1 -1
  20. package/lib/components.js +1 -1
  21. package/lib/constants/sources/index.d.ts +10 -5
  22. package/lib/constants/strings/index.d.ts +92 -0
  23. package/lib/constants.js +1 -1
  24. package/lib/containers/_v2/_drawers/add-source-drawer/strings.d.ts +54 -0
  25. package/lib/containers/_v2/_drawers/edit-source-drawer/common/index.d.ts +1 -0
  26. package/lib/containers/_v2/_drawers/edit-source-drawer/common/pods-header.d.ts +8 -0
  27. package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +12 -0
  28. package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +19 -0
  29. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/distro-override.d.ts +11 -0
  30. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +7 -0
  31. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/popup-form.d.ts +15 -0
  32. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/runtime-override.d.ts +10 -0
  33. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/health-card.d.ts +6 -0
  34. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +11 -0
  35. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/main-card.d.ts +6 -0
  36. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/index.d.ts +6 -0
  37. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/container-row.d.ts +9 -0
  38. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +19 -0
  39. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/index.d.ts +12 -0
  40. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/pod-row.d.ts +8 -0
  41. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +11 -0
  42. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/row-header.d.ts +13 -0
  43. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/types.d.ts +18 -0
  44. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/statuses-card.d.ts +9 -0
  45. package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +11 -0
  46. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/index.d.ts +7 -0
  47. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +5 -0
  48. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/debug-commands.d.ts +6 -0
  49. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/index.d.ts +7 -0
  50. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/pod-card.d.ts +8 -0
  51. package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/index.d.ts +2 -2
  52. package/lib/containers/_v2/_drawers/index.d.ts +1 -0
  53. package/lib/containers/_v2/_forms/edit-source-form/index.d.ts +2 -0
  54. package/lib/containers/_v2/_forms/index.d.ts +1 -0
  55. package/lib/containers/_v2/_modals/index.d.ts +1 -0
  56. package/lib/containers/_v2/_modals/onboarding-done/background.d.ts +5 -0
  57. package/lib/containers/_v2/_modals/onboarding-done/index.d.ts +3 -0
  58. package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -2
  59. package/lib/containers/_v2/overview/columns/column/list-item.d.ts +2 -2
  60. package/lib/containers/_v2/overview/columns/column/source-visual-state.d.ts +3 -3
  61. package/lib/containers/_v2/overview/drawers/index.d.ts +2 -4
  62. package/lib/containers/_v2/overview/search/builder.d.ts +4 -4
  63. package/lib/containers/index.d.ts +0 -3
  64. package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -2
  65. package/lib/containers/v2.js +269 -124
  66. package/lib/containers.js +19 -19
  67. package/lib/contexts/action-form-context.d.ts +0 -1
  68. package/lib/contexts/destination-form-context.d.ts +0 -1
  69. package/lib/contexts/index.d.ts +1 -0
  70. package/lib/contexts/rule-form-context.d.ts +0 -1
  71. package/lib/contexts/source-edit-form-context.d.ts +17 -0
  72. package/lib/contexts.js +1 -1
  73. package/lib/functions/filter-sources/index.d.ts +2 -2
  74. package/lib/functions/filter-sources-by-stream/index.d.ts +2 -2
  75. package/lib/functions/get-conditions-booleans/index.d.ts +5 -3
  76. package/lib/functions/get-containers-counts/index.d.ts +2 -2
  77. package/lib/functions/get-containers-icons/index.d.ts +5 -3
  78. package/lib/functions/get-entity-id/index.d.ts +8 -4
  79. package/lib/functions/get-main-container-language/index.d.ts +2 -2
  80. package/lib/functions/get-virtual-service-icon/index.d.ts +1 -1
  81. package/lib/functions/get-workload-id/index.d.ts +2 -2
  82. package/lib/functions/index.d.ts +2 -0
  83. package/lib/functions/is-pod-injected-with-agent/index.d.ts +4 -0
  84. package/lib/functions/map-desired-status-to-condition-status/index.d.ts +2 -0
  85. package/lib/functions.js +1 -1
  86. package/lib/hooks/index.d.ts +0 -1
  87. package/lib/hooks/useActionFormData.d.ts +1 -1
  88. package/lib/hooks/useSourceFormData.d.ts +2 -2
  89. package/lib/hooks/useTimeAgo.d.ts +11 -0
  90. package/lib/hooks.js +1 -1
  91. package/lib/icons/brand/index.d.ts +3 -0
  92. package/lib/icons/brand/odigos-logo-text-colored-central/index.d.ts +2 -0
  93. package/lib/icons/brand/odigos-logo-text-colored-community/index.d.ts +2 -0
  94. package/lib/icons/brand/odigos-logo-text-colored-enterprise/index.d.ts +2 -0
  95. package/lib/icons.js +1 -1
  96. package/lib/mock-data/index.d.ts +0 -1
  97. package/lib/mock-data/profiling/index.d.ts +1 -1
  98. package/lib/mock-data/service-map/index.d.ts +1 -1
  99. package/lib/mock-data/sources/index.d.ts +4 -7
  100. package/lib/snippets/_v2/delete-modal/index.d.ts +3 -0
  101. package/lib/snippets/_v2/dynamic-field/index.d.ts +2 -3
  102. package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +2 -0
  103. package/lib/snippets/_v2/rich-title/index.d.ts +5 -0
  104. package/lib/snippets/_v2/wide-drawer/index.d.ts +7 -1
  105. package/lib/snippets/index.d.ts +0 -4
  106. package/lib/snippets/v2.js +1 -1
  107. package/lib/snippets.js +49 -1
  108. package/lib/store/useEntityStore.d.ts +2 -2
  109. package/lib/store/useFilterStore.d.ts +8 -14
  110. package/lib/store/useSelectedStore.d.ts +2 -2
  111. package/lib/store/useSetupStore.d.ts +10 -15
  112. package/lib/store.js +1 -1
  113. package/lib/theme.js +1 -1
  114. package/lib/types/common/index.d.ts +28 -0
  115. package/lib/types/destinations/index.d.ts +3 -3
  116. package/lib/types/namespaces/index.d.ts +3 -3
  117. package/lib/types/service-map/index.d.ts +2 -2
  118. package/lib/types/sources/index.d.ts +4 -41
  119. package/lib/types/workload/index.d.ts +145 -3
  120. package/lib/types.js +1 -1
  121. package/lib/visuals.js +1 -1
  122. package/package.json +1 -1
  123. package/lib/chunks/index-CCaTS6aq.js +0 -145
  124. package/lib/chunks/index-ChkHWnzu.js +0 -77
  125. package/lib/chunks/index-D6SlbWIi.js +0 -3
  126. package/lib/chunks/ui-components-rpRyPe3l.js +0 -2235
  127. package/lib/components/badge/index.d.ts +0 -11
  128. package/lib/components/button/index.d.ts +0 -6
  129. package/lib/components/cancel-warning/index.d.ts +0 -10
  130. package/lib/components/checkbox/index.d.ts +0 -15
  131. package/lib/components/condition-details/index.d.ts +0 -10
  132. package/lib/components/data-card/data-card-fields/index.d.ts +0 -23
  133. package/lib/components/data-card/index.d.ts +0 -17
  134. package/lib/components/data-tab/index.d.ts +0 -43
  135. package/lib/components/delete-warning/index.d.ts +0 -13
  136. package/lib/components/describe-row/index.d.ts +0 -13
  137. package/lib/components/drawer/drawer-footer/index.d.ts +0 -16
  138. package/lib/components/drawer/drawer-header/index.d.ts +0 -24
  139. package/lib/components/drawer/index.d.ts +0 -15
  140. package/lib/components/dropdown/index.d.ts +0 -25
  141. package/lib/components/extend-arrow/index.d.ts +0 -8
  142. package/lib/components/field-error/index.d.ts +0 -4
  143. package/lib/components/field-label/index.d.ts +0 -11
  144. package/lib/components/input/index.d.ts +0 -15
  145. package/lib/components/modal/index.d.ts +0 -14
  146. package/lib/components/monitors-icons/index.d.ts +0 -11
  147. package/lib/components/no-data-found/index.d.ts +0 -6
  148. package/lib/components/popup-form/index.d.ts +0 -18
  149. package/lib/components/status/index.d.ts +0 -17
  150. package/lib/components/tab-list/index.d.ts +0 -18
  151. package/lib/components/warning-modal/index.d.ts +0 -24
  152. package/lib/containers/overview-drawer/index.d.ts +0 -27
  153. package/lib/containers/source-drawer/build-card.d.ts +0 -3
  154. package/lib/containers/source-drawer/describe/index.d.ts +0 -13
  155. package/lib/containers/source-drawer/index.d.ts +0 -23
  156. package/lib/containers/source-drawer/libraries/index.d.ts +0 -12
  157. package/lib/containers/source-drawer/odigos-health/index.d.ts +0 -5
  158. package/lib/containers/source-drawer/peers/index.d.ts +0 -12
  159. package/lib/containers/source-form/index.d.ts +0 -8
  160. package/lib/hooks/useSourceSelectionFormData.d.ts +0 -32
  161. package/lib/mock-data/workload/index.d.ts +0 -2
  162. package/lib/snippets/add-button/index.d.ts +0 -9
  163. package/lib/snippets/copy-text/index.d.ts +0 -7
  164. package/lib/snippets/pod-container/index.d.ts +0 -5
  165. package/lib/snippets/source-container/index.d.ts +0 -7
  166. package/lib/snippets/source-container/override-runtime.d.ts +0 -10
  167. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flame-graph-canvas.d.ts +0 -0
  168. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flamebearer.d.ts +0 -0
  169. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/symbol-table.d.ts +0 -0
@@ -0,0 +1,12 @@
1
+ import { type FC } from 'react';
2
+ import type { K8sWorkloadPod } from '@/types';
3
+ import type { OnJumpToProcess } from './types';
4
+ export interface PodsListProps {
5
+ pods?: K8sWorkloadPod[] | null;
6
+ /**
7
+ * Optional handler invoked when the "jump to pod" action is triggered for a process.
8
+ * Should navigate the user to the relevant spot in the Pod tab.
9
+ */
10
+ onJumpToProcess?: OnJumpToProcess;
11
+ }
12
+ export declare const PodsList: FC<PodsListProps>;
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ import type { OnJumpToProcess } from './types';
3
+ import { type K8sWorkloadPod } from '@/types';
4
+ export interface PodRowProps {
5
+ pod: K8sWorkloadPod;
6
+ onJumpToProcess?: OnJumpToProcess;
7
+ }
8
+ export declare const PodRow: FC<PodRowProps>;
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ import type { OnJumpToProcess } from './types';
3
+ import { type K8sWorkloadPod, type K8sWorkloadPodContainer, type K8sWorkloadPodContainerProcess } from '@/types';
4
+ export interface ProcessRowProps {
5
+ overrideProcessNum?: number;
6
+ pod: K8sWorkloadPod;
7
+ container: K8sWorkloadPodContainer;
8
+ process: K8sWorkloadPodContainerProcess;
9
+ onJumpToProcess?: OnJumpToProcess;
10
+ }
11
+ export declare const ProcessRow: FC<ProcessRowProps>;
@@ -0,0 +1,13 @@
1
+ import { type FC } from 'react';
2
+ import { type SVG } from '@/types';
3
+ import type { BadgeDescriptor, RowAction } from './types';
4
+ export interface RowHeaderProps {
5
+ chevron?: SVG;
6
+ onClick?: () => void;
7
+ label: string;
8
+ name: string;
9
+ badges: BadgeDescriptor[];
10
+ action?: RowAction;
11
+ paddingLeft: number;
12
+ }
13
+ export declare const RowHeader: FC<RowHeaderProps>;
@@ -0,0 +1,18 @@
1
+ import type { K8sWorkloadPod, K8sWorkloadPodContainer, K8sWorkloadPodContainerProcess, OtherStatus, StatusType, SVG } from '@/types';
2
+ /**
3
+ * Handler invoked when the "jump to pod" action is triggered for a process.
4
+ * Should navigate the user to the relevant spot in the Pod tab.
5
+ */
6
+ export type OnJumpToProcess = (pod: K8sWorkloadPod, container: K8sWorkloadPodContainer, process: K8sWorkloadPodContainerProcess) => void;
7
+ export interface BadgeDescriptor {
8
+ key: string;
9
+ status: StatusType | OtherStatus;
10
+ icon?: SVG;
11
+ label: string;
12
+ tooltip?: string;
13
+ }
14
+ export interface RowAction {
15
+ icon: SVG;
16
+ onClick: () => void;
17
+ tooltip?: string;
18
+ }
@@ -0,0 +1,9 @@
1
+ import { type FC } from 'react';
2
+ import { type Workload } from '@/types';
3
+ export interface StatusesCardProps {
4
+ rollbackEnabled: boolean;
5
+ source: Workload;
6
+ onClickRollout: () => void;
7
+ onClickRollback: () => void;
8
+ }
9
+ export declare const StatusesCard: FC<StatusesCardProps>;
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ import type { PeerSources, Workload } from '@/types';
3
+ export interface PeersProps {
4
+ source: Workload;
5
+ fetchPeerSources: (serviceName: string) => Promise<{
6
+ data?: {
7
+ peerSources: PeerSources;
8
+ };
9
+ }>;
10
+ }
11
+ export declare const Peers: FC<PeersProps>;
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ import { type K8sWorkloadPodContainer, type K8sWorkloadContainer } from '@/types';
3
+ export interface ContainersCardProps {
4
+ podContainers?: K8sWorkloadPodContainer[] | null;
5
+ sourceContainers?: K8sWorkloadContainer[] | null;
6
+ }
7
+ export declare const ContainersCard: FC<ContainersCardProps>;
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { type K8sWorkloadPodContainerProcess } from '@/types';
3
+ export declare const ProcessCard: FC<K8sWorkloadPodContainerProcess & {
4
+ overrideProcessNum?: number;
5
+ }>;
@@ -0,0 +1,6 @@
1
+ import { type FC } from 'react';
2
+ export interface DebugCommandsProps {
3
+ podName: string;
4
+ namespace: string;
5
+ }
6
+ export declare const DebugCommands: FC<DebugCommandsProps>;
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ import { type Workload } from '@/types';
3
+ export interface PodsProps {
4
+ source: Workload;
5
+ onClickRestartPod?: (namespace: string, name: string) => void;
6
+ }
7
+ export declare const Pods: FC<PodsProps>;
@@ -0,0 +1,8 @@
1
+ import { ReactNode, type FC } from 'react';
2
+ import { type K8sWorkloadPod } from '@/types';
3
+ export interface PodCardProps extends K8sWorkloadPod {
4
+ children?: ReactNode;
5
+ namespace: string;
6
+ onClickRestartPod?: (namespace: string, name: string) => void;
7
+ }
8
+ export declare const PodCard: FC<PodCardProps>;
@@ -1,6 +1,6 @@
1
1
  import { type FC } from 'react';
2
2
  import { type ProfilingSlots } from './flame-graph-canvas';
3
- import { type WorkloadId, type Source } from '@/types';
3
+ import { type WorkloadId, type Workload } from '@/types';
4
4
  interface SourceProfilingResult {
5
5
  profileJson: string;
6
6
  }
@@ -11,7 +11,7 @@ interface EnableOrReleaseProfilingResult {
11
11
  activeSlots?: number;
12
12
  }
13
13
  export interface ProfilingProps {
14
- source: Source;
14
+ source: Workload;
15
15
  enableProfiling: (source: WorkloadId) => Promise<EnableOrReleaseProfilingResult | undefined>;
16
16
  fetchProfilingSlots: () => Promise<ProfilingSlots | undefined>;
17
17
  fetchSourceProfiling: (source: WorkloadId) => Promise<SourceProfilingResult | undefined>;
@@ -6,5 +6,6 @@ export * from './edit-action-drawer';
6
6
  export * from './edit-config-drawer';
7
7
  export * from './edit-destination-drawer';
8
8
  export * from './edit-rule-drawer';
9
+ export * from './edit-source-drawer';
9
10
  export * from './sampling-rule-drawer';
10
11
  export * from './system-drawer';
@@ -0,0 +1,2 @@
1
+ import { type FC } from 'react';
2
+ export declare const EditSourceForm: FC;
@@ -2,4 +2,5 @@ export * from './add-action-form';
2
2
  export * from './add-destination-form';
3
3
  export * from './add-rule-form';
4
4
  export * from './data-stream-form';
5
+ export * from './edit-source-form';
5
6
  export * from './sampling-rule-form';
@@ -1,3 +1,4 @@
1
1
  export * from './add-data-stream-modal';
2
2
  export * from './edit-data-stream-modal';
3
+ export * from './onboarding-done';
3
4
  export * from './sampling-onboarding-modal';
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ export interface BackgroundProps {
3
+ scale?: number;
4
+ }
5
+ export declare const Background: FC<BackgroundProps>;
@@ -0,0 +1,3 @@
1
+ import { type FC } from 'react';
2
+ export declare const ONBOARDING_DONE_MODAL_ID = "onboarding-done";
3
+ export declare const OnboardingDone: FC;
@@ -1,8 +1,8 @@
1
1
  import { type FC } from 'react';
2
- import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Source, type Metrics } from '@/types';
2
+ import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Metrics, type Workload } from '@/types';
3
3
  export interface ColumnProps {
4
4
  entityType: EntityTypes;
5
- entities: Source[] | Destination[] | Action[] | InstrumentationRule[];
5
+ entities: Workload[] | Destination[] | Action[] | InstrumentationRule[];
6
6
  unfilteredCount: number;
7
7
  metrics?: Metrics;
8
8
  loading: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type FC } from 'react';
2
- import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Source, StatusType, type SVG, type WorkloadId } from '@/types';
2
+ import { type Action, type Destination, EntityTypes, type InstrumentationRule, StatusType, type SVG, type WorkloadId, type Workload } from '@/types';
3
3
  export interface ListItemProps {
4
4
  entityId: string | WorkloadId;
5
5
  entityType: EntityTypes;
@@ -12,6 +12,6 @@ export interface ListItemProps {
12
12
  icons?: SVG[];
13
13
  iconSrc?: string;
14
14
  isActive?: boolean;
15
- raw: Source | Destination | Action | InstrumentationRule;
15
+ raw: Workload | Destination | Action | InstrumentationRule;
16
16
  }
17
17
  export declare const ListItem: FC<ListItemProps>;
@@ -1,9 +1,9 @@
1
- import { type Source, StatusType } from '@/types';
1
+ import { type Workload, StatusType } from '@/types';
2
2
  interface SourceVisualState {
3
3
  status?: StatusType;
4
4
  faded: boolean;
5
5
  tooltip?: string;
6
- displaySource: Source;
6
+ displaySource: Workload;
7
7
  }
8
- export declare function getSourceVisualState(source: Source): SourceVisualState;
8
+ export declare function getSourceVisualState(source: Workload): SourceVisualState;
9
9
  export {};
@@ -1,7 +1,7 @@
1
1
  import { type FC } from 'react';
2
- import { type CreateActionFunc, type CreateDestinationFunc, type CreateInstrumentationRuleFunc, type DeleteActionFunc, type DeleteDestinationFunc, type DeleteInstrumentationRuleFunc, type EffectiveConfig, type EnableProfilingFunc, type FetchNamespacesWithWorkloads, type FetchPeerSourcesFunc, type FetchProfilingSlotsFunc, type FetchSourceByIdFunc, type FetchSourceDescribeFunc, type FetchSourceLibrariesFunc, type FetchSourceProfilingFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type PersistSourcesFunc, type RecoverFromRollbackFunc, type RestartPodFunc, type RestartWorkloadsFunc, type TestConnectionFunc, type UpdateActionFunc, type UpdateDestinationFunc, type UpdateInstrumentationRuleFunc, type UpdateSourceFunc } from '@/types';
2
+ import { type CreateActionFunc, type CreateDestinationFunc, type CreateInstrumentationRuleFunc, type DeleteActionFunc, type DeleteDestinationFunc, type DeleteInstrumentationRuleFunc, type EffectiveConfig, type EnableProfilingFunc, type FetchNamespacesWithWorkloads, type FetchPeerSourcesFunc, type FetchProfilingSlotsFunc, type FetchSourceByIdFunc, type FetchSourceProfilingFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type PersistSourcesFunc, type RecoverFromRollbackFunc, type RestartPodFunc, type RestartWorkloadsFunc, type TestConnectionFunc, type UpdateActionFunc, type UpdateDestinationFunc, type UpdateInstrumentationRuleFunc, type UpdateSourceFunc } from '@/types';
3
3
  export interface DrawersProps {
4
- effectiveConfig: EffectiveConfig;
4
+ effectiveConfig?: EffectiveConfig;
5
5
  fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
6
6
  persistSources: PersistSourcesFunc;
7
7
  restartWorkloads: RestartWorkloadsFunc;
@@ -9,8 +9,6 @@ export interface DrawersProps {
9
9
  recoverFromRollback: RecoverFromRollbackFunc;
10
10
  updateSource: UpdateSourceFunc;
11
11
  fetchSourceById: FetchSourceByIdFunc;
12
- fetchSourceDescribe: FetchSourceDescribeFunc;
13
- fetchSourceLibraries: FetchSourceLibrariesFunc;
14
12
  fetchPeerSources: FetchPeerSourcesFunc;
15
13
  enableProfiling: EnableProfilingFunc;
16
14
  fetchProfilingSlots: FetchProfilingSlotsFunc;
@@ -1,9 +1,9 @@
1
- import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Source } from '@/types';
1
+ import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Workload } from '@/types';
2
2
  export type Category = 'all' | EntityTypes;
3
3
  interface Params {
4
4
  searchText: string;
5
5
  selectedCategory: Category;
6
- sources: Source[];
6
+ sources: Workload[];
7
7
  destinations: Destination[];
8
8
  actions: Action[];
9
9
  instrumentationRules: InstrumentationRule[];
@@ -13,10 +13,10 @@ export declare const buildSearchResults: ({ instrumentationRules, sources, actio
13
13
  category: Category;
14
14
  label: string;
15
15
  count: number;
16
- entities: InstrumentationRule[] | Source[] | Action[] | Destination[];
16
+ entities: InstrumentationRule[] | Workload[] | Action[] | Destination[];
17
17
  }[];
18
18
  searchResults: {
19
- entities: Source[] | Action[] | Destination[] | InstrumentationRule[];
19
+ entities: Workload[] | Destination[] | Action[] | InstrumentationRule[];
20
20
  category: Category;
21
21
  label: string;
22
22
  count: number;
@@ -1,6 +1,3 @@
1
1
  export * from './notification-manager';
2
- export * from './overview-drawer';
3
2
  export * from './service-map';
4
- export * from './source-drawer';
5
- export * from './source-form';
6
3
  export * from './toast-list';
@@ -1,10 +1,10 @@
1
1
  import type { Node } from '@xyflow/react';
2
- import { type Source, type AggregatedServiceMap } from '@/types';
2
+ import { type Workload, type AggregatedServiceMap } from '@/types';
3
3
  export declare const NODE_WIDTH = 80;
4
4
  export declare const NODE_HEIGHT = 80;
5
5
  export declare const toFlowNodeId: (graphKey: string) => string;
6
6
  interface Params {
7
- sources: Source[];
7
+ sources: Workload[];
8
8
  aggregatedServiceMap: AggregatedServiceMap;
9
9
  }
10
10
  export declare const buildMapNodes: ({ sources, aggregatedServiceMap }: Params) => Node[];