@devtron-labs/devtron-fe-common-lib 1.15.1-beta-4 → 1.15.1-pre-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.
@@ -1,7 +1,7 @@
1
1
  import { j as n, as as b, au as k, at as W } from "./@vendor-DC3JvJ9U.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, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-DEeHamFw.js";
4
+ import { T as F, j as N, c as v, b as S, S as Y, i as z, a as w, d as A, e as G } from "./@code-editor-CUSi5KGA.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 $, getTemplate as B, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as ae, deepEquals as se } from "@rjsf/utils";
@@ -63,5 +63,5 @@ import { ButtonComponentType, ButtonProps } from './types';
63
63
  * <Button icon={<ICCube />} ariaLabel="Label" />
64
64
  * ```
65
65
  */
66
- declare const Button: import('react').ForwardRefExoticComponent<ButtonProps<ButtonComponentType> & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
66
+ declare const Button: <ComponentType extends ButtonComponentType>({ dataTestId, text, variant, size, style, fontWeight, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, isOpacityHoverChild, triggerAutoClickTimestamp, ...props }: ButtonProps<ComponentType>) => JSX.Element;
67
67
  export default Button;
@@ -20,7 +20,6 @@ export declare const iconMap: {
20
20
  'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
21
  'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
22
  'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
- 'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
23
  'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
24
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
25
  'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -53,7 +52,6 @@ export declare const iconMap: {
53
52
  'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
53
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
54
  'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
- 'ic-devtron-ai': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
55
  'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
56
  'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
57
  'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -139,7 +137,6 @@ export declare const iconMap: {
139
137
  'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
140
138
  'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
141
139
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
142
- 'ic-paper-plane': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
143
140
  'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
144
141
  'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
145
142
  'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -153,13 +150,11 @@ export declare const iconMap: {
153
150
  'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
154
151
  'ic-sort-descending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
155
152
  'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
156
- 'ic-sparkle-ai-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
157
153
  'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
158
154
  'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
159
155
  'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
160
156
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
161
157
  'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
162
- 'ic-stop-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
163
158
  'ic-strategy-blue-green-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
164
159
  'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
165
160
  'ic-strategy-canary-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,3 +1,3 @@
1
1
  import { TextareaProps } from './types';
2
- declare const Textarea: ({ name, label, textareaRef: textareaRefProp, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderRadiusConfig, labelTooltipConfig, labelTippyCustomizedConfig, hideFormFieldInfo, value, borderConfig, disableResize, newlineOnShiftEnter, ...props }: TextareaProps) => JSX.Element;
2
+ declare const Textarea: ({ name, label, fullWidth, error, helperText, warningText, layout, required, onBlur, shouldTrim, size, ariaLabel, borderRadiusConfig, labelTooltipConfig, labelTippyCustomizedConfig, hideFormFieldInfo, value, borderConfig, ...props }: TextareaProps) => JSX.Element;
3
3
  export default Textarea;
@@ -13,25 +13,9 @@ export interface TextareaProps extends Omit<FormFieldWrapperProps, 'children' |
13
13
  *
14
14
  * @default ComponentSizeType.large
15
15
  */
16
- size?: Extract<ComponentSizeType, ComponentSizeType.small | ComponentSizeType.medium | ComponentSizeType.large>;
16
+ size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
17
17
  /**
18
18
  * Value of the textarea
19
19
  */
20
20
  value: string;
21
- /**
22
- * If true, the textarea resize is disabled
23
- *
24
- * @default false
25
- */
26
- disableResize?: true;
27
- /**
28
- * Allows inserting a newline with Shift + Enter instead of Enter alone.
29
- *
30
- * When enabled, pressing Enter submits the form, while Shift + Enter inserts a newline.
31
- * Useful for forms where Enter should trigger submission, but multiline input is still needed.
32
- *
33
- * @default false
34
- */
35
- newlineOnShiftEnter?: boolean;
36
- textareaRef?: React.MutableRefObject<HTMLTextAreaElement> | React.RefCallback<HTMLTextAreaElement>;
37
21
  }
@@ -81,7 +81,6 @@ export * from './TargetPlatforms';
81
81
  export * from './Textarea';
82
82
  export * from './ThemeSwitcher';
83
83
  export * from './ToggleResolveScopedVariables';
84
- export * from './Typewriter';
85
84
  export * from './UnsavedChanges';
86
85
  export * from './UnsavedChangesDialog';
87
86
  export * from './UserIdentifier';
@@ -2,5 +2,4 @@ export * from './ImageSelectionUtility';
2
2
  export * from './MainContextProvider';
3
3
  export * from './ThemeProvider';
4
4
  export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
5
- export { SidePanelTab } from './types';
6
5
  export * from './UserEmailProvider';
@@ -11,21 +11,14 @@ export interface ReloadVersionConfigTypes {
11
11
  updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
12
12
  isRefreshing: boolean;
13
13
  }
14
- export declare enum SidePanelTab {
15
- DOCUMENTATION = "documentation",
16
- ASK_DEVTRON = "ask-devtron"
17
- }
18
14
  export interface SidePanelConfig {
19
- state: SidePanelTab | 'closed';
15
+ /** Determines whether the side panel is visible */
16
+ open: boolean;
20
17
  /** Optional flag to reset/reinitialize the side panel state */
21
18
  reinitialize?: boolean;
22
19
  /** URL to documentation that should be displayed in the panel */
23
20
  docLink: string | null;
24
21
  }
25
- type AIAgentContextType = {
26
- path: string;
27
- context: Record<string, string>;
28
- };
29
22
  type CommonMainContextProps = {
30
23
  setServerMode: (serverMode: SERVER_MODE) => void;
31
24
  isHelpGettingStartedClicked: boolean;
@@ -64,7 +57,6 @@ type CommonMainContextProps = {
64
57
  setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
65
58
  canFetchHelmAppStatus: boolean;
66
59
  setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
67
- setAIAgentContext: (aiAgentContext: AIAgentContextType) => void;
68
60
  setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
69
61
  };
70
62
  export type MainContext = CommonMainContextProps & ({
@@ -89,7 +81,6 @@ export type MainContext = CommonMainContextProps & ({
89
81
  * Used to conditionally render or enable features that depend on fe-lib
90
82
  */
91
83
  isFELibAvailable: boolean;
92
- aiAgentContext: AIAgentContextType;
93
84
  } | {
94
85
  isLicenseDashboard: true;
95
86
  serverMode: null;
@@ -104,7 +95,6 @@ export type MainContext = CommonMainContextProps & ({
104
95
  sidePanelConfig: null;
105
96
  isEnterprise: false;
106
97
  isFELibAvailable: false;
107
- aiAgentContext: null;
108
98
  });
109
99
  export interface MainContextProviderProps {
110
100
  children: ReactNode;
@@ -0,0 +1 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m22.898 11.262-5.933-2.196-2.215-7.26a.666.666 0 0 0-1.275 0l-2.214 7.26-5.934 2.196a.667.667 0 0 0 0 1.25l5.93 2.196 2.216 7.482a.666.666 0 0 0 1.279 0l2.216-7.483 5.93-2.195a.665.665 0 0 0 0-1.25" fill="#FFAC33"/><path d="m9.565 18.597-1.543-.571-.6-2.2a.665.665 0 0 0-1.286 0l-.6 2.2-1.542.57a.667.667 0 0 0 0 1.25l1.534.57.605 2.414a.667.667 0 0 0 1.293 0l.605-2.415 1.534-.57a.665.665 0 0 0 0-1.248M6.673 4.153 5.097 3.57l-.584-1.577a.666.666 0 0 0-1.251 0L2.679 3.57l-1.577.583a.667.667 0 0 0 0 1.251l1.577.583.583 1.577a.667.667 0 0 0 1.25 0l.584-1.577 1.577-.583a.667.667 0 0 0 0-1.25" fill="#FFCC4D"/></svg>
package/dist/index.d.ts CHANGED
@@ -141,7 +141,6 @@ export interface customEnv {
141
141
  GATEKEEPER_URL?: string;
142
142
  FEATURE_AI_INTEGRATION_ENABLE?: boolean;
143
143
  LOGIN_PAGE_IMAGE?: string;
144
- FEATURE_ASK_DEVTRON_EXPERT?: boolean;
145
144
  /**
146
145
  * If true, the manage traffic feature is enabled in apps & app groups.
147
146
  *