@devtron-labs/devtron-fe-common-lib 0.0.82-beta-4 → 0.0.82-beta-6
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/CodeEditor/CodeEditor.d.ts +44 -1
- package/dist/Common/Common.service.d.ts +1 -6
- package/dist/Common/Constants.d.ts +2 -10
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/Helper.d.ts +1 -0
- 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/Types.d.ts +76 -17
- package/dist/Common/index.d.ts +0 -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/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +7 -9
- package/dist/Shared/Helpers.d.ts +3 -2
- package/dist/Shared/types.d.ts +0 -12
- package/dist/Shared/validations.d.ts +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/index.js +20867 -324
- package/package.json +4 -4
- 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-8a600c5b.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-60c395cd.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-568f0889.js +0 -391
- package/dist/hcl-b3994d8f.js +0 -177
- package/dist/html-87e582fb.js +0 -281
- package/dist/htmlMode-01b5ce2f.js +0 -1456
- package/dist/index-acaa9ba9.js +0 -128948
- package/dist/ini-df84509a.js +0 -68
- package/dist/java-fba3d046.js +0 -221
- package/dist/javascript-aa227f90.js +0 -75
- package/dist/jsonMode-e32a9b16.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-07058c2d.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-fbabfc29.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-149edaae.js +0 -259
- package/dist/qsharp-1450aac5.js +0 -282
- package/dist/r-a0642b90.js +0 -245
- package/dist/razor-e47457e6.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-84ef2c9a.js +0 -811
- package/dist/twig-80c3dc23.js +0 -323
- package/dist/typescript-030f68fd.js +0 -328
- package/dist/vb-32089525.js +0 -364
- package/dist/wgsl-e681d5a0.js +0 -420
- package/dist/xml-5811dc34.js +0 -95
- package/dist/yaml-e1a6e74e.js +0 -184
|
@@ -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, CDMaterialFilterQuery, 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 {
|
|
@@ -21,9 +20,5 @@ export declare function extractImage(image: string): string;
|
|
|
21
20
|
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
22
21
|
export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
|
|
23
22
|
export declare const getDefaultConfig: () => Promise<ResponseType>;
|
|
24
|
-
export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
|
|
25
|
-
export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
|
26
|
-
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
|
27
|
-
export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
|
|
28
23
|
export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
|
|
29
24
|
export {};
|
|
@@ -25,8 +25,6 @@ export declare const URLS: {
|
|
|
25
25
|
GETTING_STARTED: string;
|
|
26
26
|
STACK_MANAGER_ABOUT: string;
|
|
27
27
|
APP_LIST_HELM: string;
|
|
28
|
-
APP_CI_DETAILS: string;
|
|
29
|
-
LOGS: string;
|
|
30
28
|
CREATE: string;
|
|
31
29
|
RELEASES: string;
|
|
32
30
|
};
|
|
@@ -45,11 +43,6 @@ export declare const ROUTES: {
|
|
|
45
43
|
SERVER_INFO_API: string;
|
|
46
44
|
ATTRIBUTES_USER: string;
|
|
47
45
|
UPDATE: string;
|
|
48
|
-
ENVIRONMENT_LIST_MIN: string;
|
|
49
|
-
CLUSTER: string;
|
|
50
|
-
API_RESOURCE: string;
|
|
51
|
-
GVK: string;
|
|
52
|
-
NAMESPACE: string;
|
|
53
46
|
CLUSTER_NOTE: string;
|
|
54
47
|
APPLICATION_NOTE: string;
|
|
55
48
|
GIT_HOST_EVENT: string;
|
|
@@ -122,8 +115,7 @@ export declare enum MODES {
|
|
|
122
115
|
YAML = "yaml",
|
|
123
116
|
JSON = "json",
|
|
124
117
|
SHELL = "shell",
|
|
125
|
-
DOCKERFILE = "dockerfile"
|
|
126
|
-
PLAINTEXT = "plaintext"
|
|
118
|
+
DOCKERFILE = "dockerfile"
|
|
127
119
|
}
|
|
128
120
|
export declare enum APPROVAL_MODAL_TYPE {
|
|
129
121
|
CONFIG = "CONFIG",
|
|
@@ -234,8 +226,8 @@ export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
|
234
226
|
SKIP_AND_EXPLORE_DEVTRON: string;
|
|
235
227
|
};
|
|
236
228
|
export declare const MAX_LOGIN_COUNT = 5;
|
|
229
|
+
export declare const BULK_EDIT_HEADER = "Bulk Edit";
|
|
237
230
|
export declare const LOGIN_COUNT = "login-count";
|
|
238
|
-
export declare const DEFAULT_ENV = "devtron-ci";
|
|
239
231
|
export declare const DATE_TIME_FORMATS: {
|
|
240
232
|
TWELVE_HOURS_FORMAT: string;
|
|
241
233
|
TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: string;
|
|
@@ -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, redirectURL }: ErrorPageType) => JSX.Element;
|
|
4
4
|
export default ErrorPage;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -86,4 +86,5 @@ export declare const compareObjectLength: (objA: any, objB: any) => boolean;
|
|
|
86
86
|
* Return deep copy of the object
|
|
87
87
|
*/
|
|
88
88
|
export declare function deepEqual(configA: any, configB: any): boolean;
|
|
89
|
+
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
89
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;
|
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'>, Pick<ErrorScreenManagerProps, 'reload'> {
|
|
119
|
+
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload' | 'redirectURL'> {
|
|
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,6 +126,10 @@ export interface ErrorScreenManagerProps {
|
|
|
128
126
|
subtitle?: React.ReactChild;
|
|
129
127
|
reloadClass?: string;
|
|
130
128
|
heightToDeduct?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Would be used to redirect URL in case of 404
|
|
131
|
+
* @default - APP_LIST
|
|
132
|
+
*/
|
|
131
133
|
redirectURL?: string;
|
|
132
134
|
}
|
|
133
135
|
export interface ErrorScreenNotAuthorizedProps {
|
|
@@ -306,6 +308,14 @@ export interface DeploymentWindowArtifactMetadata {
|
|
|
306
308
|
name: string;
|
|
307
309
|
type: DEPLOYMENT_WINDOW_TYPE;
|
|
308
310
|
}
|
|
311
|
+
export interface ArtifactReleaseMappingType {
|
|
312
|
+
id: number;
|
|
313
|
+
identifier: string;
|
|
314
|
+
releaseVersion: string;
|
|
315
|
+
name: string;
|
|
316
|
+
kind: string;
|
|
317
|
+
version: string;
|
|
318
|
+
}
|
|
309
319
|
export interface CDMaterialType {
|
|
310
320
|
index: number;
|
|
311
321
|
id: string;
|
|
@@ -349,6 +359,14 @@ export interface CDMaterialType {
|
|
|
349
359
|
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
350
360
|
deployedOnEnvironments?: string[];
|
|
351
361
|
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
362
|
+
/**
|
|
363
|
+
* Will only be present in case of release
|
|
364
|
+
*/
|
|
365
|
+
configuredInReleases: ArtifactReleaseMappingType[];
|
|
366
|
+
/**
|
|
367
|
+
* Would currently only be received in case of release
|
|
368
|
+
*/
|
|
369
|
+
appWorkflowId: number;
|
|
352
370
|
}
|
|
353
371
|
export declare enum CDMaterialServiceEnum {
|
|
354
372
|
ROLLBACK = "rollback",
|
|
@@ -700,6 +718,61 @@ export interface CiPipeline {
|
|
|
700
718
|
isOffendingMandatoryPlugin?: boolean;
|
|
701
719
|
pipelineType?: string;
|
|
702
720
|
}
|
|
721
|
+
export interface InformationBarProps {
|
|
722
|
+
text: string;
|
|
723
|
+
className?: string;
|
|
724
|
+
children?: React.ReactNode;
|
|
725
|
+
}
|
|
726
|
+
export interface CodeEditorInterface {
|
|
727
|
+
value?: string;
|
|
728
|
+
lineDecorationsWidth?: number;
|
|
729
|
+
responseType?: string;
|
|
730
|
+
onChange?: (string: any) => void;
|
|
731
|
+
onBlur?: () => void;
|
|
732
|
+
onFocus?: () => void;
|
|
733
|
+
children?: any;
|
|
734
|
+
defaultValue?: string;
|
|
735
|
+
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile' | 'plaintext';
|
|
736
|
+
tabSize?: number;
|
|
737
|
+
readOnly?: boolean;
|
|
738
|
+
noParsing?: boolean;
|
|
739
|
+
minHeight?: number;
|
|
740
|
+
maxHeight?: number;
|
|
741
|
+
inline?: boolean;
|
|
742
|
+
height?: number | string;
|
|
743
|
+
shebang?: string | JSX.Element;
|
|
744
|
+
diffView?: boolean;
|
|
745
|
+
loading?: boolean;
|
|
746
|
+
customLoader?: JSX.Element;
|
|
747
|
+
theme?: string;
|
|
748
|
+
original?: string;
|
|
749
|
+
focus?: boolean;
|
|
750
|
+
validatorSchema?: any;
|
|
751
|
+
isKubernetes?: boolean;
|
|
752
|
+
cleanData?: boolean;
|
|
753
|
+
chartVersion?: any;
|
|
754
|
+
}
|
|
755
|
+
export interface CodeEditorComposition {
|
|
756
|
+
Header?: React.FC<any>;
|
|
757
|
+
LanguageChanger?: React.FC<any>;
|
|
758
|
+
ThemeChanger?: React.FC<any>;
|
|
759
|
+
ValidationError?: React.FC<any>;
|
|
760
|
+
Clipboard?: React.FC<any>;
|
|
761
|
+
Warning?: React.FC<InformationBarProps>;
|
|
762
|
+
ErrorBar?: React.FC<InformationBarProps>;
|
|
763
|
+
Information?: React.FC<InformationBarProps>;
|
|
764
|
+
}
|
|
765
|
+
export interface CodeEditorHeaderComposition {
|
|
766
|
+
LanguageChanger?: React.FC<any>;
|
|
767
|
+
ThemeChanger?: React.FC<any>;
|
|
768
|
+
ValidationError?: React.FC<any>;
|
|
769
|
+
Clipboard?: React.FC<any>;
|
|
770
|
+
}
|
|
771
|
+
export interface CodeEditorHeaderInterface {
|
|
772
|
+
children?: any;
|
|
773
|
+
className?: string;
|
|
774
|
+
hideDefaultSplitHeader?: boolean;
|
|
775
|
+
}
|
|
703
776
|
export interface DeploymentChartVersionType {
|
|
704
777
|
chartRefId: number;
|
|
705
778
|
chartVersion: string;
|
|
@@ -770,18 +843,4 @@ export interface DeploymentWindowProfileMetaData {
|
|
|
770
843
|
excludedUserEmails: string[];
|
|
771
844
|
warningMessage: string;
|
|
772
845
|
}
|
|
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
846
|
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 { 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;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GitTriggers, WebhookEventNameType } from './types';
|
|
2
|
-
import { MaterialInfo } from '../Common';
|
|
2
|
+
import { MaterialInfo, SortingOrder } from '../Common';
|
|
3
3
|
|
|
4
4
|
interface HighlightSearchTextProps {
|
|
5
5
|
/**
|
|
@@ -19,7 +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;
|
|
23
24
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
24
25
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
25
26
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -253,15 +253,3 @@ export declare enum Nodes {
|
|
|
253
253
|
Overview = "Overview"
|
|
254
254
|
}
|
|
255
255
|
export type NodeType = keyof typeof Nodes;
|
|
256
|
-
export declare enum AggregationKeys {
|
|
257
|
-
Workloads = "Workloads",
|
|
258
|
-
Networking = "Networking",
|
|
259
|
-
'Config & Storage' = "Config & Storage",
|
|
260
|
-
RBAC = "RBAC",
|
|
261
|
-
Administration = "Administration",
|
|
262
|
-
'Custom Resource' = "Custom Resource",
|
|
263
|
-
'Other Resources' = "Other Resources",
|
|
264
|
-
Events = "Events",
|
|
265
|
-
Namespaces = "Namespaces"
|
|
266
|
-
}
|
|
267
|
-
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
@@ -12,7 +12,6 @@ export declare const MESSAGES: {
|
|
|
12
12
|
VALID_POSITIVE_INTEGER: string;
|
|
13
13
|
MAX_SAFE_INTEGER: string;
|
|
14
14
|
};
|
|
15
|
-
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
16
15
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
17
16
|
export declare const validateDescription: (description: string) => ValidationResponseType;
|
|
18
17
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|