@devtron-labs/devtron-fe-common-lib 1.15.3-beta-3 → 1.15.3-pre-0
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-Dz8a1qww.js → @code-editor-Cv0SnE5h.js} +5769 -5874
- package/dist/{@common-rjsf-ISOYbod5.js → @common-rjsf-BjL8q0vr.js} +2 -2
- package/dist/{@framer-motion-BhKAac90.js → @framer-motion-BNW8cVs5.js} +1 -1
- package/dist/{@react-dates-CfRo6n5e.js → @react-dates-BUkYmC65.js} +1 -1
- package/dist/{@react-select-DNDV8S9D.js → @react-select-DelHyoAl.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-mXcyQzGx.js → @react-virtualized-sticky-tree-CGrGTQqK.js} +1 -1
- package/dist/{@vendor-CA9d7Ztm.js → @vendor-oJbr9Qso.js} +15809 -15843
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +0 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +7 -17
- package/dist/Shared/Hooks/useUserPreferences/useUserPrefrences.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/utils.d.ts +2 -3
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/types.d.ts +1 -2
- package/dist/index.js +853 -854
- package/package.json +1 -1
- package/dist/Shared/Components/Badge/Badge.d.ts +0 -3
- package/dist/Shared/Components/Badge/index.d.ts +0 -2
- package/dist/Shared/Components/Badge/types.d.ts +0 -18
- package/dist/Shared/Components/Badge/utils.d.ts +0 -7
- package/dist/Shared/Components/Security/SeverityChip.d.ts +0 -6
@@ -1,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "method" | "action" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "method" | "action" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "experimental_customMergeAllOf" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType,
|
1
|
+
import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
2
2
|
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"], hidePolicy: boolean) => {
|
3
3
|
headers: ({
|
4
4
|
headerText: string;
|
@@ -10,7 +10,7 @@ export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"
|
|
10
10
|
headerText: string;
|
11
11
|
isSortable: boolean;
|
12
12
|
width: number;
|
13
|
-
compareFunc: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
13
|
+
compareFunc: (a: import('../types').SeveritiesDTO, b: import('../types').SeveritiesDTO) => number;
|
14
14
|
defaultSortOrder: import('../types').SortOrderEnum;
|
15
15
|
})[];
|
16
16
|
rows: {
|
@@ -34,7 +34,7 @@ export declare const getCodeScanLicense: (data: CodeScan["license"]) => {
|
|
34
34
|
headerText: string;
|
35
35
|
isSortable: boolean;
|
36
36
|
width: number;
|
37
|
-
compareFunc: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
37
|
+
compareFunc: (a: import('../types').SeveritiesDTO, b: import('../types').SeveritiesDTO) => number;
|
38
38
|
defaultSortOrder: import('../types').SortOrderEnum;
|
39
39
|
})[];
|
40
40
|
rows: {
|
@@ -57,7 +57,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
|
|
57
57
|
headerText: string;
|
58
58
|
isSortable: boolean;
|
59
59
|
width: number;
|
60
|
-
compareFunc: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
60
|
+
compareFunc: (a: Record<import('../types').SeveritiesDTO, number>, b: Record<import('../types').SeveritiesDTO, number>) => number;
|
61
61
|
})[];
|
62
62
|
rows: {
|
63
63
|
id: number;
|
@@ -67,7 +67,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
|
|
67
67
|
cellContent: string;
|
68
68
|
} | {
|
69
69
|
component: JSX.Element;
|
70
|
-
cellContent: Partial<Record<SeveritiesDTO, number>>;
|
70
|
+
cellContent: Partial<Record<import('../types').SeveritiesDTO, number>>;
|
71
71
|
})[];
|
72
72
|
}[];
|
73
73
|
};
|
@@ -81,7 +81,7 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
81
81
|
headerText: string;
|
82
82
|
isSortable: boolean;
|
83
83
|
width: number;
|
84
|
-
compareFunc: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
84
|
+
compareFunc: (a: Record<import('../types').SeveritiesDTO, number>, b: Record<import('../types').SeveritiesDTO, number>) => number;
|
85
85
|
})[];
|
86
86
|
rows: {
|
87
87
|
id: number;
|
@@ -91,7 +91,7 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
91
91
|
cellContent: string;
|
92
92
|
} | {
|
93
93
|
component: JSX.Element;
|
94
|
-
cellContent: Partial<Record<SeveritiesDTO, number>>;
|
94
|
+
cellContent: Partial<Record<import('../types').SeveritiesDTO, number>>;
|
95
95
|
})[];
|
96
96
|
}[];
|
97
97
|
};
|
@@ -7,7 +7,6 @@ export * from './APIResponseHandler';
|
|
7
7
|
export * from './AppStatusModal';
|
8
8
|
export * from './ArtifactInfoModal';
|
9
9
|
export * from './Backdrop';
|
10
|
-
export * from './Badge';
|
11
10
|
export * from './BulkOperations';
|
12
11
|
export * from './BulkSelection';
|
13
12
|
export * from './Button';
|
@@ -5,4 +5,4 @@ import { UserPreferenceResourceProps, UserPreferencesType } from './types';
|
|
5
5
|
* @throws Will throw an error if the request fails or if the result is not in the expected format.
|
6
6
|
*/
|
7
7
|
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
8
|
-
export declare const updateUserPreferences: ({ path, value,
|
8
|
+
export declare const updateUserPreferences: ({ path, value, shouldThrowError, }: UserPreferenceResourceProps) => Promise<boolean>;
|
@@ -12,18 +12,12 @@ export declare enum ViewIsPipelineRBACConfiguredRadioTabs {
|
|
12
12
|
export declare enum UserPreferenceResourceActions {
|
13
13
|
RECENTLY_VISITED = "recently-visited"
|
14
14
|
}
|
15
|
-
export type PreferredResourceKindType = ResourceKindType.devtronApplication | ResourceKindType.job | ResourceKindType.appGroup | ResourceKindType.cluster;
|
16
|
-
export interface UserPreferenceRecentlyVisitedAppsTypes {
|
17
|
-
appId: number;
|
18
|
-
appName: string;
|
19
|
-
resourceKind: PreferredResourceKindType;
|
20
|
-
}
|
21
15
|
export interface UserResourceKindActionType {
|
22
16
|
[UserPreferenceResourceActions.RECENTLY_VISITED]: BaseAppMetaData[];
|
23
17
|
}
|
24
|
-
export
|
25
|
-
[
|
26
|
-
}
|
18
|
+
export interface UserPreferenceResourceType {
|
19
|
+
[ResourceKindType.devtronApplication]: UserResourceKindActionType;
|
20
|
+
}
|
27
21
|
export interface GetUserPreferencesParsedDTO {
|
28
22
|
viewPermittedEnvOnly?: boolean;
|
29
23
|
/**
|
@@ -63,29 +57,25 @@ export interface UserPreferencesType {
|
|
63
57
|
export interface UpdatedUserPreferencesType extends UserPreferencesType, Pick<ThemeConfigType, 'appTheme'> {
|
64
58
|
}
|
65
59
|
export interface UseUserPreferencesProps {
|
66
|
-
userPreferenceResourceKind?: ResourceKindType;
|
67
60
|
migrateUserPreferences?: (userPreferencesResponse: UserPreferencesType) => Promise<UserPreferencesType>;
|
68
61
|
}
|
69
62
|
export type UserPathValueMapType = {
|
70
63
|
path: 'themePreference';
|
71
64
|
value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
|
72
|
-
resourceKind?: never;
|
73
|
-
userPreferencesResponse?: never;
|
74
65
|
} | {
|
75
66
|
path: 'pipelineRBACViewSelectedTab';
|
76
67
|
value: Required<Pick<UserPreferencesType, 'pipelineRBACViewSelectedTab'>>;
|
77
|
-
resourceKind?: never;
|
78
|
-
userPreferencesResponse?: never;
|
79
68
|
} | {
|
80
69
|
path: 'resources';
|
81
70
|
value: Required<BaseAppMetaData[]>;
|
82
|
-
resourceKind: PreferredResourceKindType;
|
83
|
-
userPreferencesResponse?: any;
|
84
71
|
};
|
85
72
|
export type UserPreferenceResourceProps = UserPathValueMapType & {
|
86
73
|
shouldThrowError?: boolean;
|
87
|
-
userPreferencesResponse?: any;
|
88
74
|
};
|
75
|
+
export interface UserPreferenceRecentlyVisitedAppsTypes {
|
76
|
+
appId: number;
|
77
|
+
appName: string;
|
78
|
+
}
|
89
79
|
export interface UserPreferenceFilteredListTypes extends UserPreferenceRecentlyVisitedAppsTypes {
|
90
80
|
userPreferencesResponse: UserPreferencesType;
|
91
81
|
}
|
@@ -6,5 +6,5 @@ export declare const useUserPreferences: ({ migrateUserPreferences }: UseUserPre
|
|
6
6
|
handleFetchUserPreferences: () => Promise<void>;
|
7
7
|
handleUpdatePipelineRBACViewSelectedTab: (selectedTab: ViewIsPipelineRBACConfiguredRadioTabs) => void;
|
8
8
|
handleUpdateUserThemePreference: (themePreference: UserPreferencesType["themePreference"]) => void;
|
9
|
-
fetchRecentlyVisitedParsedApps: ({ appId, appName
|
9
|
+
fetchRecentlyVisitedParsedApps: ({ appId, appName }: UserPreferenceRecentlyVisitedAppsTypes) => Promise<void>;
|
10
10
|
};
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { BaseAppMetaData } from '../../Services';
|
2
|
-
import { ResourceKindType } from '../../types';
|
3
2
|
import { UserPreferenceFilteredListTypes, UserPreferenceResourceType } from './types';
|
4
|
-
export declare const getUserPreferenceResourcesMetadata: (recentlyVisited: BaseAppMetaData[]
|
5
|
-
export declare const getFilteredUniqueAppList: ({ userPreferencesResponse, appId, appName,
|
3
|
+
export declare const getUserPreferenceResourcesMetadata: (recentlyVisited: BaseAppMetaData[]) => UserPreferenceResourceType;
|
4
|
+
export declare const getFilteredUniqueAppList: ({ userPreferencesResponse, appId, appName, }: UserPreferenceFilteredListTypes) => BaseAppMetaData[];
|
package/dist/Shared/types.d.ts
CHANGED
@@ -424,8 +424,7 @@ export declare enum ResourceKindType {
|
|
424
424
|
environment = "environment",
|
425
425
|
cdPipeline = "cd-pipeline",
|
426
426
|
ciPipeline = "ci-pipeline",
|
427
|
-
project = "project"
|
428
|
-
appGroup = "app-group"
|
427
|
+
project = "project"
|
429
428
|
}
|
430
429
|
/**
|
431
430
|
* Versions support for the resources on BE
|