@devtron-labs/devtron-fe-common-lib 1.17.0-pre-14 → 1.17.0-pre-15
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-B49vmoP6.js → @code-editor-B0uxjbrt.js} +4327 -4234
- package/dist/{@common-rjsf-D_UzQKC5.js → @common-rjsf-jd8y-UkA.js} +1 -1
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -0
- package/dist/Shared/Components/TempAppWindow/TempAppWindow.d.ts +1 -0
- package/dist/Shared/Components/TempAppWindow/index.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +18 -0
- package/dist/index.js +423 -422
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, au as y, aw as k, av as M } from "./@vendor-B_URIsso.js";
|
2
2
|
import W, { forwardRef as J, useMemo as P } from "react";
|
3
3
|
import V, { getDefaultRegistry as K } from "@rjsf/core";
|
4
|
-
import { T as N, j as w, c as v, b as F, S as q, i as Y, a as G, d as C, e as z } from "./@code-editor-
|
4
|
+
import { T as N, j as w, c as v, b as F, S as q, i as Y, a as G, d as C, e as z } from "./@code-editor-B0uxjbrt.js";
|
5
5
|
import { getUiOptions as I, getTemplate as D, getSubmitButtonOptions as Q, ADDITIONAL_PROPERTY_FLAG as B, errorId as X, englishStringTranslator as Z, TranslatableString as ee, titleId as te, canExpand as ne, deepEquals as re } from "@rjsf/utils";
|
6
6
|
import { ReactComponent as se } from "./assets/ic-add.cfaa779b.svg";
|
7
7
|
import { ReactComponent as ae } from "./assets/ic-warning.ecf7ff97.svg";
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PageHeaderType } from './types';
|
2
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, tippyProps, }: PageHeaderType) => JSX.Element;
|
2
|
+
declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -4,6 +4,7 @@ import { ActionMenuProps } from '../ActionMenu';
|
|
4
4
|
import { DOCUMENTATION } from '../DocLink';
|
5
5
|
export interface PageHeaderType {
|
6
6
|
headerName?: string;
|
7
|
+
headerImage?: string;
|
7
8
|
showTabs?: boolean;
|
8
9
|
additionalHeaderInfo?: () => JSX.Element;
|
9
10
|
renderHeaderTabs?: () => JSX.Element;
|
@@ -17,6 +18,7 @@ export interface PageHeaderType {
|
|
17
18
|
tippyMessage?: string;
|
18
19
|
onClickTippyButton?: () => void;
|
19
20
|
};
|
21
|
+
onClose?: () => void;
|
20
22
|
}
|
21
23
|
export interface ServerInfo {
|
22
24
|
currentVersion: string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const TempAppWindow: () => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './TempAppWindow';
|
@@ -85,6 +85,7 @@ export * from './TabGroup';
|
|
85
85
|
export * from './Table';
|
86
86
|
export * from './TagsKeyValueTable';
|
87
87
|
export * from './TargetPlatforms';
|
88
|
+
export * from './TempAppWindow';
|
88
89
|
export * from './Textarea';
|
89
90
|
export * from './ThemeSwitcher';
|
90
91
|
export * from './ToggleResolveScopedVariables';
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export * from './MainContextProvider';
|
2
|
-
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
2
|
+
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig, TempAppWindowConfig } from './types';
|
3
3
|
export { SidePanelTab } from './types';
|
@@ -26,6 +26,20 @@ type AIAgentContextType = {
|
|
26
26
|
path: string;
|
27
27
|
context: Record<string, string>;
|
28
28
|
};
|
29
|
+
export interface TempAppWindowConfig {
|
30
|
+
/** Whether the temporary window is open */
|
31
|
+
open: boolean;
|
32
|
+
/** Title of the temporary window */
|
33
|
+
title: string;
|
34
|
+
/** URL to load in iframe in the window */
|
35
|
+
url?: string;
|
36
|
+
/** Image URL to display in the window header */
|
37
|
+
image?: string;
|
38
|
+
/** Whether to show an "Open in new tab" button */
|
39
|
+
showOpenInNewTab?: boolean;
|
40
|
+
/** React component to render in the window */
|
41
|
+
component?: JSX.Element;
|
42
|
+
}
|
29
43
|
type CommonMainContextProps = {
|
30
44
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
31
45
|
isHelpGettingStartedClicked: boolean;
|
@@ -90,6 +104,8 @@ export type MainContext = CommonMainContextProps & ({
|
|
90
104
|
*/
|
91
105
|
isFELibAvailable: boolean;
|
92
106
|
aiAgentContext: AIAgentContextType;
|
107
|
+
tempAppWindowConfig: TempAppWindowConfig;
|
108
|
+
setTempAppWindowConfig: Dispatch<SetStateAction<TempAppWindowConfig>>;
|
93
109
|
} | {
|
94
110
|
isLicenseDashboard: true;
|
95
111
|
serverMode: null;
|
@@ -105,6 +121,8 @@ export type MainContext = CommonMainContextProps & ({
|
|
105
121
|
isEnterprise: false;
|
106
122
|
isFELibAvailable: false;
|
107
123
|
aiAgentContext: null;
|
124
|
+
tempAppWindowConfig: null;
|
125
|
+
setTempAppWindowConfig: null;
|
108
126
|
});
|
109
127
|
export interface MainContextProviderProps {
|
110
128
|
children: ReactNode;
|