@devtron-labs/devtron-fe-common-lib 0.2.30-beta-8 → 0.2.30-beta-9

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/Common/ToastBody.d.ts +1 -1
  2. package/dist/Shared/Components/Button/Button.component.d.ts +1 -6
  3. package/dist/Shared/Components/Button/constants.d.ts +2 -3
  4. package/dist/Shared/Components/Button/types.d.ts +12 -29
  5. package/dist/Shared/Components/Button/utils.d.ts +1 -3
  6. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +2 -2
  7. package/dist/Shared/Components/DeploymentConfigDiff/{types.d.ts → DeploymentConfigDiff.types.d.ts} +25 -3
  8. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +9 -8
  9. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
  10. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +2 -2
  11. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +2 -2
  12. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -1
  13. package/dist/Shared/Services/app.types.d.ts +7 -1
  14. package/dist/Shared/Services/index.d.ts +0 -1
  15. package/dist/assets/index.css +1 -1
  16. package/dist/{cssMode-BG6o7oFP.js → cssMode-jOx1oE6F.js} +1 -1
  17. package/dist/{freemarker2-DdoIf_sp.js → freemarker2-DCBlJz9A.js} +1 -1
  18. package/dist/{handlebars-CGQHNJr1.js → handlebars-C9eSwgkV.js} +1 -1
  19. package/dist/{html-Dj9xTLBG.js → html-CuTQ2Wkc.js} +1 -1
  20. package/dist/{htmlMode-CskuHMJm.js → htmlMode-CnRtuDqr.js} +1 -1
  21. package/dist/{index-raDXwKRX.js → index-BUJGeFtx.js} +27421 -27008
  22. package/dist/index.js +253 -256
  23. package/dist/{javascript-C8zDaPOb.js → javascript-Cm5F6YtQ.js} +1 -1
  24. package/dist/{jsonMode-HCpu5k3I.js → jsonMode-e_sq_oLU.js} +1 -1
  25. package/dist/{liquid-BancFx9U.js → liquid-kYf0zUNJ.js} +1 -1
  26. package/dist/{mdx-BT84XBrj.js → mdx-CRYh7geO.js} +1 -1
  27. package/dist/{python-Bk9QOSWL.js → python-CcQguiBw.js} +1 -1
  28. package/dist/{razor-DSRo2jh3.js → razor-DxCG6Jjf.js} +1 -1
  29. package/dist/{tsMode-BUf6TKWa.js → tsMode-Dp1BkTaD.js} +1 -1
  30. package/dist/{typescript-64xZmZfe.js → typescript-BTMLprlf.js} +1 -1
  31. package/dist/{xml-Dc8p_cP6.js → xml-DlpstO5v.js} +1 -1
  32. package/dist/{yaml-CAfuHNby.js → yaml-JRaTKs78.js} +1 -1
  33. package/package.json +2 -2
  34. package/dist/Shared/Services/ToastManager/ToastContent.d.ts +0 -2
  35. package/dist/Shared/Services/ToastManager/constants.d.ts +0 -4
  36. package/dist/Shared/Services/ToastManager/index.d.ts +0 -3
  37. package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +0 -69
  38. package/dist/Shared/Services/ToastManager/types.d.ts +0 -40
@@ -1,4 +1,4 @@
1
- import { m } from "./index-raDXwKRX.js";
1
+ import { m } from "./index-BUJGeFtx.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var N = Object.defineProperty;
2
2
  var M = (e, t, r) => t in e ? N(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var _ = (e, t, r) => M(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { t as R, m as K } from "./index-raDXwKRX.js";
4
+ import { t as R, m as K } from "./index-BUJGeFtx.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-raDXwKRX.js";
1
+ import { m as s } from "./index-BUJGeFtx.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as r } from "./index-raDXwKRX.js";
1
+ import { m as r } from "./index-BUJGeFtx.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-raDXwKRX.js";
1
+ import { m as l } from "./index-BUJGeFtx.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.2.30-beta-8",
3
+ "version": "0.2.30-beta-9",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -64,7 +64,7 @@
64
64
  "prettier": "^3.1.1",
65
65
  "react-ga4": "^1.4.1",
66
66
  "react-mde": "^11.5.0",
67
- "react-toastify": "9.1.3",
67
+ "react-toastify": "^8.2.0",
68
68
  "typescript": "5.5.4",
69
69
  "vite": "5.4.2",
70
70
  "vite-plugin-dts": "4.0.3",
@@ -1,2 +0,0 @@
1
- import { ToastProps } from './types';
2
- export declare const ToastContent: ({ title, description, buttonProps, }: Pick<ToastProps, "title" | "description" | "buttonProps">) => JSX.Element;
@@ -1,4 +0,0 @@
1
- import { ToastOptions, ToastContainerProps } from 'react-toastify';
2
- import { ToastProps, ToastVariantType } from './types';
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'>>;
@@ -1,3 +0,0 @@
1
- export { default as ToastManager, ToastManagerContainer } from './toastManager.service';
2
- export { ToastVariantType } from './types';
3
- export type { ToastProps } from './types';
@@ -1,69 +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
- showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
66
- }
67
- export declare const ToastManagerContainer: () => JSX.Element;
68
- declare const _default: ToastManager;
69
- export default _default;
@@ -1,40 +0,0 @@
1
- import { ButtonProps } from '../../Components';
2
- import { ReactElement } from 'react';
3
- export declare enum ToastVariantType {
4
- info = "info",
5
- success = "success",
6
- error = "error",
7
- warn = "warn",
8
- notAuthorized = "notAuthorized"
9
- }
10
- export interface ToastProps {
11
- /**
12
- * Title for the toast
13
- * If not provided, defaults to a value based on the selected variant
14
- */
15
- title?: string;
16
- /**
17
- * Description for the toast
18
- */
19
- description: string;
20
- /**
21
- * Custom icon for the toast to override the icon based on variant
22
- */
23
- icon?: ReactElement;
24
- /**
25
- * Variant for the toast
26
- *
27
- * @default ToastVariantType.info
28
- */
29
- variant?: ToastVariantType;
30
- /**
31
- * Props for the action button to be displayed in the toast
32
- *
33
- * Note: Size, variant and style are hard-coded and cannot be overriden
34
- */
35
- buttonProps?: ButtonProps;
36
- /**
37
- * Custom progress bar color
38
- */
39
- progressBarBg?: string;
40
- }