@devtron-labs/devtron-fe-common-lib 1.16.0-pre-9 → 1.16.0
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/{@code-editor-fA2ygLkD.js → @code-editor-CEmGYRXP.js} +9029 -9453
- package/dist/{@common-rjsf-Dg7AJefB.js → @common-rjsf-qWtqbYmP.js} +6 -6
- package/dist/{@framer-motion-j6RIjEIR.js → @framer-motion-DAmKhMSi.js} +20 -20
- package/dist/{@moment-CGWt8tF2.js → @moment-C_WeV3Af.js} +1 -12
- package/dist/{@react-dates-BVyHiOGU.js → @react-dates-D5kydtW-.js} +2140 -2065
- package/dist/{@react-select-BQNFZu0Y.js → @react-select-Cmser7OI.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-CuElh0mS.js → @react-virtualized-sticky-tree-DMnFy9PE.js} +1 -1
- package/dist/{@vendor-DbxoIktR.js → @vendor-STJ9h0oI.js} +30333 -30600
- package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Common/Constants.d.ts +0 -2
- package/dist/Common/GenericDescription/GenericDescription.d.ts +1 -1
- package/dist/Common/GenericDescription/types.d.ts +1 -4
- package/dist/Common/GenericDescription/utils.d.ts +0 -1
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -21
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/Hooks/useStateFilters/types.d.ts +2 -2
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +1 -1
- package/dist/Common/Hooks/useUrlFilters/index.d.ts +0 -1
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -2
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal.d.ts +0 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +0 -1
- package/dist/Common/Pagination/constants.d.ts +0 -4
- package/dist/Common/Pagination/index.d.ts +0 -1
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +0 -1
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/constants.d.ts +0 -8
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +2 -35
- package/dist/Pages/ResourceBrowser/constants.d.ts +0 -13
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +0 -17
- package/dist/Shared/Components/AboutDevtron/AboutDevtronBody.d.ts +3 -1
- package/dist/Shared/Components/AboutDevtron/AboutDevtronDialog.d.ts +2 -1
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
- package/dist/Shared/Components/AnimatedDeployButton/types.d.ts +9 -5
- package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +1 -2
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/index.d.ts +0 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +2 -28
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +3 -0
- package/dist/Shared/Components/BulkSelection/types.d.ts +9 -4
- package/dist/Shared/Components/Button/Button.component.d.ts +2 -376
- package/dist/Shared/Components/Button/types.d.ts +3 -6
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -2
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +1 -2
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +2 -7
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -1
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +3 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
- package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +3 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +1 -18
- package/dist/Shared/Components/InfoBlock/constants.d.ts +1 -2
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +2 -3
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
- package/dist/Shared/Components/Table/BulkSelectionActionWidget.d.ts +1 -1
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/Table/constants.d.ts +0 -1
- package/dist/Shared/Components/Table/index.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +21 -48
- package/dist/Shared/Components/Table/useTableWithKeyboardShortcuts.d.ts +1 -6
- package/dist/Shared/Components/Table/utils.d.ts +0 -5
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +41 -75
- package/dist/Shared/Components/WorkflowOptionsModal/index.d.ts +0 -1
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +12 -10
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +2 -13
- package/dist/Shared/Components/index.d.ts +0 -3
- package/dist/Shared/Helpers.d.ts +2 -3
- package/dist/Shared/Hooks/useStickyEvent/constants.d.ts +2 -3
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +2 -0
- package/dist/Shared/Providers/{MainContextProvider/types.d.ts → types.d.ts} +4 -4
- package/dist/Shared/Services/types.d.ts +0 -1
- package/dist/Shared/constants.d.ts +0 -1
- package/dist/Shared/types.d.ts +2 -15
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/change-source.abc9d12f.png +0 -0
- package/dist/assets/ic-check-all.0376437d.svg +21 -0
- package/dist/assets/ic-check-square.2a3d3fb9.svg +20 -0
- package/dist/assets/ic-ci-webhook.a2ab6db6.svg +42 -0
- package/dist/assets/{ic-minus.aac464f7.svg → ic-minus.416da21b.svg} +1 -1
- package/dist/assets/ic-source-build.7d776b10.svg +22 -0
- package/dist/assets/ic-source-job.a40f06cf.svg +26 -0
- package/dist/assets/ic-source-linked-build.f24ecbed.svg +24 -0
- package/dist/assets/ic-source-webhook.ee64a29a.svg +22 -0
- package/dist/assets/select-image-source.fb911f42.png +0 -0
- package/dist/index.d.ts +1 -6
- package/dist/index.js +838 -854
- package/package.json +7 -7
- package/dist/Shared/Components/Backdrop/utils.d.ts +0 -1
- package/dist/Shared/Components/Badge/Badge.d.ts +0 -3
- package/dist/Shared/Components/Badge/index.d.ts +0 -2
- package/dist/Shared/Components/Badge/types.d.ts +0 -18
- package/dist/Shared/Components/Badge/utils.d.ts +0 -7
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +0 -9
- package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +0 -6
- package/dist/Shared/Components/GenericModal/constants.d.ts +0 -2
- package/dist/Shared/Components/GenericModal/index.d.ts +0 -2
- package/dist/Shared/Components/GenericModal/types.d.ts +0 -37
- package/dist/Shared/Components/Security/SeverityChip.d.ts +0 -6
- package/dist/Shared/Components/Table/TableContent.d.ts +0 -3
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +0 -3
- package/dist/assets/ic-bug.8a8dc1fc.svg +0 -3
- package/dist/assets/ic-check-all.fdea6b38.svg +0 -5
- package/dist/assets/ic-check-square.e355731d.svg +0 -4
- package/dist/assets/ic-clean-brush.c21cbe1e.svg +0 -3
- package/dist/assets/ic-container.92a4c33a.svg +0 -3
- package/dist/assets/ic-deploy-color.73a8df48.svg +0 -14
- package/dist/assets/ic-deploy-sync.6b1cf1b1.svg +0 -16
- package/dist/assets/ic-download.468a0cb7.svg +0 -3
- package/dist/assets/ic-file-code.0926d194.svg +0 -3
- package/dist/assets/ic-gavel.a3b064b5.svg +0 -3
- package/dist/assets/ic-git-branch.d6b3d950.svg +0 -3
- package/dist/assets/ic-info-filled-color.47953fcf.svg +0 -8
- package/dist/assets/ic-linked-build-color.d1df5ce1.svg +0 -7
- package/dist/assets/ic-logs.d310db72.svg +0 -3
- package/dist/assets/ic-pause-circle.f9405070.svg +0 -3
- package/dist/assets/ic-speedometer.3ecaae3b.svg +0 -3
- package/dist/assets/ic-two-cubes.056d1333.svg +0 -3
- package/dist/assets/ic-webhook.ffd8ded6.svg +0 -21
- package/dist/assets/workflow-options-modal-header.0444485e.svg +0 -38
- /package/dist/Shared/Providers/{MainContextProvider/MainContextProvider.d.ts → MainContextProvider.d.ts} +0 -0
- /package/dist/assets/{ic-container-registry.4e1e6455.svg → ic-container.4e1e6455.svg} +0 -0
@@ -1,86 +1,52 @@
|
|
1
|
-
import {
|
1
|
+
import { PipelineType } from '../../../Common/Types';
|
2
2
|
import { CIPipelineNodeType } from '../../types';
|
3
|
+
export declare const WORKFLOW_OPTIONS_MODAL: {
|
4
|
+
ACTION_TEXT: string;
|
5
|
+
ACTION_NOTE: string;
|
6
|
+
CHANGE_CI_TEXT: string;
|
7
|
+
CHANGE_CI_NOTE: string;
|
8
|
+
};
|
9
|
+
export declare const WORKFLOW_OPTIONS_MODAL_TYPES: {
|
10
|
+
DEFAULT: string;
|
11
|
+
RECIEVE: string;
|
12
|
+
JOB: string;
|
13
|
+
};
|
3
14
|
export declare const SOURCE_TYPE_CARD_VARIANTS: {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
})[];
|
20
|
-
};
|
21
|
-
BUILD_FROM_SOURCE_CODE: {
|
22
|
-
title: string;
|
23
|
-
subtitle: string;
|
24
|
-
dataTestId: string;
|
25
|
-
type: CIPipelineNodeType.CI;
|
26
|
-
icons: ({
|
27
|
-
name: "ic-git-branch";
|
28
|
-
color: "N700";
|
29
|
-
} | {
|
30
|
-
name: "ic-build-color";
|
31
|
-
color: any;
|
32
|
-
})[];
|
33
|
-
};
|
34
|
-
JOB: {
|
35
|
-
title: string;
|
36
|
-
subtitle: string;
|
37
|
-
dataTestId: string;
|
38
|
-
type: CIPipelineNodeType.JOB_CI;
|
39
|
-
icons: {
|
40
|
-
name: "ic-job-color";
|
41
|
-
color: any;
|
42
|
-
}[];
|
43
|
-
};
|
15
|
+
SOURCE_CODE: {
|
16
|
+
title: string;
|
17
|
+
subtitle: string;
|
18
|
+
image: string;
|
19
|
+
alt: string;
|
20
|
+
dataTestId: string;
|
21
|
+
type: CIPipelineNodeType;
|
22
|
+
};
|
23
|
+
LINKED_PIPELINE: {
|
24
|
+
title: string;
|
25
|
+
subtitle: string;
|
26
|
+
image: string;
|
27
|
+
alt: string;
|
28
|
+
dataTestId: string;
|
29
|
+
type: CIPipelineNodeType;
|
44
30
|
};
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
name: "ic-webhook";
|
53
|
-
color: any;
|
54
|
-
} | {
|
55
|
-
name: "ic-deploy-color";
|
56
|
-
color: any;
|
57
|
-
})[];
|
58
|
-
};
|
59
|
-
LINKED_PIPELINE: {
|
60
|
-
title: string;
|
61
|
-
subtitle: string;
|
62
|
-
dataTestId: string;
|
63
|
-
type: CIPipelineNodeType.LINKED_CI;
|
64
|
-
icons: {
|
65
|
-
name: "ic-linked-build-color";
|
66
|
-
color: any;
|
67
|
-
}[];
|
68
|
-
};
|
31
|
+
EXTERNAL_SERVICE: {
|
32
|
+
title: string;
|
33
|
+
subtitle: string;
|
34
|
+
image: string;
|
35
|
+
alt: string;
|
36
|
+
dataTestId: string;
|
37
|
+
type: PipelineType;
|
69
38
|
};
|
70
39
|
JOB: {
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
name: "ic-job-color";
|
78
|
-
color: any;
|
79
|
-
}[];
|
80
|
-
};
|
40
|
+
title: string;
|
41
|
+
subtitle: string;
|
42
|
+
image: string;
|
43
|
+
alt: string;
|
44
|
+
dataTestId: string;
|
45
|
+
type: CIPipelineNodeType;
|
81
46
|
};
|
82
47
|
};
|
83
48
|
export declare const NO_ENV_FOUND = "No environment found. Please create a CD Pipeline first.";
|
49
|
+
export declare const CHANGE_SAME_CI = "Cannot change to same source type";
|
84
50
|
export declare const REQUEST_IN_PROGRESS = "Request in progress";
|
85
51
|
export declare const TOAST_MESSAGES: {
|
86
52
|
SUCCESS_CHANGE_TO_WEBHOOK: string;
|
@@ -1,19 +1,20 @@
|
|
1
|
-
import { WorkflowNodeType } from '../../../Common/Types';
|
2
1
|
import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
|
3
2
|
import { AppConfigProps } from '../../../Pages/index';
|
4
|
-
|
5
|
-
import { IconsProps } from '../Icon';
|
6
|
-
export interface SourceTypeCardProps {
|
3
|
+
interface LinkedCDSourceVariant {
|
7
4
|
title: string;
|
8
5
|
subtitle: string;
|
6
|
+
image: string;
|
7
|
+
alt: string;
|
9
8
|
dataTestId: string;
|
10
|
-
type:
|
11
|
-
|
9
|
+
type: string;
|
10
|
+
}
|
11
|
+
export interface SourceTypeCardProps extends LinkedCDSourceVariant {
|
12
|
+
handleCardAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
12
13
|
disableInfo: string;
|
13
|
-
|
14
|
-
onCardAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
14
|
+
isDisabled?: boolean;
|
15
15
|
}
|
16
|
-
export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps, 'isTemplateView'
|
16
|
+
export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps, 'isTemplateView'>> {
|
17
|
+
handleCloseWorkflowOptionsModal: () => void;
|
17
18
|
addCIPipeline: (type: CIPipelineNodeType, workflowId?: number | string) => void;
|
18
19
|
addWebhookCD: (workflowId?: number | string) => void;
|
19
20
|
addLinkedCD: (changeCIPayload?: ChangeCIPayloadType) => void;
|
@@ -22,6 +23,7 @@ export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps,
|
|
22
23
|
changeCIPayload?: ChangeCIPayloadType;
|
23
24
|
workflows?: WorkflowType[];
|
24
25
|
getWorkflows?: () => void;
|
25
|
-
linkedCDSourceVariant?:
|
26
|
+
linkedCDSourceVariant?: LinkedCDSourceVariant;
|
26
27
|
isAppGroup?: boolean;
|
27
28
|
}
|
29
|
+
export {};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { PipelineType
|
2
|
-
import { ChangeCIPayloadType
|
3
|
-
import { SourceTypeCardProps, WorkflowOptionsModalProps } from './types';
|
1
|
+
import { PipelineType } from '../../../Common/Types';
|
2
|
+
import { ChangeCIPayloadType } from '../../types';
|
4
3
|
export declare const getSwitchToWebhookPayload: (changeCIPayload: ChangeCIPayloadType) => {
|
5
4
|
appId: number;
|
6
5
|
pipelines: {
|
@@ -13,13 +12,3 @@ export declare const getSwitchToWebhookPayload: (changeCIPayload: ChangeCIPayloa
|
|
13
12
|
switchFromCiPipelineId: number;
|
14
13
|
}[];
|
15
14
|
};
|
16
|
-
export declare const getCurrentPipelineType: ({ workflows, changeCIPayload, }: Required<Pick<WorkflowOptionsModalProps, "workflows" | "changeCIPayload">>) => SourceTypeCardProps["type"];
|
17
|
-
export declare const getBuildWorkflowCardsConfig: ({ currentPipelineType, changeCIPayload, isAppGroup, }: {
|
18
|
-
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
19
|
-
} & Required<Pick<WorkflowOptionsModalProps, "changeCIPayload" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
20
|
-
export declare const getReceiveWorkflowCardsConfig: ({ currentPipelineType, linkedCDSourceVariant, isAppGroup, }: {
|
21
|
-
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
22
|
-
} & Required<Pick<WorkflowOptionsModalProps, "linkedCDSourceVariant" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
23
|
-
export declare const getJobWorkflowCardsConfig: ({ currentPipelineType, isAppGroup, }: {
|
24
|
-
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
25
|
-
} & Required<Pick<WorkflowOptionsModalProps, "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
@@ -7,7 +7,6 @@ export * from './APIResponseHandler';
|
|
7
7
|
export * from './AppStatusModal';
|
8
8
|
export * from './ArtifactInfoModal';
|
9
9
|
export * from './Backdrop';
|
10
|
-
export * from './Badge';
|
11
10
|
export * from './BulkOperations';
|
12
11
|
export * from './BulkSelection';
|
13
12
|
export * from './Button';
|
@@ -41,7 +40,6 @@ export * from './FlagImage';
|
|
41
40
|
export * from './FloatingVariablesSuggestions';
|
42
41
|
export * from './FramerComponents';
|
43
42
|
export * from './GenericInfoCard';
|
44
|
-
export * from './GenericModal';
|
45
43
|
export * from './GenericSectionErrorState';
|
46
44
|
export * from './GitCommitInfoGeneric';
|
47
45
|
export * from './GitProviderIcon';
|
@@ -65,7 +63,6 @@ export * from './ModalSidebarPanel';
|
|
65
63
|
export * from './NumbersCount';
|
66
64
|
export * from './PhoneInput';
|
67
65
|
export * from './Plugin';
|
68
|
-
export * from './Popover';
|
69
66
|
export * from './ProgressBar';
|
70
67
|
export { default as QRCode } from './QRCode';
|
71
68
|
export * from './ReactSelect';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -2,10 +2,10 @@ import { ReactElement } from 'react';
|
|
2
2
|
import { PromptProps } from 'react-router-dom';
|
3
3
|
import { StrictRJSFSchema } from '@rjsf/utils';
|
4
4
|
import { Pair } from 'yaml';
|
5
|
-
import { MaterialHistoryType } from '
|
5
|
+
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
7
|
import { AggregatedNodes, PodMetadatum } from './Components';
|
8
|
-
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions,
|
8
|
+
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
11
11
|
* The text to be highlighted
|
@@ -102,5 +102,4 @@ export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, t
|
|
102
102
|
export declare const clearCookieOnLogout: () => void;
|
103
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
105
|
-
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
106
105
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
export declare const
|
2
|
-
export declare const FALLBACK_SENTINEL_HEIGHT = "2px";
|
1
|
+
export declare const FALLBACK_SENTINEL_HEIGHT = "1px";
|
3
2
|
export declare const OBSERVER_THRESHOLD = 1;
|
4
|
-
export declare const OBSERVER_ROOT_MARGIN = "
|
3
|
+
export declare const OBSERVER_ROOT_MARGIN = "0px";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { USER_PREFERENCES_ATTRIBUTE_KEY } from '
|
2
|
-
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '
|
1
|
+
import { USER_PREFERENCES_ATTRIBUTE_KEY } from '@Shared/Hooks/useUserPreferences/constants';
|
2
|
+
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
|
3
3
|
import { BaseAppMetaData } from '../../Services';
|
4
4
|
import { ResourceKindType } from '../../types';
|
5
5
|
export interface GetUserPreferencesQueryParamsType {
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export * from './ImageSelectionUtility';
|
2
2
|
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
|
+
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
5
|
+
export { SidePanelTab } from './types';
|
4
6
|
export * from './UserEmailProvider';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
2
|
-
import { SERVER_MODE } from '
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { SERVER_MODE } from '../../Common';
|
3
|
+
import { ServerInfo } from '../Components/Header/types';
|
4
|
+
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '..';
|
5
5
|
export interface ReloadVersionConfigTypes {
|
6
6
|
bgUpdated: boolean;
|
7
7
|
handleAppUpdate: () => void;
|
@@ -66,7 +66,7 @@ type CommonMainContextProps = {
|
|
66
66
|
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
67
67
|
setAIAgentContext: (aiAgentContext: AIAgentContextType) => void;
|
68
68
|
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
69
|
-
}
|
69
|
+
};
|
70
70
|
export type MainContext = CommonMainContextProps & ({
|
71
71
|
isLicenseDashboard?: never;
|
72
72
|
serverMode: SERVER_MODE;
|
@@ -38,6 +38,5 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
|
|
38
38
|
isManifestScanningEnabled: boolean;
|
39
39
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
40
40
|
devtronManagedLicensingEnabled: boolean;
|
41
|
-
isResourceRecommendationEnabled?: boolean;
|
42
41
|
}
|
43
42
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
@@ -97,8 +97,7 @@ export declare enum Nodes {
|
|
97
97
|
Node = "Node",
|
98
98
|
Overview = "Overview",
|
99
99
|
MonitoringDashboard = "MonitoringDashboard",
|
100
|
-
UpgradeCluster = "UpgradeCluster"
|
101
|
-
ResourceRecommender = "ResourceRecommender"
|
100
|
+
UpgradeCluster = "UpgradeCluster"
|
102
101
|
}
|
103
102
|
export type NodeType = keyof typeof Nodes;
|
104
103
|
export interface Node {
|
@@ -761,15 +760,6 @@ interface CommonTabArgsType {
|
|
761
760
|
* @default false
|
762
761
|
*/
|
763
762
|
shouldRemainMounted?: boolean;
|
764
|
-
/**
|
765
|
-
* @default false
|
766
|
-
* If true, tab would contain alpha as badge next to the title
|
767
|
-
*/
|
768
|
-
isAlpha?: boolean;
|
769
|
-
/**
|
770
|
-
* On tab stop, i.e by pressing cross icon on alive tab [fixed tab expanding on click of tab and remains expanded on other tab click], tab will reset the tab to this default URL if provided
|
771
|
-
*/
|
772
|
-
defaultUrl?: string | null;
|
773
763
|
}
|
774
764
|
export type InitTabType = Omit<CommonTabArgsType, 'type'> & ({
|
775
765
|
type: 'fixed';
|
@@ -886,8 +876,7 @@ export declare enum CIPipelineNodeType {
|
|
886
876
|
CI = "CI",
|
887
877
|
LINKED_CI = "LINKED-CI",
|
888
878
|
JOB_CI = "JOB-CI",
|
889
|
-
LINKED_CD = "LINKED_CD"
|
890
|
-
CI_CD = "CI_CD"
|
879
|
+
LINKED_CD = "LINKED_CD"
|
891
880
|
}
|
892
881
|
export interface ChangeCIPayloadType {
|
893
882
|
appWorkflowId: number;
|
@@ -1054,7 +1043,6 @@ export interface DeploymentStatusDetailsType {
|
|
1054
1043
|
timelines: DeploymentStatusDetailsTimelineType[];
|
1055
1044
|
wfrStatus?: WorkflowRunnerStatusDTO;
|
1056
1045
|
isDeploymentWithoutApproval: boolean;
|
1057
|
-
deploymentAppType: DeploymentAppTypes;
|
1058
1046
|
}
|
1059
1047
|
export type DeploymentStatusTimelineType = TIMELINE_STATUS.DEPLOYMENT_INITIATED | TIMELINE_STATUS.GIT_COMMIT | TIMELINE_STATUS.ARGOCD_SYNC | TIMELINE_STATUS.KUBECTL_APPLY | TIMELINE_STATUS.APP_HEALTH | TIMELINE_STATUS.HELM_PACKAGE_GENERATED | TIMELINE_STATUS.HELM_MANIFEST_PUSHED_TO_HELM_REPO;
|
1060
1048
|
export type DeploymentStatusBreakdownItemIconType = 'success' | 'failed' | 'unknown' | 'inprogress' | 'unreachable' | 'loading' | 'disconnect' | 'timed_out' | '';
|
@@ -1099,7 +1087,6 @@ export interface DeploymentStatusDetailsBreakdownDataType {
|
|
1099
1087
|
deploymentErrorMessage: string;
|
1100
1088
|
nextTimelineToProcess: DeploymentStatusTimelineType;
|
1101
1089
|
} | null;
|
1102
|
-
deploymentAppType: DeploymentAppTypes;
|
1103
1090
|
}
|
1104
1091
|
export interface IntelligenceConfig {
|
1105
1092
|
clusterId: number;
|