@devtron-labs/devtron-fe-common-lib 0.0.81-beta-8 → 0.0.82-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/Api.d.ts +1 -0
- package/dist/Common/CodeEditor/CodeEditor.d.ts +44 -1
- package/dist/Common/Common.service.d.ts +3 -6
- package/dist/Common/Constants.d.ts +13 -10
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/GenericDescription/GenericDescription.d.ts +4 -0
- package/dist/Common/GenericDescription/constant.d.ts +2 -0
- package/dist/Common/GenericDescription/index.d.ts +2 -0
- package/dist/Common/GenericDescription/types.d.ts +14 -0
- package/dist/Common/Helper.d.ts +12 -2
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/Hooks/useStateFilters/index.d.ts +2 -0
- package/dist/Common/Hooks/useStateFilters/types.d.ts +6 -0
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +17 -0
- package/dist/Common/Markdown/constant.d.ts +28 -0
- package/dist/Common/Types.d.ts +56 -18
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +7 -2
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +2 -0
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +1 -0
- package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +18 -0
- package/dist/Shared/Components/ButtonWithSelector/index.d.ts +1 -0
- package/dist/Shared/Components/ButtonWithSelector/types.d.ts +10 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +7 -9
- package/dist/Shared/Components/ReactSelect/utils.d.ts +11 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +5 -3
- package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +5 -0
- package/dist/Shared/Providers/ImageSelectionUtility/index.d.ts +1 -0
- package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +9 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +14 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +88 -13
- package/dist/Shared/validations.d.ts +10 -1
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20856 -302
- package/package.json +10 -7
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +0 -36
- package/dist/Common/CodeEditor/index.d.ts +0 -2
- package/dist/Common/CodeEditor/types.d.ts +0 -86
- package/dist/Pages/ResourceBrowser/Helper.d.ts +0 -3
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -20
- package/dist/Pages/ResourceBrowser/index.d.ts +0 -2
- package/dist/abap-5361cc9f.js +0 -1314
- package/dist/apex-f9413e6f.js +0 -315
- package/dist/assets/editor.worker-60ba9509.js +0 -12
- package/dist/assets/yaml.worker-cc1a551a.js +0 -471
- package/dist/azcli-36f2cb5e.js +0 -74
- package/dist/bat-6b05202d.js +0 -95
- package/dist/bicep-788415e3.js +0 -108
- package/dist/cameligo-4e85ec93.js +0 -168
- package/dist/clojure-40fa5799.js +0 -754
- package/dist/coffee-f557f5e0.js +0 -228
- package/dist/cpp-ebbf7759.js +0 -390
- package/dist/csharp-1616f566.js +0 -320
- package/dist/csp-5f0bc3c4.js +0 -57
- package/dist/css-2b1aec9b.js +0 -186
- package/dist/cssMode-f6d332a1.js +0 -1446
- package/dist/cypher-b12b4ba8.js +0 -262
- package/dist/dart-e0d70030.js +0 -270
- package/dist/dockerfile-f9d4b2b0.js +0 -132
- package/dist/ecl-5b91fdec.js +0 -454
- package/dist/elixir-deffd5a6.js +0 -489
- package/dist/flow9-84cd00d7.js +0 -141
- package/dist/freemarker2-8e23f5a4.js +0 -643
- package/dist/fsharp-d296151f.js +0 -210
- package/dist/go-7e72ff3b.js +0 -208
- package/dist/graphql-a93568a1.js +0 -141
- package/dist/handlebars-f1c6ec5a.js +0 -391
- package/dist/hcl-b3994d8f.js +0 -177
- package/dist/html-1a4d5d9a.js +0 -281
- package/dist/htmlMode-05b8c00b.js +0 -1456
- package/dist/index-83e46ae3.js +0 -128536
- package/dist/ini-df84509a.js +0 -68
- package/dist/java-fba3d046.js +0 -221
- package/dist/javascript-823e6a19.js +0 -75
- package/dist/jsonMode-052d75cd.js +0 -1867
- package/dist/julia-cefd45f6.js +0 -496
- package/dist/kotlin-b87b6942.js +0 -245
- package/dist/less-8a7f37bc.js +0 -168
- package/dist/lexon-cb95cd13.js +0 -151
- package/dist/liquid-13a0b36f.js +0 -238
- package/dist/lua-6d5b3ea4.js +0 -157
- package/dist/m3-d0daf5d0.js +0 -210
- package/dist/markdown-48bb0c6f.js +0 -202
- package/dist/mdx-32e942cd.js +0 -171
- package/dist/mips-20dcf886.js +0 -194
- package/dist/msdax-e9759e23.js +0 -377
- package/dist/mysql-95f335b2.js +0 -876
- package/dist/objective-c-ad0cfb47.js +0 -188
- package/dist/pascal-eda19dc3.js +0 -245
- package/dist/pascaligo-b7e0c89b.js +0 -158
- package/dist/perl-bbe5d32a.js +0 -599
- package/dist/pgsql-7ebaee1c.js +0 -847
- package/dist/php-2526756d.js +0 -471
- package/dist/pla-9ebd6f68.js +0 -131
- package/dist/postiats-9ac05cf6.js +0 -544
- package/dist/powerquery-1cae399d.js +0 -890
- package/dist/powershell-093b5b87.js +0 -233
- package/dist/protobuf-37993cbc.js +0 -422
- package/dist/pug-c2a5db5f.js +0 -393
- package/dist/python-37bf24cb.js +0 -259
- package/dist/qsharp-1450aac5.js +0 -282
- package/dist/r-a0642b90.js +0 -245
- package/dist/razor-991b6ccc.js +0 -512
- package/dist/redis-405cb63d.js +0 -298
- package/dist/redshift-830f82de.js +0 -806
- package/dist/restructuredtext-d81f5ef4.js +0 -162
- package/dist/ruby-d607b87e.js +0 -444
- package/dist/rust-86e74dbb.js +0 -337
- package/dist/sb-b7e5010d.js +0 -110
- package/dist/scala-a4d4a3c6.js +0 -353
- package/dist/scheme-81927e94.js +0 -114
- package/dist/scss-3f112fcd.js +0 -244
- package/dist/shell-d795bcaa.js +0 -224
- package/dist/solidity-5b556d3e.js +0 -1351
- package/dist/sophia-1da55998.js +0 -190
- package/dist/sparql-ac34318e.js +0 -193
- package/dist/sql-eef6393b.js +0 -818
- package/dist/st-758b1972.js +0 -415
- package/dist/swift-63cb1847.js +0 -315
- package/dist/systemverilog-2538c608.js +0 -556
- package/dist/tcl-53e6282a.js +0 -232
- package/dist/tsMode-018c5c46.js +0 -811
- package/dist/twig-80c3dc23.js +0 -323
- package/dist/typescript-26297d38.js +0 -328
- package/dist/vb-32089525.js +0 -364
- package/dist/wgsl-e681d5a0.js +0 -420
- package/dist/xml-c99083fc.js +0 -95
- package/dist/yaml-0347fb0c.js +0 -184
package/dist/Common/Api.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { MutableRefObject } from 'react';
|
|
|
3
3
|
|
|
4
4
|
export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
|
|
5
5
|
export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
6
|
+
export declare const patch: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
6
7
|
export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
|
|
7
8
|
export declare const trash: (url: string, data?: object, options?: APIOptions) => Promise<ResponseType>;
|
|
8
9
|
/**
|
|
@@ -1,5 +1,48 @@
|
|
|
1
|
-
import { CodeEditorComposition, CodeEditorInterface } from './types';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
2
|
|
|
3
|
+
interface InformationBarProps {
|
|
4
|
+
text: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface CodeEditorInterface {
|
|
9
|
+
value?: string;
|
|
10
|
+
lineDecorationsWidth?: number;
|
|
11
|
+
responseType?: string;
|
|
12
|
+
onChange?: (string: any) => void;
|
|
13
|
+
onBlur?: () => void;
|
|
14
|
+
onFocus?: () => void;
|
|
15
|
+
children?: any;
|
|
16
|
+
defaultValue?: string;
|
|
17
|
+
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile';
|
|
18
|
+
tabSize?: number;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
noParsing?: boolean;
|
|
21
|
+
minHeight?: number;
|
|
22
|
+
maxHeight?: number;
|
|
23
|
+
inline?: boolean;
|
|
24
|
+
height?: number | string;
|
|
25
|
+
shebang?: string | JSX.Element;
|
|
26
|
+
diffView?: boolean;
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
customLoader?: JSX.Element;
|
|
29
|
+
theme?: string;
|
|
30
|
+
original?: string;
|
|
31
|
+
focus?: boolean;
|
|
32
|
+
validatorSchema?: any;
|
|
33
|
+
isKubernetes?: boolean;
|
|
34
|
+
cleanData?: boolean;
|
|
35
|
+
chartVersion?: any;
|
|
36
|
+
}
|
|
37
|
+
interface CodeEditorComposition {
|
|
38
|
+
Header?: React.FC<any>;
|
|
39
|
+
LanguageChanger?: React.FC<any>;
|
|
40
|
+
ThemeChanger?: React.FC<any>;
|
|
41
|
+
ValidationError?: React.FC<any>;
|
|
42
|
+
Clipboard?: React.FC<any>;
|
|
43
|
+
Warning?: React.FC<InformationBarProps>;
|
|
44
|
+
ErrorBar?: React.FC<InformationBarProps>;
|
|
45
|
+
Information?: React.FC<InformationBarProps>;
|
|
46
|
+
}
|
|
4
47
|
declare const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition;
|
|
5
48
|
export default CodeEditor;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, EnvironmentListHelmResponse } from './Types';
|
|
1
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery } from './Types';
|
|
3
2
|
|
|
4
3
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
|
5
4
|
interface UserRole extends ResponseType {
|
|
@@ -15,13 +14,11 @@ export declare const SourceTypeMap: {
|
|
|
15
14
|
};
|
|
16
15
|
export declare function getUserRole(appName?: string): Promise<UserRole>;
|
|
17
16
|
export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType<any>>;
|
|
17
|
+
export declare const processCDMaterialServiceResponse: (cdMaterialsResult: any, stage: DeploymentNodeType, offset: number, filter: CDMaterialFilterQuery, disableDefaultSelection?: boolean) => CDMaterialResponseType;
|
|
18
18
|
export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
|
|
19
19
|
export declare function extractImage(image: string): string;
|
|
20
20
|
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
21
21
|
export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
|
|
22
22
|
export declare const getDefaultConfig: () => Promise<ResponseType>;
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
|
25
|
-
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
|
26
|
-
export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
|
|
23
|
+
export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
|
|
27
24
|
export {};
|
|
@@ -25,8 +25,8 @@ export declare const URLS: {
|
|
|
25
25
|
GETTING_STARTED: string;
|
|
26
26
|
STACK_MANAGER_ABOUT: string;
|
|
27
27
|
APP_LIST_HELM: string;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
CREATE: string;
|
|
29
|
+
RELEASES: string;
|
|
30
30
|
};
|
|
31
31
|
export declare const ROUTES: {
|
|
32
32
|
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
@@ -43,11 +43,9 @@ export declare const ROUTES: {
|
|
|
43
43
|
SERVER_INFO_API: string;
|
|
44
44
|
ATTRIBUTES_USER: string;
|
|
45
45
|
UPDATE: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
GVK: string;
|
|
50
|
-
NAMESPACE: string;
|
|
46
|
+
CLUSTER_NOTE: string;
|
|
47
|
+
APPLICATION_NOTE: string;
|
|
48
|
+
GIT_HOST_EVENT: string;
|
|
51
49
|
};
|
|
52
50
|
export declare enum KEY_VALUE {
|
|
53
51
|
KEY = "key",
|
|
@@ -117,8 +115,7 @@ export declare enum MODES {
|
|
|
117
115
|
YAML = "yaml",
|
|
118
116
|
JSON = "json",
|
|
119
117
|
SHELL = "shell",
|
|
120
|
-
DOCKERFILE = "dockerfile"
|
|
121
|
-
PLAINTEXT = "plaintext"
|
|
118
|
+
DOCKERFILE = "dockerfile"
|
|
122
119
|
}
|
|
123
120
|
export declare enum APPROVAL_MODAL_TYPE {
|
|
124
121
|
CONFIG = "CONFIG",
|
|
@@ -205,6 +202,7 @@ export declare enum ReactSelectInputAction {
|
|
|
205
202
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
206
203
|
export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
|
|
207
204
|
export declare const API_STATUS_CODES: {
|
|
205
|
+
BAD_REQUEST: number;
|
|
208
206
|
UNAUTHORIZED: number;
|
|
209
207
|
PERMISSION_DENIED: number;
|
|
210
208
|
NOT_FOUND: number;
|
|
@@ -228,5 +226,10 @@ export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
|
228
226
|
SKIP_AND_EXPLORE_DEVTRON: string;
|
|
229
227
|
};
|
|
230
228
|
export declare const MAX_LOGIN_COUNT = 5;
|
|
229
|
+
export declare const BULK_EDIT_HEADER = "Bulk Edit";
|
|
231
230
|
export declare const LOGIN_COUNT = "login-count";
|
|
232
|
-
export declare const
|
|
231
|
+
export declare const DATE_TIME_FORMATS: {
|
|
232
|
+
TWELVE_HOURS_FORMAT: string;
|
|
233
|
+
TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: string;
|
|
234
|
+
TWELVE_HOURS_EXPORT_FORMAT: string;
|
|
235
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ErrorPageType } from './Types';
|
|
2
2
|
|
|
3
|
-
declare const ErrorPage: ({ code, image, title, subTitle, imageType, heightToDeduct,
|
|
3
|
+
declare const ErrorPage: ({ code, image, title, subTitle, imageType, heightToDeduct, reload }: ErrorPageType) => JSX.Element;
|
|
4
4
|
export default ErrorPage;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ErrorScreenManagerProps } from './Types';
|
|
2
2
|
|
|
3
|
-
declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, heightToDeduct
|
|
3
|
+
declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, heightToDeduct }: ErrorScreenManagerProps) => JSX.Element;
|
|
4
4
|
export default ErrorScreenManager;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GenericDescriptionProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const GenericDescription: ({ text, updatedBy, updatedOn, isDescriptionPreview, tabIndex, updateDescription, title, minEditorHeight, }: GenericDescriptionProps) => JSX.Element;
|
|
4
|
+
export default GenericDescription;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface GenericDescriptionProps {
|
|
2
|
+
text?: string;
|
|
3
|
+
updatedBy?: string;
|
|
4
|
+
updatedOn?: string;
|
|
5
|
+
isDescriptionPreview: boolean;
|
|
6
|
+
updateDescription: (string: any) => Promise<void>;
|
|
7
|
+
title: string;
|
|
8
|
+
tabIndex?: number;
|
|
9
|
+
minEditorHeight?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare enum MDEditorSelectedTabType {
|
|
12
|
+
WRITE = "write",
|
|
13
|
+
PREVIEW = "preview"
|
|
14
|
+
}
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncOptions, UseSearchString } from './Types';
|
|
2
|
-
import { default as React } from 'react';
|
|
2
|
+
import { default as React, SyntheticEvent } from 'react';
|
|
3
3
|
|
|
4
4
|
export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
|
|
5
5
|
interface ConditionalWrapper<T> {
|
|
@@ -10,6 +10,7 @@ interface ConditionalWrapper<T> {
|
|
|
10
10
|
export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
|
|
11
11
|
export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 0 | 1 | -1;
|
|
12
12
|
export declare const stopPropagation: (event: any) => void;
|
|
13
|
+
export declare const preventDefault: (event: SyntheticEvent) => void;
|
|
13
14
|
export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
|
|
14
15
|
export declare function getRandomColor(email: string): string;
|
|
15
16
|
export declare const getAlphabetIcon: (str: string, rootClassName?: string) => JSX.Element;
|
|
@@ -47,7 +48,7 @@ export declare const processDeployedTime: (lastDeployed: any, isArgoInstalled: a
|
|
|
47
48
|
* @param url URL to which the search params needs to be added
|
|
48
49
|
* @param params Object for the search parameters
|
|
49
50
|
*/
|
|
50
|
-
export declare const getUrlWithSearchParams: (url: string, params
|
|
51
|
+
export declare const getUrlWithSearchParams: (url: string, params?: Record<string | number, any>) => string;
|
|
51
52
|
/**
|
|
52
53
|
* Custom exception logger function for logging errors to sentry
|
|
53
54
|
*/
|
|
@@ -77,4 +78,13 @@ export declare const handleRelativeDateSorting: (dateStringA: any, dateStringB:
|
|
|
77
78
|
* Returns a stringified YAML with default indentation & line width
|
|
78
79
|
*/
|
|
79
80
|
export declare const YAMLStringify: (obj: object | unknown, option?: object) => string;
|
|
81
|
+
/**
|
|
82
|
+
* compare Object Length of the object
|
|
83
|
+
*/
|
|
84
|
+
export declare const compareObjectLength: (objA: any, objB: any) => boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Return deep copy of the object
|
|
87
|
+
*/
|
|
88
|
+
export declare function deepEqual(configA: any, configB: any): boolean;
|
|
89
|
+
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
80
90
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
|
|
2
|
+
|
|
3
|
+
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
|
|
4
|
+
}
|
|
5
|
+
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseStateFiltersProps, UseStateFiltersReturnType } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Generic hook for implementing state based pagination, search, sorting.
|
|
5
|
+
* Sister method of [useUrlFilters](https://github.com/devtron-labs/devtron-fe-common-lib/blob/main/src/Common/Hooks/useUrlFilters/useUrlFilters.ts)
|
|
6
|
+
*
|
|
7
|
+
* The exposed handlers can be consumed directly without the need for explicit state management
|
|
8
|
+
*
|
|
9
|
+
* @example Usage with custom type for sort keys and initial sort key:
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const { sortBy, sortOrder } = useUrlFilters<'email' | 'name'>({ initialSortKey: 'email' })
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* To be extended to be used with pagination and search as and when required
|
|
15
|
+
*/
|
|
16
|
+
declare const useStateFilters: <T = string>({ initialSortKey, }?: UseStateFiltersProps<T>) => UseStateFiltersReturnType<T>;
|
|
17
|
+
export default useStateFilters;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const DEFAULT_MARKDOWN_EDITOR_PREVIEW_MESSAGE = "\n<br>\nNothing to preview\n";
|
|
2
|
+
export declare const MARKDOWN_EDITOR_COMMANDS: string[][];
|
|
3
|
+
export declare enum MARKDOWN_EDITOR_COMMAND_TITLE {
|
|
4
|
+
HEADER = "header",
|
|
5
|
+
BOLD = "bold",
|
|
6
|
+
ITALIC = "italic",
|
|
7
|
+
STRIKETHROUGH = "strikethrough",
|
|
8
|
+
LINK = "link",
|
|
9
|
+
QUOTE = "quote",
|
|
10
|
+
CODE = "code",
|
|
11
|
+
IMAGE = "image",
|
|
12
|
+
UNORDERED_LIST = "unordered-list",
|
|
13
|
+
ORDERED_LIST = "ordered-list",
|
|
14
|
+
CHECKED_LIST = "checked-list"
|
|
15
|
+
}
|
|
16
|
+
export declare const MARKDOWN_EDITOR_COMMAND_ICON_TIPPY_CONTENT: {
|
|
17
|
+
header: string;
|
|
18
|
+
bold: string;
|
|
19
|
+
italic: string;
|
|
20
|
+
strikethrough: string;
|
|
21
|
+
link: string;
|
|
22
|
+
quote: string;
|
|
23
|
+
code: string;
|
|
24
|
+
image: string;
|
|
25
|
+
"unordered-list": string;
|
|
26
|
+
"ordered-list": string;
|
|
27
|
+
"checked-list": string;
|
|
28
|
+
};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -116,11 +116,9 @@ export interface GenericEmptyStateType {
|
|
|
116
116
|
layout?: 'row' | 'column';
|
|
117
117
|
contentClassName?: string;
|
|
118
118
|
}
|
|
119
|
-
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'> {
|
|
119
|
+
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload'> {
|
|
120
120
|
code: number;
|
|
121
121
|
heightToDeduct?: number;
|
|
122
|
-
redirectURL?: string;
|
|
123
|
-
reload?: () => void;
|
|
124
122
|
}
|
|
125
123
|
export interface ErrorScreenManagerProps {
|
|
126
124
|
code?: number;
|
|
@@ -128,7 +126,6 @@ export interface ErrorScreenManagerProps {
|
|
|
128
126
|
subtitle?: React.ReactChild;
|
|
129
127
|
reloadClass?: string;
|
|
130
128
|
heightToDeduct?: number;
|
|
131
|
-
redirectURL?: string;
|
|
132
129
|
}
|
|
133
130
|
export interface ErrorScreenNotAuthorizedProps {
|
|
134
131
|
subtitle?: React.ReactChild;
|
|
@@ -700,6 +697,61 @@ export interface CiPipeline {
|
|
|
700
697
|
isOffendingMandatoryPlugin?: boolean;
|
|
701
698
|
pipelineType?: string;
|
|
702
699
|
}
|
|
700
|
+
export interface InformationBarProps {
|
|
701
|
+
text: string;
|
|
702
|
+
className?: string;
|
|
703
|
+
children?: React.ReactNode;
|
|
704
|
+
}
|
|
705
|
+
export interface CodeEditorInterface {
|
|
706
|
+
value?: string;
|
|
707
|
+
lineDecorationsWidth?: number;
|
|
708
|
+
responseType?: string;
|
|
709
|
+
onChange?: (string: any) => void;
|
|
710
|
+
onBlur?: () => void;
|
|
711
|
+
onFocus?: () => void;
|
|
712
|
+
children?: any;
|
|
713
|
+
defaultValue?: string;
|
|
714
|
+
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile' | 'plaintext';
|
|
715
|
+
tabSize?: number;
|
|
716
|
+
readOnly?: boolean;
|
|
717
|
+
noParsing?: boolean;
|
|
718
|
+
minHeight?: number;
|
|
719
|
+
maxHeight?: number;
|
|
720
|
+
inline?: boolean;
|
|
721
|
+
height?: number | string;
|
|
722
|
+
shebang?: string | JSX.Element;
|
|
723
|
+
diffView?: boolean;
|
|
724
|
+
loading?: boolean;
|
|
725
|
+
customLoader?: JSX.Element;
|
|
726
|
+
theme?: string;
|
|
727
|
+
original?: string;
|
|
728
|
+
focus?: boolean;
|
|
729
|
+
validatorSchema?: any;
|
|
730
|
+
isKubernetes?: boolean;
|
|
731
|
+
cleanData?: boolean;
|
|
732
|
+
chartVersion?: any;
|
|
733
|
+
}
|
|
734
|
+
export interface CodeEditorComposition {
|
|
735
|
+
Header?: React.FC<any>;
|
|
736
|
+
LanguageChanger?: React.FC<any>;
|
|
737
|
+
ThemeChanger?: React.FC<any>;
|
|
738
|
+
ValidationError?: React.FC<any>;
|
|
739
|
+
Clipboard?: React.FC<any>;
|
|
740
|
+
Warning?: React.FC<InformationBarProps>;
|
|
741
|
+
ErrorBar?: React.FC<InformationBarProps>;
|
|
742
|
+
Information?: React.FC<InformationBarProps>;
|
|
743
|
+
}
|
|
744
|
+
export interface CodeEditorHeaderComposition {
|
|
745
|
+
LanguageChanger?: React.FC<any>;
|
|
746
|
+
ThemeChanger?: React.FC<any>;
|
|
747
|
+
ValidationError?: React.FC<any>;
|
|
748
|
+
Clipboard?: React.FC<any>;
|
|
749
|
+
}
|
|
750
|
+
export interface CodeEditorHeaderInterface {
|
|
751
|
+
children?: any;
|
|
752
|
+
className?: string;
|
|
753
|
+
hideDefaultSplitHeader?: boolean;
|
|
754
|
+
}
|
|
703
755
|
export interface DeploymentChartVersionType {
|
|
704
756
|
chartRefId: number;
|
|
705
757
|
chartVersion: string;
|
|
@@ -770,18 +822,4 @@ export interface DeploymentWindowProfileMetaData {
|
|
|
770
822
|
excludedUserEmails: string[];
|
|
771
823
|
warningMessage: string;
|
|
772
824
|
}
|
|
773
|
-
export interface EnvironmentListHelmResult {
|
|
774
|
-
clusterId: number;
|
|
775
|
-
clusterName: string;
|
|
776
|
-
environments: EnvironmentHelmResult[];
|
|
777
|
-
}
|
|
778
|
-
export interface EnvironmentHelmResult {
|
|
779
|
-
environmentId: number;
|
|
780
|
-
environmentName: string;
|
|
781
|
-
namespace: string;
|
|
782
|
-
environmentIdentifier: string;
|
|
783
|
-
isVirtualEnvironment?: boolean;
|
|
784
|
-
allowedDeploymentTypes?: DeploymentAppTypes[];
|
|
785
|
-
}
|
|
786
|
-
export type EnvironmentListHelmResponse = ResponseType<EnvironmentListHelmResult[]>;
|
|
787
825
|
export {};
|
package/dist/Common/index.d.ts
CHANGED
package/dist/Pages/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { APIResponseHandlerProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
3
|
+
declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, errorScreenManagerProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
4
4
|
export default APIResponseHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
|
|
2
|
-
import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
2
|
+
import { ErrorScreenManagerProps, GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
export interface EmptyPageTextType {
|
|
@@ -37,9 +37,14 @@ export interface APIResponseHandlerProps {
|
|
|
37
37
|
*/
|
|
38
38
|
reloadProps?: ReloadType;
|
|
39
39
|
/**
|
|
40
|
-
* If given, would show
|
|
40
|
+
* If given, would show GenericSectionErrorState instead of default Reload component
|
|
41
41
|
*/
|
|
42
42
|
genericSectionErrorProps?: GenericSectionErrorStateProps;
|
|
43
|
+
/**
|
|
44
|
+
* If given, would show ErrorScreenManager component instead of Reload component
|
|
45
|
+
* Priority of error states are: genericSectionErrorProps > errorScreenManagerProps > Reload component
|
|
46
|
+
*/
|
|
47
|
+
errorScreenManagerProps?: ErrorScreenManagerProps;
|
|
43
48
|
/**
|
|
44
49
|
* If no Error and no Loading, would load this component
|
|
45
50
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ActivityIndicatorProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const ActivityIndicator: ({ rootClassName }: ActivityIndicatorProps) => JSX.Element;
|
|
3
|
+
declare const ActivityIndicator: ({ rootClassName, backgroundColorClass, iconSizeClass, }: ActivityIndicatorProps) => JSX.Element;
|
|
4
4
|
export default ActivityIndicator;
|
|
@@ -28,6 +28,7 @@ export interface UseBulkSelectionReturnType<T> extends GetBulkSelectionCheckboxV
|
|
|
28
28
|
}
|
|
29
29
|
export interface BulkSelectionProps {
|
|
30
30
|
showPagination: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
31
32
|
}
|
|
32
33
|
export interface BulkSelectionDropdownItemsType {
|
|
33
34
|
locator: BulkSelectionEvents;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonWithSelectorProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Button With Selector
|
|
5
|
+
* @param content Content to show in button
|
|
6
|
+
* @param onClick Handler Function for button click
|
|
7
|
+
* @param children Dropdown Content
|
|
8
|
+
* @param className Other Classes to be applied
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <ButtonWithSelector content='Create Job' onClick={() => {}} className=''>
|
|
13
|
+
* {dropdownOptions}
|
|
14
|
+
* </ButtonWithSelector>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, }: ButtonWithSelectorProps) => JSX.Element;
|
|
18
|
+
export default ButtonWithSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ButtonWithSelector } from './ButtonWithSelector';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PageHeaderType } from './types';
|
|
2
2
|
|
|
3
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader,
|
|
3
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, isTippyShown, tippyRedirectLink, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, TippyIcon, tippyMessage, onClickTippybutton, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, }: PageHeaderType) => JSX.Element;
|
|
4
4
|
export default PageHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResponseType
|
|
1
|
+
import { ResponseType } from '../../../Common';
|
|
2
2
|
|
|
3
3
|
export declare enum InstallationType {
|
|
4
4
|
OSS_KUBECTL = "oss_kubectl",
|
|
@@ -19,23 +19,21 @@ export declare enum ModuleStatus {
|
|
|
19
19
|
}
|
|
20
20
|
export interface PageHeaderType {
|
|
21
21
|
headerName?: string;
|
|
22
|
-
showTabs?: boolean;
|
|
23
22
|
additionalHeaderInfo?: () => JSX.Element;
|
|
23
|
+
isTippyShown?: boolean;
|
|
24
|
+
tippyRedirectLink?: string;
|
|
25
|
+
showTabs?: boolean;
|
|
24
26
|
renderHeaderTabs?: () => JSX.Element;
|
|
25
27
|
isBreadcrumbs?: boolean;
|
|
26
28
|
breadCrumbs?: () => JSX.Element;
|
|
29
|
+
TippyIcon?: React.FunctionComponent<any>;
|
|
30
|
+
tippyMessage?: string;
|
|
31
|
+
onClickTippybutton?: () => void;
|
|
27
32
|
renderActionButtons?: () => JSX.Element;
|
|
28
33
|
showCloseButton?: boolean;
|
|
29
34
|
onClose?: () => void;
|
|
30
35
|
markAsBeta?: boolean;
|
|
31
36
|
showAnnouncementHeader?: boolean;
|
|
32
|
-
tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
|
|
33
|
-
isTippyCustomized?: boolean;
|
|
34
|
-
tippyRedirectLink?: string;
|
|
35
|
-
TippyIcon?: React.FunctionComponent<any>;
|
|
36
|
-
tippyMessage?: string;
|
|
37
|
-
onClickTippyButton?: () => void;
|
|
38
|
-
};
|
|
39
37
|
}
|
|
40
38
|
export interface ServerInfo {
|
|
41
39
|
currentVersion: string;
|
|
@@ -13,3 +13,14 @@ export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (ba
|
|
|
13
13
|
export declare const SelectOption: (props: any) => JSX.Element;
|
|
14
14
|
export declare const LoadingIndicator: () => JSX.Element;
|
|
15
15
|
export declare const GroupHeading: (props: any) => JSX.Element;
|
|
16
|
+
export declare const commonSelectStyles: {
|
|
17
|
+
container: (base: any, state: any) => any;
|
|
18
|
+
menuList: (base: any) => any;
|
|
19
|
+
control: (base: any, state: any) => any;
|
|
20
|
+
option: (base: any, state: any) => any;
|
|
21
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
22
|
+
valueContainer: (base: any) => any;
|
|
23
|
+
loadingMessage: (base: any) => any;
|
|
24
|
+
noOptionsMessage: (base: any) => any;
|
|
25
|
+
placeholder: (base: any) => any;
|
|
26
|
+
};
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GitTriggers } from './types';
|
|
2
|
-
import { MaterialInfo } from '../Common';
|
|
1
|
+
import { GitTriggers, WebhookEventNameType } from './types';
|
|
2
|
+
import { MaterialInfo, SortingOrder } from '../Common';
|
|
3
3
|
|
|
4
4
|
interface HighlightSearchTextProps {
|
|
5
5
|
/**
|
|
@@ -19,6 +19,8 @@ export declare const highlightSearchText: ({ searchText, text, highlightClasses
|
|
|
19
19
|
export declare const preventBodyScroll: (lock: boolean) => void;
|
|
20
20
|
export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[]) => boolean;
|
|
21
21
|
export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
|
|
23
|
+
export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
|
|
24
|
+
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
23
25
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
24
26
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ImageSelectionUtilityContextType, ImageSelectionUtilityProviderProps } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const ImageSelectionUtilityContext: import('react').Context<ImageSelectionUtilityContextType>;
|
|
4
|
+
export declare const useImageSelectionUtilityContext: () => ImageSelectionUtilityContextType;
|
|
5
|
+
export declare const ImageSelectionUtilityProvider: ({ children, value }: ImageSelectionUtilityProviderProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImageSelectionUtility';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ImageSelectionUtilityContextType {
|
|
3
|
+
gitCommitInfoGeneric: (...props: any[]) => JSX.Element;
|
|
4
|
+
getModuleInfo: (moduleName: string) => Promise<any>;
|
|
5
|
+
}
|
|
6
|
+
export interface ImageSelectionUtilityProviderProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
value: ImageSelectionUtilityContextType;
|
|
9
|
+
}
|
|
@@ -29,3 +29,17 @@ 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 enum PatchOperationType {
|
|
33
|
+
replace = "replace",
|
|
34
|
+
remove = "remove"
|
|
35
|
+
}
|
|
36
|
+
export declare enum DeploymentStageType {
|
|
37
|
+
PRE = "PRE",
|
|
38
|
+
DEPLOY = "DEPLOY",
|
|
39
|
+
POST = "POST"
|
|
40
|
+
}
|
|
41
|
+
export declare enum DeploymentWithConfigType {
|
|
42
|
+
LAST_SAVED_CONFIG = "LAST_SAVED_CONFIG",
|
|
43
|
+
LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
|
|
44
|
+
SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
|
|
45
|
+
}
|
package/dist/Shared/index.d.ts
CHANGED