@voltius/plugin-types 0.19.0 → 0.20.0
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/package.json +1 -1
- package/ui.d.ts +7 -0
package/package.json
CHANGED
package/ui.d.ts
CHANGED
|
@@ -6,9 +6,16 @@ declare module "@voltius/ui" {
|
|
|
6
6
|
export const Icon: ComponentType<{ icon: string; width?: number | string; className?: string }>;
|
|
7
7
|
export const InfoTooltip: ComponentType<{ text: string; children?: ReactNode }>;
|
|
8
8
|
export const BottomSheet: ComponentType<{ title?: string; onClose: () => void; children?: ReactNode }>;
|
|
9
|
+
export const MobileScreenHeader: ComponentType<{
|
|
10
|
+
title: string;
|
|
11
|
+
subtitle?: string | null;
|
|
12
|
+
onBack: () => void;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}>;
|
|
9
15
|
export function useAutosave<T>(value: T, save: (v: T) => void | Promise<void>, delayMs?: number): void;
|
|
10
16
|
export function useT(api: PluginAPI): PluginAPI["i18n"]["t"];
|
|
11
17
|
export function useSessionById(api: PluginAPI, sessionId: string): PluginSession | null;
|
|
18
|
+
export function useActiveSession(api: PluginAPI | null): PluginSession | null;
|
|
12
19
|
export const ConnectionAvatar: ComponentType<{
|
|
13
20
|
connection: {
|
|
14
21
|
connection_type?: "ssh" | "serial" | "ftp";
|