@devtron-labs/devtron-fe-common-lib 1.7.5-beta-2 → 1.7.5

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.
@@ -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
  }
@@ -23,8 +23,6 @@ export interface MainContext {
23
23
  isAirgapped: boolean;
24
24
  isSuperAdmin: boolean;
25
25
  isManifestScanningEnabled: boolean;
26
- isOrgLevelRBACViewEnforced: boolean;
27
- viewIsPipelineRBACConfiguredNode: ReactNode;
28
26
  }
29
27
  export interface MainContextProviderProps {
30
28
  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,15 +824,6 @@ 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 type ComponentLayoutType = 'row' | 'column';
837
828
  export interface BorderConfigType {
838
829
  /**
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 {