@devtron-labs/devtron-fe-common-lib 1.15.3-beta-0 → 1.15.3-beta-2
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-4GamD7ww.js → @code-editor-CrTgpLX6.js} +5077 -5065
- package/dist/{@common-rjsf-D5al5CTH.js → @common-rjsf-DJeflKOl.js} +6 -6
- package/dist/{@framer-motion-CqekqZ92.js → @framer-motion-BhKAac90.js} +20 -20
- package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
- package/dist/{@react-dates-B6q1sdbJ.js → @react-dates-CfRo6n5e.js} +2065 -2140
- package/dist/{@react-select-LSvqtVJj.js → @react-select-DNDV8S9D.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-BpJty95h.js → @react-virtualized-sticky-tree-mXcyQzGx.js} +1 -1
- package/dist/{@vendor-DC3JvJ9U.js → @vendor-CA9d7Ztm.js} +20235 -19983
- package/dist/Common/Tooltip/types.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/index.js +844 -843
- package/package.json +6 -7
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TippyProps } from '@tippyjs/react';
|
2
|
-
import { SupportedKeyboardKeysType } from '
|
2
|
+
import { SupportedKeyboardKeysType } from '../Hooks/UseRegisterShortcut/types';
|
3
3
|
type BaseTooltipProps = {
|
4
4
|
/**
|
5
5
|
* If true, show tippy on truncate
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { UseBreadcrumbProps } from '
|
1
|
+
import { UseBreadcrumbProps } from '../../../Common/BreadCrumb/Types';
|
2
2
|
import { CMSecretComponentType } from '../../../Shared/Services';
|
3
3
|
import { BuildInfraAPIVersionType, BuildInfraConfigTypes, BuildInfraFormFieldType, BuildInfraInheritActionsOnSubValues, BuildInfraLocators, BuildInfraMetaConfigTypes, BuildInfraToleranceEffectType, BuildInfraToleranceOperatorType, HandleProfileInputChangeType, InfraConfigWithSubValues, ProfileInputErrorType, RequestLimitConfigType, TargetPlatformErrorFields, ValidateRequestLimitType } from './types';
|
4
4
|
export declare const BUILD_INFRA_INPUT_CONSTRAINTS: {
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ComponentSizeType } from '../../constants';
|
2
|
+
import { IconBaseColorType } from '../../types';
|
3
|
+
import { IconsProps } from '../Icon';
|
4
|
+
export type BadgeVariants = 'default' | 'negative' | 'negative-grey' | 'positive' | 'warning' | 'neutral' | 'custom';
|
5
|
+
export type BadgeProps = {
|
6
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.xxs | ComponentSizeType.xxxs>;
|
7
|
+
startIconProps?: Omit<IconsProps, 'color' | 'size'>;
|
8
|
+
endIconProps?: Omit<IconsProps, 'color' | 'size'>;
|
9
|
+
label: string;
|
10
|
+
} & ({
|
11
|
+
variant?: Exclude<BadgeVariants, 'custom'>;
|
12
|
+
fontColor?: never;
|
13
|
+
bgColor?: never;
|
14
|
+
} | {
|
15
|
+
variant: 'custom';
|
16
|
+
fontColor: IconBaseColorType;
|
17
|
+
bgColor: IconBaseColorType;
|
18
|
+
});
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { IconBaseColorType } from '../../types';
|
2
|
+
import { BadgeProps } from './types';
|
3
|
+
export declare const getClassNameAccToVariant: (variant: BadgeProps["variant"]) => {
|
4
|
+
styles: string;
|
5
|
+
iconColor: IconBaseColorType;
|
6
|
+
};
|
7
|
+
export declare const getClassNameAccToSize: (size: BadgeProps["size"]) => "fs-11 lh-16 px-4 py-1" | "fs-12 lh-16 px-6 py-2" | "fs-13 lh-20 px-6 py-2";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { APIOptions, DrawerProps } from '../../../Common/index';
|
3
|
-
import { Entity } from '
|
3
|
+
import { Entity } from '../../../Common/SegmentedBarChart/types';
|
4
4
|
import { ConfirmationModalProps } from '../ConfirmationModal/types';
|
5
5
|
import { getProgressingStateForStatus } from '../Security';
|
6
6
|
interface BulkOperationAdditionalKeysType {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DeploymentConfigDiffProps } from '
|
1
|
+
import { DeploymentConfigDiffProps } from '../../DeploymentConfigDiff';
|
2
2
|
import { History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const renderDeploymentHistoryConfig: (config: DeploymentConfigDiffProps["configList"], heading: string, pathname: string, hideDiffState: boolean) => JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
2
|
import { UseUrlFiltersReturnType } from '../../../../Common/Hooks';
|
3
|
-
import { DeploymentConfigDiffProps } from '
|
3
|
+
import { DeploymentConfigDiffProps } from '../../DeploymentConfigDiff';
|
4
4
|
import { EnvResourceType } from '../../../Services';
|
5
5
|
import { History, HistoryLogsProps } from '../types';
|
6
6
|
export interface DeploymentHistoryConfigDiffQueryParams {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SelectPickerOptionType } from '
|
1
|
+
import { SelectPickerOptionType } from '../../SelectPicker';
|
2
2
|
import { DeploymentHistorySingleValue, History } from '../types';
|
3
3
|
import { DeploymentHistoryConfigDiffProps } from './types';
|
4
4
|
export declare const getPipelineDeployments: (triggerHistory: DeploymentHistoryConfigDiffProps["triggerHistory"]) => History[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CSSProperties, MutableRefObject, ReactElement, ReactNode } from 'react';
|
2
|
-
import { SupportedKeyboardKeysType } from '
|
2
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
3
3
|
import { DeploymentAppTypes, FilterConditionsListType, ImageComment, OptionType, PaginationProps, PromotionApprovalMetadataType, ReleaseTag, ResponseType, TooltipProps, UserApprovalMetadataType, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
5
5
|
import { AggregationKeys, AppDetails, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, DeploymentStatusTimelineType, DeploymentStrategyType, GitTriggers, Node, NodeType, ResourceKindType, ResourceVersionType, TargetPlatformsDTO } from '../../types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SupportedKeyboardKeysType } from '
|
1
|
+
import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
|
2
2
|
export declare const PREVIOUS_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
3
3
|
export declare const NEXT_MATCH_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
4
4
|
export declare const REPLACE_SHORTCUT_KEYS: SupportedKeyboardKeysType[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MouseEventHandler, ReactElement } from 'react';
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
3
|
-
import { GenericFilterEmptyStateProps } from '
|
3
|
+
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
4
4
|
import { GenericEmptyStateType } from '../../../Common/Types';
|
5
5
|
import { APIResponseHandlerProps } from '../APIResponseHandler';
|
6
6
|
type BaseGenericInfoCardProps = {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
1
|
+
import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, SeveritiesDTO, StatusType, TablePropsType } from '../types';
|
2
2
|
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"], hidePolicy: boolean) => {
|
3
3
|
headers: ({
|
4
4
|
headerText: string;
|
@@ -10,7 +10,7 @@ export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"
|
|
10
10
|
headerText: string;
|
11
11
|
isSortable: boolean;
|
12
12
|
width: number;
|
13
|
-
compareFunc: (a:
|
13
|
+
compareFunc: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
14
14
|
defaultSortOrder: import('../types').SortOrderEnum;
|
15
15
|
})[];
|
16
16
|
rows: {
|
@@ -34,7 +34,7 @@ export declare const getCodeScanLicense: (data: CodeScan["license"]) => {
|
|
34
34
|
headerText: string;
|
35
35
|
isSortable: boolean;
|
36
36
|
width: number;
|
37
|
-
compareFunc: (a:
|
37
|
+
compareFunc: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
38
38
|
defaultSortOrder: import('../types').SortOrderEnum;
|
39
39
|
})[];
|
40
40
|
rows: {
|
@@ -57,7 +57,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
|
|
57
57
|
headerText: string;
|
58
58
|
isSortable: boolean;
|
59
59
|
width: number;
|
60
|
-
compareFunc: (a: Record<
|
60
|
+
compareFunc: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
61
61
|
})[];
|
62
62
|
rows: {
|
63
63
|
id: number;
|
@@ -67,7 +67,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
|
|
67
67
|
cellContent: string;
|
68
68
|
} | {
|
69
69
|
component: JSX.Element;
|
70
|
-
cellContent: Partial<Record<
|
70
|
+
cellContent: Partial<Record<SeveritiesDTO, number>>;
|
71
71
|
})[];
|
72
72
|
}[];
|
73
73
|
};
|
@@ -81,7 +81,7 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
81
81
|
headerText: string;
|
82
82
|
isSortable: boolean;
|
83
83
|
width: number;
|
84
|
-
compareFunc: (a: Record<
|
84
|
+
compareFunc: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
85
85
|
})[];
|
86
86
|
rows: {
|
87
87
|
id: number;
|
@@ -91,7 +91,7 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
91
91
|
cellContent: string;
|
92
92
|
} | {
|
93
93
|
component: JSX.Element;
|
94
|
-
cellContent: Partial<Record<
|
94
|
+
cellContent: Partial<Record<SeveritiesDTO, number>>;
|
95
95
|
})[];
|
96
96
|
}[];
|
97
97
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
|
-
import { Entity } from '
|
2
|
+
import { Entity } from '../../../../Common/SegmentedBarChart/types';
|
3
3
|
import { ServerErrors } from '../../../../Common/ServerError';
|
4
4
|
import { GenericEmptyStateType } from '../../../../Common/Types';
|
5
5
|
import { LastExecutionResultType, Nodes, NodeType } from '../../../types';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ImageCardAccordionProps } from '
|
1
|
+
import { ImageCardAccordionProps } from '../../ImageCardAccordion/types';
|
2
2
|
import { MaterialSecurityInfoType } from '../../../types';
|
3
3
|
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar'> {
|
4
4
|
artifactId: number;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Dispatch, FunctionComponent, PropsWithChildren, SetStateAction } from 'react';
|
2
|
-
import { GenericFilterEmptyStateProps } from '
|
2
|
+
import { GenericFilterEmptyStateProps } from '../../../Common/EmptyState/types';
|
3
3
|
import { UseStateFiltersProps, UseStateFiltersReturnType, UseUrlFiltersProps } from '../../../Common/Hooks';
|
4
4
|
import { GenericEmptyStateType } from '../../../Common/index';
|
5
5
|
import { SortableTableHeaderCellProps, useResizableTableConfig } from '../../../Common/SortableTableHeaderCell';
|
@@ -7,6 +7,7 @@ export * from './APIResponseHandler';
|
|
7
7
|
export * from './AppStatusModal';
|
8
8
|
export * from './ArtifactInfoModal';
|
9
9
|
export * from './Backdrop';
|
10
|
+
export * from './Badge';
|
10
11
|
export * from './BulkOperations';
|
11
12
|
export * from './BulkSelection';
|
12
13
|
export * from './Button';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
|
|
2
2
|
import { PromptProps } from 'react-router-dom';
|
3
3
|
import { StrictRJSFSchema } from '@rjsf/utils';
|
4
4
|
import { Pair } from 'yaml';
|
5
|
-
import { MaterialHistoryType } from '
|
5
|
+
import { MaterialHistoryType } from './Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
7
|
import { AggregatedNodes, PodMetadatum } from './Components';
|
8
8
|
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { USER_PREFERENCES_ATTRIBUTE_KEY } from '
|
2
|
-
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '
|
1
|
+
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
2
|
+
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
|
3
3
|
import { BaseAppMetaData } from '../../Services';
|
4
4
|
import { ResourceKindType } from '../../types';
|
5
5
|
export interface GetUserPreferencesQueryParamsType {
|