editor: use file system api for save as

This makes use of the new web file system api for a better user
experience when saving a file. It now shows a proper save as dialog
instead of just downloading the file automatically.

Fixes: https://github.com/pybricks/support/issues/84
This commit is contained in:
David Lechner
2021-12-27 12:38:51 -06:00
parent 653c03404d
commit f704d4d612
10 changed files with 199 additions and 28 deletions
+1
View File
@@ -29,6 +29,7 @@
"@types/redux-logger": "^3.0.9",
"@types/semver": "^7.3.9",
"@types/web-bluetooth": "^0.0.12",
"@types/wicg-file-system-access": "^2020.9.4",
"@types/zen-push": "^0.1.1",
"babel-plugin-macros": "^3.0.1",
"canvas": "^2.8.0",