@pstdio/workbench 0.3.0 → 0.4.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/dist/testing.d.ts CHANGED
@@ -333,6 +333,8 @@ declare interface DataTableRendererContribution {
333
333
  title: string;
334
334
  resourceKind?: string;
335
335
  columns?: DataTableRendererColumn[];
336
+ selectionMode?: "none" | "multiple";
337
+ selectionActions?: DataTableRendererSelectionAction[];
336
338
  rowActions?: DataTableRendererRowAction[];
337
339
  initialPageSize?: number;
338
340
  pageSizeOptions?: number[];
@@ -385,6 +387,14 @@ declare interface DataTableRendererRowAction {
385
387
  run(row: DataTableRendererRow): Promise<void> | void;
386
388
  }
387
389
 
390
+ declare interface DataTableRendererSelectionAction {
391
+ id: string;
392
+ label: string;
393
+ icon?: unknown;
394
+ destructive?: boolean;
395
+ run(rows: DataTableRendererRow[]): Promise<void> | void;
396
+ }
397
+
388
398
  declare interface DataTableRendererStoreState {
389
399
  renderers: Record<string, RegisteredDataTableRendererContribution>;
390
400
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pstdio/workbench",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/pufflyai/prompt-studio"
@@ -64,7 +64,7 @@
64
64
  "@dnd-kit/sortable": "^10.0.0",
65
65
  "@dnd-kit/utilities": "^3.2.2",
66
66
  "@pstdio/sdk": "^0.16.0",
67
- "@pstdio/ui": "^0.17.0",
67
+ "@pstdio/ui": "^0.18.0",
68
68
  "@tanstack/react-hotkeys": "0.10.0",
69
69
  "lucide-react": "^0.556.0",
70
70
  "rimless": "0.8.2",