@devtron-labs/devtron-fe-common-lib 1.14.1-pre-3 → 1.14.1-pre-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-CRu2zup5.js → @code-editor-BerlFPcZ.js} +14575 -14679
- package/dist/{@common-rjsf-CdWy2S0B.js → @common-rjsf-LvBnybtX.js} +7 -7
- package/dist/{@framer-motion-u7P-WzAO.js → @framer-motion-BBrovRGX.js} +1 -1
- package/dist/{@react-dates-B9MPAm_X.js → @react-dates-BN55ZZis.js} +1 -1
- package/dist/{@react-select-BjvVd-sE.js → @react-select-Be-sUPBr.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-B8m_4lZW.js → @react-virtualized-sticky-tree-C1LT8GyU.js} +1 -1
- package/dist/{@vendor-BtL2Znh4.js → @vendor-DpX3lhti.js} +13633 -15527
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/Types.d.ts +6 -8
- package/dist/Common/index.d.ts +0 -1
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +11 -11
- package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/CodeEditorRenderer.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/types.d.ts +8 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -2
- package/dist/Shared/{DocLink → Components/DocLink}/DocLink.d.ts +1 -1
- package/dist/Shared/{DocLink → Components/DocLink}/constants.d.ts +6 -4
- package/dist/Shared/{DocLink → Components/DocLink}/index.d.ts +1 -0
- package/dist/Shared/Components/DocLink/types.d.ts +18 -0
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +3 -5
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -3
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +5 -10
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +3 -4
- package/dist/Shared/Components/Popover/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +16 -0
- package/dist/Shared/types.d.ts +5 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.js +654 -653
- package/package.json +1 -2
- package/dist/Shared/Components/DiffViewer/DiffViewer.component.d.ts +0 -41
- package/dist/Shared/Components/DiffViewer/constants.d.ts +0 -2
- package/dist/Shared/Components/DiffViewer/index.d.ts +0 -1
- package/dist/Shared/Components/DiffViewer/types.d.ts +0 -9
- package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +0 -2
- package/dist/Shared/DocLink/types.d.ts +0 -11
- /package/dist/Shared/{DocLink → Components/DocLink}/utils.d.ts +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ShortcutType } from './types';
|
2
2
|
export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
|
3
|
-
keys: ("R" | "
|
3
|
+
keys: ("R" | "Alt" | "F" | "E" | "K" | "X" | "A" | "Home" | "End" | "." | "Space" | "Control" | "Shift" | "Meta" | "Escape" | "Enter" | "ArrowLeft" | "ArrowRight" | "ArrowUp" | "ArrowDown" | "PageUp" | "PageDown" | "Backspace" | "Delete")[];
|
4
4
|
id: string;
|
5
5
|
};
|
6
6
|
export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { default as RJSF } from '@rjsf/core';
|
2
2
|
import { FormProps } from './types';
|
3
|
-
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "
|
3
|
+
export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "name" | "id" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "method" | "action" | "tagName" | "noValidate" | "readonly" | "uiSchema" | "schema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
|
package/dist/Common/Types.d.ts
CHANGED
@@ -2,8 +2,8 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
|
|
2
2
|
import { TippyProps } from '@tippyjs/react';
|
3
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
4
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
5
|
-
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType } from '../Shared';
|
6
|
-
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType,
|
5
|
+
import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType, StatusType, DocLinkProps } from '../Shared';
|
6
|
+
import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
|
7
7
|
/**
|
8
8
|
* Generic response type object with support for overriding the result type
|
9
9
|
*
|
@@ -77,11 +77,9 @@ export interface CheckboxProps {
|
|
77
77
|
dataTestId?: string;
|
78
78
|
children?: ReactNode;
|
79
79
|
}
|
80
|
-
export
|
81
|
-
|
82
|
-
|
83
|
-
documentationLink?: T extends true ? string : keyof typeof DOCUMENTATION;
|
84
|
-
};
|
80
|
+
export interface TippyWithBaseDocLinkTypes<T extends boolean> extends Pick<DocLinkProps<T>, 'isExternalLink' | 'openInNewTab'> {
|
81
|
+
documentationLink?: DocLinkProps<T>['docLinkKey'];
|
82
|
+
}
|
85
83
|
export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo'> & TippyWithBaseDocLinkTypes<T> & {
|
86
84
|
theme: TippyTheme;
|
87
85
|
visible?: boolean;
|
@@ -111,7 +109,7 @@ export type TippyCustomizedProps<T extends boolean> = Pick<TippyProps, 'appendTo
|
|
111
109
|
children: React.ReactElement<any>;
|
112
110
|
disableClose?: boolean;
|
113
111
|
};
|
114
|
-
export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | '
|
112
|
+
export interface InfoIconTippyProps<T extends boolean = false> extends Pick<TippyCustomizedProps<T>, 'heading' | 'infoText' | 'iconClass' | 'documentationLinkText' | 'additionalContent' | 'placement' | 'Icon' | 'headingInfo' | 'documentationLink' | 'isExternalLink' | 'openInNewTab'> {
|
115
113
|
dataTestid?: string;
|
116
114
|
children?: TippyCustomizedProps<T>['children'];
|
117
115
|
iconClassName?: string;
|
package/dist/Common/index.d.ts
CHANGED
@@ -23,26 +23,22 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
23
23
|
role?: import('react').AriaRole;
|
24
24
|
about?: string;
|
25
25
|
is?: string;
|
26
|
-
|
27
|
-
prefix?: string;
|
28
|
-
resource?: string;
|
29
|
-
draggable?: boolean | "true" | "false";
|
30
|
-
onClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
31
|
-
onChange?: import('react').FormEventHandler<HTMLDivElement>;
|
32
|
-
onBlur?: import('react').FocusEventHandler<HTMLDivElement>;
|
33
|
-
onSubmit?: import('react').FormEventHandler<HTMLDivElement>;
|
34
|
-
dir?: string;
|
26
|
+
security?: string;
|
35
27
|
onMouseEnter?: import('react').MouseEventHandler<HTMLDivElement>;
|
36
28
|
"aria-describedby"?: string;
|
37
29
|
"aria-errormessage"?: string;
|
38
30
|
"aria-label"?: string;
|
39
31
|
"aria-labelledby"?: string;
|
32
|
+
onClick?: import('react').MouseEventHandler<HTMLDivElement>;
|
40
33
|
defaultChecked?: boolean;
|
41
34
|
suppressContentEditableWarning?: boolean;
|
42
35
|
suppressHydrationWarning?: boolean;
|
43
36
|
accessKey?: string;
|
44
37
|
contentEditable?: "inherit" | (boolean | "true" | "false");
|
45
38
|
contextMenu?: string;
|
39
|
+
dir?: string;
|
40
|
+
draggable?: boolean | "true" | "false";
|
41
|
+
hidden?: boolean;
|
46
42
|
lang?: string;
|
47
43
|
placeholder?: string;
|
48
44
|
spellCheck?: boolean | "true" | "false";
|
@@ -51,7 +47,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
51
47
|
radioGroup?: string;
|
52
48
|
datatype?: string;
|
53
49
|
inlist?: any;
|
50
|
+
prefix?: string;
|
54
51
|
property?: string;
|
52
|
+
resource?: string;
|
55
53
|
typeof?: string;
|
56
54
|
vocab?: string;
|
57
55
|
autoCapitalize?: string;
|
@@ -63,7 +61,6 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
63
61
|
itemID?: string;
|
64
62
|
itemRef?: string;
|
65
63
|
results?: number;
|
66
|
-
security?: string;
|
67
64
|
unselectable?: "on" | "off";
|
68
65
|
inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
|
69
66
|
"aria-activedescendant"?: string;
|
@@ -78,7 +75,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
78
75
|
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
|
79
76
|
"aria-details"?: string;
|
80
77
|
"aria-disabled"?: boolean | "true" | "false";
|
81
|
-
"aria-dropeffect"?: "link" | "none" | "
|
78
|
+
"aria-dropeffect"?: "link" | "none" | "popup" | "copy" | "execute" | "move";
|
82
79
|
"aria-expanded"?: boolean | "true" | "false";
|
83
80
|
"aria-flowto"?: string;
|
84
81
|
"aria-grabbed"?: boolean | "true" | "false";
|
@@ -127,7 +124,9 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
127
124
|
onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLDivElement>;
|
128
125
|
onFocus?: import('react').FocusEventHandler<HTMLDivElement>;
|
129
126
|
onFocusCapture?: import('react').FocusEventHandler<HTMLDivElement>;
|
127
|
+
onBlur?: import('react').FocusEventHandler<HTMLDivElement>;
|
130
128
|
onBlurCapture?: import('react').FocusEventHandler<HTMLDivElement>;
|
129
|
+
onChange?: import('react').FormEventHandler<HTMLDivElement>;
|
131
130
|
onChangeCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
132
131
|
onBeforeInput?: import('react').FormEventHandler<HTMLDivElement>;
|
133
132
|
onBeforeInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
@@ -135,6 +134,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
|
|
135
134
|
onInputCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
136
135
|
onReset?: import('react').FormEventHandler<HTMLDivElement>;
|
137
136
|
onResetCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
137
|
+
onSubmit?: import('react').FormEventHandler<HTMLDivElement>;
|
138
138
|
onSubmitCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
139
139
|
onInvalid?: import('react').FormEventHandler<HTMLDivElement>;
|
140
140
|
onInvalidCapture?: import('react').FormEventHandler<HTMLDivElement>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CodeEditorProps } from './types';
|
2
2
|
declare const CodeEditor: {
|
3
|
-
<DiffView extends boolean = false>({ theme, value: propValue, originalValue, modifiedValue, isOriginalModifiable, mode, noParsing, children, tabSize, height, shebang, onChange, onOriginalValueChange, onModifiedValueChange,
|
3
|
+
<DiffView extends boolean = false>({ theme, value: propValue, originalValue, modifiedValue, isOriginalModifiable, mode, noParsing, children, tabSize, height, shebang, onChange, onOriginalValueChange, onModifiedValueChange, placeholder, diffView, loading, customLoader, validatorSchema, schemaURI, cleanData, onBlur, onFocus, autoFocus, collapseUnchangedDiffView, ...resProps }: CodeEditorProps<DiffView>): JSX.Element;
|
4
4
|
Clipboard: () => JSX.Element;
|
5
5
|
Header: ({ children, className, hideDefaultSplitHeader }: import('./types').CodeEditorHeaderProps) => JSX.Element;
|
6
6
|
Warning: ({ className, text, children }: import('./types').CodeEditorStatusBarProps) => JSX.Element;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { CodeEditorRendererProps } from './types';
|
2
|
-
export declare const CodeEditorRenderer: ({ codemirrorMergeKey, theme, loading, customLoader, height, codeEditorTheme, readOnly, handleLhsOnChange, originalViewExtensions, handleOnChange, modifiedViewExtensions, codeMirrorParentDivRef, shebang, placeholder, onFocus, onBlur, extensions, autoFocus, diffMinimapExtensions, }: CodeEditorRendererProps) => JSX.Element;
|
2
|
+
export declare const CodeEditorRenderer: ({ codemirrorMergeKey, theme, loading, customLoader, height, codeEditorTheme, readOnly, handleLhsOnChange, originalViewExtensions, handleOnChange, modifiedViewExtensions, codeMirrorParentDivRef, shebang, placeholder, onFocus, onBlur, extensions, autoFocus, diffMinimapExtensions, collapseUnchanged, disableMinimap, }: CodeEditorRendererProps) => JSX.Element;
|
@@ -29,6 +29,12 @@ type CodeEditorDiffBaseProps = {
|
|
29
29
|
originalValue?: ReactCodeMirrorProps['value'];
|
30
30
|
modifiedValue?: ReactCodeMirrorProps['value'];
|
31
31
|
isOriginalModifiable?: boolean;
|
32
|
+
/**
|
33
|
+
* When true, renders a diff view in readOnly mode with collapsed unchanged diffs.
|
34
|
+
* This disables the minimap, code-editor search functionality, and language linting.
|
35
|
+
* @default false
|
36
|
+
*/
|
37
|
+
collapseUnchangedDiffView?: boolean;
|
32
38
|
};
|
33
39
|
type CodeEditorPropsBasedOnDiffView<DiffView extends boolean> = DiffView extends true ? CodeEditorDiffBaseProps & Never<CodeEditorBaseProps> : CodeEditorBaseProps & Never<CodeEditorDiffBaseProps>;
|
34
40
|
export type CodeEditorProps<DiffView extends boolean = false> = {
|
@@ -94,6 +100,8 @@ export type CodeEditorRendererProps = Required<Pick<CodeEditorProps, 'theme' | '
|
|
94
100
|
modifiedViewExtensions: ReactCodeMirrorProps['extensions'];
|
95
101
|
extensions: ReactCodeMirrorProps['extensions'];
|
96
102
|
diffMinimapExtensions: ReactCodeMirrorProps['extensions'];
|
103
|
+
collapseUnchanged?: boolean;
|
104
|
+
disableMinimap?: boolean;
|
97
105
|
};
|
98
106
|
export interface DiffMinimapProps extends Pick<CodeEditorRendererProps, 'theme'> {
|
99
107
|
view: MergeView;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { AppEnvDeploymentConfigListParams, DeploymentConfigDiffProps } from '..';
|
2
2
|
import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, TemplateListDTO } from '../../Services/app.types';
|
3
|
-
import { DiffViewerProps } from '../DiffViewer/types';
|
4
3
|
export declare const getDeploymentTemplateData: (data: DeploymentTemplateDTO) => any;
|
5
4
|
/**
|
6
5
|
* Retrieves the draft data from the given configuration data object.
|
@@ -38,4 +37,3 @@ export declare const getDefaultVersionAndPreviousDeploymentOptions: (data: Templ
|
|
38
37
|
previousDeployments: TemplateListDTO[];
|
39
38
|
defaultVersions: TemplateListDTO[];
|
40
39
|
};
|
41
|
-
export declare const renderDiffViewNoDifferenceState: (lhsValue: string, rhsValue: string) => DiffViewerProps["codeFoldMessageRenderer"];
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DocLinkProps } from './types';
|
2
|
-
export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, showExternalIcon, onClick, size, variant,
|
2
|
+
export declare const DocLink: <T extends boolean = false>({ docLinkKey, text, dataTestId, showExternalIcon, onClick, size, variant, isExternalLink, openInNewTab, fullWidth, }: DocLinkProps<T>) => JSX.Element;
|
@@ -15,7 +15,7 @@ export declare const DOCUMENTATION: {
|
|
15
15
|
readonly APP_ROLLOUT_DEPLOYMENT_TEMPLATE: "usage/applications/creating-application/deployment-template/rollout-deployment";
|
16
16
|
readonly BUILD_STAGE: "usage/applications/creating-application/ci-pipeline#build-stage";
|
17
17
|
readonly APP_TAGS: "usage/applications/create-application#tags";
|
18
|
-
readonly BLOB_STORAGE: "
|
18
|
+
readonly BLOB_STORAGE: "configurations-overview/installation-configuration#configuration-of-blob-storage";
|
19
19
|
readonly BULK_UPDATE: "usage/bulk-update";
|
20
20
|
readonly CHART_GROUP: "usage/deploy-chart/chart-group";
|
21
21
|
readonly CHART_LIST: "usage/deploy-chart/overview-of-charts";
|
@@ -30,7 +30,9 @@ export declare const DOCUMENTATION: {
|
|
30
30
|
readonly EXTERNAL_LINKS: "getting-started/global-configurations/external-links";
|
31
31
|
readonly EXTERNAL_SECRET: "usage/applications/creating-application/secrets#external-secrets";
|
32
32
|
readonly HOME_PAGE: "https://devtron.ai";
|
33
|
+
readonly DOC_HOME_PAGE: "https://docs.devtron.ai";
|
33
34
|
readonly KUBE_CONFIG: "usage/resource-browser#running-kubectl-commands-locally";
|
35
|
+
readonly JOBS: "usage/jobs";
|
34
36
|
readonly TAINT: "usage/resource-browser#taint-a-node";
|
35
37
|
readonly GLOBAL_CONFIG_API_TOKEN: "getting-started/global-configurations/authorization/api-tokens";
|
36
38
|
readonly GLOBAL_CONFIG_BUILD_INFRA: "global-configurations/build-infra";
|
@@ -40,16 +42,16 @@ export declare const DOCUMENTATION: {
|
|
40
42
|
readonly GLOBAL_CONFIG_CUSTOM_CHART_PRE_REQUISITES: "getting-started/global-configurations/custom-charts#prerequisites";
|
41
43
|
readonly GLOBAL_CONFIG_DOCKER: "getting-started/global-configurations/container-registries";
|
42
44
|
readonly GLOBAL_CONFIG_GIT: "getting-started/global-configurations/git-accounts";
|
43
|
-
readonly GLOBAL_CONFIG_GITOPS: "
|
45
|
+
readonly GLOBAL_CONFIG_GITOPS: "global-configurations/gitops";
|
44
46
|
readonly GLOBAL_CONFIG_GITOPS_GITHUB: "global-configurations/gitops#github";
|
45
47
|
readonly GLOBAL_CONFIG_GITOPS_GITLAB: "global-configurations/gitops#gitlab";
|
46
48
|
readonly GLOBAL_CONFIG_GITOPS_AZURE: "global-configurations/gitops#azure";
|
47
49
|
readonly GLOBAL_CONFIG_GITOPS_BITBUCKET: "global-configurations/gitops#bitbucket";
|
48
50
|
readonly GLOBAL_CONFIG_GROUPS: "getting-started/global-configurations/authorization/permission-groups";
|
49
|
-
readonly GLOBAL_CONFIG_HOST_URL: "
|
51
|
+
readonly GLOBAL_CONFIG_HOST_URL: "global-configurations/host-url";
|
50
52
|
readonly GLOBAL_CONFIG_NOTIFICATION: "getting-started/global-configurations/manage-notification";
|
51
53
|
readonly GLOBAL_CONFIG_PERMISSION: "global-configurations/authorization/user-access#devtron-apps-permissions";
|
52
|
-
readonly GLOBAL_CONFIG_PROJECT: "
|
54
|
+
readonly GLOBAL_CONFIG_PROJECT: "global-configurations/projects";
|
53
55
|
readonly GLOBAL_CONFIG_SSO: "getting-started/global-configurations/sso-login";
|
54
56
|
readonly GLOBAL_CONFIG_SCOPED_VARIABLES: "getting-started/global-configurations/scoped-variables";
|
55
57
|
readonly GLOBAL_CONFIG_USER: "getting-started/global-configurations/authorization/user-access";
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { MouseEvent } from 'react';
|
2
|
+
import { ButtonComponentType, ButtonProps } from '..';
|
3
|
+
import { DOCUMENTATION } from './constants';
|
4
|
+
export type BaseDocLink<T extends boolean> = {
|
5
|
+
isExternalLink?: T;
|
6
|
+
isEnterprise?: boolean;
|
7
|
+
docLinkKey: T extends true ? string : keyof typeof DOCUMENTATION;
|
8
|
+
};
|
9
|
+
export type DocLinkProps<T extends boolean> = Pick<ButtonProps<ButtonComponentType.anchor>, 'dataTestId' | 'size' | 'variant' | 'fullWidth'> & Omit<BaseDocLink<T>, 'isEnterprise'> & {
|
10
|
+
text?: string;
|
11
|
+
showExternalIcon?: boolean;
|
12
|
+
onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
|
13
|
+
/**
|
14
|
+
* If `true`, the documentation will open in a new browser tab instead of the side panel.
|
15
|
+
* @default false
|
16
|
+
*/
|
17
|
+
openInNewTab?: boolean;
|
18
|
+
};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { FeatureDescriptionModalProps } from './types';
|
2
|
-
export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig,
|
2
|
+
export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig, }: FeatureDescriptionModalProps) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DescriptorProps } from './types';
|
2
|
-
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig,
|
2
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, }: DescriptorProps) => JSX.Element;
|
3
3
|
export default FeatureTitleWithInfo;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
2
|
-
import { DocLinkProps } from '@Shared/DocLink/types';
|
3
2
|
import { ImageType } from '../../../Common';
|
4
3
|
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
5
|
-
|
4
|
+
import { DocLinkProps } from '../DocLink';
|
5
|
+
interface BaseFeatureDescriptionModalProps {
|
6
6
|
renderDescriptionContent?: () => ReactNode;
|
7
|
-
docLink?: DocLinkProps<
|
7
|
+
docLink?: DocLinkProps<false>['docLinkKey'];
|
8
8
|
imageVariant?: ImageType;
|
9
9
|
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
10
10
|
imageStyles?: React.CSSProperties;
|
@@ -34,7 +34,6 @@ export type FeatureDescriptionModalProps = {
|
|
34
34
|
title: string;
|
35
35
|
closeModalText?: string;
|
36
36
|
closeModal?: () => void;
|
37
|
-
isEnterprise?: boolean;
|
38
37
|
} & ((BaseFeatureDescriptionModalProps & {
|
39
38
|
tabsConfig?: never;
|
40
39
|
}) | FeatureDescriptionModalWithTabsConfig);
|
@@ -55,6 +54,5 @@ export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'>
|
|
55
54
|
* @default false
|
56
55
|
*/
|
57
56
|
showInfoIcon?: boolean;
|
58
|
-
isEnterprise?: boolean;
|
59
57
|
};
|
60
58
|
export {};
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import { AnimatePresence, motion } from 'framer-motion';
|
2
|
-
export
|
3
|
-
export { AnimatePresence, motion };
|
1
|
+
import { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue } from 'framer-motion';
|
2
|
+
export { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue };
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PageHeaderType } from './types';
|
2
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps,
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -1,12 +1,8 @@
|
|
1
|
-
import { ModuleStatus } from '../../types';
|
2
|
-
import {
|
1
|
+
import { InstallationType, ModuleStatus } from '../../types';
|
2
|
+
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
3
3
|
import { ActionMenuProps } from '../ActionMenu';
|
4
|
-
|
5
|
-
|
6
|
-
OSS_HELM = "oss_helm",
|
7
|
-
ENTERPRISE = "enterprise"
|
8
|
-
}
|
9
|
-
export interface PageHeaderType<T extends boolean = false> {
|
4
|
+
import { DOCUMENTATION } from '../DocLink';
|
5
|
+
export interface PageHeaderType {
|
10
6
|
headerName?: string;
|
11
7
|
showTabs?: boolean;
|
12
8
|
additionalHeaderInfo?: () => JSX.Element;
|
@@ -17,14 +13,13 @@ export interface PageHeaderType<T extends boolean = false> {
|
|
17
13
|
showCloseButton?: boolean;
|
18
14
|
onClose?: () => void;
|
19
15
|
markAsBeta?: boolean;
|
20
|
-
tippyProps?: Pick<TippyCustomizedProps<
|
16
|
+
tippyProps?: Pick<TippyCustomizedProps<false>, 'additionalContent'> & {
|
21
17
|
isTippyCustomized?: boolean;
|
22
18
|
tippyRedirectLink?: keyof typeof DOCUMENTATION;
|
23
19
|
TippyIcon?: React.FunctionComponent<any>;
|
24
20
|
tippyMessage?: string;
|
25
21
|
onClickTippyButton?: () => void;
|
26
22
|
};
|
27
|
-
isEnterprise?: boolean;
|
28
23
|
}
|
29
24
|
export interface ServerInfo {
|
30
25
|
currentVersion: string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
2
|
-
declare const InfoIconTippy: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding,
|
2
|
+
declare const InfoIconTippy: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, isExternalLink, openInNewTab, }: InfoIconTippyProps<T>) => JSX.Element;
|
3
3
|
export default InfoIconTippy;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ModalSidebarPanelProps } from './types';
|
2
|
-
declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink,
|
2
|
+
declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, }: ModalSidebarPanelProps) => JSX.Element;
|
3
3
|
export default ModalSidebarPanel;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { DocLinkProps } from '
|
3
|
-
|
4
|
-
export interface ModalSidebarPanelProps<T extends boolean = false> extends Pick<PageHeaderType, 'isEnterprise'> {
|
2
|
+
import { DocLinkProps } from '../DocLink';
|
3
|
+
export interface ModalSidebarPanelProps {
|
5
4
|
rootClassName?: string;
|
6
5
|
heading: string | null;
|
7
6
|
icon?: JSX.Element;
|
8
7
|
children?: ReactNode;
|
9
|
-
documentationLink: DocLinkProps<
|
8
|
+
documentationLink: DocLinkProps<false>['docLinkKey'];
|
10
9
|
}
|
@@ -87,6 +87,6 @@ export declare const getPopoverActualPositionAlignment: ({ position, alignment,
|
|
87
87
|
triggerRect: DOMRect;
|
88
88
|
popoverRect: DOMRect;
|
89
89
|
}) => {
|
90
|
-
fallbackPosition: "top" | "
|
90
|
+
fallbackPosition: "top" | "bottom" | "right" | "left";
|
91
91
|
fallbackAlignment: "start" | "middle" | "end";
|
92
92
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SEVERITIES } from './constants';
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--Y500)" | "var(--G500)" | "var(--R700)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -26,7 +26,7 @@ export * from './DatePicker';
|
|
26
26
|
export * from './DeploymentConfigDiff';
|
27
27
|
export * from './DeploymentStatusBreakdown';
|
28
28
|
export * from './DetectBottom';
|
29
|
-
export * from './
|
29
|
+
export * from './DocLink';
|
30
30
|
export * from './DynamicDataTable';
|
31
31
|
export * from './EditableTextArea';
|
32
32
|
export * from './EditImageFormField';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from './ImageSelectionUtility';
|
2
2
|
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
|
-
export type { MainContext, ReloadVersionConfigTypes } from './types';
|
4
|
+
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
5
5
|
export * from './UserEmailProvider';
|
@@ -11,6 +11,10 @@ export interface ReloadVersionConfigTypes {
|
|
11
11
|
updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
|
12
12
|
isRefreshing: boolean;
|
13
13
|
}
|
14
|
+
export interface SidePanelConfig {
|
15
|
+
open: boolean;
|
16
|
+
docLink?: string | null;
|
17
|
+
}
|
14
18
|
export interface MainContext {
|
15
19
|
serverMode: SERVER_MODE;
|
16
20
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
@@ -58,6 +62,18 @@ export interface MainContext {
|
|
58
62
|
reloadVersionConfig: ReloadVersionConfigTypes;
|
59
63
|
intelligenceConfig: IntelligenceConfig;
|
60
64
|
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
65
|
+
sidePanelConfig: SidePanelConfig;
|
66
|
+
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
67
|
+
/**
|
68
|
+
* Indicates whether the current Devtron instance is running as an Enterprise edition. \
|
69
|
+
* This flag is determined based on server-side configuration.
|
70
|
+
*/
|
71
|
+
isEnterprise: boolean;
|
72
|
+
/**
|
73
|
+
* Indicates whether the fe-lib modules are available in the current instance. \
|
74
|
+
* Used to conditionally render or enable features that depend on fe-lib
|
75
|
+
*/
|
76
|
+
isFELibAvailable: boolean;
|
61
77
|
}
|
62
78
|
export interface MainContextProviderProps {
|
63
79
|
children: ReactNode;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -6,6 +6,11 @@ import { ReleaseMode } from '../Pages/index';
|
|
6
6
|
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
7
7
|
import { SelectPickerOptionType, WorkflowRunnerStatusDTO } from './Components';
|
8
8
|
import { BASE_CONFIGURATION_ENV_ID, DEPLOYMENT_STATUS, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
9
|
+
export declare enum InstallationType {
|
10
|
+
OSS_KUBECTL = "oss_kubectl",
|
11
|
+
OSS_HELM = "oss_helm",
|
12
|
+
ENTERPRISE = "enterprise"
|
13
|
+
}
|
9
14
|
export declare enum EnvType {
|
10
15
|
CHART = "helm_charts",
|
11
16
|
APPLICATION = "apps"
|