@devtron-labs/devtron-fe-common-lib 1.19.0-beta-5 → 1.19.0-beta-7
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/{@code-editor-DSrvLhwT.js → @code-editor-B2kqbycD.js} +8986 -8919
- package/dist/{@common-rjsf-DD-LBVq2.js → @common-rjsf-DjDJXSd_.js} +1 -1
- package/dist/Common/CIPipeline.Types.d.ts +1 -0
- package/dist/Common/Common.service.d.ts +1 -1
- package/dist/Common/Constants.d.ts +3 -0
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/Helper.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/InteractiveCellText/InteractiveCellText.d.ts +27 -0
- package/dist/Common/InteractiveCellText/index.d.ts +2 -0
- package/dist/Common/InteractiveCellText/types.d.ts +10 -0
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/RJSF/utils.d.ts +1 -1
- package/dist/Common/Types.d.ts +13 -2
- package/dist/Common/index.d.ts +1 -0
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +8 -8
- package/dist/Shared/Components/Button/Button.component.d.ts +68 -68
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -0
- package/dist/Shared/Components/CodeEditor/utils.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/types.d.ts +1 -1
- package/dist/Shared/Components/GitProviderIcon/utils.d.ts +1 -0
- package/dist/Shared/Components/Header/utils.d.ts +2 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +14 -0
- package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -0
- package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
- package/dist/Shared/Components/License/types.d.ts +2 -4
- package/dist/Shared/Components/License/utils.d.ts +2 -2
- package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
- package/dist/Shared/Components/MaterialHistory/types.d.ts +1 -2
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/RegistryIcon/RegistryIcon.d.ts +1 -1
- package/dist/Shared/Components/RegistryIcon/types.d.ts +18 -3
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +8 -4
- package/dist/Shared/Components/Table/utils.d.ts +1 -1
- package/dist/Shared/Services/ToastManager/ToastContent.d.ts +2 -1
- package/dist/Shared/Services/ToastManager/constants.d.ts +2 -2
- package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +1 -1
- package/dist/Shared/Services/ToastManager/types.d.ts +23 -3
- package/dist/Shared/Services/app.service.d.ts +3 -3
- package/dist/Shared/types.d.ts +1 -8
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-aws-codecommit.236f850c.svg +10 -0
- package/dist/assets/ic-diff-added.6ef6f938.svg +3 -0
- package/dist/assets/ic-diff-deleted.54eb24dd.svg +3 -0
- package/dist/assets/ic-diff-updated.294b925e.svg +4 -0
- package/dist/assets/ic-gitea.2549a329.svg +10 -0
- package/dist/assets/ic-group-filter-applied.2cdb11e7.svg +20 -0
- package/dist/assets/ic-group-filter.ed1869f5.svg +19 -0
- package/dist/assets/ic-input.57281408.svg +3 -0
- package/dist/assets/ic-locked.dd40e181.svg +3 -0
- package/dist/assets/ic-storage.03f282b6.svg +21 -0
- package/dist/assets/ic-tag.5fdc7834.svg +3 -0
- package/dist/assets/ic-warning-fill.bfea8b38.svg +4 -0
- package/dist/assets/img-mechanical-operation.04a318d6.svg +17 -0
- package/dist/index.js +902 -899
- package/package.json +1 -1
- package/dist/Shared/Components/License/constants.d.ts +0 -1
|
@@ -15,6 +15,7 @@ export declare const iconMap: {
|
|
|
15
15
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
16
16
|
'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
17
17
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
18
|
+
'ic-aws-codecommit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
18
19
|
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
19
20
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
20
21
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -67,6 +68,9 @@ export declare const iconMap: {
|
|
|
67
68
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
68
69
|
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
69
70
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
71
|
+
'ic-diff-added': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
72
|
+
'ic-diff-deleted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
73
|
+
'ic-diff-updated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
70
74
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
71
75
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
72
76
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -101,6 +105,7 @@ export declare const iconMap: {
|
|
|
101
105
|
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
102
106
|
'ic-git-branch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
103
107
|
'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
108
|
+
'ic-gitea': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
104
109
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
105
110
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
106
111
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -108,6 +113,8 @@ export declare const iconMap: {
|
|
|
108
113
|
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
109
114
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
110
115
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
116
|
+
'ic-group-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
117
|
+
'ic-group-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
111
118
|
'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
112
119
|
'ic-heart-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
113
120
|
'ic-heart-red-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -122,6 +129,7 @@ export declare const iconMap: {
|
|
|
122
129
|
'ic-info-filled-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
123
130
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
124
131
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
132
|
+
'ic-input': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
125
133
|
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
126
134
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
127
135
|
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -138,6 +146,7 @@ export declare const iconMap: {
|
|
|
138
146
|
'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
139
147
|
'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
140
148
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
149
|
+
'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
141
150
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
142
151
|
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
143
152
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -188,6 +197,7 @@ export declare const iconMap: {
|
|
|
188
197
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
189
198
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
190
199
|
'ic-stop-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
200
|
+
'ic-storage': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
191
201
|
'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
192
202
|
'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
193
203
|
'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -199,6 +209,7 @@ export declare const iconMap: {
|
|
|
199
209
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
200
210
|
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
201
211
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
212
|
+
'ic-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
202
213
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
203
214
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
204
215
|
'ic-terminal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -216,6 +227,9 @@ export declare const iconMap: {
|
|
|
216
227
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
217
228
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
218
229
|
'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
230
|
+
'ic-visibility-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
231
|
+
'ic-visibility-on': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
232
|
+
'ic-warning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
219
233
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
220
234
|
'ic-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
221
235
|
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IllustrationBaseProps } from './types';
|
|
2
2
|
export declare const illustrationMap: {
|
|
3
|
+
'img-mechanical-operation': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
3
4
|
'img-code': string;
|
|
4
5
|
'img-man-on-rocket': string;
|
|
5
6
|
'img-no-result': string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DevtronLicenseCardProps } from './types';
|
|
2
|
-
export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial,
|
|
2
|
+
export declare const DevtronLicenseCard: ({ enterpriseName, licenseKey, licenseSuffix, expiryDate, licenseStatus, isTrial, ttl, appTheme, handleCopySuccess, }: DevtronLicenseCardProps) => JSX.Element;
|
|
3
3
|
export default DevtronLicenseCard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppThemeType } from '../../Providers';
|
|
2
|
-
import { DevtronLicenseBaseDTO, DevtronLicenseDTO
|
|
2
|
+
import { DevtronLicenseBaseDTO, DevtronLicenseDTO } from '../../types';
|
|
3
3
|
export declare enum LicenseStatus {
|
|
4
4
|
ACTIVE = "ACTIVE",
|
|
5
5
|
EXPIRED = "EXPIRED",
|
|
@@ -11,9 +11,7 @@ export type DevtronLicenseCardProps = {
|
|
|
11
11
|
ttl: number;
|
|
12
12
|
licenseStatus: LicenseStatus;
|
|
13
13
|
isTrial: boolean;
|
|
14
|
-
isFreemium: boolean;
|
|
15
14
|
appTheme: AppThemeType;
|
|
16
|
-
licenseStatusError: LicenseErrorStruct;
|
|
17
15
|
} & ({
|
|
18
16
|
licenseKey: string;
|
|
19
17
|
handleCopySuccess?: () => void;
|
|
@@ -23,7 +21,7 @@ export type DevtronLicenseCardProps = {
|
|
|
23
21
|
handleCopySuccess?: never;
|
|
24
22
|
licenseSuffix: string;
|
|
25
23
|
});
|
|
26
|
-
export type DevtronLicenseInfo = Omit<DevtronLicenseCardProps, 'appTheme'> & Pick<DevtronLicenseDTO, 'fingerprint' | 'showLicenseData' | 'licenseStatusError'
|
|
24
|
+
export type DevtronLicenseInfo = Omit<DevtronLicenseCardProps, 'appTheme'> & Pick<DevtronLicenseDTO, 'fingerprint' | 'showLicenseData' | 'licenseStatusError'>;
|
|
27
25
|
export interface ActivateLicenseDialogProps extends Pick<DevtronLicenseBaseDTO, 'fingerprint'> {
|
|
28
26
|
enterpriseName: string;
|
|
29
27
|
handleClose?: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DevtronLicenseDTO } from '../../types';
|
|
2
|
-
import { DevtronLicenseCardProps, DevtronLicenseInfo } from './types';
|
|
3
|
-
export declare const getLicenseColorsAccordingToStatus: (
|
|
2
|
+
import { DevtronLicenseCardProps, DevtronLicenseInfo, LicenseStatus } from './types';
|
|
3
|
+
export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
|
|
4
4
|
bgColor: string;
|
|
5
5
|
textColor: string;
|
|
6
6
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MaterialHistoryProps } from './types';
|
|
2
|
-
declare const MaterialHistory: ({ material, pipelineName,
|
|
2
|
+
declare const MaterialHistory: ({ material, pipelineName, selectCommit, isCommitInfoModal }: MaterialHistoryProps) => JSX.Element;
|
|
3
3
|
export default MaterialHistory;
|
|
@@ -2,7 +2,6 @@ import { CIMaterialType } from '../../Services/app.types';
|
|
|
2
2
|
export interface MaterialHistoryProps {
|
|
3
3
|
material: CIMaterialType;
|
|
4
4
|
pipelineName: string;
|
|
5
|
-
|
|
6
|
-
selectCommit?: (materialId: string, commit: string, ciPipelineId?: string) => void;
|
|
5
|
+
selectCommit?: (commitId: string) => void;
|
|
7
6
|
isCommitInfoModal?: boolean;
|
|
8
7
|
}
|
|
@@ -87,6 +87,6 @@ export declare const getPopoverActualPositionAlignment: ({ position, alignment,
|
|
|
87
87
|
triggerRect: DOMRect;
|
|
88
88
|
popoverRect: DOMRect;
|
|
89
89
|
}) => {
|
|
90
|
-
fallbackPosition: "top" | "
|
|
90
|
+
fallbackPosition: "top" | "right" | "bottom" | "left";
|
|
91
91
|
fallbackAlignment: "start" | "middle" | "end";
|
|
92
92
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RegistryIconProps } from './types';
|
|
2
|
-
export declare const RegistryIcon: ({ registryType, size }: RegistryIconProps) => JSX.Element;
|
|
2
|
+
export declare const RegistryIcon: ({ registryType, size, registryUrl }: RegistryIconProps) => JSX.Element;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { RegistryType } from '../../types';
|
|
2
2
|
import { IconsProps } from '../Icon';
|
|
3
|
-
export
|
|
4
|
-
registryType
|
|
3
|
+
export type RegistryIconProps = {
|
|
4
|
+
registryType?: RegistryType;
|
|
5
5
|
/**
|
|
6
6
|
* The size of the icon in pixels.
|
|
7
7
|
* @default 20
|
|
8
8
|
*/
|
|
9
9
|
size?: IconsProps['size'];
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The registry URL to determine the icon.
|
|
12
|
+
*/
|
|
13
|
+
registryUrl?: never;
|
|
14
|
+
} | {
|
|
15
|
+
registryType?: never;
|
|
16
|
+
/**
|
|
17
|
+
* The size of the icon in pixels.
|
|
18
|
+
* @default 20
|
|
19
|
+
*/
|
|
20
|
+
size?: IconsProps['size'];
|
|
21
|
+
/**
|
|
22
|
+
* The registry URL to determine the icon.
|
|
23
|
+
*/
|
|
24
|
+
registryUrl: string;
|
|
25
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SEVERITIES } from './constants';
|
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
|
4
|
-
color: "var(--
|
|
4
|
+
color: "var(--Y500)" | "var(--R700)" | "var(--R500)" | "var(--G500)" | "var(--N300)" | "var(--O500)";
|
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
|
6
6
|
value: number;
|
|
7
7
|
}[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FiltersTypeEnum, TableContentProps } from './types';
|
|
2
|
-
declare const TableContent: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, filteredRows, areFilteredRowsLoading, }: TableContentProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
|
2
|
+
declare const TableContent: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filterData, rows, resizableConfig, additionalProps, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, filteredRows, areFilteredRowsLoading, getRows, totalRows, }: TableContentProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
|
3
3
|
export default TableContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dispatch, FunctionComponent, MouseEvent, PropsWithChildren, SetStateAction } from 'react';
|
|
2
2
|
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
|
3
3
|
import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps, UseUrlFiltersReturnType } from '../../../Common/Hooks';
|
|
4
|
-
import { GenericEmptyStateType } from '../../../Common/index';
|
|
4
|
+
import { APIOptions, GenericEmptyStateType } from '../../../Common/index';
|
|
5
5
|
import { PageSizeOption } from '../../../Common/Pagination/types';
|
|
6
6
|
import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
|
|
7
7
|
import { useBulkSelection, UseBulkSelectionProps } from '../BulkSelection';
|
|
@@ -105,7 +105,7 @@ export interface ConfigurableColumnsType<RowData extends unknown, FilterVariant
|
|
|
105
105
|
interface GetRowsProps extends Pick<UseFiltersReturnType, 'offset' | 'pageSize' | 'searchKey' | 'sortBy' | 'sortOrder'> {
|
|
106
106
|
}
|
|
107
107
|
type AdditionalFilterPropsType<T extends FiltersTypeEnum> = T extends FiltersTypeEnum.URL ? Pick<UseUrlFiltersProps<string, unknown>, 'parseSearchParams' | 'localStorageKey' | 'redirectionMethod' | 'initialSortKey' | 'defaultPageSize'> : T extends FiltersTypeEnum.STATE ? Pick<UseStateFiltersProps<string>, 'initialSortKey' | 'defaultPageSize'> : never;
|
|
108
|
-
export type ViewWrapperProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = PropsWithChildren<(FilterVariant extends FiltersTypeEnum.NONE ? {} : Pick<UseFiltersReturnType, 'offset' | 'handleSearch' | 'searchKey' | 'sortBy' | 'sortOrder' | 'clearFilters'>) & AdditionalProps & Partial<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>> & {
|
|
108
|
+
export type ViewWrapperProps<RowData extends unknown = unknown, FilterVariant extends FiltersTypeEnum = FiltersTypeEnum.NONE, AdditionalProps extends Record<string, any> = {}> = PropsWithChildren<(FilterVariant extends FiltersTypeEnum.NONE ? {} : Pick<UseFiltersReturnType, 'offset' | 'handleSearch' | 'searchKey' | 'sortBy' | 'sortOrder' | 'clearFilters' | 'areFiltersApplied'>) & AdditionalProps & Partial<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>> & {
|
|
109
109
|
areRowsLoading: boolean;
|
|
110
110
|
filteredRows: RowsType<RowData> | null;
|
|
111
111
|
rows: RowsType<RowData> | null;
|
|
@@ -177,7 +177,10 @@ export type InternalTableProps<RowData extends unknown, FilterVariant extends Fi
|
|
|
177
177
|
} | {
|
|
178
178
|
rows?: never;
|
|
179
179
|
/** NOTE: Sorting on frontend is only handled if rows is provided instead of getRows */
|
|
180
|
-
getRows: (props: GetRowsProps) => Promise<
|
|
180
|
+
getRows: (props: GetRowsProps, abortControllerRef: APIOptions['abortControllerRef']) => Promise<{
|
|
181
|
+
rows: RowsType<RowData>;
|
|
182
|
+
totalRows: number;
|
|
183
|
+
}>;
|
|
181
184
|
}) & ({
|
|
182
185
|
paginationVariant: PaginationEnum.PAGINATED;
|
|
183
186
|
pageSizeOptions?: PageSizeOption[];
|
|
@@ -203,8 +206,9 @@ export interface GetFilteringPromiseProps<RowData extends unknown> {
|
|
|
203
206
|
searchSortTimeoutRef: React.MutableRefObject<number>;
|
|
204
207
|
callback: () => Promise<RowsType<RowData>> | RowsType<RowData>;
|
|
205
208
|
}
|
|
206
|
-
export interface TableContentProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> extends Pick<InternalTableProps<RowData, FilterVariant, AdditionalProps>, 'filterData' | 'rows' | 'resizableConfig' | 'additionalProps' | 'visibleColumns' | 'stylesConfig' | 'loading' | 'bulkSelectionConfig' | 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow' | 'paginationVariant' | 'RowActionsOnHoverComponent' | 'pageSizeOptions'> {
|
|
209
|
+
export interface TableContentProps<RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>> extends Pick<InternalTableProps<RowData, FilterVariant, AdditionalProps>, 'filterData' | 'rows' | 'resizableConfig' | 'additionalProps' | 'visibleColumns' | 'stylesConfig' | 'loading' | 'bulkSelectionConfig' | 'bulkSelectionReturnValue' | 'handleClearBulkSelection' | 'handleToggleBulkSelectionOnRow' | 'paginationVariant' | 'RowActionsOnHoverComponent' | 'pageSizeOptions' | 'getRows'> {
|
|
207
210
|
filteredRows: RowsType<RowData>;
|
|
208
211
|
areFilteredRowsLoading: boolean;
|
|
212
|
+
totalRows: number;
|
|
209
213
|
}
|
|
210
214
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Column, ConfigurableColumnsType, FiltersTypeEnum, GetFilteringPromiseProps, RowsType, TableProps, UseFiltersReturnType } from './types';
|
|
2
|
-
export declare const searchAndSortRows: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>(rows: TableProps<RowData, FilterVariant, AdditionalProps>["rows"], filter: TableProps<RowData, FilterVariant, AdditionalProps>["filter"], filterData: UseFiltersReturnType, comparator?: Column<RowData, FilterVariant, AdditionalProps>["comparator"]) =>
|
|
2
|
+
export declare const searchAndSortRows: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>(rows: TableProps<RowData, FilterVariant, AdditionalProps>["rows"], filter: TableProps<RowData, FilterVariant, AdditionalProps>["filter"], filterData: UseFiltersReturnType, comparator?: Column<RowData, FilterVariant, AdditionalProps>["comparator"]) => Awaited<ReturnType<TableProps<RowData>["getRows"]>>;
|
|
3
3
|
export declare const getVisibleColumnsFromLocalStorage: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ allColumns, id, }: Pick<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>, "allColumns"> & Pick<TableProps<RowData, FilterVariant, AdditionalProps>, "id">) => Column<RowData, FilterVariant, AdditionalProps>[];
|
|
4
4
|
export declare const setVisibleColumnsToLocalStorage: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ id, visibleColumns, }: Pick<ConfigurableColumnsType<RowData, FilterVariant, AdditionalProps>, "visibleColumns"> & Pick<TableProps<RowData, FilterVariant, AdditionalProps>, "id">) => void;
|
|
5
5
|
export declare const getVisibleColumns: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ areColumnsConfigurable, columns, id, }: Pick<TableProps<RowData, FilterVariant, AdditionalProps>, "areColumnsConfigurable" | "columns" | "id">) => Column<RowData, FilterVariant, AdditionalProps>[];
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { ToastProps } from './types';
|
|
1
|
+
import { ShortcutToastContentProps, ToastProps } from './types';
|
|
2
2
|
export declare const ToastContent: ({ title, description, buttonProps, }: Pick<ToastProps, "title" | "description" | "buttonProps">) => JSX.Element;
|
|
3
|
+
export declare const ShortcutToastContent: ({ shortcuts, text }: ShortcutToastContentProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ToastContainerProps, ToastOptions } from 'react-toastify';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseToastProps, ToastProps } from './types';
|
|
3
3
|
export declare const TOAST_BASE_CONFIG: ToastContainerProps;
|
|
4
|
-
export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<
|
|
4
|
+
export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<BaseToastProps['variant'], Required<Pick<ToastProps, 'icon' | 'title' | 'progressBarBg'>> & Pick<ToastOptions, 'type'>>;
|
|
@@ -65,7 +65,7 @@ declare class ToastManager {
|
|
|
65
65
|
/**
|
|
66
66
|
* Handler for showing the toast
|
|
67
67
|
*/
|
|
68
|
-
showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
|
|
68
|
+
showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, text, shortcuts, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
|
|
69
69
|
/**
|
|
70
70
|
* Handler for dismissing an existing toast
|
|
71
71
|
*/
|
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks';
|
|
2
3
|
import { ButtonComponentType, ButtonProps } from '../../Components';
|
|
3
4
|
export declare enum ToastVariantType {
|
|
4
5
|
info = "info",
|
|
5
6
|
success = "success",
|
|
6
7
|
error = "error",
|
|
7
8
|
warn = "warn",
|
|
8
|
-
notAuthorized = "notAuthorized"
|
|
9
|
+
notAuthorized = "notAuthorized",
|
|
10
|
+
shortcut = "shortcut"
|
|
9
11
|
}
|
|
10
|
-
export interface
|
|
12
|
+
export interface ShortcutToastProps {
|
|
13
|
+
variant: ToastVariantType.shortcut;
|
|
14
|
+
/**
|
|
15
|
+
* Text to display along the shortcuts in the toast
|
|
16
|
+
* Example: "Press [S] to switch context"
|
|
17
|
+
*/
|
|
18
|
+
text: string;
|
|
19
|
+
/**
|
|
20
|
+
* The shortcuts to be displayed in the toast
|
|
21
|
+
* Note: The shortcuts should be in the format of `['Ctrl', 'A']
|
|
22
|
+
*/
|
|
23
|
+
shortcuts: SupportedKeyboardKeysType[];
|
|
24
|
+
}
|
|
25
|
+
export interface BaseToastProps {
|
|
11
26
|
/**
|
|
12
27
|
* Title for the toast
|
|
13
28
|
* If not provided, defaults to a value based on the selected variant
|
|
@@ -26,7 +41,7 @@ export interface ToastProps {
|
|
|
26
41
|
*
|
|
27
42
|
* @default ToastVariantType.info
|
|
28
43
|
*/
|
|
29
|
-
variant?: ToastVariantType
|
|
44
|
+
variant?: Exclude<ToastVariantType, ToastVariantType.shortcut>;
|
|
30
45
|
/**
|
|
31
46
|
* Props for the action button to be displayed in the toast
|
|
32
47
|
*
|
|
@@ -38,3 +53,8 @@ export interface ToastProps {
|
|
|
38
53
|
*/
|
|
39
54
|
progressBarBg?: string;
|
|
40
55
|
}
|
|
56
|
+
export type ToastProps = (BaseToastProps & Partial<Record<Exclude<keyof ShortcutToastProps, 'variant'>, never>>) | (ShortcutToastProps & Partial<Record<Exclude<keyof BaseToastProps, 'variant'>, never>>);
|
|
57
|
+
export interface ShortcutToastContentProps {
|
|
58
|
+
text: string;
|
|
59
|
+
shortcuts: SupportedKeyboardKeysType[];
|
|
60
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AppConfigProps } from '../../Pages/index';
|
|
2
2
|
import { ResponseType } from '../../Common';
|
|
3
|
-
import { AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType,
|
|
4
|
-
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<
|
|
3
|
+
import { AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType, CIMaterialInfoDTO, GetCITriggerInfoParamsType } from './app.types';
|
|
4
|
+
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<ResponseType<CIMaterialInfoDTO>>;
|
|
5
5
|
/**
|
|
6
6
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
7
7
|
*/
|
|
8
|
-
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<
|
|
8
|
+
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<ResponseType<CIMaterialInfoDTO>>;
|
|
9
9
|
export declare const getAppEnvDeploymentConfig: ({ params, signal, isTemplateView, appId, }: {
|
|
10
10
|
params: AppEnvDeploymentConfigPayloadType;
|
|
11
11
|
signal?: AbortSignal;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -935,8 +935,7 @@ export declare enum LicensingErrorCodes {
|
|
|
935
935
|
InstallationModeMismatch = "11005",
|
|
936
936
|
LicKeyMismatch = "11006",
|
|
937
937
|
NoCertFound = "11007",
|
|
938
|
-
LicKeyNotFound = "11008"
|
|
939
|
-
ClusterLimitExceeded = "11011"
|
|
938
|
+
LicKeyNotFound = "11008"
|
|
940
939
|
}
|
|
941
940
|
export interface LicenseErrorStruct {
|
|
942
941
|
code: LicensingErrorCodes;
|
|
@@ -945,7 +944,6 @@ export interface LicenseErrorStruct {
|
|
|
945
944
|
export interface DevtronLicenseBaseDTO {
|
|
946
945
|
fingerprint: string | null;
|
|
947
946
|
isTrial: boolean | null;
|
|
948
|
-
isFreemium: boolean | null;
|
|
949
947
|
/**
|
|
950
948
|
* In timestamp format
|
|
951
949
|
*/
|
|
@@ -973,15 +971,10 @@ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = Devt
|
|
|
973
971
|
} | null;
|
|
974
972
|
showLicenseData?: never;
|
|
975
973
|
licenseStatusError?: never;
|
|
976
|
-
moduleLimits?: never;
|
|
977
974
|
} : {
|
|
978
975
|
claimedByUserDetails?: never;
|
|
979
976
|
showLicenseData: boolean;
|
|
980
977
|
licenseStatusError?: LicenseErrorStruct;
|
|
981
|
-
moduleLimits: {
|
|
982
|
-
allAllowed: boolean;
|
|
983
|
-
maxAllowedClusters: number;
|
|
984
|
-
};
|
|
985
978
|
});
|
|
986
979
|
export type CountryISO2Type = ParsedCountry['iso2'];
|
|
987
980
|
export declare enum ResponseHeaders {
|