@devtron-labs/devtron-fe-common-lib 0.0.60-beta-2 → 0.0.60-beta-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/Api.d.ts +0 -9
- package/dist/Common/Constants.d.ts +0 -14
- package/dist/Common/Helper.d.ts +4 -1
- package/dist/Common/Hooks/index.d.ts +0 -1
- package/dist/Common/Types.d.ts +4 -16
- package/dist/Common/index.d.ts +0 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +182 -666
- package/package.json +1 -1
- package/src/Common/Api.ts +0 -21
- package/src/Common/Constants.ts +1 -17
- package/src/Common/Helper.tsx +30 -16
- package/src/Common/Hooks/index.ts +0 -1
- package/src/Common/SearchBar/SearchBar.component.tsx +11 -23
- package/src/Common/Types.ts +3 -16
- package/src/Common/index.ts +0 -1
- package/src/index.ts +1 -3
- package/dist/Common/Hooks/useUrlFilters/constants.d.ts +0 -8
- package/dist/Common/Hooks/useUrlFilters/index.d.ts +0 -2
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +0 -19
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +0 -20
- package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +0 -18
- package/dist/Common/SortableTableHeaderCell/index.d.ts +0 -2
- package/dist/Common/SortableTableHeaderCell/types.d.ts +0 -25
- package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +0 -15
- package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/constants.d.ts +0 -9
- package/dist/Shared/Components/BulkSelection/index.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/types.d.ts +0 -54
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/index.d.ts +0 -1
- package/src/Assets/Icon/ic-arrow-up-down.svg +0 -3
- package/src/Assets/Icon/ic-check-all.svg +0 -5
- package/src/Assets/Icon/ic-check-square.svg +0 -4
- package/src/Assets/Icon/ic-close.svg +0 -9
- package/src/Assets/Icon/ic-sort-arrow-down.svg +0 -3
- package/src/Common/Hooks/useUrlFilters/constants.ts +0 -9
- package/src/Common/Hooks/useUrlFilters/index.ts +0 -2
- package/src/Common/Hooks/useUrlFilters/types.ts +0 -21
- package/src/Common/Hooks/useUrlFilters/useUrlFilters.ts +0 -121
- package/src/Common/SortableTableHeaderCell/SortableTableHeaderCell.tsx +0 -44
- package/src/Common/SortableTableHeaderCell/index.ts +0 -2
- package/src/Common/SortableTableHeaderCell/types.ts +0 -26
- package/src/Pages/GlobalConfigurations/Authorization/constants.ts +0 -16
- package/src/Pages/GlobalConfigurations/Authorization/index.ts +0 -1
- package/src/Pages/GlobalConfigurations/index.ts +0 -1
- package/src/Pages/index.ts +0 -1
- package/src/Shared/Components/BulkSelection/BulkSelection.tsx +0 -77
- package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +0 -31
- package/src/Shared/Components/BulkSelection/BulkSelectionProvider.tsx +0 -160
- package/src/Shared/Components/BulkSelection/constants.tsx +0 -13
- package/src/Shared/Components/BulkSelection/index.ts +0 -4
- package/src/Shared/Components/BulkSelection/types.tsx +0 -65
- package/src/Shared/Components/index.ts +0 -1
- package/src/Shared/index.ts +0 -1
package/dist/Common/Api.d.ts
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { ResponseType, APIOptions } from './Types';
|
|
2
|
-
import { MutableRefObject } from 'react';
|
|
3
2
|
export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
|
|
4
3
|
export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
5
4
|
export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
|
|
6
5
|
export declare const trash: (url: string, data?: object, options?: APIOptions) => Promise<ResponseType>;
|
|
7
|
-
/**
|
|
8
|
-
* Aborts the previous request before triggering next request
|
|
9
|
-
*/
|
|
10
|
-
export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abortControllerRef: MutableRefObject<AbortController>) => Promise<T>;
|
|
11
|
-
/**
|
|
12
|
-
* Returns true if the error is due to a aborted request
|
|
13
|
-
*/
|
|
14
|
-
export declare const getIsRequestAborted: (error: any) => boolean;
|
|
@@ -73,17 +73,3 @@ export declare const SELECTED_APPROVAL_TAB_STATE: {
|
|
|
73
73
|
APPROVAL: string;
|
|
74
74
|
PENDING: string;
|
|
75
75
|
};
|
|
76
|
-
export declare enum SortingOrder {
|
|
77
|
-
/**
|
|
78
|
-
* Ascending order
|
|
79
|
-
*/
|
|
80
|
-
ASC = "ASC",
|
|
81
|
-
/**
|
|
82
|
-
* Descending order
|
|
83
|
-
*/
|
|
84
|
-
DESC = "DESC"
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Base page size for pagination
|
|
88
|
-
*/
|
|
89
|
-
export declare const DEFAULT_BASE_PAGE_SIZE = 20;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -55,7 +55,10 @@ export declare const customStyles: {
|
|
|
55
55
|
dropdownIndicator: (base: any, state: any) => any;
|
|
56
56
|
};
|
|
57
57
|
export declare const getFilteredChartVersions: (charts: any, selectedChartType: any) => any;
|
|
58
|
-
export declare function getUnlockedJSON(json: any, jsonPathArray: any):
|
|
58
|
+
export declare function getUnlockedJSON(json: any, jsonPathArray: any, removeParentKeysAndEmptyArrays?: boolean): {
|
|
59
|
+
newDocument: any;
|
|
60
|
+
removedPatches: any[];
|
|
61
|
+
};
|
|
59
62
|
export declare function getLockedJSON(json: any, jsonPathArray: string[]): any;
|
|
60
63
|
/**
|
|
61
64
|
* Returns a debounced variant of the function
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
|
-
import { DockerConfigOverrideType,
|
|
4
|
+
import { DockerConfigOverrideType, TaskErrorObj } from '.';
|
|
5
5
|
/**
|
|
6
6
|
* Generic response type object with support for overriding the result type
|
|
7
7
|
*
|
|
@@ -44,13 +44,12 @@ export interface Teams {
|
|
|
44
44
|
}
|
|
45
45
|
export declare enum CHECKBOX_VALUE {
|
|
46
46
|
CHECKED = "CHECKED",
|
|
47
|
-
INTERMEDIATE = "INTERMEDIATE"
|
|
48
|
-
BULK_CHECKED = "BULK_CHECKED"
|
|
47
|
+
INTERMEDIATE = "INTERMEDIATE"
|
|
49
48
|
}
|
|
50
49
|
export interface CheckboxProps {
|
|
51
50
|
onChange: (event: any) => void;
|
|
52
51
|
isChecked: boolean;
|
|
53
|
-
value: 'CHECKED' | 'INTERMEDIATE'
|
|
52
|
+
value: 'CHECKED' | 'INTERMEDIATE';
|
|
54
53
|
disabled?: boolean;
|
|
55
54
|
tabIndex?: number;
|
|
56
55
|
rootClassName?: string;
|
|
@@ -341,6 +340,7 @@ export interface CommonNodeAttr {
|
|
|
341
340
|
};
|
|
342
341
|
appReleaseTagNames?: string[];
|
|
343
342
|
tagsEditable?: boolean;
|
|
343
|
+
isGitOpsRepoNotConfigured?: boolean;
|
|
344
344
|
deploymentAppCreated?: boolean;
|
|
345
345
|
isLast?: boolean;
|
|
346
346
|
downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
|
|
@@ -689,16 +689,4 @@ export interface EdgeNodeType {
|
|
|
689
689
|
export interface EdgeEndNodeType extends EdgeNodeType {
|
|
690
690
|
userApprovalConfig?: UserApprovalConfigType;
|
|
691
691
|
}
|
|
692
|
-
/**
|
|
693
|
-
* Search params for sorting configuration
|
|
694
|
-
*
|
|
695
|
-
* Note: Either both sortOrder and sortBy are required or none
|
|
696
|
-
*/
|
|
697
|
-
export type SortingParams<T = string> = {
|
|
698
|
-
sortOrder: SortingOrder;
|
|
699
|
-
sortBy: T;
|
|
700
|
-
} | {
|
|
701
|
-
sortOrder?: never;
|
|
702
|
-
sortBy?: never;
|
|
703
|
-
};
|
|
704
692
|
export {};
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export * from './Checkbox';
|
|
|
27
27
|
export { default as EmptyState } from './EmptyState/EmptyState';
|
|
28
28
|
export { default as GenericEmptyState } from './EmptyState/GenericEmptyState';
|
|
29
29
|
export * from './SearchBar';
|
|
30
|
-
export * from './SortableTableHeaderCell';
|
|
31
30
|
export { default as Toggle } from './Toggle/Toggle';
|
|
32
31
|
export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable';
|
|
33
32
|
export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
|
package/dist/index.d.ts
CHANGED