@devtron-labs/devtron-fe-common-lib 0.3.14-beta-1 → 0.3.14-beta-2

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 (27) hide show
  1. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +1 -1
  2. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
  3. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +3 -0
  4. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +4 -3
  5. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +6 -7
  6. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -0
  7. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  8. package/dist/Shared/Services/app.types.d.ts +1 -1
  9. package/dist/assets/index.css +1 -1
  10. package/dist/{cssMode-IylcoDbx.js → cssMode-8G3MbCuv.js} +1 -1
  11. package/dist/{freemarker2-Dc0BAReS.js → freemarker2-Cdms4rgp.js} +1 -1
  12. package/dist/{handlebars-D8d3oeeL.js → handlebars-Dg3zpYFY.js} +1 -1
  13. package/dist/{html-DHIUzE39.js → html-iUPctsJZ.js} +1 -1
  14. package/dist/{htmlMode-C8ZDw4HO.js → htmlMode-CQTplCMn.js} +1 -1
  15. package/dist/{index-ByVomRMV.js → index-Cmo4Tc49.js} +13787 -13728
  16. package/dist/index.js +1 -1
  17. package/dist/{javascript-ietUe3zr.js → javascript-hGmfHDU3.js} +1 -1
  18. package/dist/{jsonMode-D-2SVjtk.js → jsonMode-Ba6fIHOv.js} +1 -1
  19. package/dist/{liquid-rTZVyZ7L.js → liquid-BwrItieM.js} +1 -1
  20. package/dist/{mdx-DlWEeuen.js → mdx-lZEgCFP3.js} +1 -1
  21. package/dist/{python-CoQh6-mN.js → python-OCkf3aBj.js} +1 -1
  22. package/dist/{razor-B7QZez8l.js → razor-BqWLThdb.js} +1 -1
  23. package/dist/{tsMode-PD0LurRg.js → tsMode-BQiLrbqV.js} +1 -1
  24. package/dist/{typescript-Cl3AgiB7.js → typescript-CUOLGMm7.js} +1 -1
  25. package/dist/{xml-DUme7BW4.js → xml-BIbLArL1.js} +1 -1
  26. package/dist/{yaml-CZ5BQ0MU.js → yaml-vEYtbKD4.js} +1 -1
  27. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  import { DeploymentHistoryConfigDiffProps } from './types';
2
- export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView, }: DeploymentHistoryConfigDiffProps) => JSX.Element;
2
+ export declare const DeploymentHistoryConfigDiff: ({ appName, envName, pipelineId, wfrId, triggerHistory, setFullScreenView, runSource, resourceId, renderRunSource, }: DeploymentHistoryConfigDiffProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DeploymentHistoryDiffDetailedProps } from './types';
2
- export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
2
+ export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, runSource, renderRunSource, resourceId, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
@@ -1,3 +1,6 @@
1
1
  import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
2
+ import { History } from '../types';
3
+ import { DeploymentHistoryConfigDiffProps } from './types';
2
4
  export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string) => JSX.Element;
3
5
  export declare const renderPipelineDeploymentStatusIcon: (status: string) => JSX.Element;
6
+ export declare const renderPipelineDeploymentOptionDescription: ({ stage, triggeredBy, triggeredByEmail, artifact, renderRunSource, resourceId, runSource, }: Pick<History, "triggeredBy" | "triggeredByEmail" | "artifact" | "stage"> & Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "resourceId" | "runSource">) => JSX.Element;
@@ -1,16 +1,17 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { DeploymentConfigDiffProps } from '@Shared/Components/DeploymentConfigDiff';
3
3
  import { EnvResourceType } from '../../../Services';
4
- import { History } from '../types';
5
- export interface DeploymentHistoryConfigDiffProps {
4
+ import { History, HistoryLogsProps, RunSourceType } from '../types';
5
+ export interface DeploymentHistoryConfigDiffProps extends Required<Pick<HistoryLogsProps, 'renderRunSource' | 'resourceId'>> {
6
6
  appName: string;
7
7
  envName: string;
8
8
  pipelineId: number;
9
9
  wfrId: number;
10
+ runSource: RunSourceType;
10
11
  triggerHistory: Map<number, History>;
11
12
  setFullScreenView: (fullscreen: boolean) => void;
12
13
  }
13
- export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList'> & Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName'> & {
14
+ export type DeploymentHistoryDiffDetailedProps = Pick<DeploymentConfigDiffProps, 'collapsibleNavList' | 'configList' | 'errorConfig' | 'isLoading' | 'navList'> & Required<Pick<DeploymentHistoryConfigDiffProps, 'setFullScreenView' | 'wfrId' | 'envName' | 'renderRunSource' | 'resourceId' | 'runSource'>> & {
14
15
  pipelineDeployments: History[];
15
16
  previousWfrId: number;
16
17
  convertVariables: boolean;
@@ -1,3 +1,4 @@
1
+ import { SelectPickerOptionType } from '@Shared/Components/SelectPicker';
1
2
  import { History } from '../types';
2
3
  import { DeploymentHistoryConfigDiffProps } from './types';
3
4
  export declare const getPipelineDeployments: (triggerHistory: DeploymentHistoryConfigDiffProps["triggerHistory"]) => History[];
@@ -7,14 +8,12 @@ export declare const getPipelineDeploymentsWfrIds: ({ pipelineDeployments, wfrId
7
8
  currentWfrId: number;
8
9
  previousWfrId: number;
9
10
  };
10
- export declare const getPipelineDeploymentsOptions: (pipelineDeployments: History[], wfrId: number) => {
11
+ export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrId, renderRunSource, resourceId, runSource, }: Required<Pick<DeploymentHistoryConfigDiffProps, "renderRunSource" | "runSource" | "resourceId">> & {
12
+ pipelineDeployments: History[];
13
+ wfrId: number;
14
+ }) => {
11
15
  currentDeployment: string;
12
- pipelineDeploymentsOptions: {
13
- value: number;
14
- label: string;
15
- description: string;
16
- startIcon: JSX.Element;
17
- }[];
16
+ pipelineDeploymentsOptions: SelectPickerOptionType<number>[];
18
17
  };
19
18
  export declare const parseDeploymentHistoryDiffSearchParams: (compareWfrId: number) => (searchParams: URLSearchParams) => {
20
19
  compareWfrId: number;
@@ -17,6 +17,8 @@ export interface DeploymentConfigType {
17
17
  export interface DeploymentConfigListItem {
18
18
  id: string;
19
19
  title: string;
20
+ name?: string;
21
+ pathType: EnvResourceType;
20
22
  primaryConfig: DeploymentConfigType;
21
23
  secondaryConfig: DeploymentConfigType;
22
24
  diffState: DeploymentConfigDiffState;
@@ -9,7 +9,7 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
9
9
  /**
10
10
  * Description to be displayed for the option
11
11
  */
12
- description?: string;
12
+ description?: ReactNode;
13
13
  /**
14
14
  * Icon at the start of the option
15
15
  */
@@ -239,6 +239,6 @@ export declare enum EnvResourceType {
239
239
  Secret = "secrets",
240
240
  DeploymentTemplate = "deployment-template",
241
241
  Manifest = "manifest",
242
- PipelineConfiguration = "pipeline-configuration"
242
+ PipelineStrategy = "pipeline-strategy"
243
243
  }
244
244
  export {};