diff --git a/ui/custom-elements.json b/ui/custom-elements.json index 5449a1c..a3c0922 100644 --- a/ui/custom-elements.json +++ b/ui/custom-elements.json @@ -57,7 +57,7 @@ "name": "undoCancellation", "return": { "type": { - "text": "Promise" + "text": "Promise" } }, "parameters": [ @@ -108,6 +108,23 @@ } } ] + }, + { + "kind": "method", + "name": "getUndoneCancellationsFor", + "return": { + "type": { + "text": "Promise>" + } + }, + "parameters": [ + { + "name": "actionHash", + "type": { + "text": "ActionHash" + } + } + ] } ], "superclass": { @@ -158,6 +175,11 @@ "name": "cancellationsFor", "default": "new LazyHoloHashMap((cancelledHash: ActionHash) =>\n lazyLoadAndPoll(\n async () => this.client.getCancellationsFor(cancelledHash),\n 4000\n )\n )" }, + { + "kind": "field", + "name": "undoneCancellationsFor", + "default": "new LazyHoloHashMap((cancelledHash: ActionHash) =>\n lazyLoadAndPoll(\n async () => this.client.getUndoneCancellationsFor(cancelledHash),\n 4000\n )\n )" + }, { "kind": "field", "name": "cancellations", diff --git a/ui/package.json b/ui/package.json index 96401a2..c704d7b 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,6 +1,6 @@ { "name": "@holochain-open-dev/cancellations", - "version": "0.1.1", + "version": "0.1.2", "scripts": { "start": "vite --clearScreen false --port $UI_PORT", "build": "npm run lint && tsc && npm run analyze -- --exclude dist",