@devtron-labs/devtron-fe-common-lib 1.6.11-beta-2 → 1.6.12-beta-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 t, O as E } from "./@vendor-CWh7bjwl.js";
2
2
  import P, { 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 T, d as S, S as M } from "./@code-editor-BMC8pZqi.js";
4
+ import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-CrBxjFGI.js";
5
5
  import J, { components as C } from "react-select";
6
6
  import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as A, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as B, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
@@ -55,6 +55,7 @@ export declare const URLS: {
55
55
  DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
56
56
  GLOBAL_CONFIG_SCOPED_VARIABLES: string;
57
57
  GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
58
+ GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: string;
58
59
  NETWORK_STATUS_INTERFACE: string;
59
60
  RESOURCE_BROWSER: string;
60
61
  COMPARE_CLUSTERS: string;
@@ -1,6 +1,3 @@
1
1
  import { InfoColourBarType } from '../Types';
2
- /**
3
- * @deprecated
4
- */
5
2
  declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon, textConfig, }: InfoColourBarType) => JSX.Element;
6
3
  export default InfoColourBar;
@@ -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, ComponentLayoutType } from '../Shared';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO } 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
@@ -118,7 +118,7 @@ export interface GenericEmptyStateType {
118
118
  /**
119
119
  * @default 'column'
120
120
  */
121
- layout?: ComponentLayoutType;
121
+ layout?: 'row' | 'column';
122
122
  contentClassName?: string;
123
123
  }
124
124
  export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload' | 'redirectURL'> {
@@ -1,18 +1,16 @@
1
- export type DeploymentChartListDTO = Array<{
1
+ interface DeploymentChartInfo {
2
2
  id: number;
3
3
  chartDescription?: string;
4
4
  isUserUploaded: boolean;
5
5
  name: string;
6
6
  version: string;
7
- }>;
8
- interface DeploymentChartVersionsType {
9
- id: number;
10
- version: string;
7
+ uploadedBy: string;
8
+ }
9
+ export type DeploymentChartListDTO = DeploymentChartInfo[];
10
+ export interface DeploymentChartVersionsType extends Pick<DeploymentChartInfo, 'id' | 'version' | 'uploadedBy' | 'isUserUploaded'> {
11
11
  description: string;
12
12
  }
13
- export interface DeploymentChartType {
14
- name: string;
15
- isUserUploaded: boolean;
13
+ export interface DeploymentChartType extends Pick<DeploymentChartInfo, 'name'> {
16
14
  versions: DeploymentChartVersionsType[];
17
15
  }
18
16
  export declare enum DEVTRON_DEPLOYMENT_CHART_NAMES {
@@ -1,4 +1,3 @@
1
- import { ComponentLayoutType } from '../../types';
2
1
  import { ReactElement, ReactNode } from 'react';
3
2
  export type LabelOrAriaLabelType = {
4
3
  label: ReactNode;
@@ -19,7 +18,7 @@ export type FormFieldLabelProps = LabelOrAriaLabelType & {
19
18
  /**
20
19
  * Layout of the field
21
20
  */
22
- layout?: ComponentLayoutType;
21
+ layout?: 'row' | 'column';
23
22
  };
24
23
  export interface FormFieldInfoProps extends Pick<FormFieldLabelProps, 'inputId'> {
25
24
  /**
@@ -60,4 +60,3 @@ export * from './ThemeSwitcher';
60
60
  export * from './TargetPlatforms';
61
61
  export * from './UnsavedChanges';
62
62
  export * from './UnsavedChangesDialog';
63
- export * from './InfoBlock';
@@ -813,5 +813,8 @@ export declare const TriggerType: {
813
813
  readonly Auto: "AUTOMATIC";
814
814
  readonly Manual: "MANUAL";
815
815
  };
816
- export type ComponentLayoutType = 'row' | 'column';
816
+ export interface AppEnvIdType {
817
+ appId: number;
818
+ envId: number;
819
+ }
817
820
  export {};
@@ -56,3 +56,4 @@ export declare const validateCMVolumeMountPath: (value: string) => {
56
56
  isValid: boolean;
57
57
  message: string;
58
58
  };
59
+ export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;