@devtron-labs/devtron-fe-common-lib 1.15.1-beta-5 → 1.15.1-pre-2
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-D3u1HU6g.js → @code-editor-xNsLtfRd.js} +7908 -7788
- package/dist/{@common-rjsf-BWZsX9t4.js → @common-rjsf-iH1FvWN3.js} +222 -230
- 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/Types.d.ts +1 -43
- package/dist/Common/index.d.ts +0 -2
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +2 -46
- package/dist/Pages/ResourceBrowser/constants.d.ts +0 -2
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- 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/DocLink/types.d.ts +1 -0
- package/dist/Shared/Components/DocLink/utils.d.ts +1 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +9 -4
- 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/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/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/index.d.ts +2 -0
- package/dist/Shared/Helpers.d.ts +1 -2
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +39 -12
- package/dist/Shared/Services/app.types.d.ts +7 -2
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +8 -4
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@common-rjsf.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-devtron-ai.535b45ec.svg +287 -0
- package/dist/assets/ic-folder-color.7cf84356.svg +6 -0
- package/dist/assets/{ic-minus.aac464f7.svg → ic-minus.416da21b.svg} +1 -1
- 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/assets/ic-world-globe.877fa6a0.svg +3 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +767 -773
- package/package.json +3 -3
- 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/ic-add.18a93616.svg +0 -19
- package/dist/assets/ic-container.92a4c33a.svg +0 -3
- package/dist/assets/ic-gavel.a3b064b5.svg +0 -3
- package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
- package/dist/assets/ic-speedometer.3ecaae3b.svg +0 -3
- package/dist/assets/ic-two-cubes.056d1333.svg +0 -3
- /package/dist/assets/{ic-container-registry.4e1e6455.svg → ic-container.4e1e6455.svg} +0 -0
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ToggleResolveScopedVariablesProps } from './types';
|
2
|
-
declare const ToggleResolveScopedVariables: ({ resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip,
|
2
|
+
declare const ToggleResolveScopedVariables: ({ name, resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip, }: ToggleResolveScopedVariablesProps) => JSX.Element;
|
3
3
|
export default ToggleResolveScopedVariables;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export interface ToggleResolveScopedVariablesProps {
|
2
|
+
name: string;
|
2
3
|
resolveScopedVariables: boolean;
|
3
4
|
handleToggleScopedVariablesView: () => void;
|
4
5
|
isDisabled?: boolean;
|
@@ -6,5 +7,4 @@ export interface ToggleResolveScopedVariablesProps {
|
|
6
7
|
* @default true
|
7
8
|
*/
|
8
9
|
showTooltip?: boolean;
|
9
|
-
throttleOnChange?: boolean;
|
10
10
|
}
|
@@ -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>;
|
@@ -73,6 +73,7 @@ export * from './ShowMoreText';
|
|
73
73
|
export * from './SSOProviderIcon';
|
74
74
|
export * from './StatusComponent';
|
75
75
|
export * from './Switch';
|
76
|
+
export * from './SwitchThemeDialog';
|
76
77
|
export * from './TabGroup';
|
77
78
|
export * from './Table';
|
78
79
|
export * from './TagsKeyValueTable';
|
@@ -80,6 +81,7 @@ export * from './TargetPlatforms';
|
|
80
81
|
export * from './Textarea';
|
81
82
|
export * from './ThemeSwitcher';
|
82
83
|
export * from './ToggleResolveScopedVariables';
|
84
|
+
export * from './Typewriter';
|
83
85
|
export * from './UnsavedChanges';
|
84
86
|
export * from './UnsavedChangesDialog';
|
85
87
|
export * from './UserIdentifier';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { Pair } from 'yaml';
|
|
5
5
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
7
|
import { AggregatedNodes, PodMetadatum } from './Components';
|
8
|
-
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions,
|
8
|
+
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
11
11
|
* The text to be highlighted
|
@@ -102,5 +102,4 @@ export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, t
|
|
102
102
|
export declare const clearCookieOnLogout: () => void;
|
103
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
105
|
-
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
106
105
|
export {};
|
@@ -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,20 +11,21 @@ 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 */
|
20
23
|
docLink: string | null;
|
21
24
|
}
|
22
|
-
|
23
|
-
serverMode: SERVER_MODE;
|
25
|
+
type CommonMainContextProps = {
|
24
26
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
25
27
|
isHelpGettingStartedClicked: boolean;
|
26
28
|
showCloseButtonAfterGettingStartedClicked: () => void;
|
27
|
-
loginCount: number;
|
28
29
|
setLoginCount: (loginCount: number) => void;
|
29
30
|
showGettingStartedCard: boolean;
|
30
31
|
setShowGettingStartedCard: (showGettingStartedCard: boolean) => void;
|
@@ -32,9 +33,8 @@ export interface MainContext {
|
|
32
33
|
setGettingStartedClicked: (isGettingStartedClicked: boolean) => void;
|
33
34
|
moduleInInstallingState: string;
|
34
35
|
setModuleInInstallingState: (moduleInInstallingState: string) => void;
|
35
|
-
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
36
36
|
currentServerInfo: {
|
37
|
-
serverInfo: ServerInfo;
|
37
|
+
serverInfo: ServerInfo | null;
|
38
38
|
fetchingServerInfo: boolean;
|
39
39
|
};
|
40
40
|
isAirgapped: boolean;
|
@@ -57,17 +57,29 @@ export interface MainContext {
|
|
57
57
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
58
58
|
viewIsPipelineRBACConfiguredNode: ReactNode;
|
59
59
|
handleOpenLicenseInfoDialog: (initialDialogType?: LicenseInfoDialogType.ABOUT | LicenseInfoDialogType.LICENSE) => void;
|
60
|
+
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
61
|
+
canFetchHelmAppStatus: boolean;
|
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;
|
69
|
+
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
70
|
+
};
|
71
|
+
export type MainContext = CommonMainContextProps & ({
|
72
|
+
isLicenseDashboard?: never;
|
73
|
+
serverMode: SERVER_MODE;
|
74
|
+
loginCount: number | null;
|
75
|
+
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
60
76
|
/**
|
61
77
|
* Data is set only if showLicenseData is received as true
|
62
78
|
*/
|
63
79
|
licenseData: DevtronLicenseInfo;
|
64
|
-
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
65
|
-
canFetchHelmAppStatus: boolean;
|
66
80
|
reloadVersionConfig: ReloadVersionConfigTypes;
|
67
81
|
intelligenceConfig: IntelligenceConfig;
|
68
|
-
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
69
82
|
sidePanelConfig: SidePanelConfig;
|
70
|
-
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
71
83
|
/**
|
72
84
|
* Indicates whether the current Devtron instance is running as an Enterprise edition. \
|
73
85
|
* This flag is determined based on server-side configuration.
|
@@ -78,8 +90,23 @@ export interface MainContext {
|
|
78
90
|
* Used to conditionally render or enable features that depend on fe-lib
|
79
91
|
*/
|
80
92
|
isFELibAvailable: boolean;
|
81
|
-
}
|
93
|
+
} | {
|
94
|
+
isLicenseDashboard: true;
|
95
|
+
serverMode: null;
|
96
|
+
loginCount: null;
|
97
|
+
installedModuleMap: null;
|
98
|
+
/**
|
99
|
+
* Data is set only if showLicenseData is received as true
|
100
|
+
*/
|
101
|
+
licenseData: null;
|
102
|
+
reloadVersionConfig: null;
|
103
|
+
intelligenceConfig: null;
|
104
|
+
sidePanelConfig: null;
|
105
|
+
isEnterprise: false;
|
106
|
+
isFELibAvailable: false;
|
107
|
+
});
|
82
108
|
export interface MainContextProviderProps {
|
83
109
|
children: ReactNode;
|
84
110
|
value: MainContext;
|
85
111
|
}
|
112
|
+
export {};
|
@@ -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 {
|
@@ -97,8 +97,7 @@ export declare enum Nodes {
|
|
97
97
|
Node = "Node",
|
98
98
|
Overview = "Overview",
|
99
99
|
MonitoringDashboard = "MonitoringDashboard",
|
100
|
-
UpgradeCluster = "UpgradeCluster"
|
101
|
-
ResourceRecommender = "ResourceRecommender"
|
100
|
+
UpgradeCluster = "UpgradeCluster"
|
102
101
|
}
|
103
102
|
export type NodeType = keyof typeof Nodes;
|
104
103
|
export interface Node {
|
@@ -1098,4 +1097,9 @@ export interface IntelligenceConfig {
|
|
1098
1097
|
export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
|
1099
1098
|
export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
|
1100
1099
|
export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
|
1100
|
+
export interface PipelineDeploymentStrategy {
|
1101
|
+
pipelineId: number;
|
1102
|
+
strategies: Strategy[];
|
1103
|
+
error: ServerError;
|
1104
|
+
}
|
1101
1105
|
export {};
|