@devtron-labs/devtron-fe-common-lib 0.3.12 → 0.3.14
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/Tooltip/ShortcutKeyComboTooltipContent.d.ts +3 -0
- package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Common/Tooltip/index.d.ts +1 -0
- package/dist/Common/Tooltip/types.d.ts +39 -0
- package/dist/Shared/Components/Button/types.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/index.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +11 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-CSrSSFls.js → cssMode-BxMDlv06.js} +1 -1
- package/dist/{freemarker2-gNSPakfi.js → freemarker2-DTrMxU-u.js} +1 -1
- package/dist/{handlebars-U05gCB6c.js → handlebars-BWdBkLCN.js} +1 -1
- package/dist/{html-BSgM7zG4.js → html-W-Sw7PRG.js} +1 -1
- package/dist/{htmlMode-DZDTPhJ9.js → htmlMode-DrynB3Dx.js} +1 -1
- package/dist/{index-CMK9o8Mr.js → index-rwgGxd2s.js} +18738 -18685
- package/dist/index.js +372 -371
- package/dist/{javascript-BagPBd8V.js → javascript-DeAs02Z0.js} +1 -1
- package/dist/{jsonMode-DoSGktbS.js → jsonMode-qpA7h1-1.js} +1 -1
- package/dist/{liquid-CVtirNJX.js → liquid-D1VF1U7L.js} +1 -1
- package/dist/{mdx-NbX_-jqo.js → mdx-DUWrPr3H.js} +1 -1
- package/dist/{python-Dvx_IPjD.js → python-BvNLeCgD.js} +1 -1
- package/dist/{razor-BE1hcPKi.js → razor-BZochbTE.js} +1 -1
- package/dist/{tsMode-lRC0dkbJ.js → tsMode-Dcqdj-_H.js} +1 -1
- package/dist/{typescript-DXtZgVL8.js → typescript-BoSmU131.js} +1 -1
- package/dist/{xml-cDwxXlwI.js → xml-BFIK85mG.js} +1 -1
- package/dist/{yaml-DGTBq1Cb.js → yaml-CnIq8QkX.js} +1 -1
- package/package.json +2 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipProps } from './types';
|
|
2
|
-
declare const Tooltip: ({ alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child, ...rest }: TooltipProps) => JSX.Element;
|
|
2
|
+
declare const Tooltip: ({ shortcutKeyCombo, alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child, ...rest }: TooltipProps) => JSX.Element;
|
|
3
3
|
export default Tooltip;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { TippyProps } from '@tippyjs/react';
|
|
2
|
+
export declare const KEYBOARD_KEYS_MAP: {
|
|
3
|
+
readonly Control: "⌘" | "Ctrl";
|
|
4
|
+
readonly Shift: "⇧";
|
|
5
|
+
readonly F: "F";
|
|
6
|
+
readonly E: "E";
|
|
7
|
+
};
|
|
8
|
+
export type SupportedKeyboardKeysType = keyof typeof KEYBOARD_KEYS_MAP;
|
|
2
9
|
type BaseTooltipProps = {
|
|
3
10
|
/**
|
|
4
11
|
* If true, show tippy on truncate
|
|
@@ -10,6 +17,12 @@ type BaseTooltipProps = {
|
|
|
10
17
|
* @default false
|
|
11
18
|
*/
|
|
12
19
|
alwaysShowTippyOnHover?: never;
|
|
20
|
+
/**
|
|
21
|
+
* If true, use the common styling for shortcuts
|
|
22
|
+
* @default undefined
|
|
23
|
+
*/
|
|
24
|
+
shortcutKeyCombo?: never;
|
|
25
|
+
content: TippyProps['content'];
|
|
13
26
|
} | {
|
|
14
27
|
/**
|
|
15
28
|
* If alwaysShowTippyOnHover is defined this prop doesn't work
|
|
@@ -18,9 +31,35 @@ type BaseTooltipProps = {
|
|
|
18
31
|
showOnTruncate?: never;
|
|
19
32
|
/**
|
|
20
33
|
* If true, wrap with tippy irrespective of other options
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
alwaysShowTippyOnHover: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* If true, use the common styling for shortcuts
|
|
39
|
+
* @default undefined
|
|
40
|
+
*/
|
|
41
|
+
shortcutKeyCombo?: never;
|
|
42
|
+
content: TippyProps['content'];
|
|
43
|
+
} | {
|
|
44
|
+
/**
|
|
45
|
+
* If true, show tippy on truncate
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
showOnTruncate?: never;
|
|
49
|
+
/**
|
|
50
|
+
* If showOnTruncate is defined this prop doesn't work
|
|
21
51
|
* @default false
|
|
22
52
|
*/
|
|
23
53
|
alwaysShowTippyOnHover?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* If true, use the common styling for shortcuts
|
|
56
|
+
* @default undefined
|
|
57
|
+
*/
|
|
58
|
+
shortcutKeyCombo: {
|
|
59
|
+
text: string;
|
|
60
|
+
combo: SupportedKeyboardKeysType[];
|
|
61
|
+
};
|
|
62
|
+
content?: never;
|
|
24
63
|
};
|
|
25
64
|
export type TooltipProps = BaseTooltipProps & TippyProps & {
|
|
26
65
|
/**
|
|
@@ -82,7 +82,7 @@ export type ButtonProps = ({
|
|
|
82
82
|
/**
|
|
83
83
|
* Props for tooltip
|
|
84
84
|
*/
|
|
85
|
-
tooltipProps: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate'
|
|
85
|
+
tooltipProps: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo'> | (Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content'> & Required<Pick<TooltipProps, 'shortcutKeyCombo'>>);
|
|
86
86
|
} | {
|
|
87
87
|
showTooltip?: never;
|
|
88
88
|
tooltipProps?: never;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -10,7 +10,7 @@ export * from './service';
|
|
|
10
10
|
export * from './History.components';
|
|
11
11
|
export * from './utils';
|
|
12
12
|
export * from './TriggerOutput';
|
|
13
|
-
export
|
|
13
|
+
export { default as LogsRenderer } from './LogsRenderer';
|
|
14
14
|
export * from './DeploymentHistoryDiff';
|
|
15
15
|
export * from './CiPipelineSourceConfig';
|
|
16
16
|
export * from './StatusFilterButtonComponent';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactElement } from 'react';
|
|
2
|
-
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
|
|
2
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder, SupportedKeyboardKeysType } from '../../../Common';
|
|
3
3
|
import { DeploymentStageType } from '../../constants';
|
|
4
4
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
5
|
export declare enum HistoryComponentType {
|
|
@@ -14,6 +14,16 @@ export declare enum FetchIdDataStatus {
|
|
|
14
14
|
SUSPEND = "SUSPEND"
|
|
15
15
|
}
|
|
16
16
|
export interface LogResizeButtonType {
|
|
17
|
+
/**
|
|
18
|
+
* If given, that shortcut combo will be bound to the button
|
|
19
|
+
* @default null
|
|
20
|
+
*/
|
|
21
|
+
shortcutCombo?: SupportedKeyboardKeysType[];
|
|
22
|
+
/**
|
|
23
|
+
* If true, only show the button when location.pathname contains '/logs'
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
showOnlyWhenPathIncludesLogs?: boolean;
|
|
17
27
|
fullScreenView: boolean;
|
|
18
28
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
19
29
|
}
|