@robotical/webapp-types 3.23.8 → 3.23.9

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marty-web-app",
3
- "version": "3.23.8",
3
+ "version": "3.23.9",
4
4
  "private": true,
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -216,7 +216,11 @@ function QRContent(_a) {
216
216
  return;
217
217
  }
218
218
  var disposition = reportQRScannerError(error);
219
- if (disposition === "detector-unavailable") {
219
+ if (disposition === "permission-denied") {
220
+ onScannerUnavailable();
221
+ window.applicationManager.toaster.error("Camera access was not granted. Allow camera access for Robotical in your phone settings, or for this website in your browser settings, then select QR Code Verification to try again. You can also use LED verification.", { autoClose: false });
222
+ }
223
+ else if (disposition === "detector-unavailable") {
220
224
  resetBarcodeDetectorModule();
221
225
  onScannerUnavailable();
222
226
  window.applicationManager.toaster.error("QR scanning is unavailable. Please use LED verification or select QR Code Verification to try again.", { autoClose: false });
@@ -229,6 +233,10 @@ function QRContent(_a) {
229
233
  onScannerUnavailable();
230
234
  window.applicationManager.toaster.error("The camera is already in use. Close the other app using it and select QR Code Verification to try again, or use LED verification.", { autoClose: false });
231
235
  }
236
+ else {
237
+ onScannerUnavailable();
238
+ window.applicationManager.toaster.error("The QR camera could not start. Select QR Code Verification to try again, or use LED verification.", { autoClose: false });
239
+ }
232
240
  };
233
241
  var isWebapp = ((_b = window.applicationManager.deviceInfo) === null || _b === void 0 ? void 0 : _b.manufacturer) === "Webapp";
234
242
  return (_jsx("div", __assign({ className: styles.QRcontainer }, { children: _jsx("div", __assign({ className: styles.QRscannerContainer }, { children: _jsx(SwitchableCameraScanner, { styles: { container: { transform: isWebapp ? 'scaleX(-1)' : 'none' } }, onError: onScannerError, formats: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/webapp-types",
3
- "version": "3.23.8",
3
+ "version": "3.23.9",
4
4
  "description": "Type definitions for the Application Manager",
5
5
  "main": "dist/application-manager.d.ts",
6
6
  "types": "dist/application-manager.d.ts",