@devtron-labs/devtron-fe-common-lib 0.5.2 → 0.5.3
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/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +53 -3
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +6 -0
- package/dist/Common/Tooltip/index.d.ts +0 -1
- package/dist/Common/Tooltip/types.d.ts +1 -7
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -54
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +2 -55
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -1
- package/dist/{cssMode-AQ13-53e.js → cssMode-9W1buTsV.js} +1 -1
- package/dist/{freemarker2-BPY6HFv9.js → freemarker2-BWe5eRwB.js} +1 -1
- package/dist/{handlebars-BGTB0fFB.js → handlebars-CTfz5kSz.js} +1 -1
- package/dist/{html-C1JYxDWB.js → html-Dvb80ALs.js} +1 -1
- package/dist/{htmlMode-DBDTH7uv.js → htmlMode-CAsy-Umk.js} +1 -1
- package/dist/{index-P1iGiBeJ.js → index-Bb2FTEAc.js} +17416 -17366
- package/dist/index.js +1 -1
- package/dist/{javascript-Bl_vEjJI.js → javascript-C4IBasJO.js} +1 -1
- package/dist/{jsonMode-CzFtSbfV.js → jsonMode-CQ6vLXYS.js} +1 -1
- package/dist/{liquid-DXsVzf-a.js → liquid-BMWGnzGZ.js} +1 -1
- package/dist/{mdx-CMTQmEX0.js → mdx-B84VbCvk.js} +1 -1
- package/dist/{python-DuxuOYRY.js → python-CkTKI3LV.js} +1 -1
- package/dist/{razor-DiPq0jCg.js → razor-C1nzEZOE.js} +1 -1
- package/dist/{tsMode-wscnJk1O.js → tsMode-VncCnYcl.js} +1 -1
- package/dist/{typescript-FFRtOH62.js → typescript-DCrQdLtl.js} +1 -1
- package/dist/{xml-Cx3e_sa5.js → xml-C4BcGdfI.js} +1 -1
- package/dist/{yaml-Bik3TkiX.js → yaml-BKASVM86.js} +1 -1
- package/package.json +1 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UseRegisterShortcutContextType } from './types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const UseRegisterShortcutContext: import('react').Context<UseRegisterShortcutContextType>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { UseRegisterShortcutProviderType } from './types';
|
|
2
|
-
declare const UseRegisterShortcutProvider: ({ children }: UseRegisterShortcutProviderType) => JSX.Element;
|
|
2
|
+
declare const UseRegisterShortcutProvider: ({ ignoreTags, preventDefault, shortcutTimeout, children, }: UseRegisterShortcutProviderType) => JSX.Element;
|
|
3
3
|
export default UseRegisterShortcutProvider;
|
|
@@ -1,7 +1,57 @@
|
|
|
1
|
+
export declare const KEYBOARD_KEYS_MAP: {
|
|
2
|
+
readonly Control: "Ctrl";
|
|
3
|
+
readonly Shift: "⇧";
|
|
4
|
+
readonly Meta: "⌘" | "Win";
|
|
5
|
+
readonly Alt: "⌥" | "Alt";
|
|
6
|
+
readonly F: "F";
|
|
7
|
+
readonly E: "E";
|
|
8
|
+
readonly R: "R";
|
|
9
|
+
readonly K: "K";
|
|
10
|
+
};
|
|
11
|
+
export type SupportedKeyboardKeysType = keyof typeof KEYBOARD_KEYS_MAP;
|
|
12
|
+
export interface ShortcutType {
|
|
13
|
+
keys: SupportedKeyboardKeysType[];
|
|
14
|
+
callbackStack: Array<() => void>;
|
|
15
|
+
description?: string;
|
|
16
|
+
}
|
|
17
|
+
interface RegisterShortcutType extends Pick<ShortcutType, 'keys' | 'description'> {
|
|
18
|
+
callback: ShortcutType['callbackStack'][number];
|
|
19
|
+
}
|
|
1
20
|
export interface UseRegisterShortcutContextType {
|
|
2
|
-
|
|
3
|
-
|
|
21
|
+
/**
|
|
22
|
+
* This method registers a shortcut with its corresponding callback
|
|
23
|
+
*
|
|
24
|
+
* If keys is undefined or null this method will throw an error
|
|
25
|
+
*/
|
|
26
|
+
registerShortcut: (props: RegisterShortcutType) => void;
|
|
27
|
+
/**
|
|
28
|
+
* This method unregisters the provided shortcut if found
|
|
29
|
+
*
|
|
30
|
+
* If keys is undefined or null this method will throw an error
|
|
31
|
+
*/
|
|
32
|
+
unregisterShortcut: (keys: ShortcutType['keys']) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Globally disable all shortcuts with this function
|
|
35
|
+
*/
|
|
36
|
+
setDisableShortcuts: (shouldDisable: boolean) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Programmatically trigger a shortcut if already registered
|
|
39
|
+
*/
|
|
40
|
+
triggerShortcut: (keys: ShortcutType['keys']) => void;
|
|
4
41
|
}
|
|
5
42
|
export interface UseRegisterShortcutProviderType {
|
|
6
|
-
children: React.
|
|
43
|
+
children: React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Defines how long after holding the keys down do we trigger the callback in milliseconds
|
|
46
|
+
*/
|
|
47
|
+
shortcutTimeout?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Defines which html tags to ignore as source of an event
|
|
50
|
+
*/
|
|
51
|
+
ignoreTags?: string[];
|
|
52
|
+
/**
|
|
53
|
+
* If true, call preventDefault on the event
|
|
54
|
+
*/
|
|
55
|
+
preventDefault?: boolean;
|
|
7
56
|
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ShortcutType } from './types';
|
|
2
|
+
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
|
3
|
+
keys: ("Control" | "Alt" | "F" | "E" | "R" | "K" | "Shift" | "Meta")[];
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
+
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
|
1
2
|
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;
|
|
9
3
|
type BaseTooltipProps = {
|
|
10
4
|
/**
|
|
11
5
|
* If true, show tippy on truncate
|
|
@@ -1,57 +1,4 @@
|
|
|
1
|
-
import { IWithShortcut } from 'react-keybind';
|
|
2
1
|
import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
|
|
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
|
-
};
|
|
2
|
+
export declare const LogResizeButton: ({ shortcutCombo, showOnlyWhenPathIncludesLogs, fullScreenView, setFullScreenView, }: LogResizeButtonType) => JSX.Element;
|
|
56
3
|
export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
|
|
57
4
|
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,56 +1,3 @@
|
|
|
1
|
-
import { IWithShortcut } from 'react-keybind';
|
|
2
1
|
import { LogsRendererType } from './types';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
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;
|
|
2
|
+
declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, fullScreenView }: LogsRendererType) => JSX.Element;
|
|
3
|
+
export default LogsRenderer;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
|
3
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
|
|
3
4
|
import { DeploymentStageType } from '../../constants';
|
|
4
5
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
6
|
export declare enum HistoryComponentType {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
2
|
var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as je } from "./index-
|
|
4
|
+
import { m as je } from "./index-Bb2FTEAc.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as f } from "./index-
|
|
1
|
+
import { m as f } from "./index-Bb2FTEAc.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l } from "./index-
|
|
1
|
+
import { m as l } from "./index-Bb2FTEAc.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-Bb2FTEAc.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Be = Object.defineProperty;
|
|
2
2
|
var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as qe } from "./index-
|
|
4
|
+
import { m as qe } from "./index-Bb2FTEAc.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|