@devtron-labs/devtron-fe-common-lib 0.4.4 → 0.4.5-beta-2
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/dist/Common/Constants.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +5 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +2 -2
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +35 -14
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +4 -2
- package/dist/Shared/types.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-BX3UW3Ag.js → cssMode-CN95TYgQ.js} +1 -1
- package/dist/{freemarker2-hg12amxY.js → freemarker2-nwy_s7EE.js} +1 -1
- package/dist/{handlebars-BAbpxVSB.js → handlebars-CEORad5f.js} +1 -1
- package/dist/{html-DP1mAA4u.js → html-B0nP9O3c.js} +1 -1
- package/dist/{htmlMode-BF8fEDme.js → htmlMode-UFBQJhIw.js} +1 -1
- package/dist/{index-CubKZJ4s.js → index-2RgTtICn.js} +19010 -18990
- package/dist/index.js +336 -335
- package/dist/{javascript-C_qk3jv_.js → javascript-s7PH_J0J.js} +1 -1
- package/dist/{jsonMode-BbRGGeJH.js → jsonMode-CL6nID09.js} +1 -1
- package/dist/{liquid-A_1zTHCU.js → liquid-j1IJOlsV.js} +1 -1
- package/dist/{mdx-fh1mXpkk.js → mdx-DbfBJ4HS.js} +1 -1
- package/dist/{python-XpEwircj.js → python-DyIVyx9V.js} +1 -1
- package/dist/{razor-DkfGWwFo.js → razor-aNELmX2P.js} +1 -1
- package/dist/{tsMode-D34TJQB_.js → tsMode-DGr8Lgtn.js} +1 -1
- package/dist/{typescript-Bx1dWMAZ.js → typescript-CcnAENzc.js} +1 -1
- package/dist/{xml-COGSV0nG.js → xml-CPZRAf_-.js} +1 -1
- package/dist/{yaml-BI2gVaIy.js → yaml-Ch_KNpHT.js} +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppStatusDetailsChartType } from './types';
|
|
2
|
-
declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter }: AppStatusDetailsChartType) => JSX.Element;
|
|
2
|
+
declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter, showConfigDriftInfo, onClose, }: AppStatusDetailsChartType) => JSX.Element;
|
|
3
3
|
export default AppStatusDetailsChart;
|
|
@@ -417,6 +417,8 @@ export interface DeploymentHistorySidebarType {
|
|
|
417
417
|
export interface AppStatusDetailsChartType {
|
|
418
418
|
filterRemoveHealth?: boolean;
|
|
419
419
|
showFooter: boolean;
|
|
420
|
+
showConfigDriftInfo?: boolean;
|
|
421
|
+
onClose?: () => void;
|
|
420
422
|
}
|
|
421
423
|
export interface StatusFilterButtonType {
|
|
422
424
|
nodes: Array<Node>;
|
|
@@ -430,6 +432,9 @@ export declare enum NodeStatus {
|
|
|
430
432
|
Suspended = "suspended",
|
|
431
433
|
Unknown = "unknown"
|
|
432
434
|
}
|
|
435
|
+
export declare enum NodeFilters {
|
|
436
|
+
Drifted = "drifted"
|
|
437
|
+
}
|
|
433
438
|
type NodesMap = {
|
|
434
439
|
[key in NodeType]?: Map<string, any>;
|
|
435
440
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CollapsibleListProps } from './CollapsibleList.types';
|
|
2
|
-
export declare const CollapsibleList: ({ config, onCollapseBtnClick }: CollapsibleListProps) => JSX.Element;
|
|
1
|
+
import { CollapsibleListProps, TabOptions } from './CollapsibleList.types';
|
|
2
|
+
export declare const CollapsibleList: <TabType extends TabOptions>({ config, tabType, onCollapseBtnClick, }: CollapsibleListProps<TabType>) => JSX.Element;
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
|
3
|
-
|
|
3
|
+
interface ButtonTab {
|
|
4
|
+
/**
|
|
5
|
+
* Is tab active ( for button tab )
|
|
6
|
+
*/
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The callback function to handle click events on the button.
|
|
10
|
+
*/
|
|
11
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
+
href?: never;
|
|
13
|
+
}
|
|
14
|
+
interface NavLinkTab {
|
|
15
|
+
/**
|
|
16
|
+
* The URL of the nav link.
|
|
17
|
+
*/
|
|
18
|
+
href: string;
|
|
19
|
+
/**
|
|
20
|
+
* The callback function to handle click events on the nav link.
|
|
21
|
+
*/
|
|
22
|
+
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
23
|
+
isActive?: never;
|
|
24
|
+
}
|
|
25
|
+
export type TabOptions = 'button' | 'navLink';
|
|
26
|
+
type ConditionalTabType<TabType extends TabOptions> = TabType extends 'button' ? ButtonTab : NavLinkTab;
|
|
27
|
+
export type CollapsibleListItem<TabType extends TabOptions> = ConditionalTabType<TabType> & {
|
|
4
28
|
/**
|
|
5
29
|
* The title of the list item.
|
|
6
30
|
*/
|
|
@@ -26,16 +50,8 @@ export interface CollapsibleListItem {
|
|
|
26
50
|
*/
|
|
27
51
|
tooltipProps?: TippyProps;
|
|
28
52
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
href?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The callback function to handle click events on the nav link.
|
|
35
|
-
*/
|
|
36
|
-
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
37
|
-
}
|
|
38
|
-
export interface CollapsibleListConfig {
|
|
53
|
+
};
|
|
54
|
+
export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
|
|
39
55
|
/**
|
|
40
56
|
* The unique identifier for the collapsible list.
|
|
41
57
|
*/
|
|
@@ -73,17 +89,21 @@ export interface CollapsibleListConfig {
|
|
|
73
89
|
/**
|
|
74
90
|
* An array of items to be displayed in the collapsible list.
|
|
75
91
|
*/
|
|
76
|
-
items: CollapsibleListItem[];
|
|
92
|
+
items: CollapsibleListItem<TabType>[];
|
|
77
93
|
/**
|
|
78
94
|
* Boolean indicating whether the list is expanded or not.
|
|
79
95
|
*/
|
|
80
96
|
isExpanded?: boolean;
|
|
81
97
|
}
|
|
82
|
-
export interface CollapsibleListProps {
|
|
98
|
+
export interface CollapsibleListProps<TabType extends TabOptions> {
|
|
83
99
|
/**
|
|
84
100
|
* An array of collapsible list configurations.
|
|
85
101
|
*/
|
|
86
|
-
config: CollapsibleListConfig[];
|
|
102
|
+
config: CollapsibleListConfig<TabType>[];
|
|
103
|
+
/**
|
|
104
|
+
* Type of tab list: button or navLink
|
|
105
|
+
*/
|
|
106
|
+
tabType: TabType;
|
|
87
107
|
/**
|
|
88
108
|
* Function to handle the collapse button click event.
|
|
89
109
|
*
|
|
@@ -93,3 +113,4 @@ export interface CollapsibleListProps {
|
|
|
93
113
|
*/
|
|
94
114
|
onCollapseBtnClick?: (id: string, e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
95
115
|
}
|
|
116
|
+
export {};
|
|
@@ -27,10 +27,12 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
27
27
|
text?: never;
|
|
28
28
|
selectPickerProps: SelectPickerProps;
|
|
29
29
|
};
|
|
30
|
-
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem
|
|
30
|
+
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem<'navLink'>, 'title'> {
|
|
31
31
|
hasDiff?: boolean;
|
|
32
|
+
href: string;
|
|
33
|
+
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
32
34
|
}
|
|
33
|
-
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig
|
|
35
|
+
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig<'navLink'>, 'id' | 'header' | 'noItemsText'> {
|
|
34
36
|
items: DeploymentConfigDiffNavigationItem[];
|
|
35
37
|
}
|
|
36
38
|
export interface DeploymentConfigDiffProps {
|