@devtron-labs/devtron-fe-common-lib 1.0.2 → 1.0.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 (26) hide show
  1. package/dist/Common/CodeEditor/types.d.ts +1 -1
  2. package/dist/Common/Constants.d.ts +1 -0
  3. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +21 -3
  4. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
  5. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +6 -0
  6. package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
  7. package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
  8. package/dist/Shared/Components/index.d.ts +1 -0
  9. package/dist/{cssMode-Cms6MtyR.js → cssMode-CLbKl82G.js} +1 -1
  10. package/dist/{freemarker2-3FE3rIRb.js → freemarker2-BvaZuUid.js} +1 -1
  11. package/dist/{handlebars-DeT_KQct.js → handlebars-CW40oXYk.js} +1 -1
  12. package/dist/{html-W6MJJ6Cd.js → html-pDS308Pf.js} +1 -1
  13. package/dist/{htmlMode-X1lmmOke.js → htmlMode-DPURRdnS.js} +1 -1
  14. package/dist/{index-BAPwGfmH.js → index-Ck7k0OyO.js} +642 -632
  15. package/dist/index.js +442 -441
  16. package/dist/{javascript-DBHHMxuE.js → javascript-DKYW8ncE.js} +1 -1
  17. package/dist/{jsonMode-R_Ioy9kM.js → jsonMode-CmomPli6.js} +1 -1
  18. package/dist/{liquid-CgBcKItj.js → liquid-nEl3Q9Y7.js} +1 -1
  19. package/dist/{mdx-5zADcGgC.js → mdx-CJUhsnUb.js} +1 -1
  20. package/dist/{python-Ct8AOOli.js → python-j3zOcJfr.js} +1 -1
  21. package/dist/{razor-DBKs2NDr.js → razor-F7DiMSvK.js} +1 -1
  22. package/dist/{tsMode-2mDlxLKe.js → tsMode-D01qKO10.js} +1 -1
  23. package/dist/{typescript-_jgELbQ9.js → typescript-CVohWBsJ.js} +1 -1
  24. package/dist/{xml-Da6smlqJ.js → xml-CuZaOW9e.js} +1 -1
  25. package/dist/{yaml-BNTzHcuk.js → yaml-CY0z85o9.js} +1 -1
  26. package/package.json +1 -1
@@ -28,7 +28,7 @@ interface CodeEditorBaseInterface {
28
28
  validatorSchema?: any;
29
29
  isKubernetes?: boolean;
30
30
  cleanData?: boolean;
31
- chartVersion?: any;
31
+ schemaURI?: string;
32
32
  /**
33
33
  * If true, disable the in-built search of monaco editor
34
34
  * @default false
@@ -256,6 +256,7 @@ export declare const API_STATUS_CODES: {
256
256
  NOT_FOUND: number;
257
257
  EXPECTATION_FAILED: number;
258
258
  LOCKED: number;
259
+ UNPROCESSABLE_CONTENT: number;
259
260
  };
260
261
  export declare enum SERVER_MODE {
261
262
  EA_ONLY = "EA_ONLY",
@@ -107,16 +107,34 @@ interface BaseDeploymentTemplateConfigState {
107
107
  isOverridden?: never;
108
108
  environmentConfig?: never;
109
109
  mergeStrategy?: never;
110
+ mergedTemplate?: never;
111
+ mergedTemplateWithoutLockedKeys?: never;
112
+ mergedTemplateObject?: never;
110
113
  }
111
- interface EnvironmentOverrideDeploymentTemplateConfigState {
114
+ type EnvironmentOverrideDeploymentTemplateConfigState = {
112
115
  chartConfig?: never;
113
116
  isOverridden: boolean;
114
117
  environmentConfig: EnvironmentConfigType;
115
118
  mergeStrategy: OverrideMergeStrategyType;
116
- }
119
+ /**
120
+ * This final template to be applied on the deployment in string format
121
+ * In current editor, this may be null initially
122
+ */
123
+ mergedTemplate: string;
124
+ /**
125
+ * This final template to be applied on the deployment without locked keys in string format
126
+ * In current editor, this may be null initially
127
+ */
128
+ mergedTemplateWithoutLockedKeys: string | null;
129
+ /**
130
+ * This final template to be applied on the deployment in object format
131
+ * In current editor, this may be null initially
132
+ */
133
+ mergedTemplateObject: Record<string, string> | null;
134
+ };
117
135
  export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
118
136
  /**
119
- * The first ever state of the deployment template
137
+ * The first ever state of the deployment template on editor
120
138
  */
121
139
  originalTemplate: Record<string, string>;
122
140
  isAppMetricsEnabled: boolean;
@@ -1,2 +1,3 @@
1
- declare const OverrideStrategyTippyContent: () => JSX.Element;
1
+ import { OverrideStrategyTippyContentProps } from './types';
2
+ declare const OverrideStrategyTippyContent: ({ children }: OverrideStrategyTippyContentProps) => JSX.Element;
2
3
  export default OverrideStrategyTippyContent;
@@ -25,3 +25,9 @@ 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
+ }
@@ -0,0 +1,2 @@
1
+ declare const EnterpriseTag: () => JSX.Element;
2
+ export default EnterpriseTag;
@@ -0,0 +1 @@
1
+ export { default as EnterpriseTag } from './EnterpriseTag.component';
@@ -41,3 +41,4 @@ export * from './Collapse';
41
41
  export * from './Security';
42
42
  export * from './Button';
43
43
  export * from './InvalidYAMLTippy';
44
+ export * from './EnterpriseTag';
@@ -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-BAPwGfmH.js";
4
+ import { m as je } from "./index-Ck7k0OyO.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-BAPwGfmH.js";
1
+ import { m as f } from "./index-Ck7k0OyO.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-BAPwGfmH.js";
1
+ import { m as l } from "./index-Ck7k0OyO.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-BAPwGfmH.js";
1
+ import { m as s } from "./index-Ck7k0OyO.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-BAPwGfmH.js";
4
+ import { m as qe } from "./index-Ck7k0OyO.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)