@devtron-labs/devtron-fe-common-lib 0.6.0-patch-1-beta-16 → 0.6.0-patch-2
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/Common/Constants.d.ts +0 -6
- package/dist/Common/DraggableWrapper/types.d.ts +1 -2
- package/dist/Common/Helper.d.ts +0 -5
- package/dist/Common/RJSF/Form.d.ts +1 -2
- package/dist/Common/Types.d.ts +0 -9
- package/dist/Pages/ResourceBrowser/Helper.d.ts +0 -11
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -90
- package/dist/Pages/ResourceBrowser/index.d.ts +0 -3
- package/dist/Shared/API/APIQueuing.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +5 -12
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +1 -2
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -2
- package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +0 -1
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +1 -30
- package/dist/Shared/validations.d.ts +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-M1Y9Kveo.js → cssMode-CYLfknaW.js} +1 -1
- package/dist/{freemarker2-DFHdIRy9.js → freemarker2-D_VwFD2z.js} +1 -1
- package/dist/{handlebars-D3nRxdU4.js → handlebars-ojYdaiuV.js} +1 -1
- package/dist/{html-BLyZhTBG.js → html-CHEvUdcc.js} +1 -1
- package/dist/{htmlMode-DAfmKWRj.js → htmlMode-DCW0FDGh.js} +1 -1
- package/dist/{index-C480g8oV.js → index-CkflNbRs.js} +17604 -17715
- package/dist/index.d.ts +0 -2
- package/dist/index.js +584 -596
- package/dist/{javascript-BdnZ6IyG.js → javascript-CPICstbH.js} +1 -1
- package/dist/{jsonMode-C8WqxQsN.js → jsonMode-CGDSLZ1h.js} +1 -1
- package/dist/{liquid-cjrN7uoQ.js → liquid-CoVYju91.js} +1 -1
- package/dist/{mdx-DmM1s3iv.js → mdx-De8E6UZw.js} +1 -1
- package/dist/{python-ltuT5SCI.js → python-DzOP-ZIE.js} +1 -1
- package/dist/{razor-DDrHqsOF.js → razor-C4lW37Of.js} +1 -1
- package/dist/{tsMode-vQlSwK4Y.js → tsMode-CkspG5rz.js} +1 -1
- package/dist/{typescript-uoDdupI_.js → typescript-C2js-qPc.js} +1 -1
- package/dist/{xml-XgRfdLM5.js → xml-ivHwsmHU.js} +1 -1
- package/dist/{yaml-dAeR2S7e.js → yaml-Crd9TyAX.js} +1 -1
- package/package.json +1 -2
- package/dist/Pages/ResourceBrowser/constants.d.ts +0 -4
- package/dist/Pages/ResourceBrowser/service.d.ts +0 -4
- package/dist/Pages/ResourceBrowser/types.d.ts +0 -10
- package/dist/Shared/Components/NumbersCount/NumbersCount.component.d.ts +0 -3
- package/dist/Shared/Components/NumbersCount/index.d.ts +0 -1
- package/dist/Shared/Components/NumbersCount/types.d.ts +0 -13
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) => any;
|
|
@@ -45,8 +45,6 @@ export declare const URLS: {
|
|
|
45
45
|
GLOBAL_CONFIG_SCOPED_VARIABLES: string;
|
|
46
46
|
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
|
|
47
47
|
NETWORK_STATUS_INTERFACE: string;
|
|
48
|
-
RESOURCE_BROWSER: string;
|
|
49
|
-
COMPARE_CLUSTERS: string;
|
|
50
48
|
};
|
|
51
49
|
export declare const ROUTES: {
|
|
52
50
|
APP: string;
|
|
@@ -55,8 +53,6 @@ export declare const ROUTES: {
|
|
|
55
53
|
PROJECT_LIST_MIN: string;
|
|
56
54
|
USER_CHECK_ROLE: string;
|
|
57
55
|
IMAGE_TAGGING: string;
|
|
58
|
-
CREATE_RESOURCE: string;
|
|
59
|
-
K8S_RESOURCE_CREATE: string;
|
|
60
56
|
CI_CONFIG_GET: string;
|
|
61
57
|
CD_MATERIAL_GET: string;
|
|
62
58
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
|
@@ -95,8 +91,6 @@ export declare const ROUTES: {
|
|
|
95
91
|
DEPLOYMENT_CHARTS_LIST: string;
|
|
96
92
|
USER_LIST_MIN: string;
|
|
97
93
|
CONFIG_DATA: string;
|
|
98
|
-
K8S_RESOURCE: string;
|
|
99
|
-
K8S_RESOURCE_LIST: string;
|
|
100
94
|
};
|
|
101
95
|
export declare enum KEY_VALUE {
|
|
102
96
|
KEY = "key",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
2
|
export declare enum DraggablePositionVariant {
|
|
3
3
|
PARENT_BOTTOM_CENTER = "PARENT_BOTTOM_CENTER",
|
|
4
|
-
SCREEN_BOTTOM_CENTER = "SCREEN_BOTTOM_CENTER"
|
|
5
|
-
SCREEN_BOTTOM_RIGHT = "SCREEN_BOTTOM_RIGHT"
|
|
4
|
+
SCREEN_BOTTOM_CENTER = "SCREEN_BOTTOM_CENTER"
|
|
6
5
|
}
|
|
7
6
|
export interface DraggableWrapperProps {
|
|
8
7
|
children: ReactNode;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -121,9 +121,4 @@ export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
|
|
|
121
121
|
export declare function asyncWrap(promise: any): any[];
|
|
122
122
|
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
123
123
|
export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
|
|
124
|
-
export declare const getSanitizedIframe: (iframeString: string) => string;
|
|
125
|
-
/**
|
|
126
|
-
* This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
|
|
127
|
-
*/
|
|
128
|
-
export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
|
|
129
124
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { default as RJSF } from '@rjsf/core';
|
|
2
1
|
import { FormProps } from './types';
|
|
3
|
-
export declare const RJSFForm:
|
|
2
|
+
export declare const RJSFForm: (props: FormProps) => JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -859,13 +859,4 @@ export interface EnvironmentHelmResult {
|
|
|
859
859
|
allowedDeploymentTypes?: DeploymentAppTypes[];
|
|
860
860
|
}
|
|
861
861
|
export type EnvironmentListHelmResponse = ResponseType<EnvironmentListHelmResult[]>;
|
|
862
|
-
export interface WidgetEventDetails {
|
|
863
|
-
message: string;
|
|
864
|
-
namespace: string;
|
|
865
|
-
object: string;
|
|
866
|
-
source: string;
|
|
867
|
-
count: number;
|
|
868
|
-
age: string;
|
|
869
|
-
lastSeen: string;
|
|
870
|
-
}
|
|
871
862
|
export {};
|
|
@@ -1,13 +1,2 @@
|
|
|
1
1
|
import { AggregationKeys, NodeType } from '../../Shared';
|
|
2
|
-
import { ApiResourceGroupType, CreateResourceRequestBodyParamsType, CreateResourceRequestBodyType } from './ResourceBrowser.Types';
|
|
3
2
|
export declare function getAggregator(nodeType: NodeType, defaultAsOtherResources?: boolean): AggregationKeys;
|
|
4
|
-
export declare const getK8sResourceListPayload: (clusterId: string, namespace: string, selectedResource: ApiResourceGroupType, filters: object) => {
|
|
5
|
-
clusterId: number;
|
|
6
|
-
k8sRequest: {
|
|
7
|
-
resourceIdentifier: {
|
|
8
|
-
namespace: string;
|
|
9
|
-
groupVersionKind: import('./ResourceBrowser.Types').GVKType;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const createResourceRequestBody: ({ clusterId, group, version, kind, name, namespace, updatedManifest, }: CreateResourceRequestBodyParamsType) => CreateResourceRequestBodyType;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NodeType, Nodes } from '../../Shared/types';
|
|
2
|
-
import { RefObject } from 'react';
|
|
3
2
|
export interface GVKType {
|
|
4
3
|
Group: string;
|
|
5
4
|
Version: string;
|
|
@@ -19,92 +18,3 @@ export interface K8SObjectBaseType {
|
|
|
19
18
|
name: string;
|
|
20
19
|
isExpanded: boolean;
|
|
21
20
|
}
|
|
22
|
-
interface K8sRequestResourceIdentifierType {
|
|
23
|
-
groupVersionKind: GVKType;
|
|
24
|
-
namespace?: string;
|
|
25
|
-
name?: string;
|
|
26
|
-
}
|
|
27
|
-
interface ResourceListPayloadK8sRequestType {
|
|
28
|
-
resourceIdentifier: K8sRequestResourceIdentifierType;
|
|
29
|
-
patch?: string;
|
|
30
|
-
forceDelete?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface K8sResourceListPayloadType {
|
|
33
|
-
clusterId: number;
|
|
34
|
-
filter?: string;
|
|
35
|
-
k8sRequest: ResourceListPayloadK8sRequestType;
|
|
36
|
-
}
|
|
37
|
-
export type K8sResourceDetailDataType = {
|
|
38
|
-
[key: string]: string | number | object;
|
|
39
|
-
};
|
|
40
|
-
export interface K8sResourceDetailType {
|
|
41
|
-
headers: string[];
|
|
42
|
-
data: K8sResourceDetailDataType[];
|
|
43
|
-
}
|
|
44
|
-
export interface BulkSelectionActionWidgetProps {
|
|
45
|
-
count: number;
|
|
46
|
-
handleOpenBulkDeleteModal: () => void;
|
|
47
|
-
handleClearBulkSelection: () => void;
|
|
48
|
-
handleOpenRestartWorkloadModal: () => void;
|
|
49
|
-
parentRef: RefObject<HTMLDivElement>;
|
|
50
|
-
showBulkRestartOption: boolean;
|
|
51
|
-
}
|
|
52
|
-
interface BulkOperationAdditionalKeysType {
|
|
53
|
-
label: string;
|
|
54
|
-
value: string;
|
|
55
|
-
isSortable: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* width to be given in gridTemplateColumns
|
|
58
|
-
*/
|
|
59
|
-
width: string;
|
|
60
|
-
}
|
|
61
|
-
export interface BulkOperation {
|
|
62
|
-
name: string;
|
|
63
|
-
/**
|
|
64
|
-
* Would these keys beside the name
|
|
65
|
-
*/
|
|
66
|
-
additionalKeys?: BulkOperationAdditionalKeysType[];
|
|
67
|
-
operation: (signal: AbortSignal, data?: unknown) => Promise<void>;
|
|
68
|
-
}
|
|
69
|
-
export type BulkOperationModalProps = {
|
|
70
|
-
operationType: 'restart' | 'delete' | 'creation';
|
|
71
|
-
clusterName: string;
|
|
72
|
-
operations: NonNullable<BulkOperation[]>;
|
|
73
|
-
handleModalClose: () => void;
|
|
74
|
-
resourceKind: string;
|
|
75
|
-
handleReloadDataAfterBulkOperation?: () => void;
|
|
76
|
-
hideResultsDrawer?: boolean;
|
|
77
|
-
shouldAllowForceOperation?: true;
|
|
78
|
-
};
|
|
79
|
-
export type BulkOperationModalState = BulkOperationModalProps['operationType'] | 'closed';
|
|
80
|
-
export interface CreateResourceRequestBodyType {
|
|
81
|
-
appId: string;
|
|
82
|
-
clusterId: number;
|
|
83
|
-
k8sRequest: {
|
|
84
|
-
resourceIdentifier: Required<K8sRequestResourceIdentifierType>;
|
|
85
|
-
patch?: string;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export interface ResourceManifestDTO {
|
|
89
|
-
manifestResponse: {
|
|
90
|
-
manifest: Record<string, unknown>;
|
|
91
|
-
};
|
|
92
|
-
secretViewAccess: boolean;
|
|
93
|
-
}
|
|
94
|
-
export interface CreateResourceRequestBodyParamsType extends Pick<CreateResourceRequestBodyType, 'clusterId'>, Required<Pick<K8sRequestResourceIdentifierType, 'name' | 'namespace'>> {
|
|
95
|
-
updatedManifest?: string;
|
|
96
|
-
group: GVKType['Group'];
|
|
97
|
-
version: GVKType['Version'];
|
|
98
|
-
kind: GVKType['Kind'];
|
|
99
|
-
}
|
|
100
|
-
export interface CreateResourcePayload {
|
|
101
|
-
clusterId: number;
|
|
102
|
-
manifest: string;
|
|
103
|
-
}
|
|
104
|
-
export interface CreateResourceDTO {
|
|
105
|
-
kind: string;
|
|
106
|
-
name: string;
|
|
107
|
-
isUpdate: boolean;
|
|
108
|
-
error: string;
|
|
109
|
-
}
|
|
110
|
-
export {};
|
|
@@ -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, shouldRejectOnError?: boolean, batchSize?: number) => Promise<ApiQueuingWithBatchResponseItem<T>[]>;
|
|
9
|
+
declare const ApiQueuingWithBatch: <T>(functionCalls: any, httpProtocol: string, shouldRejectOnError?: boolean, batchSize?: number) => Promise<ApiQueuingWithBatchResponseItem<T>[]>;
|
|
10
10
|
export default ApiQueuingWithBatch;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BulkSelectionProps } from './types';
|
|
2
|
-
declare const BulkSelection: <T>({ showPagination, disabled
|
|
2
|
+
declare const BulkSelection: <T>({ showPagination, disabled }: BulkSelectionProps) => JSX.Element;
|
|
3
3
|
export default BulkSelection;
|
|
@@ -24,14 +24,9 @@ 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>>;
|
|
28
27
|
}
|
|
29
28
|
export interface BulkSelectionProps {
|
|
30
29
|
showPagination: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @default true
|
|
33
|
-
*/
|
|
34
|
-
showChevronDownIcon?: boolean;
|
|
35
30
|
disabled?: boolean;
|
|
36
31
|
}
|
|
37
32
|
export interface BulkSelectionDropdownItemsType {
|
|
@@ -50,15 +45,13 @@ export declare enum SelectAllDialogStatus {
|
|
|
50
45
|
export type BulkSelectionIdentifiersType<T> = Record<string | number, T>;
|
|
51
46
|
export interface UseBulkSelectionProps<T> {
|
|
52
47
|
/**
|
|
53
|
-
*
|
|
48
|
+
* Response from API, assuming structure to be array of objects with key and values
|
|
49
|
+
* This will the given ids on current page
|
|
54
50
|
*/
|
|
55
|
-
|
|
51
|
+
identifiers: T;
|
|
56
52
|
/**
|
|
57
|
-
*
|
|
58
|
-
* This will the given ids on current page.
|
|
59
|
-
*
|
|
60
|
-
* NOTE!: Please wrap this value with a useMemo since it goes into useEffect dependency
|
|
53
|
+
* Act as buffer between select all across pages and select all on page state
|
|
61
54
|
*/
|
|
62
|
-
|
|
55
|
+
getSelectAllDialogStatus: () => SelectAllDialogStatus;
|
|
63
56
|
children?: React.ReactNode;
|
|
64
57
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
|
3
|
-
|
|
4
|
-
export interface CollapsibleListItem extends Pick<NavLinkProps, 'isActive'> {
|
|
3
|
+
export interface CollapsibleListItem {
|
|
5
4
|
/**
|
|
6
5
|
* The title of the list item.
|
|
7
6
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType,
|
|
2
|
-
export declare const getProgressingStateForStatus: (status: StatusType["status"]) => JSX.Element;
|
|
1
|
+
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
|
|
3
2
|
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
|
4
3
|
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
5
4
|
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
|
|
4
|
+
export { SIDEBAR_DATA } from './config';
|
|
5
5
|
export { CATEGORY_LABELS } from './constants';
|
|
6
6
|
export { getExecutionDetails } from './service';
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Dayjs } from 'dayjs';
|
|
2
1
|
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
|
|
3
2
|
import { KeyValueListType } from './Components';
|
|
4
3
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
@@ -85,9 +84,7 @@ export declare enum Nodes {
|
|
|
85
84
|
PodDisruptionBudget = "PodDisruptionBudget",
|
|
86
85
|
Event = "Event",
|
|
87
86
|
Namespace = "Namespace",
|
|
88
|
-
Overview = "Overview"
|
|
89
|
-
MonitoringDashboard = "MonitoringDashboard",
|
|
90
|
-
UpgradeCluster = "UpgradeCluster"
|
|
87
|
+
Overview = "Overview"
|
|
91
88
|
}
|
|
92
89
|
export type NodeType = keyof typeof Nodes;
|
|
93
90
|
export interface Node {
|
|
@@ -582,7 +579,6 @@ export declare enum ConfigurationType {
|
|
|
582
579
|
export interface BaseURLParams {
|
|
583
580
|
appId: string;
|
|
584
581
|
envId: string;
|
|
585
|
-
clusterId: string;
|
|
586
582
|
}
|
|
587
583
|
export interface ConfigKeysWithLockType {
|
|
588
584
|
config: string[];
|
|
@@ -629,29 +625,4 @@ export interface CustomRoleAndMeta {
|
|
|
629
625
|
possibleRolesMetaForCluster: MetaPossibleRoles;
|
|
630
626
|
possibleRolesMetaForJob: MetaPossibleRoles;
|
|
631
627
|
}
|
|
632
|
-
interface CommonTabArgsType {
|
|
633
|
-
name: string;
|
|
634
|
-
kind?: string;
|
|
635
|
-
url: string;
|
|
636
|
-
isSelected: boolean;
|
|
637
|
-
title?: string;
|
|
638
|
-
isDeleted?: boolean;
|
|
639
|
-
position: number;
|
|
640
|
-
iconPath?: string;
|
|
641
|
-
dynamicTitle?: string;
|
|
642
|
-
showNameOnSelect?: boolean;
|
|
643
|
-
/**
|
|
644
|
-
* @default false
|
|
645
|
-
*/
|
|
646
|
-
hideName?: boolean;
|
|
647
|
-
isAlive?: boolean;
|
|
648
|
-
lastSyncMoment?: Dayjs;
|
|
649
|
-
componentKey?: string;
|
|
650
|
-
}
|
|
651
|
-
export interface InitTabType extends CommonTabArgsType {
|
|
652
|
-
idPrefix: string;
|
|
653
|
-
}
|
|
654
|
-
export interface DynamicTabType extends CommonTabArgsType {
|
|
655
|
-
id: string;
|
|
656
|
-
}
|
|
657
628
|
export {};
|
|
@@ -42,4 +42,3 @@ export declare const validateSemanticVersioning: (version: string) => Validation
|
|
|
42
42
|
*/
|
|
43
43
|
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|
|
44
44
|
export declare const validateJSON: (json: string) => ValidationResponseType;
|
|
45
|
-
export declare const validateIframe: (input: string) => ValidationResponseType;
|