@odigos/ui-kit 0.0.129 → 0.0.130
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 +8 -0
- package/lib/chunks/ui-components-c940a3cc.js +2024 -0
- package/lib/chunks/vendor-55cc654c.js +1 -0
- package/lib/components/_v2/badge/index.d.ts +10 -0
- package/lib/components/_v2/button/index.d.ts +2 -1
- package/lib/components/_v2/cards/data-card/index.d.ts +12 -0
- package/lib/components/_v2/cards/index.d.ts +4 -0
- package/lib/components/_v2/cards/section-card/index.d.ts +24 -0
- package/lib/components/_v2/cards/status-card/index.d.ts +9 -0
- package/lib/components/_v2/cards/text-card/index.d.ts +12 -0
- package/lib/components/_v2/drawer/header/index.d.ts +9 -0
- package/lib/components/_v2/drawer/index.d.ts +9 -0
- package/lib/components/_v2/header/index.d.ts +7 -0
- package/lib/components/_v2/icon-button/index.d.ts +14 -0
- package/lib/components/_v2/index.d.ts +8 -0
- package/lib/components/_v2/navbar/index.d.ts +12 -0
- package/lib/components/_v2/segment/index.d.ts +3 -1
- package/lib/components/_v2/table/index.d.ts +25 -0
- package/lib/components/_v2/tag/index.d.ts +9 -0
- package/lib/components/_v2/typography/index.d.ts +4 -8
- package/lib/components/code/index.d.ts +2 -0
- package/lib/components/styled.d.ts +1 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/index.d.ts +1 -0
- package/lib/containers/_v2/pipeline-collectors/general-info/index.d.ts +7 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/get-general-badge.d.ts +5 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/get-general-status-card.d.ts +4 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/get-general-text-cards.d.ts +4 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/get-general-title.d.ts +2 -0
- package/lib/containers/_v2/pipeline-collectors/helpers/index.d.ts +4 -0
- package/lib/containers/_v2/pipeline-collectors/index.d.ts +11 -0
- package/lib/containers/_v2/pipeline-collectors/pods-info/index.d.ts +9 -0
- package/lib/containers/_v2/pipeline-collectors/pods-info/pod-drawer/index.d.ts +9 -0
- package/lib/containers/_v2/pipeline-collectors/toolbar/index.d.ts +17 -0
- package/lib/containers/v2.js +15 -0
- package/lib/containers.js +24 -24
- package/lib/functions/generate-id/index.d.ts +1 -0
- package/lib/functions/get-status-color/index.d.ts +2 -2
- package/lib/functions/get-status-from-pod-status/index.d.ts +2 -0
- package/lib/functions/get-status-icon/index.d.ts +2 -2
- package/lib/functions/index.d.ts +2 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useInfiniteScroll.d.ts +10 -0
- package/lib/hooks/useTimeAgo.d.ts +4 -3
- package/lib/hooks.js +1 -1
- package/lib/icons/common/home-icon/index.d.ts +1 -1
- package/lib/icons.js +1 -1
- package/lib/mock-data/index.d.ts +1 -0
- package/lib/mock-data/pipeline-collectors/index.d.ts +6 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/animations/index.d.ts +4 -0
- package/lib/theme/palletes/index.d.ts +5 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +7 -2
- package/lib/types/index.d.ts +1 -0
- package/lib/types/pipeline-collectors/index.d.ts +100 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +17 -19
- package/lib/chunks/ui-components-a3c3ae8b.js +0 -1770
- package/lib/chunks/vendor-f206ac21.js +0 -1
package/lib/mock-data/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './destinations';
|
|
|
4
4
|
export * from './instrumentation-instances';
|
|
5
5
|
export * from './instrumentation-rules';
|
|
6
6
|
export * from './namespaces';
|
|
7
|
+
export * from './pipeline-collectors';
|
|
7
8
|
export * from './service-map';
|
|
8
9
|
export * from './sources';
|
|
9
10
|
export * from './tokens';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type GatewayInfo, type PodInfo, type NodeCollectoInfo, ExtendedPodInfo } from '@/types';
|
|
2
|
+
export declare const MOCK_GATEWAY_INFO: GatewayInfo;
|
|
3
|
+
export declare const MOCK_GATEWAY_PODS: PodInfo[];
|
|
4
|
+
export declare const MOCK_NODE_COLLECTOR_INFO: NodeCollectoInfo;
|
|
5
|
+
export declare const MOCK_NODE_COLLECTOR_PODS: PodInfo[];
|
|
6
|
+
export declare const MOCK_EXTENDED_POD_INFO: ExtendedPodInfo;
|
package/lib/snippets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{be as AddButton,bN as CopyText,bJ as EditButton,bI as Flow,cJ as MapItemNode,cK as NoDataNode,bf as NoteBackToSummary,bP as PodContainer,bT as SourceContainer}from"./chunks/ui-components-c940a3cc.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"styled-components";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{cG as useActiveNodeStore,c0 as useDarkMode,aT as useDataStreamStore,_ as useDrawerStore,a5 as useEntityStore,aq as useFilterStore,aI as useInstrumentStore,ac as useModalStore,Z as useNotificationStore,Y as usePendingStore,aH as useSelectedStore,ba as useSetupStore}from"./chunks/ui-components-c940a3cc.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"styled-components";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -20,3 +20,7 @@ export declare const progress: {
|
|
|
20
20
|
};
|
|
21
21
|
export declare const ping: import("styled-components/dist/models/Keyframes").default;
|
|
22
22
|
export declare const shimmer: import("styled-components/dist/models/Keyframes").default;
|
|
23
|
+
export declare const fade: {
|
|
24
|
+
in: import("styled-components/dist/models/Keyframes").default;
|
|
25
|
+
out: import("styled-components/dist/models/Keyframes").default;
|
|
26
|
+
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
|
-
|
|
2
|
+
declare const darkModeTheme: DefaultTheme;
|
|
3
|
+
declare const lightModeTheme: DefaultTheme;
|
|
4
|
+
export type Theme = typeof darkModeTheme | typeof lightModeTheme;
|
|
5
|
+
export declare const getTheme: (darkMode: boolean) => Theme;
|
|
6
|
+
export {};
|
package/lib/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as default}from"./chunks/ui-components-
|
|
1
|
+
export{T as default}from"./chunks/ui-components-c940a3cc.js";import"styled-components";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC, MouseEventHandler } from 'react';
|
|
2
2
|
export type AnyObj = Record<string, any>;
|
|
3
|
-
export
|
|
3
|
+
export interface SVGProps {
|
|
4
4
|
/**
|
|
5
5
|
* Size of the SVG icon
|
|
6
6
|
* @default 16
|
|
@@ -24,7 +24,8 @@ export type SVG = FC<{
|
|
|
24
24
|
* @default 1
|
|
25
25
|
*/
|
|
26
26
|
strokeWidth?: number;
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
|
+
export type SVG = FC<SVGProps>;
|
|
28
29
|
export declare enum Tier {
|
|
29
30
|
Community = "community",
|
|
30
31
|
Cloud = "cloud",
|
|
@@ -111,6 +112,10 @@ export declare enum OtherStatus {
|
|
|
111
112
|
Loading = "loading",
|
|
112
113
|
Disabled = "disabled"
|
|
113
114
|
}
|
|
115
|
+
export declare enum OtherStatusType {
|
|
116
|
+
Disabled = "disabled",
|
|
117
|
+
Unknown = "unknown"
|
|
118
|
+
}
|
|
114
119
|
export declare enum SortDirection {
|
|
115
120
|
Ascending = "asc",
|
|
116
121
|
Descending = "desc"
|
package/lib/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './instrumentation-instances';
|
|
|
8
8
|
export * from './instrumentation-rules';
|
|
9
9
|
export * from './metrics';
|
|
10
10
|
export * from './namespaces';
|
|
11
|
+
export * from './pipeline-collectors';
|
|
11
12
|
export * from './service-map';
|
|
12
13
|
export * from './signals';
|
|
13
14
|
export * from './sources';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { Condition } from '../common';
|
|
2
|
+
export declare enum WorkloadRolloutStatus {
|
|
3
|
+
Healthy = "Healthy",
|
|
4
|
+
Updating = "Updating",
|
|
5
|
+
Degraded = "Degraded",
|
|
6
|
+
Failed = "Failed",
|
|
7
|
+
Down = "Down",
|
|
8
|
+
Unknown = "Unknown"
|
|
9
|
+
}
|
|
10
|
+
export declare enum PodPhase {
|
|
11
|
+
Pending = "Pending",
|
|
12
|
+
Running = "Running",
|
|
13
|
+
Succeeded = "Succeeded",
|
|
14
|
+
Failed = "Failed",
|
|
15
|
+
Unknown = "Unknown"
|
|
16
|
+
}
|
|
17
|
+
export declare enum PodContainerLifecycleStatus {
|
|
18
|
+
Running = "Running",
|
|
19
|
+
Waiting = "Waiting",
|
|
20
|
+
Terminated = "Terminated"
|
|
21
|
+
}
|
|
22
|
+
interface Resources {
|
|
23
|
+
requests: {
|
|
24
|
+
cpu: string;
|
|
25
|
+
memory: string;
|
|
26
|
+
};
|
|
27
|
+
limits: {
|
|
28
|
+
cpu: string;
|
|
29
|
+
memory: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface GatewayInfo {
|
|
33
|
+
status: WorkloadRolloutStatus;
|
|
34
|
+
hpa: {
|
|
35
|
+
min: number;
|
|
36
|
+
max: number;
|
|
37
|
+
current: number;
|
|
38
|
+
desired: number;
|
|
39
|
+
conditions: Condition[];
|
|
40
|
+
};
|
|
41
|
+
resources: Resources;
|
|
42
|
+
imageVersion: string;
|
|
43
|
+
lastRolloutAt: string;
|
|
44
|
+
rolloutInProgress: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface NodeCollectoInfo {
|
|
47
|
+
status: WorkloadRolloutStatus;
|
|
48
|
+
nodes: {
|
|
49
|
+
desired: number;
|
|
50
|
+
ready: number;
|
|
51
|
+
};
|
|
52
|
+
resources: {
|
|
53
|
+
requests: {
|
|
54
|
+
cpu: string;
|
|
55
|
+
memory: string;
|
|
56
|
+
};
|
|
57
|
+
limits: {
|
|
58
|
+
cpu: string;
|
|
59
|
+
memory: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
imageVersion: string;
|
|
63
|
+
lastRolloutAt: string;
|
|
64
|
+
rolloutInProgress: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface PodInfo {
|
|
67
|
+
namespace: string;
|
|
68
|
+
name: string;
|
|
69
|
+
ready: string;
|
|
70
|
+
status: string | null;
|
|
71
|
+
restartsCount: number;
|
|
72
|
+
nodeName: string;
|
|
73
|
+
creationTimestamp: string;
|
|
74
|
+
image: string;
|
|
75
|
+
}
|
|
76
|
+
export type GetGatewayInfo = () => Promise<GatewayInfo>;
|
|
77
|
+
export type GetGatewayPods = () => Promise<PodInfo[]>;
|
|
78
|
+
export type GetNodeCollectorInfo = () => Promise<NodeCollectoInfo>;
|
|
79
|
+
export type GetNodeCollectorPods = () => Promise<PodInfo[]>;
|
|
80
|
+
interface PodContainer {
|
|
81
|
+
name: string;
|
|
82
|
+
image: string | null;
|
|
83
|
+
status: PodContainerLifecycleStatus;
|
|
84
|
+
stateReason: string | null;
|
|
85
|
+
ready: boolean;
|
|
86
|
+
restarts: number;
|
|
87
|
+
startedAt: string | null;
|
|
88
|
+
resources: Resources;
|
|
89
|
+
}
|
|
90
|
+
export interface ExtendedPodInfo {
|
|
91
|
+
namespace: string;
|
|
92
|
+
name: string;
|
|
93
|
+
status: PodPhase;
|
|
94
|
+
node: string | null;
|
|
95
|
+
role: string | null;
|
|
96
|
+
containers: PodContainer[] | null;
|
|
97
|
+
manifestYAML: string;
|
|
98
|
+
}
|
|
99
|
+
export type GetExtendedPodInfo = (namespace: string, name: string) => Promise<ExtendedPodInfo>;
|
|
100
|
+
export {};
|
package/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{c5 as ActionCategory,x as ActionKeyTypes,A as ActionType,ch as AddNodeTypes,c8 as BooleanOperation,bx as CodeAttributesKeyTypes,ab as Crud,bv as CustomInstrumentationsKeyTypes,ci as DestinationTypes,cg as EdgeTypes,a4 as EntityTypes,M as FieldTypes,bw as GolangCustomProbe,bt as HeadersCollectionKeyTypes,z as InputTypes,cc as InstallationMethod,bz as InstrumentationRuleType,cd as IntrumentationStatus,bu as JavaCustomProbe,c9 as JsonOperation,K as K8sAttributesFrom,bU as K8sResourceKind,bH as NodeTypes,c7 as NumberOperation,cl as OdigosHealthStatus,bg as OtherEntityTypes,ao as OtherStatus,O as OtherStatusType,by as PayloadCollectionKeyTypes,cb as PlatformType,ck as PodContainerLifecycleStatus,cj as PodPhase,cf as Profile,bV as ProgrammingLanguages,bk as SignalType,ce as SortDirection,q as StatusType,c6 as StringOperation,ca as Tier,W as WorkloadRolloutStatus}from"./chunks/ui-components-c940a3cc.js";import"./icons.js";import"react";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"styled-components";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";
|
package/lib/visuals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o from"react";import t from"styled-components";import{OdigosLogo as s}from"./icons.js";import"./chunks/ui-components-
|
|
1
|
+
import o from"react";import t from"styled-components";import{OdigosLogo as s}from"./icons.js";import"./chunks/ui-components-c940a3cc.js";import"zustand";import"javascript-time-ago";import"./chunks/vendor-55cc654c.js";import"react-dom";import"@xyflow/react";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";const p=434,i=635,r=t.div`
|
|
2
2
|
width: ${434}px;
|
|
3
3
|
height: ${635}px;
|
|
4
4
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odigos/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.130",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,6 +30,11 @@
|
|
|
30
30
|
"import": "./lib/components/v2.js",
|
|
31
31
|
"require": "./lib/components/v2.js"
|
|
32
32
|
},
|
|
33
|
+
"./containers/v2": {
|
|
34
|
+
"types": "./lib/containers/_v2/index.d.ts",
|
|
35
|
+
"import": "./lib/containers/v2.js",
|
|
36
|
+
"require": "./lib/containers/v2.js"
|
|
37
|
+
},
|
|
33
38
|
"./components": {
|
|
34
39
|
"types": "./lib/components/index.d.ts",
|
|
35
40
|
"import": "./lib/components.js",
|
|
@@ -87,15 +92,8 @@
|
|
|
87
92
|
}
|
|
88
93
|
},
|
|
89
94
|
"peerDependencies": {
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"lottie-react": "^2.4.1",
|
|
93
|
-
"prism-react-renderer": "^2.4.1",
|
|
94
|
-
"react": "^19.1.0",
|
|
95
|
-
"react-dom": "^19.1.0",
|
|
96
|
-
"react-error-boundary": "^6.0.0",
|
|
97
|
-
"styled-components": "^6.1.19",
|
|
98
|
-
"zustand": "^5.0.6"
|
|
95
|
+
"react": "^19.2.0",
|
|
96
|
+
"react-dom": "^19.2.0"
|
|
99
97
|
},
|
|
100
98
|
"dependencies": {
|
|
101
99
|
"@tanstack/react-virtual": "^3.13.12",
|
|
@@ -107,37 +105,37 @@
|
|
|
107
105
|
"react-dom": "^19.2.0",
|
|
108
106
|
"react-error-boundary": "^6.0.0",
|
|
109
107
|
"styled-components": "^6.1.19",
|
|
110
|
-
"zustand": "^5.0.
|
|
108
|
+
"zustand": "^5.0.9"
|
|
111
109
|
},
|
|
112
110
|
"devDependencies": {
|
|
113
111
|
"@babel/core": "^7.28.5",
|
|
114
112
|
"@babel/preset-env": "^7.28.5",
|
|
115
113
|
"@babel/preset-react": "^7.28.5",
|
|
116
114
|
"@babel/preset-typescript": "^7.28.5",
|
|
117
|
-
"@eslint/eslintrc": "^3.3.
|
|
115
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
118
116
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
119
117
|
"@rollup/plugin-json": "^6.1.0",
|
|
120
118
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
121
119
|
"@rollup/plugin-terser": "^0.4.4",
|
|
122
120
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
123
|
-
"@storybook/addon-docs": "^10.0.7",
|
|
124
121
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.0",
|
|
125
|
-
"@storybook/react-webpack5": "10.
|
|
122
|
+
"@storybook/react-webpack5": "10.1.2",
|
|
126
123
|
"@types/node": "^24.10.1",
|
|
127
|
-
"@types/react": "^19.2.
|
|
124
|
+
"@types/react": "^19.2.7",
|
|
128
125
|
"@types/react-dom": "^19.2.3",
|
|
126
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
127
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
129
128
|
"babel-loader": "^10.0.0",
|
|
130
129
|
"babel-plugin-styled-components": "^2.1.4",
|
|
131
130
|
"eslint": "^9.39.1",
|
|
132
|
-
"eslint-
|
|
133
|
-
"eslint-plugin-storybook": "10.
|
|
134
|
-
"next": "^15.5.6",
|
|
131
|
+
"eslint-plugin-react": "^7.37.5",
|
|
132
|
+
"eslint-plugin-storybook": "10.1.2",
|
|
135
133
|
"postcss": "^8.5.6",
|
|
136
134
|
"rollup": "^3.29.4",
|
|
137
135
|
"rollup-plugin-filesize": "^10.0.0",
|
|
138
136
|
"rollup-plugin-postcss": "^4.0.2",
|
|
139
137
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
140
|
-
"storybook": "10.
|
|
138
|
+
"storybook": "10.1.2",
|
|
141
139
|
"typescript": "^5.9.3"
|
|
142
140
|
}
|
|
143
141
|
}
|