@devtron-labs/devtron-fe-common-lib 0.2.3-beta-2 → 0.2.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/types.d.ts +2 -1
- package/dist/Common/Constants.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/Artifacts.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 +17 -18
- package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -1
- package/dist/Shared/Components/CommitChipCell/types.d.ts +1 -1
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +1 -1
- package/dist/Shared/Components/ImageChipCell/types.d.ts +5 -13
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +2 -3
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +0 -5
- package/dist/Shared/constants.d.ts +0 -3
- package/dist/Shared/types.d.ts +7 -0
- package/dist/Shared/validations.d.ts +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-de6faa4a.js → cssMode-fd39d23a.js} +1 -1
- package/dist/{freemarker2-c60abb78.js → freemarker2-b0c1b42f.js} +1 -1
- package/dist/{handlebars-09d01367.js → handlebars-4f8604db.js} +1 -1
- package/dist/{html-14677577.js → html-e27eca1d.js} +1 -1
- package/dist/{htmlMode-e4d19323.js → htmlMode-cd7005f2.js} +1 -1
- package/dist/{index-1384cd33.js → index-333d39d1.js} +18688 -18703
- package/dist/index.d.ts +2 -0
- package/dist/index.js +287 -289
- package/dist/{javascript-ecce3ea1.js → javascript-e1905ef8.js} +1 -1
- package/dist/{jsonMode-f9dbcc63.js → jsonMode-e6af9770.js} +1 -1
- package/dist/{liquid-0725a2c3.js → liquid-070f6f2b.js} +1 -1
- package/dist/{mdx-7a1eea80.js → mdx-4017fc34.js} +1 -1
- package/dist/{python-89f93c65.js → python-f87167e9.js} +1 -1
- package/dist/{razor-f241415c.js → razor-6ad674f6.js} +1 -1
- package/dist/{tsMode-ba5bb038.js → tsMode-822cce51.js} +1 -1
- package/dist/{typescript-d9aab804.js → typescript-45b0a845.js} +1 -1
- package/dist/{xml-1a37832f.js → xml-548f7e19.js} +1 -1
- package/dist/{yaml-6ba9dea5.js → yaml-8ba27eeb.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/ShowMoreText/index.d.ts +0 -1
|
@@ -62,7 +62,8 @@ export declare enum CodeEditorThemesKeys {
|
|
|
62
62
|
vsDarkDT = "vs-dark--dt",
|
|
63
63
|
deleteDraft = "delete-draft",
|
|
64
64
|
unpublished = "unpublished",
|
|
65
|
-
vs = "vs"
|
|
65
|
+
vs = "vs",
|
|
66
|
+
networkStatusInterface = "network-status-interface"
|
|
66
67
|
}
|
|
67
68
|
export interface CodeEditorInitialValueType {
|
|
68
69
|
mode: string;
|
|
@@ -43,6 +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
|
+
NETWORK_STATUS_INTERFACE: string;
|
|
46
47
|
};
|
|
47
48
|
export declare const ROUTES: {
|
|
48
49
|
APP: string;
|
|
@@ -76,6 +77,9 @@ export declare const ROUTES: {
|
|
|
76
77
|
CONFIG_CD_PIPELINE: string;
|
|
77
78
|
MODULE_CONFIGURED: string;
|
|
78
79
|
RESOURCE_HISTORY_DEPLOYMENT: string;
|
|
80
|
+
ATTRIBUTES: string;
|
|
81
|
+
ATTRIBUTES_CREATE: string;
|
|
82
|
+
ATTRIBUTES_UPDATE: string;
|
|
79
83
|
APP_LIST_MIN: string;
|
|
80
84
|
CLUSTER_LIST_MIN: string;
|
|
81
85
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: 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, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
|
|
5
5
|
export default Artifacts;
|
|
@@ -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,
|
|
3
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, }: 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,
|
|
3
|
+
export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, }: 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,
|
|
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;
|
|
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
|
|
2
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps } from '../../../Common';
|
|
3
3
|
import { DeploymentStageType } from '../../constants';
|
|
4
4
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
5
|
|
|
@@ -143,8 +143,12 @@ export interface CurrentStatusType {
|
|
|
143
143
|
status: string;
|
|
144
144
|
finishedOn: string;
|
|
145
145
|
artifact: string;
|
|
146
|
+
message: string;
|
|
147
|
+
podStatus: string;
|
|
146
148
|
stage: DeploymentStageType;
|
|
147
149
|
type: HistoryComponentType;
|
|
150
|
+
isJobView?: boolean;
|
|
151
|
+
workerPodName?: string;
|
|
148
152
|
}
|
|
149
153
|
export interface StartDetailsType {
|
|
150
154
|
startedOn: string;
|
|
@@ -180,8 +184,12 @@ export interface TriggerDetailsType {
|
|
|
180
184
|
}
|
|
181
185
|
export interface ProgressingStatusType {
|
|
182
186
|
status: string;
|
|
187
|
+
message: string;
|
|
188
|
+
podStatus: string;
|
|
183
189
|
stage: DeploymentStageType;
|
|
184
190
|
type: HistoryComponentType;
|
|
191
|
+
finishedOn?: string;
|
|
192
|
+
workerPodName?: string;
|
|
185
193
|
}
|
|
186
194
|
export interface WorkerStatusType {
|
|
187
195
|
message: string;
|
|
@@ -198,6 +206,12 @@ export interface FinishedType {
|
|
|
198
206
|
}
|
|
199
207
|
export interface TriggerDetailsStatusIconType {
|
|
200
208
|
status: string;
|
|
209
|
+
isDeploymentWindowInfo?: boolean;
|
|
210
|
+
}
|
|
211
|
+
export interface LogsRendererType {
|
|
212
|
+
triggerDetails: History;
|
|
213
|
+
isBlobStorageConfigured: boolean;
|
|
214
|
+
parentType: HistoryComponentType;
|
|
201
215
|
}
|
|
202
216
|
export interface SyncStageResourceDetail {
|
|
203
217
|
id: number;
|
|
@@ -316,21 +330,6 @@ export interface TriggerOutputProps extends RenderRunSourceType {
|
|
|
316
330
|
deploymentHistoryResult: Pick<DeploymentHistoryResult, 'result'>;
|
|
317
331
|
setFetchTriggerIdData: React.Dispatch<React.SetStateAction<FetchIdDataStatus>>;
|
|
318
332
|
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;
|
|
334
333
|
}
|
|
335
334
|
export interface DeploymentStatusDetailBreakdownType {
|
|
336
335
|
deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
|
|
@@ -481,7 +480,7 @@ export interface ArtifactType {
|
|
|
481
480
|
appReleaseTagNames?: string[];
|
|
482
481
|
tagsEditable?: boolean;
|
|
483
482
|
hideImageTaggingHardDelete?: boolean;
|
|
484
|
-
|
|
483
|
+
jobCIClass?: string;
|
|
485
484
|
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
486
485
|
}
|
|
487
486
|
export interface CIListItemType extends Pick<GitChangesType, 'promotionApprovalMetadata' | 'selectedEnvironmentName'> {
|
|
@@ -603,7 +602,7 @@ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime
|
|
|
603
602
|
logs: string[];
|
|
604
603
|
isOpen: boolean;
|
|
605
604
|
}
|
|
606
|
-
export interface LogStageAccordionProps extends StageDetailType
|
|
605
|
+
export interface LogStageAccordionProps extends StageDetailType {
|
|
607
606
|
handleStageClose: (index: number) => void;
|
|
608
607
|
handleStageOpen: (index: number) => void;
|
|
609
608
|
stageIndex: number;
|
|
@@ -5,4 +5,3 @@ 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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ImageChipCellProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const ImageChipCell: ({
|
|
3
|
+
declare const ImageChipCell: ({ handleClick, imagePath, isExpanded, registryType }: ImageChipCellProps) => JSX.Element;
|
|
4
4
|
export default ImageChipCell;
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentProps, SyntheticEvent } from 'react';
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
3
2
|
import { RegistryType } from '../../types';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
export interface ImageChipCellProps {
|
|
6
5
|
handleClick: (e: SyntheticEvent) => void;
|
|
7
|
-
isExpanded: boolean;
|
|
8
|
-
} | {
|
|
9
|
-
handleClick?: never;
|
|
10
|
-
isExpanded?: never;
|
|
11
|
-
};
|
|
12
|
-
export type ImageChipCellProps = {
|
|
13
6
|
imagePath: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
7
|
+
isExpanded: boolean;
|
|
8
|
+
registryType: RegistryType;
|
|
9
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
interface ShowMoreTextProps {
|
|
2
2
|
text: string;
|
|
3
|
-
textClass?: string;
|
|
4
3
|
}
|
|
5
|
-
declare const ShowMoreText: ({ text
|
|
6
|
-
export
|
|
4
|
+
export declare const ShowMoreText: ({ text }: ShowMoreTextProps) => JSX.Element;
|
|
5
|
+
export {};
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -36,9 +36,4 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
|
36
36
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
37
37
|
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
38
38
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
39
|
-
/**
|
|
40
|
-
* @description - Function to open a new tab with the given url
|
|
41
|
-
* @param url - url to be opened in new tab
|
|
42
|
-
*/
|
|
43
|
-
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
44
39
|
export {};
|
|
@@ -347,9 +347,6 @@ export declare const statusColor: {
|
|
|
347
347
|
unabletofetch: string;
|
|
348
348
|
hibernating: string;
|
|
349
349
|
};
|
|
350
|
-
export declare const PULSATING_STATUS_MAP: {
|
|
351
|
-
[key in keyof typeof statusColor]?: boolean;
|
|
352
|
-
};
|
|
353
350
|
export declare const APP_STATUS_HEADERS: string[];
|
|
354
351
|
export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
|
|
355
352
|
export declare const AppListConstants: {
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -541,6 +541,13 @@ export interface BatchConfigType {
|
|
|
541
541
|
export interface scrollableInterface {
|
|
542
542
|
autoBottomScroll: boolean;
|
|
543
543
|
}
|
|
544
|
+
export declare enum URLProtocolType {
|
|
545
|
+
HTTP = "http:",
|
|
546
|
+
HTTPS = "https:",
|
|
547
|
+
SSH = "ssh:",
|
|
548
|
+
SMTP = "smtp:",
|
|
549
|
+
S3 = "s3:"
|
|
550
|
+
}
|
|
544
551
|
export type BaseFilterQueryParams<T> = {
|
|
545
552
|
/**
|
|
546
553
|
* Offset for the list result
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { URLProtocolType } from './types';
|
|
2
|
+
|
|
1
3
|
export interface ValidationResponseType {
|
|
2
4
|
isValid: boolean;
|
|
3
5
|
message?: string;
|
|
@@ -20,6 +22,7 @@ export declare const validateStringLength: (value: string, maxLimit: number, min
|
|
|
20
22
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
21
23
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
22
24
|
export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
|
|
25
|
+
export declare const validateProtocols: (url: string, protocols: URLProtocolType[], isRequired?: boolean) => ValidationResponseType;
|
|
23
26
|
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|
|
24
27
|
export declare const validateUniqueKeys: (keys: string[]) => {
|
|
25
28
|
isValid: boolean;
|