@devtron-labs/devtron-fe-common-lib 0.0.83-beta-4 → 0.0.83-beta-6
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/Helper.d.ts +0 -1
- package/dist/Common/Hooks/index.d.ts +0 -1
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +2 -2
- package/dist/Common/Types.d.ts +6 -25
- package/dist/Common/index.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -7
- package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
- package/dist/Shared/Components/ButtonWithSelector/types.d.ts +0 -1
- 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 +20 -0
- package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
- package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
- package/dist/Shared/Components/FilterChips/types.d.ts +3 -11
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +0 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +0 -6
- 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 +1 -0
- package/dist/Shared/Helpers.d.ts +2 -4
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-f7b87c99.js → cssMode-af56683d.js} +1 -1
- package/dist/{freemarker2-c91ffd2a.js → freemarker2-d260d220.js} +1 -1
- package/dist/{handlebars-d705dd00.js → handlebars-1b003e23.js} +1 -1
- package/dist/{html-367565c2.js → html-12fcd27e.js} +1 -1
- package/dist/{htmlMode-6812ba8c.js → htmlMode-70ae3edc.js} +1 -1
- package/dist/{index-46736d90.js → index-9efaed8a.js} +15139 -14982
- package/dist/index.js +297 -297
- package/dist/{javascript-3456abb1.js → javascript-fd2f7dc3.js} +1 -1
- package/dist/{jsonMode-3996d33e.js → jsonMode-d1406945.js} +1 -1
- package/dist/{liquid-b4808ab4.js → liquid-bd83a538.js} +1 -1
- package/dist/{mdx-e04c4e91.js → mdx-09fefedd.js} +1 -1
- package/dist/{python-91064e76.js → python-4ec0ce62.js} +1 -1
- package/dist/{razor-64d99cc8.js → razor-6175e50e.js} +1 -1
- package/dist/{tsMode-02459dfe.js → tsMode-213a5cd7.js} +1 -1
- package/dist/{typescript-1b88bae8.js → typescript-a2c97a6d.js} +1 -1
- package/dist/{xml-3a2a7c9f.js → xml-9ff2eed9.js} +1 -1
- package/dist/{yaml-2ca7aab0.js → yaml-8e94b7f3.js} +1 -1
- package/package.json +1 -1
- package/dist/Common/Hooks/useStateFilters/index.d.ts +0 -2
- package/dist/Common/Hooks/useStateFilters/types.d.ts +0 -6
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +0 -17
|
@@ -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;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -86,5 +86,4 @@ export declare const compareObjectLength: (objA: any, objB: any) => boolean;
|
|
|
86
86
|
* Return deep copy of the object
|
|
87
87
|
*/
|
|
88
88
|
export declare function deepEqual(configA: any, configB: any): boolean;
|
|
89
|
-
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
90
89
|
export {};
|
|
@@ -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,
|
|
37
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, }: SearchBarProps) => JSX.Element;
|
|
38
38
|
export default SearchBar;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -28,9 +28,9 @@ export interface APIOptions {
|
|
|
28
28
|
signal?: AbortSignal;
|
|
29
29
|
preventAutoLogout?: boolean;
|
|
30
30
|
}
|
|
31
|
-
export interface OptionType
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
export interface OptionType {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
34
|
}
|
|
35
35
|
export declare enum TippyTheme {
|
|
36
36
|
black = "black",
|
|
@@ -116,7 +116,7 @@ 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'> {
|
|
120
120
|
code: number;
|
|
121
121
|
heightToDeduct?: number;
|
|
122
122
|
redirectURL?: string;
|
|
@@ -128,10 +128,6 @@ export interface ErrorScreenManagerProps {
|
|
|
128
128
|
subtitle?: React.ReactChild;
|
|
129
129
|
reloadClass?: string;
|
|
130
130
|
heightToDeduct?: number;
|
|
131
|
-
/**
|
|
132
|
-
* Would be used to redirect URL in case of 404
|
|
133
|
-
* @default - APP_LIST
|
|
134
|
-
*/
|
|
135
131
|
redirectURL?: string;
|
|
136
132
|
}
|
|
137
133
|
export interface ErrorScreenNotAuthorizedProps {
|
|
@@ -140,7 +136,8 @@ export interface ErrorScreenNotAuthorizedProps {
|
|
|
140
136
|
}
|
|
141
137
|
export declare enum ImageType {
|
|
142
138
|
Large = "large",
|
|
143
|
-
Medium = "medium"
|
|
139
|
+
Medium = "medium",
|
|
140
|
+
SMALL = "small"
|
|
144
141
|
}
|
|
145
142
|
export interface InfoColourBarType {
|
|
146
143
|
message: React.ReactNode;
|
|
@@ -310,14 +307,6 @@ export interface DeploymentWindowArtifactMetadata {
|
|
|
310
307
|
name: string;
|
|
311
308
|
type: DEPLOYMENT_WINDOW_TYPE;
|
|
312
309
|
}
|
|
313
|
-
export interface ArtifactReleaseMappingType {
|
|
314
|
-
id: number;
|
|
315
|
-
identifier: string;
|
|
316
|
-
releaseVersion: string;
|
|
317
|
-
name: string;
|
|
318
|
-
kind: string;
|
|
319
|
-
version: string;
|
|
320
|
-
}
|
|
321
310
|
export interface CDMaterialType {
|
|
322
311
|
index: number;
|
|
323
312
|
id: string;
|
|
@@ -361,14 +350,6 @@ export interface CDMaterialType {
|
|
|
361
350
|
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
362
351
|
deployedOnEnvironments?: string[];
|
|
363
352
|
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;
|
|
372
353
|
}
|
|
373
354
|
export declare enum CDMaterialServiceEnum {
|
|
374
355
|
ROLLBACK = "rollback",
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { APIResponseHandlerProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps,
|
|
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 {
|
|
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
|
|
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,
|
|
17
|
+
declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, }: ButtonWithSelectorProps) => JSX.Element;
|
|
18
18
|
export default ButtonWithSelector;
|
|
@@ -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,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
|
+
}
|
|
@@ -3,5 +3,5 @@ import { FilterChipsProps } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Component for rendering the applied filter chips
|
|
5
5
|
*/
|
|
6
|
-
declare const FilterChips:
|
|
6
|
+
declare const FilterChips: ({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, }: FilterChipsProps) => JSX.Element;
|
|
7
7
|
export default FilterChips;
|
|
@@ -22,11 +22,11 @@ export interface FilterChipProps {
|
|
|
22
22
|
*/
|
|
23
23
|
getFormattedValue?: (filterKey: string, filterValue: unknown) => ReactNode;
|
|
24
24
|
}
|
|
25
|
-
export interface FilterChipsProps
|
|
25
|
+
export interface FilterChipsProps extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue'> {
|
|
26
26
|
/**
|
|
27
27
|
* Current filter configuration
|
|
28
28
|
*/
|
|
29
|
-
filterConfig:
|
|
29
|
+
filterConfig: Record<string, unknown>;
|
|
30
30
|
/**
|
|
31
31
|
* Callback handler for removing the filters
|
|
32
32
|
*/
|
|
@@ -34,13 +34,5 @@ export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<Filt
|
|
|
34
34
|
/**
|
|
35
35
|
* Handler for removing a applied filter
|
|
36
36
|
*/
|
|
37
|
-
onRemoveFilter: (filterConfig:
|
|
38
|
-
/**
|
|
39
|
-
* Class name for the container
|
|
40
|
-
*/
|
|
41
|
-
className?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Class name for the clear filter button
|
|
44
|
-
*/
|
|
45
|
-
clearButtonClassName?: string;
|
|
37
|
+
onRemoveFilter: (filterConfig: Record<string, unknown>) => void;
|
|
46
38
|
}
|
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,
|
|
3
|
+
declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, }: GenericSectionErrorStateProps) => JSX.Element;
|
|
4
4
|
export default GenericSectionErrorState;
|
|
@@ -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
|
+
};
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GitTriggers, WebhookEventNameType } from './types';
|
|
2
|
-
import { MaterialInfo
|
|
2
|
+
import { MaterialInfo } from '../Common';
|
|
3
3
|
|
|
4
4
|
interface HighlightSearchTextProps {
|
|
5
5
|
/**
|
|
@@ -19,9 +19,7 @@ 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
|
|
23
|
-
export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
|
|
22
|
+
export declare const caseInsensitiveStringComparator: (a: string, b: string) => number;
|
|
24
23
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
25
24
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
26
|
-
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
27
25
|
export {};
|