@devtron-labs/devtron-fe-common-lib 0.3.6-beta-3 → 0.3.6-beta-5
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/Security/ScanVulnerabilitiesTable.d.ts +2 -0
- package/dist/Common/Security/types.d.ts +4 -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 +37 -1
- package/dist/Common/index.d.ts +1 -0
- package/dist/Pages/App/AppConfigurations/utils.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/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +1 -4
- package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
- package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/index.d.ts +0 -1
- package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/service.d.ts +1 -1
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +7 -0
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/constants.d.ts +0 -4
- package/dist/Shared/types.d.ts +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-B4JrdN3F.js → cssMode-D4XINBt-.js} +1 -1
- package/dist/{freemarker2-djJv4T6c.js → freemarker2-DGZfTr-2.js} +1 -1
- package/dist/{handlebars-DcN-3O7u.js → handlebars-D9BeHSGE.js} +1 -1
- package/dist/{html-l7hxU9Z5.js → html-DM8yvxyC.js} +1 -1
- package/dist/{htmlMode-DkosUubE.js → htmlMode-9RDciR0a.js} +1 -1
- package/dist/{index-CzpCwzU5.js → index-DACGOIde.js} +30958 -32496
- package/dist/index.js +481 -494
- package/dist/{javascript-BXBdVBaV.js → javascript-DEuD1TEZ.js} +1 -1
- package/dist/{jsonMode-DmBC3ctU.js → jsonMode-b8br1WLp.js} +1 -1
- package/dist/{liquid-B8fSvF6L.js → liquid--ajb-MUc.js} +1 -1
- package/dist/{mdx-VecYXjT_.js → mdx-DQo6jYHt.js} +1 -1
- package/dist/{python-Dp5nIDq8.js → python-BwTda6C8.js} +1 -1
- package/dist/{razor-LXhCh8qE.js → razor-B3o0IfCN.js} +1 -1
- package/dist/{tsMode-CrqSxeoO.js → tsMode-B9z0LOhC.js} +1 -1
- package/dist/{typescript-DtfqSpUl.js → typescript-ZpuVDf-s.js} +1 -1
- package/dist/{xml-Cmoj4ihR.js → xml-MfgkmIir.js} +1 -1
- package/dist/{yaml-exLX0oJH.js → yaml-CfK-U0Co.js} +1 -1
- package/package.json +4 -4
- package/dist/Shared/Components/Security/SecurityModal/SecurityModal.d.ts +0 -14
- package/dist/Shared/Components/Security/SecurityModal/components/IndexedTextDisplay.d.ts +0 -4
- package/dist/Shared/Components/Security/SecurityModal/components/InfoCard.d.ts +0 -4
- package/dist/Shared/Components/Security/SecurityModal/components/OpenDetailViewButton.d.ts +0 -4
- package/dist/Shared/Components/Security/SecurityModal/components/Table.d.ts +0 -4
- package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +0 -3
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +0 -100
- package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +0 -2
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +0 -4
- package/dist/Shared/Components/Security/SecurityModal/config/InfoCard.d.ts +0 -2
- package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +0 -4
- package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +0 -2
- package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +0 -2
- package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +0 -3
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +0 -56
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +0 -6
- package/dist/Shared/Components/Security/SecurityModal/service.d.ts +0 -3
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +0 -262
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +0 -34
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +0 -3
- package/dist/Shared/Components/Security/SecuritySummaryCard/index.d.ts +0 -1
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +0 -11
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +0 -26
- package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +0 -6
- package/dist/Shared/Components/Security/index.d.ts +0 -4
- package/dist/Shared/Components/Security/utils.d.ts +0 -4
|
@@ -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,11 @@ type BaseTooltipProps = {
|
|
|
10
17
|
* @default false
|
|
11
18
|
*/
|
|
12
19
|
alwaysShowTippyOnHover?: never;
|
|
20
|
+
/**
|
|
21
|
+
* If true, use the common styling for shortcuts
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
shortcutKeyCombo?: never;
|
|
13
25
|
} | {
|
|
14
26
|
/**
|
|
15
27
|
* If alwaysShowTippyOnHover is defined this prop doesn't work
|
|
@@ -18,9 +30,33 @@ type BaseTooltipProps = {
|
|
|
18
30
|
showOnTruncate?: never;
|
|
19
31
|
/**
|
|
20
32
|
* If true, wrap with tippy irrespective of other options
|
|
21
|
-
* @default
|
|
33
|
+
* @default true
|
|
22
34
|
*/
|
|
23
35
|
alwaysShowTippyOnHover?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* If true, use the common styling for shortcuts
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
shortcutKeyCombo?: never;
|
|
41
|
+
} | {
|
|
42
|
+
/**
|
|
43
|
+
* If true, show tippy on truncate
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
showOnTruncate?: never;
|
|
47
|
+
/**
|
|
48
|
+
* If showOnTruncate is defined this prop doesn't work
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
alwaysShowTippyOnHover?: never;
|
|
52
|
+
/**
|
|
53
|
+
* If true, use the common styling for shortcuts
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
shortcutKeyCombo?: {
|
|
57
|
+
text: string;
|
|
58
|
+
combo: SupportedKeyboardKeysType[];
|
|
59
|
+
};
|
|
24
60
|
};
|
|
25
61
|
export type TooltipProps = BaseTooltipProps & TippyProps & {
|
|
26
62
|
/**
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEm
|
|
|
28
28
|
export * from './SearchBar';
|
|
29
29
|
export * from './SortableTableHeaderCell';
|
|
30
30
|
export { default as Toggle } from './Toggle/Toggle';
|
|
31
|
+
export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable';
|
|
31
32
|
export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
|
|
32
33
|
export * from './CIPipeline.Types';
|
|
33
34
|
export * from './Policy.Types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentStageType } from '../../../Shared/constants';
|
|
2
|
-
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "
|
|
2
|
+
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "pre-deployment" | "post-deployment" | "deployment" | "-";
|
|
@@ -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,3 +1,3 @@
|
|
|
1
1
|
import { ImageCardAccordionProps } from './types';
|
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled,
|
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, }: ImageCardAccordionProps) => JSX.Element;
|
|
3
3
|
export default ImageCardAccordion;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { CDModalTabType,
|
|
2
|
+
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
|
3
3
|
import { MaterialSecurityInfoType } from '../../types';
|
|
4
|
-
import { ApiResponseResultType, AppDetailsPayload, SidebarPropsType } from '../Security';
|
|
5
4
|
export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
6
5
|
isSecurityModuleInstalled: boolean;
|
|
7
6
|
artifactId: number;
|
|
@@ -10,8 +9,6 @@ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
|
10
9
|
changesCard: ReactNode;
|
|
11
10
|
isScanned: boolean;
|
|
12
11
|
isScanEnabled: boolean;
|
|
13
|
-
SecurityModalSidebar: React.FC<SidebarPropsType>;
|
|
14
|
-
getSecurityScan: (props: Pick<AppDetailsPayload, 'appId' | 'envId' | 'artifactId'>) => Promise<ResponseType<ApiResponseResultType>>;
|
|
15
12
|
}
|
|
16
13
|
export interface SecurityDetailsType {
|
|
17
14
|
vulnerabilities: VulnerabilityType[];
|
package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/Vulnerabilities.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { VulnerabilitiesProps } from './types';
|
|
2
|
-
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount,
|
|
2
|
+
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, }: VulnerabilitiesProps) => JSX.Element;
|
|
3
3
|
export default Vulnerabilities;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LastExecutionResponseType } from '
|
|
1
|
+
import { LastExecutionResponseType } from '../../types';
|
|
2
2
|
export declare function getLastExecutionByArtifactAppEnv(artifactId: string | number, appId: number | string, envId: number | string): Promise<LastExecutionResponseType>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MaterialSecurityInfoType } from '../../types';
|
|
2
|
+
export interface VulnerabilitiesProps extends MaterialSecurityInfoType {
|
|
3
|
+
artifactId: number;
|
|
4
|
+
applicationId: number;
|
|
5
|
+
environmentId: number;
|
|
6
|
+
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
|
|
2
|
+
export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
|
|
3
|
+
export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
|
|
4
|
+
export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
|
|
@@ -5,6 +5,7 @@ export * from './ImageCard';
|
|
|
5
5
|
export * from './ImageCardAccordion';
|
|
6
6
|
export * from './ExcludedImageNode';
|
|
7
7
|
export * from './ScannedByToolModal';
|
|
8
|
+
export * from './Vulnerabilities';
|
|
8
9
|
export * from './FilterChips';
|
|
9
10
|
export * from './ActivityIndicator';
|
|
10
11
|
export * from './GenericSectionErrorState';
|
|
@@ -39,5 +40,4 @@ export * from './TabGroup';
|
|
|
39
40
|
export * from './EditImageFormField';
|
|
40
41
|
export * from './Collapse';
|
|
41
42
|
export * from './FilterButton';
|
|
42
|
-
export * from './Security';
|
|
43
43
|
export * from './Button';
|
|
@@ -14,10 +14,6 @@ export declare const STAGE_TYPE: {
|
|
|
14
14
|
ROLLBACK: string;
|
|
15
15
|
};
|
|
16
16
|
export declare const SCAN_TOOL_ID_TRIVY = 3;
|
|
17
|
-
/**
|
|
18
|
-
* @description This is only used to show mapping for clair, scan tool id for clair can be either 1 or 2
|
|
19
|
-
* */
|
|
20
|
-
export declare const SCAN_TOOL_ID_CLAIR = 2;
|
|
21
17
|
export declare const IMAGE_SCAN_TOOL: {
|
|
22
18
|
Clair: string;
|
|
23
19
|
Trivy: string;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -413,7 +413,6 @@ export interface LastExecutionResultType {
|
|
|
413
413
|
scanned?: boolean;
|
|
414
414
|
scanEnabled?: boolean;
|
|
415
415
|
scanToolId?: number;
|
|
416
|
-
imageScanDeployInfoId?: number;
|
|
417
416
|
}
|
|
418
417
|
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
|
419
418
|
}
|