@devtron-labs/devtron-fe-common-lib 0.0.91-beta-1 → 0.0.91-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.
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +4 -0
- package/dist/Common/Constants.d.ts +57 -0
- package/dist/Common/Dialogs/Types.d.ts +17 -2
- package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +5 -2
- package/dist/Common/EmptyState/types.d.ts +13 -0
- package/dist/Common/Hooks/useStateFilters/types.d.ts +4 -1
- package/dist/Common/Modals/Modal.d.ts +3 -0
- package/dist/Common/Modals/VisibleModal.d.ts +2 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
- package/dist/Common/MultiSelectCustomization.d.ts +8 -0
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/RJSF/common/FieldRow.d.ts +4 -1
- package/dist/Common/RJSF/common/types.d.ts +1 -1
- package/dist/Common/RJSF/constants.d.ts +1 -4
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/dist/Common/RJSF/templates/Description.d.ts +3 -0
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
- package/dist/Common/RJSF/templates/index.d.ts +1 -0
- package/dist/Common/RJSF/utils.d.ts +1 -3
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +4 -0
- package/dist/Common/ShowMoreText.d.ts +5 -0
- package/dist/Common/Types.d.ts +3 -1
- package/dist/Common/index.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/GitCommitInfoGeneric.d.ts +12 -0
- package/dist/Shared/Components/CICDHistory/GitMaterialInfoHeader.d.ts +9 -0
- package/dist/Shared/Components/CICDHistory/constants.d.ts +222 -0
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
- package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
- package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
- package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
- package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
- package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
- package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
- package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
- package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Helpers.d.ts +2 -0
- package/dist/Shared/Services/common.service.d.ts +3 -0
- package/dist/Shared/Services/index.d.ts +2 -0
- package/dist/Shared/Services/types.d.ts +17 -0
- package/dist/Shared/constants.d.ts +4 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +44 -1
- package/dist/Shared/validations.d.ts +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-9727a0fd.js → cssMode-39dd24c4.js} +1 -1
- package/dist/{freemarker2-cfb11288.js → freemarker2-130f95da.js} +1 -1
- package/dist/{handlebars-83c4c79e.js → handlebars-3d2f4836.js} +1 -1
- package/dist/{html-dc49fd50.js → html-a26c047b.js} +1 -1
- package/dist/{htmlMode-19c03119.js → htmlMode-82212456.js} +1 -1
- package/dist/{index-f1b5774e.js → index-be4ca45f.js} +20725 -20396
- package/dist/index.d.ts +1 -0
- package/dist/index.js +370 -361
- package/dist/{javascript-318d84c2.js → javascript-449f746c.js} +1 -1
- package/dist/{jsonMode-61cb9867.js → jsonMode-64ba3175.js} +1 -1
- package/dist/{liquid-f383a9fb.js → liquid-46eaee9f.js} +1 -1
- package/dist/{mdx-4a3b251d.js → mdx-fb0bd00e.js} +1 -1
- package/dist/{python-8a6af790.js → python-035e242f.js} +1 -1
- package/dist/{razor-1412de81.js → razor-eac3e65c.js} +1 -1
- package/dist/{tsMode-b9637688.js → tsMode-9b2b5d11.js} +1 -1
- package/dist/{typescript-49d0fdfe.js → typescript-72f39f87.js} +1 -1
- package/dist/{xml-f4cb6baf.js → xml-5ce95842.js} +1 -1
- package/dist/{yaml-7533723e.js → yaml-f7a5b102.js} +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { BreadcrumbTextProps } from './Types';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
|
|
4
|
+
export declare const BreadcrumbText: ({ heading, isActive }: BreadcrumbTextProps) => JSX.Element;
|
|
3
5
|
declare const Store: ({ children }: {
|
|
4
6
|
children: any;
|
|
5
7
|
}) => JSX.Element;
|
|
@@ -260,3 +260,60 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
260
260
|
TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: string;
|
|
261
261
|
TWELVE_HOURS_EXPORT_FORMAT: string;
|
|
262
262
|
};
|
|
263
|
+
export declare enum TIMELINE_STATUS {
|
|
264
|
+
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
|
265
|
+
GIT_COMMIT = "GIT_COMMIT",
|
|
266
|
+
GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
|
|
267
|
+
ARGOCD_SYNC = "ARGOCD_SYNC",
|
|
268
|
+
ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED",
|
|
269
|
+
KUBECTL_APPLY = "KUBECTL_APPLY",
|
|
270
|
+
KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
|
|
271
|
+
KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
|
|
272
|
+
HEALTHY = "HEALTHY",
|
|
273
|
+
APP_HEALTH = "APP_HEALTH",
|
|
274
|
+
DEPLOYMENT_FAILED = "FAILED",
|
|
275
|
+
FETCH_TIMED_OUT = "TIMED_OUT",
|
|
276
|
+
UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
|
|
277
|
+
DEGRADED = "DEGRADED",
|
|
278
|
+
DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
|
|
279
|
+
ABORTED = "ABORTED",
|
|
280
|
+
INPROGRESS = "INPROGRESS",
|
|
281
|
+
HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
|
|
282
|
+
HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
|
|
283
|
+
HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
|
|
284
|
+
}
|
|
285
|
+
export declare const DEPLOYMENT_STATUS: {
|
|
286
|
+
readonly SUCCEEDED: "succeeded";
|
|
287
|
+
readonly HEALTHY: "healthy";
|
|
288
|
+
readonly FAILED: "failed";
|
|
289
|
+
readonly TIMED_OUT: "timed_out";
|
|
290
|
+
readonly UNABLE_TO_FETCH: "unable_to_fetch";
|
|
291
|
+
readonly INPROGRESS: "inprogress";
|
|
292
|
+
readonly PROGRESSING: "progressing";
|
|
293
|
+
readonly STARTING: "starting";
|
|
294
|
+
readonly INITIATING: "initiating";
|
|
295
|
+
readonly SUPERSEDED: "superseded";
|
|
296
|
+
readonly QUEUED: "queued";
|
|
297
|
+
readonly UNKNOWN: "unknown";
|
|
298
|
+
readonly CHECKING: "checking";
|
|
299
|
+
};
|
|
300
|
+
export declare const statusIcon: {
|
|
301
|
+
failed: string;
|
|
302
|
+
queued: string;
|
|
303
|
+
suspended: string;
|
|
304
|
+
starting: string;
|
|
305
|
+
initiating: string;
|
|
306
|
+
unknown: string;
|
|
307
|
+
degraded: string;
|
|
308
|
+
healthy: string;
|
|
309
|
+
notdeployed: string;
|
|
310
|
+
missing: string;
|
|
311
|
+
progressing: string;
|
|
312
|
+
deploymentinitiated: string;
|
|
313
|
+
hibernating: string;
|
|
314
|
+
succeeded: string;
|
|
315
|
+
timedout: string;
|
|
316
|
+
unabletofetch: string;
|
|
317
|
+
};
|
|
318
|
+
export declare const APP_STATUS_HEADERS: string[];
|
|
319
|
+
export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type WithOrWithoutDeleteConfirmationType = {
|
|
4
|
+
showDeleteConfirmation: true;
|
|
5
|
+
/**
|
|
6
|
+
* If added, confirmation input is shown
|
|
7
|
+
*/
|
|
8
|
+
deleteConfirmationText: string;
|
|
9
|
+
} | {
|
|
10
|
+
showDeleteConfirmation?: never;
|
|
11
|
+
/**
|
|
12
|
+
* If added, confirmation input is shown
|
|
13
|
+
*/
|
|
14
|
+
deleteConfirmationText?: never;
|
|
15
|
+
};
|
|
16
|
+
export type DeleteDialogProps = {
|
|
4
17
|
title: string;
|
|
5
18
|
description?: string;
|
|
6
19
|
closeDelete: () => void;
|
|
@@ -12,7 +25,8 @@ export interface DeleteDialogProps {
|
|
|
12
25
|
buttonPrimaryText?: string;
|
|
13
26
|
shouldStopPropagation?: boolean;
|
|
14
27
|
disabled?: boolean;
|
|
15
|
-
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
} & WithOrWithoutDeleteConfirmationType;
|
|
16
30
|
export interface ForceDeleteDialogType {
|
|
17
31
|
onClickDelete: () => void;
|
|
18
32
|
closeDeleteModal: () => void;
|
|
@@ -44,3 +58,4 @@ export interface DialogFormProps {
|
|
|
44
58
|
onSave: (event: any) => void;
|
|
45
59
|
headerClassName?: string;
|
|
46
60
|
}
|
|
61
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenericFilterEmptyStateProps } from './types';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Empty state when no filters are applied
|
|
5
|
+
*/
|
|
6
|
+
declare const GenericFilterEmptyState: ({ handleClearFilters, isButtonAvailable, renderButton, ...props }: GenericFilterEmptyStateProps) => JSX.Element;
|
|
4
7
|
export default GenericFilterEmptyState;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GenericEmptyStateType } from '../Types';
|
|
2
|
+
|
|
3
|
+
export type GenericFilterEmptyStateProps = Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'isButtonAvailable' | 'renderButton'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>> & ({
|
|
4
|
+
/**
|
|
5
|
+
* If provided, it will have priority over the isButtonAvailable prop
|
|
6
|
+
* and render clear filter button
|
|
7
|
+
*/
|
|
8
|
+
handleClearFilters?: () => void;
|
|
9
|
+
isButtonAvailable?: never;
|
|
10
|
+
renderButton?: never;
|
|
11
|
+
} | (Pick<GenericEmptyStateType, 'isButtonAvailable' | 'renderButton'> & {
|
|
12
|
+
handleClearFilters?: never;
|
|
13
|
+
}));
|
|
@@ -2,5 +2,8 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
|
|
|
2
2
|
|
|
3
3
|
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
|
|
4
4
|
}
|
|
5
|
-
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
|
|
5
|
+
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize' | 'searchKey' | 'handleSearch'> {
|
|
6
|
+
}
|
|
7
|
+
export interface PaginationType<T> extends Pick<UseUrlFiltersReturnType<T>, 'pageSize'> {
|
|
8
|
+
pageNumber: number;
|
|
6
9
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ModalType } from '../Types';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use VisibleModal instead
|
|
6
|
+
*/
|
|
4
7
|
export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, SyntheticEvent } from 'react';
|
|
2
2
|
|
|
3
3
|
export declare class VisibleModal extends React.Component<{
|
|
4
4
|
className: string;
|
|
@@ -12,5 +12,6 @@ export declare class VisibleModal extends React.Component<{
|
|
|
12
12
|
escFunction(event: any): void;
|
|
13
13
|
componentDidMount(): void;
|
|
14
14
|
componentWillUnmount(): void;
|
|
15
|
+
handleBodyClick: (e: SyntheticEvent) => void;
|
|
15
16
|
render(): React.ReactPortal;
|
|
16
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, SyntheticEvent } from 'react';
|
|
2
2
|
|
|
3
3
|
export declare class VisibleModal2 extends React.Component<{
|
|
4
4
|
className: string;
|
|
@@ -9,5 +9,6 @@ export declare class VisibleModal2 extends React.Component<{
|
|
|
9
9
|
escFunction(event: any): void;
|
|
10
10
|
componentDidMount(): void;
|
|
11
11
|
componentWillUnmount(): void;
|
|
12
|
+
handleBodyClick: (e: SyntheticEvent) => void;
|
|
12
13
|
render(): React.ReactPortal;
|
|
13
14
|
}
|
|
@@ -2,7 +2,15 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export declare const Option: (props: any) => JSX.Element;
|
|
4
4
|
export declare const SingleSelectOption: (props: any) => JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* Multi value container
|
|
7
|
+
*/
|
|
5
8
|
export declare const MultiValueContainer: (props: any) => JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* Multi value container with count
|
|
12
|
+
*/
|
|
13
|
+
export declare const MultiValueContainerWithCount: (props: any) => JSX.Element;
|
|
6
14
|
export declare const ClearIndicator: (props: any) => JSX.Element;
|
|
7
15
|
export declare const MultiValueRemove: (props: any) => JSX.Element;
|
|
8
16
|
export declare const MultiValueChipContainer: ({ validator, isAllSelected, ...props }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
|
2
2
|
|
|
3
3
|
declare const PopupMenu: {
|
|
4
|
-
({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
|
|
4
|
+
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault }: PopupMenuType): any;
|
|
5
5
|
Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
|
|
6
6
|
Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
|
|
7
7
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { DO_NOT_SHOW_LABEL } from '../constants';
|
|
1
2
|
import { FieldRowProps } from './types';
|
|
2
3
|
|
|
3
|
-
export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id,
|
|
4
|
+
export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, shouldAlignCenter, }: Omit<FieldRowProps, "label"> & {
|
|
5
|
+
label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL;
|
|
6
|
+
}) => 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'> {
|
|
4
4
|
showLabel?: boolean;
|
|
5
5
|
/**
|
|
6
6
|
* @default true
|
|
@@ -4,7 +4,4 @@ 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
|
|
8
|
-
MAX_WIDTH_VALUE: number;
|
|
9
|
-
MAX_WIDTH_CLASSNAME: string;
|
|
10
|
-
};
|
|
7
|
+
export declare const DO_NOT_SHOW_LABEL: unique symbol;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IconButtonProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const AddButton: ({
|
|
3
|
+
export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TitleFieldProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const TitleField: ({ id, title, required
|
|
3
|
+
export declare const TitleField: ({ id, title, required }: TitleFieldProps) => JSX.Element;
|
|
@@ -2,6 +2,7 @@ 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';
|
|
5
6
|
export { Field as FieldTemplate } from './Field';
|
|
6
7
|
export { FieldErrorTemplate } from './FieldErrorTemplate';
|
|
7
8
|
export { ObjectFieldTemplate } from './ObjectFieldTemplate';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as Tippy } from '@tippyjs/react';
|
|
2
1
|
import { TranslatableString } from '@rjsf/utils';
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -13,7 +12,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
13
12
|
valueContainer: (base: any, state: any) => any;
|
|
14
13
|
loadingMessage: (base: any) => any;
|
|
15
14
|
noOptionsMessage: (base: any) => any;
|
|
16
|
-
multiValue: (base: any) => any;
|
|
15
|
+
multiValue: (base: any, state: any) => any;
|
|
17
16
|
};
|
|
18
17
|
/**
|
|
19
18
|
* Returns the redirection props for a url
|
|
@@ -25,4 +24,3 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
|
|
|
25
24
|
* Infers the type for json schema from value type
|
|
26
25
|
*/
|
|
27
26
|
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;
|
|
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
|
|
|
34
34
|
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
37
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
38
38
|
export default SearchBar;
|
|
@@ -32,6 +32,10 @@ export interface SearchBarProps {
|
|
|
32
32
|
* Timeout for the debounce handler to be triggered
|
|
33
33
|
*/
|
|
34
34
|
debounceTimeout?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Data test id for the search input
|
|
37
|
+
*/
|
|
38
|
+
dataTestId?: string;
|
|
35
39
|
/**
|
|
36
40
|
* Hide the background and border of the search
|
|
37
41
|
*/
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -140,7 +140,8 @@ export interface ErrorScreenNotAuthorizedProps {
|
|
|
140
140
|
}
|
|
141
141
|
export declare enum ImageType {
|
|
142
142
|
Large = "large",
|
|
143
|
-
Medium = "medium"
|
|
143
|
+
Medium = "medium",
|
|
144
|
+
SMALL = "small"
|
|
144
145
|
}
|
|
145
146
|
export interface InfoColourBarType {
|
|
146
147
|
message: React.ReactNode;
|
|
@@ -213,6 +214,7 @@ export interface PopupMenuType {
|
|
|
213
214
|
onToggleCallback?: (isOpen: boolean) => void;
|
|
214
215
|
autoClose?: boolean;
|
|
215
216
|
autoPosition?: boolean;
|
|
217
|
+
shouldPreventDefault?: boolean;
|
|
216
218
|
}
|
|
217
219
|
export interface PopupMenuButtonType {
|
|
218
220
|
children?: ReactNode;
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from './Modals/Modal';
|
|
|
13
13
|
export * from './Modals/VisibleModal';
|
|
14
14
|
export * from './Modals/VisibleModal2';
|
|
15
15
|
export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
|
|
16
|
-
export { default as BreadcrumbStore } from './BreadCrumb/BreadcrumbStore';
|
|
16
|
+
export { default as BreadcrumbStore, BreadcrumbText } from './BreadCrumb/BreadcrumbStore';
|
|
17
17
|
export { default as RadioGroup } from './RadioGroup';
|
|
18
18
|
export { default as RadioGroupItem } from './RadioGroupItem';
|
|
19
19
|
export { default as PopupMenu } from './PopupMenu';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const GitCommitInfoGeneric: ({ materialSourceType, materialSourceValue, commitInfo, selectedCommitInfo, materialUrl, showMaterialInfoHeader, canTriggerBuild, index, isExcluded, }: {
|
|
2
|
+
materialSourceType: any;
|
|
3
|
+
materialSourceValue: any;
|
|
4
|
+
commitInfo: any;
|
|
5
|
+
selectedCommitInfo: any;
|
|
6
|
+
materialUrl: any;
|
|
7
|
+
showMaterialInfoHeader: any;
|
|
8
|
+
canTriggerBuild?: boolean;
|
|
9
|
+
index: any;
|
|
10
|
+
isExcluded?: boolean;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export default GitCommitInfoGeneric;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const GitMaterialInfoHeader: ({ index, repoUrl, materialType, materialValue, style, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
index: any;
|
|
4
|
+
repoUrl?: string;
|
|
5
|
+
materialType?: string;
|
|
6
|
+
materialValue?: string;
|
|
7
|
+
style?: {};
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export default GitMaterialInfoHeader;
|
|
@@ -14,6 +14,228 @@ export declare const FILTER_STYLE: {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const GIT_BRANCH_NOT_CONFIGURED = "Not Configured";
|
|
16
16
|
export declare const DEFAULT_GIT_BRANCH_VALUE = "--";
|
|
17
|
+
export declare const EMPTY_STATE_STATUS: {
|
|
18
|
+
DATA_NOT_AVAILABLE: string;
|
|
19
|
+
API_TOKEN: {
|
|
20
|
+
TITLE: string;
|
|
21
|
+
SUBTITLE: string;
|
|
22
|
+
};
|
|
23
|
+
ARTIFACTS_EMPTY_STATE_TEXTS: {
|
|
24
|
+
NoFilesFound: string;
|
|
25
|
+
BlobStorageNotConfigured: string;
|
|
26
|
+
StoreFiles: string;
|
|
27
|
+
ConfigureBlobStorage: string;
|
|
28
|
+
NoFilesGenerated: string;
|
|
29
|
+
NoArtifactsGenerated: string;
|
|
30
|
+
NoArtifactsError: string;
|
|
31
|
+
FailedToFetchArtifacts: string;
|
|
32
|
+
FailedToFetchArtifactsError: string;
|
|
33
|
+
NoArtifactsFound: string;
|
|
34
|
+
NoArtifactsFoundError: string;
|
|
35
|
+
};
|
|
36
|
+
CI_BUILD_HISTORY_PIPELINE_TRIGGER: {
|
|
37
|
+
TITLE: string;
|
|
38
|
+
SUBTITLE: string;
|
|
39
|
+
};
|
|
40
|
+
CI_BUILD_HISTORY_LINKED_PIPELINE: {
|
|
41
|
+
TITLE: string;
|
|
42
|
+
SUBTITLE: string;
|
|
43
|
+
};
|
|
44
|
+
CI_BUILD_HISTORY_NO_PIPELINE: {
|
|
45
|
+
TITLE: string;
|
|
46
|
+
SUBTITLE: string;
|
|
47
|
+
};
|
|
48
|
+
CI_DEATILS_NO_VULNERABILITY_FOUND: {
|
|
49
|
+
TITLE: string;
|
|
50
|
+
SUBTITLE: string;
|
|
51
|
+
};
|
|
52
|
+
CI_DETAILS_IMAGE_SCANNED_DISABLED: string;
|
|
53
|
+
CI_DETAILS_IMAGE_NOT_SCANNED: {
|
|
54
|
+
TITLE: string;
|
|
55
|
+
SUBTITLE: string;
|
|
56
|
+
};
|
|
57
|
+
CD_DETAILS_NO_ENVIRONMENT: {
|
|
58
|
+
TITLE: string;
|
|
59
|
+
SUBTITLE: string;
|
|
60
|
+
};
|
|
61
|
+
CD_DETAILS_NO_DEPLOYMENT: {
|
|
62
|
+
TITLE: string;
|
|
63
|
+
SUBTITLE: string;
|
|
64
|
+
};
|
|
65
|
+
CHART: {
|
|
66
|
+
NO_SOURCE_TITLE: string;
|
|
67
|
+
NO_CHART_FOUND: string;
|
|
68
|
+
};
|
|
69
|
+
CHART_DEPLOYMENT_HISTORY: {
|
|
70
|
+
SUBTITLE: string;
|
|
71
|
+
};
|
|
72
|
+
CHART_GROUP_DEPLOYMENT: {
|
|
73
|
+
TITLE: string;
|
|
74
|
+
SUBTITLE: string;
|
|
75
|
+
};
|
|
76
|
+
DEPLOYMENT_DETAILS_SETPS_FAILED: {
|
|
77
|
+
TITLE: string;
|
|
78
|
+
SUBTITLE: string;
|
|
79
|
+
};
|
|
80
|
+
DEPLOYMENT_DETAILS_SETPS_PROGRESSING: {
|
|
81
|
+
TITLE: string;
|
|
82
|
+
SUBTITLE: string;
|
|
83
|
+
};
|
|
84
|
+
DEVTRON_APP_DEPLOYMENT_HISTORY_SOURCE_CODE: {
|
|
85
|
+
SUBTITLE: string;
|
|
86
|
+
};
|
|
87
|
+
DEPLOYMENT_HISTORY_CONFIG_LIST: {
|
|
88
|
+
SUBTITLE: string;
|
|
89
|
+
};
|
|
90
|
+
GENERATE_API_TOKEN: {
|
|
91
|
+
TITLE: string;
|
|
92
|
+
SUBTITLE: string;
|
|
93
|
+
};
|
|
94
|
+
TRIGGER_URL: {
|
|
95
|
+
TITLE: string;
|
|
96
|
+
SUBTITLE: string;
|
|
97
|
+
};
|
|
98
|
+
CD_EMPTY_STATE: {
|
|
99
|
+
TITLE: string;
|
|
100
|
+
SUBTITLE: string;
|
|
101
|
+
};
|
|
102
|
+
CI_PROGRESS_VIEW: {
|
|
103
|
+
TITLE: string;
|
|
104
|
+
SUBTITLE: string;
|
|
105
|
+
};
|
|
106
|
+
RENDER_EMPTY_STATE: {
|
|
107
|
+
TITILE: string;
|
|
108
|
+
SUBTITLE: string;
|
|
109
|
+
};
|
|
110
|
+
RENDER_NO_ENVIORNMENT_STATE: {
|
|
111
|
+
TITLE: string;
|
|
112
|
+
SUBTITLE: string;
|
|
113
|
+
};
|
|
114
|
+
RENDER_SELECT_ENVIRONMENT_VIEW: {
|
|
115
|
+
TITLE: string;
|
|
116
|
+
SUBTITLE: string;
|
|
117
|
+
};
|
|
118
|
+
SAVED_VALUES_EMPTY_STATE: {
|
|
119
|
+
TITLE: string;
|
|
120
|
+
SUBTITLE: string;
|
|
121
|
+
};
|
|
122
|
+
LOADING_CLUSTER: {
|
|
123
|
+
TITLE: string;
|
|
124
|
+
SUBTITLE: string;
|
|
125
|
+
};
|
|
126
|
+
NO_MATCHING_RESULT: {
|
|
127
|
+
TITLE: string;
|
|
128
|
+
SUBTITLE: string;
|
|
129
|
+
};
|
|
130
|
+
CLUSTER_NODE_EMPTY_STATE: {
|
|
131
|
+
TITLE: string;
|
|
132
|
+
SUBTITLE: string;
|
|
133
|
+
};
|
|
134
|
+
CHART_EMPTY_STATE: {
|
|
135
|
+
TITLE: string;
|
|
136
|
+
SUBTITLE: string;
|
|
137
|
+
};
|
|
138
|
+
CHART_VALUES_GUIT_VIEW: {
|
|
139
|
+
SUBTITLE: string;
|
|
140
|
+
};
|
|
141
|
+
DEVTRON_STACK_MANAGER: {
|
|
142
|
+
TITLE: string;
|
|
143
|
+
SUBTITLE: string;
|
|
144
|
+
};
|
|
145
|
+
NO_GROUPS: {
|
|
146
|
+
TITLE: string;
|
|
147
|
+
SUBTITLE: string;
|
|
148
|
+
};
|
|
149
|
+
NO_USER: {
|
|
150
|
+
TITLE: string;
|
|
151
|
+
SUBTITLE: string;
|
|
152
|
+
};
|
|
153
|
+
RENDER_LIST: {
|
|
154
|
+
SUBTITLE: string;
|
|
155
|
+
};
|
|
156
|
+
CUSTOM_CHART_LIST: {
|
|
157
|
+
TITLE: string;
|
|
158
|
+
};
|
|
159
|
+
BULK_ACTION_EDITS: {
|
|
160
|
+
TITLE: string;
|
|
161
|
+
SUBTITLE: string;
|
|
162
|
+
};
|
|
163
|
+
SECURITY_SCANS: {
|
|
164
|
+
TITLE: string;
|
|
165
|
+
SUBTITLE: string;
|
|
166
|
+
};
|
|
167
|
+
NOTIFICATION_TAB: {
|
|
168
|
+
TITLE: string;
|
|
169
|
+
SUBTITL: string;
|
|
170
|
+
};
|
|
171
|
+
CONFIGURATION_TAB: {
|
|
172
|
+
TITLE: string;
|
|
173
|
+
};
|
|
174
|
+
EXTERNAL_LINK_COMPONENT: {
|
|
175
|
+
TITLE: string;
|
|
176
|
+
SUBTITLE: string;
|
|
177
|
+
};
|
|
178
|
+
CD_MATERIAL: {
|
|
179
|
+
TITLE: string;
|
|
180
|
+
};
|
|
181
|
+
CI_DETAILS_NOT_FOUND: {
|
|
182
|
+
TITLE: string;
|
|
183
|
+
SUBTITLE: string;
|
|
184
|
+
};
|
|
185
|
+
TRIGGER_NOT_FOUND: {
|
|
186
|
+
TITLE: string;
|
|
187
|
+
SUBTITLE: string;
|
|
188
|
+
};
|
|
189
|
+
OVERVIEW: {
|
|
190
|
+
DEPLOYMENT_TITLE: string;
|
|
191
|
+
DEPLOYMENT_SUB_TITLE: string;
|
|
192
|
+
APP_DESCRIPTION: string;
|
|
193
|
+
JOB_DESCRIPTION: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
export declare const DEPLOYMENT_HISTORY_CONFIGURATION_LIST_MAP: {
|
|
197
|
+
DEPLOYMENT_TEMPLATE: {
|
|
198
|
+
DISPLAY_NAME: string;
|
|
199
|
+
VALUE: string;
|
|
200
|
+
};
|
|
201
|
+
PIPELINE_STRATEGY: {
|
|
202
|
+
DISPLAY_NAME: string;
|
|
203
|
+
VALUE: string;
|
|
204
|
+
};
|
|
205
|
+
CONFIGMAP: {
|
|
206
|
+
DISPLAY_NAME: string;
|
|
207
|
+
VALUE: string;
|
|
208
|
+
};
|
|
209
|
+
SECRET: {
|
|
210
|
+
DISPLAY_NAME: string;
|
|
211
|
+
VALUE: string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
export declare const EXTERNAL_TYPES: {
|
|
215
|
+
[x: string]: {
|
|
216
|
+
'': string;
|
|
217
|
+
KubernetesSecret: string;
|
|
218
|
+
AWSSecretsManager: string;
|
|
219
|
+
AWSSystemManager: string;
|
|
220
|
+
HashiCorpVault: string;
|
|
221
|
+
ESO_HashiCorpVault: string;
|
|
222
|
+
ESO_AWSSecretsManager: string;
|
|
223
|
+
ESO_GoogleSecretsManager: string;
|
|
224
|
+
ESO_AzureSecretsManager: string;
|
|
225
|
+
KubernetesConfigMap?: undefined;
|
|
226
|
+
} | {
|
|
227
|
+
'': string;
|
|
228
|
+
KubernetesConfigMap: string;
|
|
229
|
+
KubernetesSecret?: undefined;
|
|
230
|
+
AWSSecretsManager?: undefined;
|
|
231
|
+
AWSSystemManager?: undefined;
|
|
232
|
+
HashiCorpVault?: undefined;
|
|
233
|
+
ESO_HashiCorpVault?: undefined;
|
|
234
|
+
ESO_AWSSecretsManager?: undefined;
|
|
235
|
+
ESO_GoogleSecretsManager?: undefined;
|
|
236
|
+
ESO_AzureSecretsManager?: undefined;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
17
239
|
export declare const TERMINAL_STATUS_MAP: {
|
|
18
240
|
SUCCEEDED: string;
|
|
19
241
|
HEALTHY: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DescriptorProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
|
|
4
|
+
export default FeatureTitleWithInfo;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
2
|
+
import { ImageType } from '../../../Common';
|
|
3
|
+
|
|
4
|
+
export interface FeatureDescriptionModalProps {
|
|
5
|
+
title: string;
|
|
6
|
+
renderDescriptionContent?: () => JSX.Element;
|
|
7
|
+
closeModalText?: string;
|
|
8
|
+
docLink?: string;
|
|
9
|
+
closeModal?: () => void;
|
|
10
|
+
imageVariant?: ImageType;
|
|
11
|
+
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
12
|
+
imageStyles?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
15
|
+
breadCrumbs: Breadcrumb[];
|
|
16
|
+
additionalContainerClasses?: string;
|
|
17
|
+
iconClassName?: string;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|