@devtron-labs/devtron-fe-common-lib 1.2.17-beta-4 → 1.2.17-beta-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.
@@ -2,7 +2,7 @@ import { j as n, J as A } from "./@vendor-BG3OpQCq.js";
2
2
  import E, { forwardRef as $ } from "react";
3
3
  import L, { getDefaultRegistry as k } from "@rjsf/core";
4
4
  import D from "@rjsf/validator-ajv8";
5
- import { T as y, c as H, a as J, d as w } from "./@code-editor-CYQLzc_i.js";
5
+ import { T as y, c as H, a as J, d as w } from "./@code-editor-DqvhicYm.js";
6
6
  import M, { components as O } from "react-select";
7
7
  import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as U, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as V, TranslatableString as q, titleId as K, canExpand as Y, deepEquals as z } from "@rjsf/utils";
8
8
  import { ReactComponent as G } from "./assets/ic-chevron-down.fc70d7a7.svg";
@@ -1,6 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
3
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType } from './Types';
3
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, GlobalVariableOptionType } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
6
6
  interface UserRole extends ResponseType {
@@ -16,7 +16,6 @@ export declare const SourceTypeMap: {
16
16
  };
17
17
  export declare function getUserRole(appName?: string): Promise<UserRole>;
18
18
  export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType<any>>;
19
- export declare const sanitizeUserApprovalMetadata: (userApprovalMetadata: UserApprovalMetadataType) => UserApprovalMetadataType;
20
19
  export declare const parseRuntimeParams: (response: RuntimeParamsAPIResponseType) => RuntimePluginVariables[];
21
20
  export declare const processCDMaterialServiceResponse: (cdMaterialsResult: any, stage: DeploymentNodeType, offset: number, filter: CDMaterialFilterQuery, disableDefaultSelection?: boolean) => CDMaterialResponseType;
22
21
  export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
@@ -10,7 +10,7 @@ interface ConditionalWrapper<T> {
10
10
  children: T;
11
11
  }
12
12
  export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
13
- export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | -1 | 0;
13
+ export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 0 | 1 | -1;
14
14
  export declare const stopPropagation: (event: any) => void;
15
15
  export declare const preventDefault: (event: SyntheticEvent) => void;
16
16
  export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
@@ -2,4 +2,5 @@ export declare const FALLBACK_ENTITY: {
2
2
  color: string;
3
3
  label: string;
4
4
  value: number;
5
+ proportionalValue: string;
5
6
  };
@@ -2,10 +2,12 @@ export type Entity = {
2
2
  color: string;
3
3
  label: string;
4
4
  value: number;
5
+ proportionalValue?: string;
5
6
  };
6
7
  export interface SegmentedBarChartProps {
7
8
  entities: NonNullable<Entity[]>;
8
9
  rootClassName?: string;
9
10
  countClassName?: string;
10
11
  labelClassName?: string;
12
+ isProportional?: boolean;
11
13
  }
@@ -1,5 +1,6 @@
1
1
  import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObject } from 'react';
2
2
  import { TippyProps } from '@tippyjs/react';
3
+ import { Placement } from 'tippy.js';
3
4
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
5
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
6
  import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity } from '../Shared';
@@ -73,7 +74,7 @@ export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
73
74
  noHeadingBorder?: boolean;
74
75
  infoTextHeading?: string;
75
76
  hideHeading?: boolean;
76
- placement?: TippyProps['placement'];
77
+ placement?: Placement;
77
78
  className?: string;
78
79
  Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
79
80
  iconPath?: string;
@@ -274,6 +275,21 @@ export declare enum ManualApprovalType {
274
275
  any = "ANY",
275
276
  notConfigured = "NOT_CONFIGURED"
276
277
  }
278
+ export interface UserGroupApproverType {
279
+ email: string;
280
+ hasAccess: boolean;
281
+ }
282
+ export interface ImageApprovalPolicyUserGroupDataType {
283
+ dataStore: Record<string, UserGroupApproverType>;
284
+ requiredCount: number;
285
+ emails: string[];
286
+ }
287
+ export interface ImageApprovalPolicyType {
288
+ isPolicyConfigured: boolean;
289
+ specificUsersData: ImageApprovalPolicyUserGroupDataType;
290
+ userGroupData: Record<string, ImageApprovalPolicyUserGroupDataType>;
291
+ validGroups: string[];
292
+ }
277
293
  export type ImageApprovalUsersInfoDTO = Record<string, Pick<UserGroupDTO, 'identifier' | 'name'>[]>;
278
294
  export interface UserApprovalConfigType {
279
295
  type: ManualApprovalType;
@@ -286,6 +302,13 @@ export interface UserApprovalConfigType {
286
302
  requiredCount: number;
287
303
  })[];
288
304
  }
305
+ export type UserApprovalConfigPayloadType = ({
306
+ type: ManualApprovalType.any;
307
+ } & Pick<UserApprovalConfigType, 'requiredCount'>) | ({
308
+ type: ManualApprovalType.specific;
309
+ } & Pick<UserApprovalConfigType, 'userGroups' | 'specificUsers'>) | {
310
+ type: ManualApprovalType.notConfigured;
311
+ };
289
312
  interface ApprovalUserDataType {
290
313
  dataId: number;
291
314
  userActionTime: string;
@@ -295,45 +318,12 @@ interface ApprovalUserDataType {
295
318
  userResponse: number;
296
319
  userGroups?: Pick<UserGroupDTO, 'identifier' | 'name'>[];
297
320
  }
298
- export interface UserApprovalInfo {
299
- requiredCount: number;
300
- currentCount: number;
301
- approverList: {
302
- hasApproved: boolean;
303
- canApprove: boolean;
304
- identifier: string;
305
- }[];
306
- }
307
- export declare enum ApprovalConfigDataKindType {
308
- configMap = "configuration/config-map",
309
- configSecret = "configuration/config-secret",
310
- deploymentTemplate = "configuration/deployment-template",
311
- deploymentTrigger = "approval/deployment"
312
- }
313
- export interface ApprovalConfigDataType extends Pick<UserApprovalInfo, 'currentCount' | 'requiredCount'> {
314
- kind: ApprovalConfigDataKindType | null;
315
- anyUserApprovedInfo: UserApprovalInfo;
316
- specificUsersApprovedInfo: UserApprovalInfo;
317
- userGroupsApprovedInfo: Pick<UserApprovalInfo, 'currentCount' | 'requiredCount'> & {
318
- userGroups: (UserApprovalInfo & {
319
- groupIdentifier: UserGroupDTO['identifier'];
320
- groupName: UserGroupDTO['name'];
321
- })[];
322
- };
323
- }
324
- export declare enum ApprovalRuntimeStateType {
325
- init = 0,
326
- requested = 1,
327
- approved = 2,
328
- consumed = 3
329
- }
330
321
  export interface UserApprovalMetadataType {
331
322
  approvalRequestId: number;
332
- approvalRuntimeState: ApprovalRuntimeStateType;
323
+ approvalRuntimeState: number;
324
+ approvedUsersData: ApprovalUserDataType[];
333
325
  requestedUserData: ApprovalUserDataType;
334
- hasCurrentUserApproved: boolean;
335
- canCurrentUserApprove: boolean;
336
- approvalConfigData: ApprovalConfigDataType;
326
+ approvalConfig?: UserApprovalConfigType;
337
327
  }
338
328
  export declare enum FilterStates {
339
329
  ALLOWED = 0,
@@ -390,6 +380,7 @@ export interface CDMaterialListModalServiceUtilProps {
390
380
  artifactId?: number;
391
381
  artifactStatus?: string;
392
382
  disableDefaultSelection?: boolean;
383
+ userApprovalConfig?: UserApprovalConfigType;
393
384
  }
394
385
  export interface CDMaterialType {
395
386
  index: number;
@@ -525,7 +516,8 @@ export interface CommonNodeAttr extends Pick<MandatoryPluginBaseStateType, 'isTr
525
516
  primaryBranchAfterRegex?: string;
526
517
  storageConfigured?: boolean;
527
518
  deploymentAppDeleteRequest?: boolean;
528
- approvalConfigData: ApprovalConfigDataType;
519
+ approvalUsers?: string[];
520
+ userApprovalConfig?: UserApprovalConfigType;
529
521
  requestedUserId?: number;
530
522
  showPluginWarning: boolean;
531
523
  helmPackageName?: string;
@@ -582,17 +574,14 @@ export interface FilterConditionsListType {
582
574
  description: string;
583
575
  conditions: FilterConditionsInfo[];
584
576
  }
585
- export interface DeploymentApprovalInfoType {
586
- eligibleApprovers: {
587
- specificUsers: Pick<UserApprovalInfo, 'approverList'>;
588
- anyUsers: Pick<UserApprovalInfo, 'approverList'>;
589
- userGroups: (Pick<ApprovalConfigDataType['userGroupsApprovedInfo']['userGroups'][number], 'groupIdentifier' | 'groupName'> & Pick<UserApprovalInfo, 'approverList'>)[];
590
- };
591
- approvalConfigData: ApprovalConfigDataType;
592
- }
593
577
  export interface CDMaterialsApprovalInfo {
578
+ approvalUsers: string[];
579
+ userApprovalConfig: UserApprovalConfigType;
594
580
  canApproverDeploy: boolean;
595
- deploymentApprovalInfo: DeploymentApprovalInfoType;
581
+ /**
582
+ * Only available incase of approvals do'nt use in cd materials or any other flow since approvalUsers are not present there
583
+ */
584
+ imageApprovalPolicyDetails: ImageApprovalPolicyType;
596
585
  }
597
586
  export interface CDMaterialsMetaInfo {
598
587
  tagsEditable: boolean;
@@ -671,6 +660,7 @@ export interface AppEnvironment {
671
660
  appStatus?: string;
672
661
  deploymentAppDeleteRequest?: boolean;
673
662
  isVirtualEnvironment?: boolean;
663
+ isProtected?: boolean;
674
664
  pipelineId?: number;
675
665
  latestCdWorkflowRunnerId?: number;
676
666
  commits?: string[];
@@ -721,6 +711,7 @@ export interface CdPipeline {
721
711
  parentPipelineType?: string;
722
712
  deploymentAppDeleteRequest?: boolean;
723
713
  deploymentAppCreated?: boolean;
714
+ userApprovalConfig?: UserApprovalConfigType;
724
715
  isVirtualEnvironment?: boolean;
725
716
  deploymentAppType: DeploymentAppTypes;
726
717
  helmPackageName?: string;
@@ -729,7 +720,6 @@ export interface CdPipeline {
729
720
  isProdEnv?: boolean;
730
721
  isGitOpsRepoNotConfigured?: boolean;
731
722
  isDeploymentBlocked?: boolean;
732
- approvalConfigData: ApprovalConfigDataType;
733
723
  }
734
724
  export interface ExternalCiConfig {
735
725
  id: number;
@@ -831,11 +821,12 @@ export interface Point {
831
821
  export interface EdgeNodeType {
832
822
  height: number;
833
823
  width: number;
824
+ userApprovalConfig?: UserApprovalConfigType;
834
825
  type?: any;
835
826
  id?: number | string;
836
827
  }
837
828
  export interface EdgeEndNodeType extends EdgeNodeType {
838
- approvalConfigData: ApprovalConfigDataType;
829
+ userApprovalConfig?: UserApprovalConfigType;
839
830
  }
840
831
  /**
841
832
  * Search params for sorting configuration
@@ -1,5 +1,5 @@
1
1
  import { BuildStageType, FormType } from '../../../../../Common/CIPipeline.Types';
2
- import { DeploymentAppTypes } from '../../../../../Common/Types';
2
+ import { DeploymentAppTypes, UserApprovalConfigType } from '../../../../../Common/Types';
3
3
  import { DeploymentStrategy } from '../../../../../Shared/Components';
4
4
  import { EnvListMinDTO } from '../../../../../Shared/types';
5
5
  interface ConfigSecretType {
@@ -53,6 +53,7 @@ export interface CDFormType {
53
53
  secrets: ConfigSecretType[];
54
54
  };
55
55
  requiredApprovals: string;
56
+ userApprovalConfig?: UserApprovalConfigType;
56
57
  isClusterCdActive: boolean;
57
58
  deploymentAppCreated: boolean;
58
59
  clusterId: string;
@@ -1,2 +1,2 @@
1
1
  import { FeatureDescriptionModalProps } from './types';
2
- export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig, }: FeatureDescriptionModalProps) => JSX.Element;
2
+ export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DescriptorProps } from './types';
2
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, }: DescriptorProps) => JSX.Element;
2
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, }: DescriptorProps) => JSX.Element;
3
3
  export default FeatureTitleWithInfo;
@@ -1,44 +1,17 @@
1
1
  import { default as React, ReactNode } from 'react';
2
2
  import { ImageType } from '../../../Common';
3
3
  import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
4
- interface BaseFeatureDescriptionModalProps {
4
+ export interface FeatureDescriptionModalProps {
5
+ title: string;
5
6
  renderDescriptionContent?: () => ReactNode;
7
+ closeModalText?: string;
6
8
  docLink?: string;
9
+ closeModal?: () => void;
7
10
  imageVariant?: ImageType;
8
11
  SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
9
12
  imageStyles?: React.CSSProperties;
10
13
  }
11
- type FeatureDescriptionModalWithTabsConfig = {
12
- /**
13
- * If provided, tabs are shown and have higher precedence over normal modal
14
- */
15
- tabsConfig: ({
16
- /**
17
- * Unique id of the tab
18
- */
19
- id: string;
20
- /**
21
- * Title for the tab
22
- */
23
- title: string;
24
- } & BaseFeatureDescriptionModalProps)[];
25
- } & {
26
- renderDescriptionContent?: never;
27
- docLink?: never;
28
- imageVariant?: never;
29
- SVGImage?: never;
30
- imageStyles?: never;
31
- };
32
- export type FeatureDescriptionModalProps = {
33
- title: string;
34
- closeModalText?: string;
35
- closeModal?: () => void;
36
- } & ((BaseFeatureDescriptionModalProps & {
37
- tabsConfig?: never;
38
- }) | FeatureDescriptionModalWithTabsConfig);
39
- export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'> & {
40
- tabsConfig?: never;
41
- }) | (Pick<FeatureDescriptionModalProps, 'title' | 'closeModalText' | 'closeModal'> & FeatureDescriptionModalWithTabsConfig)) & {
14
+ export interface DescriptorProps extends FeatureDescriptionModalProps {
42
15
  breadCrumbs?: Breadcrumb[];
43
16
  additionalContainerClasses?: string;
44
17
  iconClassName?: string;
@@ -53,5 +26,4 @@ export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'>
53
26
  * @default false
54
27
  */
55
28
  showInfoIcon?: boolean;
56
- };
57
- export {};
29
+ }
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { Pair } from 'yaml';
3
3
  import { StrictRJSFSchema } from '@rjsf/utils';
4
4
  import { MaterialHistoryType } from '@Shared/Services/app.types';
5
- import { MaterialInfo, SortingOrder, UserApprovalConfigType, ApprovalConfigDataType, UserApprovalInfo } from '../Common';
5
+ import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
6
6
  import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, WebhookEventNameType } from './types';
7
7
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
8
8
  interface HighlightSearchTextProps {
@@ -41,13 +41,12 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
41
41
  export declare const isTimeStringAvailable: (time: string) => boolean;
42
42
  export declare const getTimeDifference: (startTime: string, endTime: string) => string;
43
43
  export declare const getFileNameFromHeaders: (headers: Headers) => string;
44
- export declare const sanitizeUserApprovalList: (approverList: UserApprovalInfo["approverList"]) => UserApprovalInfo["approverList"];
45
- export declare const sanitizeApprovalConfigData: (approvalConfigData: ApprovalConfigDataType | null) => ApprovalConfigDataType;
44
+ export declare const sanitizeUserApprovalConfig: (userApprovalConfig: UserApprovalConfigType) => UserApprovalConfigType;
46
45
  /**
47
46
  * Manual approval is considered configured only if the type is not notConfigured
48
47
  */
49
48
  export declare const getIsManualApprovalConfigured: (userApprovalConfig?: Pick<UserApprovalConfigType, "type">) => boolean;
50
- export declare const getIsApprovalPolicyConfigured: (approvalConfigData: ApprovalConfigDataType) => boolean;
49
+ export declare const getIsManualApprovalSpecific: (userApprovalConfig?: Pick<UserApprovalConfigType, "type">) => boolean;
51
50
  /**
52
51
  * @description - Function to open a new tab with the given url
53
52
  * @param url - url to be opened in new tab
@@ -1,5 +1,5 @@
1
1
  import { OverrideMergeStrategyType } from '../../Pages/Applications';
2
- import { ReleaseTag, UserApprovalMetadataType } from '../../Common';
2
+ import { ReleaseTag } from '../../Common';
3
3
  interface WebhookDataType {
4
4
  id: number;
5
5
  eventActionType: string;
@@ -133,13 +133,6 @@ export interface DraftMetadataDTO {
133
133
  commentsCount: number;
134
134
  dataEncrypted: boolean;
135
135
  isAppAdmin: boolean;
136
- userApprovalMetadata: UserApprovalMetadataType;
137
- /**
138
- * User id of the user who has requested the data
139
- *
140
- * This would be the id of the user whose token is sent in the cookie
141
- */
142
- requestedUserId: number;
143
136
  }
144
137
  export declare enum CMSecretExternalType {
145
138
  Internal = "",
@@ -417,11 +417,4 @@ export declare const ALL_RESOURCE_KIND_FILTER = "all";
417
417
  export declare const OPEN_NEW_TICKET = "https://enterprise.devtron.ai/portal/en/newticket";
418
418
  export declare const VIEW_ALL_TICKETS = "https://enterprise.devtron.ai/portal/en/myarea";
419
419
  export declare const RAISE_ISSUE = "https://github.com/devtron-labs/devtron/issues/new/choose";
420
- export declare const TARGET_IDS: {
421
- WORKFLOW_EDITOR_CONTAINER: string;
422
- };
423
- /**
424
- * Env ID to get the data for base configuration
425
- */
426
- export declare const BASE_CONFIGURATION_ENV_ID = -1;
427
420
  export declare const DEVTRON_BASE_MAIN_ID = "devtron-base-main-identifier";
@@ -1,7 +1,6 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { ApprovalConfigDataType } from '../Common/Types';
3
- import { OptionType, CommonNodeAttr, ResponseType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
4
- import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
2
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
3
+ import { EnvironmentTypeEnum, PatchOperationType } from './constants';
5
4
  export declare enum EnvType {
6
5
  CHART = "helm_charts",
7
6
  APPLICATION = "apps"
@@ -186,7 +185,7 @@ export interface AppDetails {
186
185
  clusterName?: string;
187
186
  dockerRegistryId?: string;
188
187
  deploymentAppDeleteRequest?: boolean;
189
- isApprovalPolicyApplicable?: boolean;
188
+ userApprovalConfig?: string;
190
189
  isVirtualEnvironment?: boolean;
191
190
  imageTag?: string;
192
191
  helmPackageName?: string;
@@ -246,7 +245,7 @@ export interface WorkflowType {
246
245
  showTippy?: boolean;
247
246
  appId?: number;
248
247
  isSelected?: boolean;
249
- approvalConfiguredIdsMap?: Record<number, ApprovalConfigDataType>;
248
+ approvalConfiguredIdsMap?: Record<number, UserApprovalConfigType>;
250
249
  imageReleaseTags: string[];
251
250
  appReleaseTags?: string[];
252
251
  tagsEditable?: boolean;
@@ -419,8 +418,7 @@ export interface SeverityCount {
419
418
  export declare enum PolicyKindType {
420
419
  lockConfiguration = "lock-configuration",
421
420
  imagePromotion = "image-promotion",
422
- plugins = "plugin",
423
- approval = "approval"
421
+ plugins = "plugin"
424
422
  }
425
423
  export interface LastExecutionResultType {
426
424
  lastExecution: string;
@@ -750,16 +748,6 @@ export interface DynamicTabType extends CommonTabArgsType {
750
748
  */
751
749
  lastActiveTabId: string | null;
752
750
  }
753
- export interface ResourceApprovalPolicyConfigDTO {
754
- appId: number;
755
- envId: number;
756
- approvalConfigurations: ApprovalConfigDataType[];
757
- }
758
- export interface ResourceApprovalPolicyConfigType extends Omit<ResourceApprovalPolicyConfigDTO, 'state' | 'approvalConfigurations'> {
759
- isApprovalApplicable: boolean;
760
- approvalConfigurationMap: Record<ApprovalConfigDataType['kind'], ApprovalConfigDataType>;
761
- }
762
- export type ResourceIdToResourceApprovalPolicyConfigMapType = Record<ResourceApprovalPolicyConfigType['envId'] | typeof BASE_CONFIGURATION_ENV_ID, Pick<ResourceApprovalPolicyConfigType, 'isApprovalApplicable' | 'approvalConfigurationMap'>>;
763
751
  export interface PreventOutsideFocusProps {
764
752
  identifier: string;
765
753
  preventFocus: boolean;
@@ -15,5 +15,5 @@
15
15
  -->
16
16
 
17
17
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
18
- <path d="M13.5 6.25L13.4995 2.5005L9.75 2.5M8.99821 7.00179L13.4982 2.50179M11.5 9V13C11.5 13.1326 11.4473 13.2598 11.3536 13.3536C11.2598 13.4473 11.1326 13.5 11 13.5H3C2.86739 13.5 2.74021 13.4473 2.64645 13.3536C2.55268 13.2598 2.5 13.1326 2.5 13V5C2.5 4.86739 2.55268 4.74021 2.64645 4.64645C2.74021 4.55268 2.86739 4.5 3 4.5H7" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
18
+ <path d="M13.5 6.25L13.4995 2.5005L9.75 2.5M8.99821 7.00179L13.4982 2.50179M11.5 9V13C11.5 13.1326 11.4473 13.2598 11.3536 13.3536C11.2598 13.4473 11.1326 13.5 11 13.5H3C2.86739 13.5 2.74021 13.4473 2.64645 13.3536C2.55268 13.2598 2.5 13.1326 2.5 13V5C2.5 4.86739 2.55268 4.74021 2.64645 4.64645C2.74021 4.55268 2.86739 4.5 3 4.5H7" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
19
19
  </svg>
@@ -15,6 +15,6 @@
15
15
  -->
16
16
 
17
17
  <svg width="20.5" height="20" viewBox="0 0 20.5 24" fill="none" xmlns="http://www.w3.org/2000/svg">
18
- <path d="M12.7507 3H3.75C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75V20.25C3 20.4489 3.07902 20.6397 3.21967 20.7803C3.36032 20.921 3.55109 21 3.75 21H8.50037M12.7507 3L18.0007 8.25M12.7507 3V8.25H18.0007M18.0007 8.25V11.25" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" />
19
- <path d="M15.7818 15.4289L18.5711 18.2182M13.7894 23H11.3985C11.2928 23 11.1914 22.958 11.1167 22.8833C11.042 22.8086 11 22.7072 11 22.6015V20.3757C11 20.3234 11.0103 20.2715 11.0303 20.2232C11.0504 20.1749 11.0797 20.1309 11.1167 20.0939L17.0939 14.1167C17.1687 14.042 17.27 14 17.3757 14C17.4814 14 17.5827 14.042 17.6575 14.1167L19.8833 16.3425C19.958 16.4173 20 16.5186 20 16.6243C20 16.73 19.958 16.8313 19.8833 16.9061L13.7894 23Z" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke" />
20
- </svg>
18
+ <path d="M12.7507 3H3.75C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75V20.25C3 20.4489 3.07902 20.6397 3.21967 20.7803C3.36032 20.921 3.55109 21 3.75 21H8.50037M12.7507 3L18.0007 8.25M12.7507 3V8.25H18.0007M18.0007 8.25V11.25" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
19
+ <path d="M15.7818 15.4289L18.5711 18.2182M13.7894 23H11.3985C11.2928 23 11.1914 22.958 11.1167 22.8833C11.042 22.8086 11 22.7072 11 22.6015V20.3757C11 20.3234 11.0103 20.2715 11.0303 20.2232C11.0504 20.1749 11.0797 20.1309 11.1167 20.0939L17.0939 14.1167C17.1687 14.042 17.27 14 17.3757 14C17.4814 14 17.5827 14.042 17.6575 14.1167L19.8833 16.3425C19.958 16.4173 20 16.5186 20 16.6243C20 16.73 19.958 16.8313 19.8833 16.9061L13.7894 23Z" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
20
+ </svg>
@@ -0,0 +1,7 @@
1
+ <!--
2
+ - Copyright (c) 2024. Devtron Inc.
3
+ -->
4
+
5
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
6
+ <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 22h16M5 18h14a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1Zm8.5-5 1.945-8.557A2 2 0 0 0 13.495 2h-2.99a2 2 0 0 0-1.95 2.443L10.5 13h3Z" vector-effect="non-scaling-stroke"/>
7
+ </svg>