@devtron-labs/devtron-fe-common-lib 1.13.0 → 1.14.0-pre-0
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-rjsf-BUC7SZkT.js → @code-editor-Bk1EiJbr.js} +15787 -15105
- package/dist/@common-rjsf-N-B6bUkj.js +617 -0
- package/dist/{@framer-motion-BL6-Hrrc.js → @framer-motion-u7P-WzAO.js} +1 -1
- package/dist/{@react-dates-CIHHgq4p.js → @react-dates-B9MPAm_X.js} +14 -14
- package/dist/{@react-select-BVKpsqGO.js → @react-select-BjvVd-sE.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CjKfeUxB.js → @react-virtualized-sticky-tree-B8m_4lZW.js} +1 -1
- package/dist/{@vendor-CekuMgQx.js → @vendor-BtL2Znh4.js} +45811 -45821
- package/dist/Common/Checkbox/Checkbox.d.ts +2 -0
- package/dist/Common/Checkbox/index.d.ts +1 -0
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/Constants.d.ts +1 -11
- package/dist/Common/Drawer/index.d.ts +1 -0
- package/dist/Common/EmptyState/index.d.ts +2 -0
- package/dist/Common/Helper.d.ts +5 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/SegmentedBarChart/types.d.ts +11 -2
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/Toggle/Toggle.d.ts +4 -1
- package/dist/Common/Types.d.ts +12 -6
- package/dist/Common/index.d.ts +3 -3
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +8 -0
- package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +43 -0
- package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +1 -2
- package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +2 -0
- package/dist/Shared/Components/ActionMenu/index.d.ts +2 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +88 -11
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +275 -0
- package/dist/Shared/Components/ActionMenu/utils.d.ts +7 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +2 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/constants.d.ts +4 -0
- package/dist/Shared/Components/AppStatusModal/index.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/service.d.ts +4 -0
- package/dist/Shared/Components/AppStatusModal/types.d.ts +84 -0
- package/dist/Shared/Components/AppStatusModal/utils.d.ts +8 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +2 -2
- package/dist/Shared/Components/Button/types.d.ts +3 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +11 -77
- package/dist/Shared/Components/CICDHistory/utils.d.ts +7 -3
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +10 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +3 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +22 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +20 -0
- package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
- package/dist/Shared/Components/Error/types.d.ts +4 -0
- package/dist/Shared/Components/Error/utils.d.ts +1 -0
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +5 -2
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -3
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +10 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +2 -0
- package/dist/Shared/Components/Header/HelpButton.d.ts +2 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/constants.d.ts +5 -4
- package/dist/Shared/Components/Header/types.d.ts +20 -14
- package/dist/Shared/Components/Header/utils.d.ts +5 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +40 -1
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +30 -8
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
- package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/License/index.d.ts +1 -1
- package/dist/Shared/Components/License/utils.d.ts +2 -1
- package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +3 -0
- package/dist/Shared/Components/LoginBanner/index.d.ts +2 -0
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +4 -2
- package/dist/Shared/Components/Popover/Popover.component.d.ts +8 -0
- package/dist/Shared/Components/Popover/index.d.ts +3 -0
- package/dist/Shared/Components/Popover/types.d.ts +105 -0
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +2 -0
- package/dist/Shared/Components/Popover/utils.d.ts +92 -0
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +2 -0
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +4 -0
- package/dist/Shared/Components/StatusComponent/types.d.ts +2 -1
- package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +33 -7
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -2
- package/dist/Shared/Components/index.d.ts +2 -2
- package/dist/Shared/DocLink/DocLink.d.ts +2 -0
- package/dist/Shared/DocLink/constants.d.ts +91 -0
- package/dist/Shared/DocLink/index.d.ts +3 -0
- package/dist/Shared/DocLink/types.d.ts +11 -0
- package/dist/Shared/DocLink/utils.d.ts +2 -0
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +11 -1
- package/dist/Shared/constants.d.ts +18 -24
- package/dist/Shared/types.d.ts +110 -2
- package/dist/assets/@code-editor.css +1 -0
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/empty-create.661d9355.png +0 -0
- package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
- package/dist/assets/ic-app-template.82736707.svg +23 -0
- package/dist/assets/ic-arrow-square-out.59bb549a.svg +3 -0
- package/dist/assets/ic-azure-aks.a9e437d5.svg +46 -0
- package/dist/assets/{ic-arrow-square-out.3d1a0d41.svg → ic-bulk-check.0f698efa.svg} +4 -2
- package/dist/assets/ic-bulk-check.99e92f7a.svg +21 -0
- package/dist/assets/ic-caret-down-small.7c4f88bf.svg +3 -0
- package/dist/assets/ic-caret-right.0ff813c2.svg +3 -0
- package/dist/assets/ic-celebration.77350694.svg +238 -0
- package/dist/assets/ic-chat-circle-online.51348da5.svg +4 -0
- package/dist/assets/{ic-medal.a2e911f5.svg → ic-checkbox-hover.0151d832.svg} +4 -3
- package/dist/assets/{ic-k8s-job.f4414c10.svg → ic-checkbox-hover.93e8d66a.svg} +4 -3
- package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +22 -0
- package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +22 -0
- package/dist/assets/ic-checkbox-selected.47444fab.svg +20 -0
- package/dist/assets/ic-checkbox-selected.c5539d6f.svg +20 -0
- package/dist/assets/{ic-check-grey.f556e371.svg → ic-checkbox-unselected.8054e3d7.svg} +2 -4
- package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +19 -0
- package/dist/assets/ic-cloud-vms.27ea954e.svg +5 -0
- package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
- package/dist/assets/ic-delete-dots.5380e0d0.svg +62 -0
- package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
- package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
- package/dist/assets/ic-disconnect.2ad261fc.svg +3 -0
- package/dist/assets/ic-discord-fill.103b579a.svg +3 -0
- package/dist/assets/ic-edit.3249ed32.svg +3 -0
- package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +3 -0
- package/dist/assets/ic-enterprise-tag.209dd129.svg +43 -0
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +3 -0
- package/dist/assets/ic-expand-sm.a9a724f8.svg +3 -0
- package/dist/assets/ic-file-edit.96a172c7.svg +3 -0
- package/dist/assets/ic-file.c3c45e13.svg +3 -0
- package/dist/assets/ic-files.b0ebea46.svg +3 -0
- package/dist/assets/ic-gift-gradient.7690a246.svg +9 -0
- package/dist/assets/ic-gift.9b048fc7.svg +3 -0
- package/dist/assets/ic-gitlab.ac331d67.svg +31 -0
- package/dist/assets/ic-google-gke.07314724.svg +9 -0
- package/dist/assets/ic-install.28c3beec.svg +3 -0
- package/dist/assets/ic-k3s.7f4bf72d.svg +3 -0
- package/dist/assets/ic-kind.bd8ee992.svg +9 -0
- package/dist/assets/ic-laptop.485e21b4.svg +3 -0
- package/dist/assets/ic-man-on-rocket.7f67e914.svg +94 -0
- package/dist/assets/ic-megaphone-left.6b2a00b7.svg +3 -0
- package/dist/assets/ic-megaphone-right.9d6bcd36.svg +3 -0
- package/dist/assets/ic-minikube.d9ff1575.svg +9 -0
- package/dist/assets/ic-mobile.7c649251.svg +4 -0
- package/dist/assets/ic-path.d4fef3b0.svg +3 -0
- package/dist/assets/ic-sparkle-color.01c0be88.svg +1 -0
- package/dist/assets/ic-terminal.d875cce7.svg +3 -0
- package/dist/assets/ic-thermometer.1bc48079.svg +3 -0
- package/dist/assets/ic-ubuntu.fa47508f.svg +4 -0
- package/dist/assets/ic-user-circle.7d7152fa.svg +3 -0
- package/dist/assets/ic-wifi-slash.d0390749.svg +3 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +885 -850
- package/package.json +1 -1
- package/dist/Common/Checkbox.d.ts +0 -5
- package/dist/Shared/Components/ActionMenu/ActionMenuOption.d.ts +0 -3
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +0 -6
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -2
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
- package/dist/Shared/Components/Header/HelpNav.d.ts +0 -3
- package/dist/assets/ic-charts.f41e185f.svg +0 -19
- package/dist/assets/ic-chat-circle-dots.e15514f8.svg +0 -23
- package/dist/assets/ic-disconnected.551d6161.svg +0 -29
- package/dist/assets/ic-discord-fill.1a1b291d.svg +0 -19
- package/dist/assets/ic-feedback.d32fa6b0.svg +0 -19
- package/dist/assets/ic-files.fc290dee.svg +0 -19
- package/dist/assets/ic-login-devtron-logo.702a1d04.svg +0 -22
- package/dist/assets/ic-megaphone.b9f9a901.svg +0 -19
- package/dist/assets/ic-onboarding.c98f9ef9.svg +0 -19
- package/dist/assets/ic-timeout-red.5eda1010.svg +0 -21
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Checkbox';
|
@@ -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, UserRole, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
|
3
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps } from './Types';
|
4
4
|
import { ApiResourceType } from '../Pages';
|
5
5
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
6
6
|
export declare const SourceTypeMap: {
|
@@ -21,7 +21,7 @@ export declare const getDefaultConfig: () => Promise<ResponseType>;
|
|
21
21
|
export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
|
22
22
|
export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
23
23
|
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
24
|
-
export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
|
24
|
+
export declare function getNamespaceListMin(clusterIdsCsv: string, abortControllerRef?: APIOptions['abortControllerRef']): Promise<EnvironmentListHelmResponse>;
|
25
25
|
export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
|
26
26
|
/**
|
27
27
|
*
|
@@ -5,15 +5,6 @@ export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
|
|
5
5
|
export declare const DOCUMENTATION_VERSION = "/v/v0.7";
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
7
7
|
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
8
|
-
export declare const DOCUMENTATION: {
|
9
|
-
APP_METRICS: string;
|
10
|
-
APP_TAGS: string;
|
11
|
-
APP_OVERVIEW_TAGS: string;
|
12
|
-
BLOB_STORAGE: string;
|
13
|
-
GLOBAL_CONFIG_BUILD_INFRA: string;
|
14
|
-
ENTERPRISE_LICENSE: string;
|
15
|
-
KUBE_CONFIG: string;
|
16
|
-
};
|
17
8
|
export declare const PATTERNS: {
|
18
9
|
STRING: RegExp;
|
19
10
|
DECIMAL_NUMBERS: RegExp;
|
@@ -42,7 +33,6 @@ export declare const URLS: {
|
|
42
33
|
readonly CREATE_JOB: "create-job";
|
43
34
|
readonly GETTING_STARTED: "getting-started";
|
44
35
|
readonly STACK_MANAGER_ABOUT: "/stack-manager/about";
|
45
|
-
readonly APP_LIST_HELM: "h";
|
46
36
|
readonly APP_CI_DETAILS: "ci-details";
|
47
37
|
readonly LOGS: "Logs";
|
48
38
|
readonly CREATE: "/create";
|
@@ -64,7 +54,6 @@ export declare const URLS: {
|
|
64
54
|
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
65
55
|
readonly APP_CONFIG: "edit";
|
66
56
|
readonly GLOBAL_CONFIG: "/global-config";
|
67
|
-
readonly CONFIG_DRIFT: "config-drift";
|
68
57
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
69
58
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
70
59
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
@@ -111,6 +100,7 @@ export declare const ROUTES: {
|
|
111
100
|
readonly ATTRIBUTES_CREATE: "attributes/create";
|
112
101
|
readonly ATTRIBUTES_UPDATE: "attributes/update";
|
113
102
|
readonly APP_LIST_MIN: "app/min";
|
103
|
+
readonly APP_DETAIL: "app/detail";
|
114
104
|
readonly CLUSTER_LIST_MIN: "cluster/autocomplete";
|
115
105
|
readonly CLUSTER_LIST_RAW: "k8s/capacity/cluster/list/raw";
|
116
106
|
readonly PLUGIN_GLOBAL_LIST_DETAIL_V2: "plugin/global/list/detail/v2";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Drawer';
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { default as React, SyntheticEvent } from 'react';
|
2
2
|
import { JSONPathOptions } from 'jsonpath-plus';
|
3
3
|
import { AsyncOptions, DeploymentNodeType, UseSearchString } from './Types';
|
4
|
-
import { scrollableInterface } from '../Shared';
|
4
|
+
import { scrollableInterface, AppType } from '../Shared';
|
5
5
|
import * as Sentry from '@sentry/browser';
|
6
6
|
export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
|
7
7
|
interface ConditionalWrapper<T> {
|
@@ -95,8 +95,10 @@ export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultT
|
|
95
95
|
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => any;
|
96
96
|
/**
|
97
97
|
* Returns a debounced variant of the function
|
98
|
+
* @deprecated - It should use useRef instead, pls use useDebounce
|
98
99
|
*/
|
99
100
|
export declare const debounce: (func: any, timeout?: number) => (this: any, ...args: any[]) => void;
|
101
|
+
export declare const useDebounce: <Callback extends (...args: any[]) => void>(cb: Callback, delay: number) => (...args: Parameters<Callback>) => void;
|
100
102
|
/**
|
101
103
|
* Returns a capitalized string with first letter in uppercase and rest in lowercase
|
102
104
|
*/
|
@@ -144,4 +146,6 @@ export declare const getGoLangFormattedDateWithTimezone: (dateFormat: string) =>
|
|
144
146
|
*/
|
145
147
|
export declare const getHashedValue: (value: string) => Promise<string | null>;
|
146
148
|
export declare const getTTLInHumanReadableFormat: (ttl: number) => string;
|
149
|
+
export declare const getAIAnalyticsEvents: (context: string, appType?: AppType) => string;
|
150
|
+
export declare const findRight: <T>(arr: T[], predicate: (item: T) => boolean) => T | null;
|
147
151
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("R" | "
|
3
|
+
keys: ("R" | "Enter" | "Escape" | "." | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "Space" | "Control" | "Shift" | "Meta" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "tagName" | "onChange" | "onBlur" | "onSubmit" | "target" | "onFocus" | "onError" | "autoComplete" | "method" | "action" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
|
@@ -3,8 +3,16 @@ export type Entity = {
|
|
3
3
|
label: string;
|
4
4
|
value: number;
|
5
5
|
};
|
6
|
-
|
6
|
+
type EntityPropType = {
|
7
|
+
hideLegend?: false;
|
7
8
|
entities: NonNullable<Entity[]>;
|
9
|
+
} | {
|
10
|
+
hideLegend: true;
|
11
|
+
entities: NonNullable<Omit<Entity, 'label'> & {
|
12
|
+
label?: never;
|
13
|
+
}>[];
|
14
|
+
};
|
15
|
+
export type SegmentedBarChartProps = {
|
8
16
|
rootClassName?: string;
|
9
17
|
countClassName?: string;
|
10
18
|
labelClassName?: string;
|
@@ -12,4 +20,5 @@ export interface SegmentedBarChartProps {
|
|
12
20
|
swapLegendAndBar?: boolean;
|
13
21
|
showAnimationOnBar?: boolean;
|
14
22
|
isLoading?: boolean;
|
15
|
-
}
|
23
|
+
} & EntityPropType;
|
24
|
+
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { TippyCustomizedProps } from './Types';
|
2
|
-
export declare const TippyCustomized: (props: TippyCustomizedProps) => JSX.Element;
|
2
|
+
export declare const TippyCustomized: <T extends boolean = false>(props: TippyCustomizedProps<T>) => JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { CHECKBOX_VALUE } from '../Types';
|
2
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, isLoading, value, isControlled, ...props }: {
|
2
3
|
[x: string]: any;
|
3
4
|
selected?: boolean;
|
4
5
|
onSelect?: any;
|
@@ -11,5 +12,7 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
|
|
11
12
|
throttleOnChange?: boolean;
|
12
13
|
shouldToggleValueOnLabelClick?: boolean;
|
13
14
|
isLoading?: boolean;
|
15
|
+
value?: CHECKBOX_VALUE;
|
16
|
+
isControlled?: boolean;
|
14
17
|
}) => JSX.Element;
|
15
18
|
export default Toggle;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { TippyProps } from '@tippyjs/react';
|
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
5
|
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType } from '../Shared';
|
6
|
-
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
6
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, DOCUMENTATION, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
7
|
/**
|
8
8
|
* Generic response type object with support for overriding the result type
|
9
9
|
*
|
@@ -75,8 +75,14 @@ export interface CheckboxProps {
|
|
75
75
|
onClick?: (event: any) => void;
|
76
76
|
id?: string;
|
77
77
|
dataTestId?: string;
|
78
|
+
children?: ReactNode;
|
78
79
|
}
|
79
|
-
export
|
80
|
+
export type TippyWithBaseDocLinkTypes<T extends boolean> = {
|
81
|
+
isExternalLink?: T;
|
82
|
+
isEnterprise?: boolean;
|
83
|
+
documentationLink?: T extends true ? string : keyof typeof DOCUMENTATION;
|
84
|
+
};
|
85
|
+
export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo'> & TippyWithBaseDocLinkTypes<T> & {
|
80
86
|
theme: TippyTheme;
|
81
87
|
visible?: boolean;
|
82
88
|
heading?: ReactNode | string;
|
@@ -101,15 +107,15 @@ export interface TippyCustomizedProps extends Pick<TippyProps, 'appendTo'> {
|
|
101
107
|
animation?: string;
|
102
108
|
duration?: number;
|
103
109
|
additionalContent?: ReactNode;
|
104
|
-
documentationLink?: string;
|
105
110
|
documentationLinkText?: string;
|
106
111
|
children: React.ReactElement<any>;
|
107
112
|
disableClose?: boolean;
|
108
|
-
}
|
109
|
-
export interface InfoIconTippyProps extends Pick<TippyCustomizedProps
|
113
|
+
};
|
114
|
+
export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | 'isEnterprise' | 'isExternalLink'> {
|
110
115
|
dataTestid?: string;
|
111
|
-
children?: TippyCustomizedProps['children'];
|
116
|
+
children?: TippyCustomizedProps<T>['children'];
|
112
117
|
iconClassName?: string;
|
118
|
+
buttonPadding?: string;
|
113
119
|
}
|
114
120
|
export interface GenericEmptyStateType {
|
115
121
|
title: ReactNode;
|
package/dist/Common/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
export * from '../Shared/DocLink';
|
1
2
|
export * from './AddCDButton';
|
2
3
|
export * from './API';
|
3
4
|
export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
|
@@ -15,9 +16,8 @@ export { default as DevtronCopyright } from './DevtronCopyright';
|
|
15
16
|
export * from './DevtronProgressing';
|
16
17
|
export * from './Dialogs';
|
17
18
|
export * from './DraggableWrapper';
|
18
|
-
export * from './Drawer
|
19
|
-
export
|
20
|
-
export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEmptyState';
|
19
|
+
export * from './Drawer';
|
20
|
+
export * from './EmptyState';
|
21
21
|
export { default as ErrorScreenManager } from './ErrorScreenManager';
|
22
22
|
export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
|
23
23
|
export * from './GenericDescription';
|
@@ -0,0 +1 @@
|
|
1
|
+
export type { NewClusterFormFooterProps, NewClusterFormProps } from './types';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export interface NewClusterFormFooterProps {
|
2
|
+
apiCallInProgress: boolean;
|
3
|
+
handleModalClose: () => void;
|
4
|
+
closeButtonText?: string;
|
5
|
+
}
|
6
|
+
export interface NewClusterFormProps extends Pick<NewClusterFormFooterProps, 'handleModalClose'> {
|
7
|
+
FooterComponent: React.FunctionComponent<NewClusterFormFooterProps> & Record<'CTA' | 'Start', React.FunctionComponent<{}>>;
|
8
|
+
}
|
@@ -7,4 +7,4 @@ export declare const deleteResource: (resourceListPayload: ResourceListPayloadTy
|
|
7
7
|
export declare const deleteNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
8
8
|
export declare const cordonNodeCapacity: (requestPayload: NodeCordonRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
9
9
|
export declare const drainNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
|
10
|
-
export declare const getClusterListRaw: () => Promise<ResponseType<ClusterDetail[]>>;
|
10
|
+
export declare const getClusterListRaw: (abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType<ClusterDetail[]>>;
|
@@ -1,10 +1,21 @@
|
|
1
1
|
import { Dispatch, ReactElement, SetStateAction } from 'react';
|
2
|
+
import { TabProps } from '../../Shared/Components';
|
3
|
+
import { InstallationClusterType } from '../../Shared/types';
|
2
4
|
import { NodeActionRequest } from './ResourceBrowser.Types';
|
3
5
|
export declare enum ClusterFiltersType {
|
4
6
|
ALL_CLUSTERS = "all",
|
5
7
|
HEALTHY = "healthy",
|
6
8
|
UNHEALTHY = "unhealthy"
|
7
9
|
}
|
10
|
+
export declare enum InstallationClusterStatus {
|
11
|
+
Creating = "Creating",
|
12
|
+
Updated = "Updated",
|
13
|
+
Updating = "Updating",
|
14
|
+
Installed = "Installed",
|
15
|
+
Failed = "Failed",
|
16
|
+
Deleting = "Deleting",
|
17
|
+
Deleted = "Deleted"
|
18
|
+
}
|
8
19
|
export declare enum ClusterStatusType {
|
9
20
|
HEALTHY = "healthy",
|
10
21
|
UNHEALTHY = "unhealthy",
|
@@ -42,6 +53,7 @@ export interface ClusterCapacityType {
|
|
42
53
|
nodeErrors: Record<string, string>[];
|
43
54
|
status?: ClusterStatusType;
|
44
55
|
isProd: boolean;
|
56
|
+
installationId?: number;
|
45
57
|
}
|
46
58
|
export interface ClusterDetail extends ClusterCapacityType {
|
47
59
|
id: number;
|
@@ -70,4 +82,35 @@ export interface AdditionalConfirmationModalOptionsProps<T = unknown> {
|
|
70
82
|
setOptionsData: Dispatch<SetStateAction<T>>;
|
71
83
|
children?: ReactElement;
|
72
84
|
}
|
85
|
+
export type NodeDetailTabsInfoType = (Pick<TabProps, 'label' | 'icon'> & {
|
86
|
+
id: string;
|
87
|
+
renderComponent: () => JSX.Element;
|
88
|
+
})[];
|
89
|
+
export interface InstallationClusterStepType {
|
90
|
+
lastTransitionTime: string;
|
91
|
+
lastProbeTime: string;
|
92
|
+
message: string;
|
93
|
+
reason: string;
|
94
|
+
status: 'False' | 'True' | 'Unknown';
|
95
|
+
type: string;
|
96
|
+
}
|
97
|
+
export interface InstallationClusterConfigDTO {
|
98
|
+
installationId: number;
|
99
|
+
installationStatus: InstallationClusterStatus;
|
100
|
+
name: string;
|
101
|
+
values: string;
|
102
|
+
valuesSchema: string;
|
103
|
+
isProd: boolean;
|
104
|
+
installationType: InstallationClusterType;
|
105
|
+
conditions: InstallationClusterStepType[];
|
106
|
+
installedEntityId: number | 0;
|
107
|
+
}
|
108
|
+
export interface InstallationClusterConfigType extends Pick<InstallationClusterConfigDTO, 'installationType' | 'conditions'> {
|
109
|
+
schema: object;
|
110
|
+
values: object;
|
111
|
+
installationId: number;
|
112
|
+
name: string;
|
113
|
+
status: InstallationClusterStatus;
|
114
|
+
correspondingClusterId: number | 0;
|
115
|
+
}
|
73
116
|
export {};
|
@@ -1,3 +1,2 @@
|
|
1
1
|
import { ActionMenuProps } from './types';
|
2
|
-
declare const ActionMenu: ({ options, disableDescriptionEllipsis, children,
|
3
|
-
export default ActionMenu;
|
2
|
+
export declare const ActionMenu: <T extends string | number = string | number>({ id, options, onClick, position, alignment, width, isSearchable, disableDescriptionEllipsis, buttonProps, children, onOpen, footerConfig, }: ActionMenuProps<T>) => JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export
|
2
|
-
export type { ActionMenuProps } from './types';
|
1
|
+
export * from './ActionMenu.component';
|
2
|
+
export type { ActionMenuItemType, ActionMenuOptionType, ActionMenuProps } from './types';
|
@@ -1,19 +1,96 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { LegacyRef, Ref } from 'react';
|
2
|
+
import { LinkProps } from 'react-router-dom';
|
3
|
+
import { IconsProps } from '../Icon';
|
4
|
+
import { PopoverProps, UsePopoverProps } from '../Popover';
|
3
5
|
import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
|
4
|
-
type
|
6
|
+
type ConditionalActionMenuComponentType = {
|
7
|
+
/**
|
8
|
+
* @default 'button'
|
9
|
+
*/
|
10
|
+
componentType?: 'button';
|
11
|
+
href?: never;
|
12
|
+
to?: never;
|
13
|
+
} | {
|
14
|
+
componentType?: 'anchor';
|
15
|
+
/** Specifies the URL for the `<a>` tag. */
|
16
|
+
href: string;
|
17
|
+
to?: never;
|
18
|
+
} | {
|
19
|
+
componentType?: 'link';
|
20
|
+
/** Specifies the `to` property for react-router `Link` */
|
21
|
+
to: LinkProps['to'];
|
22
|
+
href?: never;
|
23
|
+
};
|
24
|
+
type ActionMenuItemIconType = Pick<IconsProps, 'name'> & {
|
25
|
+
/** @default 'N800' */
|
26
|
+
color?: IconsProps['color'];
|
27
|
+
};
|
28
|
+
export type ActionMenuItemType<T extends string | number = string | number> = Omit<SelectPickerOptionType, 'label' | 'value' | 'endIcon' | 'startIcon'> & {
|
29
|
+
/** A unique identifier for the action menu item. */
|
30
|
+
id: T;
|
31
|
+
/** The text label for the menu item. */
|
32
|
+
label: string;
|
33
|
+
/** Indicates whether the menu item is disabled. */
|
5
34
|
isDisabled?: boolean;
|
6
35
|
/**
|
36
|
+
* Specifies the type of the menu item.
|
7
37
|
* @default 'neutral'
|
8
38
|
*/
|
9
39
|
type?: 'neutral' | 'negative';
|
40
|
+
/** Defines the icon to be displayed at the start of the menu item. */
|
41
|
+
startIcon?: ActionMenuItemIconType;
|
42
|
+
/** Defines the icon to be displayed at the end of the menu item. */
|
43
|
+
endIcon?: ActionMenuItemIconType;
|
44
|
+
} & ConditionalActionMenuComponentType;
|
45
|
+
export type ActionMenuOptionType<T extends string | number> = {
|
46
|
+
/**
|
47
|
+
* The label for the group of menu items. \
|
48
|
+
* This is optional and can be used to categorize items under a specific group.
|
49
|
+
*/
|
50
|
+
groupLabel?: string;
|
51
|
+
/**
|
52
|
+
* The list of items belonging to this group.
|
53
|
+
*/
|
54
|
+
items: ActionMenuItemType<T>[];
|
55
|
+
};
|
56
|
+
export type UseActionMenuProps<T extends string | number> = Omit<UsePopoverProps, 'onPopoverKeyDown' | 'onTriggerKeyDown'> & {
|
57
|
+
/**
|
58
|
+
* The options to display in the action menu.
|
59
|
+
*/
|
60
|
+
options: ActionMenuOptionType<T>[];
|
61
|
+
/**
|
62
|
+
* Determines whether the action menu is searchable.
|
63
|
+
*/
|
64
|
+
isSearchable?: boolean;
|
65
|
+
};
|
66
|
+
export type ActionMenuProps<T extends string | number = string | number> = UseActionMenuProps<T> & Pick<SelectPickerProps, 'disableDescriptionEllipsis'> & {
|
67
|
+
/**
|
68
|
+
* Callback function triggered when an item is clicked.
|
69
|
+
* @param item - The selected item.
|
70
|
+
*/
|
71
|
+
onClick: (item: ActionMenuItemType<T>) => void;
|
72
|
+
/**
|
73
|
+
* Config for the footer at the bottom of action menu list. It is sticky by default
|
74
|
+
*/
|
75
|
+
footerConfig?: SelectPickerProps['menuListFooterConfig'];
|
76
|
+
} & ({
|
77
|
+
/**
|
78
|
+
* The React element to which the ActionMenu is attached.
|
79
|
+
* @note only use when children is not `Button` component otherwise use `buttonProps`.
|
80
|
+
*/
|
81
|
+
children: NonNullable<PopoverProps['triggerElement']>;
|
82
|
+
buttonProps?: never;
|
83
|
+
} | {
|
84
|
+
children?: never;
|
85
|
+
/**
|
86
|
+
* Properties for the button to which the Popover is attached.
|
87
|
+
*/
|
88
|
+
buttonProps: NonNullable<PopoverProps['buttonProps']>;
|
89
|
+
});
|
90
|
+
export type ActionMenuItemProps<T extends string | number> = Pick<ActionMenuProps<T>, 'onClick' | 'disableDescriptionEllipsis'> & {
|
91
|
+
item: ActionMenuItemType<T>;
|
92
|
+
itemRef: Ref<HTMLAnchorElement> | LegacyRef<HTMLAnchorElement | HTMLButtonElement>;
|
93
|
+
isFocused?: boolean;
|
94
|
+
onMouseEnter?: () => void;
|
10
95
|
};
|
11
|
-
export interface ActionMenuProps extends Pick<SelectPickerProps, 'disableDescriptionEllipsis'> {
|
12
|
-
children: ReactElement;
|
13
|
-
options: OptionsOrGroups<ActionMenuOptionType, GroupBase<ActionMenuOptionType>>;
|
14
|
-
onClick: (option: SelectPickerOptionType) => void;
|
15
|
-
}
|
16
|
-
export interface ActionMenuOptionProps extends Pick<ActionMenuProps, 'onClick' | 'disableDescriptionEllipsis'> {
|
17
|
-
option: ActionMenuOptionType;
|
18
|
-
}
|
19
96
|
export {};
|