@devtron-labs/devtron-fe-common-lib 1.11.0-beta-1 → 1.11.0-pre-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.
@@ -1,7 +1,7 @@
1
1
  import { j as n, au as y, aw as k, av as W } from "./@vendor-HJw8T7OP.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-CVTQGXmp.js";
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-DdcMJa9q.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";
@@ -3509,8 +3509,8 @@ function iu(t) {
3509
3509
  export {
3510
3510
  ru as A,
3511
3511
  nu as a,
3512
- ms as b,
3513
- iu as c,
3512
+ iu as b,
3513
+ ms as c,
3514
3514
  eu as m,
3515
3515
  Ws as u
3516
3516
  };
@@ -296,7 +296,6 @@ export declare const API_STATUS_CODES: {
296
296
  EXPECTATION_FAILED: number;
297
297
  UNPROCESSABLE_ENTITY: number;
298
298
  LOCKED: number;
299
- UNPROCESSABLE_CONTENT: number;
300
299
  };
301
300
  export declare enum SERVER_MODE {
302
301
  EA_ONLY = "EA_ONLY",
@@ -6,4 +6,4 @@ export declare const uploadCDPipelineFile: ({ file, appId, envId, allowedExtensi
6
6
  envId: number;
7
7
  abortControllerRef?: MutableRefObject<AbortController>;
8
8
  }) => Promise<UploadFileDTO>;
9
- export declare const triggerCDNode: ({ pipelineId, ciArtifactId, appId, stageType, deploymentWithConfig, wfrId, runtimeParamsPayload, abortControllerRef, isRollbackTrigger, }: TriggerCDNodeServiceProps) => Promise<import('../../../../../Common/Types').ResponseType<any>>;
9
+ export declare const triggerCDNode: ({ pipelineId, ciArtifactId, appId, stageType, deploymentWithConfig, wfrId, runtimeParamsPayload, abortControllerRef, skipIfHibernated, isRollbackTrigger, }: TriggerCDNodeServiceProps) => Promise<import('../../../../../Common/Types').ResponseType<any>>;
@@ -100,6 +100,7 @@ export interface TriggerCDNodeServiceProps extends Pick<APIOptions, 'abortContro
100
100
  ciArtifactId: number;
101
101
  appId: number;
102
102
  stageType: DeploymentNodeType;
103
+ skipIfHibernated: boolean;
103
104
  deploymentWithConfig?: string;
104
105
  wfrId?: number;
105
106
  /**
@@ -108,7 +109,7 @@ export interface TriggerCDNodeServiceProps extends Pick<APIOptions, 'abortContro
108
109
  runtimeParamsPayload?: RuntimeParamsTriggerPayloadType;
109
110
  isRollbackTrigger?: boolean;
110
111
  }
111
- export interface TriggerCDPipelinePayloadType extends Pick<TriggerCDNodeServiceProps, 'pipelineId' | 'appId' | 'ciArtifactId' | 'runtimeParamsPayload' | 'deploymentWithConfig'> {
112
+ export interface TriggerCDPipelinePayloadType extends Pick<TriggerCDNodeServiceProps, 'pipelineId' | 'appId' | 'ciArtifactId' | 'runtimeParamsPayload' | 'deploymentWithConfig'>, Partial<Pick<TriggerCDNodeServiceProps, 'skipIfHibernated'>> {
112
113
  cdWorkflowType: (typeof STAGE_MAP)[keyof typeof STAGE_MAP];
113
114
  isRollbackDeployment: boolean;
114
115
  wfrIdForDeploymentWithSpecificTrigger?: number;
@@ -5,7 +5,6 @@ export declare const iconMap: {
5
5
  'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
6
  'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
7
  'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
- 'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
8
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
9
  'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
10
  'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,6 +1,5 @@
1
1
  import { FC, SVGProps } from 'react';
2
2
  import { TooltipProps } from '@Common/Tooltip/types';
3
- import { IconBaseColorType, IconBaseSizeType } from '../../index';
4
3
  type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
5
4
  export interface IconBaseProps {
6
5
  /** The name of the icon to render. */
@@ -11,7 +10,7 @@ export interface IconBaseProps {
11
10
  * The size of the icon in pixels.
12
11
  * @default 16
13
12
  */
14
- size?: IconBaseSizeType;
13
+ size?: 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 28 | 30 | 32 | 34 | 36 | 40 | 42 | 44 | 48 | 72 | 80;
15
14
  /** Props to configure the tooltip when hovering over the icon. */
16
15
  tooltipProps?: TooltipProps;
17
16
  /**
@@ -19,6 +18,6 @@ export interface IconBaseProps {
19
18
  * If `null`, the default color present in icon is used.
20
19
  * @example `'B500'`, `'N200'`, `'G50'`, `'R700'`
21
20
  */
22
- color: IconBaseColorType;
21
+ color: `${'B' | 'N' | 'G' | 'Y' | 'R' | 'V' | 'O'}${`${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}00` | '50' | '0'}` | 'white' | 'black' | null;
23
22
  }
24
23
  export {};
@@ -1,7 +1,7 @@
1
1
  import { SEVERITIES } from './constants';
2
2
  import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--G500)" | "var(--Y500)" | "var(--R700)";
4
+ color: "var(--R500)" | "var(--N300)" | "var(--G500)" | "var(--Y500)" | "var(--O500)" | "var(--R700)";
5
5
  label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
@@ -1,7 +1,6 @@
1
1
  export * from './ActionMenu';
2
2
  export * from './ActivityIndicator';
3
3
  export * from './AnimatedDeployButton';
4
- export * from './AnimatedTimer';
5
4
  export * from './AnnouncementBanner';
6
5
  export * from './APIResponseHandler';
7
6
  export * from './ArtifactInfoModal';
@@ -5,7 +5,7 @@ import { Pair } from 'yaml';
5
5
  import { MaterialHistoryType } from '@Shared/Services/app.types';
6
6
  import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
7
7
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
8
- import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
8
+ import { BorderConfigType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
9
9
  interface HighlightSearchTextProps {
10
10
  /**
11
11
  * The text to be highlighted
@@ -40,7 +40,7 @@ export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatu
40
40
  export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
41
41
  export declare const decode: (data: any, isEncoded?: boolean) => {};
42
42
  export declare const isTimeStringAvailable: (time: string) => boolean;
43
- export declare const getTimeDifference: ({ startTime, endTime, fallbackString, }: GetTimeDifferenceParamsType) => string;
43
+ export declare const getTimeDifference: (startTime: string, endTime: string) => string;
44
44
  export declare const getFileNameFromHeaders: (headers: Headers) => string;
45
45
  export declare const sanitizeUserApprovalList: (approverList: UserApprovalInfo["approverList"]) => UserApprovalInfo["approverList"];
46
46
  export declare const sanitizeApprovalConfigData: (approvalConfigData: ApprovalConfigDataType | null) => ApprovalConfigDataType;
@@ -45,6 +45,7 @@ export interface MainContext {
45
45
  */
46
46
  licenseData: DevtronLicenseInfo;
47
47
  setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
48
+ canFetchHelmAppStatus: boolean;
48
49
  }
49
50
  export interface MainContextProviderProps {
50
51
  children: ReactNode;
@@ -33,7 +33,7 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
33
33
  }
34
34
  export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
35
35
  }
36
- export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitOpsFlags'> {
36
+ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitOpsFlags' | 'canFetchHelmAppStatus'> {
37
37
  isAirGapEnvironment: boolean;
38
38
  isManifestScanningEnabled: boolean;
39
39
  canOnlyViewPermittedEnvOrgLevel: boolean;
@@ -939,14 +939,4 @@ export type CountryISO2Type = ParsedCountry['iso2'];
939
939
  export declare enum ResponseHeaders {
940
940
  LICENSE_STATUS = "X-License-Status"
941
941
  }
942
- export type IconBaseSizeType = 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 28 | 30 | 32 | 34 | 36 | 40 | 42 | 44 | 48 | 72 | 80;
943
- export type IconBaseColorType = `${'B' | 'N' | 'G' | 'Y' | 'R' | 'V' | 'O'}${`${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}00` | '50' | '0'}` | 'white' | 'black' | null;
944
- export interface GetTimeDifferenceParamsType {
945
- startTime: string;
946
- endTime: string;
947
- /**
948
- * @default '-'
949
- */
950
- fallbackString?: string;
951
- }
952
942
  export {};