@devtron-labs/devtron-fe-common-lib 0.0.87-beta-1 → 0.0.87-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/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/OpaqueModal.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/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/dist/Common/RJSF/utils.d.ts +2 -1
- package/dist/Common/Types.d.ts +1 -3
- package/dist/Shared/Components/index.d.ts +0 -3
- package/dist/Shared/Helpers.d.ts +0 -2
- package/dist/Shared/constants.d.ts +0 -4
- package/dist/Shared/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +1 -40
- package/dist/Shared/validations.d.ts +0 -4
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-520db43c.js → cssMode-e1275276.js} +1 -1
- package/dist/{freemarker2-8102ab8d.js → freemarker2-fa2f7113.js} +1 -1
- package/dist/{handlebars-48b54c55.js → handlebars-85ed6740.js} +1 -1
- package/dist/{html-57fe72de.js → html-61d0544d.js} +1 -1
- package/dist/{htmlMode-fad88102.js → htmlMode-f69289be.js} +1 -1
- package/dist/{index-ed2ecc9f.js → index-f6b30bb1.js} +17459 -17689
- package/dist/index.js +340 -351
- package/dist/{javascript-095bc45f.js → javascript-34ff696a.js} +1 -1
- package/dist/{jsonMode-53b436a9.js → jsonMode-d446e1a9.js} +1 -1
- package/dist/{liquid-e4152333.js → liquid-5280c43f.js} +1 -1
- package/dist/{mdx-9b3781e3.js → mdx-95d148b5.js} +1 -1
- package/dist/{python-ab53c9a3.js → python-e40dac06.js} +1 -1
- package/dist/{razor-4edb4a7d.js → razor-25ceb9a2.js} +1 -1
- package/dist/{tsMode-42e8d846.js → tsMode-cf703a51.js} +1 -1
- package/dist/{typescript-1e5018b9.js → typescript-e200c00a.js} +1 -1
- package/dist/{xml-c55b1b7f.js → xml-80f57f2b.js} +1 -1
- package/dist/{yaml-bb2d8678.js → yaml-44fe8e48.js} +1 -1
- package/package.json +1 -1
- 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 -13
|
@@ -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;
|
|
@@ -5,9 +5,6 @@ export interface OpaqueModalProps {
|
|
|
5
5
|
onHide?: any;
|
|
6
6
|
noBackground?: boolean;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Use VisibleModal instead
|
|
10
|
-
*/
|
|
11
8
|
export declare class OpaqueModal extends React.Component<OpaqueModalProps> {
|
|
12
9
|
modalRef: HTMLElement;
|
|
13
10
|
componentDidMount(): void;
|
|
@@ -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
|
};
|
|
@@ -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;
|
|
@@ -12,7 +12,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
12
12
|
valueContainer: (base: any, state: any) => any;
|
|
13
13
|
loadingMessage: (base: any) => any;
|
|
14
14
|
noOptionsMessage: (base: any) => any;
|
|
15
|
-
multiValue: (base: any
|
|
15
|
+
multiValue: (base: any) => any;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Returns the redirection props for a url
|
|
@@ -24,3 +24,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
|
|
|
24
24
|
* Infers the type for json schema from value type
|
|
25
25
|
*/
|
|
26
26
|
export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
27
|
+
export declare const getTippyWrapperWithContent: (content: any) => (children: any) => JSX.Element;
|
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
|
/**
|
|
@@ -27,7 +26,6 @@ export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => J
|
|
|
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;
|
|
29
28
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
30
|
-
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
|
31
29
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
32
30
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
|
33
31
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
@@ -43,10 +43,6 @@ export declare enum DeploymentWithConfigType {
|
|
|
43
43
|
LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
|
|
44
44
|
SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
|
|
45
45
|
}
|
|
46
|
-
export declare enum EnvironmentTypeEnum {
|
|
47
|
-
production = "Production",
|
|
48
|
-
nonProduction = "Non-Production"
|
|
49
|
-
}
|
|
50
46
|
export declare enum TIMELINE_STATUS {
|
|
51
47
|
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
|
52
48
|
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,38 +411,6 @@ export declare enum AggregationKeys {
|
|
|
418
411
|
Namespaces = "Namespaces"
|
|
419
412
|
}
|
|
420
413
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
421
|
-
export interface EnvironmentType {
|
|
422
|
-
/**
|
|
423
|
-
* Unique identifier for the environment
|
|
424
|
-
*/
|
|
425
|
-
id: number;
|
|
426
|
-
/**
|
|
427
|
-
* Name of the environment
|
|
428
|
-
*/
|
|
429
|
-
name: string;
|
|
430
|
-
/**
|
|
431
|
-
* Associated namespace for the environment
|
|
432
|
-
*/
|
|
433
|
-
namespace: string;
|
|
434
|
-
/**
|
|
435
|
-
* Type of the environment
|
|
436
|
-
*/
|
|
437
|
-
environmentType: EnvironmentTypeEnum;
|
|
438
|
-
/**
|
|
439
|
-
* Associated cluster for the environment
|
|
440
|
-
*/
|
|
441
|
-
cluster: string;
|
|
442
|
-
}
|
|
443
|
-
export interface CreatedByDTO {
|
|
444
|
-
icon: boolean;
|
|
445
|
-
id: number;
|
|
446
|
-
name: string;
|
|
447
|
-
}
|
|
448
|
-
export declare enum DependencyType {
|
|
449
|
-
UPSTREAM = "upstream",
|
|
450
|
-
DOWNSTREAM = "downstream",
|
|
451
|
-
LEVEL = "level"
|
|
452
|
-
}
|
|
453
414
|
export interface scrollableInterface {
|
|
454
415
|
autoBottomScroll: boolean;
|
|
455
416
|
}
|
|
@@ -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>;
|