@devtron-labs/devtron-fe-common-lib 1.8.2-beta-5 → 1.8.2-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-n5LXKVDW.js → @code-editor-DqWQpyrB.js} +4225 -4219
- package/dist/{@common-rjsf-DhBG-a7N.js → @common-rjsf-09vSamcu.js} +2 -2
- package/dist/{@framer-motion-C9i0O6dh.js → @framer-motion-BCnBBNCY.js} +1 -1
- package/dist/{@react-dates-DEMedmhG.js → @react-dates-B3W7S3ht.js} +20 -20
- package/dist/{@react-select-DD4GMsWv.js → @react-select-DSiYA_G3.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BlYAzsAg.js → @react-virtualized-sticky-tree-DIgmxudW.js} +1 -1
- package/dist/{@vendor-CIA81cZg.js → @vendor-C7-HiwfO.js} +3676 -3715
- package/dist/Common/Constants.d.ts +1 -12
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +8 -0
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +18 -5
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -6
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +1 -1
- package/dist/Shared/Components/InfoBlock/types.d.ts +3 -3
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +2 -2
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Providers/types.d.ts +15 -1
- package/dist/Shared/Services/common.service.d.ts +2 -1
- package/dist/Shared/Services/types.d.ts +6 -0
- package/dist/Shared/Store/IndexStore.d.ts +1 -1
- package/dist/Shared/types.d.ts +0 -5
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +316 -315
- package/package.json +1 -1
- package/dist/Shared/Components/SSOProviderIcon/SSOProviderIcon.d.ts +0 -2
- package/dist/Shared/Components/SSOProviderIcon/index.d.ts +0 -2
- package/dist/Shared/Components/SSOProviderIcon/types.d.ts +0 -10
- package/dist/assets/ic-google.adce3079.svg +0 -6
- package/dist/assets/ic-ldap.1742ec39.svg +0 -3
- package/dist/assets/ic-login-devtron-logo.702a1d04.svg +0 -22
- package/dist/assets/ic-microsoft.4767e309.svg +0 -6
- package/dist/assets/ic-oidc.27839a0d.svg +0 -4
- package/dist/assets/ic-openshift.afcfadec.svg +0 -10
@@ -118,6 +118,7 @@ export declare const ROUTES: {
|
|
118
118
|
CD_TRIGGER_POST: string;
|
119
119
|
DELETE_RESOURCE: string;
|
120
120
|
NODE_CAPACITY: string;
|
121
|
+
ENVIRONMENT_DATA: string;
|
121
122
|
};
|
122
123
|
export declare enum KEY_VALUE {
|
123
124
|
KEY = "key",
|
@@ -336,15 +337,3 @@ export declare enum GitProviderType {
|
|
336
337
|
*/
|
337
338
|
export declare const getFormattedSchema: (schema?: string) => string;
|
338
339
|
export declare const UNCHANGED_ARRAY_ELEMENT_SYMBOL: unique symbol;
|
339
|
-
/**
|
340
|
-
* Authorization config types for SSO Login
|
341
|
-
*/
|
342
|
-
export declare enum SSOProvider {
|
343
|
-
google = "google",
|
344
|
-
github = "github",
|
345
|
-
gitlab = "gitlab",
|
346
|
-
microsoft = "microsoft",
|
347
|
-
ldap = "ldap",
|
348
|
-
oidc = "oidc",
|
349
|
-
openshift = "openshift"
|
350
|
-
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("
|
3
|
+
keys: ("Escape" | "Control" | "Alt" | "F" | "E" | "R" | "K" | "Shift" | "Meta" | "Enter")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -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, "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "className" | "children" | "disabled" | "id" | "name" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "noValidate" | "tagName" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "action" | "enctype" | "method" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
|
-
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType } from '../Shared';
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType } from '../Shared';
|
6
6
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
7
|
/**
|
8
8
|
* Generic response type object with support for overriding the result type
|
@@ -158,6 +158,7 @@ interface InfoColourBarTextConfigType {
|
|
158
158
|
* If given would be shown below the heading (if given)
|
159
159
|
*/
|
160
160
|
description: string;
|
161
|
+
actionButtonConfig?: ButtonProps;
|
161
162
|
}
|
162
163
|
type InfoColourBarMessageProp = {
|
163
164
|
message: ReactNode;
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
@@ -96,6 +96,10 @@ export interface SelectedChartDetailsType {
|
|
96
96
|
selectedChartRefId: number;
|
97
97
|
selectedChart: DeploymentChartVersionType;
|
98
98
|
}
|
99
|
+
export declare enum PipelineMigratedFromType {
|
100
|
+
HELM_RELEASE = "helmRelease",
|
101
|
+
ARGO_APPLICATION = "argoApplication"
|
102
|
+
}
|
99
103
|
interface EnvironmentConfigType {
|
100
104
|
id: number;
|
101
105
|
status: number;
|
@@ -81,6 +81,6 @@ export declare const TERMINAL_STATUS_COLOR_CLASS_MAP: {
|
|
81
81
|
readonly [x: string]: "cr-5" | "cg-5" | "co-5";
|
82
82
|
};
|
83
83
|
export declare const PROGRESSING_STATUS: {
|
84
|
-
readonly [x: string]: "
|
84
|
+
readonly [x: string]: "running" | "progressing" | "starting" | "initiating" | "queued";
|
85
85
|
};
|
86
86
|
export declare const FAILED_WORKFLOW_STAGE_STATUS_MAP: Record<Extract<WorkflowStageStatusType, WorkflowStageStatusType.ABORTED | WorkflowStageStatusType.FAILED | WorkflowStageStatusType.TIMEOUT>, true>;
|
@@ -519,6 +519,14 @@ export interface StatusFilterButtonType {
|
|
519
519
|
handleFilterClick?: (selectedFilter: string) => void;
|
520
520
|
maxInlineFiltersCount?: number;
|
521
521
|
}
|
522
|
+
export declare enum NodeStatusDTO {
|
523
|
+
Healthy = "Healthy",
|
524
|
+
Progressing = "Progressing",
|
525
|
+
Unknown = "Unknown",
|
526
|
+
Suspended = "Suspended",
|
527
|
+
Degraded = "Degraded",
|
528
|
+
Missing = "Missing"
|
529
|
+
}
|
522
530
|
export declare enum NodeStatus {
|
523
531
|
Degraded = "degraded",
|
524
532
|
Healthy = "healthy",
|
package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
import { GenericSectionErrorStateProps } from './types';
|
2
|
-
declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, }: GenericSectionErrorStateProps) => JSX.Element;
|
2
|
+
declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps) => JSX.Element;
|
3
3
|
export default GenericSectionErrorState;
|
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { IconsProps } from '../Icon';
|
3
|
+
export type GenericSectionErrorStateProps = {
|
2
4
|
/**
|
3
5
|
* Handler for reloading the section
|
4
6
|
*/
|
@@ -16,11 +18,11 @@ export interface GenericSectionErrorStateProps {
|
|
16
18
|
/**
|
17
19
|
* @default 'We could not load the information on this page.'
|
18
20
|
*/
|
19
|
-
subTitle?:
|
21
|
+
subTitle?: ReactNode;
|
20
22
|
/**
|
21
23
|
* @default 'Please reload or try again later'
|
22
24
|
*/
|
23
|
-
description?:
|
25
|
+
description?: ReactNode;
|
24
26
|
/**
|
25
27
|
* @default 'Reload'
|
26
28
|
*/
|
@@ -29,10 +31,21 @@ export interface GenericSectionErrorStateProps {
|
|
29
31
|
* to be applied on parent div
|
30
32
|
*/
|
31
33
|
rootClassName?: string;
|
34
|
+
} & ({
|
35
|
+
/**
|
36
|
+
* If provided, Icon with ic-circle-loader
|
37
|
+
*/
|
38
|
+
progressingProps: Omit<IconsProps, 'name'>;
|
39
|
+
useInfoIcon?: false;
|
40
|
+
} | {
|
41
|
+
progressingProps?: never;
|
32
42
|
/**
|
33
43
|
* If true, info icon would be used instead of error
|
34
44
|
*
|
35
45
|
* @default false
|
36
46
|
*/
|
37
|
-
useInfoIcon
|
38
|
-
}
|
47
|
+
useInfoIcon: true;
|
48
|
+
} | {
|
49
|
+
progressingProps?: never;
|
50
|
+
useInfoIcon?: never;
|
51
|
+
});
|
@@ -27,7 +27,6 @@ export declare const iconMap: {
|
|
27
27
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
28
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
29
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
|
-
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
30
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
32
31
|
'ic-heart-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
33
32
|
'ic-heart-red-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -40,16 +39,11 @@ export declare const iconMap: {
|
|
40
39
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
40
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
41
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
|
-
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
|
-
'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
45
|
-
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
42
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
43
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
44
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
|
-
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
45
|
'ic-open-box': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
46
|
'ic-open-in-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
|
-
'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
47
|
'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
48
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
49
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -3,7 +3,7 @@ export interface ImageWithFallbackProps {
|
|
3
3
|
/**
|
4
4
|
* Props for the image
|
5
5
|
*/
|
6
|
-
imageProps: ImgHTMLAttributes<HTMLImageElement
|
6
|
+
imageProps: Omit<ImgHTMLAttributes<HTMLImageElement>, 'alt' | 'height' | 'width'> & Required<Pick<ImgHTMLAttributes<HTMLImageElement>, 'alt' | 'height' | 'width'>>;
|
7
7
|
/**
|
8
8
|
* Fallback image; can be a url or a jsx element
|
9
9
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ComponentSizeType } from '../../constants';
|
2
2
|
import { BorderConfigType, ComponentLayoutType } from '../../types';
|
3
3
|
import { ReactElement, ReactNode } from 'react';
|
4
|
-
import { ButtonProps } from '../Button';
|
4
|
+
import { ButtonComponentType, ButtonProps } from '../Button';
|
5
5
|
export type InfoBlockProps = {
|
6
6
|
/**
|
7
7
|
* @default 'row'
|
@@ -10,7 +10,7 @@ export type InfoBlockProps = {
|
|
10
10
|
/**
|
11
11
|
* @default 'information'
|
12
12
|
*/
|
13
|
-
variant?: 'error' | 'help' | 'information' | 'success' | 'warning';
|
13
|
+
variant?: 'error' | 'help' | 'information' | 'success' | 'warning' | 'neutral';
|
14
14
|
/**
|
15
15
|
* @default ComponentSizeType.large
|
16
16
|
*/
|
@@ -19,7 +19,7 @@ export type InfoBlockProps = {
|
|
19
19
|
* If given would override the default icon derived from type
|
20
20
|
*/
|
21
21
|
customIcon?: ReactElement;
|
22
|
-
buttonProps?: ButtonProps
|
22
|
+
buttonProps?: ButtonProps<ButtonComponentType>;
|
23
23
|
borderConfig?: BorderConfigType;
|
24
24
|
borderRadiusConfig?: BorderConfigType;
|
25
25
|
} & ({
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
|
2
2
|
import { SEVERITIES } from './constants';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--
|
5
|
-
label: "
|
4
|
+
color: "var(--G500)" | "var(--N300)" | "var(--R700)" | "var(--R500)" | "var(--O500)" | "var(--Y500)";
|
5
|
+
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
8
8
|
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => string;
|
@@ -22,8 +22,22 @@ export interface MainContext {
|
|
22
22
|
};
|
23
23
|
isAirgapped: boolean;
|
24
24
|
isSuperAdmin: boolean;
|
25
|
+
featureGitOpsFlags: {
|
26
|
+
/**
|
27
|
+
* Would define whether gitops (Global config tab) feature is enabled or not
|
28
|
+
*/
|
29
|
+
isFeatureGitOpsEnabled: boolean;
|
30
|
+
/**
|
31
|
+
* Would define whether user can select allow custom repo in gitops global config
|
32
|
+
*/
|
33
|
+
isFeatureUserDefinedGitOpsEnabled: boolean;
|
34
|
+
/**
|
35
|
+
* Feature flag for Migrate to devtron from argo cd
|
36
|
+
*/
|
37
|
+
isFeatureArgoCdMigrationEnabled: boolean;
|
38
|
+
};
|
25
39
|
isManifestScanningEnabled: boolean;
|
26
|
-
|
40
|
+
canOnlyViewPermittedEnvOrgLevel: boolean;
|
27
41
|
viewIsPipelineRBACConfiguredNode: ReactNode;
|
28
42
|
}
|
29
43
|
export interface MainContextProviderProps {
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } from './types';
|
1
|
+
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } from './types';
|
2
2
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
3
3
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
4
4
|
export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
|
5
|
+
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
5
6
|
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
6
7
|
export declare const updateUserPreferences: (updatedUserPreferences: UserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { MainContext } from '../Providers';
|
1
2
|
import { getUrlWithSearchParams } from '../../Common';
|
2
3
|
import { PolicyKindType, ResourceKindType, ResourceVersionType, ViewIsPipelineRBACConfiguredRadioTabs } from '../types';
|
3
4
|
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
@@ -29,6 +30,11 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
|
|
29
30
|
}
|
30
31
|
export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
|
31
32
|
}
|
33
|
+
export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitOpsFlags'> {
|
34
|
+
isAirGapEnvironment: boolean;
|
35
|
+
isManifestScanningEnabled: boolean;
|
36
|
+
canOnlyViewPermittedEnvOrgLevel: boolean;
|
37
|
+
}
|
32
38
|
export interface GetUserPreferencesQueryParamsType {
|
33
39
|
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|
34
40
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AppDetails, AppType, EnvDetails, Node, PodMetaData, iNode } from '../types';
|
2
2
|
export declare function getiNodesByRootNodeWithChildNodes(_nodes: Array<Node>, rootNodes: Array<iNode>, podMetadata?: Array<PodMetaData>): Array<iNode>;
|
3
|
-
export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "
|
3
|
+
export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "progressing" | "healthy" | "degraded";
|
4
4
|
export declare function getiNodesByKindWithChildNodes(_nodes: Array<Node>, _kind: string): Array<iNode>;
|
5
5
|
export declare function getPodsRootParentNameAndStatus(_nodes: Array<Node>): Array<[string, string]>;
|
6
6
|
export declare const getPodsForRootNodeName: (_rootNode: string, _treeNodes: Array<Node>) => Array<iNode>;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -828,11 +828,6 @@ export declare enum ViewIsPipelineRBACConfiguredRadioTabs {
|
|
828
828
|
ALL_ENVIRONMENTS = "All environments",
|
829
829
|
ACCESS_ONLY = "Access only"
|
830
830
|
}
|
831
|
-
export interface EnvironmentDataValuesDTO {
|
832
|
-
isAirGapEnvironment: boolean;
|
833
|
-
isManifestScanningEnabled: boolean;
|
834
|
-
canOnlyViewPermittedEnvOrgLevel: boolean;
|
835
|
-
}
|
836
831
|
export type ComponentLayoutType = 'row' | 'column';
|
837
832
|
export interface BorderConfigType {
|
838
833
|
/**
|