@devtron-labs/devtron-fe-common-lib 1.15.2 → 1.15.3-beta-1
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/{@code-editor-O_mIinn2.js → @code-editor-Bd6MuRxN.js} +9230 -8913
- package/dist/{@common-rjsf-BQQNvTlX.js → @common-rjsf-DPDULtgg.js} +225 -233
- package/dist/{@framer-motion-Dchiw-Rb.js → @framer-motion-BhKAac90.js} +640 -622
- package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
- package/dist/{@react-dates-D5kydtW-.js → @react-dates-CfRo6n5e.js} +2065 -2140
- package/dist/{@react-select-Cmser7OI.js → @react-select-DNDV8S9D.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-DMnFy9PE.js → @react-virtualized-sticky-tree-mXcyQzGx.js} +1 -1
- package/dist/{@vendor-STJ9h0oI.js → @vendor-CA9d7Ztm.js} +20720 -20458
- package/dist/Common/Constants.d.ts +3 -0
- package/dist/Common/Dialogs/Types.d.ts +0 -17
- package/dist/Common/Dialogs/index.d.ts +0 -1
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -1
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +8 -43
- package/dist/Common/index.d.ts +0 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Shared/Analytics/analytics.d.ts +2 -0
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/index.d.ts +1 -0
- package/dist/Shared/Components/Backdrop/types.d.ts +16 -2
- package/dist/Shared/Components/Backdrop/utils.d.ts +1 -0
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +3 -2
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -7
- package/dist/Shared/Components/CICDHistory/types.d.ts +3 -19
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +18 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +7 -0
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -0
- package/dist/Shared/Components/DocLink/constants.d.ts +3 -0
- package/dist/Shared/Components/DocLink/types.d.ts +1 -0
- package/dist/Shared/Components/DocLink/utils.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +9 -0
- package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +6 -0
- package/dist/Shared/Components/GenericModal/constants.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/index.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/types.d.ts +37 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +3 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +20 -1
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +5 -0
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
- package/dist/Shared/Components/ProgressBar/ProgressBar.component.d.ts +2 -0
- package/dist/Shared/Components/ProgressBar/index.d.ts +1 -0
- package/dist/Shared/Components/ProgressBar/types.d.ts +9 -0
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/Switch/Switch.component.d.ts +1 -1
- package/dist/Shared/Components/Switch/types.d.ts +11 -2
- package/dist/Shared/Components/Switch/utils.d.ts +2 -2
- package/dist/Shared/Components/SwitchThemeDialog/SwitchThemeDialog.component.d.ts +3 -0
- package/dist/Shared/Components/SwitchThemeDialog/index.d.ts +2 -0
- package/dist/Shared/Components/SwitchThemeDialog/types.d.ts +35 -0
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
- package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
- package/dist/Shared/Components/Textarea/types.d.ts +17 -1
- package/dist/Shared/Components/Textarea/utils.d.ts +5 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +1 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +1 -1
- package/dist/Shared/Components/Typewriter/BlinkingCursor.d.ts +1 -0
- package/dist/Shared/Components/Typewriter/index.d.ts +2 -0
- package/dist/Shared/Components/Typewriter/useTypewriter.d.ts +1 -0
- package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +75 -41
- package/dist/Shared/Components/WorkflowOptionsModal/index.d.ts +1 -0
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +10 -12
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +13 -2
- package/dist/Shared/Components/index.d.ts +5 -0
- package/dist/Shared/Helpers.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +40 -12
- package/dist/Shared/Services/app.types.d.ts +7 -2
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +9 -3
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-add.2d785695.svg +3 -0
- package/dist/assets/ic-asterisk.ab224e72.svg +3 -0
- package/dist/assets/ic-brain.838491eb.svg +3 -0
- package/dist/assets/ic-cluster-isolated.93f843b9.svg +3 -0
- package/dist/assets/{ic-cluster.71ba9e26.svg → ic-cluster.f1c3fad1.svg} +1 -1
- package/dist/assets/ic-deploy-color.73a8df48.svg +14 -0
- package/dist/assets/ic-deploy-sync.6b1cf1b1.svg +16 -0
- package/dist/assets/ic-devtron-ai.535b45ec.svg +287 -0
- package/dist/assets/ic-environment-isolated.b772ae9d.svg +3 -0
- package/dist/assets/ic-environment.e639b8f3.svg +4 -0
- package/dist/assets/ic-folder-color.7cf84356.svg +6 -0
- package/dist/assets/ic-git-branch.d6b3d950.svg +3 -0
- package/dist/assets/ic-linked-build-color.d1df5ce1.svg +7 -0
- package/dist/assets/ic-minus.416da21b.svg +3 -0
- package/dist/assets/ic-openai.6e4c9a37.svg +10 -0
- package/dist/assets/ic-paper-plane.ad7e6d2f.svg +3 -0
- package/dist/assets/ic-shapes.b7b5c28f.svg +3 -0
- package/dist/assets/ic-sparkle-ai-color.34768219.svg +11 -0
- package/dist/assets/ic-sparkle-color.a9722593.svg +18 -0
- package/dist/assets/ic-stop-fill.32ea653f.svg +8 -0
- package/dist/assets/ic-webhook.ffd8ded6.svg +21 -0
- package/dist/assets/ic-world-globe.877fa6a0.svg +3 -0
- package/dist/assets/workflow-options-modal-header.0444485e.svg +38 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +857 -855
- package/package.json +6 -7
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +0 -11
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +0 -6
- package/dist/Common/Toggle/Toggle.d.ts +0 -18
- package/dist/assets/change-source.abc9d12f.png +0 -0
- package/dist/assets/ic-add.18a93616.svg +0 -19
- package/dist/assets/ic-ci-webhook.a2ab6db6.svg +0 -42
- package/dist/assets/ic-source-build.7d776b10.svg +0 -22
- package/dist/assets/ic-source-job.a40f06cf.svg +0 -26
- package/dist/assets/ic-source-linked-build.f24ecbed.svg +0 -24
- package/dist/assets/ic-source-webhook.ee64a29a.svg +0 -22
- package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
- package/dist/assets/select-image-source.fb911f42.png +0 -0
@@ -6,6 +6,7 @@ export declare const DOCUMENTATION_VERSION = "/devtron/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
8
|
export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/dashboard";
|
9
|
+
export declare const DEVTRON_GPT_LINK = "https://chatgpt.com/g/g-6826efa4362c8191b23e7bfa0ac036db-devtron-expert";
|
9
10
|
export declare const PATTERNS: {
|
10
11
|
STRING: RegExp;
|
11
12
|
DECIMAL_NUMBERS: RegExp;
|
@@ -57,6 +58,7 @@ export declare const URLS: {
|
|
57
58
|
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
58
59
|
readonly APP_CONFIG: "edit";
|
59
60
|
readonly GLOBAL_CONFIG: "/global-config";
|
61
|
+
readonly GLOBAL_CONFIG_MANAGE_CATEGORIES: "/global-config/cluster-env/manage-categories";
|
60
62
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
61
63
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
62
64
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
@@ -66,6 +68,7 @@ export declare const ROUTES: {
|
|
66
68
|
readonly APP: "app";
|
67
69
|
readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
|
68
70
|
readonly APP_TEMPLATE_DATA: "app/template/data";
|
71
|
+
readonly ENVIRONMENT_CATEGORIES: "env/categories";
|
69
72
|
readonly PROJECT_LIST_MIN: "team/autocomplete";
|
70
73
|
readonly USER_CHECK_ROLE: "user/check/roles";
|
71
74
|
readonly IMAGE_TAGGING: "app/image-tagging";
|
@@ -32,23 +32,6 @@ export interface ForceDeleteDialogType {
|
|
32
32
|
forceDeleteDialogTitle: string;
|
33
33
|
forceDeleteDialogMessage: string;
|
34
34
|
}
|
35
|
-
export interface ConfirmationDialogType {
|
36
|
-
className?: string;
|
37
|
-
children: any;
|
38
|
-
close?: (e: any) => void;
|
39
|
-
}
|
40
|
-
export interface ConfirmationDialogIconType {
|
41
|
-
src: string;
|
42
|
-
className?: string;
|
43
|
-
}
|
44
|
-
export interface ConfirmationDialogBodyType {
|
45
|
-
title: string;
|
46
|
-
subtitle?: ReactNode;
|
47
|
-
children?: any;
|
48
|
-
}
|
49
|
-
export interface ConfirmationDialogButtonGroupType {
|
50
|
-
children: any;
|
51
|
-
}
|
52
35
|
export interface DialogFormProps {
|
53
36
|
className: string;
|
54
37
|
title: string;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { WidgetProps } from '@rjsf/utils';
|
2
|
-
export declare const Checkbox: ({ id, onChange, value,
|
2
|
+
export declare const Checkbox: ({ id, onChange, value, disabled, readonly, autofocus, }: WidgetProps) => JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TippyProps } from '@tippyjs/react';
|
2
|
-
import { SupportedKeyboardKeysType } from '
|
2
|
+
import { SupportedKeyboardKeysType } from '../Hooks/UseRegisterShortcut/types';
|
3
3
|
type BaseTooltipProps = {
|
4
4
|
/**
|
5
5
|
* If true, show tippy on truncate
|
package/dist/Common/Types.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
|
-
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO,
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType } from '../Shared';
|
6
6
|
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
7
|
/**
|
8
8
|
* Generic response type object with support for overriding the result type
|
@@ -162,48 +162,6 @@ export declare enum ImageType {
|
|
162
162
|
Medium = "medium",
|
163
163
|
SMALL = "small"
|
164
164
|
}
|
165
|
-
interface InfoColourBarTextConfigType {
|
166
|
-
/**
|
167
|
-
* If given would be shown above the description, in bold
|
168
|
-
*/
|
169
|
-
heading?: string;
|
170
|
-
/**
|
171
|
-
* If given would be shown below the heading (if given)
|
172
|
-
*/
|
173
|
-
description: string;
|
174
|
-
actionButtonConfig?: ButtonProps;
|
175
|
-
}
|
176
|
-
type InfoColourBarMessageProp = {
|
177
|
-
message: ReactNode;
|
178
|
-
linkText?: ReactNode;
|
179
|
-
redirectLink?: string;
|
180
|
-
linkOnClick?: () => void;
|
181
|
-
linkClass?: string;
|
182
|
-
internalLink?: boolean;
|
183
|
-
textConfig?: never;
|
184
|
-
} | {
|
185
|
-
textConfig: InfoColourBarTextConfigType;
|
186
|
-
message?: never;
|
187
|
-
linkText?: never;
|
188
|
-
redirectLink?: never;
|
189
|
-
linkOnClick?: () => never;
|
190
|
-
linkClass?: never;
|
191
|
-
internalLink?: never;
|
192
|
-
};
|
193
|
-
export type InfoColourBarType = InfoColourBarMessageProp & {
|
194
|
-
classname: string;
|
195
|
-
Icon: any;
|
196
|
-
iconClass?: string;
|
197
|
-
iconSize?: number;
|
198
|
-
renderActionButton?: () => JSX.Element;
|
199
|
-
styles?: CSSProperties;
|
200
|
-
/**
|
201
|
-
* If true, the icon is not shown
|
202
|
-
*
|
203
|
-
* @default false
|
204
|
-
*/
|
205
|
-
hideIcon?: boolean;
|
206
|
-
};
|
207
165
|
export interface ReloadType {
|
208
166
|
reload?: (event?: any) => void;
|
209
167
|
className?: string;
|
@@ -958,4 +916,11 @@ export interface EnvAppsMetaDTO {
|
|
958
916
|
appCount: number;
|
959
917
|
apps: AppMeta[];
|
960
918
|
}
|
919
|
+
export interface ClusterEnvironmentCategoryDTO {
|
920
|
+
id: number;
|
921
|
+
name: string;
|
922
|
+
description?: string;
|
923
|
+
}
|
924
|
+
export interface ClusterEnvironmentCategoryType extends ClusterEnvironmentCategoryDTO {
|
925
|
+
}
|
961
926
|
export {};
|
package/dist/Common/index.d.ts
CHANGED
@@ -25,7 +25,6 @@ export * from './Helper';
|
|
25
25
|
export * from './Hooks';
|
26
26
|
export * from './ImageTags';
|
27
27
|
export * from './ImageTags.Types';
|
28
|
-
export { default as InfoColourBar } from './InfoColorBar/InfoColourbar';
|
29
28
|
export * from './Markdown';
|
30
29
|
export * from './Modals/Modal';
|
31
30
|
export * from './Modals/VisibleModal';
|
@@ -47,6 +46,5 @@ export { default as Select } from './Select/Select';
|
|
47
46
|
export * from './ServerError';
|
48
47
|
export * from './SortableTableHeaderCell';
|
49
48
|
export * from './TippyCustomized';
|
50
|
-
export { default as Toggle } from './Toggle/Toggle';
|
51
49
|
export * from './Tooltip';
|
52
50
|
export * from './Types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { UseBreadcrumbProps } from '
|
1
|
+
import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
|
2
2
|
import { CMSecretComponentType } from '../../../Shared/Services';
|
3
3
|
import { BuildInfraAPIVersionType, BuildInfraConfigTypes, BuildInfraFormFieldType, BuildInfraInheritActionsOnSubValues, BuildInfraLocators, BuildInfraMetaConfigTypes, BuildInfraToleranceEffectType, BuildInfraToleranceOperatorType, HandleProfileInputChangeType, InfraConfigWithSubValues, ProfileInputErrorType, RequestLimitConfigType, TargetPlatformErrorFields, ValidateRequestLimitType } from './types';
|
4
4
|
export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
|
@@ -1,2 +1,4 @@
|
|
1
|
+
import { UaEventOptions } from 'react-ga4/types/ga4';
|
1
2
|
import { ServerAnalyticsEventType } from './types';
|
2
3
|
export declare const handleSendAnalyticsEventToServer: (eventType: ServerAnalyticsEventType, preventLicenseRedirect?: boolean) => Promise<void>;
|
4
|
+
export declare const handleAnalyticsEvent: ({ category, action }: Pick<UaEventOptions, "category" | "action">) => void;
|
@@ -1,8 +1,22 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
2
2
|
export interface BackdropProps {
|
3
|
+
/**
|
4
|
+
* The content to be rendered within the backdrop component.
|
5
|
+
*/
|
3
6
|
children: ReactNode;
|
4
7
|
/**
|
5
|
-
*
|
8
|
+
* Callback function that gets triggered when the Escape key is pressed. \
|
9
|
+
* Should be wrapped in useCallback to prevent unnecessary re-renders.
|
10
|
+
* @example
|
11
|
+
* const handleEscape = useCallback(() => {
|
12
|
+
* // Handle escape key press
|
13
|
+
* }, []);
|
6
14
|
*/
|
7
15
|
onEscape: () => void;
|
16
|
+
/**
|
17
|
+
* Callback function that gets triggered when the backdrop is clicked.
|
18
|
+
* Useful for dismissing modals or other overlay content.
|
19
|
+
* @param e - The mouse event object from the click interaction
|
20
|
+
*/
|
21
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
8
22
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const createPortalContainerAndAppendToDOM: (portalContainerId: string) => HTMLDivElement;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ComponentSizeType } from '../../constants';
|
2
|
+
import { IconBaseColorType } from '../../types';
|
3
|
+
import { IconsProps } from '../Icon';
|
4
|
+
export type BadgeVariants = 'default' | 'negative' | 'negative-grey' | 'positive' | 'warning' | 'neutral' | 'custom';
|
5
|
+
export type BadgeProps = {
|
6
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.xxs | ComponentSizeType.xxxs>;
|
7
|
+
startIconProps?: Omit<IconsProps, 'color' | 'size'>;
|
8
|
+
endIconProps?: Omit<IconsProps, 'color' | 'size'>;
|
9
|
+
label: string;
|
10
|
+
} & ({
|
11
|
+
variant?: Exclude<BadgeVariants, 'custom'>;
|
12
|
+
fontColor?: never;
|
13
|
+
bgColor?: never;
|
14
|
+
} | {
|
15
|
+
variant: 'custom';
|
16
|
+
fontColor: IconBaseColorType;
|
17
|
+
bgColor: IconBaseColorType;
|
18
|
+
});
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { IconBaseColorType } from '../../types';
|
2
|
+
import { BadgeProps } from './types';
|
3
|
+
export declare const getClassNameAccToVariant: (variant: BadgeProps["variant"]) => {
|
4
|
+
styles: string;
|
5
|
+
iconColor: IconBaseColorType;
|
6
|
+
};
|
7
|
+
export declare const getClassNameAccToSize: (size: BadgeProps["size"]) => "fs-11 lh-16 px-4 py-1" | "fs-12 lh-16 px-6 py-2" | "fs-13 lh-20 px-6 py-2";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { APIOptions, DrawerProps } from '../../../Common/index';
|
3
|
-
import { Entity } from '
|
3
|
+
import { Entity } from '../../../Common/SegmentedBarChart/types';
|
4
4
|
import { ConfirmationModalProps } from '../ConfirmationModal/types';
|
5
5
|
import { getProgressingStateForStatus } from '../Security';
|
6
6
|
interface BulkOperationAdditionalKeysType {
|
@@ -63,5 +63,5 @@ import { ButtonComponentType, ButtonProps } from './types';
|
|
63
63
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
64
64
|
* ```
|
65
65
|
*/
|
66
|
-
declare const Button: <
|
66
|
+
declare const Button: import('react').ForwardRefExoticComponent<ButtonProps<ButtonComponentType> & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
67
67
|
export default Button;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactElement } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
-
import { TooltipProps } from '
|
3
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
4
4
|
import { ComponentSizeType } from '../../constants';
|
5
5
|
export declare enum ButtonVariantType {
|
6
6
|
primary = "primary",
|
@@ -112,7 +112,7 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
|
|
112
112
|
/**
|
113
113
|
* If true, the tooltip is shown for the button
|
114
114
|
*/
|
115
|
-
showTooltip
|
115
|
+
showTooltip?: boolean;
|
116
116
|
/**
|
117
117
|
* Props for tooltip
|
118
118
|
*/
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DeploymentConfigDiffProps } from '
|
1
|
+
import { DeploymentConfigDiffProps } from '../../DeploymentConfigDiff';
|
2
2
|
import { History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string, hideDiffState: boolean) => JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
2
|
import { UseUrlFiltersReturnType } from '../../../../Common/Hooks';
|
3
|
-
import { DeploymentConfigDiffProps } from '
|
3
|
+
import { DeploymentConfigDiffProps } from '../../DeploymentConfigDiff';
|
4
4
|
import { EnvResourceType } from '../../../Services';
|
5
5
|
import { History, HistoryLogsProps } from '../types';
|
6
6
|
export interface DeploymentHistoryConfigDiffQueryParams {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { SelectPickerOptionType } from '
|
2
|
-
import { History } from '../types';
|
1
|
+
import { SelectPickerOptionType } from '../../SelectPicker';
|
2
|
+
import { DeploymentHistorySingleValue, History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const getPipelineDeployments: (triggerHistory: DeploymentHistoryConfigDiffProps["triggerHistory"]) => History[];
|
5
5
|
export declare const getPipelineDeploymentsWfrIds: ({ pipelineDeployments, wfrId, }: {
|
@@ -20,3 +20,4 @@ export declare const parseDeploymentHistoryDiffSearchParams: (compareWfrId: numb
|
|
20
20
|
};
|
21
21
|
export declare const isDeploymentHistoryConfigDiffNotFoundError: <T extends unknown>(res: PromiseSettledResult<T>) => boolean;
|
22
22
|
export declare const getDeploymentHistoryConfigDiffError: <T extends unknown>(res: PromiseSettledResult<T>) => any;
|
23
|
+
export declare const renderDetailedValue: (parentClassName: string, singleValue: DeploymentHistorySingleValue, dataTestId: string) => JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ResponseType } from '../../../Common';
|
2
|
-
import {
|
2
|
+
import { DeploymentHistoryDetail, DeploymentHistoryResult, DeploymentStatusDetailsResponse, ModuleConfigResponse, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
|
3
3
|
export declare function getTriggerDetails({ appId, envId, pipelineId, triggerId, fetchIdData, }: {
|
4
4
|
appId: any;
|
5
5
|
envId: any;
|
@@ -18,12 +18,6 @@ export declare function getManualSync(params: {
|
|
18
18
|
appId: string;
|
19
19
|
envId: string;
|
20
20
|
}): Promise<ResponseType>;
|
21
|
-
export declare const getDeploymentHistoryList: (appId: string, pipelineId: string, triggerId: string) => Promise<DeploymentConfigurationsRes>;
|
22
|
-
export declare const getDeploymentHistoryDetail: (appId: string, pipelineId: string, id: string, historyComponent: string, historyComponentName: string) => Promise<DeploymentHistoryDetailRes>;
|
23
|
-
export declare const prepareDeploymentTemplateData: (rawData: any) => Record<string, DeploymentHistorySingleValue>;
|
24
|
-
export declare const preparePipelineConfigData: (rawData: any) => Record<string, DeploymentHistorySingleValue>;
|
25
|
-
export declare const prepareConfigMapAndSecretData: (rawData: any, type: string, historyData: DeploymentHistoryDetail, skipDecode?: boolean) => Record<string, DeploymentHistorySingleValue>;
|
26
21
|
export declare const prepareHistoryData: (rawData: any, historyComponent: string, skipDecode?: boolean) => DeploymentHistoryDetail;
|
27
|
-
export declare const getDeploymentDiffSelector: (pipelineId: string, historyComponent: any, baseConfigurationId: any, historyComponentName: any) => Promise<HistoryDiffSelectorRes>;
|
28
22
|
export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, "result">>;
|
29
23
|
export declare const getModuleConfigured: (moduleName: string) => Promise<ModuleConfigResponse>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react';
|
2
|
-
import { SupportedKeyboardKeysType } from '
|
3
|
-
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
2
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
3
|
+
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, TooltipProps, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
5
5
|
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
6
6
|
import { TargetPlatformBadgeListProps } from '../TargetPlatforms';
|
@@ -408,14 +408,12 @@ export interface DeploymentStatusDetailRowType extends Pick<DeploymentStatusDeta
|
|
408
408
|
hideVerticalConnector?: boolean;
|
409
409
|
deploymentDetailedData: DeploymentStatusDetailsBreakdownDataType;
|
410
410
|
}
|
411
|
-
export interface DeploymentConfigurationsRes extends ResponseType {
|
412
|
-
result?: DeploymentTemplateList[];
|
413
|
-
}
|
414
411
|
export interface DeploymentHistorySingleValue {
|
415
412
|
displayName: string;
|
416
413
|
value: string;
|
417
414
|
variableSnapshot?: object;
|
418
415
|
resolvedValue?: string;
|
416
|
+
tooltipContent?: TooltipProps['content'];
|
419
417
|
}
|
420
418
|
export interface DeploymentHistoryDetail {
|
421
419
|
componentName?: string;
|
@@ -428,20 +426,6 @@ export interface DeploymentTemplateHistoryType {
|
|
428
426
|
previousConfigAvailable: boolean;
|
429
427
|
rootClassName?: string;
|
430
428
|
}
|
431
|
-
export interface DeploymentHistoryDetailRes extends ResponseType {
|
432
|
-
result?: DeploymentHistoryDetail;
|
433
|
-
}
|
434
|
-
export interface HistoryDiffSelectorList {
|
435
|
-
id: number;
|
436
|
-
deployedOn: string;
|
437
|
-
deployedBy: string;
|
438
|
-
deploymentStatus: string;
|
439
|
-
wfrId?: number;
|
440
|
-
runSource?: RunSourceType;
|
441
|
-
}
|
442
|
-
export interface HistoryDiffSelectorRes {
|
443
|
-
result?: HistoryDiffSelectorList[];
|
444
|
-
}
|
445
429
|
export interface DeploymentHistorySidebarType {
|
446
430
|
deploymentHistoryList: DeploymentTemplateList[];
|
447
431
|
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SupportedKeyboardKeysType } from '
|
1
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
2
2
|
export declare const PREVIOUS_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
3
3
|
export declare const NEXT_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
4
4
|
export declare const REPLACE_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
2
|
+
import { RadioGroupItemProps, RadioGroupProps } from '../../../Common/Types';
|
2
3
|
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, TemplateListDTO } from '../../Services';
|
3
4
|
import { ManifestTemplateDTO } from '../../../Pages/Applications';
|
4
5
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
5
6
|
import { CollapseProps } from '../Collapse';
|
6
7
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
7
|
-
import { SelectPickerProps } from '../SelectPicker';
|
8
|
+
import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
|
8
9
|
export declare enum DeploymentConfigDiffState {
|
9
10
|
NO_DIFF = "noDiff",
|
10
11
|
HAS_DIFF = "hasDiff",
|
@@ -26,6 +27,15 @@ export interface DeploymentConfigListItem {
|
|
26
27
|
singleView?: boolean;
|
27
28
|
groupHeader?: string;
|
28
29
|
}
|
30
|
+
interface DeploymentConfigDiffRadioConfig extends Pick<RadioGroupProps, 'name' | 'onChange'> {
|
31
|
+
title: string;
|
32
|
+
options: (Pick<RadioGroupItemProps, 'disabled'> & Pick<SelectPickerOptionType<string>, 'label' | 'value' | 'description' | 'tooltipProps'>)[];
|
33
|
+
groupValue: string;
|
34
|
+
}
|
35
|
+
export interface DeploymentConfigDiffRadioSelectConfig {
|
36
|
+
triggerElementTitle: string;
|
37
|
+
radioGroupConfig: DeploymentConfigDiffRadioConfig[];
|
38
|
+
}
|
29
39
|
export type DeploymentConfigDiffSelectPickerProps = {
|
30
40
|
type: 'string';
|
31
41
|
id: string;
|
@@ -36,6 +46,12 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
36
46
|
id: string;
|
37
47
|
text?: never;
|
38
48
|
selectPickerProps: SelectPickerProps;
|
49
|
+
} | {
|
50
|
+
type: 'radio-group';
|
51
|
+
id: string;
|
52
|
+
text?: never;
|
53
|
+
radioSelectConfig: DeploymentConfigDiffRadioSelectConfig;
|
54
|
+
selectPickerProps?: never;
|
39
55
|
};
|
40
56
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem<'navLink'>, 'href' | 'title' | 'onClick'> {
|
41
57
|
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
@@ -115,3 +131,4 @@ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView e
|
|
115
131
|
isManifestView?: IsManifestView;
|
116
132
|
convertVariables?: boolean;
|
117
133
|
};
|
134
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { UsePopoverProps } from '../Popover';
|
2
|
+
import { DeploymentConfigDiffRadioSelectConfig } from './DeploymentConfigDiff.types';
|
3
|
+
declare const DeploymentConfigDiffRadioSelect: ({ radioSelectConfig, position, }: {
|
4
|
+
radioSelectConfig: DeploymentConfigDiffRadioSelectConfig;
|
5
|
+
position?: UsePopoverProps["position"];
|
6
|
+
}) => JSX.Element;
|
7
|
+
export default DeploymentConfigDiffRadioSelect;
|
@@ -2,3 +2,4 @@ export * from './DeploymentConfigDiff.component';
|
|
2
2
|
export * from './DeploymentConfigDiff.constants';
|
3
3
|
export * from './DeploymentConfigDiff.types';
|
4
4
|
export * from './DeploymentConfigDiff.utils';
|
5
|
+
export { default as DeploymentConfigDiffRadioSelect } from './DeploymentConfigDiffRadioSelect';
|
@@ -10,6 +10,7 @@ export declare const DOCUMENTATION: {
|
|
10
10
|
readonly APP_CREATE_WORKFLOW: "usage/applications/creating-application/workflow";
|
11
11
|
readonly APP_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template";
|
12
12
|
readonly APP_EPHEMERAL_CONTAINER: "usage/applications/app-details/ephemeral-containers";
|
13
|
+
readonly APP_GROUP: "usage/application-groups";
|
13
14
|
readonly APP_METRICS: "usage/applications/app-details/app-metrics";
|
14
15
|
readonly APP_OVERVIEW_TAGS: "usage/applications/overview#manage-tags";
|
15
16
|
readonly APP_ROLLOUT_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template/rollout-deployment";
|
@@ -19,6 +20,7 @@ export declare const DOCUMENTATION: {
|
|
19
20
|
readonly BULK_UPDATE: "usage/bulk-update";
|
20
21
|
readonly CHART_GROUP: "usage/deploy-chart/chart-group";
|
21
22
|
readonly CHART_LIST: "usage/deploy-chart/overview-of-charts";
|
23
|
+
readonly CHART_STORE: "usage/deploy-chart";
|
22
24
|
readonly CHART_STORE_METRICS_SERVER: "dashboard//chart-store/discover?appStoreName=metrics-server";
|
23
25
|
readonly CUSTOM_VALUES: "usage/deploy-chart/overview-of-charts#custom-values";
|
24
26
|
readonly DEPLOYMENT: "usage/applications/creating-application/deployment-template/deployment";
|
@@ -34,6 +36,7 @@ export declare const DOCUMENTATION: {
|
|
34
36
|
readonly KUBE_CONFIG: "usage/resource-browser#running-kubectl-commands-locally";
|
35
37
|
readonly JOBS: "usage/jobs";
|
36
38
|
readonly TAINT: "usage/resource-browser#taint-a-node";
|
39
|
+
readonly RESOURCE_BROWSER: "usage/resource-browser";
|
37
40
|
readonly GLOBAL_CONFIG_API_TOKEN: "getting-started/global-configurations/authorization/api-tokens";
|
38
41
|
readonly GLOBAL_CONFIG_BUILD_INFRA: "global-configurations/build-infra";
|
39
42
|
readonly GLOBAL_CONFIG_CHART: "getting-started/global-configurations/chart-repo";
|
@@ -4,6 +4,7 @@ import { DOCUMENTATION } from './constants';
|
|
4
4
|
export type BaseDocLink<T extends boolean> = {
|
5
5
|
isExternalLink?: T;
|
6
6
|
isEnterprise?: boolean;
|
7
|
+
isLicenseDashboard?: boolean;
|
7
8
|
docLinkKey: T extends true ? string : keyof typeof DOCUMENTATION;
|
8
9
|
};
|
9
10
|
export type DocLinkProps<T extends boolean = false> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth' | 'fontWeight' | 'startIcon'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { BaseDocLink } from './types';
|
2
|
-
export declare const getDocumentationUrl: <T extends boolean = false>({ docLinkKey, isEnterprise, isExternalLink, }: BaseDocLink<T>) => string;
|
2
|
+
export declare const getDocumentationUrl: <T extends boolean = false>({ docLinkKey, isEnterprise, isExternalLink, isLicenseDashboard, }: BaseDocLink<T>) => string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DetailedHTMLProps, ReactElement, ReactNode } from 'react';
|
2
2
|
import { ResizableTagTextAreaProps } from '../../../Common/CustomTagSelector';
|
3
3
|
import { UseStateFiltersReturnType } from '../../../Common/Hooks';
|
4
|
-
import { TooltipProps } from '
|
4
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
5
5
|
import { FileUploadProps } from '../FileUpload';
|
6
6
|
import { SelectPickerOptionType, SelectPickerProps, SelectPickerTextAreaProps } from '../SelectPicker';
|
7
7
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MouseEventHandler, ReactElement } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
-
import { GenericFilterEmptyStateProps } from '
|
3
|
+
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
4
4
|
import { GenericEmptyStateType } from '../../../Common/Types';
|
5
5
|
import { APIResponseHandlerProps } from '../APIResponseHandler';
|
6
6
|
type BaseGenericInfoCardProps = {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { GenericModalFooterProps, GenericModalHeaderProps, GenericModalProps } from './types';
|
3
|
+
declare const GenericModal: {
|
4
|
+
({ name, open, width, onClose, onEscape, closeOnBackdropClick, children, }: PropsWithChildren<GenericModalProps>): JSX.Element;
|
5
|
+
Header: ({ title }: GenericModalHeaderProps) => JSX.Element;
|
6
|
+
Body: ({ children }: PropsWithChildren<{}>) => JSX.Element;
|
7
|
+
Footer: ({ leftSideElement, buttonConfig, children, }: PropsWithChildren<GenericModalFooterProps>) => JSX.Element;
|
8
|
+
};
|
9
|
+
export default GenericModal;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { GenericModalContextType } from './types';
|
3
|
+
export declare const GenericModalProvider: ({ value, children }: PropsWithChildren<{
|
4
|
+
value: GenericModalContextType;
|
5
|
+
}>) => JSX.Element;
|
6
|
+
export declare const useGenericModalContext: () => GenericModalContextType;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { BackdropProps } from '../Backdrop';
|
2
|
+
import { ButtonProps } from '../Button';
|
3
|
+
export interface GenericModalProps extends Partial<Pick<BackdropProps, 'onEscape'>> {
|
4
|
+
/** Unique identifier for the modal */
|
5
|
+
name: string;
|
6
|
+
/** Controls whether the modal is visible or hidden */
|
7
|
+
open: boolean;
|
8
|
+
/** Callback function triggered when the modal is closed */
|
9
|
+
onClose: () => void;
|
10
|
+
/**
|
11
|
+
* Width of the modal (in pixels).
|
12
|
+
* @default 600
|
13
|
+
*/
|
14
|
+
width?: 500 | 600 | 800;
|
15
|
+
/**
|
16
|
+
* Determines if the modal should close when the user clicks outside of it (on the backdrop).
|
17
|
+
* @default false
|
18
|
+
*/
|
19
|
+
closeOnBackdropClick?: boolean;
|
20
|
+
}
|
21
|
+
export interface GenericModalContextType extends Pick<GenericModalProps, 'name' | 'onClose'> {
|
22
|
+
}
|
23
|
+
export interface GenericModalHeaderProps {
|
24
|
+
/** Title text displayed in the modal header */
|
25
|
+
title: string;
|
26
|
+
}
|
27
|
+
export interface GenericModalFooterProps {
|
28
|
+
/** Configuration for the buttons displayed in the modal footer */
|
29
|
+
buttonConfig?: {
|
30
|
+
/** Properties for the primary action button */
|
31
|
+
primaryButton?: ButtonProps;
|
32
|
+
/** Properties for the secondary action button */
|
33
|
+
secondaryButton?: ButtonProps;
|
34
|
+
};
|
35
|
+
/** Optional element to be displayed on the left side of the footer */
|
36
|
+
leftSideElement?: React.ReactNode;
|
37
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { HeaderWithCreateButtonProps } from './types';
|
2
|
-
export declare const HeaderWithCreateButton: ({ headerName }: HeaderWithCreateButtonProps) => JSX.Element;
|
2
|
+
export declare const HeaderWithCreateButton: ({ headerName, additionalHeaderInfo }: HeaderWithCreateButtonProps) => JSX.Element;
|
3
3
|
export default HeaderWithCreateButton;
|
@@ -1,6 +1,8 @@
|
|
1
|
-
import { ActionMenuProps } from '
|
1
|
+
import { ActionMenuProps } from '../../ActionMenu';
|
2
|
+
import { PageHeaderType } from '../types';
|
2
3
|
export interface HeaderWithCreateButtonProps {
|
3
4
|
headerName: string;
|
5
|
+
additionalHeaderInfo: PageHeaderType['additionalHeaderInfo'];
|
4
6
|
}
|
5
7
|
export declare enum CreateActionMenuItems {
|
6
8
|
CUSTOM_APP = "create-custom-app",
|
@@ -45,7 +45,8 @@ export declare enum HelpMenuItems {
|
|
45
45
|
VIEW_ALL_TICKETS = "view-all-tickets",
|
46
46
|
GIVE_FEEDBACK = "give-feedback",
|
47
47
|
CHAT_WITH_SUPPORT = "chat-with-support",
|
48
|
-
RAISE_ISSUE_REQUEST = "raise-issue-request"
|
48
|
+
RAISE_ISSUE_REQUEST = "raise-issue-request",
|
49
|
+
DEVTRON_GPT = "devtron-gpt"
|
49
50
|
}
|
50
51
|
export type HelpButtonActionMenuProps = ActionMenuProps<HelpMenuItems>;
|
51
52
|
export interface ProfileMenuProps {
|