@devtron-labs/devtron-fe-common-lib 1.0.3-beta-7 → 1.0.3-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.
Files changed (29) hide show
  1. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +2 -1
  2. package/dist/Common/CodeEditor/types.d.ts +1 -0
  3. package/dist/Common/RJSF/index.d.ts +1 -1
  4. package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +2 -0
  5. package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +2 -0
  6. package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +6 -0
  7. package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +1 -0
  8. package/dist/Pages/App/AppConfiguration/index.d.ts +1 -0
  9. package/dist/Pages/App/index.d.ts +1 -0
  10. package/dist/Pages/index.d.ts +1 -0
  11. package/dist/Shared/Helpers.d.ts +7 -0
  12. package/dist/{cssMode-BqNNhKrT.js → cssMode-DA_U7EYc.js} +1 -1
  13. package/dist/{freemarker2-B3ND2Sk2.js → freemarker2-DMPiYkPh.js} +1 -1
  14. package/dist/{handlebars-D2IDG2QC.js → handlebars-KKsFYI1d.js} +1 -1
  15. package/dist/{html-BjOLINC0.js → html-BX4Q5ewn.js} +1 -1
  16. package/dist/{htmlMode-MJeGOZvD.js → htmlMode-DDA3zW7G.js} +1 -1
  17. package/dist/{index-BMbMyGYw.js → index-JdFrccxa.js} +10720 -10691
  18. package/dist/index.js +430 -428
  19. package/dist/{javascript-CqGX24z-.js → javascript-cSh-4qCG.js} +1 -1
  20. package/dist/{jsonMode-B1yz33Nd.js → jsonMode-CECmd_zV.js} +1 -1
  21. package/dist/{liquid-D_2T2KWv.js → liquid-D61KvSmi.js} +1 -1
  22. package/dist/{mdx-BgTDygfK.js → mdx-DkPetpZx.js} +1 -1
  23. package/dist/{python-DBP2zYP1.js → python-Bpk5d3lh.js} +1 -1
  24. package/dist/{razor-CzJ0L6xK.js → razor-TS25iAC3.js} +1 -1
  25. package/dist/{tsMode-PwTPBcx3.js → tsMode-D0Wt5CGg.js} +1 -1
  26. package/dist/{typescript-B01kCn68.js → typescript-C7mKk0PO.js} +1 -1
  27. package/dist/{xml-DpQiCSSB.js → xml-DvlWRjj7.js} +1 -1
  28. package/dist/{yaml-2UMxm9Ak.js → yaml-YYTFfNZK.js} +1 -1
  29. package/package.json +1 -1
@@ -32,4 +32,5 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
32
32
  code: string;
33
33
  noParsing: boolean;
34
34
  };
35
- export declare const initialState: ({ mode, theme, value, diffView, noParsing, }: CodeEditorInitialValueType) => CodeEditorState;
35
+ export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
36
+ export declare const initialState: ({ mode, theme, value, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
@@ -81,6 +81,7 @@ export interface CodeEditorInitialValueType {
81
81
  theme?: string;
82
82
  value: string;
83
83
  noParsing?: boolean;
84
+ tabSize: number;
84
85
  }
85
86
  export interface CodeEditorState {
86
87
  mode: MODES;
@@ -1,4 +1,4 @@
1
1
  export { RJSFForm } from './Form';
2
- export * from './types';
2
+ export type * from './types';
3
3
  export { getInferredTypeFromValueType, getRedirectionProps } from './utils';
4
4
  export { HIDE_SUBMIT_BUTTON_UI_SCHEMA } from './constants';
@@ -0,0 +1,2 @@
1
+ export { ViewError as GUIViewError } from './utils';
2
+ export type { ViewErrorType as GUIViewErrorType } from './types';
@@ -0,0 +1,2 @@
1
+ export interface ViewErrorType extends Record<'title' | 'subTitle', string> {
2
+ }
@@ -0,0 +1,6 @@
1
+ import { ViewErrorType } from './types';
2
+ export declare class ViewError implements ViewErrorType {
3
+ title: string;
4
+ subTitle: string;
5
+ constructor(title: string, subTitle: string);
6
+ }
@@ -0,0 +1 @@
1
+ export * from './GUIView';
@@ -0,0 +1 @@
1
+ export * from './DeploymentTemplate';
@@ -0,0 +1 @@
1
+ export * from './AppConfiguration';
@@ -1,3 +1,4 @@
1
1
  export * from './GlobalConfigurations';
2
2
  export * from './ResourceBrowser';
3
3
  export * from './Applications';
4
+ export * from './App';
@@ -1,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { Pair } from 'yaml';
3
+ import { StrictRJSFSchema } from '@rjsf/utils';
3
4
  import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
4
5
  import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
5
6
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
@@ -63,4 +64,10 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
63
64
  * and the values are arrays of objects that share the same key value.
64
65
  */
65
66
  export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
67
+ /**
68
+ * This function returns a null/zero value corresponding to @type
69
+ *
70
+ * @param type - a RJSF supported type
71
+ */
72
+ export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
66
73
  export {};
@@ -1,7 +1,7 @@
1
1
  var Fe = Object.defineProperty;
2
2
  var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as je } from "./index-BMbMyGYw.js";
4
+ import { m as je } from "./index-JdFrccxa.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as f } from "./index-BMbMyGYw.js";
1
+ import { m as f } from "./index-JdFrccxa.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-BMbMyGYw.js";
1
+ import { m as l } from "./index-JdFrccxa.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-BMbMyGYw.js";
1
+ import { m as s } from "./index-JdFrccxa.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var Be = Object.defineProperty;
2
2
  var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as qe } from "./index-BMbMyGYw.js";
4
+ import { m as qe } from "./index-JdFrccxa.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)