@devtron-labs/devtron-fe-common-lib 0.2.10 → 0.2.12
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/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 +18 -17
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
- 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 +13 -5
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +7 -0
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -1
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +3 -2
- package/dist/Shared/Components/ShowMoreText/index.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +5 -0
- package/dist/Shared/constants.d.ts +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-c662d6e3.js → cssMode-14cad9f0.js} +1 -1
- package/dist/{freemarker2-aa7e1cef.js → freemarker2-772b4500.js} +1 -1
- package/dist/{handlebars-4c137fcc.js → handlebars-178d367f.js} +1 -1
- package/dist/{html-7d035382.js → html-b690a3db.js} +1 -1
- package/dist/{htmlMode-62a2295e.js → htmlMode-7022dce4.js} +1 -1
- package/dist/{index-c1965425.js → index-65257094.js} +18704 -18648
- package/dist/index.js +316 -312
- package/dist/{javascript-164f5d29.js → javascript-ed8f9d3e.js} +1 -1
- package/dist/{jsonMode-fe8f4e94.js → jsonMode-fda4233b.js} +1 -1
- package/dist/{liquid-f1e74cbe.js → liquid-009af8bd.js} +1 -1
- package/dist/{mdx-5c57e38c.js → mdx-dd307e97.js} +1 -1
- package/dist/{python-d843b478.js → python-afbaaea3.js} +1 -1
- package/dist/{razor-cc78fc83.js → razor-a6f72ffc.js} +1 -1
- package/dist/{tsMode-38f892b6.js → tsMode-8f530645.js} +1 -1
- package/dist/{typescript-7d752a06.js → typescript-af145fcf.js} +1 -1
- package/dist/{xml-4bc85e14.js → xml-c852d532.js} +1 -1
- package/dist/{yaml-c61dd5b2.js → yaml-1ec8b4bf.js} +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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, SortingOrder } 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;
|
|
@@ -482,7 +483,7 @@ export interface ArtifactType {
|
|
|
482
483
|
appReleaseTagNames?: string[];
|
|
483
484
|
tagsEditable?: boolean;
|
|
484
485
|
hideImageTaggingHardDelete?: boolean;
|
|
485
|
-
|
|
486
|
+
rootClassName?: string;
|
|
486
487
|
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
487
488
|
}
|
|
488
489
|
export interface CIListItemType extends Pick<GitChangesType, 'promotionApprovalMetadata' | 'selectedEnvironmentName'> {
|
|
@@ -604,7 +605,7 @@ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime
|
|
|
604
605
|
logs: string[];
|
|
605
606
|
isOpen: boolean;
|
|
606
607
|
}
|
|
607
|
-
export interface LogStageAccordionProps extends StageDetailType {
|
|
608
|
+
export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRendererType, 'fullScreenView'> {
|
|
608
609
|
handleStageClose: (index: number) => void;
|
|
609
610
|
handleStageOpen: (index: number) => void;
|
|
610
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;
|
|
@@ -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 {};
|
|
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
|
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, variant, ...props }: SelectPickerProps) => JSX.Element;
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, variant, shouldMenuAlignRight, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -86,5 +86,12 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
86
86
|
* @default false
|
|
87
87
|
*/
|
|
88
88
|
disableDescriptionEllipsis?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* If true, the menu is aligned at the right end to prevent going outside of viewport
|
|
91
|
+
* in case of menu being larger than the control
|
|
92
|
+
*
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
shouldMenuAlignRight?: boolean;
|
|
89
96
|
}
|
|
90
97
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GroupBase, OptionsOrGroups, StylesConfig } from 'react-select';
|
|
2
2
|
import { SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
|
|
4
|
-
export declare const getCommonSelectStyle: ({ error, size, menuSize, variant, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize' | 'variant'>) => StylesConfig<SelectPickerOptionType>;
|
|
4
|
+
export declare const getCommonSelectStyle: ({ error, size, menuSize, variant, shouldMenuAlignRight, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize' | 'variant' | 'shouldMenuAlignRight'>) => StylesConfig<SelectPickerOptionType>;
|
|
5
5
|
/**
|
|
6
6
|
* Retrieves an option from the options list based on the provided value.
|
|
7
7
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface ShowMoreTextProps {
|
|
2
2
|
text: string;
|
|
3
|
+
textClass?: string;
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
-
export
|
|
5
|
+
declare const ShowMoreText: ({ text, textClass }: ShowMoreTextProps) => JSX.Element;
|
|
6
|
+
export default ShowMoreText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ShowMoreText } from './ShowMoreText';
|
|
@@ -32,6 +32,7 @@ export * from './IframeContainer';
|
|
|
32
32
|
export * from './Plugin';
|
|
33
33
|
export * from './KeyValueTable';
|
|
34
34
|
export * from './SelectPicker';
|
|
35
|
+
export * from './ShowMoreText';
|
|
35
36
|
export * from './CollapsibleList';
|
|
36
37
|
export * from './DeploymentConfigDiff';
|
|
37
38
|
export * from './DetectBottom';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -39,4 +39,9 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
|
39
39
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
40
40
|
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
41
41
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
42
|
+
/**
|
|
43
|
+
* @description - Function to open a new tab with the given url
|
|
44
|
+
* @param url - url to be opened in new tab
|
|
45
|
+
*/
|
|
46
|
+
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
42
47
|
export {};
|
|
@@ -347,6 +347,9 @@ 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
|
+
};
|
|
350
353
|
export declare const APP_STATUS_HEADERS: string[];
|
|
351
354
|
export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
|
|
352
355
|
export declare const AppListConstants: {
|