@devtron-labs/devtron-fe-common-lib 0.6.4-beta-4 → 0.6.4-beta-5
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/Common.service.d.ts +0 -7
- package/dist/Common/Constants.d.ts +0 -14
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- package/dist/Common/Hooks/useUrlFilters/utils.d.ts +1 -0
- package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Helpers.d.ts +0 -14
- package/dist/Shared/Services/app.types.d.ts +1 -2
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-ByyDbjM-.js → cssMode-CvA2usgi.js} +1 -1
- package/dist/{freemarker2-CcGVKlyT.js → freemarker2-B2RjRene.js} +1 -1
- package/dist/{handlebars-CKSZARjM.js → handlebars-CQDgt5SL.js} +1 -1
- package/dist/{html-DIYEYLQ0.js → html-DBupHZIi.js} +1 -1
- package/dist/{htmlMode-yPARCe3z.js → htmlMode-BxxrpiTi.js} +1 -1
- package/dist/{index-RlJt76es.js → index-C1e3uNTd.js} +16889 -16845
- package/dist/index.js +414 -419
- package/dist/{javascript-xiiA69ma.js → javascript-COdiWtXI.js} +1 -1
- package/dist/{jsonMode-Bk77mWe0.js → jsonMode-DjmlFlp2.js} +1 -1
- package/dist/{liquid-BlzmgEoJ.js → liquid-DvRfuN8K.js} +1 -1
- package/dist/{mdx-COtuGCxR.js → mdx-Btn0Oe35.js} +1 -1
- package/dist/{python-CErArvA8.js → python-BxPeNawd.js} +1 -1
- package/dist/{razor-CxWZCLBG.js → razor-Rx4TQx6u.js} +1 -1
- package/dist/{tsMode-I7TbASgT.js → tsMode-DUMgX7sr.js} +1 -1
- package/dist/{typescript-KTbR1jYV.js → typescript-CebH0jCu.js} +1 -1
- package/dist/{xml-DMDycMn0.js → xml-DbtoO2Ne.js} +1 -1
- package/dist/{yaml-CCJlwWiR.js → yaml-5HpyeVqz.js} +1 -1
- package/package.json +1 -1
|
@@ -27,11 +27,4 @@ export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
|
|
27
27
|
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
|
28
28
|
export declare function getNamespaceListMin(clusterIdsCsv: string): Promise<EnvironmentListHelmResponse>;
|
|
29
29
|
export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @param gitUrl Git URL of the repository
|
|
33
|
-
* @param branchName Branch name
|
|
34
|
-
* @returns URL to the branch in the Git repository
|
|
35
|
-
*/
|
|
36
|
-
export declare const getGitBranchUrl: (gitUrl: string, branchName: string) => string | null;
|
|
37
30
|
export {};
|
|
@@ -291,17 +291,3 @@ export declare const VULNERABILITIES_SORT_PRIORITY: {
|
|
|
291
291
|
unknown: number;
|
|
292
292
|
};
|
|
293
293
|
export declare const IS_PLATFORM_MAC_OS: boolean;
|
|
294
|
-
/**
|
|
295
|
-
* Git provider types
|
|
296
|
-
*/
|
|
297
|
-
export declare enum GitProviderType {
|
|
298
|
-
GITHUB = "github",
|
|
299
|
-
GITLAB = "gitlab",
|
|
300
|
-
BITBUCKET = "bitbucket",
|
|
301
|
-
AZURE = "azure",
|
|
302
|
-
GITEA = "gitea"
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Formats the schema removing any irregularity in the existing schema
|
|
306
|
-
*/
|
|
307
|
-
export declare const getFormattedSchema: (schema?: string) => string;
|
|
@@ -8,6 +8,7 @@ export interface UseUrlFiltersProps<T, K> {
|
|
|
8
8
|
* Callback function for parsing the search params
|
|
9
9
|
*/
|
|
10
10
|
parseSearchParams?: (searchParams: URLSearchParams) => K;
|
|
11
|
+
localStorageKey?: `${string}__${string}`;
|
|
11
12
|
}
|
|
12
13
|
export type UseUrlFiltersReturnType<T, K = unknown> = K & {
|
|
13
14
|
/**
|
|
@@ -16,5 +16,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
|
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
declare const useUrlFilters: <T = string, K = unknown>({ initialSortKey, parseSearchParams, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
|
|
19
|
+
declare const useUrlFilters: <T = string, K = unknown>({ initialSortKey, parseSearchParams, localStorageKey, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
|
|
20
20
|
export default useUrlFilters;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setItemInLocalStorageIfKeyExists: (localStorageKey: string, value: string) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GitCommitInfoGenericProps } from './types';
|
|
2
|
-
declare const GitCommitInfoGeneric: ({ materialSourceType, materialSourceValue, commitInfo, selectedCommitInfo, materialUrl, showMaterialInfoHeader, index, isExcluded, }: GitCommitInfoGenericProps) => JSX.Element;
|
|
2
|
+
declare const GitCommitInfoGeneric: ({ materialSourceType, materialSourceValue, commitInfo, selectedCommitInfo, materialUrl, showMaterialInfoHeader, canTriggerBuild, index, isExcluded, }: GitCommitInfoGenericProps) => JSX.Element;
|
|
3
3
|
export default GitCommitInfoGeneric;
|
|
@@ -168,7 +168,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
168
168
|
export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
|
|
169
169
|
isGroupHeadingSelectable: boolean;
|
|
170
170
|
};
|
|
171
|
-
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList'> {
|
|
171
|
+
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'isOptionDisabled'> {
|
|
172
172
|
appliedFilterOptions: SelectPickerOptionType[];
|
|
173
173
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
174
174
|
}
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Pair } from 'yaml';
|
|
3
|
-
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
|
4
3
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
|
5
4
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
6
5
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -64,17 +63,4 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
|
64
63
|
* and the values are arrays of objects that share the same key value.
|
|
65
64
|
*/
|
|
66
65
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
67
|
-
/**
|
|
68
|
-
* @description - Function to get the lower case object
|
|
69
|
-
* @param input - The input object
|
|
70
|
-
* @returns Record<string, any>
|
|
71
|
-
*/
|
|
72
|
-
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
|
73
|
-
/**
|
|
74
|
-
* @description - Function to get the webhook date
|
|
75
|
-
* @param materialSourceType - The type of material source (e.g., WEBHOOK)
|
|
76
|
-
* @param history - The history object containing commit information
|
|
77
|
-
* @returns - Formatted webhook date if available, otherwise an empty string
|
|
78
|
-
*/
|
|
79
|
-
export declare const getWebhookDate: (materialSourceType: string, history: MaterialHistoryType) => string;
|
|
80
66
|
export {};
|
|
@@ -12,7 +12,7 @@ interface MaterialHistoryDTO {
|
|
|
12
12
|
Changes: unknown[];
|
|
13
13
|
WebhookData: WebhookDataType;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface MaterialHistoryType {
|
|
16
16
|
commitURL: string;
|
|
17
17
|
commit: MaterialHistoryDTO['Commit'];
|
|
18
18
|
author: MaterialHistoryDTO['Author'];
|
|
@@ -56,7 +56,6 @@ export interface CIMaterialType extends Pick<CIMaterialDTO, 'id' | 'gitMaterialI
|
|
|
56
56
|
gitURL: CIMaterialDTO['url'];
|
|
57
57
|
history: MaterialHistoryType[];
|
|
58
58
|
isSelected: boolean;
|
|
59
|
-
gitMaterialUrl?: string;
|
|
60
59
|
}
|
|
61
60
|
interface ImageCommentDTO {
|
|
62
61
|
id: number;
|