@devtron-labs/devtron-fe-common-lib 1.6.13-beta-1 → 1.6.13-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.
@@ -1,7 +1,7 @@
1
1
  import { j as t, O as E } from "./@vendor-CWh7bjwl.js";
2
2
  import P, { forwardRef as $ } from "react";
3
3
  import L, { getDefaultRegistry as D } from "@rjsf/core";
4
- import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-BhNQeqfi.js";
4
+ import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-DiVd86iC.js";
5
5
  import J, { components as C } from "react-select";
6
6
  import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as A, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as B, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
@@ -78,7 +78,6 @@ export declare const ROUTES: {
78
78
  TELEMETRY_EVENT: string;
79
79
  SERVER_INFO_API: string;
80
80
  ATTRIBUTES_USER: string;
81
- GET: string;
82
81
  UPDATE: string;
83
82
  ENVIRONMENT_LIST_MIN: string;
84
83
  CLUSTER: string;
@@ -1,3 +1,3 @@
1
1
  import { SegmentedControlProps } from './types';
2
- declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, isControlled, }: SegmentedControlProps) => JSX.Element;
2
+ declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, }: SegmentedControlProps) => JSX.Element;
3
3
  export default SegmentedControl;
@@ -18,8 +18,4 @@ export interface SegmentedControlProps {
18
18
  * @default ComponentSizeType.medium
19
19
  */
20
20
  size?: ComponentSizeType.medium | ComponentSizeType.large;
21
- /**
22
- * @default false
23
- */
24
- isControlled?: boolean;
25
21
  }
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
2
2
  import { TippyProps } from '@tippyjs/react';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
- import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO } from '../Shared';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps } from '../Shared';
6
6
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
@@ -158,6 +158,7 @@ interface InfoColourBarTextConfigType {
158
158
  * If given would be shown below the heading (if given)
159
159
  */
160
160
  description: string;
161
+ actionButtonConfig?: ButtonProps;
161
162
  }
162
163
  type InfoColourBarMessageProp = {
163
164
  message: ReactNode;
@@ -96,6 +96,10 @@ export interface SelectedChartDetailsType {
96
96
  selectedChartRefId: number;
97
97
  selectedChart: DeploymentChartVersionType;
98
98
  }
99
+ export declare enum PipelineMigratedFromType {
100
+ HELM_RELEASE = "helmRelease",
101
+ ARGO_APPLICATION = "argoApplication"
102
+ }
99
103
  interface EnvironmentConfigType {
100
104
  id: number;
101
105
  status: number;
@@ -28,7 +28,7 @@ export interface CustomTagType {
28
28
  }
29
29
  export declare enum ReleaseMode {
30
30
  NEW_DEPLOYMENT = "create",
31
- MIGRATE_HELM = "link"
31
+ MIGRATE_EXTERNAL_APPS = "link"
32
32
  }
33
33
  export interface CDFormType {
34
34
  name: string;
@@ -518,6 +518,14 @@ export interface StatusFilterButtonType {
518
518
  handleFilterClick?: (selectedFilter: string) => void;
519
519
  maxInlineFiltersCount?: number;
520
520
  }
521
+ export declare enum NodeStatusDTO {
522
+ Healthy = "Healthy",
523
+ Progressing = "Progressing",
524
+ Unknown = "Unknown",
525
+ Suspended = "Suspended",
526
+ Degraded = "Degraded",
527
+ Missing = "Missing"
528
+ }
521
529
  export declare enum NodeStatus {
522
530
  Degraded = "degraded",
523
531
  Healthy = "healthy",
@@ -1,3 +1,3 @@
1
1
  import { GenericSectionErrorStateProps } from './types';
2
- declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, }: GenericSectionErrorStateProps) => JSX.Element;
2
+ declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps) => JSX.Element;
3
3
  export default GenericSectionErrorState;
@@ -1,4 +1,6 @@
1
- export interface GenericSectionErrorStateProps {
1
+ import { ReactNode } from 'react';
2
+ import { ProgressingProps } from '../../../Common/Types';
3
+ export type GenericSectionErrorStateProps = {
2
4
  /**
3
5
  * Handler for reloading the section
4
6
  */
@@ -16,11 +18,11 @@ export interface GenericSectionErrorStateProps {
16
18
  /**
17
19
  * @default 'We could not load the information on this page.'
18
20
  */
19
- subTitle?: string;
21
+ subTitle?: ReactNode;
20
22
  /**
21
23
  * @default 'Please reload or try again later'
22
24
  */
23
- description?: string;
25
+ description?: ReactNode;
24
26
  /**
25
27
  * @default 'Reload'
26
28
  */
@@ -29,10 +31,21 @@ export interface GenericSectionErrorStateProps {
29
31
  * to be applied on parent div
30
32
  */
31
33
  rootClassName?: string;
34
+ } & ({
35
+ /**
36
+ * If provided, would render the Progressing component with given props instead of error icon
37
+ */
38
+ progressingProps: ProgressingProps;
39
+ useInfoIcon?: never;
40
+ } | {
41
+ progressingProps?: never;
32
42
  /**
33
43
  * If true, info icon would be used instead of error
34
44
  *
35
45
  * @default false
36
46
  */
37
- useInfoIcon?: boolean;
38
- }
47
+ useInfoIcon: boolean;
48
+ } | {
49
+ progressingProps?: never;
50
+ useInfoIcon?: never;
51
+ });
@@ -22,9 +22,18 @@ export interface MainContext {
22
22
  };
23
23
  isAirgapped: boolean;
24
24
  isSuperAdmin: boolean;
25
+ featureGitOpsFlags: {
26
+ isFeatureGitOpsEnabled: boolean;
27
+ /**
28
+ *
29
+ */
30
+ isFeatureUserDefinedGitOpsEnabled: boolean;
31
+ /**
32
+ * Feature flag for Migrate to devtron from argo cd
33
+ */
34
+ isFeatureArgoCdMigrationEnabled: boolean;
35
+ };
25
36
  isManifestScanningEnabled: boolean;
26
- isOrgLevelRBACViewEnforced: boolean;
27
- viewIsPipelineRBACConfiguredNode: ReactNode;
28
37
  }
29
38
  export interface MainContextProviderProps {
30
39
  children: ReactNode;
@@ -1,6 +1,4 @@
1
- import { GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } from './types';
1
+ import { GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
2
2
  export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
3
3
  export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
4
4
  export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
5
- export declare const getUserPreferences: () => Promise<UserPreferencesType>;
6
- export declare const updateUserPreferences: (updatedUserPreferences: UserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
@@ -1,6 +1,5 @@
1
1
  import { getUrlWithSearchParams } from '../../Common';
2
- import { PolicyKindType, ResourceKindType, ResourceVersionType, ViewIsPipelineRBACConfiguredRadioTabs } from '../types';
3
- import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
2
+ import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
4
3
  export interface ClusterType {
5
4
  id: number;
6
5
  name: string;
@@ -29,18 +28,4 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
29
28
  }
30
29
  export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
31
30
  }
32
- export interface GetUserPreferencesQueryParamsType {
33
- key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
34
- }
35
- export interface GetUserPreferencesParsedDTO {
36
- viewPermittedEnvOnly?: boolean;
37
- }
38
- export interface UpdateUserPreferencesParsedValueType extends GetUserPreferencesParsedDTO {
39
- }
40
- export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
41
- value: string;
42
- }
43
- export interface UserPreferencesType {
44
- pipelineRBACViewSelectedTab: ViewIsPipelineRBACConfiguredRadioTabs;
45
- }
46
31
  export {};
@@ -824,13 +824,4 @@ export declare const TriggerType: {
824
824
  readonly Auto: "AUTOMATIC";
825
825
  readonly Manual: "MANUAL";
826
826
  };
827
- export declare enum ViewIsPipelineRBACConfiguredRadioTabs {
828
- ALL_ENVIRONMENTS = "All environments",
829
- ACCESS_ONLY = "Access only"
830
- }
831
- export interface EnvironmentDataValuesDTO {
832
- isAirGapEnvironment: boolean;
833
- isManifestScanningEnabled: boolean;
834
- canOnlyViewPermittedEnvOrgLevel: boolean;
835
- }
836
827
  export {};
package/dist/index.d.ts CHANGED
@@ -88,11 +88,6 @@ export interface customEnv {
88
88
  * @default false
89
89
  */
90
90
  FEATURE_EXPERIMENTAL_THEMING_ENABLE?: boolean;
91
- /**
92
- * If true, only pipelines to which the user has access will be shown across the application
93
- * @default false
94
- */
95
- FEATURE_DEFAULT_AUTHENTICATED_VIEW_ENABLE?: boolean;
96
91
  }
97
92
  declare global {
98
93
  interface Window {