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

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 (133) hide show
  1. package/dist/Common/Api.d.ts +1 -1
  2. package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -44
  3. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +36 -0
  4. package/dist/Common/CodeEditor/index.d.ts +2 -0
  5. package/dist/Common/CodeEditor/types.d.ts +86 -0
  6. package/dist/Common/Common.service.d.ts +6 -1
  7. package/dist/Common/Constants.d.ts +10 -2
  8. package/dist/Common/Dialogs/Types.d.ts +17 -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 +1 -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/Modals/Modal.d.ts +3 -0
  19. package/dist/Common/Modals/OpaqueModal.d.ts +3 -0
  20. package/dist/Common/PopupMenu.d.ts +1 -1
  21. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  22. package/dist/Common/SearchBar/types.d.ts +4 -0
  23. package/dist/Common/Types.d.ts +42 -59
  24. package/dist/Common/index.d.ts +2 -0
  25. package/dist/Pages/ResourceBrowser/Helper.d.ts +3 -0
  26. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +20 -0
  27. package/dist/Pages/ResourceBrowser/index.d.ts +2 -0
  28. package/dist/Pages/index.d.ts +1 -0
  29. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
  30. package/dist/Shared/Components/APIResponseHandler/types.d.ts +7 -2
  31. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
  32. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +1 -0
  33. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  34. package/dist/Shared/Components/FilterChips/types.d.ts +11 -3
  35. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
  36. package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +1 -0
  37. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +6 -0
  38. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  39. package/dist/Shared/Components/Header/types.d.ts +9 -7
  40. package/dist/Shared/Helpers.d.ts +4 -2
  41. package/dist/Shared/constants.d.ts +4 -0
  42. package/dist/Shared/types.d.ts +41 -2
  43. package/dist/Shared/validations.d.ts +4 -0
  44. package/dist/abap-5361cc9f.js +1314 -0
  45. package/dist/apex-f9413e6f.js +315 -0
  46. package/dist/assets/editor.worker-60ba9509.js +12 -0
  47. package/dist/assets/index.css +1 -1
  48. package/dist/assets/yaml.worker-cc1a551a.js +471 -0
  49. package/dist/azcli-36f2cb5e.js +74 -0
  50. package/dist/bat-6b05202d.js +95 -0
  51. package/dist/bicep-788415e3.js +108 -0
  52. package/dist/cameligo-4e85ec93.js +168 -0
  53. package/dist/clojure-40fa5799.js +754 -0
  54. package/dist/coffee-f557f5e0.js +228 -0
  55. package/dist/cpp-ebbf7759.js +390 -0
  56. package/dist/csharp-1616f566.js +320 -0
  57. package/dist/csp-5f0bc3c4.js +57 -0
  58. package/dist/css-2b1aec9b.js +186 -0
  59. package/dist/cssMode-891e1d60.js +1446 -0
  60. package/dist/cypher-b12b4ba8.js +262 -0
  61. package/dist/dart-e0d70030.js +270 -0
  62. package/dist/dockerfile-f9d4b2b0.js +132 -0
  63. package/dist/ecl-5b91fdec.js +454 -0
  64. package/dist/elixir-deffd5a6.js +489 -0
  65. package/dist/flow9-84cd00d7.js +141 -0
  66. package/dist/freemarker2-17a3ef5f.js +643 -0
  67. package/dist/fsharp-d296151f.js +210 -0
  68. package/dist/go-7e72ff3b.js +208 -0
  69. package/dist/graphql-a93568a1.js +141 -0
  70. package/dist/handlebars-9a82f999.js +391 -0
  71. package/dist/hcl-b3994d8f.js +177 -0
  72. package/dist/html-17150855.js +281 -0
  73. package/dist/htmlMode-cfd414ef.js +1456 -0
  74. package/dist/index-a31b3f6b.js +129085 -0
  75. package/dist/index.js +332 -20827
  76. package/dist/ini-df84509a.js +68 -0
  77. package/dist/java-fba3d046.js +221 -0
  78. package/dist/javascript-7e65bd30.js +75 -0
  79. package/dist/jsonMode-b53e09d1.js +1867 -0
  80. package/dist/julia-cefd45f6.js +496 -0
  81. package/dist/kotlin-b87b6942.js +245 -0
  82. package/dist/less-8a7f37bc.js +168 -0
  83. package/dist/lexon-cb95cd13.js +151 -0
  84. package/dist/liquid-536dd4ae.js +238 -0
  85. package/dist/lua-6d5b3ea4.js +157 -0
  86. package/dist/m3-d0daf5d0.js +210 -0
  87. package/dist/markdown-48bb0c6f.js +202 -0
  88. package/dist/mdx-249b908e.js +171 -0
  89. package/dist/mips-20dcf886.js +194 -0
  90. package/dist/msdax-e9759e23.js +377 -0
  91. package/dist/mysql-95f335b2.js +876 -0
  92. package/dist/objective-c-ad0cfb47.js +188 -0
  93. package/dist/pascal-eda19dc3.js +245 -0
  94. package/dist/pascaligo-b7e0c89b.js +158 -0
  95. package/dist/perl-bbe5d32a.js +599 -0
  96. package/dist/pgsql-7ebaee1c.js +847 -0
  97. package/dist/php-2526756d.js +471 -0
  98. package/dist/pla-9ebd6f68.js +131 -0
  99. package/dist/postiats-9ac05cf6.js +544 -0
  100. package/dist/powerquery-1cae399d.js +890 -0
  101. package/dist/powershell-093b5b87.js +233 -0
  102. package/dist/protobuf-37993cbc.js +422 -0
  103. package/dist/pug-c2a5db5f.js +393 -0
  104. package/dist/python-0d7512cf.js +259 -0
  105. package/dist/qsharp-1450aac5.js +282 -0
  106. package/dist/r-a0642b90.js +245 -0
  107. package/dist/razor-39b5fa81.js +512 -0
  108. package/dist/redis-405cb63d.js +298 -0
  109. package/dist/redshift-830f82de.js +806 -0
  110. package/dist/restructuredtext-d81f5ef4.js +162 -0
  111. package/dist/ruby-d607b87e.js +444 -0
  112. package/dist/rust-86e74dbb.js +337 -0
  113. package/dist/sb-b7e5010d.js +110 -0
  114. package/dist/scala-a4d4a3c6.js +353 -0
  115. package/dist/scheme-81927e94.js +114 -0
  116. package/dist/scss-3f112fcd.js +244 -0
  117. package/dist/shell-d795bcaa.js +224 -0
  118. package/dist/solidity-5b556d3e.js +1351 -0
  119. package/dist/sophia-1da55998.js +190 -0
  120. package/dist/sparql-ac34318e.js +193 -0
  121. package/dist/sql-eef6393b.js +818 -0
  122. package/dist/st-758b1972.js +415 -0
  123. package/dist/swift-63cb1847.js +315 -0
  124. package/dist/systemverilog-2538c608.js +556 -0
  125. package/dist/tcl-53e6282a.js +232 -0
  126. package/dist/tsMode-9cf4451c.js +811 -0
  127. package/dist/twig-80c3dc23.js +323 -0
  128. package/dist/typescript-b8c3ff6e.js +328 -0
  129. package/dist/vb-32089525.js +364 -0
  130. package/dist/wgsl-e681d5a0.js +420 -0
  131. package/dist/xml-6fc18d50.js +95 -0
  132. package/dist/yaml-ec291850.js +184 -0
  133. package/package.json +4 -4
@@ -22,11 +22,11 @@ export interface FilterChipProps {
22
22
  */
23
23
  getFormattedValue?: (filterKey: string, filterValue: unknown) => ReactNode;
24
24
  }
25
- export interface FilterChipsProps extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue'> {
25
+ export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue'> {
26
26
  /**
27
27
  * Current filter configuration
28
28
  */
29
- filterConfig: Record<string, unknown>;
29
+ filterConfig: T;
30
30
  /**
31
31
  * Callback handler for removing the filters
32
32
  */
@@ -34,5 +34,13 @@ export interface FilterChipsProps extends Pick<FilterChipProps, 'getFormattedLab
34
34
  /**
35
35
  * Handler for removing a applied filter
36
36
  */
37
- onRemoveFilter: (filterConfig: Record<string, unknown>) => void;
37
+ onRemoveFilter: (filterConfig: T) => void;
38
+ /**
39
+ * Class name for the container
40
+ */
41
+ className?: string;
42
+ /**
43
+ * Class name for the clear filter button
44
+ */
45
+ clearButtonClassName?: string;
38
46
  }
@@ -1,4 +1,4 @@
1
1
  import { GenericSectionErrorStateProps } from './types';
2
2
 
3
- declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, }: GenericSectionErrorStateProps) => JSX.Element;
3
+ declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, }: GenericSectionErrorStateProps) => JSX.Element;
4
4
  export default GenericSectionErrorState;
@@ -1 +1,2 @@
1
1
  export { default as GenericSectionErrorState } from './GenericSectionErrorState.component';
2
+ export type { GenericSectionErrorStateProps } from './types';
@@ -29,4 +29,10 @@ export interface GenericSectionErrorStateProps {
29
29
  * to be applied on parent div
30
30
  */
31
31
  rootClassName?: string;
32
+ /**
33
+ * If true, info icon would be used instead of error
34
+ *
35
+ * @default false
36
+ */
37
+ useInfoIcon?: boolean;
32
38
  }
@@ -1,4 +1,4 @@
1
1
  import { PageHeaderType } from './types';
2
2
 
3
- declare const PageHeader: ({ headerName, additionalHeaderInfo, isTippyShown, tippyRedirectLink, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, TippyIcon, tippyMessage, onClickTippybutton, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, }: PageHeaderType) => JSX.Element;
3
+ declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, tippyProps, }: PageHeaderType) => JSX.Element;
4
4
  export default PageHeader;
@@ -1,4 +1,4 @@
1
- import { ResponseType } from '../../../Common';
1
+ import { ResponseType, TippyCustomizedProps } from '../../../Common';
2
2
 
3
3
  export declare enum InstallationType {
4
4
  OSS_KUBECTL = "oss_kubectl",
@@ -19,21 +19,23 @@ export declare enum ModuleStatus {
19
19
  }
20
20
  export interface PageHeaderType {
21
21
  headerName?: string;
22
- additionalHeaderInfo?: () => JSX.Element;
23
- isTippyShown?: boolean;
24
- tippyRedirectLink?: string;
25
22
  showTabs?: boolean;
23
+ additionalHeaderInfo?: () => JSX.Element;
26
24
  renderHeaderTabs?: () => JSX.Element;
27
25
  isBreadcrumbs?: boolean;
28
26
  breadCrumbs?: () => JSX.Element;
29
- TippyIcon?: React.FunctionComponent<any>;
30
- tippyMessage?: string;
31
- onClickTippybutton?: () => void;
32
27
  renderActionButtons?: () => JSX.Element;
33
28
  showCloseButton?: boolean;
34
29
  onClose?: () => void;
35
30
  markAsBeta?: boolean;
36
31
  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
+ };
37
39
  }
38
40
  export interface ServerInfo {
39
41
  currentVersion: string;
@@ -1,5 +1,5 @@
1
1
  import { GitTriggers, WebhookEventNameType } from './types';
2
- import { MaterialInfo } from '../Common';
2
+ import { MaterialInfo, SortingOrder } from '../Common';
3
3
 
4
4
  interface HighlightSearchTextProps {
5
5
  /**
@@ -19,7 +19,9 @@ export declare const highlightSearchText: ({ searchText, text, highlightClasses
19
19
  export declare const preventBodyScroll: (lock: boolean) => void;
20
20
  export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[]) => boolean;
21
21
  export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
22
- export declare const caseInsensitiveStringComparator: (a: string, b: string) => number;
22
+ export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
23
+ export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
23
24
  export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
24
25
  export declare const isNullOrUndefined: (value: unknown) => boolean;
26
+ export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
25
27
  export {};
@@ -43,3 +43,7 @@ export declare enum DeploymentWithConfigType {
43
43
  LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
44
44
  SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
45
45
  }
46
+ export declare enum EnvironmentTypeEnum {
47
+ production = "Production",
48
+ nonProduction = "Non-Production"
49
+ }
@@ -1,4 +1,4 @@
1
- import { PatchOperationType } from './constants';
1
+ import { EnvironmentTypeEnum, PatchOperationType } from './constants';
2
2
  import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
3
3
 
4
4
  export declare enum RegistryType {
@@ -169,7 +169,8 @@ export declare enum ResourceKindType {
169
169
  job = "job",
170
170
  cluster = "cluster",
171
171
  release = "release",
172
- releaseTrack = "release-track"
172
+ releaseTrack = "release-track",
173
+ tenant = "tenant"
173
174
  }
174
175
  /**
175
176
  * Versions support for the resources on BE
@@ -253,3 +254,41 @@ export declare enum Nodes {
253
254
  Overview = "Overview"
254
255
  }
255
256
  export type NodeType = keyof typeof Nodes;
257
+ export interface InputFieldState<T = string> {
258
+ value: T;
259
+ error: string;
260
+ }
261
+ export declare enum AggregationKeys {
262
+ Workloads = "Workloads",
263
+ Networking = "Networking",
264
+ 'Config & Storage' = "Config & Storage",
265
+ RBAC = "RBAC",
266
+ Administration = "Administration",
267
+ 'Custom Resource' = "Custom Resource",
268
+ 'Other Resources' = "Other Resources",
269
+ Events = "Events",
270
+ Namespaces = "Namespaces"
271
+ }
272
+ export type AggregationKeysType = keyof typeof AggregationKeys;
273
+ export interface EnvironmentType {
274
+ /**
275
+ * Unique identifier for the environment
276
+ */
277
+ id: number;
278
+ /**
279
+ * Name of the environment
280
+ */
281
+ name: string;
282
+ /**
283
+ * Associated namespace for the environment
284
+ */
285
+ namespace: string;
286
+ /**
287
+ * Type of the environment
288
+ */
289
+ environmentType: EnvironmentTypeEnum;
290
+ /**
291
+ * Associated cluster for the environment
292
+ */
293
+ cluster: string;
294
+ }
@@ -8,11 +8,15 @@ export declare const MESSAGES: {
8
8
  CAN_NOT_START_END_WITH_SEPARATORS: string;
9
9
  getMinMaxCharMessage: (min: number, max: number) => string;
10
10
  getMaxCharMessage: (max: number) => string;
11
+ getMinCharMessage: (min: number) => string;
11
12
  VALID_POSITIVE_NUMBER: string;
12
13
  VALID_POSITIVE_INTEGER: string;
13
14
  MAX_SAFE_INTEGER: string;
14
15
  };
16
+ export declare const requiredField: (value: string) => ValidationResponseType;
15
17
  export declare const validateName: (name: string) => ValidationResponseType;
16
18
  export declare const validateDescription: (description: string) => ValidationResponseType;
19
+ export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
17
20
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
18
21
  export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
22
+ export declare const validateURL: (url: string) => ValidationResponseType;