@devtron-labs/devtron-fe-common-lib 1.0.7 → 1.0.8
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/ClipboardButton/ClipboardButton.d.ts +2 -3
- package/dist/Common/ClipboardButton/types.d.ts +1 -2
- package/dist/Common/Helper.d.ts +3 -4
- package/dist/Common/index.d.ts +1 -1
- package/dist/{cssMode-9pFv151L.js → cssMode-BmLpmvTM.js} +1 -1
- package/dist/{freemarker2-BaPBjI3-.js → freemarker2-eZ0G3X_4.js} +1 -1
- package/dist/{handlebars-PWRTeD2X.js → handlebars-DPGRAVbW.js} +1 -1
- package/dist/{html-D62MLolq.js → html-DzHeG8lC.js} +1 -1
- package/dist/{htmlMode-DcPvvxzf.js → htmlMode-CLFpexPz.js} +1 -1
- package/dist/{index-Bao-tqDe.js → index-C17rlACJ.js} +2005 -2008
- package/dist/index.js +1 -1
- package/dist/{javascript-OJ_PlKKR.js → javascript-BBdh_eOU.js} +1 -1
- package/dist/{jsonMode-DlyoVdJc.js → jsonMode-t0fX31hE.js} +1 -1
- package/dist/{liquid-Cvon3M0m.js → liquid-Bh0FqdoX.js} +1 -1
- package/dist/{mdx-DbIoC0QU.js → mdx-CM_Cl5yZ.js} +1 -1
- package/dist/{python-BRRAe8is.js → python-BAxpR0Pd.js} +1 -1
- package/dist/{razor-s3r76YNX.js → razor-Du7iswWM.js} +1 -1
- package/dist/{tsMode-C5g_2QdV.js → tsMode-C12s8TUq.js} +1 -1
- package/dist/{typescript-D9tB31V5.js → typescript-BL_jQX8Z.js} +1 -1
- package/dist/{xml-B6XZilsM.js → xml-BlejnsJa.js} +1 -1
- package/dist/{yaml-yDzCQDp2.js → yaml-Cb2BDtD-.js} +1 -1
- package/package.json +1 -1
|
@@ -3,9 +3,8 @@ import { default as ClipboardProps } from './types';
|
|
|
3
3
|
* @param content - Content to be copied
|
|
4
4
|
* @param copiedTippyText - Text to be shown in the tippy when the content is copied, default 'Copied!'
|
|
5
5
|
* @param duration - Duration for which the tippy should be shown, default 1000
|
|
6
|
-
* @param
|
|
7
|
-
* @param setTrigger - Callback function to set the trigger outside the button
|
|
6
|
+
* @param copyToClipboardPromise - the promise returned by copyToClipboard util function
|
|
8
7
|
* @param rootClassName - additional classes to add to button
|
|
9
8
|
* @param iconSize - size of svg icon to be shown, default 16 (icon-dim-16)
|
|
10
9
|
*/
|
|
11
|
-
export
|
|
10
|
+
export declare const ClipboardButton: ({ content, copiedTippyText, duration, copyToClipboardPromise, rootClassName, iconSize, }: ClipboardProps) => JSX.Element;
|
|
@@ -2,8 +2,7 @@ export default interface ClipboardProps {
|
|
|
2
2
|
content: string;
|
|
3
3
|
copiedTippyText?: string;
|
|
4
4
|
duration?: number;
|
|
5
|
-
|
|
6
|
-
setTrigger?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
copyToClipboardPromise?: Promise<void>;
|
|
7
6
|
rootClassName?: string;
|
|
8
7
|
iconSize?: number;
|
|
9
8
|
}
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -28,12 +28,11 @@ export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) =>
|
|
|
28
28
|
export declare function useJsonYaml(value: any, tabSize?: number, language?: string, shouldRun?: boolean): any[];
|
|
29
29
|
export declare function cleanKubeManifest(manifestJsonString: string): string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* On HTTP system clipboard is not supported, so it will use the unsecureCopyToClipboard function
|
|
31
|
+
* This is a promise<void> that will resolve if str is successfully copied
|
|
32
|
+
* On HTTP (other than localhost) system clipboard is not supported, so it will use the unsecureCopyToClipboard function
|
|
33
33
|
* @param str
|
|
34
|
-
* @param callback
|
|
35
34
|
*/
|
|
36
|
-
export declare function copyToClipboard(str:
|
|
35
|
+
export declare function copyToClipboard(str: string): Promise<void>;
|
|
37
36
|
export declare function useAsync<T>(func: (...rest: any[]) => Promise<T>, dependencyArray?: any[], shouldRun?: boolean, options?: AsyncOptions): [boolean, T, any | null, () => void, React.Dispatch<any>, any[]];
|
|
38
37
|
export declare const processDeployedTime: (lastDeployed: any, isArgoInstalled: any) => string;
|
|
39
38
|
/**
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export * from './ResizableTextarea';
|
|
|
38
38
|
export { default as DebouncedSearch } from './DebouncedSearch/DebouncedSearch';
|
|
39
39
|
export { default as Grid } from './Grid/Grid';
|
|
40
40
|
export { default as Select } from './Select/Select';
|
|
41
|
-
export {
|
|
41
|
+
export { ClipboardButton } from './ClipboardButton/ClipboardButton';
|
|
42
42
|
export * from './Hooks';
|
|
43
43
|
export * from './RJSF';
|
|
44
44
|
export * from './DevtronProgressing';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
2
|
var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as je } from "./index-
|
|
4
|
+
import { m as je } from "./index-C17rlACJ.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 f } from "./index-
|
|
1
|
+
import { m as f } from "./index-C17rlACJ.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-C17rlACJ.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-C17rlACJ.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 Be = Object.defineProperty;
|
|
2
2
|
var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
|
|
4
|
-
import { m as qe } from "./index-
|
|
4
|
+
import { m as qe } from "./index-C17rlACJ.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|