@devtron-labs/devtron-fe-common-lib 1.7.8 → 1.7.9
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.
- package/dist/{@code-editor-CPcwA7l4.js → @code-editor-Ddj_R6r2.js} +3750 -3718
- package/dist/{@common-rjsf-upqrGf3U.js → @common-rjsf-C-0OHnSy.js} +1 -1
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +4 -0
- package/dist/Shared/Providers/types.d.ts +2 -0
- package/dist/Shared/Services/common.service.d.ts +3 -1
- package/dist/Shared/Services/constants.d.ts +1 -0
- package/dist/Shared/Services/types.d.ts +16 -1
- package/dist/Shared/types.d.ts +9 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +330 -327
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as t, J as P } from "./@vendor-CIA81cZg.js";
|
2
2
|
import R, { 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 y, d as S, S as J } from "./@code-editor-
|
4
|
+
import { T as v, c as H, a as U, i as k, b as y, d as S, S as J } from "./@code-editor-Ddj_R6r2.js";
|
5
5
|
import M, { components as A } from "react-select";
|
6
6
|
import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as C, getTemplate as B, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as I, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SegmentedControlProps } from './types';
|
2
|
-
declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, }: SegmentedControlProps) => JSX.Element;
|
2
|
+
declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, isControlled, }: SegmentedControlProps) => JSX.Element;
|
3
3
|
export default SegmentedControl;
|
@@ -23,6 +23,8 @@ export interface MainContext {
|
|
23
23
|
isAirgapped: boolean;
|
24
24
|
isSuperAdmin: boolean;
|
25
25
|
isManifestScanningEnabled: boolean;
|
26
|
+
isOrgLevelRBACViewEnforced: boolean;
|
27
|
+
viewIsPipelineRBACConfiguredNode: ReactNode;
|
26
28
|
}
|
27
29
|
export interface MainContextProviderProps {
|
28
30
|
children: ReactNode;
|
@@ -1,4 +1,6 @@
|
|
1
|
-
import { GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
|
1
|
+
import { GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } 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>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const USER_PREFERENCES_ATTRIBUTE_KEY = "userPreferences";
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { getUrlWithSearchParams } from '../../Common';
|
2
|
-
import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
|
2
|
+
import { PolicyKindType, ResourceKindType, ResourceVersionType, ViewIsPipelineRBACConfiguredRadioTabs } from '../types';
|
3
|
+
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
3
4
|
export interface ClusterType {
|
4
5
|
id: number;
|
5
6
|
name: string;
|
@@ -28,4 +29,18 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
|
|
28
29
|
}
|
29
30
|
export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
|
30
31
|
}
|
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
|
+
}
|
31
46
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
@@ -824,6 +824,15 @@ 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
|
+
}
|
827
836
|
export type ComponentLayoutType = 'row' | 'column';
|
828
837
|
export interface BorderConfigType {
|
829
838
|
/**
|
package/dist/index.d.ts
CHANGED
@@ -77,6 +77,11 @@ export interface customEnv {
|
|
77
77
|
* @default false
|
78
78
|
*/
|
79
79
|
FEATURE_EXPERIMENTAL_THEMING_ENABLE?: boolean;
|
80
|
+
/**
|
81
|
+
* If true, only pipelines to which the user has access will be shown across the application
|
82
|
+
* @default false
|
83
|
+
*/
|
84
|
+
FEATURE_DEFAULT_AUTHENTICATED_VIEW_ENABLE?: boolean;
|
80
85
|
/**
|
81
86
|
* Enable Image promotion feature
|
82
87
|
*
|