@devtron-labs/devtron-fe-common-lib 1.22.0-beta-1 → 1.22.0-beta-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.
@@ -1,7 +1,7 @@
1
1
  import { j as n, aM as v, aO as J, aN as K } from "./@vendor-CtCMPfdc.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 w, c as N, b as F, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-CKqO2Olp.js";
4
+ import { T as O, j as w, c as N, b as F, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-zaV5HyNS.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";
@@ -74,7 +74,6 @@ export declare const URLS: {
74
74
  readonly INFRASTRUCTURE_MANAGEMENT_CHART_STORE_DISCOVER: "/infrastructure-management/chart-store/discover";
75
75
  readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: "/infrastructure-management/resource-browser";
76
76
  readonly INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: "/infrastructure-management/resource-watcher";
77
- readonly INFRASTRUCTURE_MANAGEMENT_AUDIT_LOGS: "/infrastructure-management/audit-logs";
78
77
  readonly SOFTWARE_RELEASE_MANAGEMENT: "/software-release-management";
79
78
  readonly COST_VISIBILITY: "/cost-visibility";
80
79
  readonly COST_VISIBILITY_OVERVIEW: "/cost-visibility/overview";
@@ -111,6 +110,7 @@ export declare const URLS: {
111
110
  };
112
111
  export declare const ROUTES: {
113
112
  readonly APP: "app";
113
+ readonly ATHENA: "athena";
114
114
  readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
115
115
  readonly APP_TEMPLATE_DATA: "app/template/data";
116
116
  readonly ENVIRONMENT_CATEGORIES: "env/categories";
@@ -3,4 +3,3 @@ export declare const getCommonHelpActionMenuItems: ({ docPath, }: Pick<PageHeade
3
3
  export declare const OSS_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
4
4
  export declare const ENTERPRISE_TRIAL_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
5
5
  export declare const ENTERPRISE_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
6
- export declare const NOTIFICATIONS_TEMP_WINDOW_TITLE = "Notifications";
@@ -1,3 +1,3 @@
1
1
  export * from './MainContextProvider';
2
2
  export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig, TempAppWindowConfig } from './types';
3
- export { SidePanelTab } from './types';
3
+ export { AIAgentContextSourceType, type AIAgentContextType, SidePanelTab } from './types';
@@ -24,9 +24,25 @@ export interface SidePanelConfig {
24
24
  aiSessionId?: string;
25
25
  isExpandedView?: boolean;
26
26
  }
27
- type AIAgentContextType = {
28
- path: string;
29
- context: Record<string, string>;
27
+ export declare enum AIAgentContextSourceType {
28
+ APP_DETAILS = "app-details",
29
+ RESOURCE_BROWSER_CLUSTER = "resource-browser-cluster"
30
+ }
31
+ export type AIAgentContextType = {
32
+ source: AIAgentContextSourceType.APP_DETAILS;
33
+ data: {
34
+ appId: number;
35
+ envId: number;
36
+ appName: string;
37
+ envName: string;
38
+ appType: 'devtronApp' | 'devtronHelmChart';
39
+ };
40
+ } | {
41
+ source: AIAgentContextSourceType.RESOURCE_BROWSER_CLUSTER;
42
+ data: {
43
+ clusterId: number;
44
+ clusterName: string;
45
+ };
30
46
  };
31
47
  export interface TempAppWindowConfig {
32
48
  /** Whether the temporary window is open */
@@ -117,6 +133,7 @@ export type MainContext = CommonMainContextProps & ({
117
133
  tempAppWindowConfig: TempAppWindowConfig;
118
134
  setTempAppWindowConfig: Dispatch<SetStateAction<TempAppWindowConfig>>;
119
135
  AIRecommendations?: FunctionComponent;
136
+ featureAskDevtronExpert: EnvironmentDataValuesDTO['featureAskDevtronExpert'];
120
137
  } | {
121
138
  isLicenseDashboard: true;
122
139
  serverMode: null;
@@ -135,6 +152,7 @@ export type MainContext = CommonMainContextProps & ({
135
152
  tempAppWindowConfig: null;
136
153
  setTempAppWindowConfig: null;
137
154
  AIRecommendations?: null;
155
+ featureAskDevtronExpert?: null;
138
156
  });
139
157
  export interface MainContextProviderProps {
140
158
  children: ReactNode;
@@ -39,6 +39,7 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
39
39
  canOnlyViewPermittedEnvOrgLevel: boolean;
40
40
  devtronManagedLicensingEnabled: boolean;
41
41
  isResourceRecommendationEnabled?: boolean;
42
+ featureAskDevtronExpert: boolean;
42
43
  }
43
44
  export interface ClusterMinDTO {
44
45
  id: number;
package/dist/index.d.ts CHANGED
@@ -135,7 +135,6 @@ export interface customEnv {
135
135
  GATEKEEPER_URL?: string;
136
136
  FEATURE_AI_INTEGRATION_ENABLE?: boolean;
137
137
  LOGIN_PAGE_IMAGE?: string;
138
- FEATURE_ASK_DEVTRON_EXPERT?: boolean;
139
138
  /**
140
139
  * If true, the manage traffic feature is enabled in apps & app groups.
141
140
  *
@@ -173,7 +172,6 @@ declare global {
173
172
  interface Window {
174
173
  __BASE_URL__: string;
175
174
  __ORCHESTRATOR_ROOT__: string;
176
- __ATHENA_ROOT__: string;
177
175
  _env_: customEnv;
178
176
  }
179
177
  }