@devtron-labs/devtron-fe-common-lib 0.0.95-beta-2 → 0.0.95-beta-4
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/Helper.d.ts +29 -5
- package/dist/Shared/Helpers.d.ts +0 -1
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/types.d.ts +0 -13
- package/dist/{cssMode-b773b9cd.js → cssMode-1862716e.js} +1 -1
- package/dist/{freemarker2-a145eded.js → freemarker2-caab396c.js} +1 -1
- package/dist/{handlebars-0507ca2c.js → handlebars-edc8271e.js} +1 -1
- package/dist/{html-19539481.js → html-bb99dd0b.js} +1 -1
- package/dist/{htmlMode-30775328.js → htmlMode-bd81806d.js} +1 -1
- package/dist/{index-ac4e86d0.js → index-059e8326.js} +20748 -21659
- package/dist/index.d.ts +1 -0
- package/dist/index.js +293 -293
- package/dist/{javascript-e7984ed4.js → javascript-a86cbb28.js} +1 -1
- package/dist/{jsonMode-ca187aaa.js → jsonMode-253de276.js} +1 -1
- package/dist/{liquid-1b68d349.js → liquid-ef9d9dc0.js} +1 -1
- package/dist/{mdx-2d5337cd.js → mdx-7b723dd9.js} +1 -1
- package/dist/{python-d315888b.js → python-7da494be.js} +1 -1
- package/dist/{razor-3bb641fb.js → razor-a95b4e87.js} +1 -1
- package/dist/{tsMode-274d8f6a.js → tsMode-9446e987.js} +1 -1
- package/dist/{typescript-0cb2c05f.js → typescript-b4d69083.js} +1 -1
- package/dist/{xml-ad62db8a.js → xml-aff24292.js} +1 -1
- package/dist/{yaml-93f6f8e1.js → yaml-e747eb9a.js} +1 -1
- package/package.json +1 -1
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -60,11 +60,35 @@ export declare const customStyles: {
|
|
|
60
60
|
dropdownIndicator: (base: any, state: any) => any;
|
|
61
61
|
};
|
|
62
62
|
export declare const getFilteredChartVersions: (charts: any, selectedChartType: any) => any;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
/**
|
|
64
|
+
* This function takes a list of strings and checks if the strings
|
|
65
|
+
* have prefix matches in the list of prefixes
|
|
66
|
+
* @param strings check if a @string has a prefix match in @prefixes
|
|
67
|
+
* @param prefixes list of prefixes
|
|
68
|
+
* @returns array of booleans corresponding to each string in @strings
|
|
69
|
+
*/
|
|
70
|
+
export declare const getPrefixMatches: (strings: string[], prefixes: string[]) => boolean[];
|
|
71
|
+
/**
|
|
72
|
+
* Merges @objects into one
|
|
73
|
+
* @param objects list of js objects
|
|
74
|
+
* @returns object after the merge
|
|
75
|
+
*/
|
|
76
|
+
export declare const joinObjects: (objects: object[]) => {};
|
|
77
|
+
/**
|
|
78
|
+
* Builds an object from the provided @path
|
|
79
|
+
* @param path JSON pointer path of the form /path/to/1/...
|
|
80
|
+
* @param value property value
|
|
81
|
+
* @returns final object formed from the path
|
|
82
|
+
*/
|
|
83
|
+
export declare const buildObjectFromPath: (path: string, value: any) => any;
|
|
84
|
+
/**
|
|
85
|
+
* Returns the list of indices at which the regex matched
|
|
86
|
+
* @param string the string to process
|
|
87
|
+
* @param regex @RegExp
|
|
88
|
+
* @returns array of indices where the @regex matched in @string
|
|
89
|
+
*/
|
|
90
|
+
export declare const getRegexMatchPositions: (string: string, regex: RegExp) => number[];
|
|
91
|
+
export declare const powerSetOfSubstringsFromStart: (strings: string[]) => string[];
|
|
68
92
|
/**
|
|
69
93
|
* Returns a debounced variant of the function
|
|
70
94
|
*/
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrd
|
|
|
26
26
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
27
27
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
28
28
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
29
|
-
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
|
30
29
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
|
31
30
|
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
|
32
31
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
@@ -29,7 +29,6 @@ export declare const ModuleNameMap: {
|
|
|
29
29
|
};
|
|
30
30
|
export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
|
|
31
31
|
export declare const API_TOKEN_PREFIX = "API-TOKEN:";
|
|
32
|
-
export declare const DEFAULT_SECRET_PLACEHOLDER = "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022";
|
|
33
32
|
export declare enum PatchOperationType {
|
|
34
33
|
replace = "replace",
|
|
35
34
|
remove = "remove"
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -418,19 +418,6 @@ export declare enum AggregationKeys {
|
|
|
418
418
|
Namespaces = "Namespaces"
|
|
419
419
|
}
|
|
420
420
|
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
421
|
-
export declare enum GitOpsAuthModeType {
|
|
422
|
-
SSH = "SSH",
|
|
423
|
-
PASSWORD = "PASSWORD",
|
|
424
|
-
SSH_AND_PASSWORD = "PAT_AND_SSH"
|
|
425
|
-
}
|
|
426
|
-
export interface BaseGitOpsType {
|
|
427
|
-
authMode: GitOpsAuthModeType;
|
|
428
|
-
sshKey: string;
|
|
429
|
-
sshHost: string;
|
|
430
|
-
username: string;
|
|
431
|
-
token: string;
|
|
432
|
-
}
|
|
433
|
-
export type GitOpsFieldKeyType = 'host' | 'username' | 'token' | 'gitHubOrgId' | 'azureProjectName' | 'gitLabGroupId' | 'bitBucketWorkspaceId' | 'bitBucketProjectKey' | 'sshHost' | 'sshKey';
|
|
434
421
|
export interface AppInfoListType {
|
|
435
422
|
application: string;
|
|
436
423
|
appStatus: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Le = Object.defineProperty;
|
|
2
2
|
var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Ne } from "./index-
|
|
4
|
+
import { m as Ne } from "./index-059e8326.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-059e8326.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-059e8326.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 d } from "./index-
|
|
1
|
+
import { m as d } from "./index-059e8326.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 qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-059e8326.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|