@devtron-labs/devtron-fe-common-lib 1.12.0-beta-2 → 1.12.0-beta-4

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.
Files changed (64) hide show
  1. package/dist/{@code-editor-WfOCu__U.js → @code-editor-DYNK2vkd.js} +9342 -9236
  2. package/dist/{@common-rjsf-Cb7AEsSR.js → @common-rjsf-DG-XAIRd.js} +2 -2
  3. package/dist/{@framer-motion-BaOj5B1h.js → @framer-motion-B-tsB4kf.js} +1 -1
  4. package/dist/{@react-dates-CdRpENvm.js → @react-dates-DQl_saOu.js} +1 -1
  5. package/dist/{@react-select-BLSAqXV1.js → @react-select-Cq3Neli-.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-BLmFnJWD.js → @react-virtualized-sticky-tree-DzwGuB_x.js} +1 -1
  7. package/dist/{@vendor-SjXFleuT.js → @vendor-B47rbd8d.js} +17441 -17441
  8. package/dist/Common/CIPipeline.Types.d.ts +20 -19
  9. package/dist/Common/Common.service.d.ts +2 -1
  10. package/dist/Common/Constants.d.ts +4 -1
  11. package/dist/Common/Drawer/index.d.ts +1 -0
  12. package/dist/Common/EmptyState/index.d.ts +2 -0
  13. package/dist/Common/Helper.d.ts +2 -0
  14. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  15. package/dist/Common/RJSF/Form.d.ts +1 -1
  16. package/dist/Common/Toggle/Toggle.d.ts +4 -1
  17. package/dist/Common/Types.d.ts +15 -1
  18. package/dist/Common/index.d.ts +2 -3
  19. package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
  20. package/dist/Shared/Components/AnimatedDeployButton/types.d.ts +0 -6
  21. package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +2 -0
  22. package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +3 -0
  23. package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +3 -0
  24. package/dist/Shared/Components/AppStatusModal/constants.d.ts +4 -0
  25. package/dist/Shared/Components/AppStatusModal/index.d.ts +2 -0
  26. package/dist/Shared/Components/AppStatusModal/service.d.ts +3 -0
  27. package/dist/Shared/Components/AppStatusModal/types.d.ts +35 -0
  28. package/dist/Shared/Components/AppStatusModal/utils.d.ts +5 -0
  29. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
  30. package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +1 -1
  31. package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -1
  32. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
  33. package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
  34. package/dist/Shared/Components/CICDHistory/types.d.ts +5 -14
  35. package/dist/Shared/Components/CMCS/constants.d.ts +2 -2
  36. package/dist/Shared/Components/CMCS/utils.d.ts +4 -3
  37. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +1 -1
  38. package/dist/Shared/Components/DynamicDataTable/types.d.ts +5 -1
  39. package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
  40. package/dist/Shared/Components/Error/types.d.ts +4 -0
  41. package/dist/Shared/Components/Error/utils.d.ts +1 -0
  42. package/dist/Shared/Components/Icon/Icon.d.ts +3 -4
  43. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  44. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  45. package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +75 -78
  46. package/dist/Shared/Components/KeyValueTable/index.d.ts +1 -1
  47. package/dist/Shared/Components/KeyValueTable/utils.d.ts +13 -0
  48. package/dist/Shared/Components/index.d.ts +1 -1
  49. package/dist/Shared/Services/app.types.d.ts +2 -6
  50. package/dist/Shared/types.d.ts +5 -2
  51. package/dist/assets/@code-editor.css +1 -1
  52. package/dist/assets/ic-expand-sm.a9a724f8.svg +3 -0
  53. package/dist/assets/ic-hand-pointing.aff70667.svg +4 -0
  54. package/dist/assets/{ic-selected.3a29e244.svg → ic-timeout-two-dash.9a580698.svg} +3 -2
  55. package/dist/index.js +843 -839
  56. package/package.json +1 -1
  57. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -3
  58. package/dist/Shared/Components/UserIdentifier/UserIdentifier.d.ts +0 -2
  59. package/dist/Shared/Components/UserIdentifier/index.d.ts +0 -2
  60. package/dist/Shared/Components/UserIdentifier/types.d.ts +0 -11
  61. package/dist/assets/ic-checks.d276fd05.svg +0 -3
  62. package/dist/assets/ic-key.8c76fb61.svg +0 -3
  63. package/dist/assets/ic-nav-rocket.433c9706.svg +0 -19
  64. package/dist/assets/ic-timeout-dash.d8e2d62e.svg +0 -21
@@ -1,4 +1,4 @@
1
- import { DynamicDataTableCellValidationState } from '../Shared/Components';
1
+ import { DynamicDataTableCellValidationState, KeyValueTableData } from '../Shared/Components';
2
2
  export interface MaterialType {
3
3
  name: string;
4
4
  type: string;
@@ -123,7 +123,7 @@ export interface PortMapType {
123
123
  portOnLocal: number;
124
124
  portOnContainer: number;
125
125
  }
126
- interface ConditionDetails {
126
+ export interface ConditionDetails {
127
127
  id: number;
128
128
  conditionOnVariable: string;
129
129
  conditionOperator: string;
@@ -220,10 +220,7 @@ export declare enum WORKFLOW_CACHE_CONFIG_ENUM {
220
220
  }
221
221
  export interface FormType {
222
222
  name: string;
223
- args: {
224
- key: string;
225
- value: string;
226
- }[];
223
+ args: KeyValueTableData[];
227
224
  materials: MaterialType[];
228
225
  gitHost: Githost;
229
226
  webhookEvents: WebhookEvent[];
@@ -271,22 +268,26 @@ export declare enum InputOutputVariablesHeaderKeys {
271
268
  FORMAT = "format",
272
269
  VALUE = "val"
273
270
  }
274
- export type InputOutputVariablesErrorObj = Record<InputOutputVariablesHeaderKeys, DynamicDataTableCellValidationState>;
271
+ export declare enum ConditionDataTableHeaderKeys {
272
+ VARIABLE = "variable",
273
+ OPERATOR = "operator",
274
+ VALUE = "val"
275
+ }
276
+ type InputOutputVariablesErrorObj = Record<InputOutputVariablesHeaderKeys, DynamicDataTableCellValidationState>;
277
+ type ConditionDetailsErrorObj = Record<ConditionDataTableHeaderKeys, DynamicDataTableCellValidationState>;
278
+ interface StepDetailTaskErrorObj {
279
+ inputVariables?: Record<number, InputOutputVariablesErrorObj>;
280
+ outputVariables?: Record<number, InputOutputVariablesErrorObj>;
281
+ isInputVariablesValid?: boolean;
282
+ isOutputVariablesValid?: boolean;
283
+ conditionDetails?: Record<number, ConditionDetailsErrorObj>;
284
+ isConditionDetailsValid?: boolean;
285
+ }
275
286
  export interface TaskErrorObj {
276
287
  isValid: boolean;
277
288
  name: ErrorObj;
278
- inlineStepDetail?: {
279
- inputVariables?: Record<number, InputOutputVariablesErrorObj>;
280
- outputVariables?: Record<number, InputOutputVariablesErrorObj>;
281
- isInputVariablesValid?: boolean;
282
- isOutputVariablesValid?: boolean;
283
- };
284
- pluginRefStepDetail?: {
285
- inputVariables?: Record<number, InputOutputVariablesErrorObj>;
286
- outputVariables?: Record<number, InputOutputVariablesErrorObj>;
287
- isInputVariablesValid?: boolean;
288
- isOutputVariablesValid?: boolean;
289
- };
289
+ inlineStepDetail?: StepDetailTaskErrorObj;
290
+ pluginRefStepDetail?: StepDetailTaskErrorObj;
290
291
  }
291
292
  export interface FormErrorObjectType {
292
293
  name: ErrorObj;
@@ -1,6 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
3
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole } from './Types';
3
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
6
6
  export declare const SourceTypeMap: {
@@ -35,3 +35,4 @@ export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }:
35
35
  isCD?: boolean;
36
36
  abortControllerRef?: MutableRefObject<AbortController>;
37
37
  }) => Promise<GlobalVariableOptionType[]>;
38
+ export declare const getAppsInfoForEnv: ({ envId, appIds }: GetAppsInfoForEnvProps) => Promise<EnvAppsMetaDTO>;
@@ -13,6 +13,7 @@ export declare const DOCUMENTATION: {
13
13
  GLOBAL_CONFIG_BUILD_INFRA: string;
14
14
  ENTERPRISE_LICENSE: string;
15
15
  KUBE_CONFIG: string;
16
+ TENANT_INSTALLATION: string;
16
17
  };
17
18
  export declare const PATTERNS: {
18
19
  STRING: RegExp;
@@ -64,7 +65,6 @@ export declare const URLS: {
64
65
  readonly COMPARE_CLUSTERS: "/compare-clusters";
65
66
  readonly APP_CONFIG: "edit";
66
67
  readonly GLOBAL_CONFIG: "/global-config";
67
- readonly CONFIG_DRIFT: "config-drift";
68
68
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
69
69
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
70
70
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
@@ -111,6 +111,7 @@ export declare const ROUTES: {
111
111
  readonly ATTRIBUTES_CREATE: "attributes/create";
112
112
  readonly ATTRIBUTES_UPDATE: "attributes/update";
113
113
  readonly APP_LIST_MIN: "app/min";
114
+ readonly APP_DETAIL: "app/detail";
114
115
  readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
115
116
  readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
116
117
  readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
@@ -133,6 +134,8 @@ export declare const ROUTES: {
133
134
  readonly ENVIRONMENT_DATA: "global/environment-variables";
134
135
  readonly DASHBOARD_EVENT: "dashboard-event";
135
136
  readonly LICENSE_DATA: "license/data";
137
+ readonly ENV: "env";
138
+ readonly APP_METADATA: "app-metadata";
136
139
  };
137
140
  export declare enum KEY_VALUE {
138
141
  KEY = "key",
@@ -0,0 +1 @@
1
+ export * from './Drawer';
@@ -0,0 +1,2 @@
1
+ export { default as GenericEmptyState } from './GenericEmptyState';
2
+ export { default as GenericFilterEmptyState } from './GenericFilterEmptyState';
@@ -95,8 +95,10 @@ export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultT
95
95
  export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => any;
96
96
  /**
97
97
  * Returns a debounced variant of the function
98
+ * @deprecated - It should use useRef instead, pls use useDebounce
98
99
  */
99
100
  export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
101
+ export declare const useDebounce: <Callback extends (...args: any[]) => void>(cb: Callback, delay: number) => (...args: Parameters<Callback>) => void;
100
102
  /**
101
103
  * Returns a capitalized string with first letter in uppercase and rest in lowercase
102
104
  */
@@ -1,6 +1,6 @@
1
1
  import { ShortcutType } from './types';
2
2
  export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
3
- keys: ("Alt" | "F" | "E" | "R" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
3
+ keys: ("R" | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
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, "children" | "id" | "className" | "disabled" | "onChange" | "name" | "target" | "onFocus" | "onBlur" | "onSubmit" | "onError" | "autoComplete" | "action" | "method" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "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<any, import('./types').RJSFFormSchema, any>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "id" | "children" | "disabled" | "className" | "onChange" | "target" | "onFocus" | "onBlur" | "onSubmit" | "onError" | "autoComplete" | "action" | "method" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "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<any, import('./types').RJSFFormSchema, any>>>;
@@ -1,4 +1,5 @@
1
- declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, ...props }: {
1
+ import { CHECKBOX_VALUE } from '../Types';
2
+ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, value, isControlled, ...props }: {
2
3
  [x: string]: any;
3
4
  selected?: boolean;
4
5
  onSelect?: any;
@@ -11,5 +12,7 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
11
12
  throttleOnChange?: boolean;
12
13
  shouldToggleValueOnLabelClick?: boolean;
13
14
  isLoading?: boolean;
15
+ value?: CHECKBOX_VALUE;
16
+ isControlled?: boolean;
14
17
  }) => JSX.Element;
15
18
  export default Toggle;
@@ -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, ButtonProps, ComponentLayoutType, StatusType } 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
@@ -110,6 +110,7 @@ export interface InfoIconTippyProps extends Pick<TippyCustomizedProps, 'heading'
110
110
  dataTestid?: string;
111
111
  children?: TippyCustomizedProps['children'];
112
112
  iconClassName?: string;
113
+ buttonPadding?: string;
113
114
  }
114
115
  export interface GenericEmptyStateType {
115
116
  title: ReactNode;
@@ -949,4 +950,17 @@ export declare enum ActionTypes {
949
950
  EDIT = "edit",
950
951
  APPROVER = "approver"
951
952
  }
953
+ export interface GetAppsInfoForEnvProps {
954
+ envId: number;
955
+ appIds?: number[];
956
+ }
957
+ export interface AppMeta {
958
+ appId: number;
959
+ appStatus: StatusType;
960
+ appName: string;
961
+ }
962
+ export interface EnvAppsMetaDTO {
963
+ appCount: number;
964
+ apps: AppMeta[];
965
+ }
952
966
  export {};
@@ -16,9 +16,8 @@ export { default as DevtronCopyright } from './DevtronCopyright';
16
16
  export * from './DevtronProgressing';
17
17
  export * from './Dialogs';
18
18
  export * from './DraggableWrapper';
19
- export * from './Drawer/Drawer';
20
- export { default as GenericEmptyState } from './EmptyState/GenericEmptyState';
21
- export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEmptyState';
19
+ export * from './Drawer';
20
+ export * from './EmptyState';
22
21
  export { default as ErrorScreenManager } from './ErrorScreenManager';
23
22
  export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
24
23
  export * from './GenericDescription';
@@ -1,3 +1,3 @@
1
1
  import { AnimatedDeployButtonProps } from './types';
2
- declare const AnimatedDeployButton: ({ isLoading, isVirtualEnvironment, onButtonClick, exceptionUserConfig, isBulkCDTrigger, }: AnimatedDeployButtonProps) => JSX.Element;
2
+ declare const AnimatedDeployButton: ({ isVirtualEnvironment, onButtonClick }: AnimatedDeployButtonProps) => JSX.Element;
3
3
  export default AnimatedDeployButton;
@@ -1,10 +1,4 @@
1
1
  export interface AnimatedDeployButtonProps {
2
- isLoading?: boolean;
3
2
  isVirtualEnvironment: boolean;
4
3
  onButtonClick: (e: any, disableDeployButton: boolean) => void;
5
- exceptionUserConfig?: {
6
- canDeploy: boolean;
7
- isImageApprover: boolean;
8
- };
9
- isBulkCDTrigger?: boolean;
10
4
  }
@@ -0,0 +1,2 @@
1
+ import { AppStatusBodyProps } from './types';
2
+ export declare const AppStatusBody: ({ appDetails, type, handleShowConfigDriftModal }: AppStatusBodyProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { AppStatusContentProps } from './types';
2
+ declare const AppStatusContent: ({ appDetails, handleShowConfigDriftModal, filterHealthyNodes, isCardLayout, }: AppStatusContentProps) => JSX.Element;
3
+ export default AppStatusContent;
@@ -0,0 +1,3 @@
1
+ import { AppStatusModalProps } from './types';
2
+ declare const AppStatusModal: ({ titleSegments, handleClose, type, appDetails: appDetailsProp, isConfigDriftEnabled, configDriftModal: ConfigDriftModal, appId, envId, }: AppStatusModalProps) => JSX.Element;
3
+ export default AppStatusModal;
@@ -0,0 +1,4 @@
1
+ export declare const APP_STATUS_CUSTOM_MESSAGES: {
2
+ HIBERNATED: string;
3
+ 'PARTIALLY HIBERNATED': string;
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as AppStatusContent } from './AppStatusContent';
2
+ export { default as AppStatusModal } from './AppStatusModal.component';
@@ -0,0 +1,3 @@
1
+ import { APIOptions } from '../../../Common/Types';
2
+ import { AppDetails } from '../../types';
3
+ export declare const getAppDetails: (appId: number, envId: number, abortControllerRef: APIOptions["abortControllerRef"]) => Promise<AppDetails>;
@@ -0,0 +1,35 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { AppDetails, ConfigDriftModalProps } from '../../types';
3
+ export type AppStatusModalProps = {
4
+ titleSegments: string[];
5
+ handleClose: () => void;
6
+ /**
7
+ * If given would not poll for app details and resource tree, Polling for gitops timeline would still be done
8
+ */
9
+ appDetails?: AppDetails;
10
+ isConfigDriftEnabled: boolean;
11
+ configDriftModal: FunctionComponent<ConfigDriftModalProps>;
12
+ } & ({
13
+ type: 'release';
14
+ appId: number;
15
+ envId: number;
16
+ } | {
17
+ type: 'devtron-app' | 'other-apps' | 'stack-manager';
18
+ appId?: never;
19
+ envId?: never;
20
+ });
21
+ export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type'>> {
22
+ handleShowConfigDriftModal: () => void;
23
+ }
24
+ export interface AppStatusContentProps extends Required<Pick<AppStatusBodyProps, 'appDetails'>>, Partial<Pick<AppStatusBodyProps, 'handleShowConfigDriftModal'>> {
25
+ /**
26
+ * @default false
27
+ */
28
+ filterHealthyNodes?: boolean;
29
+ /**
30
+ * @default true
31
+ */
32
+ isCardLayout?: boolean;
33
+ }
34
+ export interface GetFilteredFlattenedNodesFromAppDetailsParamsType extends Pick<AppStatusContentProps, 'appDetails' | 'filterHealthyNodes'> {
35
+ }
@@ -0,0 +1,5 @@
1
+ import { AppDetails, Node } from '../../types';
2
+ import { GetFilteredFlattenedNodesFromAppDetailsParamsType as GetFlattenedNodesFromAppDetailsParamsType } from './types';
3
+ export declare const getAppStatusMessageFromAppDetails: (appDetails: AppDetails) => string;
4
+ export declare const getFlattenedNodesFromAppDetails: ({ appDetails, filterHealthyNodes, }: GetFlattenedNodesFromAppDetailsParamsType) => Node[];
5
+ export declare const getResourceKey: (nodeDetails: Node) => string;
@@ -1,4 +1,4 @@
1
1
  import { ArtifactType, CIListItemType } from './types';
2
- export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, targetPlatforms, isDeploymentWithoutApproval, }: CIListItemType) => JSX.Element;
2
+ export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, targetPlatforms, }: CIListItemType) => JSX.Element;
3
3
  declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobCI, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, rootClassName, renderCIListHeader, targetPlatforms, }: ArtifactType) => JSX.Element;
4
4
  export default Artifacts;
@@ -1,3 +1,3 @@
1
1
  import { DeploymentDetailStepsType } from './types';
2
- declare const DeploymentDetailSteps: ({ deploymentStatus, deploymentAppType, isHelmApps, installedAppVersionHistoryId, isGitops, userApprovalMetadata, isVirtualEnvironment, processVirtualEnvironmentDeploymentData, renderDeploymentApprovalInfo, isDeploymentWithoutApproval, }: DeploymentDetailStepsType) => JSX.Element;
2
+ declare const DeploymentDetailSteps: ({ deploymentStatus, deploymentAppType, isHelmApps, installedAppVersionHistoryId, isGitops, userApprovalMetadata, isVirtualEnvironment, processVirtualEnvironmentDeploymentData, renderDeploymentApprovalInfo, }: DeploymentDetailStepsType) => JSX.Element;
3
3
  export default DeploymentDetailSteps;
@@ -1,4 +1,4 @@
1
1
  import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
2
2
  export declare const LogResizeButton: ({ shortcutCombo, showOnlyWhenPathIncludesLogs, fullScreenView, setFullScreenView, }: LogResizeButtonType) => JSX.Element;
3
3
  export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
4
- export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, targetPlatforms, isDeploymentWithoutApproval, }: GitChangesType) => JSX.Element;
4
+ export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, targetPlatforms, }: GitChangesType) => JSX.Element;
@@ -84,3 +84,4 @@ export declare const PROGRESSING_STATUS: {
84
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>;
87
+ export declare const APP_HEALTH_DROP_DOWN_LIST: string[];
@@ -1,4 +1,3 @@
1
- export { default as AppStatusDetailsChart } from './AppStatusDetailsChart';
2
1
  export { default as Artifacts } from './Artifacts';
3
2
  export { default as CDEmptyState } from './CDEmptyState';
4
3
  export * from './CiPipelineSourceConfig';
@@ -134,7 +134,6 @@ export interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'>, Wo
134
134
  triggerMetadata?: string;
135
135
  runSource?: RunSourceType;
136
136
  targetConfig?: TargetConfigType;
137
- isDeploymentWithoutApproval?: boolean;
138
137
  }
139
138
  export interface ExecutionInfoType {
140
139
  /**
@@ -314,7 +313,7 @@ export interface DeploymentStatusDetailsTimelineType {
314
313
  statusTime: string;
315
314
  resourceDetails?: SyncStageResourceDetail[];
316
315
  }
317
- export interface DeploymentStatusDetailsType extends Pick<History, 'isDeploymentWithoutApproval'> {
316
+ export interface DeploymentStatusDetailsType {
318
317
  deploymentFinishedOn: string;
319
318
  deploymentStartedOn: string;
320
319
  triggeredBy: string;
@@ -328,7 +327,7 @@ export interface DeploymentStatusDetailsResponse extends ResponseType {
328
327
  }
329
328
  interface DeploymentStatusDetailRow {
330
329
  icon: string;
331
- displayText: ReactNode;
330
+ displayText: string;
332
331
  displaySubText: string;
333
332
  time: string;
334
333
  resourceDetails?: any;
@@ -356,7 +355,7 @@ export interface DeploymentStatusDetailsBreakdownDataType {
356
355
  HELM_PACKAGE_GENERATED?: DeploymentStatusDetailRow;
357
356
  };
358
357
  }
359
- export interface DeploymentDetailStepsType extends Pick<History, 'isDeploymentWithoutApproval'> {
358
+ export interface DeploymentDetailStepsType {
360
359
  deploymentStatus?: string;
361
360
  deploymentAppType?: DeploymentAppTypes;
362
361
  isHelmApps?: boolean;
@@ -367,7 +366,7 @@ export interface DeploymentDetailStepsType extends Pick<History, 'isDeploymentWi
367
366
  processVirtualEnvironmentDeploymentData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
368
367
  renderDeploymentApprovalInfo: (userApprovalMetadata: UserApprovalMetadataType) => JSX.Element;
369
368
  }
370
- export interface RenderCIListHeaderProps extends Required<Pick<History, 'isDeploymentWithoutApproval'>> {
369
+ export interface RenderCIListHeaderProps {
371
370
  userApprovalMetadata: UserApprovalMetadataType;
372
371
  triggeredBy: string;
373
372
  appliedFilters: FilterConditionsListType[];
@@ -385,7 +384,7 @@ export interface VirtualHistoryArtifactProps {
385
384
  workflowId: number;
386
385
  };
387
386
  }
388
- export type CIListItemType = Pick<History, 'promotionApprovalMetadata' | 'isDeploymentWithoutApproval'> & {
387
+ export type CIListItemType = Pick<History, 'promotionApprovalMetadata'> & {
389
388
  userApprovalMetadata?: UserApprovalMetadataType;
390
389
  triggeredBy?: string;
391
390
  children: ReactNode;
@@ -508,12 +507,6 @@ export interface DeploymentHistorySidebarType {
508
507
  deploymentHistoryList: DeploymentTemplateList[];
509
508
  setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
510
509
  }
511
- export interface AppStatusDetailsChartType {
512
- filterRemoveHealth?: boolean;
513
- showFooter: boolean;
514
- showConfigDriftInfo?: boolean;
515
- onClose?: () => void;
516
- }
517
510
  export interface StatusFilterButtonType {
518
511
  nodes: Array<Node>;
519
512
  selectedTab: string;
@@ -602,7 +595,6 @@ export type GitChangesType = {
602
595
  appliedFilters?: never;
603
596
  appliedFiltersTimestamp?: never;
604
597
  renderCIListHeader?: never;
605
- isDeploymentWithoutApproval?: never;
606
598
  } | {
607
599
  artifact: string;
608
600
  promotionApprovalMetadata: History['promotionApprovalMetadata'];
@@ -620,7 +612,6 @@ export type GitChangesType = {
620
612
  appliedFilters?: FilterConditionsListType[];
621
613
  appliedFiltersTimestamp?: string;
622
614
  renderCIListHeader: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
623
- isDeploymentWithoutApproval?: History['isDeploymentWithoutApproval'];
624
615
  });
625
616
  export interface ArtifactType extends Pick<TargetPlatformBadgeListProps, 'targetPlatforms'> {
626
617
  status: string;
@@ -1,4 +1,4 @@
1
- import { CMSecretYamlData } from '../../Services';
1
+ import { KeyValueTableData } from '../KeyValueTable';
2
2
  import { ConfigMapSecretDataTypeOptionType } from './types';
3
3
  export declare const CONFIG_MAP_SECRET_YAML_PARSE_ERROR = "Please provide valid YAML";
4
4
  export declare const SECRET_TOAST_INFO: {
@@ -10,7 +10,7 @@ export declare const SECRET_TOAST_INFO: {
10
10
  BOTH_ESO_DATA_AND_DATA_FROM_UNAVAILABLE: string;
11
11
  };
12
12
  export declare const configMapDataTypeOptions: ConfigMapSecretDataTypeOptionType[];
13
- export declare const CONFIG_MAP_SECRET_DEFAULT_CURRENT_DATA: CMSecretYamlData[];
13
+ export declare const CONFIG_MAP_SECRET_DEFAULT_CURRENT_DATA: KeyValueTableData[];
14
14
  export declare const configMapSecretMountDataMap: {
15
15
  environment: {
16
16
  title: string;
@@ -1,8 +1,9 @@
1
1
  import { GroupBase, OptionsOrGroups } from 'react-select';
2
- import { CMSecretPayloadType, CMSecretYamlData, ConfigMapSecretUseFormProps, ESOSecretData, GetConfigMapSecretFormInitialValuesParamsType } from '../../Services';
2
+ import { CMSecretPayloadType, ConfigMapSecretUseFormProps, ESOSecretData, GetConfigMapSecretFormInitialValuesParamsType } from '../../Services';
3
+ import { KeyValueTableData } from '../KeyValueTable';
3
4
  import { ConfigMapSecretDataTypeOptionType, GetConfigMapSecretReadOnlyValuesParamsType } from './types';
4
5
  export declare const getSecretDataTypeOptions: (isJob: boolean, isHashiOrAWS: boolean) => ConfigMapSecretDataTypeOptionType[] | OptionsOrGroups<ConfigMapSecretDataTypeOptionType, GroupBase<ConfigMapSecretDataTypeOptionType>>;
5
- export declare const convertKeyValuePairToYAML: (currentData: CMSecretYamlData[]) => string;
6
+ export declare const convertKeyValuePairToYAML: (currentData: KeyValueTableData[]) => string;
6
7
  export declare const getConfigMapSecretFormInitialValues: ({ isJob, configMapSecretData, cmSecretStateLabel, componentType, skipValidation, fallbackMergeStrategy, }: GetConfigMapSecretFormInitialValuesParamsType) => ConfigMapSecretUseFormProps;
7
8
  export declare const getConfigMapSecretReadOnlyValues: ({ configMapSecretData, cmSecretStateLabel, componentType, isJob, fallbackMergeStrategy, displayKeys, }: GetConfigMapSecretReadOnlyValuesParamsType) => {
8
9
  configData: {
@@ -12,6 +13,6 @@ export declare const getConfigMapSecretReadOnlyValues: ({ configMapSecretData, c
12
13
  }[];
13
14
  data: string;
14
15
  };
15
- export declare const convertYAMLToKeyValuePair: (yaml: string) => CMSecretYamlData[];
16
+ export declare const convertYAMLToKeyValuePair: (yaml: string) => KeyValueTableData[];
16
17
  export declare const getESOSecretDataFromYAML: (yaml: string) => ESOSecretData;
17
18
  export declare const getConfigMapSecretPayload: ({ isSecret, external, externalType, externalSubpathValues, yaml, yamlMode, currentData, esoSecretYaml, filePermission, name, selectedType, isFilePermissionChecked, roleARN, volumeMountPath, isSubPathChecked, mergeStrategy, }: ConfigMapSecretUseFormProps) => CMSecretPayloadType;
@@ -1,2 +1,2 @@
1
1
  import { DynamicDataTableHeaderProps } from './types';
2
- export declare const DynamicDataTableHeader: <K extends string, CustomStateType = Record<string, unknown>>({ headers, rows, sortingConfig, onRowAdd, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, headerComponent, actionButtonConfig, }: DynamicDataTableHeaderProps<K, CustomStateType>) => JSX.Element;
2
+ export declare const DynamicDataTableHeader: <K extends string, CustomStateType = Record<string, unknown>>({ headers, rows, sortingConfig, addBtnTooltip, onRowAdd, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, headerComponent, actionButtonConfig, }: DynamicDataTableHeaderProps<K, CustomStateType>) => JSX.Element;
@@ -112,6 +112,10 @@ export type DynamicDataTableProps<K extends string, CustomStateType = Record<str
112
112
  isDeletionNotAllowed?: boolean;
113
113
  /** When true, data add or update is disabled. */
114
114
  readOnly?: boolean;
115
+ /** Tooltip for add button.
116
+ * @default 'Add'
117
+ */
118
+ addBtnTooltip?: string;
115
119
  /** Function to handle the addition of a new row to the table. */
116
120
  onRowAdd: () => void;
117
121
  /**
@@ -163,7 +167,7 @@ export type DynamicDataTableProps<K extends string, CustomStateType = Record<str
163
167
  */
164
168
  focusableFieldKey?: K;
165
169
  };
166
- export interface DynamicDataTableHeaderProps<K extends string, CustomStateType = Record<string, unknown>> extends Pick<DynamicDataTableProps<K, CustomStateType>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'> {
170
+ export interface DynamicDataTableHeaderProps<K extends string, CustomStateType = Record<string, unknown>> extends Pick<DynamicDataTableProps<K, CustomStateType>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'addBtnTooltip' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'> {
167
171
  }
168
172
  export interface DynamicDataTableRowProps<K extends string, CustomStateType = Record<string, unknown>> extends Pick<DynamicDataTableProps<K, CustomStateType>, 'rows' | 'headers' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | 'cellError' | 'leadingCellIcon' | 'trailingCellIcon' | 'buttonCellWrapComponent' | 'focusableFieldKey'> {
169
173
  }
@@ -1,3 +1,3 @@
1
1
  import { ErrorBarType } from './types';
2
- declare const ErrorBar: ({ appDetails }: ErrorBarType) => JSX.Element;
2
+ declare const ErrorBar: ({ appDetails, useParentMargin }: ErrorBarType) => JSX.Element;
3
3
  export default ErrorBar;
@@ -1,6 +1,10 @@
1
1
  import { AppDetails } from '../../types';
2
2
  export interface ErrorBarType {
3
3
  appDetails: AppDetails;
4
+ /**
5
+ * @default true
6
+ */
7
+ useParentMargin?: boolean;
4
8
  }
5
9
  export declare enum AppDetailsErrorType {
6
10
  ERRIMAGEPULL = "errimagepull",
@@ -1,2 +1,3 @@
1
1
  import { AppDetails } from '../../types';
2
+ export declare const getIsImagePullBackOff: (appDetails: AppDetails) => boolean;
2
3
  export declare const renderErrorHeaderMessage: (appDetails: AppDetails, key: string, onClickActionButton?: any) => JSX.Element;
@@ -23,7 +23,6 @@ export declare const iconMap: {
23
23
  'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
24
  'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
25
  'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
- 'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
26
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
28
27
  'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
29
28
  'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -46,6 +45,7 @@ export declare const iconMap: {
46
45
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
46
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
47
  'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
+ 'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
49
  'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
50
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
51
  'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -57,6 +57,7 @@ export declare const iconMap: {
57
57
  'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
58
  'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
59
  'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
+ 'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
61
  'ic-heart-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
62
  'ic-heart-red-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
63
  'ic-heart-red': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -69,7 +70,6 @@ export declare const iconMap: {
69
70
  'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
71
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
72
  'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
- 'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
73
73
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
74
74
  'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
75
75
  'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -94,7 +94,6 @@ export declare const iconMap: {
94
94
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
95
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
96
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
97
- 'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
98
97
  'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
99
98
  'ic-sliders-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
100
99
  'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -107,7 +106,7 @@ export declare const iconMap: {
107
106
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
108
107
  'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
109
108
  'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
110
- 'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
109
+ 'ic-timeout-two-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
111
110
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
112
111
  'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
113
112
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,3 +1,3 @@
1
1
  import { InfoIconTippyProps } from '../../../Common/Types';
2
- declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
2
+ declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, }: InfoIconTippyProps) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -1,2 +1,2 @@
1
1
  import { KeyValueTableProps } from './KeyValueTable.types';
2
- export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed, readOnly, showError, validationSchema: parentValidationSchema, errorMessages: parentErrorMessages, onError, validateDuplicateKeys, validateEmptyKeys, }: KeyValueTableProps<K>) => JSX.Element;
2
+ export declare const KeyValueTable: ({ headerLabel, rows: initialRows, placeholder, maskValue, isSortable, headerComponent, onChange, isAdditionNotAllowed, readOnly, showError, validationSchema: parentValidationSchema, onError, validateDuplicateKeys, validateEmptyKeys, }: KeyValueTableProps) => JSX.Element;