@devtron-labs/devtron-fe-common-lib 0.0.72-beta-2 → 0.0.73-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/Constants.d.ts +0 -39
- package/dist/Common/Helper.d.ts +4 -0
- package/dist/Common/Markdown/MarkDown.d.ts +2 -0
- package/dist/Shared/Components/index.d.ts +0 -4
- package/dist/Shared/index.d.ts +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +0 -53
- package/dist/index.js +7429 -13203
- package/package.json +4 -6
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +0 -6
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +0 -1
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +0 -15
- package/dist/Shared/Components/ButtonWithLoader/index.d.ts +0 -1
- package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +0 -3
- package/dist/Shared/Components/EditableTextArea/index.d.ts +0 -1
- package/dist/Shared/Components/EditableTextArea/types.d.ts +0 -25
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +0 -3
- package/dist/Shared/Components/GettingStartedCard/service.d.ts +0 -3
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +0 -15
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +0 -5
- package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +0 -22
- package/dist/Shared/Components/Header/HeaderWithCreateButton/index.d.ts +0 -1
- package/dist/Shared/Components/Header/HelpNav.d.ts +0 -3
- package/dist/Shared/Components/Header/PageHeader.d.ts +0 -3
- package/dist/Shared/Components/Header/constants.d.ts +0 -3
- package/dist/Shared/Components/Header/index.d.ts +0 -2
- package/dist/Shared/Components/Header/service.d.ts +0 -4
- package/dist/Shared/Components/Header/types.d.ts +0 -60
- package/dist/Shared/Components/Header/utils.d.ts +0 -3
- package/dist/Shared/Components/LogoutCard.d.ts +0 -9
- package/dist/Shared/Providers/MainContextProvider.d.ts +0 -3
- package/dist/Shared/Providers/index.d.ts +0 -1
- package/dist/Shared/Providers/types.d.ts +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtron-labs/devtron-fe-common-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.73-beta-1",
|
|
4
4
|
"description": "Supporting common component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -61,8 +61,6 @@
|
|
|
61
61
|
"monaco-yaml": "4.0.4",
|
|
62
62
|
"prettier": "^3.1.1",
|
|
63
63
|
"react-select": "5.2.2",
|
|
64
|
-
"react-ga4": "^1.4.1",
|
|
65
|
-
"@typeform/embed-react": "2.20.0",
|
|
66
64
|
"react-toastify": "^8.2.0",
|
|
67
65
|
"typescript": "^4.9.4",
|
|
68
66
|
"vite": "^4.4.5",
|
|
@@ -79,9 +77,9 @@
|
|
|
79
77
|
"react-router": "^5.3.0",
|
|
80
78
|
"react-router-dom": "^5.3.0",
|
|
81
79
|
"react-draggable": "^4.4.5",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
80
|
+
"yaml": "^2.4.1",
|
|
81
|
+
"marked": "4.3.0",
|
|
82
|
+
"dompurify": "^3.0.2"
|
|
85
83
|
},
|
|
86
84
|
"dependencies": {
|
|
87
85
|
"react-monaco-editor": "^0.54.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as AnnouncementBanner } from './AnnouncementBanner';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
export interface ButtonProps {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
rootClassName: string;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
onClick?: (event: any) => void;
|
|
7
|
-
dataTestId?: string;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
type?: 'submit' | 'reset' | 'button';
|
|
10
|
-
}
|
|
11
|
-
export declare class ButtonWithLoader extends Component<ButtonProps> {
|
|
12
|
-
constructor(props: any);
|
|
13
|
-
clickHandler(event: any): void;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ButtonWithLoader';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as EditableTextArea } from './EditableTextArea';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
interface ValidationRule<T> {
|
|
2
|
-
/**
|
|
3
|
-
* Value against which the input should be validated
|
|
4
|
-
*/
|
|
5
|
-
value: T;
|
|
6
|
-
/**
|
|
7
|
-
* Validation message when the validation fails
|
|
8
|
-
*/
|
|
9
|
-
message: string;
|
|
10
|
-
}
|
|
11
|
-
export interface EditableTextAreaProps {
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
rows: number;
|
|
14
|
-
updateContent: (value: string) => Promise<void>;
|
|
15
|
-
initialText?: string;
|
|
16
|
-
validations?: {
|
|
17
|
-
maxLength?: ValidationRule<number>;
|
|
18
|
-
};
|
|
19
|
-
emptyState: string;
|
|
20
|
-
}
|
|
21
|
-
export interface Error {
|
|
22
|
-
isValid: boolean;
|
|
23
|
-
message: string;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ResponseType } from '../../../Common';
|
|
2
|
-
export interface LoginCount {
|
|
3
|
-
emailId: string;
|
|
4
|
-
key: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
export interface LoginCountType extends ResponseType {
|
|
8
|
-
result?: LoginCount;
|
|
9
|
-
}
|
|
10
|
-
export interface GettingStartedType {
|
|
11
|
-
className: string;
|
|
12
|
-
showHelpCard: boolean;
|
|
13
|
-
hideGettingStartedCard: (count?: string) => void;
|
|
14
|
-
loginCount: number;
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare const AppListConstants: {
|
|
2
|
-
SAMPLE_NODE_REPO_URL: string;
|
|
3
|
-
CREATE_DEVTRON_APP_URL: string;
|
|
4
|
-
AppTabs: {
|
|
5
|
-
DEVTRON_APPS: string;
|
|
6
|
-
HELM_APPS: string;
|
|
7
|
-
ARGO_APPS: string;
|
|
8
|
-
};
|
|
9
|
-
AppType: {
|
|
10
|
-
DEVTRON_APPS: string;
|
|
11
|
-
HELM_APPS: string;
|
|
12
|
-
ARGO_APPS: string;
|
|
13
|
-
};
|
|
14
|
-
FilterType: {
|
|
15
|
-
PROJECT: string;
|
|
16
|
-
CLUTSER: string;
|
|
17
|
-
NAMESPACE: string;
|
|
18
|
-
ENVIRONMENT: string;
|
|
19
|
-
APP_STATUS: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default AppListConstants;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './HeaderWithCreateButon';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { PageHeaderType } from './types';
|
|
2
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, isTippyShown, tippyRedirectLink, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, TippyIcon, tippyMessage, onClickTippybutton, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, }: PageHeaderType) => JSX.Element;
|
|
3
|
-
export default PageHeader;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ResponseType } from '../../../Common';
|
|
2
|
-
import { ServerInfoResponse } from './types';
|
|
3
|
-
export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
|
|
4
|
-
export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ResponseType } from '../../../Common';
|
|
3
|
-
export declare enum InstallationType {
|
|
4
|
-
OSS_KUBECTL = "oss_kubectl",
|
|
5
|
-
OSS_HELM = "oss_helm",
|
|
6
|
-
ENTERPRISE = "enterprise"
|
|
7
|
-
}
|
|
8
|
-
export declare enum ModuleStatus {
|
|
9
|
-
HEALTHY = "healthy",
|
|
10
|
-
NONE = "none",
|
|
11
|
-
UNKNOWN = "unknown",
|
|
12
|
-
UPGRADING = "upgrading",
|
|
13
|
-
UPGRADE_FAILED = "upgradeFailed",
|
|
14
|
-
INSTALLED = "installed",
|
|
15
|
-
INSTALLING = "installing",
|
|
16
|
-
INSTALL_FAILED = "installFailed",
|
|
17
|
-
NOT_INSTALLED = "notInstalled",
|
|
18
|
-
TIMEOUT = "timeout"
|
|
19
|
-
}
|
|
20
|
-
export interface PageHeaderType {
|
|
21
|
-
headerName?: string;
|
|
22
|
-
additionalHeaderInfo?: () => JSX.Element;
|
|
23
|
-
isTippyShown?: boolean;
|
|
24
|
-
tippyRedirectLink?: string;
|
|
25
|
-
showTabs?: boolean;
|
|
26
|
-
renderHeaderTabs?: () => JSX.Element;
|
|
27
|
-
isBreadcrumbs?: boolean;
|
|
28
|
-
breadCrumbs?: () => JSX.Element;
|
|
29
|
-
TippyIcon?: React.FunctionComponent<any>;
|
|
30
|
-
tippyMessage?: string;
|
|
31
|
-
onClickTippybutton?: () => void;
|
|
32
|
-
renderActionButtons?: () => JSX.Element;
|
|
33
|
-
showCloseButton?: boolean;
|
|
34
|
-
onClose?: () => void;
|
|
35
|
-
markAsBeta?: boolean;
|
|
36
|
-
showAnnouncementHeader?: boolean;
|
|
37
|
-
}
|
|
38
|
-
export interface ServerInfo {
|
|
39
|
-
currentVersion: string;
|
|
40
|
-
status: ModuleStatus;
|
|
41
|
-
releaseName: string;
|
|
42
|
-
installationType: InstallationType;
|
|
43
|
-
}
|
|
44
|
-
export interface ServerInfoResponse extends ResponseType {
|
|
45
|
-
result?: ServerInfo;
|
|
46
|
-
}
|
|
47
|
-
export interface HelpNavType {
|
|
48
|
-
className: string;
|
|
49
|
-
setShowHelpCard: React.Dispatch<React.SetStateAction<boolean>>;
|
|
50
|
-
serverInfo: ServerInfo;
|
|
51
|
-
fetchingServerInfo: boolean;
|
|
52
|
-
setGettingStartedClicked: (isClicked: boolean) => void;
|
|
53
|
-
showHelpCard: boolean;
|
|
54
|
-
}
|
|
55
|
-
export interface HelpOptionType {
|
|
56
|
-
name: string;
|
|
57
|
-
link: string;
|
|
58
|
-
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
59
|
-
showSeparator?: boolean;
|
|
60
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface LogoutCardType {
|
|
3
|
-
className: string;
|
|
4
|
-
userFirstLetter: string;
|
|
5
|
-
setShowLogOutCard: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
-
showLogOutCard: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const LogoutCard: ({ className, userFirstLetter, setShowLogOutCard, showLogOutCard }: LogoutCardType) => JSX.Element;
|
|
9
|
-
export default LogoutCard;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MainContextProvider';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject, ReactNode } from 'react';
|
|
2
|
-
import { ServerInfo } from '../Components/Header/types';
|
|
3
|
-
import { SERVER_MODE } from '../../Common';
|
|
4
|
-
export interface MainContext {
|
|
5
|
-
serverMode: SERVER_MODE;
|
|
6
|
-
setServerMode: (serverMode: SERVER_MODE) => void;
|
|
7
|
-
isHelpGettingStartedClicked: boolean;
|
|
8
|
-
setPageOverflowEnabled: (isPageOverflowEnabled: boolean) => void;
|
|
9
|
-
showCloseButtonAfterGettingStartedClicked: () => void;
|
|
10
|
-
loginCount: number;
|
|
11
|
-
setLoginCount: (loginCount: number) => void;
|
|
12
|
-
showGettingStartedCard: boolean;
|
|
13
|
-
setShowGettingStartedCard: (showGettingStartedCard: boolean) => void;
|
|
14
|
-
isGettingStartedClicked: boolean;
|
|
15
|
-
setGettingStartedClicked: (isGettingStartedClicked: boolean) => void;
|
|
16
|
-
moduleInInstallingState: string;
|
|
17
|
-
setModuleInInstallingState: (moduleInInstallingState: string) => void;
|
|
18
|
-
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
|
19
|
-
currentServerInfo: {
|
|
20
|
-
serverInfo: ServerInfo;
|
|
21
|
-
fetchingServerInfo: boolean;
|
|
22
|
-
};
|
|
23
|
-
isAirgapped: boolean;
|
|
24
|
-
isSuperAdmin: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface MainContextProviderProps {
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
value: MainContext;
|
|
29
|
-
}
|