@devtron-labs/devtron-fe-common-lib 0.0.86-beta-4 → 0.0.86-beta-7

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 (50) hide show
  1. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
  2. package/dist/Common/BreadCrumb/Types.d.ts +4 -0
  3. package/dist/Common/Hooks/useStateFilters/types.d.ts +4 -1
  4. package/dist/Common/MultiSelectCustomization.d.ts +8 -0
  5. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  6. package/dist/Common/SearchBar/types.d.ts +4 -0
  7. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
  8. package/dist/Common/SortableTableHeaderCell/types.d.ts +0 -5
  9. package/dist/Common/Types.d.ts +2 -1
  10. package/dist/Common/index.d.ts +1 -1
  11. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -2
  12. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
  13. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
  14. package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
  15. package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
  16. package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
  17. package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
  18. package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
  19. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
  20. package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -4
  21. package/dist/Shared/Components/index.d.ts +1 -1
  22. package/dist/Shared/index.d.ts +0 -1
  23. package/dist/Shared/types.d.ts +1 -47
  24. package/dist/assets/index.css +1 -1
  25. package/dist/{cssMode-eb635933.js → cssMode-fccec137.js} +1 -1
  26. package/dist/{freemarker2-5bc6adac.js → freemarker2-10db75fe.js} +1 -1
  27. package/dist/{handlebars-b81c3587.js → handlebars-f154dd7e.js} +1 -1
  28. package/dist/{html-27d7619e.js → html-b1668d3f.js} +1 -1
  29. package/dist/{htmlMode-f30e3ac8.js → htmlMode-5504342d.js} +1 -1
  30. package/dist/{index-cda57898.js → index-cb8574b1.js} +14064 -13943
  31. package/dist/index.js +297 -294
  32. package/dist/{javascript-b9ff5ba8.js → javascript-aea42ded.js} +1 -1
  33. package/dist/{jsonMode-905aad21.js → jsonMode-05a04613.js} +1 -1
  34. package/dist/{liquid-6226df5f.js → liquid-b0837c0f.js} +1 -1
  35. package/dist/{mdx-28522b7a.js → mdx-59959e56.js} +1 -1
  36. package/dist/{python-ac05f1b2.js → python-7d080fc8.js} +1 -1
  37. package/dist/{razor-75c26505.js → razor-2a72303c.js} +1 -1
  38. package/dist/{tsMode-5b0d217f.js → tsMode-c6e434f0.js} +1 -1
  39. package/dist/{typescript-b34577f5.js → typescript-6f3cfd7f.js} +1 -1
  40. package/dist/{xml-4ce5ec9a.js → xml-62beaefa.js} +1 -1
  41. package/dist/{yaml-4853ee57.js → yaml-249714ed.js} +1 -1
  42. package/package.json +1 -1
  43. package/dist/Shared/API/APIQueuing.d.ts +0 -11
  44. package/dist/Shared/API/index.d.ts +0 -1
  45. package/dist/Shared/Components/EnvironmentSelector/EnvironmentSelector.component.d.ts +0 -4
  46. package/dist/Shared/Components/EnvironmentSelector/constants.d.ts +0 -5
  47. package/dist/Shared/Components/EnvironmentSelector/index.d.ts +0 -1
  48. package/dist/Shared/Components/EnvironmentSelector/service.d.ts +0 -3
  49. package/dist/Shared/Components/EnvironmentSelector/types.d.ts +0 -27
  50. package/dist/Shared/Components/EnvironmentSelector/utils.d.ts +0 -6
@@ -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;
@@ -26,3 +26,7 @@ export interface Breadcrumbs {
26
26
  className?: string;
27
27
  }
28
28
  export type UseBreadcrumbOptionalProps = UseBreadcrumbProps | null;
29
+ export interface BreadcrumbTextProps {
30
+ heading: string;
31
+ isActive?: boolean;
32
+ }
@@ -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 }: {
@@ -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
  */
@@ -14,5 +14,5 @@ import { SortableTableHeaderCellProps } from './types';
14
14
  * />
15
15
  * ```
16
16
  */
17
- declare const SortableTableHeaderCell: ({ isSorted, triggerSorting, sortOrder, title, disabled, isSortable, }: SortableTableHeaderCellProps) => JSX.Element;
17
+ declare const SortableTableHeaderCell: ({ isSorted, triggerSorting, sortOrder, title, disabled, }: SortableTableHeaderCellProps) => JSX.Element;
18
18
  export default SortableTableHeaderCell;
@@ -23,9 +23,4 @@ export interface SortableTableHeaderCellProps {
23
23
  * If true, the cell is disabled
24
24
  */
25
25
  disabled: boolean;
26
- /**
27
- * If false, the cell acts like normal table header cell
28
- * @default true
29
- */
30
- isSortable?: boolean;
31
26
  }
@@ -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;
@@ -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';
@@ -12,6 +12,4 @@ export declare const unitSelectorStyles: () => {
12
12
  loadingMessage: (base: any) => any;
13
13
  noOptionsMessage: (base: any) => any;
14
14
  placeholder: (base: any) => any;
15
- group: (base: any) => any;
16
- groupHeading: (base: any) => any;
17
15
  };
@@ -0,0 +1,3 @@
1
+ import { FeatureDescriptionModalProps } from './types';
2
+
3
+ export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -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,8 @@
1
+ export declare enum BUTTON_TEXT {
2
+ GOT_IT = "Got it",
3
+ VIEW_DOCUMENTATION = "View Documentation"
4
+ }
5
+ export declare enum IMAGE_VARIANT {
6
+ SMALL = "small",
7
+ LARGE = "large"
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './FeatureDescriptionModal';
2
+ export { default as FeatureTitleWithInfo } from './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,6 @@
1
+ import { ImageType } from '../../../Common';
2
+
3
+ export declare const getImageSize: (imageType: ImageType) => {
4
+ width: string;
5
+ height: string;
6
+ };
@@ -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
+ };
@@ -1 +1,2 @@
1
1
  export * from './utils';
2
+ export * from './constants';
@@ -8,13 +8,12 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
8
8
  loadingMessage: (base: any) => any;
9
9
  noOptionsMessage: (base: any) => any;
10
10
  placeholder: (base: any) => any;
11
- group: (base: any) => any;
12
- groupHeading: (base: any) => any;
13
11
  };
14
12
  export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
15
13
  export declare const SelectOption: (props: any) => JSX.Element;
16
14
  export declare const LoadingIndicator: () => JSX.Element;
17
15
  export declare const GroupHeading: (props: any) => JSX.Element;
16
+ export declare const DropdownIndicator: (props: any) => JSX.Element;
18
17
  export declare const commonSelectStyles: {
19
18
  container: (base: any, state: any) => any;
20
19
  menuList: (base: any) => any;
@@ -25,6 +24,4 @@ export declare const commonSelectStyles: {
25
24
  loadingMessage: (base: any) => any;
26
25
  noOptionsMessage: (base: any) => any;
27
26
  placeholder: (base: any) => any;
28
- group: (base: any) => any;
29
- groupHeading: (base: any) => any;
30
27
  };
@@ -17,4 +17,4 @@ export * from './Header';
17
17
  export * from './AnnouncementBanner';
18
18
  export * from './ButtonWithLoader';
19
19
  export * from './ButtonWithSelector';
20
- export * from './EnvironmentSelector';
20
+ export * from './FeatureDescription';
@@ -6,4 +6,3 @@ export * from './types';
6
6
  export * from './Providers';
7
7
  export * from './constants';
8
8
  export * from './Hooks';
9
- export * from './API';
@@ -1,5 +1,5 @@
1
1
  import { PatchOperationType } from './constants';
2
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors } from '../Common';
2
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType } from '../Common';
3
3
 
4
4
  export declare enum RegistryType {
5
5
  GIT = "git",
@@ -265,49 +265,3 @@ export declare enum AggregationKeys {
265
265
  Namespaces = "Namespaces"
266
266
  }
267
267
  export type AggregationKeysType = keyof typeof AggregationKeys;
268
- export interface AppInfoListType {
269
- application: string;
270
- appStatus: string;
271
- deploymentStatus: string;
272
- lastDeployed: string;
273
- lastDeployedImage?: string;
274
- lastDeployedBy?: string;
275
- appId: number;
276
- envId: number;
277
- pipelineId?: number;
278
- commits?: string[];
279
- ciArtifactId?: number;
280
- }
281
- export interface EnvListMinDTO {
282
- id: number;
283
- active: boolean;
284
- allowedDeploymentTypes: DeploymentAppTypes[] | null;
285
- appCount: number;
286
- cluster_id: number;
287
- cluster_name: string;
288
- default: boolean;
289
- description: string;
290
- environmentIdentifier: string;
291
- environment_name: string;
292
- isClusterCdActive: boolean;
293
- isDigestEnforcedForEnv: boolean;
294
- isVirtualEnvironment: boolean;
295
- namespace: string;
296
- }
297
- export declare enum ApiQueuingBatchStatusType {
298
- FULFILLED = "fulfilled",
299
- REJECTED = "rejected"
300
- }
301
- export type ApiQueuingWithBatchResponseItem<T> = {
302
- status: ApiQueuingBatchStatusType.FULFILLED;
303
- value: T;
304
- } | {
305
- status: ApiQueuingBatchStatusType.REJECTED;
306
- reason: ServerErrors;
307
- };
308
- export interface BatchConfigType {
309
- lastIndex: number;
310
- results: any[];
311
- concurrentCount: number;
312
- completedCalls: number;
313
- }