@devtron-labs/devtron-fe-common-lib 1.11.1 → 1.12.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-DvXC6tWe.js → @code-editor-BX93G51P.js} +24277 -24208
- package/dist/{@common-rjsf-BzdfA2cI.js → @common-rjsf-CzK1frl5.js} +29 -29
- package/dist/{@framer-motion-CRC_R7iM.js → @framer-motion-BaOj5B1h.js} +3 -3
- package/dist/{@react-dates-C-O0TUaC.js → @react-dates-CdRpENvm.js} +990 -989
- package/dist/{@react-select-CaCDGT85.js → @react-select-BLSAqXV1.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BINLYj4Y.js → @react-virtualized-sticky-tree-BLmFnJWD.js} +1 -1
- package/dist/{@vendor-DBDnc0ZN.js → @vendor-SjXFleuT.js} +29396 -29399
- package/dist/Common/API/CoreAPI.d.ts +1 -1
- package/dist/Common/API/index.d.ts +1 -1
- package/dist/Common/CodeMirror/Extensions/index.d.ts +3 -3
- package/dist/Common/CodeMirror/Extensions/yamlParseLinter.d.ts +1 -1
- package/dist/Common/CodeMirror/index.d.ts +1 -1
- package/dist/Common/CodeMirror/types.d.ts +3 -3
- package/dist/Common/CodeMirror/utils.d.ts +1 -1
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Common/CustomTagSelector/index.d.ts +2 -2
- package/dist/Common/DeleteCINodeButton/index.d.ts +1 -1
- package/dist/Common/DraggableWrapper/index.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/Hooks/index.d.ts +3 -3
- package/dist/Common/Hooks/useStateFilters/index.d.ts +1 -1
- package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +2 -2
- package/dist/Common/RJSF/templates/index.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +1 -1
- package/dist/Common/SortableTableHeaderCell/index.d.ts +1 -1
- package/dist/Common/Tooltip/index.d.ts +1 -1
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Common/index.d.ts +41 -41
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/ConfigMapSecret/utils.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/GUIView/index.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +3 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +3 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/index.d.ts +2 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +3 -2
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/index.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/index.d.ts +2 -2
- package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/services.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +3 -3
- package/dist/Pages/GlobalConfigurations/Authorization/service.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +6 -6
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/index.d.ts +2 -2
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/index.d.ts +5 -5
- package/dist/Pages/ResourceBrowser/types.d.ts +1 -1
- package/dist/Pages/index.d.ts +1 -1
- package/dist/Shared/Components/AnimatedTimer/AnimatedTimer.component.d.ts +3 -0
- package/dist/Shared/Components/AnimatedTimer/constants.d.ts +5 -0
- package/dist/Shared/Components/AnimatedTimer/index.d.ts +1 -0
- package/dist/Shared/Components/AnimatedTimer/types.d.ts +15 -0
- package/dist/Shared/Components/BulkOperations/index.d.ts +1 -1
- package/dist/Shared/Components/BulkOperations/types.d.ts +2 -2
- package/dist/Shared/Components/BulkSelection/index.d.ts +1 -1
- package/dist/Shared/Components/Button/index.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +11 -11
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -1
- package/dist/Shared/Components/CMCS/index.d.ts +2 -2
- package/dist/Shared/Components/CMCS/types.d.ts +1 -1
- package/dist/Shared/Components/CMCS/validations.d.ts +1 -1
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/index.d.ts +4 -4
- package/dist/Shared/Components/ConfirmationModal/utils.d.ts +1 -1
- package/dist/Shared/Components/CountrySelect/types.d.ts +1 -1
- package/dist/Shared/Components/CountrySelect/utils.d.ts +1 -1
- package/dist/Shared/Components/CustomInput/types.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/index.d.ts +4 -4
- package/dist/Shared/Components/DatePicker/types.d.ts +2 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/FlagImage/types.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +1 -1
- package/dist/Shared/Components/FormFieldWrapper/index.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +1 -1
- package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +1 -1
- package/dist/Shared/Components/GraphVisualizer/index.d.ts +1 -1
- package/dist/Shared/Components/Header/index.d.ts +1 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +5 -0
- package/dist/Shared/Components/Icon/types.d.ts +3 -2
- package/dist/Shared/Components/ImageCard/index.d.ts +1 -1
- package/dist/Shared/Components/ImageChipCell/types.d.ts +1 -1
- package/dist/Shared/Components/InfoBlock/types.d.ts +1 -1
- package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +1 -1
- package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
- package/dist/Shared/Components/License/index.d.ts +3 -3
- package/dist/Shared/Components/License/types.d.ts +2 -1
- package/dist/Shared/Components/License/utils.d.ts +2 -1
- package/dist/Shared/Components/Plugin/index.d.ts +4 -4
- package/dist/Shared/Components/ReactSelect/index.d.ts +1 -1
- package/dist/Shared/Components/RegistryIcon/index.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +5 -5
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +2 -2
- package/dist/Shared/Components/Security/Vulnerabilities/index.d.ts +1 -1
- package/dist/Shared/Components/Security/index.d.ts +2 -2
- package/dist/Shared/Components/Security/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/index.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +5 -5
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -1
- package/dist/Shared/Components/StatusComponent/index.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -1
- package/dist/Shared/Components/Table/index.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +2 -2
- package/dist/Shared/Components/TagsKeyValueTable/index.d.ts +2 -2
- package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +65 -64
- package/dist/Shared/Helpers.d.ts +4 -4
- package/dist/Shared/Hooks/UseDownload/index.d.ts +1 -1
- package/dist/Shared/Hooks/index.d.ts +3 -3
- package/dist/Shared/Hooks/useForm/useForm.d.ts +1 -1
- package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +1 -1
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/index.d.ts +2 -2
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +3 -2
- package/dist/Shared/Hooks/useUserPreferences/utils.d.ts +1 -1
- package/dist/Shared/Providers/ThemeProvider/index.d.ts +1 -1
- package/dist/Shared/Providers/ThemeProvider/utils.d.ts +1 -1
- package/dist/Shared/Providers/UserEmailProvider/index.d.ts +1 -1
- package/dist/Shared/Providers/index.d.ts +2 -2
- package/dist/Shared/Providers/types.d.ts +2 -1
- package/dist/Shared/Services/ToastManager/constants.d.ts +1 -1
- package/dist/Shared/Services/ToastManager/index.d.ts +1 -1
- package/dist/Shared/Services/ToastManager/types.d.ts +1 -1
- package/dist/Shared/Services/app.service.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +2 -2
- package/dist/Shared/Services/index.d.ts +3 -3
- package/dist/Shared/Services/types.d.ts +1 -1
- package/dist/Shared/Store/IndexStore.d.ts +2 -2
- package/dist/Shared/index.d.ts +6 -6
- package/dist/Shared/types.d.ts +17 -3
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-arrow-clockwise.b327e411.svg +3 -0
- package/dist/assets/ic-bg-cluster.9a4258b9.svg +6 -0
- package/dist/assets/ic-file-key.a67da7ec.svg +3 -0
- package/dist/assets/ic-sliders-vertical.2db79ea4.svg +7 -0
- package/dist/assets/ic-terminal-fill.39b542cd.svg +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +842 -840
- package/package.json +5 -4
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Dispatch, FunctionComponent, PropsWithChildren, SetStateAction } from 'react';
|
2
|
-
import {
|
2
|
+
import { GenericFilterEmptyStateProps } from '@Common/EmptyState/types';
|
3
3
|
import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps } from '../../../Common/Hooks';
|
4
4
|
import { GenericEmptyStateType } from '../../../Common/index';
|
5
|
-
import {
|
5
|
+
import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
|
6
6
|
import { useBulkSelection, UseBulkSelectionProps } from '../BulkSelection';
|
7
7
|
export interface UseFiltersReturnType extends UseStateFiltersReturnType<string> {
|
8
8
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
+
export { DEVTRON_AI_URL } from './constants';
|
1
2
|
export { default as TagsContainer } from './TagsContainer';
|
2
|
-
export { getEmptyTagTableRow } from './utils';
|
3
3
|
export type { TagsTableColumnsType } from './types';
|
4
|
-
export {
|
4
|
+
export { getEmptyTagTableRow } from './utils';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { AppConfigProps } from '../../../Pages/index';
|
2
1
|
import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
|
2
|
+
import { AppConfigProps } from '../../../Pages/index';
|
3
3
|
interface LinkedCDSourceVariant {
|
4
4
|
title: string;
|
5
5
|
subtitle: string;
|
@@ -1,82 +1,83 @@
|
|
1
|
-
export * from './
|
2
|
-
export * from './ReactSelect';
|
3
|
-
export * from './BulkSelection';
|
4
|
-
export * from './ImageCard';
|
5
|
-
export * from './ImageCardAccordion';
|
6
|
-
export * from './ExcludedImageNode';
|
7
|
-
export * from './ScannedByToolModal';
|
8
|
-
export * from './FilterChips';
|
1
|
+
export * from './ActionMenu';
|
9
2
|
export * from './ActivityIndicator';
|
10
|
-
export * from './
|
11
|
-
export * from './
|
12
|
-
export * from './EditableTextArea';
|
13
|
-
export * from './Header';
|
3
|
+
export * from './AnimatedDeployButton';
|
4
|
+
export * from './AnimatedTimer';
|
14
5
|
export * from './AnnouncementBanner';
|
6
|
+
export * from './APIResponseHandler';
|
7
|
+
export * from './ArtifactInfoModal';
|
8
|
+
export * from './Backdrop';
|
9
|
+
export * from './BulkOperations';
|
10
|
+
export * from './BulkSelection';
|
11
|
+
export * from './Button';
|
15
12
|
export * from './ButtonWithLoader';
|
16
13
|
export * from './ButtonWithSelector';
|
17
|
-
export * from './EnvironmentSelector';
|
18
|
-
export * from './ModalSidebarPanel';
|
19
|
-
export * from './ImageWithFallback';
|
20
|
-
export * from './FeatureDescription';
|
21
14
|
export * from './CICDHistory';
|
22
|
-
export * from './
|
23
|
-
export * from './
|
24
|
-
export * from './
|
25
|
-
export * from './CommitChipCell';
|
26
|
-
export * from './ImageChipCell';
|
27
|
-
export * from './ArtifactInfoModal';
|
28
|
-
export * from './MaterialHistory';
|
29
|
-
export * from './IframeContainer';
|
30
|
-
export * from './Plugin';
|
31
|
-
export * from './KeyValueTable';
|
32
|
-
export * from './SelectPicker';
|
33
|
-
export * from './ShowMoreText';
|
15
|
+
export * from './CMCS';
|
16
|
+
export * from './CodeEditorWrapper';
|
17
|
+
export * from './Collapse';
|
34
18
|
export * from './CollapsibleList';
|
19
|
+
export * from './CommitChipCell';
|
20
|
+
export * from './Confetti';
|
21
|
+
export * from './ConfirmationModal';
|
22
|
+
export * from './CountrySelect';
|
23
|
+
export * from './CustomInput';
|
24
|
+
export * from './DatePicker';
|
35
25
|
export * from './DeploymentConfigDiff';
|
36
26
|
export * from './DetectBottom';
|
37
|
-
export * from './TabGroup';
|
38
|
-
export * from './EditImageFormField';
|
39
|
-
export * from './Collapse';
|
40
|
-
export * from './Security';
|
41
|
-
export * from './Button';
|
42
|
-
export * from './InvalidYAMLTippy';
|
43
|
-
export * from './NumbersCount';
|
44
|
-
export * from './EnterpriseTag';
|
45
|
-
export * from './ConfirmationModal';
|
46
27
|
export * from './DiffViewer';
|
47
28
|
export * from './DynamicDataTable';
|
48
|
-
export * from './
|
29
|
+
export * from './EditableTextArea';
|
30
|
+
export * from './EditImageFormField';
|
31
|
+
export * from './EnterpriseTag';
|
32
|
+
export * from './EnvironmentSelector';
|
33
|
+
export * from './Error';
|
34
|
+
export * from './ExcludedImageNode';
|
35
|
+
export * from './FeatureDescription';
|
49
36
|
export * from './FileUpload';
|
50
|
-
export * from './
|
51
|
-
export * from './
|
37
|
+
export * from './FilterChips';
|
38
|
+
export * from './FlagImage';
|
52
39
|
export * from './FloatingVariablesSuggestions';
|
53
|
-
export * from './
|
54
|
-
export * from './BulkOperations';
|
55
|
-
export * from './WorkflowOptionsModal';
|
56
|
-
export * from './VirtualizedList';
|
57
|
-
export * from './Textarea';
|
58
|
-
export * from './ThemeSwitcher';
|
59
|
-
export * from './TargetPlatforms';
|
60
|
-
export * from './UnsavedChanges';
|
61
|
-
export * from './UnsavedChangesDialog';
|
62
|
-
export * from './GraphVisualizer';
|
40
|
+
export * from './FramerComponents';
|
63
41
|
export * from './GenericInfoCard';
|
64
|
-
export * from './
|
65
|
-
export * from './
|
66
|
-
export * from './RegistryIcon';
|
42
|
+
export * from './GenericSectionErrorState';
|
43
|
+
export * from './GitCommitInfoGeneric';
|
67
44
|
export * from './GitProviderIcon';
|
68
|
-
export * from './
|
45
|
+
export * from './GraphVisualizer';
|
46
|
+
export * from './Header';
|
47
|
+
export * from './Icon';
|
48
|
+
export * from './IframeContainer';
|
49
|
+
export * from './ImageCard';
|
50
|
+
export * from './ImageCardAccordion';
|
51
|
+
export * from './ImageChipCell';
|
52
|
+
export * from './ImageWithFallback';
|
69
53
|
export * from './InfoBlock';
|
70
|
-
export * from './
|
71
|
-
export * from './
|
72
|
-
export * from './
|
73
|
-
export * from './Backdrop';
|
74
|
-
export * from './CountrySelect';
|
75
|
-
export * from './PhoneInput';
|
76
|
-
export * from './FlagImage';
|
54
|
+
export * from './InfoIconTippy';
|
55
|
+
export * from './InvalidYAMLTippy';
|
56
|
+
export * from './KeyValueTable';
|
77
57
|
export * from './License';
|
78
58
|
export * from './LoginBanner';
|
79
|
-
export * from './
|
80
|
-
export * from './
|
81
|
-
export * from './
|
59
|
+
export * from './MaterialHistory';
|
60
|
+
export * from './ModalSidebarPanel';
|
61
|
+
export * from './NumbersCount';
|
62
|
+
export * from './PhoneInput';
|
63
|
+
export * from './Plugin';
|
82
64
|
export { default as QRCode } from './QRCode';
|
65
|
+
export * from './ReactSelect';
|
66
|
+
export * from './RegistryIcon';
|
67
|
+
export * from './ScannedByToolModal';
|
68
|
+
export * from './Security';
|
69
|
+
export * from './SelectPicker';
|
70
|
+
export * from './ShowMoreText';
|
71
|
+
export * from './SSOProviderIcon';
|
72
|
+
export * from './StatusComponent';
|
73
|
+
export * from './TabGroup';
|
74
|
+
export * from './Table';
|
75
|
+
export * from './TagsKeyValueTable';
|
76
|
+
export * from './TargetPlatforms';
|
77
|
+
export * from './Textarea';
|
78
|
+
export * from './ThemeSwitcher';
|
79
|
+
export * from './ToggleResolveScopedVariables';
|
80
|
+
export * from './UnsavedChanges';
|
81
|
+
export * from './UnsavedChangesDialog';
|
82
|
+
export * from './VirtualizedList';
|
83
|
+
export * from './WorkflowOptionsModal';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { PromptProps } from 'react-router-dom';
|
3
|
-
import { Pair } from 'yaml';
|
4
3
|
import { StrictRJSFSchema } from '@rjsf/utils';
|
4
|
+
import { Pair } from 'yaml';
|
5
5
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
6
|
-
import { MaterialInfo, SortingOrder, UserApprovalConfigType,
|
7
|
-
import { BorderConfigType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
6
|
+
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
8
7
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
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
|
@@ -40,7 +40,7 @@ export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatu
|
|
40
40
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
41
41
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
42
42
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
43
|
-
export declare const getTimeDifference: (startTime
|
43
|
+
export declare const getTimeDifference: ({ startTime, endTime, fallbackString, }: GetTimeDifferenceParamsType) => string;
|
44
44
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
45
45
|
export declare const sanitizeUserApprovalList: (approverList: UserApprovalInfo["approverList"]) => UserApprovalInfo["approverList"];
|
46
46
|
export declare const sanitizeApprovalConfigData: (approvalConfigData: ApprovalConfigDataType | null) => ApprovalConfigDataType;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
export * from './UsePrompt';
|
2
|
-
export * from './useGetResourceKindsOptions';
|
3
1
|
export * from './UseDownload';
|
4
2
|
export * from './useForm';
|
5
|
-
export * from './
|
3
|
+
export * from './useGetResourceKindsOptions';
|
6
4
|
export * from './useOneTimePrompt';
|
5
|
+
export * from './UsePrompt';
|
6
|
+
export * from './useStickyEvent';
|
7
7
|
export * from './useUserPreferences';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { BaseSyntheticEvent, ChangeEvent } from 'react';
|
2
|
-
import { UseFormSubmitHandler, UseFormValidations
|
2
|
+
import { UseFormErrorHandler, UseFormSubmitHandler, UseFormValidations } from './useForm.types';
|
3
3
|
/**
|
4
4
|
* A custom hook to manage form state, validation, and submission handling.
|
5
5
|
*
|
@@ -1,2 +1,2 @@
|
|
1
|
+
export type { UseGetResourceKindOptionsReturnType, UseGetResourceKindsOptionsProps } from './types';
|
1
2
|
export { default as useGetResourceKindsOptions } from './useGetResourceKindsOptions';
|
2
|
-
export type { UseGetResourceKindsOptionsProps, UseGetResourceKindOptionsReturnType } from './types';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { EnvironmentType, ResourceKindType } from '../../types';
|
2
1
|
import { ServerErrors } from '../../../Common/ServerError';
|
2
|
+
import { EnvironmentType, ResourceKindType } from '../../types';
|
3
3
|
import { getAppOptionsGroupedByProjects, getClusterOptions, getProjectOptions } from './service';
|
4
4
|
export interface AppType {
|
5
5
|
name: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { useUserPreferences } from './useUserPrefrences';
|
2
1
|
export * from './constants';
|
2
|
+
export { getUserPreferences, updateUserPreferences } from './service';
|
3
3
|
export * from './types';
|
4
|
-
export {
|
4
|
+
export { useUserPreferences } from './useUserPrefrences';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { UserPreferenceResourceProps, UserPreferencesType } from './types';
|
2
2
|
/**
|
3
3
|
* @returns UserPreferencesType
|
4
4
|
* @description This function fetches the user preferences from the server. It uses the `get` method to make a request to the server and retrieves the user preferences based on the `USER_PREFERENCES_ATTRIBUTE_KEY`. The result is parsed and returned as a `UserPreferencesType` object.
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { AppThemeType, BaseAppMetaData, ResourceKindType } from '../../index';
|
2
|
-
import { ThemeConfigType, ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
|
3
1
|
import { USER_PREFERENCES_ATTRIBUTE_KEY } from '@Shared/Hooks/useUserPreferences/constants';
|
2
|
+
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
|
3
|
+
import { BaseAppMetaData } from '../../Services';
|
4
|
+
import { ResourceKindType } from '../../types';
|
4
5
|
export interface GetUserPreferencesQueryParamsType {
|
5
6
|
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|
6
7
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BaseAppMetaData } from '../../
|
1
|
+
import { BaseAppMetaData } from '../../Services';
|
2
2
|
import { UserPreferenceFilteredListTypes, UserPreferenceResourceType } from './types';
|
3
3
|
export declare const getUserPreferenceResourcesMetadata: (recentlyVisited: BaseAppMetaData[]) => UserPreferenceResourceType;
|
4
4
|
export declare const getFilteredUniqueAppList: ({ userPreferencesResponse, appId, appName, }: UserPreferenceFilteredListTypes) => BaseAppMetaData[];
|
@@ -1,4 +1,4 @@
|
|
1
|
+
export { THEME_PREFERENCE_STORAGE_KEY } from './constants';
|
1
2
|
export * from './ThemeProvider';
|
2
3
|
export { AppThemeType } from './types';
|
3
4
|
export { getComponentSpecificThemeClass, getThemePreferenceText } from './utils';
|
4
|
-
export { THEME_PREFERENCE_STORAGE_KEY } from './constants';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AppThemeType,
|
1
|
+
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from './types';
|
2
2
|
export declare const getAppThemeForAutoPreference: () => AppThemeType;
|
3
3
|
export declare const setThemePreferenceInLocalStorage: (themePreference: ThemePreferenceType) => void;
|
4
4
|
export declare const logThemeToAnalytics: ({ appTheme, themePreference }: ThemeConfigType) => void;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from './MainContextProvider';
|
2
1
|
export * from './ImageSelectionUtility';
|
2
|
+
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
|
-
export * from './UserEmailProvider';
|
5
4
|
export type { MainContext } from './types';
|
5
|
+
export * from './UserEmailProvider';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
2
|
-
import { ServerInfo } from '../Components/Header/types';
|
3
2
|
import { SERVER_MODE } from '../../Common';
|
3
|
+
import { ServerInfo } from '../Components/Header/types';
|
4
4
|
import { DevtronLicenseInfo, LicenseInfoDialogType } from '..';
|
5
5
|
export interface MainContext {
|
6
6
|
serverMode: SERVER_MODE;
|
@@ -45,6 +45,7 @@ export interface MainContext {
|
|
45
45
|
*/
|
46
46
|
licenseData: DevtronLicenseInfo;
|
47
47
|
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
48
|
+
canFetchHelmAppStatus: boolean;
|
48
49
|
}
|
49
50
|
export interface MainContextProviderProps {
|
50
51
|
children: ReactNode;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ToastContainerProps, ToastOptions } from 'react-toastify';
|
2
2
|
import { ToastProps, ToastVariantType } from './types';
|
3
3
|
export declare const TOAST_BASE_CONFIG: ToastContainerProps;
|
4
4
|
export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<ToastVariantType, Required<Pick<ToastProps, 'icon' | 'title' | 'progressBarBg'>> & Pick<ToastOptions, 'type'>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AppConfigProps } from '../../Pages/index';
|
2
2
|
import { ResponseType } from '../../Common';
|
3
|
-
import {
|
3
|
+
import { AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType, CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
|
4
4
|
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
5
5
|
/**
|
6
6
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
2
1
|
import { TargetPlatformsDTO } from '../types';
|
3
|
-
import {
|
2
|
+
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
3
|
+
import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
|
4
4
|
interface WebhookDataType {
|
5
5
|
id: number;
|
6
6
|
eventActionType: string;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
export * from './types';
|
2
|
-
export * from './app.types';
|
3
1
|
export * from './app.service';
|
2
|
+
export * from './app.types';
|
4
3
|
export * from './common.service';
|
4
|
+
export * from './template.service';
|
5
5
|
export * from './ToastManager';
|
6
|
+
export * from './types';
|
6
7
|
export * from './utils';
|
7
|
-
export * from './template.service';
|
@@ -33,7 +33,7 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
|
|
33
33
|
}
|
34
34
|
export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
|
35
35
|
}
|
36
|
-
export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitOpsFlags'> {
|
36
|
+
export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitOpsFlags' | 'canFetchHelmAppStatus'> {
|
37
37
|
isAirGapEnvironment: boolean;
|
38
38
|
isManifestScanningEnabled: boolean;
|
39
39
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { AppDetails, AppType, EnvDetails, Node, PodMetaData
|
1
|
+
import { AppDetails, AppType, EnvDetails, iNode, Node, PodMetaData } from '../types';
|
2
2
|
export declare function getiNodesByRootNodeWithChildNodes(_nodes: Array<Node>, rootNodes: Array<iNode>, podMetadata?: Array<PodMetaData>): Array<iNode>;
|
3
|
-
export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "
|
3
|
+
export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "healthy" | "progressing" | "degraded";
|
4
4
|
export declare function getiNodesByKindWithChildNodes(_nodes: Array<Node>, _kind: string): Array<iNode>;
|
5
5
|
export declare function getPodsRootParentNameAndStatus(_nodes: Array<Node>): Array<[string, string]>;
|
6
6
|
export declare const getPodsForRootNodeName: (_rootNode: string, _treeNodes: Array<Node>) => Array<iNode>;
|
package/dist/Shared/index.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
+
export * from './Analytics';
|
2
|
+
export * from './API';
|
1
3
|
export * from './Components';
|
2
|
-
export * from './
|
4
|
+
export * from './constants';
|
3
5
|
export * from './Helpers';
|
4
|
-
export * from './
|
6
|
+
export * from './Hooks';
|
5
7
|
export * from './Providers';
|
6
|
-
export * from './constants';
|
7
8
|
export * from './Services';
|
8
9
|
export * from './Store';
|
9
|
-
export * from './
|
10
|
-
export * from './
|
11
|
-
export * from './Analytics';
|
10
|
+
export * from './types';
|
11
|
+
export * from './validations';
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
+
import { ParsedCountry } from 'react-international-phone';
|
1
2
|
import { Dayjs } from 'dayjs';
|
2
3
|
import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
|
3
|
-
import {
|
4
|
-
import { OptionType, CommonNodeAttr, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType, SegmentedControlProps } from '../Common';
|
5
|
-
import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
4
|
+
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
6
5
|
import { SelectPickerOptionType } from './Components';
|
6
|
+
import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
7
7
|
export declare enum EnvType {
|
8
8
|
CHART = "helm_charts",
|
9
9
|
APPLICATION = "apps"
|
@@ -939,4 +939,18 @@ export type CountryISO2Type = ParsedCountry['iso2'];
|
|
939
939
|
export declare enum ResponseHeaders {
|
940
940
|
LICENSE_STATUS = "X-License-Status"
|
941
941
|
}
|
942
|
+
export type IconBaseSizeType = 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 28 | 30 | 32 | 34 | 36 | 40 | 42 | 44 | 48 | 72 | 80;
|
943
|
+
export type IconBaseColorType = `${'B' | 'N' | 'G' | 'Y' | 'R' | 'V' | 'O'}${`${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}00` | '50' | '0'}` | 'white' | 'black' | null;
|
944
|
+
export interface GetTimeDifferenceParamsType {
|
945
|
+
startTime: string;
|
946
|
+
endTime: string;
|
947
|
+
/**
|
948
|
+
* @default '-'
|
949
|
+
*/
|
950
|
+
fallbackString?: string;
|
951
|
+
}
|
952
|
+
export declare enum RegistryCredentialsType {
|
953
|
+
USERNAME_PASSWORD = "username_password",
|
954
|
+
ANONYMOUS = "anonymous"
|
955
|
+
}
|
942
956
|
export {};
|