@devtron-labs/devtron-fe-common-lib 1.1.3-beta-1 → 1.1.3-beta-2

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 (41) hide show
  1. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -2
  2. package/dist/Common/CodeEditor/types.d.ts +1 -2
  3. package/dist/Common/Constants.d.ts +0 -2
  4. package/dist/Common/RJSF/index.d.ts +1 -1
  5. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +3 -21
  6. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +1 -2
  7. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -6
  8. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
  9. package/dist/Pages/index.d.ts +0 -1
  10. package/dist/Shared/Components/index.d.ts +0 -1
  11. package/dist/Shared/Helpers.d.ts +3 -5
  12. package/dist/Shared/Hooks/useForm/useForm.d.ts +0 -1
  13. package/dist/Shared/Services/app.types.d.ts +0 -3
  14. package/dist/Shared/types.d.ts +1 -0
  15. package/dist/{cssMode-CMaMwk19.js → cssMode-DJW3flek.js} +1 -1
  16. package/dist/{freemarker2-CLqyLn9v.js → freemarker2-GGhp_Ow6.js} +1 -1
  17. package/dist/{handlebars-BRD1MBC4.js → handlebars-CC5we5Py.js} +1 -1
  18. package/dist/{html-DACNVWi2.js → html-BEQlWU0c.js} +1 -1
  19. package/dist/{htmlMode-DOkUWxl6.js → htmlMode-DSqwFJlQ.js} +1 -1
  20. package/dist/{index-B0R-eIqT.js → index-Dv75aix2.js} +11901 -11947
  21. package/dist/index.d.ts +0 -2
  22. package/dist/index.js +515 -519
  23. package/dist/{javascript-CcPM8gMo.js → javascript-CQsddPUF.js} +1 -1
  24. package/dist/{jsonMode-CcN4cBks.js → jsonMode-CxX9Pi0H.js} +1 -1
  25. package/dist/{liquid-ByxkY-P3.js → liquid-BH21fK8A.js} +1 -1
  26. package/dist/{mdx-CB1YZfsJ.js → mdx-B0hCXTsn.js} +1 -1
  27. package/dist/{python-DtLslx5t.js → python-DwJvS3Na.js} +1 -1
  28. package/dist/{razor-BpWch-b7.js → razor-BPWnHuCI.js} +1 -1
  29. package/dist/{tsMode-CX3PjebE.js → tsMode-CkUMAQO-.js} +1 -1
  30. package/dist/{typescript-CYUmpyQQ.js → typescript-CUeihS1u.js} +1 -1
  31. package/dist/{xml-DoPkFoDS.js → xml-D8h09cPJ.js} +1 -1
  32. package/dist/{yaml-ps_8KiyV.js → yaml-CAvlXgny.js} +1 -1
  33. package/package.json +1 -1
  34. package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +0 -2
  35. package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +0 -2
  36. package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +0 -6
  37. package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +0 -1
  38. package/dist/Pages/App/AppConfiguration/index.d.ts +0 -1
  39. package/dist/Pages/App/index.d.ts +0 -1
  40. package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
  41. package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
@@ -32,5 +32,4 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
32
32
  code: string;
33
33
  noParsing: boolean;
34
34
  };
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;
35
+ export declare const initialState: ({ mode, theme, value, diffView, noParsing, }: CodeEditorInitialValueType) => CodeEditorState;
@@ -28,7 +28,7 @@ interface CodeEditorBaseInterface {
28
28
  validatorSchema?: any;
29
29
  isKubernetes?: boolean;
30
30
  cleanData?: boolean;
31
- schemaURI?: string;
31
+ chartVersion?: any;
32
32
  /**
33
33
  * If true, disable the in-built search of monaco editor
34
34
  * @default false
@@ -81,7 +81,6 @@ export interface CodeEditorInitialValueType {
81
81
  theme?: string;
82
82
  value: string;
83
83
  noParsing?: boolean;
84
- tabSize: number;
85
84
  }
86
85
  export interface CodeEditorState {
87
86
  mode: MODES;
@@ -4,7 +4,6 @@ export declare const Host: string;
4
4
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
5
5
  export declare const DOCUMENTATION_VERSION = "/v/v0.7";
6
6
  export declare const DISCORD_LINK = "https://discord.devtron.ai/";
7
- export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
8
7
  export declare const DOCUMENTATION: {
9
8
  APP_METRICS: string;
10
9
  APP_TAGS: string;
@@ -258,7 +257,6 @@ export declare const API_STATUS_CODES: {
258
257
  EXPECTATION_FAILED: number;
259
258
  UNPROCESSABLE_ENTITY: number;
260
259
  LOCKED: number;
261
- UNPROCESSABLE_CONTENT: number;
262
260
  };
263
261
  export declare enum SERVER_MODE {
264
262
  EA_ONLY = "EA_ONLY",
@@ -1,4 +1,4 @@
1
1
  export { RJSFForm } from './Form';
2
- export type * from './types';
2
+ export * from './types';
3
3
  export { getInferredTypeFromValueType, getRedirectionProps } from './utils';
4
4
  export { HIDE_SUBMIT_BUTTON_UI_SCHEMA } from './constants';
@@ -1,5 +1,4 @@
1
1
  import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
2
- import { ServerErrors } from '../../../../../../Common/ServerError';
3
2
  import { OverrideMergeStrategyType } from '../types';
4
3
  export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
5
4
  export interface DeploymentChartVersionType {
@@ -109,15 +108,15 @@ interface BaseDeploymentTemplateConfigState {
109
108
  environmentConfig?: never;
110
109
  mergeStrategy?: never;
111
110
  }
112
- type EnvironmentOverrideDeploymentTemplateConfigState = {
111
+ interface EnvironmentOverrideDeploymentTemplateConfigState {
113
112
  chartConfig?: never;
114
113
  isOverridden: boolean;
115
114
  environmentConfig: EnvironmentConfigType;
116
115
  mergeStrategy: OverrideMergeStrategyType;
117
- };
116
+ }
118
117
  export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
119
118
  /**
120
- * The first ever state of the deployment template on editor
119
+ * The first ever state of the deployment template
121
120
  */
122
121
  originalTemplate: Record<string, string>;
123
122
  isAppMetricsEnabled: boolean;
@@ -127,23 +126,6 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
127
126
  latestDraft?: DraftMetadataDTO;
128
127
  editorTemplate: string;
129
128
  editorTemplateWithoutLockedKeys: string;
130
- /**
131
- * This final template to be applied on the deployment in string format
132
- * In current editor, this may be null initially
133
- */
134
- mergedTemplate: string | null;
135
- /**
136
- * This final template to be applied on the deployment without locked keys in string format
137
- * In current editor, this may be null initially
138
- */
139
- mergedTemplateWithoutLockedKeys: string | null;
140
- /**
141
- * This final template to be applied on the deployment in object format
142
- * In current editor, this may be null initially
143
- */
144
- mergedTemplateObject: Record<string, string> | null;
145
- isLoadingMergedTemplate: boolean;
146
- mergedTemplateError: ServerErrors | null;
147
129
  }
148
130
  export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
149
131
  type DTApplicationMetricsReadOnlyProps = {
@@ -1,3 +1,2 @@
1
- import { OverrideStrategyTippyContentProps } from './types';
2
- declare const OverrideStrategyTippyContent: ({ children }: OverrideStrategyTippyContentProps) => JSX.Element;
1
+ declare const OverrideStrategyTippyContent: () => JSX.Element;
3
2
  export default OverrideStrategyTippyContent;
@@ -25,9 +25,3 @@ export declare enum ConfigToolbarPopupNodeType {
25
25
  DISCARD_DRAFT = "discardDraft",
26
26
  EDIT_HISTORY = "editHistory"
27
27
  }
28
- export interface OverrideStrategyTippyContentProps {
29
- /**
30
- * Would be rendered as li conveying the information about the merge strategy
31
- */
32
- children?: ReactNode;
33
- }
@@ -1,2 +1,2 @@
1
1
  import { DeploymentStageType } from '../../../../../Shared/constants';
2
- export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
2
+ export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "deployment" | "pre-deployment" | "post-deployment" | "-";
@@ -1,4 +1,3 @@
1
1
  export * from './GlobalConfigurations';
2
2
  export * from './ResourceBrowser';
3
3
  export * from './Applications';
4
- export * from './App';
@@ -41,5 +41,4 @@ export * from './Collapse';
41
41
  export * from './Security';
42
42
  export * from './Button';
43
43
  export * from './InvalidYAMLTippy';
44
- export * from './EnterpriseTag';
45
44
  export * from './DiffViewer';
@@ -1,6 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { Pair } from 'yaml';
3
- import { StrictRJSFSchema } from '@rjsf/utils';
4
3
  import { MaterialHistoryType } from '@Shared/Services/app.types';
5
4
  import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
6
5
  import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
@@ -66,11 +65,10 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
66
65
  */
67
66
  export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
68
67
  /**
69
- * This function returns a null/zero value corresponding to @type
70
- *
71
- * @param type - a RJSF supported type
68
+ * @description - Function to get the lower case object
69
+ * @param input - The input object
70
+ * @returns Record<string, any>
72
71
  */
73
- export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
74
72
  export declare const getLowerCaseObject: (input: any) => Record<string, any>;
75
73
  /**
76
74
  * @description - Function to get the webhook date
@@ -61,7 +61,6 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
61
61
  keepTouched?: boolean;
62
62
  /** A boolean indicating whether to retain the current error state of the form fields. */
63
63
  keepErrors?: boolean;
64
- triggerDirty?: boolean;
65
64
  }) => void;
66
65
  /** An object representing additional form state. */
67
66
  formState: {
@@ -1,4 +1,3 @@
1
- import { OverrideMergeStrategyType } from '../../Pages/Applications';
2
1
  import { ReleaseTag } from '../../Common';
3
2
  interface WebhookDataType {
4
3
  id: number;
@@ -148,11 +147,9 @@ export declare enum CMSecretExternalType {
148
147
  }
149
148
  export interface ConfigDatum {
150
149
  name: string;
151
- mergeStrategy: OverrideMergeStrategyType;
152
150
  type: string;
153
151
  external: boolean;
154
152
  data: Record<string, any>;
155
- patchData: Record<string, any>;
156
153
  defaultData: Record<string, any>;
157
154
  global: boolean;
158
155
  externalType: CMSecretExternalType;
@@ -85,6 +85,7 @@ export declare enum Nodes {
85
85
  PodDisruptionBudget = "PodDisruptionBudget",
86
86
  Event = "Event",
87
87
  Namespace = "Namespace",
88
+ Node = "Node",
88
89
  Overview = "Overview",
89
90
  MonitoringDashboard = "MonitoringDashboard",
90
91
  UpgradeCluster = "UpgradeCluster"
@@ -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-B0R-eIqT.js";
4
+ import { m as je } from "./index-Dv75aix2.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-B0R-eIqT.js";
1
+ import { m as f } from "./index-Dv75aix2.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-B0R-eIqT.js";
1
+ import { m as l } from "./index-Dv75aix2.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-B0R-eIqT.js";
1
+ import { m as s } from "./index-Dv75aix2.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-B0R-eIqT.js";
4
+ import { m as qe } from "./index-Dv75aix2.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)