@devtron-labs/devtron-fe-common-lib 0.4.3-beta-2 → 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.
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +2 -8
- package/dist/Common/Tooltip/types.d.ts +1 -4
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +54 -1
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +55 -2
- package/dist/Shared/Components/CICDHistory/types.d.ts +5 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +28 -10
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +3 -1
- package/dist/Shared/types.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-DaN1uwbA.js → cssMode-Cjd9Gags.js} +1 -1
- package/dist/{freemarker2-DcXEsCuh.js → freemarker2-DkkYCOae.js} +1 -1
- package/dist/{handlebars-CmvWyA9v.js → handlebars-DDdVpRM0.js} +1 -1
- package/dist/{html-CnxJdlMG.js → html-DMDvEByM.js} +1 -1
- package/dist/{htmlMode-C8FDGtom.js → htmlMode-COCZrkwB.js} +1 -1
- package/dist/{index-DxV1RT4a.js → index-DolGX43w.js} +18667 -18630
- package/dist/index.js +336 -335
- package/dist/{javascript-BSxHAzQA.js → javascript-CIERRva_.js} +1 -1
- package/dist/{jsonMode-DjkBzFns.js → jsonMode-ColHPPcY.js} +1 -1
- package/dist/{liquid-CHACoQzO.js → liquid-CAcsE5xo.js} +1 -1
- package/dist/{mdx-D6g3PMDY.js → mdx-D4VNCwa6.js} +1 -1
- package/dist/{python-R6G9rulX.js → python-BNECkA8F.js} +1 -1
- package/dist/{razor-De29BstI.js → razor-BvV5D4V9.js} +1 -1
- package/dist/{tsMode-98rjVWKG.js → tsMode-DiyYPXoL.js} +1 -1
- package/dist/{typescript-CbConEe5.js → typescript-iCjVVHTS.js} +1 -1
- package/dist/{xml-O5d7JMbz.js → xml-D3wo-UpF.js} +1 -1
- package/dist/{yaml-C5OedARR.js → yaml-Njfdo_E0.js} +1 -1
- package/package.json +2 -2
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +0 -2
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { SupportedKeyboardKeysType } from '../../Tooltip';
|
|
2
|
-
export interface ShortcutType {
|
|
3
|
-
keys: SupportedKeyboardKeysType[];
|
|
4
|
-
callback: () => void;
|
|
5
|
-
}
|
|
6
1
|
export interface UseRegisterShortcutContextType {
|
|
7
|
-
registerShortcut:
|
|
8
|
-
|
|
9
|
-
setDisableShortcuts: (shouldDisable: boolean) => void;
|
|
2
|
+
registerShortcut: boolean;
|
|
3
|
+
setRegisterShortcut: (allowShortcut: boolean) => void;
|
|
10
4
|
}
|
|
11
5
|
export interface UseRegisterShortcutProviderType {
|
|
12
6
|
children: React.ReactElement;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { TippyProps } from '@tippyjs/react';
|
|
2
2
|
export declare const KEYBOARD_KEYS_MAP: {
|
|
3
|
-
readonly Control: "Ctrl";
|
|
3
|
+
readonly Control: "⌘" | "Ctrl";
|
|
4
4
|
readonly Shift: "⇧";
|
|
5
5
|
readonly F: "F";
|
|
6
6
|
readonly E: "E";
|
|
7
|
-
readonly R: "R";
|
|
8
|
-
readonly K: "K";
|
|
9
|
-
readonly Meta: "⌘" | "Win";
|
|
10
7
|
};
|
|
11
8
|
export type SupportedKeyboardKeysType = keyof typeof KEYBOARD_KEYS_MAP;
|
|
12
9
|
type BaseTooltipProps = {
|
|
@@ -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;
|
|
@@ -1,4 +1,57 @@
|
|
|
1
|
+
import { IWithShortcut } from 'react-keybind';
|
|
1
2
|
import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
|
|
2
|
-
export declare const LogResizeButton:
|
|
3
|
+
export declare const LogResizeButton: {
|
|
4
|
+
new (props: Readonly<LogResizeButtonType & IWithShortcut>): {
|
|
5
|
+
render(): JSX.Element;
|
|
6
|
+
context: any;
|
|
7
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogResizeButtonType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
8
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
9
|
+
readonly props: Readonly<LogResizeButtonType & IWithShortcut> & Readonly<{
|
|
10
|
+
children?: import('react').ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
state: Readonly<{}>;
|
|
13
|
+
refs: {
|
|
14
|
+
[key: string]: import('react').ReactInstance;
|
|
15
|
+
};
|
|
16
|
+
componentDidMount?(): void;
|
|
17
|
+
shouldComponentUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
18
|
+
componentWillUnmount?(): void;
|
|
19
|
+
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
20
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
21
|
+
componentDidUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
22
|
+
componentWillMount?(): void;
|
|
23
|
+
UNSAFE_componentWillMount?(): void;
|
|
24
|
+
componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
25
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
26
|
+
componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
27
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
28
|
+
};
|
|
29
|
+
new (props: LogResizeButtonType & IWithShortcut, context?: any): {
|
|
30
|
+
render(): JSX.Element;
|
|
31
|
+
context: any;
|
|
32
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogResizeButtonType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
33
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
+
readonly props: Readonly<LogResizeButtonType & IWithShortcut> & Readonly<{
|
|
35
|
+
children?: import('react').ReactNode;
|
|
36
|
+
}>;
|
|
37
|
+
state: Readonly<{}>;
|
|
38
|
+
refs: {
|
|
39
|
+
[key: string]: import('react').ReactInstance;
|
|
40
|
+
};
|
|
41
|
+
componentDidMount?(): void;
|
|
42
|
+
shouldComponentUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
43
|
+
componentWillUnmount?(): void;
|
|
44
|
+
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
45
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
46
|
+
componentDidUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
47
|
+
componentWillMount?(): void;
|
|
48
|
+
UNSAFE_componentWillMount?(): void;
|
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
52
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
53
|
+
};
|
|
54
|
+
contextType?: import('react').Context<any> | undefined;
|
|
55
|
+
};
|
|
3
56
|
export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
|
|
4
57
|
export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, }: GitChangesType) => JSX.Element;
|
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
import { IWithShortcut } from 'react-keybind';
|
|
1
2
|
import { LogsRendererType } from './types';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
3
|
+
declare const _default: {
|
|
4
|
+
new (props: Readonly<LogsRendererType & IWithShortcut>): {
|
|
5
|
+
render(): JSX.Element;
|
|
6
|
+
context: any;
|
|
7
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogsRendererType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
8
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
9
|
+
readonly props: Readonly<LogsRendererType & IWithShortcut> & Readonly<{
|
|
10
|
+
children?: import('react').ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
state: Readonly<{}>;
|
|
13
|
+
refs: {
|
|
14
|
+
[key: string]: import('react').ReactInstance;
|
|
15
|
+
};
|
|
16
|
+
componentDidMount?(): void;
|
|
17
|
+
shouldComponentUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
18
|
+
componentWillUnmount?(): void;
|
|
19
|
+
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
20
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
21
|
+
componentDidUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
22
|
+
componentWillMount?(): void;
|
|
23
|
+
UNSAFE_componentWillMount?(): void;
|
|
24
|
+
componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
25
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
26
|
+
componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
27
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
28
|
+
};
|
|
29
|
+
new (props: LogsRendererType & IWithShortcut, context?: any): {
|
|
30
|
+
render(): JSX.Element;
|
|
31
|
+
context: any;
|
|
32
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogsRendererType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
33
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
+
readonly props: Readonly<LogsRendererType & IWithShortcut> & Readonly<{
|
|
35
|
+
children?: import('react').ReactNode;
|
|
36
|
+
}>;
|
|
37
|
+
state: Readonly<{}>;
|
|
38
|
+
refs: {
|
|
39
|
+
[key: string]: import('react').ReactInstance;
|
|
40
|
+
};
|
|
41
|
+
componentDidMount?(): void;
|
|
42
|
+
shouldComponentUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
43
|
+
componentWillUnmount?(): void;
|
|
44
|
+
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
45
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
46
|
+
componentDidUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
47
|
+
componentWillMount?(): void;
|
|
48
|
+
UNSAFE_componentWillMount?(): void;
|
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
52
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
53
|
+
};
|
|
54
|
+
contextType?: import('react').Context<any> | undefined;
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
@@ -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
|
-
|
|
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, '
|
|
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[];
|