@elevo-ai/plugin-sdk 0.4.1 → 0.5.0-alpha.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/index.cjs.js +1 -1
- package/index.d.ts +15 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface WorkspaceFile {
|
|
|
11
11
|
is_dir: boolean;
|
|
12
12
|
mod_time: string;
|
|
13
13
|
permission: 'readonly' | 'readwrite';
|
|
14
|
+
children?: WorkspaceFile[];
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -206,4 +207,17 @@ export interface ElevoPluginSDK {
|
|
|
206
207
|
|
|
207
208
|
export declare function usePluginSDK(): ElevoPluginSDK;
|
|
208
209
|
export declare function useInjectCSS(cssText: string): void;
|
|
209
|
-
export declare function
|
|
210
|
+
export declare function WorkspaceFileManagement(props: WorkspaceFileTreeProps): React.ReactNode;
|
|
211
|
+
|
|
212
|
+
export interface WorkspaceFileManagementProps {
|
|
213
|
+
/** Header label. Default: 'Files' */
|
|
214
|
+
title?: string;
|
|
215
|
+
/** Enable file write operations (create/upload/rename/delete/move). Default: true */
|
|
216
|
+
canEdit?: boolean;
|
|
217
|
+
/** Whether the file tree starts expanded. Default: true */
|
|
218
|
+
defaultExpanded?: boolean;
|
|
219
|
+
/** Called when the user clicks a file node */
|
|
220
|
+
onFileClick?: (file: WorkspaceFile) => void;
|
|
221
|
+
/** Optional className for the root element */
|
|
222
|
+
className?: string;
|
|
223
|
+
}
|
package/index.esm.js
CHANGED