@elevo-ai/plugin-sdk 0.4.2 → 0.5.0-alpha.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.
- package/index.cjs.js +2 -2
- package/index.d.ts +17 -43
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
|
|
7
7
|
exports.usePluginSDK = _a.usePluginSDK;
|
|
8
8
|
exports.useInjectCSS = _a.useInjectCSS;
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
9
|
+
exports.WorkspaceFileManagement = _a.WorkspaceFileManagement;
|
|
10
|
+
exports.ConversationPanel = _a.ConversationPanel;
|
package/index.d.ts
CHANGED
|
@@ -207,49 +207,23 @@ export interface ElevoPluginSDK {
|
|
|
207
207
|
|
|
208
208
|
export declare function usePluginSDK(): ElevoPluginSDK;
|
|
209
209
|
export declare function useInjectCSS(cssText: string): void;
|
|
210
|
-
export declare function
|
|
211
|
-
export declare function
|
|
212
|
-
|
|
213
|
-
export interface
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
files: WorkspaceFile[];
|
|
222
|
-
loading: boolean;
|
|
223
|
-
error: Error | null;
|
|
224
|
-
refresh: () => Promise<void>;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface WorkspaceFileTreeProps {
|
|
228
|
-
files: WorkspaceFile[];
|
|
229
|
-
loading?: boolean;
|
|
210
|
+
export declare function WorkspaceFileManagement(props: WorkspaceFileManagementProps): React.ReactNode;
|
|
211
|
+
export declare function ConversationPanel(props: ConversationPanelProps): React.ReactNode;
|
|
212
|
+
|
|
213
|
+
export interface WorkspaceFileManagementProps {
|
|
214
|
+
/** Header label. Default: 'Files' */
|
|
215
|
+
title?: string;
|
|
216
|
+
/** Enable file write operations (create/upload/rename/delete/move). Default: true */
|
|
217
|
+
canEdit?: boolean;
|
|
218
|
+
/** Whether the file tree starts expanded. Default: true */
|
|
219
|
+
defaultExpanded?: boolean;
|
|
220
|
+
/** Called when the user clicks a file node */
|
|
230
221
|
onFileClick?: (file: WorkspaceFile) => void;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
onDelete?: (file: WorkspaceFile) => void;
|
|
234
|
-
onCreateFile?: (parentPath: string) => void;
|
|
235
|
-
onCreateFolder?: (parentPath: string) => void;
|
|
236
|
-
onUpload?: (parentPath: string) => void;
|
|
237
|
-
onMove?: (sourcePath: string, targetPath: string) => void;
|
|
238
|
-
onSyncFromGit?: (parentPath: string) => void;
|
|
239
|
-
/** Path-based metadata for custom icons, read-only state, badges */
|
|
240
|
-
fileMetadata?: Map<string, FileNodeMetadata>;
|
|
241
|
-
enableContextMenu?: boolean;
|
|
242
|
-
enableDragDrop?: boolean;
|
|
243
|
-
compact?: boolean;
|
|
244
|
-
emptyState?: React.ReactNode;
|
|
222
|
+
/** Optional className for the root element */
|
|
223
|
+
className?: string;
|
|
245
224
|
}
|
|
246
225
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
/** Whether this node and its children are read-only (no rename/delete/upload) */
|
|
252
|
-
isReadOnly?: boolean;
|
|
253
|
-
/** Status badge text */
|
|
254
|
-
badge?: string;
|
|
255
|
-
}
|
|
226
|
+
export interface ConversationPanelProps {
|
|
227
|
+
workspaceId: string;
|
|
228
|
+
onCollapse?: () => void;
|
|
229
|
+
}
|
package/index.esm.js
CHANGED
|
@@ -2,5 +2,5 @@ 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
|
|
6
|
-
export const
|
|
5
|
+
export const WorkspaceFileManagement = _a.WorkspaceFileManagement;
|
|
6
|
+
export const ConversationPanel = _a.ConversationPanel;
|