@odigos/ui-kit 0.0.239 → 0.0.241

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 (144) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/lib/chunks/helpers-L572q0MU.js +19 -0
  3. package/lib/chunks/index-DHcHiz_q.js +149 -0
  4. package/lib/chunks/source-instrument-form-context-vq8DFX7f.js +1 -0
  5. package/lib/chunks/ui-components-DeKNGyn7.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 +1 -0
  9. package/lib/components/_v2/condition/index.d.ts +1 -0
  10. package/lib/components/_v2/drop-data/index.d.ts +2 -2
  11. package/lib/components/_v2/input-table/types.d.ts +2 -0
  12. package/lib/components/index.d.ts +0 -22
  13. package/lib/components/v2.js +1 -1
  14. package/lib/components.js +1 -1
  15. package/lib/constants/sources/index.d.ts +5 -5
  16. package/lib/constants/strings/index.d.ts +16 -3
  17. package/lib/constants.js +1 -1
  18. package/lib/containers/_v2/_drawers/add-source-drawer/strings.d.ts +54 -0
  19. package/lib/containers/_v2/_drawers/edit-source-drawer/common/pods-header.d.ts +1 -1
  20. package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +3 -3
  21. package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +3 -3
  22. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +2 -2
  23. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/popup-form.d.ts +4 -0
  24. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/runtime-override.d.ts +1 -0
  25. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/health-card.d.ts +2 -2
  26. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +2 -2
  27. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/main-card.d.ts +2 -2
  28. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/index.d.ts +2 -2
  29. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/container-row.d.ts +1 -1
  30. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +4 -2
  31. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/pod-row.d.ts +1 -1
  32. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +1 -0
  33. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/row-header.d.ts +3 -2
  34. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/types.d.ts +1 -8
  35. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/statuses-card.d.ts +2 -2
  36. package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +2 -2
  37. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/index.d.ts +2 -2
  38. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +3 -1
  39. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/index.d.ts +2 -2
  40. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/pod-debug-commands.d.ts +7 -0
  41. package/lib/containers/_v2/_drawers/edit-source-drawer/profiling/index.d.ts +2 -2
  42. package/lib/containers/_v2/_drawers/edit-source-drawer/yaml-files/index.d.ts +6 -0
  43. package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -2
  44. package/lib/containers/_v2/overview/columns/column/list-item.d.ts +2 -2
  45. package/lib/containers/_v2/overview/columns/column/source-visual-state.d.ts +3 -3
  46. package/lib/containers/_v2/overview/drawers/index.d.ts +1 -1
  47. package/lib/containers/_v2/overview/search/builder.d.ts +4 -4
  48. package/lib/containers/index.d.ts +0 -3
  49. package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -2
  50. package/lib/containers/v2.js +172 -125
  51. package/lib/containers.js +19 -49
  52. package/lib/contexts/source-edit-form-context.d.ts +2 -2
  53. package/lib/contexts.js +1 -1
  54. package/lib/functions/build-badge-for-desired-status/index.d.ts +6 -0
  55. package/lib/functions/filter-sources/index.d.ts +2 -2
  56. package/lib/functions/filter-sources-by-stream/index.d.ts +2 -2
  57. package/lib/functions/get-conditions-booleans/index.d.ts +5 -3
  58. package/lib/functions/get-containers-counts/index.d.ts +2 -2
  59. package/lib/functions/get-containers-icons/index.d.ts +5 -5
  60. package/lib/functions/get-entity-id/index.d.ts +8 -4
  61. package/lib/functions/get-health-badge-label/index.d.ts +2 -0
  62. package/lib/functions/get-main-container-language/index.d.ts +2 -2
  63. package/lib/functions/get-workload-id/index.d.ts +2 -2
  64. package/lib/functions/index.d.ts +2 -1
  65. package/lib/functions/map-desired-status-to-condition-status/index.d.ts +1 -1
  66. package/lib/functions.js +1 -1
  67. package/lib/hooks/index.d.ts +0 -1
  68. package/lib/hooks/useActionFormData.d.ts +1 -1
  69. package/lib/hooks/useSourceFormData.d.ts +2 -2
  70. package/lib/hooks/useTimeAgo.d.ts +11 -0
  71. package/lib/hooks.js +1 -1
  72. package/lib/icons/common/inbound-icon/index.d.ts +2 -0
  73. package/lib/icons/common/index.d.ts +2 -0
  74. package/lib/icons/common/outbound-icon/index.d.ts +2 -0
  75. package/lib/icons/destinations/open-telemetry-logo/index.d.ts +1 -0
  76. package/lib/icons.js +1 -1
  77. package/lib/mock-data/index.d.ts +0 -1
  78. package/lib/mock-data/sources/index.d.ts +4 -7
  79. package/lib/mock-data/sources/yamls.d.ts +22 -0
  80. package/lib/snippets/_v2/delete-modal/index.d.ts +3 -0
  81. package/lib/snippets/_v2/dynamic-field/index.d.ts +2 -3
  82. package/lib/snippets/_v2/yaml-section-card/index.d.ts +2 -1
  83. package/lib/snippets/index.d.ts +0 -4
  84. package/lib/snippets/v2.js +1 -1
  85. package/lib/snippets.js +49 -1
  86. package/lib/store/useEntityStore.d.ts +2 -2
  87. package/lib/store/useFilterStore.d.ts +8 -14
  88. package/lib/store/useSelectedStore.d.ts +2 -2
  89. package/lib/store/useSetupStore.d.ts +10 -15
  90. package/lib/store.js +1 -1
  91. package/lib/theme.js +1 -1
  92. package/lib/types/destinations/index.d.ts +3 -3
  93. package/lib/types/namespaces/index.d.ts +3 -3
  94. package/lib/types/sources/index.d.ts +3 -44
  95. package/lib/types/workload/index.d.ts +24 -51
  96. package/lib/types.js +1 -1
  97. package/lib/visuals.js +1 -1
  98. package/package.json +1 -1
  99. package/lib/chunks/index-B5PgIL40.js +0 -3
  100. package/lib/chunks/index-Dy4pkeq6.js +0 -145
  101. package/lib/chunks/index-uXyrp4Xe.js +0 -41
  102. package/lib/chunks/ui-components-BPdnIOmj.js +0 -2248
  103. package/lib/components/badge/index.d.ts +0 -11
  104. package/lib/components/button/index.d.ts +0 -6
  105. package/lib/components/cancel-warning/index.d.ts +0 -10
  106. package/lib/components/checkbox/index.d.ts +0 -15
  107. package/lib/components/condition-details/index.d.ts +0 -10
  108. package/lib/components/data-card/data-card-fields/index.d.ts +0 -23
  109. package/lib/components/data-card/index.d.ts +0 -17
  110. package/lib/components/data-tab/index.d.ts +0 -43
  111. package/lib/components/delete-warning/index.d.ts +0 -13
  112. package/lib/components/describe-row/index.d.ts +0 -13
  113. package/lib/components/drawer/drawer-footer/index.d.ts +0 -16
  114. package/lib/components/drawer/drawer-header/index.d.ts +0 -24
  115. package/lib/components/drawer/index.d.ts +0 -15
  116. package/lib/components/dropdown/index.d.ts +0 -25
  117. package/lib/components/extend-arrow/index.d.ts +0 -8
  118. package/lib/components/field-error/index.d.ts +0 -4
  119. package/lib/components/field-label/index.d.ts +0 -11
  120. package/lib/components/input/index.d.ts +0 -15
  121. package/lib/components/modal/index.d.ts +0 -14
  122. package/lib/components/monitors-icons/index.d.ts +0 -11
  123. package/lib/components/no-data-found/index.d.ts +0 -6
  124. package/lib/components/popup-form/index.d.ts +0 -18
  125. package/lib/components/status/index.d.ts +0 -17
  126. package/lib/components/tab-list/index.d.ts +0 -18
  127. package/lib/components/warning-modal/index.d.ts +0 -24
  128. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/debug-commands.d.ts +0 -6
  129. package/lib/containers/overview-drawer/index.d.ts +0 -27
  130. package/lib/containers/source-drawer/build-card.d.ts +0 -3
  131. package/lib/containers/source-drawer/describe/index.d.ts +0 -13
  132. package/lib/containers/source-drawer/index.d.ts +0 -23
  133. package/lib/containers/source-drawer/libraries/index.d.ts +0 -12
  134. package/lib/containers/source-drawer/odigos-health/index.d.ts +0 -5
  135. package/lib/containers/source-drawer/peers/index.d.ts +0 -12
  136. package/lib/containers/source-form/index.d.ts +0 -8
  137. package/lib/functions/is-pod-injected-with-agent/index.d.ts +0 -3
  138. package/lib/hooks/useSourceSelectionFormData.d.ts +0 -32
  139. package/lib/mock-data/workload/index.d.ts +0 -2
  140. package/lib/snippets/add-button/index.d.ts +0 -9
  141. package/lib/snippets/copy-text/index.d.ts +0 -7
  142. package/lib/snippets/pod-container/index.d.ts +0 -5
  143. package/lib/snippets/source-container/index.d.ts +0 -6
  144. package/lib/snippets/source-container/override-runtime.d.ts +0 -10
@@ -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
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;
@@ -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[];