@odigos/ui-kit 0.0.237 → 0.0.239

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 (103) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/lib/chunks/{index-DB_UqHYt.js → index-B5PgIL40.js} +1 -1
  3. package/lib/chunks/index-Dy4pkeq6.js +145 -0
  4. package/lib/chunks/index-uXyrp4Xe.js +41 -0
  5. package/lib/chunks/ui-components-BPdnIOmj.js +2248 -0
  6. package/lib/components/_v2/cards/data-card/index.d.ts +6 -1
  7. package/lib/components/_v2/drawer/header/index.d.ts +2 -0
  8. package/lib/components/_v2/drawer/index.d.ts +1 -1
  9. package/lib/components/_v2/drop-data/index.d.ts +1 -2
  10. package/lib/components/_v2/icon-group/index.d.ts +10 -0
  11. package/lib/components/_v2/index.d.ts +1 -0
  12. package/lib/components/_v2/tag/index.d.ts +10 -0
  13. package/lib/components/_v2/typography/index.d.ts +2 -0
  14. package/lib/components/v2.js +1 -1
  15. package/lib/components.js +1 -1
  16. package/lib/constants/sampling/index.d.ts +5 -6
  17. package/lib/constants/sources/index.d.ts +5 -0
  18. package/lib/constants/strings/index.d.ts +89 -0
  19. package/lib/constants.js +1 -1
  20. package/lib/containers/_v2/_drawers/edit-source-drawer/common/index.d.ts +1 -0
  21. package/lib/containers/_v2/_drawers/edit-source-drawer/common/pods-header.d.ts +8 -0
  22. package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +12 -0
  23. package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +19 -0
  24. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/distro-override.d.ts +11 -0
  25. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +7 -0
  26. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/popup-form.d.ts +15 -0
  27. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/runtime-override.d.ts +10 -0
  28. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/health-card.d.ts +6 -0
  29. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +10 -0
  30. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/main-card.d.ts +6 -0
  31. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/index.d.ts +6 -0
  32. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/container-row.d.ts +9 -0
  33. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +16 -0
  34. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/index.d.ts +12 -0
  35. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/pod-row.d.ts +8 -0
  36. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +10 -0
  37. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/row-header.d.ts +13 -0
  38. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/types.d.ts +18 -0
  39. package/lib/containers/_v2/_drawers/edit-source-drawer/overview/statuses-card.d.ts +8 -0
  40. package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +11 -0
  41. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/index.d.ts +7 -0
  42. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +3 -0
  43. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/debug-commands.d.ts +6 -0
  44. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/index.d.ts +7 -0
  45. package/lib/containers/_v2/_drawers/edit-source-drawer/pods/pod-card.d.ts +8 -0
  46. package/lib/containers/_v2/_drawers/index.d.ts +1 -0
  47. package/lib/containers/_v2/_forms/edit-source-form/index.d.ts +2 -0
  48. package/lib/containers/_v2/_forms/index.d.ts +1 -0
  49. package/lib/containers/_v2/_modals/index.d.ts +1 -0
  50. package/lib/containers/_v2/_modals/onboarding-done/background.d.ts +5 -0
  51. package/lib/containers/_v2/_modals/onboarding-done/index.d.ts +3 -0
  52. package/lib/containers/_v2/overview/drawers/index.d.ts +1 -3
  53. package/lib/containers/_v2/sampling-rules/converters.d.ts +2 -0
  54. package/lib/containers/source-drawer/index.d.ts +1 -1
  55. package/lib/containers/v2.js +226 -121
  56. package/lib/containers.js +49 -19
  57. package/lib/contexts/action-form-context.d.ts +0 -1
  58. package/lib/contexts/destination-form-context.d.ts +0 -1
  59. package/lib/contexts/index.d.ts +1 -0
  60. package/lib/contexts/rule-form-context.d.ts +0 -1
  61. package/lib/contexts/source-edit-form-context.d.ts +17 -0
  62. package/lib/contexts.js +1 -1
  63. package/lib/functions/decimals-only/index.d.ts +1 -0
  64. package/lib/functions/get-containers-icons/index.d.ts +3 -1
  65. package/lib/functions/get-virtual-service-icon/index.d.ts +1 -1
  66. package/lib/functions/get-workload-id/index.d.ts +2 -2
  67. package/lib/functions/index.d.ts +3 -0
  68. package/lib/functions/is-pod-injected-with-agent/index.d.ts +3 -0
  69. package/lib/functions/map-desired-status-to-condition-status/index.d.ts +2 -0
  70. package/lib/functions.js +1 -1
  71. package/lib/hooks.js +1 -1
  72. package/lib/icons/brand/index.d.ts +3 -0
  73. package/lib/icons/brand/odigos-logo-text-colored-central/index.d.ts +2 -0
  74. package/lib/icons/brand/odigos-logo-text-colored-community/index.d.ts +2 -0
  75. package/lib/icons/brand/odigos-logo-text-colored-enterprise/index.d.ts +2 -0
  76. package/lib/icons.js +1 -1
  77. package/lib/mock-data/profiling/index.d.ts +1 -1
  78. package/lib/mock-data/service-map/index.d.ts +1 -1
  79. package/lib/mock-data/sources/index.d.ts +1 -1
  80. package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +2 -0
  81. package/lib/snippets/_v2/rich-title/index.d.ts +5 -0
  82. package/lib/snippets/_v2/sampling-rule-form-sections/percentage.d.ts +1 -1
  83. package/lib/snippets/_v2/sampling-rule-form-sections/preset-with-custom-input.d.ts +5 -2
  84. package/lib/snippets/_v2/wide-drawer/index.d.ts +7 -1
  85. package/lib/snippets/source-container/index.d.ts +1 -2
  86. package/lib/snippets/v2.js +1 -1
  87. package/lib/snippets.js +1 -1
  88. package/lib/store.js +1 -1
  89. package/lib/theme.js +1 -1
  90. package/lib/types/common/index.d.ts +30 -1
  91. package/lib/types/service-map/index.d.ts +2 -2
  92. package/lib/types/sources/index.d.ts +7 -3
  93. package/lib/types/workload/index.d.ts +178 -1
  94. package/lib/types.js +1 -1
  95. package/lib/visuals.js +1 -1
  96. package/package.json +1 -1
  97. package/lib/chunks/index-92vqd713.js +0 -145
  98. package/lib/chunks/index-zOzusnDO.js +0 -77
  99. package/lib/chunks/ui-components-CjDRcQJq.js +0 -2235
  100. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flame-graph-canvas.d.ts +0 -0
  101. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flamebearer.d.ts +0 -0
  102. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/index.d.ts +0 -0
  103. /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/symbol-table.d.ts +0 -0
@@ -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 Source } from '@/types';
3
+ export interface PodsProps {
4
+ source: Source;
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>;
@@ -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,5 +1,5 @@
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
4
  effectiveConfig: EffectiveConfig;
5
5
  fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
@@ -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,6 +1,8 @@
1
1
  import type { NoisyOperationRule, HighlyRelevantOperationRule, CostReductionRule, NoisyOperationRuleInput, HighlyRelevantOperationRuleInput, CostReductionRuleInput, SourcesScopes, SamplingRuleCategory, SamplingRuleFormState, ViewRuleData } from '@/types';
2
2
  export declare function makeEmptyScopes(): SourcesScopes;
3
3
  export declare function isScopesAllEmpty(s: SourcesScopes | null | undefined): boolean;
4
+ export declare function normalizeSourceScopes(scopes: SourcesScopes | null | undefined): SourcesScopes;
5
+ export declare function isNoisyDropAll(percentageAtMost: number | null | undefined): boolean;
4
6
  export declare function getDefaultFormState(category?: SamplingRuleCategory): SamplingRuleFormState;
5
7
  export declare function formStateToPartialNoisy(state: SamplingRuleFormState): NoisyOperationRule;
6
8
  export declare function formStateToPartialHighlyRelevant(state: SamplingRuleFormState): HighlyRelevantOperationRule;
@@ -1,7 +1,7 @@
1
1
  import { type FC } from 'react';
2
2
  import { type DescribeProps } from './describe';
3
3
  import { type LibrariesProps } from './libraries';
4
- import { type ProfilingProps } from './profiling';
4
+ import { type ProfilingProps } from '../_v2/_drawers/edit-source-drawer/profiling';
5
5
  import { type PeerSourcesProps } from './peers';
6
6
  import { type PersistSourcesFunc, type SourceFormData, type WorkloadId, type Source } from '@/types';
7
7
  interface SourceDrawerProps {