@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.
- package/dist/{@code-editor-CVTQGXmp.js → @code-editor-DdcMJa9q.js} +4641 -4690
- package/dist/{@common-rjsf-Dv67PS5R.js → @common-rjsf-BjRtMKCL.js} +1 -1
- package/dist/{@framer-motion-iFP8gkbg.js → @framer-motion-3ACrfimm.js} +2 -2
- package/dist/Common/Constants.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -1
- package/dist/Shared/Components/Icon/types.d.ts +2 -3
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/Providers/types.d.ts +1 -0
- package/dist/Shared/Services/types.d.ts +1 -1
- package/dist/Shared/types.d.ts +0 -10
- package/dist/index.js +842 -843
- package/package.json +1 -1
- package/dist/Shared/Components/AnimatedTimer/AnimatedTimer.component.d.ts +0 -3
- package/dist/Shared/Components/AnimatedTimer/constants.d.ts +0 -5
- package/dist/Shared/Components/AnimatedTimer/index.d.ts +0 -1
- package/dist/Shared/Components/AnimatedTimer/types.d.ts +0 -13
- package/dist/assets/ic-arrow-clockwise.b327e411.svg +0 -3
@@ -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-
|
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";
|
@@ -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?:
|
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:
|
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(--
|
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
|
}[];
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -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,
|
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: (
|
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;
|
@@ -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;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -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 {};
|