@devtron-labs/devtron-fe-common-lib 1.0.4-beta-4 → 1.0.4-beta-6

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 (32) hide show
  1. package/dist/Common/CodeEditor/types.d.ts +1 -1
  2. package/dist/Common/Constants.d.ts +2 -0
  3. package/dist/Common/Types.d.ts +1 -5
  4. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +18 -3
  5. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
  6. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +6 -0
  7. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
  8. package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
  9. package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
  10. package/dist/Shared/Components/index.d.ts +1 -0
  11. package/dist/Shared/Hooks/useForm/useForm.d.ts +1 -0
  12. package/dist/Shared/Services/app.types.d.ts +3 -0
  13. package/dist/Shared/types.d.ts +0 -12
  14. package/dist/{cssMode-xGDksLg-.js → cssMode-DlotFS9U.js} +1 -1
  15. package/dist/{freemarker2-DwBDhEWu.js → freemarker2-CBWHBMql.js} +1 -1
  16. package/dist/{handlebars--lczMrSO.js → handlebars-cTw1d4c6.js} +1 -1
  17. package/dist/{html-BdTnDt9r.js → html-RtsgnePk.js} +1 -1
  18. package/dist/{htmlMode-CEP1Iu1K.js → htmlMode-v37pp7uG.js} +1 -1
  19. package/dist/{index-CvyOfGCo.js → index-5avl9oli.js} +7522 -7511
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.js +509 -507
  22. package/dist/{javascript-DDWuN0k2.js → javascript-4SoXYeCY.js} +1 -1
  23. package/dist/{jsonMode-CjV0gIm0.js → jsonMode-BjXA8SrL.js} +1 -1
  24. package/dist/{liquid-DcLZbzv8.js → liquid-BkNKfj0J.js} +1 -1
  25. package/dist/{mdx-BVb8mkxF.js → mdx-B5mTUmi5.js} +1 -1
  26. package/dist/{python-DBD-sslJ.js → python-5_yqKuwk.js} +1 -1
  27. package/dist/{razor-DB-DLT3P.js → razor-C9Ya2I2F.js} +1 -1
  28. package/dist/{tsMode-CP0aXtAc.js → tsMode-BbbCnkei.js} +1 -1
  29. package/dist/{typescript-DMOFvCYB.js → typescript-D-hMrJpW.js} +1 -1
  30. package/dist/{xml-DBQvcclk.js → xml-Dh4Brxjn.js} +1 -1
  31. package/dist/{yaml-e7OtpUnA.js → yaml-BwlbyR5U.js} +1 -1
  32. 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
@@ -4,6 +4,7 @@ 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";
7
8
  export declare const DOCUMENTATION: {
8
9
  APP_METRICS: string;
9
10
  APP_TAGS: string;
@@ -257,6 +258,7 @@ export declare const API_STATUS_CODES: {
257
258
  EXPECTATION_FAILED: number;
258
259
  UNPROCESSABLE_ENTITY: number;
259
260
  LOCKED: number;
261
+ UNPROCESSABLE_CONTENT: number;
260
262
  };
261
263
  export declare enum SERVER_MODE {
262
264
  EA_ONLY = "EA_ONLY",
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObject } from 'react';
1
+ import { default as React, ReactNode, CSSProperties, ReactElement } from 'react';
2
2
  import { Placement } from 'tippy.js';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
@@ -25,11 +25,7 @@ export interface ResponseType<T = any> {
25
25
  }
26
26
  export interface APIOptions {
27
27
  timeout?: number;
28
- /**
29
- * @deprecated Use abortController instead
30
- */
31
28
  signal?: AbortSignal;
32
- abortControllerRef?: MutableRefObject<AbortController>;
33
29
  preventAutoLogout?: boolean;
34
30
  }
35
31
  export interface OptionType<T = string, K = string> {
@@ -108,15 +108,15 @@ interface BaseDeploymentTemplateConfigState {
108
108
  environmentConfig?: never;
109
109
  mergeStrategy?: never;
110
110
  }
111
- interface EnvironmentOverrideDeploymentTemplateConfigState {
111
+ type EnvironmentOverrideDeploymentTemplateConfigState = {
112
112
  chartConfig?: never;
113
113
  isOverridden: boolean;
114
114
  environmentConfig: EnvironmentConfigType;
115
115
  mergeStrategy: OverrideMergeStrategyType;
116
- }
116
+ };
117
117
  export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
118
118
  /**
119
- * The first ever state of the deployment template
119
+ * The first ever state of the deployment template on editor
120
120
  */
121
121
  originalTemplate: Record<string, string>;
122
122
  isAppMetricsEnabled: boolean;
@@ -126,6 +126,21 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
126
126
  latestDraft?: DraftMetadataDTO;
127
127
  editorTemplate: string;
128
128
  editorTemplateWithoutLockedKeys: string;
129
+ /**
130
+ * This final template to be applied on the deployment in string format
131
+ * In current editor, this may be null initially
132
+ */
133
+ mergedTemplate: string | null;
134
+ /**
135
+ * This final template to be applied on the deployment without locked keys in string format
136
+ * In current editor, this may be null initially
137
+ */
138
+ mergedTemplateWithoutLockedKeys: string | null;
139
+ /**
140
+ * This final template to be applied on the deployment in object format
141
+ * In current editor, this may be null initially
142
+ */
143
+ mergedTemplateObject: Record<string, string> | null;
129
144
  }
130
145
  export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
131
146
  type DTApplicationMetricsReadOnlyProps = {
@@ -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
+ }
@@ -1,2 +1,2 @@
1
1
  import { DeploymentStageType } from '../../../../../Shared/constants';
2
- export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "deployment" | "pre-deployment" | "post-deployment";
2
+ export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
@@ -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';
@@ -61,6 +61,7 @@ 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;
64
65
  }) => void;
65
66
  /** An object representing additional form state. */
66
67
  formState: {
@@ -1,3 +1,4 @@
1
+ import { OverrideMergeStrategyType } from '../../Pages/Applications';
1
2
  import { ReleaseTag } from '../../Common';
2
3
  interface WebhookDataType {
3
4
  id: number;
@@ -146,9 +147,11 @@ export declare enum CMSecretExternalType {
146
147
  }
147
148
  export interface ConfigDatum {
148
149
  name: string;
150
+ mergeStrategy: OverrideMergeStrategyType;
149
151
  type: string;
150
152
  external: boolean;
151
153
  data: Record<string, any>;
154
+ patchData: Record<string, any>;
152
155
  defaultData: Record<string, any>;
153
156
  global: boolean;
154
157
  externalType: CMSecretExternalType;
@@ -658,23 +658,11 @@ interface CommonTabArgsType {
658
658
  value: string;
659
659
  }[];
660
660
  };
661
- /**
662
- * If true, the fixed tab remains mounted on initial load of the component
663
- *
664
- * Note: Not for dynamic tabs atm
665
- *
666
- * @default false
667
- */
668
- shouldRemainMounted?: boolean;
669
661
  }
670
662
  export interface InitTabType extends CommonTabArgsType {
671
663
  idPrefix: string;
672
664
  }
673
665
  export interface DynamicTabType extends CommonTabArgsType {
674
666
  id: string;
675
- /**
676
- * Id of the tab from which the current tab is opened
677
- */
678
- lastActiveTabId: string | null;
679
667
  }
680
668
  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-CvyOfGCo.js";
4
+ import { m as je } from "./index-5avl9oli.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-CvyOfGCo.js";
1
+ import { m as f } from "./index-5avl9oli.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-CvyOfGCo.js";
1
+ import { m as l } from "./index-5avl9oli.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-CvyOfGCo.js";
1
+ import { m as s } from "./index-5avl9oli.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-CvyOfGCo.js";
4
+ import { m as qe } from "./index-5avl9oli.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)