@devtron-labs/devtron-fe-common-lib 0.4.5-beta-5 → 0.4.6

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 (26) 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 -4
  7. package/dist/Shared/types.d.ts +0 -1
  8. package/dist/assets/index.css +1 -1
  9. package/dist/{cssMode-DQWp61ae.js → cssMode-C10rk8Cn.js} +1 -1
  10. package/dist/{freemarker2-TR5GHDpp.js → freemarker2-D67_7glc.js} +1 -1
  11. package/dist/{handlebars-DWtmS84R.js → handlebars-BjuzR1TI.js} +1 -1
  12. package/dist/{html-B3U_E5C4.js → html-CD4rBQ1p.js} +1 -1
  13. package/dist/{htmlMode-DDWKA_ZA.js → htmlMode-ChcH2Ueg.js} +1 -1
  14. package/dist/{index-DlBCTsZD.js → index-Czrg-A8a.js} +18224 -18281
  15. package/dist/index.js +335 -336
  16. package/dist/{javascript-2ghjHMPg.js → javascript-B-PbsBVX.js} +1 -1
  17. package/dist/{jsonMode-DJVA7Inq.js → jsonMode-Bif4lid2.js} +1 -1
  18. package/dist/{liquid-CJ4B02TB.js → liquid-ByZWrLBg.js} +1 -1
  19. package/dist/{mdx-CdY8LSKF.js → mdx-BW4oCjP0.js} +1 -1
  20. package/dist/{python-BLb7-GK6.js → python-BeFHqQHi.js} +1 -1
  21. package/dist/{razor-D8GGZGOa.js → razor-BHD5-V8u.js} +1 -1
  22. package/dist/{tsMode-iYRi7t2_.js → tsMode-NN8FSA45.js} +1 -1
  23. package/dist/{typescript-Bwh3WRgg.js → typescript-C0Qqxjrj.js} +1 -1
  24. package/dist/{xml-D4GYw0gj.js → xml-B2M3oT9b.js} +1 -1
  25. package/dist/{yaml-_WlK6OYV.js → yaml-azYGD9Hn.js} +1 -1
  26. package/package.json +2 -1
@@ -44,7 +44,6 @@ 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;
48
47
  };
49
48
  export declare const ROUTES: {
50
49
  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;
@@ -417,8 +417,6 @@ export interface DeploymentHistorySidebarType {
417
417
  export interface AppStatusDetailsChartType {
418
418
  filterRemoveHealth?: boolean;
419
419
  showFooter: boolean;
420
- showConfigDriftInfo?: boolean;
421
- onClose?: () => void;
422
420
  }
423
421
  export interface StatusFilterButtonType {
424
422
  nodes: Array<Node>;
@@ -432,9 +430,6 @@ export declare enum NodeStatus {
432
430
  Suspended = "suspended",
433
431
  Unknown = "unknown"
434
432
  }
435
- export declare enum NodeFilters {
436
- drifted = "drifted"
437
- }
438
433
  type NodesMap = {
439
434
  [key in NodeType]?: Map<string, any>;
440
435
  };
@@ -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
  */
@@ -50,8 +26,16 @@ export type CollapsibleListItem<TabType extends TabOptions> = ConditionalTabType
50
26
  */
51
27
  tooltipProps?: TippyProps;
52
28
  };
53
- };
54
- export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
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
+ }
38
+ export interface CollapsibleListConfig {
55
39
  /**
56
40
  * The unique identifier for the collapsible list.
57
41
  */
@@ -89,21 +73,17 @@ export interface CollapsibleListConfig<TabType extends 'button' | 'navLink'> {
89
73
  /**
90
74
  * An array of items to be displayed in the collapsible list.
91
75
  */
92
- items: CollapsibleListItem<TabType>[];
76
+ items: CollapsibleListItem[];
93
77
  /**
94
78
  * Boolean indicating whether the list is expanded or not.
95
79
  */
96
80
  isExpanded?: boolean;
97
81
  }
98
- export interface CollapsibleListProps<TabType extends TabOptions> {
82
+ export interface CollapsibleListProps {
99
83
  /**
100
84
  * An array of collapsible list configurations.
101
85
  */
102
- config: CollapsibleListConfig<TabType>[];
103
- /**
104
- * Type of tab list: button or navLink
105
- */
106
- tabType: TabType;
86
+ config: CollapsibleListConfig[];
107
87
  /**
108
88
  * Function to handle the collapse button click event.
109
89
  *
@@ -113,4 +93,3 @@ export interface CollapsibleListProps<TabType extends TabOptions> {
113
93
  */
114
94
  onCollapseBtnClick?: (id: string, e: React.MouseEvent<HTMLButtonElement>) => void;
115
95
  }
116
- export {};
@@ -27,12 +27,10 @@ export type DeploymentConfigDiffSelectPickerProps = {
27
27
  text?: never;
28
28
  selectPickerProps: SelectPickerProps;
29
29
  };
30
- export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem<'navLink'>, 'title'> {
30
+ export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
31
31
  hasDiff?: boolean;
32
- href: string;
33
- onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
34
32
  }
35
- export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig<'navLink'>, 'id' | 'header' | 'noItemsText'> {
33
+ export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
36
34
  items: DeploymentConfigDiffNavigationItem[];
37
35
  }
38
36
  export interface DeploymentConfigDiffProps {
@@ -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
  }