@devtron-labs/devtron-fe-common-lib 1.15.3-beta-0 → 1.15.3-beta-1

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.
Files changed (34) hide show
  1. package/dist/{@code-editor-4GamD7ww.js → @code-editor-Bd6MuRxN.js} +5075 -5062
  2. package/dist/{@common-rjsf-D5al5CTH.js → @common-rjsf-DPDULtgg.js} +6 -6
  3. package/dist/{@framer-motion-CqekqZ92.js → @framer-motion-BhKAac90.js} +20 -20
  4. package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
  5. package/dist/{@react-dates-B6q1sdbJ.js → @react-dates-CfRo6n5e.js} +2065 -2140
  6. package/dist/{@react-select-LSvqtVJj.js → @react-select-DNDV8S9D.js} +6 -6
  7. package/dist/{@react-virtualized-sticky-tree-BpJty95h.js → @react-virtualized-sticky-tree-mXcyQzGx.js} +1 -1
  8. package/dist/{@vendor-DC3JvJ9U.js → @vendor-CA9d7Ztm.js} +20235 -19983
  9. package/dist/Common/Tooltip/types.d.ts +1 -1
  10. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
  11. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
  12. package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
  13. package/dist/Shared/Components/Badge/index.d.ts +2 -0
  14. package/dist/Shared/Components/Badge/types.d.ts +18 -0
  15. package/dist/Shared/Components/Badge/utils.d.ts +7 -0
  16. package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
  17. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
  18. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
  19. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
  20. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
  21. package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
  22. package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
  23. package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -1
  24. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
  25. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
  26. package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
  27. package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
  28. package/dist/Shared/Components/Table/types.d.ts +1 -1
  29. package/dist/Shared/Components/index.d.ts +1 -0
  30. package/dist/Shared/Helpers.d.ts +1 -1
  31. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
  32. package/dist/Shared/constants.d.ts +1 -0
  33. package/dist/index.js +844 -843
  34. package/package.json +6 -7
@@ -1,5 +1,5 @@
1
1
  import { TippyProps } from '@tippyjs/react';
2
- import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
2
+ import { SupportedKeyboardKeysType } from '../Hooks/UseRegisterShortcut/types';
3
3
  type BaseTooltipProps = {
4
4
  /**
5
5
  * If true, show tippy on truncate
@@ -40,6 +40,7 @@ export interface CDFormType {
40
40
  deploymentAppType: string;
41
41
  deploymentAppName?: string;
42
42
  releaseMode: ReleaseMode;
43
+ isCustomChart: boolean;
43
44
  triggerType: string;
44
45
  preBuildStage?: PipelineBuildStageType;
45
46
  postBuildStage?: PipelineBuildStageType;
@@ -1,4 +1,4 @@
1
- import { UseBreadcrumbProps } from '@Common/BreadCrumb/Types';
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,3 @@
1
+ import { BadgeProps } from './types';
2
+ declare const Badge: ({ label, bgColor, fontColor, endIconProps, startIconProps, variant, size, }: BadgeProps) => JSX.Element;
3
+ export default Badge;
@@ -0,0 +1,2 @@
1
+ export { default as Badge } from './Badge';
2
+ export type { BadgeProps } from './types';
@@ -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 '@Common/SegmentedBarChart/types';
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 '@Shared/Components/DeploymentConfigDiff';
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 '@Shared/Components/DeploymentConfigDiff';
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 '@Shared/Components/SelectPicker';
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 '@Common/Hooks/UseRegisterShortcut/types';
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 '@Common/Hooks/UseRegisterShortcut/types';
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 '@Common/EmptyState/types';
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 { ActionMenuProps } from '@Shared/Components/ActionMenu';
1
+ import { ActionMenuProps } from '../../ActionMenu';
2
2
  import { PageHeaderType } from '../types';
3
3
  export interface HeaderWithCreateButtonProps {
4
4
  headerName: string;
@@ -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: import('../types').SeveritiesDTO, b: import('../types').SeveritiesDTO) => number;
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: import('../types').SeveritiesDTO, b: import('../types').SeveritiesDTO) => number;
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<import('../types').SeveritiesDTO, number>, b: Record<import('../types').SeveritiesDTO, number>) => number;
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<import('../types').SeveritiesDTO, number>>;
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<import('../types').SeveritiesDTO, number>, b: Record<import('../types').SeveritiesDTO, number>) => number;
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<import('../types').SeveritiesDTO, number>>;
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 '@Common/SegmentedBarChart/types';
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';
@@ -0,0 +1,6 @@
1
+ import { SeveritiesDTO } from './SecurityModal';
2
+ declare const SeverityChip: ({ severity, count }: {
3
+ severity: SeveritiesDTO;
4
+ count?: number;
5
+ }) => JSX.Element;
6
+ export default SeverityChip;
@@ -1,4 +1,4 @@
1
- import { ImageCardAccordionProps } from '@Shared/Components/ImageCardAccordion/types';
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 '@Common/EmptyState/types';
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';
@@ -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 '@Shared/Services/app.types';
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 '@Shared/Hooks/useUserPreferences/constants';
2
- import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
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 {
@@ -356,6 +356,7 @@ export declare const ANSI_UP_REGEX: RegExp;
356
356
  */
357
357
  export declare enum ComponentSizeType {
358
358
  xxs_small_icon = "xxs-small-icon",
359
+ xxxs = "xxxs",
359
360
  xxs = "xxs",
360
361
  xs = "xs",
361
362
  small = "small",