@odigos/ui-kit 0.0.213 → 0.0.215
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 +14 -0
- package/lib/chunks/index-DHTlCrf6.js +3 -0
- package/lib/chunks/ui-components-CICeYnUU.js +2430 -0
- package/lib/components/_v2/autocomplete/index.d.ts +13 -0
- package/lib/components/_v2/drop-data/index.d.ts +4 -0
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/segment/index.d.ts +8 -1
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/constants.d.ts +26 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/converters.d.ts +5 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/form-helpers.d.ts +5 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/index.d.ts +6 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/duration-errors.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/operation.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/percentage.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/rule-info.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/sampling-preview.d.ts +9 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/source-scope.d.ts +10 -0
- package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/types.d.ts +54 -0
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/constants.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/index.d.ts +4 -0
- package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/types.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/constants.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/index.d.ts +4 -0
- package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/types.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/constants.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/index.d.ts +4 -0
- package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/types.d.ts +6 -0
- package/lib/containers/_v2/_drawers/index.d.ts +5 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/constants.d.ts +19 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/footer.d.ts +21 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/index.d.ts +23 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/reverse-converters.d.ts +3 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/duration-errors.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/operation-details.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/percentage.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/rule-info.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/sampling-preview.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/source-scopes.d.ts +6 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/styled.d.ts +4 -0
- package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/types.d.ts +1 -0
- package/lib/containers/_v2/auto-rule-card/constants.d.ts +1 -0
- package/lib/containers/_v2/auto-rule-card/helpers.d.ts +19 -0
- package/lib/containers/_v2/auto-rule-card/index.d.ts +5 -0
- package/lib/containers/_v2/auto-rule-card/types.d.ts +6 -0
- package/lib/containers/_v2/index.d.ts +3 -0
- package/lib/containers/_v2/sampling-rules-list/constants.d.ts +23 -0
- package/lib/containers/_v2/sampling-rules-list/helpers.d.ts +30 -0
- package/lib/containers/_v2/sampling-rules-list/index.d.ts +6 -0
- package/lib/containers/_v2/sampling-rules-list/rule-row.d.ts +12 -0
- package/lib/containers/_v2/sampling-rules-list/summary-span.d.ts +10 -0
- package/lib/containers/_v2/sampling-rules-list/toolbar.d.ts +13 -0
- package/lib/containers/_v2/sampling-rules-list/types.d.ts +47 -0
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -0
- package/lib/containers/service-map/index.d.ts +1 -0
- package/lib/containers/v2.js +446 -35
- package/lib/containers.js +116 -116
- package/lib/contexts.js +1 -1
- package/lib/functions/get-virtual-service-icon/index.d.ts +2 -0
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/overview/sampling-icon/index.d.ts +2 -0
- package/lib/icons/programming-languages/aws-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/index.d.ts +1 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/react-flow/flow.d.ts +1 -0
- 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 +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/sampling.d.ts +103 -0
- package/lib/types/service-map/index.d.ts +5 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-Bh2gKc3b.js +0 -3
- package/lib/chunks/ui-components-BliHHDta.js +0 -2388
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { SamplingRuleItem } from './types';
|
|
3
|
+
export interface RuleRowProps {
|
|
4
|
+
item: SamplingRuleItem;
|
|
5
|
+
isHovered: boolean;
|
|
6
|
+
onClick: (item: SamplingRuleItem) => void;
|
|
7
|
+
onEdit: (ruleId: string, samplingId: string) => void;
|
|
8
|
+
onDelete: (ruleId: string, samplingId: string) => void;
|
|
9
|
+
onMouseEnter: () => void;
|
|
10
|
+
onMouseLeave: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const RuleRow: FC<RuleRowProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
|
+
import type { SummaryPart, SummaryPartVariant } from './types';
|
|
3
|
+
export declare const MONO_VARIANTS: SummaryPartVariant[];
|
|
4
|
+
export declare const SummarySpan: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
5
|
+
$variant: SummaryPartVariant;
|
|
6
|
+
$isMono: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const SummaryParts: FC<{
|
|
9
|
+
parts: SummaryPart[];
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { TypeFilter } from './types';
|
|
3
|
+
export interface ListToolbarProps {
|
|
4
|
+
title: string;
|
|
5
|
+
titleTooltip?: string;
|
|
6
|
+
itemCount: number;
|
|
7
|
+
searchValue: string;
|
|
8
|
+
onSearchChange: (value: string) => void;
|
|
9
|
+
typeFilter: TypeFilter;
|
|
10
|
+
onTypeFilterChange: (value: TypeFilter) => void;
|
|
11
|
+
showTypeFilter: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ListToolbar: FC<ListToolbarProps>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { NoisyOperationRule, HighlyRelevantOperationRule, CostReductionRule } from '@/types';
|
|
2
|
+
export type SamplingRuleCategory = 'noisy' | 'highlyRelevant' | 'costReduction';
|
|
3
|
+
export type SummaryPartVariant = 'default' | 'action' | 'endpoint' | 'scope' | 'duration';
|
|
4
|
+
export interface SummaryPart {
|
|
5
|
+
text: string;
|
|
6
|
+
variant: SummaryPartVariant;
|
|
7
|
+
}
|
|
8
|
+
export type HighlyRelevantBadgeType = 'Relevance' | 'Duration' | 'Error';
|
|
9
|
+
export interface SamplingRuleItem {
|
|
10
|
+
ruleId: string;
|
|
11
|
+
samplingId: string;
|
|
12
|
+
name: string | null;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
notes: string | null;
|
|
15
|
+
summary: SummaryPart[];
|
|
16
|
+
category: SamplingRuleCategory;
|
|
17
|
+
typeBadge?: HighlyRelevantBadgeType;
|
|
18
|
+
}
|
|
19
|
+
export type TypeFilter = 'all' | HighlyRelevantBadgeType;
|
|
20
|
+
export interface SamplingRulesListProps {
|
|
21
|
+
title: string;
|
|
22
|
+
titleTooltip?: string;
|
|
23
|
+
items: SamplingRuleItem[];
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
showTypeFilter?: boolean;
|
|
26
|
+
onRuleClick: (item: SamplingRuleItem) => void;
|
|
27
|
+
onEditRule: (ruleId: string, samplingId: string) => void;
|
|
28
|
+
onDeleteRule: (ruleId: string, samplingId: string) => void;
|
|
29
|
+
}
|
|
30
|
+
interface BaseViewRule {
|
|
31
|
+
samplingId: string;
|
|
32
|
+
summary: SummaryPart[];
|
|
33
|
+
}
|
|
34
|
+
interface ViewNoisyRule extends BaseViewRule {
|
|
35
|
+
category: Extract<SamplingRuleCategory, 'noisy'>;
|
|
36
|
+
rule: NoisyOperationRule;
|
|
37
|
+
}
|
|
38
|
+
interface ViewHighlyRelevantRule extends BaseViewRule {
|
|
39
|
+
category: Extract<SamplingRuleCategory, 'highlyRelevant'>;
|
|
40
|
+
rule: HighlyRelevantOperationRule;
|
|
41
|
+
}
|
|
42
|
+
interface ViewCostReductionRule extends BaseViewRule {
|
|
43
|
+
category: Extract<SamplingRuleCategory, 'costReduction'>;
|
|
44
|
+
rule: CostReductionRule;
|
|
45
|
+
}
|
|
46
|
+
export type ViewRuleData = ViewNoisyRule | ViewHighlyRelevantRule | ViewCostReductionRule;
|
|
47
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Node } from '@xyflow/react';
|
|
2
2
|
import { type Source, type AggregatedServiceMap } from '@/types';
|
|
3
|
+
export declare const NODE_WIDTH = 80;
|
|
4
|
+
export declare const NODE_HEIGHT = 80;
|
|
3
5
|
export declare const toFlowNodeId: (graphKey: string) => string;
|
|
4
6
|
interface Params {
|
|
5
7
|
sources: Source[];
|
|
@@ -3,6 +3,7 @@ import { type ServiceMapSources } from '@/types';
|
|
|
3
3
|
interface ServiceMapProps {
|
|
4
4
|
heightToRemove: number;
|
|
5
5
|
serviceMap: ServiceMapSources;
|
|
6
|
+
onRefresh?: () => void;
|
|
6
7
|
}
|
|
7
8
|
declare const ServiceMap: React.FC<ServiceMapProps>;
|
|
8
9
|
export { ServiceMap, type ServiceMapProps };
|