@devtron-labs/devtron-fe-common-lib 1.20.1-beta-1 → 1.20.1-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.
Files changed (29) hide show
  1. package/dist/{@code-editor-IJc1_9nZ.js → @code-editor-Pqkx5T0w.js} +2849 -2875
  2. package/dist/{@common-rjsf-H82t1TCw.js → @common-rjsf-CXAL5puF.js} +1 -1
  3. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.d.ts +1 -0
  4. package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/index.d.ts +1 -0
  5. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -1
  6. package/dist/Pages-Devtron-2.0/index.d.ts +0 -1
  7. package/dist/Shared/Components/Badge/utils.d.ts +1 -2
  8. package/dist/Shared/Components/Charts/index.d.ts +0 -1
  9. package/dist/Shared/Components/Charts/types.d.ts +0 -13
  10. package/dist/Shared/Components/Charts/utils.d.ts +3 -4
  11. package/dist/Shared/Components/Icon/Icon.d.ts +0 -5
  12. package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -2
  13. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +2 -7
  14. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +1 -1
  15. package/dist/Shared/Services/common.service.d.ts +2 -0
  16. package/dist/Shared/Services/types.d.ts +6 -0
  17. package/dist/index.js +993 -1032
  18. package/package.json +1 -1
  19. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/PageHeader.d.ts +0 -1
  20. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/constants.d.ts +0 -2
  21. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/index.d.ts +0 -1
  22. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/types.d.ts +0 -12
  23. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/utils.d.ts +0 -2
  24. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +0 -1
  25. package/dist/assets/ic-bg-build.7de825b3.svg +0 -13
  26. package/dist/assets/ic-bg-deploy.266711fe.svg +0 -22
  27. package/dist/assets/ic-bg-production-pipelines.5965401c.svg +0 -21
  28. package/dist/assets/ic-bg-project.84658405.svg +0 -12
  29. package/dist/assets/ic-bg-scan.2249360c.svg +0 -28
@@ -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-IJc1_9nZ.js";
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-Pqkx5T0w.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";
@@ -0,0 +1 @@
1
+ export declare const Overview: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Overview';
@@ -1 +1 @@
1
- export * from './Shared';
1
+ export * from './Overview';
@@ -1,3 +1,2 @@
1
- export * from './ApplicationManagement';
2
1
  export * from './CostVisibility';
3
2
  export * from './InfrastructureManagement';
@@ -1,8 +1,7 @@
1
- import { IconBaseColorType, IconBaseSizeType } from '../../types';
1
+ import { IconBaseColorType } from '../../types';
2
2
  import { BadgeProps } from './types';
3
3
  export declare const getClassNameAccToVariant: (variant: BadgeProps["variant"]) => {
4
4
  styles: string;
5
5
  iconColor: IconBaseColorType;
6
6
  };
7
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";
8
- export declare const COMPONENT_SIZE_TO_ICON_SIZE_MAP: Record<BadgeProps['size'], IconBaseSizeType>;
@@ -1,3 +1,2 @@
1
1
  export { default as Chart } from './Chart.component';
2
- export { CHART_COLORS } from './constants';
3
2
  export type { ChartColorKey, ChartProps, ChartType, SimpleDataset, SimpleDatasetForPie } from './types';
@@ -1,4 +1,3 @@
1
- import { ChartConfiguration, ChartOptions } from 'chart.js';
2
1
  import { AppThemeType } from '../../Providers';
3
2
  export type ChartType = 'area' | 'pie' | 'stackedBar' | 'stackedBarHorizontal' | 'line';
4
3
  type ColorTokensType = 'DeepPlum' | 'Magenta' | 'Slate' | 'Lavender' | 'SkyBlue' | 'AquaTeal' | 'LimeGreen' | 'CoralRed' | 'GoldenYellow' | 'CharcoalGray' | 'Gray';
@@ -42,14 +41,6 @@ export type ChartProps = {
42
41
  * @default false
43
42
  */
44
43
  hideAxis?: boolean;
45
- /**
46
- * Custom plugins for chart
47
- */
48
- customPlugins?: ChartConfiguration['plugins'];
49
- /**
50
- * Callback function for chart click events
51
- */
52
- onChartClick?: ChartOptions['onClick'];
53
44
  } & TypeAndDatasetsType;
54
45
  export type TransformDatasetProps = {
55
46
  appTheme: AppThemeType;
@@ -67,8 +58,4 @@ export type GetBackgroundAndBorderColorProps = TransformDatasetProps;
67
58
  export type TransformDataForChartProps = {
68
59
  appTheme: AppThemeType;
69
60
  } & TypeAndDatasetsType;
70
- export interface GetDefaultOptionsParams extends Pick<ChartProps, 'hideAxis' | 'onChartClick'> {
71
- type: ChartType;
72
- appTheme: AppThemeType;
73
- }
74
61
  export {};
@@ -1,12 +1,11 @@
1
1
  import { ChartDataset, ChartOptions, ChartType as ChartJSChartType } from 'chart.js';
2
- import { ChartType, GetDefaultOptionsParams, TransformDataForChartProps } from './types';
2
+ import { AppThemeType } from '../../Providers';
3
+ import { ChartType, TransformDataForChartProps } from './types';
3
4
  export declare const getChartJSType: (type: ChartType) => ChartJSChartType;
4
- export declare const getDefaultOptions: ({ type, appTheme, hideAxis, onChartClick, }: GetDefaultOptionsParams) => ChartOptions;
5
+ export declare const getDefaultOptions: (type: ChartType, appTheme: AppThemeType, hideAxis: boolean) => ChartOptions;
5
6
  export declare const transformDataForChart: (props: TransformDataForChartProps) => (ChartDataset<"line"> | {
6
7
  label: string;
7
8
  data: number[];
8
9
  backgroundColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
9
10
  borderColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
10
- pointBackgroundColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
11
- pointBorderColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
12
11
  })[];
@@ -18,13 +18,8 @@ export declare const iconMap: {
18
18
  'ic-aws-codecommit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
19
19
  'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
20
  'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
- 'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
21
  'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
- 'ic-bg-deploy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
22
  'ic-bg-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
- 'ic-bg-production-pipelines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
- 'ic-bg-project': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
- 'ic-bg-scan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
28
23
  'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
29
24
  'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
30
25
  'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,7 +1,5 @@
1
1
  import { Teams } from '../../../Common/Types';
2
- import { ClusterType } from '../../Services';
3
2
  import { AppsGroupedByProjectsType, EnvironmentsGroupedByClustersType } from './types';
4
3
  export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
5
4
  export declare const getProjectOptions: () => Promise<Pick<Teams, "id" | "name">[]>;
6
- export declare const getClusterOptions: () => Promise<ClusterType[]>;
7
5
  export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
@@ -1,6 +1,7 @@
1
1
  import { ServerErrors } from '../../../Common/ServerError';
2
+ import { getClusterOptions } from '../../index';
2
3
  import { EnvironmentType, ResourceKindType } from '../../types';
3
- import { getAppOptionsGroupedByProjects, getClusterOptions, getProjectOptions } from './service';
4
+ import { getAppOptionsGroupedByProjects, getProjectOptions } from './service';
4
5
  export interface AppType {
5
6
  name: string;
6
7
  }
@@ -13,12 +14,6 @@ export type EnvironmentsGroupedByClustersType = {
13
14
  clusterName: EnvironmentType['cluster'];
14
15
  envList: EnvironmentType[];
15
16
  }[];
16
- export interface ClusterDTO {
17
- id: number;
18
- cluster_name: string;
19
- isVirtualCluster: boolean;
20
- isProd: boolean;
21
- }
22
17
  export interface UseGetResourceKindsOptionsProps {
23
18
  resourcesToFetch: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.project | ResourceKindType.cluster | ResourceKindType.environment>[];
24
19
  }
@@ -25,7 +25,7 @@ export interface UserResourceKindActionType {
25
25
  [UserPreferenceResourceActions.RECENTLY_VISITED]: BaseRecentlyVisitedEntitiesTypes[];
26
26
  }
27
27
  export type UserPreferenceResourceType = Partial<Record<PreferredResourceKindType, UserResourceKindActionType>>;
28
- export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}`;
28
+ export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}` | 'search-app-list-view' | `chart-list-${number}` | 'search-chart-list-view' | `helm-app-list-${number}` | 'search-helm-app-list-view' | `cluster-list-${number}` | 'search-cluster-list-view';
29
29
  export interface GetUserPreferencesParsedDTO {
30
30
  viewPermittedEnvOnly?: boolean;
31
31
  /**
@@ -1,6 +1,8 @@
1
1
  import { AppConfigProps } from '../../Pages/index';
2
+ import { ClusterType } from '..';
2
3
  import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
3
4
  export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
4
5
  export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
5
6
  export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
6
7
  export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
8
+ export declare const getClusterOptions: () => Promise<ClusterType[]>;
@@ -40,4 +40,10 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
40
40
  devtronManagedLicensingEnabled: boolean;
41
41
  isResourceRecommendationEnabled?: boolean;
42
42
  }
43
+ export interface ClusterMinDTO {
44
+ id: number;
45
+ cluster_name: string;
46
+ isVirtualCluster: boolean;
47
+ isProd: boolean;
48
+ }
43
49
  export {};