@devtron-labs/devtron-fe-common-lib 0.6.0-patch-1-beta-4 → 0.6.0-patch-1-beta-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.
- package/dist/Common/Api.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +24 -0
- package/dist/Shared/API/APIQueuing.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +8 -5
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +2 -1
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +2 -1
- package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +1 -0
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -1
- package/dist/Shared/types.d.ts +2 -1
- package/dist/{cssMode-4dzcdY45.js → cssMode-D44-W0J5.js} +1 -1
- package/dist/{freemarker2-32ay2ho4.js → freemarker2-uRXPX7Xv.js} +1 -1
- package/dist/{handlebars-BF9m5Ct2.js → handlebars-B3UkQJF7.js} +1 -1
- package/dist/{html-C9NEdqfl.js → html-BCGCXH9h.js} +1 -1
- package/dist/{htmlMode-B6dF1opT.js → htmlMode-CEqYheWj.js} +1 -1
- package/dist/{index-DBpRcsET.js → index-BeE-3TSy.js} +3986 -3964
- package/dist/index.d.ts +1 -0
- package/dist/index.js +157 -156
- package/dist/{javascript-DEAoGo8k.js → javascript-KtDpEQP3.js} +1 -1
- package/dist/{jsonMode-4oT9aeeN.js → jsonMode-P336nLCk.js} +1 -1
- package/dist/{liquid-ASc1F_Jf.js → liquid-Cvlusowr.js} +1 -1
- package/dist/{mdx-BO8sCKyk.js → mdx-qZN3dguH.js} +1 -1
- package/dist/{python-Dez8YBan.js → python-D-W_Oe_J.js} +1 -1
- package/dist/{razor-B2hf2XW2.js → razor-y-pczXQ5.js} +1 -1
- package/dist/{tsMode-Dg0kmoE9.js → tsMode-CwLRDMUx.js} +1 -1
- package/dist/{typescript-BHAeOtKA.js → typescript-BymSbsYb.js} +1 -1
- package/dist/{xml-dsj-u937.js → xml-Dmq5iYPC.js} +1 -1
- package/dist/{yaml-DBdAJC-A.js → yaml-DHcp0r0W.js} +1 -1
- package/package.json +1 -1
package/dist/Common/Api.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abor
|
|
|
12
12
|
/**
|
|
13
13
|
* Returns true if the error is due to a aborted request
|
|
14
14
|
*/
|
|
15
|
-
export declare const getIsRequestAborted: (error: any) =>
|
|
15
|
+
export declare const getIsRequestAborted: (error: any) => boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NodeType, Nodes } from '../../Shared/types';
|
|
2
|
+
import { RefObject } from 'react';
|
|
2
3
|
export interface GVKType {
|
|
3
4
|
Group: string;
|
|
4
5
|
Version: string;
|
|
@@ -18,3 +19,26 @@ export interface K8SObjectBaseType {
|
|
|
18
19
|
name: string;
|
|
19
20
|
isExpanded: boolean;
|
|
20
21
|
}
|
|
22
|
+
export interface BulkSelectionActionWidgetProps {
|
|
23
|
+
count: number;
|
|
24
|
+
handleOpenBulkDeleteModal: () => void;
|
|
25
|
+
handleClearBulkSelection: () => void;
|
|
26
|
+
handleOpenRestartWorkloadModal: () => void;
|
|
27
|
+
parentRef: RefObject<HTMLDivElement>;
|
|
28
|
+
showBulkRestartOption: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface BulkOperation {
|
|
31
|
+
name: string;
|
|
32
|
+
operation: (signal: AbortSignal, data?: unknown) => Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export type BulkOperationModalProps = {
|
|
35
|
+
operationType: 'restart' | 'delete';
|
|
36
|
+
clusterName: string;
|
|
37
|
+
operations: NonNullable<BulkOperation[]>;
|
|
38
|
+
handleModalClose: () => void;
|
|
39
|
+
resourceKind: string;
|
|
40
|
+
handleReloadDataAfterBulkOperation?: () => void;
|
|
41
|
+
hideResultsDrawer?: boolean;
|
|
42
|
+
shouldAllowForceOperation?: true;
|
|
43
|
+
};
|
|
44
|
+
export type BulkOperationModalState = BulkOperationModalProps['operationType'] | 'closed';
|
|
@@ -6,5 +6,5 @@ import { ApiQueuingWithBatchResponseItem } from '../types';
|
|
|
6
6
|
* @param shouldRejectOnError If set to true, the promise will reject if any of the function calls rejects, i.e, acts like Promise.all else Promise.allSettled . Defaults to false.
|
|
7
7
|
* @returns A promise that resolves to a array of objects containing the status and value of the batch execution.
|
|
8
8
|
*/
|
|
9
|
-
declare const ApiQueuingWithBatch: <T>(functionCalls: any,
|
|
9
|
+
declare const ApiQueuingWithBatch: <T>(functionCalls: any, shouldRejectOnError?: boolean, batchSize?: number) => Promise<ApiQueuingWithBatchResponseItem<T>[]>;
|
|
10
10
|
export default ApiQueuingWithBatch;
|
|
@@ -24,6 +24,7 @@ export interface UseBulkSelectionReturnType<T> extends GetBulkSelectionCheckboxV
|
|
|
24
24
|
handleBulkSelection: ({ action, data }: HandleBulkSelectionType<T>) => void;
|
|
25
25
|
isBulkSelectionApplied: boolean;
|
|
26
26
|
getSelectedIdentifiersCount: () => number;
|
|
27
|
+
setIdentifiers: React.Dispatch<React.SetStateAction<T>>;
|
|
27
28
|
}
|
|
28
29
|
export interface BulkSelectionProps {
|
|
29
30
|
showPagination: boolean;
|
|
@@ -44,14 +45,16 @@ export declare enum SelectAllDialogStatus {
|
|
|
44
45
|
}
|
|
45
46
|
export type BulkSelectionIdentifiersType<T> = Record<string | number, T>;
|
|
46
47
|
export interface UseBulkSelectionProps<T> {
|
|
47
|
-
/**
|
|
48
|
-
* Response from API, assuming structure to be array of objects with key and values
|
|
49
|
-
* This will the given ids on current page
|
|
50
|
-
*/
|
|
51
|
-
identifiers: T;
|
|
52
48
|
/**
|
|
53
49
|
* Act as buffer between select all across pages and select all on page state
|
|
54
50
|
*/
|
|
55
51
|
getSelectAllDialogStatus: () => SelectAllDialogStatus;
|
|
52
|
+
/**
|
|
53
|
+
* Response from API, assuming structure to be array of objects with key and values
|
|
54
|
+
* This will the given ids on current page.
|
|
55
|
+
*
|
|
56
|
+
* NOTE!: Please wrap this value with a useMemo since it goes into useEffect dependency
|
|
57
|
+
*/
|
|
58
|
+
identifiers?: T;
|
|
56
59
|
children?: React.ReactNode;
|
|
57
60
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
|
3
|
-
|
|
3
|
+
import { NavLinkProps } from 'react-router-dom';
|
|
4
|
+
export interface CollapsibleListItem extends Pick<NavLinkProps, 'isActive'> {
|
|
4
5
|
/**
|
|
5
6
|
* The title of the list item.
|
|
6
7
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
|
|
1
|
+
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, StatusType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
|
|
2
|
+
export declare const getProgressingStateForStatus: (status: StatusType["status"]) => JSX.Element;
|
|
2
3
|
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
|
3
4
|
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
4
5
|
export declare const getImageScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as SecurityModal } from './SecurityModal';
|
|
2
2
|
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, parseExecutionDetailResponse, } from './utils';
|
|
3
3
|
export type { AppDetailsPayload, ExecutionDetailsPayload, ApiResponseResultType, SidebarPropsType, SidebarDataChildType, SidebarDataType, GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, } from './types';
|
|
4
|
-
export { SIDEBAR_DATA } from './config';
|
|
4
|
+
export { SIDEBAR_DATA, getProgressingStateForStatus } from './config';
|
|
5
5
|
export { CATEGORY_LABELS } from './constants';
|
|
6
6
|
export { getExecutionDetails } from './service';
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -86,7 +86,8 @@ export declare enum Nodes {
|
|
|
86
86
|
Event = "Event",
|
|
87
87
|
Namespace = "Namespace",
|
|
88
88
|
Overview = "Overview",
|
|
89
|
-
MonitoringDashboard = "MonitoringDashboard"
|
|
89
|
+
MonitoringDashboard = "MonitoringDashboard",
|
|
90
|
+
UpgradeCluster = "UpgradeCluster"
|
|
90
91
|
}
|
|
91
92
|
export type NodeType = keyof typeof Nodes;
|
|
92
93
|
export interface Node {
|
|
@@ -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-BeE-3TSy.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-BeE-3TSy.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-BeE-3TSy.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-BeE-3TSy.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-BeE-3TSy.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|