@devtron-labs/devtron-fe-common-lib 1.15.1-pre-5 → 1.15.2-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.
Files changed (76) hide show
  1. package/dist/{@code-editor-AS248Z8Q.js → @code-editor-DRvAFRa4.js} +7792 -7975
  2. package/dist/{@common-rjsf-LqYGieJ9.js → @common-rjsf-BSQQ3wGe.js} +230 -222
  3. package/dist/{@framer-motion-Bw9QEkUf.js → @framer-motion-Dchiw-Rb.js} +619 -637
  4. package/dist/Common/Constants.d.ts +0 -3
  5. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +11 -0
  6. package/dist/Common/Dialogs/Types.d.ts +17 -0
  7. package/dist/Common/Dialogs/index.d.ts +1 -0
  8. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +6 -0
  9. package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -1
  10. package/dist/Common/Toggle/Toggle.d.ts +18 -0
  11. package/dist/Common/Types.d.ts +44 -9
  12. package/dist/Common/index.d.ts +2 -0
  13. package/dist/Shared/Analytics/analytics.d.ts +0 -2
  14. package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
  15. package/dist/Shared/Components/AppStatusModal/types.d.ts +2 -1
  16. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  17. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -2
  18. package/dist/Shared/Components/CICDHistory/service.d.ts +7 -1
  19. package/dist/Shared/Components/CICDHistory/types.d.ts +18 -2
  20. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +1 -18
  21. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -1
  22. package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +2 -1
  23. package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +2 -1
  24. package/dist/Shared/Components/DocLink/types.d.ts +0 -1
  25. package/dist/Shared/Components/DocLink/utils.d.ts +1 -1
  26. package/dist/Shared/Components/Header/types.d.ts +1 -2
  27. package/dist/Shared/Components/Icon/Icon.d.ts +0 -15
  28. package/dist/Shared/Components/Popover/types.d.ts +0 -5
  29. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
  30. package/dist/Shared/Components/Switch/Switch.component.d.ts +1 -1
  31. package/dist/Shared/Components/Switch/types.d.ts +2 -11
  32. package/dist/Shared/Components/Switch/utils.d.ts +2 -2
  33. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  34. package/dist/Shared/Components/Textarea/types.d.ts +1 -17
  35. package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +1 -1
  36. package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +1 -1
  37. package/dist/Shared/Components/index.d.ts +0 -3
  38. package/dist/Shared/Providers/index.d.ts +0 -1
  39. package/dist/Shared/Providers/types.d.ts +12 -40
  40. package/dist/Shared/Services/app.types.d.ts +2 -7
  41. package/dist/Shared/constants.d.ts +1 -2
  42. package/dist/Shared/types.d.ts +3 -7
  43. package/dist/assets/@code-editor.css +1 -1
  44. package/dist/assets/ic-add.18a93616.svg +19 -0
  45. package/dist/assets/{ic-cluster.f1c3fad1.svg → ic-cluster.71ba9e26.svg} +1 -1
  46. package/dist/assets/ic-sparkle-color.01c0be88.svg +1 -0
  47. package/dist/index.d.ts +3 -5
  48. package/dist/index.js +753 -752
  49. package/package.json +3 -3
  50. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +0 -7
  51. package/dist/Shared/Components/ProgressBar/ProgressBar.component.d.ts +0 -2
  52. package/dist/Shared/Components/ProgressBar/index.d.ts +0 -1
  53. package/dist/Shared/Components/ProgressBar/types.d.ts +0 -9
  54. package/dist/Shared/Components/SwitchThemeDialog/SwitchThemeDialog.component.d.ts +0 -3
  55. package/dist/Shared/Components/SwitchThemeDialog/index.d.ts +0 -2
  56. package/dist/Shared/Components/SwitchThemeDialog/types.d.ts +0 -35
  57. package/dist/Shared/Components/Textarea/utils.d.ts +0 -5
  58. package/dist/Shared/Components/Typewriter/BlinkingCursor.d.ts +0 -1
  59. package/dist/Shared/Components/Typewriter/index.d.ts +0 -2
  60. package/dist/Shared/Components/Typewriter/useTypewriter.d.ts +0 -1
  61. package/dist/assets/ic-add.2d785695.svg +0 -3
  62. package/dist/assets/ic-asterisk.ab224e72.svg +0 -3
  63. package/dist/assets/ic-brain.838491eb.svg +0 -3
  64. package/dist/assets/ic-cluster-isolated.93f843b9.svg +0 -3
  65. package/dist/assets/ic-devtron-ai.535b45ec.svg +0 -287
  66. package/dist/assets/ic-environment-isolated.b772ae9d.svg +0 -3
  67. package/dist/assets/ic-environment.e639b8f3.svg +0 -4
  68. package/dist/assets/ic-folder-color.7cf84356.svg +0 -6
  69. package/dist/assets/ic-minus.416da21b.svg +0 -3
  70. package/dist/assets/ic-openai.6e4c9a37.svg +0 -10
  71. package/dist/assets/ic-paper-plane.ad7e6d2f.svg +0 -3
  72. package/dist/assets/ic-shapes.b7b5c28f.svg +0 -3
  73. package/dist/assets/ic-sparkle-ai-color.34768219.svg +0 -11
  74. package/dist/assets/ic-sparkle-color.a9722593.svg +0 -18
  75. package/dist/assets/ic-stop-fill.32ea653f.svg +0 -8
  76. package/dist/assets/ic-world-globe.877fa6a0.svg +0 -3
@@ -1,3 +1,3 @@
1
1
  import { ToggleResolveScopedVariablesProps } from './types';
2
- declare const ToggleResolveScopedVariables: ({ name, resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip, }: ToggleResolveScopedVariablesProps) => JSX.Element;
2
+ declare const ToggleResolveScopedVariables: ({ resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip, throttleOnChange, }: ToggleResolveScopedVariablesProps) => JSX.Element;
3
3
  export default ToggleResolveScopedVariables;
@@ -1,5 +1,4 @@
1
1
  export interface ToggleResolveScopedVariablesProps {
2
- name: string;
3
2
  resolveScopedVariables: boolean;
4
3
  handleToggleScopedVariablesView: () => void;
5
4
  isDisabled?: boolean;
@@ -7,4 +6,5 @@ export interface ToggleResolveScopedVariablesProps {
7
6
  * @default true
8
7
  */
9
8
  showTooltip?: boolean;
9
+ throttleOnChange?: boolean;
10
10
  }
@@ -63,7 +63,6 @@ export * from './ModalSidebarPanel';
63
63
  export * from './NumbersCount';
64
64
  export * from './PhoneInput';
65
65
  export * from './Plugin';
66
- export * from './ProgressBar';
67
66
  export { default as QRCode } from './QRCode';
68
67
  export * from './ReactSelect';
69
68
  export * from './RegistryIcon';
@@ -74,7 +73,6 @@ export * from './ShowMoreText';
74
73
  export * from './SSOProviderIcon';
75
74
  export * from './StatusComponent';
76
75
  export * from './Switch';
77
- export * from './SwitchThemeDialog';
78
76
  export * from './TabGroup';
79
77
  export * from './Table';
80
78
  export * from './TagsKeyValueTable';
@@ -82,7 +80,6 @@ export * from './TargetPlatforms';
82
80
  export * from './Textarea';
83
81
  export * from './ThemeSwitcher';
84
82
  export * from './ToggleResolveScopedVariables';
85
- export * from './Typewriter';
86
83
  export * from './UnsavedChanges';
87
84
  export * from './UnsavedChangesDialog';
88
85
  export * from './UserIdentifier';
@@ -2,5 +2,4 @@ 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';
6
5
  export * from './UserEmailProvider';
@@ -11,25 +11,20 @@ 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
- }
18
14
  export interface SidePanelConfig {
19
- state: SidePanelTab | 'closed';
15
+ /** Determines whether the side panel is visible */
16
+ open: boolean;
20
17
  /** Optional flag to reset/reinitialize the side panel state */
21
18
  reinitialize?: boolean;
22
19
  /** URL to documentation that should be displayed in the panel */
23
20
  docLink: string | null;
24
21
  }
25
- type AIAgentContextType = {
26
- path: string;
27
- context: Record<string, string>;
28
- };
29
- type CommonMainContextProps = {
22
+ export interface MainContext {
23
+ serverMode: SERVER_MODE;
30
24
  setServerMode: (serverMode: SERVER_MODE) => void;
31
25
  isHelpGettingStartedClicked: boolean;
32
26
  showCloseButtonAfterGettingStartedClicked: () => void;
27
+ loginCount: number;
33
28
  setLoginCount: (loginCount: number) => void;
34
29
  showGettingStartedCard: boolean;
35
30
  setShowGettingStartedCard: (showGettingStartedCard: boolean) => void;
@@ -37,8 +32,9 @@ type CommonMainContextProps = {
37
32
  setGettingStartedClicked: (isGettingStartedClicked: boolean) => void;
38
33
  moduleInInstallingState: string;
39
34
  setModuleInInstallingState: (moduleInInstallingState: string) => void;
35
+ installedModuleMap: MutableRefObject<Record<string, boolean>>;
40
36
  currentServerInfo: {
41
- serverInfo: ServerInfo | null;
37
+ serverInfo: ServerInfo;
42
38
  fetchingServerInfo: boolean;
43
39
  };
44
40
  isAirgapped: boolean;
@@ -61,24 +57,17 @@ type CommonMainContextProps = {
61
57
  canOnlyViewPermittedEnvOrgLevel: boolean;
62
58
  viewIsPipelineRBACConfiguredNode: ReactNode;
63
59
  handleOpenLicenseInfoDialog: (initialDialogType?: LicenseInfoDialogType.ABOUT | LicenseInfoDialogType.LICENSE) => void;
64
- setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
65
- canFetchHelmAppStatus: boolean;
66
- setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
67
- setAIAgentContext: (aiAgentContext: AIAgentContextType) => void;
68
- setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
69
- };
70
- export type MainContext = CommonMainContextProps & ({
71
- isLicenseDashboard?: never;
72
- serverMode: SERVER_MODE;
73
- loginCount: number | null;
74
- installedModuleMap: MutableRefObject<Record<string, boolean>>;
75
60
  /**
76
61
  * Data is set only if showLicenseData is received as true
77
62
  */
78
63
  licenseData: DevtronLicenseInfo;
64
+ setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
65
+ canFetchHelmAppStatus: boolean;
79
66
  reloadVersionConfig: ReloadVersionConfigTypes;
80
67
  intelligenceConfig: IntelligenceConfig;
68
+ setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
81
69
  sidePanelConfig: SidePanelConfig;
70
+ setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
82
71
  /**
83
72
  * Indicates whether the current Devtron instance is running as an Enterprise edition. \
84
73
  * This flag is determined based on server-side configuration.
@@ -89,25 +78,8 @@ export type MainContext = CommonMainContextProps & ({
89
78
  * Used to conditionally render or enable features that depend on fe-lib
90
79
  */
91
80
  isFELibAvailable: boolean;
92
- aiAgentContext: AIAgentContextType;
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
- aiAgentContext: null;
108
- });
81
+ }
109
82
  export interface MainContextProviderProps {
110
83
  children: ReactNode;
111
84
  value: MainContext;
112
85
  }
113
- export {};
@@ -1,5 +1,5 @@
1
1
  import { KeyValueTableData } from '../Components';
2
- import { DeploymentStrategyType, TargetPlatformsDTO } from '../types';
2
+ import { TargetPlatformsDTO } from '../types';
3
3
  import { OverrideMergeStrategyType } from '../../Pages/Applications';
4
4
  import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
5
5
  interface WebhookDataType {
@@ -237,9 +237,6 @@ 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;
243
240
  }
244
241
  export interface AppEnvDeploymentConfigDTO {
245
242
  deploymentTemplate: DeploymentTemplateDTO | null;
@@ -251,8 +248,6 @@ export interface AppEnvDeploymentConfigDTO {
251
248
  export type AppEnvDeploymentConfigPayloadType = {
252
249
  appName: string;
253
250
  envName: string;
254
- strategy?: DeploymentStrategyType;
255
- } & ({
256
251
  configType: AppEnvDeploymentConfigType;
257
252
  wfrId?: number;
258
253
  pipelineId?: number;
@@ -266,7 +261,7 @@ export type AppEnvDeploymentConfigPayloadType = {
266
261
  pipelineId: number;
267
262
  configArea: 'CdRollback' | 'DeploymentHistory';
268
263
  wfrId: number;
269
- });
264
+ };
270
265
  export declare enum TemplateListType {
271
266
  DefaultVersions = 1,
272
267
  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, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
3
+ import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
4
4
  export declare const ARTIFACT_STATUS: {
5
5
  PROGRESSING: string;
6
6
  DEGRADED: string;
@@ -429,5 +429,4 @@ 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>;
433
432
  export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
@@ -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, Strategy } from '../Common/Types';
4
+ import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
5
5
  import { ReleaseMode } from '../Pages/index';
6
- import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerError, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
6
+ import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, 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 {
@@ -1043,6 +1043,7 @@ export interface DeploymentStatusDetailsType {
1043
1043
  timelines: DeploymentStatusDetailsTimelineType[];
1044
1044
  wfrStatus?: WorkflowRunnerStatusDTO;
1045
1045
  isDeploymentWithoutApproval: boolean;
1046
+ deploymentAppType: DeploymentAppTypes;
1046
1047
  }
1047
1048
  export type DeploymentStatusTimelineType = TIMELINE_STATUS.DEPLOYMENT_INITIATED | TIMELINE_STATUS.GIT_COMMIT | TIMELINE_STATUS.ARGOCD_SYNC | TIMELINE_STATUS.KUBECTL_APPLY | TIMELINE_STATUS.APP_HEALTH | TIMELINE_STATUS.HELM_PACKAGE_GENERATED | TIMELINE_STATUS.HELM_MANIFEST_PUSHED_TO_HELM_REPO;
1048
1049
  export type DeploymentStatusBreakdownItemIconType = 'success' | 'failed' | 'unknown' | 'inprogress' | 'unreachable' | 'loading' | 'disconnect' | 'timed_out' | '';
@@ -1097,9 +1098,4 @@ export interface IntelligenceConfig {
1097
1098
  export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
1098
1099
  export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
1099
1100
  export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
1100
- export interface PipelineDeploymentStrategy {
1101
- pipelineId: number;
1102
- strategies: Strategy[];
1103
- error: ServerError;
1104
- }
1105
1101
  export {};