@devtron-labs/devtron-fe-common-lib 1.18.0-pre-0 → 1.18.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 (38) hide show
  1. package/dist/{@code-editor-BDktoNH9.js → @code-editor-Cmi_dLiG.js} +6698 -6876
  2. package/dist/{@common-rjsf-B-rBhlAg.js → @common-rjsf-DTSwvp93.js} +2 -2
  3. package/dist/{@framer-motion-BcOlP2tv.js → @framer-motion-j6RIjEIR.js} +1 -1
  4. package/dist/{@react-dates-BkJF0N9I.js → @react-dates-BVyHiOGU.js} +213 -213
  5. package/dist/{@react-select-Dw-yFFvz.js → @react-select-BQNFZu0Y.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-YTxUTwpg.js → @react-virtualized-sticky-tree-CuElh0mS.js} +1 -1
  7. package/dist/{@vendor-Dkf3d5cm.js → @vendor-DbxoIktR.js} +14725 -17434
  8. package/dist/Common/API/CoreAPI.d.ts +0 -11
  9. package/dist/Common/API/index.d.ts +0 -2
  10. package/dist/Common/Drawer/Drawer.d.ts +2 -3
  11. package/dist/Common/Modals/Modal.d.ts +2 -1
  12. package/dist/Common/Modals/VisibleModal.d.ts +8 -6
  13. package/dist/Common/Modals/VisibleModal2.d.ts +7 -4
  14. package/dist/Common/RJSF/Form.d.ts +1 -1
  15. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
  16. package/dist/Shared/Components/Backdrop/types.d.ts +10 -2
  17. package/dist/Shared/Components/Button/Button.component.d.ts +12 -24
  18. package/dist/Shared/Components/Button/types.d.ts +0 -4
  19. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  20. package/dist/Shared/Components/Header/types.d.ts +0 -2
  21. package/dist/Shared/Components/Popover/types.d.ts +0 -4
  22. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
  23. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  24. package/dist/Shared/Components/index.d.ts +0 -1
  25. package/dist/Shared/Helpers.d.ts +2 -1
  26. package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
  27. package/dist/Shared/Providers/MainContextProvider/types.d.ts +0 -18
  28. package/dist/Shared/types.d.ts +4 -0
  29. package/dist/index.d.ts +5 -16
  30. package/dist/index.js +544 -549
  31. package/package.json +2 -5
  32. package/dist/Common/API/QueryClientProvider.d.ts +0 -2
  33. package/dist/Common/API/reactQueryHooks.d.ts +0 -6
  34. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +0 -3
  35. package/dist/Shared/Components/DTFocusTrap/index.d.ts +0 -2
  36. package/dist/Shared/Components/DTFocusTrap/types.d.ts +0 -33
  37. package/dist/Shared/Components/TempAppWindow/TempAppWindow.d.ts +0 -1
  38. package/dist/Shared/Components/TempAppWindow/index.d.ts +0 -1
@@ -7,17 +7,6 @@ declare class CoreAPI {
7
7
  timeout: number;
8
8
  constructor({ handleLogout, host, timeout, handleRedirectToLicenseActivation }: CoreAPIConstructorParamsType);
9
9
  private fetchAPI;
10
- /**
11
- * Merges multiple AbortSignals into a single AbortSignal that aborts
12
- * as soon as any of the input signals abort.
13
- *
14
- * This is useful when you want to race multiple async cancellation signals,
15
- * for example, to support both a global timeout and a user-triggered abort.
16
- *
17
- * @param signals - AbortSignals to merge.
18
- * @returns An AbortSignal that aborts if any input signal aborts.
19
- */
20
- private static mergeAbortSignals;
21
10
  private fetchInTime;
22
11
  post: <T = any, K = object>(url: string, data: K, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType<T>>;
23
12
  put: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
@@ -1,5 +1,3 @@
1
1
  export declare const post: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions, isMultipartRequest?: boolean) => Promise<import('..').ResponseType<T>>, put: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, patch: <T = any, K = object>(url: string, data: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, get: <T = any>(url: string, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>, trash: <T = any, K = object>(url: string, data?: K, options?: import('..').APIOptions) => Promise<import('..').ResponseType<T>>;
2
2
  export { default as CoreAPI } from './CoreAPI';
3
- export { QueryClientProvider } from './QueryClientProvider';
4
- export * from './reactQueryHooks';
5
3
  export { abortPreviousRequests, getIsRequestAborted, handleRedirectToLicenseActivation } from './utils';
@@ -1,5 +1,4 @@
1
- import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
2
- export interface DrawerProps extends Pick<DTFocusTrapType, 'initialFocus'> {
1
+ export interface DrawerProps {
3
2
  position: 'left' | 'right' | 'bottom' | 'top';
4
3
  children?: any;
5
4
  backdrop?: boolean;
@@ -12,4 +11,4 @@ export interface DrawerProps extends Pick<DTFocusTrapType, 'initialFocus'> {
12
11
  onEscape?: (e?: any) => void;
13
12
  disableTransition?: boolean;
14
13
  }
15
- export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, onClose, disableTransition, initialFocus, }: DrawerProps) => JSX.Element;
14
+ export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, onClose, disableTransition, }: DrawerProps) => JSX.Element;
@@ -1,5 +1,6 @@
1
+ import { default as React } from 'react';
1
2
  import { ModalType } from '../Types';
2
3
  /**
3
4
  * @deprecated Use VisibleModal instead
4
5
  */
5
- export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => JSX.Element;
6
+ export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
@@ -1,15 +1,17 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
- import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
3
2
  export declare class VisibleModal extends React.Component<{
4
3
  className?: string;
5
4
  parentClassName?: string;
6
5
  noBackground?: boolean;
7
- close?: (e?: any) => void;
8
- onEscape?: (e?: any) => void;
9
- initialFocus?: DTFocusTrapType['initialFocus'];
6
+ close?: (e: any) => void;
7
+ onEscape?: (e: any) => void;
10
8
  }> {
9
+ modalRef: HTMLElement;
10
+ previousActiveElement: HTMLElement | null;
11
11
  constructor(props: any);
12
- escFunction(): void;
12
+ escFunction(event: any): void;
13
+ componentDidMount(): void;
14
+ componentWillUnmount(): void;
13
15
  handleBodyClick: (e: SyntheticEvent) => void;
14
- render(): JSX.Element;
16
+ render(): React.ReactPortal;
15
17
  }
@@ -1,11 +1,14 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
- import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
3
2
  export declare class VisibleModal2 extends React.Component<{
4
3
  className?: string;
5
- close?: (e?: any) => void;
6
- initialFocus?: DTFocusTrapType['initialFocus'];
4
+ close?: (e: any) => void;
7
5
  }> {
6
+ modalRef: HTMLElement;
7
+ previousActiveElement: HTMLElement | null;
8
8
  constructor(props: any);
9
+ escFunction(event: any): void;
10
+ componentDidMount(): void;
11
+ componentWillUnmount(): void;
9
12
  handleBodyClick: (e: SyntheticEvent) => void;
10
- render(): JSX.Element;
13
+ render(): React.ReactPortal;
11
14
  }
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "acceptCharset" | "action" | "method" | "noValidate" | "tagName" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "method" | "action" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
@@ -1,3 +1,3 @@
1
1
  import { BackdropProps } from './types';
2
- declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount, deactivateFocusOnEscape, initialFocus, }: BackdropProps) => import('react').ReactPortal;
2
+ declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount }: BackdropProps) => import('react').ReactPortal;
3
3
  export default Backdrop;
@@ -1,10 +1,18 @@
1
1
  import { MouseEvent, ReactNode } from 'react';
2
- import { DTFocusTrapType } from '../DTFocusTrap';
3
- export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape'> {
2
+ export interface BackdropProps {
4
3
  /**
5
4
  * The content to be rendered within the backdrop component.
6
5
  */
7
6
  children: ReactNode;
7
+ /**
8
+ * Callback function that gets triggered when the Escape key is pressed. \
9
+ * Should be wrapped in useCallback to prevent unnecessary re-renders.
10
+ * @example
11
+ * const handleEscape = useCallback(() => {
12
+ * // Handle escape key press
13
+ * }, []);
14
+ */
15
+ onEscape: () => void;
8
16
  /**
9
17
  * Callback function that gets triggered when the backdrop is clicked.
10
18
  * Useful for dismissing modals or other overlay content.
@@ -73,7 +73,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
73
73
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
74
74
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
75
75
  } & {
76
- id?: string;
77
76
  variant?: ButtonVariantType;
78
77
  size?: ComponentSizeType;
79
78
  style?: ButtonStyleType;
@@ -100,7 +99,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
100
99
  startIcon?: import('react').ReactElement;
101
100
  endIcon?: import('react').ReactElement;
102
101
  fontWeight?: "bold" | "normal";
103
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
102
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
104
103
  ref?: import('react').Ref<HTMLAnchorElement>;
105
104
  component: ButtonComponentType.anchor;
106
105
  linkProps?: never;
@@ -108,7 +107,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
108
107
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
109
108
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
110
109
  } & {
111
- id?: string;
112
110
  variant?: ButtonVariantType;
113
111
  size?: ComponentSizeType;
114
112
  style?: ButtonStyleType;
@@ -135,7 +133,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
135
133
  startIcon?: never;
136
134
  endIcon?: never;
137
135
  fontWeight?: never;
138
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
136
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
139
137
  ref?: import('react').Ref<HTMLAnchorElement>;
140
138
  component: ButtonComponentType.anchor;
141
139
  linkProps?: never;
@@ -143,7 +141,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
143
141
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
144
142
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
145
143
  } & {
146
- id?: string;
147
144
  variant?: ButtonVariantType;
148
145
  size?: ComponentSizeType;
149
146
  style?: ButtonStyleType;
@@ -164,7 +161,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
164
161
  startIcon?: import('react').ReactElement;
165
162
  endIcon?: import('react').ReactElement;
166
163
  fontWeight?: "bold" | "normal";
167
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
164
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
168
165
  ref?: import('react').Ref<HTMLAnchorElement>;
169
166
  component: ButtonComponentType.anchor;
170
167
  linkProps?: never;
@@ -172,7 +169,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
172
169
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
173
170
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
174
171
  } & {
175
- id?: string;
176
172
  variant?: ButtonVariantType;
177
173
  size?: ComponentSizeType;
178
174
  style?: ButtonStyleType;
@@ -193,7 +189,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
193
189
  startIcon?: never;
194
190
  endIcon?: never;
195
191
  fontWeight?: never;
196
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
192
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
197
193
  ref?: import('react').Ref<HTMLButtonElement>;
198
194
  component?: ButtonComponentType.button;
199
195
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -201,7 +197,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
201
197
  anchorProps?: never;
202
198
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
203
199
  } & {
204
- id?: string;
205
200
  variant?: ButtonVariantType;
206
201
  size?: ComponentSizeType;
207
202
  style?: ButtonStyleType;
@@ -228,7 +223,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
228
223
  startIcon?: import('react').ReactElement;
229
224
  endIcon?: import('react').ReactElement;
230
225
  fontWeight?: "bold" | "normal";
231
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
226
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
232
227
  ref?: import('react').Ref<HTMLButtonElement>;
233
228
  component?: ButtonComponentType.button;
234
229
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -236,7 +231,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
236
231
  anchorProps?: never;
237
232
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
238
233
  } & {
239
- id?: string;
240
234
  variant?: ButtonVariantType;
241
235
  size?: ComponentSizeType;
242
236
  style?: ButtonStyleType;
@@ -263,7 +257,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
263
257
  startIcon?: never;
264
258
  endIcon?: never;
265
259
  fontWeight?: never;
266
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
260
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
267
261
  ref?: import('react').Ref<HTMLButtonElement>;
268
262
  component?: ButtonComponentType.button;
269
263
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -271,7 +265,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
271
265
  anchorProps?: never;
272
266
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
273
267
  } & {
274
- id?: string;
275
268
  variant?: ButtonVariantType;
276
269
  size?: ComponentSizeType;
277
270
  style?: ButtonStyleType;
@@ -292,7 +285,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
292
285
  startIcon?: import('react').ReactElement;
293
286
  endIcon?: import('react').ReactElement;
294
287
  fontWeight?: "bold" | "normal";
295
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
288
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
296
289
  ref?: import('react').Ref<HTMLButtonElement>;
297
290
  component?: ButtonComponentType.button;
298
291
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -300,7 +293,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
300
293
  anchorProps?: never;
301
294
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
302
295
  } & {
303
- id?: string;
304
296
  variant?: ButtonVariantType;
305
297
  size?: ComponentSizeType;
306
298
  style?: ButtonStyleType;
@@ -321,7 +313,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
321
313
  startIcon?: never;
322
314
  endIcon?: never;
323
315
  fontWeight?: never;
324
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
316
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
325
317
  ref?: import('react').Ref<HTMLAnchorElement>;
326
318
  component: ButtonComponentType.link;
327
319
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -329,7 +321,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
329
321
  anchorProps?: never;
330
322
  onClick?: import('react-router-dom').LinkProps["onClick"];
331
323
  } & {
332
- id?: string;
333
324
  variant?: ButtonVariantType;
334
325
  size?: ComponentSizeType;
335
326
  style?: ButtonStyleType;
@@ -356,7 +347,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
356
347
  startIcon?: import('react').ReactElement;
357
348
  endIcon?: import('react').ReactElement;
358
349
  fontWeight?: "bold" | "normal";
359
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
350
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
360
351
  ref?: import('react').Ref<HTMLAnchorElement>;
361
352
  component: ButtonComponentType.link;
362
353
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -364,7 +355,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
364
355
  anchorProps?: never;
365
356
  onClick?: import('react-router-dom').LinkProps["onClick"];
366
357
  } & {
367
- id?: string;
368
358
  variant?: ButtonVariantType;
369
359
  size?: ComponentSizeType;
370
360
  style?: ButtonStyleType;
@@ -391,7 +381,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
391
381
  startIcon?: never;
392
382
  endIcon?: never;
393
383
  fontWeight?: never;
394
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
384
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
395
385
  ref?: import('react').Ref<HTMLAnchorElement>;
396
386
  component: ButtonComponentType.link;
397
387
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -399,7 +389,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
399
389
  anchorProps?: never;
400
390
  onClick?: import('react-router-dom').LinkProps["onClick"];
401
391
  } & {
402
- id?: string;
403
392
  variant?: ButtonVariantType;
404
393
  size?: ComponentSizeType;
405
394
  style?: ButtonStyleType;
@@ -420,7 +409,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
420
409
  startIcon?: import('react').ReactElement;
421
410
  endIcon?: import('react').ReactElement;
422
411
  fontWeight?: "bold" | "normal";
423
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
412
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy"> | Pick<{
424
413
  ref?: import('react').Ref<HTMLAnchorElement>;
425
414
  component: ButtonComponentType.link;
426
415
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -428,7 +417,6 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
428
417
  anchorProps?: never;
429
418
  onClick?: import('react-router-dom').LinkProps["onClick"];
430
419
  } & {
431
- id?: string;
432
420
  variant?: ButtonVariantType;
433
421
  size?: ComponentSizeType;
434
422
  style?: ButtonStyleType;
@@ -449,5 +437,5 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
449
437
  startIcon?: never;
450
438
  endIcon?: never;
451
439
  fontWeight?: never;
452
- }, "style" | "text" | "id" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy">) & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
440
+ }, "style" | "text" | "size" | "tooltipProps" | "dataTestId" | "disabled" | "startIcon" | "endIcon" | "variant" | "fullWidth" | "fontWeight" | "ariaLabel" | "icon" | "onClick" | "component" | "buttonProps" | "linkProps" | "anchorProps" | "isLoading" | "isOpacityHoverChild" | "triggerAutoClickTimestamp" | "showTooltip" | "showAriaLabelInTippy">) & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
453
441
  export default Button;
@@ -61,10 +61,6 @@ export type ButtonProps<ComponentType extends ButtonComponentType = ButtonCompon
61
61
  anchorProps?: never;
62
62
  onClick?: ButtonHTMLAttributes<HTMLButtonElement>['onClick'];
63
63
  }) & {
64
- /**
65
- * id of button
66
- */
67
- id?: string;
68
64
  /**
69
65
  * Variant of the button
70
66
  *
@@ -1,3 +1,3 @@
1
1
  import { PageHeaderType } from './types';
2
- declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, }: PageHeaderType) => JSX.Element;
2
+ declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, tippyProps, }: PageHeaderType) => JSX.Element;
3
3
  export default PageHeader;
@@ -4,7 +4,6 @@ import { ActionMenuProps } from '../ActionMenu';
4
4
  import { DOCUMENTATION } from '../DocLink';
5
5
  export interface PageHeaderType {
6
6
  headerName?: string;
7
- headerImage?: string;
8
7
  showTabs?: boolean;
9
8
  additionalHeaderInfo?: () => JSX.Element;
10
9
  renderHeaderTabs?: () => JSX.Element;
@@ -18,7 +17,6 @@ export interface PageHeaderType {
18
17
  tippyMessage?: string;
19
18
  onClickTippyButton?: () => void;
20
19
  };
21
- onClose?: () => void;
22
20
  }
23
21
  export interface ServerInfo {
24
22
  currentVersion: string;
@@ -56,10 +56,6 @@ export interface UsePopoverProps {
56
56
  * @default 'menu'
57
57
  */
58
58
  variant?: 'menu' | 'overlay';
59
- /**
60
- * Disable popover close
61
- */
62
- disableClose?: boolean;
63
59
  }
64
60
  /**
65
61
  * 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, variant, onOpen, onPopoverKeyDown, onTriggerKeyDown, disableClose, }: UsePopoverProps) => UsePopoverReturnType;
2
+ export declare const usePopover: ({ id, position, alignment, width, variant, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
@@ -88,5 +88,5 @@ export declare const getPopoverActualPositionAlignment: ({ position, alignment,
88
88
  popoverRect: DOMRect;
89
89
  }) => {
90
90
  fallbackPosition: "top" | "bottom" | "right" | "left";
91
- fallbackAlignment: "start" | "middle" | "end";
91
+ fallbackAlignment: "middle" | "end" | "start";
92
92
  };
@@ -85,7 +85,6 @@ export * from './TabGroup';
85
85
  export * from './Table';
86
86
  export * from './TagsKeyValueTable';
87
87
  export * from './TargetPlatforms';
88
- export * from './TempAppWindow';
89
88
  export * from './Textarea';
90
89
  export * from './ThemeSwitcher';
91
90
  export * from './ToggleResolveScopedVariables';
@@ -5,7 +5,7 @@ import { Pair } from 'yaml';
5
5
  import { MaterialHistoryType } from './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, Node, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
8
+ import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, Node, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
9
9
  interface HighlightSearchTextProps {
10
10
  /**
11
11
  * The text to be highlighted
@@ -23,6 +23,7 @@ interface HighlightSearchTextProps {
23
23
  export declare const escapeRegExp: (text: string) => string;
24
24
  export declare const highlightSearchText: ({ searchText, text, highlightClasses }: HighlightSearchTextProps) => string;
25
25
  export declare const preventBodyScroll: (lock: boolean) => void;
26
+ export declare const preventOutsideFocus: ({ identifier, preventFocus }: PreventOutsideFocusProps) => void;
26
27
  export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[]) => boolean;
27
28
  export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
28
29
  export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
@@ -1,3 +1,3 @@
1
1
  export * from './MainContextProvider';
2
- export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig, TempAppWindowConfig } from './types';
2
+ export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
3
3
  export { SidePanelTab } from './types';
@@ -26,20 +26,6 @@ type AIAgentContextType = {
26
26
  path: string;
27
27
  context: Record<string, string>;
28
28
  };
29
- export interface TempAppWindowConfig {
30
- /** Whether the temporary window is open */
31
- open: boolean;
32
- /** Title of the temporary window */
33
- title: string;
34
- /** URL to load in iframe in the window */
35
- url?: string;
36
- /** Image URL to display in the window header */
37
- image?: string;
38
- /** Whether to show an "Open in new tab" button */
39
- showOpenInNewTab?: boolean;
40
- /** React component to render in the window */
41
- component?: JSX.Element;
42
- }
43
29
  type CommonMainContextProps = {
44
30
  setServerMode: (serverMode: SERVER_MODE) => void;
45
31
  isHelpGettingStartedClicked: boolean;
@@ -104,8 +90,6 @@ export type MainContext = CommonMainContextProps & ({
104
90
  */
105
91
  isFELibAvailable: boolean;
106
92
  aiAgentContext: AIAgentContextType;
107
- tempAppWindowConfig: TempAppWindowConfig;
108
- setTempAppWindowConfig: Dispatch<SetStateAction<TempAppWindowConfig>>;
109
93
  } | {
110
94
  isLicenseDashboard: true;
111
95
  serverMode: null;
@@ -121,8 +105,6 @@ export type MainContext = CommonMainContextProps & ({
121
105
  isEnterprise: false;
122
106
  isFELibAvailable: false;
123
107
  aiAgentContext: null;
124
- tempAppWindowConfig: null;
125
- setTempAppWindowConfig: null;
126
108
  });
127
109
  export interface MainContextProviderProps {
128
110
  children: ReactNode;
@@ -798,6 +798,10 @@ export interface ResourceApprovalPolicyConfigType extends Omit<ResourceApprovalP
798
798
  approvalConfigurationMap: Record<ApprovalConfigDataType['kind'], ApprovalConfigDataType>;
799
799
  }
800
800
  export type ResourceIdToResourceApprovalPolicyConfigMapType = Record<ResourceApprovalPolicyConfigType['envId'] | typeof BASE_CONFIGURATION_ENV_ID, Pick<ResourceApprovalPolicyConfigType, 'isApprovalApplicable' | 'approvalConfigurationMap'>>;
801
+ export interface PreventOutsideFocusProps {
802
+ identifier: string;
803
+ preventFocus: boolean;
804
+ }
801
805
  export interface PolicyBlockInfo {
802
806
  isBlocked: boolean;
803
807
  blockedBy: TriggerBlockType;
package/dist/index.d.ts CHANGED
@@ -166,6 +166,11 @@ export interface customEnv {
166
166
  * @default false
167
167
  */
168
168
  FEATURE_GROUPED_APP_LIST_FILTERS_ENABLE?: boolean;
169
+ /**
170
+ * Show rollout progress if true, else canary step count in status
171
+ * @default true
172
+ */
173
+ FEATURE_CANARY_ROLLOUT_PROGRESS_ENABLE?: boolean;
169
174
  }
170
175
  declare global {
171
176
  interface Window {
@@ -174,22 +179,6 @@ declare global {
174
179
  _env_: customEnv;
175
180
  }
176
181
  }
177
- declare module '@tanstack/react-query' {
178
- interface QueryMeta {
179
- /**
180
- * Optional flag indicating whether to display a toast notification for errors.
181
- * @default true
182
- */
183
- showToastError?: boolean;
184
- }
185
- interface MutationMeta {
186
- /**
187
- * Optional flag indicating whether to display a toast notification for errors.
188
- * @default true
189
- */
190
- showToastError?: boolean;
191
- }
192
- }
193
182
  export * from './Common';
194
183
  export * from './Pages';
195
184
  export * from './Shared';