@devtron-labs/devtron-fe-common-lib 1.11.0-pre-1 → 1.11.0-pre-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-DdcMJa9q.js → @code-editor-O6-sNEQc.js} +4075 -4025
- package/dist/{@common-rjsf-BjRtMKCL.js → @common-rjsf-BrtFsF-H.js} +1 -1
- package/dist/{@framer-motion-3ACrfimm.js → @framer-motion-iFP8gkbg.js} +2 -2
- package/dist/Shared/Components/AnimatedTimer/AnimatedTimer.component.d.ts +3 -0
- package/dist/Shared/Components/AnimatedTimer/constants.d.ts +5 -0
- package/dist/Shared/Components/AnimatedTimer/index.d.ts +1 -0
- package/dist/Shared/Components/AnimatedTimer/types.d.ts +15 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +1 -0
- package/dist/Shared/Components/Icon/types.d.ts +3 -2
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/types.d.ts +10 -0
- package/dist/assets/ic-arrow-clockwise.b327e411.svg +3 -0
- package/dist/index.js +843 -842
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, au as y, aw as k, av as W } from "./@vendor-HJw8T7OP.js";
|
2
2
|
import V, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import K, { getDefaultRegistry as q } from "@rjsf/core";
|
4
|
-
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-
|
4
|
+
import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-O6-sNEQc.js";
|
5
5
|
import Q, { components as D } from "react-select";
|
6
6
|
import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as AnimatedTimer } from './AnimatedTimer.component';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { animate } from 'framer-motion';
|
2
|
+
import { TooltipProps } from '../../../Common/Tooltip';
|
3
|
+
import { IconBaseSizeType } from '../../index';
|
4
|
+
export interface AnimatedTimerProps extends Pick<Parameters<typeof animate>[2], 'onComplete'> {
|
5
|
+
/**
|
6
|
+
* The time in seconds for the timer to animate.
|
7
|
+
*/
|
8
|
+
duration: number;
|
9
|
+
onComplete?: () => void;
|
10
|
+
/**
|
11
|
+
* @default 24
|
12
|
+
*/
|
13
|
+
size?: IconBaseSizeType;
|
14
|
+
tooltipContent?: TooltipProps['content'];
|
15
|
+
}
|
@@ -5,6 +5,7 @@ export declare const iconMap: {
|
|
5
5
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
6
6
|
'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
7
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
|
+
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
9
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
10
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
11
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { FC, SVGProps } from 'react';
|
2
2
|
import { TooltipProps } from '@Common/Tooltip/types';
|
3
|
+
import { IconBaseColorType, IconBaseSizeType } from '../../index';
|
3
4
|
type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
|
4
5
|
export interface IconBaseProps {
|
5
6
|
/** The name of the icon to render. */
|
@@ -10,7 +11,7 @@ export interface IconBaseProps {
|
|
10
11
|
* The size of the icon in pixels.
|
11
12
|
* @default 16
|
12
13
|
*/
|
13
|
-
size?:
|
14
|
+
size?: IconBaseSizeType;
|
14
15
|
/** Props to configure the tooltip when hovering over the icon. */
|
15
16
|
tooltipProps?: TooltipProps;
|
16
17
|
/**
|
@@ -18,6 +19,6 @@ export interface IconBaseProps {
|
|
18
19
|
* If `null`, the default color present in icon is used.
|
19
20
|
* @example `'B500'`, `'N200'`, `'G50'`, `'R700'`
|
20
21
|
*/
|
21
|
-
color:
|
22
|
+
color: IconBaseColorType;
|
22
23
|
}
|
23
24
|
export {};
|
@@ -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(--R500)" | "var(--N300)" | "var(--
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--G500)" | "var(--Y500)" | "var(--R700)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { Pair } from 'yaml';
|
|
5
5
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
7
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
8
|
-
import { BorderConfigType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
8
|
+
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
11
11
|
* The text to be highlighted
|
@@ -40,7 +40,7 @@ export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatu
|
|
40
40
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
41
41
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
42
42
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
43
|
-
export declare const getTimeDifference: (startTime
|
43
|
+
export declare const getTimeDifference: ({ startTime, endTime, fallbackString, }: GetTimeDifferenceParamsType) => string;
|
44
44
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
45
45
|
export declare const sanitizeUserApprovalList: (approverList: UserApprovalInfo["approverList"]) => UserApprovalInfo["approverList"];
|
46
46
|
export declare const sanitizeApprovalConfigData: (approvalConfigData: ApprovalConfigDataType | null) => ApprovalConfigDataType;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -939,4 +939,14 @@ export type CountryISO2Type = ParsedCountry['iso2'];
|
|
939
939
|
export declare enum ResponseHeaders {
|
940
940
|
LICENSE_STATUS = "X-License-Status"
|
941
941
|
}
|
942
|
+
export type IconBaseSizeType = 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 28 | 30 | 32 | 34 | 36 | 40 | 42 | 44 | 48 | 72 | 80;
|
943
|
+
export type IconBaseColorType = `${'B' | 'N' | 'G' | 'Y' | 'R' | 'V' | 'O'}${`${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}00` | '50' | '0'}` | 'white' | 'black' | null;
|
944
|
+
export interface GetTimeDifferenceParamsType {
|
945
|
+
startTime: string;
|
946
|
+
endTime: string;
|
947
|
+
/**
|
948
|
+
* @default '-'
|
949
|
+
*/
|
950
|
+
fallbackString?: string;
|
951
|
+
}
|
942
952
|
export {};
|
@@ -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="M16.516 9.348h4.5m0 0v-4.5m0 4.5-3.182-3.182a8.25 8.25 0 1 0 0 11.668" vector-effect="non-scaling-stroke"/>
|
3
|
+
</svg>
|