@devtron-labs/devtron-fe-common-lib 0.2.6 → 0.2.7-beta-1
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/types.d.ts +2 -2
- package/dist/Common/Constants.d.ts +12 -2
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -1
- package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +2 -0
- package/dist/Common/RJSF/constants.d.ts +0 -5
- package/dist/Common/RJSF/index.d.ts +0 -1
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
- package/dist/Common/Security/types.d.ts +4 -0
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +20 -17
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
- package/dist/Shared/Components/Collapse/Collapse.d.ts +3 -0
- package/dist/Shared/Components/Collapse/index.d.ts +2 -0
- package/dist/Shared/Components/Collapse/types.d.ts +7 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +3 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +96 -0
- package/dist/Shared/Components/CollapsibleList/index.d.ts +2 -0
- package/dist/Shared/Components/CommitChipCell/types.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +38 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +69 -0
- package/dist/Shared/Components/FilterButton/FilterButton.d.ts +5 -0
- package/dist/Shared/Components/FilterButton/index.d.ts +1 -0
- package/dist/Shared/Components/FilterButton/types.d.ts +12 -0
- package/dist/Shared/Components/FilterButton/utils.d.ts +15 -0
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +1 -1
- package/dist/Shared/Components/ImageChipCell/types.d.ts +13 -5
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +24 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +16 -0
- package/dist/Shared/Components/SelectPicker/utils.d.ts +11 -2
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +3 -2
- package/dist/Shared/Components/ShowMoreText/index.d.ts +1 -0
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +5 -1
- package/dist/Shared/Helpers.d.ts +7 -1
- package/dist/Shared/Services/app.service.d.ts +3 -1
- package/dist/Shared/Services/app.types.d.ts +116 -0
- package/dist/Shared/constants.d.ts +3 -0
- package/dist/Shared/types.d.ts +19 -7
- package/dist/Shared/validations.d.ts +3 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-3a640c3a.js → cssMode-2d35baf3.js} +1 -1
- package/dist/{freemarker2-7fcef7e9.js → freemarker2-801eccf9.js} +1 -1
- package/dist/{handlebars-bb8d8c8f.js → handlebars-6e296d28.js} +1 -1
- package/dist/{html-d9d12fbc.js → html-4f435985.js} +1 -1
- package/dist/{htmlMode-6f5e366b.js → htmlMode-f2200298.js} +1 -1
- package/dist/{index-50b1e60a.js → index-23d0960d.js} +30825 -30364
- package/dist/index.d.ts +2 -0
- package/dist/index.js +496 -478
- package/dist/{javascript-ee21afc6.js → javascript-275bb580.js} +1 -1
- package/dist/{jsonMode-f243ae3a.js → jsonMode-6da1b613.js} +1 -1
- package/dist/{liquid-210197a2.js → liquid-0076c56f.js} +1 -1
- package/dist/{mdx-47b9f654.js → mdx-a22f2078.js} +1 -1
- package/dist/{python-d072ae6f.js → python-e377e35a.js} +1 -1
- package/dist/{razor-bbc7aba8.js → razor-2583e71e.js} +1 -1
- package/dist/{tsMode-e3a0b064.js → tsMode-078c6213.js} +1 -1
- package/dist/{typescript-e0f3eca9.js → typescript-fe07d2c4.js} +1 -1
- package/dist/{xml-1408e523.js → xml-b10e934c.js} +1 -1
- package/dist/{yaml-81fab749.js → yaml-70947680.js} +1 -1
- package/package.json +1 -1
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/basicViewSchema.json.d.ts +0 -273
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts +0 -157
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/index.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +0 -24
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/utils.d.ts +0 -4
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -4
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
- package/dist/assets/editor.worker-60ba9509.js +0 -12
- package/dist/assets/yaml.worker-3bbe780a.js +0 -472
|
@@ -31,7 +31,6 @@ export interface CodeEditorInterface {
|
|
|
31
31
|
isKubernetes?: boolean;
|
|
32
32
|
cleanData?: boolean;
|
|
33
33
|
chartVersion?: any;
|
|
34
|
-
adjustEditorHeightToContent?: boolean;
|
|
35
34
|
}
|
|
36
35
|
export interface CodeEditorHeaderInterface {
|
|
37
36
|
children?: any;
|
|
@@ -63,7 +62,8 @@ export declare enum CodeEditorThemesKeys {
|
|
|
63
62
|
vsDarkDT = "vs-dark--dt",
|
|
64
63
|
deleteDraft = "delete-draft",
|
|
65
64
|
unpublished = "unpublished",
|
|
66
|
-
vs = "vs"
|
|
65
|
+
vs = "vs",
|
|
66
|
+
networkStatusInterface = "network-status-interface"
|
|
67
67
|
}
|
|
68
68
|
export interface CodeEditorInitialValueType {
|
|
69
69
|
mode: string;
|
|
@@ -43,7 +43,7 @@ export declare const URLS: {
|
|
|
43
43
|
GLOBAL_CONFIG_DOCKER: string;
|
|
44
44
|
DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
|
|
45
45
|
GLOBAL_CONFIG_SCOPED_VARIABLES: string;
|
|
46
|
-
|
|
46
|
+
NETWORK_STATUS_INTERFACE: string;
|
|
47
47
|
};
|
|
48
48
|
export declare const ROUTES: {
|
|
49
49
|
APP: string;
|
|
@@ -77,12 +77,15 @@ export declare const ROUTES: {
|
|
|
77
77
|
CONFIG_CD_PIPELINE: string;
|
|
78
78
|
MODULE_CONFIGURED: string;
|
|
79
79
|
RESOURCE_HISTORY_DEPLOYMENT: string;
|
|
80
|
+
ATTRIBUTES: string;
|
|
81
|
+
ATTRIBUTES_CREATE: string;
|
|
82
|
+
ATTRIBUTES_UPDATE: string;
|
|
80
83
|
APP_LIST_MIN: string;
|
|
81
84
|
CLUSTER_LIST_MIN: string;
|
|
82
85
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
83
86
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
84
87
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
85
|
-
|
|
88
|
+
CONFIG_DATA: string;
|
|
86
89
|
};
|
|
87
90
|
export declare enum KEY_VALUE {
|
|
88
91
|
KEY = "key",
|
|
@@ -272,3 +275,10 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
272
275
|
DD_MMM_YYYY_HH_MM: string;
|
|
273
276
|
DD_MMM_YYYY: string;
|
|
274
277
|
};
|
|
278
|
+
export declare const VULNERABILITIES_SORT_PRIORITY: {
|
|
279
|
+
critical: number;
|
|
280
|
+
high: number;
|
|
281
|
+
medium: number;
|
|
282
|
+
low: number;
|
|
283
|
+
unknown: number;
|
|
284
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TagDetailType } from './Types';
|
|
2
2
|
|
|
3
|
-
export declare const TagDetails: ({ index, tagData, setTagData, removeTag, tabIndex, suggestedTagsOptions, }: TagDetailType) => JSX.Element;
|
|
3
|
+
export declare const TagDetails: ({ index, tagData, setTagData, removeTag, tabIndex, suggestedTagsOptions, hidePropagateTag, }: TagDetailType) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TagLabelSelectType } from './Types';
|
|
2
2
|
|
|
3
|
-
export declare const TagLabelSelect: ({ isCreateApp, labelTags, setLabelTags, tabIndex }: TagLabelSelectType) => JSX.Element;
|
|
3
|
+
export declare const TagLabelSelect: ({ isCreateApp, labelTags, setLabelTags, tabIndex, hidePropagateTag }: TagLabelSelectType) => JSX.Element;
|
|
@@ -29,6 +29,7 @@ export interface TagLabelSelectType {
|
|
|
29
29
|
selectedProjectId?: number;
|
|
30
30
|
suggestedTagsOptions?: SuggestedTagOptionType[];
|
|
31
31
|
reloadProjectTags?: boolean;
|
|
32
|
+
hidePropagateTag?: boolean;
|
|
32
33
|
}
|
|
33
34
|
export interface TagDetailType {
|
|
34
35
|
index: number;
|
|
@@ -37,6 +38,7 @@ export interface TagDetailType {
|
|
|
37
38
|
removeTag?: (index: number) => void;
|
|
38
39
|
tabIndex?: number;
|
|
39
40
|
suggestedTagsOptions?: SuggestedTagOptionType[];
|
|
41
|
+
hidePropagateTag?: boolean;
|
|
40
42
|
}
|
|
41
43
|
export interface TagLabelValueSelectorType {
|
|
42
44
|
selectedTagIndex: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ScanVulnerabilitiesTableProps } from '../Types';
|
|
2
2
|
|
|
3
|
-
export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
|
|
3
|
+
export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick, }: ScanVulnerabilitiesTableProps): JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties } from 'react';
|
|
|
2
2
|
import { Placement } from 'tippy.js';
|
|
3
3
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
4
4
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
|
|
5
|
-
import { RegistryType } from '../Shared';
|
|
5
|
+
import { RegistryType, Severity } from '../Shared';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generic response type object with support for overriding the result type
|
|
@@ -493,7 +493,7 @@ export declare enum DeploymentAppTypes {
|
|
|
493
493
|
}
|
|
494
494
|
export interface VulnerabilityType {
|
|
495
495
|
name: string;
|
|
496
|
-
severity:
|
|
496
|
+
severity: Severity;
|
|
497
497
|
package: string;
|
|
498
498
|
version: string;
|
|
499
499
|
fixedVersion: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArtifactType, CIListItemType } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
|
|
4
|
-
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete,
|
|
4
|
+
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, rootClassName, renderCIListHeader, }: ArtifactType) => JSX.Element;
|
|
5
5
|
export default Artifacts;
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
2
|
|
|
3
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
3
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortOrder, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
4
4
|
export default DeploymentHistoryDiffView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogStageAccordionProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, }: LogStageAccordionProps) => JSX.Element;
|
|
3
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, }: LogStageAccordionProps) => JSX.Element;
|
|
4
4
|
export default LogStageAccordion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogsRendererType } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, }: LogsRendererType) => JSX.Element;
|
|
3
|
+
export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, fullScreenView, }: LogsRendererType) => JSX.Element;
|
|
4
4
|
export default LogsRenderer;
|
|
@@ -2,5 +2,5 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, }: TriggerDetailsType) => JSX.Element>;
|
|
5
|
-
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, }: TriggerOutputProps) => JSX.Element;
|
|
5
|
+
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, }: TriggerOutputProps) => JSX.Element;
|
|
6
6
|
export default TriggerOutput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps } from '../../../Common';
|
|
2
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
|
|
3
3
|
import { DeploymentStageType } from '../../constants';
|
|
4
4
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
5
|
|
|
@@ -143,12 +143,8 @@ export interface CurrentStatusType {
|
|
|
143
143
|
status: string;
|
|
144
144
|
finishedOn: string;
|
|
145
145
|
artifact: string;
|
|
146
|
-
message: string;
|
|
147
|
-
podStatus: string;
|
|
148
146
|
stage: DeploymentStageType;
|
|
149
147
|
type: HistoryComponentType;
|
|
150
|
-
isJobView?: boolean;
|
|
151
|
-
workerPodName?: string;
|
|
152
148
|
}
|
|
153
149
|
export interface StartDetailsType {
|
|
154
150
|
startedOn: string;
|
|
@@ -184,12 +180,8 @@ export interface TriggerDetailsType {
|
|
|
184
180
|
}
|
|
185
181
|
export interface ProgressingStatusType {
|
|
186
182
|
status: string;
|
|
187
|
-
message: string;
|
|
188
|
-
podStatus: string;
|
|
189
183
|
stage: DeploymentStageType;
|
|
190
184
|
type: HistoryComponentType;
|
|
191
|
-
finishedOn?: string;
|
|
192
|
-
workerPodName?: string;
|
|
193
185
|
}
|
|
194
186
|
export interface WorkerStatusType {
|
|
195
187
|
message: string;
|
|
@@ -206,12 +198,6 @@ export interface FinishedType {
|
|
|
206
198
|
}
|
|
207
199
|
export interface TriggerDetailsStatusIconType {
|
|
208
200
|
status: string;
|
|
209
|
-
isDeploymentWindowInfo?: boolean;
|
|
210
|
-
}
|
|
211
|
-
export interface LogsRendererType {
|
|
212
|
-
triggerDetails: History;
|
|
213
|
-
isBlobStorageConfigured: boolean;
|
|
214
|
-
parentType: HistoryComponentType;
|
|
215
201
|
}
|
|
216
202
|
export interface SyncStageResourceDetail {
|
|
217
203
|
id: number;
|
|
@@ -330,6 +316,21 @@ export interface TriggerOutputProps extends RenderRunSourceType {
|
|
|
330
316
|
deploymentHistoryResult: Pick<DeploymentHistoryResult, 'result'>;
|
|
331
317
|
setFetchTriggerIdData: React.Dispatch<React.SetStateAction<FetchIdDataStatus>>;
|
|
332
318
|
setTriggerHistory: React.Dispatch<React.SetStateAction<Map<Number, History>>>;
|
|
319
|
+
scrollToTop: ReturnType<typeof useScrollable>[1];
|
|
320
|
+
scrollToBottom: ReturnType<typeof useScrollable>[2];
|
|
321
|
+
}
|
|
322
|
+
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
|
|
323
|
+
triggerDetails: History;
|
|
324
|
+
loading: boolean;
|
|
325
|
+
userApprovalMetadata: UserApprovalMetadataType;
|
|
326
|
+
triggeredByEmail: string;
|
|
327
|
+
artifactId: number;
|
|
328
|
+
ciPipelineId: number;
|
|
329
|
+
resourceId?: number;
|
|
330
|
+
renderRunSource: (runSource: RunSourceType, isDeployedInThisResource: boolean) => JSX.Element;
|
|
331
|
+
}
|
|
332
|
+
export interface LogsRendererType extends Pick<HistoryLogsProps, 'fullScreenView' | 'triggerDetails' | 'isBlobStorageConfigured'> {
|
|
333
|
+
parentType: HistoryComponentType;
|
|
333
334
|
}
|
|
334
335
|
export interface DeploymentStatusDetailBreakdownType {
|
|
335
336
|
deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
|
|
@@ -368,6 +369,8 @@ export interface DeploymentTemplateHistoryType {
|
|
|
368
369
|
isUnpublished?: boolean;
|
|
369
370
|
isDeleteDraft?: boolean;
|
|
370
371
|
rootClassName?: string;
|
|
372
|
+
comparisonBodyClassName?: string;
|
|
373
|
+
sortOrder?: SortingOrder;
|
|
371
374
|
}
|
|
372
375
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
373
376
|
result?: DeploymentHistoryDetail;
|
|
@@ -480,7 +483,7 @@ export interface ArtifactType {
|
|
|
480
483
|
appReleaseTagNames?: string[];
|
|
481
484
|
tagsEditable?: boolean;
|
|
482
485
|
hideImageTaggingHardDelete?: boolean;
|
|
483
|
-
|
|
486
|
+
rootClassName?: string;
|
|
484
487
|
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
485
488
|
}
|
|
486
489
|
export interface CIListItemType extends Pick<GitChangesType, 'promotionApprovalMetadata' | 'selectedEnvironmentName'> {
|
|
@@ -602,7 +605,7 @@ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime
|
|
|
602
605
|
logs: string[];
|
|
603
606
|
isOpen: boolean;
|
|
604
607
|
}
|
|
605
|
-
export interface LogStageAccordionProps extends StageDetailType {
|
|
608
|
+
export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRendererType, 'fullScreenView'> {
|
|
606
609
|
handleStageClose: (index: number) => void;
|
|
607
610
|
handleStageOpen: (index: number) => void;
|
|
608
611
|
stageIndex: number;
|
|
@@ -5,3 +5,4 @@ export declare const getParsedTriggerHistory: (result: any) => DeploymentHistory
|
|
|
5
5
|
export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
|
|
6
6
|
export declare const renderIcon: (iconState: string) => JSX.Element;
|
|
7
7
|
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
|
8
|
+
export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TippyProps } from '@tippyjs/react';
|
|
3
|
+
|
|
4
|
+
export interface CollapsibleListItem {
|
|
5
|
+
/**
|
|
6
|
+
* The title of the list item.
|
|
7
|
+
*/
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* The subtitle of the list item.
|
|
11
|
+
*/
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Configuration for the icon.
|
|
15
|
+
*/
|
|
16
|
+
iconConfig?: {
|
|
17
|
+
/**
|
|
18
|
+
* A React component representing an icon to be displayed with the list item.
|
|
19
|
+
*/
|
|
20
|
+
Icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
21
|
+
/**
|
|
22
|
+
* Properties for the icon component.
|
|
23
|
+
*/
|
|
24
|
+
props?: React.SVGProps<SVGSVGElement>;
|
|
25
|
+
/**
|
|
26
|
+
* Properties for the tooltip component of the icon.
|
|
27
|
+
*/
|
|
28
|
+
tooltipProps?: TippyProps;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The URL of the nav link.
|
|
32
|
+
*/
|
|
33
|
+
href?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The callback function to handle click events on the nav link.
|
|
36
|
+
*/
|
|
37
|
+
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
38
|
+
}
|
|
39
|
+
export interface CollapsibleListConfig {
|
|
40
|
+
/**
|
|
41
|
+
* The unique identifier for the collapsible list.
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* The header text for the collapsible list.
|
|
46
|
+
*/
|
|
47
|
+
header: string;
|
|
48
|
+
/**
|
|
49
|
+
* Configuration for the header icon.
|
|
50
|
+
*/
|
|
51
|
+
headerIconConfig?: {
|
|
52
|
+
/**
|
|
53
|
+
* A React component representing an icon button to be displayed with the header.
|
|
54
|
+
*/
|
|
55
|
+
Icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
56
|
+
/**
|
|
57
|
+
* Properties for the header icon component.
|
|
58
|
+
*/
|
|
59
|
+
props?: React.SVGProps<SVGSVGElement>;
|
|
60
|
+
/**
|
|
61
|
+
* Properties for the header icon button component.
|
|
62
|
+
*/
|
|
63
|
+
btnProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
64
|
+
/**
|
|
65
|
+
* Properties for the tooltip component of the icon.
|
|
66
|
+
*/
|
|
67
|
+
tooltipProps?: TippyProps;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Text to display when there are no items in the list.
|
|
71
|
+
* @default 'No items found.'
|
|
72
|
+
*/
|
|
73
|
+
noItemsText?: string;
|
|
74
|
+
/**
|
|
75
|
+
* An array of items to be displayed in the collapsible list.
|
|
76
|
+
*/
|
|
77
|
+
items: CollapsibleListItem[];
|
|
78
|
+
/**
|
|
79
|
+
* Boolean indicating whether the list is expanded or not.
|
|
80
|
+
*/
|
|
81
|
+
isExpanded?: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface CollapsibleListProps {
|
|
84
|
+
/**
|
|
85
|
+
* An array of collapsible list configurations.
|
|
86
|
+
*/
|
|
87
|
+
config: CollapsibleListConfig[];
|
|
88
|
+
/**
|
|
89
|
+
* Function to handle the collapse button click event.
|
|
90
|
+
*
|
|
91
|
+
* @param id - The unique identifier for the item to collapse.
|
|
92
|
+
* @param e - The mouse event triggered by the button click.
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
onCollapseBtnClick?: (id: string, e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
96
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
+
import { DeploymentConfigDiffProps } from '..';
|
|
3
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, EnvResourceType, TemplateListDTO } from '../../Services/app.types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves the draft data from the given configuration data object.
|
|
7
|
+
*
|
|
8
|
+
* @param configData - The configuration data object.
|
|
9
|
+
* @returns The draft data if available, otherwise the original data.
|
|
10
|
+
*/
|
|
11
|
+
export declare const getDraftData: (configData: ConfigMapSecretDataConfigDatumDTO) => ConfigMapSecretDataConfigDatumDTO;
|
|
12
|
+
/**
|
|
13
|
+
* Combines two arrays of configuration data objects based on a 'name' key.
|
|
14
|
+
*
|
|
15
|
+
* @param primaryArray - The first array of configuration data objects.
|
|
16
|
+
* @param secondaryArray - The second array of configuration data objects.
|
|
17
|
+
* @returns The combined array of configuration data objects.
|
|
18
|
+
*/
|
|
19
|
+
export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecretDataConfigDatumDTO[], secondaryArray: ConfigMapSecretDataConfigDatumDTO[]) => ConfigMapSecretDataConfigDatumDTO[][];
|
|
20
|
+
/**
|
|
21
|
+
* Generates a list of deployment configurations for application environments and identifies changes between the current and compare lists.
|
|
22
|
+
*
|
|
23
|
+
* @param currentList - The current deployment configuration list.
|
|
24
|
+
* @param compareList - The deployment configuration list to compare against.
|
|
25
|
+
* @param getNavItemHref - A function to generate navigation item URLs based on the resource type and resource name.
|
|
26
|
+
* @param sortOrder - (Optional) The order in which to sort the deployment templates.
|
|
27
|
+
*
|
|
28
|
+
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
29
|
+
*/
|
|
30
|
+
export declare const getAppEnvDeploymentConfigList: (currentList: AppEnvDeploymentConfigDTO, compareList: AppEnvDeploymentConfigDTO, getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string, sortOrder?: SortingOrder) => {
|
|
31
|
+
configList: DeploymentConfigDiffProps['configList'];
|
|
32
|
+
navList: DeploymentConfigDiffProps['navList'];
|
|
33
|
+
collapsibleNavList: DeploymentConfigDiffProps['collapsibleNavList'];
|
|
34
|
+
};
|
|
35
|
+
export declare const getDefaultVersionAndPreviousDeploymentOptions: (data: TemplateListDTO[]) => {
|
|
36
|
+
previousDeployments: TemplateListDTO[];
|
|
37
|
+
defaultVersions: TemplateListDTO[];
|
|
38
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
+
import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO } from '../../Services';
|
|
3
|
+
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
4
|
+
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
|
+
import { SelectPickerProps } from '../SelectPicker';
|
|
6
|
+
import { CollapseProps } from '../Collapse';
|
|
7
|
+
|
|
8
|
+
export interface DeploymentConfigType {
|
|
9
|
+
list: DeploymentHistoryDetail;
|
|
10
|
+
heading: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface DeploymentConfigListItem {
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
primaryConfig: DeploymentConfigType;
|
|
16
|
+
secondaryConfig: DeploymentConfigType;
|
|
17
|
+
hasDiff?: boolean;
|
|
18
|
+
isDeploymentTemplate?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export type DeploymentConfigDiffSelectPickerProps = {
|
|
21
|
+
type: 'string';
|
|
22
|
+
id: string;
|
|
23
|
+
text: string | React.ReactNode;
|
|
24
|
+
selectPickerProps?: never;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'selectPicker';
|
|
27
|
+
id: string;
|
|
28
|
+
text?: never;
|
|
29
|
+
selectPickerProps: SelectPickerProps;
|
|
30
|
+
};
|
|
31
|
+
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
|
|
32
|
+
hasDiff?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
|
|
35
|
+
items: DeploymentConfigDiffNavigationItem[];
|
|
36
|
+
}
|
|
37
|
+
export interface DeploymentConfigDiffProps {
|
|
38
|
+
isLoading?: boolean;
|
|
39
|
+
configList: DeploymentConfigListItem[];
|
|
40
|
+
headerText?: string;
|
|
41
|
+
scrollIntoViewId?: string;
|
|
42
|
+
selectorsConfig: {
|
|
43
|
+
primaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
44
|
+
secondaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
45
|
+
};
|
|
46
|
+
sortingConfig?: {
|
|
47
|
+
sortBy: string;
|
|
48
|
+
sortOrder: SortingOrder;
|
|
49
|
+
handleSorting: () => void;
|
|
50
|
+
};
|
|
51
|
+
navList: DeploymentConfigDiffNavigationItem[];
|
|
52
|
+
collapsibleNavList: DeploymentConfigDiffNavigationCollapsibleItem[];
|
|
53
|
+
goBackURL?: string;
|
|
54
|
+
navHeading: string;
|
|
55
|
+
navHelpText?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText'> {
|
|
58
|
+
}
|
|
59
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
60
|
+
}
|
|
61
|
+
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
62
|
+
id: string;
|
|
63
|
+
title: string;
|
|
64
|
+
children: React.ReactNode;
|
|
65
|
+
hasDiff?: boolean;
|
|
66
|
+
isExpanded?: boolean;
|
|
67
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
68
|
+
}
|
|
69
|
+
export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FilterButton } from './FilterButton';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OptionType } from '../../../Common/Types';
|
|
2
|
+
|
|
3
|
+
export interface FilterButtonPropsType {
|
|
4
|
+
placeholder: string;
|
|
5
|
+
appliedFilters: string[];
|
|
6
|
+
options: OptionType[];
|
|
7
|
+
handleApplyChange: (selectedOptions: string[]) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
getFormattedFilterLabelValue?: (identifier: string) => string;
|
|
10
|
+
menuAlignFromRight?: boolean;
|
|
11
|
+
controlWidth?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const getFilterStyle: (controlWidth?: string, menuAlignFromRight?: boolean) => {
|
|
2
|
+
menu: (base: any) => any;
|
|
3
|
+
control: (base: any, state: any) => any;
|
|
4
|
+
container: (base: any) => any;
|
|
5
|
+
option: (base: any, state: any) => any;
|
|
6
|
+
singleValue: (base: any) => any;
|
|
7
|
+
valueContainer: (base: any) => any;
|
|
8
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
9
|
+
group: (base: any) => any;
|
|
10
|
+
groupHeading: (base: any) => any;
|
|
11
|
+
menuList: (base: any) => any;
|
|
12
|
+
multiValue: (base: any) => any;
|
|
13
|
+
multiValueLabel: (base: any) => any;
|
|
14
|
+
placeholder: (base: any) => any;
|
|
15
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ImageChipCellProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const ImageChipCell: ({
|
|
3
|
+
declare const ImageChipCell: ({ imagePath, registryType, handleClick, isExpanded: isExpandedProp, placement, }: ImageChipCellProps) => JSX.Element;
|
|
4
4
|
export default ImageChipCell;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as Tippy } from '@tippyjs/react';
|
|
2
|
+
import { ComponentProps, SyntheticEvent } from 'react';
|
|
2
3
|
import { RegistryType } from '../../types';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
type ImageChipCellButtonActionProps = {
|
|
5
6
|
handleClick: (e: SyntheticEvent) => void;
|
|
6
|
-
imagePath: string;
|
|
7
7
|
isExpanded: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
} | {
|
|
9
|
+
handleClick?: never;
|
|
10
|
+
isExpanded?: never;
|
|
11
|
+
};
|
|
12
|
+
export type ImageChipCellProps = {
|
|
13
|
+
imagePath: string;
|
|
14
|
+
registryType?: RegistryType;
|
|
15
|
+
placement?: ComponentProps<typeof Tippy>['placement'];
|
|
16
|
+
} & ImageChipCellButtonActionProps;
|
|
17
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { KeyValueTableProps } from './KeyValueTable.types';
|
|
2
2
|
|
|
3
|
-
export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed, }: KeyValueTableProps<K>) => JSX.Element;
|
|
3
|
+
export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed, readOnly, showError, validationSchema, errorMessages, onError, }: KeyValueTableProps<K>) => JSX.Element;
|