@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.
- package/dist/Common/Api.d.ts +1 -1
- package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -44
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +36 -0
- package/dist/Common/CodeEditor/index.d.ts +2 -0
- package/dist/Common/CodeEditor/types.d.ts +86 -0
- package/dist/Common/Common.service.d.ts +6 -1
- package/dist/Common/Constants.d.ts +10 -2
- package/dist/Common/Dialogs/Types.d.ts +17 -2
- package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +4 -0
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/Helper.d.ts +1 -0
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/Hooks/useStateFilters/index.d.ts +2 -0
- package/dist/Common/Hooks/useStateFilters/types.d.ts +6 -0
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +17 -0
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -1
- package/dist/Common/Modals/Modal.d.ts +3 -0
- package/dist/Common/Modals/OpaqueModal.d.ts +3 -0
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +4 -0
- package/dist/Common/Types.d.ts +42 -59
- package/dist/Common/index.d.ts +2 -0
- package/dist/Pages/ResourceBrowser/Helper.d.ts +3 -0
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +20 -0
- package/dist/Pages/ResourceBrowser/index.d.ts +2 -0
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +7 -2
- package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
- package/dist/Shared/Components/ButtonWithSelector/types.d.ts +1 -0
- package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
- package/dist/Shared/Components/FilterChips/types.d.ts +11 -3
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +1 -0
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +6 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +9 -7
- package/dist/Shared/Helpers.d.ts +4 -2
- package/dist/Shared/constants.d.ts +4 -0
- package/dist/Shared/types.d.ts +41 -2
- package/dist/Shared/validations.d.ts +4 -0
- package/dist/abap-5361cc9f.js +1314 -0
- package/dist/apex-f9413e6f.js +315 -0
- package/dist/assets/editor.worker-60ba9509.js +12 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/yaml.worker-cc1a551a.js +471 -0
- package/dist/azcli-36f2cb5e.js +74 -0
- package/dist/bat-6b05202d.js +95 -0
- package/dist/bicep-788415e3.js +108 -0
- package/dist/cameligo-4e85ec93.js +168 -0
- package/dist/clojure-40fa5799.js +754 -0
- package/dist/coffee-f557f5e0.js +228 -0
- package/dist/cpp-ebbf7759.js +390 -0
- package/dist/csharp-1616f566.js +320 -0
- package/dist/csp-5f0bc3c4.js +57 -0
- package/dist/css-2b1aec9b.js +186 -0
- package/dist/cssMode-891e1d60.js +1446 -0
- package/dist/cypher-b12b4ba8.js +262 -0
- package/dist/dart-e0d70030.js +270 -0
- package/dist/dockerfile-f9d4b2b0.js +132 -0
- package/dist/ecl-5b91fdec.js +454 -0
- package/dist/elixir-deffd5a6.js +489 -0
- package/dist/flow9-84cd00d7.js +141 -0
- package/dist/freemarker2-17a3ef5f.js +643 -0
- package/dist/fsharp-d296151f.js +210 -0
- package/dist/go-7e72ff3b.js +208 -0
- package/dist/graphql-a93568a1.js +141 -0
- package/dist/handlebars-9a82f999.js +391 -0
- package/dist/hcl-b3994d8f.js +177 -0
- package/dist/html-17150855.js +281 -0
- package/dist/htmlMode-cfd414ef.js +1456 -0
- package/dist/index-a31b3f6b.js +129085 -0
- package/dist/index.js +332 -20827
- package/dist/ini-df84509a.js +68 -0
- package/dist/java-fba3d046.js +221 -0
- package/dist/javascript-7e65bd30.js +75 -0
- package/dist/jsonMode-b53e09d1.js +1867 -0
- package/dist/julia-cefd45f6.js +496 -0
- package/dist/kotlin-b87b6942.js +245 -0
- package/dist/less-8a7f37bc.js +168 -0
- package/dist/lexon-cb95cd13.js +151 -0
- package/dist/liquid-536dd4ae.js +238 -0
- package/dist/lua-6d5b3ea4.js +157 -0
- package/dist/m3-d0daf5d0.js +210 -0
- package/dist/markdown-48bb0c6f.js +202 -0
- package/dist/mdx-249b908e.js +171 -0
- package/dist/mips-20dcf886.js +194 -0
- package/dist/msdax-e9759e23.js +377 -0
- package/dist/mysql-95f335b2.js +876 -0
- package/dist/objective-c-ad0cfb47.js +188 -0
- package/dist/pascal-eda19dc3.js +245 -0
- package/dist/pascaligo-b7e0c89b.js +158 -0
- package/dist/perl-bbe5d32a.js +599 -0
- package/dist/pgsql-7ebaee1c.js +847 -0
- package/dist/php-2526756d.js +471 -0
- package/dist/pla-9ebd6f68.js +131 -0
- package/dist/postiats-9ac05cf6.js +544 -0
- package/dist/powerquery-1cae399d.js +890 -0
- package/dist/powershell-093b5b87.js +233 -0
- package/dist/protobuf-37993cbc.js +422 -0
- package/dist/pug-c2a5db5f.js +393 -0
- package/dist/python-0d7512cf.js +259 -0
- package/dist/qsharp-1450aac5.js +282 -0
- package/dist/r-a0642b90.js +245 -0
- package/dist/razor-39b5fa81.js +512 -0
- package/dist/redis-405cb63d.js +298 -0
- package/dist/redshift-830f82de.js +806 -0
- package/dist/restructuredtext-d81f5ef4.js +162 -0
- package/dist/ruby-d607b87e.js +444 -0
- package/dist/rust-86e74dbb.js +337 -0
- package/dist/sb-b7e5010d.js +110 -0
- package/dist/scala-a4d4a3c6.js +353 -0
- package/dist/scheme-81927e94.js +114 -0
- package/dist/scss-3f112fcd.js +244 -0
- package/dist/shell-d795bcaa.js +224 -0
- package/dist/solidity-5b556d3e.js +1351 -0
- package/dist/sophia-1da55998.js +190 -0
- package/dist/sparql-ac34318e.js +193 -0
- package/dist/sql-eef6393b.js +818 -0
- package/dist/st-758b1972.js +415 -0
- package/dist/swift-63cb1847.js +315 -0
- package/dist/systemverilog-2538c608.js +556 -0
- package/dist/tcl-53e6282a.js +232 -0
- package/dist/tsMode-9cf4451c.js +811 -0
- package/dist/twig-80c3dc23.js +323 -0
- package/dist/typescript-b8c3ff6e.js +328 -0
- package/dist/vb-32089525.js +364 -0
- package/dist/wgsl-e681d5a0.js +420 -0
- package/dist/xml-6fc18d50.js +95 -0
- package/dist/yaml-ec291850.js +184 -0
- 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:
|
|
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:
|
|
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
|
}
|
package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts
CHANGED
|
@@ -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,4 +1,4 @@
|
|
|
1
1
|
import { PageHeaderType } from './types';
|
|
2
2
|
|
|
3
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo,
|
|
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;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GitTriggers, WebhookEventNameType } from './types';
|
|
2
|
-
import { MaterialInfo } from '../Common';
|
|
2
|
+
import { MaterialInfo, SortingOrder } from '../Common';
|
|
3
3
|
|
|
4
4
|
interface HighlightSearchTextProps {
|
|
5
5
|
/**
|
|
@@ -19,7 +19,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
|
|
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
|
+
}
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -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;
|