@devtron-labs/devtron-fe-common-lib 0.0.88-beta-2 → 0.0.88-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/useStateFilters/types.d.ts +4 -1
- package/dist/Common/MultiSelectCustomization.d.ts +8 -0
- package/dist/Common/RJSF/constants.d.ts +0 -4
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/dist/Common/RJSF/utils.d.ts +1 -2
- 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 +2 -1
- package/dist/Common/index.d.ts +1 -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 +19 -0
- package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -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 +1 -0
- package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +6 -0
- package/dist/Shared/Providers/UserEmailProvider/index.d.ts +2 -0
- package/dist/Shared/Providers/UserEmailProvider/types.d.ts +5 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/{yaml.worker-cc1a551a.js → yaml.worker-632eebb8.js} +1 -1
- package/dist/{cssMode-d302cd0c.js → cssMode-b3761447.js} +1 -1
- package/dist/{freemarker2-d74ed1a0.js → freemarker2-bca8bda3.js} +1 -1
- package/dist/{handlebars-ff309832.js → handlebars-59bf2a32.js} +1 -1
- package/dist/{html-3067ec3f.js → html-34509fbf.js} +1 -1
- package/dist/{htmlMode-4f605288.js → htmlMode-91e1b625.js} +1 -1
- package/dist/{index-f906ad2e.js → index-611fc62f.js} +18741 -18537
- package/dist/index.js +391 -384
- package/dist/{javascript-6e3e74e7.js → javascript-9b3ad161.js} +1 -1
- package/dist/{jsonMode-3cfaa464.js → jsonMode-60e59fb2.js} +1 -1
- package/dist/{liquid-7ba93def.js → liquid-52e8c03e.js} +1 -1
- package/dist/{mdx-d2d5ed5c.js → mdx-b9087899.js} +1 -1
- package/dist/{python-1590a924.js → python-77af2f59.js} +1 -1
- package/dist/{razor-c731ff04.js → razor-47e7cf08.js} +1 -1
- package/dist/{tsMode-09ac7368.js → tsMode-59cfff46.js} +1 -1
- package/dist/{typescript-9a835335.js → typescript-bd6eb0f9.js} +1 -1
- package/dist/{xml-95118253.js → xml-de6968a5.js} +1 -1
- package/dist/{yaml-8b85418b.js → yaml-a85a1d4d.js} +1 -1
- package/package.json +1 -1
|
@@ -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
|
@@ -22,7 +22,6 @@ export declare const refresh: () => void;
|
|
|
22
22
|
export declare const reportIssue: () => void;
|
|
23
23
|
export declare function useEffectAfterMount(cb: any, dependencies: any): void;
|
|
24
24
|
export declare function getCookie(sKey: any): string;
|
|
25
|
-
export declare function getLoginInfo(): any;
|
|
26
25
|
export declare function useForm(stateSchema: any, validationSchema: {}, callback: any): {
|
|
27
26
|
state: any;
|
|
28
27
|
disable: boolean;
|
|
@@ -2,5 +2,8 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
|
|
|
2
2
|
|
|
3
3
|
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
|
|
4
4
|
}
|
|
5
|
-
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
|
|
5
|
+
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize'> {
|
|
6
|
+
}
|
|
7
|
+
export interface PaginationType<T> extends Pick<UseUrlFiltersReturnType<T>, 'pageSize'> {
|
|
8
|
+
pageNumber: number;
|
|
6
9
|
}
|
|
@@ -2,7 +2,15 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export declare const Option: (props: any) => JSX.Element;
|
|
4
4
|
export declare const SingleSelectOption: (props: any) => JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* Multi value container
|
|
7
|
+
*/
|
|
5
8
|
export declare const MultiValueContainer: (props: any) => JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* Multi value container with count
|
|
12
|
+
*/
|
|
13
|
+
export declare const MultiValueContainerWithCount: (props: any) => JSX.Element;
|
|
6
14
|
export declare const ClearIndicator: (props: any) => JSX.Element;
|
|
7
15
|
export declare const MultiValueRemove: (props: any) => JSX.Element;
|
|
8
16
|
export declare const MultiValueChipContainer: ({ validator, isAllSelected, ...props }: {
|
|
@@ -5,7 +5,3 @@ export declare const PLACEHOLDERS: {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const DEFAULT_FIELD_TITLE = "Key not available";
|
|
7
7
|
export declare const DO_NOT_SHOW_LABEL: unique symbol;
|
|
8
|
-
export declare const ADD_BUTTON_WIDTH: {
|
|
9
|
-
MAX_WIDTH_VALUE: number;
|
|
10
|
-
MAX_WIDTH_CLASSNAME: string;
|
|
11
|
-
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IconButtonProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const AddButton: ({
|
|
3
|
+
export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
|
|
@@ -12,7 +12,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
12
12
|
valueContainer: (base: any, state: any) => any;
|
|
13
13
|
loadingMessage: (base: any) => any;
|
|
14
14
|
noOptionsMessage: (base: any) => any;
|
|
15
|
-
multiValue: (base: any) => any;
|
|
15
|
+
multiValue: (base: any, state: any) => any;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Returns the redirection props for a url
|
|
@@ -24,4 +24,3 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
|
|
|
24
24
|
* Infers the type for json schema from value type
|
|
25
25
|
*/
|
|
26
26
|
export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
27
|
-
export declare const getTippyWrapperWithContent: (content: any) => (children: any) => JSX.Element;
|
|
@@ -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, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
38
38
|
export default SearchBar;
|
|
@@ -32,6 +32,10 @@ export interface SearchBarProps {
|
|
|
32
32
|
* Timeout for the debounce handler to be triggered
|
|
33
33
|
*/
|
|
34
34
|
debounceTimeout?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Data test id for the search input
|
|
37
|
+
*/
|
|
38
|
+
dataTestId?: string;
|
|
35
39
|
/**
|
|
36
40
|
* Hide the background and border of the search
|
|
37
41
|
*/
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -140,7 +140,8 @@ export interface ErrorScreenNotAuthorizedProps {
|
|
|
140
140
|
}
|
|
141
141
|
export declare enum ImageType {
|
|
142
142
|
Large = "large",
|
|
143
|
-
Medium = "medium"
|
|
143
|
+
Medium = "medium",
|
|
144
|
+
SMALL = "small"
|
|
144
145
|
}
|
|
145
146
|
export interface InfoColourBarType {
|
|
146
147
|
message: React.ReactNode;
|
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';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DescriptorProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
|
|
4
|
+
export default FeatureTitleWithInfo;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
2
|
+
import { ImageType } from '../../../Common';
|
|
3
|
+
|
|
4
|
+
export interface FeatureDescriptionModalProps {
|
|
5
|
+
title: string;
|
|
6
|
+
renderDescriptionContent?: () => JSX.Element;
|
|
7
|
+
closeModalText?: string;
|
|
8
|
+
docLink?: string;
|
|
9
|
+
closeModal?: () => void;
|
|
10
|
+
imageVariant?: ImageType;
|
|
11
|
+
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
12
|
+
imageStyles?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
15
|
+
breadCrumbs: Breadcrumb[];
|
|
16
|
+
additionalContainerClasses?: string;
|
|
17
|
+
iconClassName?: string;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
@@ -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,7 @@ export * from './Header';
|
|
|
17
17
|
export * from './AnnouncementBanner';
|
|
18
18
|
export * from './ButtonWithLoader';
|
|
19
19
|
export * from './ButtonWithSelector';
|
|
20
|
+
export * from './FeatureDescription';
|
|
20
21
|
export * from './CICDHistory';
|
|
21
22
|
export * from './GitCommitInfoGeneric';
|
|
22
23
|
export * from './Error';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseUserEmailContextType } from './types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const useUserEmail: () => UseUserEmailContextType;
|
|
5
|
+
export declare const UserEmailProvider: React.FC<{}>;
|
|
6
|
+
export declare const withUserEmail: (Component: React.ComponentClass) => (props: object) => JSX.Element;
|