@devtron-labs/devtron-fe-common-lib 0.1.13-beta-4 → 0.1.13-beta-6
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/CodeEditor/types.d.ts +2 -1
- package/dist/Common/Constants.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -3
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -23
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -10
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +0 -2
- package/dist/Shared/Helpers.d.ts +0 -2
- package/dist/Shared/types.d.ts +7 -0
- package/dist/Shared/validations.d.ts +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-2c849499.js → cssMode-323cccce.js} +1 -1
- package/dist/{freemarker2-72d6122d.js → freemarker2-48889ccc.js} +1 -1
- package/dist/{handlebars-2b6e7e9c.js → handlebars-fe43fc47.js} +1 -1
- package/dist/{html-88463702.js → html-0a4c629f.js} +1 -1
- package/dist/{htmlMode-98ee209e.js → htmlMode-e9e69da7.js} +1 -1
- package/dist/{index-c170b8d5.js → index-20deac54.js} +24633 -25056
- package/dist/index.d.ts +2 -0
- package/dist/index.js +409 -411
- package/dist/{javascript-03819b4b.js → javascript-6fc70857.js} +1 -1
- package/dist/{jsonMode-d3293564.js → jsonMode-b75dcba2.js} +1 -1
- package/dist/{liquid-01b55b77.js → liquid-11e4a7fe.js} +1 -1
- package/dist/{mdx-973090fd.js → mdx-a64f8b0f.js} +1 -1
- package/dist/{python-0c9bd8e6.js → python-43b3694b.js} +1 -1
- package/dist/{razor-d3c9c146.js → razor-f5d8bb58.js} +1 -1
- package/dist/{tsMode-fb7a4db4.js → tsMode-623ded91.js} +1 -1
- package/dist/{typescript-330c4001.js → typescript-d699f03a.js} +1 -1
- package/dist/{xml-2830b6fc.js → xml-5760aeff.js} +1 -1
- package/dist/{yaml-feff880e.js → yaml-538a79e0.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +0 -3
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -96
- package/dist/Shared/Components/CollapsibleList/index.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +0 -63
|
@@ -62,7 +62,8 @@ export declare enum CodeEditorThemesKeys {
|
|
|
62
62
|
vsDarkDT = "vs-dark--dt",
|
|
63
63
|
deleteDraft = "delete-draft",
|
|
64
64
|
unpublished = "unpublished",
|
|
65
|
-
vs = "vs"
|
|
65
|
+
vs = "vs",
|
|
66
|
+
networkStatusInterface = "network-status-interface"
|
|
66
67
|
}
|
|
67
68
|
export interface CodeEditorInitialValueType {
|
|
68
69
|
mode: string;
|
|
@@ -42,6 +42,7 @@ export declare const URLS: {
|
|
|
42
42
|
GLOBAL_CONFIG_DOCKER: string;
|
|
43
43
|
DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
|
|
44
44
|
GLOBAL_CONFIG_SCOPED_VARIABLES: string;
|
|
45
|
+
NETWORK_STATUS_INTERFACE: string;
|
|
45
46
|
};
|
|
46
47
|
export declare const ROUTES: {
|
|
47
48
|
APP: string;
|
|
@@ -75,6 +76,9 @@ export declare const ROUTES: {
|
|
|
75
76
|
CONFIG_CD_PIPELINE: string;
|
|
76
77
|
MODULE_CONFIGURED: string;
|
|
77
78
|
RESOURCE_HISTORY_DEPLOYMENT: string;
|
|
79
|
+
ATTRIBUTES: string;
|
|
80
|
+
ATTRIBUTES_CREATE: string;
|
|
81
|
+
ATTRIBUTES_UPDATE: string;
|
|
78
82
|
};
|
|
79
83
|
export declare enum KEY_VALUE {
|
|
80
84
|
KEY = "key",
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
2
|
|
|
3
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName,
|
|
3
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
4
4
|
export default DeploymentHistoryDiffView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps
|
|
2
|
+
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps } from '../../../Common';
|
|
3
3
|
import { DeploymentStageType } from '../../constants';
|
|
4
4
|
import { AggregationKeys, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType } from '../../types';
|
|
5
5
|
|
|
@@ -368,8 +368,6 @@ export interface DeploymentTemplateHistoryType {
|
|
|
368
368
|
isUnpublished?: boolean;
|
|
369
369
|
isDeleteDraft?: boolean;
|
|
370
370
|
rootClassName?: string;
|
|
371
|
-
comparisonBodyClassName?: string;
|
|
372
|
-
sortOrder?: SortingOrder;
|
|
373
371
|
}
|
|
374
372
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
375
373
|
result?: DeploymentHistoryDetail;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { KeyValueTableProps } from './KeyValueTable.types';
|
|
2
2
|
|
|
3
|
-
export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed,
|
|
3
|
+
export declare const KeyValueTable: <K extends string>({ config, maskValue, isSortable, headerComponent, onChange, onDelete, placeholder, isAdditionNotAllowed, }: KeyValueTableProps<K>) => JSX.Element;
|
|
@@ -60,10 +60,8 @@ export interface KeyValueTableProps<K extends string> {
|
|
|
60
60
|
isSortable?: boolean;
|
|
61
61
|
/** An optional React node for a custom header component. */
|
|
62
62
|
headerComponent?: ReactNode;
|
|
63
|
-
/** When true, data addition field will not be shown
|
|
63
|
+
/** When true, data addition field will not be shown */
|
|
64
64
|
isAdditionNotAllowed?: boolean;
|
|
65
|
-
/** When true, data add or update is disabled. */
|
|
66
|
-
readOnly?: boolean;
|
|
67
65
|
/**
|
|
68
66
|
* An optional function to handle changes in the table rows.
|
|
69
67
|
* @param rowId - The id of the row that changed.
|
|
@@ -76,24 +74,4 @@ export interface KeyValueTableProps<K extends string> {
|
|
|
76
74
|
* @param deletedRowIndex - The index of the row that was deleted.
|
|
77
75
|
*/
|
|
78
76
|
onDelete?: (deletedRowId: string | number) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Indicates whether to show errors.
|
|
81
|
-
*/
|
|
82
|
-
showError?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* The function to use to validate the value of the cell.
|
|
85
|
-
* @param value - The value to validate.
|
|
86
|
-
* @returns Return true if the value is valid, otherwise false
|
|
87
|
-
* and set `showError` to `true` and provide errorMessages array to show error message.
|
|
88
|
-
*/
|
|
89
|
-
validationSchema?: (value: string) => boolean;
|
|
90
|
-
/**
|
|
91
|
-
* An array of error messages to be displayed in the cell error tooltip.
|
|
92
|
-
*/
|
|
93
|
-
errorMessages?: string[];
|
|
94
|
-
/**
|
|
95
|
-
* A callback function called when an error occurs.
|
|
96
|
-
* @param errorState - The error state, true when any cell has error, otherwise false.
|
|
97
|
-
*/
|
|
98
|
-
onError?: (errorState: boolean) => void;
|
|
99
77
|
}
|
|
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
|
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize,
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -17,10 +17,6 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
|
|
|
17
17
|
*/
|
|
18
18
|
endIcon?: ReactElement;
|
|
19
19
|
}
|
|
20
|
-
export declare enum SelectPickerVariantType {
|
|
21
|
-
DEFAULT = "default",
|
|
22
|
-
BORDERLESS = "borderless"
|
|
23
|
-
}
|
|
24
20
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
25
21
|
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
26
22
|
/**
|
|
@@ -74,11 +70,5 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
74
70
|
* @default 'ComponentSizeType.small'
|
|
75
71
|
*/
|
|
76
72
|
menuSize?: ComponentSizeType;
|
|
77
|
-
/**
|
|
78
|
-
* Variant of the select.
|
|
79
|
-
*
|
|
80
|
-
* @default SelectPickerVariantType.DEFAULT
|
|
81
|
-
*/
|
|
82
|
-
variant?: SelectPickerVariantType;
|
|
83
73
|
}
|
|
84
74
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { StylesConfig } from 'react-select';
|
|
2
2
|
import { SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
|
|
4
|
-
export declare const getCommonSelectStyle: ({ error, size, menuSize,
|
|
4
|
+
export declare const getCommonSelectStyle: ({ error, size, menuSize, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize'>) => StylesConfig<SelectPickerOptionType>;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Pair } from 'yaml';
|
|
3
2
|
import { MaterialInfo, SortingOrder } from '../Common';
|
|
4
3
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
5
4
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -25,7 +24,6 @@ export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTrigge
|
|
|
25
24
|
export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
|
|
26
25
|
export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
|
|
27
26
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
28
|
-
export declare const yamlComparatorBySortOrder: (a: Pair, b: Pair, sortOrder?: SortingOrder) => number;
|
|
29
27
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
30
28
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
31
29
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -522,4 +522,11 @@ export interface BatchConfigType {
|
|
|
522
522
|
export interface scrollableInterface {
|
|
523
523
|
autoBottomScroll: boolean;
|
|
524
524
|
}
|
|
525
|
+
export declare enum URLProtocolType {
|
|
526
|
+
HTTP = "http:",
|
|
527
|
+
HTTPS = "https:",
|
|
528
|
+
SSH = "ssh:",
|
|
529
|
+
SMTP = "smtp:",
|
|
530
|
+
S3 = "s3:"
|
|
531
|
+
}
|
|
525
532
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { URLProtocolType } from './types';
|
|
2
|
+
|
|
1
3
|
export interface ValidationResponseType {
|
|
2
4
|
isValid: boolean;
|
|
3
5
|
message?: string;
|
|
@@ -20,6 +22,7 @@ export declare const validateStringLength: (value: string, maxLimit: number, min
|
|
|
20
22
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
21
23
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
22
24
|
export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
|
|
25
|
+
export declare const validateProtocols: (url: string, protocols: URLProtocolType[], isRequired?: boolean) => ValidationResponseType;
|
|
23
26
|
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|
|
24
27
|
export declare const validateUniqueKeys: (keys: string[]) => {
|
|
25
28
|
isValid: boolean;
|