@devtron-labs/devtron-fe-common-lib 0.1.14-beta-2 → 0.1.14-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/CIPipeline.Types.d.ts +10 -0
- package/dist/Common/Constants.d.ts +0 -3
- package/dist/Common/Policy.Types.d.ts +0 -8
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +1 -8
- package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +19 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +0 -31
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -2
- package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
- package/dist/Shared/Components/FilterChips/types.d.ts +2 -7
- package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -5
- package/dist/Shared/Components/index.d.ts +0 -2
- package/dist/Shared/Helpers.d.ts +0 -2
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/types.d.ts +1 -19
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-1a5fa0a2.js → cssMode-cbedd8a5.js} +1 -1
- package/dist/{freemarker2-a74f0d20.js → freemarker2-42e8940d.js} +1 -1
- package/dist/{handlebars-3bd3c224.js → handlebars-21c8b0f1.js} +1 -1
- package/dist/{html-a79d84df.js → html-e6718bb8.js} +1 -1
- package/dist/{htmlMode-a9da4b11.js → htmlMode-b99bd6a6.js} +1 -1
- package/dist/{index-0c92e1fb.js → index-004e0b53.js} +28740 -29566
- package/dist/index.d.ts +0 -1
- package/dist/index.js +448 -467
- package/dist/{javascript-692ccc23.js → javascript-40bcb93e.js} +1 -1
- package/dist/{jsonMode-68c1772e.js → jsonMode-22ab6975.js} +1 -1
- package/dist/{liquid-1c1f95ee.js → liquid-d1a76932.js} +1 -1
- package/dist/{mdx-06f3004b.js → mdx-1b4f7156.js} +1 -1
- package/dist/{python-3fc14037.js → python-74bc3a8b.js} +1 -1
- package/dist/{razor-0ab97d76.js → razor-8ce699c5.js} +1 -1
- package/dist/{tsMode-42e9e293.js → tsMode-0a290944.js} +1 -1
- package/dist/{typescript-66469124.js → typescript-cd8838e3.js} +1 -1
- package/dist/{xml-7f3ad51f.js → xml-15b56de5.js} +1 -1
- package/dist/{yaml-44557f82.js → yaml-8821186a.js} +1 -1
- package/package.json +1 -1
- package/dist/Common/SearchBar/utils.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +0 -4
- package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +0 -5
- package/dist/Shared/Components/DetectBottom/index.d.ts +0 -1
- package/dist/Shared/Components/Plugin/PluginCard.d.ts +0 -4
- package/dist/Shared/Components/Plugin/PluginCardSkeletonList.d.ts +0 -4
- package/dist/Shared/Components/Plugin/PluginImageContainer.d.ts +0 -4
- package/dist/Shared/Components/Plugin/PluginList.d.ts +0 -4
- package/dist/Shared/Components/Plugin/PluginListContainer.d.ts +0 -4
- package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +0 -4
- package/dist/Shared/Components/Plugin/PluginTagsContainer.d.ts +0 -4
- package/dist/Shared/Components/Plugin/constants.d.ts +0 -5
- package/dist/Shared/Components/Plugin/index.d.ts +0 -7
- package/dist/Shared/Components/Plugin/service.d.ts +0 -5
- package/dist/Shared/Components/Plugin/types.d.ts +0 -180
- package/dist/Shared/Components/Plugin/utils.d.ts +0 -20
|
@@ -252,4 +252,14 @@ export interface FormErrorObjectType {
|
|
|
252
252
|
steps: TaskErrorObj[];
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
+
export interface PluginDetailType {
|
|
256
|
+
id: number;
|
|
257
|
+
name: string;
|
|
258
|
+
type: string;
|
|
259
|
+
description: string;
|
|
260
|
+
icon: string;
|
|
261
|
+
tags: string[];
|
|
262
|
+
inputVariables?: VariableType[];
|
|
263
|
+
outputVariables?: VariableType[];
|
|
264
|
+
}
|
|
255
265
|
export {};
|
|
@@ -75,9 +75,6 @@ export declare const ROUTES: {
|
|
|
75
75
|
CONFIG_CD_PIPELINE: string;
|
|
76
76
|
MODULE_CONFIGURED: string;
|
|
77
77
|
RESOURCE_HISTORY_DEPLOYMENT: string;
|
|
78
|
-
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
79
|
-
PLUGIN_GLOBAL_LIST_V2: string;
|
|
80
|
-
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
81
78
|
};
|
|
82
79
|
export declare enum KEY_VALUE {
|
|
83
80
|
KEY = "key",
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { PluginDataStoreType } from '../Shared';
|
|
2
1
|
import { VariableType } from './CIPipeline.Types';
|
|
3
|
-
import { ServerErrors } from './ServerError';
|
|
4
2
|
import { ResponseType } from './Types';
|
|
5
3
|
|
|
6
4
|
export declare enum ApplyPolicyToStage {
|
|
@@ -26,7 +24,6 @@ export interface DefinitionSourceType {
|
|
|
26
24
|
}
|
|
27
25
|
export interface MandatoryPluginDetailType {
|
|
28
26
|
id: number;
|
|
29
|
-
parentPluginId: number;
|
|
30
27
|
icon: string;
|
|
31
28
|
name: string;
|
|
32
29
|
description?: string;
|
|
@@ -41,11 +38,6 @@ export interface MandatoryPluginDataType {
|
|
|
41
38
|
isValidPre: boolean;
|
|
42
39
|
isValidPost: boolean;
|
|
43
40
|
}
|
|
44
|
-
export interface ProcessPluginDataReturnType {
|
|
45
|
-
mandatoryPluginData: MandatoryPluginDataType;
|
|
46
|
-
pluginDataStore: PluginDataStoreType;
|
|
47
|
-
mandatoryPluginsError?: ServerErrors;
|
|
48
|
-
}
|
|
49
41
|
export declare enum ConsequenceAction {
|
|
50
42
|
BLOCK = "BLOCK",
|
|
51
43
|
ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
|
|
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
|
|
|
34
34
|
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder,
|
|
37
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
38
38
|
export default SearchBar;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
export interface SearchBarProps {
|
|
4
3
|
/**
|
|
5
4
|
* Initial search text
|
|
@@ -41,10 +40,4 @@ export interface SearchBarProps {
|
|
|
41
40
|
* Hide the background and border of the search
|
|
42
41
|
*/
|
|
43
42
|
noBackgroundAndBorder?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Height of the searchbar
|
|
46
|
-
*
|
|
47
|
-
* @default 'ComponentSizeType.medium'
|
|
48
|
-
*/
|
|
49
|
-
size?: ComponentSizeType.medium | ComponentSizeType.large;
|
|
50
43
|
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SortingParams } from '../../../Common/Types';
|
|
2
2
|
import { UserListSortableKeys, UserStatus } from './constants';
|
|
3
3
|
|
|
4
|
+
export type BaseFilterQueryParams<T> = {
|
|
5
|
+
/**
|
|
6
|
+
* Offset for the list result
|
|
7
|
+
*/
|
|
8
|
+
offset?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Number of items required in the list
|
|
11
|
+
*/
|
|
12
|
+
size?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Search string (if any)
|
|
15
|
+
*/
|
|
16
|
+
searchKey?: string;
|
|
17
|
+
/**
|
|
18
|
+
* If true, all items are returned with any search / filtering applied without pagination
|
|
19
|
+
*/
|
|
20
|
+
showAll?: boolean;
|
|
21
|
+
} & SortingParams<T>;
|
|
4
22
|
export type UserListFilterParams = BaseFilterQueryParams<UserListSortableKeys> & {
|
|
5
23
|
/**
|
|
6
24
|
* Selected statuses (if any)
|
|
@@ -43,5 +43,3 @@ export declare const DEFAULT_ENV = "devtron-ci";
|
|
|
43
43
|
export declare const LOGS_RETRY_COUNT = 3;
|
|
44
44
|
export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
|
|
45
45
|
export declare const MANIFEST_STATUS_HEADERS: string[];
|
|
46
|
-
export declare const LOGS_STAGE_IDENTIFIER = "STAGE_INFO";
|
|
47
|
-
export declare const LOGS_STAGE_STREAM_SEPARATOR = "|";
|
|
@@ -5,6 +5,7 @@ export { default as CDEmptyState } from './CDEmptyState';
|
|
|
5
5
|
export { default as DeploymentStatusDetailBreakdown } from './DeploymentStatusBreakdown';
|
|
6
6
|
export { default as AppStatusDetailsChart } from './AppStatusDetailsChart';
|
|
7
7
|
export { default as DeploymentDetailSteps } from './DeploymentDetailSteps';
|
|
8
|
+
export { default as DetectBottom } from './DetectBottom';
|
|
8
9
|
export * from './types';
|
|
9
10
|
export * from './service';
|
|
10
11
|
export * from './History.components';
|
|
@@ -584,37 +584,6 @@ export interface TriggerHistoryFilterCriteriaProps {
|
|
|
584
584
|
releaseId: number;
|
|
585
585
|
showCurrentReleaseDeployments: boolean;
|
|
586
586
|
}
|
|
587
|
-
export declare enum StageStatusType {
|
|
588
|
-
SUCCESS = "Success",
|
|
589
|
-
FAILURE = "Failure",
|
|
590
|
-
/**
|
|
591
|
-
* Not given in API response
|
|
592
|
-
*/
|
|
593
|
-
PROGRESSING = "Progressing"
|
|
594
|
-
}
|
|
595
|
-
export interface StageInfoDTO {
|
|
596
|
-
stage: string;
|
|
597
|
-
startTime: string;
|
|
598
|
-
endTime?: string;
|
|
599
|
-
status?: StageStatusType;
|
|
600
|
-
}
|
|
601
|
-
export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime' | 'endTime' | 'status'> {
|
|
602
|
-
logs: string[];
|
|
603
|
-
isOpen: boolean;
|
|
604
|
-
}
|
|
605
|
-
export interface LogStageAccordionProps extends StageDetailType {
|
|
606
|
-
handleStageClose: (index: number) => void;
|
|
607
|
-
handleStageOpen: (index: number) => void;
|
|
608
|
-
stageIndex: number;
|
|
609
|
-
/**
|
|
610
|
-
* A stage is loading if it is last in current stage list and event is not closed
|
|
611
|
-
*/
|
|
612
|
-
isLoading: boolean;
|
|
613
|
-
}
|
|
614
|
-
export interface CreateMarkupReturnType {
|
|
615
|
-
__html: string;
|
|
616
|
-
isSearchKeyPresent: boolean;
|
|
617
|
-
}
|
|
618
587
|
export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
|
|
619
588
|
export declare const terminalStatus: Set<string>;
|
|
620
589
|
export declare const statusSet: Set<string>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType
|
|
1
|
+
import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
|
|
4
4
|
export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
|
|
5
5
|
export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
|
|
6
6
|
export declare const renderIcon: (iconState: string) => JSX.Element;
|
|
7
|
-
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
|
@@ -3,5 +3,5 @@ import { FilterChipsProps } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Component for rendering the applied filter chips
|
|
5
5
|
*/
|
|
6
|
-
declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName,
|
|
6
|
+
declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName, }: FilterChipsProps<T>) => JSX.Element;
|
|
7
7
|
export default FilterChips;
|
|
@@ -4,7 +4,7 @@ export interface FilterChipProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* Filter label
|
|
6
6
|
*/
|
|
7
|
-
label
|
|
7
|
+
label: string;
|
|
8
8
|
/**
|
|
9
9
|
* Corresponding value of the filter
|
|
10
10
|
*/
|
|
@@ -21,13 +21,8 @@ export interface FilterChipProps {
|
|
|
21
21
|
* If passed, the label will be formatted accordingly
|
|
22
22
|
*/
|
|
23
23
|
getFormattedValue?: (filterKey: string, filterValue: unknown) => ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* If true, would hide the label
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
shouldHideLabel?: boolean;
|
|
29
24
|
}
|
|
30
|
-
export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue'
|
|
25
|
+
export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue'> {
|
|
31
26
|
/**
|
|
32
27
|
* Current filter configuration
|
|
33
28
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { MenuListProps
|
|
2
|
-
import { OptionType } from '../../../Common';
|
|
1
|
+
import { MenuListProps } from 'react-select';
|
|
3
2
|
|
|
4
3
|
export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
5
4
|
container: (base: any, state: any) => any;
|
|
@@ -34,6 +33,3 @@ export declare const commonSelectStyles: {
|
|
|
34
33
|
export declare const MenuListWithApplyButton: ({ handleApplyFilter, ...props }: MenuListProps<unknown, boolean, import('react-select').GroupBase<unknown>> & {
|
|
35
34
|
handleApplyFilter: () => void;
|
|
36
35
|
}) => JSX.Element;
|
|
37
|
-
export declare const MultiSelectValueContainer: ({ title, ...props }: ValueContainerProps<OptionType<string, string>, true, import('react-select').GroupBase<OptionType<string, string>>> & {
|
|
38
|
-
title: string;
|
|
39
|
-
}) => JSX.Element;
|
|
@@ -30,7 +30,5 @@ export * from './ImageChipCell';
|
|
|
30
30
|
export * from './ArtifactInfoModal';
|
|
31
31
|
export * from './MaterialHistory';
|
|
32
32
|
export * from './IframeContainer';
|
|
33
|
-
export * from './Plugin';
|
|
34
33
|
export * from './KeyValueTable';
|
|
35
34
|
export * from './SelectPicker';
|
|
36
|
-
export * from './DetectBottom';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -32,7 +32,5 @@ export declare const renderValidInputButtonTippy: (children: ReactElement) => JS
|
|
|
32
32
|
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
|
33
33
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
|
34
34
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
35
|
-
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
36
|
-
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
37
35
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
38
36
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors
|
|
1
|
+
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors } from '../Common';
|
|
2
2
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
3
3
|
|
|
4
4
|
export declare enum EnvType {
|
|
@@ -522,22 +522,4 @@ export interface BatchConfigType {
|
|
|
522
522
|
export interface scrollableInterface {
|
|
523
523
|
autoBottomScroll: boolean;
|
|
524
524
|
}
|
|
525
|
-
export type BaseFilterQueryParams<T> = {
|
|
526
|
-
/**
|
|
527
|
-
* Offset for the list result
|
|
528
|
-
*/
|
|
529
|
-
offset?: number;
|
|
530
|
-
/**
|
|
531
|
-
* Number of items required in the list
|
|
532
|
-
*/
|
|
533
|
-
size?: number;
|
|
534
|
-
/**
|
|
535
|
-
* Search string (if any)
|
|
536
|
-
*/
|
|
537
|
-
searchKey?: string;
|
|
538
|
-
/**
|
|
539
|
-
* If true, all items are returned with any search / filtering applied without pagination
|
|
540
|
-
*/
|
|
541
|
-
showAll?: boolean;
|
|
542
|
-
} & SortingParams<T>;
|
|
543
525
|
export {};
|