@devtron-labs/devtron-fe-common-lib 1.22.8-beta-14 → 1.22.8-beta-16
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.
- package/dist/{@code-editor-BF03LosD.js → @code-editor-BKmOO8la.js} +4791 -4779
- package/dist/{@common-rjsf-Dj7e6o3g.js → @common-rjsf-BtndShoU.js} +181 -181
- package/dist/@framer-motion-wap8UOQD.js +4959 -0
- package/dist/{@react-select-BDsfVQrM.js → @react-select-VU7Fmo9p.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-ByqEaVzu.js → @react-virtualized-sticky-tree-CAu3_TV1.js} +3 -3
- package/dist/{@vendor-BgJdIb1H.js → @vendor-WBEJ0Pz6.js} +129197 -81276
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -0
- package/dist/Common/Drawer/Drawer.d.ts +2 -2
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -0
- package/dist/Common/GenericDescription/types.d.ts +1 -0
- package/dist/Common/Modals/VisibleModal.d.ts +0 -1
- package/dist/Common/Progressing.d.ts +1 -0
- package/dist/Common/RJSF/Form.d.ts +1 -2
- package/dist/Common/Types.d.ts +4 -3
- package/dist/Pages/ResourceBrowser/types.d.ts +1 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +1 -1
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +28 -13
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +2 -0
- package/dist/Shared/Components/Button/Button.component.d.ts +2 -388
- package/dist/Shared/Components/CICDHistory/BuildAndTaskSummaryTooltipCard.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/GitTriggerList.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/types.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +0 -1
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +0 -1
- package/dist/Shared/Components/ExportToCsv/types.d.ts +1 -0
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/types.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +1 -0
- package/dist/Shared/Components/Illustration/Illustration.d.ts +0 -1
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -0
- package/dist/Shared/Components/TreeView/types.d.ts +1 -1
- package/dist/Shared/Helpers.d.ts +1 -1
- package/dist/Shared/Hooks/useForm/useForm.d.ts +1 -1
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +1 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/index.d.ts +15 -13
- package/dist/index.js +4 -4
- package/package.json +19 -14
- package/dist/@framer-motion-DFkGgMz7.js +0 -3606
- package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +0 -80
- package/dist/assets/cmd-bar-visual.340d6226.webp +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { ToastOptions } from 'react-toastify';
|
|
2
|
-
import { ToastProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Service for handling toast across the application
|
|
5
|
-
*
|
|
6
|
-
* Note: The application needs to have `ToastManagerContainer` at the root
|
|
7
|
-
* level for the toast to work
|
|
8
|
-
*
|
|
9
|
-
* @example Default Usage
|
|
10
|
-
* ```ts
|
|
11
|
-
* ToastManager.showToast({
|
|
12
|
-
* description: 'Lorem ipsum'
|
|
13
|
-
* })
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @example Custom Title
|
|
17
|
-
* ```ts
|
|
18
|
-
* ToastManager.showToast({
|
|
19
|
-
* description: 'Lorem ipsum',
|
|
20
|
-
* title: 'Toast title'
|
|
21
|
-
* })
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @example With Button
|
|
25
|
-
* ```ts
|
|
26
|
-
* ToastManager.showToast({
|
|
27
|
-
* description: 'Lorem ipsum',
|
|
28
|
-
* buttonProps: {
|
|
29
|
-
* dataTestId: 'toast-btn',
|
|
30
|
-
* text: 'Reload',
|
|
31
|
-
* startIcon: <ICArrowClockwise />
|
|
32
|
-
* }
|
|
33
|
-
* })
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @example Auto close disabled
|
|
37
|
-
* ```ts
|
|
38
|
-
* ToastManager.showToast({
|
|
39
|
-
* description: 'Lorem ipsum',
|
|
40
|
-
* toastOptions: {
|
|
41
|
-
* autoClose: false,
|
|
42
|
-
* },
|
|
43
|
-
* })
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @example Custom progress bar color
|
|
47
|
-
* ```ts
|
|
48
|
-
* ToastManager.showToast({
|
|
49
|
-
* description: 'Lorem ipsum',
|
|
50
|
-
* progressBarBg: 'var(--N700)',
|
|
51
|
-
* })
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @example Custom icon
|
|
55
|
-
* ```ts
|
|
56
|
-
* ToastManager.showToast({
|
|
57
|
-
* description: 'Lorem ipsum',
|
|
58
|
-
* icon: <ICCube />,
|
|
59
|
-
* })
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
declare class ToastManager {
|
|
63
|
-
#private;
|
|
64
|
-
static get instance(): ToastManager;
|
|
65
|
-
/**
|
|
66
|
-
* Handler for showing the toast
|
|
67
|
-
*/
|
|
68
|
-
showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, text, shortcuts, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
|
|
69
|
-
/**
|
|
70
|
-
* Handler for dismissing an existing toast
|
|
71
|
-
*/
|
|
72
|
-
dismissToast: (id?: import('react-toastify').Id | undefined) => void;
|
|
73
|
-
/**
|
|
74
|
-
* Handler for checking if the toast is active
|
|
75
|
-
*/
|
|
76
|
-
isToastActive: (id: import('react-toastify').Id) => boolean;
|
|
77
|
-
}
|
|
78
|
-
export declare const ToastManagerContainer: () => import("react/jsx-runtime").JSX.Element;
|
|
79
|
-
declare const _default: ToastManager;
|
|
80
|
-
export default _default;
|
|
Binary file
|