@devtron-labs/devtron-fe-common-lib 0.0.82-beta-6 → 0.0.82-beta-8

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.
@@ -56,5 +56,5 @@ export type UseUrlFiltersReturnType<T, K = unknown> = K & {
56
56
  /**
57
57
  * Update the search params with the passed object
58
58
  */
59
- updateSearchParams: (paramsToSerialize: K) => void;
59
+ updateSearchParams: (paramsToSerialize: Partial<K>) => void;
60
60
  };
@@ -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 +1,2 @@
1
1
  export { default as GenericSectionErrorState } from './GenericSectionErrorState.component';
2
+ export type { GenericSectionErrorStateProps } from './types';
@@ -29,4 +29,10 @@ export interface GenericSectionErrorStateProps {
29
29
  * to be applied on parent div
30
30
  */
31
31
  rootClassName?: string;
32
+ /**
33
+ * If true, info icon would be used instead of error
34
+ *
35
+ * @default false
36
+ */
37
+ useInfoIcon?: boolean;
32
38
  }
@@ -23,4 +23,5 @@ export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrd
23
23
  export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
24
24
  export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
25
25
  export declare const isNullOrUndefined: (value: unknown) => boolean;
26
+ export declare const filterUniqueItemsInArrayByKey: <T extends unknown>(arr: T[], key: string | number) => T[];
26
27
  export {};