@robotical/webapp-types 3.23.27 → 3.24.1

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.27",
3
+ "version": "3.24.1",
4
4
  "private": true,
5
5
  "engines": {
6
6
  "node": ">=20"
@@ -53,21 +53,21 @@
53
53
  "scripts": {
54
54
  "copy-space-shooter-assets": "node copy-space-shooter-assets.js",
55
55
  "copy-qr-wasm": "shx rm -rf ./public/qr-scanner && shx mkdir -p ./public/qr-scanner && shx cp ./node_modules/zxing-wasm/dist/reader/zxing_reader.wasm ./public/qr-scanner/zxing_reader.wasm",
56
- "copy-mb": "shx rm -rf ./public/MartyBlocks && shx mkdir -p ./public/MartyBlocks && shx cp -r ./node_modules/@robotical/martyblocks/dist/. ./public/MartyBlocks/",
56
+ "copy-mb": "shx rm -rf ./public/MartyBlocks && shx mkdir -p ./public/MartyBlocks && shx cp -r ./node_modules/@robotical/martyblocks/dist/. ./public/MartyBlocks/ && node scripts/apply-marty-colour-policy.js",
57
57
  "copy-mbjr": "shx rm -rf ./public/MartyBlocksJR && shx mkdir -p ./public/MartyBlocksJR && shx cp -r ./node_modules/@robotical/martyblocksjr/editions/free/src/. ./public/MartyBlocksJR/",
58
58
  "clean-mb": "shx rm -r ./node_modules/@robotical/martyblocks",
59
59
  "clean-mbjr": "shx rm -r ./node_modules/@robotical/martyblocksjr",
60
60
  "transpile-public-legacy": "node scripts/transpile-public-legacy.js",
61
61
  "postinstall": "patch-package",
62
62
  "prepare": "npm run copy-mb && npm run copy-mbjr && npm run copy-space-shooter-assets && npm run copy-qr-wasm && NODE_OPTIONS=\"--max-old-space-size=8192\" npm run transpile-public-legacy",
63
- "prestart": "npm run copy-qr-wasm",
63
+ "prestart": "npm run copy-qr-wasm && node scripts/apply-marty-colour-policy.js",
64
64
  "start": "react-scripts start",
65
65
  "start-pwa": "http-server build -c-1 -p 3001 --directory build",
66
- "prebuild": "npm run copy-qr-wasm",
66
+ "prebuild": "npm run copy-qr-wasm && node scripts/apply-marty-colour-policy.js",
67
67
  "build": "react-scripts build",
68
- "prebuild:prod": "npm run copy-qr-wasm",
68
+ "prebuild:prod": "npm run copy-qr-wasm && node scripts/apply-marty-colour-policy.js",
69
69
  "build:prod": "GENERATE_SOURCEMAP=false react-scripts build && tsc --project tsconfig.prod.json",
70
- "prebuild:sentry": "npm run copy-qr-wasm",
70
+ "prebuild:sentry": "npm run copy-qr-wasm && node scripts/apply-marty-colour-policy.js",
71
71
  "build:sentry": "GENERATE_SOURCEMAP=true react-scripts build && tsc --project tsconfig.prod.json",
72
72
  "sentry:upload-sourcemaps": "sentry-cli sourcemaps inject build/static/js && sentry-cli sourcemaps upload --release \"marty-web-app@$npm_package_version\" --validate --strict --wait build/static/js",
73
73
  "sentry:remove-sourcemaps": "find build/static/js -type f -name '*.map' -delete",
@@ -10,11 +10,13 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
10
10
  import i18n from 'i18next';
11
11
  import { initReactI18next } from 'react-i18next';
12
12
  import Logger from './services/logger/Logger';
13
+ import colourDiagnosticsEnglish from './screens/configuration/marty/Diagnostics/ColourSensorDiagnostics/messages';
13
14
  var SHOW_LOGS = true;
14
15
  var TAG = "i18n";
15
16
  var resources = {
16
17
  "en": {
17
18
  "translation": {
19
+ "colour_diagnostics": colourDiagnosticsEnglish,
18
20
  "activities": {
19
21
  "adventure_story_subtitle": "We'll make an interactive narrative adventure!",
20
22
  "adventure_story_title": "13. Adventure Story",
@@ -0,0 +1,34 @@
1
+ declare const colourDiagnosticsEnglish: {
2
+ title: string;
3
+ instructions: string;
4
+ sessionId: string;
5
+ copyId: string;
6
+ copied: string;
7
+ sensor: string;
8
+ selectSensor: string;
9
+ connect: string;
10
+ green: string;
11
+ purple: string;
12
+ yellow: string;
13
+ blue: string;
14
+ red: string;
15
+ prompt: string;
16
+ result: string;
17
+ waiting: string;
18
+ capture: string;
19
+ capturing: string;
20
+ uploading: string;
21
+ saved: string;
22
+ complete: string;
23
+ retry: string;
24
+ download: string;
25
+ newSession: string;
26
+ storageWarning: string;
27
+ sensorDisconnected: string;
28
+ staleReading: string;
29
+ invalidReading: string;
30
+ backgrounded: string;
31
+ uploadDenied: string;
32
+ uploadFailed: string;
33
+ };
34
+ export default colourDiagnosticsEnglish;
@@ -0,0 +1,30 @@
1
+ var colourDiagnosticsEnglish = {
2
+ title: "Colour sensor diagnostics",
3
+ instructions: "Rest Marty's sensor flat on each card and keep the lighting steady. Hold still for the two-second snapshot.",
4
+ sessionId: "Session ID",
5
+ copyId: "Copy ID",
6
+ copied: "Copied",
7
+ sensor: "Colour sensor",
8
+ selectSensor: "Select a sensor",
9
+ connect: "Connect and verify Marty with a colour sensor attached to begin.",
10
+ green: "green", purple: "purple", yellow: "yellow", blue: "blue", red: "red",
11
+ prompt: "Place the selected sensor on the {{colour}} card.",
12
+ result: "Blocks interpretation: {{result}}",
13
+ waiting: "Select a sensor and wait for fresh readings.",
14
+ capture: "Take {{colour}} snapshot",
15
+ capturing: "Capturing… Hold still",
16
+ uploading: "Uploading…",
17
+ saved: "{{saved}} snapshots uploaded · {{pending}} waiting to upload",
18
+ complete: "All five cards captured. You can take more snapshots of any card.",
19
+ retry: "Retry uploads",
20
+ download: "Download data",
21
+ newSession: "New session",
22
+ storageWarning: "This browser cannot keep a local backup. Download the data before closing this page.",
23
+ sensorDisconnected: "The selected sensor disconnected. Reconnect Marty and select the sensor again.",
24
+ staleReading: "Waiting for fresh sensor data. Keep Marty connected and try again.",
25
+ invalidReading: "The sensor reading is incomplete. Wait for fresh data and try again.",
26
+ backgrounded: "Keep this window visible during the snapshot and try again.",
27
+ uploadDenied: "Firebase denied the upload. Your snapshot is kept locally. Check database write access.",
28
+ uploadFailed: "Upload failed. Your snapshot is kept locally. Check your connection and retry the upload.",
29
+ };
30
+ export default colourDiagnosticsEnglish;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/webapp-types",
3
- "version": "3.23.27",
3
+ "version": "3.24.1",
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",