Skip to content

Commit 52ff687

Browse files
committed
update deps
1 parent 4be94c9 commit 52ff687

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/editor/waldiezEditor.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export class WaldiezEditor extends DocumentWidget<SplitPanel, DocumentModel> {
200200
onRun: this._onRun.bind(this),
201201
onStepRun: this._onStepRun.bind(this),
202202
onConvert: this._onConvert.bind(this),
203+
onBenchmark: this._onBenchmark.bind(this),
203204
onUpload: this._onUpload.bind(this),
204205
checkpoints: {
205206
get: this._onGetCheckpoints.bind(this),
@@ -335,6 +336,14 @@ export class WaldiezEditor extends DocumentWidget<SplitPanel, DocumentModel> {
335336
//
336337
}
337338
}
339+
private async _onBenchmark(_flow: string, _path?: string | null) {
340+
showSnackbar({
341+
flowId: this.id,
342+
message: "Not yet :(",
343+
level: "warning",
344+
duration: 5000,
345+
});
346+
}
338347
private async _onGetCheckpoints(flowName: string): Promise<Record<string, any> | null> {
339348
try {
340349
return await handleGetCheckpoints(flowName);

src/widget.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface IWaldiezWidgetProps {
4343
checkpoint?: string | null,
4444
) => void;
4545
onConvert?: (flow: string, to: "py" | "ipynb") => void;
46+
onBenchmark?: (flow: string, path?: string | null) => void;
4647
onSave?: (content: string) => void;
4748
onUpload?: (files: File[]) => Promise<string[]>;
4849
checkpoints?: {
@@ -81,6 +82,7 @@ export class EditorWidget extends ReactWidget {
8182
onStepRun: props.onStepRun,
8283
onConvert: props.onConvert,
8384
onUpload: props.onUpload,
85+
onBenchmark: props.onBenchmark,
8486
checkpoints: props.checkpoints,
8587
monacoVsPath: props.vsPath,
8688
};

0 commit comments

Comments
 (0)