@devtron-labs/devtron-fe-common-lib 0.2.2-beta-16 → 0.2.2-beta-17

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,4 +1,3 @@
1
- import { XORProps } from '../Types';
2
1
  import { MODES } from '../Constants';
3
2
 
4
3
  export interface InformationBarProps {
@@ -6,7 +5,7 @@ export interface InformationBarProps {
6
5
  className?: string;
7
6
  children?: React.ReactNode;
8
7
  }
9
- interface CodeEditorBaseInterface {
8
+ export interface CodeEditorInterface {
10
9
  value?: string;
11
10
  lineDecorationsWidth?: number;
12
11
  responseType?: string;
@@ -20,6 +19,7 @@ interface CodeEditorBaseInterface {
20
19
  readOnly?: boolean;
21
20
  noParsing?: boolean;
22
21
  inline?: boolean;
22
+ height?: number | string;
23
23
  shebang?: string | JSX.Element;
24
24
  diffView?: boolean;
25
25
  loading?: boolean;
@@ -31,25 +31,8 @@ interface CodeEditorBaseInterface {
31
31
  isKubernetes?: boolean;
32
32
  cleanData?: boolean;
33
33
  chartVersion?: any;
34
- /**
35
- * Defines the minHeight of MonacoEditor in pixels or relative units
36
- * @default 300
37
- */
38
- minHeight?: number | string;
34
+ adjustEditorHeightToContent?: boolean;
39
35
  }
40
- interface CodeEditorXORProps {
41
- /**
42
- * Defines the height of MonacoEditor in pixels or relative units
43
- * @default 300
44
- */
45
- height: number | string;
46
- /**
47
- * If adjustEditorHeightToContent is true the Editor grows and shrinks by its content's height
48
- * @default false
49
- */
50
- adjustEditorHeightToContent: boolean;
51
- }
52
- export type CodeEditorInterface = CodeEditorBaseInterface & XORProps<'height', 'adjustEditorHeightToContent', CodeEditorXORProps>;
53
36
  export interface CodeEditorHeaderInterface {
54
37
  children?: any;
55
38
  className?: string;
@@ -102,4 +85,3 @@ export declare enum CodeEditorActionTypes {
102
85
  overrideLoading = "overrideLoading",
103
86
  success = "success"
104
87
  }
105
- export {};
@@ -43,6 +43,7 @@ export declare const URLS: {
43
43
  GLOBAL_CONFIG_DOCKER: string;
44
44
  DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
45
45
  GLOBAL_CONFIG_SCOPED_VARIABLES: string;
46
+ GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
46
47
  };
47
48
  export declare const ROUTES: {
48
49
  APP: string;
@@ -4,3 +4,8 @@ export declare const PLACEHOLDERS: {
4
4
  OBJECT_KEY: string;
5
5
  };
6
6
  export declare const DEFAULT_FIELD_TITLE = "Key not available";
7
+ export declare const HideSubmitButtonUISchema: {
8
+ 'ui:submitButtonOptions': {
9
+ norender: boolean;
10
+ };
11
+ };
@@ -1,3 +1,4 @@
1
1
  export { RJSFForm } from './Form';
2
2
  export * from './types';
3
3
  export { getInferredTypeFromValueType, getRedirectionProps } from './utils';
4
+ export { HideSubmitButtonUISchema } from './constants';
@@ -1,4 +1,3 @@
1
- import { XORProps } from '../Types';
2
1
  import { TippyProps } from '@tippyjs/react';
3
2
 
4
3
  type BaseTooltipProps = {
@@ -6,14 +5,25 @@ type BaseTooltipProps = {
6
5
  * If true, show tippy on truncate
7
6
  * @default true
8
7
  */
9
- showOnTruncate: boolean;
8
+ showOnTruncate?: boolean;
10
9
  /**
11
10
  * If showOnTruncate is defined this prop doesn't work
12
11
  * @default false
13
12
  */
14
- alwaysShowTippyOnHover: boolean;
13
+ alwaysShowTippyOnHover?: never;
14
+ } | {
15
+ /**
16
+ * If alwaysShowTippyOnHover is defined this prop doesn't work
17
+ * @default false
18
+ */
19
+ showOnTruncate?: never;
20
+ /**
21
+ * If true, wrap with tippy irrespective of other options
22
+ * @default false
23
+ */
24
+ alwaysShowTippyOnHover?: boolean;
15
25
  };
16
- export type TooltipProps = XORProps<'showOnTruncate', 'alwaysShowTippyOnHover', BaseTooltipProps> & TippyProps & {
26
+ export type TooltipProps = BaseTooltipProps & TippyProps & {
17
27
  /**
18
28
  * If true, apply dc__word-break-all
19
29
  * @default true
@@ -816,5 +816,4 @@ export interface EnvironmentHelmResult {
816
816
  allowedDeploymentTypes?: DeploymentAppTypes[];
817
817
  }
818
818
  export type EnvironmentListHelmResponse = ResponseType<EnvironmentListHelmResult[]>;
819
- export type XORProps<P extends string, S extends string, T extends Record<P | S, any>> = (Partial<Record<P, never>> & Partial<Record<S, T[S]>>) | (Partial<Record<P, T[P]>> & Partial<Record<S, never>>);
820
819
  export {};