@robotical/webapp-types 3.23.7 → 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.7",
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: [
@@ -266,6 +266,8 @@ var resources = {
266
266
  "connecting_to": "Connecting to",
267
267
  "connecting_loading": "This shouldn't take long!",
268
268
  "connecting_msg": "Connecting...",
269
+ "dismiss": "Dismiss",
270
+ "dismiss_connecting_modal": "Dismiss connecting dialog",
269
271
  "unsupported_web_bluetooth_browser": "This browser can't connect to Marty or Cog over Bluetooth. Please use Chrome or Edge, or use the iPad app.",
270
272
  "led_subtitle": "Check LED signals for verification.",
271
273
  "led_title": "LED Lights Verification",
@@ -382,8 +384,11 @@ var resources = {
382
384
  "activities": "Activities",
383
385
  "choose_robot_settings_prompt": "Choose a connected robot to configure.",
384
386
  "choose_robot_settings_title": "Choose Robot Settings",
387
+ "collapse_menu": "Collapse navigation menu",
385
388
  "currently_selected_robot": "Currently selected",
389
+ "expand_menu": "Expand navigation menu",
386
390
  "games": "Cog Games",
391
+ "help": "Help",
387
392
  "home": "Home",
388
393
  "open_robot_settings_for": "Open robot settings for {{name}}",
389
394
  "robot_settings_unavailable": "Connect a device to access robot settings",
@@ -391,6 +396,25 @@ var resources = {
391
396
  "robot_type_cog": "Cog",
392
397
  "robot_type_marty": "Marty"
393
398
  },
399
+ "page_titles": {
400
+ "accessibility_statement": "Accessibility Statement",
401
+ "activities": "Activities",
402
+ "blocks": "Blocks",
403
+ "blocks_jr": "Blocks Jr",
404
+ "codewheel": "Codewheel",
405
+ "cog_shooter_game": "Cog Shooter Game",
406
+ "configuration": "Configuration",
407
+ "games": "Games",
408
+ "help": "Help",
409
+ "home": "Home",
410
+ "jumping_game": "Jumping Game",
411
+ "marty_controller": "Marty Controller",
412
+ "maze": "Maze",
413
+ "robofly_game": "Robofly Game",
414
+ "sensor_dashboard": "Sensor Dashboard",
415
+ "skiing_game": "Skiing Game",
416
+ "space_shooter_game": "Space Shooter Game"
417
+ },
394
418
  "report_issue": {
395
419
  "app_issue_desc": "Report an application issue.",
396
420
  "app_issue_title": "App Issue",
@@ -5801,7 +5825,9 @@ var warnMissingTranslation = function (reportedLanguages, namespace, key, _fallb
5801
5825
  warnedMissingKeys.add(cacheKey);
5802
5826
  Logger.warn(SHOW_LOGS, TAG, "Missing translation for \"".concat(namespace, ":").concat(key, "\" (languages: ").concat(languageLabel, ")"));
5803
5827
  };
5804
- var warnOnMissingTranslations = true;
5828
+ // Missing translations are development diagnostics. Reporting them at runtime
5829
+ // floods Sentry breadcrumbs without identifying an application failure.
5830
+ var warnOnMissingTranslations = process.env.NODE_ENV !== 'production';
5805
5831
  i18n
5806
5832
  .use(initReactI18next)
5807
5833
  .init({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/webapp-types",
3
- "version": "3.23.7",
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",