@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.
- package/CHANGELOG.md +22 -0
- package/lib/chunks/{index-DB_UqHYt.js → index-B5PgIL40.js} +1 -1
- package/lib/chunks/index-Dy4pkeq6.js +145 -0
- package/lib/chunks/index-uXyrp4Xe.js +41 -0
- package/lib/chunks/ui-components-BPdnIOmj.js +2248 -0
- package/lib/components/_v2/cards/data-card/index.d.ts +6 -1
- package/lib/components/_v2/drawer/header/index.d.ts +2 -0
- package/lib/components/_v2/drawer/index.d.ts +1 -1
- package/lib/components/_v2/drop-data/index.d.ts +1 -2
- package/lib/components/_v2/icon-group/index.d.ts +10 -0
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/tag/index.d.ts +10 -0
- package/lib/components/_v2/typography/index.d.ts +2 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/sampling/index.d.ts +5 -6
- package/lib/constants/sources/index.d.ts +5 -0
- package/lib/constants/strings/index.d.ts +89 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/edit-source-drawer/common/index.d.ts +1 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/common/pods-header.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +12 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +19 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/distro-override.d.ts +11 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +7 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/popup-form.d.ts +15 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/runtime-override.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/health-card.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/main-card.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/index.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/container-row.d.ts +9 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +16 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/index.d.ts +12 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/pod-row.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/row-header.d.ts +13 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/types.d.ts +18 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/statuses-card.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +11 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/index.d.ts +7 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +3 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/debug-commands.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/index.d.ts +7 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/pod-card.d.ts +8 -0
- package/lib/containers/_v2/_drawers/index.d.ts +1 -0
- package/lib/containers/_v2/_forms/edit-source-form/index.d.ts +2 -0
- package/lib/containers/_v2/_forms/index.d.ts +1 -0
- package/lib/containers/_v2/_modals/index.d.ts +1 -0
- package/lib/containers/_v2/_modals/onboarding-done/background.d.ts +5 -0
- package/lib/containers/_v2/_modals/onboarding-done/index.d.ts +3 -0
- package/lib/containers/_v2/overview/drawers/index.d.ts +1 -3
- package/lib/containers/_v2/sampling-rules/converters.d.ts +2 -0
- package/lib/containers/source-drawer/index.d.ts +1 -1
- package/lib/containers/v2.js +226 -121
- package/lib/containers.js +49 -19
- package/lib/contexts/action-form-context.d.ts +0 -1
- package/lib/contexts/destination-form-context.d.ts +0 -1
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/rule-form-context.d.ts +0 -1
- package/lib/contexts/source-edit-form-context.d.ts +17 -0
- package/lib/contexts.js +1 -1
- package/lib/functions/decimals-only/index.d.ts +1 -0
- package/lib/functions/get-containers-icons/index.d.ts +3 -1
- package/lib/functions/get-virtual-service-icon/index.d.ts +1 -1
- package/lib/functions/get-workload-id/index.d.ts +2 -2
- package/lib/functions/index.d.ts +3 -0
- package/lib/functions/is-pod-injected-with-agent/index.d.ts +3 -0
- package/lib/functions/map-desired-status-to-condition-status/index.d.ts +2 -0
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/brand/index.d.ts +3 -0
- package/lib/icons/brand/odigos-logo-text-colored-central/index.d.ts +2 -0
- package/lib/icons/brand/odigos-logo-text-colored-community/index.d.ts +2 -0
- package/lib/icons/brand/odigos-logo-text-colored-enterprise/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/mock-data/profiling/index.d.ts +1 -1
- package/lib/mock-data/service-map/index.d.ts +1 -1
- package/lib/mock-data/sources/index.d.ts +1 -1
- package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +2 -0
- package/lib/snippets/_v2/rich-title/index.d.ts +5 -0
- package/lib/snippets/_v2/sampling-rule-form-sections/percentage.d.ts +1 -1
- package/lib/snippets/_v2/sampling-rule-form-sections/preset-with-custom-input.d.ts +5 -2
- package/lib/snippets/_v2/wide-drawer/index.d.ts +7 -1
- package/lib/snippets/source-container/index.d.ts +1 -2
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +30 -1
- package/lib/types/service-map/index.d.ts +2 -2
- package/lib/types/sources/index.d.ts +7 -3
- package/lib/types/workload/index.d.ts +178 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-92vqd713.js +0 -145
- package/lib/chunks/index-zOzusnDO.js +0 -77
- package/lib/chunks/ui-components-CjDRcQJq.js +0 -2235
- /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flame-graph-canvas.d.ts +0 -0
- /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flamebearer.d.ts +0 -0
- /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/index.d.ts +0 -0
- /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/symbol-table.d.ts +0 -0
|
@@ -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';
|
|
@@ -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
|
|
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 '
|
|
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 {
|