@devtron-labs/devtron-fe-common-lib 0.0.84-beta-1 → 0.0.84-beta-2

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 (171) hide show
  1. package/dist/Common/AppStatus/constants.d.ts +0 -20
  2. package/dist/Common/AppStatus/index.d.ts +1 -0
  3. package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -44
  4. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +36 -0
  5. package/dist/Common/CodeEditor/index.d.ts +2 -0
  6. package/dist/Common/CodeEditor/types.d.ts +86 -0
  7. package/dist/Common/Common.service.d.ts +6 -1
  8. package/dist/Common/Constants.d.ts +29 -2
  9. package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +4 -0
  10. package/dist/Common/ErrorPage.d.ts +1 -1
  11. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  12. package/dist/Common/Helper.d.ts +9 -0
  13. package/dist/Common/Hooks/index.d.ts +1 -0
  14. package/dist/Common/Hooks/useStateFilters/index.d.ts +2 -0
  15. package/dist/Common/Hooks/useStateFilters/types.d.ts +6 -0
  16. package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +17 -0
  17. package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -1
  18. package/dist/Common/Pagination/index.d.ts +1 -0
  19. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  20. package/dist/Common/SearchBar/types.d.ts +4 -0
  21. package/dist/Common/Types.d.ts +41 -59
  22. package/dist/Common/index.d.ts +3 -0
  23. package/dist/Pages/ResourceBrowser/Helper.d.ts +3 -0
  24. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +20 -0
  25. package/dist/Pages/ResourceBrowser/index.d.ts +2 -0
  26. package/dist/Pages/index.d.ts +1 -0
  27. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
  28. package/dist/Shared/Components/APIResponseHandler/types.d.ts +7 -2
  29. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
  30. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +1 -0
  31. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +4 -0
  32. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +5 -0
  33. package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +14 -0
  34. package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +11 -0
  35. package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +4 -0
  36. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +4 -0
  37. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +4 -0
  38. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +4 -0
  39. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +4 -0
  40. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +4 -0
  41. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +3 -0
  42. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +36 -0
  43. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +11 -0
  44. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +4 -0
  45. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +3 -0
  46. package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +4 -0
  47. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +3 -0
  48. package/dist/Shared/Components/CICDHistory/History.components.d.ts +5 -0
  49. package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +4 -0
  50. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +5 -0
  51. package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +3 -0
  52. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +6 -0
  53. package/dist/Shared/Components/CICDHistory/constants.d.ts +45 -0
  54. package/dist/Shared/Components/CICDHistory/index.d.ts +16 -0
  55. package/dist/Shared/Components/CICDHistory/service.d.ts +28 -0
  56. package/dist/Shared/Components/CICDHistory/types.d.ts +588 -0
  57. package/dist/Shared/Components/CICDHistory/utils.d.ts +4 -0
  58. package/dist/Shared/Components/Error/ErrorBar.d.ts +4 -0
  59. package/dist/Shared/Components/Error/index.d.ts +2 -0
  60. package/dist/Shared/Components/Error/types.d.ts +9 -0
  61. package/dist/Shared/Components/Error/utils.d.ts +3 -0
  62. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  63. package/dist/Shared/Components/FilterChips/types.d.ts +11 -3
  64. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
  65. package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +1 -0
  66. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +6 -0
  67. package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +4 -0
  68. package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +9 -0
  69. package/dist/Shared/Components/GitCommitInfoGeneric/index.d.ts +1 -0
  70. package/dist/Shared/Components/GitCommitInfoGeneric/types.d.ts +11 -0
  71. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  72. package/dist/Shared/Components/Header/types.d.ts +9 -7
  73. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +5 -0
  74. package/dist/Shared/Components/index.d.ts +3 -0
  75. package/dist/Shared/Helpers.d.ts +10 -3
  76. package/dist/Shared/Store/IndexStore.d.ts +48 -0
  77. package/dist/Shared/Store/index.d.ts +1 -0
  78. package/dist/Shared/constants.d.ts +300 -0
  79. package/dist/Shared/index.d.ts +1 -1
  80. package/dist/Shared/types.d.ts +211 -45
  81. package/dist/Shared/validations.d.ts +1 -0
  82. package/dist/abap-5361cc9f.js +1314 -0
  83. package/dist/apex-f9413e6f.js +315 -0
  84. package/dist/assets/editor.worker-60ba9509.js +12 -0
  85. package/dist/assets/index.css +1 -1
  86. package/dist/assets/yaml.worker-cc1a551a.js +471 -0
  87. package/dist/azcli-36f2cb5e.js +74 -0
  88. package/dist/bat-6b05202d.js +95 -0
  89. package/dist/bicep-788415e3.js +108 -0
  90. package/dist/cameligo-4e85ec93.js +168 -0
  91. package/dist/clojure-40fa5799.js +754 -0
  92. package/dist/coffee-f557f5e0.js +228 -0
  93. package/dist/cpp-ebbf7759.js +390 -0
  94. package/dist/csharp-1616f566.js +320 -0
  95. package/dist/csp-5f0bc3c4.js +57 -0
  96. package/dist/css-2b1aec9b.js +186 -0
  97. package/dist/cssMode-0af60876.js +1446 -0
  98. package/dist/cypher-b12b4ba8.js +262 -0
  99. package/dist/dart-e0d70030.js +270 -0
  100. package/dist/dockerfile-f9d4b2b0.js +132 -0
  101. package/dist/ecl-5b91fdec.js +454 -0
  102. package/dist/elixir-deffd5a6.js +489 -0
  103. package/dist/flow9-84cd00d7.js +141 -0
  104. package/dist/freemarker2-6d9d36ec.js +643 -0
  105. package/dist/fsharp-d296151f.js +210 -0
  106. package/dist/go-7e72ff3b.js +208 -0
  107. package/dist/graphql-a93568a1.js +141 -0
  108. package/dist/handlebars-5027acc4.js +391 -0
  109. package/dist/hcl-b3994d8f.js +177 -0
  110. package/dist/html-a15fdc40.js +281 -0
  111. package/dist/htmlMode-cd16b79f.js +1456 -0
  112. package/dist/index-c9bfe6ec.js +134062 -0
  113. package/dist/index.js +405 -20827
  114. package/dist/ini-df84509a.js +68 -0
  115. package/dist/java-fba3d046.js +221 -0
  116. package/dist/javascript-7a025257.js +75 -0
  117. package/dist/jsonMode-39c4f3a6.js +1867 -0
  118. package/dist/julia-cefd45f6.js +496 -0
  119. package/dist/kotlin-b87b6942.js +245 -0
  120. package/dist/less-8a7f37bc.js +168 -0
  121. package/dist/lexon-cb95cd13.js +151 -0
  122. package/dist/liquid-71a84cb6.js +238 -0
  123. package/dist/lua-6d5b3ea4.js +157 -0
  124. package/dist/m3-d0daf5d0.js +210 -0
  125. package/dist/markdown-48bb0c6f.js +202 -0
  126. package/dist/mdx-db94c1dc.js +171 -0
  127. package/dist/mips-20dcf886.js +194 -0
  128. package/dist/msdax-e9759e23.js +377 -0
  129. package/dist/mysql-95f335b2.js +876 -0
  130. package/dist/objective-c-ad0cfb47.js +188 -0
  131. package/dist/pascal-eda19dc3.js +245 -0
  132. package/dist/pascaligo-b7e0c89b.js +158 -0
  133. package/dist/perl-bbe5d32a.js +599 -0
  134. package/dist/pgsql-7ebaee1c.js +847 -0
  135. package/dist/php-2526756d.js +471 -0
  136. package/dist/pla-9ebd6f68.js +131 -0
  137. package/dist/postiats-9ac05cf6.js +544 -0
  138. package/dist/powerquery-1cae399d.js +890 -0
  139. package/dist/powershell-093b5b87.js +233 -0
  140. package/dist/protobuf-37993cbc.js +422 -0
  141. package/dist/pug-c2a5db5f.js +393 -0
  142. package/dist/python-5db35aea.js +259 -0
  143. package/dist/qsharp-1450aac5.js +282 -0
  144. package/dist/r-a0642b90.js +245 -0
  145. package/dist/razor-7fa3ed18.js +512 -0
  146. package/dist/redis-405cb63d.js +298 -0
  147. package/dist/redshift-830f82de.js +806 -0
  148. package/dist/restructuredtext-d81f5ef4.js +162 -0
  149. package/dist/ruby-d607b87e.js +444 -0
  150. package/dist/rust-86e74dbb.js +337 -0
  151. package/dist/sb-b7e5010d.js +110 -0
  152. package/dist/scala-a4d4a3c6.js +353 -0
  153. package/dist/scheme-81927e94.js +114 -0
  154. package/dist/scss-3f112fcd.js +244 -0
  155. package/dist/shell-d795bcaa.js +224 -0
  156. package/dist/solidity-5b556d3e.js +1351 -0
  157. package/dist/sophia-1da55998.js +190 -0
  158. package/dist/sparql-ac34318e.js +193 -0
  159. package/dist/sql-eef6393b.js +818 -0
  160. package/dist/st-758b1972.js +415 -0
  161. package/dist/swift-63cb1847.js +315 -0
  162. package/dist/systemverilog-2538c608.js +556 -0
  163. package/dist/tcl-53e6282a.js +232 -0
  164. package/dist/tsMode-ba699574.js +811 -0
  165. package/dist/twig-80c3dc23.js +323 -0
  166. package/dist/typescript-0ceaf5ef.js +328 -0
  167. package/dist/vb-32089525.js +364 -0
  168. package/dist/wgsl-e681d5a0.js +420 -0
  169. package/dist/xml-55ba3b31.js +95 -0
  170. package/dist/yaml-61552090.js +184 -0
  171. package/package.json +20 -18
@@ -28,24 +28,4 @@ export declare const StatusConstants: {
28
28
  normalCase: string;
29
29
  };
30
30
  };
31
- export declare enum TIMELINE_STATUS {
32
- DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
33
- GIT_COMMIT = "GIT_COMMIT",
34
- GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
35
- KUBECTL_APPLY = "KUBECTL_APPLY",
36
- KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
37
- KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
38
- HEALTHY = "HEALTHY",
39
- APP_HEALTH = "APP_HEALTH",
40
- DEPLOYMENT_FAILED = "FAILED",
41
- FETCH_TIMED_OUT = "TIMED_OUT",
42
- UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
43
- DEGRADED = "DEGRADED",
44
- DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
45
- ABORTED = "ABORTED",
46
- INPROGRESS = "INPROGRESS",
47
- HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
48
- HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
49
- HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
50
- }
51
31
  export declare const YET_TO_RUN = "Yet to run";
@@ -1 +1,2 @@
1
1
  export { default as AppStatus } from './AppStatus';
2
+ export * from './utils';
@@ -1,48 +1,5 @@
1
+ import { CodeEditorComposition, CodeEditorInterface } from './types';
1
2
  import { default as React } from 'react';
2
3
 
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
- }
47
4
  declare const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition;
48
5
  export default CodeEditor;
@@ -0,0 +1,36 @@
1
+ import { Action, CodeEditorInitialValueType, CodeEditorState, CodeEditorThemesKeys } from './types';
2
+ import { MODES } from '../Constants';
3
+
4
+ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action) => {
5
+ mode: any;
6
+ diffMode: boolean;
7
+ theme: CodeEditorThemesKeys;
8
+ code: string;
9
+ noParsing: boolean;
10
+ } | {
11
+ diffMode: any;
12
+ mode: MODES;
13
+ theme: CodeEditorThemesKeys;
14
+ code: string;
15
+ noParsing: boolean;
16
+ } | {
17
+ theme: any;
18
+ mode: MODES;
19
+ diffMode: boolean;
20
+ code: string;
21
+ noParsing: boolean;
22
+ } | {
23
+ code: any;
24
+ mode: MODES;
25
+ diffMode: boolean;
26
+ theme: CodeEditorThemesKeys;
27
+ noParsing: boolean;
28
+ } | {
29
+ height: any;
30
+ mode: MODES;
31
+ diffMode: boolean;
32
+ theme: CodeEditorThemesKeys;
33
+ code: string;
34
+ noParsing: boolean;
35
+ };
36
+ export declare const initialState: ({ mode, theme, value, diffView, noParsing, }: CodeEditorInitialValueType) => CodeEditorState;
@@ -0,0 +1,2 @@
1
+ export { default as CodeEditor } from './CodeEditor';
2
+ export * from './types';
@@ -0,0 +1,86 @@
1
+ import { MODES } from '../Constants';
2
+
3
+ export interface InformationBarProps {
4
+ text: string;
5
+ className?: string;
6
+ children?: React.ReactNode;
7
+ }
8
+ export 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?: MODES | string;
18
+ tabSize?: number;
19
+ readOnly?: boolean;
20
+ noParsing?: boolean;
21
+ inline?: boolean;
22
+ height?: number | string;
23
+ shebang?: string | JSX.Element;
24
+ diffView?: boolean;
25
+ loading?: boolean;
26
+ customLoader?: JSX.Element;
27
+ theme?: string;
28
+ original?: string;
29
+ focus?: boolean;
30
+ validatorSchema?: any;
31
+ isKubernetes?: boolean;
32
+ cleanData?: boolean;
33
+ chartVersion?: any;
34
+ }
35
+ export interface CodeEditorHeaderInterface {
36
+ children?: any;
37
+ className?: string;
38
+ hideDefaultSplitHeader?: boolean;
39
+ }
40
+ export interface CodeEditorComposition {
41
+ Header?: React.FC<any>;
42
+ LanguageChanger?: React.FC<any>;
43
+ ThemeChanger?: React.FC<any>;
44
+ ValidationError?: React.FC<any>;
45
+ Clipboard?: React.FC<any>;
46
+ Warning?: React.FC<InformationBarProps>;
47
+ ErrorBar?: React.FC<InformationBarProps>;
48
+ Information?: React.FC<InformationBarProps>;
49
+ }
50
+ export interface CodeEditorHeaderComposition {
51
+ LanguageChanger?: React.FC<any>;
52
+ ThemeChanger?: React.FC<any>;
53
+ ValidationError?: React.FC<any>;
54
+ Clipboard?: React.FC<any>;
55
+ }
56
+ export type ActionTypes = 'changeLanguage' | 'setDiff' | 'setTheme' | 'setCode' | 'setHeight';
57
+ export interface Action {
58
+ type: ActionTypes;
59
+ value: any;
60
+ }
61
+ export declare enum CodeEditorThemesKeys {
62
+ vsDarkDT = "vs-dark--dt",
63
+ deleteDraft = "delete-draft",
64
+ unpublished = "unpublished",
65
+ vs = "vs"
66
+ }
67
+ export interface CodeEditorInitialValueType {
68
+ mode: string;
69
+ diffView: boolean;
70
+ theme?: string;
71
+ value: string;
72
+ noParsing?: boolean;
73
+ }
74
+ export interface CodeEditorState {
75
+ mode: MODES;
76
+ diffMode: boolean;
77
+ theme: CodeEditorThemesKeys;
78
+ code: string;
79
+ noParsing: boolean;
80
+ }
81
+ export declare enum CodeEditorActionTypes {
82
+ reInit = "reInit",
83
+ submitLoading = "submitLoading",
84
+ overrideLoading = "overrideLoading",
85
+ success = "success"
86
+ }
@@ -1,4 +1,5 @@
1
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery } from './Types';
1
+ import { ApiResourceType } from '../Pages';
2
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse } from './Types';
2
3
 
3
4
  export declare const getTeamListMin: () => Promise<TeamList>;
4
5
  interface UserRole extends ResponseType {
@@ -20,5 +21,9 @@ export declare function extractImage(image: string): string;
20
21
  export declare function createGitCommitUrl(url: string, revision: string): string;
21
22
  export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
22
23
  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>;
23
28
  export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
24
29
  export {};
@@ -7,6 +7,7 @@ export declare const DISCORD_LINK = "https://discord.devtron.ai/";
7
7
  export declare const DOCUMENTATION: {
8
8
  APP_TAGS: string;
9
9
  APP_OVERVIEW_TAGS: string;
10
+ BLOB_STORAGE: string;
10
11
  };
11
12
  export declare const PATTERNS: {
12
13
  KUBERNETES_KEY_PREFIX: RegExp;
@@ -25,14 +26,27 @@ export declare const URLS: {
25
26
  GETTING_STARTED: string;
26
27
  STACK_MANAGER_ABOUT: string;
27
28
  APP_LIST_HELM: string;
29
+ APP_CI_DETAILS: string;
30
+ LOGS: string;
28
31
  CREATE: string;
29
32
  RELEASES: string;
33
+ DEVTRON_CHARTS: string;
34
+ APP_DEPLOYMNENT_HISTORY: string;
35
+ APP_DETAILS: string;
36
+ APP_DETAILS_K8: string;
37
+ DETAILS: string;
38
+ CD_DETAILS: string;
39
+ APP_TRIGGER: string;
40
+ GLOBAL_CONFIG_DOCKER: string;
41
+ DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
30
42
  };
31
43
  export declare const ROUTES: {
44
+ APP: string;
32
45
  APP_ARTIFACT_PROMOTE_MATERIAL: string;
33
46
  PROJECT_LIST_MIN: string;
34
47
  USER_CHECK_ROLE: string;
35
48
  IMAGE_TAGGING: string;
49
+ CI_CONFIG_GET: string;
36
50
  CD_MATERIAL_GET: string;
37
51
  DEPLOYMENT_TEMPLATE_LIST: string;
38
52
  INFRA_CONFIG_PROFILE: string;
@@ -43,9 +57,21 @@ export declare const ROUTES: {
43
57
  SERVER_INFO_API: string;
44
58
  ATTRIBUTES_USER: string;
45
59
  UPDATE: string;
60
+ ENVIRONMENT_LIST_MIN: string;
61
+ CLUSTER: string;
62
+ API_RESOURCE: string;
63
+ GVK: string;
64
+ NAMESPACE: string;
46
65
  CLUSTER_NOTE: string;
47
66
  APPLICATION_NOTE: string;
48
67
  GIT_HOST_EVENT: string;
68
+ HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: string;
69
+ DEPLOYMENT_STATUS: string;
70
+ MANUAL_SYNC: string;
71
+ CD_CONFIG: string;
72
+ CONFIG_CD_PIPELINE: string;
73
+ MODULE_CONFIGURED: string;
74
+ RESOURCE_HISTORY_DEPLOYMENT: string;
49
75
  };
50
76
  export declare enum KEY_VALUE {
51
77
  KEY = "key",
@@ -115,7 +141,8 @@ export declare enum MODES {
115
141
  YAML = "yaml",
116
142
  JSON = "json",
117
143
  SHELL = "shell",
118
- DOCKERFILE = "dockerfile"
144
+ DOCKERFILE = "dockerfile",
145
+ PLAINTEXT = "plaintext"
119
146
  }
120
147
  export declare enum APPROVAL_MODAL_TYPE {
121
148
  CONFIG = "CONFIG",
@@ -226,8 +253,8 @@ export declare const POSTHOG_EVENT_ONBOARDING: {
226
253
  SKIP_AND_EXPLORE_DEVTRON: string;
227
254
  };
228
255
  export declare const MAX_LOGIN_COUNT = 5;
229
- export declare const BULK_EDIT_HEADER = "Bulk Edit";
230
256
  export declare const LOGIN_COUNT = "login-count";
257
+ export declare const DEFAULT_ENV = "devtron-ci";
231
258
  export declare const DATE_TIME_FORMATS: {
232
259
  TWELVE_HOURS_FORMAT: string;
233
260
  TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: string;
@@ -0,0 +1,4 @@
1
+ import { GenericEmptyStateType } from '../Types';
2
+
3
+ declare const GenericFilterEmptyState: (props: Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>>) => JSX.Element;
4
+ export default GenericFilterEmptyState;
@@ -1,4 +1,4 @@
1
1
  import { ErrorPageType } from './Types';
2
2
 
3
- declare const ErrorPage: ({ code, image, title, subTitle, imageType, heightToDeduct, reload }: ErrorPageType) => JSX.Element;
3
+ declare const ErrorPage: ({ code, image, title, subTitle, imageType, heightToDeduct, redirectURL, 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 }: ErrorScreenManagerProps) => JSX.Element;
3
+ declare const ErrorScreenManager: ({ code, reload, subtitle, reloadClass, heightToDeduct, redirectURL, }: ErrorScreenManagerProps) => JSX.Element;
4
4
  export default ErrorScreenManager;
@@ -1,3 +1,4 @@
1
+ import { scrollableInterface } from '../Shared';
1
2
  import { AsyncOptions, UseSearchString } from './Types';
2
3
  import { default as React, SyntheticEvent } from 'react';
3
4
 
@@ -86,4 +87,12 @@ export declare const compareObjectLength: (objA: any, objB: any) => boolean;
86
87
  * Return deep copy of the object
87
88
  */
88
89
  export declare function deepEqual(configA: any, configB: any): boolean;
90
+ export declare function shallowEqual(objA: any, objB: any): boolean;
91
+ export declare function useInterval(callback: any, delay: any): void;
92
+ export declare function useScrollable(options: scrollableInterface): ((e: any) => void)[];
93
+ export declare function useKeyDown(): any[];
94
+ export declare const DropdownIndicator: (props: any) => JSX.Element;
95
+ export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
96
+ export declare function asyncWrap(promise: any): any[];
97
+ export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
89
98
  export {};
@@ -3,3 +3,4 @@ export { useClickOutside } from './UseClickOutside/UseClickOutside';
3
3
  export { useWindowSize } from './UseWindowSize/UseWindowSize';
4
4
  export * from './useUrlFilters';
5
5
  export * from './UseRegisterShortcut';
6
+ export * from './useStateFilters';
@@ -0,0 +1,2 @@
1
+ export { default as useStateFilters } from './useStateFilters';
2
+ export type { UseStateFiltersProps, UseStateFiltersReturnType } from './types';
@@ -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;
@@ -56,5 +56,5 @@ export type UseUrlFiltersReturnType<T, K = unknown> = K & {
56
56
  /**
57
57
  * Update the search params with the passed object
58
58
  */
59
- updateSearchParams: (paramsToSerialize: K) => void;
59
+ updateSearchParams: (paramsToSerialize: Partial<K>) => void;
60
60
  };
@@ -1 +1,2 @@
1
1
  export { default as Pagination } from './Pagination';
2
+ export type { PaginationProps } from './types';
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
34
34
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
35
35
  * ```
36
36
  */
37
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -32,4 +32,8 @@ export interface SearchBarProps {
32
32
  * Timeout for the debounce handler to be triggered
33
33
  */
34
34
  debounceTimeout?: number;
35
+ /**
36
+ * Hide the background and border of the search
37
+ */
38
+ noBackgroundAndBorder?: boolean;
35
39
  }
@@ -28,9 +28,9 @@ export interface APIOptions {
28
28
  signal?: AbortSignal;
29
29
  preventAutoLogout?: boolean;
30
30
  }
31
- export interface OptionType {
32
- label: string;
33
- value: string;
31
+ export interface OptionType<T = string, K = string> {
32
+ value: T;
33
+ label: K;
34
34
  }
35
35
  export declare enum TippyTheme {
36
36
  black = "black",
@@ -116,9 +116,11 @@ 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;
122
124
  }
123
125
  export interface ErrorScreenManagerProps {
124
126
  code?: number;
@@ -126,6 +128,11 @@ export interface ErrorScreenManagerProps {
126
128
  subtitle?: React.ReactChild;
127
129
  reloadClass?: string;
128
130
  heightToDeduct?: number;
131
+ /**
132
+ * Would be used to redirect URL in case of 404
133
+ * @default - APP_LIST
134
+ */
135
+ redirectURL?: string;
129
136
  }
130
137
  export interface ErrorScreenNotAuthorizedProps {
131
138
  subtitle?: React.ReactChild;
@@ -303,6 +310,14 @@ export interface DeploymentWindowArtifactMetadata {
303
310
  name: string;
304
311
  type: DEPLOYMENT_WINDOW_TYPE;
305
312
  }
313
+ export interface ArtifactReleaseMappingType {
314
+ id: number;
315
+ identifier: string;
316
+ releaseVersion: string;
317
+ name: string;
318
+ kind: string;
319
+ version: string;
320
+ }
306
321
  export interface CDMaterialType {
307
322
  index: number;
308
323
  id: string;
@@ -346,6 +361,14 @@ export interface CDMaterialType {
346
361
  promotionApprovalMetadata?: PromotionApprovalMetadataType;
347
362
  deployedOnEnvironments?: string[];
348
363
  deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
364
+ /**
365
+ * Will only be present in case of release
366
+ */
367
+ configuredInReleases: ArtifactReleaseMappingType[];
368
+ /**
369
+ * Would currently only be received in case of release
370
+ */
371
+ appWorkflowId: number;
349
372
  }
350
373
  export declare enum CDMaterialServiceEnum {
351
374
  ROLLBACK = "rollback",
@@ -697,61 +720,6 @@ export interface CiPipeline {
697
720
  isOffendingMandatoryPlugin?: boolean;
698
721
  pipelineType?: string;
699
722
  }
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
- }
755
723
  export interface DeploymentChartVersionType {
756
724
  chartRefId: number;
757
725
  chartVersion: string;
@@ -822,4 +790,18 @@ export interface DeploymentWindowProfileMetaData {
822
790
  excludedUserEmails: string[];
823
791
  warningMessage: string;
824
792
  }
793
+ export interface EnvironmentListHelmResult {
794
+ clusterId: number;
795
+ clusterName: string;
796
+ environments: EnvironmentHelmResult[];
797
+ }
798
+ export interface EnvironmentHelmResult {
799
+ environmentId: number;
800
+ environmentName: string;
801
+ namespace: string;
802
+ environmentIdentifier: string;
803
+ isVirtualEnvironment?: boolean;
804
+ allowedDeploymentTypes?: DeploymentAppTypes[];
805
+ }
806
+ export type EnvironmentListHelmResponse = ResponseType<EnvironmentListHelmResult[]>;
825
807
  export {};
@@ -26,6 +26,7 @@ export { default as InfoColourBar } from './InfoColorBar/InfoColourbar';
26
26
  export * from './Common.service';
27
27
  export * from './Checkbox';
28
28
  export { default as GenericEmptyState } from './EmptyState/GenericEmptyState';
29
+ export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEmptyState';
29
30
  export * from './SearchBar';
30
31
  export * from './SortableTableHeaderCell';
31
32
  export { default as Toggle } from './Toggle/Toggle';
@@ -53,3 +54,5 @@ export * from './Pagination';
53
54
  export * from './Markdown';
54
55
  export * from './GenericDescription';
55
56
  export * from './SegmentedBarChart';
57
+ export * from './CodeEditor';
58
+ export * from './AppStatus';
@@ -0,0 +1,3 @@
1
+ import { AggregationKeys, NodeType } from '../../Shared';
2
+
3
+ export declare function getAggregator(nodeType: NodeType, defaultAsOtherResources?: boolean): AggregationKeys;
@@ -0,0 +1,20 @@
1
+ import { NodeType, Nodes } from '../../Shared';
2
+
3
+ export interface GVKType {
4
+ Group: string;
5
+ Version: string;
6
+ Kind: Nodes | NodeType;
7
+ }
8
+ export interface ApiResourceGroupType {
9
+ gvk: GVKType;
10
+ namespaced: boolean;
11
+ isGrouped?: boolean;
12
+ }
13
+ export interface ApiResourceType {
14
+ apiResources: ApiResourceGroupType[];
15
+ allowedAll: boolean;
16
+ }
17
+ export interface K8SObjectBaseType {
18
+ name: string;
19
+ isExpanded: boolean;
20
+ }
@@ -0,0 +1,2 @@
1
+ export * from './ResourceBrowser.Types';
2
+ export * from './Helper';
@@ -1 +1,2 @@
1
1
  export * from './GlobalConfigurations';
2
+ export * from './ResourceBrowser';
@@ -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 this component instead of default Error component
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
  */
@@ -14,5 +14,5 @@ import { ButtonWithSelectorProps } from './types';
14
14
  * </ButtonWithSelector>
15
15
  * ```
16
16
  */
17
- declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, }: ButtonWithSelectorProps) => JSX.Element;
17
+ declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, disabled, }: ButtonWithSelectorProps) => JSX.Element;
18
18
  export default ButtonWithSelector;
@@ -7,4 +7,5 @@ export interface ButtonWithSelectorProps {
7
7
  className?: string;
8
8
  popUpBodyClassName?: string;
9
9
  showPopUp?: boolean;
10
+ disabled?: boolean;
10
11
  }
@@ -0,0 +1,4 @@
1
+ import { AppStatusDetailsChartType } from './types';
2
+
3
+ declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter }: AppStatusDetailsChartType) => JSX.Element;
4
+ export default AppStatusDetailsChart;
@@ -0,0 +1,5 @@
1
+ import { ArtifactType, CIListItemType } from './types';
2
+
3
+ export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
4
+ declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, getArtifactPromise, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
5
+ export default Artifacts;