@devtron-labs/devtron-fe-common-lib 1.12.0-pre-3 → 1.12.0-pre-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/{@code-editor-Be3k4EvC.js → @code-editor-SFG2HUYQ.js} +4333 -4275
- package/dist/{@common-rjsf-klRcykFA.js → @common-rjsf-Cygd3mHp.js} +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/types.d.ts +6 -0
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +8 -5
- package/dist/Shared/Components/Icon/Icon.d.ts +4 -1
- package/dist/Shared/Components/UserIdentifier/UserIdentifier.d.ts +2 -0
- package/dist/Shared/Components/UserIdentifier/index.d.ts +2 -0
- package/dist/Shared/Components/UserIdentifier/types.d.ts +11 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +2 -0
- package/dist/assets/ic-checks.d276fd05.svg +3 -0
- package/dist/assets/ic-key.8c76fb61.svg +3 -0
- package/dist/assets/{ic-timeout-two-dash.9a580698.svg → ic-selected.3a29e244.svg} +2 -3
- package/dist/assets/ic-timeout-dash.d8e2d62e.svg +21 -0
- package/dist/index.js +377 -376
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, av as y, ax as k, aw as W } from "./@vendor-B9VGEgvW.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-SFG2HUYQ.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { AnimatedDeployButtonProps } from './types';
|
2
|
-
declare const AnimatedDeployButton: ({ isVirtualEnvironment, onButtonClick }: AnimatedDeployButtonProps) => JSX.Element;
|
2
|
+
declare const AnimatedDeployButton: ({ isLoading, isVirtualEnvironment, onButtonClick, exceptionUserConfig, isBulkCDTrigger, }: AnimatedDeployButtonProps) => JSX.Element;
|
3
3
|
export default AnimatedDeployButton;
|
@@ -1,4 +1,10 @@
|
|
1
1
|
export interface AnimatedDeployButtonProps {
|
2
|
+
isLoading?: boolean;
|
2
3
|
isVirtualEnvironment: boolean;
|
3
4
|
onButtonClick: (e: any, disableDeployButton: boolean) => void;
|
5
|
+
exceptionUserConfig?: {
|
6
|
+
canDeploy: boolean;
|
7
|
+
isImageApprover: boolean;
|
8
|
+
};
|
9
|
+
isBulkCDTrigger?: boolean;
|
4
10
|
}
|
@@ -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, targetPlatforms, }: CIListItemType) => 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, isDeploymentWithoutApproval, }: CIListItemType) => JSX.Element;
|
3
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,3 +1,3 @@
|
|
1
1
|
import { DeploymentDetailStepsType } from './types';
|
2
|
-
declare const DeploymentDetailSteps: ({ deploymentStatus, deploymentAppType, isHelmApps, installedAppVersionHistoryId, isGitops, userApprovalMetadata, isVirtualEnvironment, processVirtualEnvironmentDeploymentData, renderDeploymentApprovalInfo, }: DeploymentDetailStepsType) => JSX.Element;
|
2
|
+
declare const DeploymentDetailSteps: ({ deploymentStatus, deploymentAppType, isHelmApps, installedAppVersionHistoryId, isGitops, userApprovalMetadata, isVirtualEnvironment, processVirtualEnvironmentDeploymentData, renderDeploymentApprovalInfo, isDeploymentWithoutApproval, }: DeploymentDetailStepsType) => JSX.Element;
|
3
3
|
export default DeploymentDetailSteps;
|
@@ -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, targetPlatforms, }: 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, isDeploymentWithoutApproval, }: GitChangesType) => JSX.Element;
|
@@ -134,6 +134,7 @@ export interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'>, Wo
|
|
134
134
|
triggerMetadata?: string;
|
135
135
|
runSource?: RunSourceType;
|
136
136
|
targetConfig?: TargetConfigType;
|
137
|
+
isDeploymentWithoutApproval?: boolean;
|
137
138
|
}
|
138
139
|
export interface ExecutionInfoType {
|
139
140
|
/**
|
@@ -313,7 +314,7 @@ export interface DeploymentStatusDetailsTimelineType {
|
|
313
314
|
statusTime: string;
|
314
315
|
resourceDetails?: SyncStageResourceDetail[];
|
315
316
|
}
|
316
|
-
export interface DeploymentStatusDetailsType {
|
317
|
+
export interface DeploymentStatusDetailsType extends Pick<History, 'isDeploymentWithoutApproval'> {
|
317
318
|
deploymentFinishedOn: string;
|
318
319
|
deploymentStartedOn: string;
|
319
320
|
triggeredBy: string;
|
@@ -327,7 +328,7 @@ export interface DeploymentStatusDetailsResponse extends ResponseType {
|
|
327
328
|
}
|
328
329
|
interface DeploymentStatusDetailRow {
|
329
330
|
icon: string;
|
330
|
-
displayText:
|
331
|
+
displayText: ReactNode;
|
331
332
|
displaySubText: string;
|
332
333
|
time: string;
|
333
334
|
resourceDetails?: any;
|
@@ -355,7 +356,7 @@ export interface DeploymentStatusDetailsBreakdownDataType {
|
|
355
356
|
HELM_PACKAGE_GENERATED?: DeploymentStatusDetailRow;
|
356
357
|
};
|
357
358
|
}
|
358
|
-
export interface DeploymentDetailStepsType {
|
359
|
+
export interface DeploymentDetailStepsType extends Pick<History, 'isDeploymentWithoutApproval'> {
|
359
360
|
deploymentStatus?: string;
|
360
361
|
deploymentAppType?: DeploymentAppTypes;
|
361
362
|
isHelmApps?: boolean;
|
@@ -366,7 +367,7 @@ export interface DeploymentDetailStepsType {
|
|
366
367
|
processVirtualEnvironmentDeploymentData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
367
368
|
renderDeploymentApprovalInfo: (userApprovalMetadata: UserApprovalMetadataType) => JSX.Element;
|
368
369
|
}
|
369
|
-
export interface RenderCIListHeaderProps {
|
370
|
+
export interface RenderCIListHeaderProps extends Required<Pick<History, 'isDeploymentWithoutApproval'>> {
|
370
371
|
userApprovalMetadata: UserApprovalMetadataType;
|
371
372
|
triggeredBy: string;
|
372
373
|
appliedFilters: FilterConditionsListType[];
|
@@ -384,7 +385,7 @@ export interface VirtualHistoryArtifactProps {
|
|
384
385
|
workflowId: number;
|
385
386
|
};
|
386
387
|
}
|
387
|
-
export type CIListItemType = Pick<History, 'promotionApprovalMetadata'> & {
|
388
|
+
export type CIListItemType = Pick<History, 'promotionApprovalMetadata' | 'isDeploymentWithoutApproval'> & {
|
388
389
|
userApprovalMetadata?: UserApprovalMetadataType;
|
389
390
|
triggeredBy?: string;
|
390
391
|
children: ReactNode;
|
@@ -601,6 +602,7 @@ export type GitChangesType = {
|
|
601
602
|
appliedFilters?: never;
|
602
603
|
appliedFiltersTimestamp?: never;
|
603
604
|
renderCIListHeader?: never;
|
605
|
+
isDeploymentWithoutApproval?: never;
|
604
606
|
} | {
|
605
607
|
artifact: string;
|
606
608
|
promotionApprovalMetadata: History['promotionApprovalMetadata'];
|
@@ -618,6 +620,7 @@ export type GitChangesType = {
|
|
618
620
|
appliedFilters?: FilterConditionsListType[];
|
619
621
|
appliedFiltersTimestamp?: string;
|
620
622
|
renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
623
|
+
isDeploymentWithoutApproval?: History['isDeploymentWithoutApproval'];
|
621
624
|
});
|
622
625
|
export interface ArtifactType extends Pick<TargetPlatformBadgeListProps, 'targetPlatforms'> {
|
623
626
|
status: string;
|
@@ -23,6 +23,7 @@ export declare const iconMap: {
|
|
23
23
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
24
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
25
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
|
+
'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
27
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
28
|
'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
29
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -69,6 +70,7 @@ export declare const iconMap: {
|
|
69
70
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
71
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
72
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
|
+
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
74
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
75
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
76
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -93,6 +95,7 @@ export declare const iconMap: {
|
|
93
95
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
96
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
97
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
|
+
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
99
|
'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
100
|
'ic-sliders-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
101
|
'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -105,7 +108,7 @@ export declare const iconMap: {
|
|
105
108
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
106
109
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
107
110
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
108
|
-
'ic-timeout-
|
111
|
+
'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
112
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
113
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
114
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export interface UserIdentifierProps {
|
3
|
+
identifier: string;
|
4
|
+
children?: ReactNode;
|
5
|
+
isUserGroup?: boolean;
|
6
|
+
rootClassName?: string;
|
7
|
+
/**
|
8
|
+
* @description - If given, would show tooltip on div containing avatar, email and children
|
9
|
+
*/
|
10
|
+
tooltipContent?: string;
|
11
|
+
}
|
@@ -80,5 +80,6 @@ export * from './ThemeSwitcher';
|
|
80
80
|
export * from './ToggleResolveScopedVariables';
|
81
81
|
export * from './UnsavedChanges';
|
82
82
|
export * from './UnsavedChangesDialog';
|
83
|
+
export * from './UserIdentifier';
|
83
84
|
export * from './VirtualizedList';
|
84
85
|
export * from './WorkflowOptionsModal';
|
package/dist/Shared/types.d.ts
CHANGED
@@ -245,6 +245,8 @@ export interface WorkflowType {
|
|
245
245
|
showTippy?: boolean;
|
246
246
|
appId?: number;
|
247
247
|
isSelected?: boolean;
|
248
|
+
isExceptionUser?: boolean;
|
249
|
+
canApproverDeploy?: boolean;
|
248
250
|
approvalConfiguredIdsMap?: Record<number, ApprovalConfigDataType>;
|
249
251
|
imageReleaseTags: string[];
|
250
252
|
appReleaseTags?: string[];
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m13.875 7.875-8.25 8.25L1.5 12m21-4.125-8.25 8.25-2.191-2.191" vector-effect="non-scaling-stroke"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m15.59 7 1.414 1.414m-8.27 3.101a6.744 6.744 0 1 1 3.75 3.75L11.25 16.5H9v2.25H6.75V21H3v-3.75l5.735-5.735Z" vector-effect="non-scaling-stroke"/>
|
3
|
+
</svg>
|
@@ -15,7 +15,6 @@
|
|
15
15
|
-->
|
16
16
|
|
17
17
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
18
|
-
<
|
19
|
-
<path
|
20
|
-
<path d="M3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3" stroke="#3B444C" stroke-width="1.5" stroke-miterlimit="10"/>
|
18
|
+
<circle cx="12" cy="12" r="10" fill="var(--B500)"/>
|
19
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.7071 9.29291C17.0976 9.68344 17.0976 10.3166 16.7071 10.7071L11.3738 16.0402C10.9832 16.4307 10.3501 16.4307 9.95959 16.0402L7.29292 13.3738C6.90238 12.9833 6.90235 12.3501 7.29286 11.9596C7.68337 11.5691 8.31653 11.569 8.70708 11.9595L10.6667 13.9189L15.2929 9.29288C15.6834 8.90236 16.3166 8.90238 16.7071 9.29291Z" fill="var(--N0)"/>
|
21
20
|
</svg>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!--
|
2
|
+
- Copyright (c) 2024. Devtron Inc.
|
3
|
+
-
|
4
|
+
- Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
- you may not use this file except in compliance with the License.
|
6
|
+
- You may obtain a copy of the License at
|
7
|
+
-
|
8
|
+
- http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
-
|
10
|
+
- Unless required by applicable law or agreed to in writing, software
|
11
|
+
- distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
- See the License for the specific language governing permissions and
|
14
|
+
- limitations under the License.
|
15
|
+
-->
|
16
|
+
|
17
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
18
|
+
<path stroke="#3B444C" stroke-dasharray="1 3" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.5" d="M3 12a9 9 0 0 1 9-9" vector-effect="non-scaling-stroke"/>
|
19
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 6.75V12l3 4" vector-effect="non-scaling-stroke"/>
|
20
|
+
<path stroke="#3B444C" stroke-miterlimit="10" stroke-width="1.5" d="M3 12a9 9 0 1 0 9-9" vector-effect="non-scaling-stroke"/>
|
21
|
+
</svg>
|