@devtron-labs/devtron-fe-common-lib 0.0.59-beta-11 → 0.0.59
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/Hooks/index.d.ts +0 -1
- package/dist/Common/Types.d.ts +3 -16
- package/dist/Common/index.d.ts +0 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +150 -599
- package/package.json +1 -1
- package/src/Common/Api.ts +0 -21
- package/src/Common/Constants.ts +1 -17
- package/src/Common/Hooks/index.ts +0 -1
- package/src/Common/SearchBar/SearchBar.component.tsx +11 -23
- package/src/Common/Types.ts +2 -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 -6
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +0 -32
- 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/UseBulkSelection.d.ts +0 -3
- package/dist/Shared/Components/BulkSelection/constants.d.ts +0 -8
- package/dist/Shared/Components/BulkSelection/index.d.ts +0 -4
- package/dist/Shared/Components/BulkSelection/types.d.ts +0 -51
- 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 -3
- 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 -6
- 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 -81
- package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +0 -31
- package/src/Shared/Components/BulkSelection/UseBulkSelection.tsx +0 -99
- package/src/Shared/Components/BulkSelection/constants.tsx +0 -12
- package/src/Shared/Components/BulkSelection/index.ts +0 -4
- package/src/Shared/Components/BulkSelection/types.tsx +0 -61
- 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/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;
|
|
@@ -689,16 +688,4 @@ export interface EdgeNodeType {
|
|
|
689
688
|
export interface EdgeEndNodeType extends EdgeNodeType {
|
|
690
689
|
userApprovalConfig?: UserApprovalConfigType;
|
|
691
690
|
}
|
|
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
691
|
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