@devtron-labs/devtron-fe-common-lib 1.13.0-beta-8 → 1.13.0-beta-10
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-DfxVL5Vn.js → @common-rjsf-4cPys5Zh.js} +16460 -17067
- package/dist/{@framer-motion-DyOLEeMN.js → @framer-motion-CR14HVwJ.js} +1 -1
- package/dist/{@react-dates-B7d8RWU9.js → @react-dates-z_WnuIha.js} +14 -14
- package/dist/{@react-select-Coo19Q6a.js → @react-select-C1KOG39W.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BPjPJDIR.js → @react-virtualized-sticky-tree-DE3LznCK.js} +1 -1
- package/dist/{@vendor-D9q4wrnL.js → @vendor-0Z6AwxJy.js} +13157 -13167
- package/dist/Common/Checkbox.d.ts +5 -0
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/Constants.d.ts +3 -2
- package/dist/Common/Helper.d.ts +1 -5
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/Toggle/Toggle.d.ts +1 -4
- package/dist/Common/Types.d.ts +3 -4
- package/dist/Common/index.d.ts +3 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +0 -38
- package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +2 -1
- package/dist/Shared/Components/ActionMenu/ActionMenuOption.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/index.d.ts +2 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +11 -88
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +6 -0
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +1 -0
- package/dist/Shared/Components/Button/types.d.ts +1 -3
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +2 -0
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/service.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/types.d.ts +77 -12
- package/dist/Shared/Components/CICDHistory/utils.d.ts +3 -7
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
- package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
- package/dist/Shared/Components/Error/types.d.ts +0 -4
- package/dist/Shared/Components/Error/utils.d.ts +0 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +3 -1
- package/dist/Shared/Components/Header/HelpNav.d.ts +3 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/constants.d.ts +4 -5
- package/dist/Shared/Components/Header/types.d.ts +10 -15
- package/dist/Shared/Components/Header/utils.d.ts +1 -5
- package/dist/Shared/Components/Icon/Icon.d.ts +18 -35
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +10 -32
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
- package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/License/index.d.ts +1 -1
- package/dist/Shared/Components/License/utils.d.ts +1 -2
- package/dist/Shared/Components/LoadingCard.d.ts +5 -0
- package/dist/Shared/Components/LoginBanner/index.d.ts +0 -2
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +0 -2
- package/dist/Shared/Components/SelectPicker/index.d.ts +0 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -4
- package/dist/Shared/Components/StatusComponent/AppStatus.d.ts +1 -1
- package/dist/Shared/Components/StatusComponent/types.d.ts +1 -2
- package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +7 -33
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +2 -1
- package/dist/Shared/Components/index.d.ts +3 -3
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +1 -11
- package/dist/Shared/constants.d.ts +24 -18
- package/dist/Shared/types.d.ts +5 -110
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-arrows-clockwise.5858ba0a.svg +3 -0
- package/dist/assets/ic-charts.f41e185f.svg +19 -0
- package/dist/assets/ic-chat-circle-dots.e15514f8.svg +23 -0
- package/dist/assets/{ic-checkbox-unselected.8054e3d7.svg → ic-check-grey.f556e371.svg} +4 -2
- package/dist/assets/ic-disconnected.551d6161.svg +29 -0
- package/dist/assets/ic-discord-fill.1a1b291d.svg +19 -0
- package/dist/assets/ic-fast-forward.8d1a414b.svg +4 -0
- package/dist/assets/ic-feedback.d32fa6b0.svg +19 -0
- package/dist/assets/ic-files.fc290dee.svg +19 -0
- package/dist/assets/ic-filter-applied.56f397cb.svg +4 -0
- package/dist/assets/{ic-caret-down-small.7c4f88bf.svg → ic-filter.d6f03b78.svg} +1 -1
- package/dist/assets/ic-flask.d0624c30.svg +3 -0
- package/dist/assets/ic-hibernate-circle.7c32c56e.svg +3 -0
- package/dist/assets/{ic-checkbox-unselected.ab91cdba.svg → ic-hibernate.263ffcea.svg} +1 -1
- package/dist/assets/{ic-checkbox-selected.c5539d6f.svg → ic-k8s-job.f4414c10.svg} +3 -4
- package/dist/assets/ic-lego.1d2c5e1d.svg +3 -0
- package/dist/assets/ic-login-devtron-logo.702a1d04.svg +22 -0
- package/dist/assets/{ic-caret-right.0ff813c2.svg → ic-magnifying-glass.cf47bce0.svg} +1 -1
- package/dist/assets/{ic-checkbox-hover.93e8d66a.svg → ic-medal.a2e911f5.svg} +3 -4
- package/dist/assets/ic-megaphone.b9f9a901.svg +19 -0
- package/dist/assets/ic-more-vertical.6b4cc903.svg +3 -0
- package/dist/assets/ic-onboarding.c98f9ef9.svg +19 -0
- package/dist/assets/ic-play-outline.a4f09bf9.svg +3 -0
- package/dist/assets/ic-rocket-gear.f1e30f8a.svg +3 -0
- package/dist/assets/ic-strategy-blue-green.0b348d03.svg +6 -0
- package/dist/assets/ic-strategy-canary.db010ee7.svg +5 -0
- package/dist/assets/ic-strategy-recreate.f0acddaa.svg +4 -0
- package/dist/assets/ic-strategy-rolling.1c356cdb.svg +6 -0
- package/dist/assets/ic-sun.47c14f53.svg +3 -0
- package/dist/assets/{ic-hibernate.f75c1e70.svg → ic-timeout-red.5eda1010.svg} +3 -1
- package/dist/assets/ic-traffic-signal.f23a1086.svg +3 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.js +850 -883
- package/package.json +1 -1
- package/dist/@common-rjsf-6fcCPJuJ.js +0 -617
- package/dist/Common/Checkbox/Checkbox.d.ts +0 -2
- package/dist/Common/Checkbox/index.d.ts +0 -1
- package/dist/Common/Drawer/index.d.ts +0 -1
- package/dist/Common/EmptyState/index.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
- package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +0 -2
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +0 -275
- package/dist/Shared/Components/ActionMenu/utils.d.ts +0 -7
- package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +0 -2
- package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/constants.d.ts +0 -4
- package/dist/Shared/Components/AppStatusModal/index.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/service.d.ts +0 -4
- package/dist/Shared/Components/AppStatusModal/types.d.ts +0 -84
- package/dist/Shared/Components/AppStatusModal/utils.d.ts +0 -8
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +0 -10
- package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +0 -3
- package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +0 -22
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +0 -20
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +0 -10
- package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +0 -2
- package/dist/Shared/Components/Header/HelpButton.d.ts +0 -2
- package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +0 -3
- package/dist/Shared/Components/Popover/Popover.component.d.ts +0 -8
- package/dist/Shared/Components/Popover/index.d.ts +0 -3
- package/dist/Shared/Components/Popover/types.d.ts +0 -105
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +0 -2
- package/dist/Shared/Components/Popover/utils.d.ts +0 -92
- package/dist/Shared/Components/Switch/Switch.component.d.ts +0 -3
- package/dist/Shared/Components/Switch/constants.d.ts +0 -14
- package/dist/Shared/Components/Switch/index.d.ts +0 -3
- package/dist/Shared/Components/Switch/types.d.ts +0 -101
- package/dist/Shared/Components/Switch/utils.d.ts +0 -10
- package/dist/assets/@code-editor.css +0 -1
- package/dist/assets/ic-amazon-eks.13404569.svg +0 -5
- package/dist/assets/ic-arrow-square-out.59bb549a.svg +0 -3
- package/dist/assets/ic-azure-aks.a9e437d5.svg +0 -46
- package/dist/assets/ic-bulk-check.0f698efa.svg +0 -21
- package/dist/assets/ic-bulk-check.99e92f7a.svg +0 -21
- package/dist/assets/ic-celebration.77350694.svg +0 -238
- package/dist/assets/ic-chat-circle-online.51348da5.svg +0 -4
- package/dist/assets/ic-checkbox-hover.0151d832.svg +0 -20
- package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +0 -22
- package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +0 -22
- package/dist/assets/ic-checkbox-selected.47444fab.svg +0 -20
- package/dist/assets/ic-cloud-vms.27ea954e.svg +0 -5
- package/dist/assets/ic-cluster.71ba9e26.svg +0 -3
- package/dist/assets/ic-delete-dots.5380e0d0.svg +0 -62
- package/dist/assets/ic-disconnect.2ad261fc.svg +0 -3
- package/dist/assets/ic-discord-fill.103b579a.svg +0 -3
- package/dist/assets/ic-edit.3249ed32.svg +0 -3
- package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +0 -3
- package/dist/assets/ic-enterprise-tag.209dd129.svg +0 -43
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +0 -3
- package/dist/assets/ic-expand-sm.a9a724f8.svg +0 -3
- package/dist/assets/ic-file-edit.96a172c7.svg +0 -3
- package/dist/assets/ic-file.c3c45e13.svg +0 -3
- package/dist/assets/ic-files.b0ebea46.svg +0 -3
- package/dist/assets/ic-gift-gradient.7690a246.svg +0 -9
- package/dist/assets/ic-gift.9b048fc7.svg +0 -3
- package/dist/assets/ic-gitlab.ac331d67.svg +0 -31
- package/dist/assets/ic-google-gke.07314724.svg +0 -9
- package/dist/assets/ic-install.28c3beec.svg +0 -3
- package/dist/assets/ic-k3s.7f4bf72d.svg +0 -3
- package/dist/assets/ic-kind.bd8ee992.svg +0 -9
- package/dist/assets/ic-laptop.485e21b4.svg +0 -3
- package/dist/assets/ic-man-on-rocket.7f67e914.svg +0 -94
- package/dist/assets/ic-megaphone-left.6b2a00b7.svg +0 -3
- package/dist/assets/ic-megaphone-right.9d6bcd36.svg +0 -3
- package/dist/assets/ic-minikube.d9ff1575.svg +0 -9
- package/dist/assets/ic-mobile.7c649251.svg +0 -4
- package/dist/assets/ic-path.d4fef3b0.svg +0 -3
- package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
- package/dist/assets/ic-ubuntu.fa47508f.svg +0 -4
- package/dist/assets/ic-user-circle.7d7152fa.svg +0 -3
- package/dist/assets/ic-wifi-slash.d0390749.svg +0 -3
@@ -1,275 +0,0 @@
|
|
1
|
-
import { ChangeEvent, RefObject } from 'react';
|
2
|
-
import { UseActionMenuProps } from './types';
|
3
|
-
export declare const useActionMenu: <T extends string | number>({ id, position, alignment, width, options, isSearchable, onOpen, }: UseActionMenuProps<T>) => {
|
4
|
-
open: boolean;
|
5
|
-
flatOptions: {
|
6
|
-
option: import('./types').ActionMenuItemType<T>;
|
7
|
-
itemIndex: number;
|
8
|
-
sectionIndex: number;
|
9
|
-
}[];
|
10
|
-
filteredOptions: import('./types').ActionMenuOptionType<T>[];
|
11
|
-
focusedIndex: number;
|
12
|
-
itemsRef: import('react').MutableRefObject<RefObject<HTMLAnchorElement | HTMLButtonElement>[]>;
|
13
|
-
triggerProps: import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
14
|
-
overlayProps: import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
15
|
-
popoverProps: {
|
16
|
-
slot?: string;
|
17
|
-
title?: string;
|
18
|
-
children?: import('react').ReactNode;
|
19
|
-
className?: string;
|
20
|
-
defaultValue?: string | number | readonly string[];
|
21
|
-
id?: string;
|
22
|
-
color?: string;
|
23
|
-
role?: import('react').AriaRole;
|
24
|
-
about?: string;
|
25
|
-
is?: string;
|
26
|
-
security?: string;
|
27
|
-
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
28
|
-
"aria-describedby"?: string;
|
29
|
-
"aria-errormessage"?: string;
|
30
|
-
"aria-label"?: string;
|
31
|
-
"aria-labelledby"?: string;
|
32
|
-
onClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
33
|
-
defaultChecked?: boolean;
|
34
|
-
suppressContentEditableWarning?: boolean;
|
35
|
-
suppressHydrationWarning?: boolean;
|
36
|
-
accessKey?: string;
|
37
|
-
contentEditable?: "inherit" | (boolean | "true" | "false");
|
38
|
-
contextMenu?: string;
|
39
|
-
dir?: string;
|
40
|
-
draggable?: boolean | "true" | "false";
|
41
|
-
hidden?: boolean;
|
42
|
-
lang?: string;
|
43
|
-
placeholder?: string;
|
44
|
-
spellCheck?: boolean | "true" | "false";
|
45
|
-
tabIndex?: number;
|
46
|
-
translate?: "no" | "yes";
|
47
|
-
radioGroup?: string;
|
48
|
-
datatype?: string;
|
49
|
-
inlist?: any;
|
50
|
-
prefix?: string;
|
51
|
-
property?: string;
|
52
|
-
resource?: string;
|
53
|
-
typeof?: string;
|
54
|
-
vocab?: string;
|
55
|
-
autoCapitalize?: string;
|
56
|
-
autoCorrect?: string;
|
57
|
-
autoSave?: string;
|
58
|
-
itemProp?: string;
|
59
|
-
itemScope?: boolean;
|
60
|
-
itemType?: string;
|
61
|
-
itemID?: string;
|
62
|
-
itemRef?: string;
|
63
|
-
results?: number;
|
64
|
-
unselectable?: "on" | "off";
|
65
|
-
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
|
66
|
-
"aria-activedescendant"?: string;
|
67
|
-
"aria-atomic"?: boolean | "true" | "false";
|
68
|
-
"aria-autocomplete"?: "list" | "none" | "inline" | "both";
|
69
|
-
"aria-busy"?: boolean | "true" | "false";
|
70
|
-
"aria-checked"?: boolean | "true" | "false" | "mixed";
|
71
|
-
"aria-colcount"?: number;
|
72
|
-
"aria-colindex"?: number;
|
73
|
-
"aria-colspan"?: number;
|
74
|
-
"aria-controls"?: string;
|
75
|
-
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
|
76
|
-
"aria-details"?: string;
|
77
|
-
"aria-disabled"?: boolean | "true" | "false";
|
78
|
-
"aria-dropeffect"?: "link" | "none" | "popup" | "copy" | "execute" | "move";
|
79
|
-
"aria-expanded"?: boolean | "true" | "false";
|
80
|
-
"aria-flowto"?: string;
|
81
|
-
"aria-grabbed"?: boolean | "true" | "false";
|
82
|
-
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree";
|
83
|
-
"aria-hidden"?: boolean | "true" | "false";
|
84
|
-
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
85
|
-
"aria-keyshortcuts"?: string;
|
86
|
-
"aria-level"?: number;
|
87
|
-
"aria-live"?: "off" | "assertive" | "polite";
|
88
|
-
"aria-modal"?: boolean | "true" | "false";
|
89
|
-
"aria-multiline"?: boolean | "true" | "false";
|
90
|
-
"aria-multiselectable"?: boolean | "true" | "false";
|
91
|
-
"aria-orientation"?: "horizontal" | "vertical";
|
92
|
-
"aria-owns"?: string;
|
93
|
-
"aria-placeholder"?: string;
|
94
|
-
"aria-posinset"?: number;
|
95
|
-
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
96
|
-
"aria-readonly"?: boolean | "true" | "false";
|
97
|
-
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
98
|
-
"aria-required"?: boolean | "true" | "false";
|
99
|
-
"aria-roledescription"?: string;
|
100
|
-
"aria-rowcount"?: number;
|
101
|
-
"aria-rowindex"?: number;
|
102
|
-
"aria-rowspan"?: number;
|
103
|
-
"aria-selected"?: boolean | "true" | "false";
|
104
|
-
"aria-setsize"?: number;
|
105
|
-
"aria-sort"?: "other" | "none" | "ascending" | "descending";
|
106
|
-
"aria-valuemax"?: number;
|
107
|
-
"aria-valuemin"?: number;
|
108
|
-
"aria-valuenow"?: number;
|
109
|
-
"aria-valuetext"?: string;
|
110
|
-
dangerouslySetInnerHTML?: {
|
111
|
-
__html: string;
|
112
|
-
};
|
113
|
-
onCopy?: import('react').ClipboardEventHandler<HTMLDivElement>;
|
114
|
-
onCopyCapture?: import('react').ClipboardEventHandler<HTMLDivElement>;
|
115
|
-
onCut?: import('react').ClipboardEventHandler<HTMLDivElement>;
|
116
|
-
onCutCapture?: import('react').ClipboardEventHandler<HTMLDivElement>;
|
117
|
-
onPaste?: import('react').ClipboardEventHandler<HTMLDivElement>;
|
118
|
-
onPasteCapture?: import('react').ClipboardEventHandler<HTMLDivElement>;
|
119
|
-
onCompositionEnd?: import('react').CompositionEventHandler<HTMLDivElement>;
|
120
|
-
onCompositionEndCapture?: import('react').CompositionEventHandler<HTMLDivElement>;
|
121
|
-
onCompositionStart?: import('react').CompositionEventHandler<HTMLDivElement>;
|
122
|
-
onCompositionStartCapture?: import('react').CompositionEventHandler<HTMLDivElement>;
|
123
|
-
onCompositionUpdate?: import('react').CompositionEventHandler<HTMLDivElement>;
|
124
|
-
onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLDivElement>;
|
125
|
-
onFocus?: import('react').FocusEventHandler<HTMLDivElement>;
|
126
|
-
onFocusCapture?: import('react').FocusEventHandler<HTMLDivElement>;
|
127
|
-
onBlur?: import('react').FocusEventHandler<HTMLDivElement>;
|
128
|
-
onBlurCapture?: import('react').FocusEventHandler<HTMLDivElement>;
|
129
|
-
onChange?: import('react').FormEventHandler<HTMLDivElement>;
|
130
|
-
onChangeCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
131
|
-
onBeforeInput?: import('react').FormEventHandler<HTMLDivElement>;
|
132
|
-
onBeforeInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
133
|
-
onInput?: import('react').FormEventHandler<HTMLDivElement>;
|
134
|
-
onInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
135
|
-
onReset?: import('react').FormEventHandler<HTMLDivElement>;
|
136
|
-
onResetCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
137
|
-
onSubmit?: import('react').FormEventHandler<HTMLDivElement>;
|
138
|
-
onSubmitCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
139
|
-
onInvalid?: import('react').FormEventHandler<HTMLDivElement>;
|
140
|
-
onInvalidCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
141
|
-
onLoad?: import('react').ReactEventHandler<HTMLDivElement>;
|
142
|
-
onLoadCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
143
|
-
onError?: import('react').ReactEventHandler<HTMLDivElement>;
|
144
|
-
onErrorCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
145
|
-
onKeyDown?: import('react').KeyboardEventHandler<HTMLDivElement>;
|
146
|
-
onKeyDownCapture?: import('react').KeyboardEventHandler<HTMLDivElement>;
|
147
|
-
onKeyPress?: import('react').KeyboardEventHandler<HTMLDivElement>;
|
148
|
-
onKeyPressCapture?: import('react').KeyboardEventHandler<HTMLDivElement>;
|
149
|
-
onKeyUp?: import('react').KeyboardEventHandler<HTMLDivElement>;
|
150
|
-
onKeyUpCapture?: import('react').KeyboardEventHandler<HTMLDivElement>;
|
151
|
-
onAbort?: import('react').ReactEventHandler<HTMLDivElement>;
|
152
|
-
onAbortCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
153
|
-
onCanPlay?: import('react').ReactEventHandler<HTMLDivElement>;
|
154
|
-
onCanPlayCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
155
|
-
onCanPlayThrough?: import('react').ReactEventHandler<HTMLDivElement>;
|
156
|
-
onCanPlayThroughCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
157
|
-
onDurationChange?: import('react').ReactEventHandler<HTMLDivElement>;
|
158
|
-
onDurationChangeCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
159
|
-
onEmptied?: import('react').ReactEventHandler<HTMLDivElement>;
|
160
|
-
onEmptiedCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
161
|
-
onEncrypted?: import('react').ReactEventHandler<HTMLDivElement>;
|
162
|
-
onEncryptedCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
163
|
-
onEnded?: import('react').ReactEventHandler<HTMLDivElement>;
|
164
|
-
onEndedCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
165
|
-
onLoadedData?: import('react').ReactEventHandler<HTMLDivElement>;
|
166
|
-
onLoadedDataCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
167
|
-
onLoadedMetadata?: import('react').ReactEventHandler<HTMLDivElement>;
|
168
|
-
onLoadedMetadataCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
169
|
-
onLoadStart?: import('react').ReactEventHandler<HTMLDivElement>;
|
170
|
-
onLoadStartCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
171
|
-
onPause?: import('react').ReactEventHandler<HTMLDivElement>;
|
172
|
-
onPauseCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
173
|
-
onPlay?: import('react').ReactEventHandler<HTMLDivElement>;
|
174
|
-
onPlayCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
175
|
-
onPlaying?: import('react').ReactEventHandler<HTMLDivElement>;
|
176
|
-
onPlayingCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
177
|
-
onProgress?: import('react').ReactEventHandler<HTMLDivElement>;
|
178
|
-
onProgressCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
179
|
-
onRateChange?: import('react').ReactEventHandler<HTMLDivElement>;
|
180
|
-
onRateChangeCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
181
|
-
onSeeked?: import('react').ReactEventHandler<HTMLDivElement>;
|
182
|
-
onSeekedCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
183
|
-
onSeeking?: import('react').ReactEventHandler<HTMLDivElement>;
|
184
|
-
onSeekingCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
185
|
-
onStalled?: import('react').ReactEventHandler<HTMLDivElement>;
|
186
|
-
onStalledCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
187
|
-
onSuspend?: import('react').ReactEventHandler<HTMLDivElement>;
|
188
|
-
onSuspendCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
189
|
-
onTimeUpdate?: import('react').ReactEventHandler<HTMLDivElement>;
|
190
|
-
onTimeUpdateCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
191
|
-
onVolumeChange?: import('react').ReactEventHandler<HTMLDivElement>;
|
192
|
-
onVolumeChangeCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
193
|
-
onWaiting?: import('react').ReactEventHandler<HTMLDivElement>;
|
194
|
-
onWaitingCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
195
|
-
onAuxClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
196
|
-
onAuxClickCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
197
|
-
onClickCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
198
|
-
onContextMenu?: import('react').MouseEventHandler<HTMLDivElement>;
|
199
|
-
onContextMenuCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
200
|
-
onDoubleClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
201
|
-
onDoubleClickCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
202
|
-
onDragCapture?: import('react').DragEventHandler<HTMLDivElement>;
|
203
|
-
onDragEndCapture?: import('react').DragEventHandler<HTMLDivElement>;
|
204
|
-
onDragEnter?: import('react').DragEventHandler<HTMLDivElement>;
|
205
|
-
onDragEnterCapture?: import('react').DragEventHandler<HTMLDivElement>;
|
206
|
-
onDragExit?: import('react').DragEventHandler<HTMLDivElement>;
|
207
|
-
onDragExitCapture?: import('react').DragEventHandler<HTMLDivElement>;
|
208
|
-
onDragLeave?: import('react').DragEventHandler<HTMLDivElement>;
|
209
|
-
onDragLeaveCapture?: import('react').DragEventHandler<HTMLDivElement>;
|
210
|
-
onDragOver?: import('react').DragEventHandler<HTMLDivElement>;
|
211
|
-
onDragOverCapture?: import('react').DragEventHandler<HTMLDivElement>;
|
212
|
-
onDragStartCapture?: import('react').DragEventHandler<HTMLDivElement>;
|
213
|
-
onDrop?: import('react').DragEventHandler<HTMLDivElement>;
|
214
|
-
onDropCapture?: import('react').DragEventHandler<HTMLDivElement>;
|
215
|
-
onMouseDown?: import('react').MouseEventHandler<HTMLDivElement>;
|
216
|
-
onMouseDownCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
217
|
-
onMouseLeave?: import('react').MouseEventHandler<HTMLDivElement>;
|
218
|
-
onMouseMove?: import('react').MouseEventHandler<HTMLDivElement>;
|
219
|
-
onMouseMoveCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
220
|
-
onMouseOut?: import('react').MouseEventHandler<HTMLDivElement>;
|
221
|
-
onMouseOutCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
222
|
-
onMouseOver?: import('react').MouseEventHandler<HTMLDivElement>;
|
223
|
-
onMouseOverCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
224
|
-
onMouseUp?: import('react').MouseEventHandler<HTMLDivElement>;
|
225
|
-
onMouseUpCapture?: import('react').MouseEventHandler<HTMLDivElement>;
|
226
|
-
onSelect?: import('react').ReactEventHandler<HTMLDivElement>;
|
227
|
-
onSelectCapture?: import('react').ReactEventHandler<HTMLDivElement>;
|
228
|
-
onTouchCancel?: import('react').TouchEventHandler<HTMLDivElement>;
|
229
|
-
onTouchCancelCapture?: import('react').TouchEventHandler<HTMLDivElement>;
|
230
|
-
onTouchEnd?: import('react').TouchEventHandler<HTMLDivElement>;
|
231
|
-
onTouchEndCapture?: import('react').TouchEventHandler<HTMLDivElement>;
|
232
|
-
onTouchMove?: import('react').TouchEventHandler<HTMLDivElement>;
|
233
|
-
onTouchMoveCapture?: import('react').TouchEventHandler<HTMLDivElement>;
|
234
|
-
onTouchStart?: import('react').TouchEventHandler<HTMLDivElement>;
|
235
|
-
onTouchStartCapture?: import('react').TouchEventHandler<HTMLDivElement>;
|
236
|
-
onPointerDown?: import('react').PointerEventHandler<HTMLDivElement>;
|
237
|
-
onPointerDownCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
238
|
-
onPointerMove?: import('react').PointerEventHandler<HTMLDivElement>;
|
239
|
-
onPointerMoveCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
240
|
-
onPointerUp?: import('react').PointerEventHandler<HTMLDivElement>;
|
241
|
-
onPointerUpCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
242
|
-
onPointerCancel?: import('react').PointerEventHandler<HTMLDivElement>;
|
243
|
-
onPointerCancelCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
244
|
-
onPointerEnter?: import('react').PointerEventHandler<HTMLDivElement>;
|
245
|
-
onPointerEnterCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
246
|
-
onPointerLeave?: import('react').PointerEventHandler<HTMLDivElement>;
|
247
|
-
onPointerLeaveCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
248
|
-
onPointerOver?: import('react').PointerEventHandler<HTMLDivElement>;
|
249
|
-
onPointerOverCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
250
|
-
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement>;
|
251
|
-
onPointerOutCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
252
|
-
onGotPointerCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
253
|
-
onGotPointerCaptureCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
254
|
-
onLostPointerCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
255
|
-
onLostPointerCaptureCapture?: import('react').PointerEventHandler<HTMLDivElement>;
|
256
|
-
onScroll?: import('react').UIEventHandler<HTMLDivElement>;
|
257
|
-
onScrollCapture?: import('react').UIEventHandler<HTMLDivElement>;
|
258
|
-
onWheel?: import('react').WheelEventHandler<HTMLDivElement>;
|
259
|
-
onWheelCapture?: import('react').WheelEventHandler<HTMLDivElement>;
|
260
|
-
onAnimationStartCapture?: import('react').AnimationEventHandler<HTMLDivElement>;
|
261
|
-
onAnimationEnd?: import('react').AnimationEventHandler<HTMLDivElement>;
|
262
|
-
onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLDivElement>;
|
263
|
-
onAnimationIteration?: import('react').AnimationEventHandler<HTMLDivElement>;
|
264
|
-
onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLDivElement>;
|
265
|
-
onTransitionEnd?: import('react').TransitionEventHandler<HTMLDivElement>;
|
266
|
-
onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLDivElement>;
|
267
|
-
} & import('framer-motion').MotionProps & {
|
268
|
-
ref: import('react').MutableRefObject<HTMLDivElement>;
|
269
|
-
};
|
270
|
-
setFocusedIndex: import('react').Dispatch<import('react').SetStateAction<number>>;
|
271
|
-
closePopover: () => void;
|
272
|
-
searchTerm: string;
|
273
|
-
handleSearch: (e: ChangeEvent<HTMLInputElement>) => void;
|
274
|
-
scrollableRef: import('react').MutableRefObject<HTMLElement>;
|
275
|
-
};
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { UseActionMenuProps } from './types';
|
2
|
-
export declare const getActionMenuFlatOptions: <T extends string | number>(options: UseActionMenuProps<T>["options"]) => {
|
3
|
-
option: import('./types').ActionMenuItemType<T>;
|
4
|
-
itemIndex: number;
|
5
|
-
sectionIndex: number;
|
6
|
-
}[];
|
7
|
-
export declare const filterActionMenuOptions: <T extends string | number>(options: UseActionMenuProps<T>["options"], searchTerm: string) => import('./types').ActionMenuOptionType<T>[];
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { AppStatusModalProps } from './types';
|
2
|
-
declare const AppStatusModal: ({ titleSegments, handleClose, type, appDetails: appDetailsProp, processVirtualEnvironmentDeploymentData, updateDeploymentStatusDetailsBreakdownData, isConfigDriftEnabled, configDriftModal: ConfigDriftModal, appId, envId, initialTab, debugWithAIButton, }: AppStatusModalProps) => JSX.Element;
|
3
|
-
export default AppStatusModal;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { AppDetails, DeploymentStatusDetailsBreakdownDataType } from '../../types';
|
2
|
-
import { GetAppDetailsParamsType, GetDeploymentStatusWithTimelineParamsType } from './types';
|
3
|
-
export declare const getAppDetails: ({ appId, envId, abortControllerRef, }: GetAppDetailsParamsType) => Promise<AppDetails>;
|
4
|
-
export declare const getDeploymentStatusWithTimeline: ({ abortControllerRef, appId, envId, showTimeline, virtualEnvironmentConfig, isHelmApp, }: GetDeploymentStatusWithTimelineParamsType) => Promise<DeploymentStatusDetailsBreakdownDataType>;
|
@@ -1,84 +0,0 @@
|
|
1
|
-
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
2
|
-
import { APIOptions } from '../../../Common/Types';
|
3
|
-
import { AppDetails, ConfigDriftModalProps, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, IntelligenceConfig } from '../../types';
|
4
|
-
export declare enum AppStatusModalTabType {
|
5
|
-
APP_STATUS = "appStatus",
|
6
|
-
DEPLOYMENT_STATUS = "deploymentStatus"
|
7
|
-
}
|
8
|
-
export type AppStatusModalProps = {
|
9
|
-
titleSegments: string[];
|
10
|
-
handleClose: () => void;
|
11
|
-
isConfigDriftEnabled: boolean;
|
12
|
-
configDriftModal: FunctionComponent<ConfigDriftModalProps>;
|
13
|
-
processVirtualEnvironmentDeploymentData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
14
|
-
debugWithAIButton: FunctionComponent<{
|
15
|
-
intelligenceConfig: IntelligenceConfig;
|
16
|
-
}>;
|
17
|
-
} & ({
|
18
|
-
type: 'release';
|
19
|
-
appId: number;
|
20
|
-
envId: number;
|
21
|
-
appDetails?: never;
|
22
|
-
initialTab?: never;
|
23
|
-
updateDeploymentStatusDetailsBreakdownData?: never;
|
24
|
-
} | {
|
25
|
-
type: 'devtron-app' | 'other-apps' | 'stack-manager';
|
26
|
-
appDetails: AppDetails;
|
27
|
-
initialTab: AppStatusModalTabType;
|
28
|
-
updateDeploymentStatusDetailsBreakdownData: (data: DeploymentStatusDetailsBreakdownDataType) => void;
|
29
|
-
appId?: never;
|
30
|
-
envId?: never;
|
31
|
-
});
|
32
|
-
export interface AppStatusBodyProps extends Required<Pick<AppStatusModalProps, 'appDetails' | 'type' | 'debugWithAIButton'>> {
|
33
|
-
handleShowConfigDriftModal: () => void;
|
34
|
-
selectedTab: AppStatusModalTabType;
|
35
|
-
deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
|
36
|
-
}
|
37
|
-
export interface AppStatusContentProps extends Required<Pick<AppStatusBodyProps, 'appDetails'>>, Partial<Pick<AppStatusBodyProps, 'handleShowConfigDriftModal'>> {
|
38
|
-
/**
|
39
|
-
* @default false
|
40
|
-
*/
|
41
|
-
filterHealthyNodes?: boolean;
|
42
|
-
/**
|
43
|
-
* @default true
|
44
|
-
*/
|
45
|
-
isCardLayout?: boolean;
|
46
|
-
}
|
47
|
-
export interface GetFilteredFlattenedNodesFromAppDetailsParamsType extends Pick<AppStatusContentProps, 'appDetails' | 'filterHealthyNodes'> {
|
48
|
-
}
|
49
|
-
/**
|
50
|
-
* Params for getAppDetails which is called in case of release [i.e, devtron apps]
|
51
|
-
*/
|
52
|
-
export interface GetAppDetailsParamsType extends Pick<APIOptions, 'abortControllerRef'> {
|
53
|
-
appId: number;
|
54
|
-
envId: number;
|
55
|
-
}
|
56
|
-
export type GetDeploymentStatusWithTimelineParamsType = Pick<APIOptions, 'abortControllerRef'> & {
|
57
|
-
/**
|
58
|
-
* Incase of helm apps this is installed app id
|
59
|
-
*/
|
60
|
-
appId: number;
|
61
|
-
envId: number;
|
62
|
-
showTimeline: boolean;
|
63
|
-
virtualEnvironmentConfig?: {
|
64
|
-
processVirtualEnvironmentDeploymentData: AppStatusModalProps['processVirtualEnvironmentDeploymentData'];
|
65
|
-
wfrId: AppDetails['resourceTree']['wfrId'];
|
66
|
-
};
|
67
|
-
isHelmApp?: boolean;
|
68
|
-
};
|
69
|
-
export interface AppStatusModalTabListProps extends Pick<AppStatusModalProps, 'appDetails' | 'type'> {
|
70
|
-
handleSelectTab: (updatedTab: AppStatusModalTabType) => void;
|
71
|
-
selectedTab: AppStatusModalTabType;
|
72
|
-
deploymentStatusDetailsBreakdownData: DeploymentStatusDetailsBreakdownDataType;
|
73
|
-
}
|
74
|
-
export interface StatusHeadingContainerProps extends PropsWithChildren<Pick<AppStatusBodyProps, 'type'>> {
|
75
|
-
appId: number;
|
76
|
-
envId?: number;
|
77
|
-
actionItem?: ReactNode;
|
78
|
-
}
|
79
|
-
export interface InfoCardItemProps {
|
80
|
-
heading: string;
|
81
|
-
value: ReactNode;
|
82
|
-
isLast?: boolean;
|
83
|
-
alignCenter?: boolean;
|
84
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { GenericEmptyStateType } from '../../../Common/Types';
|
2
|
-
import { AppDetails, DeploymentStatusDetailsBreakdownDataType, Node } from '../../types';
|
3
|
-
import { AppStatusModalProps, GetFilteredFlattenedNodesFromAppDetailsParamsType as GetFlattenedNodesFromAppDetailsParamsType } from './types';
|
4
|
-
export declare const getAppStatusMessageFromAppDetails: (appDetails: AppDetails) => string;
|
5
|
-
export declare const getFlattenedNodesFromAppDetails: ({ appDetails, filterHealthyNodes, }: GetFlattenedNodesFromAppDetailsParamsType) => Node[];
|
6
|
-
export declare const getResourceKey: (nodeDetails: Node) => string;
|
7
|
-
export declare const getShowDeploymentStatusModal: ({ type, appDetails, }: Pick<AppStatusModalProps, "type" | "appDetails">) => boolean;
|
8
|
-
export declare const getEmptyViewImageFromHelmDeploymentStatus: (status: DeploymentStatusDetailsBreakdownDataType["deploymentStatus"]) => GenericEmptyStateType["image"];
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { DEPLOYMENT_STATUS } from '../../constants';
|
2
|
-
import { DeploymentPhaseType, DeploymentStatusTimelineType } from '../../types';
|
3
|
-
import { WorkflowRunnerStatusDTO } from './types';
|
4
|
-
export declare const DEPLOYMENT_STATUS_TEXT_MAP: Readonly<Record<(typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS], string>>;
|
5
|
-
export declare const WFR_STATUS_DTO_TO_DEPLOYMENT_STATUS_MAP: Readonly<Record<WorkflowRunnerStatusDTO, (typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS]>>;
|
6
|
-
export declare const PROGRESSING_DEPLOYMENT_STATUS: Readonly<(typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS][]>;
|
7
|
-
export declare const SUCCESSFUL_DEPLOYMENT_STATUS: typeof PROGRESSING_DEPLOYMENT_STATUS;
|
8
|
-
export declare const FAILED_DEPLOYMENT_STATUS: typeof PROGRESSING_DEPLOYMENT_STATUS;
|
9
|
-
export declare const PHYSICAL_ENV_DEPLOYMENT_TIMELINE_ORDER: Readonly<DeploymentStatusTimelineType[]>;
|
10
|
-
export declare const DEPLOYMENT_PHASES: Readonly<DeploymentPhaseType[]>;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { DEPLOYMENT_STATUS } from '../../constants';
|
2
|
-
import { DeploymentStatusBreakdownItemType, DeploymentStatusDetailsType, DeploymentStatusTimelineType } from '../../types';
|
3
|
-
export declare enum WorkflowRunnerStatusDTO {
|
4
|
-
PROGRESSING = "Progressing",
|
5
|
-
ABORTED = "Aborted",
|
6
|
-
FAILED = "Failed",
|
7
|
-
SUCCEEDED = "Succeeded",
|
8
|
-
TIMED_OUT = "TimedOut",
|
9
|
-
UNABLE_TO_FETCH = "UnableToFetch",
|
10
|
-
STARTING = "Starting",
|
11
|
-
QUEUED = "Queued",
|
12
|
-
INITIATING = "Initiating",
|
13
|
-
HEALTHY = "Healthy",
|
14
|
-
DEGRADED = "Degraded"
|
15
|
-
}
|
16
|
-
export interface ProcessUnableToFetchOrTimedOutStatusType {
|
17
|
-
timelineData: DeploymentStatusBreakdownItemType;
|
18
|
-
timelineStatusType: DeploymentStatusTimelineType;
|
19
|
-
deploymentStatus: typeof DEPLOYMENT_STATUS.UNABLE_TO_FETCH | typeof DEPLOYMENT_STATUS.TIMED_OUT;
|
20
|
-
statusLastFetchedAt: DeploymentStatusDetailsType['statusLastFetchedAt'] | null;
|
21
|
-
statusFetchCount: DeploymentStatusDetailsType['statusFetchCount'] | null;
|
22
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType } from '../../types';
|
2
|
-
/**
|
3
|
-
* @description
|
4
|
-
* This function processes the deployment status details data and returns a breakdown of the deployment status.
|
5
|
-
* Cases it handles:
|
6
|
-
* 1. If timelines are not present, say the case of helm deployment, we will parse the wfrStatus and put the status and basic deployment info [triggeredBy, deploymentStartedOn, deploymentFinishedOn] into the breakdown data and return it.
|
7
|
-
* 2. In case of gitops:
|
8
|
-
* - There are five timelines in chronological order:
|
9
|
-
* - Deployment Initiated
|
10
|
-
* - Git commit
|
11
|
-
* - ArgoCD Sync
|
12
|
-
* - Kubectl Apply
|
13
|
-
* - App Health
|
14
|
-
* - Basic flow is we traverse the timelines in order, if find the last status for that specific timeline from response by traversing the timelines in reverse order.
|
15
|
-
* - If element is found, we will parse the status and set the icon, display text, time, etc. for that timeline and set the next timeline to inprogress.
|
16
|
-
* - If element is not found, we will parse on basis of factors like:
|
17
|
-
* - If this timeline is not inprogress and deploymentStatus is progressing, we will set the current timeline to waiting.
|
18
|
-
* - In similar fashion based on the deploymentStatus we will set the icon and display text for the timeline.
|
19
|
-
*/
|
20
|
-
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { ActionMenuProps } from '@Shared/Components/ActionMenu';
|
2
|
-
export interface HeaderWithCreateButtonProps {
|
3
|
-
headerName: string;
|
4
|
-
}
|
5
|
-
export declare enum CreateActionMenuItems {
|
6
|
-
CUSTOM_APP = "create-custom-app",
|
7
|
-
CHART_STORE = "create-from-chart-store",
|
8
|
-
JOB = "create-job"
|
9
|
-
}
|
10
|
-
export type CreateActionMenuProps = ActionMenuProps<CreateActionMenuItems>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { PopoverProps } from './types';
|
2
|
-
/**
|
3
|
-
* Popover Component \
|
4
|
-
* This component serves as a base for creating popovers. It is not intended to be used directly.
|
5
|
-
* @note Use this component in conjunction with the `usePopover` hook to create a custom popover component. \
|
6
|
-
* For example, see the `ActionMenu` component for reference.
|
7
|
-
*/
|
8
|
-
export declare const Popover: ({ open, popoverProps, overlayProps, triggerProps, buttonProps, triggerElement, children, }: PopoverProps) => JSX.Element;
|
@@ -1,105 +0,0 @@
|
|
1
|
-
import { DetailedHTMLProps, KeyboardEvent, MutableRefObject, ReactElement } from 'react';
|
2
|
-
import { HTMLMotionProps } from 'framer-motion';
|
3
|
-
import { ButtonProps } from '../Button';
|
4
|
-
export interface UsePopoverProps {
|
5
|
-
/**
|
6
|
-
* A unique identifier for the popover.
|
7
|
-
*/
|
8
|
-
id: string;
|
9
|
-
/**
|
10
|
-
* The width of the popover.
|
11
|
-
* Can be a number representing the width in pixels or the string `'auto'` for automatic sizing (up to 250px).
|
12
|
-
* @default 'auto'
|
13
|
-
*/
|
14
|
-
width?: number | 'auto';
|
15
|
-
/**
|
16
|
-
* The position of the popover relative to its trigger element.
|
17
|
-
* Possible values are:
|
18
|
-
* - `'bottom'`: Positions the popover below the trigger.
|
19
|
-
* - `'top'`: Positions the popover above the trigger.
|
20
|
-
* - `'left'`: Positions the popover to the left of the trigger.
|
21
|
-
* - `'right'`: Positions the popover to the right of the trigger.
|
22
|
-
* @default 'bottom'
|
23
|
-
*/
|
24
|
-
position?: 'bottom' | 'top' | 'left' | 'right';
|
25
|
-
/**
|
26
|
-
* The alignment of the popover relative to its trigger element.
|
27
|
-
* Possible values are:
|
28
|
-
* - `'start'`: Aligns the popover to the start of the trigger.
|
29
|
-
* - `'middle'`: Aligns the popover to the center of the trigger.
|
30
|
-
* - `'end'`: Aligns the popover to the end of the trigger.
|
31
|
-
* @default 'start'
|
32
|
-
*/
|
33
|
-
alignment?: 'start' | 'middle' | 'end';
|
34
|
-
/**
|
35
|
-
* Callback function triggered when the popover is opened or closed.
|
36
|
-
* @param open - A boolean indicating whether the popover is open.
|
37
|
-
*/
|
38
|
-
onOpen?: (open: boolean) => void;
|
39
|
-
/**
|
40
|
-
* Callback function triggered when a key is pressed while the trigger element is focused.
|
41
|
-
* @param e - The keyboard event.
|
42
|
-
* @param openState - A boolean indicating whether the popover is currently open.
|
43
|
-
* @param closePopover - A function to close the popover.
|
44
|
-
*/
|
45
|
-
onTriggerKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
|
46
|
-
/**
|
47
|
-
* Callback function triggered when a key is pressed while the popover is focused.
|
48
|
-
* @param e - The keyboard event.
|
49
|
-
* @param openState - A boolean indicating whether the popover is currently open.
|
50
|
-
* @param closePopover - A function to close the popover.
|
51
|
-
*/
|
52
|
-
onPopoverKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
|
53
|
-
}
|
54
|
-
/**
|
55
|
-
* Represents the return type of the `usePopover` hook, providing properties and methods
|
56
|
-
* to manage and interact with a popover component.
|
57
|
-
*/
|
58
|
-
export interface UsePopoverReturnType {
|
59
|
-
/**
|
60
|
-
* Indicates whether the popover is currently open.
|
61
|
-
*/
|
62
|
-
open: boolean;
|
63
|
-
/**
|
64
|
-
* Props to be spread onto the trigger element that opens the popover.
|
65
|
-
* These props include standard HTML attributes for a `div` element.
|
66
|
-
*/
|
67
|
-
triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
68
|
-
/**
|
69
|
-
* Props to be spread onto the overlay element of the popover.
|
70
|
-
* These props include standard HTML attributes for a `div` element.
|
71
|
-
*/
|
72
|
-
overlayProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
73
|
-
/**
|
74
|
-
* Props to be spread onto the popover element itself.
|
75
|
-
* Includes motion-related props for animations and a `ref` to the popover's `div` element.
|
76
|
-
*/
|
77
|
-
popoverProps: HTMLMotionProps<'div'> & {
|
78
|
-
ref: MutableRefObject<HTMLDivElement>;
|
79
|
-
};
|
80
|
-
/**
|
81
|
-
* A mutable reference to the scrollable element inside the popover. \
|
82
|
-
* This reference should be assigned to the element that is scrollable.
|
83
|
-
*/
|
84
|
-
scrollableRef: MutableRefObject<HTMLElement>;
|
85
|
-
/**
|
86
|
-
* A function to close the popover.
|
87
|
-
*/
|
88
|
-
closePopover: () => void;
|
89
|
-
}
|
90
|
-
export type PopoverProps = Pick<UsePopoverReturnType, 'open' | 'overlayProps' | 'popoverProps' | 'triggerProps'> & {
|
91
|
-
/**
|
92
|
-
* Popover contents.
|
93
|
-
* This can be any React element or JSX to render inside the popover.
|
94
|
-
*/
|
95
|
-
children: ReactElement;
|
96
|
-
/**
|
97
|
-
* Properties for the button to which the Popover is attached.
|
98
|
-
*/
|
99
|
-
buttonProps: ButtonProps | null;
|
100
|
-
/**
|
101
|
-
* The React element to which the Popover is attached.
|
102
|
-
* @note only use when `triggerElement` is not `Button` component otherwise use `buttonProps`.
|
103
|
-
*/
|
104
|
-
triggerElement: ReactElement | null;
|
105
|
-
};
|