@devtron-labs/devtron-fe-common-lib 1.1.4-beta-2 → 1.1.4-beta-3
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/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -2
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +1 -2
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/types.d.ts +2 -5
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-DabYP0uQ.js → cssMode-BRoKH0Ln.js} +1 -1
- package/dist/{freemarker2-BTGUiMIo.js → freemarker2-BZuC8aH-.js} +1 -1
- package/dist/{handlebars-CcRJdvWW.js → handlebars-BRuJDOA5.js} +1 -1
- package/dist/{html-C--WhkwF.js → html-Cj7GYD-Y.js} +1 -1
- package/dist/{htmlMode-DzBNpssU.js → htmlMode-BOy8VlfF.js} +1 -1
- package/dist/{index-DMOaHy8q.js → index-BnnzKFWS.js} +31784 -36004
- package/dist/index.js +526 -530
- package/dist/{javascript-vBWlVw5l.js → javascript-Ii5GQ67D.js} +1 -1
- package/dist/{jsonMode-BRhc0T7R.js → jsonMode-DlRLl_7K.js} +1 -1
- package/dist/{liquid-CAHmGoAb.js → liquid-B410lErh.js} +1 -1
- package/dist/{mdx-CuKX6R6M.js → mdx-BW73jnsZ.js} +1 -1
- package/dist/{python-DFaDfaZz.js → python-CQC6xudI.js} +1 -1
- package/dist/{razor-48St83xq.js → razor-Btrkmn-r.js} +1 -1
- package/dist/{tsMode-DxeGO4mf.js → tsMode-B0Z7W9Lp.js} +1 -1
- package/dist/{typescript-CY7HRzJ4.js → typescript-HdcjGtOb.js} +1 -1
- package/dist/{xml-Cl_nmv3y.js → xml-BTlNZR-f.js} +1 -1
- package/dist/{yaml-DcyPKFB4.js → yaml-zO7YVsHj.js} +1 -1
- package/package.json +1 -2
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +0 -3
- package/dist/Shared/Components/Backdrop/index.d.ts +0 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +0 -8
- package/dist/Shared/Components/ConfirmationModal/ConfirmationModal.d.ts +0 -3
- package/dist/Shared/Components/ConfirmationModal/index.d.ts +0 -2
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +0 -50
- package/dist/Shared/Components/ConfirmationModal/utils.d.ts +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
|
1
|
+
import { conf as t, language as e } from "./typescript-HdcjGtOb.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 $e = Object.defineProperty;
|
|
2
2
|
var Ge = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var C = (e, n, i) => Ge(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-BnnzKFWS.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 l } from "./index-
|
|
1
|
+
import { m as l } from "./index-BnnzKFWS.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 s } from "./index-
|
|
1
|
+
import { m as s } from "./index-BnnzKFWS.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 i } from "./index-
|
|
1
|
+
import { m as i } from "./index-BnnzKFWS.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 } from "./index-
|
|
1
|
+
import { m } from "./index-BnnzKFWS.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-
|
|
4
|
+
import { t as R, m as K } from "./index-BnnzKFWS.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-
|
|
1
|
+
import { m as s } from "./index-BnnzKFWS.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-
|
|
1
|
+
import { m as r } from "./index-BnnzKFWS.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-
|
|
1
|
+
import { m as l } from "./index-BnnzKFWS.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": "1.1.4-beta-
|
|
3
|
+
"version": "1.1.4-beta-3",
|
|
4
4
|
"description": "Supporting common component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
"ansi_up": "^5.2.1",
|
|
96
96
|
"dayjs": "^1.11.13",
|
|
97
97
|
"fast-json-patch": "^3.1.1",
|
|
98
|
-
"framer-motion": "^6.5.1",
|
|
99
98
|
"jsonpath-plus": "^10.0.0",
|
|
100
99
|
"react-dates": "^21.8.0",
|
|
101
100
|
"react-diff-viewer-continued": "^3.4.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Backdrop } from './Backdrop';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, ReactNode, SVGProps, SyntheticEvent } from 'react';
|
|
2
|
-
import { ButtonProps } from '../Button';
|
|
3
|
-
export declare enum ConfirmationModalVariantType {
|
|
4
|
-
info = "info",
|
|
5
|
-
delete = "delete",
|
|
6
|
-
warning = "warning",
|
|
7
|
-
custom = "custom"
|
|
8
|
-
}
|
|
9
|
-
interface CommonButtonProps extends Pick<ButtonProps, 'text'>, Partial<Pick<ButtonProps, 'startIcon' | 'endIcon'>> {
|
|
10
|
-
onClick: (e?: SyntheticEvent) => void;
|
|
11
|
-
}
|
|
12
|
-
interface CustomInputConfig {
|
|
13
|
-
identifier: string;
|
|
14
|
-
confirmationKeyword: string;
|
|
15
|
-
}
|
|
16
|
-
type ButtonConfig<PrimaryButtonConfig, SecondaryButtonConfig> = {
|
|
17
|
-
primaryButtonConfig: PrimaryButtonConfig & CommonButtonProps;
|
|
18
|
-
secondaryButtonConfig: SecondaryButtonConfig & CommonButtonProps;
|
|
19
|
-
} | {
|
|
20
|
-
primaryButtonConfig: PrimaryButtonConfig & CommonButtonProps;
|
|
21
|
-
secondaryButtonConfig?: never;
|
|
22
|
-
} | {
|
|
23
|
-
primaryButtonConfig?: never;
|
|
24
|
-
secondaryButtonConfig?: SecondaryButtonConfig & CommonButtonProps;
|
|
25
|
-
};
|
|
26
|
-
type CustomInputConfigOrChildrenType = {
|
|
27
|
-
customInputConfig: CustomInputConfig;
|
|
28
|
-
children?: never;
|
|
29
|
-
} | {
|
|
30
|
-
customInputConfig?: never;
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
} | {
|
|
33
|
-
customInputConfig?: never;
|
|
34
|
-
children?: never;
|
|
35
|
-
};
|
|
36
|
-
export type ConfirmationModalProps = {
|
|
37
|
-
title: string;
|
|
38
|
-
subtitle: ReactNode;
|
|
39
|
-
handleClose: (e?: SyntheticEvent) => void;
|
|
40
|
-
showConfirmationModal: boolean;
|
|
41
|
-
} & ({
|
|
42
|
-
variant: Exclude<ConfirmationModalVariantType, ConfirmationModalVariantType.custom>;
|
|
43
|
-
Icon?: never;
|
|
44
|
-
buttonConfig: ButtonConfig<Pick<ButtonProps, 'isLoading' | 'disabled'>, Pick<ButtonProps, 'disabled'>>;
|
|
45
|
-
} | {
|
|
46
|
-
variant: ConfirmationModalVariantType.custom;
|
|
47
|
-
Icon: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
48
|
-
buttonConfig: ButtonConfig<Pick<ButtonProps, 'isLoading' | 'disabled' | 'style'>, Pick<ButtonProps, 'disabled' | 'style'>>;
|
|
49
|
-
}) & CustomInputConfigOrChildrenType;
|
|
50
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, ReactNode, SVGProps } from 'react';
|
|
2
|
-
import { ConfirmationModalVariantType } from './types';
|
|
3
|
-
import { ButtonStyleType } from '../Button';
|
|
4
|
-
export declare const getIconFromVariant: (variant: ConfirmationModalVariantType) => FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
5
|
-
export declare const getConfirmationLabel: (confirmationKeyword: string) => ReactNode;
|
|
6
|
-
export declare const getPrimaryButtonStyleFromVariant: (variant: ConfirmationModalVariantType) => ButtonStyleType;
|