@devtron-labs/devtron-fe-common-lib 0.6.0-patch-1-beta-1 → 0.6.0-patch-1-beta-3

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.
@@ -45,6 +45,7 @@ export declare const URLS: {
45
45
  GLOBAL_CONFIG_SCOPED_VARIABLES: string;
46
46
  GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
47
47
  NETWORK_STATUS_INTERFACE: string;
48
+ RESOURCE_BROWSER: string;
48
49
  };
49
50
  export declare const ROUTES: {
50
51
  APP: string;
@@ -91,7 +92,6 @@ export declare const ROUTES: {
91
92
  DEPLOYMENT_CHARTS_LIST: string;
92
93
  USER_LIST_MIN: string;
93
94
  CONFIG_DATA: string;
94
- K8S_RESOURCE_LIST: string;
95
95
  };
96
96
  export declare enum KEY_VALUE {
97
97
  KEY = "key",
@@ -121,4 +121,9 @@ export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
121
121
  export declare function asyncWrap(promise: any): any[];
122
122
  export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
123
123
  export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
124
+ export declare const getSanitizedIframe: (iframeString: string) => string;
125
+ /**
126
+ * This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
127
+ */
128
+ export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
124
129
  export {};
@@ -18,26 +18,3 @@ export interface K8SObjectBaseType {
18
18
  name: string;
19
19
  isExpanded: boolean;
20
20
  }
21
- interface K8sRequestResourceIdentifierType {
22
- groupVersionKind: GVKType;
23
- namespace?: string;
24
- name?: string;
25
- }
26
- interface ResourceListPayloadK8sRequestType {
27
- resourceIdentifier: K8sRequestResourceIdentifierType;
28
- patch?: string;
29
- forceDelete?: boolean;
30
- }
31
- export interface K8sResourceListPayloadType {
32
- clusterId: number;
33
- filter?: string;
34
- k8sRequest: ResourceListPayloadK8sRequestType;
35
- }
36
- export type K8sResourceDetailDataType = {
37
- [key: string]: string | number | object;
38
- };
39
- export interface K8sResourceDetailType {
40
- headers: string[];
41
- data: K8sResourceDetailDataType[];
42
- }
43
- export {};
@@ -1,3 +1,2 @@
1
1
  export * from './ResourceBrowser.Types';
2
2
  export * from './Helper';
3
- export * from './service';
@@ -1,3 +1,4 @@
1
+ import { Dayjs } from 'dayjs';
1
2
  import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
2
3
  import { KeyValueListType } from './Components';
3
4
  import { EnvironmentTypeEnum, PatchOperationType } from './constants';
@@ -84,7 +85,8 @@ export declare enum Nodes {
84
85
  PodDisruptionBudget = "PodDisruptionBudget",
85
86
  Event = "Event",
86
87
  Namespace = "Namespace",
87
- Overview = "Overview"
88
+ Overview = "Overview",
89
+ MonitoringDashboard = "MonitoringDashboard"
88
90
  }
89
91
  export type NodeType = keyof typeof Nodes;
90
92
  export interface Node {
@@ -579,6 +581,7 @@ export declare enum ConfigurationType {
579
581
  export interface BaseURLParams {
580
582
  appId: string;
581
583
  envId: string;
584
+ clusterId: string;
582
585
  }
583
586
  export interface ConfigKeysWithLockType {
584
587
  config: string[];
@@ -625,4 +628,29 @@ export interface CustomRoleAndMeta {
625
628
  possibleRolesMetaForCluster: MetaPossibleRoles;
626
629
  possibleRolesMetaForJob: MetaPossibleRoles;
627
630
  }
631
+ interface CommonTabArgsType {
632
+ name: string;
633
+ kind?: string;
634
+ url: string;
635
+ isSelected: boolean;
636
+ title?: string;
637
+ isDeleted?: boolean;
638
+ position: number;
639
+ iconPath?: string;
640
+ dynamicTitle?: string;
641
+ showNameOnSelect?: boolean;
642
+ /**
643
+ * @default false
644
+ */
645
+ hideName?: boolean;
646
+ isAlive?: boolean;
647
+ lastSyncMoment?: Dayjs;
648
+ componentKey?: string;
649
+ }
650
+ export interface InitTabType extends CommonTabArgsType {
651
+ idPrefix: string;
652
+ }
653
+ export interface DynamicTabType extends CommonTabArgsType {
654
+ id: string;
655
+ }
628
656
  export {};
@@ -42,3 +42,4 @@ export declare const validateSemanticVersioning: (version: string) => Validation
42
42
  */
43
43
  export declare const validateDisplayName: (name: string) => ValidationResponseType;
44
44
  export declare const validateJSON: (json: string) => ValidationResponseType;
45
+ export declare const validateIframe: (input: string) => ValidationResponseType;