@devtron-labs/devtron-fe-common-lib 1.7.5-beta-1 → 1.7.5

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 t, J as P } from "./@vendor-CIA81cZg.js";
2
2
  import R, { forwardRef as $ } from "react";
3
3
  import L, { getDefaultRegistry as D } from "@rjsf/core";
4
- import { T as v, c as H, a as U, i as k, b as y, d as S, S as J } from "./@code-editor-BmMzQgKS.js";
4
+ import { T as v, c as H, a as U, i as k, b as y, d as S, S as J } from "./@code-editor-Ce2Y0B1i.js";
5
5
  import M, { components as A } from "react-select";
6
6
  import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as C, getTemplate as B, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as I, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
@@ -116,7 +116,6 @@ export declare const ROUTES: {
116
116
  CD_TRIGGER_POST: string;
117
117
  DELETE_RESOURCE: string;
118
118
  NODE_CAPACITY: string;
119
- ENVIRONMENT_DATA: string;
120
119
  };
121
120
  export declare enum KEY_VALUE {
122
121
  KEY = "key",
@@ -1,6 +1,6 @@
1
1
  import { ShortcutType } from './types';
2
2
  export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
3
- keys: ("Escape" | "Control" | "Alt" | "F" | "E" | "R" | "K" | "Shift" | "Meta" | "Enter")[];
3
+ keys: ("Alt" | "F" | "E" | "R" | "K" | "Control" | "Shift" | "Meta" | "Escape" | "Enter")[];
4
4
  id: string;
5
5
  };
6
6
  export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "className" | "children" | "disabled" | "id" | "name" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "noValidate" | "tagName" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "action" | "enctype" | "method" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "id" | "children" | "className" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "action" | "method" | "autoComplete" | "tagName" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
@@ -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, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType } from '../Shared';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType } 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
@@ -158,7 +158,6 @@ interface InfoColourBarTextConfigType {
158
158
  * If given would be shown below the heading (if given)
159
159
  */
160
160
  description: string;
161
- actionButtonConfig?: ButtonProps;
162
161
  }
163
162
  type InfoColourBarMessageProp = {
164
163
  message: ReactNode;
@@ -96,10 +96,6 @@ export interface SelectedChartDetailsType {
96
96
  selectedChartRefId: number;
97
97
  selectedChart: DeploymentChartVersionType;
98
98
  }
99
- export declare enum PipelineMigratedFromType {
100
- HELM_RELEASE = "helmRelease",
101
- ARGO_APPLICATION = "argoApplication"
102
- }
103
99
  interface EnvironmentConfigType {
104
100
  id: number;
105
101
  status: number;
@@ -28,7 +28,7 @@ export interface CustomTagType {
28
28
  }
29
29
  export declare enum ReleaseMode {
30
30
  NEW_DEPLOYMENT = "create",
31
- MIGRATE_EXTERNAL_APPS = "link"
31
+ MIGRATE_HELM = "link"
32
32
  }
33
33
  export interface CDFormType {
34
34
  name: string;
@@ -81,6 +81,6 @@ export declare const TERMINAL_STATUS_COLOR_CLASS_MAP: {
81
81
  readonly [x: string]: "cr-5" | "cg-5" | "co-5";
82
82
  };
83
83
  export declare const PROGRESSING_STATUS: {
84
- readonly [x: string]: "running" | "progressing" | "starting" | "initiating" | "queued";
84
+ readonly [x: string]: "progressing" | "starting" | "initiating" | "queued" | "running";
85
85
  };
86
86
  export declare const FAILED_WORKFLOW_STAGE_STATUS_MAP: Record<Extract<WorkflowStageStatusType, WorkflowStageStatusType.ABORTED | WorkflowStageStatusType.FAILED | WorkflowStageStatusType.TIMEOUT>, true>;
@@ -519,14 +519,6 @@ export interface StatusFilterButtonType {
519
519
  handleFilterClick?: (selectedFilter: string) => void;
520
520
  maxInlineFiltersCount?: number;
521
521
  }
522
- export declare enum NodeStatusDTO {
523
- Healthy = "Healthy",
524
- Progressing = "Progressing",
525
- Unknown = "Unknown",
526
- Suspended = "Suspended",
527
- Degraded = "Degraded",
528
- Missing = "Missing"
529
- }
530
522
  export declare enum NodeStatus {
531
523
  Degraded = "degraded",
532
524
  Healthy = "healthy",
@@ -1,3 +1,3 @@
1
1
  import { GenericSectionErrorStateProps } from './types';
2
- declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps) => JSX.Element;
2
+ declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, }: GenericSectionErrorStateProps) => JSX.Element;
3
3
  export default GenericSectionErrorState;
@@ -1,6 +1,4 @@
1
- import { ReactNode } from 'react';
2
- import { ProgressingProps } from '../../../Common/Types';
3
- export type GenericSectionErrorStateProps = {
1
+ export interface GenericSectionErrorStateProps {
4
2
  /**
5
3
  * Handler for reloading the section
6
4
  */
@@ -18,11 +16,11 @@ export type GenericSectionErrorStateProps = {
18
16
  /**
19
17
  * @default 'We could not load the information on this page.'
20
18
  */
21
- subTitle?: ReactNode;
19
+ subTitle?: string;
22
20
  /**
23
21
  * @default 'Please reload or try again later'
24
22
  */
25
- description?: ReactNode;
23
+ description?: string;
26
24
  /**
27
25
  * @default 'Reload'
28
26
  */
@@ -31,21 +29,10 @@ export type GenericSectionErrorStateProps = {
31
29
  * to be applied on parent div
32
30
  */
33
31
  rootClassName?: string;
34
- } & ({
35
- /**
36
- * If provided, would render the Progressing component with given props instead of error icon
37
- */
38
- progressingProps: ProgressingProps;
39
- useInfoIcon?: never;
40
- } | {
41
- progressingProps?: never;
42
32
  /**
43
33
  * If true, info icon would be used instead of error
44
34
  *
45
35
  * @default false
46
36
  */
47
- useInfoIcon: boolean;
48
- } | {
49
- progressingProps?: never;
50
- useInfoIcon?: never;
51
- });
37
+ useInfoIcon?: boolean;
38
+ }
@@ -1,8 +1,8 @@
1
1
  import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
2
2
  import { SEVERITIES } from './constants';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--G500)" | "var(--N300)" | "var(--R700)" | "var(--R500)" | "var(--O500)" | "var(--Y500)";
5
- label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
4
+ color: "var(--N300)" | "var(--R700)" | "var(--R500)" | "var(--O500)" | "var(--Y500)" | "var(--G500)";
5
+ label: "Critical" | "High" | "Medium" | "Low" | "Unknown" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
8
8
  export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => string;
@@ -22,20 +22,6 @@ export interface MainContext {
22
22
  };
23
23
  isAirgapped: boolean;
24
24
  isSuperAdmin: boolean;
25
- featureGitOpsFlags: {
26
- /**
27
- * Would define whether gitops (Global config tab) feature is enabled or not
28
- */
29
- isFeatureGitOpsEnabled: boolean;
30
- /**
31
- * Would define whether user can select allow custom repo in gitops global config
32
- */
33
- isFeatureUserDefinedGitOpsEnabled: boolean;
34
- /**
35
- * Feature flag for Migrate to devtron from argo cd
36
- */
37
- isFeatureArgoCdMigrationEnabled: boolean;
38
- };
39
25
  isManifestScanningEnabled: boolean;
40
26
  }
41
27
  export interface MainContextProviderProps {
@@ -1,5 +1,4 @@
1
- import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
1
+ import { GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
2
2
  export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
3
3
  export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
4
4
  export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
5
- export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
@@ -1,4 +1,3 @@
1
- import { MainContext } from '../Providers';
2
1
  import { getUrlWithSearchParams } from '../../Common';
3
2
  import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
4
3
  export interface ClusterType {
@@ -29,9 +28,4 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
29
28
  }
30
29
  export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
31
30
  }
32
- export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitOpsFlags'> {
33
- isAirGapEnvironment: boolean;
34
- isManifestScanningEnabled: boolean;
35
- canOnlyViewPermittedEnvOrgLevel: boolean;
36
- }
37
31
  export {};
@@ -1,6 +1,6 @@
1
1
  import { AppDetails, AppType, EnvDetails, Node, PodMetaData, iNode } from '../types';
2
2
  export declare function getiNodesByRootNodeWithChildNodes(_nodes: Array<Node>, rootNodes: Array<iNode>, podMetadata?: Array<PodMetaData>): Array<iNode>;
3
- export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "progressing" | "healthy" | "degraded";
3
+ export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "healthy" | "progressing" | "degraded";
4
4
  export declare function getiNodesByKindWithChildNodes(_nodes: Array<Node>, _kind: string): Array<iNode>;
5
5
  export declare function getPodsRootParentNameAndStatus(_nodes: Array<Node>): Array<[string, string]>;
6
6
  export declare const getPodsForRootNodeName: (_rootNode: string, _treeNodes: Array<Node>) => Array<iNode>;