@devtron-labs/devtron-fe-common-lib 0.0.82-beta-15 → 0.0.83-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.
Files changed (172) hide show
  1. package/dist/Common/AppStatus/constants.d.ts +20 -0
  2. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
  3. package/dist/Common/BreadCrumb/Types.d.ts +4 -0
  4. package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -44
  5. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +36 -0
  6. package/dist/Common/CodeEditor/index.d.ts +2 -0
  7. package/dist/Common/CodeEditor/types.d.ts +86 -0
  8. package/dist/Common/Common.service.d.ts +6 -1
  9. package/dist/Common/Constants.d.ts +10 -19
  10. package/dist/Common/ErrorPage.d.ts +1 -1
  11. package/dist/Common/Helper.d.ts +0 -9
  12. package/dist/Common/Hooks/index.d.ts +0 -1
  13. package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -1
  14. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  15. package/dist/Common/SearchBar/types.d.ts +0 -4
  16. package/dist/Common/Types.d.ts +22 -80
  17. package/dist/Common/index.d.ts +2 -1
  18. package/dist/Pages/ResourceBrowser/Helper.d.ts +3 -0
  19. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +20 -0
  20. package/dist/Pages/ResourceBrowser/index.d.ts +2 -0
  21. package/dist/Pages/index.d.ts +1 -0
  22. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
  23. package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -7
  24. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
  25. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +0 -1
  26. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
  27. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
  28. package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
  29. package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
  30. package/dist/Shared/Components/FeatureDescription/types.d.ts +20 -0
  31. package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
  32. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  33. package/dist/Shared/Components/FilterChips/types.d.ts +3 -11
  34. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
  35. package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +0 -1
  36. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +0 -6
  37. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  38. package/dist/Shared/Components/Header/types.d.ts +9 -7
  39. package/dist/Shared/Components/index.d.ts +1 -1
  40. package/dist/Shared/Helpers.d.ts +3 -6
  41. package/dist/Shared/constants.d.ts +0 -57
  42. package/dist/Shared/index.d.ts +1 -0
  43. package/dist/Shared/types.d.ts +56 -181
  44. package/dist/Shared/validations.d.ts +1 -0
  45. package/dist/{abap-9f67f57a.js → abap-5361cc9f.js} +1 -1
  46. package/dist/{apex-ff62e532.js → apex-f9413e6f.js} +1 -1
  47. package/dist/assets/editor.worker-60ba9509.js +12 -0
  48. package/dist/assets/index.css +1 -1
  49. package/dist/assets/yaml.worker-cc1a551a.js +471 -0
  50. package/dist/{azcli-31e64a7f.js → azcli-36f2cb5e.js} +1 -1
  51. package/dist/{bat-0ffe897e.js → bat-6b05202d.js} +1 -1
  52. package/dist/{bicep-3414a2b1.js → bicep-788415e3.js} +1 -1
  53. package/dist/{cameligo-df1f3f25.js → cameligo-4e85ec93.js} +1 -1
  54. package/dist/{clojure-65b0f010.js → clojure-40fa5799.js} +1 -1
  55. package/dist/{coffee-437f0fba.js → coffee-f557f5e0.js} +1 -1
  56. package/dist/{cpp-66843dd5.js → cpp-ebbf7759.js} +1 -1
  57. package/dist/{csharp-621d9a49.js → csharp-1616f566.js} +1 -1
  58. package/dist/{csp-de0d5244.js → csp-5f0bc3c4.js} +1 -1
  59. package/dist/{css-7cd5ed4c.js → css-2b1aec9b.js} +1 -1
  60. package/dist/{cssMode-497cae5d.js → cssMode-602f9e2b.js} +2 -2
  61. package/dist/{cypher-70ad96fe.js → cypher-b12b4ba8.js} +1 -1
  62. package/dist/{dart-33ae3739.js → dart-e0d70030.js} +1 -1
  63. package/dist/{dockerfile-f2274a50.js → dockerfile-f9d4b2b0.js} +1 -1
  64. package/dist/{ecl-3b8294a3.js → ecl-5b91fdec.js} +1 -1
  65. package/dist/{elixir-b9dcc73a.js → elixir-deffd5a6.js} +9 -9
  66. package/dist/{flow9-bdde8316.js → flow9-84cd00d7.js} +1 -1
  67. package/dist/{freemarker2-c52bf224.js → freemarker2-c6d96c25.js} +2 -2
  68. package/dist/{fsharp-eac2e449.js → fsharp-d296151f.js} +1 -1
  69. package/dist/{go-d12ed8d4.js → go-7e72ff3b.js} +1 -1
  70. package/dist/{graphql-c7356b69.js → graphql-a93568a1.js} +1 -1
  71. package/dist/{handlebars-39fc636e.js → handlebars-ba6a9670.js} +2 -2
  72. package/dist/{hcl-e883a0d4.js → hcl-b3994d8f.js} +1 -1
  73. package/dist/{html-801255cd.js → html-21cc7f4e.js} +2 -2
  74. package/dist/{htmlMode-492ccae1.js → htmlMode-85c08811.js} +2 -2
  75. package/dist/{index-8e795a39.js → index-004be56e.js} +110590 -111450
  76. package/dist/index.js +294 -332
  77. package/dist/{ini-425ab711.js → ini-df84509a.js} +1 -1
  78. package/dist/{java-2bc0fd68.js → java-fba3d046.js} +1 -1
  79. package/dist/{javascript-01941c8d.js → javascript-512904ad.js} +2 -2
  80. package/dist/{jsonMode-aa18a8d0.js → jsonMode-25c71cc4.js} +2 -2
  81. package/dist/{julia-1c932615.js → julia-cefd45f6.js} +1 -1
  82. package/dist/{kotlin-1ab839c8.js → kotlin-b87b6942.js} +1 -1
  83. package/dist/{less-6fe856f5.js → less-8a7f37bc.js} +1 -1
  84. package/dist/{lexon-4955ac52.js → lexon-cb95cd13.js} +1 -1
  85. package/dist/{liquid-4987bdc3.js → liquid-558d7dd4.js} +2 -2
  86. package/dist/{lua-3cca0047.js → lua-6d5b3ea4.js} +1 -1
  87. package/dist/{m3-132e9cb6.js → m3-d0daf5d0.js} +1 -1
  88. package/dist/{markdown-ea59a0c1.js → markdown-48bb0c6f.js} +1 -1
  89. package/dist/mdx-4e8b75ad.js +171 -0
  90. package/dist/{mips-19811f4b.js → mips-20dcf886.js} +1 -1
  91. package/dist/{msdax-69954a10.js → msdax-e9759e23.js} +1 -1
  92. package/dist/{mysql-82088e5d.js → mysql-95f335b2.js} +1 -1
  93. package/dist/{objective-c-1976eccc.js → objective-c-ad0cfb47.js} +1 -1
  94. package/dist/{pascal-8ef177cb.js → pascal-eda19dc3.js} +1 -1
  95. package/dist/{pascaligo-bc517b9e.js → pascaligo-b7e0c89b.js} +1 -1
  96. package/dist/{perl-8b93582c.js → perl-bbe5d32a.js} +1 -1
  97. package/dist/{pgsql-00c11a6d.js → pgsql-7ebaee1c.js} +1 -1
  98. package/dist/{php-4c8c276f.js → php-2526756d.js} +1 -1
  99. package/dist/{pla-e9b4ffb1.js → pla-9ebd6f68.js} +1 -1
  100. package/dist/{postiats-2071af8c.js → postiats-9ac05cf6.js} +1 -1
  101. package/dist/{powerquery-8e388ceb.js → powerquery-1cae399d.js} +1 -1
  102. package/dist/{powershell-e35db398.js → powershell-093b5b87.js} +1 -1
  103. package/dist/{protobuf-a24b9176.js → protobuf-37993cbc.js} +1 -1
  104. package/dist/{pug-2c94d9b8.js → pug-c2a5db5f.js} +1 -1
  105. package/dist/{python-c3709d2a.js → python-65d02f0b.js} +2 -2
  106. package/dist/{qsharp-d730d7fe.js → qsharp-1450aac5.js} +1 -1
  107. package/dist/{r-be193556.js → r-a0642b90.js} +1 -1
  108. package/dist/{razor-284fc6a5.js → razor-eba1a8dd.js} +2 -2
  109. package/dist/{redis-9690c6ac.js → redis-405cb63d.js} +1 -1
  110. package/dist/{redshift-6bdcdeaa.js → redshift-830f82de.js} +1 -1
  111. package/dist/{restructuredtext-a08c1d20.js → restructuredtext-d81f5ef4.js} +1 -1
  112. package/dist/{ruby-2247692b.js → ruby-d607b87e.js} +1 -1
  113. package/dist/{rust-1dffb4d5.js → rust-86e74dbb.js} +1 -1
  114. package/dist/{sb-136598e9.js → sb-b7e5010d.js} +1 -1
  115. package/dist/{scala-b1100fed.js → scala-a4d4a3c6.js} +1 -1
  116. package/dist/{scheme-038c8094.js → scheme-81927e94.js} +1 -1
  117. package/dist/{scss-700d1b52.js → scss-3f112fcd.js} +1 -1
  118. package/dist/{shell-86c16e0f.js → shell-d795bcaa.js} +1 -1
  119. package/dist/{solidity-c05fdf3c.js → solidity-5b556d3e.js} +1 -1
  120. package/dist/{sophia-cd645d71.js → sophia-1da55998.js} +1 -1
  121. package/dist/{sparql-01d9ec9c.js → sparql-ac34318e.js} +1 -1
  122. package/dist/{sql-4c33df41.js → sql-eef6393b.js} +1 -1
  123. package/dist/{st-52cf1408.js → st-758b1972.js} +3 -2
  124. package/dist/{swift-13c792ba.js → swift-63cb1847.js} +1 -1
  125. package/dist/{systemverilog-0bd8b730.js → systemverilog-2538c608.js} +1 -1
  126. package/dist/{tcl-463d7c75.js → tcl-53e6282a.js} +1 -1
  127. package/dist/{tsMode-2501ec00.js → tsMode-36f87b75.js} +2 -2
  128. package/dist/{twig-0d98f5ec.js → twig-80c3dc23.js} +2 -2
  129. package/dist/{typescript-922bae20.js → typescript-74998c13.js} +2 -2
  130. package/dist/{vb-3a2b0a51.js → vb-32089525.js} +1 -1
  131. package/dist/{wgsl-b2ddb3e4.js → wgsl-e681d5a0.js} +1 -1
  132. package/dist/{xml-ebe7b3ab.js → xml-388ad29b.js} +2 -2
  133. package/dist/{yaml-91cea596.js → yaml-4e406163.js} +2 -2
  134. package/package.json +18 -19
  135. package/dist/Common/Hooks/useStateFilters/index.d.ts +0 -2
  136. package/dist/Common/Hooks/useStateFilters/types.d.ts +0 -6
  137. package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +0 -17
  138. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -4
  139. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +0 -5
  140. package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +0 -14
  141. package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +0 -11
  142. package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +0 -4
  143. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +0 -10
  144. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +0 -4
  145. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +0 -4
  146. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +0 -4
  147. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +0 -4
  148. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +0 -29
  149. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +0 -10
  150. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +0 -4
  151. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +0 -3
  152. package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +0 -4
  153. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -3
  154. package/dist/Shared/Components/CICDHistory/GitCommitInfoGeneric.d.ts +0 -12
  155. package/dist/Shared/Components/CICDHistory/GitMaterialInfoHeader.d.ts +0 -9
  156. package/dist/Shared/Components/CICDHistory/History.components.d.ts +0 -5
  157. package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +0 -4
  158. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +0 -5
  159. package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +0 -3
  160. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +0 -6
  161. package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -284
  162. package/dist/Shared/Components/CICDHistory/index.d.ts +0 -6
  163. package/dist/Shared/Components/CICDHistory/service.d.ts +0 -29
  164. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -558
  165. package/dist/Shared/Components/CICDHistory/utils.d.ts +0 -13
  166. package/dist/Shared/Components/Error/ErrorBar.d.ts +0 -4
  167. package/dist/Shared/Components/Error/types.d.ts +0 -9
  168. package/dist/Shared/Components/Error/utils.d.ts +0 -3
  169. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +0 -5
  170. package/dist/assets/editor.worker-d26000ef.js +0 -9
  171. package/dist/assets/json.worker-f23a4654.js +0 -40
  172. package/dist/assets/yaml.worker-bbf7a2a6.js +0 -467
@@ -28,4 +28,24 @@ 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
+ }
31
51
  export declare const YET_TO_RUN = "Yet to run";
@@ -1,5 +1,7 @@
1
+ import { BreadcrumbTextProps } from './Types';
1
2
  import { default as React } from 'react';
2
3
 
4
+ export declare const BreadcrumbText: ({ heading, isActive }: BreadcrumbTextProps) => JSX.Element;
3
5
  declare const Store: ({ children }: {
4
6
  children: any;
5
7
  }) => JSX.Element;
@@ -26,3 +26,7 @@ export interface Breadcrumbs {
26
26
  className?: string;
27
27
  }
28
28
  export type UseBreadcrumbOptionalProps = UseBreadcrumbProps | null;
29
+ export interface BreadcrumbTextProps {
30
+ heading: string;
31
+ isActive?: boolean;
32
+ }
@@ -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,7 +7,6 @@ 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;
11
10
  };
12
11
  export declare const PATTERNS: {
13
12
  KUBERNETES_KEY_PREFIX: RegExp;
@@ -26,25 +25,16 @@ export declare const URLS: {
26
25
  GETTING_STARTED: string;
27
26
  STACK_MANAGER_ABOUT: string;
28
27
  APP_LIST_HELM: string;
28
+ APP_CI_DETAILS: string;
29
+ LOGS: string;
29
30
  CREATE: string;
30
31
  RELEASES: string;
31
- DEVTRON_CHARTS: string;
32
- APP_DEPLOYMNENT_HISTORY: string;
33
- APP_DETAILS: string;
34
- APP_DETAILS_K8: string;
35
- DETAILS: string;
36
- CD_DETAILS: string;
37
- APP_TRIGGER: string;
38
- GLOBAL_CONFIG_DOCKER: string;
39
- DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
40
32
  };
41
33
  export declare const ROUTES: {
42
- APP: string;
43
34
  APP_ARTIFACT_PROMOTE_MATERIAL: string;
44
35
  PROJECT_LIST_MIN: string;
45
36
  USER_CHECK_ROLE: string;
46
37
  IMAGE_TAGGING: string;
47
- CI_CONFIG_GET: string;
48
38
  CD_MATERIAL_GET: string;
49
39
  DEPLOYMENT_TEMPLATE_LIST: string;
50
40
  INFRA_CONFIG_PROFILE: string;
@@ -55,14 +45,14 @@ export declare const ROUTES: {
55
45
  SERVER_INFO_API: string;
56
46
  ATTRIBUTES_USER: string;
57
47
  UPDATE: string;
48
+ ENVIRONMENT_LIST_MIN: string;
49
+ CLUSTER: string;
50
+ API_RESOURCE: string;
51
+ GVK: string;
52
+ NAMESPACE: string;
58
53
  CLUSTER_NOTE: string;
59
54
  APPLICATION_NOTE: string;
60
55
  GIT_HOST_EVENT: string;
61
- HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: string;
62
- DEPLOYMENT_STATUS: string;
63
- MANUAL_SYNC: string;
64
- CD_CONFIG: string;
65
- MODULE_CONFIGURED: string;
66
56
  };
67
57
  export declare enum KEY_VALUE {
68
58
  KEY = "key",
@@ -132,7 +122,8 @@ export declare enum MODES {
132
122
  YAML = "yaml",
133
123
  JSON = "json",
134
124
  SHELL = "shell",
135
- DOCKERFILE = "dockerfile"
125
+ DOCKERFILE = "dockerfile",
126
+ PLAINTEXT = "plaintext"
136
127
  }
137
128
  export declare enum APPROVAL_MODAL_TYPE {
138
129
  CONFIG = "CONFIG",
@@ -243,8 +234,8 @@ export declare const POSTHOG_EVENT_ONBOARDING: {
243
234
  SKIP_AND_EXPLORE_DEVTRON: string;
244
235
  };
245
236
  export declare const MAX_LOGIN_COUNT = 5;
246
- export declare const BULK_EDIT_HEADER = "Bulk Edit";
247
237
  export declare const LOGIN_COUNT = "login-count";
238
+ export declare const DEFAULT_ENV = "devtron-ci";
248
239
  export declare const DATE_TIME_FORMATS: {
249
240
  TWELVE_HOURS_FORMAT: string;
250
241
  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, reload, redirectURL }: 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,3 @@
1
- import { scrollableInterface } from '../Shared';
2
1
  import { AsyncOptions, UseSearchString } from './Types';
3
2
  import { default as React, SyntheticEvent } from 'react';
4
3
 
@@ -87,12 +86,4 @@ export declare const compareObjectLength: (objA: any, objB: any) => boolean;
87
86
  * Return deep copy of the object
88
87
  */
89
88
  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;
98
89
  export {};
@@ -3,4 +3,3 @@ 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';
@@ -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: Partial<K>) => void;
59
+ updateSearchParams: (paramsToSerialize: K) => void;
60
60
  };
@@ -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, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -32,8 +32,4 @@ 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;
39
35
  }
@@ -28,9 +28,9 @@ export interface APIOptions {
28
28
  signal?: AbortSignal;
29
29
  preventAutoLogout?: boolean;
30
30
  }
31
- export interface OptionType<T = string, K = string> {
32
- value: T;
33
- label: K;
31
+ export interface OptionType {
32
+ label: string;
33
+ value: string;
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' | 'redirectURL'> {
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;
122
124
  }
123
125
  export interface ErrorScreenManagerProps {
124
126
  code?: number;
@@ -126,10 +128,6 @@ export interface ErrorScreenManagerProps {
126
128
  subtitle?: React.ReactChild;
127
129
  reloadClass?: string;
128
130
  heightToDeduct?: number;
129
- /**
130
- * Would be used to redirect URL in case of 404
131
- * @default - APP_LIST
132
- */
133
131
  redirectURL?: string;
134
132
  }
135
133
  export interface ErrorScreenNotAuthorizedProps {
@@ -138,7 +136,8 @@ export interface ErrorScreenNotAuthorizedProps {
138
136
  }
139
137
  export declare enum ImageType {
140
138
  Large = "large",
141
- Medium = "medium"
139
+ Medium = "medium",
140
+ SMALL = "small"
142
141
  }
143
142
  export interface InfoColourBarType {
144
143
  message: React.ReactNode;
@@ -308,14 +307,6 @@ export interface DeploymentWindowArtifactMetadata {
308
307
  name: string;
309
308
  type: DEPLOYMENT_WINDOW_TYPE;
310
309
  }
311
- export interface ArtifactReleaseMappingType {
312
- id: number;
313
- identifier: string;
314
- releaseVersion: string;
315
- name: string;
316
- kind: string;
317
- version: string;
318
- }
319
310
  export interface CDMaterialType {
320
311
  index: number;
321
312
  id: string;
@@ -359,14 +350,6 @@ export interface CDMaterialType {
359
350
  promotionApprovalMetadata?: PromotionApprovalMetadataType;
360
351
  deployedOnEnvironments?: string[];
361
352
  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;
370
353
  }
371
354
  export declare enum CDMaterialServiceEnum {
372
355
  ROLLBACK = "rollback",
@@ -718,61 +701,6 @@ export interface CiPipeline {
718
701
  isOffendingMandatoryPlugin?: boolean;
719
702
  pipelineType?: string;
720
703
  }
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
- }
776
704
  export interface DeploymentChartVersionType {
777
705
  chartRefId: number;
778
706
  chartVersion: string;
@@ -843,4 +771,18 @@ export interface DeploymentWindowProfileMetaData {
843
771
  excludedUserEmails: string[];
844
772
  warningMessage: string;
845
773
  }
774
+ export interface EnvironmentListHelmResult {
775
+ clusterId: number;
776
+ clusterName: string;
777
+ environments: EnvironmentHelmResult[];
778
+ }
779
+ export interface EnvironmentHelmResult {
780
+ environmentId: number;
781
+ environmentName: string;
782
+ namespace: string;
783
+ environmentIdentifier: string;
784
+ isVirtualEnvironment?: boolean;
785
+ allowedDeploymentTypes?: DeploymentAppTypes[];
786
+ }
787
+ export type EnvironmentListHelmResponse = ResponseType<EnvironmentListHelmResult[]>;
846
788
  export {};
@@ -14,7 +14,7 @@ export * from './Modals/OpaqueModal';
14
14
  export * from './Modals/VisibleModal';
15
15
  export * from './Modals/VisibleModal2';
16
16
  export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
17
- export { default as BreadcrumbStore } from './BreadCrumb/BreadcrumbStore';
17
+ export { default as BreadcrumbStore, BreadcrumbText } from './BreadCrumb/BreadcrumbStore';
18
18
  export { default as RadioGroup } from './RadioGroup';
19
19
  export { default as RadioGroupItem } from './RadioGroupItem';
20
20
  export { default as PopupMenu } from './PopupMenu';
@@ -53,3 +53,4 @@ export * from './Pagination';
53
53
  export * from './Markdown';
54
54
  export * from './GenericDescription';
55
55
  export * from './SegmentedBarChart';
56
+ export * from './CodeEditor';
@@ -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, errorScreenManagerProps, children, }: APIResponseHandlerProps) => JSX.Element;
3
+ declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
4
4
  export default APIResponseHandler;
@@ -1,5 +1,5 @@
1
1
  import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
2
- import { ErrorScreenManagerProps, GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
2
+ import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
3
3
  import { ReactNode } from 'react';
4
4
 
5
5
  export interface EmptyPageTextType {
@@ -37,14 +37,9 @@ export interface APIResponseHandlerProps {
37
37
  */
38
38
  reloadProps?: ReloadType;
39
39
  /**
40
- * If given, would show GenericSectionErrorState instead of default Reload component
40
+ * If given, would show this component instead of default Error 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;
48
43
  /**
49
44
  * If no Error and no Loading, would load this component
50
45
  */
@@ -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, disabled, }: ButtonWithSelectorProps) => JSX.Element;
17
+ declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, }: ButtonWithSelectorProps) => JSX.Element;
18
18
  export default ButtonWithSelector;
@@ -7,5 +7,4 @@ export interface ButtonWithSelectorProps {
7
7
  className?: string;
8
8
  popUpBodyClassName?: string;
9
9
  showPopUp?: boolean;
10
- disabled?: boolean;
11
10
  }
@@ -0,0 +1,3 @@
1
+ import { FeatureDescriptionModalProps } from './types';
2
+
3
+ export declare const FeatureDescriptionModal: ({ image, title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { DescriptorProps } from './types';
2
+
3
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, image, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
4
+ export default FeatureTitleWithInfo;
@@ -0,0 +1,8 @@
1
+ export declare enum BUTTON_TEXT {
2
+ GOT_IT = "Got it",
3
+ VIEW_DOCUMENTATION = "View Documentation"
4
+ }
5
+ export declare enum IMAGE_VARIANT {
6
+ SMALL = "small",
7
+ LARGE = "large"
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './FeatureDescriptionModal';
2
+ export { default as FeatureTitleWithInfo } from './FeatureTitleWithInfo';
@@ -0,0 +1,20 @@
1
+ import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
2
+ import { ImageType } from '../../../Common';
3
+
4
+ export interface FeatureDescriptionModalProps {
5
+ image?: any;
6
+ title: string;
7
+ renderDescriptionContent?: () => JSX.Element;
8
+ closeModalText?: string;
9
+ docLink?: string;
10
+ closeModal?: () => void;
11
+ imageVariant?: ImageType;
12
+ SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
13
+ imageStyles?: React.CSSProperties;
14
+ }
15
+ export interface DescriptorProps extends FeatureDescriptionModalProps {
16
+ breadCrumbs: Breadcrumb[];
17
+ additionalContainerClasses?: string;
18
+ iconClassName?: string;
19
+ children?: React.ReactNode;
20
+ }