@devtron-labs/devtron-fe-common-lib 1.19.4 → 1.20.0-alpha-4

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 (153) hide show
  1. package/dist/{@code-editor-D2U9F6h2.js → @code-editor-Ds3MFgMT.js} +11151 -10132
  2. package/dist/{@common-rjsf-BQSkXbLx.js → @common-rjsf-CKK4CvQm.js} +46 -46
  3. package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-D-YaCAW-.js} +92 -90
  4. package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-Bo3yT8LF.js} +1 -1
  5. package/dist/{@react-select-DS68hCUM.js → @react-select-DTi_5fIc.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-CuvDiqTo.js} +1 -1
  7. package/dist/{@vendor-3ORIJA0h.js → @vendor-DMIFbFhR.js} +26068 -17978
  8. package/dist/Common/API/reactQueryHooks.d.ts +1 -1
  9. package/dist/Common/CIPipeline.Types.d.ts +1 -0
  10. package/dist/Common/Common.service.d.ts +1 -1
  11. package/dist/Common/Constants.d.ts +44 -14
  12. package/dist/Common/ErrorPage.d.ts +1 -1
  13. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  14. package/dist/Common/Helper.d.ts +1 -1
  15. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +1 -0
  16. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
  17. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  18. package/dist/Common/InteractiveCellText/InteractiveCellText.d.ts +27 -0
  19. package/dist/Common/InteractiveCellText/index.d.ts +2 -0
  20. package/dist/Common/InteractiveCellText/types.d.ts +10 -0
  21. package/dist/Common/RJSF/Form.d.ts +1 -1
  22. package/dist/Common/RJSF/utils.d.ts +1 -1
  23. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  24. package/dist/Common/SearchBar/types.d.ts +8 -0
  25. package/dist/Common/SegmentedBarChart/types.d.ts +2 -0
  26. package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
  27. package/dist/Common/Types.d.ts +13 -5
  28. package/dist/Common/index.d.ts +1 -0
  29. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
  30. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
  31. package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
  32. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.d.ts +1 -0
  33. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/index.d.ts +1 -0
  34. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
  35. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
  36. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
  37. package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
  38. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
  39. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
  40. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
  41. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +11 -0
  42. package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
  43. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
  44. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
  45. package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
  46. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
  47. package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
  48. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
  49. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
  50. package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +1 -0
  51. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
  52. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
  53. package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
  54. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
  55. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
  56. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
  57. package/dist/Pages-Devtron-2.0/index.d.ts +1 -0
  58. package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
  59. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +8 -8
  60. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
  61. package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
  62. package/dist/Shared/Components/Button/Button.component.d.ts +68 -68
  63. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
  64. package/dist/Shared/Components/CICDHistory/types.d.ts +2 -0
  65. package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
  66. package/dist/Shared/Components/Charts/constants.d.ts +16 -0
  67. package/dist/Shared/Components/Charts/index.d.ts +2 -0
  68. package/dist/Shared/Components/Charts/types.d.ts +61 -0
  69. package/dist/Shared/Components/Charts/utils.d.ts +11 -0
  70. package/dist/Shared/Components/CodeEditor/utils.d.ts +1 -1
  71. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
  72. package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
  73. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  74. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  75. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
  76. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +1 -0
  77. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  78. package/dist/Shared/Components/Header/types.d.ts +1 -0
  79. package/dist/Shared/Components/Icon/Icon.d.ts +30 -0
  80. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  81. package/dist/Shared/Components/Icon/types.d.ts +6 -0
  82. package/dist/Shared/Components/Illustration/Illustration.d.ts +2 -0
  83. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
  84. package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
  85. package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
  86. package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
  87. package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
  88. package/dist/Shared/Components/MaterialHistory/types.d.ts +1 -2
  89. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  90. package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
  91. package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
  92. package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +21 -0
  93. package/dist/Shared/Components/RegistryIcon/RegistryIcon.d.ts +1 -1
  94. package/dist/Shared/Components/RegistryIcon/types.d.ts +17 -2
  95. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  96. package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
  97. package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
  98. package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
  99. package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
  100. package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
  101. package/dist/Shared/Components/Table/types.d.ts +8 -4
  102. package/dist/Shared/Components/Table/utils.d.ts +1 -1
  103. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  104. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  105. package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
  106. package/dist/Shared/Components/TreeView/types.d.ts +17 -3
  107. package/dist/Shared/Components/index.d.ts +4 -0
  108. package/dist/Shared/Helpers.d.ts +1 -0
  109. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  110. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +32 -2
  111. package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
  112. package/dist/Shared/Services/ToastManager/ToastContent.d.ts +2 -1
  113. package/dist/Shared/Services/ToastManager/constants.d.ts +2 -2
  114. package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +1 -1
  115. package/dist/Shared/Services/ToastManager/types.d.ts +23 -3
  116. package/dist/Shared/Services/app.service.d.ts +3 -3
  117. package/dist/Shared/constants.d.ts +2 -1
  118. package/dist/Shared/types.d.ts +20 -0
  119. package/dist/assets/@code-editor.css +1 -1
  120. package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
  121. package/dist/assets/ic-aws-codecommit.236f850c.svg +10 -0
  122. package/dist/assets/ic-bot.65f403dd.svg +3 -0
  123. package/dist/assets/ic-building.2405d07b.svg +3 -0
  124. package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
  125. package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
  126. package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
  127. package/dist/assets/ic-coins.2c15f406.svg +3 -0
  128. package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
  129. package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
  130. package/dist/assets/ic-diff-added.6ef6f938.svg +3 -0
  131. package/dist/assets/ic-diff-deleted.54eb24dd.svg +3 -0
  132. package/dist/assets/ic-diff-updated.294b925e.svg +4 -0
  133. package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
  134. package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
  135. package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
  136. package/dist/assets/ic-group-filter-applied.2cdb11e7.svg +20 -0
  137. package/dist/assets/{ic-folder.051cd30d.svg → ic-group-filter.ed1869f5.svg} +3 -3
  138. package/dist/assets/ic-input.57281408.svg +3 -0
  139. package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
  140. package/dist/assets/ic-locked.dd40e181.svg +3 -0
  141. package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
  142. package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
  143. package/dist/assets/ic-storage.03f282b6.svg +21 -0
  144. package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
  145. package/dist/assets/ic-tag.5fdc7834.svg +3 -0
  146. package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
  147. package/dist/assets/ic-warning-fill.bfea8b38.svg +4 -0
  148. package/dist/assets/img-mechanical-operation.04a318d6.svg +17 -0
  149. package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
  150. package/dist/index.d.ts +5 -0
  151. package/dist/index.js +928 -913
  152. package/package.json +2 -1
  153. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -1,6 +1,8 @@
1
1
  import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
2
2
  import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
3
3
  import { ResourceKindType } from '../../types';
4
+ export type NavigationItemID = 'application-management-overview' | 'application-management-applications' | 'application-management-application-groups' | 'application-management-chart-store' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-projects' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | '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-scans' | '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-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'backup-and-restore-overview' | 'backup-and-restore-backup-and-schedule' | 'backup-and-restore-restores' | 'backup-and-restore-backup-repositories' | 'backup-and-restore-backup-locations' | 'backup-and-restore-history-and-logs' | 'ai-recommendations-overview';
5
+ export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-external-links' | 'application-management-configurations-chart-repository' | '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';
4
6
  export interface GetUserPreferencesQueryParamsType {
5
7
  key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
6
8
  }
@@ -23,6 +25,7 @@ export interface UserResourceKindActionType {
23
25
  [UserPreferenceResourceActions.RECENTLY_VISITED]: BaseRecentlyVisitedEntitiesTypes[];
24
26
  }
25
27
  export type UserPreferenceResourceType = Partial<Record<PreferredResourceKindType, UserResourceKindActionType>>;
28
+ export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}`;
26
29
  export interface GetUserPreferencesParsedDTO {
27
30
  viewPermittedEnvOnly?: boolean;
28
31
  /**
@@ -36,13 +39,18 @@ export interface GetUserPreferencesParsedDTO {
36
39
  *
37
40
  */
38
41
  resources?: UserPreferenceResourceType;
42
+ commandBar: {
43
+ recentNavigationActions: {
44
+ id: NavigationItemID | NavigationSubMenuItemID | CommandBarAdditionalItemsId;
45
+ }[];
46
+ };
39
47
  }
40
48
  export interface UserPreferencesPayloadValueType extends GetUserPreferencesParsedDTO {
41
49
  }
42
50
  export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
43
51
  value: string;
44
52
  }
45
- export interface UserPreferencesType {
53
+ export interface UserPreferencesType extends Pick<GetUserPreferencesParsedDTO, 'commandBar'> {
46
54
  /**
47
55
  * Preferred theme for the user
48
56
  * If null, would forcibly show user theme switcher dialog for user to select
@@ -69,7 +77,7 @@ export interface UseUserPreferencesProps {
69
77
  migrateUserPreferences?: (userPreferencesResponse: UserPreferencesType) => Promise<UserPreferencesType>;
70
78
  recentlyVisitedFetchConfig?: RecentlyVisitedFetchConfigType;
71
79
  }
72
- export type UserPathValueMapType = {
80
+ type UserPathValueMapType = {
73
81
  path: 'themePreference';
74
82
  value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
75
83
  resourceKind?: never;
@@ -84,7 +92,28 @@ export type UserPathValueMapType = {
84
92
  value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
85
93
  resourceKind: PreferredResourceKindType;
86
94
  userPreferencesResponse?: UserPreferencesType;
95
+ } | {
96
+ path: 'commandBar.recentNavigationActions';
97
+ value: UserPreferencesType['commandBar']['recentNavigationActions'];
98
+ resourceKind?: never;
99
+ userPreferencesResponse?: never;
87
100
  };
101
+ export type GetUserPreferencePayloadParams = {
102
+ userPreferencesResponse: UserPreferencesType;
103
+ resourceKind?: PreferredResourceKindType;
104
+ } & ({
105
+ path: 'themePreference';
106
+ value: Required<Pick<UpdatedUserPreferencesType, 'themePreference' | 'appTheme'>>;
107
+ } | {
108
+ path: 'pipelineRBACViewSelectedTab';
109
+ value: Required<Pick<UserPreferencesType, 'pipelineRBACViewSelectedTab'>>;
110
+ } | {
111
+ path: 'resources';
112
+ value: Required<BaseRecentlyVisitedEntitiesTypes[]>;
113
+ } | {
114
+ path: 'commandBar.recentNavigationActions';
115
+ value: UserPreferencesType['commandBar']['recentNavigationActions'];
116
+ });
88
117
  export type UserPreferenceResourceProps = UserPathValueMapType & {
89
118
  shouldThrowError?: boolean;
90
119
  userPreferencesResponse?: UserPreferencesType;
@@ -92,3 +121,4 @@ export type UserPreferenceResourceProps = UserPathValueMapType & {
92
121
  export interface UserPreferenceFilteredListTypes extends UserPreferenceRecentlyVisitedAppsTypes {
93
122
  userPreferencesResponse?: UserPreferencesType;
94
123
  }
124
+ export {};
@@ -21,6 +21,7 @@ export interface SidePanelConfig {
21
21
  reinitialize?: boolean;
22
22
  /** URL to documentation that should be displayed in the panel */
23
23
  docLink: string | null;
24
+ aiSessionId?: string;
24
25
  }
25
26
  type AIAgentContextType = {
26
27
  path: string;
@@ -39,6 +40,14 @@ export interface TempAppWindowConfig {
39
40
  showOpenInNewTab?: boolean;
40
41
  /** React component to render in the window */
41
42
  component?: JSX.Element;
43
+ customCloseConfig?: {
44
+ /**
45
+ * Provide this method if you want to do something before temp window closes
46
+ * Provide noop if not relevant
47
+ * */
48
+ beforeClose: () => void;
49
+ icon: JSX.Element;
50
+ };
42
51
  }
43
52
  type CommonMainContextProps = {
44
53
  setServerMode: (serverMode: SERVER_MODE) => void;
@@ -1,2 +1,3 @@
1
- import { ToastProps } from './types';
1
+ import { ShortcutToastContentProps, ToastProps } from './types';
2
2
  export declare const ToastContent: ({ title, description, buttonProps, }: Pick<ToastProps, "title" | "description" | "buttonProps">) => JSX.Element;
3
+ export declare const ShortcutToastContent: ({ shortcuts, text }: ShortcutToastContentProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { ToastContainerProps, ToastOptions } from 'react-toastify';
2
- import { ToastProps, ToastVariantType } from './types';
2
+ import { BaseToastProps, ToastProps } from './types';
3
3
  export declare const TOAST_BASE_CONFIG: ToastContainerProps;
4
- export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<ToastVariantType, Required<Pick<ToastProps, 'icon' | 'title' | 'progressBarBg'>> & Pick<ToastOptions, 'type'>>;
4
+ export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<BaseToastProps['variant'], Required<Pick<ToastProps, 'icon' | 'title' | 'progressBarBg'>> & Pick<ToastOptions, 'type'>>;
@@ -65,7 +65,7 @@ declare class ToastManager {
65
65
  /**
66
66
  * Handler for showing the toast
67
67
  */
68
- showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
68
+ showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, text, shortcuts, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
69
69
  /**
70
70
  * Handler for dismissing an existing toast
71
71
  */
@@ -1,13 +1,28 @@
1
1
  import { ReactElement } from 'react';
2
+ import { SupportedKeyboardKeysType } from '../../../Common/Hooks';
2
3
  import { ButtonComponentType, ButtonProps } from '../../Components';
3
4
  export declare enum ToastVariantType {
4
5
  info = "info",
5
6
  success = "success",
6
7
  error = "error",
7
8
  warn = "warn",
8
- notAuthorized = "notAuthorized"
9
+ notAuthorized = "notAuthorized",
10
+ shortcut = "shortcut"
9
11
  }
10
- export interface ToastProps {
12
+ export interface ShortcutToastProps {
13
+ variant: ToastVariantType.shortcut;
14
+ /**
15
+ * Text to display along the shortcuts in the toast
16
+ * Example: "Press [S] to switch context"
17
+ */
18
+ text: string;
19
+ /**
20
+ * The shortcuts to be displayed in the toast
21
+ * Note: The shortcuts should be in the format of `['Ctrl', 'A']
22
+ */
23
+ shortcuts: SupportedKeyboardKeysType[];
24
+ }
25
+ export interface BaseToastProps {
11
26
  /**
12
27
  * Title for the toast
13
28
  * If not provided, defaults to a value based on the selected variant
@@ -26,7 +41,7 @@ export interface ToastProps {
26
41
  *
27
42
  * @default ToastVariantType.info
28
43
  */
29
- variant?: ToastVariantType;
44
+ variant?: Exclude<ToastVariantType, ToastVariantType.shortcut>;
30
45
  /**
31
46
  * Props for the action button to be displayed in the toast
32
47
  *
@@ -38,3 +53,8 @@ export interface ToastProps {
38
53
  */
39
54
  progressBarBg?: string;
40
55
  }
56
+ export type ToastProps = (BaseToastProps & Partial<Record<Exclude<keyof ShortcutToastProps, 'variant'>, never>>) | (ShortcutToastProps & Partial<Record<Exclude<keyof BaseToastProps, 'variant'>, never>>);
57
+ export interface ShortcutToastContentProps {
58
+ text: string;
59
+ shortcuts: SupportedKeyboardKeysType[];
60
+ }
@@ -1,11 +1,11 @@
1
1
  import { AppConfigProps } from '../../Pages/index';
2
2
  import { ResponseType } from '../../Common';
3
- import { AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType, CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
4
- export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
3
+ import { AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType, CIMaterialInfoDTO, GetCITriggerInfoParamsType } from './app.types';
4
+ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<ResponseType<CIMaterialInfoDTO>>;
5
5
  /**
6
6
  * The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
7
7
  */
8
- export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<CIMaterialInfoType>;
8
+ export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<ResponseType<CIMaterialInfoDTO>>;
9
9
  export declare const getAppEnvDeploymentConfig: ({ params, signal, isTemplateView, appId, }: {
10
10
  params: AppEnvDeploymentConfigPayloadType;
11
11
  signal?: AbortSignal;
@@ -1,6 +1,6 @@
1
1
  import { DeploymentNodeType, OptionType } from '../Common/Types';
2
2
  import { InfoBlockProps } from './Components';
3
- import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
3
+ import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType, RemoteConnectionType } from './types';
4
4
  export declare const ARTIFACT_STATUS: {
5
5
  PROGRESSING: string;
6
6
  DEGRADED: string;
@@ -434,3 +434,4 @@ export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
434
434
  export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
435
435
  export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
436
436
  export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";
437
+ export declare const REMOTE_CONNECTION_TYPE_LABEL_MAP: Record<RemoteConnectionType, string>;
@@ -1114,4 +1114,24 @@ export interface PipelineDeploymentStrategy {
1114
1114
  strategies: Strategy[];
1115
1115
  error: ServerError;
1116
1116
  }
1117
+ export declare enum RemoteConnectionType {
1118
+ Direct = "DIRECT",
1119
+ Proxy = "PROXY",
1120
+ SSHTunnel = "SSH"
1121
+ }
1122
+ export declare enum AuthenticationType {
1123
+ BASIC = "BASIC",
1124
+ ANONYMOUS = "ANONYMOUS",
1125
+ IAM = "IAM"
1126
+ }
1127
+ /**
1128
+ * Makes all props in T optional and set to never when isLoading is true.
1129
+ * Used for components with loading states.
1130
+ * @example See usage in CostVisibility -> cards
1131
+ */
1132
+ export type PropsTypeWithIsLoading<T extends Record<string, any>> = (Partial<Record<keyof T, never>> & {
1133
+ isLoading: true;
1134
+ }) | ({
1135
+ isLoading?: false;
1136
+ } & T);
1117
1137
  export {};