@devtron-labs/devtron-fe-common-lib 0.2.18 → 0.2.20-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.
Files changed (29) hide show
  1. package/dist/Pages/App/AppConfigurations/index.d.ts +1 -0
  2. package/dist/Pages/App/AppConfigurations/utils.d.ts +3 -0
  3. package/dist/Pages/App/index.d.ts +1 -0
  4. package/dist/Pages/index.d.ts +1 -0
  5. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +2 -2
  6. package/dist/Shared/Components/CICDHistory/types.d.ts +18 -3
  7. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  8. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  9. package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
  10. package/dist/Shared/types.d.ts +1 -0
  11. package/dist/Shared/validations.d.ts +11 -0
  12. package/dist/{cssMode-2c30b361.js → cssMode-9142ae1a.js} +1 -1
  13. package/dist/{freemarker2-543f249a.js → freemarker2-2d0d7ee6.js} +1 -1
  14. package/dist/{handlebars-375e2ca9.js → handlebars-71171392.js} +1 -1
  15. package/dist/{html-89e98a3c.js → html-f102bb14.js} +1 -1
  16. package/dist/{htmlMode-eaa7306d.js → htmlMode-5794d753.js} +1 -1
  17. package/dist/{index-bac00dc2.js → index-8916d891.js} +17875 -17821
  18. package/dist/index.js +297 -294
  19. package/dist/{javascript-005cce04.js → javascript-31cae804.js} +1 -1
  20. package/dist/{jsonMode-09c2eb23.js → jsonMode-050baafa.js} +1 -1
  21. package/dist/{liquid-7d09fe91.js → liquid-89bed0de.js} +1 -1
  22. package/dist/{mdx-d4f4f63a.js → mdx-1fac36f2.js} +1 -1
  23. package/dist/{python-c4e048b6.js → python-ed206589.js} +1 -1
  24. package/dist/{razor-af31eab3.js → razor-ec674809.js} +1 -1
  25. package/dist/{tsMode-3fc87c5f.js → tsMode-ebf5cf6e.js} +1 -1
  26. package/dist/{typescript-506e0a19.js → typescript-f4090eca.js} +1 -1
  27. package/dist/{xml-223c5290.js → xml-92e88cb6.js} +1 -1
  28. package/dist/{yaml-70dc6e6b.js → yaml-1c216853.js} +1 -1
  29. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export { getDeploymentStageTitle } from './utils';
@@ -0,0 +1,3 @@
1
+ import { DeploymentStageType } from '../../../Shared/constants';
2
+
3
+ export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "pre-deployment" | "post-deployment" | "deployment" | "-";
@@ -0,0 +1 @@
1
+ export * from './AppConfigurations';
@@ -1,3 +1,4 @@
1
1
  export * from './GlobalConfigurations';
2
2
  export * from './ResourceBrowser';
3
3
  export * from './CDPipeline';
4
+ export * from './App';
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TriggerDetailsType, TriggerOutputProps } from './types';
3
3
 
4
- export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, }: TriggerDetailsType) => JSX.Element>;
5
- declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, }: TriggerOutputProps) => JSX.Element;
4
+ export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, }: TriggerDetailsType) => JSX.Element>;
5
+ declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo, }: TriggerOutputProps) => JSX.Element;
6
6
  export default TriggerOutput;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { CSSProperties, ReactElement } from 'react';
2
2
  import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable, SortingOrder } from '../../../Common';
3
3
  import { DeploymentStageType } from '../../constants';
4
4
  import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
@@ -47,6 +47,15 @@ export interface CICDSidebarFilterOptionType extends OptionType {
47
47
  pipelineType?: string;
48
48
  deploymentAppDeleteRequest?: boolean;
49
49
  }
50
+ export interface TargetConfigType {
51
+ tenantIcon?: string;
52
+ tenantId?: string;
53
+ tenantName?: string;
54
+ installationId?: string;
55
+ installationName?: string;
56
+ releaseChannelId?: string;
57
+ releaseChannelName?: string;
58
+ }
50
59
  export interface History {
51
60
  id: number;
52
61
  name: string;
@@ -81,6 +90,7 @@ export interface History {
81
90
  promotionApprovalMetadata?: PromotionApprovalMetadataType;
82
91
  triggerMetadata?: string;
83
92
  runSource?: RunSourceType;
93
+ targetConfig?: TargetConfigType;
84
94
  }
85
95
  export interface DeploymentHistoryResultObject {
86
96
  cdWorkflows: History[];
@@ -158,8 +168,13 @@ export interface StartDetailsType {
158
168
  isJobView?: boolean;
159
169
  triggerMetadata?: string;
160
170
  renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string) => JSX.Element;
171
+ /**
172
+ * Callback handler for showing the target config
173
+ */
174
+ renderTargetConfigInfo?: () => ReactElement;
175
+ stage: DeploymentStageType;
161
176
  }
162
- export interface TriggerDetailsType {
177
+ export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTargetConfigInfo'> {
163
178
  status: string;
164
179
  startedOn: string;
165
180
  finishedOn: string;
@@ -294,7 +309,7 @@ export interface VirtualHistoryArtifactProps {
294
309
  workflowId: number;
295
310
  };
296
311
  }
297
- export interface TriggerOutputProps extends RenderRunSourceType {
312
+ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDetailsType, 'renderTargetConfigInfo'> {
298
313
  fullScreenView: boolean;
299
314
  triggerHistory: Map<number, History>;
300
315
  setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
@@ -135,5 +135,5 @@ import { SelectPickerProps } from './type';
135
135
  * />
136
136
  * ```
137
137
  */
138
- declare const SelectPicker: <OptionValue extends string | number, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
138
+ declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
139
139
  export default SelectPicker;
@@ -7,7 +7,7 @@ export declare const SelectPickerControl: <OptionValue, IsMulti extends boolean>
7
7
  export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>, boolean, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "customSelectedOptionsCount" | "showSelectedOptionsCount">) => JSX.Element;
8
8
  export declare const SelectPickerLoadingIndicator: () => JSX.Element;
9
9
  export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>, boolean, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
10
- export declare const SelectPickerMenuList: <OptionValue extends string | number>(props: MenuListProps<SelectPickerOptionType<OptionValue>, boolean, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>>) => JSX.Element;
10
+ export declare const SelectPickerMenuList: <OptionValue>(props: MenuListProps<SelectPickerOptionType<OptionValue>, boolean, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>>) => JSX.Element;
11
11
  export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true, import('react-select').GroupBase<SelectPickerOptionType<OptionValue>>> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
12
12
  export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
13
13
  export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
@@ -24,7 +24,7 @@ declare module 'react-select/base' {
24
24
  /**
25
25
  * Render function for the footer at the bottom of menu list. It is sticky by default
26
26
  */
27
- renderMenuListFooter?: (selectedOptions: SelectProps<string | number, IsMulti>['value']) => ReactNode;
27
+ renderMenuListFooter?: () => ReactNode;
28
28
  /**
29
29
  * If true, custom options are rendered in the menuList component of react select
30
30
  *
@@ -45,7 +45,7 @@ export declare enum SelectPickerVariantType {
45
45
  DEFAULT = "default",
46
46
  BORDER_LESS = "border-less"
47
47
  }
48
- export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & {
48
+ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & {
49
49
  /**
50
50
  * Icon to be rendered in the control
51
51
  */
@@ -367,6 +367,7 @@ export declare enum ResourceKindType {
367
367
  cluster = "cluster",
368
368
  release = "release",
369
369
  releaseTrack = "release-track",
370
+ releaseChannel = "release-channel",
370
371
  tenant = "tenant",
371
372
  installation = "installation",
372
373
  environment = "environment",
@@ -14,6 +14,7 @@ export declare const MESSAGES: {
14
14
  VALID_POSITIVE_NUMBER: string;
15
15
  VALID_POSITIVE_INTEGER: string;
16
16
  MAX_SAFE_INTEGER: string;
17
+ INVALID_SEMANTIC_VERSION: string;
17
18
  };
18
19
  export declare const requiredField: (value: string) => ValidationResponseType;
19
20
  export declare const validateName: (name: string) => ValidationResponseType;
@@ -31,4 +32,14 @@ export declare const validateUniqueKeys: (keys: string[]) => {
31
32
  isValid: boolean;
32
33
  message: string;
33
34
  };
35
+ /**
36
+ * Rules for valid semantic version:
37
+ * 1. version.length < 128 and not empty
38
+ * 2. version should follow semantic versioning regex from https://semver.org/
39
+ */
40
+ export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
41
+ /**
42
+ * A valid display name should be between 3 and 50 characters
43
+ */
44
+ export declare const validateDisplayName: (name: string) => ValidationResponseType;
34
45
  export declare const validateJSON: (json: string) => ValidationResponseType;
@@ -1,7 +1,7 @@
1
1
  var Le = Object.defineProperty;
2
2
  var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ne } from "./index-bac00dc2.js";
4
+ import { m as Ne } from "./index-8916d891.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as F } from "./index-bac00dc2.js";
1
+ import { m as F } from "./index-8916d891.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as i } from "./index-bac00dc2.js";
1
+ import { m as i } from "./index-8916d891.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as d } from "./index-bac00dc2.js";
1
+ import { m as d } from "./index-8916d891.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var $e = Object.defineProperty;
2
2
  var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Qe } from "./index-bac00dc2.js";
4
+ import { m as Qe } from "./index-8916d891.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)