@devtron-labs/devtron-fe-common-lib 0.0.81-beta-8 → 0.0.82

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.
Files changed (132) hide show
  1. package/dist/Common/Api.d.ts +1 -0
  2. package/dist/Common/CodeEditor/CodeEditor.d.ts +44 -1
  3. package/dist/Common/Common.service.d.ts +3 -6
  4. package/dist/Common/Constants.d.ts +13 -10
  5. package/dist/Common/ErrorPage.d.ts +1 -1
  6. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  7. package/dist/Common/GenericDescription/GenericDescription.d.ts +4 -0
  8. package/dist/Common/GenericDescription/constant.d.ts +2 -0
  9. package/dist/Common/GenericDescription/index.d.ts +2 -0
  10. package/dist/Common/GenericDescription/types.d.ts +14 -0
  11. package/dist/Common/Helper.d.ts +11 -2
  12. package/dist/Common/Markdown/constant.d.ts +28 -0
  13. package/dist/Common/Types.d.ts +56 -18
  14. package/dist/Common/index.d.ts +1 -1
  15. package/dist/Pages/index.d.ts +0 -1
  16. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
  17. package/dist/Shared/Components/ActivityIndicator/types.d.ts +2 -0
  18. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
  19. package/dist/Shared/Components/BulkSelection/types.d.ts +1 -0
  20. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +18 -0
  21. package/dist/Shared/Components/ButtonWithSelector/index.d.ts +1 -0
  22. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +10 -0
  23. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  24. package/dist/Shared/Components/Header/types.d.ts +7 -9
  25. package/dist/Shared/Components/ReactSelect/utils.d.ts +11 -0
  26. package/dist/Shared/Components/index.d.ts +1 -0
  27. package/dist/Shared/Helpers.d.ts +2 -1
  28. package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +5 -0
  29. package/dist/Shared/Providers/ImageSelectionUtility/index.d.ts +1 -0
  30. package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +9 -0
  31. package/dist/Shared/Providers/index.d.ts +1 -0
  32. package/dist/Shared/constants.d.ts +14 -0
  33. package/dist/Shared/index.d.ts +1 -0
  34. package/dist/Shared/types.d.ts +88 -13
  35. package/dist/Shared/validations.d.ts +10 -1
  36. package/dist/assets/index.css +1 -1
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.js +20827 -302
  39. package/package.json +10 -7
  40. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +0 -36
  41. package/dist/Common/CodeEditor/index.d.ts +0 -2
  42. package/dist/Common/CodeEditor/types.d.ts +0 -86
  43. package/dist/Pages/ResourceBrowser/Helper.d.ts +0 -3
  44. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -20
  45. package/dist/Pages/ResourceBrowser/index.d.ts +0 -2
  46. package/dist/abap-5361cc9f.js +0 -1314
  47. package/dist/apex-f9413e6f.js +0 -315
  48. package/dist/assets/editor.worker-60ba9509.js +0 -12
  49. package/dist/assets/yaml.worker-cc1a551a.js +0 -471
  50. package/dist/azcli-36f2cb5e.js +0 -74
  51. package/dist/bat-6b05202d.js +0 -95
  52. package/dist/bicep-788415e3.js +0 -108
  53. package/dist/cameligo-4e85ec93.js +0 -168
  54. package/dist/clojure-40fa5799.js +0 -754
  55. package/dist/coffee-f557f5e0.js +0 -228
  56. package/dist/cpp-ebbf7759.js +0 -390
  57. package/dist/csharp-1616f566.js +0 -320
  58. package/dist/csp-5f0bc3c4.js +0 -57
  59. package/dist/css-2b1aec9b.js +0 -186
  60. package/dist/cssMode-f6d332a1.js +0 -1446
  61. package/dist/cypher-b12b4ba8.js +0 -262
  62. package/dist/dart-e0d70030.js +0 -270
  63. package/dist/dockerfile-f9d4b2b0.js +0 -132
  64. package/dist/ecl-5b91fdec.js +0 -454
  65. package/dist/elixir-deffd5a6.js +0 -489
  66. package/dist/flow9-84cd00d7.js +0 -141
  67. package/dist/freemarker2-8e23f5a4.js +0 -643
  68. package/dist/fsharp-d296151f.js +0 -210
  69. package/dist/go-7e72ff3b.js +0 -208
  70. package/dist/graphql-a93568a1.js +0 -141
  71. package/dist/handlebars-f1c6ec5a.js +0 -391
  72. package/dist/hcl-b3994d8f.js +0 -177
  73. package/dist/html-1a4d5d9a.js +0 -281
  74. package/dist/htmlMode-05b8c00b.js +0 -1456
  75. package/dist/index-83e46ae3.js +0 -128536
  76. package/dist/ini-df84509a.js +0 -68
  77. package/dist/java-fba3d046.js +0 -221
  78. package/dist/javascript-823e6a19.js +0 -75
  79. package/dist/jsonMode-052d75cd.js +0 -1867
  80. package/dist/julia-cefd45f6.js +0 -496
  81. package/dist/kotlin-b87b6942.js +0 -245
  82. package/dist/less-8a7f37bc.js +0 -168
  83. package/dist/lexon-cb95cd13.js +0 -151
  84. package/dist/liquid-13a0b36f.js +0 -238
  85. package/dist/lua-6d5b3ea4.js +0 -157
  86. package/dist/m3-d0daf5d0.js +0 -210
  87. package/dist/markdown-48bb0c6f.js +0 -202
  88. package/dist/mdx-32e942cd.js +0 -171
  89. package/dist/mips-20dcf886.js +0 -194
  90. package/dist/msdax-e9759e23.js +0 -377
  91. package/dist/mysql-95f335b2.js +0 -876
  92. package/dist/objective-c-ad0cfb47.js +0 -188
  93. package/dist/pascal-eda19dc3.js +0 -245
  94. package/dist/pascaligo-b7e0c89b.js +0 -158
  95. package/dist/perl-bbe5d32a.js +0 -599
  96. package/dist/pgsql-7ebaee1c.js +0 -847
  97. package/dist/php-2526756d.js +0 -471
  98. package/dist/pla-9ebd6f68.js +0 -131
  99. package/dist/postiats-9ac05cf6.js +0 -544
  100. package/dist/powerquery-1cae399d.js +0 -890
  101. package/dist/powershell-093b5b87.js +0 -233
  102. package/dist/protobuf-37993cbc.js +0 -422
  103. package/dist/pug-c2a5db5f.js +0 -393
  104. package/dist/python-37bf24cb.js +0 -259
  105. package/dist/qsharp-1450aac5.js +0 -282
  106. package/dist/r-a0642b90.js +0 -245
  107. package/dist/razor-991b6ccc.js +0 -512
  108. package/dist/redis-405cb63d.js +0 -298
  109. package/dist/redshift-830f82de.js +0 -806
  110. package/dist/restructuredtext-d81f5ef4.js +0 -162
  111. package/dist/ruby-d607b87e.js +0 -444
  112. package/dist/rust-86e74dbb.js +0 -337
  113. package/dist/sb-b7e5010d.js +0 -110
  114. package/dist/scala-a4d4a3c6.js +0 -353
  115. package/dist/scheme-81927e94.js +0 -114
  116. package/dist/scss-3f112fcd.js +0 -244
  117. package/dist/shell-d795bcaa.js +0 -224
  118. package/dist/solidity-5b556d3e.js +0 -1351
  119. package/dist/sophia-1da55998.js +0 -190
  120. package/dist/sparql-ac34318e.js +0 -193
  121. package/dist/sql-eef6393b.js +0 -818
  122. package/dist/st-758b1972.js +0 -415
  123. package/dist/swift-63cb1847.js +0 -315
  124. package/dist/systemverilog-2538c608.js +0 -556
  125. package/dist/tcl-53e6282a.js +0 -232
  126. package/dist/tsMode-018c5c46.js +0 -811
  127. package/dist/twig-80c3dc23.js +0 -323
  128. package/dist/typescript-26297d38.js +0 -328
  129. package/dist/vb-32089525.js +0 -364
  130. package/dist/wgsl-e681d5a0.js +0 -420
  131. package/dist/xml-c99083fc.js +0 -95
  132. package/dist/yaml-0347fb0c.js +0 -184
@@ -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 { ApiResourceType } from '../Pages';
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 getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
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
- APP_CI_DETAILS: string;
29
- LOGS: string;
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
- ENVIRONMENT_LIST_MIN: string;
47
- CLUSTER: string;
48
- API_RESOURCE: string;
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 DEFAULT_ENV = "devtron-ci";
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, redirectURL, reload }: ErrorPageType) => JSX.Element;
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, redirectURL, }: ErrorScreenManagerProps) => JSX.Element;
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,2 @@
1
+ export declare const DESCRIPTION_EMPTY_ERROR_MSG = "Readme cannot be empty. Please add some information or cancel the changes.";
2
+ export declare const DESCRIPTION_UNSAVED_CHANGES_MSG = "Are you sure you want to discard your changes?";
@@ -0,0 +1,2 @@
1
+ export { default as GenericDescription } from './GenericDescription';
2
+ export * from './types';
@@ -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
+ }
@@ -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: Record<string | number, any>) => string;
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,12 @@ 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;
80
89
  export {};
@@ -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
+ };
@@ -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 {};
@@ -51,5 +51,5 @@ export * from './CustomInput';
51
51
  export * from './DraggableWrapper';
52
52
  export * from './Pagination';
53
53
  export * from './Markdown';
54
+ export * from './GenericDescription';
54
55
  export * from './SegmentedBarChart';
55
- export * from './CodeEditor';
@@ -1,2 +1 @@
1
1
  export * from './GlobalConfigurations';
2
- export * from './ResourceBrowser';
@@ -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;
@@ -1,3 +1,5 @@
1
1
  export interface ActivityIndicatorProps {
2
2
  rootClassName?: string;
3
+ backgroundColorClass?: string;
4
+ iconSizeClass?: string;
3
5
  }
@@ -1,4 +1,4 @@
1
1
  import { BulkSelectionProps } from './types';
2
2
 
3
- declare const BulkSelection: <T>({ showPagination }: BulkSelectionProps) => JSX.Element;
3
+ declare const BulkSelection: <T>({ showPagination, disabled }: BulkSelectionProps) => JSX.Element;
4
4
  export default BulkSelection;
@@ -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';
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface ButtonWithSelectorProps {
4
+ content: ReactNode;
5
+ onClick: () => void;
6
+ children: ReactNode;
7
+ className?: string;
8
+ popUpBodyClassName?: string;
9
+ showPopUp?: boolean;
10
+ }
@@ -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, tippyProps, }: PageHeaderType) => JSX.Element;
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, TippyCustomizedProps } from '../../../Common';
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
+ };
@@ -16,3 +16,4 @@ export * from './EditableTextArea';
16
16
  export * from './Header';
17
17
  export * from './AnnouncementBanner';
18
18
  export * from './ButtonWithLoader';
19
+ export * from './ButtonWithSelector';
@@ -1,4 +1,4 @@
1
- import { GitTriggers } from './types';
1
+ import { GitTriggers, WebhookEventNameType } from './types';
2
2
  import { MaterialInfo } from '../Common';
3
3
 
4
4
  interface HighlightSearchTextProps {
@@ -20,5 +20,6 @@ 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
22
  export declare const caseInsensitiveStringComparator: (a: string, b: string) => number;
23
+ export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
23
24
  export declare const isNullOrUndefined: (value: unknown) => boolean;
24
25
  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
+ }
@@ -1 +1,2 @@
1
1
  export * from './MainContextProvider';
2
+ export * from './ImageSelectionUtility';
@@ -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
+ }
@@ -4,3 +4,4 @@ export * from './Helpers';
4
4
  export * from './constants';
5
5
  export * from './types';
6
6
  export * from './Providers';
7
+ export * from './constants';