@devtron-labs/devtron-fe-common-lib 1.13.0-pre-0 → 1.13.0-pre-1-beta-1
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-BfqF365x.js → @common-rjsf-y265NK2z.js} +4896 -4875
- package/dist/Shared/Components/Button/types.d.ts +3 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +2 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +10 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +0 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +4 -0
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
- package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +11 -1
- package/dist/Shared/constants.d.ts +14 -1
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/empty-create.661d9355.png +0 -0
- package/dist/assets/ic-disconnect.26bad827.svg +3 -0
- package/dist/assets/ic-gift.9b048fc7.svg +3 -0
- package/dist/assets/ic-gitlab.ac331d67.svg +31 -0
- package/dist/assets/ic-megaphone-left.6b2a00b7.svg +3 -0
- package/dist/assets/ic-sparkle-color.01c0be88.svg +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +804 -800
- package/package.json +1 -1
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +0 -6
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +0 -1
- package/dist/assets/ic-megaphone.b9f9a901.svg +0 -19
|
@@ -14,7 +14,9 @@ export declare enum ButtonStyleType {
|
|
|
14
14
|
negativeGrey = "negative-grey",
|
|
15
15
|
positive = "positive",
|
|
16
16
|
warning = "warning",
|
|
17
|
-
neutral = "neutral"
|
|
17
|
+
neutral = "neutral",
|
|
18
|
+
neutralN0 = "neutral-n0",
|
|
19
|
+
neutralWhite = "neutral-white"
|
|
18
20
|
}
|
|
19
21
|
export declare enum ButtonComponentType {
|
|
20
22
|
button = "button",
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { default as GenericInfoCard } from './GenericInfoCard.component';
|
|
2
|
-
export
|
|
2
|
+
export * from './GenericInfoCardListing';
|
|
3
|
+
export { GenericInfoCardBorderVariant, type GenericInfoCardListingProps, type GenericInfoCardProps } from './types';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { MouseEventHandler, ReactElement } from 'react';
|
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
|
3
|
+
import { GenericFilterEmptyStateProps } from '@Common/EmptyState/types';
|
|
4
|
+
import { GenericEmptyStateType } from '../../../Common/Types';
|
|
3
5
|
type BaseGenericInfoCardProps = {
|
|
4
6
|
title: string;
|
|
5
7
|
description: string;
|
|
@@ -23,4 +25,12 @@ export type GenericInfoCardProps = {
|
|
|
23
25
|
} & Partial<Record<keyof BaseGenericInfoCardProps, never>>) | ({
|
|
24
26
|
isLoading?: boolean;
|
|
25
27
|
} & BaseGenericInfoCardProps));
|
|
28
|
+
export interface GenericInfoCardListingProps extends Pick<GenericInfoCardProps, 'borderVariant'>, Pick<GenericFilterEmptyStateProps, 'handleClearFilters'> {
|
|
29
|
+
list: (Pick<GenericInfoCardProps, 'Icon' | 'author' | 'description' | 'linkProps' | 'onClick' | 'title'> & Record<'id', string>)[];
|
|
30
|
+
emptyStateConfig: Pick<GenericEmptyStateType, 'title' | 'subTitle' | 'image'>;
|
|
31
|
+
searchKey?: string;
|
|
32
|
+
reloadList?: () => void;
|
|
33
|
+
error?: Record<string, unknown>;
|
|
34
|
+
isLoading?: boolean;
|
|
35
|
+
}
|
|
26
36
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PageHeaderType } from './types';
|
|
2
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta,
|
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps, }: PageHeaderType) => JSX.Element;
|
|
3
3
|
export default PageHeader;
|
|
@@ -16,7 +16,6 @@ export interface PageHeaderType {
|
|
|
16
16
|
showCloseButton?: boolean;
|
|
17
17
|
onClose?: () => void;
|
|
18
18
|
markAsBeta?: boolean;
|
|
19
|
-
showAnnouncementHeader?: boolean;
|
|
20
19
|
tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
|
|
21
20
|
isTippyCustomized?: boolean;
|
|
22
21
|
tippyRedirectLink?: string;
|
|
@@ -48,6 +48,7 @@ export declare const iconMap: {
|
|
|
48
48
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
49
49
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
50
50
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
51
|
+
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
51
52
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
52
53
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
53
54
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -58,6 +59,7 @@ export declare const iconMap: {
|
|
|
58
59
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
59
60
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
60
61
|
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
62
|
+
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
61
63
|
'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
62
64
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
63
65
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -92,6 +94,7 @@ export declare const iconMap: {
|
|
|
92
94
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
93
95
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
94
96
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
97
|
+
'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
95
98
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
96
99
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
97
100
|
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -116,6 +119,7 @@ export declare const iconMap: {
|
|
|
116
119
|
'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
117
120
|
'ic-sort-descending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
118
121
|
'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
122
|
+
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
119
123
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
120
124
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
121
125
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { InfoBlockVariant } from '../../constants';
|
|
1
2
|
import { ButtonProps } from '../Button';
|
|
2
3
|
import { InfoBlockProps } from './types';
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockProps['variant'], InfoBlockProps['customIcon']>;
|
|
4
|
+
export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockVariant, InfoBlockProps['customIcon']>;
|
|
5
5
|
export declare const CONTAINER_SIZE_TO_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
|
6
6
|
export declare const SIZE_TO_ICON_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
|
7
7
|
export declare const CONTAINER_SIZE_TO_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { ComponentSizeType } from '../../constants';
|
|
2
|
+
import { ComponentSizeType, InfoBlockVariantType } from '../../constants';
|
|
3
3
|
import { BorderConfigType, ComponentLayoutType } from '../../types';
|
|
4
4
|
import { ButtonComponentType, ButtonProps } from '../Button';
|
|
5
5
|
export type InfoBlockProps = {
|
|
@@ -10,7 +10,7 @@ export type InfoBlockProps = {
|
|
|
10
10
|
/**
|
|
11
11
|
* @default 'information'
|
|
12
12
|
*/
|
|
13
|
-
variant?:
|
|
13
|
+
variant?: InfoBlockVariantType;
|
|
14
14
|
/**
|
|
15
15
|
* @default ComponentSizeType.large
|
|
16
16
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SEVERITIES } from './constants';
|
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
|
4
|
-
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--
|
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--Y500)" | "var(--G500)" | "var(--R700)";
|
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
|
6
6
|
value: number;
|
|
7
7
|
}[];
|
|
@@ -3,7 +3,6 @@ export * from './ActionMenu';
|
|
|
3
3
|
export * from './ActivityIndicator';
|
|
4
4
|
export * from './AnimatedDeployButton';
|
|
5
5
|
export * from './AnimatedTimer';
|
|
6
|
-
export * from './AnnouncementBanner';
|
|
7
6
|
export * from './APIResponseHandler';
|
|
8
7
|
export * from './ArtifactInfoModal';
|
|
9
8
|
export * from './Backdrop';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './ImageSelectionUtility';
|
|
2
2
|
export * from './MainContextProvider';
|
|
3
3
|
export * from './ThemeProvider';
|
|
4
|
-
export type { MainContext } from './types';
|
|
4
|
+
export type { MainContext, ReloadVersionConfigTypes } from './types';
|
|
5
5
|
export * from './UserEmailProvider';
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
import { SERVER_MODE } from '../../Common';
|
|
3
3
|
import { ServerInfo } from '../Components/Header/types';
|
|
4
|
-
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType } from '..';
|
|
4
|
+
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '..';
|
|
5
|
+
export interface ReloadVersionConfigTypes {
|
|
6
|
+
bgUpdated: boolean;
|
|
7
|
+
handleAppUpdate: () => void;
|
|
8
|
+
doesNeedRefresh: boolean;
|
|
9
|
+
updateServiceWorker: () => Promise<void>;
|
|
10
|
+
handleControllerChange: () => void;
|
|
11
|
+
updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
|
|
12
|
+
isRefreshing: boolean;
|
|
13
|
+
}
|
|
5
14
|
export interface MainContext {
|
|
6
15
|
serverMode: SERVER_MODE;
|
|
7
16
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
|
@@ -46,6 +55,7 @@ export interface MainContext {
|
|
|
46
55
|
licenseData: DevtronLicenseInfo;
|
|
47
56
|
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
|
48
57
|
canFetchHelmAppStatus: boolean;
|
|
58
|
+
reloadVersionConfig: ReloadVersionConfigTypes;
|
|
49
59
|
intelligenceConfig: IntelligenceConfig;
|
|
50
60
|
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
|
51
61
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
|
2
|
-
import {
|
|
2
|
+
import { InfoBlockProps } from './Components';
|
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
|
|
3
4
|
export declare const ARTIFACT_STATUS: {
|
|
4
5
|
PROGRESSING: string;
|
|
5
6
|
DEGRADED: string;
|
|
@@ -435,4 +436,16 @@ export declare const Routes: {
|
|
|
435
436
|
};
|
|
436
437
|
export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
|
|
437
438
|
export declare const INVALID_LICENSE_KEY = "inValid";
|
|
439
|
+
export declare enum InfoBlockVariant {
|
|
440
|
+
ERROR = "error",
|
|
441
|
+
HELP = "help",
|
|
442
|
+
INFORMATION = "information",
|
|
443
|
+
SUCCESS = "success",
|
|
444
|
+
WARNING = "warning",
|
|
445
|
+
NEUTRAL = "neutral"
|
|
446
|
+
}
|
|
447
|
+
export type InfoBlockVariantType = 'error' | 'help' | 'information' | 'success' | 'warning' | 'neutral';
|
|
448
|
+
export declare const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string>;
|
|
449
|
+
export declare const VARIANT_TO_ICON_COLOR_MAP: Record<InfoBlockProps['variant'], IconBaseColorType>;
|
|
450
|
+
export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], string>;
|
|
438
451
|
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|