@devtron-labs/devtron-fe-common-lib 1.15.1-beta-2 → 1.15.1-beta-3
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-DEi6pfDo.js → @code-editor-DlSJ1llB.js} +6603 -6429
- package/dist/{@common-rjsf-D247IIXC.js → @common-rjsf-CYuivsxy.js} +2 -2
- package/dist/{@framer-motion-C5Xvz7Lq.js → @framer-motion-Dchiw-Rb.js} +1 -1
- package/dist/{@react-dates-B6q1sdbJ.js → @react-dates-D5kydtW-.js} +14 -14
- package/dist/{@react-select-LSvqtVJj.js → @react-select-Cmser7OI.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BpJty95h.js → @react-virtualized-sticky-tree-DMnFy9PE.js} +1 -1
- package/dist/{@vendor-DC3JvJ9U.js → @vendor-STJ9h0oI.js} +9657 -9667
- package/dist/Shared/Analytics/analytics.d.ts +2 -0
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +2 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -7
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -18
- 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/Icon/Icon.d.ts +7 -0
- 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/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/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/index.d.ts +1 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +11 -2
- package/dist/Shared/Services/app.types.d.ts +7 -2
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +7 -2
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-add.2d785695.svg +3 -0
- package/dist/assets/ic-brain.838491eb.svg +3 -0
- package/dist/assets/ic-devtron-ai.535b45ec.svg +287 -0
- package/dist/assets/ic-folder-color.7cf84356.svg +6 -0
- package/dist/assets/ic-minus.416da21b.svg +3 -0
- package/dist/assets/ic-paper-plane.ad7e6d2f.svg +3 -0
- package/dist/assets/ic-sparkle-ai-color.d123b325.svg +16 -0
- package/dist/assets/ic-sparkle-color.a9722593.svg +18 -0
- package/dist/assets/ic-stop-fill.32ea653f.svg +8 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +811 -811
- package/package.json +1 -1
- package/dist/assets/ic-add.18a93616.svg +0 -19
- package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
@@ -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;
|
@@ -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,5 +1,5 @@
|
|
1
1
|
import { SelectPickerOptionType } from '@Shared/Components/SelectPicker';
|
2
|
-
import { History } from '../types';
|
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
2
|
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
3
|
-
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
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,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';
|
@@ -20,6 +20,7 @@ export declare const iconMap: {
|
|
20
20
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
21
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
22
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
|
+
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
24
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
25
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
26
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -52,6 +53,7 @@ export declare const iconMap: {
|
|
52
53
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
54
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
55
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
|
+
'ic-devtron-ai': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
57
|
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
58
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
59
|
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -77,6 +79,7 @@ export declare const iconMap: {
|
|
77
79
|
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
80
|
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
81
|
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
|
+
'ic-folder-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
80
83
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
84
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
85
|
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -123,6 +126,7 @@ export declare const iconMap: {
|
|
123
126
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
127
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
128
|
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
129
|
+
'ic-minus': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
130
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
127
131
|
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
128
132
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -135,6 +139,7 @@ export declare const iconMap: {
|
|
135
139
|
'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
140
|
'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
141
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
142
|
+
'ic-paper-plane': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
143
|
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
144
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
140
145
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -148,11 +153,13 @@ export declare const iconMap: {
|
|
148
153
|
'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
149
154
|
'ic-sort-descending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
150
155
|
'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
156
|
+
'ic-sparkle-ai-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
151
157
|
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
152
158
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
153
159
|
'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
154
160
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
155
161
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
162
|
+
'ic-stop-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
156
163
|
'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
157
164
|
'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
158
165
|
'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -50,6 +50,11 @@ export interface UsePopoverProps {
|
|
50
50
|
* @param closePopover - A function to close the popover.
|
51
51
|
*/
|
52
52
|
onPopoverKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
|
53
|
+
/**
|
54
|
+
* Variant of the popover (bg, shadow and styles changes based on variant)
|
55
|
+
* @default 'menu'
|
56
|
+
*/
|
57
|
+
variant?: 'menu' | 'overlay';
|
53
58
|
}
|
54
59
|
/**
|
55
60
|
* Represents the return type of the `usePopover` hook, providing properties and methods
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { UsePopoverProps, UsePopoverReturnType } from './types';
|
2
|
-
export declare const usePopover: ({ id, position, alignment, width, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
|
2
|
+
export declare const usePopover: ({ id, position, alignment, width, variant, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TextareaProps } from './types';
|
2
|
-
declare const Textarea: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderRadiusConfig, labelTooltipConfig, labelTippyCustomizedConfig, hideFormFieldInfo, value, borderConfig, ...props }: TextareaProps) => JSX.Element;
|
2
|
+
declare const Textarea: ({ name, label, textareaRef: textareaRefProp, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderRadiusConfig, labelTooltipConfig, labelTippyCustomizedConfig, hideFormFieldInfo, value, borderConfig, disableResize, newlineOnShiftEnter, ...props }: TextareaProps) => JSX.Element;
|
3
3
|
export default Textarea;
|
@@ -13,9 +13,25 @@ export interface TextareaProps extends Omit<FormFieldWrapperProps, 'children' |
|
|
13
13
|
*
|
14
14
|
* @default ComponentSizeType.large
|
15
15
|
*/
|
16
|
-
size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
|
16
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.small | ComponentSizeType.medium | ComponentSizeType.large>;
|
17
17
|
/**
|
18
18
|
* Value of the textarea
|
19
19
|
*/
|
20
20
|
value: string;
|
21
|
+
/**
|
22
|
+
* If true, the textarea resize is disabled
|
23
|
+
*
|
24
|
+
* @default false
|
25
|
+
*/
|
26
|
+
disableResize?: true;
|
27
|
+
/**
|
28
|
+
* Allows inserting a newline with Shift + Enter instead of Enter alone.
|
29
|
+
*
|
30
|
+
* When enabled, pressing Enter submits the form, while Shift + Enter inserts a newline.
|
31
|
+
* Useful for forms where Enter should trigger submission, but multiline input is still needed.
|
32
|
+
*
|
33
|
+
* @default false
|
34
|
+
*/
|
35
|
+
newlineOnShiftEnter?: boolean;
|
36
|
+
textareaRef?: React.MutableRefObject<HTMLTextAreaElement> | React.RefCallback<HTMLTextAreaElement>;
|
21
37
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const BlinkingCursor: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const useTypewriter: (text: string) => import('framer-motion').MotionValue<string>;
|
@@ -81,6 +81,7 @@ export * from './TargetPlatforms';
|
|
81
81
|
export * from './Textarea';
|
82
82
|
export * from './ThemeSwitcher';
|
83
83
|
export * from './ToggleResolveScopedVariables';
|
84
|
+
export * from './Typewriter';
|
84
85
|
export * from './UnsavedChanges';
|
85
86
|
export * from './UnsavedChangesDialog';
|
86
87
|
export * from './UserIdentifier';
|
@@ -2,4 +2,5 @@ export * from './ImageSelectionUtility';
|
|
2
2
|
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
4
|
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
5
|
+
export { SidePanelTab } from './types';
|
5
6
|
export * from './UserEmailProvider';
|
@@ -11,9 +11,12 @@ export interface ReloadVersionConfigTypes {
|
|
11
11
|
updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
|
12
12
|
isRefreshing: boolean;
|
13
13
|
}
|
14
|
+
export declare enum SidePanelTab {
|
15
|
+
DOCUMENTATION = "documentation",
|
16
|
+
ASK_DEVTRON = "ask-devtron"
|
17
|
+
}
|
14
18
|
export interface SidePanelConfig {
|
15
|
-
|
16
|
-
open: boolean;
|
19
|
+
state: SidePanelTab | 'closed';
|
17
20
|
/** Optional flag to reset/reinitialize the side panel state */
|
18
21
|
reinitialize?: boolean;
|
19
22
|
/** URL to documentation that should be displayed in the panel */
|
@@ -57,6 +60,12 @@ type CommonMainContextProps = {
|
|
57
60
|
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
58
61
|
canFetchHelmAppStatus: boolean;
|
59
62
|
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
63
|
+
aiAgentContext: {
|
64
|
+
path: string;
|
65
|
+
context: Record<string, string>;
|
66
|
+
};
|
67
|
+
setAIAgentContext: (aiAgentContext: CommonMainContextProps['aiAgentContext']) => void;
|
68
|
+
sidePanelConfig: SidePanelConfig;
|
60
69
|
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
61
70
|
};
|
62
71
|
export type MainContext = CommonMainContextProps & ({
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { KeyValueTableData } from '../Components';
|
2
|
-
import { TargetPlatformsDTO } from '../types';
|
2
|
+
import { DeploymentStrategyType, TargetPlatformsDTO } from '../types';
|
3
3
|
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
4
4
|
import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
|
5
5
|
interface WebhookDataType {
|
@@ -237,6 +237,9 @@ export interface PipelineConfigDataDTO {
|
|
237
237
|
data: Record<string, any>;
|
238
238
|
pipelineTriggerType: string;
|
239
239
|
Strategy: string;
|
240
|
+
updatedBy: string;
|
241
|
+
updatedOn: string;
|
242
|
+
selectedAtRuntime: boolean;
|
240
243
|
}
|
241
244
|
export interface AppEnvDeploymentConfigDTO {
|
242
245
|
deploymentTemplate: DeploymentTemplateDTO | null;
|
@@ -248,6 +251,8 @@ export interface AppEnvDeploymentConfigDTO {
|
|
248
251
|
export type AppEnvDeploymentConfigPayloadType = {
|
249
252
|
appName: string;
|
250
253
|
envName: string;
|
254
|
+
strategy?: DeploymentStrategyType;
|
255
|
+
} & ({
|
251
256
|
configType: AppEnvDeploymentConfigType;
|
252
257
|
wfrId?: number;
|
253
258
|
pipelineId?: number;
|
@@ -261,7 +266,7 @@ export type AppEnvDeploymentConfigPayloadType = {
|
|
261
266
|
pipelineId: number;
|
262
267
|
configArea: 'CdRollback' | 'DeploymentHistory';
|
263
268
|
wfrId: number;
|
264
|
-
};
|
269
|
+
});
|
265
270
|
export declare enum TemplateListType {
|
266
271
|
DefaultVersions = 1,
|
267
272
|
PublishedOnEnvironments = 2,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
2
2
|
import { InfoBlockProps } from './Components';
|
3
|
-
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
|
4
4
|
export declare const ARTIFACT_STATUS: {
|
5
5
|
PROGRESSING: string;
|
6
6
|
DEGRADED: string;
|
@@ -429,4 +429,5 @@ export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], st
|
|
429
429
|
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|
430
430
|
export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
|
431
431
|
export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
432
|
+
export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
|
432
433
|
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { ParsedCountry } from 'react-international-phone';
|
3
3
|
import { Dayjs } from 'dayjs';
|
4
|
-
import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
|
4
|
+
import { APIOptions, ApprovalConfigDataType, Strategy } from '../Common/Types';
|
5
5
|
import { ReleaseMode } from '../Pages/index';
|
6
|
-
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
6
|
+
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerError, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
7
7
|
import { SelectPickerOptionType, WorkflowRunnerStatusDTO } from './Components';
|
8
8
|
import { BASE_CONFIGURATION_ENV_ID, DEPLOYMENT_STATUS, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
9
9
|
export declare enum InstallationType {
|
@@ -1097,4 +1097,9 @@ export interface IntelligenceConfig {
|
|
1097
1097
|
export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
|
1098
1098
|
export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
|
1099
1099
|
export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
|
1100
|
+
export interface PipelineDeploymentStrategy {
|
1101
|
+
pipelineId: number;
|
1102
|
+
strategies: Strategy[];
|
1103
|
+
error: ServerError;
|
1104
|
+
}
|
1100
1105
|
export {};
|