@devtron-labs/devtron-fe-common-lib 1.14.1-pre-5-beta-2 → 1.14.1-pre-7
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-Dguf__VL.js → @code-editor-SnbkYONP.js} +4738 -4720
- package/dist/{@common-rjsf-ntajbYOF.js → @common-rjsf-B3IUB31U.js} +2 -2
- package/dist/{@framer-motion-BBrovRGX.js → @framer-motion-KlxWTYdW.js} +3 -3
- package/dist/{@react-dates-BN55ZZis.js → @react-dates-B5kx68bW.js} +14 -14
- package/dist/{@react-select-Be-sUPBr.js → @react-select-BEsJGuAw.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-C1LT8GyU.js → @react-virtualized-sticky-tree-D4Wm6LRf.js} +1 -1
- package/dist/{@vendor-DpX3lhti.js → @vendor-ZuITsnfG.js} +10080 -10070
- package/dist/Common/Constants.d.ts +1 -2
- package/dist/Common/Types.d.ts +0 -7
- package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/Extensions/findAndReplace.d.ts +2 -1
- package/dist/Shared/Components/CodeEditor/types.d.ts +6 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +2 -4
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/{ic-cluster.f1c3fad1.svg → ic-cluster.71ba9e26.svg} +1 -1
- package/dist/assets/ic-email.78fed574.svg +3 -0
- package/dist/assets/ic-key-enter.59d23056.svg +3 -0
- package/dist/index.js +780 -777
- package/package.json +1 -1
- package/dist/assets/ic-cluster-isolated.93f843b9.svg +0 -3
- package/dist/assets/ic-environment-isolated.b772ae9d.svg +0 -3
- package/dist/assets/ic-environment.e639b8f3.svg +0 -4
- package/dist/assets/ic-shapes.b7b5c28f.svg +0 -3
@@ -22,6 +22,7 @@ export declare const PATTERNS: {
|
|
22
22
|
CONFIG_MAP_AND_SECRET_KEY: RegExp;
|
23
23
|
CONFIGMAP_AND_SECRET_NAME: RegExp;
|
24
24
|
ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: RegExp;
|
25
|
+
EMAIL: RegExp;
|
25
26
|
};
|
26
27
|
export declare const URLS: {
|
27
28
|
readonly LOGIN_SSO: "/login/sso";
|
@@ -54,7 +55,6 @@ export declare const URLS: {
|
|
54
55
|
readonly COMPARE_CLUSTERS: "/compare-clusters";
|
55
56
|
readonly APP_CONFIG: "edit";
|
56
57
|
readonly GLOBAL_CONFIG: "/global-config";
|
57
|
-
readonly GLOBAL_CONFIG_MANAGE_CATEGORIES: "/global-config/cluster-env/manage-categories";
|
58
58
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
|
59
59
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
|
60
60
|
readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
|
@@ -64,7 +64,6 @@ export declare const ROUTES: {
|
|
64
64
|
readonly APP: "app";
|
65
65
|
readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
|
66
66
|
readonly APP_TEMPLATE_DATA: "app/template/data";
|
67
|
-
readonly ENVIRONMENT_CATEGORIES: "env/categories";
|
68
67
|
readonly PROJECT_LIST_MIN: "team/autocomplete";
|
69
68
|
readonly USER_CHECK_ROLE: "user/check/roles";
|
70
69
|
readonly IMAGE_TAGGING: "app/image-tagging";
|
package/dist/Common/Types.d.ts
CHANGED
@@ -957,11 +957,4 @@ export interface EnvAppsMetaDTO {
|
|
957
957
|
appCount: number;
|
958
958
|
apps: AppMeta[];
|
959
959
|
}
|
960
|
-
export interface ClusterEnvironmentCategoryDTO {
|
961
|
-
id: number;
|
962
|
-
name: string;
|
963
|
-
description?: string;
|
964
|
-
}
|
965
|
-
export interface ClusterEnvironmentCategoryType extends ClusterEnvironmentCategoryDTO {
|
966
|
-
}
|
967
960
|
export {};
|
@@ -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, placeholder, diffView, loading, customLoader, validatorSchema, schemaURI, cleanData, onBlur, onFocus, autoFocus, collapseUnchangedDiffView, ...resProps }: CodeEditorProps<DiffView>): JSX.Element;
|
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, onSearchPanelOpen, onSearchBarAction, 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,3 @@
|
|
1
1
|
import { EditorView, Panel } from '@uiw/react-codemirror';
|
2
|
-
|
2
|
+
import { CodeEditorProps } from '../types';
|
3
|
+
export declare const getCodeEditorFindReplace: (onSearchBarAction: CodeEditorProps["onSearchBarAction"]) => (view: EditorView) => Panel;
|
@@ -58,6 +58,11 @@ export type CodeEditorProps<DiffView extends boolean = false> = {
|
|
58
58
|
disableSearch?: boolean;
|
59
59
|
diffView?: DiffView;
|
60
60
|
theme?: AppThemeType;
|
61
|
+
onSearchPanelOpen?: () => void;
|
62
|
+
/**
|
63
|
+
* This method is triggered when user types something in the search/replace bar or applies a search or replace action.
|
64
|
+
*/
|
65
|
+
onSearchBarAction?: () => void;
|
61
66
|
} & CodeEditorPropsBasedOnDiffView<DiffView>;
|
62
67
|
export interface GetCodeEditorHeightReturnType {
|
63
68
|
codeEditorParentClassName: string;
|
@@ -69,7 +74,7 @@ export type HoverTexts = {
|
|
69
74
|
typeInfo: string;
|
70
75
|
};
|
71
76
|
export type FindReplaceQuery = Partial<Pick<SearchQuery, 'search' | 'wholeWord' | 'regexp' | 'replace' | 'caseSensitive'>>;
|
72
|
-
export interface FindReplaceProps {
|
77
|
+
export interface FindReplaceProps extends Pick<CodeEditorProps, 'onSearchBarAction'> {
|
73
78
|
view: EditorView;
|
74
79
|
/** Default value for Search Query state. */
|
75
80
|
defaultQuery: SearchQuery;
|
@@ -38,7 +38,6 @@ export declare const iconMap: {
|
|
38
38
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
39
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
40
|
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
|
-
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
41
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
42
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
43
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -60,11 +59,10 @@ export declare const iconMap: {
|
|
60
59
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
60
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
61
|
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
|
+
'ic-email': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
63
|
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
64
64
|
'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
65
65
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
66
|
-
'ic-environment-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
|
-
'ic-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
66
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
67
|
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
68
|
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -100,6 +98,7 @@ export declare const iconMap: {
|
|
100
98
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
99
|
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
102
100
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
|
+
'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
103
102
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
104
103
|
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
105
104
|
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -132,7 +131,6 @@ export declare const iconMap: {
|
|
132
131
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
133
132
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
134
133
|
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
|
-
'ic-shapes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
134
|
'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
135
|
'ic-sliders-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
136
|
'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -101,4 +101,5 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
|
|
101
101
|
export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
|
102
102
|
export declare const clearCookieOnLogout: () => void;
|
103
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
|
+
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
104
105
|
export {};
|
@@ -429,3 +429,4 @@ export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], st
|
|
429
429
|
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|
430
430
|
export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
|
431
431
|
export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
432
|
+
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
@@ -59,3 +59,4 @@ export declare const validateCMVolumeMountPath: (value: string) => {
|
|
59
59
|
message: string;
|
60
60
|
};
|
61
61
|
export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;
|
62
|
+
export declare const validateEmail: (email: string) => ValidationResponseType;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" vector-effect="non-scaling-effect">
|
2
|
-
<path d="M13.6084 8.75V4.58333L9.99998 2.5L6.39154 4.58333V8.75M13.6084 8.75L9.99998 10.8333M13.6084 8.75L17.2167 10.8333V15L13.6083 17.0833L10.0001 15M9.99998 10.8333L6.39154 8.75M9.99998 10.8333L10.0001 15M6.39154 8.75L2.7832 10.8333V15L6.39164 17.0833L10.0001 15"
|
2
|
+
<path d="M13.6084 8.75V4.58333L9.99998 2.5L6.39154 4.58333V8.75M13.6084 8.75L9.99998 10.8333M13.6084 8.75L17.2167 10.8333V15L13.6083 17.0833L10.0001 15M9.99998 10.8333L6.39154 8.75M9.99998 10.8333L10.0001 15M6.39154 8.75L2.7832 10.8333V15L6.39164 17.0833L10.0001 15" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
|
3
3
|
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 5.25h18m-18 0V18a.75.75 0 0 0 .75.75h16.5A.75.75 0 0 0 21 18V5.25m-18 0 9 8.25 9-8.25" vector-effect="non-scaling-stroke"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.643 9.714 3.5 14.857m0 0L8.643 20M3.5 14.857h10.857a4.571 4.571 0 0 0 4.572-4.571V4" vector-effect="non-scaling-stroke"/>
|
3
|
+
</svg>
|