rita-workspace 0.4.4 → 0.4.6

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/index.d.mts CHANGED
@@ -105,6 +105,7 @@ interface WorkspaceContextValue {
105
105
  duplicateCurrentDrawing: () => Promise<Drawing | null>;
106
106
  saveCurrentDrawing: (elements: unknown[], appState: Record<string, unknown>, files?: Record<string, unknown>) => Promise<void>;
107
107
  saveDrawingById: (id: string, elements: unknown[], appState: Record<string, unknown>, files?: Record<string, unknown>) => Promise<void>;
108
+ refreshDrawings: () => Promise<void>;
108
109
  exportWorkspace: () => Promise<void>;
109
110
  importWorkspace: () => Promise<void>;
110
111
  exportDrawingAsExcalidraw: (id: string) => Promise<void>;
@@ -214,36 +215,17 @@ declare const WorkspaceMenuItems: React.FC<WorkspaceMenuItemsProps>;
214
215
  /**
215
216
  * Drawings Dialog
216
217
  *
217
- * A modal dialog for managing all drawings in the workspace.
218
+ * A draggable modal dialog for managing all drawings in the workspace.
218
219
  * Provides full CRUD operations: view, rename, delete, create new.
219
220
  */
220
221
 
221
222
  interface DrawingsDialogProps {
222
- /**
223
- * Whether the dialog is open
224
- */
225
223
  open: boolean;
226
- /**
227
- * Called when the dialog should close
228
- */
229
224
  onClose: () => void;
230
- /**
231
- * Called when a drawing is selected
232
- */
233
225
  onDrawingSelect?: (drawing: Drawing) => void;
234
- /**
235
- * Language code (e.g., 'sv', 'en', 'sv-SE')
236
- * Falls back to English if not supported
237
- */
238
226
  lang?: string;
239
- /**
240
- * Optional thumbnail renderer for each drawing
241
- */
242
227
  renderThumbnail?: (drawing: Drawing) => React.ReactNode;
243
228
  }
244
- /**
245
- * DrawingsDialog - modal for managing workspace drawings
246
- */
247
229
  declare const DrawingsDialog: React.FC<DrawingsDialogProps>;
248
230
 
249
231
  interface ExcalidrawAPI {
package/dist/index.d.ts CHANGED
@@ -105,6 +105,7 @@ interface WorkspaceContextValue {
105
105
  duplicateCurrentDrawing: () => Promise<Drawing | null>;
106
106
  saveCurrentDrawing: (elements: unknown[], appState: Record<string, unknown>, files?: Record<string, unknown>) => Promise<void>;
107
107
  saveDrawingById: (id: string, elements: unknown[], appState: Record<string, unknown>, files?: Record<string, unknown>) => Promise<void>;
108
+ refreshDrawings: () => Promise<void>;
108
109
  exportWorkspace: () => Promise<void>;
109
110
  importWorkspace: () => Promise<void>;
110
111
  exportDrawingAsExcalidraw: (id: string) => Promise<void>;
@@ -214,36 +215,17 @@ declare const WorkspaceMenuItems: React.FC<WorkspaceMenuItemsProps>;
214
215
  /**
215
216
  * Drawings Dialog
216
217
  *
217
- * A modal dialog for managing all drawings in the workspace.
218
+ * A draggable modal dialog for managing all drawings in the workspace.
218
219
  * Provides full CRUD operations: view, rename, delete, create new.
219
220
  */
220
221
 
221
222
  interface DrawingsDialogProps {
222
- /**
223
- * Whether the dialog is open
224
- */
225
223
  open: boolean;
226
- /**
227
- * Called when the dialog should close
228
- */
229
224
  onClose: () => void;
230
- /**
231
- * Called when a drawing is selected
232
- */
233
225
  onDrawingSelect?: (drawing: Drawing) => void;
234
- /**
235
- * Language code (e.g., 'sv', 'en', 'sv-SE')
236
- * Falls back to English if not supported
237
- */
238
226
  lang?: string;
239
- /**
240
- * Optional thumbnail renderer for each drawing
241
- */
242
227
  renderThumbnail?: (drawing: Drawing) => React.ReactNode;
243
228
  }
244
- /**
245
- * DrawingsDialog - modal for managing workspace drawings
246
- */
247
229
  declare const DrawingsDialog: React.FC<DrawingsDialogProps>;
248
230
 
249
231
  interface ExcalidrawAPI {