@devtron-labs/devtron-fe-common-lib 0.6.0-patch-1-beta-6 → 0.6.0-patch-1-beta-7
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 -1
- package/dist/Common/Helper.d.ts +0 -5
- package/dist/Common/RJSF/Form.d.ts +2 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +23 -0
- package/dist/Pages/ResourceBrowser/index.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/service.d.ts +3 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +1 -2
- package/dist/Shared/types.d.ts +1 -30
- package/dist/Shared/validations.d.ts +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-D44-W0J5.js → cssMode-NxaZD4l4.js} +1 -1
- package/dist/{freemarker2-uRXPX7Xv.js → freemarker2-CU3JZDdx.js} +1 -1
- package/dist/{handlebars-B3UkQJF7.js → handlebars-CA2jAzRM.js} +1 -1
- package/dist/{html-BCGCXH9h.js → html-CTqnLmZv.js} +1 -1
- package/dist/{htmlMode-CEqYheWj.js → htmlMode-Bd4AEmRA.js} +1 -1
- package/dist/{index-BeE-3TSy.js → index-BhnU7l78.js} +11937 -11957
- package/dist/index.js +520 -524
- package/dist/{javascript-KtDpEQP3.js → javascript-BgV-GQ1H.js} +1 -1
- package/dist/{jsonMode-P336nLCk.js → jsonMode-BCrWrwPJ.js} +1 -1
- package/dist/{liquid-Cvlusowr.js → liquid-DwIs30OK.js} +1 -1
- package/dist/{mdx-qZN3dguH.js → mdx-BQFAWqnw.js} +1 -1
- package/dist/{python-D-W_Oe_J.js → python-f0F6sP9v.js} +1 -1
- package/dist/{razor-y-pczXQ5.js → razor-DHo9ahgc.js} +1 -1
- package/dist/{tsMode-CwLRDMUx.js → tsMode-CiNDQJQU.js} +1 -1
- package/dist/{typescript-BymSbsYb.js → typescript-BLlEiqpT.js} +1 -1
- package/dist/{xml-Dmq5iYPC.js → xml-5DMPyj58.js} +1 -1
- package/dist/{yaml-DHcp0r0W.js → yaml-CDIeKeTE.js} +1 -1
- package/package.json +1 -2
- package/dist/Pages/ResourceBrowser/types.d.ts +0 -10
|
@@ -45,7 +45,6 @@ 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;
|
|
49
48
|
};
|
|
50
49
|
export declare const ROUTES: {
|
|
51
50
|
APP: string;
|
|
@@ -92,6 +91,7 @@ export declare const ROUTES: {
|
|
|
92
91
|
DEPLOYMENT_CHARTS_LIST: string;
|
|
93
92
|
USER_LIST_MIN: string;
|
|
94
93
|
CONFIG_DATA: string;
|
|
94
|
+
K8S_RESOURCE_LIST: string;
|
|
95
95
|
};
|
|
96
96
|
export declare enum KEY_VALUE {
|
|
97
97
|
KEY = "key",
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -121,9 +121,4 @@ 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;
|
|
129
124
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { default as RJSF } from '@rjsf/core';
|
|
1
2
|
import { FormProps } from './types';
|
|
2
|
-
export declare const RJSFForm: (
|
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "action" | "disabled" | "name" | "target" | "tagName" | "autoComplete" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "method" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
|
|
@@ -19,6 +19,28 @@ export interface K8SObjectBaseType {
|
|
|
19
19
|
name: string;
|
|
20
20
|
isExpanded: boolean;
|
|
21
21
|
}
|
|
22
|
+
interface K8sRequestResourceIdentifierType {
|
|
23
|
+
groupVersionKind: GVKType;
|
|
24
|
+
namespace?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
}
|
|
27
|
+
interface ResourceListPayloadK8sRequestType {
|
|
28
|
+
resourceIdentifier: K8sRequestResourceIdentifierType;
|
|
29
|
+
patch?: string;
|
|
30
|
+
forceDelete?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface K8sResourceListPayloadType {
|
|
33
|
+
clusterId: number;
|
|
34
|
+
filter?: string;
|
|
35
|
+
k8sRequest: ResourceListPayloadK8sRequestType;
|
|
36
|
+
}
|
|
37
|
+
export type K8sResourceDetailDataType = {
|
|
38
|
+
[key: string]: string | number | object;
|
|
39
|
+
};
|
|
40
|
+
export interface K8sResourceDetailType {
|
|
41
|
+
headers: string[];
|
|
42
|
+
data: K8sResourceDetailDataType[];
|
|
43
|
+
}
|
|
22
44
|
export interface BulkSelectionActionWidgetProps {
|
|
23
45
|
count: number;
|
|
24
46
|
handleOpenBulkDeleteModal: () => void;
|
|
@@ -42,3 +64,4 @@ export type BulkOperationModalProps = {
|
|
|
42
64
|
shouldAllowForceOperation?: true;
|
|
43
65
|
};
|
|
44
66
|
export type BulkOperationModalState = BulkOperationModalProps['operationType'] | 'closed';
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ResponseType } from '../../Common/Types';
|
|
2
|
+
import { K8sResourceDetailType, K8sResourceListPayloadType } from './ResourceBrowser.Types';
|
|
3
|
+
export declare const getK8sResourceList: (resourceListPayload: K8sResourceListPayloadType, signal?: AbortSignal) => Promise<ResponseType<K8sResourceDetailType>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
|
3
|
-
|
|
4
|
-
export interface CollapsibleListItem extends Pick<NavLinkProps, 'isActive'> {
|
|
3
|
+
export interface CollapsibleListItem {
|
|
5
4
|
/**
|
|
6
5
|
* The title of the list item.
|
|
7
6
|
*/
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Dayjs } from 'dayjs';
|
|
2
1
|
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
|
|
3
2
|
import { KeyValueListType } from './Components';
|
|
4
3
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
@@ -85,9 +84,7 @@ export declare enum Nodes {
|
|
|
85
84
|
PodDisruptionBudget = "PodDisruptionBudget",
|
|
86
85
|
Event = "Event",
|
|
87
86
|
Namespace = "Namespace",
|
|
88
|
-
Overview = "Overview"
|
|
89
|
-
MonitoringDashboard = "MonitoringDashboard",
|
|
90
|
-
UpgradeCluster = "UpgradeCluster"
|
|
87
|
+
Overview = "Overview"
|
|
91
88
|
}
|
|
92
89
|
export type NodeType = keyof typeof Nodes;
|
|
93
90
|
export interface Node {
|
|
@@ -582,7 +579,6 @@ export declare enum ConfigurationType {
|
|
|
582
579
|
export interface BaseURLParams {
|
|
583
580
|
appId: string;
|
|
584
581
|
envId: string;
|
|
585
|
-
clusterId: string;
|
|
586
582
|
}
|
|
587
583
|
export interface ConfigKeysWithLockType {
|
|
588
584
|
config: string[];
|
|
@@ -629,29 +625,4 @@ export interface CustomRoleAndMeta {
|
|
|
629
625
|
possibleRolesMetaForCluster: MetaPossibleRoles;
|
|
630
626
|
possibleRolesMetaForJob: MetaPossibleRoles;
|
|
631
627
|
}
|
|
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
|
-
}
|
|
657
628
|
export {};
|
|
@@ -42,4 +42,3 @@ 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;
|