@devtron-labs/devtron-fe-common-lib 0.6.2-beta-7 → 0.6.2-beta-8
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/Common/Constants.d.ts +1 -0
- package/dist/Common/Helper.d.ts +5 -0
- package/dist/Pages/ResourceBrowser/index.d.ts +1 -0
- package/dist/Pages/ResourceBrowser/types.d.ts +10 -0
- package/dist/Shared/types.d.ts +29 -1
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/{cssMode-BeOqUf-u.js → cssMode-DhpyNpwP.js} +1 -1
- package/dist/{freemarker2-Dou8wYrw.js → freemarker2-gbI4cQff.js} +1 -1
- package/dist/{handlebars-vxI9Dv3q.js → handlebars-DdZNMWTq.js} +1 -1
- package/dist/{html-CCx7qZKl.js → html-PjuSSnfI.js} +1 -1
- package/dist/{htmlMode-C4mmML5b.js → htmlMode-C4kkX3dn.js} +1 -1
- package/dist/{index-BmXMqx6e.js → index-C5OcP-w_.js} +14995 -14930
- package/dist/index.js +525 -520
- package/dist/{javascript-Chz7FGm-.js → javascript-DylBlq-c.js} +1 -1
- package/dist/{jsonMode-BiRXhzru.js → jsonMode-DGUKxP-_.js} +1 -1
- package/dist/{liquid-3IhtqszZ.js → liquid-De1NZMXh.js} +1 -1
- package/dist/{mdx-CuLOc5Vm.js → mdx-DtRpni0T.js} +1 -1
- package/dist/{python-D52x4OXV.js → python-r2uqTtWV.js} +1 -1
- package/dist/{razor-DsGaDP3f.js → razor-B2XtTIGH.js} +1 -1
- package/dist/{tsMode-BGje_PPi.js → tsMode-CCTMo4AQ.js} +1 -1
- package/dist/{typescript-D5-YqLSs.js → typescript-CmtQYW40.js} +1 -1
- package/dist/{xml-dMG1PR-K.js → xml-BFtOOM-U.js} +1 -1
- package/dist/{yaml-CV5aNzFJ.js → yaml-JtuT49w5.js} +1 -1
- package/package.json +2 -1
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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-
|
|
4
|
+
import { m as je } from "./index-C5OcP-w_.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-
|
|
1
|
+
import { m as f } from "./index-C5OcP-w_.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-
|
|
1
|
+
import { m as l } from "./index-C5OcP-w_.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-
|
|
1
|
+
import { m as s } from "./index-C5OcP-w_.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-
|
|
4
|
+
import { m as qe } from "./index-C5OcP-w_.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|