@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 CHANGED
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
 
7
7
  exports.usePluginSDK = _a.usePluginSDK;
8
8
  exports.useInjectCSS = _a.useInjectCSS;
9
- exports.WorkspaceFileTree = _a.WorkspaceFileTree;
9
+ exports.WorkspaceFileManagement = _a.WorkspaceFileManagement;
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 WorkspaceFileTree(props: any): React.ReactNode;
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
@@ -2,4 +2,4 @@ var _a = window.__ELEVO_PLUGIN_API__ || {};
2
2
 
3
3
  export const usePluginSDK = _a.usePluginSDK;
4
4
  export const useInjectCSS = _a.useInjectCSS;
5
- export const WorkspaceFileTree = _a.WorkspaceFileTree;
5
+ export const WorkspaceFileManagement = _a.WorkspaceFileManagement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevo-ai/plugin-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.5.0-alpha.0",
4
4
  "description": "Elevo Plugin SDK - Build plugins for the Elevo platform",
5
5
  "type": "module",
6
6
  "main": "./index.cjs.js",