@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
|
@@ -11,6 +11,7 @@ interface Props {
|
|
|
11
11
|
onEdgeClick?: (event: React.MouseEvent, edge: Edge) => void;
|
|
12
12
|
onNodeMouseEnter?: (event: React.MouseEvent, node: Node) => void;
|
|
13
13
|
onNodeMouseLeave?: (event: React.MouseEvent, node: Node) => void;
|
|
14
|
+
onRefresh?: () => void;
|
|
14
15
|
}
|
|
15
16
|
export declare const Flow: React.FC<Props>;
|
|
16
17
|
export {};
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{b8 as AddButton,cF as CopyText,cB as EditButton,cA as Flow,dN as MapItemNode,dO as NoDataNode,cg as NoteBackToSummary,cH as PodContainer,cM as SourceContainer}from"./chunks/ui-components-CICeYnUU.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{as as ProgressKeys,
|
|
1
|
+
export{as as ProgressKeys,cz as useActiveNodeStore,cS as useDarkMode,O as useDataStreamStore,bf as useDrawerStore,aD as useEntityStore,bC as useFilterStore,bq as useModalStore,cr as useNotificationStore,ar as useProgressStore,bS as useSelectedStore,cd as useSetupStore}from"./chunks/ui-components-CICeYnUU.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{dF as Provider,dG as animations,dH as opacity,dI as palettes}from"./chunks/ui-components-CICeYnUU.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -83,7 +83,8 @@ export declare enum EntityTypes {
|
|
|
83
83
|
Source = "Source",
|
|
84
84
|
Destination = "Destination",
|
|
85
85
|
Action = "Action",
|
|
86
|
-
InstrumentationRule = "InstrumentationRule"
|
|
86
|
+
InstrumentationRule = "InstrumentationRule",
|
|
87
|
+
SamplingRule = "SamplingRule"
|
|
87
88
|
}
|
|
88
89
|
export declare enum OtherEntityTypes {
|
|
89
90
|
DataStream = "DataStream"
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export interface SourcesScope {
|
|
2
|
+
workloadName?: string | null;
|
|
3
|
+
workloadKind?: string | null;
|
|
4
|
+
workloadNamespace?: string | null;
|
|
5
|
+
workloadLanguage?: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface HeadSamplingHttpServerMatcher {
|
|
8
|
+
route?: string | null;
|
|
9
|
+
routePrefix?: string | null;
|
|
10
|
+
method?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface HeadSamplingHttpClientMatcher {
|
|
13
|
+
serverAddress?: string | null;
|
|
14
|
+
templatedPath?: string | null;
|
|
15
|
+
templatedPathPrefix?: string | null;
|
|
16
|
+
method?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface HeadSamplingOperationMatcher {
|
|
19
|
+
httpServer?: HeadSamplingHttpServerMatcher | null;
|
|
20
|
+
httpClient?: HeadSamplingHttpClientMatcher | null;
|
|
21
|
+
}
|
|
22
|
+
export interface TailSamplingHttpServerMatcher {
|
|
23
|
+
route?: string | null;
|
|
24
|
+
routePrefix?: string | null;
|
|
25
|
+
method?: string | null;
|
|
26
|
+
}
|
|
27
|
+
export interface TailSamplingKafkaMatcher {
|
|
28
|
+
kafkaTopic?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface TailSamplingOperationMatcher {
|
|
31
|
+
httpServer?: TailSamplingHttpServerMatcher | null;
|
|
32
|
+
kafkaConsumer?: TailSamplingKafkaMatcher | null;
|
|
33
|
+
kafkaProducer?: TailSamplingKafkaMatcher | null;
|
|
34
|
+
}
|
|
35
|
+
export interface NoisyOperationRule {
|
|
36
|
+
ruleId: string;
|
|
37
|
+
name?: string | null;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
sourceScopes?: SourcesScope[] | null;
|
|
40
|
+
operation?: HeadSamplingOperationMatcher | null;
|
|
41
|
+
percentageAtMost?: number | null;
|
|
42
|
+
notes?: string | null;
|
|
43
|
+
}
|
|
44
|
+
export interface HighlyRelevantOperationRule {
|
|
45
|
+
ruleId: string;
|
|
46
|
+
name?: string | null;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
sourceScopes?: SourcesScope[] | null;
|
|
49
|
+
error: boolean;
|
|
50
|
+
durationAtLeastMs?: number | null;
|
|
51
|
+
operation?: TailSamplingOperationMatcher | null;
|
|
52
|
+
percentageAtLeast?: number | null;
|
|
53
|
+
notes?: string | null;
|
|
54
|
+
}
|
|
55
|
+
export interface CostReductionRule {
|
|
56
|
+
ruleId: string;
|
|
57
|
+
name?: string | null;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
sourceScopes?: SourcesScope[] | null;
|
|
60
|
+
operation?: TailSamplingOperationMatcher | null;
|
|
61
|
+
percentageAtMost: number;
|
|
62
|
+
notes?: string | null;
|
|
63
|
+
}
|
|
64
|
+
export interface SamplingRules {
|
|
65
|
+
id: string;
|
|
66
|
+
name?: string | null;
|
|
67
|
+
noisyOperations: NoisyOperationRule[];
|
|
68
|
+
highlyRelevantOperations: HighlyRelevantOperationRule[];
|
|
69
|
+
costReductionRules: CostReductionRule[];
|
|
70
|
+
}
|
|
71
|
+
export type SamplingRule = NoisyOperationRule | HighlyRelevantOperationRule | CostReductionRule;
|
|
72
|
+
export interface SourcesScopeInput {
|
|
73
|
+
workloadName?: string | null;
|
|
74
|
+
workloadKind?: string | null;
|
|
75
|
+
workloadNamespace?: string | null;
|
|
76
|
+
workloadLanguage?: string | null;
|
|
77
|
+
}
|
|
78
|
+
export interface NoisyOperationRuleInput {
|
|
79
|
+
name?: string | null;
|
|
80
|
+
disabled?: boolean | null;
|
|
81
|
+
sourceScopes?: SourcesScopeInput[] | null;
|
|
82
|
+
operation?: HeadSamplingOperationMatcher | null;
|
|
83
|
+
percentageAtMost?: number | null;
|
|
84
|
+
notes?: string | null;
|
|
85
|
+
}
|
|
86
|
+
export interface HighlyRelevantOperationRuleInput {
|
|
87
|
+
name?: string | null;
|
|
88
|
+
disabled?: boolean | null;
|
|
89
|
+
sourceScopes?: SourcesScopeInput[] | null;
|
|
90
|
+
error?: boolean | null;
|
|
91
|
+
durationAtLeastMs?: number | null;
|
|
92
|
+
operation?: TailSamplingOperationMatcher | null;
|
|
93
|
+
percentageAtLeast?: number | null;
|
|
94
|
+
notes?: string | null;
|
|
95
|
+
}
|
|
96
|
+
export interface CostReductionRuleInput {
|
|
97
|
+
name?: string | null;
|
|
98
|
+
disabled?: boolean | null;
|
|
99
|
+
sourceScopes?: SourcesScopeInput[] | null;
|
|
100
|
+
operation?: TailSamplingOperationMatcher | null;
|
|
101
|
+
percentageAtMost: number;
|
|
102
|
+
notes?: string | null;
|
|
103
|
+
}
|
|
@@ -9,6 +9,10 @@ export interface ServiceMapToSource {
|
|
|
9
9
|
serviceName: string;
|
|
10
10
|
requests: number;
|
|
11
11
|
dateTime: string;
|
|
12
|
+
nodeAttributes?: {
|
|
13
|
+
key: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
12
16
|
}
|
|
13
17
|
export type ServiceMapSources = ServiceMapFromSource[];
|
|
14
18
|
export interface PeerSources {
|
|
@@ -32,5 +36,6 @@ export interface AggregatedService {
|
|
|
32
36
|
serviceName: string;
|
|
33
37
|
isVirtual: boolean;
|
|
34
38
|
connections: AggregatedConnection[];
|
|
39
|
+
attributes: Record<string, string>;
|
|
35
40
|
}
|
|
36
41
|
export type AggregatedServiceMap = AggregatedService[];
|
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cY as ActionCategory,A as ActionKeyTypes,w as ActionType,cZ as AddNodeTypes,c_ as BooleanOperation,Y as CodeAttributesKeyTypes,bp as Crud,a2 as CustomInstrumentationsKeyTypes,bU as DesiredStateProgress,c$ as DestinationTypes,d0 as EdgeTypes,ac as EntityTypes,v as FieldTypes,a0 as GolangCustomProbe,_ as HeadersCollectionKeyTypes,m as InputTypes,d1 as InstallationMethod,a3 as InstrumentationRuleType,d2 as IntrumentationStatus,a1 as JavaCustomProbe,d3 as JsonOperation,K as K8sAttributesFrom,cL as K8sResourceKind,d4 as ListDirection,cx as NodeTypes,d5 as NumberOperation,d6 as OtelDistroName,ch as OtherEntityTypes,bz as OtherStatus,an as OtherStatusType,$ as PayloadCollectionKeyTypes,d7 as PlatformType,d8 as PodContainerLifecycleStatus,d9 as PodContainerStatus,da as PodPhase,db as Profile,av as ProgrammingLanguages,dc as SIGNAL_KEY_TO_TYPE,cm as SIGNAL_TYPE_TO_KEY,dd as SignalKey,Q as SignalType,de as SortDirection,i as StatusType,df as StringOperation,T as Tier,aX as WorkloadRolloutStatus}from"./chunks/ui-components-CICeYnUU.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/visuals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{d$ as VISUAL_ODIGOS_LOGO_HEIGHT,e0 as VISUAL_ODIGOS_LOGO_WIDTH,V as VisualGreenRings,e1 as VisualOdigosLogo}from"./chunks/ui-components-CICeYnUU.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{at as a,t as n,j as r,aF as s,aD as l,ax as c,cT as d,e as p,N as m}from"./ui-components-BliHHDta.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const g=i.div`
|
|
2
|
-
padding: 0 12px;
|
|
3
|
-
`,j=({title:i="YAML",yaml:j,defaultOpen:k,fullHeight:v})=>{const{clickCopy:x,isCopied:C}=a(),[S,T]=o(k??!1),Y=e(()=>j?[{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:C?u:f,onClick:()=>x(j||""),disabled:C}},{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:S?h:y,onClick:()=>T(t=>!t)}}]:[],[j,C,S]);return t(c,{richTitle:{icon:b,title:i},actions:Y,fullHeight:v,children:S&&t(g,{children:j?t(d,{code:j,language:"yaml",theme:"duotoneDark"}):t(p,{children:t(m,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{j as Y};
|