@devtron-labs/devtron-fe-common-lib 1.0.3-beta-3 → 1.0.3-beta-4
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/CodeEditor/CodeEditor.reducer.d.ts +2 -1
- package/dist/Common/CodeEditor/types.d.ts +2 -1
- package/dist/Common/Common.service.d.ts +0 -7
- package/dist/Common/Constants.d.ts +1 -14
- package/dist/Common/Helper.d.ts +0 -8
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +6 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/index.d.ts +1 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +21 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +6 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +11 -2
- package/dist/Shared/Components/CICDHistory/types.d.ts +0 -11
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
- package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +5 -12
- package/dist/Shared/Services/app.types.d.ts +1 -2
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-TWHJkfQE.js → cssMode-BX0kVpxd.js} +1 -1
- package/dist/{freemarker2-CEjk_gbE.js → freemarker2-lfR_xgkD.js} +1 -1
- package/dist/{handlebars-BTsDG0ly.js → handlebars-C50yN6vz.js} +1 -1
- package/dist/{html-BaOJqZn3.js → html-BOBCop6g.js} +1 -1
- package/dist/{htmlMode-BxSL9hZy.js → htmlMode-Yk6ocCnb.js} +1 -1
- package/dist/{index-DisLaobe.js → index-DNBEmYsw.js} +21281 -21175
- package/dist/index.js +437 -440
- package/dist/{javascript-BgiFQvvo.js → javascript-dadysMcN.js} +1 -1
- package/dist/{jsonMode-BjHz04gh.js → jsonMode-IianeSf5.js} +1 -1
- package/dist/{liquid-Dgilc6Mt.js → liquid-BmGfiuT2.js} +1 -1
- package/dist/{mdx-B4SzgtfU.js → mdx-D4527viy.js} +1 -1
- package/dist/{python-DONQ8FQq.js → python-Cmu9nr_N.js} +1 -1
- package/dist/{razor-CtVBJVbs.js → razor-Df83Xmwf.js} +1 -1
- package/dist/{tsMode-DqSolB9u.js → tsMode-sQb4LSX_.js} +1 -1
- package/dist/{typescript-u2_YHVSR.js → typescript-iXN-i6jD.js} +1 -1
- package/dist/{xml-B_McAOpd.js → xml-BpAHbG6h.js} +1 -1
- package/dist/{yaml-D8JWbfVY.js → yaml-BzSlrMFY.js} +1 -1
- package/package.json +1 -1
|
@@ -32,4 +32,5 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
|
32
32
|
code: string;
|
|
33
33
|
noParsing: boolean;
|
|
34
34
|
};
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
|
|
36
|
+
export declare const initialState: ({ mode, theme, value, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
|
@@ -28,7 +28,7 @@ interface CodeEditorBaseInterface {
|
|
|
28
28
|
validatorSchema?: any;
|
|
29
29
|
isKubernetes?: boolean;
|
|
30
30
|
cleanData?: boolean;
|
|
31
|
-
|
|
31
|
+
schemaURI?: string;
|
|
32
32
|
/**
|
|
33
33
|
* If true, disable the in-built search of monaco editor
|
|
34
34
|
* @default false
|
|
@@ -81,6 +81,7 @@ export interface CodeEditorInitialValueType {
|
|
|
81
81
|
theme?: string;
|
|
82
82
|
value: string;
|
|
83
83
|
noParsing?: boolean;
|
|
84
|
+
tabSize: number;
|
|
84
85
|
}
|
|
85
86
|
export interface CodeEditorState {
|
|
86
87
|
mode: MODES;
|
|
@@ -27,11 +27,4 @@ export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
|
|
27
27
|
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
|
28
28
|
export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
|
|
29
29
|
export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @param gitUrl Git URL of the repository
|
|
33
|
-
* @param branchName Branch name
|
|
34
|
-
* @returns URL to the branch in the Git repository
|
|
35
|
-
*/
|
|
36
|
-
export declare const getGitBranchUrl: (gitUrl: string, branchName: string) => string | null;
|
|
37
30
|
export {};
|
|
@@ -256,6 +256,7 @@ export declare const API_STATUS_CODES: {
|
|
|
256
256
|
NOT_FOUND: number;
|
|
257
257
|
EXPECTATION_FAILED: number;
|
|
258
258
|
LOCKED: number;
|
|
259
|
+
UNPROCESSABLE_CONTENT: number;
|
|
259
260
|
};
|
|
260
261
|
export declare enum SERVER_MODE {
|
|
261
262
|
EA_ONLY = "EA_ONLY",
|
|
@@ -293,17 +294,3 @@ export declare const VULNERABILITIES_SORT_PRIORITY: {
|
|
|
293
294
|
unknown: number;
|
|
294
295
|
};
|
|
295
296
|
export declare const IS_PLATFORM_MAC_OS: boolean;
|
|
296
|
-
/**
|
|
297
|
-
* Git provider types
|
|
298
|
-
*/
|
|
299
|
-
export declare enum GitProviderType {
|
|
300
|
-
GITHUB = "github",
|
|
301
|
-
GITLAB = "gitlab",
|
|
302
|
-
BITBUCKET = "bitbucket",
|
|
303
|
-
AZURE = "azure",
|
|
304
|
-
GITEA = "gitea"
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Formats the schema removing any irregularity in the existing schema
|
|
308
|
-
*/
|
|
309
|
-
export declare const getFormattedSchema: (schema?: string) => string;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -121,14 +121,6 @@ export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
|
|
|
121
121
|
export declare function asyncWrap(promise: any): any[];
|
|
122
122
|
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
123
123
|
export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @param sourceType - SourceTypeMap
|
|
127
|
-
* @param _isRegex - boolean
|
|
128
|
-
* @param webhookEventName - WebhookEventNameType
|
|
129
|
-
* @returns - Icon
|
|
130
|
-
*/
|
|
131
|
-
export declare const getBranchIcon: (sourceType: any, _isRegex?: boolean, webhookEventName?: string) => string;
|
|
132
124
|
export declare const getSanitizedIframe: (iframeString: string) => string;
|
|
133
125
|
/**
|
|
134
126
|
* This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GUIView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DeploymentTemplate';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AppConfiguration';
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
|
@@ -107,16 +107,34 @@ interface BaseDeploymentTemplateConfigState {
|
|
|
107
107
|
isOverridden?: never;
|
|
108
108
|
environmentConfig?: never;
|
|
109
109
|
mergeStrategy?: never;
|
|
110
|
+
mergedTemplate?: never;
|
|
111
|
+
mergedTemplateWithoutLockedKeys?: never;
|
|
112
|
+
mergedTemplateObject?: never;
|
|
110
113
|
}
|
|
111
|
-
|
|
114
|
+
type EnvironmentOverrideDeploymentTemplateConfigState = {
|
|
112
115
|
chartConfig?: never;
|
|
113
116
|
isOverridden: boolean;
|
|
114
117
|
environmentConfig: EnvironmentConfigType;
|
|
115
118
|
mergeStrategy: OverrideMergeStrategyType;
|
|
116
|
-
|
|
119
|
+
/**
|
|
120
|
+
* This final template to be applied on the deployment in string format
|
|
121
|
+
* In current editor, this may be null initially
|
|
122
|
+
*/
|
|
123
|
+
mergedTemplate: string;
|
|
124
|
+
/**
|
|
125
|
+
* This final template to be applied on the deployment without locked keys in string format
|
|
126
|
+
* In current editor, this may be null initially
|
|
127
|
+
*/
|
|
128
|
+
mergedTemplateWithoutLockedKeys: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* This final template to be applied on the deployment in object format
|
|
131
|
+
* In current editor, this may be null initially
|
|
132
|
+
*/
|
|
133
|
+
mergedTemplateObject: Record<string, string> | null;
|
|
134
|
+
};
|
|
117
135
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
|
118
136
|
/**
|
|
119
|
-
* The first ever state of the deployment template
|
|
137
|
+
* The first ever state of the deployment template on editor
|
|
120
138
|
*/
|
|
121
139
|
originalTemplate: Record<string, string>;
|
|
122
140
|
isAppMetricsEnabled: boolean;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { OverrideStrategyTippyContentProps } from './types';
|
|
2
|
+
declare const OverrideStrategyTippyContent: ({ children }: OverrideStrategyTippyContentProps) => JSX.Element;
|
|
2
3
|
export default OverrideStrategyTippyContent;
|
|
@@ -25,3 +25,9 @@ export declare enum ConfigToolbarPopupNodeType {
|
|
|
25
25
|
DISCARD_DRAFT = "discardDraft",
|
|
26
26
|
EDIT_HISTORY = "editHistory"
|
|
27
27
|
}
|
|
28
|
+
export interface OverrideStrategyTippyContentProps {
|
|
29
|
+
/**
|
|
30
|
+
* Would be rendered as li conveying the information about the merge strategy
|
|
31
|
+
*/
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentStageType } from '../../../../../Shared/constants';
|
|
2
|
-
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "
|
|
2
|
+
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "deployment" | "pre-deployment" | "post-deployment";
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface CIPipelineSourceConfigInterface {
|
|
2
|
+
sourceType: any;
|
|
3
|
+
sourceValue: any;
|
|
4
|
+
showTooltip?: boolean;
|
|
5
|
+
showIcons?: boolean;
|
|
6
|
+
baseText?: string;
|
|
7
|
+
regex?: any;
|
|
8
|
+
isRegex?: boolean;
|
|
9
|
+
primaryBranchAfterRegex?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const CiPipelineSourceConfig: ({ sourceType, sourceValue, showTooltip, showIcons, baseText, regex, isRegex, primaryBranchAfterRegex, }: CIPipelineSourceConfigInterface) => JSX.Element;
|
|
@@ -666,15 +666,4 @@ export type CreateMarkupPropsType = {
|
|
|
666
666
|
export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
|
|
667
667
|
export declare const terminalStatus: Set<string>;
|
|
668
668
|
export declare const statusSet: Set<string>;
|
|
669
|
-
export interface CIPipelineSourceConfigInterface {
|
|
670
|
-
sourceType: string;
|
|
671
|
-
sourceValue: any;
|
|
672
|
-
showTooltip?: boolean;
|
|
673
|
-
showIcons?: boolean;
|
|
674
|
-
baseText?: string;
|
|
675
|
-
regex?: any;
|
|
676
|
-
isRegex?: boolean;
|
|
677
|
-
primaryBranchAfterRegex?: string;
|
|
678
|
-
rootClassName?: string;
|
|
679
|
-
}
|
|
680
669
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EnterpriseTag } from './EnterpriseTag.component';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GitCommitInfoGenericProps } from './types';
|
|
2
|
-
declare const GitCommitInfoGeneric: ({ materialSourceType, materialSourceValue, commitInfo, selectedCommitInfo, materialUrl, showMaterialInfoHeader, index, isExcluded, }: GitCommitInfoGenericProps) => JSX.Element;
|
|
2
|
+
declare const GitCommitInfoGeneric: ({ materialSourceType, materialSourceValue, commitInfo, selectedCommitInfo, materialUrl, showMaterialInfoHeader, canTriggerBuild, index, isExcluded, }: GitCommitInfoGenericProps) => JSX.Element;
|
|
3
3
|
export default GitCommitInfoGeneric;
|
|
@@ -2,7 +2,7 @@ import { ApiResponseResultType, SeveritiesDTO, GetResourceScanDetailsResponseTyp
|
|
|
2
2
|
import { SEVERITIES } from './constants';
|
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
|
4
4
|
color: "#B1B7BC" | "#B21212" | "#F33E3E" | "#FF7E5B" | "#FFB549" | "#1DAD70";
|
|
5
|
-
label: "
|
|
5
|
+
label: "Critical" | "High" | "Medium" | "Low" | "Unknown" | "Failures" | "Successes" | "Exceptions";
|
|
6
6
|
value: number;
|
|
7
7
|
}[];
|
|
8
8
|
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => string;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Pair } from 'yaml';
|
|
3
|
-
import {
|
|
3
|
+
import { StrictRJSFSchema } from '@rjsf/utils';
|
|
4
4
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
|
5
5
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
6
6
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -65,16 +65,9 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
|
65
65
|
*/
|
|
66
66
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* @
|
|
71
|
-
*/
|
|
72
|
-
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
|
73
|
-
/**
|
|
74
|
-
* @description - Function to get the webhook date
|
|
75
|
-
* @param materialSourceType - The type of material source (e.g., WEBHOOK)
|
|
76
|
-
* @param history - The history object containing commit information
|
|
77
|
-
* @returns - Formatted webhook date if available, otherwise an empty string
|
|
68
|
+
* This function returns a null/zero value corresponding to @type
|
|
69
|
+
*
|
|
70
|
+
* @param type - a RJSF supported type
|
|
78
71
|
*/
|
|
79
|
-
export declare const
|
|
72
|
+
export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
|
|
80
73
|
export {};
|
|
@@ -12,7 +12,7 @@ interface MaterialHistoryDTO {
|
|
|
12
12
|
Changes: unknown[];
|
|
13
13
|
WebhookData: WebhookDataType;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface MaterialHistoryType {
|
|
16
16
|
commitURL: string;
|
|
17
17
|
commit: MaterialHistoryDTO['Commit'];
|
|
18
18
|
author: MaterialHistoryDTO['Author'];
|
|
@@ -56,7 +56,6 @@ export interface CIMaterialType extends Pick<CIMaterialDTO, 'id' | 'gitMaterialI
|
|
|
56
56
|
gitURL: CIMaterialDTO['url'];
|
|
57
57
|
history: MaterialHistoryType[];
|
|
58
58
|
isSelected: boolean;
|
|
59
|
-
gitMaterialUrl?: string;
|
|
60
59
|
}
|
|
61
60
|
interface ImageCommentDTO {
|
|
62
61
|
id: number;
|