@devtron-labs/devtron-fe-common-lib 1.22.8-beta-6 → 1.22.8-beta-7

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 (56) hide show
  1. package/dist/{@code-editor-D0Mb4nKr.js → @code-editor-QkakENNz.js} +8863 -9203
  2. package/dist/{@common-rjsf-LNUwm6zS.js → @common-rjsf-BHsdR2Q-.js} +2 -2
  3. package/dist/{@framer-motion-Bi7d_Mil.js → @framer-motion-C1DEPd1l.js} +182 -182
  4. package/dist/{@moment-CGWt8tF2.js → @moment-CwOqp704.js} +493 -524
  5. package/dist/{@react-select-C5q5RdNV.js → @react-select-DRXgZqgY.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-LXSXNrbc.js → @react-virtualized-sticky-tree-BSwmpJIm.js} +1 -1
  7. package/dist/@vendor-D8IC1B-Y.js +122211 -0
  8. package/dist/Common/API/reactQueryHooks.d.ts +1 -2
  9. package/dist/Common/Constants.d.ts +0 -3
  10. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +4 -2
  11. package/dist/Common/DraggableWrapper/types.d.ts +2 -6
  12. package/dist/Common/GenericDescription/GenericDescription.d.ts +1 -1
  13. package/dist/Common/GenericDescription/constant.d.ts +40 -0
  14. package/dist/Common/GenericDescription/types.d.ts +0 -6
  15. package/dist/Common/GenericDescription/utils.d.ts +0 -1
  16. package/dist/Pages-Devtron-2.0/Navigation/types.d.ts +1 -1
  17. package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +1 -1
  18. package/dist/Shared/Components/AppStatusModal/types.d.ts +1 -4
  19. package/dist/Shared/Components/Charts/types.d.ts +2 -0
  20. package/dist/Shared/Components/DatePicker/DateTimePicker.d.ts +1 -1
  21. package/dist/Shared/Components/DatePicker/constants.d.ts +2 -112
  22. package/dist/Shared/Components/DatePicker/index.d.ts +0 -2
  23. package/dist/Shared/Components/DatePicker/types.d.ts +34 -29
  24. package/dist/Shared/Components/DatePicker/utils.d.ts +1 -1
  25. package/dist/Shared/Components/DocLink/constants.d.ts +1 -0
  26. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
  27. package/dist/Shared/Components/FloatingVariablesSuggestions/constants.d.ts +1 -4
  28. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +2 -4
  29. package/dist/Shared/Components/Icon/Icon.d.ts +0 -11
  30. package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
  31. package/dist/Shared/Providers/MainContextProvider/types.d.ts +4 -43
  32. package/dist/Shared/Services/types.d.ts +0 -1
  33. package/dist/Shared/types.d.ts +1 -1
  34. package/dist/assets/@code-editor.css +1 -1
  35. package/dist/assets/@vendor.css +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.js +965 -977
  38. package/package.json +3 -8
  39. package/dist/@react-dates-CR-uCH60.js +0 -7634
  40. package/dist/@vendor-CtCMPfdc.js +0 -81580
  41. package/dist/Common/Markdown/constant.d.ts +0 -28
  42. package/dist/Shared/Components/DatePicker/DayPickerRangeController.d.ts +0 -2
  43. package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +0 -11
  44. package/dist/assets/@react-dates.css +0 -1
  45. package/dist/assets/ic-bell.d2aa01ec.svg +0 -3
  46. package/dist/assets/ic-bulb.3906a732.svg +0 -7
  47. package/dist/assets/ic-calender-blank.963e3423.svg +0 -19
  48. package/dist/assets/ic-close-circle.b39dd87d.svg +0 -3
  49. package/dist/assets/ic-comment.cc141b33.svg +0 -3
  50. package/dist/assets/ic-dot-circle.5ce1fccf.svg +0 -3
  51. package/dist/assets/ic-new-chat.f7c90f8e.svg +0 -5
  52. package/dist/assets/ic-piggybank.3a4839d7.svg +0 -3
  53. package/dist/assets/ic-priority-high-fill.53755d8f.svg +0 -3
  54. package/dist/assets/ic-priority-low-fill.79e781ae.svg +0 -4
  55. package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +0 -10
  56. package/dist/assets/ic-red-bulb.25e01bfc.svg +0 -9
@@ -1,7 +1,6 @@
1
- import { QueryKey, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
1
+ import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import { ServerErrors } from '../ServerError';
3
3
  import { ResponseType } from '../Types';
4
4
  export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
5
5
  export declare const useMutation: <TData = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<ResponseType<TData>, ServerErrors, TVariables, TContext>) => UseMutationResult<ResponseType<TData>, ServerErrors, TVariables, TContext>;
6
- export declare const useInfiniteQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, WrapWithResponseType extends boolean = true>(options: UseInfiniteQueryOptions<WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, ServerErrors, TData, WrapWithResponseType extends true ? ResponseType<TQueryFnData> : TQueryFnData, TQueryKey>) => UseInfiniteQueryResult<TData, ServerErrors>;
7
6
  export { useQueryClient };
@@ -42,8 +42,6 @@ export declare const URLS: {
42
42
  readonly APP_DEPLOYMNENT_HISTORY: "deployments";
43
43
  readonly APP_DETAILS: "details";
44
44
  readonly APP_DETAILS_K8: "k8s-resources";
45
- readonly EXTERNAL_ARGO_APP: "eaa";
46
- readonly EXTERNAL_FLUX_APP: "external-flux";
47
45
  readonly DETAILS: "/details";
48
46
  readonly CD_DETAILS: "cd-details";
49
47
  readonly APP_TRIGGER: "trigger";
@@ -111,7 +109,6 @@ export declare const URLS: {
111
109
  };
112
110
  export declare const ROUTES: {
113
111
  readonly APP: "app";
114
- readonly ATHENA: "athena";
115
112
  readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
116
113
  readonly APP_TEMPLATE_DATA: "app/template/data";
117
114
  readonly ENVIRONMENT_CATEGORIES: "env/categories";
@@ -3,6 +3,8 @@ import { DraggableWrapperProps } from './types';
3
3
  * TODO: import it as lazy, after it is supported in common
4
4
  * 1. If using react select please use menuPlacement='auto'
5
5
  * 2. dragSelector will be used to identify the grabbable button that will grab the div to drag
6
- * 3. parentRef is the reference point from which we will derive the base top:0 ,left: 0 position
6
+ * 3. The wrapper is positioned at the viewport's top-left (top: 0, left: 0) using fixed positioning; parentRef is an optional
7
+ * reference that may be used for position calculations but is not the base origin for the coordinate system.
7
8
  */
8
- export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta, }: DraggableWrapperProps): JSX.Element;
9
+ declare const DraggableWrapper: ({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, }: DraggableWrapperProps) => JSX.Element;
10
+ export default DraggableWrapper;
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes, ReactNode, RefObject } from 'react';
2
2
  export declare enum DraggablePositionVariant {
3
3
  PARENT_BOTTOM_CENTER = "PARENT_BOTTOM_CENTER",
4
+ PARENT_BOTTOM_RIGHT = "PARENT_BOTTOM_RIGHT",
4
5
  SCREEN_BOTTOM_CENTER = "SCREEN_BOTTOM_CENTER",
5
6
  SCREEN_BOTTOM_RIGHT = "SCREEN_BOTTOM_RIGHT"
6
7
  }
@@ -16,13 +17,8 @@ export interface DraggableWrapperProps {
16
17
  */
17
18
  dragSelector: string;
18
19
  parentRef?: RefObject<HTMLDivElement>;
19
- boundaryGap?: number;
20
+ boundaryGap?: Record<'x' | 'y', number>;
20
21
  childDivProps?: HTMLAttributes<HTMLDivElement>;
21
- /**
22
- * Delta for fixing the scrollable layout positioning
23
- * @deprecated
24
- */
25
- layoutFixDelta?: number;
26
22
  }
27
23
  /**
28
24
  * dragClassName is the class that we feed to Draggable to identify dragging buttons
@@ -1,3 +1,3 @@
1
1
  import { GenericDescriptionProps } from './types';
2
- declare const GenericDescription: ({ text, updatedBy, updatedOn, tabIndex, updateDescription, title, minEditorHeight, emptyStateConfig, }: GenericDescriptionProps) => JSX.Element;
2
+ declare const GenericDescription: ({ text, updatedBy, updatedOn, updateDescription, title, emptyStateConfig, }: GenericDescriptionProps) => JSX.Element;
3
3
  export default GenericDescription;
@@ -1,2 +1,42 @@
1
+ import { commands } from '@uiw/react-md-editor';
1
2
  export declare const DESCRIPTION_EMPTY_ERROR_MSG = "Readme cannot be empty. Please add some information or cancel the changes.";
2
3
  export declare const DESCRIPTION_UNSAVED_CHANGES_MSG = "Are you sure you want to discard your changes?";
4
+ export declare const TOOLBAR_SECONDARY_COMMANDS: ({
5
+ icon: JSX.Element;
6
+ children?: commands.ICommand<string>[];
7
+ parent?: commands.ICommand<any>;
8
+ keyCommand?: string;
9
+ name?: string;
10
+ shortcuts?: string;
11
+ groupName?: string;
12
+ value?: string;
13
+ prefix?: string;
14
+ suffix?: string;
15
+ position?: "right";
16
+ liProps?: import('react').LiHTMLAttributes<HTMLLIElement>;
17
+ buttonProps?: import('react').ButtonHTMLAttributes<HTMLButtonElement> | null;
18
+ render?: (command: commands.ICommand<string>, disabled: boolean, executeCommand: (command: commands.ICommand<string>, name?: string) => void, index: number) => void | undefined | null | import('react').ReactElement;
19
+ execute?: (state: commands.ExecuteState, api: commands.TextAreaTextApi, dispatch?: import('react').Dispatch<import('@uiw/react-md-editor').ContextStore>, executeCommandState?: import('@uiw/react-md-editor').ExecuteCommandState, shortcuts?: string[]) => void;
20
+ } | {
21
+ icon: JSX.Element;
22
+ children?: (handle: {
23
+ close: () => void;
24
+ execute: () => void;
25
+ getState?: commands.TextAreaCommandOrchestrator["getState"];
26
+ textApi?: commands.TextAreaTextApi;
27
+ dispatch?: import('react').Dispatch<import('@uiw/react-md-editor').ContextStore>;
28
+ }) => import('react').ReactElement;
29
+ parent?: commands.ICommand<any>;
30
+ keyCommand?: string;
31
+ name?: string;
32
+ shortcuts?: string;
33
+ groupName?: string;
34
+ value?: string;
35
+ prefix?: string;
36
+ suffix?: string;
37
+ position?: "right";
38
+ liProps?: import('react').LiHTMLAttributes<HTMLLIElement>;
39
+ buttonProps?: import('react').ButtonHTMLAttributes<HTMLButtonElement> | null;
40
+ render?: (command: commands.ICommand<string>, disabled: boolean, executeCommand: (command: commands.ICommand<string>, name?: string) => void, index: number) => void | undefined | null | import('react').ReactElement;
41
+ execute?: (state: commands.ExecuteState, api: commands.TextAreaTextApi, dispatch?: import('react').Dispatch<import('@uiw/react-md-editor').ContextStore>, executeCommandState?: import('@uiw/react-md-editor').ExecuteCommandState, shortcuts?: string[]) => void;
42
+ })[];
@@ -4,14 +4,8 @@ export interface GenericDescriptionProps {
4
4
  updatedOn?: string;
5
5
  updateDescription: (string: any) => Promise<void>;
6
6
  title: string;
7
- tabIndex?: number;
8
- minEditorHeight?: number;
9
7
  emptyStateConfig?: {
10
8
  img: string;
11
9
  subtitle: JSX.Element;
12
10
  };
13
11
  }
14
- export declare enum MDEditorSelectedTabType {
15
- WRITE = "write",
16
- PREVIEW = "preview"
17
- }
@@ -1,2 +1 @@
1
1
  export declare const getParsedUpdatedOnDate: (updatedOn: string) => string;
2
- export declare const getEditorCustomIcon: (commandName: string) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { customEnv, Never } from 'src';
2
2
  import { IconsProps } from '../../Shared/Components';
3
- export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-vulnerabilities' | 'security-center-security-enablement' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-external-links' | 'global-configuration-chart-repository' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'global-configuration-projects' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs';
3
+ export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-vulnerabilities' | 'security-center-security-enablement' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'automation-and-enablement-runbook-automation' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-external-links' | 'global-configuration-chart-repository' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'global-configuration-projects' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs';
4
4
  export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-api-tokens';
5
5
  export type NavigationRootItemID = 'application-management' | 'infrastructure-management' | 'software-release-management' | 'cost-visibility' | 'security-center' | 'automation-and-enablement' | 'data-protection-management' | 'global-configuration';
6
6
  export type CommonNavigationItemType = {
@@ -1,2 +1,2 @@
1
1
  import { AppStatusBodyProps } from './types';
2
- export declare const AppStatusBody: ({ appDetails, type, handleShowConfigDriftModal, deploymentStatusDetailsBreakdownData, selectedTab, debugWithAIButton: ExplainWithAIButton, handleClose, }: AppStatusBodyProps) => JSX.Element;
2
+ export declare const AppStatusBody: ({ appDetails, type, handleShowConfigDriftModal, deploymentStatusDetailsBreakdownData, selectedTab, debugWithAIButton: ExplainWithAIButton, }: AppStatusBodyProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
2
2
  import { APIOptions, DeploymentAppTypes } from '../../../Common/Types';
3
- import { MainContext } from '../../Providers';
4
3
  import { AppDetails, ConfigDriftModalProps, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, IntelligenceConfig } from '../../types';
5
4
  export declare enum AppStatusModalTabType {
6
5
  APP_STATUS = "appStatus",
@@ -14,8 +13,6 @@ export type AppStatusModalProps = {
14
13
  processVirtualEnvironmentDeploymentData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
15
14
  debugWithAIButton: FunctionComponent<{
16
15
  intelligenceConfig: IntelligenceConfig;
17
- debugAgentContext: MainContext['debugAgentContext'];
18
- onClick?: () => void;
19
16
  }>;
20
17
  } & ({
21
18
  type: 'release';
@@ -32,7 +29,7 @@ export type AppStatusModalProps = {
32
29
  appId?: never;
33
30
  envId?: never;
34
31
  });
35
- export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type' | 'debugWithAIButton' | 'handleClose'>> {
32
+ export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type' | 'debugWithAIButton'>> {
36
33
  handleShowConfigDriftModal: () => void;
37
34
  selectedTab: AppStatusModalTabType;
38
35
  deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
@@ -93,7 +93,9 @@ export type ChartProps = {
93
93
  placement?: TooltipProps['placement'];
94
94
  datasetValueFormatter?: (value: number) => string | number;
95
95
  };
96
+ /** A title for x axis */
96
97
  xScaleTitle?: string;
98
+ /** A title for y axis */
97
99
  yScaleTitle?: string;
98
100
  } & TypeAndDatasetsType;
99
101
  export type TransformDatasetProps = {
@@ -1,3 +1,3 @@
1
1
  import { DateTimePickerProps } from './types';
2
- declare const DateTimePicker: ({ date: dateObject, onChange, timePickerProps, disabled, id, label, required, hideTimeSelect, readOnly, isTodayBlocked, dataTestIdForTime, dataTestidForDate, openDirection, error, }: DateTimePickerProps) => JSX.Element;
2
+ declare const DateTimePicker: ({ date: dateObject, dateRange, onChange, timePickerProps, disabled, id, label, required, hideTimeSelect, readOnly, dataTestIdForTime, error, isRangePicker, isTodayBlocked, blockPreviousDates, isOutsideRange, rangeShortcutOptions, }: DateTimePickerProps) => JSX.Element;
3
3
  export default DateTimePicker;
@@ -1,63 +1,4 @@
1
- import { default as moment } from 'moment';
2
- export declare const selectedStyles: {
3
- background: string;
4
- color: string;
5
- hover: {
6
- background: string;
7
- color: string;
8
- };
9
- };
10
- export declare const selectedSpanStyles: {
11
- background: string;
12
- color: string;
13
- hover: {
14
- background: string;
15
- color: string;
16
- };
17
- };
18
- export declare const hoveredSpanStyles: {
19
- background: string;
20
- color: string;
21
- };
22
- export declare const customDayStyles: {
23
- selectedStartStyles: {
24
- background: string;
25
- color: string;
26
- hover: {
27
- background: string;
28
- color: string;
29
- };
30
- };
31
- selectedEndStyles: {
32
- background: string;
33
- color: string;
34
- hover: {
35
- background: string;
36
- color: string;
37
- };
38
- };
39
- hoveredSpanStyles: {
40
- background: string;
41
- color: string;
42
- };
43
- selectedSpanStyles: {
44
- background: string;
45
- color: string;
46
- hover: {
47
- background: string;
48
- color: string;
49
- };
50
- };
51
- selectedStyles: {
52
- background: string;
53
- color: string;
54
- hover: {
55
- background: string;
56
- color: string;
57
- };
58
- };
59
- border: string;
60
- };
1
+ import { CustomComponents } from 'react-day-picker';
61
2
  export declare const MONTHLY_DATES_CONFIG: {
62
3
  'Day 1': string;
63
4
  'Day 2': string;
@@ -153,55 +94,4 @@ export declare const DATE_PICKER_IDS: {
153
94
  MONTH: string;
154
95
  TIME: string;
155
96
  };
156
- export declare const styles: {
157
- PresetDateRangePicker_panel: {
158
- padding: string;
159
- width: string;
160
- height: string;
161
- };
162
- PresetDateRangePicker_button: {
163
- width: string;
164
- background: string;
165
- border: string;
166
- color: string;
167
- padding: string;
168
- font: string;
169
- fontWeight: number;
170
- lineHeight: string;
171
- overflow: string;
172
- cursor: string;
173
- ':active': {
174
- outline: number;
175
- };
176
- };
177
- DayPicker__horizontal: {
178
- borderRadius: string;
179
- };
180
- PresetDateRangePicker_button__selected: {
181
- color: string;
182
- fontWeight: number;
183
- background: string;
184
- outline: string;
185
- };
186
- };
187
- export declare const DayPickerCalendarInfoHorizontal: {
188
- width: string;
189
- boxShadow: string;
190
- };
191
- export declare const DayPickerRangeControllerPresets: {
192
- text: string;
193
- endDate: moment.Moment;
194
- startDate: moment.Moment;
195
- endStr: string;
196
- }[];
197
- /**
198
- * Returns a string representing the range of dates
199
- * given by the start and end dates. If the end date
200
- * is 'now' and the start date includes 'now',
201
- * it will return the corresponding range from the
202
- * DayPickerRangeControllerPresets array.
203
- * @param startDateStr - the start date string
204
- * @param endDateStr - the end date string
205
- * @returns - a string representing the range of dates
206
- */
207
- export declare function getCalendarValue(startDateStr: string, endDateStr: string): string;
97
+ export declare const DATE_PICKER_CUSTOM_COMPONENTS: Partial<CustomComponents>;
@@ -1,8 +1,6 @@
1
1
  export * from './constants';
2
2
  export { default as DateTimePicker } from './DateTimePicker';
3
- export { DatePickerRangeController } from './DayPickerRangeController';
4
3
  export * from './MonthlySelect';
5
- export { default as SingleDatePickerComponent } from './SingleDatePickerComponent';
6
4
  export * from './TimeSelect';
7
5
  export * from './types';
8
6
  export * from './utils';
@@ -1,4 +1,3 @@
1
- import { SingleDatePickerShape } from 'react-dates';
2
1
  import { SelectInstance } from 'react-select';
3
2
  import { Moment } from 'moment';
4
3
  import { SelectPickerOptionType } from '../SelectPicker';
@@ -81,11 +80,13 @@ export interface TimeSelectProps {
81
80
  */
82
81
  selectedTimeOption: DateSelectPickerType;
83
82
  }
84
- export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'>, Pick<SingleDatePickerShape, 'openDirection'> {
85
- /**
86
- * Props for the date picker
87
- */
88
- datePickerProps?: any;
83
+ interface DateRangeType {
84
+ from: Date;
85
+ to?: Date;
86
+ }
87
+ export type UpdateDateRangeType = (dateRange: DateRangeType) => void;
88
+ export type UpdateSingleDateType = (date: Date) => void;
89
+ export type DateTimePickerProps = Pick<TimeSelectProps, 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'> & {
89
90
  /**
90
91
  * Id for the component
91
92
  */
@@ -98,10 +99,6 @@ export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'tim
98
99
  * If true, the field is required and asterisk is shown
99
100
  */
100
101
  required?: boolean;
101
- /**
102
- * To hide time selector
103
- */
104
- hideTimeSelect?: boolean;
105
102
  /**
106
103
  * To make the field read only
107
104
  */
@@ -110,24 +107,32 @@ export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'tim
110
107
  * To block today's date
111
108
  */
112
109
  isTodayBlocked?: boolean;
110
+ blockPreviousDates?: boolean;
111
+ isOutsideRange?: (day: Date) => boolean;
112
+ } & ({
113
+ isRangePicker: true;
114
+ hideTimeSelect: true;
115
+ dateRange: DateRangeType;
116
+ onChange: UpdateDateRangeType;
117
+ rangeShortcutOptions?: ({
118
+ label: string;
119
+ onClick: () => void;
120
+ value?: never;
121
+ } | {
122
+ label: string;
123
+ onClick?: never;
124
+ value: DateRangeType;
125
+ })[];
126
+ date?: never;
127
+ } | {
128
+ isRangePicker?: false;
129
+ date: TimeSelectProps['date'];
130
+ onChange: UpdateSingleDateType;
113
131
  /**
114
- * Data test id for date picker
115
- */
116
- dataTestidForDate?: string;
117
- /**
118
- * Function to handle date change
132
+ * To hide time selector
119
133
  */
120
- onChange: (date: Date) => void;
121
- }
122
- export interface DatePickerRangeControllerProps {
123
- calendar: any;
124
- calendarInputs: any;
125
- focusedInput: any;
126
- handleFocusChange: any;
127
- handleDatesChange: any;
128
- handleCalendarInputs?: any;
129
- calendarValue: string;
130
- handlePredefinedRange: (start: Moment, end: Moment, endStr: string) => void;
131
- handleDateInput: (key: 'startDate' | 'endDate', value: string) => void;
132
- handleApply: (...args: any[]) => void;
133
- }
134
+ hideTimeSelect?: boolean;
135
+ dateRange?: never;
136
+ rangeShortcutOptions?: never;
137
+ });
138
+ export {};
@@ -10,7 +10,7 @@ export declare const MONTHLY_DATE_OPTIONS: {
10
10
  * Return the options for the time in label and value format
11
11
  * @type {SelectPickerOptionType[]}
12
12
  */
13
- export declare const DEFAULT_TIME_OPTIONS: SelectPickerOptionType[];
13
+ export declare const DEFAULT_TIME_OPTIONS: SelectPickerOptionType<string>[];
14
14
  /**
15
15
  * Get the time value from the date object in the format: `hh:mm:ss`
16
16
  */
@@ -104,5 +104,6 @@ export declare const DOCUMENTATION: {
104
104
  readonly COST_CALCULATION: "docs/user-guide/finops/overview-cost-visibility#how-is-the-cost-calculated";
105
105
  readonly COST_VISIBILITY_OVERVIEW: "docs/user-guide/finops/overview-cost-visibility";
106
106
  readonly SECURITY_CENTER: "docs/user-guide/security-features";
107
+ readonly AI_RECOMMENDATIONS: "docs/user-guide/ai-recommendations";
107
108
  readonly AUTOMATION_AND_ENABLEMENT: "docs/user-guide/automation";
108
109
  };
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { FloatingVariablesSuggestionsProps } from './types';
3
- declare const _default: React.MemoExoticComponent<({ zIndex, appId, envId, clusterId, bounds, hideObjectVariables, showValueOnHover, isTemplateView, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<({ appId, envId, clusterId, hideObjectVariables, showValueOnHover, isTemplateView, boundaryGap, }: FloatingVariablesSuggestionsProps) => JSX.Element>;
4
4
  export default _default;
@@ -1,7 +1,4 @@
1
- export declare const SUGGESTIONS_SIZE: {
2
- width: number;
3
- height: number;
4
- };
5
1
  export declare const NO_DEFINED_DESCRIPTION = "No Defined Description";
6
2
  export declare const NO_DEFINED_VALUE = "No Defined Value";
7
3
  export declare const SUGGESTIONS_INFO_TITLE = "What is scoped variable?";
4
+ export declare const DRAG_SELECTOR = "handle-drag";
@@ -1,4 +1,4 @@
1
- import { DraggableBounds } from 'react-draggable';
1
+ import { DraggableWrapperProps } from '../../../Common/DraggableWrapper';
2
2
  import { AppConfigProps } from '../../../Pages/index';
3
3
  export interface ScopedVariableType {
4
4
  variableName: string;
@@ -8,12 +8,10 @@ export interface ScopedVariableType {
8
8
  } | null;
9
9
  isRedacted: boolean;
10
10
  }
11
- export interface FloatingVariablesSuggestionsProps extends Required<Pick<AppConfigProps, 'isTemplateView'>> {
12
- zIndex: number;
11
+ export interface FloatingVariablesSuggestionsProps extends Required<Pick<AppConfigProps, 'isTemplateView'>>, Pick<DraggableWrapperProps, 'boundaryGap'> {
13
12
  appId?: string;
14
13
  envId?: string;
15
14
  clusterId?: string;
16
- bounds?: DraggableBounds | string | false;
17
15
  /**
18
16
  * This will hide the variables with object/array values if set to true
19
17
  * @default true
@@ -30,7 +30,6 @@ export declare const iconMap: {
30
30
  'ic-backup-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
31
  'ic-backup-location': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
32
32
  'ic-backup-schedule-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
- 'ic-bell': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
34
33
  'ic-bg-backup-schedule': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
35
34
  'ic-bg-backups': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
36
35
  'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -57,7 +56,6 @@ export declare const iconMap: {
57
56
  'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
57
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
58
  'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
- 'ic-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
59
  'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
60
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
61
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -81,7 +79,6 @@ export declare const iconMap: {
81
79
  'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
82
80
  'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
83
81
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
- 'ic-close-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
85
82
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
86
83
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
87
84
  'ic-cloud-upload': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -91,7 +88,6 @@ export declare const iconMap: {
91
88
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
89
  'ic-coins-color-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
90
  'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
94
- 'ic-comment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
91
  'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
92
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
97
93
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -120,7 +116,6 @@ export declare const iconMap: {
120
116
  'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
121
117
  'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
122
118
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
123
- 'ic-dot-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
124
119
  'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
125
120
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
126
121
  'ic-edit-lines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -224,7 +219,6 @@ export declare const iconMap: {
224
219
  'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
225
220
  'ic-namespace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
226
221
  'ic-nav-cursor': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
227
- 'ic-new-chat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
228
222
  'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
229
223
  'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
230
224
  'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -242,16 +236,11 @@ export declare const iconMap: {
242
236
  'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
243
237
  'ic-pause': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
244
238
  'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
245
- 'ic-piggybank': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
246
239
  'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
247
- 'ic-priority-high-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
248
- 'ic-priority-low-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
249
240
  'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
250
- 'ic-priority-urgent-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
251
241
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
252
242
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
253
243
  'ic-ratings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
254
- 'ic-red-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
255
244
  'ic-release-hub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
256
245
  'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
257
246
  'ic-resource-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,3 +1,3 @@
1
1
  export * from './MainContextProvider';
2
2
  export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig, TempAppWindowConfig } from './types';
3
- export { AIAgentContextSourceType, type AIAgentContextType, SidePanelTab } from './types';
3
+ export { SidePanelTab } from './types';
@@ -1,4 +1,4 @@
1
- import { Dispatch, FunctionComponent, MutableRefObject, ReactNode, SetStateAction } from 'react';
1
+ import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
2
  import { SERVER_MODE } from '../../../Common';
3
3
  import { DevtronLicenseInfo, EnvironmentDataValuesDTO, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '../..';
4
4
  import { ServerInfo } from '../../Components/Header/types';
@@ -22,43 +22,10 @@ export interface SidePanelConfig {
22
22
  /** URL to documentation that should be displayed in the panel */
23
23
  docLink: string | null;
24
24
  aiSessionId?: string;
25
- isExpandedView?: boolean;
26
25
  }
27
- export declare enum AIAgentContextSourceType {
28
- APP_DETAILS = "app-details",
29
- RESOURCE_BROWSER_CLUSTER = "resource-browser-cluster"
30
- }
31
- export type AIAgentAppType = 'devtronApp' | 'devtronHelmChart' | 'externalHelmChart' | 'externalArgoApp' | 'externalFluxApp';
32
- type AIAgentAppDataMasterType = {
33
- appId: number | string;
34
- appName: string;
35
- envId: number;
36
- envName: string;
37
- clusterId: number;
38
- namespace: string;
39
- appType: AIAgentAppType;
40
- fluxAppDeploymentType: string;
41
- };
42
- type AIAgentAppDataType<TAppType extends AIAgentAppType, TRequiredFields extends keyof AIAgentAppDataMasterType> = Pick<AIAgentAppDataMasterType, TRequiredFields> & {
43
- [K in Exclude<keyof AIAgentAppDataMasterType, TRequiredFields | 'appType'>]?: never;
44
- } & {
45
- appType: TAppType;
46
- };
47
- type CommonContextDataType = Record<string, unknown> & {
48
- uiMarkup?: string;
49
- };
50
- export type AIAgentContextType = {
51
- source: AIAgentContextSourceType.APP_DETAILS;
52
- data: AIAgentAppDataType<'devtronApp' | 'devtronHelmChart', 'appId' | 'appName' | 'envId' | 'envName' | 'clusterId'> | AIAgentAppDataType<'externalHelmChart', 'appId' | 'appName' | 'clusterId' | 'namespace'> | AIAgentAppDataType<'externalArgoApp', 'appName' | 'clusterId' | 'namespace'> | (AIAgentAppDataType<'externalFluxApp', 'appName' | 'clusterId' | 'namespace' | 'fluxAppDeploymentType'> & CommonContextDataType);
53
- } | {
54
- source: AIAgentContextSourceType.RESOURCE_BROWSER_CLUSTER;
55
- data: {
56
- clusterId: number;
57
- clusterName: string;
58
- } & CommonContextDataType;
59
- };
60
- export type DebugAgentContextType = AIAgentContextType & {
61
- prompt?: string;
26
+ type AIAgentContextType = {
27
+ path: string;
28
+ context: Record<string, string>;
62
29
  };
63
30
  export interface TempAppWindowConfig {
64
31
  /** Whether the temporary window is open */
@@ -120,8 +87,6 @@ type CommonMainContextProps = {
120
87
  setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
121
88
  canFetchHelmAppStatus: boolean;
122
89
  setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
123
- debugAgentContext: DebugAgentContextType | null;
124
- setDebugAgentContext: (aiAgentContext: DebugAgentContextType | null) => void;
125
90
  setAIAgentContext: (aiAgentContext: AIAgentContextType) => void;
126
91
  setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
127
92
  } & Pick<EnvironmentDataValuesDTO, 'isResourceRecommendationEnabled'>;
@@ -150,8 +115,6 @@ export type MainContext = CommonMainContextProps & ({
150
115
  aiAgentContext: AIAgentContextType;
151
116
  tempAppWindowConfig: TempAppWindowConfig;
152
117
  setTempAppWindowConfig: Dispatch<SetStateAction<TempAppWindowConfig>>;
153
- AIRecommendations?: FunctionComponent;
154
- featureAskDevtronExpert: EnvironmentDataValuesDTO['featureAskDevtronExpert'];
155
118
  } | {
156
119
  isLicenseDashboard: true;
157
120
  serverMode: null;
@@ -169,8 +132,6 @@ export type MainContext = CommonMainContextProps & ({
169
132
  aiAgentContext: null;
170
133
  tempAppWindowConfig: null;
171
134
  setTempAppWindowConfig: null;
172
- AIRecommendations?: null;
173
- featureAskDevtronExpert?: null;
174
135
  });
175
136
  export interface MainContextProviderProps {
176
137
  children: ReactNode;
@@ -39,7 +39,6 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
39
39
  canOnlyViewPermittedEnvOrgLevel: boolean;
40
40
  devtronManagedLicensingEnabled: boolean;
41
41
  isResourceRecommendationEnabled?: boolean;
42
- featureAskDevtronExpert: boolean;
43
42
  }
44
43
  export interface ClusterMinDTO {
45
44
  id: number;