@devtron-labs/devtron-fe-common-lib 1.6.13-beta-1 → 1.6.13-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/{@code-editor-BhNQeqfi.js → @code-editor-DrF8gLUR.js} +4803 -4819
- package/dist/{@common-rjsf-BtFJNVqQ.js → @common-rjsf-DOQKMjoB.js} +1 -1
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Common/Helper.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +0 -4
- 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/Security/SecurityModal/utils.d.ts +2 -2
- package/dist/Shared/Providers/types.d.ts +11 -2
- package/dist/Shared/Services/common.service.d.ts +2 -3
- package/dist/Shared/Services/types.d.ts +6 -15
- package/dist/Shared/Store/IndexStore.d.ts +1 -1
- package/dist/Shared/types.d.ts +0 -9
- package/dist/index.d.ts +0 -5
- package/dist/index.js +421 -421
- package/package.json +1 -1
- package/dist/Shared/Services/constants.d.ts +0 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as t, O as E } from "./@vendor-CWh7bjwl.js";
|
2
2
|
import P, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as D } from "@rjsf/core";
|
4
|
-
import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-
|
4
|
+
import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-DrF8gLUR.js";
|
5
5
|
import J, { components as C } from "react-select";
|
6
6
|
import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as A, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as B, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
|
@@ -78,7 +78,6 @@ export declare const ROUTES: {
|
|
78
78
|
TELEMETRY_EVENT: string;
|
79
79
|
SERVER_INFO_API: string;
|
80
80
|
ATTRIBUTES_USER: string;
|
81
|
-
GET: string;
|
82
81
|
UPDATE: string;
|
83
82
|
ENVIRONMENT_LIST_MIN: string;
|
84
83
|
CLUSTER: string;
|
@@ -117,6 +116,7 @@ export declare const ROUTES: {
|
|
117
116
|
CD_TRIGGER_POST: string;
|
118
117
|
DELETE_RESOURCE: string;
|
119
118
|
NODE_CAPACITY: string;
|
119
|
+
ENVIRONMENT_DATA: string;
|
120
120
|
};
|
121
121
|
export declare enum KEY_VALUE {
|
122
122
|
KEY = "key",
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -10,7 +10,7 @@ interface ConditionalWrapper<T> {
|
|
10
10
|
children: T;
|
11
11
|
}
|
12
12
|
export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
|
13
|
-
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean):
|
13
|
+
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | 0 | -1;
|
14
14
|
export declare const stopPropagation: (event: any) => void;
|
15
15
|
export declare const preventDefault: (event: SyntheticEvent) => void;
|
16
16
|
export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
|
@@ -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<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SegmentedControlProps } from './types';
|
2
|
-
declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size,
|
2
|
+
declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, }: SegmentedControlProps) => JSX.Element;
|
3
3
|
export default SegmentedControl;
|
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 } from '../Shared';
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps } 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>;
|
@@ -518,6 +518,14 @@ export interface StatusFilterButtonType {
|
|
518
518
|
handleFilterClick?: (selectedFilter: string) => void;
|
519
519
|
maxInlineFiltersCount?: number;
|
520
520
|
}
|
521
|
+
export declare enum NodeStatusDTO {
|
522
|
+
Healthy = "Healthy",
|
523
|
+
Progressing = "Progressing",
|
524
|
+
Unknown = "Unknown",
|
525
|
+
Suspended = "Suspended",
|
526
|
+
Degraded = "Degraded",
|
527
|
+
Missing = "Missing"
|
528
|
+
}
|
521
529
|
export declare enum NodeStatus {
|
522
530
|
Degraded = "degraded",
|
523
531
|
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 { ProgressingProps } from '../../../Common/Types';
|
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, would render the Progressing component with given props instead of error icon
|
37
|
+
*/
|
38
|
+
progressingProps: ProgressingProps;
|
39
|
+
useInfoIcon?: never;
|
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: boolean;
|
48
|
+
} | {
|
49
|
+
progressingProps?: never;
|
50
|
+
useInfoIcon?: never;
|
51
|
+
});
|
@@ -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,9 +22,18 @@ export interface MainContext {
|
|
22
22
|
};
|
23
23
|
isAirgapped: boolean;
|
24
24
|
isSuperAdmin: boolean;
|
25
|
+
featureGitOpsFlags: {
|
26
|
+
isFeatureGitOpsEnabled: boolean;
|
27
|
+
/**
|
28
|
+
*
|
29
|
+
*/
|
30
|
+
isFeatureUserDefinedGitOpsEnabled: boolean;
|
31
|
+
/**
|
32
|
+
* Feature flag for Migrate to devtron from argo cd
|
33
|
+
*/
|
34
|
+
isFeatureArgoCdMigrationEnabled: boolean;
|
35
|
+
};
|
25
36
|
isManifestScanningEnabled: boolean;
|
26
|
-
isOrgLevelRBACViewEnforced: boolean;
|
27
|
-
viewIsPipelineRBACConfiguredNode: ReactNode;
|
28
37
|
}
|
29
38
|
export interface MainContextProviderProps {
|
30
39
|
children: ReactNode;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { GetPolicyApiUrlProps, GetResourceApiUrlProps
|
1
|
+
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps } 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
|
6
|
-
export declare const updateUserPreferences: (updatedUserPreferences: UserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
|
5
|
+
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { MainContext } from '../Providers';
|
1
2
|
import { getUrlWithSearchParams } from '../../Common';
|
2
|
-
import { PolicyKindType, ResourceKindType, ResourceVersionType
|
3
|
-
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
3
|
+
import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
|
4
4
|
export interface ClusterType {
|
5
5
|
id: number;
|
6
6
|
name: string;
|
@@ -29,18 +29,9 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
|
|
29
29
|
}
|
30
30
|
export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
|
31
31
|
}
|
32
|
-
export interface
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
viewPermittedEnvOnly?: boolean;
|
37
|
-
}
|
38
|
-
export interface UpdateUserPreferencesParsedValueType extends GetUserPreferencesParsedDTO {
|
39
|
-
}
|
40
|
-
export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
|
41
|
-
value: string;
|
42
|
-
}
|
43
|
-
export interface UserPreferencesType {
|
44
|
-
pipelineRBACViewSelectedTab: ViewIsPipelineRBACConfiguredRadioTabs;
|
32
|
+
export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitOpsFlags'> {
|
33
|
+
isAirGapEnvironment: boolean;
|
34
|
+
isManifestScanningEnabled: boolean;
|
35
|
+
canOnlyViewPermittedEnvOrgLevel: boolean;
|
45
36
|
}
|
46
37
|
export {};
|
@@ -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
@@ -824,13 +824,4 @@ export declare const TriggerType: {
|
|
824
824
|
readonly Auto: "AUTOMATIC";
|
825
825
|
readonly Manual: "MANUAL";
|
826
826
|
};
|
827
|
-
export declare enum ViewIsPipelineRBACConfiguredRadioTabs {
|
828
|
-
ALL_ENVIRONMENTS = "All environments",
|
829
|
-
ACCESS_ONLY = "Access only"
|
830
|
-
}
|
831
|
-
export interface EnvironmentDataValuesDTO {
|
832
|
-
isAirGapEnvironment: boolean;
|
833
|
-
isManifestScanningEnabled: boolean;
|
834
|
-
canOnlyViewPermittedEnvOrgLevel: boolean;
|
835
|
-
}
|
836
827
|
export {};
|
package/dist/index.d.ts
CHANGED
@@ -88,11 +88,6 @@ export interface customEnv {
|
|
88
88
|
* @default false
|
89
89
|
*/
|
90
90
|
FEATURE_EXPERIMENTAL_THEMING_ENABLE?: boolean;
|
91
|
-
/**
|
92
|
-
* If true, only pipelines to which the user has access will be shown across the application
|
93
|
-
* @default false
|
94
|
-
*/
|
95
|
-
FEATURE_DEFAULT_AUTHENTICATED_VIEW_ENABLE?: boolean;
|
96
91
|
}
|
97
92
|
declare global {
|
98
93
|
interface Window {
|