@devtron-labs/devtron-fe-common-lib 0.5.8 → 0.6.0-patch-1

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.
Files changed (28) hide show
  1. package/dist/Common/Constants.d.ts +0 -1
  2. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +1 -1
  3. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -5
  4. package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +2 -2
  5. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +14 -35
  6. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -2
  7. package/dist/Shared/Components/Header/IframePromoButton.d.ts +1 -0
  8. package/dist/Shared/types.d.ts +0 -1
  9. package/dist/assets/index.css +1 -1
  10. package/dist/{cssMode-DEBMAuGj.js → cssMode-Cw5HNtTC.js} +1 -1
  11. package/dist/{freemarker2-TbZHl9l6.js → freemarker2-AIX8xTMx.js} +1 -1
  12. package/dist/{handlebars-YrqZDBLz.js → handlebars-C8ZkeKaj.js} +1 -1
  13. package/dist/{html-B2fzM_Mv.js → html-Dxy9SvU0.js} +1 -1
  14. package/dist/{htmlMode-BfSqXq1K.js → htmlMode-BIaJBbA7.js} +1 -1
  15. package/dist/{index-C0xaazGL.js → index-BdtnSW-i.js} +28887 -29534
  16. package/dist/index.d.ts +9 -1
  17. package/dist/index.js +349 -350
  18. package/dist/{javascript-HhoBGID0.js → javascript-BaN4GPsT.js} +1 -1
  19. package/dist/{jsonMode-DERA0prf.js → jsonMode-CwjQOd1-.js} +1 -1
  20. package/dist/{liquid-Ds-rr6_R.js → liquid-BFeuUBA4.js} +1 -1
  21. package/dist/{mdx-CWOg3tMi.js → mdx-QZKoVMX8.js} +1 -1
  22. package/dist/{python-CKMaba9T.js → python-C4dYSjqY.js} +1 -1
  23. package/dist/{razor-Qo-nu70j.js → razor-BADR1A4S.js} +1 -1
  24. package/dist/{tsMode-B54XvvOK.js → tsMode-D0dJyb-3.js} +1 -1
  25. package/dist/{typescript-_Gk2ZLx_.js → typescript-CKSV_nAk.js} +1 -1
  26. package/dist/{xml-DkSkWE2b.js → xml-DNpcQ7oQ.js} +1 -1
  27. package/dist/{yaml-DFZNsxsy.js → yaml-BLjm78z5.js} +1 -1
  28. package/package.json +4 -3
@@ -45,7 +45,6 @@ export declare const URLS: {
45
45
  GLOBAL_CONFIG_SCOPED_VARIABLES: string;
46
46
  GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
47
47
  NETWORK_STATUS_INTERFACE: string;
48
- CONFIG_DRIFT: string;
49
48
  };
50
49
  export declare const ROUTES: {
51
50
  APP: string;
@@ -1,3 +1,3 @@
1
1
  import { AppStatusDetailsChartType } from './types';
2
- declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter, showConfigDriftInfo, onClose, }: AppStatusDetailsChartType) => JSX.Element;
2
+ declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter }: AppStatusDetailsChartType) => JSX.Element;
3
3
  export default AppStatusDetailsChart;
@@ -420,8 +420,6 @@ export interface DeploymentHistorySidebarType {
420
420
  export interface AppStatusDetailsChartType {
421
421
  filterRemoveHealth?: boolean;
422
422
  showFooter: boolean;
423
- showConfigDriftInfo?: boolean;
424
- onClose?: () => void;
425
423
  }
426
424
  export interface StatusFilterButtonType {
427
425
  nodes: Array<Node>;
@@ -435,9 +433,6 @@ export declare enum NodeStatus {
435
433
  Suspended = "suspended",
436
434
  Unknown = "unknown"
437
435
  }
438
- export declare enum NodeFilters {
439
- drifted = "drifted"
440
- }
441
436
  type NodesMap = {
442
437
  [key in NodeType]?: Map<string, any>;
443
438
  };
@@ -1,2 +1,2 @@
1
- import { CollapsibleListProps, TabOptions } from './CollapsibleList.types';
2
- export declare const CollapsibleList: <TabType extends TabOptions>({ config, tabType, onCollapseBtnClick, }: CollapsibleListProps<TabType>) => JSX.Element;
1
+ import { CollapsibleListProps } from './CollapsibleList.types';
2
+ export declare const CollapsibleList: ({ config, onCollapseBtnClick }: CollapsibleListProps) => JSX.Element;
@@ -1,30 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TippyProps } from '@tippyjs/react';
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> & {
3
+ export interface CollapsibleListItem {
28
4
  /**
29
5
  * The title of the list item.
30
6
  */
@@ -54,8 +30,16 @@ export type CollapsibleListItem<TabType extends TabOptions> = ConditionalTabType
54
30
  */
55
31
  tooltipProps?: TippyProps;
56
32
  };
57
- };
58
- export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
33
+ /**
34
+ * The URL of the nav link.
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 {
59
43
  /**
60
44
  * The unique identifier for the collapsible list.
61
45
  */
@@ -93,21 +77,17 @@ export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
93
77
  /**
94
78
  * An array of items to be displayed in the collapsible list.
95
79
  */
96
- items: CollapsibleListItem<TabType>[];
80
+ items: CollapsibleListItem[];
97
81
  /**
98
82
  * Boolean indicating whether the list is expanded or not.
99
83
  */
100
84
  isExpanded?: boolean;
101
85
  }
102
- export interface CollapsibleListProps<TabType extends TabOptions> {
86
+ export interface CollapsibleListProps {
103
87
  /**
104
88
  * An array of collapsible list configurations.
105
89
  */
106
- config: CollapsibleListConfig<TabType>[];
107
- /**
108
- * Type of tab list: button or navLink
109
- */
110
- tabType: TabType;
90
+ config: CollapsibleListConfig[];
111
91
  /**
112
92
  * Function to handle the collapse button click event.
113
93
  *
@@ -117,4 +97,3 @@ export interface CollapsibleListProps<TabType extends TabOptions> {
117
97
  */
118
98
  onCollapseBtnClick?: (id: string, e: React.MouseEvent<HTMLButtonElement>) => void;
119
99
  }
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<'navLink'>, 'href' | 'title' | 'onClick'> {
40
+ export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, '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<'navLink'>, 'id' | 'header' | 'noItemsText'> {
44
+ export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
45
45
  items: DeploymentConfigDiffNavigationItem[];
46
46
  }
47
47
  export interface DeploymentConfigDiffProps {
@@ -0,0 +1 @@
1
+ export declare const IframePromoButton: () => JSX.Element;
@@ -104,7 +104,6 @@ export interface Node {
104
104
  port: number;
105
105
  canBeHibernated: boolean;
106
106
  isHibernated: boolean;
107
- hasDrift?: boolean;
108
107
  }
109
108
  export interface iNodes extends Array<iNode> {
110
109
  }