@devtron-labs/devtron-fe-common-lib 1.19.4-pre-9 → 1.20.0-alpha-3
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-B6i0l4Cs.js → @code-editor-BS8YRK8i.js} +6811 -6665
- package/dist/{@common-rjsf-CxtlNCVs.js → @common-rjsf-jeWCms6o.js} +1 -1
- package/dist/Common/Constants.d.ts +0 -1
- package/dist/Common/SegmentedBarChart/utils.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +2 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
- package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +21 -0
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +10 -0
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
- package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
- package/dist/index.js +918 -912
- package/package.json +1 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, aI as v, aK as W, aJ as K } from "./@vendor-DMIFbFhR.js";
|
2
2
|
import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
|
3
3
|
import z, { getDefaultRegistry as Q } from "@rjsf/core";
|
4
|
-
import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as I, e as ne } from "./@code-editor-
|
4
|
+
import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as I, e as ne } from "./@code-editor-BS8YRK8i.js";
|
5
5
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
|
6
6
|
import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
|
7
7
|
import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
|
@@ -78,7 +78,6 @@ export declare const URLS: {
|
|
78
78
|
readonly COST_BREAKDOWN_ENVIRONMENTS: "/cost-visibility/breakdown/environments";
|
79
79
|
readonly COST_BREAKDOWN_PROJECTS: "/cost-visibility/breakdown/projects";
|
80
80
|
readonly COST_BREAKDOWN_APPLICATIONS: "/cost-visibility/breakdown/applications";
|
81
|
-
readonly COST_BREAKDOWN_ITEM_NAME: ":itemName";
|
82
81
|
readonly COST_BREAKDOWN_DETAIL: ":itemName/:view/:detail?";
|
83
82
|
readonly COST_CONFIGURATIONS: "/cost-visibility/configurations";
|
84
83
|
readonly SECURITY_CENTER: "/security-center";
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ComponentSizeType } from '../../Shared/constants';
|
2
|
-
export declare const getBarHeightForSize: (size: ComponentSizeType) => "h-20" | "h-8";
|
2
|
+
export declare const getBarHeightForSize: (size: ComponentSizeType) => "h-20" | "h-6" | "h-8";
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export { default as VirtualClusterSidebar } from './VirtualClusterSidebar';
|
@@ -37,6 +37,8 @@ export type ActionMenuItemType<T extends string | number = string | number> = Om
|
|
37
37
|
startIcon?: ActionMenuItemIconType;
|
38
38
|
/** Defines the item to be displayed at the end of the menu item. */
|
39
39
|
trailingItem?: TrailingItemType;
|
40
|
+
/** Prevents the menu from closing when the item is clicked. */
|
41
|
+
doNotCloseMenuOnClick?: boolean;
|
40
42
|
} & ConditionalActionMenuComponentType;
|
41
43
|
export type ActionMenuOptionType<T extends string | number> = {
|
42
44
|
/**
|
@@ -143,6 +143,7 @@ export declare const iconMap: {
|
|
143
143
|
'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
144
144
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
145
145
|
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
146
|
+
'ic-kubernetes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
146
147
|
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
147
148
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
148
149
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -155,6 +156,7 @@ export declare const iconMap: {
|
|
155
156
|
'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
156
157
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
157
158
|
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
159
|
+
'ic-magic-wand': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
158
160
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
159
161
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
160
162
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
2
|
+
import { AuthenticationType } from '../../types';
|
3
|
+
interface ValueErrorType<T = string> {
|
4
|
+
value: T;
|
5
|
+
error: string;
|
6
|
+
}
|
7
|
+
export interface PromoetheusConfig {
|
8
|
+
endpoint: ValueErrorType;
|
9
|
+
authType: ValueErrorType<AuthenticationType>;
|
10
|
+
userName: ValueErrorType;
|
11
|
+
password: ValueErrorType;
|
12
|
+
prometheusTlsClientKey: ValueErrorType;
|
13
|
+
prometheusTlsClientCert: ValueErrorType;
|
14
|
+
}
|
15
|
+
export interface PromoetheusConfigProps {
|
16
|
+
prometheusConfig: PromoetheusConfig;
|
17
|
+
handleOnChange: (event: SyntheticEvent) => void;
|
18
|
+
onPrometheusAuthTypeChange: (event: SyntheticEvent) => void;
|
19
|
+
isCostPrometheus?: boolean;
|
20
|
+
}
|
21
|
+
export {};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { FiltersTypeEnum, InternalTableProps } from './types';
|
2
|
-
declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
2
|
+
declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, id, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
|
3
3
|
export default InternalTable;
|
@@ -73,6 +73,7 @@ export * from './Plugin';
|
|
73
73
|
export * from './Popover';
|
74
74
|
export * from './PortalContainer';
|
75
75
|
export * from './ProgressBar';
|
76
|
+
export * from './PrometheusConfigurations';
|
76
77
|
export { default as QRCode } from './QRCode';
|
77
78
|
export * from './ReactSelect';
|
78
79
|
export * from './RegistryIcon';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -103,4 +103,5 @@ export declare const clearCookieOnLogout: () => void;
|
|
103
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
104
|
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
105
105
|
export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
|
106
|
+
export declare const YAMLtoJSON: (yamlString: string) => string;
|
106
107
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
2
2
|
import { InfoBlockProps } from './Components';
|
3
|
-
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType, RemoteConnectionType } from './types';
|
4
4
|
export declare const ARTIFACT_STATUS: {
|
5
5
|
PROGRESSING: string;
|
6
6
|
DEGRADED: string;
|
@@ -434,3 +434,4 @@ export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
|
434
434
|
export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
|
435
435
|
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
436
436
|
export declare const ALLOW_ACTION_OUTSIDE_FOCUS_TRAP = "allow-action-outside-focus-trap";
|
437
|
+
export declare const REMOTE_CONNECTION_TYPE_LABEL_MAP: Record<RemoteConnectionType, string>;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1114,6 +1114,16 @@ export interface PipelineDeploymentStrategy {
|
|
1114
1114
|
strategies: Strategy[];
|
1115
1115
|
error: ServerError;
|
1116
1116
|
}
|
1117
|
+
export declare enum RemoteConnectionType {
|
1118
|
+
Direct = "DIRECT",
|
1119
|
+
Proxy = "PROXY",
|
1120
|
+
SSHTunnel = "SSH"
|
1121
|
+
}
|
1122
|
+
export declare enum AuthenticationType {
|
1123
|
+
BASIC = "BASIC",
|
1124
|
+
ANONYMOUS = "ANONYMOUS",
|
1125
|
+
IAM = "IAM"
|
1126
|
+
}
|
1117
1127
|
/**
|
1118
1128
|
* Makes all props in T optional and set to never when isLoading is true.
|
1119
1129
|
* Used for components with loading states.
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<path fill="#326DE6" d="M7 21.384c.306.397.77.616 1.249.616h7.501c.479 0 .943-.236 1.25-.62l4.654-5.969c.306-.397.412-.904.306-1.397l-1.664-7.438a1.61 1.61 0 0 0-.866-1.11l-6.734-3.3A1.517 1.517 0 0 0 12.003 2c-.24 0-.479.054-.693.164L4.574 5.48a1.613 1.613 0 0 0-.864 1.11l-1.664 7.44c-.12.492 0 1 .306 1.397L7 21.383v.001Z"/>
|
3
|
+
<path fill="#fff" fill-rule="evenodd" d="M18.773 13.611c.14.003.28.014.418.034l.083.019.044.011a.44.44 0 0 1 .296.695.436.436 0 0 1-.49.154h-.005l-.005-.001-.004-.003-.043-.009-.071-.014a3.656 3.656 0 0 1-.392-.152 4.103 4.103 0 0 0-.761-.224.346.346 0 0 0-.244.091 6.593 6.593 0 0 0-.188-.032 5.673 5.673 0 0 1-2.52 3.16c.022.06.046.118.073.175a.342.342 0 0 0-.033.258c.106.242.236.474.388.69.085.112.162.23.234.35l.04.08.017.037a.438.438 0 0 1-.694.526.44.44 0 0 1-.096-.155l-.014-.028a2.176 2.176 0 0 1-.04-.083 3.637 3.637 0 0 1-.127-.4 4.05 4.05 0 0 0-.3-.732.346.346 0 0 0-.223-.136l-.043-.075-.05-.092a5.667 5.667 0 0 1-4.033-.01l-.1.179a.357.357 0 0 0-.189.091 3.037 3.037 0 0 0-.338.783c-.034.136-.076.27-.126.4a1.685 1.685 0 0 1-.036.072l-.018.038a.443.443 0 0 1-.246.26.437.437 0 0 1-.551-.196.44.44 0 0 1 .007-.435l.02-.043.037-.074c.071-.122.149-.238.234-.349a4.24 4.24 0 0 0 .396-.709.431.431 0 0 0-.04-.247l.08-.19a5.674 5.674 0 0 1-2.52-3.137l-.191.033a.486.486 0 0 0-.252-.088 4.12 4.12 0 0 0-.761.222 3.912 3.912 0 0 1-.392.15 1.345 1.345 0 0 1-.071.016l-.043.01h-.004l-.003.003h-.007a.44.44 0 0 1-.567-.499.437.437 0 0 1 .372-.35l.008-.001h.002l.009-.003c.034-.008.077-.02.109-.026a3.73 3.73 0 0 1 .418-.032c.266-.02.529-.062.784-.13a.603.603 0 0 0 .188-.19l.182-.052a5.626 5.626 0 0 1 .893-3.931l-.14-.125a.483.483 0 0 0-.088-.251 4.077 4.077 0 0 0-.65-.456 3.654 3.654 0 0 1-.363-.211l-.069-.055-.021-.018-.006-.004a.461.461 0 0 1-.108-.643.421.421 0 0 1 .348-.153.521.521 0 0 1 .304.114l.032.024.066.053c.102.096.198.199.288.305.179.195.376.374.589.531.08.043.173.051.26.026l.157.111a5.626 5.626 0 0 1 3.645-1.748l.012-.185a.474.474 0 0 0 .141-.225 4.065 4.065 0 0 0-.048-.79 3.661 3.661 0 0 1-.06-.415v-.124a.437.437 0 0 1 .615-.444.44.44 0 0 1 .26.444v.124c-.012.14-.032.278-.06.415a4.073 4.073 0 0 0-.05.79.346.346 0 0 0 .143.218v.01l.01.184A5.739 5.739 0 0 1 16.11 8.57l.166-.118a.48.48 0 0 0 .265-.028c.213-.157.41-.337.589-.533a3.42 3.42 0 0 1 .289-.304l.072-.057.025-.02a.438.438 0 1 1 .544.681l-.034.029c-.022.017-.043.035-.062.048a3.62 3.62 0 0 1-.363.212 4.096 4.096 0 0 0-.65.457.345.345 0 0 0-.082.245l-.072.063-.083.076a5.644 5.644 0 0 1 .91 3.921l.176.052c.044.079.11.144.19.188a4 4 0 0 0 .783.129Zm-7.786-5.554c.153-.035.309-.062.466-.08l-.129 2.285-.011.006a.384.384 0 0 1-.612.294l-.003.002-1.88-1.329a4.522 4.522 0 0 1 2.17-1.178Zm2.312 2.5 1.868-1.32a4.546 4.546 0 0 0-2.618-1.26l.128 2.283h.003a.381.381 0 0 0 .42.365.386.386 0 0 0 .193-.071l.006.003Zm3.211 2.365-2.212-.637-.002-.008a.386.386 0 0 1-.15-.662l-.003-.001 1.707-1.524c.523.848.753 1.842.657 2.832h.003Zm-2.944 1.22.882 2.129a4.497 4.497 0 0 0 1.822-2.283l-2.276-.384-.003.004a.386.386 0 0 0-.423.53l-.002.005Zm-.55 2.722a4.557 4.557 0 0 1-2.467-.126l1.11-2a.391.391 0 0 1 .537-.149.39.39 0 0 1 .143.148h.008l1.113 2.003a4.69 4.69 0 0 1-.444.124ZM9.56 16.26l.873-2.106-.005-.008a.383.383 0 0 0-.425-.529L10 13.614l-2.256.381c.34.935.979 1.732 1.817 2.266Zm-1.423-6.17 1.716 1.53-.002.01a.384.384 0 0 1-.151.66l-.001.007-2.2.633a4.474 4.474 0 0 1 .638-2.84Zm4.214 1.648h-.703l-.438.543.157.68.633.304.631-.303.158-.68-.438-.544Z" clip-rule="evenodd"/>
|
4
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
+
<path
|
3
|
+
stroke="#3B444C"
|
4
|
+
strokeLinecap="round"
|
5
|
+
strokeLinejoin="round"
|
6
|
+
strokeWidth="1.5"
|
7
|
+
d="M3 5.5h2.5m0 0H8m-2.5 0V3m0 2.5V8M13 20.5h1.5m0 0H16m-1.5 0V19m0 1.5V22m3.5-7h2m0 0h2m-2 0v-2m0 2v2m-6.586-9.243L4.222 16.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l9.193-9.192m-2.829-2.829 3.536-3.535a1 1 0 0 1 1.414 0l1.414 1.414a1 1 0 0 1 0 1.414l-3.535 3.536m-2.829-2.829 2.829 2.829"
|
8
|
+
vectorEffect="non-scaling-stroke"
|
9
|
+
/>
|
10
|
+
</svg>
|