@devtron-labs/devtron-fe-common-lib 1.5.6 → 1.5.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/{@code-editor-CZEHtHpd.js → @code-editor-BKHJxN67.js} +10692 -10760
- package/dist/{@common-rjsf-BIgLDvCI.js → @common-rjsf-D9ZQTT8h.js} +2 -2
- package/dist/{@framer-motion-CtC3e2uC.js → @framer-motion-CbfcgbXI.js} +1 -1
- package/dist/{@react-dates-BlBjJ115.js → @react-dates-CHLhA4kl.js} +1 -1
- package/dist/{@react-select-CjYy5-X-.js → @react-select-CgLj7C5f.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DCAYOwGQ.js → @react-virtualized-sticky-tree-Cj8etBAu.js} +1 -1
- package/dist/{@vendor-CB7cq1II.js → @vendor-ROKJESOw.js} +3646 -3646
- package/dist/Common/CustomTagSelector/index.d.ts +0 -2
- package/dist/Common/ImageTags.Types.d.ts +2 -0
- package/dist/Common/ImageTags.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -14
- package/dist/Common/index.d.ts +0 -1
- package/dist/Shared/Components/Button/constants.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +62 -25
- package/dist/Shared/Components/EditableTextArea/types.d.ts +0 -1
- package/dist/Shared/Components/FormFieldWrapper/FormFieldInfo.d.ts +3 -0
- package/dist/Shared/Components/FormFieldWrapper/FormFieldLabel.d.ts +3 -0
- package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +3 -0
- package/dist/Shared/Components/FormFieldWrapper/index.d.ts +2 -0
- package/dist/Shared/Components/FormFieldWrapper/types.d.ts +22 -0
- package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +1 -1
- package/dist/Shared/Components/ImageCard/types.d.ts +2 -2
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -13
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformBadgeList.d.ts +3 -0
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +3 -0
- package/dist/Shared/Components/TargetPlatforms/index.d.ts +3 -0
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +7 -0
- package/dist/Shared/Components/Textarea/Textarea.component.d.ts +3 -0
- package/dist/Shared/Components/Textarea/constants.d.ts +4 -0
- package/dist/Shared/Components/Textarea/index.d.ts +2 -0
- package/dist/Shared/Components/Textarea/types.d.ts +17 -0
- package/dist/Shared/Components/ThemeSwitcher/index.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Helpers.d.ts +2 -1
- package/dist/Shared/Services/app.types.d.ts +3 -2
- package/dist/Shared/constants.d.ts +3 -0
- package/dist/Shared/types.d.ts +6 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-stack.548dd28c.svg +3 -0
- package/dist/index.js +679 -674
- package/package.json +1 -1
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +0 -2
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +0 -2
- package/dist/Common/ResizableTextarea.d.ts +0 -3
@@ -1,6 +1,4 @@
|
|
1
1
|
export { default as PropagateTagInfo } from './PropagateTagInfo';
|
2
|
-
export * from './TagDetails';
|
3
|
-
export * from './TagLabelValueSelector';
|
4
2
|
export * from './ResizableTagTextArea';
|
5
3
|
export * from './Types';
|
6
4
|
export { validateTagKeyValue, validateTagValue } from './tags.utils';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
1
2
|
export interface ReleaseTag {
|
2
3
|
id: number;
|
3
4
|
tagName: string;
|
@@ -37,4 +38,5 @@ export interface ImageButtonType {
|
|
37
38
|
isSuperAdmin: boolean;
|
38
39
|
duplicateTag?: boolean;
|
39
40
|
hideHardDelete?: boolean;
|
41
|
+
startIcon?: ReactElement;
|
40
42
|
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ImageButtonType, ImageTaggingContainerType } from './ImageTags.Types';
|
2
2
|
export declare const ImageTagsContainer: ({ ciPipelineId, artifactId, imageComment, imageReleaseTags, updateCurrentAppMaterial, appReleaseTagNames, setAppReleaseTagNames, tagsEditable, setTagsEditable, toggleCardMode, hideHardDelete, forceReInit, isSuperAdmin, }: ImageTaggingContainerType) => JSX.Element;
|
3
|
-
export declare const ImageTagButton: ({ text, isSoftDeleted, isEditing, onSoftDeleteClick, onHardDeleteClick, tagId, softDeleteTags, isSuperAdmin, duplicateTag, hideHardDelete, }: ImageButtonType) => JSX.Element;
|
3
|
+
export declare const ImageTagButton: ({ text, isSoftDeleted, isEditing, onSoftDeleteClick, onHardDeleteClick, tagId, softDeleteTags, isSuperAdmin, duplicateTag, hideHardDelete, startIcon, }: ImageButtonType) => JSX.Element;
|
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 } from '../Shared';
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO } 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
|
@@ -467,6 +467,7 @@ export interface CDMaterialType {
|
|
467
467
|
* Denotes trigger blocking due to mandatory tags, (might be used for plugins and other features in future)
|
468
468
|
*/
|
469
469
|
deploymentBlockedState?: PolicyBlockInfo;
|
470
|
+
targetPlatforms: TargetPlatformItemDTO[];
|
470
471
|
}
|
471
472
|
export declare enum CDMaterialServiceEnum {
|
472
473
|
ROLLBACK = "rollback",
|
@@ -672,19 +673,6 @@ export interface UseSearchString {
|
|
672
673
|
[key: string]: string;
|
673
674
|
};
|
674
675
|
}
|
675
|
-
export interface ResizableTextareaProps {
|
676
|
-
minHeight?: number;
|
677
|
-
maxHeight?: number;
|
678
|
-
value?: string;
|
679
|
-
onChange?: (e: any) => void;
|
680
|
-
onBlur?: (e: any) => void;
|
681
|
-
onFocus?: (e: any) => void;
|
682
|
-
className?: string;
|
683
|
-
placeholder?: string;
|
684
|
-
disabled?: boolean;
|
685
|
-
name?: string;
|
686
|
-
dataTestId?: string;
|
687
|
-
}
|
688
676
|
export interface AsyncState<T> {
|
689
677
|
loading: boolean;
|
690
678
|
result: T;
|
package/dist/Common/index.d.ts
CHANGED
@@ -34,7 +34,6 @@ export * from './Policy.Types';
|
|
34
34
|
export { default as DeleteComponent } from './DeleteComponentModal/DeleteComponent';
|
35
35
|
export * from './ImageTags';
|
36
36
|
export * from './ImageTags.Types';
|
37
|
-
export * from './ResizableTextarea';
|
38
37
|
export { default as DebouncedSearch } from './DebouncedSearch/DebouncedSearch';
|
39
38
|
export { default as Grid } from './Grid/Grid';
|
40
39
|
export { default as Select } from './Select/Select';
|
@@ -2,5 +2,4 @@ import { ProgressingProps } from '../../../Common/Types';
|
|
2
2
|
import { ButtonProps } from './types';
|
3
3
|
export declare const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
4
4
|
export declare const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
|
5
|
-
export declare const BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
|
6
5
|
export declare const ICON_BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ArtifactType, CIListItemType } from './types';
|
2
|
-
export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
|
3
|
-
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobCI, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, rootClassName, renderCIListHeader, }: ArtifactType) => JSX.Element;
|
2
|
+
export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, targetPlatforms, }: CIListItemType) => JSX.Element;
|
3
|
+
declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobCI, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, rootClassName, renderCIListHeader, targetPlatforms, }: ArtifactType) => JSX.Element;
|
4
4
|
export default Artifacts;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
|
2
2
|
export declare const LogResizeButton: ({ shortcutCombo, showOnlyWhenPathIncludesLogs, fullScreenView, setFullScreenView, }: LogResizeButtonType) => JSX.Element;
|
3
3
|
export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
|
4
|
-
export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, }: GitChangesType) => JSX.Element;
|
4
|
+
export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, targetPlatforms, }: GitChangesType) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { LogStageAccordionProps } from './types';
|
2
|
-
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, searchIndex, }: LogStageAccordionProps) => JSX.Element;
|
2
|
+
declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, searchIndex, targetPlatforms, }: LogStageAccordionProps) => JSX.Element;
|
3
3
|
export default LogStageAccordion;
|
@@ -2,7 +2,8 @@ import { CSSProperties, ReactElement } from 'react';
|
|
2
2
|
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
3
3
|
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
5
|
-
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
5
|
+
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
6
|
+
import { TargetPlatformBadgeListProps } from '../TargetPlatforms';
|
6
7
|
export declare enum HistoryComponentType {
|
7
8
|
CI = "CI",
|
8
9
|
CD = "CD",
|
@@ -66,7 +67,7 @@ export interface TargetConfigType {
|
|
66
67
|
releaseChannelId?: string;
|
67
68
|
releaseChannelName?: string;
|
68
69
|
}
|
69
|
-
export interface History {
|
70
|
+
export interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
|
70
71
|
id: number;
|
71
72
|
name: string;
|
72
73
|
status: string;
|
@@ -319,6 +320,37 @@ export interface VirtualHistoryArtifactProps {
|
|
319
320
|
workflowId: number;
|
320
321
|
};
|
321
322
|
}
|
323
|
+
export type CIListItemType = Pick<History, 'promotionApprovalMetadata'> & {
|
324
|
+
userApprovalMetadata?: UserApprovalMetadataType;
|
325
|
+
triggeredBy?: string;
|
326
|
+
children: any;
|
327
|
+
appliedFilters?: FilterConditionsListType[];
|
328
|
+
appliedFiltersTimestamp?: string;
|
329
|
+
selectedEnvironmentName?: string;
|
330
|
+
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
331
|
+
} & ({
|
332
|
+
type: 'artifact' | 'deployed-artifact';
|
333
|
+
targetPlatforms: TargetPlatformBadgeListProps['targetPlatforms'];
|
334
|
+
ciPipelineId: number;
|
335
|
+
artifactId: number;
|
336
|
+
imageComment: ImageComment;
|
337
|
+
imageReleaseTags: ReleaseTag[];
|
338
|
+
appReleaseTagNames: string[];
|
339
|
+
tagsEditable: boolean;
|
340
|
+
hideImageTaggingHardDelete: boolean;
|
341
|
+
isSuperAdmin: boolean;
|
342
|
+
} | {
|
343
|
+
type: 'report';
|
344
|
+
targetPlatforms?: never;
|
345
|
+
ciPipelineId?: never;
|
346
|
+
artifactId?: never;
|
347
|
+
imageComment?: never;
|
348
|
+
imageReleaseTags?: never;
|
349
|
+
appReleaseTagNames?: never;
|
350
|
+
tagsEditable?: never;
|
351
|
+
hideImageTaggingHardDelete?: never;
|
352
|
+
isSuperAdmin?: never;
|
353
|
+
});
|
322
354
|
export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDetailsType, 'renderTargetConfigInfo'> {
|
323
355
|
fullScreenView: boolean;
|
324
356
|
triggerHistory: Map<number, History>;
|
@@ -343,7 +375,7 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
343
375
|
scrollToTop: ReturnType<typeof useScrollable>[1];
|
344
376
|
scrollToBottom: ReturnType<typeof useScrollable>[2];
|
345
377
|
}
|
346
|
-
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView' | 'appName' | 'triggerHistory'> {
|
378
|
+
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView' | 'appName' | 'triggerHistory'>, Pick<TargetPlatformBadgeListProps, 'targetPlatforms'> {
|
347
379
|
triggerDetails: History;
|
348
380
|
loading: boolean;
|
349
381
|
userApprovalMetadata: UserApprovalMetadataType;
|
@@ -476,10 +508,31 @@ export interface ScrollerType {
|
|
476
508
|
scrollToBottom: (e: any) => void;
|
477
509
|
style: CSSProperties;
|
478
510
|
}
|
479
|
-
export
|
511
|
+
export type GitChangesType = {
|
480
512
|
gitTriggers: Map<number, GitTriggers>;
|
481
513
|
ciMaterials: CiMaterial[];
|
482
|
-
|
514
|
+
} & ({
|
515
|
+
artifact?: never;
|
516
|
+
promotionApprovalMetadata?: never;
|
517
|
+
targetPlatforms?: never;
|
518
|
+
selectedEnvironmentName?: never;
|
519
|
+
userApprovalMetadata?: never;
|
520
|
+
triggeredByEmail?: never;
|
521
|
+
imageComment?: never;
|
522
|
+
imageReleaseTags?: never;
|
523
|
+
artifactId?: never;
|
524
|
+
ciPipelineId?: never;
|
525
|
+
appReleaseTagNames?: never;
|
526
|
+
tagsEditable?: never;
|
527
|
+
hideImageTaggingHardDelete?: never;
|
528
|
+
appliedFilters?: never;
|
529
|
+
appliedFiltersTimestamp?: never;
|
530
|
+
renderCIListHeader?: never;
|
531
|
+
} | {
|
532
|
+
artifact: string;
|
533
|
+
promotionApprovalMetadata: History['promotionApprovalMetadata'];
|
534
|
+
targetPlatforms: TargetPlatformBadgeListProps['targetPlatforms'];
|
535
|
+
selectedEnvironmentName: CIListItemType['selectedEnvironmentName'];
|
483
536
|
userApprovalMetadata?: UserApprovalMetadataType;
|
484
537
|
triggeredByEmail?: string;
|
485
538
|
imageComment?: ImageComment;
|
@@ -491,10 +544,9 @@ export interface GitChangesType extends Pick<History, 'promotionApprovalMetadata
|
|
491
544
|
hideImageTaggingHardDelete?: boolean;
|
492
545
|
appliedFilters?: FilterConditionsListType[];
|
493
546
|
appliedFiltersTimestamp?: string;
|
494
|
-
selectedEnvironmentName?: string;
|
495
547
|
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
496
|
-
}
|
497
|
-
export interface ArtifactType {
|
548
|
+
});
|
549
|
+
export interface ArtifactType extends Pick<TargetPlatformBadgeListProps, 'targetPlatforms'> {
|
498
550
|
status: string;
|
499
551
|
artifact: string;
|
500
552
|
blobStorageEnabled: boolean;
|
@@ -511,23 +563,6 @@ export interface ArtifactType {
|
|
511
563
|
rootClassName?: string;
|
512
564
|
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
513
565
|
}
|
514
|
-
export interface CIListItemType extends Pick<GitChangesType, 'promotionApprovalMetadata' | 'selectedEnvironmentName'> {
|
515
|
-
type: 'report' | 'artifact' | 'deployed-artifact';
|
516
|
-
userApprovalMetadata?: UserApprovalMetadataType;
|
517
|
-
triggeredBy?: string;
|
518
|
-
children: any;
|
519
|
-
ciPipelineId?: number;
|
520
|
-
artifactId?: number;
|
521
|
-
imageComment?: ImageComment;
|
522
|
-
imageReleaseTags?: ReleaseTag[];
|
523
|
-
appReleaseTagNames?: string[];
|
524
|
-
tagsEditable?: boolean;
|
525
|
-
hideImageTaggingHardDelete?: boolean;
|
526
|
-
appliedFilters?: FilterConditionsListType[];
|
527
|
-
appliedFiltersTimestamp?: string;
|
528
|
-
isSuperAdmin?: boolean;
|
529
|
-
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
530
|
-
}
|
531
566
|
export interface DeploymentHistory {
|
532
567
|
id: number;
|
533
568
|
cd_workflow_id: number;
|
@@ -625,10 +660,12 @@ export interface StageInfoDTO {
|
|
625
660
|
startTime: string;
|
626
661
|
endTime?: string;
|
627
662
|
status?: StageStatusType;
|
663
|
+
metadata: Partial<Pick<TargetPlatformsDTO, 'targetPlatforms'>>;
|
628
664
|
}
|
629
665
|
export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime' | 'endTime' | 'status'> {
|
630
666
|
logs: string[];
|
631
667
|
isOpen: boolean;
|
668
|
+
targetPlatforms?: StageInfoDTO['metadata']['targetPlatforms'];
|
632
669
|
}
|
633
670
|
export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRendererType, 'fullScreenView'> {
|
634
671
|
handleStageClose: (index: number) => void;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
2
|
+
export interface FormFieldLabelProps {
|
3
|
+
label?: ReactNode;
|
4
|
+
required?: boolean;
|
5
|
+
inputId: string;
|
6
|
+
}
|
7
|
+
export interface FormFieldInfoProps extends Pick<FormFieldLabelProps, 'inputId'> {
|
8
|
+
error?: ReactNode;
|
9
|
+
helperText?: ReactNode;
|
10
|
+
warningText?: ReactNode;
|
11
|
+
}
|
12
|
+
export interface FormInfoItemProps {
|
13
|
+
id: string;
|
14
|
+
text: ReactNode;
|
15
|
+
textClass: string;
|
16
|
+
icon: ReactElement;
|
17
|
+
}
|
18
|
+
export interface FormFieldWrapperProps extends Pick<FormFieldLabelProps, 'label' | 'required'>, FormFieldInfoProps {
|
19
|
+
layout?: 'row' | 'column';
|
20
|
+
fullWidth?: boolean;
|
21
|
+
children: ReactElement;
|
22
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SequentialCDCardTitleProps } from '../types';
|
2
|
-
declare const SequentialCDCardTitle: ({ isLatest, isRunningOnParentCD, artifactStatus, environmentName, parentEnvironmentName, stageType, showLatestTag, isVirtualEnvironment, deployedOn, additionalInfo, }: SequentialCDCardTitleProps) => JSX.Element;
|
2
|
+
declare const SequentialCDCardTitle: ({ isLatest, isRunningOnParentCD, artifactStatus, environmentName, parentEnvironmentName, stageType, showLatestTag, isVirtualEnvironment, deployedOn, additionalInfo, targetPlatforms, }: SequentialCDCardTitleProps) => JSX.Element;
|
3
3
|
export default SequentialCDCardTitle;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { ImageTaggingContainerType } from '../../../Common';
|
2
|
+
import { CDMaterialType, ImageTaggingContainerType } from '../../../Common';
|
3
3
|
import { RegistryType } from '../..';
|
4
4
|
export interface ArtifactInfoProps {
|
5
5
|
imagePath: string;
|
@@ -13,7 +13,7 @@ export interface ArtifactInfoProps {
|
|
13
13
|
approvalChecksNode?: ReactNode;
|
14
14
|
approvalInfoTippy?: ReactNode;
|
15
15
|
}
|
16
|
-
export interface SequentialCDCardTitleProps {
|
16
|
+
export interface SequentialCDCardTitleProps extends Pick<CDMaterialType, 'targetPlatforms'> {
|
17
17
|
isLatest: boolean;
|
18
18
|
isRunningOnParentCD: boolean;
|
19
19
|
artifactStatus: string;
|
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
|
|
134
134
|
* />
|
135
135
|
* ```
|
136
136
|
*/
|
137
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
137
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, shouldRenderTextArea, onKeyDown, shouldHideMenu, warningText, layout, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
138
138
|
export default SelectPicker;
|
@@ -6,6 +6,7 @@ import { GroupBase, GroupHeadingProps, Props as ReactSelectProps, SelectInstance
|
|
6
6
|
import { CreatableProps } from 'react-select/creatable';
|
7
7
|
import { TooltipProps } from '@Common/Tooltip/types';
|
8
8
|
import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
|
9
|
+
import { FormFieldWrapperProps } from '../FormFieldWrapper/types';
|
9
10
|
export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
|
10
11
|
/**
|
11
12
|
* Description to be displayed for the option
|
@@ -79,19 +80,7 @@ export declare enum SelectPickerVariantType {
|
|
79
80
|
DEFAULT = "default",
|
80
81
|
BORDER_LESS = "border-less"
|
81
82
|
}
|
82
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & {
|
83
|
-
/**
|
84
|
-
* Error message for the select
|
85
|
-
*/
|
86
|
-
error?: ReactNode;
|
87
|
-
/**
|
88
|
-
* Info text for the select, if any
|
89
|
-
*/
|
90
|
-
helperText?: ReactNode;
|
91
|
-
/**
|
92
|
-
* Label for the select. if required is added, the corresponding * is also added
|
93
|
-
*/
|
94
|
-
label?: ReactNode;
|
83
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
95
84
|
/**
|
96
85
|
* Custom selected options count for use cases like filters
|
97
86
|
*/
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { TooltipProps } from '@Common/Tooltip/types';
|
2
|
+
import { TargetPlatformsDTO } from '../../types';
|
3
|
+
export interface TargetPlatformBadgeListProps extends Required<Pick<TargetPlatformsDTO, 'targetPlatforms'>> {
|
4
|
+
}
|
5
|
+
export interface TargetPlatformListTooltipProps extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
|
6
|
+
children: TooltipProps['children'];
|
7
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
2
|
+
import { ComponentSizeType } from '../../constants';
|
3
|
+
import { FormFieldWrapperProps } from '../FormFieldWrapper';
|
4
|
+
export interface TextareaProps extends Omit<FormFieldWrapperProps, 'children' | 'inputId'>, Pick<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onBlur' | 'disabled' | 'autoFocus' | 'onFocus'>, Required<Pick<TextareaHTMLAttributes<HTMLTextAreaElement>, 'placeholder' | 'onChange' | 'value' | 'name'>> {
|
5
|
+
/**
|
6
|
+
* If false, the input is not trimmed on blur
|
7
|
+
*
|
8
|
+
* @default true
|
9
|
+
*/
|
10
|
+
shouldTrim?: boolean;
|
11
|
+
/**
|
12
|
+
* Size of the textarea
|
13
|
+
*
|
14
|
+
* @default ComponentSizeType.large
|
15
|
+
*/
|
16
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
|
17
|
+
}
|
@@ -55,5 +55,8 @@ export * from './ToggleResolveScopedVariables';
|
|
55
55
|
export * from './BulkOperations';
|
56
56
|
export * from './WorkflowOptionsModal';
|
57
57
|
export * from './VirtualizedList';
|
58
|
+
export * from './Textarea';
|
59
|
+
export * from './ThemeSwitcher';
|
60
|
+
export * from './TargetPlatforms';
|
58
61
|
export * from './UnsavedChanges';
|
59
62
|
export * from './UnsavedChangesDialog';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { StrictRJSFSchema } from '@rjsf/utils';
|
|
4
4
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
5
5
|
import { PromptProps } from 'react-router-dom';
|
6
6
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType, ApprovalConfigDataType, UserApprovalInfo } from '../Common';
|
7
|
-
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, WebhookEventNameType } from './types';
|
7
|
+
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
8
8
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
@@ -92,4 +92,5 @@ export declare const getUniqueId: (size?: number) => string;
|
|
92
92
|
* @returns A function that takes an object with a `pathname` property and performs the path match check.
|
93
93
|
*/
|
94
94
|
export declare const checkIfPathIsMatching: (currentPathName: string, customMessage?: string) => PromptProps["message"];
|
95
|
+
export declare const sanitizeTargetPlatforms: (targetPlatforms: TargetPlatformsDTO["targetPlatforms"]) => TargetPlatformItemDTO[];
|
95
96
|
export {};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
2
|
+
import { TargetPlatformsDTO } from '../types';
|
2
3
|
import { ReleaseTag, UserApprovalMetadataType, ResponseType } from '../../Common';
|
3
4
|
interface WebhookDataType {
|
4
5
|
id: number;
|
@@ -75,7 +76,7 @@ interface ImageTaggingDataDTO {
|
|
75
76
|
interface ImageTaggingDataType extends Pick<ImageTaggingDataDTO, 'imageReleaseTags' | 'appReleaseTags' | 'tagsEditable'> {
|
76
77
|
imageComment: ImageCommentType;
|
77
78
|
}
|
78
|
-
export interface CIMaterialInfoDTO {
|
79
|
+
export interface CIMaterialInfoDTO extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
|
79
80
|
ciPipelineId: number;
|
80
81
|
ciMaterials: CIMaterialDTO[];
|
81
82
|
triggeredByEmail: string;
|
@@ -87,7 +88,7 @@ export interface CIMaterialInfoDTO {
|
|
87
88
|
imageTaggingData: ImageTaggingDataDTO;
|
88
89
|
image: string;
|
89
90
|
}
|
90
|
-
export interface CIMaterialInfoType extends Pick<CIMaterialInfoDTO, 'triggeredByEmail' | 'lastDeployedTime' | 'appId' | 'appName' | 'environmentId' | 'environmentName' | 'image' | 'ciPipelineId'>, ImageTaggingDataType {
|
91
|
+
export interface CIMaterialInfoType extends Pick<CIMaterialInfoDTO, 'triggeredByEmail' | 'lastDeployedTime' | 'appId' | 'appName' | 'environmentId' | 'environmentName' | 'image' | 'ciPipelineId'>, ImageTaggingDataType, Pick<TargetPlatformsDTO, 'targetPlatforms'> {
|
91
92
|
materials: CIMaterialType[];
|
92
93
|
}
|
93
94
|
export interface GetCITriggerInfoParamsType {
|
@@ -399,6 +399,9 @@ export declare enum ComponentSizeType {
|
|
399
399
|
large = "large",
|
400
400
|
xl = "xl"
|
401
401
|
}
|
402
|
+
export declare const COMPONENT_SIZE_TYPE_TO_FONT_AND_BLOCK_PADDING_MAP: Record<ComponentSizeType, string>;
|
403
|
+
export declare const COMPONENT_SIZE_TYPE_TO_INLINE_PADDING_MAP: Record<ComponentSizeType, string>;
|
404
|
+
export declare const COMPONENT_SIZE_TYPE_TO_ICON_SIZE_MAP: Record<ComponentSizeType, number>;
|
402
405
|
export declare const POP_UP_MENU_MODAL_ID = "popup";
|
403
406
|
/**
|
404
407
|
* Identifiers for grouped / all resources
|
package/dist/Shared/types.d.ts
CHANGED
@@ -788,6 +788,12 @@ export interface UploadFileProps {
|
|
788
788
|
allowedExtensions?: string[];
|
789
789
|
maxUploadSize?: number;
|
790
790
|
}
|
791
|
+
export interface TargetPlatformItemDTO {
|
792
|
+
name: string;
|
793
|
+
}
|
794
|
+
export interface TargetPlatformsDTO {
|
795
|
+
targetPlatforms: TargetPlatformItemDTO[];
|
796
|
+
}
|
791
797
|
export declare enum CIPipelineNodeType {
|
792
798
|
EXTERNAL_CI = "EXTERNAL-CI",
|
793
799
|
CI = "CI",
|