@devtron-labs/devtron-fe-common-lib 0.0.92 → 0.0.93-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.
- package/dist/Common/RJSF/common/FieldRow.d.ts +1 -4
- package/dist/Common/RJSF/common/types.d.ts +1 -1
- package/dist/Common/RJSF/constants.d.ts +4 -1
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
- package/dist/Common/RJSF/templates/index.d.ts +0 -1
- package/dist/Common/RJSF/utils.d.ts +3 -1
- package/dist/Common/Reload.d.ts +3 -0
- package/dist/Shared/Components/ArtifactInfoModal/ArtifactInfoModal.component.d.ts +4 -0
- package/dist/Shared/Components/ArtifactInfoModal/index.d.ts +2 -0
- package/dist/Shared/Components/ArtifactInfoModal/types.d.ts +15 -0
- package/dist/Shared/Components/CommitChipCell/CommitChipCell.d.ts +4 -0
- package/dist/Shared/Components/CommitChipCell/index.d.ts +2 -0
- package/dist/Shared/Components/CommitChipCell/types.d.ts +6 -0
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +4 -0
- package/dist/Shared/Components/ImageChipCell/index.d.ts +2 -0
- package/dist/Shared/Components/ImageChipCell/types.d.ts +8 -0
- package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +4 -0
- package/dist/Shared/Components/MaterialHistory/index.d.ts +2 -0
- package/dist/Shared/Components/MaterialHistory/types.d.ts +8 -0
- package/dist/Shared/Components/index.d.ts +4 -0
- package/dist/Shared/Services/app.service.d.ts +7 -0
- package/dist/Shared/Services/app.types.d.ts +95 -0
- package/dist/Shared/Services/index.d.ts +2 -0
- package/dist/Shared/Services/utils.d.ts +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-9a190214.js → cssMode-45205dde.js} +1 -1
- package/dist/{freemarker2-dea8698e.js → freemarker2-38df5f63.js} +1 -1
- package/dist/{handlebars-c498c187.js → handlebars-d6e84219.js} +1 -1
- package/dist/{html-f48421bf.js → html-787cffed.js} +1 -1
- package/dist/{htmlMode-9b00320e.js → htmlMode-27d78e36.js} +1 -1
- package/dist/{index-7ecdad6b.js → index-7d372791.js} +18349 -18087
- package/dist/index.js +407 -401
- package/dist/{javascript-127e4efb.js → javascript-b65cd724.js} +1 -1
- package/dist/{jsonMode-7e25a4dc.js → jsonMode-fc544e56.js} +1 -1
- package/dist/{liquid-a0ae58fa.js → liquid-65648720.js} +1 -1
- package/dist/{mdx-e1813b4c.js → mdx-2f8cccbe.js} +1 -1
- package/dist/{python-de0a209c.js → python-756c3cbf.js} +1 -1
- package/dist/{razor-1187b450.js → razor-e9e06989.js} +1 -1
- package/dist/{tsMode-cd7e7fd5.js → tsMode-fe756675.js} +1 -1
- package/dist/{typescript-b1bb1673.js → typescript-ffc40e50.js} +1 -1
- package/dist/{xml-a0fb8104.js → xml-20e865f4.js} +1 -1
- package/dist/{yaml-8ec5f04b.js → yaml-e2276f15.js} +1 -1
- package/package.json +1 -1
- package/dist/Common/RJSF/templates/Description.d.ts +0 -3
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { DO_NOT_SHOW_LABEL } from '../constants';
|
|
2
1
|
import { FieldRowProps } from './types';
|
|
3
2
|
|
|
4
|
-
export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, shouldAlignCenter, }:
|
|
5
|
-
label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL;
|
|
6
|
-
}) => JSX.Element;
|
|
3
|
+
export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, rawDescription, shouldAlignCenter, }: FieldRowProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldTemplateProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id'> {
|
|
3
|
+
export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id' | 'rawDescription'> {
|
|
4
4
|
showLabel?: boolean;
|
|
5
5
|
/**
|
|
6
6
|
* @default true
|
|
@@ -4,4 +4,7 @@ export declare const PLACEHOLDERS: {
|
|
|
4
4
|
OBJECT_KEY: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const DEFAULT_FIELD_TITLE = "Key not available";
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const ADD_BUTTON_WIDTH: {
|
|
8
|
+
MAX_WIDTH_VALUE: number;
|
|
9
|
+
MAX_WIDTH_CLASSNAME: string;
|
|
10
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IconButtonProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
|
|
3
|
+
export declare const AddButton: ({ label, icon, iconType, registry, uiSchema, ...props }: IconButtonProps & Partial<Record<'label', string>>) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TitleFieldProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const TitleField: ({ id, title, required }: TitleFieldProps) => JSX.Element;
|
|
3
|
+
export declare const TitleField: ({ id, title, required, description }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
|
|
@@ -2,7 +2,6 @@ export { ArrayFieldTemplate } from './ArrayFieldTemplate';
|
|
|
2
2
|
export { ArrayFieldItemTemplate } from './ArrayFieldItemTemplate';
|
|
3
3
|
export { BaseInput as BaseInputTemplate } from './BaseInput';
|
|
4
4
|
export * from './ButtonTemplates';
|
|
5
|
-
export { Description as DescriptionFieldTemplate } from './Description';
|
|
6
5
|
export { Field as FieldTemplate } from './Field';
|
|
7
6
|
export { FieldErrorTemplate } from './FieldErrorTemplate';
|
|
8
7
|
export { ObjectFieldTemplate } from './ObjectFieldTemplate';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as Tippy } from '@tippyjs/react';
|
|
1
2
|
import { TranslatableString } from '@rjsf/utils';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -12,7 +13,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
12
13
|
valueContainer: (base: any, state: any) => any;
|
|
13
14
|
loadingMessage: (base: any) => any;
|
|
14
15
|
noOptionsMessage: (base: any) => any;
|
|
15
|
-
multiValue: (base: any
|
|
16
|
+
multiValue: (base: any) => any;
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
* Returns the redirection props for a url
|
|
@@ -24,3 +25,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
|
|
|
24
25
|
* Infers the type for json schema from value type
|
|
25
26
|
*/
|
|
26
27
|
export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
28
|
+
export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (children: any) => JSX.Element;
|
package/dist/Common/Reload.d.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ArtifactType } from '../CICDHistory';
|
|
2
|
+
|
|
3
|
+
export type ArtifactInfoModalProps = Pick<ArtifactType, 'renderCIListHeader'> & {
|
|
4
|
+
ciArtifactId: number;
|
|
5
|
+
handleClose: () => void;
|
|
6
|
+
} & ({
|
|
7
|
+
envId: number | string;
|
|
8
|
+
fetchOnlyArtifactInfo?: false;
|
|
9
|
+
} | {
|
|
10
|
+
envId?: never;
|
|
11
|
+
/**
|
|
12
|
+
* If true, the env and trigger meta data is not fetched
|
|
13
|
+
*/
|
|
14
|
+
fetchOnlyArtifactInfo: true;
|
|
15
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CIMaterialType } from '../../Services/app.types';
|
|
2
|
+
|
|
3
|
+
export interface MaterialHistoryProps {
|
|
4
|
+
material: CIMaterialType;
|
|
5
|
+
pipelineName: string;
|
|
6
|
+
ciPipelineId?: string;
|
|
7
|
+
selectCommit?: (materialId: string, commit: string, ciPipelineId?: string) => void;
|
|
8
|
+
}
|
|
@@ -23,3 +23,7 @@ export * from './FeatureDescription';
|
|
|
23
23
|
export * from './CICDHistory';
|
|
24
24
|
export * from './GitCommitInfoGeneric';
|
|
25
25
|
export * from './Error';
|
|
26
|
+
export * from './CommitChipCell';
|
|
27
|
+
export * from './ImageChipCell';
|
|
28
|
+
export * from './ArtifactInfoModal';
|
|
29
|
+
export * from './MaterialHistory';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
|
|
2
|
+
|
|
3
|
+
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
|
4
|
+
/**
|
|
5
|
+
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
6
|
+
*/
|
|
7
|
+
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, 'ciArtifactId'>) => Promise<CIMaterialInfoType>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ReleaseTag } from '../../Common';
|
|
2
|
+
|
|
3
|
+
interface WebhookDataType {
|
|
4
|
+
id: number;
|
|
5
|
+
eventActionType: string;
|
|
6
|
+
data: any;
|
|
7
|
+
}
|
|
8
|
+
interface MaterialHistoryDTO {
|
|
9
|
+
Commit: string;
|
|
10
|
+
Author: string;
|
|
11
|
+
Date: string;
|
|
12
|
+
Message: string;
|
|
13
|
+
Changes: unknown[];
|
|
14
|
+
WebhookData: WebhookDataType;
|
|
15
|
+
}
|
|
16
|
+
interface MaterialHistoryType {
|
|
17
|
+
commitURL: string;
|
|
18
|
+
commit: MaterialHistoryDTO['Commit'];
|
|
19
|
+
author: MaterialHistoryDTO['Author'];
|
|
20
|
+
date: MaterialHistoryDTO['Date'];
|
|
21
|
+
message: MaterialHistoryDTO['Message'];
|
|
22
|
+
changes: MaterialHistoryDTO['Changes'];
|
|
23
|
+
webhookData: MaterialHistoryDTO['WebhookData'];
|
|
24
|
+
showChanges: boolean;
|
|
25
|
+
isSelected: boolean;
|
|
26
|
+
excluded?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface CIMaterialDTO {
|
|
29
|
+
id: number;
|
|
30
|
+
gitMaterialId: number;
|
|
31
|
+
gitMaterialName: string;
|
|
32
|
+
type: string;
|
|
33
|
+
value: string;
|
|
34
|
+
active: boolean;
|
|
35
|
+
history: MaterialHistoryDTO[];
|
|
36
|
+
lastFetchTime: string;
|
|
37
|
+
url: string;
|
|
38
|
+
}
|
|
39
|
+
interface CIMaterialMetaType {
|
|
40
|
+
isRepoError?: boolean;
|
|
41
|
+
repoErrorMsg?: string;
|
|
42
|
+
isBranchError?: boolean;
|
|
43
|
+
branchErrorMsg?: string;
|
|
44
|
+
isMaterialLoading?: boolean;
|
|
45
|
+
regex?: string;
|
|
46
|
+
searchText?: string;
|
|
47
|
+
noSearchResultsMsg?: string;
|
|
48
|
+
noSearchResult?: boolean;
|
|
49
|
+
isRegex?: boolean;
|
|
50
|
+
isDockerFileError?: boolean;
|
|
51
|
+
dockerFileErrorMsg?: string;
|
|
52
|
+
showAllCommits?: boolean;
|
|
53
|
+
isMaterialSelectionError?: boolean;
|
|
54
|
+
materialSelectionErrorMsg?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface CIMaterialType extends Pick<CIMaterialDTO, 'id' | 'gitMaterialId' | 'gitMaterialName' | 'type' | 'value' | 'active' | 'lastFetchTime'>, CIMaterialMetaType {
|
|
57
|
+
gitURL: CIMaterialDTO['url'];
|
|
58
|
+
history: MaterialHistoryType[];
|
|
59
|
+
isSelected: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface ImageCommentDTO {
|
|
62
|
+
id: number;
|
|
63
|
+
comment: string;
|
|
64
|
+
artifactId: number;
|
|
65
|
+
}
|
|
66
|
+
interface ImageCommentType extends ImageCommentDTO {
|
|
67
|
+
}
|
|
68
|
+
interface ImageTaggingDataDTO {
|
|
69
|
+
imageReleaseTags: ReleaseTag[];
|
|
70
|
+
appReleaseTags: string[];
|
|
71
|
+
imageComment: ImageCommentDTO;
|
|
72
|
+
tagsEditable: boolean;
|
|
73
|
+
}
|
|
74
|
+
interface ImageTaggingDataType extends Pick<ImageTaggingDataDTO, 'imageReleaseTags' | 'appReleaseTags' | 'tagsEditable'> {
|
|
75
|
+
imageComment: ImageCommentType;
|
|
76
|
+
}
|
|
77
|
+
export interface CIMaterialInfoDTO {
|
|
78
|
+
ciMaterials: CIMaterialDTO[];
|
|
79
|
+
triggeredByEmail: string;
|
|
80
|
+
lastDeployedTime: string;
|
|
81
|
+
appId: number;
|
|
82
|
+
appName: string;
|
|
83
|
+
environmentId: number;
|
|
84
|
+
environmentName: string;
|
|
85
|
+
imageTaggingData: ImageTaggingDataDTO;
|
|
86
|
+
image: string;
|
|
87
|
+
}
|
|
88
|
+
export interface CIMaterialInfoType extends Pick<CIMaterialInfoDTO, 'triggeredByEmail' | 'lastDeployedTime' | 'appId' | 'appName' | 'environmentId' | 'environmentName' | 'image'>, ImageTaggingDataType {
|
|
89
|
+
materials: CIMaterialType[];
|
|
90
|
+
}
|
|
91
|
+
export interface GetCITriggerInfoParamsType {
|
|
92
|
+
envId: number | string;
|
|
93
|
+
ciArtifactId: number | string;
|
|
94
|
+
}
|
|
95
|
+
export {};
|