@devtron-labs/devtron-fe-common-lib 0.4.4 → 0.4.5-beta-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 (25) hide show
  1. package/dist/Common/Constants.d.ts +1 -0
  2. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +1 -1
  3. package/dist/Shared/Components/CICDHistory/types.d.ts +5 -0
  4. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +28 -10
  5. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +3 -1
  6. package/dist/Shared/types.d.ts +1 -0
  7. package/dist/assets/index.css +1 -1
  8. package/dist/{cssMode-BX3UW3Ag.js → cssMode-Cjd9Gags.js} +1 -1
  9. package/dist/{freemarker2-hg12amxY.js → freemarker2-DkkYCOae.js} +1 -1
  10. package/dist/{handlebars-BAbpxVSB.js → handlebars-DDdVpRM0.js} +1 -1
  11. package/dist/{html-DP1mAA4u.js → html-DMDvEByM.js} +1 -1
  12. package/dist/{htmlMode-BF8fEDme.js → htmlMode-COCZrkwB.js} +1 -1
  13. package/dist/{index-CubKZJ4s.js → index-DolGX43w.js} +17660 -17615
  14. package/dist/index.js +336 -335
  15. package/dist/{javascript-C_qk3jv_.js → javascript-CIERRva_.js} +1 -1
  16. package/dist/{jsonMode-BbRGGeJH.js → jsonMode-ColHPPcY.js} +1 -1
  17. package/dist/{liquid-A_1zTHCU.js → liquid-CAcsE5xo.js} +1 -1
  18. package/dist/{mdx-fh1mXpkk.js → mdx-D4VNCwa6.js} +1 -1
  19. package/dist/{python-XpEwircj.js → python-BNECkA8F.js} +1 -1
  20. package/dist/{razor-DkfGWwFo.js → razor-BvV5D4V9.js} +1 -1
  21. package/dist/{tsMode-D34TJQB_.js → tsMode-DiyYPXoL.js} +1 -1
  22. package/dist/{typescript-Bx1dWMAZ.js → typescript-iCjVVHTS.js} +1 -1
  23. package/dist/{xml-COGSV0nG.js → xml-D3wo-UpF.js} +1 -1
  24. package/dist/{yaml-BI2gVaIy.js → yaml-Njfdo_E0.js} +1 -1
  25. package/package.json +1 -1
@@ -44,6 +44,7 @@ export declare const URLS: {
44
44
  GLOBAL_CONFIG_SCOPED_VARIABLES: string;
45
45
  GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
46
46
  NETWORK_STATUS_INTERFACE: string;
47
+ CONFIG_DRIFT: string;
47
48
  };
48
49
  export declare const ROUTES: {
49
50
  APP: string;
@@ -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,6 +1,31 @@
1
1
  import { default as React } from 'react';
2
2
  import { TippyProps } from '@tippyjs/react';
3
- export interface CollapsibleListItem {
3
+ interface ButtonTab {
4
+ tabType: 'button';
5
+ /**
6
+ * Is tab active ( for button tab )
7
+ */
8
+ isActive: boolean;
9
+ /**
10
+ * The callback function to handle click events on the button.
11
+ */
12
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
13
+ href?: never;
14
+ }
15
+ interface NavLinkTab {
16
+ tabType: 'navLink';
17
+ /**
18
+ * The URL of the nav link.
19
+ */
20
+ href: string;
21
+ /**
22
+ * The callback function to handle click events on the nav link.
23
+ */
24
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
25
+ isActive?: never;
26
+ }
27
+ type ConditionalTabType = ButtonTab | NavLinkTab;
28
+ export type CollapsibleListItem = ConditionalTabType & {
4
29
  /**
5
30
  * The title of the list item.
6
31
  */
@@ -26,15 +51,7 @@ export interface CollapsibleListItem {
26
51
  */
27
52
  tooltipProps?: TippyProps;
28
53
  };
29
- /**
30
- * The URL of the nav link.
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
- }
54
+ };
38
55
  export interface CollapsibleListConfig {
39
56
  /**
40
57
  * The unique identifier for the collapsible list.
@@ -93,3 +110,4 @@ export interface CollapsibleListProps {
93
110
  */
94
111
  onCollapseBtnClick?: (id: string, e: React.MouseEvent<HTMLButtonElement>) => void;
95
112
  }
113
+ export {};
@@ -27,8 +27,10 @@ export type DeploymentConfigDiffSelectPickerProps = {
27
27
  text?: never;
28
28
  selectPickerProps: SelectPickerProps;
29
29
  };
30
- export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
30
+ export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'title'> {
31
31
  hasDiff?: boolean;
32
+ href: string;
33
+ onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
32
34
  }
33
35
  export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
34
36
  items: DeploymentConfigDiffNavigationItem[];
@@ -104,6 +104,7 @@ export interface Node {
104
104
  port: number;
105
105
  canBeHibernated: boolean;
106
106
  isHibernated: boolean;
107
+ hasDrift?: boolean;
107
108
  }
108
109
  export interface iNodes extends Array<iNode> {
109
110
  }