@devtron-labs/devtron-fe-common-lib 1.21.0-beta-4 → 1.21.0-beta-6
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-BfqG9Eov.js → @code-editor-lSAGA6MS.js} +12279 -12591
- package/dist/{@common-rjsf-B20unqUl.js → @common-rjsf-B93_NEro.js} +1 -1
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/Constants.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/TriggerDetails.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -4
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -3
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -65
- package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -1
- package/dist/Shared/Components/Illustration/Illustration.d.ts +2 -0
- package/dist/Shared/Helpers.d.ts +0 -2
- package/dist/Shared/types.d.ts +5 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/img-install-freemium-saas.4388531c.svg +40 -0
- package/dist/assets/img-install-via-aws-marketplace.df85f572.svg +48 -0
- package/dist/index.js +512 -517
- package/package.json +1 -1
- package/dist/Shared/Components/CICDHistory/ConflictedResourcesTable.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/ResourceConflictDeployDialog.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/ResourceConflictDetailsModal.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n, au as T, aw as J, av as K } from "./@vendor-3ORIJA0h.js";
|
|
2
2
|
import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
|
|
3
3
|
import z, { getDefaultRegistry as Q } from "@rjsf/core";
|
|
4
|
-
import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-
|
|
4
|
+
import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-lSAGA6MS.js";
|
|
5
5
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
|
|
6
6
|
import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
|
|
7
7
|
import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { ServerErrors } from '../ServerError';
|
|
3
3
|
import { ResponseType } from '../Types';
|
|
4
|
-
export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey
|
|
4
|
+
export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<TQueryFnData>, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
|
|
5
5
|
export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
|
|
6
6
|
export { useQueryClient };
|
|
@@ -135,7 +135,6 @@ export declare const ROUTES: {
|
|
|
135
135
|
readonly LICENSE_DATA: "license/data";
|
|
136
136
|
readonly ENV: "env";
|
|
137
137
|
readonly APP_METADATA: "app-metadata";
|
|
138
|
-
readonly RESOURCE_CONFLICTS_LIST: "app/:appId/cd-pipeline/:pipelineId/history/:wfrId/helm-ownership-conflicts";
|
|
139
138
|
};
|
|
140
139
|
export declare enum KEY_VALUE {
|
|
141
140
|
KEY = "key",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TriggerDetailsType } from './types';
|
|
2
|
-
declare const TriggerDetails: import('react').MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, workflowExecutionStages, namespace,
|
|
2
|
+
declare const TriggerDetails: import('react').MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, workflowExecutionStages, namespace, }: TriggerDetailsType) => JSX.Element>;
|
|
3
3
|
export default TriggerDetails;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WorkerStatusType } from './types';
|
|
2
|
-
declare const WorkerStatus: import('react').MemoExoticComponent<({ message, podStatus, stage, workerPodName, finishedOn, clusterId, namespace, workerMessageContainerClassName, titleClassName, viewWorkerPodClassName, hideShowMoreMessageButton,
|
|
2
|
+
declare const WorkerStatus: import('react').MemoExoticComponent<({ message, podStatus, stage, workerPodName, finishedOn, clusterId, namespace, workerMessageContainerClassName, titleClassName, viewWorkerPodClassName, hideShowMoreMessageButton, }: WorkerStatusType) => JSX.Element | null>;
|
|
3
3
|
export default WorkerStatus;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ResourceConflictItemType, WorkflowStageStatusType } from './types';
|
|
1
|
+
import { WorkflowStageStatusType } from './types';
|
|
3
2
|
export declare const HISTORY_LABEL: {
|
|
4
3
|
APPLICATION: string;
|
|
5
4
|
ENVIRONMENT: string;
|
|
@@ -86,5 +85,3 @@ export declare const PROGRESSING_STATUS: {
|
|
|
86
85
|
};
|
|
87
86
|
export declare const FAILED_WORKFLOW_STAGE_STATUS_MAP: Record<Extract<WorkflowStageStatusType, WorkflowStageStatusType.ABORTED | WorkflowStageStatusType.FAILED | WorkflowStageStatusType.TIMEOUT>, true>;
|
|
88
87
|
export declare const APP_HEALTH_DROP_DOWN_LIST: string[];
|
|
89
|
-
export declare const RESOURCE_CONFLICT_DEPLOY_ERROR = "cannot be imported into the current release: invalid ownership metadata;";
|
|
90
|
-
export declare const CONFLICTED_RESOURCES_COLUMNS: TableProps<ResourceConflictItemType, FiltersTypeEnum.STATE>['columns'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
-
import { DeploymentHistoryDetail, DeploymentHistoryResult, DeploymentStatusDetailsResponse,
|
|
2
|
+
import { DeploymentHistoryDetail, DeploymentHistoryResult, DeploymentStatusDetailsResponse, ModuleConfigResponse, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
|
|
3
3
|
export declare function getTriggerDetails({ appId, envId, pipelineId, triggerId, fetchIdData, }: {
|
|
4
4
|
appId: any;
|
|
5
5
|
envId: any;
|
|
@@ -21,5 +21,3 @@ export declare function getManualSync(params: {
|
|
|
21
21
|
export declare const prepareHistoryData: (rawData: any, historyComponent: string, skipDecode?: boolean) => DeploymentHistoryDetail;
|
|
22
22
|
export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, "result">>;
|
|
23
23
|
export declare const getModuleConfigured: (moduleName: string) => Promise<ModuleConfigResponse>;
|
|
24
|
-
export declare const resourceConflictRedeploy: ({ pipelineId, triggerId, appId, }: ResourceConflictRedeployParamsType) => Promise<void>;
|
|
25
|
-
export declare const getResourceConflictDetails: ({ appId, pipelineId, triggerId, signal, }: GetResourceConflictDetailsParamsType) => Promise<ResourceConflictItemType[]>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
|
3
|
-
import { GVKType } from '../../../Pages/ResourceBrowser';
|
|
4
3
|
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, TooltipProps, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
|
5
4
|
import { DeploymentStageType } from '../../constants';
|
|
6
|
-
import { AggregationKeys, AppDetails,
|
|
5
|
+
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
|
7
6
|
import { TargetPlatformBadgeListProps } from '../TargetPlatforms';
|
|
8
7
|
export declare enum HistoryComponentType {
|
|
9
8
|
CI = "CI",
|
|
@@ -258,29 +257,6 @@ export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTarget
|
|
|
258
257
|
workerPodName?: string;
|
|
259
258
|
triggerMetadata?: string;
|
|
260
259
|
renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string, onlyRenderIcon?: boolean) => JSX.Element;
|
|
261
|
-
/**
|
|
262
|
-
* Only present in case of CD trigger details as of now
|
|
263
|
-
*/
|
|
264
|
-
isLatest?: boolean;
|
|
265
|
-
/**
|
|
266
|
-
* Only present in case of CD trigger details as of now
|
|
267
|
-
*/
|
|
268
|
-
appName?: string;
|
|
269
|
-
}
|
|
270
|
-
export declare enum ResourceConflictModalType {
|
|
271
|
-
DEPLOY_DIALOG = "DEPLOY_DIALOG",
|
|
272
|
-
RESOURCE_DETAIL_MODAL = "RESOURCE_DETAIL_MODAL"
|
|
273
|
-
}
|
|
274
|
-
interface ResourceConflictDialogBaseProps extends Required<Pick<TriggerDetailsType, 'appName' | 'environmentName'>> {
|
|
275
|
-
handleClose: () => void;
|
|
276
|
-
}
|
|
277
|
-
export interface ResourceConflictDeployDialogProps extends ResourceConflictDialogBaseProps {
|
|
278
|
-
}
|
|
279
|
-
export interface ResourceConflictDetailsModalProps extends ResourceConflictDialogBaseProps {
|
|
280
|
-
}
|
|
281
|
-
export interface TriggerOutputURLParamsType extends Pick<BaseURLParams, 'appId' | 'envId'> {
|
|
282
|
-
triggerId: string;
|
|
283
|
-
pipelineId: string;
|
|
284
260
|
}
|
|
285
261
|
export type ProgressingStatusType = {
|
|
286
262
|
stage: DeploymentStageType;
|
|
@@ -307,7 +283,6 @@ export interface WorkerStatusType extends Pick<ExecutionInfoType['workerDetails'
|
|
|
307
283
|
* @default false
|
|
308
284
|
*/
|
|
309
285
|
hideShowMoreMessageButton?: boolean;
|
|
310
|
-
children?: ReactNode;
|
|
311
286
|
}
|
|
312
287
|
export type FinishedType = {
|
|
313
288
|
artifact: string;
|
|
@@ -728,43 +703,4 @@ export interface CIPipelineSourceConfigInterface {
|
|
|
728
703
|
primaryBranchAfterRegex?: string;
|
|
729
704
|
rootClassName?: string;
|
|
730
705
|
}
|
|
731
|
-
export interface ResourceConflictItemType {
|
|
732
|
-
name: string;
|
|
733
|
-
namespace: string;
|
|
734
|
-
gvk: GVKType;
|
|
735
|
-
gvkTitle: string;
|
|
736
|
-
clusterId: number;
|
|
737
|
-
/**
|
|
738
|
-
* Generated at ui
|
|
739
|
-
*/
|
|
740
|
-
id: string;
|
|
741
|
-
}
|
|
742
|
-
export interface ConflictedResourcesTableProps {
|
|
743
|
-
resourceConflictDetails: ResourceConflictItemType[];
|
|
744
|
-
}
|
|
745
|
-
export interface ResourceConflictDeployDialogURLParamsType extends Pick<TriggerOutputURLParamsType, 'appId' | 'envId' | 'pipelineId' | 'triggerId'> {
|
|
746
|
-
}
|
|
747
|
-
export interface ResourceConflictRedeployParamsType extends Pick<ResourceConflictDeployDialogURLParamsType, 'pipelineId' | 'triggerId' | 'appId'> {
|
|
748
|
-
}
|
|
749
|
-
export interface ResourceConflictRedeployPayloadType {
|
|
750
|
-
pipelineId: number;
|
|
751
|
-
appId: number;
|
|
752
|
-
wfrIdForDeploymentWithSpecificTrigger: number;
|
|
753
|
-
helmRedeploymentRequest: true;
|
|
754
|
-
}
|
|
755
|
-
export interface GetResourceConflictDetailsParamsType extends Pick<ResourceConflictDeployDialogURLParamsType, 'pipelineId' | 'triggerId' | 'appId'> {
|
|
756
|
-
signal: AbortSignal;
|
|
757
|
-
}
|
|
758
|
-
export interface ResourceConflictListItemDTO {
|
|
759
|
-
clusterId: number;
|
|
760
|
-
conflictingResources: {
|
|
761
|
-
name: string;
|
|
762
|
-
namespace: string;
|
|
763
|
-
groupVersionKind: {
|
|
764
|
-
Group: string;
|
|
765
|
-
Version: string;
|
|
766
|
-
Kind: NodeType;
|
|
767
|
-
};
|
|
768
|
-
}[];
|
|
769
|
-
}
|
|
770
706
|
export {};
|
|
@@ -40,4 +40,3 @@ export declare const getTriggerStatusIcon: (status: string) => string;
|
|
|
40
40
|
export declare const renderDeploymentTimelineIcon: (iconState: DeploymentStatusBreakdownItemType["icon"]) => JSX.Element;
|
|
41
41
|
export declare const getDeploymentTimelineBGColorFromIcon: (icon: DeploymentStatusBreakdownItemType["icon"]) => string;
|
|
42
42
|
export declare const getTriggerOutputTabs: (triggerDetails: History, deploymentAppType: DeploymentAppTypes) => TabGroupProps["tabs"];
|
|
43
|
-
export declare const getSortedTriggerHistory: (triggerHistory: Map<number, History>) => [number, History][];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IllustrationBaseProps } from './types';
|
|
2
2
|
export declare const illustrationMap: {
|
|
3
|
+
'img-install-freemium-saas': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
4
|
+
'img-install-via-aws-marketplace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
3
5
|
'img-mechanical-operation': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
4
6
|
'img-code': string;
|
|
5
7
|
'img-devtron-freemium': string;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { StrictRJSFSchema } from '@rjsf/utils';
|
|
|
4
4
|
import { Pair } from 'yaml';
|
|
5
5
|
import { MaterialHistoryType } from './Services/app.types';
|
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
|
7
|
-
import { GVKType } from '../Pages';
|
|
8
7
|
import { AggregatedNodes, PodMetadatum } from './Components';
|
|
9
8
|
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, Node, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
|
10
9
|
interface HighlightSearchTextProps {
|
|
@@ -104,5 +103,4 @@ export declare const clearCookieOnLogout: () => void;
|
|
|
104
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
|
105
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
|
106
105
|
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
|
107
|
-
export declare const getGVKTitle: (gvk: GVKType) => string;
|
|
108
106
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -973,8 +973,13 @@ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = Devt
|
|
|
973
973
|
showLicenseData?: never;
|
|
974
974
|
licenseStatusError?: never;
|
|
975
975
|
moduleLimits?: never;
|
|
976
|
+
instanceData: {
|
|
977
|
+
devtronUrl: string;
|
|
978
|
+
devtronPassword: string;
|
|
979
|
+
};
|
|
976
980
|
} : {
|
|
977
981
|
claimedByUserDetails?: never;
|
|
982
|
+
instanceData?: never;
|
|
978
983
|
showLicenseData: boolean;
|
|
979
984
|
licenseStatusError?: LicenseErrorStruct;
|
|
980
985
|
moduleLimits: {
|