@devtron-labs/devtron-fe-common-lib 0.3.6-beta-4 → 0.3.6-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/Helper.d.ts +0 -1
- package/dist/Common/Toggle/Toggle.d.ts +1 -2
- package/dist/Common/Tooltip/ShortcutKeyComboTooltipContent.d.ts +3 -0
- package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Common/Tooltip/index.d.ts +1 -0
- package/dist/Common/Tooltip/types.d.ts +37 -1
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +54 -1
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +55 -2
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +1 -9
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -5
- package/dist/Shared/Services/app.service.d.ts +1 -7
- package/dist/Shared/Services/app.types.d.ts +5 -21
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-vA9gH0w8.js → cssMode-D4XINBt-.js} +1 -1
- package/dist/{freemarker2-D6DTPzEc.js → freemarker2-DGZfTr-2.js} +1 -1
- package/dist/{handlebars-8NbaQzbS.js → handlebars-D9BeHSGE.js} +1 -1
- package/dist/{html-D42MJuBu.js → html-DM8yvxyC.js} +1 -1
- package/dist/{htmlMode-CPsG5eC1.js → htmlMode-9RDciR0a.js} +1 -1
- package/dist/{index-D6jxPkpU.js → index-DACGOIde.js} +15980 -16011
- package/dist/index.js +48 -49
- package/dist/{javascript-BNC4ZqNA.js → javascript-DEuD1TEZ.js} +1 -1
- package/dist/{jsonMode-CIAdJ3rx.js → jsonMode-b8br1WLp.js} +1 -1
- package/dist/{liquid-CHBcBRal.js → liquid--ajb-MUc.js} +1 -1
- package/dist/{mdx-B6h0lWX-.js → mdx-DQo6jYHt.js} +1 -1
- package/dist/{python-DU_mTF8x.js → python-BwTda6C8.js} +1 -1
- package/dist/{razor-BAQITVkW.js → razor-B3o0IfCN.js} +1 -1
- package/dist/{tsMode-6h0U-cNh.js → tsMode-B9z0LOhC.js} +1 -1
- package/dist/{typescript-f_qrm8yb.js → typescript-ZpuVDf-s.js} +1 -1
- package/dist/{xml-BqpSxoUZ.js → xml-MfgkmIir.js} +1 -1
- package/dist/{yaml-CnUq4BV-.js → yaml-CfK-U0Co.js} +1 -1
- package/package.json +2 -1
- package/dist/Shared/Components/CollapsibleList/utils.d.ts +0 -14
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -126,5 +126,4 @@ export declare const DropdownIndicator: (props: any) => JSX.Element;
|
|
|
126
126
|
export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
|
|
127
127
|
export declare function asyncWrap(promise: any): any[];
|
|
128
128
|
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
129
|
-
export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
|
|
130
129
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass,
|
|
1
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
selected?: boolean;
|
|
4
4
|
onSelect?: any;
|
|
@@ -8,6 +8,5 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
|
|
|
8
8
|
dataTestId?: string;
|
|
9
9
|
Icon?: any;
|
|
10
10
|
iconClass?: string;
|
|
11
|
-
throttleOnChange?: boolean;
|
|
12
11
|
}) => JSX.Element;
|
|
13
12
|
export default Toggle;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TooltipProps } from './types';
|
|
2
|
-
declare const Tooltip: ({ alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child, ...rest }: TooltipProps) => JSX.Element;
|
|
2
|
+
declare const Tooltip: ({ shortcutKeyCombo, alwaysShowTippyOnHover, showOnTruncate, wordBreak, children: child, ...rest }: TooltipProps) => JSX.Element;
|
|
3
3
|
export default Tooltip;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { TippyProps } from '@tippyjs/react';
|
|
2
|
+
export declare const KEYBOARD_KEYS_MAP: {
|
|
3
|
+
readonly Control: "⌘" | "Ctrl";
|
|
4
|
+
readonly Shift: "⇧";
|
|
5
|
+
readonly F: "F";
|
|
6
|
+
readonly E: "E";
|
|
7
|
+
};
|
|
8
|
+
export type SupportedKeyboardKeysType = keyof typeof KEYBOARD_KEYS_MAP;
|
|
2
9
|
type BaseTooltipProps = {
|
|
3
10
|
/**
|
|
4
11
|
* If true, show tippy on truncate
|
|
@@ -10,6 +17,11 @@ type BaseTooltipProps = {
|
|
|
10
17
|
* @default false
|
|
11
18
|
*/
|
|
12
19
|
alwaysShowTippyOnHover?: never;
|
|
20
|
+
/**
|
|
21
|
+
* If true, use the common styling for shortcuts
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
shortcutKeyCombo?: never;
|
|
13
25
|
} | {
|
|
14
26
|
/**
|
|
15
27
|
* If alwaysShowTippyOnHover is defined this prop doesn't work
|
|
@@ -18,9 +30,33 @@ type BaseTooltipProps = {
|
|
|
18
30
|
showOnTruncate?: never;
|
|
19
31
|
/**
|
|
20
32
|
* If true, wrap with tippy irrespective of other options
|
|
21
|
-
* @default
|
|
33
|
+
* @default true
|
|
22
34
|
*/
|
|
23
35
|
alwaysShowTippyOnHover?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* If true, use the common styling for shortcuts
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
shortcutKeyCombo?: never;
|
|
41
|
+
} | {
|
|
42
|
+
/**
|
|
43
|
+
* If true, show tippy on truncate
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
showOnTruncate?: never;
|
|
47
|
+
/**
|
|
48
|
+
* If showOnTruncate is defined this prop doesn't work
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
alwaysShowTippyOnHover?: never;
|
|
52
|
+
/**
|
|
53
|
+
* If true, use the common styling for shortcuts
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
shortcutKeyCombo?: {
|
|
57
|
+
text: string;
|
|
58
|
+
combo: SupportedKeyboardKeysType[];
|
|
59
|
+
};
|
|
24
60
|
};
|
|
25
61
|
export type TooltipProps = BaseTooltipProps & TippyProps & {
|
|
26
62
|
/**
|
|
@@ -1,4 +1,57 @@
|
|
|
1
|
+
import { IWithShortcut } from 'react-keybind';
|
|
1
2
|
import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
|
|
2
|
-
export declare const LogResizeButton:
|
|
3
|
+
export declare const LogResizeButton: {
|
|
4
|
+
new (props: Readonly<LogResizeButtonType & IWithShortcut>): {
|
|
5
|
+
render(): JSX.Element;
|
|
6
|
+
context: any;
|
|
7
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogResizeButtonType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
8
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
9
|
+
readonly props: Readonly<LogResizeButtonType & IWithShortcut> & Readonly<{
|
|
10
|
+
children?: import('react').ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
state: Readonly<{}>;
|
|
13
|
+
refs: {
|
|
14
|
+
[key: string]: import('react').ReactInstance;
|
|
15
|
+
};
|
|
16
|
+
componentDidMount?(): void;
|
|
17
|
+
shouldComponentUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
18
|
+
componentWillUnmount?(): void;
|
|
19
|
+
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
20
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
21
|
+
componentDidUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
22
|
+
componentWillMount?(): void;
|
|
23
|
+
UNSAFE_componentWillMount?(): void;
|
|
24
|
+
componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
25
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
26
|
+
componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
27
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
28
|
+
};
|
|
29
|
+
new (props: LogResizeButtonType & IWithShortcut, context?: any): {
|
|
30
|
+
render(): JSX.Element;
|
|
31
|
+
context: any;
|
|
32
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogResizeButtonType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
33
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
+
readonly props: Readonly<LogResizeButtonType & IWithShortcut> & Readonly<{
|
|
35
|
+
children?: import('react').ReactNode;
|
|
36
|
+
}>;
|
|
37
|
+
state: Readonly<{}>;
|
|
38
|
+
refs: {
|
|
39
|
+
[key: string]: import('react').ReactInstance;
|
|
40
|
+
};
|
|
41
|
+
componentDidMount?(): void;
|
|
42
|
+
shouldComponentUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
43
|
+
componentWillUnmount?(): void;
|
|
44
|
+
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
45
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
46
|
+
componentDidUpdate?(prevProps: Readonly<LogResizeButtonType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
47
|
+
componentWillMount?(): void;
|
|
48
|
+
UNSAFE_componentWillMount?(): void;
|
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
52
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogResizeButtonType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
53
|
+
};
|
|
54
|
+
contextType?: import('react').Context<any> | undefined;
|
|
55
|
+
};
|
|
3
56
|
export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
|
|
4
57
|
export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, }: GitChangesType) => JSX.Element;
|
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
import { IWithShortcut } from 'react-keybind';
|
|
1
2
|
import { LogsRendererType } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
declare const _default: {
|
|
4
|
+
new (props: Readonly<LogsRendererType & IWithShortcut>): {
|
|
5
|
+
render(): JSX.Element;
|
|
6
|
+
context: any;
|
|
7
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogsRendererType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
8
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
9
|
+
readonly props: Readonly<LogsRendererType & IWithShortcut> & Readonly<{
|
|
10
|
+
children?: import('react').ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
state: Readonly<{}>;
|
|
13
|
+
refs: {
|
|
14
|
+
[key: string]: import('react').ReactInstance;
|
|
15
|
+
};
|
|
16
|
+
componentDidMount?(): void;
|
|
17
|
+
shouldComponentUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
18
|
+
componentWillUnmount?(): void;
|
|
19
|
+
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
20
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
21
|
+
componentDidUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
22
|
+
componentWillMount?(): void;
|
|
23
|
+
UNSAFE_componentWillMount?(): void;
|
|
24
|
+
componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
25
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
26
|
+
componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
27
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
28
|
+
};
|
|
29
|
+
new (props: LogsRendererType & IWithShortcut, context?: any): {
|
|
30
|
+
render(): JSX.Element;
|
|
31
|
+
context: any;
|
|
32
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LogsRendererType & IWithShortcut>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: (() => void) | undefined): void;
|
|
33
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
+
readonly props: Readonly<LogsRendererType & IWithShortcut> & Readonly<{
|
|
35
|
+
children?: import('react').ReactNode;
|
|
36
|
+
}>;
|
|
37
|
+
state: Readonly<{}>;
|
|
38
|
+
refs: {
|
|
39
|
+
[key: string]: import('react').ReactInstance;
|
|
40
|
+
};
|
|
41
|
+
componentDidMount?(): void;
|
|
42
|
+
shouldComponentUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
43
|
+
componentWillUnmount?(): void;
|
|
44
|
+
componentDidCatch?(error: Error, errorInfo: import('react').ErrorInfo): void;
|
|
45
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>): any;
|
|
46
|
+
componentDidUpdate?(prevProps: Readonly<LogsRendererType & IWithShortcut>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
47
|
+
componentWillMount?(): void;
|
|
48
|
+
UNSAFE_componentWillMount?(): void;
|
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
52
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LogsRendererType & IWithShortcut>, nextState: Readonly<{}>, nextContext: any): void;
|
|
53
|
+
};
|
|
54
|
+
contextType?: import('react').Context<any> | undefined;
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
@@ -10,7 +10,7 @@ export * from './service';
|
|
|
10
10
|
export * from './History.components';
|
|
11
11
|
export * from './utils';
|
|
12
12
|
export * from './TriggerOutput';
|
|
13
|
-
export
|
|
13
|
+
export { default as LogsRenderer } from './LogsRenderer';
|
|
14
14
|
export * from './DeploymentHistoryDiff';
|
|
15
15
|
export * from './CiPipelineSourceConfig';
|
|
16
16
|
export * from './StatusFilterButtonComponent';
|
|
@@ -46,7 +46,6 @@ export interface DeploymentConfigDiffProps {
|
|
|
46
46
|
selectorsConfig: {
|
|
47
47
|
primaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
48
48
|
secondaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
49
|
-
hideDivider?: boolean;
|
|
50
49
|
};
|
|
51
50
|
sortingConfig?: {
|
|
52
51
|
sortBy: string;
|
|
@@ -63,14 +62,10 @@ export interface DeploymentConfigDiffProps {
|
|
|
63
62
|
activeTab: string;
|
|
64
63
|
onClick: (tab: string) => void;
|
|
65
64
|
};
|
|
66
|
-
scopeVariablesConfig?: {
|
|
67
|
-
convertVariables: boolean;
|
|
68
|
-
onConvertVariablesClick: () => void;
|
|
69
|
-
};
|
|
70
65
|
}
|
|
71
66
|
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
|
|
72
67
|
}
|
|
73
|
-
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'
|
|
68
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
74
69
|
}
|
|
75
70
|
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
76
71
|
id: string;
|
|
@@ -92,7 +87,4 @@ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView e
|
|
|
92
87
|
}) & {
|
|
93
88
|
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
94
89
|
isManifestView?: IsManifestView;
|
|
95
|
-
convertVariables?: boolean;
|
|
96
|
-
currentDeploymentTemplateResolvedData?: AppEnvDeploymentConfigDTO;
|
|
97
|
-
compareDeploymentTemplateResolvedData?: AppEnvDeploymentConfigDTO;
|
|
98
90
|
};
|
|
@@ -27,7 +27,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
27
27
|
*
|
|
28
28
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
29
29
|
*/
|
|
30
|
-
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder,
|
|
30
|
+
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
|
31
31
|
configList: DeploymentConfigDiffProps["configList"];
|
|
32
32
|
navList: DeploymentConfigDiffProps["navList"];
|
|
33
33
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId,
|
|
2
|
+
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
@@ -4,7 +4,6 @@ import { ComponentSizeType } from '../../constants';
|
|
|
4
4
|
import { MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
5
5
|
import { GroupBase, GroupHeadingProps, Props as ReactSelectProps, SelectInstance } from 'react-select';
|
|
6
6
|
import { CreatableProps } from 'react-select/creatable';
|
|
7
|
-
import { TippyProps } from '@tippyjs/react';
|
|
8
7
|
export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
|
|
9
8
|
/**
|
|
10
9
|
* Description to be displayed for the option
|
|
@@ -18,10 +17,6 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
|
|
|
18
17
|
* Icon at the end of the option
|
|
19
18
|
*/
|
|
20
19
|
endIcon?: ReactElement;
|
|
21
|
-
/**
|
|
22
|
-
* Props passed to show the tippy on option
|
|
23
|
-
*/
|
|
24
|
-
tooltipProps?: TippyProps;
|
|
25
20
|
}
|
|
26
21
|
type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
|
|
27
22
|
declare module 'react-select/base' {
|
|
@@ -5,10 +5,4 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
|
|
|
5
5
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
6
6
|
*/
|
|
7
7
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<CIMaterialInfoType>;
|
|
8
|
-
export declare const getAppEnvDeploymentConfig: (
|
|
9
|
-
params: AppEnvDeploymentConfigPayloadType;
|
|
10
|
-
payload?: {
|
|
11
|
-
values: string;
|
|
12
|
-
};
|
|
13
|
-
signal?: AbortSignal;
|
|
14
|
-
}) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
8
|
+
export declare const getAppEnvDeploymentConfig: (params: AppEnvDeploymentConfigPayloadType, signal?: AbortSignal) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
@@ -114,7 +114,6 @@ export interface DraftMetadataDTO {
|
|
|
114
114
|
draftId: number;
|
|
115
115
|
draftVersionId: number;
|
|
116
116
|
draftState: number;
|
|
117
|
-
draftResolvedValue: string;
|
|
118
117
|
approvers: string[];
|
|
119
118
|
canApprove: boolean;
|
|
120
119
|
commentsCount: number;
|
|
@@ -155,18 +154,14 @@ export declare enum ConfigResourceType {
|
|
|
155
154
|
}
|
|
156
155
|
export interface DeploymentTemplateDTO {
|
|
157
156
|
resourceType: ConfigResourceType.DeploymentTemplate;
|
|
158
|
-
data:
|
|
159
|
-
|
|
160
|
-
variableSnapshot: {
|
|
161
|
-
'Deployment Template': Record<string, string>;
|
|
157
|
+
data: {
|
|
158
|
+
[key: string]: any;
|
|
162
159
|
};
|
|
163
|
-
|
|
160
|
+
deploymentDraftData: ConfigMapSecretDataType | null;
|
|
164
161
|
}
|
|
165
162
|
export interface ConfigMapSecretDataDTO {
|
|
166
163
|
resourceType: Extract<ConfigResourceType, ConfigResourceType.ConfigMap | ConfigResourceType.Secret>;
|
|
167
164
|
data: ConfigMapSecretDataType;
|
|
168
|
-
variableSnapshot: Record<string, Record<string, string>>;
|
|
169
|
-
resolvedValue: string;
|
|
170
165
|
}
|
|
171
166
|
export interface AppEnvDeploymentConfigDTO {
|
|
172
167
|
deploymentTemplate: DeploymentTemplateDTO | null;
|
|
@@ -174,7 +169,7 @@ export interface AppEnvDeploymentConfigDTO {
|
|
|
174
169
|
secretsData: ConfigMapSecretDataDTO | null;
|
|
175
170
|
isAppAdmin: boolean;
|
|
176
171
|
}
|
|
177
|
-
export
|
|
172
|
+
export interface AppEnvDeploymentConfigPayloadType {
|
|
178
173
|
appName: string;
|
|
179
174
|
envName: string;
|
|
180
175
|
configType: AppEnvDeploymentConfigType;
|
|
@@ -183,18 +178,7 @@ export type AppEnvDeploymentConfigPayloadType = {
|
|
|
183
178
|
resourceType?: ConfigResourceType;
|
|
184
179
|
resourceId?: number;
|
|
185
180
|
resourceName?: string;
|
|
186
|
-
|
|
187
|
-
} | {
|
|
188
|
-
appName: string;
|
|
189
|
-
envName: string;
|
|
190
|
-
configArea: 'ResolveData';
|
|
191
|
-
} | {
|
|
192
|
-
appName: string;
|
|
193
|
-
envName: string;
|
|
194
|
-
pipelineId: number;
|
|
195
|
-
configArea: 'CdRollback' | 'DeploymentHistory';
|
|
196
|
-
wfrId: number;
|
|
197
|
-
};
|
|
181
|
+
}
|
|
198
182
|
export declare enum TemplateListType {
|
|
199
183
|
DefaultVersions = 1,
|
|
200
184
|
PublishedOnEnvironments = 2,
|