@devtron-labs/devtron-fe-common-lib 0.5.7 → 0.5.8
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 +2 -2
- package/dist/Shared/types.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-u3ZIBz92.js → cssMode-DEBMAuGj.js} +1 -1
- package/dist/{freemarker2-QqpGs_Iq.js → freemarker2-TbZHl9l6.js} +1 -1
- package/dist/{handlebars-P8cCab_u.js → handlebars-YrqZDBLz.js} +1 -1
- package/dist/{html-BezGbqGD.js → html-B2fzM_Mv.js} +1 -1
- package/dist/{htmlMode-nbw8LkFR.js → htmlMode-BfSqXq1K.js} +1 -1
- package/dist/{index-C7R2pUNO.js → index-C0xaazGL.js} +29056 -28340
- package/dist/index.d.ts +1 -0
- package/dist/index.js +350 -349
- package/dist/{javascript-Bm9uV0V3.js → javascript-HhoBGID0.js} +1 -1
- package/dist/{jsonMode-m2Ny0Qk1.js → jsonMode-DERA0prf.js} +1 -1
- package/dist/{liquid-C61nJhgi.js → liquid-Ds-rr6_R.js} +1 -1
- package/dist/{mdx-CP6h0RF9.js → mdx-CWOg3tMi.js} +1 -1
- package/dist/{python-BwRUSz_s.js → python-CKMaba9T.js} +1 -1
- package/dist/{razor-WAYVtbZW.js → razor-Qo-nu70j.js} +1 -1
- package/dist/{tsMode-C6m3BTmp.js → tsMode-B54XvvOK.js} +1 -1
- package/dist/{typescript-DFZGlPfC.js → typescript-_Gk2ZLx_.js} +1 -1
- package/dist/{xml-DIxbqQ1Y.js → xml-DkSkWE2b.js} +1 -1
- package/dist/{yaml-czt5fk8K.js → yaml-DFZNsxsy.js} +1 -1
- package/package.json +3 -4
|
@@ -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;
|
|
@@ -420,6 +420,8 @@ export interface DeploymentHistorySidebarType {
|
|
|
420
420
|
export interface AppStatusDetailsChartType {
|
|
421
421
|
filterRemoveHealth?: boolean;
|
|
422
422
|
showFooter: boolean;
|
|
423
|
+
showConfigDriftInfo?: boolean;
|
|
424
|
+
onClose?: () => void;
|
|
423
425
|
}
|
|
424
426
|
export interface StatusFilterButtonType {
|
|
425
427
|
nodes: Array<Node>;
|
|
@@ -433,6 +435,9 @@ export declare enum NodeStatus {
|
|
|
433
435
|
Suspended = "suspended",
|
|
434
436
|
Unknown = "unknown"
|
|
435
437
|
}
|
|
438
|
+
export declare enum NodeFilters {
|
|
439
|
+
drifted = "drifted"
|
|
440
|
+
}
|
|
436
441
|
type NodesMap = {
|
|
437
442
|
[key in NodeType]?: Map<string, any>;
|
|
438
443
|
};
|
|
@@ -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
|
*/
|
|
@@ -30,16 +54,8 @@ export interface CollapsibleListItem {
|
|
|
30
54
|
*/
|
|
31
55
|
tooltipProps?: TippyProps;
|
|
32
56
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*/
|
|
36
|
-
href?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The callback function to handle click events on the nav link.
|
|
39
|
-
*/
|
|
40
|
-
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
41
|
-
}
|
|
42
|
-
export interface CollapsibleListConfig {
|
|
57
|
+
};
|
|
58
|
+
export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
|
|
43
59
|
/**
|
|
44
60
|
* The unique identifier for the collapsible list.
|
|
45
61
|
*/
|
|
@@ -77,17 +93,21 @@ export interface CollapsibleListConfig {
|
|
|
77
93
|
/**
|
|
78
94
|
* An array of items to be displayed in the collapsible list.
|
|
79
95
|
*/
|
|
80
|
-
items: CollapsibleListItem[];
|
|
96
|
+
items: CollapsibleListItem<TabType>[];
|
|
81
97
|
/**
|
|
82
98
|
* Boolean indicating whether the list is expanded or not.
|
|
83
99
|
*/
|
|
84
100
|
isExpanded?: boolean;
|
|
85
101
|
}
|
|
86
|
-
export interface CollapsibleListProps {
|
|
102
|
+
export interface CollapsibleListProps<TabType extends TabOptions> {
|
|
87
103
|
/**
|
|
88
104
|
* An array of collapsible list configurations.
|
|
89
105
|
*/
|
|
90
|
-
config: CollapsibleListConfig[];
|
|
106
|
+
config: CollapsibleListConfig<TabType>[];
|
|
107
|
+
/**
|
|
108
|
+
* Type of tab list: button or navLink
|
|
109
|
+
*/
|
|
110
|
+
tabType: TabType;
|
|
91
111
|
/**
|
|
92
112
|
* Function to handle the collapse button click event.
|
|
93
113
|
*
|
|
@@ -97,3 +117,4 @@ export interface CollapsibleListProps {
|
|
|
97
117
|
*/
|
|
98
118
|
onCollapseBtnClick?: (id: string, e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
99
119
|
}
|
|
120
|
+
export {};
|
|
@@ -37,11 +37,11 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
37
37
|
text?: never;
|
|
38
38
|
selectPickerProps: SelectPickerProps;
|
|
39
39
|
};
|
|
40
|
-
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem
|
|
40
|
+
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem<'navLink'>, 'href' | 'title' | 'onClick'> {
|
|
41
41
|
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
42
42
|
diffState: DeploymentConfigListItem['diffState'];
|
|
43
43
|
}
|
|
44
|
-
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig
|
|
44
|
+
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig<'navLink'>, 'id' | 'header' | 'noItemsText'> {
|
|
45
45
|
items: DeploymentConfigDiffNavigationItem[];
|
|
46
46
|
}
|
|
47
47
|
export interface DeploymentConfigDiffProps {
|