@devtron-labs/devtron-fe-common-lib 0.5.9 → 0.6.0-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.
@@ -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;
@@ -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 {};
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { TippyProps } from '@tippyjs/react';
3
- export interface CollapsibleListItem {
3
+ import { NavLinkProps } from 'react-router-dom';
4
+ export interface CollapsibleListItem extends Pick<NavLinkProps, 'isActive'> {
4
5
  /**
5
6
  * The title of the list item.
6
7
  */
@@ -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,9 @@ 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",
90
+ UpgradeCluster = "UpgradeCluster"
88
91
  }
89
92
  export type NodeType = keyof typeof Nodes;
90
93
  export interface Node {
@@ -579,6 +582,7 @@ export declare enum ConfigurationType {
579
582
  export interface BaseURLParams {
580
583
  appId: string;
581
584
  envId: string;
585
+ clusterId: string;
582
586
  }
583
587
  export interface ConfigKeysWithLockType {
584
588
  config: string[];
@@ -625,4 +629,29 @@ export interface CustomRoleAndMeta {
625
629
  possibleRolesMetaForCluster: MetaPossibleRoles;
626
630
  possibleRolesMetaForJob: MetaPossibleRoles;
627
631
  }
632
+ interface CommonTabArgsType {
633
+ name: string;
634
+ kind?: string;
635
+ url: string;
636
+ isSelected: boolean;
637
+ title?: string;
638
+ isDeleted?: boolean;
639
+ position: number;
640
+ iconPath?: string;
641
+ dynamicTitle?: string;
642
+ showNameOnSelect?: boolean;
643
+ /**
644
+ * @default false
645
+ */
646
+ hideName?: boolean;
647
+ isAlive?: boolean;
648
+ lastSyncMoment?: Dayjs;
649
+ componentKey?: string;
650
+ }
651
+ export interface InitTabType extends CommonTabArgsType {
652
+ idPrefix: string;
653
+ }
654
+ export interface DynamicTabType extends CommonTabArgsType {
655
+ id: string;
656
+ }
628
657
  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;
@@ -1,7 +1,7 @@
1
1
  var Fe = Object.defineProperty;
2
2
  var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as je } from "./index-BdtnSW-i.js";
4
+ import { m as je } from "./index-B5cQAOGV.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as f } from "./index-BdtnSW-i.js";
1
+ import { m as f } from "./index-B5cQAOGV.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-BdtnSW-i.js";
1
+ import { m as l } from "./index-B5cQAOGV.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-BdtnSW-i.js";
1
+ import { m as s } from "./index-B5cQAOGV.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var Be = Object.defineProperty;
2
2
  var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as qe } from "./index-BdtnSW-i.js";
4
+ import { m as qe } from "./index-B5cQAOGV.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)