@devtron-labs/devtron-fe-common-lib 0.0.75-beta-39 → 0.0.75-beta-41

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.
@@ -1,3 +1,3 @@
1
1
  import { GenericDescriptionProps } from './types';
2
- declare const GenericDescription: ({ text, updatedBy, updatedOn, isDescriptionPreview, tabIndex, updateDescription, title, }: GenericDescriptionProps) => JSX.Element;
2
+ declare const GenericDescription: ({ text, updatedBy, updatedOn, isDescriptionPreview, tabIndex, updateDescription, title, minEditorHeight, }: GenericDescriptionProps) => JSX.Element;
3
3
  export default GenericDescription;
@@ -3,9 +3,10 @@ export interface GenericDescriptionProps {
3
3
  updatedBy?: string;
4
4
  updatedOn?: string;
5
5
  isDescriptionPreview: boolean;
6
- updateDescription: (string: any) => void;
6
+ updateDescription: (string: any) => Promise<void>;
7
7
  title: string;
8
8
  tabIndex?: number;
9
+ minEditorHeight?: number;
9
10
  }
10
11
  export declare enum MDEditorSelectedTabType {
11
12
  WRITE = "write",
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { SyntheticEvent } from 'react';
2
2
  import { AsyncOptions, UseSearchString } from './Types';
3
3
  export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
4
4
  interface ConditionalWrapper<T> {
@@ -9,6 +9,7 @@ interface ConditionalWrapper<T> {
9
9
  export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
10
10
  export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | 0 | -1;
11
11
  export declare const stopPropagation: (event: any) => void;
12
+ export declare const preventDefault: (event: SyntheticEvent) => void;
12
13
  export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
13
14
  export declare function getRandomColor(email: string): string;
14
15
  export declare const getAlphabetIcon: (str: string, rootClassName?: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { OptionType } from '../Common';
1
2
  import { PatchOperationType } from './constants';
2
3
  export interface RuntimeParamsAPIResponseType {
3
4
  envVariables: Record<string, string>;
@@ -69,6 +70,10 @@ export type PatchQueryType<T extends string, K = unknown> = {
69
70
  op: PatchOperationType.remove;
70
71
  value?: never;
71
72
  });
73
+ export interface GroupedOptionsType {
74
+ label: string;
75
+ options: OptionType[];
76
+ }
72
77
  /**
73
78
  * Enum for devtron resources
74
79
  */