@devtron-labs/devtron-fe-common-lib 0.0.90-beta-2 → 0.0.90-beta-3
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/Dialogs/Types.d.ts +2 -17
- package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +2 -5
- package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
- package/dist/Common/Modals/Modal.d.ts +0 -3
- package/dist/Common/Modals/VisibleModal.d.ts +1 -2
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -2
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/Types.d.ts +1 -3
- package/dist/Shared/Components/index.d.ts +0 -3
- package/dist/Shared/Helpers.d.ts +1 -2
- package/dist/Shared/constants.d.ts +1 -4
- package/dist/Shared/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +14 -44
- package/dist/Shared/validations.d.ts +0 -4
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-c8f8c088.js → cssMode-ca85ea2b.js} +1 -1
- package/dist/{freemarker2-e27b3168.js → freemarker2-cef65e07.js} +1 -1
- package/dist/{handlebars-5a235a76.js → handlebars-8ef696cc.js} +1 -1
- package/dist/{html-6ec39546.js → html-4b227a05.js} +1 -1
- package/dist/{htmlMode-c5add57a.js → htmlMode-e058165f.js} +1 -1
- package/dist/{index-9e5cc476.js → index-ef2a9390.js} +18027 -18277
- package/dist/index.d.ts +0 -1
- package/dist/index.js +333 -341
- package/dist/{javascript-f6830def.js → javascript-ce228b1b.js} +1 -1
- package/dist/{jsonMode-696a7805.js → jsonMode-b755564d.js} +1 -1
- package/dist/{liquid-19f79b7d.js → liquid-edc795e4.js} +1 -1
- package/dist/{mdx-2caf6026.js → mdx-d4897164.js} +1 -1
- package/dist/{python-580482d9.js → python-498d4d83.js} +1 -1
- package/dist/{razor-142c853f.js → razor-f688b99c.js} +1 -1
- package/dist/{tsMode-79ec4084.js → tsMode-bf7c4f29.js} +1 -1
- package/dist/{typescript-35ea705c.js → typescript-cbfa06bd.js} +1 -1
- package/dist/{xml-6ddcbb18.js → xml-4b579586.js} +1 -1
- package/dist/{yaml-055d6e1d.js → yaml-8a037691.js} +1 -1
- package/package.json +5 -5
- package/dist/Common/EmptyState/types.d.ts +0 -13
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +0 -3
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +0 -4
- package/dist/Shared/Components/FeatureDescription/constant.d.ts +0 -8
- package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -2
- package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -19
- package/dist/Shared/Components/FeatureDescription/utils.d.ts +0 -6
- package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +0 -4
- package/dist/Shared/Components/ImageWithFallback/index.d.ts +0 -2
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +0 -12
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +0 -4
- package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +0 -2
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +0 -9
- package/dist/Shared/Services/common.service.d.ts +0 -3
- package/dist/Shared/Services/index.d.ts +0 -2
- package/dist/Shared/Services/types.d.ts +0 -17
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
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 = {
|
|
3
|
+
export interface DeleteDialogProps {
|
|
17
4
|
title: string;
|
|
18
5
|
description?: string;
|
|
19
6
|
closeDelete: () => void;
|
|
@@ -25,8 +12,7 @@ export type DeleteDialogProps = {
|
|
|
25
12
|
buttonPrimaryText?: string;
|
|
26
13
|
shouldStopPropagation?: boolean;
|
|
27
14
|
disabled?: boolean;
|
|
28
|
-
|
|
29
|
-
} & WithOrWithoutDeleteConfirmationType;
|
|
15
|
+
}
|
|
30
16
|
export interface ForceDeleteDialogType {
|
|
31
17
|
onClickDelete: () => void;
|
|
32
18
|
closeDeleteModal: () => void;
|
|
@@ -58,4 +44,3 @@ export interface DialogFormProps {
|
|
|
58
44
|
onSave: (event: any) => void;
|
|
59
45
|
headerClassName?: string;
|
|
60
46
|
}
|
|
61
|
-
export {};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenericEmptyStateType } from '../Types';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
* Empty state when no filters are applied
|
|
5
|
-
*/
|
|
6
|
-
declare const GenericFilterEmptyState: ({ handleClearFilters, isButtonAvailable, renderButton, ...props }: GenericFilterEmptyStateProps) => JSX.Element;
|
|
3
|
+
declare const GenericFilterEmptyState: (props: Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>>) => JSX.Element;
|
|
7
4
|
export default GenericFilterEmptyState;
|
|
@@ -2,5 +2,5 @@ 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'> {
|
|
6
6
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { ModalType } from '../Types';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use VisibleModal instead
|
|
6
|
-
*/
|
|
7
4
|
export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
export declare class VisibleModal extends React.Component<{
|
|
4
4
|
className: string;
|
|
@@ -12,6 +12,5 @@ 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;
|
|
16
15
|
render(): React.ReactPortal;
|
|
17
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
export declare class VisibleModal2 extends React.Component<{
|
|
4
4
|
className: string;
|
|
@@ -9,6 +9,5 @@ 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;
|
|
13
12
|
render(): React.ReactPortal;
|
|
14
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
|
2
2
|
|
|
3
3
|
declare const PopupMenu: {
|
|
4
|
-
({ children, onToggleCallback, autoClose, autoPosition,
|
|
4
|
+
({ children, onToggleCallback, autoClose, autoPosition, }: 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
|
};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -140,8 +140,7 @@ export interface ErrorScreenNotAuthorizedProps {
|
|
|
140
140
|
}
|
|
141
141
|
export declare enum ImageType {
|
|
142
142
|
Large = "large",
|
|
143
|
-
Medium = "medium"
|
|
144
|
-
SMALL = "small"
|
|
143
|
+
Medium = "medium"
|
|
145
144
|
}
|
|
146
145
|
export interface InfoColourBarType {
|
|
147
146
|
message: React.ReactNode;
|
|
@@ -214,7 +213,6 @@ export interface PopupMenuType {
|
|
|
214
213
|
onToggleCallback?: (isOpen: boolean) => void;
|
|
215
214
|
autoClose?: boolean;
|
|
216
215
|
autoPosition?: boolean;
|
|
217
|
-
shouldPreventDefault?: boolean;
|
|
218
216
|
}
|
|
219
217
|
export interface PopupMenuButtonType {
|
|
220
218
|
children?: ReactNode;
|
|
@@ -17,9 +17,6 @@ export * from './Header';
|
|
|
17
17
|
export * from './AnnouncementBanner';
|
|
18
18
|
export * from './ButtonWithLoader';
|
|
19
19
|
export * from './ButtonWithSelector';
|
|
20
|
-
export * from './ModalSidebarPanel';
|
|
21
|
-
export * from './ImageWithFallback';
|
|
22
|
-
export * from './FeatureDescription';
|
|
23
20
|
export * from './CICDHistory';
|
|
24
21
|
export * from './GitCommitInfoGeneric';
|
|
25
22
|
export * from './Error';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
2
2
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
3
3
|
import { MaterialInfo, SortingOrder } from '../Common';
|
|
4
|
-
import { ReactElement } from 'react';
|
|
5
4
|
|
|
6
5
|
interface HighlightSearchTextProps {
|
|
7
6
|
/**
|
|
@@ -26,8 +25,8 @@ export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrd
|
|
|
26
25
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
27
26
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
28
27
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
28
|
+
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
|
29
29
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
30
|
-
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
|
31
30
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
32
31
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
|
33
32
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
@@ -29,6 +29,7 @@ export declare const ModuleNameMap: {
|
|
|
29
29
|
};
|
|
30
30
|
export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
|
|
31
31
|
export declare const API_TOKEN_PREFIX = "API-TOKEN:";
|
|
32
|
+
export declare const DEFAULT_SECRET_PLACEHOLDER = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
|
|
32
33
|
export declare enum PatchOperationType {
|
|
33
34
|
replace = "replace",
|
|
34
35
|
remove = "remove"
|
|
@@ -43,10 +44,6 @@ export declare enum DeploymentWithConfigType {
|
|
|
43
44
|
LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
|
|
44
45
|
SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
|
|
45
46
|
}
|
|
46
|
-
export declare enum EnvironmentTypeEnum {
|
|
47
|
-
production = "Production",
|
|
48
|
-
nonProduction = "Non-Production"
|
|
49
|
-
}
|
|
50
47
|
export declare enum TIMELINE_STATUS {
|
|
51
48
|
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
|
52
49
|
GIT_COMMIT = "GIT_COMMIT",
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PatchOperationType } from './constants';
|
|
2
2
|
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
|
|
3
3
|
|
|
4
4
|
export declare enum EnvType {
|
|
@@ -351,9 +351,6 @@ export declare enum ResourceKindType {
|
|
|
351
351
|
cluster = "cluster",
|
|
352
352
|
release = "release",
|
|
353
353
|
releaseTrack = "release-track",
|
|
354
|
-
tenant = "tenant",
|
|
355
|
-
installation = "installation",
|
|
356
|
-
environment = "environment",
|
|
357
354
|
cdPipeline = "cd-pipeline"
|
|
358
355
|
}
|
|
359
356
|
/**
|
|
@@ -402,10 +399,6 @@ export type IntersectionOptions = {
|
|
|
402
399
|
defaultIntersecting?: boolean;
|
|
403
400
|
};
|
|
404
401
|
export type IntersectionChangeHandler = (entry: IntersectionObserverEntry) => void;
|
|
405
|
-
export interface InputFieldState<T = string> {
|
|
406
|
-
value: T;
|
|
407
|
-
error: string;
|
|
408
|
-
}
|
|
409
402
|
export declare enum AggregationKeys {
|
|
410
403
|
Workloads = "Workloads",
|
|
411
404
|
Networking = "Networking",
|
|
@@ -418,42 +411,19 @@ export declare enum AggregationKeys {
|
|
|
418
411
|
Namespaces = "Namespaces"
|
|
419
412
|
}
|
|
420
413
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
421
|
-
export
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Type of the environment
|
|
436
|
-
*/
|
|
437
|
-
environmentType: EnvironmentTypeEnum;
|
|
438
|
-
/**
|
|
439
|
-
* Associated cluster for the environment
|
|
440
|
-
*/
|
|
441
|
-
cluster: string;
|
|
442
|
-
/**
|
|
443
|
-
* If true, denotes virtual environment
|
|
444
|
-
*/
|
|
445
|
-
isVirtual: boolean;
|
|
446
|
-
}
|
|
447
|
-
export interface CreatedByDTO {
|
|
448
|
-
icon: boolean;
|
|
449
|
-
id: number;
|
|
450
|
-
name: string;
|
|
451
|
-
}
|
|
452
|
-
export declare enum DependencyType {
|
|
453
|
-
UPSTREAM = "upstream",
|
|
454
|
-
DOWNSTREAM = "downstream",
|
|
455
|
-
LEVEL = "level"
|
|
456
|
-
}
|
|
414
|
+
export declare enum GitOpsAuthModeType {
|
|
415
|
+
SSH = "SSH",
|
|
416
|
+
PASSWORD = "PASSWORD",
|
|
417
|
+
SSH_AND_PASSWORD = "PAT_AND_SSH"
|
|
418
|
+
}
|
|
419
|
+
export interface BaseGitOpsType {
|
|
420
|
+
authMode: GitOpsAuthModeType;
|
|
421
|
+
sshKey: string;
|
|
422
|
+
sshHost: string;
|
|
423
|
+
username: string;
|
|
424
|
+
token: string;
|
|
425
|
+
}
|
|
426
|
+
export type GitOpsFieldKeyType = 'host' | 'username' | 'token' | 'gitHubOrgId' | 'azureProjectName' | 'gitLabGroupId' | 'bitBucketWorkspaceId' | 'bitBucketProjectKey' | 'sshHost' | 'sshKey';
|
|
457
427
|
export interface scrollableInterface {
|
|
458
428
|
autoBottomScroll: boolean;
|
|
459
429
|
}
|
|
@@ -8,7 +8,6 @@ export declare const MESSAGES: {
|
|
|
8
8
|
CAN_NOT_START_END_WITH_SEPARATORS: string;
|
|
9
9
|
getMinMaxCharMessage: (min: number, max: number) => string;
|
|
10
10
|
getMaxCharMessage: (max: number) => string;
|
|
11
|
-
getMinCharMessage: (min: number) => string;
|
|
12
11
|
VALID_POSITIVE_NUMBER: string;
|
|
13
12
|
VALID_POSITIVE_INTEGER: string;
|
|
14
13
|
MAX_SAFE_INTEGER: string;
|
|
@@ -16,8 +15,5 @@ export declare const MESSAGES: {
|
|
|
16
15
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
17
16
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
18
17
|
export declare const validateDescription: (description: string) => ValidationResponseType;
|
|
19
|
-
export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
|
|
20
18
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
21
19
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
22
|
-
export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
|
|
23
|
-
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|