@devtron-labs/devtron-fe-common-lib 0.0.91-beta-1 → 0.0.91-beta-4
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/BreadCrumb/BreadcrumbStore.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +4 -0
- package/dist/Common/Constants.d.ts +57 -0
- package/dist/Common/Dialogs/Types.d.ts +17 -2
- package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +5 -2
- package/dist/Common/EmptyState/types.d.ts +13 -0
- package/dist/Common/Hooks/useStateFilters/types.d.ts +4 -1
- package/dist/Common/Modals/Modal.d.ts +3 -0
- package/dist/Common/Modals/VisibleModal.d.ts +2 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
- package/dist/Common/MultiSelectCustomization.d.ts +8 -0
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/RJSF/common/FieldRow.d.ts +4 -1
- package/dist/Common/RJSF/common/types.d.ts +1 -1
- package/dist/Common/RJSF/constants.d.ts +1 -4
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/dist/Common/RJSF/templates/Description.d.ts +3 -0
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
- package/dist/Common/RJSF/templates/index.d.ts +1 -0
- package/dist/Common/RJSF/utils.d.ts +1 -3
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +4 -0
- package/dist/Common/ShowMoreText.d.ts +5 -0
- package/dist/Common/Types.d.ts +3 -1
- package/dist/Common/index.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/GitCommitInfoGeneric.d.ts +12 -0
- package/dist/Shared/Components/CICDHistory/GitMaterialInfoHeader.d.ts +9 -0
- package/dist/Shared/Components/CICDHistory/constants.d.ts +222 -0
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
- package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
- package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
- package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
- package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
- package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
- package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
- package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
- package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Helpers.d.ts +2 -0
- package/dist/Shared/Services/common.service.d.ts +3 -0
- package/dist/Shared/Services/index.d.ts +2 -0
- package/dist/Shared/Services/types.d.ts +17 -0
- package/dist/Shared/constants.d.ts +4 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +44 -1
- package/dist/Shared/validations.d.ts +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-9727a0fd.js → cssMode-39dd24c4.js} +1 -1
- package/dist/{freemarker2-cfb11288.js → freemarker2-130f95da.js} +1 -1
- package/dist/{handlebars-83c4c79e.js → handlebars-3d2f4836.js} +1 -1
- package/dist/{html-dc49fd50.js → html-a26c047b.js} +1 -1
- package/dist/{htmlMode-19c03119.js → htmlMode-82212456.js} +1 -1
- package/dist/{index-f1b5774e.js → index-be4ca45f.js} +20725 -20396
- package/dist/index.d.ts +1 -0
- package/dist/index.js +370 -361
- package/dist/{javascript-318d84c2.js → javascript-449f746c.js} +1 -1
- package/dist/{jsonMode-61cb9867.js → jsonMode-64ba3175.js} +1 -1
- package/dist/{liquid-f383a9fb.js → liquid-46eaee9f.js} +1 -1
- package/dist/{mdx-4a3b251d.js → mdx-fb0bd00e.js} +1 -1
- package/dist/{python-8a6af790.js → python-035e242f.js} +1 -1
- package/dist/{razor-1412de81.js → razor-eac3e65c.js} +1 -1
- package/dist/{tsMode-b9637688.js → tsMode-9b2b5d11.js} +1 -1
- package/dist/{typescript-49d0fdfe.js → typescript-72f39f87.js} +1 -1
- package/dist/{xml-f4cb6baf.js → xml-5ce95842.js} +1 -1
- package/dist/{yaml-7533723e.js → yaml-f7a5b102.js} +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ImgHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ImageWithFallbackProps {
|
|
4
|
+
/**
|
|
5
|
+
* Props for the image
|
|
6
|
+
*/
|
|
7
|
+
imageProps: ImgHTMLAttributes<HTMLImageElement>;
|
|
8
|
+
/**
|
|
9
|
+
* Fallback image; can be a url or a jsx element
|
|
10
|
+
*/
|
|
11
|
+
fallbackImage: string | JSX.Element;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const CommonGroupedDropdownStyles: {
|
|
2
|
+
container: (base: any, state: any) => any;
|
|
3
|
+
control: (base: any, state: any) => any;
|
|
4
|
+
singleValue: (base: any) => any;
|
|
5
|
+
option: (base: any, state: any) => any;
|
|
6
|
+
valueContainer: (base: any) => any;
|
|
7
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
8
|
+
group: (base: any) => any;
|
|
9
|
+
groupHeading: (base: any) => any;
|
|
10
|
+
menuList: (base: any) => any;
|
|
11
|
+
multiValue: (base: any) => any;
|
|
12
|
+
multiValueLabel: (base: any) => any;
|
|
13
|
+
placeholder: (base: any) => any;
|
|
14
|
+
};
|
|
@@ -17,6 +17,9 @@ export * from './Header';
|
|
|
17
17
|
export * from './AnnouncementBanner';
|
|
18
18
|
export * from './ButtonWithLoader';
|
|
19
19
|
export * from './ButtonWithSelector';
|
|
20
|
+
export * from './ModalSidebarPanel';
|
|
21
|
+
export * from './ImageWithFallback';
|
|
22
|
+
export * from './FeatureDescription';
|
|
20
23
|
export * from './CICDHistory';
|
|
21
24
|
export * from './GitCommitInfoGeneric';
|
|
22
25
|
export * from './Error';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
2
2
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
3
3
|
import { MaterialInfo, SortingOrder } from '../Common';
|
|
4
|
+
import { ReactElement } from 'react';
|
|
4
5
|
|
|
5
6
|
interface HighlightSearchTextProps {
|
|
6
7
|
/**
|
|
@@ -26,6 +27,7 @@ export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => J
|
|
|
26
27
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
27
28
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
28
29
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
30
|
+
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
|
29
31
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
30
32
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
|
31
33
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ResourceKindType, ResourceVersionType } from '../types';
|
|
2
|
+
import { getUrlWithSearchParams } from '../../Common';
|
|
3
|
+
|
|
4
|
+
export interface ClusterType {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* If true, denotes virtual cluster
|
|
9
|
+
*/
|
|
10
|
+
isVirtual: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface GetResourceApiUrlProps<T> {
|
|
13
|
+
baseUrl: string;
|
|
14
|
+
kind: ResourceKindType;
|
|
15
|
+
version: ResourceVersionType;
|
|
16
|
+
queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
|
|
17
|
+
}
|
|
@@ -43,6 +43,10 @@ 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
|
+
}
|
|
46
50
|
export declare enum TIMELINE_STATUS {
|
|
47
51
|
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
|
48
52
|
GIT_COMMIT = "GIT_COMMIT",
|
package/dist/Shared/index.d.ts
CHANGED
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, DeploymentAppTypes } from '../Common';
|
|
3
3
|
|
|
4
4
|
export declare enum EnvType {
|
|
@@ -351,6 +351,9 @@ export declare enum ResourceKindType {
|
|
|
351
351
|
cluster = "cluster",
|
|
352
352
|
release = "release",
|
|
353
353
|
releaseTrack = "release-track",
|
|
354
|
+
tenant = "tenant",
|
|
355
|
+
installation = "installation",
|
|
356
|
+
environment = "environment",
|
|
354
357
|
cdPipeline = "cd-pipeline"
|
|
355
358
|
}
|
|
356
359
|
/**
|
|
@@ -399,6 +402,10 @@ export type IntersectionOptions = {
|
|
|
399
402
|
defaultIntersecting?: boolean;
|
|
400
403
|
};
|
|
401
404
|
export type IntersectionChangeHandler = (entry: IntersectionObserverEntry) => void;
|
|
405
|
+
export interface InputFieldState<T = string> {
|
|
406
|
+
value: T;
|
|
407
|
+
error: string;
|
|
408
|
+
}
|
|
402
409
|
export declare enum AggregationKeys {
|
|
403
410
|
Workloads = "Workloads",
|
|
404
411
|
Networking = "Networking",
|
|
@@ -411,6 +418,42 @@ export declare enum AggregationKeys {
|
|
|
411
418
|
Namespaces = "Namespaces"
|
|
412
419
|
}
|
|
413
420
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
421
|
+
export interface EnvironmentType {
|
|
422
|
+
/**
|
|
423
|
+
* Unique identifier for the environment
|
|
424
|
+
*/
|
|
425
|
+
id: number;
|
|
426
|
+
/**
|
|
427
|
+
* Name of the environment
|
|
428
|
+
*/
|
|
429
|
+
name: string;
|
|
430
|
+
/**
|
|
431
|
+
* Associated namespace for the environment
|
|
432
|
+
*/
|
|
433
|
+
namespace: string;
|
|
434
|
+
/**
|
|
435
|
+
* Type of the environment
|
|
436
|
+
*/
|
|
437
|
+
environmentType: EnvironmentTypeEnum;
|
|
438
|
+
/**
|
|
439
|
+
* Associated cluster for the environment
|
|
440
|
+
*/
|
|
441
|
+
cluster: string;
|
|
442
|
+
/**
|
|
443
|
+
* If true, denotes virtual environment
|
|
444
|
+
*/
|
|
445
|
+
isVirtual: boolean;
|
|
446
|
+
}
|
|
447
|
+
export interface CreatedByDTO {
|
|
448
|
+
icon: boolean;
|
|
449
|
+
id: number;
|
|
450
|
+
name: string;
|
|
451
|
+
}
|
|
452
|
+
export declare enum DependencyType {
|
|
453
|
+
UPSTREAM = "upstream",
|
|
454
|
+
DOWNSTREAM = "downstream",
|
|
455
|
+
LEVEL = "level"
|
|
456
|
+
}
|
|
414
457
|
export interface scrollableInterface {
|
|
415
458
|
autoBottomScroll: boolean;
|
|
416
459
|
}
|
|
@@ -8,6 +8,7 @@ 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;
|
|
@@ -15,5 +16,8 @@ export declare const MESSAGES: {
|
|
|
15
16
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
16
17
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
17
18
|
export declare const validateDescription: (description: string) => ValidationResponseType;
|
|
19
|
+
export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
|
|
18
20
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
19
21
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
22
|
+
export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
|
|
23
|
+
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|