@devtron-labs/devtron-fe-common-lib 1.0.4 → 1.0.5-beta-2
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/Policy.Types.d.ts +1 -1
- package/dist/Shared/Components/Plugin/types.d.ts +1 -4
- package/dist/{cssMode-w7hOCM0k.js → cssMode-DsfcTeTg.js} +1 -1
- package/dist/{freemarker2-DozH2J0x.js → freemarker2-DN9oa2fA.js} +1 -1
- package/dist/{handlebars-dN0ZVyA3.js → handlebars-V9wO-aCl.js} +1 -1
- package/dist/{html-NJLCqk0N.js → html-eBCalo5T.js} +1 -1
- package/dist/{htmlMode-CTo9GHtC.js → htmlMode-DqimOeE1.js} +1 -1
- package/dist/{index-dmW9GcCO.js → index-CLMYGXv-.js} +7454 -7451
- package/dist/index.js +1 -1
- package/dist/{javascript-BhJoD1Q4.js → javascript-DH0NR-CQ.js} +1 -1
- package/dist/{jsonMode-C0A--CGI.js → jsonMode-YmuBNgPD.js} +1 -1
- package/dist/{liquid-ByhVZdgf.js → liquid-Zqa-dxAl.js} +1 -1
- package/dist/{mdx-C_dgBpbD.js → mdx-DEFBYVUL.js} +1 -1
- package/dist/{python-C1VMAcSn.js → python-DMBwDdlW.js} +1 -1
- package/dist/{razor-BEtIbemt.js → razor-CN40ZvIq.js} +1 -1
- package/dist/{tsMode-QYFD9xGf.js → tsMode-BQb5D1CB.js} +1 -1
- package/dist/{typescript-DiZk29SG.js → typescript-8qo_rMP6.js} +1 -1
- package/dist/{xml-BGXmaQy0.js → xml-Ba-p3b9m.js} +1 -1
- package/dist/{yaml-DInrU7r8.js → yaml-CJg8WDvx.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 default function ClipboardButton({ content, copiedTippyText, duration,
|
|
10
|
+
export default function 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
|
/**
|
|
@@ -67,7 +67,7 @@ export type ProcessPluginDataParamsType = {
|
|
|
67
67
|
/**
|
|
68
68
|
* Would be sent in case we have to get data for steps
|
|
69
69
|
*/
|
|
70
|
-
requiredPluginIds?: PluginDetailPayloadType['
|
|
70
|
+
requiredPluginIds?: PluginDetailPayloadType['pluginIds'];
|
|
71
71
|
} & (ProcessPluginDataCIParamsType | ProcessPluginDataCDParamsType);
|
|
72
72
|
export declare enum ConsequenceAction {
|
|
73
73
|
/**
|
|
@@ -68,10 +68,7 @@ export interface PluginDetailServiceParamsType {
|
|
|
68
68
|
shouldShowError?: boolean;
|
|
69
69
|
signal?: AbortSignal;
|
|
70
70
|
}
|
|
71
|
-
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
|
|
72
|
-
pluginId?: PluginDetailServiceParamsType['pluginIds'];
|
|
73
|
-
parentPluginId?: PluginDetailServiceParamsType['parentPluginIds'];
|
|
74
|
-
parentPluginIdentifier?: PluginDetailServiceParamsType['parentPluginIdentifiers'][number];
|
|
71
|
+
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId' | 'parentPluginIds' | 'pluginIds' | 'parentPluginIdentifiers'> {
|
|
75
72
|
}
|
|
76
73
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
77
74
|
selectedTags: string[];
|
|
@@ -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-CLMYGXv-.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-CLMYGXv-.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-CLMYGXv-.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-CLMYGXv-.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-CLMYGXv-.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|