@devtron-labs/devtron-fe-common-lib 1.18.1 → 1.19.0

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 (68) hide show
  1. package/dist/{@code-editor-Cmi_dLiG.js → @code-editor-GtoBp4ff.js} +8406 -7972
  2. package/dist/{@common-rjsf-DTSwvp93.js → @common-rjsf-BfawWJnS.js} +179 -173
  3. package/dist/{@framer-motion-j6RIjEIR.js → @framer-motion-DZveCoIL.js} +1 -1
  4. package/dist/{@react-dates-BVyHiOGU.js → @react-dates-CZ1bNWJM.js} +213 -213
  5. package/dist/{@react-select-BQNFZu0Y.js → @react-select-DS68hCUM.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-CuElh0mS.js → @react-virtualized-sticky-tree-V-8klKy9.js} +1 -1
  7. package/dist/{@vendor-DbxoIktR.js → @vendor-3ORIJA0h.js} +22139 -16828
  8. package/dist/Common/API/CoreAPI.d.ts +11 -0
  9. package/dist/Common/API/QueryClientProvider.d.ts +2 -0
  10. package/dist/Common/API/index.d.ts +2 -0
  11. package/dist/Common/API/reactQueryHooks.d.ts +6 -0
  12. package/dist/Common/Constants.d.ts +1 -2
  13. package/dist/Common/Drawer/Drawer.d.ts +3 -2
  14. package/dist/Common/Modals/Modal.d.ts +1 -2
  15. package/dist/Common/Modals/VisibleModal.d.ts +6 -8
  16. package/dist/Common/Modals/VisibleModal2.d.ts +4 -7
  17. package/dist/Common/RJSF/Form.d.ts +1 -1
  18. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  19. package/dist/Common/SearchBar/types.d.ts +7 -0
  20. package/dist/Common/Types.d.ts +0 -1
  21. package/dist/Pages/BulkEdit/index.d.ts +1 -0
  22. package/dist/Pages/BulkEdit/types.d.ts +50 -0
  23. package/dist/Pages/ResourceBrowser/ClusterMap/ClusterMap.d.ts +2 -0
  24. package/dist/Pages/ResourceBrowser/ClusterMap/index.d.ts +1 -0
  25. package/dist/Pages/ResourceBrowser/ClusterMap/types.d.ts +27 -0
  26. package/dist/Pages/ResourceBrowser/ClusterMap/utils.d.ts +14 -0
  27. package/dist/Pages/ResourceBrowser/index.d.ts +1 -0
  28. package/dist/Pages/ResourceBrowser/types.d.ts +1 -1
  29. package/dist/Pages/index.d.ts +1 -0
  30. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
  31. package/dist/Shared/Components/Backdrop/types.d.ts +2 -10
  32. package/dist/Shared/Components/Button/Button.component.d.ts +24 -12
  33. package/dist/Shared/Components/Button/types.d.ts +4 -0
  34. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
  35. package/dist/Shared/Components/Chip/Chip.component.d.ts +3 -0
  36. package/dist/Shared/Components/Chip/index.d.ts +2 -0
  37. package/dist/Shared/Components/Chip/types.d.ts +64 -0
  38. package/dist/Shared/Components/Chip/utils.d.ts +6 -0
  39. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +8 -0
  40. package/dist/Shared/Components/DTFocusTrap/index.d.ts +2 -0
  41. package/dist/Shared/Components/DTFocusTrap/types.d.ts +33 -0
  42. package/dist/Shared/Components/FilterChips/types.d.ts +2 -3
  43. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  44. package/dist/Shared/Components/Header/types.d.ts +2 -0
  45. package/dist/Shared/Components/Icon/Icon.d.ts +3 -0
  46. package/dist/Shared/Components/Popover/types.d.ts +4 -0
  47. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
  48. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  49. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  50. package/dist/Shared/Components/SelectPicker/common.d.ts +2 -3
  51. package/dist/Shared/Components/SelectPicker/constants.d.ts +1 -0
  52. package/dist/Shared/Components/SelectPicker/type.d.ts +14 -3
  53. package/dist/Shared/Components/Table/types.d.ts +1 -0
  54. package/dist/Shared/Components/TempAppWindow/TempAppWindow.d.ts +1 -0
  55. package/dist/Shared/Components/TempAppWindow/index.d.ts +1 -0
  56. package/dist/Shared/Components/index.d.ts +2 -0
  57. package/dist/Shared/Helpers.d.ts +1 -2
  58. package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
  59. package/dist/Shared/Providers/MainContextProvider/types.d.ts +18 -0
  60. package/dist/Shared/constants.d.ts +1 -0
  61. package/dist/Shared/types.d.ts +0 -4
  62. package/dist/assets/@code-editor.css +1 -1
  63. package/dist/assets/ic-bg-environment.1ea03fc5.svg +12 -0
  64. package/dist/assets/ic-link.52effffd.svg +3 -0
  65. package/dist/assets/ic-resize-handle.b0afcd2d.svg +9 -0
  66. package/dist/index.d.ts +16 -6
  67. package/dist/index.js +947 -938
  68. package/package.json +6 -2
@@ -7,6 +7,17 @@ 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;
10
21
  private fetchInTime;
11
22
  post: <T = any, K = object>(url: string, data: K, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType<T>>;
12
23
  put: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
@@ -0,0 +1,2 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const QueryClientProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
@@ -1,3 +1,5 @@
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';
3
5
  export { abortPreviousRequests, getIsRequestAborted, handleRedirectToLicenseActivation } from './utils';
@@ -0,0 +1,6 @@
1
+ import { QueryKey, UseMutationOptions, UseMutationResult, useQueryClient, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { ServerErrors } from '../ServerError';
3
+ import { ResponseType } from '../Types';
4
+ export declare const useQuery: <TQueryFnData = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<ResponseType<TQueryFnData>, ServerErrors, TData, TQueryKey>) => UseQueryResult<TData, ServerErrors>;
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 { useQueryClient };
@@ -2,7 +2,7 @@ export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
2
2
  export declare const Host: string;
3
3
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
4
4
  export declare const DEVTRON_HOME_PAGE = "https://devtron.ai/";
5
- export declare const DOCUMENTATION_VERSION = "/devtron/v0.7";
5
+ export declare const DOCUMENTATION_VERSION = "/devtron/v1.7";
6
6
  export declare const DISCORD_LINK = "https://discord.devtron.ai/";
7
7
  export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
8
8
  export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/dashboard";
@@ -58,7 +58,6 @@ export declare const URLS: {
58
58
  readonly COMPARE_CLUSTERS: "/compare-clusters";
59
59
  readonly APP_CONFIG: "edit";
60
60
  readonly GLOBAL_CONFIG: "/global-config";
61
- readonly GLOBAL_CONFIG_MANAGE_CATEGORIES: "/global-config/cluster-env/manage-categories";
62
61
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
63
62
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
64
63
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
@@ -1,4 +1,5 @@
1
- export interface DrawerProps {
1
+ import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
2
+ export interface DrawerProps extends Pick<DTFocusTrapType, 'initialFocus'> {
2
3
  position: 'left' | 'right' | 'bottom' | 'top';
3
4
  children?: any;
4
5
  backdrop?: boolean;
@@ -11,4 +12,4 @@ export interface DrawerProps {
11
12
  onEscape?: (e?: any) => void;
12
13
  disableTransition?: boolean;
13
14
  }
14
- export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, onClose, disableTransition, }: DrawerProps) => JSX.Element;
15
+ export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, onClose, disableTransition, initialFocus, }: DrawerProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
- import { default as React } from 'react';
2
1
  import { ModalType } from '../Types';
3
2
  /**
4
3
  * @deprecated Use VisibleModal instead
5
4
  */
6
- export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
5
+ export declare const Modal: ({ style, children, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => JSX.Element;
@@ -1,17 +1,15 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
+ import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
2
3
  export declare class VisibleModal extends React.Component<{
3
4
  className?: string;
4
5
  parentClassName?: string;
5
6
  noBackground?: boolean;
6
- close?: (e: any) => void;
7
- onEscape?: (e: any) => void;
7
+ close?: (e?: any) => void;
8
+ onEscape?: (e?: any) => void;
9
+ initialFocus?: DTFocusTrapType['initialFocus'];
8
10
  }> {
9
- modalRef: HTMLElement;
10
- previousActiveElement: HTMLElement | null;
11
11
  constructor(props: any);
12
- escFunction(event: any): void;
13
- componentDidMount(): void;
14
- componentWillUnmount(): void;
12
+ escFunction(): void;
15
13
  handleBodyClick: (e: SyntheticEvent) => void;
16
- render(): React.ReactPortal;
14
+ render(): JSX.Element;
17
15
  }
@@ -1,14 +1,11 @@
1
1
  import { default as React, SyntheticEvent } from 'react';
2
+ import { DTFocusTrapType } from '../../Shared/Components/DTFocusTrap';
2
3
  export declare class VisibleModal2 extends React.Component<{
3
4
  className?: string;
4
- close?: (e: any) => void;
5
+ close?: (e?: any) => void;
6
+ initialFocus?: DTFocusTrapType['initialFocus'];
5
7
  }> {
6
- modalRef: HTMLElement;
7
- previousActiveElement: HTMLElement | null;
8
8
  constructor(props: any);
9
- escFunction(event: any): void;
10
- componentDidMount(): void;
11
- componentWillUnmount(): void;
12
9
  handleBodyClick: (e: SyntheticEvent) => void;
13
- render(): React.ReactPortal;
10
+ render(): JSX.Element;
14
11
  }
@@ -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" | "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>>>;
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>>>;
@@ -33,5 +33,5 @@ import { SearchBarProps } from './types';
33
33
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
34
34
  * ```
35
35
  */
36
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, }: SearchBarProps) => JSX.Element;
36
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, keyboardShortcut, }: SearchBarProps) => JSX.Element;
37
37
  export default SearchBar;
@@ -1,3 +1,4 @@
1
+ import { SupportedKeyboardKeysType } from '../Hooks/UseRegisterShortcut/types';
1
2
  import { ComponentSizeType } from '../../Shared/constants';
2
3
  export interface SearchBarProps {
3
4
  /**
@@ -46,4 +47,10 @@ export interface SearchBarProps {
46
47
  * @default 'ComponentSizeType.medium'
47
48
  */
48
49
  size?: ComponentSizeType.medium | ComponentSizeType.large;
50
+ /**
51
+ * Renders the keyboard shortcut key that opens the select picker \
52
+ * Shortcut key needs to be defined first in order to use it.
53
+ * @note This is displayed in place of the dropdown indicator
54
+ */
55
+ keyboardShortcut?: SupportedKeyboardKeysType;
49
56
  }
@@ -245,7 +245,6 @@ export interface PopupMenuBodyType {
245
245
  export interface ModalType {
246
246
  style?: React.CSSProperties;
247
247
  children?: ReactNode;
248
- modal?: boolean;
249
248
  rootClassName?: string;
250
249
  onClick?: any;
251
250
  callbackRef?: (element?: any) => any;
@@ -0,0 +1 @@
1
+ export * from './types';
@@ -0,0 +1,50 @@
1
+ export interface BulkEditConfigV2Type {
2
+ gvk: string;
3
+ readme: string;
4
+ schema: Record<string, any>;
5
+ }
6
+ export interface AppEnvDetail {
7
+ appName: string;
8
+ envName?: string;
9
+ message: string;
10
+ }
11
+ export interface ObjectsWithAppEnvDetail extends AppEnvDetail {
12
+ names: string[];
13
+ }
14
+ export interface DeploymentTemplateResponse {
15
+ message: string[];
16
+ failure: AppEnvDetail[];
17
+ successful: AppEnvDetail[];
18
+ }
19
+ export interface CmCsResponse {
20
+ message: string[];
21
+ failure: ObjectsWithAppEnvDetail[];
22
+ successful: ObjectsWithAppEnvDetail[];
23
+ }
24
+ export interface BulkEditResponseType {
25
+ deploymentTemplate?: DeploymentTemplateResponse;
26
+ configMap?: CmCsResponse;
27
+ secret?: CmCsResponse;
28
+ }
29
+ export interface ImpactedDeploymentTemplate {
30
+ appId?: number;
31
+ envId?: number;
32
+ appName: string;
33
+ envName?: string;
34
+ }
35
+ export interface ImpactedCmCs {
36
+ appId?: number;
37
+ envId?: number;
38
+ appName: string;
39
+ envName?: string;
40
+ names: string[];
41
+ }
42
+ export interface ImpactedObjectsType {
43
+ deploymentTemplate?: ImpactedDeploymentTemplate[];
44
+ configMap?: ImpactedCmCs[];
45
+ secret?: ImpactedCmCs[];
46
+ }
47
+ export declare enum BulkEditVersion {
48
+ v1 = "batch/v1beta1",
49
+ v2 = "batch/v1beta2"
50
+ }
@@ -0,0 +1,2 @@
1
+ import { ClusterMapProps } from './types';
2
+ export declare const ClusterMap: ({ filteredList, isLoading }: ClusterMapProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ClusterMap';
@@ -0,0 +1,27 @@
1
+ import { ClusterStatusType } from '../types';
2
+ export interface ClusterStatusAndType {
3
+ isProd: boolean;
4
+ status: ClusterStatusType;
5
+ isVirtualCluster?: boolean;
6
+ }
7
+ export interface ClusterMapProps {
8
+ isLoading?: boolean;
9
+ filteredList: ClusterStatusAndType[];
10
+ }
11
+ export interface StatusCountEnum {
12
+ healthyCount: number;
13
+ unhealthyCount: number;
14
+ connectionFailedCount: number;
15
+ prodCount: number;
16
+ virtualCount: number;
17
+ }
18
+ export interface StatusEntity {
19
+ value: number;
20
+ label: string;
21
+ color: string;
22
+ proportionalValue: string;
23
+ }
24
+ export interface ClusterEntitiesTypes {
25
+ statusEntities: StatusEntity[];
26
+ deploymentEntities: StatusEntity[];
27
+ }
@@ -0,0 +1,14 @@
1
+ import { ClusterEntitiesTypes, ClusterStatusAndType, StatusCountEnum } from './types';
2
+ /**
3
+ *
4
+ * @param filteredList
5
+ * @returns healthyCount, unhealthyCount, connectionFailedCount, prodCount, virtualCount
6
+ */
7
+ export declare const getStatusCount: (filteredList: ClusterStatusAndType[]) => StatusCountEnum;
8
+ /**
9
+ *
10
+ * @param filteredList
11
+ * @returns statusEntities, deploymentEntities
12
+ *
13
+ */
14
+ export declare const getEntities: (filteredList: ClusterStatusAndType[]) => ClusterEntitiesTypes;
@@ -1,3 +1,4 @@
1
+ export * from './ClusterMap';
1
2
  export * from './constants';
2
3
  export { default as ForceDeleteOption } from './ForceDeleteOption';
3
4
  export * from './Helper';
@@ -51,7 +51,7 @@ export interface ClusterCapacityType {
51
51
  serverVersion: string;
52
52
  nodeDetails?: NodeDetailsType[];
53
53
  nodeErrors: Record<string, string>[];
54
- status?: ClusterStatusType;
54
+ status: ClusterStatusType;
55
55
  isProd: boolean;
56
56
  installationId?: number;
57
57
  }
@@ -1,3 +1,4 @@
1
1
  export * from './Applications';
2
+ export * from './BulkEdit';
2
3
  export * from './GlobalConfigurations';
3
4
  export * from './ResourceBrowser';
@@ -1,3 +1,3 @@
1
1
  import { BackdropProps } from './types';
2
- declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount }: BackdropProps) => import('react').ReactPortal;
2
+ declare const Backdrop: ({ children, onEscape, onClick, hasClearBackground, onBackdropMount, deactivateFocusOnEscape, initialFocus, }: BackdropProps) => import('react').ReactPortal;
3
3
  export default Backdrop;
@@ -1,18 +1,10 @@
1
1
  import { MouseEvent, ReactNode } from 'react';
2
- export interface BackdropProps {
2
+ import { DTFocusTrapType } from '../DTFocusTrap';
3
+ export interface BackdropProps extends Pick<DTFocusTrapType, 'deactivateFocusOnEscape' | 'initialFocus' | 'onEscape'> {
3
4
  /**
4
5
  * The content to be rendered within the backdrop component.
5
6
  */
6
7
  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;
16
8
  /**
17
9
  * Callback function that gets triggered when the backdrop is clicked.
18
10
  * Useful for dismissing modals or other overlay content.
@@ -73,6 +73,7 @@ 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;
76
77
  variant?: ButtonVariantType;
77
78
  size?: ComponentSizeType;
78
79
  style?: ButtonStyleType;
@@ -99,7 +100,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
99
100
  startIcon?: import('react').ReactElement;
100
101
  endIcon?: import('react').ReactElement;
101
102
  fontWeight?: "bold" | "normal";
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<{
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<{
103
104
  ref?: import('react').Ref<HTMLAnchorElement>;
104
105
  component: ButtonComponentType.anchor;
105
106
  linkProps?: never;
@@ -107,6 +108,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
107
108
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
108
109
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
109
110
  } & {
111
+ id?: string;
110
112
  variant?: ButtonVariantType;
111
113
  size?: ComponentSizeType;
112
114
  style?: ButtonStyleType;
@@ -133,7 +135,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
133
135
  startIcon?: never;
134
136
  endIcon?: never;
135
137
  fontWeight?: never;
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<{
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<{
137
139
  ref?: import('react').Ref<HTMLAnchorElement>;
138
140
  component: ButtonComponentType.anchor;
139
141
  linkProps?: never;
@@ -141,6 +143,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
141
143
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
142
144
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
143
145
  } & {
146
+ id?: string;
144
147
  variant?: ButtonVariantType;
145
148
  size?: ComponentSizeType;
146
149
  style?: ButtonStyleType;
@@ -161,7 +164,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
161
164
  startIcon?: import('react').ReactElement;
162
165
  endIcon?: import('react').ReactElement;
163
166
  fontWeight?: "bold" | "normal";
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<{
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<{
165
168
  ref?: import('react').Ref<HTMLAnchorElement>;
166
169
  component: ButtonComponentType.anchor;
167
170
  linkProps?: never;
@@ -169,6 +172,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
169
172
  anchorProps: Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "styles" | "className" | "onClick">;
170
173
  onClick?: import('react').AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
171
174
  } & {
175
+ id?: string;
172
176
  variant?: ButtonVariantType;
173
177
  size?: ComponentSizeType;
174
178
  style?: ButtonStyleType;
@@ -189,7 +193,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
189
193
  startIcon?: never;
190
194
  endIcon?: never;
191
195
  fontWeight?: never;
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<{
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<{
193
197
  ref?: import('react').Ref<HTMLButtonElement>;
194
198
  component?: ButtonComponentType.button;
195
199
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -197,6 +201,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
197
201
  anchorProps?: never;
198
202
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
199
203
  } & {
204
+ id?: string;
200
205
  variant?: ButtonVariantType;
201
206
  size?: ComponentSizeType;
202
207
  style?: ButtonStyleType;
@@ -223,7 +228,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
223
228
  startIcon?: import('react').ReactElement;
224
229
  endIcon?: import('react').ReactElement;
225
230
  fontWeight?: "bold" | "normal";
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<{
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<{
227
232
  ref?: import('react').Ref<HTMLButtonElement>;
228
233
  component?: ButtonComponentType.button;
229
234
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -231,6 +236,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
231
236
  anchorProps?: never;
232
237
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
233
238
  } & {
239
+ id?: string;
234
240
  variant?: ButtonVariantType;
235
241
  size?: ComponentSizeType;
236
242
  style?: ButtonStyleType;
@@ -257,7 +263,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
257
263
  startIcon?: never;
258
264
  endIcon?: never;
259
265
  fontWeight?: never;
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<{
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<{
261
267
  ref?: import('react').Ref<HTMLButtonElement>;
262
268
  component?: ButtonComponentType.button;
263
269
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -265,6 +271,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
265
271
  anchorProps?: never;
266
272
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
267
273
  } & {
274
+ id?: string;
268
275
  variant?: ButtonVariantType;
269
276
  size?: ComponentSizeType;
270
277
  style?: ButtonStyleType;
@@ -285,7 +292,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
285
292
  startIcon?: import('react').ReactElement;
286
293
  endIcon?: import('react').ReactElement;
287
294
  fontWeight?: "bold" | "normal";
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<{
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<{
289
296
  ref?: import('react').Ref<HTMLButtonElement>;
290
297
  component?: ButtonComponentType.button;
291
298
  buttonProps?: Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children" | "styles" | "className" | "disabled" | "onClick">;
@@ -293,6 +300,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
293
300
  anchorProps?: never;
294
301
  onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
295
302
  } & {
303
+ id?: string;
296
304
  variant?: ButtonVariantType;
297
305
  size?: ComponentSizeType;
298
306
  style?: ButtonStyleType;
@@ -313,7 +321,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
313
321
  startIcon?: never;
314
322
  endIcon?: never;
315
323
  fontWeight?: never;
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<{
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<{
317
325
  ref?: import('react').Ref<HTMLAnchorElement>;
318
326
  component: ButtonComponentType.link;
319
327
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -321,6 +329,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
321
329
  anchorProps?: never;
322
330
  onClick?: import('react-router-dom').LinkProps["onClick"];
323
331
  } & {
332
+ id?: string;
324
333
  variant?: ButtonVariantType;
325
334
  size?: ComponentSizeType;
326
335
  style?: ButtonStyleType;
@@ -347,7 +356,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
347
356
  startIcon?: import('react').ReactElement;
348
357
  endIcon?: import('react').ReactElement;
349
358
  fontWeight?: "bold" | "normal";
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<{
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<{
351
360
  ref?: import('react').Ref<HTMLAnchorElement>;
352
361
  component: ButtonComponentType.link;
353
362
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -355,6 +364,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
355
364
  anchorProps?: never;
356
365
  onClick?: import('react-router-dom').LinkProps["onClick"];
357
366
  } & {
367
+ id?: string;
358
368
  variant?: ButtonVariantType;
359
369
  size?: ComponentSizeType;
360
370
  style?: ButtonStyleType;
@@ -381,7 +391,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
381
391
  startIcon?: never;
382
392
  endIcon?: never;
383
393
  fontWeight?: never;
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<{
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<{
385
395
  ref?: import('react').Ref<HTMLAnchorElement>;
386
396
  component: ButtonComponentType.link;
387
397
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -389,6 +399,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
389
399
  anchorProps?: never;
390
400
  onClick?: import('react-router-dom').LinkProps["onClick"];
391
401
  } & {
402
+ id?: string;
392
403
  variant?: ButtonVariantType;
393
404
  size?: ComponentSizeType;
394
405
  style?: ButtonStyleType;
@@ -409,7 +420,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
409
420
  startIcon?: import('react').ReactElement;
410
421
  endIcon?: import('react').ReactElement;
411
422
  fontWeight?: "bold" | "normal";
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<{
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<{
413
424
  ref?: import('react').Ref<HTMLAnchorElement>;
414
425
  component: ButtonComponentType.link;
415
426
  linkProps: Omit<import('react-router-dom').LinkProps, "children" | "styles" | "className" | "onClick">;
@@ -417,6 +428,7 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
417
428
  anchorProps?: never;
418
429
  onClick?: import('react-router-dom').LinkProps["onClick"];
419
430
  } & {
431
+ id?: string;
420
432
  variant?: ButtonVariantType;
421
433
  size?: ComponentSizeType;
422
434
  style?: ButtonStyleType;
@@ -437,5 +449,5 @@ declare const Button: import('react').ForwardRefExoticComponent<(Pick<{
437
449
  startIcon?: never;
438
450
  endIcon?: never;
439
451
  fontWeight?: never;
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>>;
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>>;
441
453
  export default Button;
@@ -61,6 +61,10 @@ 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;
64
68
  /**
65
69
  * Variant of the button
66
70
  *
@@ -13,7 +13,7 @@ export declare const getPipelineDeploymentsOptions: ({ pipelineDeployments, wfrI
13
13
  wfrId: number;
14
14
  }) => {
15
15
  currentDeployment: string;
16
- pipelineDeploymentsOptions: SelectPickerOptionType<number>[];
16
+ pipelineDeploymentsOptions: SelectPickerOptionType<number, import('react').ReactNode>[];
17
17
  };
18
18
  export declare const parseDeploymentHistoryDiffSearchParams: (compareWfrId: number) => (searchParams: URLSearchParams) => {
19
19
  compareWfrId: number;
@@ -0,0 +1,3 @@
1
+ import { ChipProps } from './types';
2
+ declare const Chip: ({ label, startIconProps, startIcon, size: userSize, value, onRemove, style, type, onClick, capitalizeLabel, href, }: ChipProps) => JSX.Element;
3
+ export default Chip;
@@ -0,0 +1,2 @@
1
+ export { default as Chip } from './Chip.component';
2
+ export type { ChipProps } from './types';